Mercurial > hg > xemacs-beta
comparison configure @ 149:538048ae2ab8 r20-3b1
Import from CVS: tag r20-3b1
| author | cvs |
|---|---|
| date | Mon, 13 Aug 2007 09:36:16 +0200 |
| parents | 318232e2a3f0 |
| children | 59463afc5666 |
comparison
equal
deleted
inserted
replaced
| 148:f659db2a1f73 | 149:538048ae2ab8 |
|---|---|
| 1 #!/bin/sh | 1 #! /bin/sh |
| 2 #### Configuration script for XEmacs. | 2 |
| 3 #### Copyright (C) 1994 Free Software Foundation, Inc. | 3 #### Configuration script for XEmacs. Largely divergent from FSF. |
| 4 #### Guess values for system-dependent variables and create Makefiles. | |
| 5 #### Generated automatically using autoconf version 2.12 | |
| 6 #### Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
| 4 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois. | 7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois. |
| 8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc. | |
| 5 #### Copyright (C) 1995, 1996 Ben Wing. | 9 #### Copyright (C) 1995, 1996 Ben Wing. |
| 6 | 10 |
| 7 ### Don't edit this script! | 11 ### Don't edit this script! |
| 8 ### This script was automatically generated by the `autoconf' program | 12 ### This script was automatically generated by the `autoconf' program |
| 9 ### from the file `./configure.in'. | 13 ### from the file `./configure.in'. |
| 10 ### To rebuild it, execute the command | 14 ### To rebuild it, execute the command |
| 11 ### autoconf | 15 ### autoconf |
| 12 ### in the this directory. You must have autoconf version 1.9 or later. | 16 ### in the this directory. You must have autoconf version 2.12 or later. |
| 13 | 17 |
| 14 ### This file is part of XEmacs. | 18 ### This file is part of XEmacs. |
| 15 | 19 |
| 16 ### XEmacs is free software; you can redistribute it and/or modify it | 20 ### XEmacs is free software; you can redistribute it and/or modify it |
| 17 ### under the terms of the GNU General Public License as published by | 21 ### under the terms of the GNU General Public License as published by |
| 26 ### You should have received a copy of the GNU General Public License | 30 ### You should have received a copy of the GNU General Public License |
| 27 ### along with XEmacs; see the file COPYING. If not, write to the Free | 31 ### along with XEmacs; see the file COPYING. If not, write to the Free |
| 28 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | 32 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 29 ### 02111-1307, USA. | 33 ### 02111-1307, USA. |
| 30 | 34 |
| 31 ### Since XEmacs has configuration requirements that autoconf can't | 35 ### For usage, run `./configure --help' |
| 32 ### meet, this file is an unholy marriage of custom-baked | 36 ### For more detailed information on building and installing XEmacs, |
| 33 ### configuration code and autoconf macros. | 37 ### read the file `INSTALL'. |
| 34 ### | |
| 35 ### We use the m4 quoting characters [ ] (as established by the | |
| 36 ### autoconf system) to include large sections of raw sewage - Oops, I | |
| 37 ### mean, shell code - in the final configuration script. | |
| 38 ### | |
| 39 ### Usage: configure config_name | |
| 40 ### | 38 ### |
| 41 ### If configure succeeds, it leaves its status in config.status. | 39 ### If configure succeeds, it leaves its status in config.status. |
| 40 ### A log of configuration tests can be found in config.log. | |
| 42 ### If configure fails after disturbing the status quo, | 41 ### If configure fails after disturbing the status quo, |
| 43 ### config.status is removed. | 42 ### config.status is removed. |
| 44 | 43 |
| 45 ### Remove any more than one leading "." element from the path name. | 44 ac_help="$ac_help |
| 46 ### If we don't remove them, then another "./" will be prepended to | 45 --with-x use the X Window System" |
| 47 ### the file name each time we use config.status, and the program name | 46 |
| 48 ### will get larger and larger. This wouldn't be a problem, except | 47 build=NONE |
| 49 ### that since progname gets recorded in all the Makefiles this script | 48 cache_file=/dev/null |
| 50 ### produces, move-if-change thinks they're different when they're | 49 exec_prefix=NONE |
| 51 ### not. | 50 host=NONE |
| 52 ### | 51 no_create= |
| 53 ### It would be nice if we could put the ./ in a \( \) group and then | 52 nonopt=NONE |
| 54 ### apply the * operator to that, so we remove as many leading ./././'s | 53 no_recursion= |
| 55 ### as are present, but some seds (like Ultrix's sed) don't allow you to | 54 prefix=NONE |
| 56 ### apply * to a \( \) group. Bleah. | 55 program_prefix=NONE |
| 56 program_suffix=NONE | |
| 57 program_transform_name=s,x,x, | |
| 58 silent= | |
| 59 site= | |
| 60 srcdir= | |
| 61 target=NONE | |
| 62 verbose= | |
| 63 x_includes=NONE | |
| 64 x_libraries=NONE | |
| 65 bindir='${exec_prefix}/bin' | |
| 66 sbindir='${exec_prefix}/sbin' | |
| 67 libexecdir='${exec_prefix}/libexec' | |
| 68 datadir='${prefix}/share' | |
| 69 sysconfdir='${prefix}/etc' | |
| 70 sharedstatedir='${prefix}/com' | |
| 71 localstatedir='${prefix}/var' | |
| 72 libdir='${{exec_prefix}}/lib' | |
| 73 includedir='${prefix}/include' | |
| 74 oldincludedir='/usr/include' | |
| 75 infodir='${prefix}/info' | |
| 76 mandir='${prefix}/man' | |
| 77 | |
| 78 subdirs= | |
| 79 MFLAGS= MAKEFLAGS= | |
| 80 ac_max_here_lines=12 | |
| 81 | |
| 82 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
| 83 | |
| 84 # File descriptor usage: | |
| 85 # 0 standard input | |
| 86 # 1 file creation | |
| 87 # 2 errors and warnings | |
| 88 # 3 some systems may open it to /dev/tty | |
| 89 # 4 used on the Kubota Titan | |
| 90 # 6 checking for... messages and results | |
| 91 # 5 compiler messages saved in config.log | |
| 92 if test "$silent" = yes; then | |
| 93 exec 6>/dev/null | |
| 94 else | |
| 95 exec 6>&1 | |
| 96 fi | |
| 97 exec 5>./config.log | |
| 98 | |
| 99 echo "\ | |
| 100 This file contains any messages produced by compilers while | |
| 101 running configure, to aid debugging if configure makes a mistake. | |
| 102 " 1>&5 | |
| 103 | |
| 104 # Strip out --no-create and --no-recursion so they do not pile up. | |
| 105 # Also quote any args containing shell metacharacters. | |
| 106 ac_configure_args= | |
| 107 for ac_arg | |
| 108 do | |
| 109 case "$ac_arg" in | |
| 110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
| 111 | --no-cr | --no-c) ;; | |
| 112 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
| 113 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
| 114 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
| 115 ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
| 116 *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
| 117 esac | |
| 118 done | |
| 119 | |
| 120 # NLS nuisances. | |
| 121 # Only set these to C if already set. These must not be set unconditionally | |
| 122 # because not all systems understand e.g. LANG=C (notably SCO). | |
| 123 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
| 124 # Non-C LC_CTYPE values break the ctype check. | |
| 125 if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
| 126 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
| 127 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
| 128 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
| 129 | |
| 130 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
| 131 rm -rf conftest* confdefs.h | |
| 132 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
| 133 echo > confdefs.h | |
| 134 | |
| 135 # A filename unique to this package, relative to the directory that | |
| 136 # configure is in, which we can look for to find out if srcdir is correct. | |
| 137 ac_unique_file=src/lisp.h | |
| 138 | |
| 139 # Find the source files, if location was not specified. | |
| 140 if test -z "$srcdir"; then | |
| 141 ac_srcdir_defaulted=yes | |
| 142 # Try the directory containing this script, then its parent. | |
| 143 ac_prog=$0 | |
| 144 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
| 145 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
| 146 srcdir=$ac_confdir | |
| 147 if test ! -r $srcdir/$ac_unique_file; then | |
| 148 srcdir=.. | |
| 149 fi | |
| 150 else | |
| 151 ac_srcdir_defaulted=no | |
| 152 fi | |
| 153 if test ! -r $srcdir/$ac_unique_file; then | |
| 154 if test "$ac_srcdir_defaulted" = yes; then | |
| 155 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
| 156 else | |
| 157 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
| 158 fi | |
| 159 fi | |
| 160 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
| 161 | |
| 162 # Prefer explicitly selected file to automatically selected ones. | |
| 163 if test -z "$CONFIG_SITE"; then | |
| 164 if test "x$prefix" != xNONE; then | |
| 165 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
| 166 else | |
| 167 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
| 168 fi | |
| 169 fi | |
| 170 for ac_site_file in $CONFIG_SITE; do | |
| 171 if test -r "$ac_site_file"; then | |
| 172 echo "loading site script $ac_site_file" | |
| 173 . "$ac_site_file" | |
| 174 fi | |
| 175 done | |
| 176 | |
| 177 | |
| 178 ac_ext=c | |
| 179 xe_cppflags='$c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS $CPPFLAGS' # $c_switch_x_machine $c_switch_x_system' | |
| 180 xe_ldflags='$ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site' # $ld_switch_x_machine $ld_switch_x_system' | |
| 181 xe_libs='$xe_check_libs $X_PRE_LIBS $libs_x $X_EXTRA_LIBS $LIBS $libs_machine $libs_system $libs_standard' | |
| 182 ac_cpp='$CPP '"$xe_cppflags" | |
| 183 ac_compile='${CC-cc} -c '"$CFLAGS $xe_cppflags"' conftest.$ac_ext 1>&5' | |
| 184 ac_link='${CC-cc} -o conftest '"$CFLAGS $xe_cppflags $LDFLAGS $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' | |
| 185 cross_compiling=no | |
| 186 | |
| 187 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
| 188 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
| 189 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
| 190 ac_n= ac_c=' | |
| 191 ' ac_t=' ' | |
| 192 else | |
| 193 ac_n=-n ac_c= ac_t= | |
| 194 fi | |
| 195 else | |
| 196 ac_n= ac_c='\c' ac_t= | |
| 197 fi | |
| 198 | |
| 199 | |
| 57 progname="`echo $0 | sed 's:^\./\./:\./:'`" | 200 progname="`echo $0 | sed 's:^\./\./:\./:'`" |
| 58 | 201 |
| 59 ############################################################################ | 202 |
| 60 # # | 203 cache_file=/dev/null |
| 61 # Establish some default values # | 204 |
| 62 # # | 205 MAKE_SUBDIR="src lib-src" |
| 63 ############################################################################ | 206 |
| 64 | |
| 65 #run_in_place='no' | |
| 66 prefix='/usr/local' | 207 prefix='/usr/local' |
| 67 exec_prefix='${prefix}' | 208 exec_prefix='${prefix}' |
| 68 bindir='${exec_prefix}/bin' | 209 bindir='${exec_prefix}/bin' |
| 69 # FSF 19.29 changes to: | |
| 70 # datadir='${prefix}/share' | |
| 71 # sharedstatedir='${prefix}/com' | |
| 72 # libexecdir='${exec_prefix}/libexec' | |
| 73 datadir='${prefix}/lib' | 210 datadir='${prefix}/lib' |
| 74 statedir='${prefix}/lib' | 211 statedir='${prefix}/lib' |
| 75 libdir='${exec_prefix}/lib' | 212 libdir='${exec_prefix}/lib' |
| 76 mandir='${prefix}/man/man1' | 213 mandir='${prefix}/man/man1' |
| 77 infodir='${prefix}/lib/xemacs-${version}/info' | 214 infodir='${prefix}/lib/xemacs-${version}/info' |
| 93 cflags='NO_CFLAGS_DEFINED' | 230 cflags='NO_CFLAGS_DEFINED' |
| 94 dynamic='' | 231 dynamic='' |
| 95 with_x11='' | 232 with_x11='' |
| 96 rel_alloc='default' | 233 rel_alloc='default' |
| 97 use_system_malloc='default' | 234 use_system_malloc='default' |
| 98 internal_makefile_list='Makefile lib-src/Makefile.in src/Makefile.in lwlib/Makefile.in dynodump/Makefile.in' | 235 energize_version='' |
| 99 energize_version='no' | |
| 100 native_sound_lib='' | 236 native_sound_lib='' |
| 101 # make normal error-checking be the default in alpha and beta versions, so | |
| 102 # that bugs get noticed. Change this for released versions. | |
| 103 error_check_default='no' | 237 error_check_default='no' |
| 104 error_check_extents=$error_check_default | 238 error_check_extents=$error_check_default |
| 105 error_check_typecheck=$error_check_default | 239 error_check_typecheck=$error_check_default |
| 106 error_check_bufpos=$error_check_default | 240 error_check_bufpos=$error_check_default |
| 107 error_check_gc=$error_check_default | 241 error_check_gc=$error_check_default |
| 108 error_check_malloc=$error_check_default | 242 error_check_malloc=$error_check_default |
| 109 # debug=yes must be set when error checking is present. This should be | |
| 110 # fixed up. | |
| 111 debug=$error_check_default | 243 debug=$error_check_default |
| 112 quantify='no' | |
| 113 # use-assertions should be 'yes' by default. Too many people in this | |
| 114 # world have core dumps turned off by default or "can't find where the | |
| 115 # core file went". At least we should get some useful output ... | |
| 116 use_assertions='yes' | 244 use_assertions='yes' |
| 117 # the following is set to yes or no later. | |
| 118 with_gif='' | 245 with_gif='' |
| 119 # the following is set to yes or no later. | |
| 120 with_toolbars='' | 246 with_toolbars='' |
| 121 with_tty='yes' | |
| 122 use_union_type='no' | 247 use_union_type='no' |
| 123 with_dnet='' | 248 with_dnet='' |
| 124 | 249 |
| 125 # # gnu echo silently eats `--help', `--version', `-n', `-e', `-E', `-n'. | |
| 126 # # other versions of echo eat any strings beginning with `-n'. | |
| 127 # # when parsing arguments, special case these strings and don't | |
| 128 # # pass them through echo | |
| 129 # echo=/bin/echo | |
| 130 # | |
| 131 # this approach abandoned in favor of | |
| 132 # | |
| 133 # echo "" ${stuff_to_filter} | sed -e 's:^ ::' | |
| 134 | |
| 135 # On Sun systems, people sometimes set up the variable CPP | |
| 136 # with a value that is a directory, not an executable at all. | |
| 137 # Detect that case, and ignore that value. | |
| 138 test -n "$CPP" -a -d "$CPP" && CPP= | 250 test -n "$CPP" -a -d "$CPP" && CPP= |
| 139 | 251 |
| 140 ############################################################################ | 252 usage="Usage: $progname CONFIGURATION [-OPTION[=VALUE] ...] |
| 141 # # | |
| 142 # Usage messages # | |
| 143 # # | |
| 144 ############################################################################ | |
| 145 | |
| 146 short_usage="Usage: ${progname} CONFIGURATION [-OPTION[=VALUE] ...] | |
| 147 | 253 |
| 148 Set compilation and installation parameters for XEmacs, and report. | 254 Set compilation and installation parameters for XEmacs, and report. |
| 149 CONFIGURATION specifies the machine and operating system to build for. | 255 CONFIGURATION specifies the machine and operating system to build for. |
| 150 | 256 |
| 151 Note that for most of the following options, you can explicitly enable | 257 Note that for most of the following options, you can explicitly enable |
| 152 them using \`--OPTION=yes' and explicitly disable them using \`--OPTION=no'. | 258 them using \`--OPTION=yes' and explicitly disable them using \`--OPTION=no'. |
| 153 This is especially useful for auto-detected options. | 259 This is especially useful for auto-detected options. |
| 154 | 260 |
| 155 Options marked with a (*) are autodetected. | 261 Options marked with a (*) are autodetected. |
| 156 | 262 |
| 157 | 263 |
| 158 General options: | 264 General options: |
| 159 | 265 |
| 160 --help Issue this usage message. | 266 --help Issue this usage message. |
| 161 --verbose Display the results of configure tests. | 267 --verbose Display the results of configure tests. |
| 162 --extra-verbose Also display the output of any compiler invocation. | 268 --extra-verbose Display even more information, useful for debugging. |
| 163 (Useful when feature tests are coming out wrong.) | 269 |
| 164 | 270 |
| 165 | 271 Compilation options: |
| 166 Compiler options: | 272 |
| 167 | 273 --compiler=XXXX Specify compiler. Overrides environment variable CC. |
| 168 --compiler=XXXX Specify compiler. | |
| 169 --with-gcc (*) Use GCC to compile XEmacs. | 274 --with-gcc (*) Use GCC to compile XEmacs. |
| 170 --with-lcc Use Lucid's LCC to compile XEmacs. | |
| 171 --with-gcc=no Don't use GCC to compile XEmacs. | 275 --with-gcc=no Don't use GCC to compile XEmacs. |
| 172 --with-gnu-make Write the Makefiles to take advantage of | 276 --with-gnu-make Write the Makefiles to take advantage of |
| 173 special features of GNU Make. (GNU Make | 277 special features of GNU Make. (GNU Make |
| 174 works fine on the Makefiles even without this | 278 works fine on the Makefiles even without this |
| 175 option. This just allows for simultaneous | 279 option. This just allows for simultaneous |
| 176 in-place and --srcdir building.) | 280 in-place and --srcdir building.) |
| 177 --cflags=FLAGS Override the default values for CFLAGS. | 281 --cflags=FLAGS Compiler flags. Overrides environment variable CFLAGS. |
| 178 --site-includes=DIR Other header file directories. Separate multiple | 282 --site-includes=DIR Other header file directories. Separate multiple |
| 179 dirs with spaces and use quotes to enclose. | 283 dirs with spaces and use quotes to enclose. |
| 180 --site-libraries=DIR Other library directories. | 284 --site-libraries=DIR Other library directories. |
| 181 --site-runtime-libraries=DIR | 285 --site-runtime-libraries=DIR |
| 182 Paths to add with -R flag. | 286 Paths to add with -R flag. |
| 187 See also --with-gnu-make. | 291 See also --with-gnu-make. |
| 188 --const-is-losing=no Allow the use of const in the source code. | 292 --const-is-losing=no Allow the use of const in the source code. |
| 189 | 293 |
| 190 | 294 |
| 191 Installation options: | 295 Installation options: |
| 192 | 296 |
| 193 --prefix=DIR Install files below DIR. Defaults to \`${prefix}'. | 297 --prefix=DIR Install files below DIR. Defaults to \`$prefix'. |
| 194 | 298 |
| 195 | 299 |
| 196 Window-system options: | 300 Window-system options: |
| 197 | 301 |
| 198 --with-x (*) Support the X Window System. | 302 --with-x (*) Support the X Window System. |
| 199 --with-x=no Don't support X. | 303 --with-x=no Don't support X. |
| 200 --x-includes=DIR Search for X header files in DIR. | 304 --x-includes=DIR Search for X header files in DIR. |
| 201 --x-libraries=DIR Search for X libraries in DIR. | 305 --x-libraries=DIR Search for X libraries in DIR. |
| 306 --with-toolbars=no Don't compile with any toolbar support. | |
| 202 --with-menubars=TYPE Use TYPE menubars (lucid, motif, or no). The Lucid | 307 --with-menubars=TYPE Use TYPE menubars (lucid, motif, or no). The Lucid |
| 203 widgets emulate Motif (mostly) but are faster. | 308 widgets emulate Motif (mostly) but are faster. |
| 204 *WARNING* The Motif menubar is currently broken. | 309 *WARNING* The Motif menubar is currently broken. |
| 205 --with-scrollbars=TYPE Use TYPE scrollbars (lucid, motif, athena, | 310 --with-scrollbars=TYPE Use TYPE scrollbars |
| 206 athena3d, or no). | 311 (lucid, motif, athena, athena3d, or no). |
| 207 --with-dialogs=TYPE Use TYPE dialog boxes (motif, athena, athena3d, or no). | 312 --with-dialogs=TYPE Use TYPE dialog boxes (motif, athena, athena3d, or no). |
| 208 (Lucid menubars and scrollbars are the default. | 313 (Lucid menubars and scrollbars are the default. |
| 209 Motif dialog boxes will be used if Motif can be | 314 Motif dialog boxes will be used if Motif can be |
| 210 found.) | 315 found.) |
| 211 --with-cde (*) Compile in support for CDE drag and drop. | 316 --with-cde (*) Compile in support for CDE drag and drop. |
| 212 --with-offix (*) Compile in support for OffiX drag and drop. | 317 --with-offix (*) Compile in support for OffiX drag and drop. |
| 318 --with-xmu=no (*) For those unfortunates whose vendors don't ship Xmu. | |
| 319 --external-widget Compile with external widget support. | |
| 320 --with-gif Compile with support for GIF image conversion. | |
| 321 This support is built-in and defaults to \`yes'. | |
| 213 --with-xpm (*) Compile with support for XPM files. | 322 --with-xpm (*) Compile with support for XPM files. |
| 214 It is highly recommended that you obtain XPM | 323 It is highly recommended that you obtain XPM |
| 215 (version 3.4g or better) if you don't already | 324 (version 3.4h or better) if you don't already |
| 216 have it. Get it from the XEmacs FTP site. | 325 have it. Get it from the XEmacs FTP site. |
| 217 --with-xmu=no (*) For those unfortunates whose vendors don't ship Xmu. | 326 --with-xface (*) Compile with support for X-Face mail header |
| 327 conversion. Requires the compface library. | |
| 328 Get it from the XEmacs FTP site. | |
| 329 --with-jpeg (*) Compile with support for JPEG image conversion. | |
| 330 Requires libjpeg from the Independent JPEG Group. | |
| 331 Get it from the XEmacs FTP site. | |
| 332 --with-png (*) Compile with support for PNG image conversion. | |
| 333 Requires libpng. Get it from the XEmacs FTP site. | |
| 334 --with-tiff Compile with support for TIFF image conversion | |
| 335 (not yet implemented). | |
| 336 | |
| 337 | |
| 338 TTY options: | |
| 339 | |
| 340 --with-ncurses (*) Use the ncurses library for tty support. | |
| 341 --with-gpm (*) Compile in support for General Purpose Mouse. | |
| 218 | 342 |
| 219 | 343 |
| 220 Additional features: | 344 Additional features: |
| 221 | 345 |
| 222 --with-toolbars=no Don't compile with any toolbar support. | 346 --with-tooltalk (*) Support the ToolTalk IPC protocol. |
| 223 --with-tooltalk Support the ToolTalk IPC protocol. | 347 --with-workshop Support the Sun WorkShop (formerly Sparcworks) |
| 224 --with-sparcworks Support the Sun Sparcworks development environment. | 348 development environment. |
| 225 --with-energize Support the Lucid Energize development environment. | 349 --with-energize Support the Lucid Energize development environment. |
| 226 This doesn't currently work. | 350 This doesn't currently work. |
| 227 --with-socks Compile with support for SOCKS (an Internet proxy). | 351 --with-socks Compile with support for SOCKS (an Internet proxy). |
| 228 --with-term Compile with support for TERM (a way to multiplex | 352 --with-term Compile with support for TERM (a way to multiplex |
| 229 serial lines and provide vaguely Internet-like | 353 serial lines and provide vaguely Internet-like |
| 230 functionality over a simple dialup connection, | 354 functionality over a simple dialup connection, |
| 231 used on Linux and other systems. NOTE: We can't | 355 used on Linux and other systems. NOTE: We can't |
| 232 guarantee that our TERM support coexists well | 356 guarantee that our TERM support coexists well |
| 233 with standard Internet connections). | 357 with standard Internet connections). |
| 234 --with-xface (*) Compile with support for X-Face mail header | |
| 235 conversion. Requires the compface library. | |
| 236 Get it from the XEmacs FTP site. | |
| 237 --with-gif Compile with support for GIF image conversion. | |
| 238 This requires no special support and defaults to | |
| 239 \`yes'. | |
| 240 --with-jpeg (*) Compile with support for JPEG image conversion. | |
| 241 Requires libjpeg from the Independent JPEG Group. | |
| 242 Get it from the XEmacs FTP site. | |
| 243 --with-png (*) Compile with support for PNG image conversion. | |
| 244 Requires libpng. Get it from the XEmacs FTP site. | |
| 245 Accepted values are \`yes', \`no', and \`gnuz' | |
| 246 if you want to use -lgz instead of -lz. | |
| 247 --with-tiff Compile with support for TIFF image conversion | |
| 248 (not yet implemented). | |
| 249 --with-database=type (*) Compile with database support. Valid types are | 358 --with-database=type (*) Compile with database support. Valid types are |
| 250 \`no' or a comma-separated list of one or more | 359 \`no' or a comma-separated list of one or more |
| 251 of \`dbm', \`gnudbm', or \`berkdb'. | 360 of \`dbm', \`gnudbm', or \`berkdb'. |
| 252 --external-widget Compile with external widget support. | |
| 253 --with-sound=native (*) Compile with native sound support. | 361 --with-sound=native (*) Compile with native sound support. |
| 254 --with-sound=nas Compile with network sound support. | 362 --with-sound=nas Compile with network sound support. |
| 255 --with-sound=both Compile with native and network sound support. | 363 --with-sound=both Compile with native and network sound support. |
| 256 --native-sound-lib=LIB Native sound support library. Needed on Suns | 364 --native-sound-lib=LIB Native sound support library. Needed on Suns |
| 257 with --with-sound=both because both sound libraries | 365 with --with-sound=both because both sound libraries |
| 258 are called libaudio. | 366 are called libaudio. |
| 259 --with-mocklisp Compile with Mocklisp support. Don't do this | 367 --with-mocklisp Compile with Mocklisp support. Don't do this |
| 260 unless you have a Mocklisp program that you need | 368 unless you have a Mocklisp program that you need |
| 261 to run. | 369 to run. |
| 262 --usage-tracking Enable some Sun-internal code. If you don't | |
| 263 know what this is, you don't want it. | |
| 264 --with-pop support POP for mail retrieval | 370 --with-pop support POP for mail retrieval |
| 265 --with-kerberos support Kerberos-authenticated POP | 371 --with-kerberos support Kerberos-authenticated POP |
| 266 --with-hesiod support Hesiod to get the POP server host | 372 --with-hesiod support Hesiod to get the POP server host |
| 267 --with-dnet (*) Compile with support for DECnet. | 373 --with-dnet (*) Compile with support for DECnet. |
| 374 --mail-locking=TYPE (*) Specify the locking to be used by movemail to prevent | |
| 375 concurrent updates of mail spool files. Valid types | |
| 376 are \`lockf', \`flock', and \`lock-file'. | |
| 268 | 377 |
| 269 Internationalization options: | 378 Internationalization options: |
| 270 | 379 |
| 271 --with-mule Compile with Mule (MUlti-Lingual Emacs) support, | 380 --with-mule Compile with Mule (MUlti-Lingual Emacs) support, |
| 272 needed to suport non-Latin-1 (including Asian) languages. | 381 needed to suport non-Latin-1 (including Asian) languages. |
| 276 the Motif XmIm* routines (when available). | 385 the Motif XmIm* routines (when available). |
| 277 If the XmIm* routines are autodetected, | 386 If the XmIm* routines are autodetected, |
| 278 then the default is --with-xim=motif, else --with-xim=no. | 387 then the default is --with-xim=motif, else --with-xim=no. |
| 279 NOTE: On some systems like SunOS4 use of this option | 388 NOTE: On some systems like SunOS4 use of this option |
| 280 will cause XEmacs to crash at startup. | 389 will cause XEmacs to crash at startup. |
| 281 --with-canna Compile with support for Canna (a Japanese input method | 390 --with-canna (*) Compile with support for Canna (a Japanese input method |
| 282 used in conjunction with Mule support). | 391 used in conjunction with Mule support). |
| 283 --with-wnn Compile with support for WNN (a multi-language input method | 392 --with-wnn (*) Compile with support for WNN (a multi-language input method |
| 284 used in conjunction with Mule support). | 393 used in conjunction with Mule support). |
| 285 This is beta level code. | 394 This is beta level code. |
| 286 --with-wnn6 Compile with support for WNN version 6 | 395 --with-wnn6 (*) Compile with support for WNN version 6 |
| 287 This is alpha level code. | 396 This is alpha level code. |
| 288 --wnn-includes=DIR Search for WNN header files in DIR. | |
| 289 --wnn-libraries=DIR Search for WNN libraries in DIR. | |
| 290 --with-i18n3 Compile with I18N level 3 (support for message | 397 --with-i18n3 Compile with I18N level 3 (support for message |
| 291 translation). This doesn't currently work. | 398 translation). This doesn't currently work. |
| 292 --canna-includes=DIR Search for Canna header files in DIR. | |
| 293 --canna-libraries=DIR Search for Canna libraries in DIR. | |
| 294 | 399 |
| 295 | 400 |
| 296 Debugging options: | 401 Debugging options: |
| 297 | 402 |
| 298 --debug Compile with support for debugging XEmacs. | 403 --debug Compile with support for debugging XEmacs. |
| 312 up the compile-run-test cycle.) | 417 up the compile-run-test cycle.) |
| 313 --use-union-type Enable or disable use of a union, instead of an | 418 --use-union-type Enable or disable use of a union, instead of an |
| 314 int, for the fundamental Lisp_Object type; this | 419 int, for the fundamental Lisp_Object type; this |
| 315 provides stricter type-checking. Only works with | 420 provides stricter type-checking. Only works with |
| 316 some systems and compilers. | 421 some systems and compilers. |
| 317 | 422 |
| 318 | 423 |
| 319 Other options: | 424 Other options: |
| 320 | 425 |
| 321 --puresize=VALUE Override default amount of space for pure Lisp code. | 426 --puresize=VALUE Override default amount of space for pure Lisp code. |
| 322 --rel-alloc Use the relocating allocator (default for this option | 427 --rel-alloc Use the relocating allocator (default for this option |
| 328 Makefile.in, including --bindir, --libdir, --lispdir, --datadir, and | 433 Makefile.in, including --bindir, --libdir, --lispdir, --datadir, and |
| 329 so on. Note that we recommend against explicitly setting any of these | 434 so on. Note that we recommend against explicitly setting any of these |
| 330 variables. See the INSTALL file for a complete list plus the reasons | 435 variables. See the INSTALL file for a complete list plus the reasons |
| 331 we advise not changing them. | 436 we advise not changing them. |
| 332 | 437 |
| 333 If successful, ${progname} leaves its status in config.status. If | 438 If successful, $progname leaves its status in config.status. If |
| 334 unsuccessful after disturbing the status quo, it removes config.status." | 439 unsuccessful after disturbing the status quo, it removes config.status. |
| 335 | 440 |
| 336 ############################################################################ | 441 The configure build process also used the following environment variables: |
| 337 # # | 442 CC C compiler to use (but configure flags take precedence) |
| 338 # Options processing # | 443 CFLAGS C compiler compilation flags (such as -O) |
| 339 # # | 444 CPPFLAGS Additional compilation flags (sucha s -I) used only by the preprocessor |
| 340 ############################################################################ | 445 LDFLAGS Additional linker flags |
| 341 | 446 |
| 342 | 447 For more details on the install process, consult the INSTALL file. |
| 343 | 448 " |
| 344 ### Record all the arguments, so we can save them in config.status. | 449 |
| 450 | |
| 451 | |
| 452 | |
| 345 arguments="$@" | 453 arguments="$@" |
| 346 | 454 |
| 347 ### Shell Magic: Quote the quoted arguments in ARGUMENTS. At a later date, | |
| 348 ### in order to get the arguments back in $@, we have to do an | |
| 349 ### `eval set x "$quoted_arguments"; shift'. | |
| 350 ### We use sed to turn embedded ' into '"'"'. I truly hate sh's quoting. | |
| 351 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g | 455 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g |
| 352 quoted_arguments= | 456 quoted_arguments= |
| 353 for i in "$@"; do | 457 for i in "$@"; do |
| 354 case "$i" in | 458 case "$i" in |
| 355 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 459 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 360 quoted_i="`echo $i | sed $quoted_sed_magic`" | 464 quoted_i="`echo $i | sed $quoted_sed_magic`" |
| 361 quoted_arguments="$quoted_arguments '$quoted_i'" ;; | 465 quoted_arguments="$quoted_arguments '$quoted_i'" ;; |
| 362 esac | 466 esac |
| 363 done | 467 done |
| 364 | 468 |
| 365 ### Don't use shift -- that destroys the argument list, which autoconf needs | |
| 366 ### to produce config.status. It turns out that "set - ${arguments}" doesn't | |
| 367 ### work portably. | |
| 368 ### However, it also turns out that many shells cannot expand ${10} at all. | |
| 369 ### So using an index variable doesn't work either. It is possible to use | |
| 370 ### some shell magic to make 'set x "$arguments"; shift' work portably. | |
| 371 while test $# != 0; do | 469 while test $# != 0; do |
| 372 arg="$1"; shift | 470 arg="$1"; shift |
| 373 case "${arg}" in | 471 case "$arg" in |
| 374 | 472 |
| 375 ## Anything starting with a hyphen we assume is an option. | 473 -* ) |
| 376 -* ) | 474 case "$arg" in |
| 377 ## Separate the switch name from the value it's being given. | |
| 378 case "${arg}" in | |
| 379 -*=*) | 475 -*=*) |
| 380 opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'` | 476 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'` |
| 381 val=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'` | 477 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'` |
| 382 valomitted=no | 478 valomitted=no |
| 383 ;; | 479 ;; |
| 384 # ## special case these strings since echo may | 480 -*) |
| 385 # ## silently eat them. | 481 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'` |
| 386 # --help ) opt=help val=yes valomitted=yes ;; | |
| 387 # --version ) opt=version val=yes valomitted=yes ;; | |
| 388 # -e ) opt=e val=yes valomitted=yes ;; | |
| 389 # -E ) opt=E val=yes valomitted=yes ;; | |
| 390 # -n ) opt=n val=yes valomitted=yes ;; | |
| 391 -*) | |
| 392 ## If FOO is a boolean argument, --FOO is equivalent to | |
| 393 ## --FOO=yes. Otherwise, the value comes from the next | |
| 394 ## argument - see below. | |
| 395 opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'` | |
| 396 val="yes" | 482 val="yes" |
| 397 valomitted=yes | 483 valomitted=yes |
| 398 ;; | 484 ;; |
| 399 esac | 485 esac |
| 400 | 486 |
| 401 ## Change `-' in the option name to `_'. | 487 optname="$opt" |
| 402 optname="${opt}" | 488 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`" |
| 403 opt="`echo '' ${opt} | sed -e 's:^ ::' | tr - _`" | 489 |
| 404 | 490 case "$opt" in |
| 405 ## Process the option. | 491 |
| 406 case "${opt}" in | 492 run_in_place | \ |
| 407 | |
| 408 ## Process (many) boolean options | |
| 409 run_in_place | \ | |
| 410 with_x | \ | 493 with_x | \ |
| 411 with_x11 | \ | 494 with_x11 | \ |
| 412 with_gcc | \ | 495 with_gcc | \ |
| 413 with_lcc | \ | |
| 414 with_gnu_make | \ | 496 with_gnu_make | \ |
| 415 dynamic | \ | 497 dynamic | \ |
| 498 with_ncurses | \ | |
| 499 with_dnet | \ | |
| 416 with_term | \ | 500 with_term | \ |
| 501 with_socks | \ | |
| 417 with_cde | \ | 502 with_cde | \ |
| 418 with_offix | \ | 503 with_offix | \ |
| 504 with_gpm | \ | |
| 505 with_gif | \ | |
| 419 with_xpm | \ | 506 with_xpm | \ |
| 420 with_gif | \ | 507 with_xface | \ |
| 421 with_jpeg | \ | 508 with_jpeg | \ |
| 509 with_png | \ | |
| 422 with_tiff | \ | 510 with_tiff | \ |
| 423 with_socks | \ | |
| 424 with_xface | \ | |
| 425 with_xmu | \ | 511 with_xmu | \ |
| 426 quantify | \ | 512 with_quantify | \ |
| 427 with_toolbars | \ | 513 with_toolbars | \ |
| 428 with_tty | \ | 514 with_tty | \ |
| 429 with_i18n3 | \ | 515 with_i18n3 | \ |
| 430 with_mule | \ | 516 with_mule | \ |
| 431 with_canna | \ | 517 with_canna | \ |
| 432 with_wnn | \ | 518 with_wnn | \ |
| 433 with_wnn6 | \ | 519 with_wnn6 | \ |
| 434 with_mocklisp | \ | 520 with_mocklisp | \ |
| 435 with_energize | \ | 521 with_energize | \ |
| 522 with_workshop | \ | |
| 436 with_sparcworks | \ | 523 with_sparcworks | \ |
| 437 with_tooltalk | \ | 524 with_tooltalk | \ |
| 438 with_pop | \ | 525 with_pop | \ |
| 439 with_kerberos | \ | 526 with_kerberos | \ |
| 440 with_hesiod | \ | 527 with_hesiod | \ |
| 446 usage_tracking | \ | 533 usage_tracking | \ |
| 447 use_union_type | \ | 534 use_union_type | \ |
| 448 debug | \ | 535 debug | \ |
| 449 use_assertions | \ | 536 use_assertions | \ |
| 450 memory_usage_stats | \ | 537 memory_usage_stats | \ |
| 451 no_doc_file ) | 538 no_doc_file ) |
| 452 ## Make sure the value given was either "yes" or "no". | 539 case "$val" in |
| 453 case "${val}" in | |
| 454 y | ye | yes ) val=yes ;; | 540 y | ye | yes ) val=yes ;; |
| 455 n | no ) val=no ;; | 541 n | no ) val=no ;; |
| 456 * ) (echo "${progname}: Usage error:" | 542 * ) (echo "$progname: Usage error:" |
| 457 echo " " "The \`--${optname}' option requires a boolean value: \`yes' or \`no'." | 543 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'." |
| 458 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 ;; | 544 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; |
| 459 esac | 545 esac |
| 460 eval "${opt}=\"${val}\"" ;; | 546 eval "$opt=\"$val\"" ;; |
| 461 | 547 |
| 462 | 548 |
| 463 ## Options that take a user-supplied value, as in --puresize=8000000 | 549 srcdir | \ |
| 464 srcdir | \ | |
| 465 compiler | \ | 550 compiler | \ |
| 466 puresize | \ | 551 puresize | \ |
| 467 native_sound_lib | \ | 552 native_sound_lib | \ |
| 468 x_includes | \ | 553 x_includes | \ |
| 469 x_libraries | \ | 554 x_libraries | \ |
| 470 wnn_includes | \ | |
| 471 wnn_libraries | \ | |
| 472 canna_includes | \ | |
| 473 canna_libraries | \ | |
| 474 site_includes | \ | 555 site_includes | \ |
| 475 site_libraries | \ | 556 site_libraries | \ |
| 476 site_runtime_libraries ) | 557 site_runtime_libraries ) |
| 477 ## If the value was omitted, get it from the next argument. | 558 if test "$valomitted" = "yes" ; then |
| 478 if test "${valomitted}" = "yes" ; then | 559 if test "$#" = 0 ; then |
| 479 ## Get the next argument from the argument list, if there is one. | 560 (echo "$progname: Usage error:" |
| 480 if test "$#" = 0 ; then | 561 echo " " "The \`--$optname' option requires a value." |
| 481 (echo "${progname}: Usage error:" | 562 echo " Use \`$progname --help' to show usage.") >&2 && exit 1; |
| 482 echo " " "The \`--${optname}' option requires a value." | |
| 483 echo " Use \`${progname} --help' for more details.") >&2 && exit 1; | |
| 484 fi | 563 fi |
| 485 val="$1"; shift | 564 val="$1"; shift |
| 486 fi | 565 fi |
| 487 eval "${opt}=\"${val}\"" | 566 eval "$opt=\"$val\"" |
| 488 ;; | 567 ;; |
| 489 | 568 |
| 490 ### Options that take "yes", "no", or "default" values | 569 rel_alloc | \ |
| 491 rel_alloc | \ | |
| 492 use_system_malloc ) | 570 use_system_malloc ) |
| 493 case "${val}" in | 571 case "$val" in |
| 494 y | ye | yes ) val=yes ;; | 572 y | ye | yes ) val=yes ;; |
| 495 n | no ) val=no ;; | 573 n | no ) val=no ;; |
| 496 d | de | def | defa | defau | defaul | default ) | 574 d | de | def | defa | defau | defaul | default ) |
| 497 val=default ;; | 575 val=default ;; |
| 498 * ) (echo "${progname}: Usage error:" | 576 * ) (echo "$progname: Usage error:" |
| 499 echo " " "The \`--${optname}' option requires one of these values: | 577 echo " " "The \`--$optname' option requires one of these values: |
| 500 \`yes', \`no', or \`default'." | 578 \`yes', \`no', or \`default'." |
| 501 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 ;; | 579 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; |
| 502 esac | 580 esac |
| 503 eval "${opt}=\"${val}\"" | 581 eval "$opt=\"$val\"" |
| 504 ;; | 582 ;; |
| 505 | 583 |
| 506 ## Has the user requested database support? | 584 "with_database" ) |
| 507 "with_database" ) | |
| 508 with_database_berkdb=no | 585 with_database_berkdb=no |
| 509 with_database_dbm=no | 586 with_database_dbm=no |
| 510 with_database_gnudbm=no | 587 with_database_gnudbm=no |
| 511 ## Make sure the value given was `no' or a list of berkdb, dbm, gnudbm | 588 for x in `echo "$val" | sed 's/,/ /'` ; do |
| 512 for x in `echo "${val}" | sed 's/,/ /'` ; do | 589 case "$x" in |
| 513 case "${x}" in | |
| 514 no ) : ;; | 590 no ) : ;; |
| 515 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;; | 591 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;; |
| 516 d | db | dbm ) with_database_dbm=yes ;; | 592 d | db | dbm ) with_database_dbm=yes ;; |
| 517 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;; | 593 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;; |
| 518 * ) (echo "${progname}: Usage error:" | 594 * ) (echo "$progname: Usage error:" |
| 519 echo " " "The \`--${optname}' option value | 595 echo " " "The \`--$optname' option value |
| 520 must be either \`no' or a comma-separated list | 596 must be either \`no' or a comma-separated list |
| 521 of one or more of \`berkdb', \`dbm', or \`gnudbm'." | 597 of one or more of \`berkdb', \`dbm', or \`gnudbm'." |
| 522 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 ;; | 598 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; |
| 523 esac | 599 esac |
| 524 done | 600 done |
| 525 if test "${with_database_dbm}" = "yes" -a \ | 601 if test "$with_database_dbm" = "yes" -a \ |
| 526 "${with_database_gnudbm}" = "yes" ; then | 602 "$with_database_gnudbm" = "yes" ; then |
| 527 (echo "${progname}: Usage error:" | 603 (echo "$progname: Usage error:" |
| 528 echo " " "Only one of \`dbm' and \`gnudbm' may be specified | 604 echo " " "Only one of \`dbm' and \`gnudbm' may be specified |
| 529 with the \`--${optname}' option." | 605 with the \`--$optname' option." |
| 530 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 | 606 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 |
| 531 fi | 607 fi |
| 532 ;; | 608 ;; |
| 533 | 609 |
| 534 ## Has the user requested sound support? | 610 "with_sound" ) |
| 535 "with_sound" ) | 611 case "$val" in |
| 536 ## value can be native, nas or both. yes is allowed | |
| 537 ## as a backwards compatible synonym for native | |
| 538 case "${val}" in | |
| 539 y | ye | yes ) val=native ;; | 612 y | ye | yes ) val=native ;; |
| 540 n | no | non | none ) val=no;; | 613 n | no | non | none ) val=no;; |
| 541 na | nat | nati | nativ | native ) val=native ;; | 614 na | nat | nati | nativ | native ) val=native ;; |
| 542 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;; | 615 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;; |
| 543 b | bo | bot | both ) val=both;; | 616 b | bo | bot | both ) val=both;; |
| 544 * ) (echo "${progname}: Usage error:" | 617 * ) (echo "$progname: Usage error:" |
| 545 echo " " "The \`--${optname}' option must have one of these values: | 618 echo " " "The \`--$optname' option must have one of these values: |
| 546 \`native', \`nas', \`both', or \`none'." | 619 \`native', \`nas', \`both', or \`none'." |
| 547 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 ;; | 620 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; |
| 548 esac | 621 esac |
| 549 eval "${opt}=\"${val}\"" | 622 eval "$opt=\"$val\"" |
| 550 ;; | 623 ;; |
| 551 | 624 |
| 552 ## Has the user requested XIM support? | 625 "with_xim" ) |
| 553 "with_xim" ) | 626 case "$val" in |
| 554 ## value can be xlib or motif | 627 y | ye | yes ) val=yes ;; |
| 555 case "${val}" in | 628 n | no | non | none ) val=no ;; |
| 556 y | ye | yes ) val=yes ;; | 629 x | xl | xli | xlib ) val=xlib ;; |
| 557 n | no | non | none ) val=no ;; | 630 m | mo | mot | moti | motif ) val=motif ;; |
| 558 x | xl | xli | xlib ) val=xlib ;; | 631 * ) (echo "$progname: Usage error:" |
| 559 m | mo | mot | moti | motif ) val=motif ;; | 632 echo " " "The \`--$optname' option must have one of these values: |
| 560 * ) (echo "${progname}: Usage error:" | |
| 561 echo " " "The \`--${optname}' option must have one of these values: | |
| 562 \`motif', \`xlib', \`yes', or \`no'." | 633 \`motif', \`xlib', \`yes', or \`no'." |
| 563 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 ;; | 634 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; |
| 564 esac | 635 esac |
| 565 eval "${opt}=\"${val}\"" | 636 eval "$opt=\"$val\"" |
| 566 ;; | 637 ;; |
| 567 | 638 |
| 568 ## Has the user requested PNG support? | 639 "mail_locking" ) |
| 569 "with_png" ) | 640 case "$val" in |
| 570 ## Make sure the value given was either "yes", "no", or "gnuz". | 641 lockf ) val=lockf ;; |
| 571 case "${val}" in | 642 flock ) val=flock ;; |
| 572 y | ye | yes ) val=yes ;; | 643 file ) val=file ;; |
| 573 n | no ) val=no ;; | 644 * ) (echo "$progname: Usage error:" |
| 574 g | gn | gnu | gnuz ) val=gnuz ;; | 645 echo " " "The \`--$optname' option must have one of these values: |
| 575 * ) (echo "${progname}: Usage error:" | 646 \`lockf', \`flock', or \`file'." |
| 576 echo " " "The \`--${optname}' option must have one of these values: | 647 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; |
| 577 \`yes', \`no', or \`gnuz'." | |
| 578 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 ;; | |
| 579 esac | 648 esac |
| 580 eval "${opt}=\"${val}\"" | 649 eval "$opt=\"$val\"" |
| 581 ;; | 650 ;; |
| 582 | 651 |
| 583 ## Has the user requested error-checking? | 652 "error_checking" ) |
| 584 "error_checking" ) | 653 |
| 585 ## value can be all, none, and/or a list of categories to check. | 654 for x in `echo "$val" | sed 's/,/ /'` ; do |
| 586 ## Example: --error-checking=all,noextents,nobufpos | 655 case "$x" in |
| 587 ## Example: --error-checking=none,malloc,gc | 656 n | no | non | none ) new_default=no ;; |
| 588 | |
| 589 for x in `echo "${val}" | sed 's/,/ /'` ; do | |
| 590 case "${x}" in | |
| 591 # all and none are only permitted as the first in the list. | |
| 592 n | no | non | none ) new_default=no ;; | |
| 593 a | al | all ) new_default=yes ;; | 657 a | al | all ) new_default=yes ;; |
| 594 | 658 |
| 595 extents ) error_check_extents=yes ;; | 659 extents ) error_check_extents=yes ;; |
| 596 noextents ) error_check_extents=no ;; | 660 noextents ) error_check_extents=no ;; |
| 597 | 661 |
| 604 gc ) error_check_gc=yes ;; | 668 gc ) error_check_gc=yes ;; |
| 605 nogc ) error_check_gc=no ;; | 669 nogc ) error_check_gc=no ;; |
| 606 | 670 |
| 607 malloc ) error_check_malloc=yes ;; | 671 malloc ) error_check_malloc=yes ;; |
| 608 nomalloc ) error_check_malloc=no ;; | 672 nomalloc ) error_check_malloc=no ;; |
| 609 | 673 |
| 610 * ) bogus_error_check=yes ;; | 674 * ) bogus_error_check=yes ;; |
| 611 esac | 675 esac |
| 612 if test "$bogus_error_check" -o \ | 676 if test "$bogus_error_check" -o \ |
| 613 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then | 677 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then |
| 614 if test $error_check_default = yes ; then | 678 if test $error_check_default = yes ; then |
| 615 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'." | 679 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'." |
| 616 else | 680 else |
| 617 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'." | 681 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'." |
| 618 fi | 682 fi |
| 619 (echo "${progname}: Usage error:" | 683 (echo "$progname: Usage error:" |
| 620 echo " " "Valid types for the \`--${optname}' option are: | 684 echo " " "Valid types for the \`--$optname' option are: |
| 621 $types." | 685 $types." |
| 622 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 | 686 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 |
| 623 elif test "$new_default" ; then | 687 elif test "$new_default" ; then |
| 624 error_check_extents=$new_default | 688 error_check_extents=$new_default |
| 625 error_check_typecheck=$new_default | 689 error_check_typecheck=$new_default |
| 626 error_check_bufpos=$new_default | 690 error_check_bufpos=$new_default |
| 627 error_check_gc=$new_default | 691 error_check_gc=$new_default |
| 630 fi | 694 fi |
| 631 echeck_notfirst=true | 695 echeck_notfirst=true |
| 632 done | 696 done |
| 633 ;; | 697 ;; |
| 634 | 698 |
| 635 ## Has the user tried to tell us where the X files are? | 699 |
| 636 ## I think these are dopey, but no less than three alpha | 700 prefix | exec_prefix | bindir | datadir | statedir | libdir | \ |
| 637 ## testers, at large sites, have said they have their X files | |
| 638 ## installed in odd places. | |
| 639 | |
| 640 ## Has the user specified one of the path options? | |
| 641 prefix | exec_prefix | bindir | datadir | statedir | libdir | \ | |
| 642 mandir | infodir | lispdir | etcdir | lockdir | archlibdir | \ | 701 mandir | infodir | lispdir | etcdir | lockdir | archlibdir | \ |
| 643 sitelispdir | docdir ) | 702 sitelispdir | docdir ) |
| 644 ## If the value was omitted, get it from the next argument. | 703 if test "$valomitted" = "yes" ; then |
| 645 if test "${valomitted}" = "yes" ; then | |
| 646 if test "$#" = 0 ; then | 704 if test "$#" = 0 ; then |
| 647 (echo "${progname}: Usage error:" | 705 (echo "$progname: Usage error:" |
| 648 echo " " "The \`--${optname}' option requires a value." | 706 echo " " "The \`--$optname' option requires a value." |
| 649 echo " Use \`${progname} --help' for more details.") >&2 && exit 1; | 707 echo " Use \`$progname --help' to show usage.") >&2 && exit 1; |
| 650 fi | 708 fi |
| 651 val="$1"; shift | 709 val="$1"; shift |
| 652 fi | 710 fi |
| 653 eval "${opt}=\"${val}\"" | 711 eval "$opt=\"$val\"" |
| 654 | 712 |
| 655 ## Changing exec_prefix or libdir will change the default value | 713 case "$opt" in |
| 656 ## of archlibdir. Changing datadir will change the default value | 714 lispdir ) lispdir_user_defined=yes ;; |
| 657 ## of etcdir and lispdir. Changing statedir will change the | 715 etcdir ) etcdir_user_defined=yes ;; |
| 658 ## default value of lockdir. | 716 infodir ) infodir_user_defined=yes ;; |
| 659 if test "${opt}" = exec_prefix; then archlibdir_user_defined=yes | 717 datadir ) lispdir_user_defined=yes etcdir_user_defined=yes ;; |
| 660 elif test "${opt}" = libdir ; then archlibdir_user_defined=yes | 718 statedir | lockdir ) lockdir_user_defined=yes ;; |
| 661 elif test "${opt}" = archlibdir ; then archlibdir_user_defined=yes | 719 exec_prefix | libdir | archlibdir ) archlibdir_user_defined=yes ;; |
| 662 elif test "${opt}" = lispdir ; then lispdir_user_defined=yes | 720 esac |
| 663 elif test "${opt}" = etcdir ; then etcdir_user_defined=yes | |
| 664 elif test "${opt}" = datadir ; then | |
| 665 lispdir_user_defined=yes | |
| 666 etcdir_user_defined=yes | |
| 667 elif test "${opt}" = statedir ; then lockdir_user_defined=yes | |
| 668 elif test "${opt}" = lockdir ; then lockdir_user_defined=yes | |
| 669 elif test "${opt}" = infodir ; then infodir_user_defined=yes | |
| 670 fi | |
| 671 ;; | 721 ;; |
| 672 | 722 |
| 673 ## Has the user specified values to override CFLAGS? | 723 cflags ) |
| 674 cflags ) | 724 if test "$valomitted" = "yes" ; then |
| 675 ## If the value was omitted, get it from the next argument. | 725 if test "$#" = 0; then |
| 676 if test "${valomitted}" = "yes" ; then | 726 (echo "$progname: Usage error:" |
| 677 if test "$#" = 0 ; then | 727 echo " " "The \`--$optname' option requires a value." |
| 678 (echo "${progname}: Usage error:" | 728 echo " Use \`$progname --help' to show usage.") >&2 && exit 1; |
| 679 echo " " "The \`--${optname}' option requires a value." | |
| 680 echo " Use \`${progname} --help' for more details.") >&2 && exit 1; | |
| 681 fi | 729 fi |
| 682 val="$1"; shift | 730 val="$1"; shift |
| 683 fi | 731 fi |
| 684 eval "${opt}=\"${val}\"" | 732 eval "$opt=\"$val\"" |
| 685 eval "${opt}_specified=1" | 733 eval "${opt}_specified=1" |
| 686 ;; | 734 ;; |
| 687 | 735 |
| 688 ## --no-create added by autoconf for use by config.status | 736 "no_create" ) ;; |
| 689 "no_create" ) | 737 |
| 690 ;; | 738 "usage" | "help" ) echo "$usage" | ${PAGER-more}; exit 0 ;; |
| 691 | 739 |
| 692 ## Has the user asked for some help? | 740 "with_menubars" | "with_scrollbars" | "with_dialogs" ) |
| 693 "usage" | "help" ) | 741 case "$val" in |
| 694 echo "${short_usage}" | ${PAGER:-more} | |
| 695 exit 0 | |
| 696 ;; | |
| 697 | |
| 698 ## Has the user specified what toolkit to use for the menubars, | |
| 699 ## scrollbar or dialogs? | |
| 700 "with_menubars" | "with_scrollbars" | "with_dialogs" ) | |
| 701 ## value can be lucid, motif, or athena. | |
| 702 case "${val}" in | |
| 703 l | lu | luc | luci | lucid ) val=lucid ;; | 742 l | lu | luc | luci | lucid ) val=lucid ;; |
| 704 m | mo | mot | moti | motif ) val=motif ;; | 743 m | mo | mot | moti | motif ) val=motif ;; |
| 705 athena3d | athena-3d ) val=athena3d ;; | 744 athena3d | athena-3d ) val=athena3d ;; |
| 706 a | at | ath | athe | athen | athena ) val=athena ;; | 745 a | at | ath | athe | athen | athena ) val=athena ;; |
| 707 n | no | non | none ) val=no ;; | 746 n | no | non | none ) val=no ;; |
| 708 * ) (echo "${progname}: Usage error:" | 747 * ) (echo "$progname: Usage error:" |
| 709 echo " " "The \`--${optname}' option must have one of these values: | 748 echo " " "The \`--$optname' option must have one of these values: |
| 710 \`lucid', \`motif', \`athena', or \`no'." | 749 \`lucid', \`motif', \`athena', \`athena3d', or \`no'." |
| 711 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 ;; | 750 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; |
| 712 esac | 751 esac |
| 713 eval "${opt}=\"${val}\"" | 752 eval "$opt=\"$val\"" |
| 714 ;; | 753 ;; |
| 715 | 754 |
| 716 ## Fail on unrecognized arguments. | 755 * ) (echo "$progname: Usage error:" |
| 717 * ) (echo "${progname}: Usage error:" | 756 echo " " "Unrecognized option: $arg" |
| 718 echo " " "Unrecognized option: ${arg}" | 757 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; |
| 719 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 ;; | |
| 720 | 758 |
| 721 esac | 759 esac |
| 722 ;; | 760 ;; |
| 723 | 761 |
| 724 ## Anything not starting with a hyphen we assume is a | 762 *) configuration="$arg" ;; |
| 725 ## configuration name. | |
| 726 *) | |
| 727 configuration=${arg} | |
| 728 ;; | |
| 729 | 763 |
| 730 esac | 764 esac |
| 731 done | 765 done |
| 732 | 766 |
| 733 ############################################################################ | 767 |
| 734 # # | |
| 735 # Finish options processing # | |
| 736 # # | |
| 737 ############################################################################ | |
| 738 | |
| 739 ### Get the arguments back. See the diatribe on Shell Magic above. | |
| 740 eval set x "$quoted_arguments"; shift | 768 eval set x "$quoted_arguments"; shift |
| 741 | 769 |
| 742 ### Argument interdependencies | 770 if test "$with_energize" = "yes" ; then |
| 743 if test "${with_energize}" = "yes" ; then | 771 with_menubars=lucid with_scrollbars=motif with_dialogs=motif with_tooltalk=yes |
| 744 with_menubars="lucid" | 772 MAKE_SUBDIR="$MAKE_SUBDIR lwlib/energize" |
| 745 with_scrollbars="motif" | 773 fi |
| 746 with_dialogs="motif" | 774 |
| 747 with_tooltalk="yes" | 775 test "$extra_verbose" = "yes" && verbose=yes |
| 748 internal_makefile_list="$internal_makefile_list lwlib/energize/Makefile.in" | 776 |
| 749 fi | 777 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias |
| 750 | 778 if test "$with_workshop" = "yes"; then |
| 751 ### --extra-verbose implies --verbose | 779 { test "$extra_verbose" = "yes" && cat << \EOF |
| 752 test "${extra_verbose}" = yes && verbose=yes | 780 Defining SUNPRO |
| 753 | 781 EOF |
| 754 ### Sparcworks requires tooltalk | 782 cat >> confdefs.h <<\EOF |
| 755 test "${with_sparcworks}" = yes && with_tooltalk=yes | 783 #define SUNPRO 1 |
| 756 | 784 EOF |
| 757 ### debug implies other options | 785 } |
| 758 test "${debug}" = "yes" && use_assertions=yes memory_usage_stats=yes | 786 |
| 759 | 787 extra_objs="$extra_objs sunpro.o" |
| 760 ### with_x is a synonym for with_x11 | 788 with_tooltalk=yes |
| 761 test -n "${with_x}" && with_x11="${with_x}" | 789 fi |
| 762 | 790 |
| 763 ### Can't specify 2 compilers | 791 case "site_includes" in *:* ) site_includes="`echo $site_includes | sed 's/:/ /g'`";; esac |
| 764 if test "${with_gcc}" = "yes" -a "${with_lcc}" = "yes"; then | 792 case "site_libraries" in *:* ) site_libraries="`echo $site_libraries | sed 's/:/ /g'`";; esac |
| 765 (echo "${progname}: Usage error:" | 793 case "site_runtime_libraries" in *:* ) site_runtime_libraries="`echo $site_runtime_libraries | sed 's/:/ /g'`";; esac |
| 766 echo " " "Only one of --with-gcc and --with-lcc may be specified." | 794 |
| 767 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 | 795 if test "$debug" = "yes"; then |
| 768 fi | 796 use_assertions=yes memory_usage_stats=yes |
| 769 | 797 extra_objs="$extra_objs debug.o" |
| 770 ### Ignore useless run-in-place flag | 798 fi |
| 771 if test "${run_in_place}" = "yes"; then | 799 |
| 772 echo "configure: warning: The --run-in-place option is ignored because it is unnecessary." >&2 | 800 test -n "$with_x" && with_x11="$with_x" |
| 773 fi | 801 |
| 774 | 802 if test "$run_in_place" = "yes"; then |
| 775 ########################################################################### | 803 echo "configure: warning: "The --run-in-place option is ignored because it is unnecessary."" 1>&2 |
| 776 if test "${configuration}" = "" ; then | 804 fi |
| 805 | |
| 806 if test "$configuration" = "" ; then | |
| 777 echo '- You did not tell me what kind of host system you want to configure. | 807 echo '- You did not tell me what kind of host system you want to configure. |
| 778 - I will attempt to guess the kind of system this is.' 1>&2 | 808 - I will attempt to guess the kind of system this is.' 1>&2 |
| 779 guesssys=`echo ${progname} | sed 's/configure$/config.guess/'` | 809 guesssys=`echo $progname | sed 's/configure$/config.guess/'` |
| 780 if configuration=`${CONFIG_SHELL-/bin/sh} ${guesssys}` ; then | 810 if configuration=`${CONFIG_SHELL-/bin/sh} $guesssys | \ |
| 781 echo "- Looks like this is a ${configuration}" 1>&2 | 811 sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` ; then |
| 812 echo "- Looks like this is a $configuration" 1>&2 | |
| 782 else | 813 else |
| 783 (echo "${progname}: Usage error:" | 814 (echo "$progname: Usage error:" |
| 784 echo " " "Failed to guess the system type. You need to tell me." | 815 echo " " "Failed to guess the system type. You need to tell me." |
| 785 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 | 816 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 |
| 786 fi | 817 fi |
| 787 fi | 818 fi |
| 788 | 819 |
| 789 ### Find the source directory. | 820 case "$srcdir" in |
| 790 case "${srcdir}" in | 821 |
| 791 | 822 "" ) |
| 792 ## If it's not specified, see if `.' or `..' might work. | |
| 793 "" ) | |
| 794 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do | 823 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do |
| 795 if test -f "$dir/src/lisp.h" -a \ | 824 if test -f "$dir/src/lisp.h" -a \ |
| 796 -f "$dir/lisp/version.el" ; then | 825 -f "$dir/lisp/version.el" ; then |
| 797 srcdir="${dir}" | 826 srcdir="$dir" |
| 798 break | 827 break |
| 799 fi | 828 fi |
| 800 done | 829 done |
| 801 if test -z "${srcdir}" ; then | 830 if test -z "$srcdir" ; then |
| 802 (echo "${progname}: Usage error:" | 831 (echo "$progname: Usage error:" |
| 803 echo " " "Neither the current directory nor its parent seem to | 832 echo " " "Neither the current directory nor its parent seem to |
| 804 contain the XEmacs sources. If you do not want to build XEmacs in its | 833 contain the XEmacs sources. If you do not want to build XEmacs in its |
| 805 source tree, you should run \`${progname}' in the directory in which | 834 source tree, you should run \`$progname' in the directory in which |
| 806 you wish to build XEmacs, using the \`--srcdir' option to say where the | 835 you wish to build XEmacs, using the \`--srcdir' option to say where the |
| 807 sources may be found." | 836 sources may be found." |
| 808 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 | 837 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 |
| 809 fi | 838 fi |
| 810 ;; | 839 ;; |
| 811 | 840 |
| 812 ## Otherwise, check if the directory they specified is okay. | 841 * ) |
| 813 * ) | 842 if test ! -d "$srcdir" -o \ |
| 814 if test ! -d "${srcdir}" -o \ | 843 ! -f "$srcdir/src/lisp.h" -o \ |
| 815 ! -f "${srcdir}/src/lisp.h" -o \ | 844 ! -f "$srcdir/lisp/version.el" ; then |
| 816 ! -f "${srcdir}/lisp/version.el" ; then | 845 (echo "$progname: Usage error:" |
| 817 (echo "${progname}: Usage error:" | |
| 818 echo " " "The directory specified with the \`--srcdir' option, | 846 echo " " "The directory specified with the \`--srcdir' option, |
| 819 \`${srcdir}', doesn't seem to contain the XEmacs sources. You should | 847 \`$srcdir', doesn't seem to contain the XEmacs sources. You should |
| 820 either run the \`${progname}' script at the top of the XEmacs source | 848 either run the \`$progname' script at the top of the XEmacs source |
| 821 tree, or use the \`--srcdir' option to specify the XEmacs source directory." | 849 tree, or use the \`--srcdir' option to specify the XEmacs source directory." |
| 822 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 | 850 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 |
| 823 fi | 851 fi |
| 824 ;; | 852 ;; |
| 825 esac | 853 esac |
| 826 | 854 |
| 827 ## We check for this now instead of later when we check for other | 855 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
| 828 ## programs because we need to use its return value now. | 856 echo "configure:857: checking whether ln -s works" >&5 |
| 829 test -n "$silent" || echo "checking for ln -s" | 857 |
| 830 rm -f conftestdata | 858 rm -f conftestdata |
| 831 if ln -s X conftestdata 2>/dev/null | 859 if ln -s X conftestdata 2>/dev/null |
| 832 then | 860 then |
| 833 rm -f conftestdata | 861 rm -f conftestdata |
| 834 LN_S="ln -s" | 862 ac_cv_prog_LN_S="ln -s" |
| 835 else | 863 else |
| 836 LN_S=ln | 864 ac_cv_prog_LN_S=ln |
| 837 fi | 865 fi |
| 838 | 866 LN_S="$ac_cv_prog_LN_S" |
| 839 | 867 if test "$ac_cv_prog_LN_S" = "ln -s"; then |
| 840 | 868 echo "$ac_t""yes" 1>&6 |
| 841 test -n "$verbose" && echo " "setting LN_S to ${LN_S}"" | 869 else |
| 842 | 870 echo "$ac_t""no" 1>&6 |
| 843 #### Make symlinks for etc, lisp, and info directories while the path | 871 fi |
| 844 #### is still relative. We don't symlink lock because someone may | 872 |
| 845 #### have stuck the source on a read-only partition. Instead we'll | 873 |
| 846 #### create it as an actual directory later on if it doesn't already | |
| 847 #### exist. | |
| 848 for dir in lisp etc man info site-lisp | 874 for dir in lisp etc man info site-lisp |
| 849 do | 875 do |
| 850 if test ! -d $dir ; then | 876 if test ! -d "$dir" ; then |
| 851 echo Making symbolic link to ${srcdir}/$dir | 877 echo Making symbolic link to "$srcdir/$dir" |
| 852 ${LN_S} ${srcdir}/$dir . | 878 ${LN_S} "$srcdir/$dir" . |
| 853 fi | 879 fi |
| 854 done | 880 done |
| 855 | 881 |
| 856 #### Make srcdir absolute, if it isn't already. It's important to | 882 case "$srcdir" in |
| 857 #### avoid running the path through pwd unnecessary, since pwd can | |
| 858 #### give you automounter prefixes, which can go away. | |
| 859 case "${srcdir}" in | |
| 860 /* ) ;; | 883 /* ) ;; |
| 861 . ) | 884 . ) |
| 862 ## We may be able to use the $PWD environment variable to make this | 885 if test "$PWD" != "" -a "`(cd $PWD ; sh -c pwd)`" = "`pwd`"; then |
| 863 ## absolute. But sometimes PWD is inaccurate. | |
| 864 if test "${PWD}" != "" -a "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`"; then | |
| 865 srcdir="$PWD" | 886 srcdir="$PWD" |
| 866 else | 887 else |
| 867 srcdir="`(cd ${srcdir}; pwd)`" | 888 srcdir="`(cd $srcdir && pwd)`" |
| 868 fi | 889 fi |
| 869 ;; | 890 ;; |
| 870 * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | 891 * ) srcdir="`(cd $srcdir && pwd)`" ;; |
| 871 esac | 892 esac |
| 872 | 893 |
| 873 #### Check if the source directory already has a configured system in it. | 894 if test `pwd` != `sh -c cd $srcdir && pwd` \ |
| 874 if test `pwd` != `sh -c cd ${srcdir} && pwd` \ | 895 && test -f "$srcdir/src/config.h"; then |
| 875 && test -f "${srcdir}/src/config.h"; then | 896 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used" |
| 876 (echo "${progname}: WARNING: The directory tree \`${srcdir}' is being used" | |
| 877 echo " as a build directory right now; it has been configured in its own" | 897 echo " as a build directory right now; it has been configured in its own" |
| 878 echo " right. To configure in another directory as well, you MUST" | 898 echo " right. To configure in another directory as well, you MUST" |
| 879 echo " use GNU make. If you do not have GNU make, then you must" | 899 echo " use GNU make. If you do not have GNU make, then you must" |
| 880 echo " now do \`make distclean' in ${srcdir}," | 900 echo " now do \`make distclean' in $srcdir," |
| 881 echo " and then run ${progname} again.") >&2 | 901 echo " and then run $progname again.") >&2 |
| 882 extrasub='/^VPATH[ ]*=/c\ | 902 extrasub='/^VPATH[ ]*=/c\ |
| 883 vpath %.c $(srcdir)\ | 903 vpath %.c $(srcdir)\ |
| 884 vpath %.h $(srcdir)\ | 904 vpath %.h $(srcdir)\ |
| 885 vpath %.y $(srcdir)\ | 905 vpath %.y $(srcdir)\ |
| 886 vpath %.l $(srcdir)\ | 906 vpath %.l $(srcdir)\ |
| 887 vpath %.s $(srcdir)\ | 907 vpath %.s $(srcdir)\ |
| 888 vpath %.in $(srcdir)' | 908 vpath %.in $(srcdir)' |
| 889 fi | 909 fi |
| 890 | 910 |
| 891 ### Make the necessary directories, if they don't exist. | |
| 892 for dir in ./src ./lib-src ./dynodump ./lwlib ./lock ; do | 911 for dir in ./src ./lib-src ./dynodump ./lwlib ./lock ; do |
| 893 if test ! -d ${dir} ; then | 912 test ! -d "$dir" && mkdir "$dir" |
| 894 mkdir ${dir} | |
| 895 fi | |
| 896 done | 913 done |
| 897 if test "${with_energize}" = "yes" -a ! -d ./lwlib/energize; then | 914 if test "$with_energize" = "yes" -a ! -d ./lwlib/energize; then |
| 898 mkdir ./lwlib/energize | 915 mkdir ./lwlib/energize |
| 899 fi | 916 fi |
| 900 | 917 |
| 901 ############################################################################ | 918 |
| 902 # # | 919 echo "checking "the configuration name"" 1>&6 |
| 903 # Determine the s&m files to use # | 920 echo "configure:921: checking "the configuration name"" >&5 |
| 904 # # | 921 internal_configuration=`echo $configuration | sed 's/-\(energize\|workshop\)//'` |
| 905 ############################################################################ | 922 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else |
| 906 | |
| 907 #### Given the configuration name, set machfile and opsysfile to the | |
| 908 #### names of the m/*.h and s/*.h files we should use. | |
| 909 | |
| 910 ### Canonicalize the configuration name. | |
| 911 echo "checking the configuration name" | |
| 912 # allow -energize prefix on configuration name | |
| 913 internal_configuration=`echo ${configuration} | sed 's/-energize//'` | |
| 914 # allow --sparcworks prefix on configuration name | |
| 915 internal_configuration=`echo ${configuration} | sed 's/-sparcworks//'` | |
| 916 if canonical=`${srcdir}/config.sub "${internal_configuration}"` ; then : ; else | |
| 917 exit $? | 923 exit $? |
| 918 fi | 924 fi |
| 919 | 925 |
| 920 ### If you add support for a new configuration, add code to this | 926 |
| 921 ### switch statement to recognize your configuration name and select | 927 |
| 922 ### the appropriate operating system and machine description files. | 928 |
| 923 | 929 |
| 924 ### You would hope that you could choose an m/*.h file pretty much | 930 machine='' opsys='' need_dynodump=no |
| 925 ### based on the machine portion of the configuration name, and an s- | 931 |
| 926 ### file based on the operating system portion. However, it turns out | 932 case "$canonical" in |
| 927 ### that each m/*.h file is pretty manufacturer-specific - for | 933 sparc-*-* ) machine=sparc ;; |
| 928 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | 934 alpha-*-* ) machine=alpha ;; |
| 929 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | 935 vax-*-* ) machine=vax ;; |
| 930 ### machines. So we basically have to have a special case for each | 936 mips-dec-* ) machine=pmax ;; |
| 931 ### configuration name. | 937 mips-sgi-* ) machine=iris4d ;; |
| 932 ### | 938 romp-ibm-* ) machine=ibmrt ;; |
| 933 ### As far as handling version numbers on operating systems is | 939 rs6000-ibm-aix* ) machine=ibmrs6000 ;; |
| 934 ### concerned, make sure things will fail in a fixable way. If | 940 powerpc-ibm-aix* ) machine=ibmrs6000 ;; |
| 935 ### /etc/MACHINES doesn't say anything about version numbers, be | 941 powerpc-*-* ) machine=powerpc ;; |
| 936 ### prepared to handle anything reasonably. If version numbers | 942 hppa-*-* ) machine=hp800 ;; |
| 937 ### matter, be sure /etc/MACHINES says something about it. | 943 m88k-dg-* ) machine=aviion ;; |
| 938 ### | 944 m68*-sony-* ) machine=news ;; |
| 939 ### Eric Raymond says we should accept strings like "sysvr4" to mean | 945 mips-sony-* ) machine=news-risc ;; |
| 940 ### "System V Release 4"; he writes, "The old convention encouraged | 946 clipper-* ) machine=clipper ;; |
| 941 ### confusion between `system' and `release' levels'." | 947 esac |
| 942 | 948 |
| 943 machine='' opsys='' unported=no need_dynodump=no | 949 case "$canonical" in |
| 944 case "${canonical}" in | 950 *-*-linux* ) opsys=linux ;; |
| 945 | 951 *-*-netbsd* ) opsys=netbsd ;; |
| 946 ## NetBSD ports | 952 *-*-nextstep* ) opsys=nextstep ;; |
| 947 *-*-netbsd* ) | 953 *-*-vms ) opsys=vms ;; |
| 948 opsys=netbsd | 954 |
| 949 case "${canonical}" in | 955 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;; |
| 950 sparc-*-netbsd*) machine=sparc ;; | 956 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;; |
| 957 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;; | |
| 958 *-dec-osf3* ) opsys=decosf3-1 ;; | |
| 959 *-dec-osf4* ) opsys=decosf4-0 ;; | |
| 960 | |
| 961 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;; | |
| 962 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;; | |
| 963 *-*-ultrix* ) opsys=ultrix4-3 ;; | |
| 964 | |
| 965 *-*-aix3.1* ) opsys=aix3-1 ;; | |
| 966 *-*-aix3.2.5 ) opsys=aix3-2-5 ;; | |
| 967 *-*-aix3* ) opsys=aix3-2 ;; | |
| 968 *-*-aix4.2* ) opsys=aix4-2 ;; | |
| 969 *-*-aix4.1* ) opsys=aix4-1 ;; | |
| 970 *-*-aix4* ) opsys=aix4 ;; | |
| 971 | |
| 972 *-gnu* ) opsys=gnu ;; | |
| 973 *-*-bsd4.[01] ) opsys=bsd4-1 ;; | |
| 974 *-*-bsd4.2 ) opsys=bsd4-2 ;; | |
| 975 *-*-bsd4.3 ) opsys=bsd4-3 ;; | |
| 976 *-*-aos4.2 ) opsys=bsd4-2 ;; | |
| 977 *-*-aos* ) opsys=bsd4-3 ;; | |
| 978 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;; | |
| 979 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;; | |
| 980 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;; | |
| 981 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;; | |
| 982 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;; | |
| 983 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
| 984 if test -z "$NON_GNU_CPP" ; then | |
| 985 if test -f /usr/ccs/lib/cpp | |
| 986 then NON_GNU_CPP=/usr/ccs/lib/cpp | |
| 987 else NON_GNU_CPP=/lib/cpp | |
| 988 fi | |
| 989 fi | |
| 990 opsys=usg5-4-2 ;; | |
| 991 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
| 992 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;; | |
| 993 esac | |
| 994 | |
| 995 case "$canonical" in | |
| 996 | |
| 997 *-*-netbsd* ) | |
| 998 case "$canonical" in | |
| 951 i[3-9]86-*-netbsd*) machine=intel386 ;; | 999 i[3-9]86-*-netbsd*) machine=intel386 ;; |
| 952 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* ) | 1000 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* ) |
| 953 # Yes, this is somewhat bogus. | 1001 machine=hp9000s300 ;; |
| 954 machine=hp9000s300 ;; | |
| 955 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;; | 1002 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;; |
| 956 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;; | 1003 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;; |
| 957 esac | 1004 esac |
| 958 ;; | 1005 ;; |
| 959 | 1006 |
| 960 ## Acorn RISCiX: | 1007 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;; |
| 961 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;; | |
| 962 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;; | 1008 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;; |
| 963 | 1009 |
| 964 ## Alliant machines | 1010 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;; |
| 965 ## Strictly speaking, we need the version of the alliant operating | |
| 966 ## system to choose the right machine file, but currently the | |
| 967 ## configuration name doesn't tell us enough to choose the right | |
| 968 ## one; we need to give alliants their own operating system name to | |
| 969 ## do this right. When someone cares, they can help us. | |
| 970 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;; | |
| 971 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;; | 1011 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;; |
| 972 | 1012 |
| 973 ## Alpha (DEC) machines. | 1013 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;; |
| 974 ## XEmacs change: split apart into numerous files. | 1014 |
| 975 alpha-*-* ) | 1015 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;; |
| 976 machine=alpha | 1016 |
| 977 case "${canonical}" in | 1017 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;; |
| 978 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;; | 1018 |
| 979 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;; | 1019 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;; |
| 980 | 1020 |
| 981 ## XEmacs: Add switch for OSF 1 version 3 (roth@cse.ucsc.edu) | 1021 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;; |
| 982 ## XEmacs: Add switch for Digital Unix version 4 (srivasta@pilgrim.umass.edu) | 1022 |
| 983 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;; | 1023 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20 |
| 984 *-dec-osf3* ) opsys=decosf3-1 ;; | |
| 985 *-dec-osf4* ) opsys=decosf4-0 ;; | |
| 986 *-*-linux* ) opsys=linux ;; | |
| 987 esac | |
| 988 ;; | |
| 989 | |
| 990 ## Altos 3068 | |
| 991 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;; | |
| 992 | |
| 993 ## Amdahl UTS | |
| 994 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;; | |
| 995 | |
| 996 ## Apollo, Domain/OS | |
| 997 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;; | |
| 998 | |
| 999 ## AT&T 3b2, 3b5, 3b15, 3b20 | |
| 1000 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;; | |
| 1001 | |
| 1002 ## AT&T 3b1 - The Mighty Unix PC! | |
| 1003 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;; | |
| 1004 | |
| 1005 ## Bull machines | |
| 1006 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20 | |
| 1007 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2 | 1024 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2 |
| 1008 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7 | 1025 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7 |
| 1009 | 1026 |
| 1010 ## CCI 5/32, 6/32 -- see "Tahoe". | 1027 |
| 1011 | 1028 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;; |
| 1012 ## Celerity | 1029 |
| 1013 ## I don't know what configuration name to use for this; config.sub | 1030 *-convex-bsd* | *-convex-convexos* ) |
| 1014 ## doesn't seem to know anything about it. Hey, Celerity users, get | |
| 1015 ## in touch with us! | |
| 1016 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;; | |
| 1017 | |
| 1018 ## Clipper | |
| 1019 ## What operating systems does this chip run that XEmacs has been | |
| 1020 ## tested on? | |
| 1021 clipper-* ) machine=clipper | |
| 1022 ## We'll use the catch-all code at the bottom to guess the | |
| 1023 ## operating system. | |
| 1024 ;; | |
| 1025 | |
| 1026 ## Convex | |
| 1027 *-convex-bsd* | *-convex-convexos* ) | |
| 1028 machine=convex opsys=bsd4-3 | 1031 machine=convex opsys=bsd4-3 |
| 1029 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | |
| 1030 NON_GNU_CPP="cc -E -P" | 1032 NON_GNU_CPP="cc -E -P" |
| 1031 ;; | 1033 ;; |
| 1032 | 1034 |
| 1033 ## Cubix QBx/386 | 1035 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;; |
| 1034 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;; | 1036 |
| 1035 | 1037 cydra*-cydrome-sysv* ) machine=cydra5 opsys=usg5-3 ;; |
| 1036 ## Cydra 5 | 1038 |
| 1037 cydra*-cydrome-sysv* ) machine=cydra5 opsys=usg5-3 ;; | 1039 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;; |
| 1038 | 1040 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;; |
| 1039 ## Data General AViiON Machines | 1041 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;; |
| 1040 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;; | 1042 m88k-dg-dgux* ) opsys=dgux ;; |
| 1041 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) machine=aviion opsys=dgux5-4r3 ;; | 1043 |
| 1042 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) machine=aviion opsys=dgux5-4r2 ;; | 1044 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;; |
| 1043 m88k-dg-dgux* ) machine=aviion opsys=dgux ;; | |
| 1044 | |
| 1045 ## Dec Mips machines | |
| 1046 mips-dec-* ) | |
| 1047 machine=pmax | |
| 1048 case "${canonical}" in | |
| 1049 *-*-ultrix[0-3].* | *-*-ultrix4.0* | *-*-bsd4.2* ) opsys=bsd4-2 ;; | |
| 1050 *-*-ultrix4.[12]* | *-*-bsd* ) opsys=bsd4-3 ;; | |
| 1051 *-*-ultrix* ) opsys=ultrix4-3 ;; | |
| 1052 *-*-osf* ) opsys=osf1 ;; | |
| 1053 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;; | |
| 1054 esac | |
| 1055 ;; | |
| 1056 | |
| 1057 ## Motorola Delta machines | |
| 1058 m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
| 1059 machine=delta opsys=usg5-3 | |
| 1060 if test -z "`type gnucc | grep 'not found'`" | |
| 1061 then | |
| 1062 if test -s /etc/167config | |
| 1063 then CC="gnucc -m68040" | |
| 1064 else CC="gnucc -m68881" | |
| 1065 fi | |
| 1066 else | |
| 1067 if test -z "`type gcc | grep 'not found'`" | |
| 1068 then CC=gcc | |
| 1069 else CC=cc | |
| 1070 fi | |
| 1071 fi | |
| 1072 ;; | |
| 1073 m88k-motorola-sysv4* ) | 1045 m88k-motorola-sysv4* ) |
| 1074 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 | 1046 machine=delta88k opsys=usg5-4-2 |
| 1075 # needs POSIX_SIGNALS and therefore needs usg5-4-2. | |
| 1076 # I hope there are not other 4.0 versions for this machine | |
| 1077 # which really need usg5-4 instead. | |
| 1078 machine=delta88k opsys=usg5-4-2 | |
| 1079 ;; | 1047 ;; |
| 1080 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;; | 1048 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;; |
| 1081 | 1049 |
| 1082 ## Dual machines | 1050 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;; |
| 1083 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;; | |
| 1084 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;; | 1051 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;; |
| 1085 | 1052 |
| 1086 ## Elxsi 6400 | 1053 elxsi-elxsi-sysv* ) machine=elxsi opsys=usg5-2 ;; |
| 1087 elxsi-elxsi-sysv* ) machine=elxsi opsys=usg5-2 ;; | 1054 |
| 1088 | 1055 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;; |
| 1089 ## Encore machines | 1056 |
| 1090 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;; | 1057 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;; |
| 1091 | |
| 1092 ## Gould Power Node and NP1 | |
| 1093 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;; | |
| 1094 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;; | 1058 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;; |
| 1095 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;; | 1059 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;; |
| 1096 | 1060 |
| 1097 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | 1061 m88k-harris-cxux* ) |
| 1098 ## as far as XEmacs is concerned). | 1062 case "`uname -r`" in |
| 1099 m88k-harris-cxux* ) | |
| 1100 # Build needs to be different on 7.0 and later releases | |
| 1101 case "`uname -r`" in | |
| 1102 [56].[0-9] ) machine=nh4000 opsys=cxux ;; | 1063 [56].[0-9] ) machine=nh4000 opsys=cxux ;; |
| 1103 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | 1064 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; |
| 1104 esac | 1065 esac |
| 1105 NON_GNU_CPP="/lib/cpp" | 1066 NON_GNU_CPP="/lib/cpp" |
| 1106 ;; | 1067 ;; |
| 1107 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | 1068 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;; |
| 1108 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;; | 1069 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;; |
| 1109 ## Harris power pc NightHawk running Power UNIX (Series 6000) | 1070 |
| 1110 powerpc-harris-powerunix ) | 1071 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;; |
| 1111 machine=nh6000 opsys=powerunix | 1072 |
| 1112 NON_GNU_CPP="cc -Xo -E -P" | 1073 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;; |
| 1113 ;; | 1074 |
| 1114 | 1075 *-hp-hpux* ) |
| 1115 ## Honeywell XPS100 | 1076 case "$canonical" in |
| 1116 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;; | |
| 1117 | |
| 1118 ## HP 9000 series 200 or 300 | |
| 1119 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;; | |
| 1120 | |
| 1121 ## HP-UX on HP's | |
| 1122 *-hp-hpux* ) | |
| 1123 NON_GNU_CC="cc -Aa" | |
| 1124 NON_GNU_CPP="cc -Aa -E" | |
| 1125 | |
| 1126 ### Figure out machine and opsys orthogonally | |
| 1127 case "${canonical}" in | |
| 1128 m68* ) machine=hp9000s300 ;; | 1077 m68* ) machine=hp9000s300 ;; |
| 1129 hppa* ) machine=hp800 ;; | 1078 hppa* ) machine=hp800 ;; |
| 1130 esac | 1079 esac |
| 1131 | 1080 |
| 1132 case "${canonical}" in | 1081 case "$canonical" in |
| 1133 *-hp-hpux7* ) opsys=hpux ;; | 1082 *-hp-hpux7* ) opsys=hpux ;; |
| 1134 *-hp-hpux8* ) opsys=hpux8 ;; | 1083 *-hp-hpux8* ) opsys=hpux8 ;; |
| 1135 *-hp-hpux9* ) opsys=hpux9 ;; | 1084 *-hp-hpux9* ) opsys=hpux9 ;; |
| 1136 *-hp-hpux10* ) opsys=hpux10 ;; | 1085 *-hp-hpux10* ) opsys=hpux10 ;; |
| 1137 * ) | 1086 * ) |
| 1138 case "`uname -r`" in | 1087 case "`uname -r`" in |
| 1139 ## Someone's system reports A.B8.05 for this. | |
| 1140 ## I wonder what other possibilities there are. | |
| 1141 *.B8.* ) opsys=hpux8 ;; | 1088 *.B8.* ) opsys=hpux8 ;; |
| 1142 *.08.* ) opsys=hpux8 ;; | 1089 *.08.* ) opsys=hpux8 ;; |
| 1143 *.09.* ) opsys=hpux9 ;; | 1090 *.09.* ) opsys=hpux9 ;; |
| 1144 *.10.* ) opsys=hpux10 ;; | 1091 *.10.* ) opsys=hpux10 ;; |
| 1145 * ) opsys=hpux ;; | 1092 * ) opsys=hpux ;; |
| 1146 esac | 1093 esac |
| 1147 ;; | 1094 ;; |
| 1148 esac | 1095 esac |
| 1149 | 1096 |
| 1150 if test $opsys = hpux10 ; then | 1097 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o";; esac |
| 1151 NON_GNU_CC="cc -Ae" | 1098 |
| 1152 NON_GNU_CPP="cc -Ae -E" | 1099 if test "$opsys" = "hpux10"; then ansi_flag="-Ae"; else ansi_flag="-Aa"; fi |
| 1153 fi | 1100 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E" |
| 1154 | 1101 |
| 1155 case "${canonical}" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac | 1102 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac |
| 1156 ;; | 1103 ;; |
| 1157 | 1104 |
| 1158 hppa-*-nextstep* ) machine=hp800 opsys=nextstep ;; | 1105 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;; |
| 1159 | |
| 1160 ## Orion machines | |
| 1161 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;; | |
| 1162 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;; | 1106 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;; |
| 1163 | 1107 |
| 1164 ## IBM machines | 1108 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;; |
| 1165 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;; | |
| 1166 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;; | 1109 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;; |
| 1167 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;; | 1110 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;; |
| 1168 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) machine=ibmrs6000 opsys=aix3-1 ;; | 1111 romp-ibm-aos* ) opsys=bsd4-3 ;; |
| 1169 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) machine=ibmrs6000 opsys=aix3-2-5 ;; | 1112 romp-ibm-bsd* ) opsys=bsd4-3 ;; |
| 1170 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) machine=ibmrs6000 opsys=aix4-2 ;; | 1113 romp-ibm-mach* ) opsys=mach-bsd4-3 ;; |
| 1171 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) machine=ibmrs6000 opsys=aix4-1 ;; | 1114 |
| 1172 rs6000-ibm-aix4* | powerpc-ibm-aix4* ) machine=ibmrs6000 opsys=aix4 ;; | 1115 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;; |
| 1173 rs6000-ibm-aix* | powerpc-ibm-aix* ) machine=ibmrs6000 opsys=aix3-2 ;; | |
| 1174 romp-ibm-bsd4.3* ) machine=ibmrt opsys=bsd4-3 ;; | |
| 1175 romp-ibm-bsd4.2* ) machine=ibmrt opsys=bsd4-2 ;; | |
| 1176 romp-ibm-aos4.3* ) machine=ibmrt opsys=bsd4-3 ;; | |
| 1177 romp-ibm-aos4.2* ) machine=ibmrt opsys=bsd4-2 ;; | |
| 1178 romp-ibm-aos* ) machine=ibmrt opsys=bsd4-3 ;; | |
| 1179 romp-ibm-bsd* ) machine=ibmrt opsys=bsd4-3 ;; | |
| 1180 romp-ibm-aix* ) machine=ibmrt-aix opsys=usg5-2-2 ;; | |
| 1181 romp-ibm-mach* ) machine=ibmrt opsys=mach-bsd4-3 ;; | |
| 1182 | |
| 1183 ## Integrated Solutions `Optimum V' | |
| 1184 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;; | |
| 1185 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;; | 1116 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;; |
| 1186 | 1117 |
| 1187 ## Intel 386 machines where we do care about the manufacturer | 1118 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;; |
| 1188 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;; | 1119 |
| 1189 | 1120 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;; |
| 1190 ## Prime EXL | 1121 |
| 1191 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;; | 1122 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;; |
| 1192 | 1123 |
| 1193 ## Sequent Symmetry running Dynix | 1124 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;; |
| 1194 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;; | 1125 |
| 1195 | 1126 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;; |
| 1196 ## Sequent Symmetry running DYNIX/ptx | 1127 |
| 1197 ## Use the old cpp rather than the newer ANSI one. | 1128 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;; |
| 1198 i[3-9]86-sequent-ptx* ) | 1129 |
| 1199 machine=sequent-ptx opsys=ptx | 1130 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;; |
| 1200 NON_GNU_CPP="/lib/cpp" | 1131 |
| 1201 ;; | 1132 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;; |
| 1202 | 1133 |
| 1203 ## Unspecified sysv on an ncr machine defaults to svr4.2. | 1134 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;; |
| 1204 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | 1135 |
| 1205 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;; | 1136 mips-mips-usg* ) machine=mips4 ;; |
| 1206 | |
| 1207 ## Intel Paragon OSF/1 | |
| 1208 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;; | |
| 1209 | |
| 1210 ## Intel 860 | |
| 1211 i860-*-sysv4* ) | |
| 1212 machine=i860 opsys=usg5-4 | |
| 1213 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
| 1214 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
| 1215 ;; | |
| 1216 | |
| 1217 ## Masscomp machines | |
| 1218 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;; | |
| 1219 | |
| 1220 ## Megatest machines | |
| 1221 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;; | |
| 1222 | |
| 1223 ## Workstations sold by MIPS | |
| 1224 ## This is not necessarily all workstations using the MIPS processor - | |
| 1225 ## Irises are produced by SGI, and DECstations by DEC. | |
| 1226 | |
| 1227 ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
| 1228 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
| 1229 ## it gives for choosing between the alternatives seems to be "Use | |
| 1230 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
| 1231 ## the BSD world." I'll assume that these are instructions for | |
| 1232 ## handling two odd situations, and that every other situation | |
| 1233 ## should use mips.h and usg5-2-2, they being listed first. | |
| 1234 mips-mips-usg* ) | |
| 1235 machine=mips4 | |
| 1236 ## Fall through to the general code at the bottom to decide on the OS. | |
| 1237 ;; | |
| 1238 mips-mips-riscos4 ) | 1137 mips-mips-riscos4 ) |
| 1239 machine=mips4 | 1138 machine=mips4 |
| 1240 NON_GNU_CC="cc -systype bsd43" | 1139 NON_GNU_CC="cc -systype bsd43" |
| 1241 NON_GNU_CPP="cc -systype bsd43 -E" | 1140 NON_GNU_CPP="cc -systype bsd43 -E" |
| 1242 case "${canonical}" in | 1141 case "$canonical" in |
| 1243 mips-mips-riscos4* ) opsys=bsd4-3 ;; | 1142 mips-mips-riscos4* ) opsys=bsd4-3 ;; |
| 1244 mips-mips-riscos5* ) opsys=riscos5 ;; | 1143 mips-mips-riscos5* ) opsys=riscos5 ;; |
| 1245 esac | 1144 esac |
| 1246 ;; | 1145 ;; |
| 1247 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;; | 1146 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;; |
| 1248 mips-mips-* ) machine=mips opsys=usg5-2-2 ;; | 1147 mips-mips-* ) machine=mips opsys=usg5-2-2 ;; |
| 1249 | 1148 |
| 1250 ## NeXT | 1149 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;; |
| 1251 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;; | 1150 |
| 1252 | 1151 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;; |
| 1253 ## The complete machine from National Semiconductor | 1152 |
| 1254 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;; | 1153 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;; |
| 1255 | |
| 1256 ## NCR machines | |
| 1257 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;; | |
| 1258 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;; | 1154 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;; |
| 1259 | 1155 |
| 1260 ## Nixdorf Targon 31 | 1156 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;; |
| 1261 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;; | 1157 |
| 1262 | 1158 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;; |
| 1263 ## Nu (TI or LMI) | 1159 |
| 1264 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;; | 1160 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;; |
| 1265 | 1161 |
| 1266 ## Plexus | 1162 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;; |
| 1267 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;; | 1163 |
| 1268 | 1164 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;; |
| 1269 ## Pyramid machines | |
| 1270 ## I don't really have any idea what sort of processor the Pyramid has, | |
| 1271 ## so I'm assuming it is its own architecture. | |
| 1272 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;; | |
| 1273 | |
| 1274 ## Sequent Balance | |
| 1275 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;; | |
| 1276 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;; | 1165 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;; |
| 1277 | 1166 |
| 1278 ## Siemens Nixdorf | 1167 mips-siemens-sysv* | mips-sni-sysv*) |
| 1279 mips-siemens-sysv* | mips-sni-sysv*) | |
| 1280 machine=mips-siemens opsys=usg5-4 | 1168 machine=mips-siemens opsys=usg5-4 |
| 1281 NON_GNU_CC=/usr/ccs/bin/cc | 1169 NON_GNU_CC=/usr/ccs/bin/cc |
| 1282 NON_GNU_CPP=/usr/ccs/lib/cpp | 1170 NON_GNU_CPP=/usr/ccs/lib/cpp |
| 1283 ;; | 1171 ;; |
| 1284 | 1172 |
| 1285 ## Silicon Graphics machines | 1173 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;; |
| 1286 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
| 1287 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;; | |
| 1288 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;; | 1174 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;; |
| 1289 ## Iris 4D | 1175 mips-sgi-irix3.* ) opsys=irix3-3 ;; |
| 1290 mips-sgi-irix3.* ) machine=iris4d opsys=irix3-3 ;; | 1176 mips-sgi-irix4.* ) opsys=irix4-0 ;; |
| 1291 mips-sgi-irix4.* ) machine=iris4d opsys=irix4-0 ;; | 1177 mips-sgi-irix6* ) opsys=irix6-0 NON_GNU_CC="cc -Olimit 2000" ;; |
| 1292 mips-sgi-irix6* ) machine=iris4d opsys=irix6-0 NON_GNU_CC="cc -Olimit 2000" ;; | 1178 mips-sgi-irix5.1* ) opsys=irix5-1 ;; |
| 1293 mips-sgi-irix5.[3-9]* ) machine=iris4d opsys=irix5-3 ;; | 1179 mips-sgi-irix5.2* ) opsys=irix5-2 ;; |
| 1294 mips-sgi-irix5.2* ) machine=iris4d opsys=irix5-2 ;; | 1180 mips-sgi-irix5.* ) opsys=irix5-3 ;; |
| 1295 mips-sgi-irix5.1* ) machine=iris4d opsys=irix5-1 ;; | 1181 mips-sgi-irix* ) opsys=irix5-0 ;; |
| 1296 mips-sgi-irix* ) machine=iris4d opsys=irix5-0 ;; | 1182 |
| 1297 | 1183 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;; |
| 1298 ## SONY machines | 1184 *-sony-news* ) opsys=newsos5 ;; |
| 1299 m68*-sony-bsd4.2* ) machine=news opsys=bsd4-2 ;; | 1185 |
| 1300 m68*-sony-bsd4.3* ) machine=news opsys=bsd4-3 ;; | 1186 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;; |
| 1301 m68*-sony-newsos3* | m68*-sony-news3*) machine=news opsys=bsd4-3 ;; | 1187 |
| 1302 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) machine=news-risc opsys=bsd4-3 ;; | 1188 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* ) |
| 1303 mips-sony-news* ) machine=news-risc opsys=newsos5 ;; | 1189 case "$canonical" in |
| 1304 | |
| 1305 ## Stride | |
| 1306 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;; | |
| 1307 | |
| 1308 ## Suns | |
| 1309 sparc-*-linux* ) machine=sparc opsys=linux ;; | |
| 1310 | |
| 1311 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* ) | |
| 1312 # Hardware type | |
| 1313 case "${canonical}" in | |
| 1314 m68*-sunos1* ) machine=sun1 ;; | 1190 m68*-sunos1* ) machine=sun1 ;; |
| 1315 m68*-sunos2* ) machine=sun2 ;; | 1191 m68*-sunos2* ) machine=sun2 ;; |
| 1316 m68* ) machine=sun3 ;; | 1192 m68* ) machine=sun3 ;; |
| 1317 i[3-9]86*-sun-sunos[34]* ) machine=sun386 ;; | 1193 i[3-9]86*-sun-sunos[34]* ) machine=sun386 ;; |
| 1318 i[3-9]86-*-* ) machine=intel386 ;; | 1194 i[3-9]86-*-* ) machine=intel386 ;; |
| 1319 rs6000* ) machine=rs6000 ;; | 1195 rs6000* ) machine=rs6000 ;; |
| 1320 sparc* ) machine=sparc ;; | |
| 1321 powerpc* ) machine=powerpc ;; | |
| 1322 * ) unported=yes ;; | |
| 1323 esac | 1196 esac |
| 1324 | 1197 |
| 1325 # Make `canonical' even more so. | 1198 case "$canonical" in *-sunos5*) |
| 1326 case "${canonical}" in *-sunos5*) | 1199 canonical="`echo \"$canonical\" | sed -e s/sunos5/solaris2/`";; |
| 1327 canonical="`echo \"${canonical}\" | sed -e s/sunos5/solaris2/`";; | |
| 1328 esac | 1200 esac |
| 1329 | 1201 |
| 1330 # On SunOS 4, use /usr/lib/cpp, sans dynodump, /bin/ranlib | 1202 case "$canonical" in |
| 1331 # On SunOS 5, use /usr/ccs/lib/cpp, need dynodump, RANLIB not needed | |
| 1332 # But, SunOS 5.6 no longer needs dynodump because it has a similar | |
| 1333 # function integrated. | |
| 1334 case "${canonical}" in | |
| 1335 *-sunos4* ) | 1203 *-sunos4* ) |
| 1336 test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;; | 1204 test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;; |
| 1337 *-solaris2* ) | 1205 *-solaris2* ) |
| 1338 test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp | 1206 test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp |
| 1339 RANLIB=':' | 1207 RANLIB=':' |
| 1340 case "${canonical}" in | 1208 case "$canonical" in *-solaris2.[0-5]* ) need_dynodump=yes ;; esac |
| 1341 *-solaris2.[6-9]* ) need_dynodump=no ;; | |
| 1342 *-solaris2* ) need_dynodump=yes ;; | |
| 1343 esac | 1209 esac |
| 1344 esac | 1210 |
| 1345 | 1211 case "$canonical" in |
| 1346 case "${canonical}" in | 1212 i[3-9]86-*-sunos4*) opsys=sunos4-0 ;; |
| 1347 ## The Sun386 didn't get past 4.0. | |
| 1348 i[3-9]86-*-sunos4* ) opsys=sunos4-0 ;; | |
| 1349 *-sunos4.0* ) opsys=sunos4-0 ;; | 1213 *-sunos4.0* ) opsys=sunos4-0 ;; |
| 1350 *-sunos4.1.2* ) opsys=sunos4-1-2 ;; | 1214 *-sunos4.1.2* ) opsys=sunos4-1-2 ;; |
| 1351 *-sunos4.1.3* ) opsys=sunos4-1-3 ;; | 1215 *-sunos4.1.3* ) opsys=sunos4-1-3 ;; |
| 1352 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;; | 1216 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;; |
| 1353 *-sunos4* | *-sunos ) opsys=sunos4-1 ;; | 1217 *-sunos4* | *-sunos ) opsys=sunos4-1 ;; |
| 1360 | 1224 |
| 1361 *-mach* ) opsys=mach-bsd4-3 ;; | 1225 *-mach* ) opsys=mach-bsd4-3 ;; |
| 1362 * ) opsys=bsd4-2 ;; | 1226 * ) opsys=bsd4-2 ;; |
| 1363 esac | 1227 esac |
| 1364 | 1228 |
| 1365 case "${canonical}" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac | 1229 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac |
| 1366 | 1230 |
| 1367 ## Watch out for a compiler that is guaranteed not to work. | 1231 case "$canonical" in |
| 1368 case "${canonical}" in | 1232 *-solaris* ) case "$CC" in /usr/ucb/cc* ) CC="" ;; esac ;; |
| 1369 *-solaris* ) test "$CC" = "/usr/ucb/cc" && unset CC ;; | |
| 1370 esac | 1233 esac |
| 1371 ;; | 1234 ;; |
| 1372 | 1235 |
| 1373 sparc-*-nextstep* ) machine=sparc opsys=nextstep ;; | 1236 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;; |
| 1374 | 1237 |
| 1375 ## Tadpole 68k | 1238 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;; |
| 1376 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;; | |
| 1377 | |
| 1378 ## Tahoe machines | |
| 1379 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;; | |
| 1380 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;; | 1239 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;; |
| 1381 | 1240 |
| 1382 ## Tandem Integrity S2 | 1241 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;; |
| 1383 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;; | 1242 |
| 1384 | 1243 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;; |
| 1385 ## Tektronix XD88 | 1244 |
| 1386 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;; | 1245 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;; |
| 1387 | 1246 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;; |
| 1388 ## Tektronix 16000 box (6130?) | 1247 |
| 1389 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;; | 1248 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;; |
| 1390 ## Tektronix 4300 | 1249 |
| 1391 ## src/m/tek4300.h hints that this is a m68k machine. | 1250 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;; |
| 1392 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;; | 1251 |
| 1393 | 1252 vax-dec-* ) |
| 1394 ## Titan P2 or P3 | 1253 case "$canonical" in |
| 1395 ## We seem to have lost the machine-description file titan.h! | 1254 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; |
| 1396 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;; | 1255 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; |
| 1397 | 1256 *-mach* ) opsys=mach-bsd4-3 ;; |
| 1398 ## Ustation E30 (SS5E) | |
| 1399 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;; | |
| 1400 | |
| 1401 ## Vaxen. | |
| 1402 vax-dec-* ) | |
| 1403 machine=vax | |
| 1404 case "${canonical}" in | |
| 1405 *-bsd4.1* ) opsys=bsd4-1 ;; | |
| 1406 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
| 1407 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
| 1408 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
| 1409 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
| 1410 *-vms* ) opsys=vms ;; | |
| 1411 *-mach* ) opsys=mach-bsd4-3 ;; | |
| 1412 * ) unported=yes | |
| 1413 esac | 1257 esac |
| 1414 ;; | 1258 ;; |
| 1415 | 1259 |
| 1416 ## Whitechapel MG1 | 1260 ns16k-whitechapel-* ) machine=mg1 ;; |
| 1417 ## We don't know what sort of OS runs on these; we'll let the | 1261 |
| 1418 ## operating system guessing code below try. | 1262 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;; |
| 1419 ns16k-whitechapel-* ) machine=mg1 ;; | 1263 |
| 1420 | 1264 i[3-9]86-*-* ) |
| 1421 ## Wicat | |
| 1422 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;; | |
| 1423 | |
| 1424 ## Intel 386 machines where we don't care about the manufacturer | |
| 1425 i[3-9]86-*-* ) | |
| 1426 machine=intel386 | 1265 machine=intel386 |
| 1427 case "${canonical}" in | 1266 case "$canonical" in |
| 1428 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; | 1267 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
| 1429 *-isc2.2* ) opsys=isc2-2 ;; | 1268 *-isc2.2* ) opsys=isc2-2 ;; |
| 1430 *-isc4.0* ) opsys=isc4-0 ;; | 1269 *-isc4.0* ) opsys=isc4-0 ;; |
| 1431 *-isc4.* ) opsys=isc4-1 | 1270 *-isc4.* ) opsys=isc4-1 |
| 1432 GCC_TEST_OPTIONS=-posix | 1271 GCC_TEST_OPTIONS=-posix |
| 1433 NON_GCC_TEST_OPTIONS=-Xp | 1272 NON_GCC_TEST_OPTIONS=-Xp |
| 1434 ;; | 1273 ;; |
| 1435 *-isc* ) opsys=isc3-0 ;; | 1274 *-isc* ) opsys=isc3-0 ;; |
| 1436 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | 1275 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;; |
| 1437 *-esix* ) opsys=esix ;; | 1276 *-esix* ) opsys=esix ;; |
| 1438 *-mach* ) opsys=mach-bsd4-3 ;; | 1277 *-mach* ) opsys=mach-bsd4-3 ;; |
| 1439 *-xenix* ) opsys=xenix ;; | 1278 *-xenix* ) opsys=xenix ;; |
| 1440 *-linux* ) opsys=linux ;; | 1279 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;; |
| 1441 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
| 1442 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;; | 1280 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;; |
| 1443 *-bsdi3* ) opsys=bsdos3 ;; | 1281 *-bsdi3* ) opsys=bsdos3 ;; |
| 1444 *-bsdi2.1* ) opsys=bsdos2-1 ;; | 1282 *-bsdi2.1* ) opsys=bsdos2-1 ;; |
| 1445 *-bsdi2* ) opsys=bsdos2 ;; | 1283 *-bsdi2* ) opsys=bsdos2 ;; |
| 1446 *-sco3.2v5* ) opsys=sco5 ; | 1284 *-sco3.2v5* ) opsys=sco5 ; |
| 1447 ## This is a pain. Like the current USL cc, SCO's cc -E | 1285 if test "$dynamic" = "yes" ; then |
| 1448 ## tokenizes as it preprocesses, making configure very | |
| 1449 ## unhappy. Unfortunately, /lib/cpp doesn't understand | |
| 1450 ## flags like "-b elf", so we have to cheat in order to | |
| 1451 ## pick up the right defines for UNEXEC from the s-file. | |
| 1452 ## 01/05/95 robertl@dgii.com | |
| 1453 if test "${dynamic}" = "yes" ; then | |
| 1454 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ; | 1286 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ; |
| 1455 else | 1287 else |
| 1456 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ; | 1288 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ; |
| 1457 fi ;; | 1289 fi ;; |
| 1458 *-386bsd* ) opsys=386bsd ;; | 1290 *-386bsd* ) opsys=386bsd ;; |
| 1459 *-freebsd* ) opsys=freebsd ;; | 1291 *-freebsd* ) opsys=freebsd ;; |
| 1460 *-nextstep* ) opsys=nextstep ;; | 1292 *-nextstep* ) opsys=nextstep ;; |
| 1461 ## Otherwise, we'll fall through to the generic opsys code at the bottom. | 1293 esac |
| 1462 esac | |
| 1463 ;; | 1294 ;; |
| 1464 | 1295 |
| 1465 ## Linux/68k | 1296 m68k-*-linux* ) machine=m68k opsys=linux ;; |
| 1466 m68k-*-linux* ) machine=m68k opsys=linux ;; | 1297 |
| 1467 | |
| 1468 * ) unported=yes ;; | |
| 1469 esac | 1298 esac |
| 1470 | 1299 |
| 1471 ### If the code above didn't choose an operating system, just choose | 1300 if test -z "$machine" -o -z "$opsys"; then |
| 1472 ### an operating system based on the configuration name. You really | 1301 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems." |
| 1473 ### only want to use this when you have no idea what the right | 1302 echo "$progname: Check \`etc/MACHINES' for recognized configuration names." |
| 1474 ### operating system is; if you know what operating systems a machine | |
| 1475 ### runs, it's cleaner to make it explicit in the case statement | |
| 1476 ### above. | |
| 1477 if test -z "${opsys}" ; then | |
| 1478 case "${canonical}" in | |
| 1479 *-gnu* ) opsys=gnu ;; | |
| 1480 *-bsd4.[01] ) opsys=bsd4-1 ;; | |
| 1481 *-bsd4.2 ) opsys=bsd4-2 ;; | |
| 1482 *-bsd4.3 ) opsys=bsd4-3 ;; | |
| 1483 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
| 1484 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
| 1485 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
| 1486 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
| 1487 *-sysv4.1* | *-sysvr4.1* ) opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;; | |
| 1488 *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
| 1489 if test -z "$NON_GNU_CPP" ; then | |
| 1490 if test -f /usr/ccs/lib/cpp | |
| 1491 then NON_GNU_CPP=/usr/ccs/lib/cpp | |
| 1492 else NON_GNU_CPP=/lib/cpp | |
| 1493 fi | |
| 1494 fi | |
| 1495 opsys=usg5-4-2 ;; | |
| 1496 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
| 1497 * ) unported=yes ;; | |
| 1498 esac | |
| 1499 fi | |
| 1500 | |
| 1501 test -z "$RANLIB" && RANLIB=ranlib | |
| 1502 | |
| 1503 if test ${unported} = yes; then | |
| 1504 (echo "${progname}: XEmacs hasn't been ported to \`${canonical}' systems." | |
| 1505 echo "${progname}: Check \`etc/MACHINES' for recognized configuration names." | |
| 1506 ) >&2 | 1303 ) >&2 |
| 1507 exit 1 | 1304 exit 1 |
| 1508 fi | 1305 fi |
| 1509 | 1306 |
| 1510 if test "${dynamic}" = "yes" ; then | 1307 if test "$dynamic" = "yes" ; then |
| 1511 case "${opsys}" in | 1308 case "$opsys" in |
| 1512 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;; | 1309 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;; |
| 1513 esac | 1310 esac |
| 1514 elif test "${dynamic}" = "no" ; then | 1311 elif test "$dynamic" = "no" ; then |
| 1515 case "${opsys}" in | 1312 case "$opsys" in |
| 1516 sol2* | decosf1-3 | decosf3-* | decosf4-* | linux ) opsys="${opsys}-static" ;; | 1313 sol2* | decosf1-3 | decosf3-* | decosf4-* | linux ) opsys="${opsys}-static" ;; |
| 1517 esac | 1314 esac |
| 1518 fi | 1315 fi |
| 1519 | 1316 |
| 1520 dynodump_arch='' | |
| 1521 if test "${need_dynodump}" = "yes" ; then | |
| 1522 case "${canonical}" in | |
| 1523 sparc* ) dynodump_arch=sparc ;; | |
| 1524 powerpc* ) dynodump_arch=ppc ;; | |
| 1525 i[3-9]86* ) dynodump_arch=i386 ;; | |
| 1526 esac | |
| 1527 fi | |
| 1528 | |
| 1529 machfile="m/${machine}.h" | 1317 machfile="m/${machine}.h" |
| 1530 opsysfile="s/${opsys}.h" | 1318 opsysfile="s/${opsys}.h" |
| 1531 | 1319 |
| 1532 | 1320 |
| 1533 ############################################################################ | 1321 test -n "$CC" && cc_specified=yes |
| 1534 # # | 1322 |
| 1535 # Determine the compiler, set up for feature testing # | |
| 1536 # # | |
| 1537 ############################################################################ | |
| 1538 | |
| 1539 | |
| 1540 | |
| 1541 | |
| 1542 ac_ext=c | |
| 1543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
| 1544 ac_cpp='${CPP}' | |
| 1545 ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1' | |
| 1546 | |
| 1547 trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15 | |
| 1548 trap 'rm -fr confdefs* $ac_clean_files' 0 | |
| 1549 | |
| 1550 # Save the original args if we used an alternate arg parser. | |
| 1551 ac_configure_temp="${configure_args-$*}" | |
| 1552 # Strip out --no-create and --norecursion so they don't pile up. | |
| 1553 configure_args= | |
| 1554 for ac_arg in $ac_configure_temp; do | |
| 1555 case "$ac_arg" in | |
| 1556 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
| 1557 | --no-cr | --no-c) ;; | |
| 1558 -norecursion | --norecursion | --norecursio | --norecursi \ | |
| 1559 | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;; | |
| 1560 *) configure_args="$configure_args $ac_arg" ;; | |
| 1561 esac | |
| 1562 done | |
| 1563 | |
| 1564 # NLS nuisances. | |
| 1565 # These must not be set unconditionally because not all systems understand | |
| 1566 # e.g. LANG=C (notably SCO). | |
| 1567 if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi | |
| 1568 if test "${LANG+set}" = 'set'; then LANG=C; export LANG; fi | |
| 1569 | |
| 1570 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
| 1571 rm -rf conftest* confdefs.h | |
| 1572 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
| 1573 echo > confdefs.h | |
| 1574 | |
| 1575 # A filename unique to this package, relative to the directory that | |
| 1576 # configure is in, which we can look for to find out if srcdir is correct. | |
| 1577 ac_unique_file=lisp | |
| 1578 | |
| 1579 # Find the source files, if location was not specified. | |
| 1580 if test -z "$srcdir"; then | |
| 1581 ac_srcdir_defaulted=yes | |
| 1582 # Try the directory containing this script, then `..'. | |
| 1583 ac_prog=$0 | |
| 1584 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
| 1585 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
| 1586 srcdir=$ac_confdir | |
| 1587 if test ! -r $srcdir/$ac_unique_file; then | |
| 1588 srcdir=.. | |
| 1589 fi | |
| 1590 fi | |
| 1591 if test ! -r $srcdir/$ac_unique_file; then | |
| 1592 if test x$ac_srcdir_defaulted = xyes; then | |
| 1593 echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1 | |
| 1594 else | |
| 1595 echo "configure: can not find sources in ${srcdir}" >&2; exit 1 | |
| 1596 fi | |
| 1597 fi | |
| 1598 ac_ext=c | |
| 1599 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
| 1600 ac_cpp='${CPP}' | |
| 1601 ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1' | |
| 1602 | |
| 1603 | |
| 1604 | |
| 1605 | |
| 1606 if test "${extra_verbose}" = "yes" ; then | |
| 1607 # This is identical to the version that A\C_LANG_C generates except that | |
| 1608 # it omits the redirection of all output to /dev/null. | |
| 1609 ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS' | |
| 1610 fi | |
| 1611 | |
| 1612 #### Choose a compiler. | |
| 1613 if test "x$CC" = x ; then | |
| 1614 cc_specified=1 | |
| 1615 fi | |
| 1616 | |
| 1617 # Save the value of CFLAGS that the user specified. | |
| 1618 SPECIFIED_CFLAGS="$CFLAGS" | 1323 SPECIFIED_CFLAGS="$CFLAGS" |
| 1619 | 1324 |
| 1620 if test "${with_gcc}" = "yes" ; then | 1325 if test -n "$compiler"; then CC="$compiler"; fi |
| 1621 CC="${compiler-gcc}" | 1326 |
| 1622 GCC=1 | 1327 test -n "$NON_GNU_CC" -a "$with_gcc" = "no" -a -z "$CC" && CC="$NON_GNU_CC" |
| 1623 elif test "${with_lcc}" = "yes" ; then | 1328 # Extract the first word of "gcc", so it can be a program name with args. |
| 1624 CC="${compiler-lcc}" | 1329 set dummy gcc; ac_word=$2 |
| 1625 dash_r_space=' ' # this bullshit is here because lcc for solaris | 1330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1626 # will not accept -Rargument. | 1331 echo "configure:1332: checking for $ac_word" >&5 |
| 1627 # It needs -R argument instead. Yuck yuck yuck. | 1332 |
| 1628 test -z "$NON_GNU_CPP" && NON_GNU_CPP="yes" # this is handled specially below... | 1333 if test -n "$CC"; then |
| 1629 elif test "${compiler}" != "" ; then CC="${compiler}" | 1334 ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1630 elif test "${with_gcc}" = "no" ; then CC="cc" | 1335 else |
| 1631 elif test "${with_lcc}" = "no" ; then | |
| 1632 test -z "$CC" && CC=cc | |
| 1633 else | |
| 1634 case "${canonical}" in | |
| 1635 * ) | |
| 1636 if test -z "$CC"; then | |
| 1637 # Extract the first word of `gcc', so it can be a program name with args. | |
| 1638 set ac_dummy gcc; ac_word=$2 | |
| 1639 test -n "$silent" || echo "checking for $ac_word" | |
| 1640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 1336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1641 for ac_dir in $PATH; do | 1337 for ac_dir in $PATH; do |
| 1642 test -z "$ac_dir" && ac_dir=. | 1338 test -z "$ac_dir" && ac_dir=. |
| 1643 if test -f $ac_dir/$ac_word; then | 1339 if test -f $ac_dir/$ac_word; then |
| 1644 CC="gcc" | 1340 ac_cv_prog_CC="gcc" |
| 1645 break | 1341 break |
| 1646 fi | 1342 fi |
| 1647 done | 1343 done |
| 1648 IFS="$ac_save_ifs" | 1344 IFS="$ac_save_ifs" |
| 1649 fi | 1345 fi |
| 1650 test -z "$CC" && CC="cc" | 1346 CC="$ac_cv_prog_CC" |
| 1651 test -n "$CC" && test -n "$verbose" && echo " setting CC to $CC" | 1347 if test -n "$CC"; then |
| 1652 | 1348 echo "$ac_t""$CC" 1>&6 |
| 1653 # Find out if we are using GNU C, under whatever name. | 1349 else |
| 1350 echo "$ac_t""no" 1>&6 | |
| 1351 fi | |
| 1352 | |
| 1353 if test -z "$CC"; then | |
| 1354 # Extract the first word of "cc", so it can be a program name with args. | |
| 1355 set dummy cc; ac_word=$2 | |
| 1356 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
| 1357 echo "configure:1358: checking for $ac_word" >&5 | |
| 1358 | |
| 1359 if test -n "$CC"; then | |
| 1360 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 1361 else | |
| 1362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
| 1363 ac_prog_rejected=no | |
| 1364 for ac_dir in $PATH; do | |
| 1365 test -z "$ac_dir" && ac_dir=. | |
| 1366 if test -f $ac_dir/$ac_word; then | |
| 1367 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
| 1368 ac_prog_rejected=yes | |
| 1369 continue | |
| 1370 fi | |
| 1371 ac_cv_prog_CC="cc" | |
| 1372 break | |
| 1373 fi | |
| 1374 done | |
| 1375 IFS="$ac_save_ifs" | |
| 1376 if test $ac_prog_rejected = yes; then | |
| 1377 # We found a bogon in the path, so make sure we never use it. | |
| 1378 set dummy $ac_cv_prog_CC | |
| 1379 shift | |
| 1380 if test $# -gt 0; then | |
| 1381 # We chose a different compiler from the bogus one. | |
| 1382 # However, it has the same basename, so the bogon will be chosen | |
| 1383 # first if we set CC to just the basename; use the full file name. | |
| 1384 shift | |
| 1385 set dummy "$ac_dir/$ac_word" "$@" | |
| 1386 shift | |
| 1387 ac_cv_prog_CC="$@" | |
| 1388 fi | |
| 1389 fi | |
| 1390 fi | |
| 1391 CC="$ac_cv_prog_CC" | |
| 1392 if test -n "$CC"; then | |
| 1393 echo "$ac_t""$CC" 1>&6 | |
| 1394 else | |
| 1395 echo "$ac_t""no" 1>&6 | |
| 1396 fi | |
| 1397 | |
| 1398 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
| 1399 fi | |
| 1400 | |
| 1401 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
| 1402 echo "configure:1403: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
| 1403 | |
| 1404 ac_ext=c | |
| 1405 xe_cppflags='$c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS $CPPFLAGS' # $c_switch_x_machine $c_switch_x_system' | |
| 1406 xe_ldflags='$ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site' # $ld_switch_x_machine $ld_switch_x_system' | |
| 1407 xe_libs='$xe_check_libs $X_PRE_LIBS $libs_x $X_EXTRA_LIBS $LIBS $libs_machine $libs_system $libs_standard' | |
| 1408 ac_cpp='$CPP '"$xe_cppflags" | |
| 1409 ac_compile='${CC-cc} -c '"$CFLAGS $xe_cppflags"' conftest.$ac_ext 1>&5' | |
| 1410 ac_link='${CC-cc} -o conftest '"$CFLAGS $xe_cppflags $LDFLAGS $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' | |
| 1411 cross_compiling=no | |
| 1412 | |
| 1413 cat > conftest.$ac_ext <<EOF | |
| 1414 #line 1415 "configure" | |
| 1415 #include "confdefs.h" | |
| 1416 main(){return(0);} | |
| 1417 EOF | |
| 1418 if { (eval echo configure:1419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 1419 ac_cv_prog_cc_works=yes | |
| 1420 # If we can't run a trivial program, we are probably using a cross compiler. | |
| 1421 if (./conftest; exit) 2>/dev/null; then | |
| 1422 ac_cv_prog_cc_cross=no | |
| 1423 else | |
| 1424 ac_cv_prog_cc_cross=yes | |
| 1425 fi | |
| 1426 else | |
| 1427 echo "configure: failed program was:" >&5 | |
| 1428 cat conftest.$ac_ext >&5 | |
| 1429 ac_cv_prog_cc_works=no | |
| 1430 fi | |
| 1431 rm -fr conftest* | |
| 1432 | |
| 1433 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
| 1434 if test $ac_cv_prog_cc_works = no; then | |
| 1435 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
| 1436 fi | |
| 1437 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
| 1438 echo "configure:1439: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
| 1439 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
| 1440 cross_compiling=$ac_cv_prog_cc_cross | |
| 1441 | |
| 1442 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
| 1443 echo "configure:1444: checking whether we are using GNU C" >&5 | |
| 1444 | |
| 1654 cat > conftest.c <<EOF | 1445 cat > conftest.c <<EOF |
| 1655 #ifdef __GNUC__ | 1446 #ifdef __GNUC__ |
| 1656 yes | 1447 yes; |
| 1657 #endif | 1448 #endif |
| 1658 EOF | 1449 EOF |
| 1659 ${CC-cc} -E conftest.c > conftest.out 2>&1 | 1450 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| 1660 if egrep yes conftest.out >/dev/null 2>&1; then | 1451 ac_cv_prog_gcc=yes |
| 1661 GCC=1 # For later tests. | 1452 else |
| 1662 fi | 1453 ac_cv_prog_gcc=no |
| 1663 rm -f conftest* | 1454 fi |
| 1664 | 1455 |
| 1665 if test "${CC}" = "gcc" ; then | 1456 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 1666 with_gcc="yes" | 1457 |
| 1667 GCC=1 | 1458 if test $ac_cv_prog_gcc = yes; then |
| 1668 fi | 1459 GCC=yes |
| 1669 ;; | 1460 ac_test_CFLAGS="${CFLAGS+set}" |
| 1670 esac | 1461 ac_save_CFLAGS="$CFLAGS" |
| 1671 fi | 1462 CFLAGS= |
| 1672 | 1463 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 1673 #### Some systems specify a CPP to use unless we are using GCC. | 1464 echo "configure:1465: checking whether ${CC-cc} accepts -g" >&5 |
| 1674 #### Now that we know whether we are using GCC, we can decide whether | 1465 |
| 1675 #### to use that one. | 1466 echo 'void f(){}' > conftest.c |
| 1676 if test "x$NON_GNU_CPP" = x -o x$GCC = x1 | 1467 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 1677 then true | 1468 ac_cv_prog_cc_g=yes |
| 1678 else | 1469 else |
| 1679 if test "x$CPP" = x ; then | 1470 ac_cv_prog_cc_g=no |
| 1680 if test "${with_lcc}" = "yes" -a "${NON_GNU_CPP}" = "yes"; then | 1471 fi |
| 1681 CPP='gcc -E -traditional' # cross fingers and hope it's there.... | 1472 rm -f conftest* |
| 1682 else | 1473 |
| 1683 CPP="$NON_GNU_CPP" | 1474 |
| 1684 fi | 1475 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
| 1476 if test "$ac_test_CFLAGS" = set; then | |
| 1477 CFLAGS="$ac_save_CFLAGS" | |
| 1478 elif test $ac_cv_prog_cc_g = yes; then | |
| 1479 CFLAGS="-g -O2" | |
| 1480 else | |
| 1481 CFLAGS="-O2" | |
| 1685 fi | 1482 fi |
| 1686 fi | 1483 else |
| 1687 | 1484 GCC= |
| 1688 #### Some systems specify a CC to use unless we are using GCC. | 1485 test "${CFLAGS+set}" = set || CFLAGS="-g" |
| 1689 #### Now that we know whether we are using GCC, we can decide whether | 1486 fi |
| 1690 #### to use that one. | 1487 |
| 1691 if test "x$NON_GNU_CC" = x -o x$GCC = x1 -o x$cc_specified = x1 | 1488 |
| 1692 then true | 1489 if test "$with_gcc" = "no" -a "$ac_cv_prog_gcc" = "yes"; then |
| 1693 else | 1490 CC=${NON_GNU_CC-cc} |
| 1694 CC="$NON_GNU_CC" | 1491 # Extract the first word of "gcc", so it can be a program name with args. |
| 1695 fi | 1492 set dummy gcc; ac_word=$2 |
| 1696 | 1493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1697 ## Huh? I commented out the following because it always enabled | 1494 echo "configure:1495: checking for $ac_word" >&5 |
| 1698 ## the "test" options, whatever the hell those are supposed to be | 1495 |
| 1699 ## for, and the result is that SunOS builds were always static. | 1496 if test -n "$CC"; then |
| 1700 | 1497 ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1701 # test x$GCC = x1 -a "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS" | 1498 else |
| 1702 # test x$GCC = x -a "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS" | |
| 1703 | |
| 1704 ############################################################################ | |
| 1705 # # | |
| 1706 # Do some misc autoconf-special tests # | |
| 1707 # # | |
| 1708 ############################################################################ | |
| 1709 | |
| 1710 #### Some other nice autoconf tests. If you add a test here which | |
| 1711 #### should make an entry in src/config.h, don't forget to add an | |
| 1712 #### #undef clause to src/config.h.in for autoconf to modify. | |
| 1713 test -n "$silent" || echo "checking how to run the C preprocessor" | |
| 1714 if test -z "$CPP"; then | |
| 1715 # This must be in double quotes, not single quotes, because CPP may get | |
| 1716 # substituted into the Makefile and ``${CC-cc}'' will simply confuse | |
| 1717 # make. It must be expanded now. | |
| 1718 CPP="${CC-cc} -E" | |
| 1719 cat > conftest.${ac_ext} <<EOF | |
| 1720 #include "confdefs.h" | |
| 1721 #include <stdio.h> | |
| 1722 Syntax Error | |
| 1723 EOF | |
| 1724 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | |
| 1725 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | |
| 1726 echo "$ac_err" | |
| 1727 fi | |
| 1728 if test -z "$ac_err"; then | |
| 1729 : | |
| 1730 else | |
| 1731 rm -rf conftest* | |
| 1732 CPP="${CC-cc} -E -traditional-cpp" | |
| 1733 cat > conftest.${ac_ext} <<EOF | |
| 1734 #include "confdefs.h" | |
| 1735 #include <stdio.h> | |
| 1736 Syntax Error | |
| 1737 EOF | |
| 1738 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | |
| 1739 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | |
| 1740 echo "$ac_err" | |
| 1741 fi | |
| 1742 if test -z "$ac_err"; then | |
| 1743 : | |
| 1744 else | |
| 1745 rm -rf conftest* | |
| 1746 CPP=/lib/cpp | |
| 1747 fi | |
| 1748 rm -f conftest* | |
| 1749 fi | |
| 1750 rm -f conftest* | |
| 1751 fi | |
| 1752 test -n "$verbose" && echo " setting CPP to $CPP" | |
| 1753 | |
| 1754 | |
| 1755 case "${canonical}" in | |
| 1756 *-sun-sunos* ) | |
| 1757 if test "${CPP}" = "acc -E" ; then | |
| 1758 CPP="acc -E -Xs" | |
| 1759 fi | |
| 1760 ;; | |
| 1761 esac | |
| 1762 | |
| 1763 if test -z "$RANLIB"; then | |
| 1764 # Extract the first word of `ranlib', so it can be a program name with args. | |
| 1765 set ac_dummy ranlib; ac_word=$2 | |
| 1766 test -n "$silent" || echo "checking for $ac_word" | |
| 1767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 1499 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1768 for ac_dir in $PATH; do | 1500 for ac_dir in $PATH; do |
| 1769 test -z "$ac_dir" && ac_dir=. | 1501 test -z "$ac_dir" && ac_dir=. |
| 1770 if test -f $ac_dir/$ac_word; then | 1502 if test -f $ac_dir/$ac_word; then |
| 1771 RANLIB="ranlib" | 1503 ac_cv_prog_CC="gcc" |
| 1772 break | 1504 break |
| 1773 fi | 1505 fi |
| 1774 done | 1506 done |
| 1775 IFS="$ac_save_ifs" | 1507 IFS="$ac_save_ifs" |
| 1776 fi | 1508 fi |
| 1777 test -z "$RANLIB" && RANLIB=":" | 1509 CC="$ac_cv_prog_CC" |
| 1778 test -n "$RANLIB" && test -n "$verbose" && echo " setting RANLIB to $RANLIB" | 1510 if test -n "$CC"; then |
| 1779 | 1511 echo "$ac_t""$CC" 1>&6 |
| 1780 # Make sure to not get the incompatible SysV /etc/install and | 1512 else |
| 1781 # /usr/sbin/install, which might be in PATH before a BSD-like install, | 1513 echo "$ac_t""no" 1>&6 |
| 1782 # or the SunOS /usr/etc/install directory, or the AIX /bin/install, | 1514 fi |
| 1783 # or the AFS install, which mishandles nonexistent args, or | 1515 |
| 1784 # /usr/ucb/install on SVR4, which tries to use the nonexistent group | 1516 if test -z "$CC"; then |
| 1785 # `staff', or /sbin/install on IRIX which has incompatible command-line | 1517 # Extract the first word of "cc", so it can be a program name with args. |
| 1786 # syntax. Sigh. | 1518 set dummy cc; ac_word=$2 |
| 1787 # | 1519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1788 # On most BSDish systems install is in /usr/bin, not /usr/ucb | 1520 echo "configure:1521: checking for $ac_word" >&5 |
| 1789 # anyway. | 1521 |
| 1790 # This turns out not to be true, so the mere pathname isn't an indication | 1522 if test -n "$CC"; then |
| 1791 # of whether the program works. What we really need is a set of tests for | 1523 ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1792 # the install program to see if it actually works in all the required ways. | 1524 else |
| 1793 # | 1525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1794 # Avoid using ./install, which might have been erroneously created | 1526 ac_prog_rejected=no |
| 1795 # by make from ./install.sh. | 1527 for ac_dir in $PATH; do |
| 1796 if test -z "${INSTALL}"; then | 1528 test -z "$ac_dir" && ac_dir=. |
| 1797 test -n "$silent" || echo "checking for a BSD compatible install" | 1529 if test -f $ac_dir/$ac_word; then |
| 1530 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
| 1531 ac_prog_rejected=yes | |
| 1532 continue | |
| 1533 fi | |
| 1534 ac_cv_prog_CC="cc" | |
| 1535 break | |
| 1536 fi | |
| 1537 done | |
| 1538 IFS="$ac_save_ifs" | |
| 1539 if test $ac_prog_rejected = yes; then | |
| 1540 # We found a bogon in the path, so make sure we never use it. | |
| 1541 set dummy $ac_cv_prog_CC | |
| 1542 shift | |
| 1543 if test $# -gt 0; then | |
| 1544 # We chose a different compiler from the bogus one. | |
| 1545 # However, it has the same basename, so the bogon will be chosen | |
| 1546 # first if we set CC to just the basename; use the full file name. | |
| 1547 shift | |
| 1548 set dummy "$ac_dir/$ac_word" "$@" | |
| 1549 shift | |
| 1550 ac_cv_prog_CC="$@" | |
| 1551 fi | |
| 1552 fi | |
| 1553 fi | |
| 1554 CC="$ac_cv_prog_CC" | |
| 1555 if test -n "$CC"; then | |
| 1556 echo "$ac_t""$CC" 1>&6 | |
| 1557 else | |
| 1558 echo "$ac_t""no" 1>&6 | |
| 1559 fi | |
| 1560 | |
| 1561 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
| 1562 fi | |
| 1563 | |
| 1564 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
| 1565 echo "configure:1566: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
| 1566 | |
| 1567 ac_ext=c | |
| 1568 xe_cppflags='$c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS $CPPFLAGS' # $c_switch_x_machine $c_switch_x_system' | |
| 1569 xe_ldflags='$ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site' # $ld_switch_x_machine $ld_switch_x_system' | |
| 1570 xe_libs='$xe_check_libs $X_PRE_LIBS $libs_x $X_EXTRA_LIBS $LIBS $libs_machine $libs_system $libs_standard' | |
| 1571 ac_cpp='$CPP '"$xe_cppflags" | |
| 1572 ac_compile='${CC-cc} -c '"$CFLAGS $xe_cppflags"' conftest.$ac_ext 1>&5' | |
| 1573 ac_link='${CC-cc} -o conftest '"$CFLAGS $xe_cppflags $LDFLAGS $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' | |
| 1574 cross_compiling=no | |
| 1575 | |
| 1576 cat > conftest.$ac_ext <<EOF | |
| 1577 #line 1578 "configure" | |
| 1578 #include "confdefs.h" | |
| 1579 main(){return(0);} | |
| 1580 EOF | |
| 1581 if { (eval echo configure:1582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 1582 ac_cv_prog_cc_works=yes | |
| 1583 # If we can't run a trivial program, we are probably using a cross compiler. | |
| 1584 if (./conftest; exit) 2>/dev/null; then | |
| 1585 ac_cv_prog_cc_cross=no | |
| 1586 else | |
| 1587 ac_cv_prog_cc_cross=yes | |
| 1588 fi | |
| 1589 else | |
| 1590 echo "configure: failed program was:" >&5 | |
| 1591 cat conftest.$ac_ext >&5 | |
| 1592 ac_cv_prog_cc_works=no | |
| 1593 fi | |
| 1594 rm -fr conftest* | |
| 1595 | |
| 1596 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
| 1597 if test $ac_cv_prog_cc_works = no; then | |
| 1598 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
| 1599 fi | |
| 1600 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
| 1601 echo "configure:1602: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
| 1602 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
| 1603 cross_compiling=$ac_cv_prog_cc_cross | |
| 1604 | |
| 1605 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
| 1606 echo "configure:1607: checking whether we are using GNU C" >&5 | |
| 1607 | |
| 1608 cat > conftest.c <<EOF | |
| 1609 #ifdef __GNUC__ | |
| 1610 yes; | |
| 1611 #endif | |
| 1612 EOF | |
| 1613 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
| 1614 ac_cv_prog_gcc=yes | |
| 1615 else | |
| 1616 ac_cv_prog_gcc=no | |
| 1617 fi | |
| 1618 | |
| 1619 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
| 1620 | |
| 1621 if test $ac_cv_prog_gcc = yes; then | |
| 1622 GCC=yes | |
| 1623 ac_test_CFLAGS="${CFLAGS+set}" | |
| 1624 ac_save_CFLAGS="$CFLAGS" | |
| 1625 CFLAGS= | |
| 1626 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
| 1627 echo "configure:1628: checking whether ${CC-cc} accepts -g" >&5 | |
| 1628 | |
| 1629 echo 'void f(){}' > conftest.c | |
| 1630 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
| 1631 ac_cv_prog_cc_g=yes | |
| 1632 else | |
| 1633 ac_cv_prog_cc_g=no | |
| 1634 fi | |
| 1635 rm -f conftest* | |
| 1636 | |
| 1637 | |
| 1638 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
| 1639 if test "$ac_test_CFLAGS" = set; then | |
| 1640 CFLAGS="$ac_save_CFLAGS" | |
| 1641 elif test $ac_cv_prog_cc_g = yes; then | |
| 1642 CFLAGS="-g -O2" | |
| 1643 else | |
| 1644 CFLAGS="-O2" | |
| 1645 fi | |
| 1646 else | |
| 1647 GCC= | |
| 1648 test "${CFLAGS+set}" = set || CFLAGS="-g" | |
| 1649 fi | |
| 1650 | |
| 1651 elif test "$with_gcc" = "yes" -a "$ac_cv_prog_gcc" = "no" ; then | |
| 1652 CC=gcc | |
| 1653 # Extract the first word of "gcc", so it can be a program name with args. | |
| 1654 set dummy gcc; ac_word=$2 | |
| 1655 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
| 1656 echo "configure:1657: checking for $ac_word" >&5 | |
| 1657 | |
| 1658 if test -n "$CC"; then | |
| 1659 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 1660 else | |
| 1798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 1661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1799 for ac_dir in $PATH; do | 1662 for ac_dir in $PATH; do |
| 1800 case "$ac_dir" in | 1663 test -z "$ac_dir" && ac_dir=. |
| 1801 ''|.|/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;; | 1664 if test -f $ac_dir/$ac_word; then |
| 1665 ac_cv_prog_CC="gcc" | |
| 1666 break | |
| 1667 fi | |
| 1668 done | |
| 1669 IFS="$ac_save_ifs" | |
| 1670 fi | |
| 1671 CC="$ac_cv_prog_CC" | |
| 1672 if test -n "$CC"; then | |
| 1673 echo "$ac_t""$CC" 1>&6 | |
| 1674 else | |
| 1675 echo "$ac_t""no" 1>&6 | |
| 1676 fi | |
| 1677 | |
| 1678 if test -z "$CC"; then | |
| 1679 # Extract the first word of "cc", so it can be a program name with args. | |
| 1680 set dummy cc; ac_word=$2 | |
| 1681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
| 1682 echo "configure:1683: checking for $ac_word" >&5 | |
| 1683 | |
| 1684 if test -n "$CC"; then | |
| 1685 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 1686 else | |
| 1687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
| 1688 ac_prog_rejected=no | |
| 1689 for ac_dir in $PATH; do | |
| 1690 test -z "$ac_dir" && ac_dir=. | |
| 1691 if test -f $ac_dir/$ac_word; then | |
| 1692 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
| 1693 ac_prog_rejected=yes | |
| 1694 continue | |
| 1695 fi | |
| 1696 ac_cv_prog_CC="cc" | |
| 1697 break | |
| 1698 fi | |
| 1699 done | |
| 1700 IFS="$ac_save_ifs" | |
| 1701 if test $ac_prog_rejected = yes; then | |
| 1702 # We found a bogon in the path, so make sure we never use it. | |
| 1703 set dummy $ac_cv_prog_CC | |
| 1704 shift | |
| 1705 if test $# -gt 0; then | |
| 1706 # We chose a different compiler from the bogus one. | |
| 1707 # However, it has the same basename, so the bogon will be chosen | |
| 1708 # first if we set CC to just the basename; use the full file name. | |
| 1709 shift | |
| 1710 set dummy "$ac_dir/$ac_word" "$@" | |
| 1711 shift | |
| 1712 ac_cv_prog_CC="$@" | |
| 1713 fi | |
| 1714 fi | |
| 1715 fi | |
| 1716 CC="$ac_cv_prog_CC" | |
| 1717 if test -n "$CC"; then | |
| 1718 echo "$ac_t""$CC" 1>&6 | |
| 1719 else | |
| 1720 echo "$ac_t""no" 1>&6 | |
| 1721 fi | |
| 1722 | |
| 1723 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
| 1724 fi | |
| 1725 | |
| 1726 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
| 1727 echo "configure:1728: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
| 1728 | |
| 1729 ac_ext=c | |
| 1730 xe_cppflags='$c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS $CPPFLAGS' # $c_switch_x_machine $c_switch_x_system' | |
| 1731 xe_ldflags='$ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site' # $ld_switch_x_machine $ld_switch_x_system' | |
| 1732 xe_libs='$xe_check_libs $X_PRE_LIBS $libs_x $X_EXTRA_LIBS $LIBS $libs_machine $libs_system $libs_standard' | |
| 1733 ac_cpp='$CPP '"$xe_cppflags" | |
| 1734 ac_compile='${CC-cc} -c '"$CFLAGS $xe_cppflags"' conftest.$ac_ext 1>&5' | |
| 1735 ac_link='${CC-cc} -o conftest '"$CFLAGS $xe_cppflags $LDFLAGS $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' | |
| 1736 cross_compiling=no | |
| 1737 | |
| 1738 cat > conftest.$ac_ext <<EOF | |
| 1739 #line 1740 "configure" | |
| 1740 #include "confdefs.h" | |
| 1741 main(){return(0);} | |
| 1742 EOF | |
| 1743 if { (eval echo configure:1744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 1744 ac_cv_prog_cc_works=yes | |
| 1745 # If we can't run a trivial program, we are probably using a cross compiler. | |
| 1746 if (./conftest; exit) 2>/dev/null; then | |
| 1747 ac_cv_prog_cc_cross=no | |
| 1748 else | |
| 1749 ac_cv_prog_cc_cross=yes | |
| 1750 fi | |
| 1751 else | |
| 1752 echo "configure: failed program was:" >&5 | |
| 1753 cat conftest.$ac_ext >&5 | |
| 1754 ac_cv_prog_cc_works=no | |
| 1755 fi | |
| 1756 rm -fr conftest* | |
| 1757 | |
| 1758 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
| 1759 if test $ac_cv_prog_cc_works = no; then | |
| 1760 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
| 1761 fi | |
| 1762 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
| 1763 echo "configure:1764: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
| 1764 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
| 1765 cross_compiling=$ac_cv_prog_cc_cross | |
| 1766 | |
| 1767 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
| 1768 echo "configure:1769: checking whether we are using GNU C" >&5 | |
| 1769 | |
| 1770 cat > conftest.c <<EOF | |
| 1771 #ifdef __GNUC__ | |
| 1772 yes; | |
| 1773 #endif | |
| 1774 EOF | |
| 1775 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
| 1776 ac_cv_prog_gcc=yes | |
| 1777 else | |
| 1778 ac_cv_prog_gcc=no | |
| 1779 fi | |
| 1780 | |
| 1781 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
| 1782 | |
| 1783 if test $ac_cv_prog_gcc = yes; then | |
| 1784 GCC=yes | |
| 1785 ac_test_CFLAGS="${CFLAGS+set}" | |
| 1786 ac_save_CFLAGS="$CFLAGS" | |
| 1787 CFLAGS= | |
| 1788 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
| 1789 echo "configure:1790: checking whether ${CC-cc} accepts -g" >&5 | |
| 1790 | |
| 1791 echo 'void f(){}' > conftest.c | |
| 1792 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
| 1793 ac_cv_prog_cc_g=yes | |
| 1794 else | |
| 1795 ac_cv_prog_cc_g=no | |
| 1796 fi | |
| 1797 rm -f conftest* | |
| 1798 | |
| 1799 | |
| 1800 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
| 1801 if test "$ac_test_CFLAGS" = set; then | |
| 1802 CFLAGS="$ac_save_CFLAGS" | |
| 1803 elif test $ac_cv_prog_cc_g = yes; then | |
| 1804 CFLAGS="-g -O2" | |
| 1805 else | |
| 1806 CFLAGS="-O2" | |
| 1807 fi | |
| 1808 else | |
| 1809 GCC= | |
| 1810 test "${CFLAGS+set}" = set || CFLAGS="-g" | |
| 1811 fi | |
| 1812 | |
| 1813 fi | |
| 1814 | |
| 1815 if test "$GCC" = "yes"; then with_gcc=yes; else with_gcc=no; fi | |
| 1816 test -n "$NON_GNU_CPP" -a "$with_gcc" = "no" -a -z "$CPP" && CPP="$NON_GNU_CPP" | |
| 1817 | |
| 1818 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
| 1819 echo "configure:1820: checking how to run the C preprocessor" >&5 | |
| 1820 # On Suns, sometimes $CPP names a directory. | |
| 1821 if test -n "$CPP" && test -d "$CPP"; then | |
| 1822 CPP= | |
| 1823 fi | |
| 1824 if test -z "$CPP"; then | |
| 1825 | |
| 1826 # This must be in double quotes, not single quotes, because CPP may get | |
| 1827 # substituted into the Makefile and "${CC-cc}" will confuse make. | |
| 1828 CPP="${CC-cc} -E" | |
| 1829 # On the NeXT, cc -E runs the code through the compiler's parser, | |
| 1830 # not just through cpp. | |
| 1831 cat > conftest.$ac_ext <<EOF | |
| 1832 #line 1833 "configure" | |
| 1833 #include "confdefs.h" | |
| 1834 #include <assert.h> | |
| 1835 Syntax Error | |
| 1836 EOF | |
| 1837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
| 1838 { (eval echo configure:1839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
| 1839 ac_err=`grep -v '^ *+' conftest.out` | |
| 1840 if test -z "$ac_err"; then | |
| 1841 : | |
| 1842 else | |
| 1843 echo "$ac_err" >&5 | |
| 1844 echo "configure: failed program was:" >&5 | |
| 1845 cat conftest.$ac_ext >&5 | |
| 1846 rm -rf conftest* | |
| 1847 CPP="${CC-cc} -E -traditional-cpp" | |
| 1848 cat > conftest.$ac_ext <<EOF | |
| 1849 #line 1850 "configure" | |
| 1850 #include "confdefs.h" | |
| 1851 #include <assert.h> | |
| 1852 Syntax Error | |
| 1853 EOF | |
| 1854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
| 1855 { (eval echo configure:1856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
| 1856 ac_err=`grep -v '^ *+' conftest.out` | |
| 1857 if test -z "$ac_err"; then | |
| 1858 : | |
| 1859 else | |
| 1860 echo "$ac_err" >&5 | |
| 1861 echo "configure: failed program was:" >&5 | |
| 1862 cat conftest.$ac_ext >&5 | |
| 1863 rm -rf conftest* | |
| 1864 CPP=/lib/cpp | |
| 1865 fi | |
| 1866 rm -f conftest* | |
| 1867 fi | |
| 1868 rm -f conftest* | |
| 1869 ac_cv_prog_CPP="$CPP" | |
| 1870 CPP="$ac_cv_prog_CPP" | |
| 1871 else | |
| 1872 ac_cv_prog_CPP="$CPP" | |
| 1873 fi | |
| 1874 echo "$ac_t""$CPP" 1>&6 | |
| 1875 | |
| 1876 | |
| 1877 case "$canonical" in | |
| 1878 *-sun-sunos* ) test "$CPP" = "acc -E" && CPP="acc -E -Xs" ;; | |
| 1879 esac | |
| 1880 | |
| 1881 | |
| 1882 echo "Extracting information from the machine- and system-dependent headers..." | |
| 1883 | |
| 1884 | |
| 1885 | |
| 1886 tempcname="conftest.c" | |
| 1887 | |
| 1888 | |
| 1889 | |
| 1890 | |
| 1891 | |
| 1892 | |
| 1893 echo ' | |
| 1894 #define NOT_C_CODE | |
| 1895 #define C_SWITCH_SITE | |
| 1896 #define C_SWITCH_X_SITE | |
| 1897 #define LD_SWITCH_SITE | |
| 1898 #define LD_SWITCH_X_SITE | |
| 1899 #define LD_SWITCH_X_SITE_AUX | |
| 1900 #include "'$srcdir'/src/'$opsysfile'" | |
| 1901 #include "'$srcdir'/src/'$machfile'" | |
| 1902 | |
| 1903 #ifndef LIBS_MACHINE | |
| 1904 #define LIBS_MACHINE | |
| 1905 #endif | |
| 1906 configure___ libs_machine=LIBS_MACHINE | |
| 1907 | |
| 1908 #ifndef LIBS_SYSTEM | |
| 1909 #define LIBS_SYSTEM | |
| 1910 #endif | |
| 1911 configure___ libs_system=LIBS_SYSTEM | |
| 1912 | |
| 1913 #ifndef LIBS_TERMCAP | |
| 1914 #define LIBS_TERMCAP | |
| 1915 #endif | |
| 1916 configure___ libs_termcap=LIBS_TERMCAP | |
| 1917 | |
| 1918 #ifndef LIB_STANDARD | |
| 1919 #define LIB_STANDARD | |
| 1920 #endif | |
| 1921 configure___ libs_standard=LIB_STANDARD | |
| 1922 | |
| 1923 #ifndef C_SWITCH_SYSTEM | |
| 1924 #define C_SWITCH_SYSTEM | |
| 1925 #endif | |
| 1926 configure___ c_switch_system=C_SWITCH_SYSTEM | |
| 1927 | |
| 1928 #ifndef C_SWITCH_MACHINE | |
| 1929 #define C_SWITCH_MACHINE | |
| 1930 #endif | |
| 1931 configure___ c_switch_machine=C_SWITCH_MACHINE | |
| 1932 | |
| 1933 #ifndef C_SWITCH_X_SYSTEM | |
| 1934 #define C_SWITCH_X_SYSTEM | |
| 1935 #endif | |
| 1936 configure___ c_switch_x_system=C_SWITCH_X_SYSTEM | |
| 1937 | |
| 1938 #ifndef LD_SWITCH_X_SYSTEM | |
| 1939 #define LD_SWITCH_X_SYSTEM | |
| 1940 #endif | |
| 1941 configure___ ld_switch_x_system=LD_SWITCH_X_SYSTEM | |
| 1942 | |
| 1943 #ifndef LD_SWITCH_SYSTEM | |
| 1944 #define LD_SWITCH_SYSTEM | |
| 1945 #endif | |
| 1946 configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
| 1947 | |
| 1948 #ifndef UNEXEC | |
| 1949 #define UNEXEC unexec.o | |
| 1950 #endif | |
| 1951 configure___ unexec=UNEXEC | |
| 1952 | |
| 1953 #ifndef C_DEBUG_SWITCH | |
| 1954 #define C_DEBUG_SWITCH -g | |
| 1955 #endif | |
| 1956 configure___ c_debug_switch=C_DEBUG_SWITCH | |
| 1957 | |
| 1958 #ifndef C_OPTIMIZE_SWITCH | |
| 1959 #define C_OPTIMIZE_SWITCH -O | |
| 1960 #endif | |
| 1961 configure___ c_optimize_switch=C_OPTIMIZE_SWITCH | |
| 1962 | |
| 1963 | |
| 1964 #ifdef SYSTEM_MALLOC | |
| 1965 configure___ system_malloc=yes | |
| 1966 #else | |
| 1967 configure___ system_malloc=no | |
| 1968 #endif | |
| 1969 | |
| 1970 #ifdef TERMINFO | |
| 1971 configure___ have_terminfo=yes | |
| 1972 #else | |
| 1973 configure___ have_terminfo=no | |
| 1974 #endif | |
| 1975 | |
| 1976 #ifdef MAIL_USE_FLOCK | |
| 1977 configure___ mail_use_flock=yes | |
| 1978 #else | |
| 1979 configure___ mail_use_flock=no | |
| 1980 #endif | |
| 1981 | |
| 1982 #ifdef MAIL_USE_LOCKF | |
| 1983 configure___ mail_use_lockf=yes | |
| 1984 #else | |
| 1985 configure___ mail_use_lockf=no | |
| 1986 #endif | |
| 1987 | |
| 1988 #ifdef __SUNPRO_C | |
| 1989 configure___ sunpro_c=yes | |
| 1990 #else | |
| 1991 configure___ sunpro_c=no | |
| 1992 #endif | |
| 1993 | |
| 1994 | |
| 1995 #ifdef THIS_IS_CONFIGURE | |
| 1996 | |
| 1997 /* Get the CFLAGS for tests in configure. */ | |
| 1998 #ifdef __GNUC__ | |
| 1999 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '$SPECIFIED_CFLAGS' | |
| 2000 #else | |
| 2001 configure___ CFLAGS=C_DEBUG_SWITCH '$SPECIFIED_CFLAGS' | |
| 2002 #endif | |
| 2003 | |
| 2004 #else /* not THIS_IS_CONFIGURE */ | |
| 2005 | |
| 2006 /* Get the CFLAGS for real compilation. */ | |
| 2007 #ifdef __GNUC__ | |
| 2008 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '$SPECIFIED_CFLAGS' | |
| 2009 #else | |
| 2010 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '$SPECIFIED_CFLAGS' | |
| 2011 #endif | |
| 2012 | |
| 2013 #endif /* not THIS_IS_CONFIGURE */ | |
| 2014 ' > $tempcname | |
| 2015 CPP=`eval "echo $CPP"` | |
| 2016 eval `$CPP -Isrc $tempcname \ | |
| 2017 | grep 'configure___' \ | |
| 2018 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
| 2019 if test -z "$SPECIFIED_CFLAGS"; then | |
| 2020 eval `$CPP -Isrc -DTHIS_IS_CONFIGURE $tempcname \ | |
| 2021 | grep 'configure___' \ | |
| 2022 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
| 2023 else | |
| 2024 REAL_CFLAGS="$CFLAGS" | |
| 2025 fi | |
| 2026 rm $tempcname | |
| 2027 | |
| 2028 if test "$cflags" != "NO_CFLAGS_DEFINED" ; then | |
| 2029 REAL_CFLAGS=$cflags | |
| 2030 fi | |
| 2031 | |
| 2032 UNEXEC_SRC="`echo $unexec | sed 's/\.o/.c/'`" | |
| 2033 | |
| 2034 GNU_MALLOC=yes | |
| 2035 if test "$system_malloc" = "yes" ; then | |
| 2036 GNU_MALLOC=no | |
| 2037 GNU_MALLOC_reason=" | |
| 2038 (The GNU allocators don't work with this system configuration.)" | |
| 2039 elif test "$use_system_malloc" = "yes" ; then | |
| 2040 GNU_MALLOC=no | |
| 2041 GNU_MALLOC_reason=" | |
| 2042 (User chose not to use GNU allocators.)" | |
| 2043 fi | |
| 2044 | |
| 2045 | |
| 2046 | |
| 2047 # Extract the first word of "ranlib", so it can be a program name with args. | |
| 2048 set dummy ranlib; ac_word=$2 | |
| 2049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
| 2050 echo "configure:2051: checking for $ac_word" >&5 | |
| 2051 | |
| 2052 if test -n "$RANLIB"; then | |
| 2053 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
| 2054 else | |
| 2055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
| 2056 for ac_dir in $PATH; do | |
| 2057 test -z "$ac_dir" && ac_dir=. | |
| 2058 if test -f $ac_dir/$ac_word; then | |
| 2059 ac_cv_prog_RANLIB="ranlib" | |
| 2060 break | |
| 2061 fi | |
| 2062 done | |
| 2063 IFS="$ac_save_ifs" | |
| 2064 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
| 2065 fi | |
| 2066 RANLIB="$ac_cv_prog_RANLIB" | |
| 2067 if test -n "$RANLIB"; then | |
| 2068 echo "$ac_t""$RANLIB" 1>&6 | |
| 2069 else | |
| 2070 echo "$ac_t""no" 1>&6 | |
| 2071 fi | |
| 2072 | |
| 2073 ac_aux_dir= | |
| 2074 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
| 2075 if test -f $ac_dir/install-sh; then | |
| 2076 ac_aux_dir=$ac_dir | |
| 2077 ac_install_sh="$ac_aux_dir/install-sh -c" | |
| 2078 break | |
| 2079 elif test -f $ac_dir/install.sh; then | |
| 2080 ac_aux_dir=$ac_dir | |
| 2081 ac_install_sh="$ac_aux_dir/install.sh -c" | |
| 2082 break | |
| 2083 fi | |
| 2084 done | |
| 2085 if test -z "$ac_aux_dir"; then | |
| 2086 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
| 2087 fi | |
| 2088 ac_config_guess=$ac_aux_dir/config.guess | |
| 2089 ac_config_sub=$ac_aux_dir/config.sub | |
| 2090 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
| 2091 | |
| 2092 # Find a good install program. We prefer a C program (faster), | |
| 2093 # so one script is as good as another. But avoid the broken or | |
| 2094 # incompatible versions: | |
| 2095 # SysV /etc/install, /usr/sbin/install | |
| 2096 # SunOS /usr/etc/install | |
| 2097 # IRIX /sbin/install | |
| 2098 # AIX /bin/install | |
| 2099 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
| 2100 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
| 2101 # ./install, which can be erroneously created by make from ./install.sh. | |
| 2102 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
| 2103 echo "configure:2104: checking for a BSD compatible install" >&5 | |
| 2104 if test -z "$INSTALL"; then | |
| 2105 | |
| 2106 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" | |
| 2107 for ac_dir in $PATH; do | |
| 2108 # Account for people who put trailing slashes in PATH elements. | |
| 2109 case "$ac_dir/" in | |
| 2110 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
| 1802 *) | 2111 *) |
| 1803 # OSF1 and SCO ODT 3.0 have their own names for install. | 2112 # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1804 for ac_prog in installbsd scoinst install; do | 2113 for ac_prog in ginstall installbsd scoinst install; do |
| 1805 if test -f $ac_dir/$ac_prog; then | 2114 if test -f $ac_dir/$ac_prog; then |
| 1806 if test $ac_prog = install && | 2115 if test $ac_prog = install && |
| 1807 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | 2116 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 1808 # AIX install. It has an incompatible calling convention. | 2117 # AIX install. It has an incompatible calling convention. |
| 1809 # OSF/1 installbsd also uses dspmsg, but is usable. | 2118 # OSF/1 installbsd also uses dspmsg, but is usable. |
| 1810 : | 2119 : |
| 1811 else | 2120 else |
| 1812 INSTALL="$ac_dir/$ac_prog -c" | 2121 ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1813 break 2 | 2122 break 2 |
| 1814 fi | 2123 fi |
| 1815 fi | 2124 fi |
| 1816 done | 2125 done |
| 1817 ;; | 2126 ;; |
| 1818 esac | 2127 esac |
| 1819 done | 2128 done |
| 1820 IFS="$ac_save_ifs" | 2129 IFS="$ac_save_IFS" |
| 1821 fi | 2130 |
| 1822 | 2131 if test "${ac_cv_path_install+set}" = set; then |
| 1823 if test -z "$INSTALL"; then | 2132 INSTALL="$ac_cv_path_install" |
| 1824 # As a last resort, use the slow shell script. | 2133 else |
| 1825 for ac_dir in ${srcdir} ${srcdir}/.. ${srcdir}/../..; do | 2134 # As a last resort, use the slow shell script. We don't cache a |
| 1826 if test -f $ac_dir/install.sh; then | 2135 # path for INSTALL within a source directory, because that will |
| 1827 INSTALL="$ac_dir/install.sh -c"; break | 2136 # break other packages using the cache if that directory is |
| 1828 fi | 2137 # removed, or if the path is relative. |
| 1829 done | 2138 INSTALL="$ac_install_sh" |
| 1830 fi | 2139 fi |
| 1831 if test -z "$INSTALL"; then | 2140 fi |
| 1832 echo "configure: can not find install.sh in ${srcdir} or ${srcdir}/.. or ${srcdir}/../.." >&2; exit 1 | 2141 echo "$ac_t""$INSTALL" 1>&6 |
| 1833 fi | 2142 |
| 1834 test -n "$verbose" && echo " setting INSTALL to $INSTALL" | 2143 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1835 | |
| 1836 # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}. | |
| 1837 # It thinks the first close brace ends the variable substitution. | 2144 # It thinks the first close brace ends the variable substitution. |
| 1838 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 2145 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1839 test -n "$verbose" && echo " setting INSTALL_PROGRAM to $INSTALL_PROGRAM" | |
| 1840 | 2146 |
| 1841 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 2147 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1842 test -n "$verbose" && echo " setting INSTALL_DATA to $INSTALL_DATA" | |
| 1843 | 2148 |
| 1844 for ac_prog in 'bison -y' byacc | 2149 for ac_prog in 'bison -y' byacc |
| 1845 do | 2150 do |
| 1846 if test -z "$YACC"; then | 2151 # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1847 # Extract the first word of `$ac_prog', so it can be a program name with args. | 2152 set dummy $ac_prog; ac_word=$2 |
| 1848 set ac_dummy $ac_prog; ac_word=$2 | 2153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1849 test -n "$silent" || echo "checking for $ac_word" | 2154 echo "configure:2155: checking for $ac_word" >&5 |
| 2155 | |
| 2156 if test -n "$YACC"; then | |
| 2157 ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
| 2158 else | |
| 1850 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 2159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1851 for ac_dir in $PATH; do | 2160 for ac_dir in $PATH; do |
| 1852 test -z "$ac_dir" && ac_dir=. | 2161 test -z "$ac_dir" && ac_dir=. |
| 1853 if test -f $ac_dir/$ac_word; then | 2162 if test -f $ac_dir/$ac_word; then |
| 1854 YACC="$ac_prog" | 2163 ac_cv_prog_YACC="$ac_prog" |
| 1855 break | 2164 break |
| 1856 fi | 2165 fi |
| 1857 done | 2166 done |
| 1858 IFS="$ac_save_ifs" | 2167 IFS="$ac_save_ifs" |
| 1859 fi | 2168 fi |
| 1860 | 2169 YACC="$ac_cv_prog_YACC" |
| 1861 test -n "$YACC" && test -n "$verbose" && echo " setting YACC to $YACC" | 2170 if test -n "$YACC"; then |
| 2171 echo "$ac_t""$YACC" 1>&6 | |
| 2172 else | |
| 2173 echo "$ac_t""no" 1>&6 | |
| 2174 fi | |
| 1862 | 2175 |
| 1863 test -n "$YACC" && break | 2176 test -n "$YACC" && break |
| 1864 done | 2177 done |
| 1865 test -n "$YACC" || YACC="yacc" | 2178 test -n "$YACC" || YACC="yacc" |
| 1866 | 2179 |
| 1867 | 2180 |
| 1868 test -n "$silent" || echo "checking for AIX" | 2181 echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
| 1869 cat > conftest.${ac_ext} <<EOF | 2182 echo "configure:2183: checking for AIX" >&5 |
| 2183 cat > conftest.$ac_ext <<EOF | |
| 2184 #line 2185 "configure" | |
| 1870 #include "confdefs.h" | 2185 #include "confdefs.h" |
| 1871 #ifdef _AIX | 2186 #ifdef _AIX |
| 1872 yes | 2187 yes |
| 1873 #endif | 2188 #endif |
| 1874 | 2189 |
| 1875 EOF | 2190 EOF |
| 1876 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1" | 2191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1877 if egrep "yes" conftest.out >/dev/null 2>&1; then | 2192 egrep "yes" >/dev/null 2>&1; then |
| 1878 rm -rf conftest* | 2193 rm -rf conftest* |
| 1879 | 2194 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF |
| 1880 { | 2195 Defining _ALL_SOURCE |
| 1881 test -n "$verbose" && \ | 2196 EOF |
| 1882 echo " defining _ALL_SOURCE" | 2197 cat >> confdefs.h <<\EOF |
| 1883 echo "#define" _ALL_SOURCE "1" >> confdefs.h | 2198 #define _ALL_SOURCE 1 |
| 1884 DEFS="$DEFS -D_ALL_SOURCE=1" | 2199 EOF |
| 1885 ac_sed_defs="${ac_sed_defs}\${ac_dA}_ALL_SOURCE\${ac_dB}_ALL_SOURCE\${ac_dC}1\${ac_dD} | 2200 } |
| 1886 \${ac_uA}_ALL_SOURCE\${ac_uB}_ALL_SOURCE\${ac_uC}1\${ac_uD} | 2201 |
| 1887 \${ac_eA}_ALL_SOURCE\${ac_eB}_ALL_SOURCE\${ac_eC}1\${ac_eD} | 2202 else |
| 1888 " | 2203 rm -rf conftest* |
| 1889 } | 2204 echo "$ac_t""no" 1>&6 |
| 1890 | |
| 1891 | |
| 1892 fi | 2205 fi |
| 1893 rm -f conftest* | 2206 rm -f conftest* |
| 1894 | 2207 |
| 1895 | 2208 |
| 1896 | 2209 |
| 1897 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h | 2210 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h |
| 1898 do | 2211 do |
| 1899 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'` | 2212 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1900 test -n "$silent" || echo "checking for ${ac_hdr}" | 2213 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1901 cat > conftest.${ac_ext} <<EOF | 2214 echo "configure:2215: checking for $ac_hdr" >&5 |
| 1902 #include "confdefs.h" | 2215 |
| 1903 #include <${ac_hdr}> | 2216 cat > conftest.$ac_ext <<EOF |
| 1904 EOF | 2217 #line 2218 "configure" |
| 1905 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | 2218 #include "confdefs.h" |
| 1906 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | 2219 #include <$ac_hdr> |
| 1907 echo "$ac_err" | 2220 EOF |
| 1908 fi | 2221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2222 { (eval echo configure:2223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
| 2223 ac_err=`grep -v '^ *+' conftest.out` | |
| 1909 if test -z "$ac_err"; then | 2224 if test -z "$ac_err"; then |
| 1910 rm -rf conftest* | 2225 rm -rf conftest* |
| 1911 | 2226 eval "ac_cv_header_$ac_safe=yes" |
| 1912 { | 2227 else |
| 1913 test -n "$verbose" && \ | 2228 echo "$ac_err" >&5 |
| 1914 echo " defining ${ac_tr_hdr}" | 2229 echo "configure: failed program was:" >&5 |
| 1915 echo "#define" ${ac_tr_hdr} "1" >> confdefs.h | 2230 cat conftest.$ac_ext >&5 |
| 1916 DEFS="$DEFS -D${ac_tr_hdr}=1" | 2231 rm -rf conftest* |
| 1917 ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD} | 2232 eval "ac_cv_header_$ac_safe=no" |
| 1918 \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD} | 2233 fi |
| 1919 \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD} | 2234 rm -f conftest* |
| 1920 " | 2235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1921 } | 2236 echo "$ac_t""yes" 1>&6 |
| 1922 | 2237 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 1923 | 2238 { test "$extra_verbose" = "yes" && cat << EOF |
| 1924 fi | 2239 Defining $ac_tr_hdr |
| 1925 rm -f conftest* | 2240 EOF |
| 2241 cat >> confdefs.h <<EOF | |
| 2242 #define $ac_tr_hdr 1 | |
| 2243 EOF | |
| 2244 } | |
| 2245 | |
| 2246 else | |
| 2247 echo "$ac_t""no" 1>&6 | |
| 2248 fi | |
| 1926 done | 2249 done |
| 1927 | 2250 |
| 1928 for ac_hdr in utime.h sys/wait.h libintl.h locale.h libgen.h | 2251 for ac_hdr in utime.h sys/wait.h libintl.h locale.h libgen.h |
| 1929 do | 2252 do |
| 1930 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'` | 2253 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1931 test -n "$silent" || echo "checking for ${ac_hdr}" | 2254 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1932 cat > conftest.${ac_ext} <<EOF | 2255 echo "configure:2256: checking for $ac_hdr" >&5 |
| 1933 #include "confdefs.h" | 2256 |
| 1934 #include <${ac_hdr}> | 2257 cat > conftest.$ac_ext <<EOF |
| 1935 EOF | 2258 #line 2259 "configure" |
| 1936 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | 2259 #include "confdefs.h" |
| 1937 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | 2260 #include <$ac_hdr> |
| 1938 echo "$ac_err" | 2261 EOF |
| 1939 fi | 2262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2263 { (eval echo configure:2264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
| 2264 ac_err=`grep -v '^ *+' conftest.out` | |
| 1940 if test -z "$ac_err"; then | 2265 if test -z "$ac_err"; then |
| 1941 rm -rf conftest* | 2266 rm -rf conftest* |
| 1942 | 2267 eval "ac_cv_header_$ac_safe=yes" |
| 1943 { | 2268 else |
| 1944 test -n "$verbose" && \ | 2269 echo "$ac_err" >&5 |
| 1945 echo " defining ${ac_tr_hdr}" | 2270 echo "configure: failed program was:" >&5 |
| 1946 echo "#define" ${ac_tr_hdr} "1" >> confdefs.h | 2271 cat conftest.$ac_ext >&5 |
| 1947 DEFS="$DEFS -D${ac_tr_hdr}=1" | 2272 rm -rf conftest* |
| 1948 ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD} | 2273 eval "ac_cv_header_$ac_safe=no" |
| 1949 \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD} | 2274 fi |
| 1950 \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD} | 2275 rm -f conftest* |
| 1951 " | 2276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1952 } | 2277 echo "$ac_t""yes" 1>&6 |
| 1953 | 2278 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 1954 | 2279 { test "$extra_verbose" = "yes" && cat << EOF |
| 1955 fi | 2280 Defining $ac_tr_hdr |
| 1956 rm -f conftest* | 2281 EOF |
| 2282 cat >> confdefs.h <<EOF | |
| 2283 #define $ac_tr_hdr 1 | |
| 2284 EOF | |
| 2285 } | |
| 2286 | |
| 2287 else | |
| 2288 echo "$ac_t""no" 1>&6 | |
| 2289 fi | |
| 1957 done | 2290 done |
| 1958 | 2291 |
| 1959 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h | 2292 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h |
| 1960 do | 2293 do |
| 1961 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'` | 2294 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1962 test -n "$silent" || echo "checking for ${ac_hdr}" | 2295 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1963 cat > conftest.${ac_ext} <<EOF | 2296 echo "configure:2297: checking for $ac_hdr" >&5 |
| 1964 #include "confdefs.h" | 2297 |
| 1965 #include <${ac_hdr}> | 2298 cat > conftest.$ac_ext <<EOF |
| 1966 EOF | 2299 #line 2300 "configure" |
| 1967 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | 2300 #include "confdefs.h" |
| 1968 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | 2301 #include <$ac_hdr> |
| 1969 echo "$ac_err" | 2302 EOF |
| 1970 fi | 2303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2304 { (eval echo configure:2305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
| 2305 ac_err=`grep -v '^ *+' conftest.out` | |
| 1971 if test -z "$ac_err"; then | 2306 if test -z "$ac_err"; then |
| 1972 rm -rf conftest* | 2307 rm -rf conftest* |
| 1973 | 2308 eval "ac_cv_header_$ac_safe=yes" |
| 1974 { | 2309 else |
| 1975 test -n "$verbose" && \ | 2310 echo "$ac_err" >&5 |
| 1976 echo " defining ${ac_tr_hdr}" | 2311 echo "configure: failed program was:" >&5 |
| 1977 echo "#define" ${ac_tr_hdr} "1" >> confdefs.h | 2312 cat conftest.$ac_ext >&5 |
| 1978 DEFS="$DEFS -D${ac_tr_hdr}=1" | 2313 rm -rf conftest* |
| 1979 ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD} | 2314 eval "ac_cv_header_$ac_safe=no" |
| 1980 \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD} | 2315 fi |
| 1981 \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD} | 2316 rm -f conftest* |
| 1982 " | 2317 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1983 } | 2318 echo "$ac_t""yes" 1>&6 |
| 1984 | 2319 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 1985 | 2320 { test "$extra_verbose" = "yes" && cat << EOF |
| 1986 fi | 2321 Defining $ac_tr_hdr |
| 1987 rm -f conftest* | 2322 EOF |
| 2323 cat >> confdefs.h <<EOF | |
| 2324 #define $ac_tr_hdr 1 | |
| 2325 EOF | |
| 2326 } | |
| 2327 | |
| 2328 else | |
| 2329 echo "$ac_t""no" 1>&6 | |
| 2330 fi | |
| 1988 done | 2331 done |
| 1989 | 2332 |
| 1990 test -n "$silent" || echo "checking for ANSI C header files" | 2333 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
| 1991 cat > conftest.${ac_ext} <<EOF | 2334 echo "configure:2335: checking for ANSI C header files" >&5 |
| 2335 | |
| 2336 cat > conftest.$ac_ext <<EOF | |
| 2337 #line 2338 "configure" | |
| 1992 #include "confdefs.h" | 2338 #include "confdefs.h" |
| 1993 #include <stdlib.h> | 2339 #include <stdlib.h> |
| 1994 #include <stdarg.h> | 2340 #include <stdarg.h> |
| 1995 #include <string.h> | 2341 #include <string.h> |
| 1996 #include <float.h> | 2342 #include <float.h> |
| 1997 EOF | 2343 EOF |
| 1998 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | 2344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1999 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | 2345 { (eval echo configure:2346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2000 echo "$ac_err" | 2346 ac_err=`grep -v '^ *+' conftest.out` |
| 2001 fi | |
| 2002 if test -z "$ac_err"; then | 2347 if test -z "$ac_err"; then |
| 2003 rm -rf conftest* | 2348 rm -rf conftest* |
| 2349 ac_cv_header_stdc=yes | |
| 2350 else | |
| 2351 echo "$ac_err" >&5 | |
| 2352 echo "configure: failed program was:" >&5 | |
| 2353 cat conftest.$ac_ext >&5 | |
| 2354 rm -rf conftest* | |
| 2355 ac_cv_header_stdc=no | |
| 2356 fi | |
| 2357 rm -f conftest* | |
| 2358 | |
| 2359 if test $ac_cv_header_stdc = yes; then | |
| 2004 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 2360 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2005 echo '#include "confdefs.h" | 2361 cat > conftest.$ac_ext <<EOF |
| 2006 #include <string.h>' > conftest.${ac_ext} | 2362 #line 2363 "configure" |
| 2007 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1" | 2363 #include "confdefs.h" |
| 2008 if egrep "memchr" conftest.out >/dev/null 2>&1; then | 2364 #include <string.h> |
| 2009 rm -rf conftest* | 2365 EOF |
| 2010 # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 2366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2011 cat > conftest.${ac_ext} <<EOF | 2367 egrep "memchr" >/dev/null 2>&1; then |
| 2368 : | |
| 2369 else | |
| 2370 rm -rf conftest* | |
| 2371 ac_cv_header_stdc=no | |
| 2372 fi | |
| 2373 rm -f conftest* | |
| 2374 | |
| 2375 fi | |
| 2376 | |
| 2377 if test $ac_cv_header_stdc = yes; then | |
| 2378 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
| 2379 cat > conftest.$ac_ext <<EOF | |
| 2380 #line 2381 "configure" | |
| 2381 #include "confdefs.h" | |
| 2382 #include <stdlib.h> | |
| 2383 EOF | |
| 2384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
| 2385 egrep "free" >/dev/null 2>&1; then | |
| 2386 : | |
| 2387 else | |
| 2388 rm -rf conftest* | |
| 2389 ac_cv_header_stdc=no | |
| 2390 fi | |
| 2391 rm -f conftest* | |
| 2392 | |
| 2393 fi | |
| 2394 | |
| 2395 if test $ac_cv_header_stdc = yes; then | |
| 2396 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
| 2397 cat > conftest.$ac_ext <<EOF | |
| 2398 #line 2399 "configure" | |
| 2012 #include "confdefs.h" | 2399 #include "confdefs.h" |
| 2013 #include <ctype.h> | 2400 #include <ctype.h> |
| 2014 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 2401 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2015 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 2402 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2016 #define XOR(e,f) (((e) && !(f)) || (!(e) && (f))) | 2403 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2017 int main () { int i; for (i = 0; i < 256; i++) | 2404 int main () { int i; for (i = 0; i < 256; i++) |
| 2018 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | 2405 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 2019 exit (0); } | 2406 exit (0); } |
| 2020 | 2407 |
| 2021 EOF | 2408 EOF |
| 2022 eval $ac_compile | 2409 if { (eval echo configure:2410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
| 2023 if test -s conftest && (./conftest; exit) 2>/dev/null; then | 2410 then |
| 2024 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 2411 : |
| 2025 echo '#include "confdefs.h" | 2412 else |
| 2026 #include <stdlib.h>' > conftest.${ac_ext} | 2413 echo "configure: failed program was:" >&5 |
| 2027 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1" | 2414 cat conftest.$ac_ext >&5 |
| 2028 if egrep "free" conftest.out >/dev/null 2>&1; then | 2415 rm -fr conftest* |
| 2029 rm -rf conftest* | 2416 ac_cv_header_stdc=no |
| 2030 | |
| 2031 { | |
| 2032 test -n "$verbose" && \ | |
| 2033 echo " defining STDC_HEADERS" | |
| 2034 echo "#define" STDC_HEADERS "1" >> confdefs.h | |
| 2035 DEFS="$DEFS -DSTDC_HEADERS=1" | |
| 2036 ac_sed_defs="${ac_sed_defs}\${ac_dA}STDC_HEADERS\${ac_dB}STDC_HEADERS\${ac_dC}1\${ac_dD} | |
| 2037 \${ac_uA}STDC_HEADERS\${ac_uB}STDC_HEADERS\${ac_uC}1\${ac_uD} | |
| 2038 \${ac_eA}STDC_HEADERS\${ac_eB}STDC_HEADERS\${ac_eC}1\${ac_eD} | |
| 2039 " | |
| 2040 } | |
| 2041 | |
| 2042 | |
| 2043 fi | |
| 2044 rm -f conftest* | |
| 2045 | |
| 2046 | |
| 2047 fi | 2417 fi |
| 2048 rm -fr conftest* | 2418 rm -fr conftest* |
| 2049 | 2419 fi |
| 2050 fi | 2420 |
| 2051 rm -f conftest* | 2421 echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
| 2052 | 2422 if test $ac_cv_header_stdc = yes; then |
| 2053 | 2423 { test "$extra_verbose" = "yes" && cat << \EOF |
| 2054 fi | 2424 Defining STDC_HEADERS |
| 2055 rm -f conftest* | 2425 EOF |
| 2056 | 2426 cat >> confdefs.h <<\EOF |
| 2057 test -n "$silent" || echo "checking for whether time.h and sys/time.h may both be included" | 2427 #define STDC_HEADERS 1 |
| 2058 cat > conftest.${ac_ext} <<EOF | 2428 EOF |
| 2429 } | |
| 2430 | |
| 2431 fi | |
| 2432 | |
| 2433 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
| 2434 echo "configure:2435: checking whether time.h and sys/time.h may both be included" >&5 | |
| 2435 | |
| 2436 cat > conftest.$ac_ext <<EOF | |
| 2437 #line 2438 "configure" | |
| 2059 #include "confdefs.h" | 2438 #include "confdefs.h" |
| 2060 #include <sys/types.h> | 2439 #include <sys/types.h> |
| 2061 #include <sys/time.h> | 2440 #include <sys/time.h> |
| 2062 #include <time.h> | 2441 #include <time.h> |
| 2063 int main() { return 0; } | 2442 int main() { |
| 2064 int t() { struct tm *tp;; return 0; } | 2443 struct tm *tp; |
| 2065 EOF | 2444 ; return 0; } |
| 2066 if eval $ac_compile; then | 2445 EOF |
| 2067 rm -rf conftest* | 2446 if { (eval echo configure:2447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2068 | 2447 rm -rf conftest* |
| 2069 { | 2448 ac_cv_header_time=yes |
| 2070 test -n "$verbose" && \ | 2449 else |
| 2071 echo " defining TIME_WITH_SYS_TIME" | 2450 echo "configure: failed program was:" >&5 |
| 2072 echo "#define" TIME_WITH_SYS_TIME "1" >> confdefs.h | 2451 cat conftest.$ac_ext >&5 |
| 2073 DEFS="$DEFS -DTIME_WITH_SYS_TIME=1" | 2452 rm -rf conftest* |
| 2074 ac_sed_defs="${ac_sed_defs}\${ac_dA}TIME_WITH_SYS_TIME\${ac_dB}TIME_WITH_SYS_TIME\${ac_dC}1\${ac_dD} | 2453 ac_cv_header_time=no |
| 2075 \${ac_uA}TIME_WITH_SYS_TIME\${ac_uB}TIME_WITH_SYS_TIME\${ac_uC}1\${ac_uD} | 2454 fi |
| 2076 \${ac_eA}TIME_WITH_SYS_TIME\${ac_eB}TIME_WITH_SYS_TIME\${ac_eC}1\${ac_eD} | 2455 rm -f conftest* |
| 2077 " | 2456 |
| 2078 } | 2457 echo "$ac_t""$ac_cv_header_time" 1>&6 |
| 2079 | 2458 if test $ac_cv_header_time = yes; then |
| 2080 | 2459 { test "$extra_verbose" = "yes" && cat << \EOF |
| 2081 fi | 2460 Defining TIME_WITH_SYS_TIME |
| 2082 rm -f conftest* | 2461 EOF |
| 2083 | 2462 cat >> confdefs.h <<\EOF |
| 2084 test -n "$silent" || echo "checking for sys_siglist declaration in signal.h or unistd.h" | 2463 #define TIME_WITH_SYS_TIME 1 |
| 2085 cat > conftest.${ac_ext} <<EOF | 2464 EOF |
| 2086 #include "confdefs.h" | 2465 } |
| 2466 | |
| 2467 fi | |
| 2468 | |
| 2469 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 | |
| 2470 echo "configure:2471: checking for sys_siglist declaration in signal.h or unistd.h" >&5 | |
| 2471 | |
| 2472 cat > conftest.$ac_ext <<EOF | |
| 2473 #line 2474 "configure" | |
| 2474 #include "confdefs.h" | |
| 2475 #include <sys/types.h> | |
| 2087 #include <signal.h> | 2476 #include <signal.h> |
| 2088 /* NetBSD declares sys_siglist in <unistd.h>. */ | 2477 /* NetBSD declares sys_siglist in unistd.h. */ |
| 2089 #ifdef HAVE_UNISTD_H | 2478 #ifdef HAVE_UNISTD_H |
| 2090 #include <unistd.h> | 2479 #include <unistd.h> |
| 2091 #endif | 2480 #endif |
| 2092 int main() { return 0; } | 2481 int main() { |
| 2093 int t() { char *msg = *(sys_siglist + 1);; return 0; } | 2482 char *msg = *(sys_siglist + 1); |
| 2094 EOF | 2483 ; return 0; } |
| 2095 if eval $ac_compile; then | 2484 EOF |
| 2096 rm -rf conftest* | 2485 if { (eval echo configure:2486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2097 | 2486 rm -rf conftest* |
| 2098 { | 2487 ac_cv_decl_sys_siglist=yes |
| 2099 test -n "$verbose" && \ | 2488 else |
| 2100 echo " defining SYS_SIGLIST_DECLARED" | 2489 echo "configure: failed program was:" >&5 |
| 2101 echo "#define" SYS_SIGLIST_DECLARED "1" >> confdefs.h | 2490 cat conftest.$ac_ext >&5 |
| 2102 DEFS="$DEFS -DSYS_SIGLIST_DECLARED=1" | 2491 rm -rf conftest* |
| 2103 ac_sed_defs="${ac_sed_defs}\${ac_dA}SYS_SIGLIST_DECLARED\${ac_dB}SYS_SIGLIST_DECLARED\${ac_dC}1\${ac_dD} | 2492 ac_cv_decl_sys_siglist=no |
| 2104 \${ac_uA}SYS_SIGLIST_DECLARED\${ac_uB}SYS_SIGLIST_DECLARED\${ac_uC}1\${ac_uD} | 2493 fi |
| 2105 \${ac_eA}SYS_SIGLIST_DECLARED\${ac_eB}SYS_SIGLIST_DECLARED\${ac_eC}1\${ac_eD} | 2494 rm -f conftest* |
| 2106 " | 2495 |
| 2107 } | 2496 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6 |
| 2108 | 2497 if test $ac_cv_decl_sys_siglist = yes; then |
| 2109 | 2498 { test "$extra_verbose" = "yes" && cat << \EOF |
| 2110 fi | 2499 Defining SYS_SIGLIST_DECLARED |
| 2111 rm -f conftest* | 2500 EOF |
| 2112 | 2501 cat >> confdefs.h <<\EOF |
| 2113 | 2502 #define SYS_SIGLIST_DECLARED 1 |
| 2114 test -n "$silent" || echo "checking for struct utimbuf" | 2503 EOF |
| 2115 cat > conftest.${ac_ext} <<EOF | 2504 } |
| 2505 | |
| 2506 fi | |
| 2507 | |
| 2508 | |
| 2509 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 | |
| 2510 echo "configure:2511: checking for struct utimbuf" >&5 | |
| 2511 cat > conftest.$ac_ext <<EOF | |
| 2512 #line 2513 "configure" | |
| 2116 #include "confdefs.h" | 2513 #include "confdefs.h" |
| 2117 #ifdef TIME_WITH_SYS_TIME | 2514 #ifdef TIME_WITH_SYS_TIME |
| 2118 #include <sys/time.h> | 2515 #include <sys/time.h> |
| 2119 #include <time.h> | 2516 #include <time.h> |
| 2120 #else | 2517 #else |
| 2125 #endif | 2522 #endif |
| 2126 #endif | 2523 #endif |
| 2127 #ifdef HAVE_UTIME_H | 2524 #ifdef HAVE_UTIME_H |
| 2128 #include <utime.h> | 2525 #include <utime.h> |
| 2129 #endif | 2526 #endif |
| 2130 int main() { return 0; } | 2527 int main() { |
| 2131 int t() { static struct utimbuf x; x.actime = x.modtime;; return 0; } | 2528 static struct utimbuf x; x.actime = x.modtime; |
| 2132 EOF | 2529 ; return 0; } |
| 2133 if eval $ac_compile; then | 2530 EOF |
| 2134 rm -rf conftest* | 2531 if { (eval echo configure:2532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2135 | 2532 rm -rf conftest* |
| 2136 { | 2533 echo "$ac_t""yes" 1>&6 |
| 2137 test -n "$verbose" && \ | 2534 { test "$extra_verbose" = "yes" && cat << \EOF |
| 2138 echo " defining HAVE_STRUCT_UTIMBUF" | 2535 Defining HAVE_STRUCT_UTIMBUF |
| 2139 echo "#define" HAVE_STRUCT_UTIMBUF "1" >> confdefs.h | 2536 EOF |
| 2140 DEFS="$DEFS -DHAVE_STRUCT_UTIMBUF=1" | 2537 cat >> confdefs.h <<\EOF |
| 2141 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_STRUCT_UTIMBUF\${ac_dB}HAVE_STRUCT_UTIMBUF\${ac_dC}1\${ac_dD} | 2538 #define HAVE_STRUCT_UTIMBUF 1 |
| 2142 \${ac_uA}HAVE_STRUCT_UTIMBUF\${ac_uB}HAVE_STRUCT_UTIMBUF\${ac_uC}1\${ac_uD} | 2539 EOF |
| 2143 \${ac_eA}HAVE_STRUCT_UTIMBUF\${ac_eB}HAVE_STRUCT_UTIMBUF\${ac_eC}1\${ac_eD} | 2540 } |
| 2144 " | 2541 |
| 2145 } | 2542 else |
| 2146 | 2543 echo "configure: failed program was:" >&5 |
| 2147 | 2544 cat conftest.$ac_ext >&5 |
| 2148 fi | 2545 rm -rf conftest* |
| 2149 rm -f conftest* | 2546 echo "$ac_t""no" 1>&6 |
| 2150 | 2547 fi |
| 2151 | 2548 rm -f conftest* |
| 2152 test -n "$silent" || echo "checking for return type of signal handlers" | 2549 |
| 2153 cat > conftest.${ac_ext} <<EOF | 2550 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
| 2551 echo "configure:2552: checking return type of signal handlers" >&5 | |
| 2552 | |
| 2553 cat > conftest.$ac_ext <<EOF | |
| 2554 #line 2555 "configure" | |
| 2154 #include "confdefs.h" | 2555 #include "confdefs.h" |
| 2155 #include <sys/types.h> | 2556 #include <sys/types.h> |
| 2156 #include <signal.h> | 2557 #include <signal.h> |
| 2157 #ifdef signal | 2558 #ifdef signal |
| 2158 #undef signal | 2559 #undef signal |
| 2159 #endif | 2560 #endif |
| 2160 extern void (*signal ()) (); | 2561 #ifdef __cplusplus |
| 2161 int main() { return 0; } | 2562 extern "C" void (*signal (int, void (*)(int)))(int); |
| 2162 int t() { int i;; return 0; } | 2563 #else |
| 2163 EOF | 2564 void (*signal ()) (); |
| 2164 if eval $ac_compile; then | 2565 #endif |
| 2165 rm -rf conftest* | 2566 |
| 2166 | 2567 int main() { |
| 2167 { | 2568 int i; |
| 2168 test -n "$verbose" && \ | 2569 ; return 0; } |
| 2169 echo " defining" RETSIGTYPE to be "void" | 2570 EOF |
| 2170 echo "#define" RETSIGTYPE "void" >> confdefs.h | 2571 if { (eval echo configure:2572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2171 DEFS="$DEFS -DRETSIGTYPE=void" | 2572 rm -rf conftest* |
| 2172 ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}void\${ac_dD} | 2573 ac_cv_type_signal=void |
| 2173 \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}void\${ac_uD} | 2574 else |
| 2174 \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}void\${ac_eD} | 2575 echo "configure: failed program was:" >&5 |
| 2175 " | 2576 cat conftest.$ac_ext >&5 |
| 2176 } | 2577 rm -rf conftest* |
| 2177 | 2578 ac_cv_type_signal=int |
| 2178 | 2579 fi |
| 2179 else | 2580 rm -f conftest* |
| 2180 rm -rf conftest* | 2581 |
| 2181 | 2582 echo "$ac_t""$ac_cv_type_signal" 1>&6 |
| 2182 { | 2583 { test "$extra_verbose" = "yes" && cat << EOF |
| 2183 test -n "$verbose" && \ | 2584 Defining RETSIGTYPE = $ac_cv_type_signal |
| 2184 echo " defining" RETSIGTYPE to be "int" | 2585 EOF |
| 2185 echo "#define" RETSIGTYPE "int" >> confdefs.h | 2586 cat >> confdefs.h <<EOF |
| 2186 DEFS="$DEFS -DRETSIGTYPE=int" | 2587 #define RETSIGTYPE $ac_cv_type_signal |
| 2187 ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}int\${ac_dD} | 2588 EOF |
| 2188 \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}int\${ac_uD} | 2589 } |
| 2189 \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}int\${ac_eD} | 2590 |
| 2190 " | 2591 |
| 2191 } | 2592 |
| 2192 | 2593 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 |
| 2193 fi | 2594 echo "configure:2595: checking for struct timeval" >&5 |
| 2194 rm -f conftest* | 2595 cat > conftest.$ac_ext <<EOF |
| 2195 | 2596 #line 2597 "configure" |
| 2196 | |
| 2197 | |
| 2198 test -n "$silent" || echo "checking for struct timeval" | |
| 2199 cat > conftest.${ac_ext} <<EOF | |
| 2200 #include "confdefs.h" | 2597 #include "confdefs.h" |
| 2201 #ifdef TIME_WITH_SYS_TIME | 2598 #ifdef TIME_WITH_SYS_TIME |
| 2202 #include <sys/time.h> | 2599 #include <sys/time.h> |
| 2203 #include <time.h> | 2600 #include <time.h> |
| 2204 #else | 2601 #else |
| 2206 #include <sys/time.h> | 2603 #include <sys/time.h> |
| 2207 #else | 2604 #else |
| 2208 #include <time.h> | 2605 #include <time.h> |
| 2209 #endif | 2606 #endif |
| 2210 #endif | 2607 #endif |
| 2211 int main() { return 0; } | 2608 int main() { |
| 2212 int t() { static struct timeval x; x.tv_sec = x.tv_usec;; return 0; } | 2609 static struct timeval x; x.tv_sec = x.tv_usec; |
| 2213 EOF | 2610 ; return 0; } |
| 2214 if eval $ac_compile; then | 2611 EOF |
| 2215 rm -rf conftest* | 2612 if { (eval echo configure:2613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2216 | 2613 rm -rf conftest* |
| 2614 echo "$ac_t""yes" 1>&6 | |
| 2217 HAVE_TIMEVAL=yes | 2615 HAVE_TIMEVAL=yes |
| 2218 | 2616 { test "$extra_verbose" = "yes" && cat << \EOF |
| 2219 { | 2617 Defining HAVE_TIMEVAL |
| 2220 test -n "$verbose" && \ | 2618 EOF |
| 2221 echo " defining HAVE_TIMEVAL" | 2619 cat >> confdefs.h <<\EOF |
| 2222 echo "#define" HAVE_TIMEVAL "1" >> confdefs.h | 2620 #define HAVE_TIMEVAL 1 |
| 2223 DEFS="$DEFS -DHAVE_TIMEVAL=1" | 2621 EOF |
| 2224 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TIMEVAL\${ac_dB}HAVE_TIMEVAL\${ac_dC}1\${ac_dD} | 2622 } |
| 2225 \${ac_uA}HAVE_TIMEVAL\${ac_uB}HAVE_TIMEVAL\${ac_uC}1\${ac_uD} | 2623 |
| 2226 \${ac_eA}HAVE_TIMEVAL\${ac_eB}HAVE_TIMEVAL\${ac_eC}1\${ac_eD} | 2624 else |
| 2227 " | 2625 echo "configure: failed program was:" >&5 |
| 2228 } | 2626 cat conftest.$ac_ext >&5 |
| 2229 | 2627 rm -rf conftest* |
| 2230 | 2628 echo "$ac_t""no" 1>&6 |
| 2231 else | 2629 HAVE_TIMEVAL=no |
| 2232 rm -rf conftest* | 2630 fi |
| 2233 HAVE_TIMEVAL=no | 2631 rm -f conftest* |
| 2234 fi | 2632 |
| 2235 rm -f conftest* | 2633 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
| 2236 | 2634 echo "configure:2635: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 2237 | 2635 |
| 2238 test -n "$silent" || echo "checking for struct tm in time.h" | 2636 cat > conftest.$ac_ext <<EOF |
| 2239 cat > conftest.${ac_ext} <<EOF | 2637 #line 2638 "configure" |
| 2240 #include "confdefs.h" | 2638 #include "confdefs.h" |
| 2241 #include <sys/types.h> | 2639 #include <sys/types.h> |
| 2242 #include <time.h> | 2640 #include <time.h> |
| 2243 int main() { return 0; } | 2641 int main() { |
| 2244 int t() { struct tm *tp; tp->tm_sec;; return 0; } | 2642 struct tm *tp; tp->tm_sec; |
| 2245 EOF | 2643 ; return 0; } |
| 2246 if eval $ac_compile; then | 2644 EOF |
| 2247 : | 2645 if { (eval echo configure:2646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2248 else | 2646 rm -rf conftest* |
| 2249 rm -rf conftest* | 2647 ac_cv_struct_tm=time.h |
| 2250 | 2648 else |
| 2251 { | 2649 echo "configure: failed program was:" >&5 |
| 2252 test -n "$verbose" && \ | 2650 cat conftest.$ac_ext >&5 |
| 2253 echo " defining TM_IN_SYS_TIME" | 2651 rm -rf conftest* |
| 2254 echo "#define" TM_IN_SYS_TIME "1" >> confdefs.h | 2652 ac_cv_struct_tm=sys/time.h |
| 2255 DEFS="$DEFS -DTM_IN_SYS_TIME=1" | 2653 fi |
| 2256 ac_sed_defs="${ac_sed_defs}\${ac_dA}TM_IN_SYS_TIME\${ac_dB}TM_IN_SYS_TIME\${ac_dC}1\${ac_dD} | 2654 rm -f conftest* |
| 2257 \${ac_uA}TM_IN_SYS_TIME\${ac_uB}TM_IN_SYS_TIME\${ac_uC}1\${ac_uD} | 2655 |
| 2258 \${ac_eA}TM_IN_SYS_TIME\${ac_eB}TM_IN_SYS_TIME\${ac_eC}1\${ac_eD} | 2656 echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
| 2259 " | 2657 if test $ac_cv_struct_tm = sys/time.h; then |
| 2260 } | 2658 { test "$extra_verbose" = "yes" && cat << \EOF |
| 2261 | 2659 Defining TM_IN_SYS_TIME |
| 2262 fi | 2660 EOF |
| 2263 rm -f conftest* | 2661 cat >> confdefs.h <<\EOF |
| 2264 | 2662 #define TM_IN_SYS_TIME 1 |
| 2265 ac_decl='#include <sys/types.h> | 2663 EOF |
| 2266 ' | 2664 } |
| 2267 case "$DEFS" in | 2665 |
| 2268 *TM_IN_SYS_TIME*) ac_decl="$ac_decl | 2666 fi |
| 2269 #include <sys/time.h> | 2667 |
| 2270 " ;; | 2668 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
| 2271 *) ac_decl="$ac_decl | 2669 echo "configure:2670: checking for tm_zone in struct tm" >&5 |
| 2272 #include <time.h> | 2670 |
| 2273 " ;; | 2671 cat > conftest.$ac_ext <<EOF |
| 2274 esac | 2672 #line 2673 "configure" |
| 2275 test -n "$silent" || echo "checking for tm_zone in struct tm" | 2673 #include "confdefs.h" |
| 2276 cat > conftest.${ac_ext} <<EOF | 2674 #include <sys/types.h> |
| 2277 #include "confdefs.h" | 2675 #include <$ac_cv_struct_tm> |
| 2278 $ac_decl | 2676 int main() { |
| 2279 int main() { return 0; } | 2677 struct tm tm; tm.tm_zone; |
| 2280 int t() { struct tm tm; tm.tm_zone;; return 0; } | 2678 ; return 0; } |
| 2281 EOF | 2679 EOF |
| 2282 if eval $ac_compile; then | 2680 if { (eval echo configure:2681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2283 rm -rf conftest* | 2681 rm -rf conftest* |
| 2284 | 2682 ac_cv_struct_tm_zone=yes |
| 2285 { | 2683 else |
| 2286 test -n "$verbose" && \ | 2684 echo "configure: failed program was:" >&5 |
| 2287 echo " defining HAVE_TM_ZONE" | 2685 cat conftest.$ac_ext >&5 |
| 2288 echo "#define" HAVE_TM_ZONE "1" >> confdefs.h | 2686 rm -rf conftest* |
| 2289 DEFS="$DEFS -DHAVE_TM_ZONE=1" | 2687 ac_cv_struct_tm_zone=no |
| 2290 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TM_ZONE\${ac_dB}HAVE_TM_ZONE\${ac_dC}1\${ac_dD} | 2688 fi |
| 2291 \${ac_uA}HAVE_TM_ZONE\${ac_uB}HAVE_TM_ZONE\${ac_uC}1\${ac_uD} | 2689 rm -f conftest* |
| 2292 \${ac_eA}HAVE_TM_ZONE\${ac_eB}HAVE_TM_ZONE\${ac_eC}1\${ac_eD} | 2690 |
| 2293 " | 2691 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 |
| 2294 } | 2692 if test "$ac_cv_struct_tm_zone" = yes; then |
| 2295 | 2693 { test "$extra_verbose" = "yes" && cat << \EOF |
| 2296 | 2694 Defining HAVE_TM_ZONE |
| 2297 else | 2695 EOF |
| 2298 rm -rf conftest* | 2696 cat >> confdefs.h <<\EOF |
| 2299 ac_no_tm_zone=1 | 2697 #define HAVE_TM_ZONE 1 |
| 2300 fi | 2698 EOF |
| 2301 rm -f conftest* | 2699 } |
| 2302 | 2700 |
| 2303 if test -n "$ac_no_tm_zone"; then | 2701 else |
| 2304 test -n "$silent" || echo "checking for tzname" | 2702 echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
| 2305 cat > conftest.${ac_ext} <<EOF | 2703 echo "configure:2704: checking for tzname" >&5 |
| 2704 | |
| 2705 cat > conftest.$ac_ext <<EOF | |
| 2706 #line 2707 "configure" | |
| 2306 #include "confdefs.h" | 2707 #include "confdefs.h" |
| 2307 #include <time.h> | 2708 #include <time.h> |
| 2308 #ifndef tzname /* For SGI. */ | 2709 #ifndef tzname /* For SGI. */ |
| 2309 extern char *tzname[]; /* RS6000 and others want it this way. */ | 2710 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
| 2310 #endif | 2711 #endif |
| 2311 int main() { return 0; } | 2712 int main() { |
| 2312 int t() { atoi(*tzname);; return 0; } | 2713 atoi(*tzname); |
| 2313 EOF | 2714 ; return 0; } |
| 2314 if eval $ac_compile; then | 2715 EOF |
| 2315 rm -rf conftest* | 2716 if { (eval echo configure:2717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 2316 | 2717 rm -rf conftest* |
| 2317 { | 2718 ac_cv_var_tzname=yes |
| 2318 test -n "$verbose" && \ | 2719 else |
| 2319 echo " defining HAVE_TZNAME" | 2720 echo "configure: failed program was:" >&5 |
| 2320 echo "#define" HAVE_TZNAME "1" >> confdefs.h | 2721 cat conftest.$ac_ext >&5 |
| 2321 DEFS="$DEFS -DHAVE_TZNAME=1" | 2722 rm -rf conftest* |
| 2322 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TZNAME\${ac_dB}HAVE_TZNAME\${ac_dC}1\${ac_dD} | 2723 ac_cv_var_tzname=no |
| 2323 \${ac_uA}HAVE_TZNAME\${ac_uB}HAVE_TZNAME\${ac_uC}1\${ac_uD} | 2724 fi |
| 2324 \${ac_eA}HAVE_TZNAME\${ac_eB}HAVE_TZNAME\${ac_eC}1\${ac_eD} | 2725 rm -f conftest* |
| 2325 " | 2726 |
| 2326 } | 2727 echo "$ac_t""$ac_cv_var_tzname" 1>&6 |
| 2327 | 2728 if test $ac_cv_var_tzname = yes; then |
| 2328 | 2729 { test "$extra_verbose" = "yes" && cat << \EOF |
| 2329 fi | 2730 Defining HAVE_TZNAME |
| 2330 rm -f conftest* | 2731 EOF |
| 2331 | 2732 cat >> confdefs.h <<\EOF |
| 2332 fi | 2733 #define HAVE_TZNAME 1 |
| 2333 | 2734 EOF |
| 2334 | 2735 } |
| 2335 ac_prog='/* Ultrix mips cc rejects this. */ | 2736 |
| 2737 fi | |
| 2738 fi | |
| 2739 | |
| 2740 | |
| 2741 echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
| 2742 echo "configure:2743: checking for working const" >&5 | |
| 2743 | |
| 2744 cat > conftest.$ac_ext <<EOF | |
| 2745 #line 2746 "configure" | |
| 2746 #include "confdefs.h" | |
| 2747 | |
| 2748 int main() { | |
| 2749 | |
| 2750 /* Ultrix mips cc rejects this. */ | |
| 2336 typedef int charset[2]; const charset x; | 2751 typedef int charset[2]; const charset x; |
| 2337 /* SunOS 4.1.1 cc rejects this. */ | 2752 /* SunOS 4.1.1 cc rejects this. */ |
| 2338 char const *const *ccp; | 2753 char const *const *ccp; |
| 2339 char **p; | 2754 char **p; |
| 2755 /* NEC SVR4.0.2 mips cc rejects this. */ | |
| 2756 struct point {int x, y;}; | |
| 2757 static struct point const zero = {0,0}; | |
| 2340 /* AIX XL C 1.02.0.0 rejects this. | 2758 /* AIX XL C 1.02.0.0 rejects this. |
| 2341 It does not let you subtract one const X* pointer from another in an arm | 2759 It does not let you subtract one const X* pointer from another in an arm |
| 2342 of an if-expression whose if-part is not a constant expression */ | 2760 of an if-expression whose if-part is not a constant expression */ |
| 2343 const char *g = "string"; | 2761 const char *g = "string"; |
| 2344 ccp = &g + (g ? g-g : 0); | 2762 ccp = &g + (g ? g-g : 0); |
| 2351 char const *s = 0 ? (char *) 0 : (char const *) 0; | 2769 char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 2352 | 2770 |
| 2353 *t++ = 0; | 2771 *t++ = 0; |
| 2354 } | 2772 } |
| 2355 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | 2773 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 2356 int x[] = {25,17}; | 2774 int x[] = {25, 17}; |
| 2357 const int *foo = &x[0]; | 2775 const int *foo = &x[0]; |
| 2358 ++foo; | 2776 ++foo; |
| 2359 } | 2777 } |
| 2360 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 2778 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 2361 typedef const int *iptr; | 2779 typedef const int *iptr; |
| 2367 struct s { int j; const int *ap[3]; }; | 2785 struct s { int j; const int *ap[3]; }; |
| 2368 struct s *b; b->j = 5; | 2786 struct s *b; b->j = 5; |
| 2369 } | 2787 } |
| 2370 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 2788 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 2371 const int foo = 10; | 2789 const int foo = 10; |
| 2372 }' | 2790 } |
| 2373 test -n "$silent" || echo "checking for lack of working const" | 2791 |
| 2374 cat > conftest.${ac_ext} <<EOF | 2792 ; return 0; } |
| 2375 #include "confdefs.h" | 2793 EOF |
| 2376 | 2794 if { (eval echo configure:2795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2377 int main() { return 0; } | 2795 rm -rf conftest* |
| 2378 int t() { $ac_prog; return 0; } | 2796 ac_cv_c_const=yes |
| 2379 EOF | 2797 else |
| 2380 if eval $ac_compile; then | 2798 echo "configure: failed program was:" >&5 |
| 2381 : | 2799 cat conftest.$ac_ext >&5 |
| 2382 else | 2800 rm -rf conftest* |
| 2383 rm -rf conftest* | 2801 ac_cv_c_const=no |
| 2384 | 2802 fi |
| 2385 { | 2803 rm -f conftest* |
| 2386 test -n "$verbose" && \ | 2804 |
| 2387 echo " defining" const to be empty | 2805 echo "$ac_t""$ac_cv_c_const" 1>&6 |
| 2388 echo "#define" const "" >> confdefs.h | 2806 if test $ac_cv_c_const = no; then |
| 2389 DEFS="$DEFS -Dconst=" | 2807 { test "$extra_verbose" = "yes" && cat << \EOF |
| 2390 ac_sed_defs="${ac_sed_defs}\${ac_dA}const\${ac_dB}const\${ac_dC}\${ac_dD} | 2808 Defining const = |
| 2391 \${ac_uA}const\${ac_uB}const\${ac_uC}\${ac_uD} | 2809 EOF |
| 2392 \${ac_eA}const\${ac_eB}const\${ac_eC}\${ac_eD} | 2810 cat >> confdefs.h <<\EOF |
| 2393 " | 2811 #define const |
| 2394 } | 2812 EOF |
| 2395 | 2813 } |
| 2396 fi | 2814 |
| 2397 rm -f conftest* | 2815 fi |
| 2398 | 2816 |
| 2399 | 2817 |
| 2400 cat > conftestmake <<'EOF' | 2818 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
| 2819 echo "configure:2820: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
| 2820 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | |
| 2821 | |
| 2822 cat > conftestmake <<\EOF | |
| 2401 all: | 2823 all: |
| 2402 @echo 'ac_maketemp="${MAKE}"' | 2824 @echo 'ac_maketemp="${MAKE}"' |
| 2403 EOF | 2825 EOF |
| 2404 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | 2826 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 2405 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | 2827 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
| 2406 if test -n "$ac_maketemp"; then SET_MAKE= | 2828 if test -n "$ac_maketemp"; then |
| 2407 else SET_MAKE="MAKE=${MAKE-make}"; fi | 2829 eval ac_cv_prog_make_${ac_make}_set=yes |
| 2830 else | |
| 2831 eval ac_cv_prog_make_${ac_make}_set=no | |
| 2832 fi | |
| 2408 rm -f conftestmake | 2833 rm -f conftestmake |
| 2409 | 2834 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 2410 | 2835 echo "$ac_t""yes" 1>&6 |
| 2411 test -n "$silent" || echo "checking byte ordering" | 2836 SET_MAKE= |
| 2412 cat > conftest.${ac_ext} <<EOF | 2837 else |
| 2838 echo "$ac_t""no" 1>&6 | |
| 2839 SET_MAKE="MAKE=${MAKE-make}" | |
| 2840 fi | |
| 2841 | |
| 2842 | |
| 2843 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
| 2844 echo "configure:2845: checking whether byte ordering is bigendian" >&5 | |
| 2845 | |
| 2846 ac_cv_c_bigendian=unknown | |
| 2847 # See if sys/param.h defines the BYTE_ORDER macro. | |
| 2848 cat > conftest.$ac_ext <<EOF | |
| 2849 #line 2850 "configure" | |
| 2850 #include "confdefs.h" | |
| 2851 #include <sys/types.h> | |
| 2852 #include <sys/param.h> | |
| 2853 int main() { | |
| 2854 | |
| 2855 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
| 2856 bogus endian macros | |
| 2857 #endif | |
| 2858 ; return 0; } | |
| 2859 EOF | |
| 2860 if { (eval echo configure:2861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
| 2861 rm -rf conftest* | |
| 2862 # It does; now see whether it defined to BIG_ENDIAN or not. | |
| 2863 cat > conftest.$ac_ext <<EOF | |
| 2864 #line 2865 "configure" | |
| 2865 #include "confdefs.h" | |
| 2866 #include <sys/types.h> | |
| 2867 #include <sys/param.h> | |
| 2868 int main() { | |
| 2869 | |
| 2870 #if BYTE_ORDER != BIG_ENDIAN | |
| 2871 not big endian | |
| 2872 #endif | |
| 2873 ; return 0; } | |
| 2874 EOF | |
| 2875 if { (eval echo configure:2876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
| 2876 rm -rf conftest* | |
| 2877 ac_cv_c_bigendian=yes | |
| 2878 else | |
| 2879 echo "configure: failed program was:" >&5 | |
| 2880 cat conftest.$ac_ext >&5 | |
| 2881 rm -rf conftest* | |
| 2882 ac_cv_c_bigendian=no | |
| 2883 fi | |
| 2884 rm -f conftest* | |
| 2885 else | |
| 2886 echo "configure: failed program was:" >&5 | |
| 2887 cat conftest.$ac_ext >&5 | |
| 2888 fi | |
| 2889 rm -f conftest* | |
| 2890 if test $ac_cv_c_bigendian = unknown; then | |
| 2891 cat > conftest.$ac_ext <<EOF | |
| 2892 #line 2893 "configure" | |
| 2413 #include "confdefs.h" | 2893 #include "confdefs.h" |
| 2414 main () { | 2894 main () { |
| 2415 /* Are we little or big endian? From Harbison&Steele. */ | 2895 /* Are we little or big endian? From Harbison&Steele. */ |
| 2416 union | 2896 union |
| 2417 { | 2897 { |
| 2420 } u; | 2900 } u; |
| 2421 u.l = 1; | 2901 u.l = 1; |
| 2422 exit (u.c[sizeof (long) - 1] == 1); | 2902 exit (u.c[sizeof (long) - 1] == 1); |
| 2423 } | 2903 } |
| 2424 EOF | 2904 EOF |
| 2425 eval $ac_compile | 2905 if { (eval echo configure:2906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
| 2426 if test -s conftest && (./conftest; exit) 2>/dev/null; then | 2906 then |
| 2427 : | 2907 ac_cv_c_bigendian=no |
| 2428 else | 2908 else |
| 2429 | 2909 echo "configure: failed program was:" >&5 |
| 2430 { | 2910 cat conftest.$ac_ext >&5 |
| 2431 test -n "$verbose" && \ | 2911 rm -fr conftest* |
| 2432 echo " defining WORDS_BIGENDIAN" | 2912 ac_cv_c_bigendian=yes |
| 2433 echo "#define" WORDS_BIGENDIAN "1" >> confdefs.h | |
| 2434 DEFS="$DEFS -DWORDS_BIGENDIAN=1" | |
| 2435 ac_sed_defs="${ac_sed_defs}\${ac_dA}WORDS_BIGENDIAN\${ac_dB}WORDS_BIGENDIAN\${ac_dC}1\${ac_dD} | |
| 2436 \${ac_uA}WORDS_BIGENDIAN\${ac_uB}WORDS_BIGENDIAN\${ac_uC}1\${ac_uD} | |
| 2437 \${ac_eA}WORDS_BIGENDIAN\${ac_eB}WORDS_BIGENDIAN\${ac_eC}1\${ac_eD} | |
| 2438 " | |
| 2439 } | |
| 2440 | |
| 2441 fi | 2913 fi |
| 2442 rm -fr conftest* | 2914 rm -fr conftest* |
| 2443 | 2915 fi |
| 2444 | 2916 |
| 2445 test -n "$silent" || echo "checking for long file names" | 2917 echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 2446 ac_some_dir_failed=false | 2918 if test $ac_cv_c_bigendian = yes; then |
| 2919 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 2920 Defining WORDS_BIGENDIAN | |
| 2921 EOF | |
| 2922 cat >> confdefs.h <<\EOF | |
| 2923 #define WORDS_BIGENDIAN 1 | |
| 2924 EOF | |
| 2925 } | |
| 2926 | |
| 2927 fi | |
| 2928 | |
| 2929 | |
| 2930 echo $ac_n "checking for long file names""... $ac_c" 1>&6 | |
| 2931 echo "configure:2932: checking for long file names" >&5 | |
| 2932 | |
| 2933 ac_cv_sys_long_file_names=yes | |
| 2447 # Test for long file names in all the places we know might matter: | 2934 # Test for long file names in all the places we know might matter: |
| 2448 # . the current directory, where building will happen | 2935 # . the current directory, where building will happen |
| 2936 # $prefix/lib where we will be installing things | |
| 2937 # $exec_prefix/lib likewise | |
| 2938 # eval it to expand exec_prefix. | |
| 2939 # $TMPDIR if set, where it might want to write temporary files | |
| 2940 # if $TMPDIR is not set: | |
| 2449 # /tmp where it might want to write temporary files | 2941 # /tmp where it might want to write temporary files |
| 2450 # /var/tmp likewise | 2942 # /var/tmp likewise |
| 2451 # /usr/tmp likewise | 2943 # /usr/tmp likewise |
| 2452 # $prefix/lib where we will be installing things | 2944 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then |
| 2453 # $exec_prefix/lib likewise | 2945 ac_tmpdirs="$TMPDIR" |
| 2454 # eval it to expand exec_prefix. | 2946 else |
| 2455 for ac_dir in `eval echo . /tmp /var/tmp /usr/tmp $prefix/lib $exec_prefix/lib` ; do | 2947 ac_tmpdirs='/tmp /var/tmp /usr/tmp' |
| 2948 fi | |
| 2949 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
| 2456 test -d $ac_dir || continue | 2950 test -d $ac_dir || continue |
| 2457 test -w $ac_dir || continue # It's less confusing to not echo anything here. | 2951 test -w $ac_dir || continue # It is less confusing to not echo anything here. |
| 2458 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null | 2952 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null |
| 2459 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null | 2953 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null |
| 2460 val=`cat $ac_dir/conftest9012345 2>/dev/null` | 2954 val=`cat $ac_dir/conftest9012345 2>/dev/null` |
| 2461 test -f $ac_dir/conftest9012345 && test "$val" = 1 || ac_some_dir_failed=true | 2955 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then |
| 2462 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2> /dev/null | 2956 ac_cv_sys_long_file_names=no |
| 2957 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null | |
| 2958 break | |
| 2959 fi | |
| 2960 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null | |
| 2463 done | 2961 done |
| 2464 $ac_some_dir_failed || | 2962 |
| 2465 { | 2963 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6 |
| 2466 test -n "$verbose" && \ | 2964 if test $ac_cv_sys_long_file_names = yes; then |
| 2467 echo " defining HAVE_LONG_FILE_NAMES" | 2965 { test "$extra_verbose" = "yes" && cat << \EOF |
| 2468 echo "#define" HAVE_LONG_FILE_NAMES "1" >> confdefs.h | 2966 Defining HAVE_LONG_FILE_NAMES |
| 2469 DEFS="$DEFS -DHAVE_LONG_FILE_NAMES=1" | 2967 EOF |
| 2470 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LONG_FILE_NAMES\${ac_dB}HAVE_LONG_FILE_NAMES\${ac_dC}1\${ac_dD} | 2968 cat >> confdefs.h <<\EOF |
| 2471 \${ac_uA}HAVE_LONG_FILE_NAMES\${ac_uB}HAVE_LONG_FILE_NAMES\${ac_uC}1\${ac_uD} | 2969 #define HAVE_LONG_FILE_NAMES 1 |
| 2472 \${ac_eA}HAVE_LONG_FILE_NAMES\${ac_eB}HAVE_LONG_FILE_NAMES\${ac_eC}1\${ac_eD} | 2970 EOF |
| 2473 " | 2971 } |
| 2474 } | 2972 |
| 2475 | 2973 fi |
| 2476 | 2974 |
| 2477 | 2975 |
| 2478 echo "checking for -xildoff compiler flag" | 2976 |
| 2479 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then | 2977 |
| 2480 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then | 2978 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 |
| 2481 : | 2979 echo "configure:2980: checking for sqrt in -lm" >&5 |
| 2980 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` | |
| 2981 | |
| 2982 xe_check_libs=" -lm " | |
| 2983 cat > conftest.$ac_ext <<EOF | |
| 2984 #line 2985 "configure" | |
| 2985 #include "confdefs.h" | |
| 2986 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 2987 /* We use char because int might match the return type of a gcc2 | |
| 2988 builtin and then its argument prototype would still apply. */ | |
| 2989 char sqrt(); | |
| 2990 | |
| 2991 int main() { | |
| 2992 sqrt() | |
| 2993 ; return 0; } | |
| 2994 EOF | |
| 2995 if { (eval echo configure:2996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 2996 rm -rf conftest* | |
| 2997 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 2998 else | |
| 2999 echo "configure: failed program was:" >&5 | |
| 3000 cat conftest.$ac_ext >&5 | |
| 3001 rm -rf conftest* | |
| 3002 eval "ac_cv_lib_$ac_lib_var=no" | |
| 3003 fi | |
| 3004 rm -f conftest* | |
| 3005 xe_check_libs="" | |
| 3006 | |
| 3007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 3008 echo "$ac_t""yes" 1>&6 | |
| 3009 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
| 3010 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
| 3011 { test "$extra_verbose" = "yes" && cat << EOF | |
| 3012 Defining $ac_tr_lib | |
| 3013 EOF | |
| 3014 cat >> confdefs.h <<EOF | |
| 3015 #define $ac_tr_lib 1 | |
| 3016 EOF | |
| 3017 } | |
| 3018 | |
| 3019 LIBS="-lm $LIBS" | |
| 3020 | |
| 3021 else | |
| 3022 echo "$ac_t""no" 1>&6 | |
| 3023 fi | |
| 3024 | |
| 3025 | |
| 3026 | |
| 3027 echo "checking type of mail spool file locking" 1>&6 | |
| 3028 echo "configure:3029: checking type of mail spool file locking" >&5 | |
| 3029 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock | |
| 3030 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf | |
| 3031 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF | |
| 3032 Defining REAL_MAIL_USE_LOCKF | |
| 3033 EOF | |
| 3034 cat >> confdefs.h <<\EOF | |
| 3035 #define REAL_MAIL_USE_LOCKF 1 | |
| 3036 EOF | |
| 3037 } | |
| 3038 | |
| 3039 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF | |
| 3040 Defining REAL_MAIL_USE_FLOCK | |
| 3041 EOF | |
| 3042 cat >> confdefs.h <<\EOF | |
| 3043 #define REAL_MAIL_USE_FLOCK 1 | |
| 3044 EOF | |
| 3045 } | |
| 3046 | |
| 3047 fi | |
| 3048 | |
| 3049 if test "$need_dynodump" = "yes" ; then | |
| 3050 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 3051 Defining DYNODUMP | |
| 3052 EOF | |
| 3053 cat >> confdefs.h <<\EOF | |
| 3054 #define DYNODUMP 1 | |
| 3055 EOF | |
| 3056 } | |
| 3057 | |
| 3058 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" | |
| 3059 case "$canonical" in | |
| 3060 sparc* ) dynodump_arch=sparc ;; | |
| 3061 powerpc* ) dynodump_arch=ppc ;; | |
| 3062 i*86* ) dynodump_arch=i386 ;; | |
| 3063 esac | |
| 3064 test "$GCC" = "yes" && ld_switch_site="-fno-gnu-linker $ld_switch_site" | |
| 3065 fi | |
| 3066 | |
| 3067 for dir in "/usr/ccs/lib"; do | |
| 3068 test -d "$dir" && ld_switch_site="$ld_switch_site -L${dir}" | |
| 3069 done | |
| 3070 | |
| 3071 | |
| 3072 echo "checking "for specified window system"" 1>&6 | |
| 3073 echo "configure:3074: checking "for specified window system"" >&5 | |
| 3074 | |
| 3075 if test "$x_includes $x_libraries" = "NONE NONE"; then | |
| 3076 if test -n "$OPENWINHOME" \ | |
| 3077 -a "$OPENWINHOME" != "/usr/openwin" \ | |
| 3078 -a -d "$OPENWINHOME"; then | |
| 3079 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib" | |
| 3080 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include" | |
| 3081 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include" | |
| 3082 fi | |
| 3083 fi | |
| 3084 | |
| 3085 test "$x_includes $x_libraries" != "NONE NONE" && \ | |
| 3086 window_system=x11 with_x11=yes | |
| 3087 | |
| 3088 if test "$with_x11" != "no"; then | |
| 3089 # If we find X, set shell vars x_includes and x_libraries to the | |
| 3090 # paths, otherwise set no_x=yes. | |
| 3091 # Uses ac_ vars as temps to allow command line to override cache and checks. | |
| 3092 # --without-x overrides everything else, but does not touch the cache. | |
| 3093 echo $ac_n "checking for X""... $ac_c" 1>&6 | |
| 3094 echo "configure:3095: checking for X" >&5 | |
| 3095 | |
| 3096 # Check whether --with-x or --without-x was given. | |
| 3097 if test "${with_x+set}" = set; then | |
| 3098 withval="$with_x" | |
| 3099 : | |
| 3100 fi | |
| 3101 | |
| 3102 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
| 3103 if test "x$with_x" = xno; then | |
| 3104 # The user explicitly disabled X. | |
| 3105 have_x=disabled | |
| 3106 else | |
| 3107 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
| 3108 # Both variables are already set. | |
| 3109 have_x=yes | |
| 2482 else | 3110 else |
| 2483 test -n "$verbose" && echo " defining NEED_XILDOFF" | 3111 |
| 2484 need_xildoff=yes | 3112 # One or both of the vars are not set, and there is no cached value. |
| 2485 fi | 3113 ac_x_includes=NO ac_x_libraries=NO |
| 2486 fi | |
| 2487 | |
| 2488 # What the hell was this doing here?????? | |
| 2489 ### echo > confdefs.h # this gets nuked above... | |
| 2490 | |
| 2491 ############################################################################ | |
| 2492 # # | |
| 2493 # Choose a window system # | |
| 2494 # # | |
| 2495 ############################################################################ | |
| 2496 | |
| 2497 #### Choose a window system. | |
| 2498 echo "checking for specified window system" | |
| 2499 | |
| 2500 window_system='' | |
| 2501 case "${with_x11}" in | |
| 2502 yes ) window_system=${window_system}x11 ;; | |
| 2503 no ) window_system=${window_system}none ;; | |
| 2504 esac | |
| 2505 | |
| 2506 case "${window_system}" in | |
| 2507 "none" | "x11" ) ;; | |
| 2508 "" ) | |
| 2509 # --x-includes or --x-libraries implies --with-x11. | |
| 2510 if test -n "${x_includes}" -o -n "${x_libraries}"; then | |
| 2511 window_system=x11 | |
| 2512 else | |
| 2513 echo " No window system specified. Looking for X11." | |
| 2514 # If the user didn't specify a window system and we found X11, use it. | |
| 2515 if test -r /usr/lib/libX11.a \ | |
| 2516 -o -d /usr/include/X11 \ | |
| 2517 -o -d /usr/X386/include \ | |
| 2518 -o -d /usr/X11R6/include \ | |
| 2519 -o -d ${x_includes}/X11 ; then | |
| 2520 window_system=x11 | |
| 2521 fi | |
| 2522 fi | |
| 2523 ;; | |
| 2524 * ) | |
| 2525 echo "Don't specify a window system more than once." >&2 | |
| 2526 exit 1 | |
| 2527 ;; | |
| 2528 esac | |
| 2529 | |
| 2530 case "${window_system}" in "" | "x11" ) | |
| 2531 ### If the user hasn't specified where we should find X, try | |
| 2532 ### letting autoconf figure that out. | |
| 2533 if test -z "${x_includes}${x_libraries}" ; then | |
| 2534 # If we find X, set shell vars x_includes and x_libraries to the paths. | |
| 2535 no_x=true | |
| 2536 if test "x$with_x" != xno; then | |
| 2537 test -n "$silent" || echo "checking for X include and library files with xmkmf" | |
| 2538 rm -fr conftestdir | 3114 rm -fr conftestdir |
| 2539 if mkdir conftestdir; then | 3115 if mkdir conftestdir; then |
| 2540 cd conftestdir | 3116 cd conftestdir |
| 2541 # Make sure to not put "make" in the Imakefile rules, since we grep it out. | 3117 # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
| 2542 cat > Imakefile <<'EOF' | 3118 cat > Imakefile <<'EOF' |
| 2543 acfindx: | 3119 acfindx: |
| 2544 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | 3120 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
| 2545 EOF | 3121 EOF |
| 2546 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | 3122 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 2547 no_x= | |
| 2548 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | 3123 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 2549 eval `make acfindx 2>/dev/null | grep -v make` | 3124 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 2550 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | 3125 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 2551 if test ! -f $ac_im_usrlibdir/libX11.a && test -f $ac_im_libdir/libX11.a | 3126 for ac_extension in a so sl; do |
| 2552 then | 3127 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
| 2553 ac_im_usrlibdir=$ac_im_libdir | 3128 test -f $ac_im_libdir/libX11.$ac_extension; then |
| 2554 fi | 3129 ac_im_usrlibdir=$ac_im_libdir; break |
| 3130 fi | |
| 3131 done | |
| 3132 # Screen out bogus values from the imake configuration. They are | |
| 3133 # bogus both because they are the default anyway, and because | |
| 3134 # using them would break gcc on systems where it needs fixed includes. | |
| 2555 case "$ac_im_incroot" in | 3135 case "$ac_im_incroot" in |
| 2556 /usr/include) ;; | 3136 /usr/include) ;; |
| 2557 *) test -z "$x_includes" && x_includes="$ac_im_incroot" ;; | 3137 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
| 2558 esac | 3138 esac |
| 2559 case "$ac_im_usrlibdir" in | 3139 case "$ac_im_usrlibdir" in |
| 2560 /usr/lib | /lib) ;; | 3140 /usr/lib | /lib) ;; |
| 2561 *) test -z "$x_libraries" && x_libraries="$ac_im_usrlibdir" ;; | 3141 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
| 2562 esac | 3142 esac |
| 2563 fi | 3143 fi |
| 2564 cd .. | 3144 cd .. |
| 2565 rm -fr conftestdir | 3145 rm -fr conftestdir |
| 2566 fi | 3146 fi |
| 2567 | 3147 |
| 2568 if test -z "$ac_im_usrlibdir"; then | 3148 if test "$ac_x_includes" = NO; then |
| 2569 test -n "$silent" || echo "checking for X include and library files directly" | 3149 # Guess where to find include files, by looking for this one X11 .h file. |
| 2570 if test ".$x_direct_test_library" = . ; then | 3150 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h |
| 2571 x_direct_test_library='Xt' | 3151 |
| 2572 fi | 3152 # First, try using that file with no special directory specified. |
| 2573 if test ".$x_direct_test_include" = . ; then | 3153 cat > conftest.$ac_ext <<EOF |
| 2574 x_direct_test_include='X11/Intrinsic.h' | 3154 #line 3155 "configure" |
| 2575 fi | |
| 2576 cat > conftest.${ac_ext} <<EOF | |
| 2577 #include "confdefs.h" | 3155 #include "confdefs.h" |
| 2578 #include <$x_direct_test_include> | 3156 #include <$x_direct_test_include> |
| 2579 EOF | 3157 EOF |
| 2580 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | 3158 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2581 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | 3159 { (eval echo configure:3160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2582 echo "$ac_err" | 3160 ac_err=`grep -v '^ *+' conftest.out` |
| 2583 fi | |
| 2584 if test -z "$ac_err"; then | 3161 if test -z "$ac_err"; then |
| 2585 rm -rf conftest* | 3162 rm -rf conftest* |
| 2586 no_x= | 3163 # We can compile using X headers with no special include directory. |
| 2587 | 3164 ac_x_includes= |
| 2588 else | 3165 else |
| 2589 rm -rf conftest* | 3166 echo "$ac_err" >&5 |
| 3167 echo "configure: failed program was:" >&5 | |
| 3168 cat conftest.$ac_ext >&5 | |
| 3169 rm -rf conftest* | |
| 3170 # Look for the header file in a standard set of common directories. | |
| 3171 # Check X11 before X11Rn because it is often a symlink to the current release. | |
| 2590 for ac_dir in \ | 3172 for ac_dir in \ |
| 3173 /usr/X11/include \ | |
| 2591 /usr/X11R6/include \ | 3174 /usr/X11R6/include \ |
| 2592 /usr/X11R5/include \ | 3175 /usr/X11R5/include \ |
| 2593 /usr/X11R4/include \ | 3176 /usr/X11R4/include \ |
| 2594 \ | 3177 \ |
| 3178 /usr/include/X11 \ | |
| 2595 /usr/include/X11R6 \ | 3179 /usr/include/X11R6 \ |
| 2596 /usr/include/X11R5 \ | 3180 /usr/include/X11R5 \ |
| 2597 /usr/include/X11R4 \ | 3181 /usr/include/X11R4 \ |
| 2598 \ | 3182 \ |
| 3183 /usr/local/X11/include \ | |
| 2599 /usr/local/X11R6/include \ | 3184 /usr/local/X11R6/include \ |
| 2600 /usr/local/X11R5/include \ | 3185 /usr/local/X11R5/include \ |
| 2601 /usr/local/X11R4/include \ | 3186 /usr/local/X11R4/include \ |
| 2602 \ | 3187 \ |
| 3188 /usr/local/include/X11 \ | |
| 2603 /usr/local/include/X11R6 \ | 3189 /usr/local/include/X11R6 \ |
| 2604 /usr/local/include/X11R5 \ | 3190 /usr/local/include/X11R5 \ |
| 2605 /usr/local/include/X11R4 \ | 3191 /usr/local/include/X11R4 \ |
| 2606 \ | |
| 2607 /usr/X11/include \ | |
| 2608 /usr/include/X11 \ | |
| 2609 /usr/local/X11/include \ | |
| 2610 /usr/local/include/X11 \ | |
| 2611 \ | 3192 \ |
| 2612 /usr/X386/include \ | 3193 /usr/X386/include \ |
| 2613 /usr/x386/include \ | 3194 /usr/x386/include \ |
| 2614 /usr/XFree86/include/X11 \ | 3195 /usr/XFree86/include/X11 \ |
| 2615 \ | 3196 \ |
| 2623 /usr/openwin/include \ | 3204 /usr/openwin/include \ |
| 2624 /usr/openwin/share/include \ | 3205 /usr/openwin/share/include \ |
| 2625 ; \ | 3206 ; \ |
| 2626 do | 3207 do |
| 2627 if test -r "$ac_dir/$x_direct_test_include"; then | 3208 if test -r "$ac_dir/$x_direct_test_include"; then |
| 2628 test -z "$x_includes" && x_includes=$ac_dir | 3209 ac_x_includes=$ac_dir |
| 2629 no_x= | |
| 2630 break | 3210 break |
| 2631 fi | 3211 fi |
| 2632 done | 3212 done |
| 2633 fi | 3213 fi |
| 2634 rm -f conftest* | 3214 rm -f conftest* |
| 2635 | 3215 fi # $ac_x_includes = NO |
| 2636 # Check for the libraries. First see if replacing the `include' by | 3216 |
| 2637 # `lib' works. | 3217 if test "$ac_x_libraries" = NO; then |
| 2638 ac_save_LIBS="${LIBS}" | 3218 # Check for the libraries. |
| 2639 LIBS="${LIBS} -l"$x_direct_test_library"" | 3219 |
| 2640 ac_have_lib="" | 3220 test -z "$x_direct_test_library" && x_direct_test_library=Xt |
| 2641 test -n "$silent" || echo "checking for -l"$x_direct_test_library"" | 3221 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc |
| 2642 cat > conftest.${ac_ext} <<EOF | 3222 |
| 2643 #include "confdefs.h" | 3223 # See if we find them without any special options. |
| 2644 | 3224 # Don't add to $LIBS permanently. |
| 2645 int main() { return 0; } | 3225 ac_save_LIBS="$LIBS" |
| 2646 int t() { main();; return 0; } | 3226 LIBS="-l$x_direct_test_library $LIBS" |
| 2647 EOF | 3227 cat > conftest.$ac_ext <<EOF |
| 2648 if eval $ac_compile; then | 3228 #line 3229 "configure" |
| 2649 rm -rf conftest* | 3229 #include "confdefs.h" |
| 2650 ac_have_lib="1" | 3230 |
| 2651 | 3231 int main() { |
| 2652 fi | 3232 ${x_direct_test_function}() |
| 2653 rm -f conftest* | 3233 ; return 0; } |
| 2654 LIBS="${ac_save_LIBS}" | 3234 EOF |
| 2655 if test -n "${ac_have_lib}"; then | 3235 if { (eval echo configure:3236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 2656 :; no_x= | 3236 rm -rf conftest* |
| 2657 else | 3237 LIBS="$ac_save_LIBS" |
| 2658 :; for ac_dir in `echo "$x_includes" | sed s/include/lib/` \ | 3238 # We can link X programs with no special library path. |
| 3239 ac_x_libraries= | |
| 3240 else | |
| 3241 echo "configure: failed program was:" >&5 | |
| 3242 cat conftest.$ac_ext >&5 | |
| 3243 rm -rf conftest* | |
| 3244 LIBS="$ac_save_LIBS" | |
| 3245 # First see if replacing the include by lib works. | |
| 3246 # Check X11 before X11Rn because it is often a symlink to the current release. | |
| 3247 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
| 3248 /usr/X11/lib \ | |
| 2659 /usr/X11R6/lib \ | 3249 /usr/X11R6/lib \ |
| 2660 /usr/X11R5/lib \ | 3250 /usr/X11R5/lib \ |
| 2661 /usr/X11R4/lib \ | 3251 /usr/X11R4/lib \ |
| 2662 \ | 3252 \ |
| 3253 /usr/lib/X11 \ | |
| 2663 /usr/lib/X11R6 \ | 3254 /usr/lib/X11R6 \ |
| 2664 /usr/lib/X11R5 \ | 3255 /usr/lib/X11R5 \ |
| 2665 /usr/lib/X11R4 \ | 3256 /usr/lib/X11R4 \ |
| 2666 \ | 3257 \ |
| 3258 /usr/local/X11/lib \ | |
| 2667 /usr/local/X11R6/lib \ | 3259 /usr/local/X11R6/lib \ |
| 2668 /usr/local/X11R5/lib \ | 3260 /usr/local/X11R5/lib \ |
| 2669 /usr/local/X11R4/lib \ | 3261 /usr/local/X11R4/lib \ |
| 2670 \ | 3262 \ |
| 3263 /usr/local/lib/X11 \ | |
| 2671 /usr/local/lib/X11R6 \ | 3264 /usr/local/lib/X11R6 \ |
| 2672 /usr/local/lib/X11R5 \ | 3265 /usr/local/lib/X11R5 \ |
| 2673 /usr/local/lib/X11R4 \ | 3266 /usr/local/lib/X11R4 \ |
| 2674 \ | |
| 2675 /usr/X11/lib \ | |
| 2676 /usr/lib/X11 \ | |
| 2677 /usr/local/X11/lib \ | |
| 2678 /usr/local/lib/X11 \ | |
| 2679 \ | 3267 \ |
| 2680 /usr/X386/lib \ | 3268 /usr/X386/lib \ |
| 2681 /usr/x386/lib \ | 3269 /usr/x386/lib \ |
| 2682 /usr/XFree86/lib/X11 \ | 3270 /usr/XFree86/lib/X11 \ |
| 2683 \ | 3271 \ |
| 2685 /usr/local/lib \ | 3273 /usr/local/lib \ |
| 2686 /usr/unsupported/lib \ | 3274 /usr/unsupported/lib \ |
| 2687 /usr/athena/lib \ | 3275 /usr/athena/lib \ |
| 2688 /usr/local/x11r5/lib \ | 3276 /usr/local/x11r5/lib \ |
| 2689 /usr/lpp/Xamples/lib \ | 3277 /usr/lpp/Xamples/lib \ |
| 3278 /lib/usr/lib/X11 \ | |
| 2690 \ | 3279 \ |
| 2691 /usr/openwin/lib \ | 3280 /usr/openwin/lib \ |
| 2692 /usr/openwin/share/lib \ | 3281 /usr/openwin/share/lib \ |
| 2693 ; \ | 3282 ; \ |
| 2694 do | 3283 do |
| 2695 for ac_extension in a so sl; do | 3284 for ac_extension in a so sl; do |
| 2696 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | 3285 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
| 2697 test -z "$x_libraries" && x_libraries=$ac_dir | 3286 ac_x_libraries=$ac_dir |
| 2698 no_x= | |
| 2699 break 2 | 3287 break 2 |
| 2700 fi | 3288 fi |
| 2701 done | 3289 done |
| 2702 done | 3290 done |
| 2703 fi | 3291 fi |
| 2704 | 3292 rm -f conftest* |
| 2705 fi | 3293 fi # $ac_x_libraries = NO |
| 2706 test -n "$x_includes" && test -n "$verbose" && echo " X11 headers are in $x_includes" | 3294 |
| 2707 test -n "$x_libraries" && test -n "$verbose" && echo " X11 libraries are in $x_libraries" | 3295 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
| 2708 fi | 3296 # Didn't find X anywhere. Cache the known absence of X. |
| 3297 ac_cv_have_x="have_x=no" | |
| 3298 else | |
| 3299 # Record where we found X for the cache. | |
| 3300 ac_cv_have_x="have_x=yes \ | |
| 3301 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
| 3302 fi | |
| 3303 fi | |
| 3304 eval "$ac_cv_have_x" | |
| 3305 fi # $with_x != no | |
| 3306 | |
| 3307 if test "$have_x" != yes; then | |
| 3308 echo "$ac_t""$have_x" 1>&6 | |
| 3309 no_x=yes | |
| 3310 else | |
| 3311 # If each of the values was on the command line, it overrides each guess. | |
| 3312 test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
| 3313 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
| 3314 # Update the cache value to reflect the command line values. | |
| 3315 ac_cv_have_x="have_x=yes \ | |
| 3316 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
| 3317 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
| 3318 fi | |
| 3319 | |
| 3320 if test "$no_x" = yes; then | |
| 3321 # Not all programs may use this symbol, but it does not hurt to define it. | |
| 3322 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 3323 Defining X_DISPLAY_MISSING | |
| 3324 EOF | |
| 3325 cat >> confdefs.h <<\EOF | |
| 3326 #define X_DISPLAY_MISSING 1 | |
| 3327 EOF | |
| 3328 } | |
| 3329 | |
| 3330 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
| 3331 else | |
| 3332 if test -n "$x_includes"; then | |
| 3333 X_CFLAGS="$X_CFLAGS -I$x_includes" | |
| 3334 fi | |
| 3335 | |
| 3336 # It would also be nice to do this for all -L options, not just this one. | |
| 3337 if test -n "$x_libraries"; then | |
| 3338 X_LIBS="$X_LIBS -L$x_libraries" | |
| 3339 # For Solaris; some versions of Sun CC require a space after -R and | |
| 3340 # others require no space. Words are not sufficient . . . . | |
| 3341 case "`(uname -sr) 2>/dev/null`" in | |
| 3342 "SunOS 5"*) | |
| 3343 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
| 3344 echo "configure:3345: checking whether -R must be followed by a space" >&5 | |
| 3345 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" | |
| 3346 cat > conftest.$ac_ext <<EOF | |
| 3347 #line 3348 "configure" | |
| 3348 #include "confdefs.h" | |
| 3349 | |
| 3350 int main() { | |
| 3351 | |
| 3352 ; return 0; } | |
| 3353 EOF | |
| 3354 if { (eval echo configure:3355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 3355 rm -rf conftest* | |
| 3356 ac_R_nospace=yes | |
| 3357 else | |
| 3358 echo "configure: failed program was:" >&5 | |
| 3359 cat conftest.$ac_ext >&5 | |
| 3360 rm -rf conftest* | |
| 3361 ac_R_nospace=no | |
| 3362 fi | |
| 3363 rm -f conftest* | |
| 3364 if test $ac_R_nospace = yes; then | |
| 3365 echo "$ac_t""no" 1>&6 | |
| 3366 X_LIBS="$X_LIBS -R$x_libraries" | |
| 3367 else | |
| 3368 LIBS="$ac_xsave_LIBS -R $x_libraries" | |
| 3369 cat > conftest.$ac_ext <<EOF | |
| 3370 #line 3371 "configure" | |
| 3371 #include "confdefs.h" | |
| 3372 | |
| 3373 int main() { | |
| 3374 | |
| 3375 ; return 0; } | |
| 3376 EOF | |
| 3377 if { (eval echo configure:3378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 3378 rm -rf conftest* | |
| 3379 ac_R_space=yes | |
| 3380 else | |
| 3381 echo "configure: failed program was:" >&5 | |
| 3382 cat conftest.$ac_ext >&5 | |
| 3383 rm -rf conftest* | |
| 3384 ac_R_space=no | |
| 3385 fi | |
| 3386 rm -f conftest* | |
| 3387 if test $ac_R_space = yes; then | |
| 3388 echo "$ac_t""yes" 1>&6 | |
| 3389 X_LIBS="$X_LIBS -R $x_libraries" | |
| 3390 else | |
| 3391 echo "$ac_t""neither works" 1>&6 | |
| 3392 fi | |
| 3393 fi | |
| 3394 LIBS="$ac_xsave_LIBS" | |
| 3395 esac | |
| 3396 fi | |
| 3397 | |
| 3398 # Check for system-dependent libraries X programs must link with. | |
| 3399 # Do this before checking for the system-independent R6 libraries | |
| 3400 # (-lICE), since we may need -lsocket or whatever for X linking. | |
| 3401 | |
| 3402 if test "$ISC" = yes; then | |
| 3403 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
| 3404 else | |
| 3405 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
| 3406 # libraries were built with DECnet support. And karl@cs.umb.edu says | |
| 3407 # the Alpha needs dnet_stub (dnet does not exist). | |
| 3408 if test "$with_dnet" = "no"; then | |
| 3409 ac_cv_lib_dnet_dnet_ntoa=no | |
| 3410 else | |
| 3411 | |
| 3412 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
| 3413 echo "configure:3414: checking for dnet_ntoa in -ldnet" >&5 | |
| 3414 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
| 3415 | |
| 3416 xe_check_libs=" -ldnet " | |
| 3417 cat > conftest.$ac_ext <<EOF | |
| 3418 #line 3419 "configure" | |
| 3419 #include "confdefs.h" | |
| 3420 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 3421 /* We use char because int might match the return type of a gcc2 | |
| 3422 builtin and then its argument prototype would still apply. */ | |
| 3423 char dnet_ntoa(); | |
| 3424 | |
| 3425 int main() { | |
| 3426 dnet_ntoa() | |
| 3427 ; return 0; } | |
| 3428 EOF | |
| 3429 if { (eval echo configure:3430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 3430 rm -rf conftest* | |
| 3431 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 3432 else | |
| 3433 echo "configure: failed program was:" >&5 | |
| 3434 cat conftest.$ac_ext >&5 | |
| 3435 rm -rf conftest* | |
| 3436 eval "ac_cv_lib_$ac_lib_var=no" | |
| 3437 fi | |
| 3438 rm -f conftest* | |
| 3439 xe_check_libs="" | |
| 3440 | |
| 3441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 3442 echo "$ac_t""yes" 1>&6 | |
| 3443 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
| 3444 else | |
| 3445 echo "$ac_t""no" 1>&6 | |
| 3446 fi | |
| 3447 | |
| 3448 fi | |
| 3449 | |
| 3450 if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
| 3451 | |
| 3452 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
| 3453 echo "configure:3454: checking for dnet_ntoa in -ldnet_stub" >&5 | |
| 3454 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
| 3455 | |
| 3456 xe_check_libs=" -ldnet_stub " | |
| 3457 cat > conftest.$ac_ext <<EOF | |
| 3458 #line 3459 "configure" | |
| 3459 #include "confdefs.h" | |
| 3460 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 3461 /* We use char because int might match the return type of a gcc2 | |
| 3462 builtin and then its argument prototype would still apply. */ | |
| 3463 char dnet_ntoa(); | |
| 3464 | |
| 3465 int main() { | |
| 3466 dnet_ntoa() | |
| 3467 ; return 0; } | |
| 3468 EOF | |
| 3469 if { (eval echo configure:3470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 3470 rm -rf conftest* | |
| 3471 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 3472 else | |
| 3473 echo "configure: failed program was:" >&5 | |
| 3474 cat conftest.$ac_ext >&5 | |
| 3475 rm -rf conftest* | |
| 3476 eval "ac_cv_lib_$ac_lib_var=no" | |
| 3477 fi | |
| 3478 rm -f conftest* | |
| 3479 xe_check_libs="" | |
| 3480 | |
| 3481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 3482 echo "$ac_t""yes" 1>&6 | |
| 3483 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
| 3484 else | |
| 3485 echo "$ac_t""no" 1>&6 | |
| 3486 fi | |
| 3487 | |
| 2709 | 3488 |
| 2710 fi | 3489 fi |
| 2711 if test -n "${x_includes}${x_libraries}" ; then window_system=x11 ; fi | 3490 |
| 2712 ;; | 3491 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 3492 # to get the SysV transport functions. | |
| 3493 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
| 3494 # needs -lnsl. | |
| 3495 # The nsl library prevents programs from opening the X display | |
| 3496 # on Irix 5.2, according to dickey@clark.net. | |
| 3497 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
| 3498 echo "configure:3499: checking for gethostbyname" >&5 | |
| 3499 | |
| 3500 cat > conftest.$ac_ext <<EOF | |
| 3501 #line 3502 "configure" | |
| 3502 #include "confdefs.h" | |
| 3503 /* System header to define __stub macros and hopefully few prototypes, | |
| 3504 which can conflict with char gethostbyname(); below. */ | |
| 3505 #include <assert.h> | |
| 3506 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 3507 /* We use char because int might match the return type of a gcc2 | |
| 3508 builtin and then its argument prototype would still apply. */ | |
| 3509 char gethostbyname(); | |
| 3510 | |
| 3511 int main() { | |
| 3512 | |
| 3513 /* The GNU C library defines this for functions which it implements | |
| 3514 to always fail with ENOSYS. Some functions are actually named | |
| 3515 something starting with __ and the normal name is an alias. */ | |
| 3516 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
| 3517 choke me | |
| 3518 #else | |
| 3519 gethostbyname(); | |
| 3520 #endif | |
| 3521 | |
| 3522 ; return 0; } | |
| 3523 EOF | |
| 3524 if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 3525 rm -rf conftest* | |
| 3526 eval "ac_cv_func_gethostbyname=yes" | |
| 3527 else | |
| 3528 echo "configure: failed program was:" >&5 | |
| 3529 cat conftest.$ac_ext >&5 | |
| 3530 rm -rf conftest* | |
| 3531 eval "ac_cv_func_gethostbyname=no" | |
| 3532 fi | |
| 3533 rm -f conftest* | |
| 3534 | |
| 3535 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
| 3536 echo "$ac_t""yes" 1>&6 | |
| 3537 : | |
| 3538 else | |
| 3539 echo "$ac_t""no" 1>&6 | |
| 3540 fi | |
| 3541 | |
| 3542 if test $ac_cv_func_gethostbyname = no; then | |
| 3543 | |
| 3544 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
| 3545 echo "configure:3546: checking for gethostbyname in -lnsl" >&5 | |
| 3546 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` | |
| 3547 | |
| 3548 xe_check_libs=" -lnsl " | |
| 3549 cat > conftest.$ac_ext <<EOF | |
| 3550 #line 3551 "configure" | |
| 3551 #include "confdefs.h" | |
| 3552 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 3553 /* We use char because int might match the return type of a gcc2 | |
| 3554 builtin and then its argument prototype would still apply. */ | |
| 3555 char gethostbyname(); | |
| 3556 | |
| 3557 int main() { | |
| 3558 gethostbyname() | |
| 3559 ; return 0; } | |
| 3560 EOF | |
| 3561 if { (eval echo configure:3562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 3562 rm -rf conftest* | |
| 3563 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 3564 else | |
| 3565 echo "configure: failed program was:" >&5 | |
| 3566 cat conftest.$ac_ext >&5 | |
| 3567 rm -rf conftest* | |
| 3568 eval "ac_cv_lib_$ac_lib_var=no" | |
| 3569 fi | |
| 3570 rm -f conftest* | |
| 3571 xe_check_libs="" | |
| 3572 | |
| 3573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 3574 echo "$ac_t""yes" 1>&6 | |
| 3575 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
| 3576 else | |
| 3577 echo "$ac_t""no" 1>&6 | |
| 3578 fi | |
| 3579 | |
| 3580 | |
| 3581 fi | |
| 3582 | |
| 3583 # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
| 3584 # socket/setsockopt and other routines are undefined under SCO ODT | |
| 3585 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
| 3586 # on later versions), says simon@lia.di.epfl.ch: it contains | |
| 3587 # gethostby* variants that don't use the nameserver (or something). | |
| 3588 # -lsocket must be given before -lnsl if both are needed. | |
| 3589 # We assume that if connect needs -lnsl, so does gethostbyname. | |
| 3590 echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
| 3591 echo "configure:3592: checking for connect" >&5 | |
| 3592 | |
| 3593 cat > conftest.$ac_ext <<EOF | |
| 3594 #line 3595 "configure" | |
| 3595 #include "confdefs.h" | |
| 3596 /* System header to define __stub macros and hopefully few prototypes, | |
| 3597 which can conflict with char connect(); below. */ | |
| 3598 #include <assert.h> | |
| 3599 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 3600 /* We use char because int might match the return type of a gcc2 | |
| 3601 builtin and then its argument prototype would still apply. */ | |
| 3602 char connect(); | |
| 3603 | |
| 3604 int main() { | |
| 3605 | |
| 3606 /* The GNU C library defines this for functions which it implements | |
| 3607 to always fail with ENOSYS. Some functions are actually named | |
| 3608 something starting with __ and the normal name is an alias. */ | |
| 3609 #if defined (__stub_connect) || defined (__stub___connect) | |
| 3610 choke me | |
| 3611 #else | |
| 3612 connect(); | |
| 3613 #endif | |
| 3614 | |
| 3615 ; return 0; } | |
| 3616 EOF | |
| 3617 if { (eval echo configure:3618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 3618 rm -rf conftest* | |
| 3619 eval "ac_cv_func_connect=yes" | |
| 3620 else | |
| 3621 echo "configure: failed program was:" >&5 | |
| 3622 cat conftest.$ac_ext >&5 | |
| 3623 rm -rf conftest* | |
| 3624 eval "ac_cv_func_connect=no" | |
| 3625 fi | |
| 3626 rm -f conftest* | |
| 3627 | |
| 3628 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
| 3629 echo "$ac_t""yes" 1>&6 | |
| 3630 : | |
| 3631 else | |
| 3632 echo "$ac_t""no" 1>&6 | |
| 3633 fi | |
| 3634 | |
| 3635 if test $ac_cv_func_connect = no; then | |
| 3636 | |
| 3637 xe_msg_checking="for connect in -lsocket" | |
| 3638 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" | |
| 3639 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 | |
| 3640 echo "configure:3641: checking "$xe_msg_checking"" >&5 | |
| 3641 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` | |
| 3642 | |
| 3643 xe_check_libs=" -lsocket $X_EXTRA_LIBS" | |
| 3644 cat > conftest.$ac_ext <<EOF | |
| 3645 #line 3646 "configure" | |
| 3646 #include "confdefs.h" | |
| 3647 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 3648 /* We use char because int might match the return type of a gcc2 | |
| 3649 builtin and then its argument prototype would still apply. */ | |
| 3650 char connect(); | |
| 3651 | |
| 3652 int main() { | |
| 3653 connect() | |
| 3654 ; return 0; } | |
| 3655 EOF | |
| 3656 if { (eval echo configure:3657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 3657 rm -rf conftest* | |
| 3658 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 3659 else | |
| 3660 echo "configure: failed program was:" >&5 | |
| 3661 cat conftest.$ac_ext >&5 | |
| 3662 rm -rf conftest* | |
| 3663 eval "ac_cv_lib_$ac_lib_var=no" | |
| 3664 fi | |
| 3665 rm -f conftest* | |
| 3666 xe_check_libs="" | |
| 3667 | |
| 3668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 3669 echo "$ac_t""yes" 1>&6 | |
| 3670 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
| 3671 else | |
| 3672 echo "$ac_t""no" 1>&6 | |
| 3673 fi | |
| 3674 | |
| 3675 | |
| 3676 fi | |
| 3677 | |
| 3678 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
| 3679 echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
| 3680 echo "configure:3681: checking for remove" >&5 | |
| 3681 | |
| 3682 cat > conftest.$ac_ext <<EOF | |
| 3683 #line 3684 "configure" | |
| 3684 #include "confdefs.h" | |
| 3685 /* System header to define __stub macros and hopefully few prototypes, | |
| 3686 which can conflict with char remove(); below. */ | |
| 3687 #include <assert.h> | |
| 3688 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 3689 /* We use char because int might match the return type of a gcc2 | |
| 3690 builtin and then its argument prototype would still apply. */ | |
| 3691 char remove(); | |
| 3692 | |
| 3693 int main() { | |
| 3694 | |
| 3695 /* The GNU C library defines this for functions which it implements | |
| 3696 to always fail with ENOSYS. Some functions are actually named | |
| 3697 something starting with __ and the normal name is an alias. */ | |
| 3698 #if defined (__stub_remove) || defined (__stub___remove) | |
| 3699 choke me | |
| 3700 #else | |
| 3701 remove(); | |
| 3702 #endif | |
| 3703 | |
| 3704 ; return 0; } | |
| 3705 EOF | |
| 3706 if { (eval echo configure:3707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 3707 rm -rf conftest* | |
| 3708 eval "ac_cv_func_remove=yes" | |
| 3709 else | |
| 3710 echo "configure: failed program was:" >&5 | |
| 3711 cat conftest.$ac_ext >&5 | |
| 3712 rm -rf conftest* | |
| 3713 eval "ac_cv_func_remove=no" | |
| 3714 fi | |
| 3715 rm -f conftest* | |
| 3716 | |
| 3717 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
| 3718 echo "$ac_t""yes" 1>&6 | |
| 3719 : | |
| 3720 else | |
| 3721 echo "$ac_t""no" 1>&6 | |
| 3722 fi | |
| 3723 | |
| 3724 if test $ac_cv_func_remove = no; then | |
| 3725 | |
| 3726 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
| 3727 echo "configure:3728: checking for remove in -lposix" >&5 | |
| 3728 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` | |
| 3729 | |
| 3730 xe_check_libs=" -lposix " | |
| 3731 cat > conftest.$ac_ext <<EOF | |
| 3732 #line 3733 "configure" | |
| 3733 #include "confdefs.h" | |
| 3734 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 3735 /* We use char because int might match the return type of a gcc2 | |
| 3736 builtin and then its argument prototype would still apply. */ | |
| 3737 char remove(); | |
| 3738 | |
| 3739 int main() { | |
| 3740 remove() | |
| 3741 ; return 0; } | |
| 3742 EOF | |
| 3743 if { (eval echo configure:3744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 3744 rm -rf conftest* | |
| 3745 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 3746 else | |
| 3747 echo "configure: failed program was:" >&5 | |
| 3748 cat conftest.$ac_ext >&5 | |
| 3749 rm -rf conftest* | |
| 3750 eval "ac_cv_lib_$ac_lib_var=no" | |
| 3751 fi | |
| 3752 rm -f conftest* | |
| 3753 xe_check_libs="" | |
| 3754 | |
| 3755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 3756 echo "$ac_t""yes" 1>&6 | |
| 3757 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
| 3758 else | |
| 3759 echo "$ac_t""no" 1>&6 | |
| 3760 fi | |
| 3761 | |
| 3762 | |
| 3763 fi | |
| 3764 | |
| 3765 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
| 3766 echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
| 3767 echo "configure:3768: checking for shmat" >&5 | |
| 3768 | |
| 3769 cat > conftest.$ac_ext <<EOF | |
| 3770 #line 3771 "configure" | |
| 3771 #include "confdefs.h" | |
| 3772 /* System header to define __stub macros and hopefully few prototypes, | |
| 3773 which can conflict with char shmat(); below. */ | |
| 3774 #include <assert.h> | |
| 3775 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 3776 /* We use char because int might match the return type of a gcc2 | |
| 3777 builtin and then its argument prototype would still apply. */ | |
| 3778 char shmat(); | |
| 3779 | |
| 3780 int main() { | |
| 3781 | |
| 3782 /* The GNU C library defines this for functions which it implements | |
| 3783 to always fail with ENOSYS. Some functions are actually named | |
| 3784 something starting with __ and the normal name is an alias. */ | |
| 3785 #if defined (__stub_shmat) || defined (__stub___shmat) | |
| 3786 choke me | |
| 3787 #else | |
| 3788 shmat(); | |
| 3789 #endif | |
| 3790 | |
| 3791 ; return 0; } | |
| 3792 EOF | |
| 3793 if { (eval echo configure:3794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 3794 rm -rf conftest* | |
| 3795 eval "ac_cv_func_shmat=yes" | |
| 3796 else | |
| 3797 echo "configure: failed program was:" >&5 | |
| 3798 cat conftest.$ac_ext >&5 | |
| 3799 rm -rf conftest* | |
| 3800 eval "ac_cv_func_shmat=no" | |
| 3801 fi | |
| 3802 rm -f conftest* | |
| 3803 | |
| 3804 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
| 3805 echo "$ac_t""yes" 1>&6 | |
| 3806 : | |
| 3807 else | |
| 3808 echo "$ac_t""no" 1>&6 | |
| 3809 fi | |
| 3810 | |
| 3811 if test $ac_cv_func_shmat = no; then | |
| 3812 | |
| 3813 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
| 3814 echo "configure:3815: checking for shmat in -lipc" >&5 | |
| 3815 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` | |
| 3816 | |
| 3817 xe_check_libs=" -lipc " | |
| 3818 cat > conftest.$ac_ext <<EOF | |
| 3819 #line 3820 "configure" | |
| 3820 #include "confdefs.h" | |
| 3821 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 3822 /* We use char because int might match the return type of a gcc2 | |
| 3823 builtin and then its argument prototype would still apply. */ | |
| 3824 char shmat(); | |
| 3825 | |
| 3826 int main() { | |
| 3827 shmat() | |
| 3828 ; return 0; } | |
| 3829 EOF | |
| 3830 if { (eval echo configure:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 3831 rm -rf conftest* | |
| 3832 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 3833 else | |
| 3834 echo "configure: failed program was:" >&5 | |
| 3835 cat conftest.$ac_ext >&5 | |
| 3836 rm -rf conftest* | |
| 3837 eval "ac_cv_lib_$ac_lib_var=no" | |
| 3838 fi | |
| 3839 rm -f conftest* | |
| 3840 xe_check_libs="" | |
| 3841 | |
| 3842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 3843 echo "$ac_t""yes" 1>&6 | |
| 3844 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
| 3845 else | |
| 3846 echo "$ac_t""no" 1>&6 | |
| 3847 fi | |
| 3848 | |
| 3849 | |
| 3850 fi | |
| 3851 fi | |
| 3852 | |
| 3853 # Check for libraries that X11R6 Xt/Xaw programs need. | |
| 3854 ac_save_LDFLAGS="$LDFLAGS" | |
| 3855 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
| 3856 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
| 3857 # check for ICE first), but we must link in the order -lSM -lICE or | |
| 3858 # we get undefined symbols. So assume we have SM if we have ICE. | |
| 3859 # These have to be linked with before -lX11, unlike the other | |
| 3860 # libraries we check for below, so use a different variable. | |
| 3861 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
| 3862 | |
| 3863 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
| 3864 echo "configure:3865: checking for IceConnectionNumber in -lICE" >&5 | |
| 3865 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` | |
| 3866 | |
| 3867 xe_check_libs=" -lICE " | |
| 3868 cat > conftest.$ac_ext <<EOF | |
| 3869 #line 3870 "configure" | |
| 3870 #include "confdefs.h" | |
| 3871 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 3872 /* We use char because int might match the return type of a gcc2 | |
| 3873 builtin and then its argument prototype would still apply. */ | |
| 3874 char IceConnectionNumber(); | |
| 3875 | |
| 3876 int main() { | |
| 3877 IceConnectionNumber() | |
| 3878 ; return 0; } | |
| 3879 EOF | |
| 3880 if { (eval echo configure:3881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 3881 rm -rf conftest* | |
| 3882 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 3883 else | |
| 3884 echo "configure: failed program was:" >&5 | |
| 3885 cat conftest.$ac_ext >&5 | |
| 3886 rm -rf conftest* | |
| 3887 eval "ac_cv_lib_$ac_lib_var=no" | |
| 3888 fi | |
| 3889 rm -f conftest* | |
| 3890 xe_check_libs="" | |
| 3891 | |
| 3892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 3893 echo "$ac_t""yes" 1>&6 | |
| 3894 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
| 3895 else | |
| 3896 echo "$ac_t""no" 1>&6 | |
| 3897 fi | |
| 3898 | |
| 3899 | |
| 3900 LDFLAGS="$ac_save_LDFLAGS" | |
| 3901 | |
| 3902 fi | |
| 3903 # Autoconf claims to find X library and include dirs for us. | |
| 3904 if test "$no_x" = "yes" | |
| 3905 then with_x11=no window_system=none HAVE_X_WINDOWS=no | |
| 3906 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes | |
| 3907 fi | |
| 3908 fi | |
| 3909 | |
| 3910 case "$with_x11" in | |
| 3911 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;; | |
| 3912 no ) window_system=none HAVE_X_WINDOWS=no ;; | |
| 2713 esac | 3913 esac |
| 2714 | 3914 |
| 2715 test -z "${window_system}" && window_system="none" | 3915 if test "$with_x11" = "yes"; then |
| 2716 | 3916 { test "$extra_verbose" = "yes" && cat << \EOF |
| 2717 if test "${window_system}" = "none" ; then | 3917 Defining HAVE_X_WINDOWS |
| 2718 if test "${with_tty}" != "yes" ; then | 3918 EOF |
| 2719 echo "No window system support, and no TTY support." >&2 | 3919 cat >> confdefs.h <<\EOF |
| 2720 echo "Unable to proceed." >&2 | 3920 #define HAVE_X_WINDOWS 1 |
| 2721 exit 1 | 3921 EOF |
| 3922 } | |
| 3923 | |
| 3924 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" | |
| 3925 | |
| 3926 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do | |
| 3927 inc_dir="`echo $lib_dir | sed 's/lib/include/'`" | |
| 3928 if test -d "$lib_dir" -a -d "$inc_dir"; then | |
| 3929 case "$x_libraries" in *"$lib_dir"* ) : ;; *) | |
| 3930 x_libraries="$lib_dir $x_libraries" X_LIBS="-L${lib_dir} $X_LIBS" | |
| 3931 esac | |
| 3932 case "$x_includes" in "$inc_dir"* ) : ;; *) | |
| 3933 x_includes="$inc_dir $x_includes" X_CFLAGS="-I${inc_dir} $X_CFLAGS" | |
| 3934 esac | |
| 3935 break; fi | |
| 3936 done | |
| 3937 | |
| 3938 for rel in "X11R6" "X11R5" "X11R4"; do | |
| 3939 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include" | |
| 3940 if test -d "$lib_dir" -a -d "$inc_dir"; then | |
| 3941 case "$x_libraries" in *"$lib_dir"* ) : ;; *) | |
| 3942 x_libraries="$x_libraries $lib_dir" X_LIBS="$X_LIBS -L${lib_dir}" | |
| 3943 esac | |
| 3944 case "$x_includes" in "$inc_dir"* ) : ;; *) | |
| 3945 x_includes="$x_includes $inc_dir" X_CFLAGS="$X_CFLAGS -I${inc_dir}" | |
| 3946 esac | |
| 3947 break; fi | |
| 3948 done | |
| 3949 | |
| 3950 ld_switch_x_site="$X_LIBS" | |
| 3951 | |
| 3952 if test "$extra_verbose" = "yes"; then | |
| 3953 echo; echo "X11 compilation variables:" | |
| 3954 echo "x_libraries = $x_libraries" | |
| 3955 echo "x_includes = $x_includes" | |
| 3956 echo "X_CFLAGS = $X_CFLAGS" | |
| 3957 echo "X_LIBS = $X_LIBS" | |
| 3958 echo "X_PRE_LIBS = $X_PRE_LIBS" | |
| 3959 echo "X_EXTRA_LIBS = $X_EXTRA_LIBS" | |
| 3960 echo | |
| 2722 fi | 3961 fi |
| 2723 for feature in cde offix menubars scrollbars toolbars dialogs xim tiff | 3962 |
| 3963 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` | |
| 3964 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 | |
| 3965 echo "configure:3966: checking for X11/Intrinsic.h" >&5 | |
| 3966 | |
| 3967 cat > conftest.$ac_ext <<EOF | |
| 3968 #line 3969 "configure" | |
| 3969 #include "confdefs.h" | |
| 3970 #include <X11/Intrinsic.h> | |
| 3971 EOF | |
| 3972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
| 3973 { (eval echo configure:3974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
| 3974 ac_err=`grep -v '^ *+' conftest.out` | |
| 3975 if test -z "$ac_err"; then | |
| 3976 rm -rf conftest* | |
| 3977 eval "ac_cv_header_$ac_safe=yes" | |
| 3978 else | |
| 3979 echo "$ac_err" >&5 | |
| 3980 echo "configure: failed program was:" >&5 | |
| 3981 cat conftest.$ac_ext >&5 | |
| 3982 rm -rf conftest* | |
| 3983 eval "ac_cv_header_$ac_safe=no" | |
| 3984 fi | |
| 3985 rm -f conftest* | |
| 3986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
| 3987 echo "$ac_t""yes" 1>&6 | |
| 3988 : | |
| 3989 else | |
| 3990 echo "$ac_t""no" 1>&6 | |
| 3991 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; } | |
| 3992 fi | |
| 3993 | |
| 3994 | |
| 3995 | |
| 3996 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 | |
| 3997 echo "configure:3998: checking for XOpenDisplay in -lX11" >&5 | |
| 3998 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` | |
| 3999 | |
| 4000 xe_check_libs=" -lX11 " | |
| 4001 cat > conftest.$ac_ext <<EOF | |
| 4002 #line 4003 "configure" | |
| 4003 #include "confdefs.h" | |
| 4004 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 4005 /* We use char because int might match the return type of a gcc2 | |
| 4006 builtin and then its argument prototype would still apply. */ | |
| 4007 char XOpenDisplay(); | |
| 4008 | |
| 4009 int main() { | |
| 4010 XOpenDisplay() | |
| 4011 ; return 0; } | |
| 4012 EOF | |
| 4013 if { (eval echo configure:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 4014 rm -rf conftest* | |
| 4015 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 4016 else | |
| 4017 echo "configure: failed program was:" >&5 | |
| 4018 cat conftest.$ac_ext >&5 | |
| 4019 rm -rf conftest* | |
| 4020 eval "ac_cv_lib_$ac_lib_var=no" | |
| 4021 fi | |
| 4022 rm -f conftest* | |
| 4023 xe_check_libs="" | |
| 4024 | |
| 4025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 4026 echo "$ac_t""yes" 1>&6 | |
| 4027 have_lib_x11=yes | |
| 4028 else | |
| 4029 echo "$ac_t""no" 1>&6 | |
| 4030 fi | |
| 4031 | |
| 4032 | |
| 4033 if test "$have_lib_x11" != "yes"; then | |
| 4034 | |
| 4035 xe_msg_checking="for XGetFontProperty in -lX11" | |
| 4036 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" | |
| 4037 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 | |
| 4038 echo "configure:4039: checking "$xe_msg_checking"" >&5 | |
| 4039 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` | |
| 4040 | |
| 4041 xe_check_libs=" -lX11 -b i486-linuxaout" | |
| 4042 cat > conftest.$ac_ext <<EOF | |
| 4043 #line 4044 "configure" | |
| 4044 #include "confdefs.h" | |
| 4045 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 4046 /* We use char because int might match the return type of a gcc2 | |
| 4047 builtin and then its argument prototype would still apply. */ | |
| 4048 char XGetFontProperty(); | |
| 4049 | |
| 4050 int main() { | |
| 4051 XGetFontProperty() | |
| 4052 ; return 0; } | |
| 4053 EOF | |
| 4054 if { (eval echo configure:4055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 4055 rm -rf conftest* | |
| 4056 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 4057 else | |
| 4058 echo "configure: failed program was:" >&5 | |
| 4059 cat conftest.$ac_ext >&5 | |
| 4060 rm -rf conftest* | |
| 4061 eval "ac_cv_lib_$ac_lib_var=no" | |
| 4062 fi | |
| 4063 rm -f conftest* | |
| 4064 xe_check_libs="" | |
| 4065 | |
| 4066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 4067 echo "$ac_t""yes" 1>&6 | |
| 4068 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site" | |
| 4069 else | |
| 4070 echo "$ac_t""no" 1>&6 | |
| 4071 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; } | |
| 4072 fi | |
| 4073 | |
| 4074 | |
| 4075 fi | |
| 4076 libs_x="-lX11" | |
| 4077 | |
| 4078 case "$canonical" in *-sunos4.* ) # Bug workaround | |
| 4079 ld_switch_x_site="$ld_switch_x_site -u _XtToolkitInitialize" ;; | |
| 4080 esac | |
| 4081 | |
| 4082 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 | |
| 4083 echo "configure:4084: checking for XtOpenDisplay in -lXt" >&5 | |
| 4084 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` | |
| 4085 | |
| 4086 xe_check_libs=" -lXt " | |
| 4087 cat > conftest.$ac_ext <<EOF | |
| 4088 #line 4089 "configure" | |
| 4089 #include "confdefs.h" | |
| 4090 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 4091 /* We use char because int might match the return type of a gcc2 | |
| 4092 builtin and then its argument prototype would still apply. */ | |
| 4093 char XtOpenDisplay(); | |
| 4094 | |
| 4095 int main() { | |
| 4096 XtOpenDisplay() | |
| 4097 ; return 0; } | |
| 4098 EOF | |
| 4099 if { (eval echo configure:4100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 4100 rm -rf conftest* | |
| 4101 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 4102 else | |
| 4103 echo "configure: failed program was:" >&5 | |
| 4104 cat conftest.$ac_ext >&5 | |
| 4105 rm -rf conftest* | |
| 4106 eval "ac_cv_lib_$ac_lib_var=no" | |
| 4107 fi | |
| 4108 rm -f conftest* | |
| 4109 xe_check_libs="" | |
| 4110 | |
| 4111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 4112 echo "$ac_t""yes" 1>&6 | |
| 4113 libs_x="-lXt $libs_x" | |
| 4114 else | |
| 4115 echo "$ac_t""no" 1>&6 | |
| 4116 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; } | |
| 4117 fi | |
| 4118 | |
| 4119 | |
| 4120 | |
| 4121 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 | |
| 4122 echo "configure:4123: checking the version of X11 being used" >&5 | |
| 4123 cat > conftest.$ac_ext <<EOF | |
| 4124 #line 4125 "configure" | |
| 4125 #include "confdefs.h" | |
| 4126 #include <X11/Intrinsic.h> | |
| 4127 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; } | |
| 4128 EOF | |
| 4129 if { (eval echo configure:4130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null | |
| 4130 then | |
| 4131 ./conftest foobar; rc=$? | |
| 4132 else | |
| 4133 echo "configure: failed program was:" >&5 | |
| 4134 cat conftest.$ac_ext >&5 | |
| 4135 rm -fr conftest* | |
| 4136 rc=4 | |
| 4137 fi | |
| 4138 rm -fr conftest* | |
| 4139 echo "$ac_t""R${rc}" 1>&6 | |
| 4140 { test "$extra_verbose" = "yes" && cat << EOF | |
| 4141 Defining THIS_IS_X11R${rc} | |
| 4142 EOF | |
| 4143 cat >> confdefs.h <<EOF | |
| 4144 #define THIS_IS_X11R${rc} 1 | |
| 4145 EOF | |
| 4146 } | |
| 4147 | |
| 4148 | |
| 4149 for ac_hdr in X11/Xlocale.h | |
| 4150 do | |
| 4151 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
| 4152 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
| 4153 echo "configure:4154: checking for $ac_hdr" >&5 | |
| 4154 | |
| 4155 cat > conftest.$ac_ext <<EOF | |
| 4156 #line 4157 "configure" | |
| 4157 #include "confdefs.h" | |
| 4158 #include <$ac_hdr> | |
| 4159 EOF | |
| 4160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
| 4161 { (eval echo configure:4162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
| 4162 ac_err=`grep -v '^ *+' conftest.out` | |
| 4163 if test -z "$ac_err"; then | |
| 4164 rm -rf conftest* | |
| 4165 eval "ac_cv_header_$ac_safe=yes" | |
| 4166 else | |
| 4167 echo "$ac_err" >&5 | |
| 4168 echo "configure: failed program was:" >&5 | |
| 4169 cat conftest.$ac_ext >&5 | |
| 4170 rm -rf conftest* | |
| 4171 eval "ac_cv_header_$ac_safe=no" | |
| 4172 fi | |
| 4173 rm -f conftest* | |
| 4174 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
| 4175 echo "$ac_t""yes" 1>&6 | |
| 4176 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
| 4177 { test "$extra_verbose" = "yes" && cat << EOF | |
| 4178 Defining $ac_tr_hdr | |
| 4179 EOF | |
| 4180 cat >> confdefs.h <<EOF | |
| 4181 #define $ac_tr_hdr 1 | |
| 4182 EOF | |
| 4183 } | |
| 4184 | |
| 4185 else | |
| 4186 echo "$ac_t""no" 1>&6 | |
| 4187 fi | |
| 4188 done | |
| 4189 | |
| 4190 | |
| 4191 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 | |
| 4192 echo "configure:4193: checking for XFree86" >&5 | |
| 4193 if test -d "/usr/X386/include" -o \ | |
| 4194 -f "/etc/XF86Config" -o \ | |
| 4195 -f "/etc/X11/XF86Config" -o \ | |
| 4196 -f "/usr/X11R6/lib/X11/XF86Config"; then | |
| 4197 echo "$ac_t""yes" 1>&6 | |
| 4198 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 4199 Defining HAVE_XFREE386 | |
| 4200 EOF | |
| 4201 cat >> confdefs.h <<\EOF | |
| 4202 #define HAVE_XFREE386 1 | |
| 4203 EOF | |
| 4204 } | |
| 4205 | |
| 4206 else | |
| 4207 echo "$ac_t""no" 1>&6 | |
| 4208 fi | |
| 4209 | |
| 4210 | |
| 4211 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 | |
| 4212 echo "configure:4213: checking for XShapeSelectInput in -lXext" >&5 | |
| 4213 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` | |
| 4214 | |
| 4215 xe_check_libs=" -lXext " | |
| 4216 cat > conftest.$ac_ext <<EOF | |
| 4217 #line 4218 "configure" | |
| 4218 #include "confdefs.h" | |
| 4219 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 4220 /* We use char because int might match the return type of a gcc2 | |
| 4221 builtin and then its argument prototype would still apply. */ | |
| 4222 char XShapeSelectInput(); | |
| 4223 | |
| 4224 int main() { | |
| 4225 XShapeSelectInput() | |
| 4226 ; return 0; } | |
| 4227 EOF | |
| 4228 if { (eval echo configure:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 4229 rm -rf conftest* | |
| 4230 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 4231 else | |
| 4232 echo "configure: failed program was:" >&5 | |
| 4233 cat conftest.$ac_ext >&5 | |
| 4234 rm -rf conftest* | |
| 4235 eval "ac_cv_lib_$ac_lib_var=no" | |
| 4236 fi | |
| 4237 rm -f conftest* | |
| 4238 xe_check_libs="" | |
| 4239 | |
| 4240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 4241 echo "$ac_t""yes" 1>&6 | |
| 4242 libs_x="-lXext $libs_x" | |
| 4243 else | |
| 4244 echo "$ac_t""no" 1>&6 | |
| 4245 fi | |
| 4246 | |
| 4247 | |
| 4248 | |
| 4249 case "$canonical" in *-sunos4.* ) # Bug workaround | |
| 4250 ld_switch_x_site="$ld_switch_x_site -u _get_applicationShellWidgetClass" ;; | |
| 4251 esac | |
| 4252 if test -z "$with_xmu"; then | |
| 4253 | |
| 4254 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 | |
| 4255 echo "configure:4256: checking for XmuConvertStandardSelection in -lXmu" >&5 | |
| 4256 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` | |
| 4257 | |
| 4258 xe_check_libs=" -lXmu " | |
| 4259 cat > conftest.$ac_ext <<EOF | |
| 4260 #line 4261 "configure" | |
| 4261 #include "confdefs.h" | |
| 4262 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 4263 /* We use char because int might match the return type of a gcc2 | |
| 4264 builtin and then its argument prototype would still apply. */ | |
| 4265 char XmuConvertStandardSelection(); | |
| 4266 | |
| 4267 int main() { | |
| 4268 XmuConvertStandardSelection() | |
| 4269 ; return 0; } | |
| 4270 EOF | |
| 4271 if { (eval echo configure:4272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 4272 rm -rf conftest* | |
| 4273 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 4274 else | |
| 4275 echo "configure: failed program was:" >&5 | |
| 4276 cat conftest.$ac_ext >&5 | |
| 4277 rm -rf conftest* | |
| 4278 eval "ac_cv_lib_$ac_lib_var=no" | |
| 4279 fi | |
| 4280 rm -f conftest* | |
| 4281 xe_check_libs="" | |
| 4282 | |
| 4283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 4284 echo "$ac_t""yes" 1>&6 | |
| 4285 with_xmu=yes | |
| 4286 else | |
| 4287 echo "$ac_t""no" 1>&6 | |
| 4288 with_xmu=no | |
| 4289 fi | |
| 4290 | |
| 4291 | |
| 4292 fi | |
| 4293 if test "$with_xmu" = "no"; then | |
| 4294 extra_objs="$extra_objs xmu.o" | |
| 4295 else | |
| 4296 libs_x="-lXmu $libs_x" | |
| 4297 fi | |
| 4298 | |
| 4299 | |
| 4300 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 | |
| 4301 echo "configure:4302: checking for main in -lXbsd" >&5 | |
| 4302 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` | |
| 4303 | |
| 4304 xe_check_libs=" -lXbsd " | |
| 4305 cat > conftest.$ac_ext <<EOF | |
| 4306 #line 4307 "configure" | |
| 4307 #include "confdefs.h" | |
| 4308 | |
| 4309 int main() { | |
| 4310 main() | |
| 4311 ; return 0; } | |
| 4312 EOF | |
| 4313 if { (eval echo configure:4314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 4314 rm -rf conftest* | |
| 4315 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 4316 else | |
| 4317 echo "configure: failed program was:" >&5 | |
| 4318 cat conftest.$ac_ext >&5 | |
| 4319 rm -rf conftest* | |
| 4320 eval "ac_cv_lib_$ac_lib_var=no" | |
| 4321 fi | |
| 4322 rm -f conftest* | |
| 4323 xe_check_libs="" | |
| 4324 | |
| 4325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 4326 echo "$ac_t""yes" 1>&6 | |
| 4327 libs_x="-lXbsd $libs_x" | |
| 4328 else | |
| 4329 echo "$ac_t""no" 1>&6 | |
| 4330 fi | |
| 4331 | |
| 4332 | |
| 4333 | |
| 4334 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` | |
| 4335 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 | |
| 4336 echo "configure:4337: checking for Xm/Xm.h" >&5 | |
| 4337 | |
| 4338 cat > conftest.$ac_ext <<EOF | |
| 4339 #line 4340 "configure" | |
| 4340 #include "confdefs.h" | |
| 4341 #include <Xm/Xm.h> | |
| 4342 EOF | |
| 4343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
| 4344 { (eval echo configure:4345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
| 4345 ac_err=`grep -v '^ *+' conftest.out` | |
| 4346 if test -z "$ac_err"; then | |
| 4347 rm -rf conftest* | |
| 4348 eval "ac_cv_header_$ac_safe=yes" | |
| 4349 else | |
| 4350 echo "$ac_err" >&5 | |
| 4351 echo "configure: failed program was:" >&5 | |
| 4352 cat conftest.$ac_ext >&5 | |
| 4353 rm -rf conftest* | |
| 4354 eval "ac_cv_header_$ac_safe=no" | |
| 4355 fi | |
| 4356 rm -f conftest* | |
| 4357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
| 4358 echo "$ac_t""yes" 1>&6 | |
| 4359 | |
| 4360 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 | |
| 4361 echo "configure:4362: checking for XmStringFree in -lXm" >&5 | |
| 4362 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` | |
| 4363 | |
| 4364 xe_check_libs=" -lXm " | |
| 4365 cat > conftest.$ac_ext <<EOF | |
| 4366 #line 4367 "configure" | |
| 4367 #include "confdefs.h" | |
| 4368 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 4369 /* We use char because int might match the return type of a gcc2 | |
| 4370 builtin and then its argument prototype would still apply. */ | |
| 4371 char XmStringFree(); | |
| 4372 | |
| 4373 int main() { | |
| 4374 XmStringFree() | |
| 4375 ; return 0; } | |
| 4376 EOF | |
| 4377 if { (eval echo configure:4378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 4378 rm -rf conftest* | |
| 4379 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 4380 else | |
| 4381 echo "configure: failed program was:" >&5 | |
| 4382 cat conftest.$ac_ext >&5 | |
| 4383 rm -rf conftest* | |
| 4384 eval "ac_cv_lib_$ac_lib_var=no" | |
| 4385 fi | |
| 4386 rm -f conftest* | |
| 4387 xe_check_libs="" | |
| 4388 | |
| 4389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 4390 echo "$ac_t""yes" 1>&6 | |
| 4391 have_motif=yes | |
| 4392 else | |
| 4393 echo "$ac_t""no" 1>&6 | |
| 4394 have_motif=no | |
| 4395 fi | |
| 4396 | |
| 4397 | |
| 4398 else | |
| 4399 echo "$ac_t""no" 1>&6 | |
| 4400 have_motif=no | |
| 4401 fi | |
| 4402 | |
| 4403 | |
| 4404 | |
| 4405 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 | |
| 4406 echo "configure:4407: checking for XawScrollbarSetThumb in -lXaw" >&5 | |
| 4407 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` | |
| 4408 | |
| 4409 xe_check_libs=" -lXaw " | |
| 4410 cat > conftest.$ac_ext <<EOF | |
| 4411 #line 4412 "configure" | |
| 4412 #include "confdefs.h" | |
| 4413 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 4414 /* We use char because int might match the return type of a gcc2 | |
| 4415 builtin and then its argument prototype would still apply. */ | |
| 4416 char XawScrollbarSetThumb(); | |
| 4417 | |
| 4418 int main() { | |
| 4419 XawScrollbarSetThumb() | |
| 4420 ; return 0; } | |
| 4421 EOF | |
| 4422 if { (eval echo configure:4423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 4423 rm -rf conftest* | |
| 4424 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 4425 else | |
| 4426 echo "configure: failed program was:" >&5 | |
| 4427 cat conftest.$ac_ext >&5 | |
| 4428 rm -rf conftest* | |
| 4429 eval "ac_cv_lib_$ac_lib_var=no" | |
| 4430 fi | |
| 4431 rm -f conftest* | |
| 4432 xe_check_libs="" | |
| 4433 | |
| 4434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 4435 echo "$ac_t""yes" 1>&6 | |
| 4436 have_xaw=yes | |
| 4437 else | |
| 4438 echo "$ac_t""no" 1>&6 | |
| 4439 have_xaw=no | |
| 4440 fi | |
| 4441 | |
| 4442 | |
| 4443 | |
| 4444 fi | |
| 4445 test -z "$window_system" && window_system="none" | |
| 4446 | |
| 4447 if test "$window_system" = "none" ; then | |
| 4448 if test "$with_tty" = "no" ; then | |
| 4449 { echo "configure: error: No window system support and no TTY support - Unable to proceed." 1>&2; exit 1; } | |
| 4450 fi | |
| 4451 for feature in tooltalk cde offix \ | |
| 4452 menubars scrollbars toolbars dialogs xim xmu \ | |
| 4453 tiff png jpeg gif compface xpm | |
| 2724 do | 4454 do |
| 2725 if eval "test -n \"\$with_$feature\" -a \"\$with_$feature\" != no" ; then | 4455 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then |
| 2726 echo "configure: warning: --with-$feature ignored: Not valid without X support" >&2 | 4456 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2 |
| 2727 fi | 4457 fi |
| 2728 eval "with_$feature=no" | 4458 eval "with_${feature}=no" |
| 2729 done | 4459 done |
| 2730 elif test -z "${with_toolbars}" ; then | 4460 else |
| 2731 with_toolbars='yes' | 4461 test -z "$with_toolbars" && with_toolbars=yes |
| 2732 fi | 4462 fi |
| 2733 | 4463 |
| 4464 if false; then # obsolete | |
| 2734 runtime_arg="-R${dash_r_space}" | 4465 runtime_arg="-R${dash_r_space}" |
| 2735 | 4466 |
| 2736 case "${canonical}" in | 4467 case "$canonical" in |
| 2737 *-sun-solaris* | *-sun-sunos5* ) | 4468 *-sun-solaris* | *-sun-sunos5* ) |
| 2738 add_runtime_flag=yes ;; | 4469 add_runtime_flag=yes ;; |
| 2739 *-sgi-irix5.* ) | 4470 *-sgi-irix5.* ) |
| 2740 # In the IRIX 5.3 ld, only the last -rpath arg has any effect. This is | 4471 if test -n "$x_libraries" || test -n "$site_runtime_libraries" ; then |
| 2741 # fundamentaly incompatible with having separate LD_SWITCH_X_SITE | |
| 2742 # and LD_SWITCH_SITE variables. Fortunately, SGI fixed this by 6.2. | |
| 2743 if test -n "${x_libraries}" || test -n "${site_runtime_libraries}" ; then | |
| 2744 (echo "WARNING: The IRIX 5 ld ignores all but the last -rpath argument,"; | 4472 (echo "WARNING: The IRIX 5 ld ignores all but the last -rpath argument,"; |
| 2745 echo " so if you need to specify more than one additional"; | 4473 echo " so if you need to specify more than one additional"; |
| 2746 echo " runtime library directory, you will have to do so"; | 4474 echo " runtime library directory, you will have to do so"; |
| 2747 echo " manually by setting the environment variable"; | 4475 echo " manually by setting the environment variable"; |
| 2748 echo " LD_SWITCH_SITE to '-rpath <path>' before running"; | 4476 echo " LD_SWITCH_SITE to '-rpath <path>' before running"; |
| 2749 echo " configure. If you have only one additional directory," | 4477 echo " configure. If you have only one additional directory," |
| 2750 echo " you can specify it with --site-runtime-libraries.") >&2 | 4478 echo " you can specify it with --site-runtime-libraries.") >&2 |
| 2751 fi | 4479 fi |
| 2752 runtime_arg="-rpath " ;; | 4480 runtime_arg="-rpath " ;; |
| 2753 *-sgi-irix* ) | 4481 *-sgi-irix* ) |
| 2754 # Note that IRIX gcc (as of 2.7.2) doesn't accept -rpath, so | 4482 add_runtime_flag=yes; |
| 2755 # using it can cause trouble. Specifying --use-gcc=no will work | |
| 2756 # around this, but the real problem is that configure uses $LDFLAGS | |
| 2757 # as arguments to $(CC), instead of using prefix-args like the | |
| 2758 # src/Makefile does. | |
| 2759 add_runtime_flag=yes; | |
| 2760 runtime_arg="-rpath " ;; | 4483 runtime_arg="-rpath " ;; |
| 2761 esac | 4484 esac |
| 2762 | 4485 fi |
| 2763 if test -n "${x_libraries}" ; then | 4486 |
| 2764 if test "${add_runtime_flag}" = "yes" ; then | 4487 if test -n "$site_libraries"; then |
| 2765 LD_SWITCH_X_SITE="-L${x_libraries} ${runtime_arg}${x_libraries}" | 4488 for arg in $site_libraries; do |
| 2766 else | 4489 test -d "$arg" && arg="-L${arg}" |
| 2767 LD_SWITCH_X_SITE="-L${x_libraries}" | 4490 ld_switch_site="$ld_switch_site $arg" |
| 2768 fi | |
| 2769 fi | |
| 2770 # LD_SWITCH_X_SITE_AUX (from FSF) is ill-conceived. See s/sol2*.h. | |
| 2771 # test -n "${x_libraries}" -a LD_SWITCH_X_SITE_AUX="-R${x_libraries}" | |
| 2772 test -n "${x_includes}" && C_SWITCH_X_SITE="-I${x_includes}" | |
| 2773 | |
| 2774 if test -n "${site_libraries}" ; then | |
| 2775 for arg in ${site_libraries} | |
| 2776 do | |
| 2777 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}" | |
| 2778 done | 4491 done |
| 2779 fi | 4492 fi |
| 2780 if test -n "${site_runtime_libraries}" ; then | 4493 |
| 2781 for arg in ${site_runtime_libraries} | 4494 if test -n "$site_runtime_libraries" ; then |
| 2782 do | 4495 LD_RUN_PATH="`echo $site_runtime_libraries | sed 's/ */:/'`" |
| 2783 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}" | 4496 export LD_RUN_PATH |
| 2784 LD_SWITCH_SITE="${LD_SWITCH_SITE} ${runtime_arg}${arg}" | 4497 fi |
| 4498 | |
| 4499 if test -n "$site_includes" ; then | |
| 4500 for arg in $site_includes; do | |
| 4501 test -d "$arg" && arg="-I${arg}" | |
| 4502 c_switch_site="$c_switch_site $arg" | |
| 2785 done | 4503 done |
| 2786 fi | 4504 fi |
| 2787 if test -n "${site_includes}" ; then | 4505 |
| 2788 for arg in ${site_includes} | 4506 |
| 2789 do | |
| 2790 C_SWITCH_SITE="${C_SWITCH_SITE} -I${arg}" | |
| 2791 CPP="${CPP} -I${arg}" | |
| 2792 done | |
| 2793 fi | |
| 2794 | |
| 2795 # FSF 19.29 has some bitmapdir stuff here. | |
| 2796 bitmapdir= | 4507 bitmapdir= |
| 2797 | 4508 |
| 2798 # Avoid forcing the search of /usr/include before fixed include files. | 4509 case "$window_system" in |
| 2799 test "$C_SWITCH_X_SITE" = "-I/usr/include" && C_SWITCH_X_SITE=" " | |
| 2800 | |
| 2801 # Need for check for audio/Xtutil.h. | |
| 2802 CPP="${CPP} ${C_SWITCH_X_SITE}" | |
| 2803 | |
| 2804 case "${window_system}" in | |
| 2805 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;; | 4510 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;; |
| 2806 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;; | 4511 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;; |
| 2807 esac | 4512 esac |
| 2808 | 4513 |
| 2809 if test "${opsys}" = "hpux9"; then | 4514 case "$x_libraries" in *X11R4* ) |
| 2810 case "${x_libraries}" in | 4515 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" |
| 2811 *X11R4* ) opsysfile="s/hpux9-x11r4.h" ;; | 4516 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" |
| 2812 esac | 4517 esac |
| 2813 fi | 4518 |
| 2814 | 4519 { test "$extra_verbose" = "yes" && cat << \EOF |
| 2815 if test "${opsys}" = "hpux9-shr"; then | 4520 Defining LISP_FLOAT_TYPE |
| 2816 case "${x_libraries}" in | 4521 EOF |
| 2817 *X11R4* ) opsysfile="s/hpux9shxr4.h" ;; | 4522 cat >> confdefs.h <<\EOF |
| 2818 esac | 4523 #define LISP_FLOAT_TYPE 1 |
| 2819 fi | 4524 EOF |
| 2820 | 4525 } |
| 2821 ############################################################################ | 4526 |
| 2822 # # | 4527 |
| 2823 # Extract some information from the operating system and machine files # | 4528 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 |
| 2824 # # | 4529 echo "configure:4530: checking for kstat_open in -lkstat" >&5 |
| 2825 ############################################################################ | 4530 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` |
| 2826 | 4531 |
| 2827 echo "examining the machine- and system-dependent files to find out" | 4532 xe_check_libs=" -lkstat " |
| 2828 echo " - which libraries the lib-src programs will want, and" | 4533 cat > conftest.$ac_ext <<EOF |
| 2829 echo " - whether the GNU malloc routines are usable." | 4534 #line 4535 "configure" |
| 2830 | 4535 #include "confdefs.h" |
| 2831 ### First figure out CFLAGS (which we use for running the compiler here) | 4536 /* Override any gcc2 internal prototype to avoid an error. */ |
| 2832 ### and REAL_CFLAGS (which we use for real compilation). | 4537 /* We use char because int might match the return type of a gcc2 |
| 2833 ### The two are the same except on a few systems, where they are made | 4538 builtin and then its argument prototype would still apply. */ |
| 2834 ### different to work around various lossages. For example, | 4539 char kstat_open(); |
| 2835 ### GCC 2.5 on Linux needs them to be different because it treats -g | 4540 |
| 2836 ### as implying static linking. | 4541 int main() { |
| 2837 | 4542 kstat_open() |
| 2838 ### If the CFLAGS env var is specified, we use that value | 4543 ; return 0; } |
| 2839 ### instead of the default. | 4544 EOF |
| 2840 | 4545 if { (eval echo configure:4546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 2841 ### It's not important that this name contain the PID; you can't run | 4546 rm -rf conftest* |
| 2842 ### two configures in the same directory and have anything work | 4547 eval "ac_cv_lib_$ac_lib_var=yes" |
| 2843 ### anyway. | 4548 else |
| 2844 tempcname="conftest.c" | 4549 echo "configure: failed program was:" >&5 |
| 2845 | 4550 cat conftest.$ac_ext >&5 |
| 2846 echo ' | 4551 rm -rf conftest* |
| 2847 #define NOT_C_CODE | 4552 eval "ac_cv_lib_$ac_lib_var=no" |
| 2848 #include "'${srcdir}'/src/'${opsysfile}'" | 4553 fi |
| 2849 #include "'${srcdir}'/src/'${machfile}'" | 4554 rm -f conftest* |
| 2850 #ifndef LIBS_MACHINE | 4555 xe_check_libs="" |
| 2851 #define LIBS_MACHINE | 4556 |
| 2852 #endif | 4557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2853 #ifndef LIBS_SYSTEM | 4558 echo "$ac_t""yes" 1>&6 |
| 2854 #define LIBS_SYSTEM | 4559 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2855 #endif | 4560 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2856 #ifndef C_SWITCH_SYSTEM | 4561 { test "$extra_verbose" = "yes" && cat << EOF |
| 2857 #define C_SWITCH_SYSTEM | 4562 Defining $ac_tr_lib |
| 2858 #endif | 4563 EOF |
| 2859 #ifndef C_SWITCH_X_SYSTEM | 4564 cat >> confdefs.h <<EOF |
| 2860 #define C_SWITCH_X_SYSTEM | 4565 #define $ac_tr_lib 1 |
| 2861 #endif | 4566 EOF |
| 2862 #ifndef C_SWITCH_MACHINE | 4567 } |
| 2863 #define C_SWITCH_MACHINE | 4568 |
| 2864 #endif | 4569 LIBS="-lkstat $LIBS" |
| 2865 #ifndef LD_SWITCH_X_SYSTEM | 4570 |
| 2866 #define LD_SWITCH_X_SYSTEM | 4571 else |
| 2867 #endif | 4572 echo "$ac_t""no" 1>&6 |
| 2868 #ifndef LIB_STANDARD | 4573 fi |
| 2869 #define LIB_STANDARD | 4574 |
| 2870 #endif | 4575 |
| 2871 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM LIB_STANDARD | 4576 |
| 2872 configure___ c_switch_system=C_SWITCH_SYSTEM | 4577 |
| 2873 configure___ c_switch_x_system=C_SWITCH_X_SYSTEM | 4578 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 |
| 2874 configure___ ld_switch_x_system=LD_SWITCH_X_SYSTEM | 4579 echo "configure:4580: checking for kvm_read in -lkvm" >&5 |
| 2875 configure___ c_switch_machine=C_SWITCH_MACHINE | 4580 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` |
| 2876 | 4581 |
| 2877 #ifndef LIB_X11_LIB | 4582 xe_check_libs=" -lkvm " |
| 2878 #define LIB_X11_LIB -lX11 | 4583 cat > conftest.$ac_ext <<EOF |
| 2879 #endif | 4584 #line 4585 "configure" |
| 2880 | 4585 #include "confdefs.h" |
| 2881 #ifndef LIBX11_MACHINE | 4586 /* Override any gcc2 internal prototype to avoid an error. */ |
| 2882 #define LIBX11_MACHINE | 4587 /* We use char because int might match the return type of a gcc2 |
| 2883 #endif | 4588 builtin and then its argument prototype would still apply. */ |
| 2884 | 4589 char kvm_read(); |
| 2885 #ifndef LIBX11_SYSTEM | 4590 |
| 2886 #define LIBX11_SYSTEM | 4591 int main() { |
| 2887 #endif | 4592 kvm_read() |
| 2888 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | 4593 ; return 0; } |
| 2889 | 4594 EOF |
| 2890 #ifdef UNEXEC | 4595 if { (eval echo configure:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 2891 configure___ unexec=UNEXEC | 4596 rm -rf conftest* |
| 2892 #else | 4597 eval "ac_cv_lib_$ac_lib_var=yes" |
| 2893 configure___ unexec=unexec.o | 4598 else |
| 2894 #endif | 4599 echo "configure: failed program was:" >&5 |
| 2895 | 4600 cat conftest.$ac_ext >&5 |
| 2896 #ifdef SYSTEM_MALLOC | 4601 rm -rf conftest* |
| 2897 configure___ system_malloc=yes | 4602 eval "ac_cv_lib_$ac_lib_var=no" |
| 2898 #else | 4603 fi |
| 2899 configure___ system_malloc=no | 4604 rm -f conftest* |
| 2900 #endif | 4605 xe_check_libs="" |
| 2901 | 4606 |
| 2902 #ifndef C_DEBUG_SWITCH | 4607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2903 #define C_DEBUG_SWITCH -g | 4608 echo "$ac_t""yes" 1>&6 |
| 2904 #endif | 4609 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2905 | 4610 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2906 #ifndef C_OPTIMIZE_SWITCH | 4611 { test "$extra_verbose" = "yes" && cat << EOF |
| 2907 #define C_OPTIMIZE_SWITCH -O | 4612 Defining $ac_tr_lib |
| 2908 #endif | 4613 EOF |
| 2909 | 4614 cat >> confdefs.h <<EOF |
| 2910 #ifdef THIS_IS_CONFIGURE | 4615 #define $ac_tr_lib 1 |
| 2911 | 4616 EOF |
| 2912 /* Get the CFLAGS for tests in configure. */ | 4617 } |
| 2913 #ifdef __GNUC__ | 4618 |
| 2914 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | 4619 LIBS="-lkvm $LIBS" |
| 2915 #else | 4620 |
| 2916 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | 4621 else |
| 2917 #endif | 4622 echo "$ac_t""no" 1>&6 |
| 2918 | 4623 fi |
| 2919 #else /* not THIS_IS_CONFIGURE */ | 4624 |
| 2920 | 4625 |
| 2921 /* Get the CFLAGS for real compilation. */ | 4626 |
| 2922 #ifdef __GNUC__ | 4627 |
| 2923 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | 4628 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 |
| 2924 #else | 4629 echo "configure:4630: checking for cma_open in -lpthreads" >&5 |
| 2925 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | 4630 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` |
| 2926 #endif | 4631 |
| 2927 | 4632 xe_check_libs=" -lpthreads " |
| 2928 #endif /* not THIS_IS_CONFIGURE */ | 4633 cat > conftest.$ac_ext <<EOF |
| 2929 ' > ${tempcname} | 4634 #line 4635 "configure" |
| 2930 # The value of CPP is a quoted variable reference, so we need to do this | 4635 #include "confdefs.h" |
| 2931 # to get its actual value... | 4636 /* Override any gcc2 internal prototype to avoid an error. */ |
| 2932 CPP=`eval "echo $CPP"` | 4637 /* We use char because int might match the return type of a gcc2 |
| 2933 eval `${CPP} -Isrc ${tempcname} \ | 4638 builtin and then its argument prototype would still apply. */ |
| 2934 | grep 'configure___' \ | 4639 char cma_open(); |
| 2935 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | 4640 |
| 2936 if test "x$SPECIFIED_CFLAGS" = x ; then | 4641 int main() { |
| 2937 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | 4642 cma_open() |
| 2938 | grep 'configure___' \ | 4643 ; return 0; } |
| 2939 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | 4644 EOF |
| 2940 else | 4645 if { (eval echo configure:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 2941 REAL_CFLAGS="$CFLAGS" | 4646 rm -rf conftest* |
| 2942 fi | 4647 eval "ac_cv_lib_$ac_lib_var=yes" |
| 2943 rm ${tempcname} | 4648 else |
| 2944 | 4649 echo "configure: failed program was:" >&5 |
| 2945 # override CFLAGS if user wishes | 4650 cat conftest.$ac_ext >&5 |
| 2946 if test "${cflags}" != "NO_CFLAGS_DEFINED" ; then | 4651 rm -rf conftest* |
| 2947 REAL_CFLAGS=${cflags} | 4652 eval "ac_cv_lib_$ac_lib_var=no" |
| 2948 fi | 4653 fi |
| 2949 | 4654 rm -f conftest* |
| 2950 ### Compute the unexec source name from the object name. | 4655 xe_check_libs="" |
| 2951 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | 4656 |
| 2952 | 4657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2953 # Do the opsystem or machine files prohibit the use of the GNU malloc? | 4658 echo "$ac_t""yes" 1>&6 |
| 2954 # Assume not, until told otherwise. | 4659 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2955 GNU_MALLOC=yes | 4660 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2956 if test "${system_malloc}" = "yes" ; then | 4661 { test "$extra_verbose" = "yes" && cat << EOF |
| 2957 GNU_MALLOC=no | 4662 Defining $ac_tr_lib |
| 2958 GNU_MALLOC_reason=" | 4663 EOF |
| 2959 (The GNU allocators don't work with this system configuration.)" | 4664 cat >> confdefs.h <<EOF |
| 2960 elif test "${use_system_malloc}" = "yes" ; then | 4665 #define $ac_tr_lib 1 |
| 2961 GNU_MALLOC=no | 4666 EOF |
| 2962 GNU_MALLOC_reason=" | 4667 } |
| 2963 (User chose not to use GNU allocators.)" | 4668 |
| 2964 fi | 4669 LIBS="-lpthreads $LIBS" |
| 2965 | 4670 |
| 2966 LISP_FLOAT_TYPE=yes | 4671 else |
| 2967 | 4672 echo "$ac_t""no" 1>&6 |
| 2968 | 4673 fi |
| 2969 #### Add the libraries to LIBS and check for some functions. | 4674 |
| 2970 | 4675 |
| 2971 CPPFLAGS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $CPPFLAGS" | 4676 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then |
| 2972 DEFS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $DEFS" | 4677 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac |
| 2973 LIBS="${LD_SWITCH_SITE} $ld_switch_x_system $libsrc_libs $LIBS" | 4678 fi |
| 2974 | 4679 |
| 2975 test "${with_dnet}" != "no" -a \ | 4680 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 |
| 2976 "${with_dnet}" != "yes" && { ac_save_LIBS="${LIBS}" | 4681 echo "configure:4682: checking whether the -xildoff compiler flag is required" >&5 |
| 2977 LIBS="${LIBS} -ldnet" | 4682 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then |
| 2978 ac_have_lib="" | 4683 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; |
| 2979 test -n "$silent" || echo "checking for -ldnet" | 4684 then echo "$ac_t""no" 1>&6; |
| 2980 cat > conftest.${ac_ext} <<EOF | 4685 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" |
| 2981 #include "confdefs.h" | 4686 fi |
| 2982 | 4687 else echo "$ac_t""no" 1>&6 |
| 2983 int main() { return 0; } | 4688 fi |
| 2984 int t() { main();; return 0; } | 4689 |
| 2985 EOF | 4690 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no |
| 2986 if eval $ac_compile; then | 4691 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` |
| 2987 rm -rf conftest* | 4692 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 |
| 2988 ac_have_lib="1" | 4693 echo "configure:4694: checking for X11/Xauth.h" >&5 |
| 2989 | 4694 |
| 2990 fi | 4695 cat > conftest.$ac_ext <<EOF |
| 2991 rm -f conftest* | 4696 #line 4697 "configure" |
| 2992 LIBS="${ac_save_LIBS}" | 4697 #include "confdefs.h" |
| 2993 if test -n "${ac_have_lib}"; then | 4698 #include <X11/Xauth.h> |
| 2994 :; with_dnet="yes" | 4699 EOF |
| 2995 else | 4700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2996 :; | 4701 { (eval echo configure:4702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4702 ac_err=`grep -v '^ *+' conftest.out` | |
| 4703 if test -z "$ac_err"; then | |
| 4704 rm -rf conftest* | |
| 4705 eval "ac_cv_header_$ac_safe=yes" | |
| 4706 else | |
| 4707 echo "$ac_err" >&5 | |
| 4708 echo "configure: failed program was:" >&5 | |
| 4709 cat conftest.$ac_ext >&5 | |
| 4710 rm -rf conftest* | |
| 4711 eval "ac_cv_header_$ac_safe=no" | |
| 4712 fi | |
| 4713 rm -f conftest* | |
| 4714 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
| 4715 echo "$ac_t""yes" 1>&6 | |
| 4716 : | |
| 4717 else | |
| 4718 echo "$ac_t""no" 1>&6 | |
| 4719 with_xauth=no | |
| 2997 fi | 4720 fi |
| 2998 } | 4721 } |
| 2999 test "${with_dnet}" = yes && | 4722 test -z "$with_xauth" && { |
| 3000 { | 4723 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 |
| 3001 test -n "$verbose" && \ | 4724 echo "configure:4725: checking for XauGetAuthByAddr in -lXau" >&5 |
| 3002 echo " defining HAVE_LIBDNET" | 4725 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` |
| 3003 echo "#define" HAVE_LIBDNET "1" >> confdefs.h | 4726 |
| 3004 DEFS="$DEFS -DHAVE_LIBDNET=1" | 4727 xe_check_libs=" -lXau " |
| 3005 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBDNET\${ac_dB}HAVE_LIBDNET\${ac_dC}1\${ac_dD} | 4728 cat > conftest.$ac_ext <<EOF |
| 3006 \${ac_uA}HAVE_LIBDNET\${ac_uB}HAVE_LIBDNET\${ac_uC}1\${ac_uD} | 4729 #line 4730 "configure" |
| 3007 \${ac_eA}HAVE_LIBDNET\${ac_eB}HAVE_LIBDNET\${ac_eC}1\${ac_eD} | 4730 #include "confdefs.h" |
| 3008 " | 4731 /* Override any gcc2 internal prototype to avoid an error. */ |
| 3009 } | 4732 /* We use char because int might match the return type of a gcc2 |
| 3010 | 4733 builtin and then its argument prototype would still apply. */ |
| 3011 | 4734 char XauGetAuthByAddr(); |
| 3012 | 4735 |
| 3013 ac_save_LIBS="${LIBS}" | 4736 int main() { |
| 3014 LIBS="${LIBS} -lkstat" | 4737 XauGetAuthByAddr() |
| 3015 ac_have_lib="" | 4738 ; return 0; } |
| 3016 test -n "$silent" || echo "checking for -lkstat" | 4739 EOF |
| 3017 cat > conftest.${ac_ext} <<EOF | 4740 if { (eval echo configure:4741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3018 #include "confdefs.h" | 4741 rm -rf conftest* |
| 3019 | 4742 eval "ac_cv_lib_$ac_lib_var=yes" |
| 3020 int main() { return 0; } | 4743 else |
| 3021 int t() { main();; return 0; } | 4744 echo "configure: failed program was:" >&5 |
| 3022 EOF | 4745 cat conftest.$ac_ext >&5 |
| 3023 if eval $ac_compile; then | 4746 rm -rf conftest* |
| 3024 rm -rf conftest* | 4747 eval "ac_cv_lib_$ac_lib_var=no" |
| 3025 ac_have_lib="1" | 4748 fi |
| 3026 | 4749 rm -f conftest* |
| 3027 fi | 4750 xe_check_libs="" |
| 3028 rm -f conftest* | 4751 |
| 3029 LIBS="${ac_save_LIBS}" | 4752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3030 if test -n "${ac_have_lib}"; then | 4753 echo "$ac_t""yes" 1>&6 |
| 3031 | 4754 : |
| 3032 { | 4755 else |
| 3033 test -n "$verbose" && \ | 4756 echo "$ac_t""no" 1>&6 |
| 3034 echo " defining HAVE_LIBKSTAT" | 4757 with_xauth=no |
| 3035 echo "#define" HAVE_LIBKSTAT "1" >> confdefs.h | 4758 fi |
| 3036 DEFS="$DEFS -DHAVE_LIBKSTAT=1" | 4759 |
| 3037 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBKSTAT\${ac_dB}HAVE_LIBKSTAT\${ac_dC}1\${ac_dD} | 4760 } |
| 3038 \${ac_uA}HAVE_LIBKSTAT\${ac_uB}HAVE_LIBKSTAT\${ac_uC}1\${ac_uD} | 4761 test -z "$with_xauth" && with_xauth=yes |
| 3039 \${ac_eA}HAVE_LIBKSTAT\${ac_eB}HAVE_LIBKSTAT\${ac_eC}1\${ac_eD} | 4762 if test "$with_xauth" = "yes"; then |
| 3040 " | 4763 { test "$extra_verbose" = "yes" && cat << \EOF |
| 3041 } | 4764 Defining HAVE_XAUTH |
| 3042 | 4765 EOF |
| 3043 LIBS="${LIBS} -lkstat" | 4766 cat >> confdefs.h <<\EOF |
| 3044 fi | 4767 #define HAVE_XAUTH 1 |
| 3045 | 4768 EOF |
| 3046 | 4769 } |
| 3047 ac_save_LIBS="${LIBS}" | 4770 |
| 3048 LIBS="${LIBS} -lintl" | 4771 libs_x="-lXau $libs_x" |
| 3049 ac_have_lib="" | 4772 fi |
| 3050 test -n "$silent" || echo "checking for -lintl" | 4773 |
| 3051 cat > conftest.${ac_ext} <<EOF | 4774 test -z "$with_offix" && { ac_safe=`echo "OffiX/DragAndDrop.h" | sed 'y%./+-%__p_%'` |
| 3052 #include "confdefs.h" | 4775 echo $ac_n "checking for OffiX/DragAndDrop.h""... $ac_c" 1>&6 |
| 3053 | 4776 echo "configure:4777: checking for OffiX/DragAndDrop.h" >&5 |
| 3054 int main() { return 0; } | 4777 |
| 3055 int t() { main();; return 0; } | 4778 cat > conftest.$ac_ext <<EOF |
| 3056 EOF | 4779 #line 4780 "configure" |
| 3057 if eval $ac_compile; then | 4780 #include "confdefs.h" |
| 3058 rm -rf conftest* | 4781 #include <OffiX/DragAndDrop.h> |
| 3059 ac_have_lib="1" | 4782 EOF |
| 3060 | 4783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 3061 fi | 4784 { (eval echo configure:4785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 3062 rm -f conftest* | 4785 ac_err=`grep -v '^ *+' conftest.out` |
| 3063 LIBS="${ac_save_LIBS}" | 4786 if test -z "$ac_err"; then |
| 3064 if test -n "${ac_have_lib}"; then | 4787 rm -rf conftest* |
| 3065 :; | 4788 eval "ac_cv_header_$ac_safe=yes" |
| 3066 { | 4789 else |
| 3067 test -n "$verbose" && \ | 4790 echo "$ac_err" >&5 |
| 3068 echo " defining HAVE_LIBINTL" | 4791 echo "configure: failed program was:" >&5 |
| 3069 echo "#define" HAVE_LIBINTL "1" >> confdefs.h | 4792 cat conftest.$ac_ext >&5 |
| 3070 DEFS="$DEFS -DHAVE_LIBINTL=1" | 4793 rm -rf conftest* |
| 3071 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBINTL\${ac_dB}HAVE_LIBINTL\${ac_dC}1\${ac_dD} | 4794 eval "ac_cv_header_$ac_safe=no" |
| 3072 \${ac_uA}HAVE_LIBINTL\${ac_uB}HAVE_LIBINTL\${ac_uC}1\${ac_uD} | 4795 fi |
| 3073 \${ac_eA}HAVE_LIBINTL\${ac_eB}HAVE_LIBINTL\${ac_eC}1\${ac_eD} | 4796 rm -f conftest* |
| 3074 " | 4797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3075 } | 4798 echo "$ac_t""yes" 1>&6 |
| 3076 | 4799 : |
| 3077 else | 4800 else |
| 3078 :; | 4801 echo "$ac_t""no" 1>&6 |
| 3079 fi | 4802 with_offix=no |
| 3080 | 4803 fi |
| 3081 | 4804 } |
| 3082 ac_save_LIBS="${LIBS}" | 4805 test -z "$with_offix" && { |
| 3083 LIBS="${LIBS} -lXbsd" | 4806 echo $ac_n "checking for DndInitialize in -lDnd""... $ac_c" 1>&6 |
| 3084 ac_have_lib="" | 4807 echo "configure:4808: checking for DndInitialize in -lDnd" >&5 |
| 3085 test -n "$silent" || echo "checking for -lXbsd" | 4808 ac_lib_var=`echo Dnd'_'DndInitialize | sed 'y%./+-%__p_%'` |
| 3086 cat > conftest.${ac_ext} <<EOF | 4809 |
| 3087 #include "confdefs.h" | 4810 xe_check_libs=" -lDnd " |
| 3088 | 4811 cat > conftest.$ac_ext <<EOF |
| 3089 int main() { return 0; } | 4812 #line 4813 "configure" |
| 3090 int t() { main();; return 0; } | 4813 #include "confdefs.h" |
| 3091 EOF | 4814 /* Override any gcc2 internal prototype to avoid an error. */ |
| 3092 if eval $ac_compile; then | 4815 /* We use char because int might match the return type of a gcc2 |
| 3093 rm -rf conftest* | 4816 builtin and then its argument prototype would still apply. */ |
| 3094 ac_have_lib="1" | 4817 char DndInitialize(); |
| 3095 | 4818 |
| 3096 fi | 4819 int main() { |
| 3097 rm -f conftest* | 4820 DndInitialize() |
| 3098 LIBS="${ac_save_LIBS}" | 4821 ; return 0; } |
| 3099 if test -n "${ac_have_lib}"; then | 4822 EOF |
| 3100 :; LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" | 4823 if { (eval echo configure:4824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3101 else | 4824 rm -rf conftest* |
| 3102 :; | 4825 eval "ac_cv_lib_$ac_lib_var=yes" |
| 3103 fi | 4826 else |
| 3104 | 4827 echo "configure: failed program was:" >&5 |
| 3105 | 4828 cat conftest.$ac_ext >&5 |
| 3106 ac_save_LIBS="${LIBS}" | 4829 rm -rf conftest* |
| 3107 LIBS="${LIBS} -lpthreads" | 4830 eval "ac_cv_lib_$ac_lib_var=no" |
| 3108 ac_have_lib="" | 4831 fi |
| 3109 test -n "$silent" || echo "checking for -lpthreads" | 4832 rm -f conftest* |
| 3110 cat > conftest.${ac_ext} <<EOF | 4833 xe_check_libs="" |
| 3111 #include "confdefs.h" | 4834 |
| 3112 | 4835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3113 int main() { return 0; } | 4836 echo "$ac_t""yes" 1>&6 |
| 3114 int t() { main();; return 0; } | 4837 : |
| 3115 EOF | 4838 else |
| 3116 if eval $ac_compile; then | 4839 echo "$ac_t""no" 1>&6 |
| 3117 rm -rf conftest* | 4840 with_offix=no |
| 3118 ac_have_lib="1" | 4841 fi |
| 3119 | 4842 |
| 3120 fi | 4843 } |
| 3121 rm -f conftest* | 4844 test -z "$with_offix" && with_offix=yes |
| 3122 LIBS="${ac_save_LIBS}" | 4845 if test "$with_offix" = "yes"; then |
| 3123 if test -n "${ac_have_lib}"; then | 4846 { test "$extra_verbose" = "yes" && cat << \EOF |
| 3124 :; HAVE_PTHREADS=yes | 4847 Defining HAVE_OFFIX_DND |
| 3125 else | 4848 EOF |
| 3126 :; | 4849 cat >> confdefs.h <<\EOF |
| 3127 fi | 4850 #define HAVE_OFFIX_DND 1 |
| 3128 | 4851 EOF |
| 3129 if test -n "${HAVE_PTHREADS}" ; then | 4852 } |
| 3130 | 4853 |
| 3131 { | 4854 libs_x="-lDnd $libs_x" |
| 3132 test -n "$verbose" && \ | 4855 fi |
| 3133 echo " defining HAVE_PTHREADS" | 4856 |
| 3134 echo "#define" HAVE_PTHREADS "1" >> confdefs.h | 4857 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk |
| 3135 DEFS="$DEFS -DHAVE_PTHREADS=1" | 4858 if test "$with_tooltalk" != "no" ; then |
| 3136 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PTHREADS\${ac_dB}HAVE_PTHREADS\${ac_dC}1\${ac_dD} | 4859 for dir in "" "Tt/" "desktop/" ; do |
| 3137 \${ac_uA}HAVE_PTHREADS\${ac_uB}HAVE_PTHREADS\${ac_uC}1\${ac_uD} | 4860 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` |
| 3138 \${ac_eA}HAVE_PTHREADS\${ac_eB}HAVE_PTHREADS\${ac_eC}1\${ac_eD} | 4861 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 |
| 3139 " | 4862 echo "configure:4863: checking for ${dir}tt_c.h" >&5 |
| 3140 } | 4863 |
| 3141 | 4864 cat > conftest.$ac_ext <<EOF |
| 3142 case "${opsys}" in | 4865 #line 4866 "configure" |
| 3143 decosf* ) CFLAGS="${CFLAGS} -threads" ;; | 4866 #include "confdefs.h" |
| 3144 esac | 4867 #include <${dir}tt_c.h> |
| 3145 fi | 4868 EOF |
| 3146 | 4869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 3147 if test "${window_system}" != "none" ; then | 4870 { (eval echo configure:4871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 3148 test -n "$silent" || echo "checking for XFree86" | 4871 ac_err=`grep -v '^ *+' conftest.out` |
| 3149 if test -d /usr/X386/include; then | 4872 if test -z "$ac_err"; then |
| 3150 HAVE_XFREE386=yes | 4873 rm -rf conftest* |
| 3151 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include" | 4874 eval "ac_cv_header_$ac_safe=yes" |
| 3152 elif test -f /etc/XF86Config -o \ | 4875 else |
| 3153 -f /etc/X11/XF86Config -o \ | 4876 echo "$ac_err" >&5 |
| 3154 -f /usr/X11R6/lib/X11/XF86Config; then | 4877 echo "configure: failed program was:" >&5 |
| 3155 HAVE_XFREE386=yes | 4878 cat conftest.$ac_ext >&5 |
| 3156 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X11R6/include" | 4879 rm -rf conftest* |
| 3157 else | 4880 eval "ac_cv_header_$ac_safe=no" |
| 3158 HAVE_XFREE386=no | 4881 fi |
| 3159 fi | 4882 rm -f conftest* |
| 3160 test -n "$verbose" && echo " ${HAVE_XFREE386}" | 4883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3161 else | 4884 echo "$ac_t""yes" 1>&6 |
| 3162 HAVE_XFREE386=no | 4885 tt_c_h_path="${dir}tt_c.h" && break |
| 3163 fi | 4886 else |
| 3164 | 4887 echo "$ac_t""no" 1>&6 |
| 3165 ############################################################################ | 4888 fi |
| 3166 # # | 4889 |
| 3167 # Test for various X-specific features # | 4890 done |
| 3168 # # | 4891 test -z "$tt_c_h_path" && with_tooltalk=no |
| 3169 ############################################################################ | 4892 fi |
| 3170 | 4893 if test "$with_tooltalk" != "no" ; then |
| 3171 # Change CFLAGS temporarily for damn binutils 2.6.0.10 check. | 4894 for extra_libs in "" "-lI18N -lce" "-lcxx"; do |
| 3172 if test "${HAVE_X_WINDOWS}" = "yes"; then | 4895 |
| 3173 case "${opsys}" in | 4896 xe_msg_checking="for tt_message_create in -ltt" |
| 3174 linux* ) | 4897 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" |
| 3175 CFLAGS="-Wl,-rpath-link,/usr/X11R6/lib $CFLAGS" | 4898 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 |
| 3176 test -n "$silent" || echo "checking for whether path-link option is needed" | 4899 echo "configure:4900: checking "$xe_msg_checking"" >&5 |
| 3177 cat > conftest.${ac_ext} <<EOF | 4900 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` |
| 3178 #include "confdefs.h" | 4901 |
| 3179 | 4902 xe_check_libs=" -ltt $extra_libs" |
| 3180 int main() { return 0; } | 4903 cat > conftest.$ac_ext <<EOF |
| 3181 int t() { ;; return 0; } | 4904 #line 4905 "configure" |
| 3182 EOF | 4905 #include "confdefs.h" |
| 3183 if eval $ac_compile; then | 4906 /* Override any gcc2 internal prototype to avoid an error. */ |
| 3184 rm -rf conftest* | 4907 /* We use char because int might match the return type of a gcc2 |
| 3185 need_path_link=yes | 4908 builtin and then its argument prototype would still apply. */ |
| 3186 | 4909 char tt_message_create(); |
| 3187 else | 4910 |
| 3188 rm -rf conftest* | 4911 int main() { |
| 3189 need_path_link=no | 4912 tt_message_create() |
| 3190 fi | 4913 ; return 0; } |
| 3191 rm -f conftest* | 4914 EOF |
| 3192 | 4915 if { (eval echo configure:4916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3193 if test "${need_path_link}" = "no"; then | 4916 rm -rf conftest* |
| 3194 CFLAGS="$REAL_CFLAGS" | 4917 eval "ac_cv_lib_$ac_lib_var=yes" |
| 3195 test -n "$verbose" && echo " no" | 4918 else |
| 3196 else | 4919 echo "configure: failed program was:" >&5 |
| 3197 test -n "$verbose" && echo " yes" | 4920 cat conftest.$ac_ext >&5 |
| 3198 fi | 4921 rm -rf conftest* |
| 3199 ;; | 4922 eval "ac_cv_lib_$ac_lib_var=no" |
| 3200 esac | 4923 fi |
| 3201 fi | 4924 rm -f conftest* |
| 3202 | 4925 xe_check_libs="" |
| 3203 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used | 4926 |
| 3204 # for the tests that follow. We set it back to REAL_CFLAGS later on. | 4927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4928 echo "$ac_t""yes" 1>&6 | |
| 4929 with_tooltalk=yes tt_libs="-ltt $extra_libs"; break | |
| 4930 else | |
| 4931 echo "$ac_t""no" 1>&6 | |
| 4932 : | |
| 4933 fi | |
| 4934 | |
| 4935 | |
| 4936 done | |
| 4937 fi | |
| 4938 test -z "$with_tooltalk" && with_tooltalk=no | |
| 4939 if test "$with_tooltalk" = "yes"; then | |
| 4940 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 4941 Defining TOOLTALK | |
| 4942 EOF | |
| 4943 cat >> confdefs.h <<\EOF | |
| 4944 #define TOOLTALK 1 | |
| 4945 EOF | |
| 4946 } | |
| 4947 | |
| 4948 { test "$extra_verbose" = "yes" && cat << EOF | |
| 4949 Defining TT_C_H_PATH = "$tt_c_h_path" | |
| 4950 EOF | |
| 4951 cat >> confdefs.h <<EOF | |
| 4952 #define TT_C_H_PATH "$tt_c_h_path" | |
| 4953 EOF | |
| 4954 } | |
| 4955 | |
| 4956 libs_x="$tt_libs $libs_x" | |
| 4957 extra_objs="$extra_objs tooltalk.o" | |
| 4958 fi | |
| 4959 | |
| 4960 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` | |
| 4961 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 | |
| 4962 echo "configure:4963: checking for Dt/Dt.h" >&5 | |
| 4963 | |
| 4964 cat > conftest.$ac_ext <<EOF | |
| 4965 #line 4966 "configure" | |
| 4966 #include "confdefs.h" | |
| 4967 #include <Dt/Dt.h> | |
| 4968 EOF | |
| 4969 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
| 4970 { (eval echo configure:4971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
| 4971 ac_err=`grep -v '^ *+' conftest.out` | |
| 4972 if test -z "$ac_err"; then | |
| 4973 rm -rf conftest* | |
| 4974 eval "ac_cv_header_$ac_safe=yes" | |
| 4975 else | |
| 4976 echo "$ac_err" >&5 | |
| 4977 echo "configure: failed program was:" >&5 | |
| 4978 cat conftest.$ac_ext >&5 | |
| 4979 rm -rf conftest* | |
| 4980 eval "ac_cv_header_$ac_safe=no" | |
| 4981 fi | |
| 4982 rm -f conftest* | |
| 4983 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
| 4984 echo "$ac_t""yes" 1>&6 | |
| 4985 : | |
| 4986 else | |
| 4987 echo "$ac_t""no" 1>&6 | |
| 4988 with_cde=no | |
| 4989 fi | |
| 4990 } | |
| 4991 test -z "$with_cde" && { | |
| 4992 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 | |
| 4993 echo "configure:4994: checking for DtDndDragStart in -lDtSvc" >&5 | |
| 4994 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` | |
| 4995 | |
| 4996 xe_check_libs=" -lDtSvc " | |
| 4997 cat > conftest.$ac_ext <<EOF | |
| 4998 #line 4999 "configure" | |
| 4999 #include "confdefs.h" | |
| 5000 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 5001 /* We use char because int might match the return type of a gcc2 | |
| 5002 builtin and then its argument prototype would still apply. */ | |
| 5003 char DtDndDragStart(); | |
| 5004 | |
| 5005 int main() { | |
| 5006 DtDndDragStart() | |
| 5007 ; return 0; } | |
| 5008 EOF | |
| 5009 if { (eval echo configure:5010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 5010 rm -rf conftest* | |
| 5011 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 5012 else | |
| 5013 echo "configure: failed program was:" >&5 | |
| 5014 cat conftest.$ac_ext >&5 | |
| 5015 rm -rf conftest* | |
| 5016 eval "ac_cv_lib_$ac_lib_var=no" | |
| 5017 fi | |
| 5018 rm -f conftest* | |
| 5019 xe_check_libs="" | |
| 5020 | |
| 5021 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 5022 echo "$ac_t""yes" 1>&6 | |
| 5023 : | |
| 5024 else | |
| 5025 echo "$ac_t""no" 1>&6 | |
| 5026 with_cde=no | |
| 5027 fi | |
| 5028 | |
| 5029 } | |
| 5030 test -z "$with_cde" && with_cde=yes | |
| 5031 if test "$with_cde" = "yes" ; then | |
| 5032 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 5033 Defining HAVE_CDE | |
| 5034 EOF | |
| 5035 cat >> confdefs.h <<\EOF | |
| 5036 #define HAVE_CDE 1 | |
| 5037 EOF | |
| 5038 } | |
| 5039 | |
| 5040 libs_x="-lDtSvc $libs_x" | |
| 5041 with_tooltalk=yes # CDE requires Tooltalk | |
| 5042 with_motif=yes # CDE requires Motif | |
| 5043 fi | |
| 5044 | |
| 5045 if test "$with_energize" = "yes" ; then | |
| 5046 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 5047 Defining ENERGIZE | |
| 5048 EOF | |
| 5049 cat >> confdefs.h <<\EOF | |
| 5050 #define ENERGIZE 1 | |
| 5051 EOF | |
| 5052 } | |
| 5053 | |
| 3205 | 5054 |
| 3206 if test "${HAVE_X_WINDOWS}" = "yes"; then | 5055 echo $ac_n "checking for main in -lenergize""... $ac_c" 1>&6 |
| 3207 DEFS="$C_SWITCH_X_SITE $DEFS" | 5056 echo "configure:5057: checking for main in -lenergize" >&5 |
| 3208 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | 5057 ac_lib_var=`echo energize'_'main | sed 'y%./+-%__p_%'` |
| 3209 LIBS="$LIBX $LIBS" | 5058 |
| 3210 CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | 5059 xe_check_libs=" -lenergize " |
| 3211 | 5060 cat > conftest.$ac_ext <<EOF |
| 3212 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | 5061 #line 5062 "configure" |
| 3213 # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | 5062 #include "confdefs.h" |
| 3214 # but it's more convenient here to set LD_RUN_PATH | 5063 |
| 3215 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | 5064 int main() { |
| 3216 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | 5065 main() |
| 3217 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | 5066 ; return 0; } |
| 3218 export LD_RUN_PATH | 5067 EOF |
| 3219 fi | 5068 if { (eval echo configure:5069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3220 | 5069 rm -rf conftest* |
| 3221 if test "${HAVE_XFREE386}" = "yes" ; then | 5070 eval "ac_cv_lib_$ac_lib_var=yes" |
| 3222 case "${opsys}" in | 5071 else |
| 3223 linux* ) | 5072 echo "configure: failed program was:" >&5 |
| 3224 test -n "$silent" || echo "checking for whether XFree86 needs -b to link" | 5073 cat conftest.$ac_ext >&5 |
| 3225 cat > conftest.${ac_ext} <<EOF | 5074 rm -rf conftest* |
| 3226 #include "confdefs.h" | 5075 eval "ac_cv_lib_$ac_lib_var=no" |
| 3227 | 5076 fi |
| 3228 int main() { return 0; } | 5077 rm -f conftest* |
| 3229 int t() { XOpenDisplay ("foo");; return 0; } | 5078 xe_check_libs="" |
| 3230 EOF | 5079 |
| 3231 if eval $ac_compile; then | 5080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3232 rm -rf conftest* | 5081 echo "$ac_t""yes" 1>&6 |
| 3233 xfree86_first_failure=no | 5082 LIBS="$LIBS -lenergize" |
| 3234 | 5083 energize_version="3.X" |
| 3235 else | 5084 { test "$extra_verbose" = "yes" && cat << \EOF |
| 3236 rm -rf conftest* | 5085 Defining ENERGIZE_3 |
| 3237 xfree86_first_failure=yes | 5086 EOF |
| 3238 fi | 5087 cat >> confdefs.h <<\EOF |
| 3239 rm -f conftest* | 5088 #define ENERGIZE_3 1 |
| 3240 | 5089 EOF |
| 3241 if test "${xfree86_first_failure}" = "yes"; then | 5090 } |
| 3242 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | 5091 |
| 3243 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | 5092 else |
| 3244 OLD_CPPFLAGS="$CPPFLAGS" | 5093 echo "$ac_t""no" 1>&6 |
| 3245 OLD_LIBS="$LIBS" | 5094 fi |
| 3246 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | 5095 |
| 3247 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | 5096 |
| 3248 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | 5097 if test -z "$energize_version"; then |
| 3249 LIBS="$LIBS -b i486-linuxaout" | 5098 |
| 3250 cat > conftest.${ac_ext} <<EOF | 5099 echo $ac_n "checking for main in -lconn""... $ac_c" 1>&6 |
| 3251 #include "confdefs.h" | 5100 echo "configure:5101: checking for main in -lconn" >&5 |
| 3252 | 5101 ac_lib_var=`echo conn'_'main | sed 'y%./+-%__p_%'` |
| 3253 int main() { return 0; } | 5102 |
| 3254 int t() { XOpenDisplay ("foo");; return 0; } | 5103 xe_check_libs=" -lconn " |
| 3255 EOF | 5104 cat > conftest.$ac_ext <<EOF |
| 3256 if eval $ac_compile; then | 5105 #line 5106 "configure" |
| 3257 rm -rf conftest* | 5106 #include "confdefs.h" |
| 3258 xfree86_second_failure=no | 5107 |
| 3259 | 5108 int main() { |
| 3260 else | 5109 main() |
| 3261 rm -rf conftest* | 5110 ; return 0; } |
| 3262 xfree86_second_failure=yes | 5111 EOF |
| 3263 fi | 5112 if { (eval echo configure:5113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3264 rm -f conftest* | 5113 rm -rf conftest* |
| 3265 | 5114 eval "ac_cv_lib_$ac_lib_var=yes" |
| 3266 if test "${xfree86_second_failure}" = "yes"; then | 5115 else |
| 3267 # If we get the same failure with -b, there is no use adding -b. | 5116 echo "configure: failed program was:" >&5 |
| 3268 # So take it out. This plays safe. | 5117 cat conftest.$ac_ext >&5 |
| 3269 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | 5118 rm -rf conftest* |
| 3270 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | 5119 eval "ac_cv_lib_$ac_lib_var=no" |
| 3271 CPPFLAGS="$OLD_CPPFLAGS" | 5120 fi |
| 3272 LIBS="$OLD_LIBS" | 5121 rm -f conftest* |
| 3273 test -n "$verbose" && echo " no" | 5122 xe_check_libs="" |
| 3274 else | 5123 |
| 3275 test -n "$verbose" && echo " yes" | 5124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3276 fi | 5125 echo "$ac_t""yes" 1>&6 |
| 3277 else | 5126 LIBS="$LIBS -lconn" |
| 3278 test -n "$verbose" && echo " no" | 5127 energize_version="2.X" |
| 3279 fi | 5128 { test "$extra_verbose" = "yes" && cat << \EOF |
| 3280 ;; | 5129 Defining ENERGIZE_2 |
| 3281 esac | 5130 EOF |
| 3282 fi | 5131 cat >> confdefs.h <<\EOF |
| 3283 | 5132 #define ENERGIZE_2 1 |
| 3284 # A C_CHECK_FUNCS(XrmSetDatabase XScreenResourceString \ | 5133 EOF |
| 3285 #XScreenNumberOfScreen XSetWMProtocols) | 5134 } |
| 3286 fi | 5135 |
| 3287 | 5136 else |
| 3288 # | 5137 echo "$ac_t""no" 1>&6 |
| 3289 # make sure we can find libX11.* | 5138 { echo "configure: error: Unable to find Energize library." 1>&2; exit 1; } |
| 3290 # | 5139 fi |
| 3291 if test "${window_system}" != "none" ; then | 5140 |
| 3292 internal_xlibs_found='no' | 5141 |
| 3293 ac_save_LIBS="${LIBS}" | |
| 3294 LIBS="${LIBS} -lX11" | |
| 3295 ac_have_lib="" | |
| 3296 test -n "$silent" || echo "checking for -lX11" | |
| 3297 cat > conftest.${ac_ext} <<EOF | |
| 3298 #include "confdefs.h" | |
| 3299 | |
| 3300 int main() { return 0; } | |
| 3301 int t() { main();; return 0; } | |
| 3302 EOF | |
| 3303 if eval $ac_compile; then | |
| 3304 rm -rf conftest* | |
| 3305 ac_have_lib="1" | |
| 3306 | |
| 3307 fi | |
| 3308 rm -f conftest* | |
| 3309 LIBS="${ac_save_LIBS}" | |
| 3310 if test -n "${ac_have_lib}"; then | |
| 3311 :; internal_xlibs_found='yes' | |
| 3312 else | |
| 3313 :; | |
| 3314 fi | |
| 3315 | |
| 3316 if test "${internal_xlibs_found}" = "no" ; then | |
| 3317 echo "Unable to find X11 libraries." >&2 | |
| 3318 exit 1 | |
| 3319 else | |
| 3320 test -n "$verbose" && echo " yes" | |
| 3321 fi | |
| 3322 fi | |
| 3323 | |
| 3324 # | |
| 3325 # make sure we can find Intrinsic.h | |
| 3326 # | |
| 3327 if test "${window_system}" != "none" ; then | |
| 3328 internal_xincludes_found='no' | |
| 3329 for arg in ${DEFS} /usr/include | |
| 3330 do | |
| 3331 if test -f `echo "${arg}/X11/Intrinsic.h" | sed 's/^\-I//'` ; then | |
| 3332 internal_xincludes_found='yes' | |
| 3333 fi | 5142 fi |
| 3334 done | 5143 ac_safe=`echo "editorconn.h" | sed 'y%./+-%__p_%'` |
| 3335 if test "${internal_xincludes_found}" = "no" ; then | 5144 echo $ac_n "checking for editorconn.h""... $ac_c" 1>&6 |
| 3336 echo "Unable to find X11 header files." >&2 | 5145 echo "configure:5146: checking for editorconn.h" >&5 |
| 3337 exit 1 | 5146 |
| 3338 fi | 5147 cat > conftest.$ac_ext <<EOF |
| 3339 fi | 5148 #line 5149 "configure" |
| 3340 | 5149 #include "confdefs.h" |
| 3341 # | 5150 #include <editorconn.h> |
| 3342 # Sun OS 4 systems need the following kludge | 5151 EOF |
| 3343 # | 5152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 3344 if test "${window_system}" != "none" ; then | 5153 { (eval echo configure:5154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 3345 case "${canonical}" in *-sunos4* ) | 5154 ac_err=`grep -v '^ *+' conftest.out` |
| 3346 LIBS="$LIBS -u _XtToolkitInitialize -u _get_applicationShellWidgetClass" ;; | 5155 if test -z "$ac_err"; then |
| 3347 esac | 5156 rm -rf conftest* |
| 3348 fi | 5157 eval "ac_cv_header_$ac_safe=yes" |
| 3349 | 5158 else |
| 3350 # | 5159 echo "$ac_err" >&5 |
| 3351 # See if we can find Xauth. | 5160 echo "configure: failed program was:" >&5 |
| 3352 # | 5161 cat conftest.$ac_ext >&5 |
| 3353 with_xauth='no' | 5162 rm -rf conftest* |
| 3354 if test "${window_system}" != "none" ; then | 5163 eval "ac_cv_header_$ac_safe=no" |
| 3355 internal_xauth_lib_found='no' | 5164 fi |
| 3356 ac_save_LIBS="${LIBS}" | 5165 rm -f conftest* |
| 3357 LIBS="${LIBS} -lXau" | 5166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3358 ac_have_lib="" | 5167 echo "$ac_t""yes" 1>&6 |
| 3359 test -n "$silent" || echo "checking for -lXau" | 5168 : |
| 3360 cat > conftest.${ac_ext} <<EOF | 5169 else |
| 3361 #include "confdefs.h" | 5170 echo "$ac_t""no" 1>&6 |
| 3362 | 5171 { echo "configure: error: Unable to find Energize editorconn.h header file." 1>&2; exit 1; } |
| 3363 int main() { return 0; } | 5172 fi |
| 3364 int t() { main();; return 0; } | 5173 |
| 3365 EOF | 5174 |
| 3366 if eval $ac_compile; then | 5175 test "$energize_version" = "2.X" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 3367 rm -rf conftest* | 5176 Defining ENERGIZE_2 |
| 3368 ac_have_lib="1" | 5177 EOF |
| 3369 | 5178 cat >> confdefs.h <<\EOF |
| 3370 fi | 5179 #define ENERGIZE_2 1 |
| 3371 rm -f conftest* | 5180 EOF |
| 3372 LIBS="${ac_save_LIBS}" | 5181 } |
| 3373 if test -n "${ac_have_lib}"; then | 5182 |
| 3374 :; internal_xauth_lib_found='yes' | 5183 test "$energize_version" = "3.X" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 3375 else | 5184 Defining ENERGIZE_3 |
| 3376 :; | 5185 EOF |
| 3377 fi | 5186 cat >> confdefs.h <<\EOF |
| 3378 | 5187 #define ENERGIZE_3 1 |
| 3379 if test "${internal_xauth_lib_found}" = "yes" ; then | 5188 EOF |
| 3380 internal_xauth_includes_found='no' | 5189 } |
| 3381 for arg in ${DEFS} /usr/include | 5190 |
| 3382 do | 5191 fi |
| 3383 if test -f `echo "${arg}/X11/Xauth.h" | sed 's/^\-I//'` ; then | 5192 |
| 3384 internal_xauth_includes_found='yes' | 5193 |
| 3385 fi | 5194 echo "checking for graphics libraries" 1>&6 |
| 3386 done | 5195 echo "configure:5196: checking for graphics libraries" >&5 |
| 3387 if test "${internal_xauth_includes_found}" = "yes" ; then | 5196 test -z "$with_gif" && with_gif=yes; |
| 3388 with_xauth='yes' | 5197 if test "$with_gif" = "yes"; then |
| 3389 fi | 5198 { test "$extra_verbose" = "yes" && cat << \EOF |
| 3390 fi | 5199 Defining HAVE_GIF |
| 3391 fi | 5200 EOF |
| 3392 test "${with_xauth}" = yes && | 5201 cat >> confdefs.h <<\EOF |
| 3393 { | 5202 #define HAVE_GIF 1 |
| 3394 test -n "$verbose" && \ | 5203 EOF |
| 3395 echo " defining HAVE_XAUTH" | 5204 } |
| 3396 echo "#define" HAVE_XAUTH "1" >> confdefs.h | 5205 |
| 3397 DEFS="$DEFS -DHAVE_XAUTH=1" | 5206 extra_objs="$extra_objs dgif_lib.o gif_err.o gifalloc.o" |
| 3398 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XAUTH\${ac_dB}HAVE_XAUTH\${ac_dC}1\${ac_dD} | 5207 fi |
| 3399 \${ac_uA}HAVE_XAUTH\${ac_uB}HAVE_XAUTH\${ac_uC}1\${ac_uD} | 5208 |
| 3400 \${ac_eA}HAVE_XAUTH\${ac_eB}HAVE_XAUTH\${ac_eC}1\${ac_eD} | 5209 test -z "$with_xpm" && { ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` |
| 3401 " | 5210 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 |
| 3402 } | 5211 echo "configure:5212: checking for X11/xpm.h" >&5 |
| 3403 | 5212 |
| 3404 | 5213 cat > conftest.$ac_ext <<EOF |
| 3405 # | 5214 #line 5215 "configure" |
| 3406 # See if we can find CDE. | 5215 #include "confdefs.h" |
| 3407 # | 5216 #include <X11/xpm.h> |
| 3408 if test "${window_system}" != "none" -a \ | 5217 EOF |
| 3409 "${with_cde}" != "no" -a \ | 5218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 3410 "${with_cde}" != "yes" ; then | 5219 { (eval echo configure:5220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 3411 internal_cde_lib_found='no' | 5220 ac_err=`grep -v '^ *+' conftest.out` |
| 3412 ac_save_LIBS="${LIBS}" | 5221 if test -z "$ac_err"; then |
| 3413 LIBS="${LIBS} -lDtSvc" | 5222 rm -rf conftest* |
| 3414 ac_have_lib="" | 5223 eval "ac_cv_header_$ac_safe=yes" |
| 3415 test -n "$silent" || echo "checking for -lDtSvc" | 5224 else |
| 3416 cat > conftest.${ac_ext} <<EOF | 5225 echo "$ac_err" >&5 |
| 3417 #include "confdefs.h" | 5226 echo "configure: failed program was:" >&5 |
| 3418 | 5227 cat conftest.$ac_ext >&5 |
| 3419 int main() { return 0; } | 5228 rm -rf conftest* |
| 3420 int t() { main();; return 0; } | 5229 eval "ac_cv_header_$ac_safe=no" |
| 3421 EOF | 5230 fi |
| 3422 if eval $ac_compile; then | 5231 rm -f conftest* |
| 3423 rm -rf conftest* | 5232 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3424 ac_have_lib="1" | 5233 echo "$ac_t""yes" 1>&6 |
| 3425 | 5234 : |
| 3426 fi | 5235 else |
| 3427 rm -f conftest* | 5236 echo "$ac_t""no" 1>&6 |
| 3428 LIBS="${ac_save_LIBS}" | 5237 with_xpm=no |
| 3429 if test -n "${ac_have_lib}"; then | 5238 fi |
| 3430 :; internal_cde_lib_found='yes' | 5239 } |
| 3431 else | 5240 test -z "$with_xpm" && { |
| 3432 :; | 5241 echo $ac_n "checking for XpmReadFileToData in -lXpm""... $ac_c" 1>&6 |
| 3433 fi | 5242 echo "configure:5243: checking for XpmReadFileToData in -lXpm" >&5 |
| 3434 | 5243 ac_lib_var=`echo Xpm'_'XpmReadFileToData | sed 'y%./+-%__p_%'` |
| 3435 if test "${internal_cde_lib_found}" = "no" -a -f "/usr/dt/lib/libDtSvc.a"; then | 5244 |
| 3436 internal_cde_lib_found="yes" | 5245 xe_check_libs=" -lXpm " |
| 3437 fi | 5246 cat > conftest.$ac_ext <<EOF |
| 3438 if test "${internal_cde_lib_found}" = "yes" ; then | 5247 #line 5248 "configure" |
| 3439 internal_cde_includes_found='no' | 5248 #include "confdefs.h" |
| 3440 for arg in ${DEFS} /usr/include /usr/dt/include ; do | 5249 /* Override any gcc2 internal prototype to avoid an error. */ |
| 3441 if test -f `echo "${arg}/Dt/Dt.h" | sed 's/^\-I//'` ; then | 5250 /* We use char because int might match the return type of a gcc2 |
| 3442 internal_cde_includes_found='yes' | 5251 builtin and then its argument prototype would still apply. */ |
| 3443 fi | 5252 char XpmReadFileToData(); |
| 3444 done | 5253 |
| 3445 if test "${internal_cde_includes_found}" = "yes" ; then | |
| 3446 with_cde='yes' | |
| 3447 fi | |
| 3448 fi | |
| 3449 fi | |
| 3450 test "${with_cde}" = yes && | |
| 3451 { | |
| 3452 test -n "$verbose" && \ | |
| 3453 echo " defining HAVE_CDE" | |
| 3454 echo "#define" HAVE_CDE "1" >> confdefs.h | |
| 3455 DEFS="$DEFS -DHAVE_CDE=1" | |
| 3456 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_CDE\${ac_dB}HAVE_CDE\${ac_dC}1\${ac_dD} | |
| 3457 \${ac_uA}HAVE_CDE\${ac_uB}HAVE_CDE\${ac_uC}1\${ac_uD} | |
| 3458 \${ac_eA}HAVE_CDE\${ac_eB}HAVE_CDE\${ac_eC}1\${ac_eD} | |
| 3459 " | |
| 3460 } | |
| 3461 | |
| 3462 | |
| 3463 # having CDE implies Tooltalk | |
| 3464 if test "${with_cde}" = "yes" -a \ | |
| 3465 "${with_tooltalk}" != "no" -a \ | |
| 3466 "${with_tooltalk}" != "none" ; then | |
| 3467 with_tooltalk='yes' | |
| 3468 fi | |
| 3469 | |
| 3470 # having CDE requires Motif | |
| 3471 if test "${with_cde}" = "yes" ; then | |
| 3472 motif_libs="-lXm -lXt" | |
| 3473 fi | |
| 3474 | |
| 3475 # | |
| 3476 # See if we can find OffiX. | |
| 3477 # | |
| 3478 if test "${window_system}" != "none" -a \ | |
| 3479 "${with_offix}" != "no" -a \ | |
| 3480 "${with_offix}" != "yes" ; then | |
| 3481 internal_offix_lib_found='no' | |
| 3482 ac_save_LIBS="${LIBS}" | |
| 3483 LIBS="${LIBS} -lDnd" | |
| 3484 ac_have_lib="" | |
| 3485 test -n "$silent" || echo "checking for -lDnd" | |
| 3486 cat > conftest.${ac_ext} <<EOF | |
| 3487 #include "confdefs.h" | |
| 3488 | |
| 3489 int main() { return 0; } | |
| 3490 int t() { main();; return 0; } | |
| 3491 EOF | |
| 3492 if eval $ac_compile; then | |
| 3493 rm -rf conftest* | |
| 3494 ac_have_lib="1" | |
| 3495 | |
| 3496 fi | |
| 3497 rm -f conftest* | |
| 3498 LIBS="${ac_save_LIBS}" | |
| 3499 if test -n "${ac_have_lib}"; then | |
| 3500 :; internal_offix_lib_found='yes' | |
| 3501 else | |
| 3502 :; | |
| 3503 fi | |
| 3504 | |
| 3505 if test "${internal_offix_lib_found}" = "yes" ; then | |
| 3506 internal_offix_includes_found='no' | |
| 3507 for arg in ${DEFS} /usr/include ; do | |
| 3508 if test -f `echo "${arg}/OffiX/DragAndDrop.h" | sed 's/^\-I//'` ; then | |
| 3509 internal_offix_includes_found='yes' | |
| 3510 fi | |
| 3511 done | |
| 3512 test "${internal_offix_includes_found}" = "yes" && with_offix='yes' | |
| 3513 fi | |
| 3514 fi | |
| 3515 test "${with_offix}" = yes && | |
| 3516 { | |
| 3517 test -n "$verbose" && \ | |
| 3518 echo " defining HAVE_OFFIX_DND" | |
| 3519 echo "#define" HAVE_OFFIX_DND "1" >> confdefs.h | |
| 3520 DEFS="$DEFS -DHAVE_OFFIX_DND=1" | |
| 3521 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_OFFIX_DND\${ac_dB}HAVE_OFFIX_DND\${ac_dC}1\${ac_dD} | |
| 3522 \${ac_uA}HAVE_OFFIX_DND\${ac_uB}HAVE_OFFIX_DND\${ac_uC}1\${ac_uD} | |
| 3523 \${ac_eA}HAVE_OFFIX_DND\${ac_eB}HAVE_OFFIX_DND\${ac_eC}1\${ac_eD} | |
| 3524 " | |
| 3525 } | |
| 3526 | |
| 3527 | |
| 3528 # X window options | |
| 3529 if test "${window_system}" != "none" ; then | |
| 3530 test -n "$silent" || echo "checking the version of X11 being used" | |
| 3531 cat > conftest.${ac_ext} <<EOF | |
| 3532 #include <X11/Intrinsic.h> | |
| 3533 int main() { | 5254 int main() { |
| 3534 #if (XlibSpecificationRelease == 4) | 5255 XpmReadFileToData() |
| 3535 printf ("X11R4\n"); | 5256 ; return 0; } |
| 3536 #elif (XlibSpecificationRelease == 5) | 5257 EOF |
| 3537 printf ("X11R5\n"); | 5258 if { (eval echo configure:5259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3538 #elif (XlibSpecificationRelease == 6) | 5259 rm -rf conftest* |
| 3539 printf ("X11R6\n"); | 5260 eval "ac_cv_lib_$ac_lib_var=yes" |
| 3540 #elif (XtSpecificationRelease == 4) | 5261 else |
| 3541 printf ("X11R4\n"); | 5262 echo "configure: failed program was:" >&5 |
| 3542 #endif | 5263 cat conftest.$ac_ext >&5 |
| 3543 return 0; | 5264 rm -rf conftest* |
| 3544 } | 5265 eval "ac_cv_lib_$ac_lib_var=no" |
| 3545 EOF | 5266 fi |
| 3546 ac_save_LIBS="${LIBS}" | 5267 rm -f conftest* |
| 3547 LIBS="${LIBS} ${DEFS}" | 5268 xe_check_libs="" |
| 3548 if eval $ac_compile; then | 5269 |
| 3549 case "`./conftest`" in | 5270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3550 X11R4 ) | 5271 echo "$ac_t""yes" 1>&6 |
| 3551 { | 5272 : |
| 3552 test -n "$verbose" && \ | 5273 else |
| 3553 echo " defining THIS_IS_X11R4" | 5274 echo "$ac_t""no" 1>&6 |
| 3554 echo "#define" THIS_IS_X11R4 "1" >> confdefs.h | 5275 with_xpm=no |
| 3555 DEFS="$DEFS -DTHIS_IS_X11R4=1" | 5276 fi |
| 3556 ac_sed_defs="${ac_sed_defs}\${ac_dA}THIS_IS_X11R4\${ac_dB}THIS_IS_X11R4\${ac_dC}1\${ac_dD} | 5277 |
| 3557 \${ac_uA}THIS_IS_X11R4\${ac_uB}THIS_IS_X11R4\${ac_uC}1\${ac_uD} | 5278 } |
| 3558 \${ac_eA}THIS_IS_X11R4\${ac_eB}THIS_IS_X11R4\${ac_eC}1\${ac_eD} | 5279 test -z "$with_xpm" && with_xpm=yes |
| 3559 " | 5280 if test "$with_xpm" = "yes"; then |
| 3560 } | 5281 { test "$extra_verbose" = "yes" && cat << \EOF |
| 3561 ;; | 5282 Defining HAVE_XPM |
| 3562 X11R5 ) | 5283 EOF |
| 3563 { | 5284 cat >> confdefs.h <<\EOF |
| 3564 test -n "$verbose" && \ | 5285 #define HAVE_XPM 1 |
| 3565 echo " defining THIS_IS_X11R5" | 5286 EOF |
| 3566 echo "#define" THIS_IS_X11R5 "1" >> confdefs.h | 5287 } |
| 3567 DEFS="$DEFS -DTHIS_IS_X11R5=1" | 5288 |
| 3568 ac_sed_defs="${ac_sed_defs}\${ac_dA}THIS_IS_X11R5\${ac_dB}THIS_IS_X11R5\${ac_dC}1\${ac_dD} | 5289 libs_x="-lXpm $libs_x" |
| 3569 \${ac_uA}THIS_IS_X11R5\${ac_uB}THIS_IS_X11R5\${ac_uC}1\${ac_uD} | 5290 fi |
| 3570 \${ac_eA}THIS_IS_X11R5\${ac_eB}THIS_IS_X11R5\${ac_eC}1\${ac_eD} | 5291 |
| 3571 " | 5292 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` |
| 3572 } | 5293 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 |
| 3573 ;; | 5294 echo "configure:5295: checking for compface.h" >&5 |
| 3574 X11R6 ) | 5295 |
| 3575 { | 5296 cat > conftest.$ac_ext <<EOF |
| 3576 test -n "$verbose" && \ | 5297 #line 5298 "configure" |
| 3577 echo " defining THIS_IS_X11R6" | 5298 #include "confdefs.h" |
| 3578 echo "#define" THIS_IS_X11R6 "1" >> confdefs.h | 5299 #include <compface.h> |
| 3579 DEFS="$DEFS -DTHIS_IS_X11R6=1" | 5300 EOF |
| 3580 ac_sed_defs="${ac_sed_defs}\${ac_dA}THIS_IS_X11R6\${ac_dB}THIS_IS_X11R6\${ac_dC}1\${ac_dD} | 5301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 3581 \${ac_uA}THIS_IS_X11R6\${ac_uB}THIS_IS_X11R6\${ac_uC}1\${ac_uD} | 5302 { (eval echo configure:5303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 3582 \${ac_eA}THIS_IS_X11R6\${ac_eB}THIS_IS_X11R6\${ac_eC}1\${ac_eD} | 5303 ac_err=`grep -v '^ *+' conftest.out` |
| 3583 " | |
| 3584 } | |
| 3585 ;; | |
| 3586 esac | |
| 3587 fi | |
| 3588 LIBS=$ac_save_LIBS | |
| 3589 rm -f conftest* | |
| 3590 | |
| 3591 for ac_hdr in X11/Xlocale.h | |
| 3592 do | |
| 3593 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'` | |
| 3594 test -n "$silent" || echo "checking for ${ac_hdr}" | |
| 3595 cat > conftest.${ac_ext} <<EOF | |
| 3596 #include "confdefs.h" | |
| 3597 #include <${ac_hdr}> | |
| 3598 EOF | |
| 3599 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | |
| 3600 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | |
| 3601 echo "$ac_err" | |
| 3602 fi | |
| 3603 if test -z "$ac_err"; then | 5304 if test -z "$ac_err"; then |
| 3604 rm -rf conftest* | 5305 rm -rf conftest* |
| 3605 | 5306 eval "ac_cv_header_$ac_safe=yes" |
| 3606 { | 5307 else |
| 3607 test -n "$verbose" && \ | 5308 echo "$ac_err" >&5 |
| 3608 echo " defining ${ac_tr_hdr}" | 5309 echo "configure: failed program was:" >&5 |
| 3609 echo "#define" ${ac_tr_hdr} "1" >> confdefs.h | 5310 cat conftest.$ac_ext >&5 |
| 3610 DEFS="$DEFS -D${ac_tr_hdr}=1" | 5311 rm -rf conftest* |
| 3611 ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD} | 5312 eval "ac_cv_header_$ac_safe=no" |
| 3612 \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD} | 5313 fi |
| 3613 \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD} | 5314 rm -f conftest* |
| 3614 " | 5315 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3615 } | 5316 echo "$ac_t""yes" 1>&6 |
| 3616 | 5317 : |
| 3617 | 5318 else |
| 3618 fi | 5319 echo "$ac_t""no" 1>&6 |
| 3619 rm -f conftest* | 5320 with_xface=no |
| 3620 done | |
| 3621 | |
| 3622 fi | |
| 3623 | |
| 3624 # | |
| 3625 # if Energize specified, make sure we can find its need libraries/headers | |
| 3626 # | |
| 3627 if test "${with_energize}" = "yes" ; then | |
| 3628 ac_save_LIBS="${LIBS}" | |
| 3629 LIBS="${LIBS} -lenergize" | |
| 3630 ac_have_lib="" | |
| 3631 test -n "$silent" || echo "checking for -lenergize" | |
| 3632 cat > conftest.${ac_ext} <<EOF | |
| 3633 #include "confdefs.h" | |
| 3634 | |
| 3635 int main() { return 0; } | |
| 3636 int t() { main();; return 0; } | |
| 3637 EOF | |
| 3638 if eval $ac_compile; then | |
| 3639 rm -rf conftest* | |
| 3640 ac_have_lib="1" | |
| 3641 | |
| 3642 fi | |
| 3643 rm -f conftest* | |
| 3644 LIBS="${ac_save_LIBS}" | |
| 3645 if test -n "${ac_have_lib}"; then | |
| 3646 :; energize_version='3.X' | |
| 3647 else | |
| 3648 :; | |
| 3649 fi | |
| 3650 | |
| 3651 if test "${energize_version}" = "no" ; then | |
| 3652 ac_save_LIBS="${LIBS}" | |
| 3653 LIBS="${LIBS} -lconn" | |
| 3654 ac_have_lib="" | |
| 3655 test -n "$silent" || echo "checking for -lconn" | |
| 3656 cat > conftest.${ac_ext} <<EOF | |
| 3657 #include "confdefs.h" | |
| 3658 | |
| 3659 int main() { return 0; } | |
| 3660 int t() { main();; return 0; } | |
| 3661 EOF | |
| 3662 if eval $ac_compile; then | |
| 3663 rm -rf conftest* | |
| 3664 ac_have_lib="1" | |
| 3665 | |
| 3666 fi | |
| 3667 rm -f conftest* | |
| 3668 LIBS="${ac_save_LIBS}" | |
| 3669 if test -n "${ac_have_lib}"; then | |
| 3670 :; energize_version='2.X' | |
| 3671 else | |
| 3672 :; | |
| 3673 fi | |
| 3674 | |
| 3675 if test "${energize_version}" = "no" ; then | |
| 3676 echo "Unable to find Energize library." >&2 | |
| 3677 exit 1 | |
| 3678 fi | |
| 3679 fi | |
| 3680 | |
| 3681 internal_eincludes_found='no' | |
| 3682 for arg in ${DEFS} /usr/include | |
| 3683 do | |
| 3684 if test -f `echo "${arg}/editorconn.h" | sed 's/^\-I//'` ; then | |
| 3685 internal_eincludes_found='yes' | |
| 3686 fi | |
| 3687 done | |
| 3688 if test "${internal_eincludes_found}" = "no" ; then | |
| 3689 echo "Unable to find Energize editorconn.h header file." >&2 | |
| 3690 exit 1 | |
| 3691 fi | |
| 3692 fi | |
| 3693 | |
| 3694 # | |
| 3695 # logb and frexp are found in -lm on most systems. | |
| 3696 # | |
| 3697 ac_save_LIBS="${LIBS}" | |
| 3698 LIBS="${LIBS} -lm" | |
| 3699 ac_have_lib="" | |
| 3700 test -n "$silent" || echo "checking for -lm" | |
| 3701 cat > conftest.${ac_ext} <<EOF | |
| 3702 #include "confdefs.h" | |
| 3703 | |
| 3704 int main() { return 0; } | |
| 3705 int t() { main();; return 0; } | |
| 3706 EOF | |
| 3707 if eval $ac_compile; then | |
| 3708 rm -rf conftest* | |
| 3709 ac_have_lib="1" | |
| 3710 | |
| 3711 fi | |
| 3712 rm -f conftest* | |
| 3713 LIBS="${ac_save_LIBS}" | |
| 3714 if test -n "${ac_have_lib}"; then | |
| 3715 | |
| 3716 { | |
| 3717 test -n "$verbose" && \ | |
| 3718 echo " defining HAVE_LIBM" | |
| 3719 echo "#define" HAVE_LIBM "1" >> confdefs.h | |
| 3720 DEFS="$DEFS -DHAVE_LIBM=1" | |
| 3721 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBM\${ac_dB}HAVE_LIBM\${ac_dC}1\${ac_dD} | |
| 3722 \${ac_uA}HAVE_LIBM\${ac_uB}HAVE_LIBM\${ac_uC}1\${ac_uD} | |
| 3723 \${ac_eA}HAVE_LIBM\${ac_eB}HAVE_LIBM\${ac_eC}1\${ac_eD} | |
| 3724 " | |
| 3725 } | |
| 3726 | |
| 3727 LIBS="${LIBS} -lm" | |
| 3728 fi | |
| 3729 | |
| 3730 | |
| 3731 # | |
| 3732 # see if XPM is hanging around somewhere | |
| 3733 # | |
| 3734 test "${window_system}" != "none" -a \ | |
| 3735 "${with_xpm}" != "no" -a \ | |
| 3736 "${with_xpm}" != "yes" && { ac_save_LIBS="${LIBS}" | |
| 3737 LIBS="${LIBS} -lXpm" | |
| 3738 ac_have_lib="" | |
| 3739 test -n "$silent" || echo "checking for -lXpm" | |
| 3740 cat > conftest.${ac_ext} <<EOF | |
| 3741 #include "confdefs.h" | |
| 3742 | |
| 3743 int main() { return 0; } | |
| 3744 int t() { main();; return 0; } | |
| 3745 EOF | |
| 3746 if eval $ac_compile; then | |
| 3747 rm -rf conftest* | |
| 3748 ac_have_lib="1" | |
| 3749 | |
| 3750 fi | |
| 3751 rm -f conftest* | |
| 3752 LIBS="${ac_save_LIBS}" | |
| 3753 if test -n "${ac_have_lib}"; then | |
| 3754 :; with_xpm="yes" | |
| 3755 else | |
| 3756 :; | |
| 3757 fi | 5321 fi |
| 3758 } | 5322 } |
| 3759 | 5323 test -z "$with_xface" && { |
| 3760 test "${with_xpm}" = yes && | 5324 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 |
| 3761 { | 5325 echo "configure:5326: checking for UnGenFace in -lcompface" >&5 |
| 3762 test -n "$verbose" && \ | 5326 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` |
| 3763 echo " defining HAVE_XPM" | 5327 |
| 3764 echo "#define" HAVE_XPM "1" >> confdefs.h | 5328 xe_check_libs=" -lcompface " |
| 3765 DEFS="$DEFS -DHAVE_XPM=1" | 5329 cat > conftest.$ac_ext <<EOF |
| 3766 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XPM\${ac_dB}HAVE_XPM\${ac_dC}1\${ac_dD} | 5330 #line 5331 "configure" |
| 3767 \${ac_uA}HAVE_XPM\${ac_uB}HAVE_XPM\${ac_uC}1\${ac_uD} | 5331 #include "confdefs.h" |
| 3768 \${ac_eA}HAVE_XPM\${ac_eB}HAVE_XPM\${ac_eC}1\${ac_eD} | 5332 /* Override any gcc2 internal prototype to avoid an error. */ |
| 3769 " | 5333 /* We use char because int might match the return type of a gcc2 |
| 3770 } | 5334 builtin and then its argument prototype would still apply. */ |
| 3771 | 5335 char UnGenFace(); |
| 3772 | 5336 |
| 3773 # | 5337 int main() { |
| 3774 # see if Xmu is hanging around somewhere | 5338 UnGenFace() |
| 3775 # | 5339 ; return 0; } |
| 3776 # FSF 19.31 has this: | 5340 EOF |
| 3777 #dnl If using toolkit, check whether libXmu.a exists. | 5341 if { (eval echo configure:5342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3778 #dnl tranle@intellicorp.com says libXmu.a can need XtMalloc in libXt.a to link. | 5342 rm -rf conftest* |
| 3779 # OLDLIBS="$LIBS" | 5343 eval "ac_cv_lib_$ac_lib_var=yes" |
| 3780 # if test x$HAVE_X11XTR6 = xyes; then | 5344 else |
| 3781 # LIBS="-lXt -lSM -lICE $LIBS" | 5345 echo "configure: failed program was:" >&5 |
| 3782 # else | 5346 cat conftest.$ac_ext >&5 |
| 3783 # LIBS="-lXt $LIBS" | 5347 rm -rf conftest* |
| 3784 # fi | 5348 eval "ac_cv_lib_$ac_lib_var=no" |
| 3785 # A C_CHECK_LIB(Xmu, XmuConvertStandardSelection) | 5349 fi |
| 3786 # LIBS="$OLDLIBS" | 5350 rm -f conftest* |
| 3787 | 5351 xe_check_libs="" |
| 3788 if test "${window_system}" != "none" ; then | 5352 |
| 3789 if test "${with_xmu}" != "no" ; then | 5353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3790 test "${with_xmu}" != "yes" && { ac_save_LIBS="${LIBS}" | 5354 echo "$ac_t""yes" 1>&6 |
| 3791 LIBS="${LIBS} -lXmu" | 5355 : |
| 3792 ac_have_lib="" | 5356 else |
| 3793 test -n "$silent" || echo "checking for -lXmu" | 5357 echo "$ac_t""no" 1>&6 |
| 3794 cat > conftest.${ac_ext} <<EOF | 5358 with_xface=no |
| 3795 #include "confdefs.h" | 5359 fi |
| 3796 | 5360 |
| 3797 int main() { return 0; } | |
| 3798 int t() { main();; return 0; } | |
| 3799 EOF | |
| 3800 if eval $ac_compile; then | |
| 3801 rm -rf conftest* | |
| 3802 ac_have_lib="1" | |
| 3803 | |
| 3804 fi | |
| 3805 rm -f conftest* | |
| 3806 LIBS="${ac_save_LIBS}" | |
| 3807 if test -n "${ac_have_lib}"; then | |
| 3808 :; with_xmu="yes" | |
| 3809 else | |
| 3810 :; | |
| 3811 fi | |
| 3812 } | 5361 } |
| 3813 # On SunOS4 (and 5!) we must kludge harder to try to detect Xmu | 5362 test -z "$with_xface" && with_xface=yes |
| 3814 # Upgrade to autoconf 2 and use ac_check_lib - mrb | 5363 if test "$with_xface" = "yes"; then |
| 3815 if test "${with_xmu}" != "yes" ; then | 5364 { test "$extra_verbose" = "yes" && cat << \EOF |
| 3816 # begin expansion of ac_have_library | 5365 Defining HAVE_XFACE |
| 3817 ac_save_LIBS="${LIBS}" | 5366 EOF |
| 3818 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm" | 5367 cat >> confdefs.h <<\EOF |
| 3819 if test ${machine} = sparc -a ${opsys} = linux; then | 5368 #define HAVE_XFACE 1 |
| 3820 LIBS="${LIBS} -lICE -lSM" | 5369 EOF |
| 3821 fi | 5370 } |
| 3822 ac_have_lib="" | 5371 |
| 3823 cat > conftest.${ac_ext} <<EOF | 5372 libs_x="-lcompface $libs_x" |
| 3824 int main() { return 0; } | 5373 fi |
| 3825 EOF | 5374 |
| 3826 if eval $ac_compile; then | 5375 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` |
| 3827 rm -rf conftest* | 5376 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
| 3828 ac_have_lib="1" | 5377 echo "configure:5378: checking for jpeglib.h" >&5 |
| 3829 fi | 5378 |
| 3830 rm -f conftest* | 5379 cat > conftest.$ac_ext <<EOF |
| 3831 LIBS="${ac_save_LIBS}" | 5380 #line 5381 "configure" |
| 3832 test -n "${ac_have_lib}" && with_xmu="yes" | 5381 #include "confdefs.h" |
| 3833 # end expansion of ac_have_library | 5382 #include <jpeglib.h> |
| 3834 fi | 5383 EOF |
| 3835 # Sparc/Linux test - fp | 5384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 3836 if test "${with_xmu}" != "yes" -a ${machine} = sparc -a ${opsys} = linux; then | 5385 { (eval echo configure:5386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 3837 # begin expansion of ac_have_library | 5386 ac_err=`grep -v '^ *+' conftest.out` |
| 3838 ac_save_LIBS="${LIBS}" | |
| 3839 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm -lICE -lSM" | |
| 3840 ac_have_lib="" | |
| 3841 cat > conftest.${ac_ext} <<EOF | |
| 3842 int main() { return 0; } | |
| 3843 EOF | |
| 3844 if eval $ac_compile; then | |
| 3845 rm -rf conftest* | |
| 3846 ac_have_lib="1" | |
| 3847 fi | |
| 3848 rm -f conftest* | |
| 3849 LIBS="${ac_save_LIBS}" | |
| 3850 test -n "${ac_have_lib}" && with_xmu="yes" | |
| 3851 # end expansion of ac_have_library | |
| 3852 fi | |
| 3853 # On UnixWare 2.1 we must kludge harder to try to detect Xmu | |
| 3854 # Upgrade to autoconf 2 and use ac_check_lib - mrb | |
| 3855 if test "${with_xmu}" != "yes" && test -f "/.UpgradeVer2.1" ; then | |
| 3856 # begin expansion of ac_have_library | |
| 3857 ac_save_LIBS="${LIBS}" | |
| 3858 if test x$HAVE_XFREE386 = xyes; then | |
| 3859 LIBS="-lXt -lSM -lICE ${LIBS}" | |
| 3860 else | |
| 3861 LIBS="${LIBS} -lXmu -lXt -lXext -lX11" | |
| 3862 fi | |
| 3863 ac_have_lib="" | |
| 3864 cat > conftest.${ac_ext} <<EOF | |
| 3865 int main() { return 0; } | |
| 3866 EOF | |
| 3867 if eval $ac_compile; then | |
| 3868 rm -rf conftest* | |
| 3869 ac_have_lib="1" | |
| 3870 fi | |
| 3871 rm -f conftest* | |
| 3872 LIBS="${ac_save_LIBS}" | |
| 3873 test -n "${ac_have_lib}" && with_xmu="yes" | |
| 3874 # end expansion of ac_have_library | |
| 3875 fi | |
| 3876 fi | |
| 3877 fi | |
| 3878 test "${with_xmu}" = yes && | |
| 3879 { | |
| 3880 test -n "$verbose" && \ | |
| 3881 echo " defining HAVE_XMU" | |
| 3882 echo "#define" HAVE_XMU "1" >> confdefs.h | |
| 3883 DEFS="$DEFS -DHAVE_XMU=1" | |
| 3884 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XMU\${ac_dB}HAVE_XMU\${ac_dC}1\${ac_dD} | |
| 3885 \${ac_uA}HAVE_XMU\${ac_uB}HAVE_XMU\${ac_uC}1\${ac_uD} | |
| 3886 \${ac_eA}HAVE_XMU\${ac_eB}HAVE_XMU\${ac_eC}1\${ac_eD} | |
| 3887 " | |
| 3888 } | |
| 3889 | |
| 3890 | |
| 3891 # | |
| 3892 # see if COMPFACE is hanging around somewhere | |
| 3893 # | |
| 3894 if test "${window_system}" != "none" -a \ | |
| 3895 "${with_xface}" != "no" -a \ | |
| 3896 "${with_xface}" != "yes" ; then | |
| 3897 test -n "$silent" || echo "checking for compface.h" | |
| 3898 cat > conftest.${ac_ext} <<EOF | |
| 3899 #include "confdefs.h" | |
| 3900 #include <compface.h> | |
| 3901 EOF | |
| 3902 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | |
| 3903 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | |
| 3904 echo "$ac_err" | |
| 3905 fi | |
| 3906 if test -z "$ac_err"; then | 5387 if test -z "$ac_err"; then |
| 3907 rm -rf conftest* | 5388 rm -rf conftest* |
| 3908 compface_incl="yes" | 5389 eval "ac_cv_header_$ac_safe=yes" |
| 3909 | 5390 else |
| 3910 else | 5391 echo "$ac_err" >&5 |
| 3911 rm -rf conftest* | 5392 echo "configure: failed program was:" >&5 |
| 3912 with_xface="no" | 5393 cat conftest.$ac_ext >&5 |
| 3913 fi | 5394 rm -rf conftest* |
| 3914 rm -f conftest* | 5395 eval "ac_cv_header_$ac_safe=no" |
| 3915 | 5396 fi |
| 3916 if test "${compface_incl}" = "yes" ; then | 5397 rm -f conftest* |
| 3917 ac_save_LIBS="${LIBS}" | 5398 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3918 LIBS="${LIBS} -lcompface" | 5399 echo "$ac_t""yes" 1>&6 |
| 3919 ac_have_lib="" | 5400 : |
| 3920 test -n "$silent" || echo "checking for -lcompface" | 5401 else |
| 3921 cat > conftest.${ac_ext} <<EOF | 5402 echo "$ac_t""no" 1>&6 |
| 3922 #include "confdefs.h" | 5403 with_jpeg=no |
| 3923 | 5404 fi |
| 3924 int main() { return 0; } | 5405 } |
| 3925 int t() { main();; return 0; } | 5406 test -z "$with_jpeg" && { |
| 3926 EOF | 5407 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 |
| 3927 if eval $ac_compile; then | 5408 echo "configure:5409: checking for jpeg_destroy_decompress in -ljpeg" >&5 |
| 3928 rm -rf conftest* | 5409 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` |
| 3929 ac_have_lib="1" | 5410 |
| 3930 | 5411 xe_check_libs=" -ljpeg " |
| 3931 fi | 5412 cat > conftest.$ac_ext <<EOF |
| 3932 rm -f conftest* | 5413 #line 5414 "configure" |
| 3933 LIBS="${ac_save_LIBS}" | 5414 #include "confdefs.h" |
| 3934 if test -n "${ac_have_lib}"; then | 5415 /* Override any gcc2 internal prototype to avoid an error. */ |
| 3935 :; with_xface="yes" | 5416 /* We use char because int might match the return type of a gcc2 |
| 3936 else | 5417 builtin and then its argument prototype would still apply. */ |
| 3937 :; | 5418 char jpeg_destroy_decompress(); |
| 3938 fi | 5419 |
| 3939 | 5420 int main() { |
| 3940 fi | 5421 jpeg_destroy_decompress() |
| 3941 fi | 5422 ; return 0; } |
| 3942 test "${with_xface}" = yes && | 5423 EOF |
| 3943 { | 5424 if { (eval echo configure:5425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3944 test -n "$verbose" && \ | 5425 rm -rf conftest* |
| 3945 echo " defining HAVE_XFACE" | 5426 eval "ac_cv_lib_$ac_lib_var=yes" |
| 3946 echo "#define" HAVE_XFACE "1" >> confdefs.h | 5427 else |
| 3947 DEFS="$DEFS -DHAVE_XFACE=1" | 5428 echo "configure: failed program was:" >&5 |
| 3948 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XFACE\${ac_dB}HAVE_XFACE\${ac_dC}1\${ac_dD} | 5429 cat conftest.$ac_ext >&5 |
| 3949 \${ac_uA}HAVE_XFACE\${ac_uB}HAVE_XFACE\${ac_uC}1\${ac_uD} | 5430 rm -rf conftest* |
| 3950 \${ac_eA}HAVE_XFACE\${ac_eB}HAVE_XFACE\${ac_eC}1\${ac_eD} | 5431 eval "ac_cv_lib_$ac_lib_var=no" |
| 3951 " | 5432 fi |
| 3952 } | 5433 rm -f conftest* |
| 3953 | 5434 xe_check_libs="" |
| 3954 | 5435 |
| 3955 # | 5436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3956 # check whether we're using GIF support | 5437 echo "$ac_t""yes" 1>&6 |
| 3957 # | 5438 : |
| 3958 if test "${window_system}" = "none" ; then | 5439 else |
| 3959 if test -z "${with_gif}" ; then | 5440 echo "$ac_t""no" 1>&6 |
| 3960 with_gif=no | 5441 with_jpeg=no |
| 3961 elif test "${with_gif}" != "no" ; then | 5442 fi |
| 3962 echo "GIF support cannot be specified without a window system." | 5443 |
| 3963 exit 1 | 5444 } |
| 3964 fi | 5445 test -z "$with_jpeg" && with_jpeg=yes |
| 3965 elif test -z "${with_gif}" ; then | 5446 if test "$with_jpeg" = "yes"; then |
| 3966 with_gif=yes | 5447 { test "$extra_verbose" = "yes" && cat << \EOF |
| 3967 fi | 5448 Defining HAVE_JPEG |
| 3968 test "${with_gif}" = yes && | 5449 EOF |
| 3969 { | 5450 cat >> confdefs.h <<\EOF |
| 3970 test -n "$verbose" && \ | 5451 #define HAVE_JPEG 1 |
| 3971 echo " defining HAVE_GIF" | 5452 EOF |
| 3972 echo "#define" HAVE_GIF "1" >> confdefs.h | 5453 } |
| 3973 DEFS="$DEFS -DHAVE_GIF=1" | 5454 |
| 3974 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_GIF\${ac_dB}HAVE_GIF\${ac_dC}1\${ac_dD} | 5455 libs_x="-ljpeg $libs_x" |
| 3975 \${ac_uA}HAVE_GIF\${ac_uB}HAVE_GIF\${ac_uC}1\${ac_uD} | 5456 fi |
| 3976 \${ac_eA}HAVE_GIF\${ac_eB}HAVE_GIF\${ac_eC}1\${ac_eD} | 5457 |
| 3977 " | 5458 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
| 3978 } | 5459 echo $ac_n "checking for png.h""... $ac_c" 1>&6 |
| 3979 | 5460 echo "configure:5461: checking for png.h" >&5 |
| 3980 | 5461 |
| 3981 if test "${window_system}" = "none" ; then | 5462 cat > conftest.$ac_ext <<EOF |
| 3982 if test -z "${with_jpeg}" ; then | 5463 #line 5464 "configure" |
| 3983 with_jpeg=no | 5464 #include "confdefs.h" |
| 3984 elif test "${with_jpeg}" != "no" ; then | 5465 #include <png.h> |
| 3985 echo "JPEG support cannot be specified without a window system." | 5466 EOF |
| 3986 exit 1 | 5467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 3987 fi | 5468 { (eval echo configure:5469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 3988 else | 5469 ac_err=`grep -v '^ *+' conftest.out` |
| 3989 if test "${with_jpeg}" != "no" -a \ | |
| 3990 "${with_jpeg}" != "yes" ; then | |
| 3991 test -n "$silent" || echo "checking for jpeglib.h" | |
| 3992 cat > conftest.${ac_ext} <<EOF | |
| 3993 #include "confdefs.h" | |
| 3994 #include <jpeglib.h> | |
| 3995 EOF | |
| 3996 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | |
| 3997 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | |
| 3998 echo "$ac_err" | |
| 3999 fi | |
| 4000 if test -z "$ac_err"; then | 5470 if test -z "$ac_err"; then |
| 4001 rm -rf conftest* | 5471 rm -rf conftest* |
| 4002 jpeglib_incl="yes" | 5472 eval "ac_cv_header_$ac_safe=yes" |
| 4003 | 5473 else |
| 4004 else | 5474 echo "$ac_err" >&5 |
| 4005 rm -rf conftest* | 5475 echo "configure: failed program was:" >&5 |
| 4006 with_jpeg="no" | 5476 cat conftest.$ac_ext >&5 |
| 4007 fi | 5477 rm -rf conftest* |
| 4008 rm -f conftest* | 5478 eval "ac_cv_header_$ac_safe=no" |
| 4009 | 5479 fi |
| 4010 test "${jpeglib_incl}" = "yes" && { ac_save_LIBS="${LIBS}" | 5480 rm -f conftest* |
| 4011 LIBS="${LIBS} -ljpeg" | 5481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4012 ac_have_lib="" | 5482 echo "$ac_t""yes" 1>&6 |
| 4013 test -n "$silent" || echo "checking for -ljpeg" | 5483 : |
| 4014 cat > conftest.${ac_ext} <<EOF | 5484 else |
| 4015 #include "confdefs.h" | 5485 echo "$ac_t""no" 1>&6 |
| 4016 | 5486 with_png=no |
| 4017 int main() { return 0; } | |
| 4018 int t() { main();; return 0; } | |
| 4019 EOF | |
| 4020 if eval $ac_compile; then | |
| 4021 rm -rf conftest* | |
| 4022 ac_have_lib="1" | |
| 4023 | |
| 4024 fi | |
| 4025 rm -f conftest* | |
| 4026 LIBS="${ac_save_LIBS}" | |
| 4027 if test -n "${ac_have_lib}"; then | |
| 4028 :; with_jpeg="yes" | |
| 4029 else | |
| 4030 :; | |
| 4031 fi | 5487 fi |
| 4032 } | 5488 } |
| 4033 fi | 5489 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 |
| 4034 fi | 5490 echo "configure:5491: checking for pow" >&5 |
| 4035 test "${with_jpeg}" = yes && | 5491 |
| 4036 { | 5492 cat > conftest.$ac_ext <<EOF |
| 4037 test -n "$verbose" && \ | 5493 #line 5494 "configure" |
| 4038 echo " defining HAVE_JPEG" | 5494 #include "confdefs.h" |
| 4039 echo "#define" HAVE_JPEG "1" >> confdefs.h | 5495 /* System header to define __stub macros and hopefully few prototypes, |
| 4040 DEFS="$DEFS -DHAVE_JPEG=1" | 5496 which can conflict with char pow(); below. */ |
| 4041 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_JPEG\${ac_dB}HAVE_JPEG\${ac_dC}1\${ac_dD} | 5497 #include <assert.h> |
| 4042 \${ac_uA}HAVE_JPEG\${ac_uB}HAVE_JPEG\${ac_uC}1\${ac_uD} | 5498 /* Override any gcc2 internal prototype to avoid an error. */ |
| 4043 \${ac_eA}HAVE_JPEG\${ac_eB}HAVE_JPEG\${ac_eC}1\${ac_eD} | 5499 /* We use char because int might match the return type of a gcc2 |
| 4044 " | 5500 builtin and then its argument prototype would still apply. */ |
| 4045 } | 5501 char pow(); |
| 4046 | 5502 |
| 4047 | 5503 int main() { |
| 4048 if test "${window_system}" = "none" ; then | 5504 |
| 4049 if test -z "${with_png}" ; then | |
| 4050 with_png=no | |
| 4051 elif test "${with_png}" != "no" ; then | |
| 4052 echo "PNG support cannot be specified without a window system." | |
| 4053 exit 1 | |
| 4054 fi | |
| 4055 fi | |
| 4056 test -z "${with_png}" && { test -n "$silent" || echo "checking for png.h" | |
| 4057 cat > conftest.${ac_ext} <<EOF | |
| 4058 #include "confdefs.h" | |
| 4059 #include <png.h> | |
| 4060 EOF | |
| 4061 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | |
| 4062 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | |
| 4063 echo "$ac_err" | |
| 4064 fi | |
| 4065 if test -z "$ac_err"; then | |
| 4066 : | |
| 4067 else | |
| 4068 rm -rf conftest* | |
| 4069 with_png="no" | |
| 4070 fi | |
| 4071 rm -f conftest* | |
| 4072 } | |
| 4073 test -z "${with_png}" && { test -n "$silent" || echo "checking for pow" | |
| 4074 cat > conftest.${ac_ext} <<EOF | |
| 4075 #include "confdefs.h" | |
| 4076 #include <ctype.h> | |
| 4077 int main() { return 0; } | |
| 4078 int t() { | |
| 4079 /* The GNU C library defines this for functions which it implements | 5505 /* The GNU C library defines this for functions which it implements |
| 4080 to always fail with ENOSYS. Some functions are actually named | 5506 to always fail with ENOSYS. Some functions are actually named |
| 4081 something starting with __ and the normal name is an alias. */ | 5507 something starting with __ and the normal name is an alias. */ |
| 4082 #if defined (__stub_pow) || defined (__stub___pow) | 5508 #if defined (__stub_pow) || defined (__stub___pow) |
| 4083 choke me | 5509 choke me |
| 4084 #else | 5510 #else |
| 5511 pow(); | |
| 5512 #endif | |
| 5513 | |
| 5514 ; return 0; } | |
| 5515 EOF | |
| 5516 if { (eval echo configure:5517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 5517 rm -rf conftest* | |
| 5518 eval "ac_cv_func_pow=yes" | |
| 5519 else | |
| 5520 echo "configure: failed program was:" >&5 | |
| 5521 cat conftest.$ac_ext >&5 | |
| 5522 rm -rf conftest* | |
| 5523 eval "ac_cv_func_pow=no" | |
| 5524 fi | |
| 5525 rm -f conftest* | |
| 5526 | |
| 5527 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then | |
| 5528 echo "$ac_t""yes" 1>&6 | |
| 5529 : | |
| 5530 else | |
| 5531 echo "$ac_t""no" 1>&6 | |
| 5532 with_png=no | |
| 5533 fi | |
| 5534 } | |
| 5535 if test "$with_png" != "no"; then | |
| 5536 for extra_libs in "" "-lz" "-lgz"; do | |
| 5537 | |
| 5538 xe_msg_checking="for png_read_image in -lpng" | |
| 5539 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" | |
| 5540 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 | |
| 5541 echo "configure:5542: checking "$xe_msg_checking"" >&5 | |
| 5542 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` | |
| 5543 | |
| 5544 xe_check_libs=" -lpng $extra_libs" | |
| 5545 cat > conftest.$ac_ext <<EOF | |
| 5546 #line 5547 "configure" | |
| 5547 #include "confdefs.h" | |
| 4085 /* Override any gcc2 internal prototype to avoid an error. */ | 5548 /* Override any gcc2 internal prototype to avoid an error. */ |
| 4086 extern char pow(); pow(); | 5549 /* We use char because int might match the return type of a gcc2 |
| 4087 #endif | 5550 builtin and then its argument prototype would still apply. */ |
| 5551 char png_read_image(); | |
| 5552 | |
| 5553 int main() { | |
| 5554 png_read_image() | |
| 4088 ; return 0; } | 5555 ; return 0; } |
| 4089 EOF | 5556 EOF |
| 4090 if eval $ac_compile; then | 5557 if { (eval echo configure:5558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 5558 rm -rf conftest* | |
| 5559 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 5560 else | |
| 5561 echo "configure: failed program was:" >&5 | |
| 5562 cat conftest.$ac_ext >&5 | |
| 5563 rm -rf conftest* | |
| 5564 eval "ac_cv_lib_$ac_lib_var=no" | |
| 5565 fi | |
| 5566 rm -f conftest* | |
| 5567 xe_check_libs="" | |
| 5568 | |
| 5569 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 5570 echo "$ac_t""yes" 1>&6 | |
| 5571 png_libs="-lpng $extra_libs" with_png=yes; break | |
| 5572 else | |
| 5573 echo "$ac_t""no" 1>&6 | |
| 5574 : | |
| 5575 fi | |
| 5576 | |
| 5577 | |
| 5578 done | |
| 5579 fi | |
| 5580 test -z "$with_png" && with_png=no | |
| 5581 if test "$with_png" = "yes"; then | |
| 5582 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 5583 Defining HAVE_PNG | |
| 5584 EOF | |
| 5585 cat >> confdefs.h <<\EOF | |
| 5586 #define HAVE_PNG 1 | |
| 5587 EOF | |
| 5588 } | |
| 5589 | |
| 5590 libs_x="$png_libs $libs_x" | |
| 5591 fi | |
| 5592 | |
| 5593 if test "$with_tiff" = "yes"; then | |
| 5594 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 5595 Defining HAVE_TIFF | |
| 5596 EOF | |
| 5597 cat >> confdefs.h <<\EOF | |
| 5598 #define HAVE_TIFF 1 | |
| 5599 EOF | |
| 5600 } | |
| 5601 | |
| 5602 libs_x="-ltiff $libs_x" | |
| 5603 fi | |
| 5604 | |
| 5605 | |
| 5606 case "$with_menubars" in "" | "yes" | "athena" ) | |
| 5607 with_menubars="lucid" ;; | |
| 5608 esac | |
| 5609 case "$with_dialogs" in "" | "yes" | "lucid" ) | |
| 5610 if test "$have_motif" = "yes"; then with_dialogs="motif" | |
| 5611 elif test "$have_xaw" = "yes"; then with_dialogs="athena" | |
| 5612 else with_dialogs=no | |
| 5613 fi ;; | |
| 5614 esac | |
| 5615 case "$with_scrollbars" in "" | "yes" ) | |
| 5616 with_scrollbars="lucid" ;; | |
| 5617 esac | |
| 5618 | |
| 5619 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars" | |
| 5620 | |
| 5621 case "$all_widgets" in *athena* ) | |
| 5622 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 5623 Defining LWLIB_USES_ATHENA | |
| 5624 EOF | |
| 5625 cat >> confdefs.h <<\EOF | |
| 5626 #define LWLIB_USES_ATHENA 1 | |
| 5627 EOF | |
| 5628 } | |
| 5629 | |
| 5630 libs_x="-lXaw $libs_x" ;; | |
| 5631 esac | |
| 5632 | |
| 5633 case "$all_widgets" in *motif* ) | |
| 5634 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 5635 Defining LWLIB_USES_MOTIF | |
| 5636 EOF | |
| 5637 cat >> confdefs.h <<\EOF | |
| 5638 #define LWLIB_USES_MOTIF 1 | |
| 5639 EOF | |
| 5640 } | |
| 5641 | |
| 5642 need_motif=yes ;; | |
| 5643 esac | |
| 5644 | |
| 5645 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF | |
| 5646 Defining LWLIB_SCROLLBARS_ATHENA | |
| 5647 EOF | |
| 5648 cat >> confdefs.h <<\EOF | |
| 5649 #define LWLIB_SCROLLBARS_ATHENA 1 | |
| 5650 EOF | |
| 5651 } | |
| 5652 ;; esac | |
| 5653 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF | |
| 5654 Defining LWLIB_DIALOGS_ATHENA | |
| 5655 EOF | |
| 5656 cat >> confdefs.h <<\EOF | |
| 5657 #define LWLIB_DIALOGS_ATHENA 1 | |
| 5658 EOF | |
| 5659 } | |
| 5660 ;; esac | |
| 5661 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF | |
| 5662 Defining LWLIB_SCROLLBARS_ATHENA3D | |
| 5663 EOF | |
| 5664 cat >> confdefs.h <<\EOF | |
| 5665 #define LWLIB_SCROLLBARS_ATHENA3D 1 | |
| 5666 EOF | |
| 5667 } | |
| 5668 | |
| 5669 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF | |
| 5670 Defining LWLIB_DIALOGS_ATHENA3D | |
| 5671 EOF | |
| 5672 cat >> confdefs.h <<\EOF | |
| 5673 #define LWLIB_DIALOGS_ATHENA3D 1 | |
| 5674 EOF | |
| 5675 } | |
| 5676 | |
| 5677 | |
| 5678 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF | |
| 5679 Defining HAVE_MENUBARS | |
| 5680 EOF | |
| 5681 cat >> confdefs.h <<\EOF | |
| 5682 #define HAVE_MENUBARS 1 | |
| 5683 EOF | |
| 5684 } | |
| 5685 | |
| 5686 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF | |
| 5687 Defining HAVE_SCROLLBARS | |
| 5688 EOF | |
| 5689 cat >> confdefs.h <<\EOF | |
| 5690 #define HAVE_SCROLLBARS 1 | |
| 5691 EOF | |
| 5692 } | |
| 5693 | |
| 5694 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF | |
| 5695 Defining HAVE_DIALOGS | |
| 5696 EOF | |
| 5697 cat >> confdefs.h <<\EOF | |
| 5698 #define HAVE_DIALOGS 1 | |
| 5699 EOF | |
| 5700 } | |
| 5701 | |
| 5702 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF | |
| 5703 Defining HAVE_TOOLBARS | |
| 5704 EOF | |
| 5705 cat >> confdefs.h <<\EOF | |
| 5706 #define HAVE_TOOLBARS 1 | |
| 5707 EOF | |
| 5708 } | |
| 5709 | |
| 5710 | |
| 5711 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF | |
| 5712 Defining LWLIB_MENUBARS_LUCID | |
| 5713 EOF | |
| 5714 cat >> confdefs.h <<\EOF | |
| 5715 #define LWLIB_MENUBARS_LUCID 1 | |
| 5716 EOF | |
| 5717 } | |
| 5718 | |
| 5719 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF | |
| 5720 Defining LWLIB_SCROLLBARS_LUCID | |
| 5721 EOF | |
| 5722 cat >> confdefs.h <<\EOF | |
| 5723 #define LWLIB_SCROLLBARS_LUCID 1 | |
| 5724 EOF | |
| 5725 } | |
| 5726 | |
| 5727 | |
| 5728 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF | |
| 5729 Defining LWLIB_MENUBARS_MOTIF | |
| 5730 EOF | |
| 5731 cat >> confdefs.h <<\EOF | |
| 5732 #define LWLIB_MENUBARS_MOTIF 1 | |
| 5733 EOF | |
| 5734 } | |
| 5735 | |
| 5736 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF | |
| 5737 Defining LWLIB_SCROLLBARS_MOTIF | |
| 5738 EOF | |
| 5739 cat >> confdefs.h <<\EOF | |
| 5740 #define LWLIB_SCROLLBARS_MOTIF 1 | |
| 5741 EOF | |
| 5742 } | |
| 5743 | |
| 5744 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF | |
| 5745 Defining LWLIB_DIALOGS_MOTIF | |
| 5746 EOF | |
| 5747 cat >> confdefs.h <<\EOF | |
| 5748 #define LWLIB_DIALOGS_MOTIF 1 | |
| 5749 EOF | |
| 5750 } | |
| 5751 | |
| 5752 | |
| 5753 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" | |
| 5754 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" | |
| 5755 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" | |
| 5756 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" | |
| 5757 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui.o" | |
| 5758 | |
| 5759 if test "$with_x11" = "yes"; then | |
| 5760 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" | |
| 5761 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" | |
| 5762 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" | |
| 5763 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" | |
| 5764 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui-x.o" | |
| 5765 fi | |
| 5766 | |
| 5767 | |
| 5768 test -z "$with_mule" && with_mule=no | |
| 5769 | |
| 5770 if test "$with_mule" = "yes" ; then | |
| 5771 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 5772 Defining MULE | |
| 5773 EOF | |
| 5774 cat >> confdefs.h <<\EOF | |
| 5775 #define MULE 1 | |
| 5776 EOF | |
| 5777 } | |
| 5778 | |
| 5779 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o mule-coding.o" | |
| 5780 | |
| 5781 | |
| 5782 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 | |
| 5783 echo "configure:5784: checking for strerror in -lintl" >&5 | |
| 5784 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` | |
| 5785 | |
| 5786 xe_check_libs=" -lintl " | |
| 5787 cat > conftest.$ac_ext <<EOF | |
| 5788 #line 5789 "configure" | |
| 5789 #include "confdefs.h" | |
| 5790 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 5791 /* We use char because int might match the return type of a gcc2 | |
| 5792 builtin and then its argument prototype would still apply. */ | |
| 5793 char strerror(); | |
| 5794 | |
| 5795 int main() { | |
| 5796 strerror() | |
| 5797 ; return 0; } | |
| 5798 EOF | |
| 5799 if { (eval echo configure:5800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 5800 rm -rf conftest* | |
| 5801 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 5802 else | |
| 5803 echo "configure: failed program was:" >&5 | |
| 5804 cat conftest.$ac_ext >&5 | |
| 5805 rm -rf conftest* | |
| 5806 eval "ac_cv_lib_$ac_lib_var=no" | |
| 5807 fi | |
| 5808 rm -f conftest* | |
| 5809 xe_check_libs="" | |
| 5810 | |
| 5811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 5812 echo "$ac_t""yes" 1>&6 | |
| 5813 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
| 5814 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
| 5815 { test "$extra_verbose" = "yes" && cat << EOF | |
| 5816 Defining $ac_tr_lib | |
| 5817 EOF | |
| 5818 cat >> confdefs.h <<EOF | |
| 5819 #define $ac_tr_lib 1 | |
| 5820 EOF | |
| 5821 } | |
| 5822 | |
| 5823 LIBS="-lintl $LIBS" | |
| 5824 | |
| 5825 else | |
| 5826 echo "$ac_t""no" 1>&6 | |
| 5827 fi | |
| 5828 | |
| 5829 | |
| 5830 | |
| 5831 echo "checking for Mule input methods" 1>&6 | |
| 5832 echo "configure:5833: checking for Mule input methods" >&5 | |
| 5833 case "$with_xim" in "" | "yes" ) | |
| 5834 echo "checking for XIM" 1>&6 | |
| 5835 echo "configure:5836: checking for XIM" >&5 | |
| 5836 | |
| 5837 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 | |
| 5838 echo "configure:5839: checking for XmImMbLookupString in -lXm" >&5 | |
| 5839 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` | |
| 5840 | |
| 5841 xe_check_libs=" -lXm " | |
| 5842 cat > conftest.$ac_ext <<EOF | |
| 5843 #line 5844 "configure" | |
| 5844 #include "confdefs.h" | |
| 5845 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 5846 /* We use char because int might match the return type of a gcc2 | |
| 5847 builtin and then its argument prototype would still apply. */ | |
| 5848 char XmImMbLookupString(); | |
| 5849 | |
| 5850 int main() { | |
| 5851 XmImMbLookupString() | |
| 5852 ; return 0; } | |
| 5853 EOF | |
| 5854 if { (eval echo configure:5855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 5855 rm -rf conftest* | |
| 5856 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 5857 else | |
| 5858 echo "configure: failed program was:" >&5 | |
| 5859 cat conftest.$ac_ext >&5 | |
| 5860 rm -rf conftest* | |
| 5861 eval "ac_cv_lib_$ac_lib_var=no" | |
| 5862 fi | |
| 5863 rm -f conftest* | |
| 5864 xe_check_libs="" | |
| 5865 | |
| 5866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 5867 echo "$ac_t""yes" 1>&6 | |
| 5868 with_xim=motif | |
| 5869 else | |
| 5870 echo "$ac_t""no" 1>&6 | |
| 5871 with_xim=xlib | |
| 5872 fi | |
| 5873 | |
| 5874 | |
| 5875 esac | |
| 5876 if test "$with_xim" != "no" ; then | |
| 5877 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 5878 Defining HAVE_XIM | |
| 5879 EOF | |
| 5880 cat >> confdefs.h <<\EOF | |
| 5881 #define HAVE_XIM 1 | |
| 5882 EOF | |
| 5883 } | |
| 5884 | |
| 5885 if test "$with_xim" = "xlib"; then | |
| 5886 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 5887 Defining XIM_XLIB | |
| 5888 EOF | |
| 5889 cat >> confdefs.h <<\EOF | |
| 5890 #define XIM_XLIB 1 | |
| 5891 EOF | |
| 5892 } | |
| 5893 | |
| 5894 extra_objs="$extra_objs input-method-xlib.o" | |
| 5895 fi | |
| 5896 if test "$with_xim" = "motif"; then | |
| 5897 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 5898 Defining XIM_MOTIF | |
| 5899 EOF | |
| 5900 cat >> confdefs.h <<\EOF | |
| 5901 #define XIM_MOTIF 1 | |
| 5902 EOF | |
| 5903 } | |
| 5904 | |
| 5905 need_motif=yes | |
| 5906 extra_objs="$extra_objs input-method-motif.o" | |
| 5907 fi | |
| 5908 fi | |
| 5909 | |
| 5910 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support | |
| 5911 test -z "$with_wnn" && { ac_safe=`echo "wnn/wnnerror.h" | sed 'y%./+-%__p_%'` | |
| 5912 echo $ac_n "checking for wnn/wnnerror.h""... $ac_c" 1>&6 | |
| 5913 echo "configure:5914: checking for wnn/wnnerror.h" >&5 | |
| 5914 | |
| 5915 cat > conftest.$ac_ext <<EOF | |
| 5916 #line 5917 "configure" | |
| 5917 #include "confdefs.h" | |
| 5918 #include <wnn/wnnerror.h> | |
| 5919 EOF | |
| 5920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
| 5921 { (eval echo configure:5922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
| 5922 ac_err=`grep -v '^ *+' conftest.out` | |
| 5923 if test -z "$ac_err"; then | |
| 5924 rm -rf conftest* | |
| 5925 eval "ac_cv_header_$ac_safe=yes" | |
| 5926 else | |
| 5927 echo "$ac_err" >&5 | |
| 5928 echo "configure: failed program was:" >&5 | |
| 5929 cat conftest.$ac_ext >&5 | |
| 5930 rm -rf conftest* | |
| 5931 eval "ac_cv_header_$ac_safe=no" | |
| 5932 fi | |
| 5933 rm -f conftest* | |
| 5934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
| 5935 echo "$ac_t""yes" 1>&6 | |
| 4091 : | 5936 : |
| 4092 else | 5937 else |
| 4093 rm -rf conftest* | 5938 echo "$ac_t""no" 1>&6 |
| 4094 with_png="no" | 5939 with_wnn=no |
| 4095 fi | 5940 fi |
| 4096 rm -f conftest* | |
| 4097 } | 5941 } |
| 4098 if test -z "${with_png}" ; then | 5942 test -z "$with_wnn" && { |
| 4099 ac_save_LIBS="${LIBS}" | 5943 echo $ac_n "checking for jl_dic_list in -lwnn""... $ac_c" 1>&6 |
| 4100 LIBS="${LIBS} -lz" | 5944 echo "configure:5945: checking for jl_dic_list in -lwnn" >&5 |
| 4101 ac_have_lib="" | 5945 ac_lib_var=`echo wnn'_'jl_dic_list | sed 'y%./+-%__p_%'` |
| 4102 test -n "$silent" || echo "checking for -lz" | 5946 |
| 4103 cat > conftest.${ac_ext} <<EOF | 5947 xe_check_libs=" -lwnn " |
| 4104 #include "confdefs.h" | 5948 cat > conftest.$ac_ext <<EOF |
| 4105 | 5949 #line 5950 "configure" |
| 4106 int main() { return 0; } | 5950 #include "confdefs.h" |
| 4107 int t() { main();; return 0; } | 5951 /* Override any gcc2 internal prototype to avoid an error. */ |
| 4108 EOF | 5952 /* We use char because int might match the return type of a gcc2 |
| 4109 if eval $ac_compile; then | 5953 builtin and then its argument prototype would still apply. */ |
| 4110 rm -rf conftest* | 5954 char jl_dic_list(); |
| 4111 ac_have_lib="1" | 5955 |
| 4112 | 5956 int main() { |
| 4113 fi | 5957 jl_dic_list() |
| 4114 rm -f conftest* | 5958 ; return 0; } |
| 4115 LIBS="${ac_save_LIBS}" | 5959 EOF |
| 4116 if test -n "${ac_have_lib}"; then | 5960 if { (eval echo configure:5961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 4117 :; with_png="yes" | 5961 rm -rf conftest* |
| 4118 else | 5962 eval "ac_cv_lib_$ac_lib_var=yes" |
| 4119 :; | 5963 else |
| 4120 fi | 5964 echo "configure: failed program was:" >&5 |
| 4121 | 5965 cat conftest.$ac_ext >&5 |
| 4122 test -z "${with_png}" && { ac_save_LIBS="${LIBS}" | 5966 rm -rf conftest* |
| 4123 LIBS="${LIBS} -lgz" | 5967 eval "ac_cv_lib_$ac_lib_var=no" |
| 4124 ac_have_lib="" | 5968 fi |
| 4125 test -n "$silent" || echo "checking for -lgz" | 5969 rm -f conftest* |
| 4126 cat > conftest.${ac_ext} <<EOF | 5970 xe_check_libs="" |
| 4127 #include "confdefs.h" | 5971 |
| 4128 | 5972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4129 int main() { return 0; } | 5973 echo "$ac_t""yes" 1>&6 |
| 4130 int t() { main();; return 0; } | 5974 : |
| 4131 EOF | 5975 else |
| 4132 if eval $ac_compile; then | 5976 echo "$ac_t""no" 1>&6 |
| 4133 rm -rf conftest* | 5977 with_wnn=no |
| 4134 ac_have_lib="1" | 5978 fi |
| 4135 | 5979 |
| 4136 fi | |
| 4137 rm -f conftest* | |
| 4138 LIBS="${ac_save_LIBS}" | |
| 4139 if test -n "${ac_have_lib}"; then | |
| 4140 :; with_png="gnuz" | |
| 4141 else | |
| 4142 :; with_png="no" | |
| 4143 fi | |
| 4144 } | 5980 } |
| 4145 if test "${with_png}" != "no"; then | 5981 test -z "$with_wnn" && with_wnn=yes |
| 4146 png_save_libs="${LIBS}" | 5982 if test "$with_wnn" = "yes"; then |
| 4147 case "${with_png}" in | 5983 { test "$extra_verbose" = "yes" && cat << \EOF |
| 4148 yes ) LIBS="${LIBS} -lz" ;; | 5984 Defining HAVE_WNN |
| 4149 gnuz ) LIBS="${LIBS} -lgz" ;; | 5985 EOF |
| 4150 esac | 5986 cat >> confdefs.h <<\EOF |
| 4151 ac_save_LIBS="${LIBS}" | 5987 #define HAVE_WNN 1 |
| 4152 LIBS="${LIBS} -lpng" | 5988 EOF |
| 4153 ac_have_lib="" | 5989 } |
| 4154 test -n "$silent" || echo "checking for -lpng" | 5990 |
| 4155 cat > conftest.${ac_ext} <<EOF | 5991 libs_x="-lwnn $libs_x" |
| 4156 #include "confdefs.h" | 5992 extra_objs="$extra_objs mule-wnnfns.o" |
| 4157 | 5993 |
| 4158 int main() { return 0; } | 5994 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6 |
| 4159 int t() { main();; return 0; } | 5995 echo "configure:5996: checking for jl_fi_dic_list in -lwnn" >&5 |
| 4160 EOF | 5996 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` |
| 4161 if eval $ac_compile; then | 5997 |
| 4162 rm -rf conftest* | 5998 xe_check_libs=" -lwnn " |
| 4163 ac_have_lib="1" | 5999 cat > conftest.$ac_ext <<EOF |
| 4164 | 6000 #line 6001 "configure" |
| 4165 fi | 6001 #include "confdefs.h" |
| 4166 rm -f conftest* | 6002 /* Override any gcc2 internal prototype to avoid an error. */ |
| 4167 LIBS="${ac_save_LIBS}" | 6003 /* We use char because int might match the return type of a gcc2 |
| 4168 if test -n "${ac_have_lib}"; then | 6004 builtin and then its argument prototype would still apply. */ |
| 4169 :; | 6005 char jl_fi_dic_list(); |
| 4170 else | 6006 |
| 4171 :; with_png="no" | 6007 int main() { |
| 4172 fi | 6008 jl_fi_dic_list() |
| 4173 | 6009 ; return 0; } |
| 4174 LIBS="$png_save_libs" | 6010 EOF |
| 4175 fi | 6011 if { (eval echo configure:6012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 4176 fi | 6012 rm -rf conftest* |
| 4177 case "${with_png}" in | 6013 eval "ac_cv_lib_$ac_lib_var=yes" |
| 4178 yes ) | 6014 else |
| 4179 { | 6015 echo "configure: failed program was:" >&5 |
| 4180 test -n "$verbose" && \ | 6016 cat conftest.$ac_ext >&5 |
| 4181 echo " defining HAVE_PNG" | 6017 rm -rf conftest* |
| 4182 echo "#define" HAVE_PNG "1" >> confdefs.h | 6018 eval "ac_cv_lib_$ac_lib_var=no" |
| 4183 DEFS="$DEFS -DHAVE_PNG=1" | 6019 fi |
| 4184 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PNG\${ac_dB}HAVE_PNG\${ac_dC}1\${ac_dD} | 6020 rm -f conftest* |
| 4185 \${ac_uA}HAVE_PNG\${ac_uB}HAVE_PNG\${ac_uC}1\${ac_uD} | 6021 xe_check_libs="" |
| 4186 \${ac_eA}HAVE_PNG\${ac_eB}HAVE_PNG\${ac_eC}1\${ac_eD} | 6022 |
| 4187 " | 6023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4188 } | 6024 echo "$ac_t""yes" 1>&6 |
| 4189 ;; | 6025 with_wnn6=yes |
| 4190 gnuz ) | 6026 else |
| 4191 { | 6027 echo "$ac_t""no" 1>&6 |
| 4192 test -n "$verbose" && \ | 6028 fi |
| 4193 echo " defining HAVE_PNG" | 6029 |
| 4194 echo "#define" HAVE_PNG "1" >> confdefs.h | 6030 |
| 4195 DEFS="$DEFS -DHAVE_PNG=1" | 6031 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 4196 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PNG\${ac_dB}HAVE_PNG\${ac_dC}1\${ac_dD} | 6032 Defining HAVE_WNN6 |
| 4197 \${ac_uA}HAVE_PNG\${ac_uB}HAVE_PNG\${ac_uC}1\${ac_uD} | 6033 EOF |
| 4198 \${ac_eA}HAVE_PNG\${ac_eB}HAVE_PNG\${ac_eC}1\${ac_eD} | 6034 cat >> confdefs.h <<\EOF |
| 4199 " | 6035 #define HAVE_WNN6 1 |
| 4200 } | 6036 EOF |
| 4201 | 6037 } |
| 4202 { | 6038 |
| 4203 test -n "$verbose" && \ | |
| 4204 echo " defining HAVE_PNG_GNUZ" | |
| 4205 echo "#define" HAVE_PNG_GNUZ "1" >> confdefs.h | |
| 4206 DEFS="$DEFS -DHAVE_PNG_GNUZ=1" | |
| 4207 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PNG_GNUZ\${ac_dB}HAVE_PNG_GNUZ\${ac_dC}1\${ac_dD} | |
| 4208 \${ac_uA}HAVE_PNG_GNUZ\${ac_uB}HAVE_PNG_GNUZ\${ac_uC}1\${ac_uD} | |
| 4209 \${ac_eA}HAVE_PNG_GNUZ\${ac_eB}HAVE_PNG_GNUZ\${ac_eC}1\${ac_eD} | |
| 4210 " | |
| 4211 } | |
| 4212 ;; | |
| 4213 esac | |
| 4214 | |
| 4215 test "${with_tiff}" = yes && | |
| 4216 { | |
| 4217 test -n "$verbose" && \ | |
| 4218 echo " defining HAVE_TIFF" | |
| 4219 echo "#define" HAVE_TIFF "1" >> confdefs.h | |
| 4220 DEFS="$DEFS -DHAVE_TIFF=1" | |
| 4221 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TIFF\${ac_dB}HAVE_TIFF\${ac_dC}1\${ac_dD} | |
| 4222 \${ac_uA}HAVE_TIFF\${ac_uB}HAVE_TIFF\${ac_uC}1\${ac_uD} | |
| 4223 \${ac_eA}HAVE_TIFF\${ac_eB}HAVE_TIFF\${ac_eC}1\${ac_eD} | |
| 4224 " | |
| 4225 } | |
| 4226 | |
| 4227 | |
| 4228 # We use Lucid toolkit defaults for the menubars and scrollbars, but | |
| 4229 # if Motif is available we use it for the dialog boxes. | |
| 4230 if test "${window_system}" != "none" ; then | |
| 4231 save_libs="${LIBS}" | |
| 4232 if test "x${with_dialogs}" = "x" ; then | |
| 4233 # We can't use ac_have_library because it simply appends -lXm to the | |
| 4234 # end of the link line which is insufficient since -lXm will generate | |
| 4235 # dependencies on -lXt | |
| 4236 # begin expansion of ac_have_library | |
| 4237 ac_save_LIBS="${LIBS}" | |
| 4238 LIBS="${LIBS} -lXm -lXt ${LIBS}" | |
| 4239 ac_have_lib="" | |
| 4240 test -n "$silent" || echo "checking for -lXm" | |
| 4241 cat > conftest.${ac_ext} <<EOF | |
| 4242 #include "confdefs.h" | |
| 4243 | |
| 4244 int main() { return 0; } | |
| 4245 int t() { main();; return 0; } | |
| 4246 EOF | |
| 4247 if eval $ac_compile; then | |
| 4248 rm -rf conftest* | |
| 4249 ac_have_lib="1" | |
| 4250 | |
| 4251 fi | |
| 4252 rm -f conftest* | |
| 4253 LIBS="${ac_save_LIBS}" | |
| 4254 if test -n "${ac_have_lib}"; then | |
| 4255 :; with_dialogs="motif" motif_libs="-lXm -lXt" | |
| 4256 else | |
| 4257 :; | |
| 4258 fi | |
| 4259 # end expansion of ac_have_library | |
| 4260 # Sigh. My Motif (MoTeeth) under Linux also depends on Xpm and Xext. | |
| 4261 if test "${with_dialogs}" != "motif" ; then | |
| 4262 # begin expansion of ac_have_library | |
| 4263 ac_save_LIBS="${LIBS}" | |
| 4264 LIBS="${LIBS} -lXm -lXt -lXpm -lXext ${LIBS}" | |
| 4265 ac_have_lib="" | |
| 4266 test -n "$silent" || echo "checking for -lXm in another way" | |
| 4267 cat > conftest.${ac_ext} <<EOF | |
| 4268 #include "confdefs.h" | |
| 4269 | |
| 4270 int main() { return 0; } | |
| 4271 int t() { main();; return 0; } | |
| 4272 EOF | |
| 4273 if eval $ac_compile; then | |
| 4274 rm -rf conftest* | |
| 4275 ac_have_lib="1" | |
| 4276 | |
| 4277 fi | |
| 4278 rm -f conftest* | |
| 4279 LIBS="${ac_save_LIBS}" | |
| 4280 if test -n "${ac_have_lib}"; then | |
| 4281 :; with_dialogs="motif" motif_libs="-lXm -lXt -lXpm -lXext" | |
| 4282 else | |
| 4283 :; | |
| 4284 fi | |
| 4285 # end expansion of ac_have_library | |
| 4286 fi | 6039 fi |
| 4287 test "${with_dialogs}" = "motif" && test -n "$verbose" && echo " Found Motif" | 6040 |
| 4288 fi | 6041 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` |
| 4289 fi | 6042 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 |
| 4290 | 6043 echo "configure:6044: checking for canna/RK.h" >&5 |
| 4291 # Finish ensuring that we have values for the various toolkit items. | 6044 |
| 4292 | 6045 cat > conftest.$ac_ext <<EOF |
| 4293 test "${with_menubars}" = "motif" -o \ | 6046 #line 6047 "configure" |
| 4294 "${with_scrollbars}" = "motif" -o \ | 6047 #include "confdefs.h" |
| 4295 "${with_dialogs}" = "motif" && with_motif="yes" | 6048 #include <canna/RK.h> |
| 4296 test "${with_menubars}" = "athena" -o \ | 6049 EOF |
| 4297 "${with_scrollbars}" = "athena" -o \ | 6050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4298 "${with_dialogs}" = "athena" && with_athena="yes" | 6051 { (eval echo configure:6052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4299 test "${with_menubars}" = "athena3d" -o \ | 6052 ac_err=`grep -v '^ *+' conftest.out` |
| 4300 "${with_scrollbars}" = "athena3d" -o \ | 6053 if test -z "$ac_err"; then |
| 4301 "${with_dialogs}" = "athena3d" && with_athena="yes" | 6054 rm -rf conftest* |
| 4302 test "${with_menubars}" = "" && with_menubars="lucid" | 6055 eval "ac_cv_header_$ac_safe=yes" |
| 4303 test "${with_menubars}" = "athena" && with_menubars="lucid" | 6056 else |
| 4304 test "${with_scrollbars}" = "" && with_scrollbars="lucid" | 6057 echo "$ac_err" >&5 |
| 4305 test "${with_dialogs}" = "" && with_dialogs="athena" | 6058 echo "configure: failed program was:" >&5 |
| 4306 test "${with_dialogs}" = "lucid" && with_dialogs="athena" | 6059 cat conftest.$ac_ext >&5 |
| 4307 | 6060 rm -rf conftest* |
| 4308 test "${with_menubars}" != "no" && | 6061 eval "ac_cv_header_$ac_safe=no" |
| 4309 { | 6062 fi |
| 4310 test -n "$verbose" && \ | 6063 rm -f conftest* |
| 4311 echo " defining HAVE_MENUBARS" | 6064 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4312 echo "#define" HAVE_MENUBARS "1" >> confdefs.h | 6065 echo "$ac_t""yes" 1>&6 |
| 4313 DEFS="$DEFS -DHAVE_MENUBARS=1" | 6066 : |
| 4314 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_MENUBARS\${ac_dB}HAVE_MENUBARS\${ac_dC}1\${ac_dD} | 6067 else |
| 4315 \${ac_uA}HAVE_MENUBARS\${ac_uB}HAVE_MENUBARS\${ac_uC}1\${ac_uD} | 6068 echo "$ac_t""no" 1>&6 |
| 4316 \${ac_eA}HAVE_MENUBARS\${ac_eB}HAVE_MENUBARS\${ac_eC}1\${ac_eD} | 6069 with_canna=no |
| 4317 " | 6070 fi |
| 4318 } | 6071 } |
| 4319 | 6072 test -z "$with_canna" && { |
| 4320 test "${with_scrollbars}" != "no" && | 6073 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 |
| 4321 { | 6074 echo "configure:6075: checking for RkBgnBun in -lRKC" >&5 |
| 4322 test -n "$verbose" && \ | 6075 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` |
| 4323 echo " defining HAVE_SCROLLBARS" | 6076 |
| 4324 echo "#define" HAVE_SCROLLBARS "1" >> confdefs.h | 6077 xe_check_libs=" -lRKC " |
| 4325 DEFS="$DEFS -DHAVE_SCROLLBARS=1" | 6078 cat > conftest.$ac_ext <<EOF |
| 4326 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SCROLLBARS\${ac_dB}HAVE_SCROLLBARS\${ac_dC}1\${ac_dD} | 6079 #line 6080 "configure" |
| 4327 \${ac_uA}HAVE_SCROLLBARS\${ac_uB}HAVE_SCROLLBARS\${ac_uC}1\${ac_uD} | 6080 #include "confdefs.h" |
| 4328 \${ac_eA}HAVE_SCROLLBARS\${ac_eB}HAVE_SCROLLBARS\${ac_eC}1\${ac_eD} | 6081 /* Override any gcc2 internal prototype to avoid an error. */ |
| 4329 " | 6082 /* We use char because int might match the return type of a gcc2 |
| 4330 } | 6083 builtin and then its argument prototype would still apply. */ |
| 4331 | 6084 char RkBgnBun(); |
| 4332 test "${with_dialogs}" != "no" && | 6085 |
| 4333 { | 6086 int main() { |
| 4334 test -n "$verbose" && \ | 6087 RkBgnBun() |
| 4335 echo " defining HAVE_DIALOGS" | 6088 ; return 0; } |
| 4336 echo "#define" HAVE_DIALOGS "1" >> confdefs.h | 6089 EOF |
| 4337 DEFS="$DEFS -DHAVE_DIALOGS=1" | 6090 if { (eval echo configure:6091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 4338 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_DIALOGS\${ac_dB}HAVE_DIALOGS\${ac_dC}1\${ac_dD} | 6091 rm -rf conftest* |
| 4339 \${ac_uA}HAVE_DIALOGS\${ac_uB}HAVE_DIALOGS\${ac_uC}1\${ac_uD} | 6092 eval "ac_cv_lib_$ac_lib_var=yes" |
| 4340 \${ac_eA}HAVE_DIALOGS\${ac_eB}HAVE_DIALOGS\${ac_eC}1\${ac_eD} | 6093 else |
| 4341 " | 6094 echo "configure: failed program was:" >&5 |
| 4342 } | 6095 cat conftest.$ac_ext >&5 |
| 4343 | 6096 rm -rf conftest* |
| 4344 | 6097 eval "ac_cv_lib_$ac_lib_var=no" |
| 4345 test "${with_menubars}" = "lucid" && | 6098 fi |
| 4346 { | 6099 rm -f conftest* |
| 4347 test -n "$verbose" && \ | 6100 xe_check_libs="" |
| 4348 echo " defining LWLIB_MENUBARS_LUCID" | 6101 |
| 4349 echo "#define" LWLIB_MENUBARS_LUCID "1" >> confdefs.h | 6102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4350 DEFS="$DEFS -DLWLIB_MENUBARS_LUCID=1" | 6103 echo "$ac_t""yes" 1>&6 |
| 4351 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_MENUBARS_LUCID\${ac_dB}LWLIB_MENUBARS_LUCID\${ac_dC}1\${ac_dD} | 6104 : |
| 4352 \${ac_uA}LWLIB_MENUBARS_LUCID\${ac_uB}LWLIB_MENUBARS_LUCID\${ac_uC}1\${ac_uD} | 6105 else |
| 4353 \${ac_eA}LWLIB_MENUBARS_LUCID\${ac_eB}LWLIB_MENUBARS_LUCID\${ac_eC}1\${ac_eD} | 6106 echo "$ac_t""no" 1>&6 |
| 4354 " | 6107 with_canna=no |
| 4355 } | 6108 fi |
| 4356 | 6109 |
| 4357 test "${with_menubars}" = "motif" && | 6110 } |
| 4358 { | 6111 test -z "$with_canna" && { |
| 4359 test -n "$verbose" && \ | 6112 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 |
| 4360 echo " defining LWLIB_MENUBARS_MOTIF" | 6113 echo "configure:6114: checking for jrKanjiControl in -lcanna" >&5 |
| 4361 echo "#define" LWLIB_MENUBARS_MOTIF "1" >> confdefs.h | 6114 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` |
| 4362 DEFS="$DEFS -DLWLIB_MENUBARS_MOTIF=1" | 6115 |
| 4363 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_MENUBARS_MOTIF\${ac_dB}LWLIB_MENUBARS_MOTIF\${ac_dC}1\${ac_dD} | 6116 xe_check_libs=" -lcanna " |
| 4364 \${ac_uA}LWLIB_MENUBARS_MOTIF\${ac_uB}LWLIB_MENUBARS_MOTIF\${ac_uC}1\${ac_uD} | 6117 cat > conftest.$ac_ext <<EOF |
| 4365 \${ac_eA}LWLIB_MENUBARS_MOTIF\${ac_eB}LWLIB_MENUBARS_MOTIF\${ac_eC}1\${ac_eD} | 6118 #line 6119 "configure" |
| 4366 " | 6119 #include "confdefs.h" |
| 4367 } | 6120 /* Override any gcc2 internal prototype to avoid an error. */ |
| 4368 | 6121 /* We use char because int might match the return type of a gcc2 |
| 4369 test "${with_scrollbars}" = "lucid" && | 6122 builtin and then its argument prototype would still apply. */ |
| 4370 { | 6123 char jrKanjiControl(); |
| 4371 test -n "$verbose" && \ | 6124 |
| 4372 echo " defining LWLIB_SCROLLBARS_LUCID" | 6125 int main() { |
| 4373 echo "#define" LWLIB_SCROLLBARS_LUCID "1" >> confdefs.h | 6126 jrKanjiControl() |
| 4374 DEFS="$DEFS -DLWLIB_SCROLLBARS_LUCID=1" | 6127 ; return 0; } |
| 4375 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_LUCID\${ac_dB}LWLIB_SCROLLBARS_LUCID\${ac_dC}1\${ac_dD} | 6128 EOF |
| 4376 \${ac_uA}LWLIB_SCROLLBARS_LUCID\${ac_uB}LWLIB_SCROLLBARS_LUCID\${ac_uC}1\${ac_uD} | 6129 if { (eval echo configure:6130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 4377 \${ac_eA}LWLIB_SCROLLBARS_LUCID\${ac_eB}LWLIB_SCROLLBARS_LUCID\${ac_eC}1\${ac_eD} | 6130 rm -rf conftest* |
| 4378 " | 6131 eval "ac_cv_lib_$ac_lib_var=yes" |
| 4379 } | 6132 else |
| 4380 | 6133 echo "configure: failed program was:" >&5 |
| 4381 test "${with_scrollbars}" = "motif" && | 6134 cat conftest.$ac_ext >&5 |
| 4382 { | 6135 rm -rf conftest* |
| 4383 test -n "$verbose" && \ | 6136 eval "ac_cv_lib_$ac_lib_var=no" |
| 4384 echo " defining LWLIB_SCROLLBARS_MOTIF" | 6137 fi |
| 4385 echo "#define" LWLIB_SCROLLBARS_MOTIF "1" >> confdefs.h | 6138 rm -f conftest* |
| 4386 DEFS="$DEFS -DLWLIB_SCROLLBARS_MOTIF=1" | 6139 xe_check_libs="" |
| 4387 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_MOTIF\${ac_dB}LWLIB_SCROLLBARS_MOTIF\${ac_dC}1\${ac_dD} | 6140 |
| 4388 \${ac_uA}LWLIB_SCROLLBARS_MOTIF\${ac_uB}LWLIB_SCROLLBARS_MOTIF\${ac_uC}1\${ac_uD} | 6141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4389 \${ac_eA}LWLIB_SCROLLBARS_MOTIF\${ac_eB}LWLIB_SCROLLBARS_MOTIF\${ac_eC}1\${ac_eD} | 6142 echo "$ac_t""yes" 1>&6 |
| 4390 " | 6143 : |
| 4391 } | 6144 else |
| 4392 | 6145 echo "$ac_t""no" 1>&6 |
| 4393 test "${with_scrollbars}" = "athena" && | 6146 with_canna=no |
| 4394 { | 6147 fi |
| 4395 test -n "$verbose" && \ | 6148 |
| 4396 echo " defining LWLIB_SCROLLBARS_ATHENA" | 6149 } |
| 4397 echo "#define" LWLIB_SCROLLBARS_ATHENA "1" >> confdefs.h | 6150 test -z "$with_canna" && with_canna=yes |
| 4398 DEFS="$DEFS -DLWLIB_SCROLLBARS_ATHENA=1" | 6151 if test "$with_canna" = "yes"; then |
| 4399 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_ATHENA\${ac_dB}LWLIB_SCROLLBARS_ATHENA\${ac_dC}1\${ac_dD} | 6152 { test "$extra_verbose" = "yes" && cat << \EOF |
| 4400 \${ac_uA}LWLIB_SCROLLBARS_ATHENA\${ac_uB}LWLIB_SCROLLBARS_ATHENA\${ac_uC}1\${ac_uD} | 6153 Defining HAVE_CANNA |
| 4401 \${ac_eA}LWLIB_SCROLLBARS_ATHENA\${ac_eB}LWLIB_SCROLLBARS_ATHENA\${ac_eC}1\${ac_eD} | 6154 EOF |
| 4402 " | 6155 cat >> confdefs.h <<\EOF |
| 4403 } | 6156 #define HAVE_CANNA 1 |
| 4404 | 6157 EOF |
| 4405 if test "${with_scrollbars}" = "athena3d"; then | 6158 } |
| 4406 | 6159 |
| 4407 { | 6160 libs_x="-lcanna -lRKC $libs_x" |
| 4408 test -n "$verbose" && \ | 6161 extra_objs="$extra_objs mule-canna.o" |
| 4409 echo " defining LWLIB_SCROLLBARS_ATHENA" | 6162 fi |
| 4410 echo "#define" LWLIB_SCROLLBARS_ATHENA "1" >> confdefs.h | 6163 else # "$with_mule" = "no" |
| 4411 DEFS="$DEFS -DLWLIB_SCROLLBARS_ATHENA=1" | 6164 for feature in xim canna wnn; do |
| 4412 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_ATHENA\${ac_dB}LWLIB_SCROLLBARS_ATHENA\${ac_dC}1\${ac_dD} | 6165 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then |
| 4413 \${ac_uA}LWLIB_SCROLLBARS_ATHENA\${ac_uB}LWLIB_SCROLLBARS_ATHENA\${ac_uC}1\${ac_uD} | 6166 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2 |
| 4414 \${ac_eA}LWLIB_SCROLLBARS_ATHENA\${ac_eB}LWLIB_SCROLLBARS_ATHENA\${ac_eC}1\${ac_eD} | 6167 fi |
| 4415 " | 6168 eval "with_${feature}=no" |
| 4416 } | 6169 done |
| 4417 | 6170 fi |
| 4418 | 6171 |
| 4419 { | 6172 |
| 4420 test -n "$verbose" && \ | 6173 test "$need_motif" = "yes" && libs_x="-lXm $libs_x" |
| 4421 echo " defining LWLIB_SCROLLBARS_ATHENA3D" | 6174 |
| 4422 echo "#define" LWLIB_SCROLLBARS_ATHENA3D "1" >> confdefs.h | 6175 for ac_func in acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random realpath rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset utimes waitpid |
| 4423 DEFS="$DEFS -DLWLIB_SCROLLBARS_ATHENA3D=1" | 6176 do |
| 4424 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_ATHENA3D\${ac_dB}LWLIB_SCROLLBARS_ATHENA3D\${ac_dC}1\${ac_dD} | 6177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 4425 \${ac_uA}LWLIB_SCROLLBARS_ATHENA3D\${ac_uB}LWLIB_SCROLLBARS_ATHENA3D\${ac_uC}1\${ac_uD} | 6178 echo "configure:6179: checking for $ac_func" >&5 |
| 4426 \${ac_eA}LWLIB_SCROLLBARS_ATHENA3D\${ac_eB}LWLIB_SCROLLBARS_ATHENA3D\${ac_eC}1\${ac_eD} | 6179 |
| 4427 " | 6180 cat > conftest.$ac_ext <<EOF |
| 4428 } | 6181 #line 6182 "configure" |
| 4429 | 6182 #include "confdefs.h" |
| 4430 fi | 6183 /* System header to define __stub macros and hopefully few prototypes, |
| 4431 test "${with_dialogs}" = "motif" && | 6184 which can conflict with char $ac_func(); below. */ |
| 4432 { | 6185 #include <assert.h> |
| 4433 test -n "$verbose" && \ | 6186 /* Override any gcc2 internal prototype to avoid an error. */ |
| 4434 echo " defining LWLIB_DIALOGS_MOTIF" | 6187 /* We use char because int might match the return type of a gcc2 |
| 4435 echo "#define" LWLIB_DIALOGS_MOTIF "1" >> confdefs.h | 6188 builtin and then its argument prototype would still apply. */ |
| 4436 DEFS="$DEFS -DLWLIB_DIALOGS_MOTIF=1" | 6189 char $ac_func(); |
| 4437 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_DIALOGS_MOTIF\${ac_dB}LWLIB_DIALOGS_MOTIF\${ac_dC}1\${ac_dD} | 6190 |
| 4438 \${ac_uA}LWLIB_DIALOGS_MOTIF\${ac_uB}LWLIB_DIALOGS_MOTIF\${ac_uC}1\${ac_uD} | 6191 int main() { |
| 4439 \${ac_eA}LWLIB_DIALOGS_MOTIF\${ac_eB}LWLIB_DIALOGS_MOTIF\${ac_eC}1\${ac_eD} | 6192 |
| 4440 " | |
| 4441 } | |
| 4442 | |
| 4443 test "${with_dialogs}" = "athena" && | |
| 4444 { | |
| 4445 test -n "$verbose" && \ | |
| 4446 echo " defining LWLIB_DIALOGS_ATHENA" | |
| 4447 echo "#define" LWLIB_DIALOGS_ATHENA "1" >> confdefs.h | |
| 4448 DEFS="$DEFS -DLWLIB_DIALOGS_ATHENA=1" | |
| 4449 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_DIALOGS_ATHENA\${ac_dB}LWLIB_DIALOGS_ATHENA\${ac_dC}1\${ac_dD} | |
| 4450 \${ac_uA}LWLIB_DIALOGS_ATHENA\${ac_uB}LWLIB_DIALOGS_ATHENA\${ac_uC}1\${ac_uD} | |
| 4451 \${ac_eA}LWLIB_DIALOGS_ATHENA\${ac_eB}LWLIB_DIALOGS_ATHENA\${ac_eC}1\${ac_eD} | |
| 4452 " | |
| 4453 } | |
| 4454 | |
| 4455 if test "${with_dialogs}" = "athena3d"; then | |
| 4456 | |
| 4457 { | |
| 4458 test -n "$verbose" && \ | |
| 4459 echo " defining LWLIB_DIALOGS_ATHENA" | |
| 4460 echo "#define" LWLIB_DIALOGS_ATHENA "1" >> confdefs.h | |
| 4461 DEFS="$DEFS -DLWLIB_DIALOGS_ATHENA=1" | |
| 4462 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_DIALOGS_ATHENA\${ac_dB}LWLIB_DIALOGS_ATHENA\${ac_dC}1\${ac_dD} | |
| 4463 \${ac_uA}LWLIB_DIALOGS_ATHENA\${ac_uB}LWLIB_DIALOGS_ATHENA\${ac_uC}1\${ac_uD} | |
| 4464 \${ac_eA}LWLIB_DIALOGS_ATHENA\${ac_eB}LWLIB_DIALOGS_ATHENA\${ac_eC}1\${ac_eD} | |
| 4465 " | |
| 4466 } | |
| 4467 | |
| 4468 | |
| 4469 { | |
| 4470 test -n "$verbose" && \ | |
| 4471 echo " defining LWLIB_DIALOGS_ATHENA3D" | |
| 4472 echo "#define" LWLIB_DIALOGS_ATHENA3D "1" >> confdefs.h | |
| 4473 DEFS="$DEFS -DLWLIB_DIALOGS_ATHENA3D=1" | |
| 4474 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_DIALOGS_ATHENA3D\${ac_dB}LWLIB_DIALOGS_ATHENA3D\${ac_dC}1\${ac_dD} | |
| 4475 \${ac_uA}LWLIB_DIALOGS_ATHENA3D\${ac_uB}LWLIB_DIALOGS_ATHENA3D\${ac_uC}1\${ac_uD} | |
| 4476 \${ac_eA}LWLIB_DIALOGS_ATHENA3D\${ac_eB}LWLIB_DIALOGS_ATHENA3D\${ac_eC}1\${ac_eD} | |
| 4477 " | |
| 4478 } | |
| 4479 | |
| 4480 fi | |
| 4481 | |
| 4482 ############################################################################ | |
| 4483 # # | |
| 4484 # Misc other feature tests # | |
| 4485 # # | |
| 4486 ############################################################################ | |
| 4487 | |
| 4488 # Mule-dependent option processing | |
| 4489 if test "$with_mule" = "yes" ; then | |
| 4490 # Do we have the XmIm* routines? And if so, do we want to use them? | |
| 4491 test "$with_xim" != no && test -n "$silent" || echo "checking for XIM" | |
| 4492 if test -z "$with_xim" -o "$with_xim" = "yes" ; then | |
| 4493 xim_save_libs="$LIBS" | |
| 4494 LIBS="${motif_libs} ${LIBS}" | |
| 4495 test -n "$silent" || echo "checking for XmImMbLookupString" | |
| 4496 cat > conftest.${ac_ext} <<EOF | |
| 4497 #include "confdefs.h" | |
| 4498 #include <ctype.h> | |
| 4499 int main() { return 0; } | |
| 4500 int t() { | |
| 4501 /* The GNU C library defines this for functions which it implements | 6193 /* The GNU C library defines this for functions which it implements |
| 4502 to always fail with ENOSYS. Some functions are actually named | 6194 to always fail with ENOSYS. Some functions are actually named |
| 4503 something starting with __ and the normal name is an alias. */ | 6195 something starting with __ and the normal name is an alias. */ |
| 4504 #if defined (__stub_XmImMbLookupString) || defined (__stub___XmImMbLookupString) | 6196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4505 choke me | 6197 choke me |
| 4506 #else | 6198 #else |
| 4507 /* Override any gcc2 internal prototype to avoid an error. */ | 6199 $ac_func(); |
| 4508 extern char XmImMbLookupString(); XmImMbLookupString(); | |
| 4509 #endif | 6200 #endif |
| 6201 | |
| 4510 ; return 0; } | 6202 ; return 0; } |
| 4511 EOF | 6203 EOF |
| 4512 if eval $ac_compile; then | 6204 if { (eval echo configure:6205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 4513 rm -rf conftest* | 6205 rm -rf conftest* |
| 4514 have_XmIm=yes | 6206 eval "ac_cv_func_$ac_func=yes" |
| 4515 | 6207 else |
| 4516 else | 6208 echo "configure: failed program was:" >&5 |
| 4517 rm -rf conftest* | 6209 cat conftest.$ac_ext >&5 |
| 4518 have_XmIm=no | 6210 rm -rf conftest* |
| 4519 fi | 6211 eval "ac_cv_func_$ac_func=no" |
| 4520 rm -f conftest* | 6212 fi |
| 4521 | 6213 rm -f conftest* |
| 4522 LIBS="$xim_save_libs" | 6214 |
| 4523 if test "$with_xim" = "yes" -a "$have_XmIm" = "yes"; then with_xim=motif | 6215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4524 elif test "$with_xim" = "yes"; then with_xim=xlib | 6216 echo "$ac_t""yes" 1>&6 |
| 4525 else with_xim=no | 6217 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4526 fi | 6218 { test "$extra_verbose" = "yes" && cat << EOF |
| 4527 fi | 6219 Defining $ac_tr_func |
| 4528 if test "$with_xim" != "no" ; then | 6220 EOF |
| 4529 | 6221 cat >> confdefs.h <<EOF |
| 4530 { | 6222 #define $ac_tr_func 1 |
| 4531 test -n "$verbose" && \ | 6223 EOF |
| 4532 echo " defining HAVE_XIM" | 6224 } |
| 4533 echo "#define" HAVE_XIM "1" >> confdefs.h | 6225 |
| 4534 DEFS="$DEFS -DHAVE_XIM=1" | 6226 else |
| 4535 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XIM\${ac_dB}HAVE_XIM\${ac_dC}1\${ac_dD} | 6227 echo "$ac_t""no" 1>&6 |
| 4536 \${ac_uA}HAVE_XIM\${ac_uB}HAVE_XIM\${ac_uC}1\${ac_uD} | 6228 fi |
| 4537 \${ac_eA}HAVE_XIM\${ac_eB}HAVE_XIM\${ac_eC}1\${ac_eD} | 6229 done |
| 4538 " | 6230 |
| 4539 } | 6231 |
| 4540 | 6232 test "$ac_cv_func_realpath" = "yes" && extra_objs="$extra_objs realpath.o" |
| 4541 test "$with_xim" = "xlib" && | 6233 |
| 4542 { | 6234 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 |
| 4543 test -n "$verbose" && \ | 6235 echo "configure:6236: checking whether netdb declares h_errno" >&5 |
| 4544 echo " defining XIM_XLIB" | 6236 cat > conftest.$ac_ext <<EOF |
| 4545 echo "#define" XIM_XLIB "1" >> confdefs.h | 6237 #line 6238 "configure" |
| 4546 DEFS="$DEFS -DXIM_XLIB=1" | |
| 4547 ac_sed_defs="${ac_sed_defs}\${ac_dA}XIM_XLIB\${ac_dB}XIM_XLIB\${ac_dC}1\${ac_dD} | |
| 4548 \${ac_uA}XIM_XLIB\${ac_uB}XIM_XLIB\${ac_uC}1\${ac_uD} | |
| 4549 \${ac_eA}XIM_XLIB\${ac_eB}XIM_XLIB\${ac_eC}1\${ac_eD} | |
| 4550 " | |
| 4551 } | |
| 4552 | |
| 4553 test "$with_xim" = "motif" && | |
| 4554 { | |
| 4555 test -n "$verbose" && \ | |
| 4556 echo " defining XIM_MOTIF" | |
| 4557 echo "#define" XIM_MOTIF "1" >> confdefs.h | |
| 4558 DEFS="$DEFS -DXIM_MOTIF=1" | |
| 4559 ac_sed_defs="${ac_sed_defs}\${ac_dA}XIM_MOTIF\${ac_dB}XIM_MOTIF\${ac_dC}1\${ac_dD} | |
| 4560 \${ac_uA}XIM_MOTIF\${ac_uB}XIM_MOTIF\${ac_uC}1\${ac_uD} | |
| 4561 \${ac_eA}XIM_MOTIF\${ac_eB}XIM_MOTIF\${ac_eC}1\${ac_eD} | |
| 4562 " | |
| 4563 } | |
| 4564 | |
| 4565 fi | |
| 4566 # wnn6 implies wnn support | |
| 4567 if test "$with_wnn6" = "yes" ; then | |
| 4568 with_wnn=yes | |
| 4569 fi | |
| 4570 else # Other internationalization features depend on Mule | |
| 4571 with_mule="no" | |
| 4572 for feature in xim canna wnn wnn6 ; do | |
| 4573 if eval "test -n \"\$with_$feature\" -a \"\$with_$feature\" != no" ; then | |
| 4574 echo "configure: warning: --with-$feature ignored: Not valid without Mule support" >&2 | |
| 4575 fi | |
| 4576 eval "with_$feature=no" | |
| 4577 done | |
| 4578 fi | |
| 4579 | |
| 4580 # | |
| 4581 # set defaults for finding WNN includes and libs | |
| 4582 # | |
| 4583 if test "${with_wnn}" = "yes" ; then | |
| 4584 for arg in "-I${wnn_includes}" "-I/usr/X11R6/include/wnn" "-I/usr/include/wnn" | |
| 4585 do | |
| 4586 if test -f `echo "${arg}/wnnerror.h" | sed 's/^\-I//'` ; then | |
| 4587 C_SWITCH_SITE="${C_SWITCH_SITE} ${arg}" | |
| 4588 wnn_includes=${arg} | |
| 4589 break | |
| 4590 fi | |
| 4591 done | |
| 4592 for arg in "-L${wnn_libraries}" "-L/usr/X11R6/lib" "-L/usr/lib" | |
| 4593 do | |
| 4594 if test -f `echo "${arg}/libwnn.a" | sed 's/^\-L//'` ; then | |
| 4595 LD_SWITCH_SITE="${LD_SWITCH_SITE} ${arg}" | |
| 4596 wnn_libraries=${arg} | |
| 4597 break | |
| 4598 fi | |
| 4599 done | |
| 4600 fi | |
| 4601 | |
| 4602 # | |
| 4603 # set defaults for finding Canna includes and libs | |
| 4604 # | |
| 4605 if test "${with_canna}" = "yes" ; then | |
| 4606 for arg in "-I${canna_includes}" "-I/usr/X11R6/include" | |
| 4607 do | |
| 4608 if test -f `echo "${arg}/canna/RK.h" | sed 's/^\-I//'` ; then | |
| 4609 C_SWITCH_SITE="${C_SWITCH_SITE} ${arg}" | |
| 4610 canna_includes=${arg} | |
| 4611 break | |
| 4612 fi | |
| 4613 done | |
| 4614 for arg in "-L${canna_libraries}" "-L/usr/X11R6/lib" | |
| 4615 do | |
| 4616 if test -f `echo "${arg}/libcanna.a" | sed 's/^\-L//'` ; then | |
| 4617 LD_SWITCH_SITE="${LD_SWITCH_SITE} ${arg}" | |
| 4618 canna_libraries=${arg} | |
| 4619 break | |
| 4620 fi | |
| 4621 done | |
| 4622 fi | |
| 4623 | |
| 4624 # If netdb.h doesn't declare h_errno, we must declare it by hand. | |
| 4625 test -n "$silent" || echo "checking for declaration of h_errno in netdb.h" | |
| 4626 cat > conftest.${ac_ext} <<EOF | |
| 4627 #include "confdefs.h" | 6238 #include "confdefs.h" |
| 4628 #include <netdb.h> | 6239 #include <netdb.h> |
| 4629 int main() { return 0; } | 6240 int main() { |
| 4630 int t() { int i = h_errno;; return 0; } | 6241 return h_errno; |
| 4631 EOF | 6242 ; return 0; } |
| 4632 if eval $ac_compile; then | 6243 EOF |
| 4633 rm -rf conftest* | 6244 if { (eval echo configure:6245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 4634 | 6245 rm -rf conftest* |
| 4635 { | 6246 echo "$ac_t""yes" 1>&6 |
| 4636 test -n "$verbose" && \ | 6247 { test "$extra_verbose" = "yes" && cat << \EOF |
| 4637 echo " defining HAVE_H_ERRNO" | 6248 Defining HAVE_H_ERRNO |
| 4638 echo "#define" HAVE_H_ERRNO "1" >> confdefs.h | 6249 EOF |
| 4639 DEFS="$DEFS -DHAVE_H_ERRNO=1" | 6250 cat >> confdefs.h <<\EOF |
| 4640 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_H_ERRNO\${ac_dB}HAVE_H_ERRNO\${ac_dC}1\${ac_dD} | 6251 #define HAVE_H_ERRNO 1 |
| 4641 \${ac_uA}HAVE_H_ERRNO\${ac_uB}HAVE_H_ERRNO\${ac_uC}1\${ac_uD} | 6252 EOF |
| 4642 \${ac_eA}HAVE_H_ERRNO\${ac_eB}HAVE_H_ERRNO\${ac_eC}1\${ac_eD} | 6253 } |
| 4643 " | 6254 |
| 4644 } | 6255 else |
| 4645 | 6256 echo "configure: failed program was:" >&5 |
| 4646 | 6257 cat conftest.$ac_ext >&5 |
| 4647 fi | 6258 rm -rf conftest* |
| 4648 rm -f conftest* | 6259 echo "$ac_t""no" 1>&6 |
| 4649 | 6260 fi |
| 4650 | 6261 rm -f conftest* |
| 4651 test -n "$silent" || echo "checking for sigsetjmp" | 6262 |
| 4652 cat > conftest.${ac_ext} <<EOF | 6263 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 |
| 6264 echo "configure:6265: checking for sigsetjmp" >&5 | |
| 6265 cat > conftest.$ac_ext <<EOF | |
| 6266 #line 6267 "configure" | |
| 4653 #include "confdefs.h" | 6267 #include "confdefs.h" |
| 4654 #include <setjmp.h> | 6268 #include <setjmp.h> |
| 4655 int main() { return 0; } | 6269 int main() { |
| 4656 int t() { sigjmp_buf bar; sigsetjmp (bar, 0);; return 0; } | 6270 sigjmp_buf bar; sigsetjmp (bar, 0); |
| 4657 EOF | 6271 ; return 0; } |
| 4658 if eval $ac_compile; then | 6272 EOF |
| 4659 rm -rf conftest* | 6273 if { (eval echo configure:6274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 4660 | 6274 rm -rf conftest* |
| 4661 { | 6275 echo "$ac_t""yes" 1>&6 |
| 4662 test -n "$verbose" && \ | 6276 { test "$extra_verbose" = "yes" && cat << \EOF |
| 4663 echo " defining HAVE_SIGSETJMP" | 6277 Defining HAVE_SIGSETJMP |
| 4664 echo "#define" HAVE_SIGSETJMP "1" >> confdefs.h | 6278 EOF |
| 4665 DEFS="$DEFS -DHAVE_SIGSETJMP=1" | 6279 cat >> confdefs.h <<\EOF |
| 4666 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SIGSETJMP\${ac_dB}HAVE_SIGSETJMP\${ac_dC}1\${ac_dD} | 6280 #define HAVE_SIGSETJMP 1 |
| 4667 \${ac_uA}HAVE_SIGSETJMP\${ac_uB}HAVE_SIGSETJMP\${ac_uC}1\${ac_uD} | 6281 EOF |
| 4668 \${ac_eA}HAVE_SIGSETJMP\${ac_eB}HAVE_SIGSETJMP\${ac_eC}1\${ac_eD} | 6282 } |
| 4669 " | 6283 |
| 4670 } | 6284 else |
| 4671 | 6285 echo "configure: failed program was:" >&5 |
| 4672 | 6286 cat conftest.$ac_ext >&5 |
| 4673 fi | 6287 rm -rf conftest* |
| 4674 rm -f conftest* | 6288 echo "$ac_t""no" 1>&6 |
| 4675 | 6289 fi |
| 4676 | 6290 rm -f conftest* |
| 4677 test -n "$silent" || echo "checking whether localtime caches TZ" | 6291 |
| 4678 emacs_cv_localtime_cache= | 6292 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 |
| 4679 test -n "$silent" || echo "checking whether cross-compiling" | 6293 echo "configure:6294: checking whether localtime caches TZ" >&5 |
| 4680 # If we cannot run a trivial program, we must be cross compiling. | 6294 |
| 4681 cat > conftest.${ac_ext} <<EOF | 6295 if test "$ac_cv_func_tzset" = "yes"; then |
| 4682 #include "confdefs.h" | 6296 cat > conftest.$ac_ext <<EOF |
| 4683 main(){exit(0);} | 6297 #line 6298 "configure" |
| 4684 EOF | |
| 4685 eval $ac_compile | |
| 4686 if test -s conftest && (./conftest; exit) 2>/dev/null; then | |
| 4687 : | |
| 4688 else | |
| 4689 cross_compiling=1 | |
| 4690 fi | |
| 4691 rm -fr conftest* | |
| 4692 | |
| 4693 if test -n "$cross_compiling" | |
| 4694 then | |
| 4695 # If we have tzset, assume the worst when cross-compiling. | |
| 4696 emacs_cv_localtime_cache=yes | |
| 4697 else | |
| 4698 cat > conftest.${ac_ext} <<EOF | |
| 4699 #include "confdefs.h" | 6298 #include "confdefs.h" |
| 4700 #include <time.h> | 6299 #include <time.h> |
| 4701 #if 1 /* STDC_HEADERS */ | 6300 #if STDC_HEADERS |
| 4702 # include <stdlib.h> | 6301 # include <stdlib.h> |
| 4703 #endif | 6302 #endif |
| 4704 extern char **environ; | 6303 extern char **environ; |
| 4705 unset_TZ () | 6304 unset_TZ () |
| 4706 { | 6305 { |
| 4707 char **from, **to; | 6306 char **from, **to; |
| 4708 for (to = from = environ; (*to = *from); from++) | 6307 for (to = from = environ; (*to = *from); from++) |
| 4709 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | 6308 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) |
| 4710 to++; | 6309 to++; |
| 4711 } | 6310 } |
| 6311 char TZ_GMT0[] = "TZ=GMT0"; | |
| 6312 char TZ_PST8[] = "TZ=PST8"; | |
| 4712 main() | 6313 main() |
| 4713 { | 6314 { |
| 4714 time_t now = time ((time_t *) 0); | 6315 time_t now = time ((time_t *) 0); |
| 4715 int hour_GMT0, hour_unset; | 6316 int hour_GMT0, hour_unset; |
| 4716 if (putenv ("TZ=GMT0") != 0) | 6317 if (putenv (TZ_GMT0) != 0) |
| 4717 exit (1); | 6318 exit (1); |
| 4718 hour_GMT0 = localtime (&now)->tm_hour; | 6319 hour_GMT0 = localtime (&now)->tm_hour; |
| 4719 unset_TZ (); | 6320 unset_TZ (); |
| 4720 hour_unset = localtime (&now)->tm_hour; | 6321 hour_unset = localtime (&now)->tm_hour; |
| 4721 if (putenv ("TZ=PST8") != 0) | 6322 if (putenv (TZ_PST8) != 0) |
| 4722 exit (1); | 6323 exit (1); |
| 4723 if (localtime (&now)->tm_hour == hour_GMT0) | 6324 if (localtime (&now)->tm_hour == hour_GMT0) |
| 4724 exit (1); | 6325 exit (1); |
| 4725 unset_TZ (); | 6326 unset_TZ (); |
| 4726 if (localtime (&now)->tm_hour != hour_unset) | 6327 if (localtime (&now)->tm_hour != hour_unset) |
| 4727 exit (1); | 6328 exit (1); |
| 4728 exit (0); | 6329 exit (0); |
| 4729 } | 6330 } |
| 4730 EOF | 6331 EOF |
| 4731 eval $ac_compile | 6332 if { (eval echo configure:6333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
| 4732 if test -s conftest && (./conftest; exit) 2>/dev/null; then | 6333 then |
| 4733 emacs_cv_localtime_cache=no | 6334 emacs_cv_localtime_cache=no |
| 4734 | 6335 else |
| 4735 else | 6336 echo "configure: failed program was:" >&5 |
| 6337 cat conftest.$ac_ext >&5 | |
| 6338 rm -fr conftest* | |
| 4736 emacs_cv_localtime_cache=yes | 6339 emacs_cv_localtime_cache=yes |
| 4737 fi | 6340 fi |
| 4738 fi | |
| 4739 rm -fr conftest* | 6341 rm -fr conftest* |
| 4740 test -n "$verbose" && echo " "$emacs_cv_localtime_cache"" | 6342 else |
| 4741 if test x$emacs_cv_localtime_cache = xyes; then | 6343 # If we lack tzset, report that localtime does not cache TZ, |
| 4742 | 6344 # since we can't invalidate the cache if we don't have tzset. |
| 4743 { | 6345 emacs_cv_localtime_cache=no |
| 4744 test -n "$verbose" && \ | 6346 fi |
| 4745 echo " defining LOCALTIME_CACHE" | 6347 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6 |
| 4746 echo "#define" LOCALTIME_CACHE "1" >> confdefs.h | 6348 if test $emacs_cv_localtime_cache = yes; then |
| 4747 DEFS="$DEFS -DLOCALTIME_CACHE=1" | 6349 { test "$extra_verbose" = "yes" && cat << \EOF |
| 4748 ac_sed_defs="${ac_sed_defs}\${ac_dA}LOCALTIME_CACHE\${ac_dB}LOCALTIME_CACHE\${ac_dC}1\${ac_dD} | 6350 Defining LOCALTIME_CACHE |
| 4749 \${ac_uA}LOCALTIME_CACHE\${ac_uB}LOCALTIME_CACHE\${ac_uC}1\${ac_uD} | 6351 EOF |
| 4750 \${ac_eA}LOCALTIME_CACHE\${ac_eB}LOCALTIME_CACHE\${ac_eC}1\${ac_eD} | 6352 cat >> confdefs.h <<\EOF |
| 4751 " | 6353 #define LOCALTIME_CACHE 1 |
| 4752 } | 6354 EOF |
| 4753 | 6355 } |
| 4754 fi | 6356 |
| 4755 | 6357 fi |
| 4756 if test "x$HAVE_TIMEVAL" = xyes; then | 6358 |
| 4757 test -n "$silent" || echo "checking for whether gettimeofday can't accept two arguments" | 6359 if test "$HAVE_TIMEVAL" = "yes"; then |
| 4758 cat > conftest.${ac_ext} <<EOF | 6360 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6 |
| 6361 echo "configure:6362: checking whether gettimeofday cannot accept two arguments" >&5 | |
| 6362 cat > conftest.$ac_ext <<EOF | |
| 6363 #line 6364 "configure" | |
| 4759 #include "confdefs.h" | 6364 #include "confdefs.h" |
| 4760 | 6365 |
| 4761 #ifdef TIME_WITH_SYS_TIME | 6366 #ifdef TIME_WITH_SYS_TIME |
| 4762 #include <sys/time.h> | 6367 #include <sys/time.h> |
| 4763 #include <time.h> | 6368 #include <time.h> |
| 4767 #else | 6372 #else |
| 4768 #include <time.h> | 6373 #include <time.h> |
| 4769 #endif | 6374 #endif |
| 4770 #endif | 6375 #endif |
| 4771 | 6376 |
| 4772 int main() { return 0; } | 6377 int main() { |
| 4773 int t() { | 6378 |
| 4774 struct timeval time; | 6379 struct timeval time; |
| 4775 struct timezone dummy; | 6380 struct timezone dummy; |
| 4776 gettimeofday (&time, &dummy); | 6381 gettimeofday (&time, &dummy); |
| 6382 | |
| 4777 ; return 0; } | 6383 ; return 0; } |
| 4778 EOF | 6384 EOF |
| 4779 if eval $ac_compile; then | 6385 if { (eval echo configure:6386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 4780 rm -rf conftest* | 6386 rm -rf conftest* |
| 4781 test -n "$verbose" && echo " no" | 6387 echo "$ac_t""no" 1>&6 |
| 4782 | 6388 else |
| 4783 else | 6389 echo "configure: failed program was:" >&5 |
| 4784 rm -rf conftest* | 6390 cat conftest.$ac_ext >&5 |
| 4785 test -n "$verbose" && echo " yes" | 6391 rm -rf conftest* |
| 4786 | 6392 echo "$ac_t""yes" 1>&6 |
| 4787 { | 6393 { test "$extra_verbose" = "yes" && cat << \EOF |
| 4788 test -n "$verbose" && \ | 6394 Defining GETTIMEOFDAY_ONE_ARGUMENT |
| 4789 echo " defining GETTIMEOFDAY_ONE_ARGUMENT" | 6395 EOF |
| 4790 echo "#define" GETTIMEOFDAY_ONE_ARGUMENT "1" >> confdefs.h | 6396 cat >> confdefs.h <<\EOF |
| 4791 DEFS="$DEFS -DGETTIMEOFDAY_ONE_ARGUMENT=1" | 6397 #define GETTIMEOFDAY_ONE_ARGUMENT 1 |
| 4792 ac_sed_defs="${ac_sed_defs}\${ac_dA}GETTIMEOFDAY_ONE_ARGUMENT\${ac_dB}GETTIMEOFDAY_ONE_ARGUMENT\${ac_dC}1\${ac_dD} | 6398 EOF |
| 4793 \${ac_uA}GETTIMEOFDAY_ONE_ARGUMENT\${ac_uB}GETTIMEOFDAY_ONE_ARGUMENT\${ac_uC}1\${ac_uD} | 6399 } |
| 4794 \${ac_eA}GETTIMEOFDAY_ONE_ARGUMENT\${ac_eB}GETTIMEOFDAY_ONE_ARGUMENT\${ac_eC}1\${ac_eD} | 6400 |
| 4795 " | 6401 fi |
| 4796 } | 6402 rm -f conftest* |
| 4797 | 6403 fi |
| 4798 fi | 6404 |
| 4799 rm -f conftest* | 6405 |
| 4800 | 6406 echo $ac_n "checking for inline""... $ac_c" 1>&6 |
| 4801 fi | 6407 echo "configure:6408: checking for inline" >&5 |
| 4802 | 6408 |
| 4803 test -n "$silent" || echo "checking for whether inline functions are supported" | 6409 ac_cv_c_inline=no |
| 4804 cat > conftest.${ac_ext} <<EOF | 6410 for ac_kw in inline __inline__ __inline; do |
| 4805 #include "confdefs.h" | 6411 cat > conftest.$ac_ext <<EOF |
| 4806 | 6412 #line 6413 "configure" |
| 4807 int main() { return 0; } | 6413 #include "confdefs.h" |
| 4808 int t() { | 6414 |
| 4809 inline int | 6415 int main() { |
| 4810 foo () | 6416 } $ac_kw foo() { |
| 4811 { | |
| 4812 return 0; | |
| 4813 } | |
| 4814 ; return 0; } | 6417 ; return 0; } |
| 4815 EOF | 6418 EOF |
| 4816 if eval $ac_compile; then | 6419 if { (eval echo configure:6420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 4817 rm -rf conftest* | 6420 rm -rf conftest* |
| 4818 | 6421 ac_cv_c_inline=$ac_kw; break |
| 4819 { | 6422 else |
| 4820 test -n "$verbose" && \ | 6423 echo "configure: failed program was:" >&5 |
| 4821 echo " defining HAVE_INLINE" | 6424 cat conftest.$ac_ext >&5 |
| 4822 echo "#define" HAVE_INLINE "1" >> confdefs.h | 6425 fi |
| 4823 DEFS="$DEFS -DHAVE_INLINE=1" | 6426 rm -f conftest* |
| 4824 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_INLINE\${ac_dB}HAVE_INLINE\${ac_dC}1\${ac_dD} | 6427 done |
| 4825 \${ac_uA}HAVE_INLINE\${ac_uB}HAVE_INLINE\${ac_uC}1\${ac_uD} | 6428 |
| 4826 \${ac_eA}HAVE_INLINE\${ac_eB}HAVE_INLINE\${ac_eC}1\${ac_eD} | 6429 |
| 4827 " | 6430 echo "$ac_t""$ac_cv_c_inline" 1>&6 |
| 4828 } | 6431 case "$ac_cv_c_inline" in |
| 4829 | 6432 inline | yes) ;; |
| 4830 | 6433 no) { test "$extra_verbose" = "yes" && cat << \EOF |
| 4831 fi | 6434 Defining inline = |
| 4832 rm -f conftest* | 6435 EOF |
| 4833 | 6436 cat >> confdefs.h <<\EOF |
| 4834 | 6437 #define inline |
| 4835 # This does all sorts of magic to make sure alloca() works OK. | 6438 EOF |
| 4836 # It might even add some junk to the top of <config.h>. | 6439 } |
| 4837 # (I don't understand what goes on here, but it seems to work.) | 6440 ;; |
| 6441 *) { test "$extra_verbose" = "yes" && cat << EOF | |
| 6442 Defining inline = $ac_cv_c_inline | |
| 6443 EOF | |
| 6444 cat >> confdefs.h <<EOF | |
| 6445 #define inline $ac_cv_c_inline | |
| 6446 EOF | |
| 6447 } | |
| 6448 ;; | |
| 6449 esac | |
| 6450 | |
| 6451 test "$ac_cv_c_inline" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF | |
| 6452 Defining HAVE_INLINE | |
| 6453 EOF | |
| 6454 cat >> confdefs.h <<\EOF | |
| 6455 #define HAVE_INLINE 1 | |
| 6456 EOF | |
| 6457 } | |
| 6458 | |
| 6459 | |
| 6460 | |
| 4838 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 6461 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 4839 # for constant arguments. Useless! | 6462 # for constant arguments. Useless! |
| 4840 test -n "$silent" || echo "checking for working alloca.h" | 6463 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
| 4841 cat > conftest.${ac_ext} <<EOF | 6464 echo "configure:6465: checking for working alloca.h" >&5 |
| 6465 | |
| 6466 cat > conftest.$ac_ext <<EOF | |
| 6467 #line 6468 "configure" | |
| 4842 #include "confdefs.h" | 6468 #include "confdefs.h" |
| 4843 #include <alloca.h> | 6469 #include <alloca.h> |
| 4844 int main() { return 0; } | 6470 int main() { |
| 4845 int t() { char *p = alloca(2 * sizeof(int));; return 0; } | 6471 char *p = alloca(2 * sizeof(int)); |
| 4846 EOF | 6472 ; return 0; } |
| 4847 if eval $ac_compile; then | 6473 EOF |
| 4848 rm -rf conftest* | 6474 if { (eval echo configure:6475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 4849 | 6475 rm -rf conftest* |
| 4850 { | 6476 ac_cv_header_alloca_h=yes |
| 4851 test -n "$verbose" && \ | 6477 else |
| 4852 echo " defining HAVE_ALLOCA_H" | 6478 echo "configure: failed program was:" >&5 |
| 4853 echo "#define" HAVE_ALLOCA_H "1" >> confdefs.h | 6479 cat conftest.$ac_ext >&5 |
| 4854 DEFS="$DEFS -DHAVE_ALLOCA_H=1" | 6480 rm -rf conftest* |
| 4855 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA_H\${ac_dB}HAVE_ALLOCA_H\${ac_dC}1\${ac_dD} | 6481 ac_cv_header_alloca_h=no |
| 4856 \${ac_uA}HAVE_ALLOCA_H\${ac_uB}HAVE_ALLOCA_H\${ac_uC}1\${ac_uD} | 6482 fi |
| 4857 \${ac_eA}HAVE_ALLOCA_H\${ac_eB}HAVE_ALLOCA_H\${ac_eC}1\${ac_eD} | 6483 rm -f conftest* |
| 4858 " | 6484 |
| 4859 } | 6485 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
| 4860 | 6486 if test $ac_cv_header_alloca_h = yes; then |
| 4861 | 6487 { test "$extra_verbose" = "yes" && cat << \EOF |
| 4862 fi | 6488 Defining HAVE_ALLOCA_H |
| 4863 rm -f conftest* | 6489 EOF |
| 4864 | 6490 cat >> confdefs.h <<\EOF |
| 4865 ac_decl="#ifdef __GNUC__ | 6491 #define HAVE_ALLOCA_H 1 |
| 4866 #define alloca __builtin_alloca | 6492 EOF |
| 6493 } | |
| 6494 | |
| 6495 fi | |
| 6496 | |
| 6497 echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
| 6498 echo "configure:6499: checking for alloca" >&5 | |
| 6499 | |
| 6500 cat > conftest.$ac_ext <<EOF | |
| 6501 #line 6502 "configure" | |
| 6502 #include "confdefs.h" | |
| 6503 | |
| 6504 #ifdef __GNUC__ | |
| 6505 # define alloca __builtin_alloca | |
| 4867 #else | 6506 #else |
| 4868 #if HAVE_ALLOCA_H | 6507 # if HAVE_ALLOCA_H |
| 4869 #include <alloca.h> | 6508 # include <alloca.h> |
| 4870 #else | 6509 # else |
| 4871 #ifdef _AIX | 6510 # ifdef _AIX |
| 4872 #pragma alloca | 6511 #pragma alloca |
| 4873 #else | 6512 # else |
| 6513 # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
| 4874 char *alloca (); | 6514 char *alloca (); |
| 6515 # endif | |
| 6516 # endif | |
| 6517 # endif | |
| 4875 #endif | 6518 #endif |
| 4876 #endif | 6519 |
| 4877 #endif | 6520 int main() { |
| 4878 " | 6521 char *p = (char *) alloca(1); |
| 4879 test -n "$silent" || echo "checking for alloca" | |
| 4880 cat > conftest.${ac_ext} <<EOF | |
| 4881 #include "confdefs.h" | |
| 4882 $ac_decl | |
| 4883 int main() { return 0; } | |
| 4884 int t() { char *p = (char *) alloca(1);; return 0; } | |
| 4885 EOF | |
| 4886 if eval $ac_compile; then | |
| 4887 rm -rf conftest* | |
| 4888 | |
| 4889 { | |
| 4890 test -n "$verbose" && \ | |
| 4891 echo " defining HAVE_ALLOCA" | |
| 4892 echo "#define" HAVE_ALLOCA "1" >> confdefs.h | |
| 4893 DEFS="$DEFS -DHAVE_ALLOCA=1" | |
| 4894 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA\${ac_dB}HAVE_ALLOCA\${ac_dC}1\${ac_dD} | |
| 4895 \${ac_uA}HAVE_ALLOCA\${ac_uB}HAVE_ALLOCA\${ac_uC}1\${ac_uD} | |
| 4896 \${ac_eA}HAVE_ALLOCA\${ac_eB}HAVE_ALLOCA\${ac_eC}1\${ac_eD} | |
| 4897 " | |
| 4898 } | |
| 4899 | |
| 4900 | |
| 4901 else | |
| 4902 rm -rf conftest* | |
| 4903 ac_alloca_missing=1 | |
| 4904 cat > conftest.${ac_ext} <<EOF | |
| 4905 #include "confdefs.h" | |
| 4906 | |
| 4907 #if defined(CRAY) && ! defined(CRAY2) | |
| 4908 winnitude | |
| 4909 #else | |
| 4910 lossage | |
| 4911 #endif | |
| 4912 | |
| 4913 EOF | |
| 4914 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1" | |
| 4915 if egrep "winnitude" conftest.out >/dev/null 2>&1; then | |
| 4916 rm -rf conftest* | |
| 4917 test -n "$silent" || echo "checking for _getb67" | |
| 4918 cat > conftest.${ac_ext} <<EOF | |
| 4919 #include "confdefs.h" | |
| 4920 #include <ctype.h> | |
| 4921 int main() { return 0; } | |
| 4922 int t() { | |
| 4923 /* The GNU C library defines this for functions which it implements | |
| 4924 to always fail with ENOSYS. Some functions are actually named | |
| 4925 something starting with __ and the normal name is an alias. */ | |
| 4926 #if defined (__stub__getb67) || defined (__stub____getb67) | |
| 4927 choke me | |
| 4928 #else | |
| 4929 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 4930 extern char _getb67(); _getb67(); | |
| 4931 #endif | |
| 4932 ; return 0; } | 6522 ; return 0; } |
| 4933 EOF | 6523 EOF |
| 4934 if eval $ac_compile; then | 6524 if { (eval echo configure:6525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 4935 rm -rf conftest* | 6525 rm -rf conftest* |
| 4936 { | 6526 ac_cv_func_alloca_works=yes |
| 4937 test -n "$verbose" && \ | 6527 else |
| 4938 echo " defining" CRAY_STACKSEG_END to be "_getb67" | 6528 echo "configure: failed program was:" >&5 |
| 4939 echo "#define" CRAY_STACKSEG_END "_getb67" >> confdefs.h | 6529 cat conftest.$ac_ext >&5 |
| 4940 DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67" | 6530 rm -rf conftest* |
| 4941 ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}_getb67\${ac_dD} | 6531 ac_cv_func_alloca_works=no |
| 4942 \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}_getb67\${ac_uD} | 6532 fi |
| 4943 \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}_getb67\${ac_eD} | 6533 rm -f conftest* |
| 4944 " | 6534 |
| 4945 } | 6535 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
| 4946 | 6536 if test $ac_cv_func_alloca_works = yes; then |
| 4947 | 6537 { test "$extra_verbose" = "yes" && cat << \EOF |
| 4948 else | 6538 Defining HAVE_ALLOCA |
| 4949 rm -rf conftest* | 6539 EOF |
| 4950 test -n "$silent" || echo "checking for GETB67" | 6540 cat >> confdefs.h <<\EOF |
| 4951 cat > conftest.${ac_ext} <<EOF | 6541 #define HAVE_ALLOCA 1 |
| 4952 #include "confdefs.h" | 6542 EOF |
| 4953 #include <ctype.h> | 6543 } |
| 4954 int main() { return 0; } | 6544 |
| 4955 int t() { | 6545 fi |
| 4956 /* The GNU C library defines this for functions which it implements | 6546 |
| 4957 to always fail with ENOSYS. Some functions are actually named | 6547 if test $ac_cv_func_alloca_works = no; then |
| 4958 something starting with __ and the normal name is an alias. */ | |
| 4959 #if defined (__stub_GETB67) || defined (__stub___GETB67) | |
| 4960 choke me | |
| 4961 #else | |
| 4962 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 4963 extern char GETB67(); GETB67(); | |
| 4964 #endif | |
| 4965 ; return 0; } | |
| 4966 EOF | |
| 4967 if eval $ac_compile; then | |
| 4968 rm -rf conftest* | |
| 4969 { | |
| 4970 test -n "$verbose" && \ | |
| 4971 echo " defining" CRAY_STACKSEG_END to be "GETB67" | |
| 4972 echo "#define" CRAY_STACKSEG_END "GETB67" >> confdefs.h | |
| 4973 DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67" | |
| 4974 ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}GETB67\${ac_dD} | |
| 4975 \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}GETB67\${ac_uD} | |
| 4976 \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}GETB67\${ac_eD} | |
| 4977 " | |
| 4978 } | |
| 4979 | |
| 4980 | |
| 4981 else | |
| 4982 rm -rf conftest* | |
| 4983 test -n "$silent" || echo "checking for getb67" | |
| 4984 cat > conftest.${ac_ext} <<EOF | |
| 4985 #include "confdefs.h" | |
| 4986 #include <ctype.h> | |
| 4987 int main() { return 0; } | |
| 4988 int t() { | |
| 4989 /* The GNU C library defines this for functions which it implements | |
| 4990 to always fail with ENOSYS. Some functions are actually named | |
| 4991 something starting with __ and the normal name is an alias. */ | |
| 4992 #if defined (__stub_getb67) || defined (__stub___getb67) | |
| 4993 choke me | |
| 4994 #else | |
| 4995 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 4996 extern char getb67(); getb67(); | |
| 4997 #endif | |
| 4998 ; return 0; } | |
| 4999 EOF | |
| 5000 if eval $ac_compile; then | |
| 5001 rm -rf conftest* | |
| 5002 { | |
| 5003 test -n "$verbose" && \ | |
| 5004 echo " defining" CRAY_STACKSEG_END to be "getb67" | |
| 5005 echo "#define" CRAY_STACKSEG_END "getb67" >> confdefs.h | |
| 5006 DEFS="$DEFS -DCRAY_STACKSEG_END=getb67" | |
| 5007 ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}getb67\${ac_dD} | |
| 5008 \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}getb67\${ac_uD} | |
| 5009 \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}getb67\${ac_eD} | |
| 5010 " | |
| 5011 } | |
| 5012 | |
| 5013 | |
| 5014 fi | |
| 5015 rm -f conftest* | |
| 5016 | |
| 5017 fi | |
| 5018 rm -f conftest* | |
| 5019 | |
| 5020 fi | |
| 5021 rm -f conftest* | |
| 5022 | |
| 5023 | |
| 5024 fi | |
| 5025 rm -f conftest* | |
| 5026 | |
| 5027 | |
| 5028 fi | |
| 5029 rm -f conftest* | |
| 5030 | |
| 5031 if test -n "$ac_alloca_missing"; then | |
| 5032 # The SVR3 libPW and SVR4 libucb both contain incompatible functions | 6548 # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 5033 # that cause trouble. Some versions do not even contain alloca or | 6549 # that cause trouble. Some versions do not even contain alloca or |
| 5034 # contain a buggy version. If you still want to use their alloca, | 6550 # contain a buggy version. If you still want to use their alloca, |
| 5035 # use ar to extract alloca.o from them instead of compiling alloca.c. | 6551 # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 5036 ALLOCA=alloca.o | 6552 ALLOCA=alloca.o |
| 5037 | 6553 { test "$extra_verbose" = "yes" && cat << \EOF |
| 5038 { | 6554 Defining C_ALLOCA |
| 5039 test -n "$verbose" && \ | 6555 EOF |
| 5040 echo " defining C_ALLOCA" | 6556 cat >> confdefs.h <<\EOF |
| 5041 echo "#define" C_ALLOCA "1" >> confdefs.h | 6557 #define C_ALLOCA 1 |
| 5042 DEFS="$DEFS -DC_ALLOCA=1" | 6558 EOF |
| 5043 ac_sed_defs="${ac_sed_defs}\${ac_dA}C_ALLOCA\${ac_dB}C_ALLOCA\${ac_dC}1\${ac_dD} | 6559 } |
| 5044 \${ac_uA}C_ALLOCA\${ac_uB}C_ALLOCA\${ac_uC}1\${ac_uD} | 6560 |
| 5045 \${ac_eA}C_ALLOCA\${ac_eB}C_ALLOCA\${ac_eC}1\${ac_eD} | 6561 |
| 5046 " | 6562 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
| 5047 } | 6563 echo "configure:6564: checking whether alloca needs Cray hooks" >&5 |
| 5048 | 6564 |
| 5049 | 6565 cat > conftest.$ac_ext <<EOF |
| 5050 test -n "$silent" || echo "checking stack direction for C alloca" | 6566 #line 6567 "configure" |
| 5051 if test -n "$cross_compiling" | 6567 #include "confdefs.h" |
| 5052 then | 6568 #if defined(CRAY) && ! defined(CRAY2) |
| 5053 | 6569 webecray |
| 5054 { | 6570 #else |
| 5055 test -n "$verbose" && \ | 6571 wenotbecray |
| 5056 echo " defining" STACK_DIRECTION to be "0" | 6572 #endif |
| 5057 echo "#define" STACK_DIRECTION "0" >> confdefs.h | 6573 |
| 5058 DEFS="$DEFS -DSTACK_DIRECTION=0" | 6574 EOF |
| 5059 ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}0\${ac_dD} | 6575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5060 \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}0\${ac_uD} | 6576 egrep "webecray" >/dev/null 2>&1; then |
| 5061 \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}0\${ac_eD} | 6577 rm -rf conftest* |
| 5062 " | 6578 ac_cv_os_cray=yes |
| 5063 } | 6579 else |
| 5064 | 6580 rm -rf conftest* |
| 5065 else | 6581 ac_cv_os_cray=no |
| 5066 cat > conftest.${ac_ext} <<EOF | 6582 fi |
| 6583 rm -f conftest* | |
| 6584 | |
| 6585 | |
| 6586 echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
| 6587 if test $ac_cv_os_cray = yes; then | |
| 6588 for ac_func in _getb67 GETB67 getb67; do | |
| 6589 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
| 6590 echo "configure:6591: checking for $ac_func" >&5 | |
| 6591 | |
| 6592 cat > conftest.$ac_ext <<EOF | |
| 6593 #line 6594 "configure" | |
| 6594 #include "confdefs.h" | |
| 6595 /* System header to define __stub macros and hopefully few prototypes, | |
| 6596 which can conflict with char $ac_func(); below. */ | |
| 6597 #include <assert.h> | |
| 6598 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 6599 /* We use char because int might match the return type of a gcc2 | |
| 6600 builtin and then its argument prototype would still apply. */ | |
| 6601 char $ac_func(); | |
| 6602 | |
| 6603 int main() { | |
| 6604 | |
| 6605 /* The GNU C library defines this for functions which it implements | |
| 6606 to always fail with ENOSYS. Some functions are actually named | |
| 6607 something starting with __ and the normal name is an alias. */ | |
| 6608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
| 6609 choke me | |
| 6610 #else | |
| 6611 $ac_func(); | |
| 6612 #endif | |
| 6613 | |
| 6614 ; return 0; } | |
| 6615 EOF | |
| 6616 if { (eval echo configure:6617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 6617 rm -rf conftest* | |
| 6618 eval "ac_cv_func_$ac_func=yes" | |
| 6619 else | |
| 6620 echo "configure: failed program was:" >&5 | |
| 6621 cat conftest.$ac_ext >&5 | |
| 6622 rm -rf conftest* | |
| 6623 eval "ac_cv_func_$ac_func=no" | |
| 6624 fi | |
| 6625 rm -f conftest* | |
| 6626 | |
| 6627 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
| 6628 echo "$ac_t""yes" 1>&6 | |
| 6629 { test "$extra_verbose" = "yes" && cat << EOF | |
| 6630 Defining CRAY_STACKSEG_END = $ac_func | |
| 6631 EOF | |
| 6632 cat >> confdefs.h <<EOF | |
| 6633 #define CRAY_STACKSEG_END $ac_func | |
| 6634 EOF | |
| 6635 } | |
| 6636 | |
| 6637 break | |
| 6638 else | |
| 6639 echo "$ac_t""no" 1>&6 | |
| 6640 fi | |
| 6641 | |
| 6642 done | |
| 6643 fi | |
| 6644 | |
| 6645 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
| 6646 echo "configure:6647: checking stack direction for C alloca" >&5 | |
| 6647 | |
| 6648 cat > conftest.$ac_ext <<EOF | |
| 6649 #line 6650 "configure" | |
| 5067 #include "confdefs.h" | 6650 #include "confdefs.h" |
| 5068 find_stack_direction () | 6651 find_stack_direction () |
| 5069 { | 6652 { |
| 5070 static char *addr = 0; | 6653 static char *addr = 0; |
| 5071 auto char dummy; | 6654 auto char dummy; |
| 5080 main () | 6663 main () |
| 5081 { | 6664 { |
| 5082 exit (find_stack_direction() < 0); | 6665 exit (find_stack_direction() < 0); |
| 5083 } | 6666 } |
| 5084 EOF | 6667 EOF |
| 5085 eval $ac_compile | 6668 if { (eval echo configure:6669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
| 5086 if test -s conftest && (./conftest; exit) 2>/dev/null; then | 6669 then |
| 5087 | 6670 ac_cv_c_stack_direction=1 |
| 5088 { | 6671 else |
| 5089 test -n "$verbose" && \ | 6672 echo "configure: failed program was:" >&5 |
| 5090 echo " defining" STACK_DIRECTION to be "1" | 6673 cat conftest.$ac_ext >&5 |
| 5091 echo "#define" STACK_DIRECTION "1" >> confdefs.h | 6674 rm -fr conftest* |
| 5092 DEFS="$DEFS -DSTACK_DIRECTION=1" | 6675 ac_cv_c_stack_direction=-1 |
| 5093 ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}1\${ac_dD} | |
| 5094 \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}1\${ac_uD} | |
| 5095 \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}1\${ac_eD} | |
| 5096 " | |
| 5097 } | |
| 5098 | |
| 5099 | |
| 5100 else | |
| 5101 | |
| 5102 { | |
| 5103 test -n "$verbose" && \ | |
| 5104 echo " defining" STACK_DIRECTION to be "-1" | |
| 5105 echo "#define" STACK_DIRECTION "-1" >> confdefs.h | |
| 5106 DEFS="$DEFS -DSTACK_DIRECTION=-1" | |
| 5107 ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}-1\${ac_dD} | |
| 5108 \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}-1\${ac_uD} | |
| 5109 \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}-1\${ac_eD} | |
| 5110 " | |
| 5111 } | |
| 5112 | |
| 5113 fi | |
| 5114 fi | 6676 fi |
| 5115 rm -fr conftest* | 6677 rm -fr conftest* |
| 5116 fi | 6678 |
| 5117 | 6679 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
| 5118 | 6680 { test "$extra_verbose" = "yes" && cat << EOF |
| 5119 # Check whether vfork exists and works correctly. (This does more | 6681 Defining STACK_DIRECTION = $ac_cv_c_stack_direction |
| 5120 # than just check for its existence.) If so, it defines HAVE_VFORK_H. | 6682 EOF |
| 5121 # If not, it defines vfork to be fork. | 6683 cat >> confdefs.h <<EOF |
| 5122 test -n "$silent" || echo "checking for pid_t in sys/types.h" | 6684 #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 5123 echo '#include "confdefs.h" | 6685 EOF |
| 5124 #include <sys/types.h>' > conftest.${ac_ext} | 6686 } |
| 5125 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1" | 6687 |
| 5126 if egrep "pid_t" conftest.out >/dev/null 2>&1; then | 6688 fi |
| 5127 : | 6689 |
| 5128 else | 6690 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" |
| 5129 rm -rf conftest* | 6691 |
| 5130 | 6692 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
| 5131 { | 6693 echo "configure:6694: checking for pid_t" >&5 |
| 5132 test -n "$verbose" && \ | 6694 |
| 5133 echo " defining" pid_t to be "int" | 6695 cat > conftest.$ac_ext <<EOF |
| 5134 echo "#define" pid_t "int" >> confdefs.h | 6696 #line 6697 "configure" |
| 5135 DEFS="$DEFS -Dpid_t=int" | 6697 #include "confdefs.h" |
| 5136 ac_sed_defs="${ac_sed_defs}\${ac_dA}pid_t\${ac_dB}pid_t\${ac_dC}int\${ac_dD} | 6698 #include <sys/types.h> |
| 5137 \${ac_uA}pid_t\${ac_uB}pid_t\${ac_uC}int\${ac_uD} | 6699 #if STDC_HEADERS |
| 5138 \${ac_eA}pid_t\${ac_eB}pid_t\${ac_eC}int\${ac_eD} | 6700 #include <stdlib.h> |
| 5139 " | 6701 #include <stddef.h> |
| 5140 } | 6702 #endif |
| 5141 | 6703 EOF |
| 5142 fi | 6704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5143 rm -f conftest* | 6705 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 5144 | 6706 rm -rf conftest* |
| 5145 test -n "$silent" || echo "checking for vfork.h" | 6707 ac_cv_type_pid_t=yes |
| 5146 cat > conftest.${ac_ext} <<EOF | 6708 else |
| 6709 rm -rf conftest* | |
| 6710 ac_cv_type_pid_t=no | |
| 6711 fi | |
| 6712 rm -f conftest* | |
| 6713 | |
| 6714 echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
| 6715 if test $ac_cv_type_pid_t = no; then | |
| 6716 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 6717 Defining pid_t = int | |
| 6718 EOF | |
| 6719 cat >> confdefs.h <<\EOF | |
| 6720 #define pid_t int | |
| 6721 EOF | |
| 6722 } | |
| 6723 | |
| 6724 fi | |
| 6725 | |
| 6726 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | |
| 6727 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | |
| 6728 echo "configure:6729: checking for vfork.h" >&5 | |
| 6729 | |
| 6730 cat > conftest.$ac_ext <<EOF | |
| 6731 #line 6732 "configure" | |
| 5147 #include "confdefs.h" | 6732 #include "confdefs.h" |
| 5148 #include <vfork.h> | 6733 #include <vfork.h> |
| 5149 EOF | 6734 EOF |
| 5150 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | 6735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5151 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | 6736 { (eval echo configure:6737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 5152 echo "$ac_err" | 6737 ac_err=`grep -v '^ *+' conftest.out` |
| 5153 fi | |
| 5154 if test -z "$ac_err"; then | 6738 if test -z "$ac_err"; then |
| 5155 rm -rf conftest* | 6739 rm -rf conftest* |
| 5156 | 6740 eval "ac_cv_header_$ac_safe=yes" |
| 5157 { | 6741 else |
| 5158 test -n "$verbose" && \ | 6742 echo "$ac_err" >&5 |
| 5159 echo " defining HAVE_VFORK_H" | 6743 echo "configure: failed program was:" >&5 |
| 5160 echo "#define" HAVE_VFORK_H "1" >> confdefs.h | 6744 cat conftest.$ac_ext >&5 |
| 5161 DEFS="$DEFS -DHAVE_VFORK_H=1" | 6745 rm -rf conftest* |
| 5162 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_VFORK_H\${ac_dB}HAVE_VFORK_H\${ac_dC}1\${ac_dD} | 6746 eval "ac_cv_header_$ac_safe=no" |
| 5163 \${ac_uA}HAVE_VFORK_H\${ac_uB}HAVE_VFORK_H\${ac_uC}1\${ac_uD} | 6747 fi |
| 5164 \${ac_eA}HAVE_VFORK_H\${ac_eB}HAVE_VFORK_H\${ac_eC}1\${ac_eD} | 6748 rm -f conftest* |
| 5165 " | 6749 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5166 } | 6750 echo "$ac_t""yes" 1>&6 |
| 5167 | 6751 { test "$extra_verbose" = "yes" && cat << \EOF |
| 5168 | 6752 Defining HAVE_VFORK_H |
| 5169 fi | 6753 EOF |
| 5170 rm -f conftest* | 6754 cat >> confdefs.h <<\EOF |
| 5171 | 6755 #define HAVE_VFORK_H 1 |
| 5172 test -n "$silent" || echo "checking for working vfork" | 6756 EOF |
| 5173 | 6757 } |
| 5174 cat > conftest.${ac_ext} <<EOF | 6758 |
| 6759 else | |
| 6760 echo "$ac_t""no" 1>&6 | |
| 6761 fi | |
| 6762 | |
| 6763 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | |
| 6764 echo "configure:6765: checking for working vfork" >&5 | |
| 6765 | |
| 6766 cat > conftest.$ac_ext <<EOF | |
| 6767 #line 6768 "configure" | |
| 5175 #include "confdefs.h" | 6768 #include "confdefs.h" |
| 5176 /* Thanks to Paul Eggert for this test. */ | 6769 /* Thanks to Paul Eggert for this test. */ |
| 5177 #include <stdio.h> | 6770 #include <stdio.h> |
| 5178 #include <sys/types.h> | 6771 #include <sys/types.h> |
| 5179 #include <sys/stat.h> | 6772 #include <sys/stat.h> |
| 5180 #include <signal.h> | |
| 5181 #ifdef HAVE_UNISTD_H | 6773 #ifdef HAVE_UNISTD_H |
| 5182 #include <unistd.h> | 6774 #include <unistd.h> |
| 5183 #endif | 6775 #endif |
| 5184 #ifdef HAVE_VFORK_H | 6776 #ifdef HAVE_VFORK_H |
| 5185 #include <vfork.h> | 6777 #include <vfork.h> |
| 5186 #endif | 6778 #endif |
| 5187 static int signalled; | 6779 /* On some sparc systems, changes by the child to local and incoming |
| 5188 static RETSIGTYPE catch (s) int s; { signalled = 1; } | 6780 argument registers are propagated back to the parent. |
| 6781 The compiler is told about this with #include <vfork.h>, | |
| 6782 but some compilers (e.g. gcc -O) don't grok <vfork.h>. | |
| 6783 Test for this by using a static variable whose address | |
| 6784 is put into a register that is clobbered by the vfork. */ | |
| 6785 static | |
| 6786 #ifdef __cplusplus | |
| 6787 sparc_address_test (int arg) | |
| 6788 #else | |
| 6789 sparc_address_test (arg) int arg; | |
| 6790 #endif | |
| 6791 { | |
| 6792 static pid_t child; | |
| 6793 if (!child) { | |
| 6794 child = vfork (); | |
| 6795 if (child < 0) { | |
| 6796 perror ("vfork"); | |
| 6797 _exit(2); | |
| 6798 } | |
| 6799 if (!child) { | |
| 6800 arg = getpid(); | |
| 6801 write(-1, "", 0); | |
| 6802 _exit (arg); | |
| 6803 } | |
| 6804 } | |
| 6805 } | |
| 5189 main() { | 6806 main() { |
| 5190 pid_t parent = getpid (); | 6807 pid_t parent = getpid (); |
| 5191 pid_t child; | 6808 pid_t child; |
| 5192 | 6809 |
| 5193 signal (SIGINT, catch); | 6810 sparc_address_test (); |
| 5194 | 6811 |
| 5195 child = vfork (); | 6812 child = vfork (); |
| 5196 | 6813 |
| 5197 if (child == 0) { | 6814 if (child == 0) { |
| 5198 /* On sparc systems, changes by the child to local and incoming | 6815 /* Here is another test for sparc vfork register problems. |
| 5199 argument registers are propagated back to the parent. | 6816 This test uses lots of local variables, at least |
| 5200 The compiler is told about this with #include <vfork.h>, | |
| 5201 but some compilers (e.g. gcc -O) don't grok <vfork.h>. | |
| 5202 Test for this by using lots of local variables, at least | |
| 5203 as many local variables as main has allocated so far | 6817 as many local variables as main has allocated so far |
| 5204 including compiler temporaries. 4 locals are enough for | 6818 including compiler temporaries. 4 locals are enough for |
| 5205 gcc 1.40.3 on a sparc, but we use 8 to be safe. | 6819 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. |
| 5206 A buggy compiler should reuse the register of parent | 6820 A buggy compiler should reuse the register of parent |
| 5207 for one of the local variables, since it will think that | 6821 for one of the local variables, since it will think that |
| 5208 parent can't possibly be used any more in this routine. | 6822 parent can't possibly be used any more in this routine. |
| 5209 Assigning to the local variable will thus munge parent | 6823 Assigning to the local variable will thus munge parent |
| 5210 in the parent process. */ | 6824 in the parent process. */ |
| 5215 use the same hardware register for all 8 local variables. */ | 6829 use the same hardware register for all 8 local variables. */ |
| 5216 if (p != p1 || p != p2 || p != p3 || p != p4 | 6830 if (p != p1 || p != p2 || p != p3 || p != p4 |
| 5217 || p != p5 || p != p6 || p != p7) | 6831 || p != p5 || p != p6 || p != p7) |
| 5218 _exit(1); | 6832 _exit(1); |
| 5219 | 6833 |
| 5220 /* On some systems (e.g. SunOS 5.2), if the parent is catching | |
| 5221 a signal, the child ignores the signal before execing, | |
| 5222 and the parent later receives that signal, the parent dumps core. | |
| 5223 Test for this by ignoring SIGINT in the child. */ | |
| 5224 signal (SIGINT, SIG_IGN); | |
| 5225 | |
| 5226 /* On some systems (e.g. IRIX 3.3), | 6834 /* On some systems (e.g. IRIX 3.3), |
| 5227 vfork doesn't separate parent from child file descriptors. | 6835 vfork doesn't separate parent from child file descriptors. |
| 5228 If the child closes a descriptor before it execs or exits, | 6836 If the child closes a descriptor before it execs or exits, |
| 5229 this munges the parent's descriptor as well. | 6837 this munges the parent's descriptor as well. |
| 5230 Test for this by closing stdout in the child. */ | 6838 Test for this by closing stdout in the child. */ |
| 5243 || status | 6851 || status |
| 5244 | 6852 |
| 5245 /* Did the vfork/compiler bug occur? */ | 6853 /* Did the vfork/compiler bug occur? */ |
| 5246 || parent != getpid() | 6854 || parent != getpid() |
| 5247 | 6855 |
| 5248 /* Did the signal handling bug occur? */ | |
| 5249 || kill(parent, SIGINT) != 0 | |
| 5250 || signalled != 1 | |
| 5251 | |
| 5252 /* Did the file descriptor bug occur? */ | 6856 /* Did the file descriptor bug occur? */ |
| 5253 || fstat(fileno(stdout), &st) != 0 | 6857 || fstat(fileno(stdout), &st) != 0 |
| 5254 ); | 6858 ); |
| 5255 } | 6859 } |
| 5256 } | 6860 } |
| 5257 EOF | 6861 EOF |
| 5258 eval $ac_compile | 6862 if { (eval echo configure:6863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
| 5259 if test -s conftest && (./conftest; exit) 2>/dev/null; then | 6863 then |
| 5260 : | 6864 ac_cv_func_vfork_works=yes |
| 5261 else | 6865 else |
| 5262 | 6866 echo "configure: failed program was:" >&5 |
| 5263 { | 6867 cat conftest.$ac_ext >&5 |
| 5264 test -n "$verbose" && \ | 6868 rm -fr conftest* |
| 5265 echo " defining" vfork to be "fork" | 6869 ac_cv_func_vfork_works=no |
| 5266 echo "#define" vfork "fork" >> confdefs.h | |
| 5267 DEFS="$DEFS -Dvfork=fork" | |
| 5268 ac_sed_defs="${ac_sed_defs}\${ac_dA}vfork\${ac_dB}vfork\${ac_dC}fork\${ac_dD} | |
| 5269 \${ac_uA}vfork\${ac_uB}vfork\${ac_uC}fork\${ac_uD} | |
| 5270 \${ac_eA}vfork\${ac_eB}vfork\${ac_eC}fork\${ac_eD} | |
| 5271 " | |
| 5272 } | |
| 5273 | |
| 5274 fi | 6870 fi |
| 5275 rm -fr conftest* | 6871 rm -fr conftest* |
| 5276 | 6872 |
| 5277 | 6873 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 |
| 5278 # Check whether mmap exists and works correctly. (This does more | 6874 if test $ac_cv_func_vfork_works = no; then |
| 5279 # than just check for its existence.) If so, it defines HAVE_MMAP. | 6875 { test "$extra_verbose" = "yes" && cat << \EOF |
| 5280 # Actually, this seems to rule out some cases where mmap() can | 6876 Defining vfork = fork |
| 5281 # work fine for our purposes (e.g. HPUX). We get a big win out | 6877 EOF |
| 5282 # of using mmap(), so let's go back to the old way. | 6878 cat >> confdefs.h <<\EOF |
| 5283 | 6879 #define vfork fork |
| 5284 # Check whether strcoll exists and works correctly. (This does more | 6880 EOF |
| 5285 # than just check for its existence.) If so, it defines HAVE_STRCOLL. | 6881 } |
| 5286 test -n "$silent" || echo "checking for strcoll" | 6882 |
| 5287 cat > conftest.${ac_ext} <<EOF | 6883 fi |
| 6884 | |
| 6885 | |
| 6886 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 | |
| 6887 echo "configure:6888: checking for working strcoll" >&5 | |
| 6888 | |
| 6889 cat > conftest.$ac_ext <<EOF | |
| 6890 #line 6891 "configure" | |
| 5288 #include "confdefs.h" | 6891 #include "confdefs.h" |
| 5289 #include <string.h> | 6892 #include <string.h> |
| 5290 main () | 6893 main () |
| 5291 { | 6894 { |
| 5292 exit (strcoll ("abc", "def") >= 0 || | 6895 exit (strcoll ("abc", "def") >= 0 || |
| 5293 strcoll ("ABC", "DEF") >= 0 || | 6896 strcoll ("ABC", "DEF") >= 0 || |
| 5294 strcoll ("123", "456") >= 0); | 6897 strcoll ("123", "456") >= 0); |
| 5295 } | 6898 } |
| 5296 EOF | 6899 EOF |
| 5297 eval $ac_compile | 6900 if { (eval echo configure:6901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
| 5298 if test -s conftest && (./conftest; exit) 2>/dev/null; then | 6901 then |
| 5299 | 6902 ac_cv_func_strcoll_works=yes |
| 5300 { | 6903 else |
| 5301 test -n "$verbose" && \ | 6904 echo "configure: failed program was:" >&5 |
| 5302 echo " defining HAVE_STRCOLL" | 6905 cat conftest.$ac_ext >&5 |
| 5303 echo "#define" HAVE_STRCOLL "1" >> confdefs.h | 6906 rm -fr conftest* |
| 5304 DEFS="$DEFS -DHAVE_STRCOLL=1" | 6907 ac_cv_func_strcoll_works=no |
| 5305 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_STRCOLL\${ac_dB}HAVE_STRCOLL\${ac_dC}1\${ac_dD} | |
| 5306 \${ac_uA}HAVE_STRCOLL\${ac_uB}HAVE_STRCOLL\${ac_uC}1\${ac_uD} | |
| 5307 \${ac_eA}HAVE_STRCOLL\${ac_eB}HAVE_STRCOLL\${ac_eC}1\${ac_eD} | |
| 5308 " | |
| 5309 } | |
| 5310 | |
| 5311 | |
| 5312 fi | 6908 fi |
| 5313 rm -fr conftest* | 6909 rm -fr conftest* |
| 5314 | 6910 |
| 5315 test -n "$silent" || echo "checking size of short" | 6911 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6 |
| 5316 cat > conftest.${ac_ext} <<EOF | 6912 if test $ac_cv_func_strcoll_works = yes; then |
| 6913 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 6914 Defining HAVE_STRCOLL | |
| 6915 EOF | |
| 6916 cat >> confdefs.h <<\EOF | |
| 6917 #define HAVE_STRCOLL 1 | |
| 6918 EOF | |
| 6919 } | |
| 6920 | |
| 6921 fi | |
| 6922 | |
| 6923 | |
| 6924 echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
| 6925 echo "configure:6926: checking size of short" >&5 | |
| 6926 | |
| 6927 cat > conftest.$ac_ext <<EOF | |
| 6928 #line 6929 "configure" | |
| 5317 #include "confdefs.h" | 6929 #include "confdefs.h" |
| 5318 #include <stdio.h> | 6930 #include <stdio.h> |
| 5319 main() | 6931 main() |
| 5320 { | 6932 { |
| 5321 FILE *f=fopen("conftestval", "w"); | 6933 FILE *f=fopen("conftestval", "w"); |
| 5322 if (!f) exit(1); | 6934 if (!f) exit(1); |
| 5323 fprintf(f, "%d\n", sizeof(short)); | 6935 fprintf(f, "%d\n", sizeof(short)); |
| 5324 exit(0); | 6936 exit(0); |
| 5325 } | 6937 } |
| 5326 EOF | 6938 EOF |
| 5327 eval $ac_compile | 6939 if { (eval echo configure:6940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
| 5328 if test -s conftest && (./conftest; exit) 2>/dev/null; then | 6940 then |
| 5329 ac_size=`cat conftestval` | 6941 ac_cv_sizeof_short=`cat conftestval` |
| 5330 | 6942 else |
| 5331 else | 6943 echo "configure: failed program was:" >&5 |
| 5332 echo "configure: can not determine size of short" >&2; exit 1 | 6944 cat conftest.$ac_ext >&5 |
| 6945 rm -fr conftest* | |
| 6946 ac_cv_sizeof_short=0 | |
| 5333 fi | 6947 fi |
| 5334 rm -fr conftest* | 6948 rm -fr conftest* |
| 5335 | 6949 echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 5336 { | 6950 { test "$extra_verbose" = "yes" && cat << EOF |
| 5337 test -n "$verbose" && \ | 6951 Defining SIZEOF_SHORT = $ac_cv_sizeof_short |
| 5338 echo " defining" SIZEOF_SHORT to be "$ac_size" | 6952 EOF |
| 5339 echo "#define" SIZEOF_SHORT "$ac_size" >> confdefs.h | 6953 cat >> confdefs.h <<EOF |
| 5340 DEFS="$DEFS -DSIZEOF_SHORT=$ac_size" | 6954 #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 5341 ac_sed_defs="${ac_sed_defs}\${ac_dA}SIZEOF_SHORT\${ac_dB}SIZEOF_SHORT\${ac_dC}$ac_size\${ac_dD} | 6955 EOF |
| 5342 \${ac_uA}SIZEOF_SHORT\${ac_uB}SIZEOF_SHORT\${ac_uC}$ac_size\${ac_uD} | 6956 } |
| 5343 \${ac_eA}SIZEOF_SHORT\${ac_eB}SIZEOF_SHORT\${ac_eC}$ac_size\${ac_eD} | 6957 |
| 5344 " | 6958 |
| 5345 } | 6959 echo $ac_n "checking size of int""... $ac_c" 1>&6 |
| 5346 | 6960 echo "configure:6961: checking size of int" >&5 |
| 5347 test -n "$silent" || echo "checking size of int" | 6961 |
| 5348 cat > conftest.${ac_ext} <<EOF | 6962 cat > conftest.$ac_ext <<EOF |
| 6963 #line 6964 "configure" | |
| 5349 #include "confdefs.h" | 6964 #include "confdefs.h" |
| 5350 #include <stdio.h> | 6965 #include <stdio.h> |
| 5351 main() | 6966 main() |
| 5352 { | 6967 { |
| 5353 FILE *f=fopen("conftestval", "w"); | 6968 FILE *f=fopen("conftestval", "w"); |
| 5354 if (!f) exit(1); | 6969 if (!f) exit(1); |
| 5355 fprintf(f, "%d\n", sizeof(int)); | 6970 fprintf(f, "%d\n", sizeof(int)); |
| 5356 exit(0); | 6971 exit(0); |
| 5357 } | 6972 } |
| 5358 EOF | 6973 EOF |
| 5359 eval $ac_compile | 6974 if { (eval echo configure:6975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
| 5360 if test -s conftest && (./conftest; exit) 2>/dev/null; then | 6975 then |
| 5361 ac_size=`cat conftestval` | 6976 ac_cv_sizeof_int=`cat conftestval` |
| 5362 | 6977 else |
| 5363 else | 6978 echo "configure: failed program was:" >&5 |
| 5364 echo "configure: can not determine size of int" >&2; exit 1 | 6979 cat conftest.$ac_ext >&5 |
| 6980 rm -fr conftest* | |
| 6981 ac_cv_sizeof_int=0 | |
| 5365 fi | 6982 fi |
| 5366 rm -fr conftest* | 6983 rm -fr conftest* |
| 5367 | 6984 echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 5368 { | 6985 { test "$extra_verbose" = "yes" && cat << EOF |
| 5369 test -n "$verbose" && \ | 6986 Defining SIZEOF_INT = $ac_cv_sizeof_int |
| 5370 echo " defining" SIZEOF_INT to be "$ac_size" | 6987 EOF |
| 5371 echo "#define" SIZEOF_INT "$ac_size" >> confdefs.h | 6988 cat >> confdefs.h <<EOF |
| 5372 DEFS="$DEFS -DSIZEOF_INT=$ac_size" | 6989 #define SIZEOF_INT $ac_cv_sizeof_int |
| 5373 ac_sed_defs="${ac_sed_defs}\${ac_dA}SIZEOF_INT\${ac_dB}SIZEOF_INT\${ac_dC}$ac_size\${ac_dD} | 6990 EOF |
| 5374 \${ac_uA}SIZEOF_INT\${ac_uB}SIZEOF_INT\${ac_uC}$ac_size\${ac_uD} | 6991 } |
| 5375 \${ac_eA}SIZEOF_INT\${ac_eB}SIZEOF_INT\${ac_eC}$ac_size\${ac_eD} | 6992 |
| 5376 " | 6993 |
| 5377 } | 6994 echo $ac_n "checking size of long""... $ac_c" 1>&6 |
| 5378 | 6995 echo "configure:6996: checking size of long" >&5 |
| 5379 test -n "$silent" || echo "checking size of long" | 6996 |
| 5380 cat > conftest.${ac_ext} <<EOF | 6997 cat > conftest.$ac_ext <<EOF |
| 6998 #line 6999 "configure" | |
| 5381 #include "confdefs.h" | 6999 #include "confdefs.h" |
| 5382 #include <stdio.h> | 7000 #include <stdio.h> |
| 5383 main() | 7001 main() |
| 5384 { | 7002 { |
| 5385 FILE *f=fopen("conftestval", "w"); | 7003 FILE *f=fopen("conftestval", "w"); |
| 5386 if (!f) exit(1); | 7004 if (!f) exit(1); |
| 5387 fprintf(f, "%d\n", sizeof(long)); | 7005 fprintf(f, "%d\n", sizeof(long)); |
| 5388 exit(0); | 7006 exit(0); |
| 5389 } | 7007 } |
| 5390 EOF | 7008 EOF |
| 5391 eval $ac_compile | 7009 if { (eval echo configure:7010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
| 5392 if test -s conftest && (./conftest; exit) 2>/dev/null; then | 7010 then |
| 5393 ac_size=`cat conftestval` | 7011 ac_cv_sizeof_long=`cat conftestval` |
| 5394 | 7012 else |
| 5395 else | 7013 echo "configure: failed program was:" >&5 |
| 5396 echo "configure: can not determine size of long" >&2; exit 1 | 7014 cat conftest.$ac_ext >&5 |
| 7015 rm -fr conftest* | |
| 7016 ac_cv_sizeof_long=0 | |
| 5397 fi | 7017 fi |
| 5398 rm -fr conftest* | 7018 rm -fr conftest* |
| 5399 | 7019 echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 5400 { | 7020 { test "$extra_verbose" = "yes" && cat << EOF |
| 5401 test -n "$verbose" && \ | 7021 Defining SIZEOF_LONG = $ac_cv_sizeof_long |
| 5402 echo " defining" SIZEOF_LONG to be "$ac_size" | 7022 EOF |
| 5403 echo "#define" SIZEOF_LONG "$ac_size" >> confdefs.h | 7023 cat >> confdefs.h <<EOF |
| 5404 DEFS="$DEFS -DSIZEOF_LONG=$ac_size" | 7024 #define SIZEOF_LONG $ac_cv_sizeof_long |
| 5405 ac_sed_defs="${ac_sed_defs}\${ac_dA}SIZEOF_LONG\${ac_dB}SIZEOF_LONG\${ac_dC}$ac_size\${ac_dD} | 7025 EOF |
| 5406 \${ac_uA}SIZEOF_LONG\${ac_uB}SIZEOF_LONG\${ac_uC}$ac_size\${ac_uD} | 7026 } |
| 5407 \${ac_eA}SIZEOF_LONG\${ac_eB}SIZEOF_LONG\${ac_eC}$ac_size\${ac_eD} | 7027 |
| 5408 " | 7028 |
| 5409 } | 7029 |
| 5410 | 7030 for ac_hdr in unistd.h |
| 5411 | |
| 5412 # FSF 19.29 does this: | |
| 5413 # # fmod, logb, and frexp are found in -lm on most systems. | |
| 5414 # # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
| 5415 # A C_CHECK_LIB(m, sqrt) | |
| 5416 | |
| 5417 for ac_func in acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random realpath rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset utimes waitpid | |
| 5418 do | 7031 do |
| 5419 ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'` | 7032 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 5420 test -n "$silent" || echo "checking for ${ac_func}" | 7033 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 5421 cat > conftest.${ac_ext} <<EOF | 7034 echo "configure:7035: checking for $ac_hdr" >&5 |
| 5422 #include "confdefs.h" | 7035 |
| 5423 #include <ctype.h> | 7036 cat > conftest.$ac_ext <<EOF |
| 5424 int main() { return 0; } | 7037 #line 7038 "configure" |
| 5425 int t() { | 7038 #include "confdefs.h" |
| 7039 #include <$ac_hdr> | |
| 7040 EOF | |
| 7041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
| 7042 { (eval echo configure:7043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
| 7043 ac_err=`grep -v '^ *+' conftest.out` | |
| 7044 if test -z "$ac_err"; then | |
| 7045 rm -rf conftest* | |
| 7046 eval "ac_cv_header_$ac_safe=yes" | |
| 7047 else | |
| 7048 echo "$ac_err" >&5 | |
| 7049 echo "configure: failed program was:" >&5 | |
| 7050 cat conftest.$ac_ext >&5 | |
| 7051 rm -rf conftest* | |
| 7052 eval "ac_cv_header_$ac_safe=no" | |
| 7053 fi | |
| 7054 rm -f conftest* | |
| 7055 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
| 7056 echo "$ac_t""yes" 1>&6 | |
| 7057 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
| 7058 { test "$extra_verbose" = "yes" && cat << EOF | |
| 7059 Defining $ac_tr_hdr | |
| 7060 EOF | |
| 7061 cat >> confdefs.h <<EOF | |
| 7062 #define $ac_tr_hdr 1 | |
| 7063 EOF | |
| 7064 } | |
| 7065 | |
| 7066 else | |
| 7067 echo "$ac_t""no" 1>&6 | |
| 7068 fi | |
| 7069 done | |
| 7070 | |
| 7071 for ac_func in getpagesize | |
| 7072 do | |
| 7073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
| 7074 echo "configure:7075: checking for $ac_func" >&5 | |
| 7075 | |
| 7076 cat > conftest.$ac_ext <<EOF | |
| 7077 #line 7078 "configure" | |
| 7078 #include "confdefs.h" | |
| 7079 /* System header to define __stub macros and hopefully few prototypes, | |
| 7080 which can conflict with char $ac_func(); below. */ | |
| 7081 #include <assert.h> | |
| 7082 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 7083 /* We use char because int might match the return type of a gcc2 | |
| 7084 builtin and then its argument prototype would still apply. */ | |
| 7085 char $ac_func(); | |
| 7086 | |
| 7087 int main() { | |
| 7088 | |
| 5426 /* The GNU C library defines this for functions which it implements | 7089 /* The GNU C library defines this for functions which it implements |
| 5427 to always fail with ENOSYS. Some functions are actually named | 7090 to always fail with ENOSYS. Some functions are actually named |
| 5428 something starting with __ and the normal name is an alias. */ | 7091 something starting with __ and the normal name is an alias. */ |
| 5429 #if defined (__stub_${ac_func}) || defined (__stub___${ac_func}) | 7092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5430 choke me | 7093 choke me |
| 5431 #else | 7094 #else |
| 7095 $ac_func(); | |
| 7096 #endif | |
| 7097 | |
| 7098 ; return 0; } | |
| 7099 EOF | |
| 7100 if { (eval echo configure:7101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 7101 rm -rf conftest* | |
| 7102 eval "ac_cv_func_$ac_func=yes" | |
| 7103 else | |
| 7104 echo "configure: failed program was:" >&5 | |
| 7105 cat conftest.$ac_ext >&5 | |
| 7106 rm -rf conftest* | |
| 7107 eval "ac_cv_func_$ac_func=no" | |
| 7108 fi | |
| 7109 rm -f conftest* | |
| 7110 | |
| 7111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
| 7112 echo "$ac_t""yes" 1>&6 | |
| 7113 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
| 7114 { test "$extra_verbose" = "yes" && cat << EOF | |
| 7115 Defining $ac_tr_func | |
| 7116 EOF | |
| 7117 cat >> confdefs.h <<EOF | |
| 7118 #define $ac_tr_func 1 | |
| 7119 EOF | |
| 7120 } | |
| 7121 | |
| 7122 else | |
| 7123 echo "$ac_t""no" 1>&6 | |
| 7124 fi | |
| 7125 done | |
| 7126 | |
| 7127 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | |
| 7128 echo "configure:7129: checking for working mmap" >&5 | |
| 7129 | |
| 7130 cat > conftest.$ac_ext <<EOF | |
| 7131 #line 7132 "configure" | |
| 7132 #include "confdefs.h" | |
| 7133 | |
| 7134 /* Thanks to Mike Haertel and Jim Avera for this test. | |
| 7135 Here is a matrix of mmap possibilities: | |
| 7136 mmap private not fixed | |
| 7137 mmap private fixed at somewhere currently unmapped | |
| 7138 mmap private fixed at somewhere already mapped | |
| 7139 mmap shared not fixed | |
| 7140 mmap shared fixed at somewhere currently unmapped | |
| 7141 mmap shared fixed at somewhere already mapped | |
| 7142 For private mappings, we should verify that changes cannot be read() | |
| 7143 back from the file, nor mmap's back from the file at a different | |
| 7144 address. (There have been systems where private was not correctly | |
| 7145 implemented like the infamous i386 svr4.0, and systems where the | |
| 7146 VM page cache was not coherent with the filesystem buffer cache | |
| 7147 like early versions of FreeBSD and possibly contemporary NetBSD.) | |
| 7148 For shared mappings, we should conversely verify that changes get | |
| 7149 propogated back to all the places they're supposed to be. | |
| 7150 | |
| 7151 Grep wants private fixed already mapped. | |
| 7152 The main things grep needs to know about mmap are: | |
| 7153 * does it exist and is it safe to write into the mmap'd area | |
| 7154 * how to use it (BSD variants) */ | |
| 7155 #include <sys/types.h> | |
| 7156 #include <fcntl.h> | |
| 7157 #include <sys/mman.h> | |
| 7158 | |
| 7159 /* This mess was copied from the GNU getpagesize.h. */ | |
| 7160 #ifndef HAVE_GETPAGESIZE | |
| 7161 # ifdef HAVE_UNISTD_H | |
| 7162 # include <unistd.h> | |
| 7163 # endif | |
| 7164 | |
| 7165 /* Assume that all systems that can run configure have sys/param.h. */ | |
| 7166 # ifndef HAVE_SYS_PARAM_H | |
| 7167 # define HAVE_SYS_PARAM_H 1 | |
| 7168 # endif | |
| 7169 | |
| 7170 # ifdef _SC_PAGESIZE | |
| 7171 # define getpagesize() sysconf(_SC_PAGESIZE) | |
| 7172 # else /* no _SC_PAGESIZE */ | |
| 7173 # ifdef HAVE_SYS_PARAM_H | |
| 7174 # include <sys/param.h> | |
| 7175 # ifdef EXEC_PAGESIZE | |
| 7176 # define getpagesize() EXEC_PAGESIZE | |
| 7177 # else /* no EXEC_PAGESIZE */ | |
| 7178 # ifdef NBPG | |
| 7179 # define getpagesize() NBPG * CLSIZE | |
| 7180 # ifndef CLSIZE | |
| 7181 # define CLSIZE 1 | |
| 7182 # endif /* no CLSIZE */ | |
| 7183 # else /* no NBPG */ | |
| 7184 # ifdef NBPC | |
| 7185 # define getpagesize() NBPC | |
| 7186 # else /* no NBPC */ | |
| 7187 # ifdef PAGESIZE | |
| 7188 # define getpagesize() PAGESIZE | |
| 7189 # endif /* PAGESIZE */ | |
| 7190 # endif /* no NBPC */ | |
| 7191 # endif /* no NBPG */ | |
| 7192 # endif /* no EXEC_PAGESIZE */ | |
| 7193 # else /* no HAVE_SYS_PARAM_H */ | |
| 7194 # define getpagesize() 8192 /* punt totally */ | |
| 7195 # endif /* no HAVE_SYS_PARAM_H */ | |
| 7196 # endif /* no _SC_PAGESIZE */ | |
| 7197 | |
| 7198 #endif /* no HAVE_GETPAGESIZE */ | |
| 7199 | |
| 7200 #ifdef __cplusplus | |
| 7201 extern "C" { void *malloc(unsigned); } | |
| 7202 #else | |
| 7203 char *malloc(); | |
| 7204 #endif | |
| 7205 | |
| 7206 int | |
| 7207 main() | |
| 7208 { | |
| 7209 char *data, *data2, *data3; | |
| 7210 int i, pagesize; | |
| 7211 int fd; | |
| 7212 | |
| 7213 pagesize = getpagesize(); | |
| 7214 | |
| 7215 /* | |
| 7216 * First, make a file with some known garbage in it. | |
| 7217 */ | |
| 7218 data = malloc(pagesize); | |
| 7219 if (!data) | |
| 7220 exit(1); | |
| 7221 for (i = 0; i < pagesize; ++i) | |
| 7222 *(data + i) = rand(); | |
| 7223 umask(0); | |
| 7224 fd = creat("conftestmmap", 0600); | |
| 7225 if (fd < 0) | |
| 7226 exit(1); | |
| 7227 if (write(fd, data, pagesize) != pagesize) | |
| 7228 exit(1); | |
| 7229 close(fd); | |
| 7230 | |
| 7231 /* | |
| 7232 * Next, try to mmap the file at a fixed address which | |
| 7233 * already has something else allocated at it. If we can, | |
| 7234 * also make sure that we see the same garbage. | |
| 7235 */ | |
| 7236 fd = open("conftestmmap", O_RDWR); | |
| 7237 if (fd < 0) | |
| 7238 exit(1); | |
| 7239 data2 = malloc(2 * pagesize); | |
| 7240 if (!data2) | |
| 7241 exit(1); | |
| 7242 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
| 7243 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
| 7244 MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
| 7245 exit(1); | |
| 7246 for (i = 0; i < pagesize; ++i) | |
| 7247 if (*(data + i) != *(data2 + i)) | |
| 7248 exit(1); | |
| 7249 | |
| 7250 /* | |
| 7251 * Finally, make sure that changes to the mapped area | |
| 7252 * do not percolate back to the file as seen by read(). | |
| 7253 * (This is a bug on some variants of i386 svr4.0.) | |
| 7254 */ | |
| 7255 for (i = 0; i < pagesize; ++i) | |
| 7256 *(data2 + i) = *(data2 + i) + 1; | |
| 7257 data3 = malloc(pagesize); | |
| 7258 if (!data3) | |
| 7259 exit(1); | |
| 7260 if (read(fd, data3, pagesize) != pagesize) | |
| 7261 exit(1); | |
| 7262 for (i = 0; i < pagesize; ++i) | |
| 7263 if (*(data + i) != *(data3 + i)) | |
| 7264 exit(1); | |
| 7265 close(fd); | |
| 7266 unlink("conftestmmap"); | |
| 7267 exit(0); | |
| 7268 } | |
| 7269 | |
| 7270 EOF | |
| 7271 if { (eval echo configure:7272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null | |
| 7272 then | |
| 7273 ac_cv_func_mmap_fixed_mapped=yes | |
| 7274 else | |
| 7275 echo "configure: failed program was:" >&5 | |
| 7276 cat conftest.$ac_ext >&5 | |
| 7277 rm -fr conftest* | |
| 7278 ac_cv_func_mmap_fixed_mapped=no | |
| 7279 fi | |
| 7280 rm -fr conftest* | |
| 7281 | |
| 7282 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | |
| 7283 if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
| 7284 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 7285 Defining HAVE_MMAP | |
| 7286 EOF | |
| 7287 cat >> confdefs.h <<\EOF | |
| 7288 #define HAVE_MMAP 1 | |
| 7289 EOF | |
| 7290 } | |
| 7291 | |
| 7292 fi | |
| 7293 | |
| 7294 | |
| 7295 test "$GNU_MALLOC" != "yes" -a "$ac_cv_func_mmap_fixed_mapped" != "yes" && rel_alloc=no | |
| 7296 test "$rel_alloc" = "default" -a "$ac_cv_func_mmap_fixed_mapped" = "yes" && rel_alloc=yes | |
| 7297 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF | |
| 7298 Defining REL_ALLOC | |
| 7299 EOF | |
| 7300 cat >> confdefs.h <<\EOF | |
| 7301 #define REL_ALLOC 1 | |
| 7302 EOF | |
| 7303 } | |
| 7304 | |
| 7305 | |
| 7306 echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
| 7307 echo "configure:7308: checking for socket" >&5 | |
| 7308 | |
| 7309 cat > conftest.$ac_ext <<EOF | |
| 7310 #line 7311 "configure" | |
| 7311 #include "confdefs.h" | |
| 7312 /* System header to define __stub macros and hopefully few prototypes, | |
| 7313 which can conflict with char socket(); below. */ | |
| 7314 #include <assert.h> | |
| 5432 /* Override any gcc2 internal prototype to avoid an error. */ | 7315 /* Override any gcc2 internal prototype to avoid an error. */ |
| 5433 extern char ${ac_func}(); ${ac_func}(); | 7316 /* We use char because int might match the return type of a gcc2 |
| 5434 #endif | 7317 builtin and then its argument prototype would still apply. */ |
| 5435 ; return 0; } | 7318 char socket(); |
| 5436 EOF | 7319 |
| 5437 if eval $ac_compile; then | 7320 int main() { |
| 5438 rm -rf conftest* | 7321 |
| 5439 { | |
| 5440 test -n "$verbose" && \ | |
| 5441 echo " defining ${ac_tr_func}" | |
| 5442 echo "#define" ${ac_tr_func} "1" >> confdefs.h | |
| 5443 DEFS="$DEFS -D${ac_tr_func}=1" | |
| 5444 ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD} | |
| 5445 \${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD} | |
| 5446 \${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD} | |
| 5447 " | |
| 5448 } | |
| 5449 | |
| 5450 | |
| 5451 fi | |
| 5452 rm -f conftest* | |
| 5453 done | |
| 5454 | |
| 5455 | |
| 5456 # Check for mmap. | |
| 5457 found_mmap=true | |
| 5458 test -n "$silent" || echo "checking for mmap" | |
| 5459 cat > conftest.${ac_ext} <<EOF | |
| 5460 #include "confdefs.h" | |
| 5461 #include <ctype.h> | |
| 5462 int main() { return 0; } | |
| 5463 int t() { | |
| 5464 /* The GNU C library defines this for functions which it implements | |
| 5465 to always fail with ENOSYS. Some functions are actually named | |
| 5466 something starting with __ and the normal name is an alias. */ | |
| 5467 #if defined (__stub_mmap) || defined (__stub___mmap) | |
| 5468 choke me | |
| 5469 #else | |
| 5470 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 5471 extern char mmap(); mmap(); | |
| 5472 #endif | |
| 5473 ; return 0; } | |
| 5474 EOF | |
| 5475 if eval $ac_compile; then | |
| 5476 : | |
| 5477 else | |
| 5478 rm -rf conftest* | |
| 5479 found_mmap= | |
| 5480 fi | |
| 5481 rm -f conftest* | |
| 5482 | |
| 5483 test -n "$found_mmap" && | |
| 5484 { | |
| 5485 test -n "$verbose" && \ | |
| 5486 echo " defining HAVE_MMAP" | |
| 5487 echo "#define" HAVE_MMAP "1" >> confdefs.h | |
| 5488 DEFS="$DEFS -DHAVE_MMAP=1" | |
| 5489 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_MMAP\${ac_dB}HAVE_MMAP\${ac_dC}1\${ac_dD} | |
| 5490 \${ac_uA}HAVE_MMAP\${ac_uB}HAVE_MMAP\${ac_uC}1\${ac_uD} | |
| 5491 \${ac_eA}HAVE_MMAP\${ac_eB}HAVE_MMAP\${ac_eC}1\${ac_eD} | |
| 5492 " | |
| 5493 } | |
| 5494 | |
| 5495 | |
| 5496 test "${GNU_MALLOC}" != "yes" -a "${found_mmap}" != "true" && rel_alloc=no | |
| 5497 test "${rel_alloc}" = "default" -a "${found_mmap}" = "true" && rel_alloc=yes | |
| 5498 | |
| 5499 # Check for Internet sockets. | |
| 5500 | |
| 5501 ok_so_far=true | |
| 5502 test -n "$silent" || echo "checking for socket" | |
| 5503 cat > conftest.${ac_ext} <<EOF | |
| 5504 #include "confdefs.h" | |
| 5505 #include <ctype.h> | |
| 5506 int main() { return 0; } | |
| 5507 int t() { | |
| 5508 /* The GNU C library defines this for functions which it implements | 7322 /* The GNU C library defines this for functions which it implements |
| 5509 to always fail with ENOSYS. Some functions are actually named | 7323 to always fail with ENOSYS. Some functions are actually named |
| 5510 something starting with __ and the normal name is an alias. */ | 7324 something starting with __ and the normal name is an alias. */ |
| 5511 #if defined (__stub_socket) || defined (__stub___socket) | 7325 #if defined (__stub_socket) || defined (__stub___socket) |
| 5512 choke me | 7326 choke me |
| 5513 #else | 7327 #else |
| 7328 socket(); | |
| 7329 #endif | |
| 7330 | |
| 7331 ; return 0; } | |
| 7332 EOF | |
| 7333 if { (eval echo configure:7334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 7334 rm -rf conftest* | |
| 7335 eval "ac_cv_func_socket=yes" | |
| 7336 else | |
| 7337 echo "configure: failed program was:" >&5 | |
| 7338 cat conftest.$ac_ext >&5 | |
| 7339 rm -rf conftest* | |
| 7340 eval "ac_cv_func_socket=no" | |
| 7341 fi | |
| 7342 rm -f conftest* | |
| 7343 | |
| 7344 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
| 7345 echo "$ac_t""yes" 1>&6 | |
| 7346 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` | |
| 7347 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 | |
| 7348 echo "configure:7349: checking for netinet/in.h" >&5 | |
| 7349 | |
| 7350 cat > conftest.$ac_ext <<EOF | |
| 7351 #line 7352 "configure" | |
| 7352 #include "confdefs.h" | |
| 7353 #include <netinet/in.h> | |
| 7354 EOF | |
| 7355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
| 7356 { (eval echo configure:7357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
| 7357 ac_err=`grep -v '^ *+' conftest.out` | |
| 7358 if test -z "$ac_err"; then | |
| 7359 rm -rf conftest* | |
| 7360 eval "ac_cv_header_$ac_safe=yes" | |
| 7361 else | |
| 7362 echo "$ac_err" >&5 | |
| 7363 echo "configure: failed program was:" >&5 | |
| 7364 cat conftest.$ac_ext >&5 | |
| 7365 rm -rf conftest* | |
| 7366 eval "ac_cv_header_$ac_safe=no" | |
| 7367 fi | |
| 7368 rm -f conftest* | |
| 7369 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
| 7370 echo "$ac_t""yes" 1>&6 | |
| 7371 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` | |
| 7372 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 | |
| 7373 echo "configure:7374: checking for arpa/inet.h" >&5 | |
| 7374 | |
| 7375 cat > conftest.$ac_ext <<EOF | |
| 7376 #line 7377 "configure" | |
| 7377 #include "confdefs.h" | |
| 7378 #include <arpa/inet.h> | |
| 7379 EOF | |
| 7380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
| 7381 { (eval echo configure:7382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
| 7382 ac_err=`grep -v '^ *+' conftest.out` | |
| 7383 if test -z "$ac_err"; then | |
| 7384 rm -rf conftest* | |
| 7385 eval "ac_cv_header_$ac_safe=yes" | |
| 7386 else | |
| 7387 echo "$ac_err" >&5 | |
| 7388 echo "configure: failed program was:" >&5 | |
| 7389 cat conftest.$ac_ext >&5 | |
| 7390 rm -rf conftest* | |
| 7391 eval "ac_cv_header_$ac_safe=no" | |
| 7392 fi | |
| 7393 rm -f conftest* | |
| 7394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
| 7395 echo "$ac_t""yes" 1>&6 | |
| 7396 | |
| 7397 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 7398 Defining HAVE_SOCKETS | |
| 7399 EOF | |
| 7400 cat >> confdefs.h <<\EOF | |
| 7401 #define HAVE_SOCKETS 1 | |
| 7402 EOF | |
| 7403 } | |
| 7404 | |
| 7405 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 | |
| 7406 echo "configure:7407: checking "for sun_len member in struct sockaddr_un"" >&5 | |
| 7407 cat > conftest.$ac_ext <<EOF | |
| 7408 #line 7409 "configure" | |
| 7409 #include "confdefs.h" | |
| 7410 | |
| 7411 #include <sys/types.h> | |
| 7412 #include <sys/socket.h> | |
| 7413 #include <sys/un.h> | |
| 7414 | |
| 7415 int main() { | |
| 7416 static struct sockaddr_un x; x.sun_len = 1; | |
| 7417 ; return 0; } | |
| 7418 EOF | |
| 7419 if { (eval echo configure:7420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 7420 rm -rf conftest* | |
| 7421 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF | |
| 7422 Defining HAVE_SOCKADDR_SUN_LEN | |
| 7423 EOF | |
| 7424 cat >> confdefs.h <<\EOF | |
| 7425 #define HAVE_SOCKADDR_SUN_LEN 1 | |
| 7426 EOF | |
| 7427 } | |
| 7428 | |
| 7429 else | |
| 7430 echo "configure: failed program was:" >&5 | |
| 7431 cat conftest.$ac_ext >&5 | |
| 7432 rm -rf conftest* | |
| 7433 echo "$ac_t""no" 1>&6 | |
| 7434 fi | |
| 7435 rm -f conftest* | |
| 7436 else | |
| 7437 echo "$ac_t""no" 1>&6 | |
| 7438 fi | |
| 7439 | |
| 7440 else | |
| 7441 echo "$ac_t""no" 1>&6 | |
| 7442 fi | |
| 7443 | |
| 7444 else | |
| 7445 echo "$ac_t""no" 1>&6 | |
| 7446 fi | |
| 7447 | |
| 7448 | |
| 7449 echo $ac_n "checking for msgget""... $ac_c" 1>&6 | |
| 7450 echo "configure:7451: checking for msgget" >&5 | |
| 7451 | |
| 7452 cat > conftest.$ac_ext <<EOF | |
| 7453 #line 7454 "configure" | |
| 7454 #include "confdefs.h" | |
| 7455 /* System header to define __stub macros and hopefully few prototypes, | |
| 7456 which can conflict with char msgget(); below. */ | |
| 7457 #include <assert.h> | |
| 5514 /* Override any gcc2 internal prototype to avoid an error. */ | 7458 /* Override any gcc2 internal prototype to avoid an error. */ |
| 5515 extern char socket(); socket(); | 7459 /* We use char because int might match the return type of a gcc2 |
| 5516 #endif | 7460 builtin and then its argument prototype would still apply. */ |
| 5517 ; return 0; } | 7461 char msgget(); |
| 5518 EOF | 7462 |
| 5519 if eval $ac_compile; then | 7463 int main() { |
| 5520 : | 7464 |
| 5521 else | |
| 5522 rm -rf conftest* | |
| 5523 ok_so_far= | |
| 5524 fi | |
| 5525 rm -f conftest* | |
| 5526 | |
| 5527 test -n "$ok_so_far" && { test -n "$silent" || echo "checking for netinet/in.h" | |
| 5528 cat > conftest.${ac_ext} <<EOF | |
| 5529 #include "confdefs.h" | |
| 5530 #include <netinet/in.h> | |
| 5531 EOF | |
| 5532 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | |
| 5533 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | |
| 5534 echo "$ac_err" | |
| 5535 fi | |
| 5536 if test -z "$ac_err"; then | |
| 5537 : | |
| 5538 else | |
| 5539 rm -rf conftest* | |
| 5540 ok_so_far= | |
| 5541 fi | |
| 5542 rm -f conftest* | |
| 5543 } | |
| 5544 test -n "$ok_so_far" && { test -n "$silent" || echo "checking for arpa/inet.h" | |
| 5545 cat > conftest.${ac_ext} <<EOF | |
| 5546 #include "confdefs.h" | |
| 5547 #include <arpa/inet.h> | |
| 5548 EOF | |
| 5549 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | |
| 5550 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | |
| 5551 echo "$ac_err" | |
| 5552 fi | |
| 5553 if test -z "$ac_err"; then | |
| 5554 : | |
| 5555 else | |
| 5556 rm -rf conftest* | |
| 5557 ok_so_far= | |
| 5558 fi | |
| 5559 rm -f conftest* | |
| 5560 } | |
| 5561 if test -n "$ok_so_far"; then | |
| 5562 | |
| 5563 { | |
| 5564 test -n "$verbose" && \ | |
| 5565 echo " defining HAVE_SOCKETS" | |
| 5566 echo "#define" HAVE_SOCKETS "1" >> confdefs.h | |
| 5567 DEFS="$DEFS -DHAVE_SOCKETS=1" | |
| 5568 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SOCKETS\${ac_dB}HAVE_SOCKETS\${ac_dC}1\${ac_dD} | |
| 5569 \${ac_uA}HAVE_SOCKETS\${ac_uB}HAVE_SOCKETS\${ac_uC}1\${ac_uD} | |
| 5570 \${ac_eA}HAVE_SOCKETS\${ac_eB}HAVE_SOCKETS\${ac_eC}1\${ac_eD} | |
| 5571 " | |
| 5572 } | |
| 5573 | |
| 5574 # Check for the sun_len member in struct sockaddr_un. | |
| 5575 | |
| 5576 test -n "$silent" || echo "checking for sun_len member in struct sockaddr_un" | |
| 5577 cat > conftest.${ac_ext} <<EOF | |
| 5578 #include "confdefs.h" | |
| 5579 #include <sys/types.h> | |
| 5580 #include <sys/socket.h> | |
| 5581 #include <sys/un.h> | |
| 5582 int main() { return 0; } | |
| 5583 int t() { static struct sockaddr_un x; x.sun_len = 1;; return 0; } | |
| 5584 EOF | |
| 5585 if eval $ac_compile; then | |
| 5586 rm -rf conftest* | |
| 5587 | |
| 5588 { | |
| 5589 test -n "$verbose" && \ | |
| 5590 echo " defining HAVE_SOCKADDR_SUN_LEN" | |
| 5591 echo "#define" HAVE_SOCKADDR_SUN_LEN "1" >> confdefs.h | |
| 5592 DEFS="$DEFS -DHAVE_SOCKADDR_SUN_LEN=1" | |
| 5593 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SOCKADDR_SUN_LEN\${ac_dB}HAVE_SOCKADDR_SUN_LEN\${ac_dC}1\${ac_dD} | |
| 5594 \${ac_uA}HAVE_SOCKADDR_SUN_LEN\${ac_uB}HAVE_SOCKADDR_SUN_LEN\${ac_uC}1\${ac_uD} | |
| 5595 \${ac_eA}HAVE_SOCKADDR_SUN_LEN\${ac_eB}HAVE_SOCKADDR_SUN_LEN\${ac_eC}1\${ac_eD} | |
| 5596 " | |
| 5597 } | |
| 5598 | |
| 5599 | |
| 5600 fi | |
| 5601 rm -f conftest* | |
| 5602 | |
| 5603 fi | |
| 5604 | |
| 5605 # Check for SYS V IPC. (Inferior to sockets.) | |
| 5606 | |
| 5607 if test -z "$ok_so_far"; then | |
| 5608 ok_so_far=true | |
| 5609 test -n "$silent" || echo "checking for msgget" | |
| 5610 cat > conftest.${ac_ext} <<EOF | |
| 5611 #include "confdefs.h" | |
| 5612 #include <ctype.h> | |
| 5613 int main() { return 0; } | |
| 5614 int t() { | |
| 5615 /* The GNU C library defines this for functions which it implements | 7465 /* The GNU C library defines this for functions which it implements |
| 5616 to always fail with ENOSYS. Some functions are actually named | 7466 to always fail with ENOSYS. Some functions are actually named |
| 5617 something starting with __ and the normal name is an alias. */ | 7467 something starting with __ and the normal name is an alias. */ |
| 5618 #if defined (__stub_msgget) || defined (__stub___msgget) | 7468 #if defined (__stub_msgget) || defined (__stub___msgget) |
| 5619 choke me | 7469 choke me |
| 5620 #else | 7470 #else |
| 5621 /* Override any gcc2 internal prototype to avoid an error. */ | 7471 msgget(); |
| 5622 extern char msgget(); msgget(); | |
| 5623 #endif | 7472 #endif |
| 7473 | |
| 5624 ; return 0; } | 7474 ; return 0; } |
| 5625 EOF | 7475 EOF |
| 5626 if eval $ac_compile; then | 7476 if { (eval echo configure:7477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 7477 rm -rf conftest* | |
| 7478 eval "ac_cv_func_msgget=yes" | |
| 7479 else | |
| 7480 echo "configure: failed program was:" >&5 | |
| 7481 cat conftest.$ac_ext >&5 | |
| 7482 rm -rf conftest* | |
| 7483 eval "ac_cv_func_msgget=no" | |
| 7484 fi | |
| 7485 rm -f conftest* | |
| 7486 | |
| 7487 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then | |
| 7488 echo "$ac_t""yes" 1>&6 | |
| 7489 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` | |
| 7490 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 | |
| 7491 echo "configure:7492: checking for sys/ipc.h" >&5 | |
| 7492 | |
| 7493 cat > conftest.$ac_ext <<EOF | |
| 7494 #line 7495 "configure" | |
| 7495 #include "confdefs.h" | |
| 7496 #include <sys/ipc.h> | |
| 7497 EOF | |
| 7498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
| 7499 { (eval echo configure:7500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
| 7500 ac_err=`grep -v '^ *+' conftest.out` | |
| 7501 if test -z "$ac_err"; then | |
| 7502 rm -rf conftest* | |
| 7503 eval "ac_cv_header_$ac_safe=yes" | |
| 7504 else | |
| 7505 echo "$ac_err" >&5 | |
| 7506 echo "configure: failed program was:" >&5 | |
| 7507 cat conftest.$ac_ext >&5 | |
| 7508 rm -rf conftest* | |
| 7509 eval "ac_cv_header_$ac_safe=no" | |
| 7510 fi | |
| 7511 rm -f conftest* | |
| 7512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
| 7513 echo "$ac_t""yes" 1>&6 | |
| 7514 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` | |
| 7515 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 | |
| 7516 echo "configure:7517: checking for sys/msg.h" >&5 | |
| 7517 | |
| 7518 cat > conftest.$ac_ext <<EOF | |
| 7519 #line 7520 "configure" | |
| 7520 #include "confdefs.h" | |
| 7521 #include <sys/msg.h> | |
| 7522 EOF | |
| 7523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
| 7524 { (eval echo configure:7525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
| 7525 ac_err=`grep -v '^ *+' conftest.out` | |
| 7526 if test -z "$ac_err"; then | |
| 7527 rm -rf conftest* | |
| 7528 eval "ac_cv_header_$ac_safe=yes" | |
| 7529 else | |
| 7530 echo "$ac_err" >&5 | |
| 7531 echo "configure: failed program was:" >&5 | |
| 7532 cat conftest.$ac_ext >&5 | |
| 7533 rm -rf conftest* | |
| 7534 eval "ac_cv_header_$ac_safe=no" | |
| 7535 fi | |
| 7536 rm -f conftest* | |
| 7537 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
| 7538 echo "$ac_t""yes" 1>&6 | |
| 7539 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 7540 Defining HAVE_SYSVIPC | |
| 7541 EOF | |
| 7542 cat >> confdefs.h <<\EOF | |
| 7543 #define HAVE_SYSVIPC 1 | |
| 7544 EOF | |
| 7545 } | |
| 7546 | |
| 7547 else | |
| 7548 echo "$ac_t""no" 1>&6 | |
| 7549 fi | |
| 7550 | |
| 7551 else | |
| 7552 echo "$ac_t""no" 1>&6 | |
| 7553 fi | |
| 7554 | |
| 7555 else | |
| 7556 echo "$ac_t""no" 1>&6 | |
| 7557 fi | |
| 7558 | |
| 7559 | |
| 7560 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` | |
| 7561 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 | |
| 7562 echo "configure:7563: checking for dirent.h" >&5 | |
| 7563 | |
| 7564 cat > conftest.$ac_ext <<EOF | |
| 7565 #line 7566 "configure" | |
| 7566 #include "confdefs.h" | |
| 7567 #include <dirent.h> | |
| 7568 EOF | |
| 7569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
| 7570 { (eval echo configure:7571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
| 7571 ac_err=`grep -v '^ *+' conftest.out` | |
| 7572 if test -z "$ac_err"; then | |
| 7573 rm -rf conftest* | |
| 7574 eval "ac_cv_header_$ac_safe=yes" | |
| 7575 else | |
| 7576 echo "$ac_err" >&5 | |
| 7577 echo "configure: failed program was:" >&5 | |
| 7578 cat conftest.$ac_ext >&5 | |
| 7579 rm -rf conftest* | |
| 7580 eval "ac_cv_header_$ac_safe=no" | |
| 7581 fi | |
| 7582 rm -f conftest* | |
| 7583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
| 7584 echo "$ac_t""yes" 1>&6 | |
| 7585 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 7586 Defining SYSV_SYSTEM_DIR | |
| 7587 EOF | |
| 7588 cat >> confdefs.h <<\EOF | |
| 7589 #define SYSV_SYSTEM_DIR 1 | |
| 7590 EOF | |
| 7591 } | |
| 7592 | |
| 7593 else | |
| 7594 echo "$ac_t""no" 1>&6 | |
| 7595 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` | |
| 7596 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 | |
| 7597 echo "configure:7598: checking for sys/dir.h" >&5 | |
| 7598 | |
| 7599 cat > conftest.$ac_ext <<EOF | |
| 7600 #line 7601 "configure" | |
| 7601 #include "confdefs.h" | |
| 7602 #include <sys/dir.h> | |
| 7603 EOF | |
| 7604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
| 7605 { (eval echo configure:7606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
| 7606 ac_err=`grep -v '^ *+' conftest.out` | |
| 7607 if test -z "$ac_err"; then | |
| 7608 rm -rf conftest* | |
| 7609 eval "ac_cv_header_$ac_safe=yes" | |
| 7610 else | |
| 7611 echo "$ac_err" >&5 | |
| 7612 echo "configure: failed program was:" >&5 | |
| 7613 cat conftest.$ac_ext >&5 | |
| 7614 rm -rf conftest* | |
| 7615 eval "ac_cv_header_$ac_safe=no" | |
| 7616 fi | |
| 7617 rm -f conftest* | |
| 7618 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
| 7619 echo "$ac_t""yes" 1>&6 | |
| 5627 : | 7620 : |
| 5628 else | 7621 else |
| 5629 rm -rf conftest* | 7622 echo "$ac_t""no" 1>&6 |
| 5630 ok_so_far= | 7623 { test "$extra_verbose" = "yes" && cat << \EOF |
| 5631 fi | 7624 Defining NONSYSTEM_DIR_LIBRARY |
| 5632 rm -f conftest* | 7625 EOF |
| 5633 | 7626 cat >> confdefs.h <<\EOF |
| 5634 test -n "$ok_so_far" && { test -n "$silent" || echo "checking for sys/ipc.h" | 7627 #define NONSYSTEM_DIR_LIBRARY 1 |
| 5635 cat > conftest.${ac_ext} <<EOF | 7628 EOF |
| 5636 #include "confdefs.h" | 7629 } |
| 5637 #include <sys/ipc.h> | 7630 |
| 5638 EOF | 7631 fi |
| 5639 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | 7632 |
| 5640 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | 7633 fi |
| 5641 echo "$ac_err" | 7634 |
| 5642 fi | 7635 |
| 7636 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` | |
| 7637 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 | |
| 7638 echo "configure:7639: checking for nlist.h" >&5 | |
| 7639 | |
| 7640 cat > conftest.$ac_ext <<EOF | |
| 7641 #line 7642 "configure" | |
| 7642 #include "confdefs.h" | |
| 7643 #include <nlist.h> | |
| 7644 EOF | |
| 7645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
| 7646 { (eval echo configure:7647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
| 7647 ac_err=`grep -v '^ *+' conftest.out` | |
| 5643 if test -z "$ac_err"; then | 7648 if test -z "$ac_err"; then |
| 5644 : | 7649 rm -rf conftest* |
| 5645 else | 7650 eval "ac_cv_header_$ac_safe=yes" |
| 5646 rm -rf conftest* | 7651 else |
| 5647 ok_so_far= | 7652 echo "$ac_err" >&5 |
| 5648 fi | 7653 echo "configure: failed program was:" >&5 |
| 5649 rm -f conftest* | 7654 cat conftest.$ac_ext >&5 |
| 5650 } | 7655 rm -rf conftest* |
| 5651 test -n "$ok_so_far" && { test -n "$silent" || echo "checking for sys/msg.h" | 7656 eval "ac_cv_header_$ac_safe=no" |
| 5652 cat > conftest.${ac_ext} <<EOF | 7657 fi |
| 5653 #include "confdefs.h" | 7658 rm -f conftest* |
| 5654 #include <sys/msg.h> | 7659 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5655 EOF | 7660 echo "$ac_t""yes" 1>&6 |
| 5656 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | 7661 { test "$extra_verbose" = "yes" && cat << \EOF |
| 5657 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | 7662 Defining NLIST_STRUCT |
| 5658 echo "$ac_err" | 7663 EOF |
| 5659 fi | 7664 cat >> confdefs.h <<\EOF |
| 5660 if test -z "$ac_err"; then | 7665 #define NLIST_STRUCT 1 |
| 5661 : | 7666 EOF |
| 5662 else | 7667 } |
| 5663 rm -rf conftest* | 7668 |
| 5664 ok_so_far= | 7669 else |
| 5665 fi | 7670 echo "$ac_t""no" 1>&6 |
| 5666 rm -f conftest* | 7671 fi |
| 5667 } | 7672 |
| 5668 test -n "$ok_so_far" && | 7673 |
| 5669 { | 7674 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp" ; do |
| 5670 test -n "$verbose" && \ | 7675 if test -r $f; then { test "$extra_verbose" = "yes" && cat << EOF |
| 5671 echo " defining HAVE_SYSVIPC" | 7676 Defining AIX_SMT_EXP = -bI:$f |
| 5672 echo "#define" HAVE_SYSVIPC "1" >> confdefs.h | 7677 EOF |
| 5673 DEFS="$DEFS -DHAVE_SYSVIPC=1" | 7678 cat >> confdefs.h <<EOF |
| 5674 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SYSVIPC\${ac_dB}HAVE_SYSVIPC\${ac_dC}1\${ac_dD} | 7679 #define AIX_SMT_EXP -bI:$f |
| 5675 \${ac_uA}HAVE_SYSVIPC\${ac_uB}HAVE_SYSVIPC\${ac_uC}1\${ac_uD} | 7680 EOF |
| 5676 \${ac_eA}HAVE_SYSVIPC\${ac_eB}HAVE_SYSVIPC\${ac_eC}1\${ac_eD} | 7681 } |
| 5677 " | 7682 break; fi |
| 5678 } | 7683 done |
| 5679 | |
| 5680 fi | |
| 5681 | |
| 5682 # Check for directory variants | |
| 5683 | |
| 5684 sysv_system_dir= | |
| 5685 nonsystem_dir_library= | |
| 5686 test -n "$silent" || echo "checking for dirent.h" | |
| 5687 cat > conftest.${ac_ext} <<EOF | |
| 5688 #include "confdefs.h" | |
| 5689 #include <dirent.h> | |
| 5690 EOF | |
| 5691 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | |
| 5692 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | |
| 5693 echo "$ac_err" | |
| 5694 fi | |
| 5695 if test -z "$ac_err"; then | |
| 5696 rm -rf conftest* | |
| 5697 sysv_system_dir=yes | |
| 5698 | |
| 5699 fi | |
| 5700 rm -f conftest* | |
| 5701 | |
| 5702 test -z "$sysv_system_dir" && | |
| 5703 { test -n "$silent" || echo "checking for sys/dir.h" | |
| 5704 cat > conftest.${ac_ext} <<EOF | |
| 5705 #include "confdefs.h" | |
| 5706 #include <sys/dir.h> | |
| 5707 EOF | |
| 5708 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | |
| 5709 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | |
| 5710 echo "$ac_err" | |
| 5711 fi | |
| 5712 if test -z "$ac_err"; then | |
| 5713 : | |
| 5714 else | |
| 5715 rm -rf conftest* | |
| 5716 nonsystem_dir_library=yes | |
| 5717 fi | |
| 5718 rm -f conftest* | |
| 5719 } | |
| 5720 if test -n "$sysv_system_dir" ; then | |
| 5721 { | |
| 5722 test -n "$verbose" && \ | |
| 5723 echo " defining SYSV_SYSTEM_DIR" | |
| 5724 echo "#define" SYSV_SYSTEM_DIR "1" >> confdefs.h | |
| 5725 DEFS="$DEFS -DSYSV_SYSTEM_DIR=1" | |
| 5726 ac_sed_defs="${ac_sed_defs}\${ac_dA}SYSV_SYSTEM_DIR\${ac_dB}SYSV_SYSTEM_DIR\${ac_dC}1\${ac_dD} | |
| 5727 \${ac_uA}SYSV_SYSTEM_DIR\${ac_uB}SYSV_SYSTEM_DIR\${ac_uC}1\${ac_uD} | |
| 5728 \${ac_eA}SYSV_SYSTEM_DIR\${ac_eB}SYSV_SYSTEM_DIR\${ac_eC}1\${ac_eD} | |
| 5729 " | |
| 5730 } | |
| 5731 | |
| 5732 elif test -n "$nonsystem_dir_library" ; then | |
| 5733 { | |
| 5734 test -n "$verbose" && \ | |
| 5735 echo " defining NONSYSTEM_DIR_LIBRARY" | |
| 5736 echo "#define" NONSYSTEM_DIR_LIBRARY "1" >> confdefs.h | |
| 5737 DEFS="$DEFS -DNONSYSTEM_DIR_LIBRARY=1" | |
| 5738 ac_sed_defs="${ac_sed_defs}\${ac_dA}NONSYSTEM_DIR_LIBRARY\${ac_dB}NONSYSTEM_DIR_LIBRARY\${ac_dC}1\${ac_dD} | |
| 5739 \${ac_uA}NONSYSTEM_DIR_LIBRARY\${ac_uB}NONSYSTEM_DIR_LIBRARY\${ac_uC}1\${ac_uD} | |
| 5740 \${ac_eA}NONSYSTEM_DIR_LIBRARY\${ac_eB}NONSYSTEM_DIR_LIBRARY\${ac_eC}1\${ac_eD} | |
| 5741 " | |
| 5742 } | |
| 5743 | |
| 5744 fi | |
| 5745 | |
| 5746 | |
| 5747 echo "checking how to do terminal I/O" | |
| 5748 | |
| 5749 have_termios= | |
| 5750 have_termio= | |
| 5751 test -n "$silent" || echo "checking for termios.h" | |
| 5752 cat > conftest.${ac_ext} <<EOF | |
| 5753 #include "confdefs.h" | |
| 5754 #include <termios.h> | |
| 5755 EOF | |
| 5756 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | |
| 5757 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | |
| 5758 echo "$ac_err" | |
| 5759 fi | |
| 5760 if test -z "$ac_err"; then | |
| 5761 rm -rf conftest* | |
| 5762 have_termios=yes | |
| 5763 | |
| 5764 fi | |
| 5765 rm -f conftest* | |
| 5766 | |
| 5767 test -z "$have_termios" && { test -n "$silent" || echo "checking for termio.h" | |
| 5768 cat > conftest.${ac_ext} <<EOF | |
| 5769 #include "confdefs.h" | |
| 5770 #include <termio.h> | |
| 5771 EOF | |
| 5772 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | |
| 5773 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | |
| 5774 echo "$ac_err" | |
| 5775 fi | |
| 5776 if test -z "$ac_err"; then | |
| 5777 rm -rf conftest* | |
| 5778 have_termio=yes | |
| 5779 | |
| 5780 fi | |
| 5781 rm -f conftest* | |
| 5782 } | |
| 5783 if test -n "$have_termios" ; then | |
| 5784 { | |
| 5785 test -n "$verbose" && \ | |
| 5786 echo " defining HAVE_TERMIOS" | |
| 5787 echo "#define" HAVE_TERMIOS "1" >> confdefs.h | |
| 5788 DEFS="$DEFS -DHAVE_TERMIOS=1" | |
| 5789 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TERMIOS\${ac_dB}HAVE_TERMIOS\${ac_dC}1\${ac_dD} | |
| 5790 \${ac_uA}HAVE_TERMIOS\${ac_uB}HAVE_TERMIOS\${ac_uC}1\${ac_uD} | |
| 5791 \${ac_eA}HAVE_TERMIOS\${ac_eB}HAVE_TERMIOS\${ac_eC}1\${ac_eD} | |
| 5792 " | |
| 5793 } | |
| 5794 | |
| 5795 elif test -n "$have_termio" ; then | |
| 5796 { | |
| 5797 test -n "$verbose" && \ | |
| 5798 echo " defining HAVE_TERMIO" | |
| 5799 echo "#define" HAVE_TERMIO "1" >> confdefs.h | |
| 5800 DEFS="$DEFS -DHAVE_TERMIO=1" | |
| 5801 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TERMIO\${ac_dB}HAVE_TERMIO\${ac_dC}1\${ac_dD} | |
| 5802 \${ac_uA}HAVE_TERMIO\${ac_uB}HAVE_TERMIO\${ac_uC}1\${ac_uD} | |
| 5803 \${ac_eA}HAVE_TERMIO\${ac_eB}HAVE_TERMIO\${ac_eC}1\${ac_eD} | |
| 5804 " | |
| 5805 } | |
| 5806 | |
| 5807 fi | |
| 5808 | |
| 5809 # Check for nlist.h | |
| 5810 test -n "$silent" || echo "checking for nlist.h" | |
| 5811 cat > conftest.${ac_ext} <<EOF | |
| 5812 #include "confdefs.h" | |
| 5813 #include <nlist.h> | |
| 5814 EOF | |
| 5815 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | |
| 5816 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | |
| 5817 echo "$ac_err" | |
| 5818 fi | |
| 5819 if test -z "$ac_err"; then | |
| 5820 rm -rf conftest* | |
| 5821 | |
| 5822 { | |
| 5823 test -n "$verbose" && \ | |
| 5824 echo " defining NLIST_STRUCT" | |
| 5825 echo "#define" NLIST_STRUCT "1" >> confdefs.h | |
| 5826 DEFS="$DEFS -DNLIST_STRUCT=1" | |
| 5827 ac_sed_defs="${ac_sed_defs}\${ac_dA}NLIST_STRUCT\${ac_dB}NLIST_STRUCT\${ac_dC}1\${ac_dD} | |
| 5828 \${ac_uA}NLIST_STRUCT\${ac_uB}NLIST_STRUCT\${ac_uC}1\${ac_uD} | |
| 5829 \${ac_eA}NLIST_STRUCT\${ac_eB}NLIST_STRUCT\${ac_eC}1\${ac_eD} | |
| 5830 " | |
| 5831 } | |
| 5832 | |
| 5833 | |
| 5834 fi | |
| 5835 rm -f conftest* | |
| 5836 | |
| 5837 | |
| 5838 # AIX export list | |
| 5839 if test -f /usr/lpp/X11/bin/smt.exp ; then | |
| 5840 | |
| 5841 { | |
| 5842 test -n "$verbose" && \ | |
| 5843 echo " defining" AIX_SMT_EXP to be "-bI:/usr/lpp/X11/bin/smt.exp" | |
| 5844 echo "#define" AIX_SMT_EXP "-bI:/usr/lpp/X11/bin/smt.exp" >> confdefs.h | |
| 5845 DEFS="$DEFS -DAIX_SMT_EXP=-bI:/usr/lpp/X11/bin/smt.exp" | |
| 5846 ac_sed_defs="${ac_sed_defs}\${ac_dA}AIX_SMT_EXP\${ac_dB}AIX_SMT_EXP\${ac_dC}-bI:/usr/lpp/X11/bin/smt.exp\${ac_dD} | |
| 5847 \${ac_uA}AIX_SMT_EXP\${ac_uB}AIX_SMT_EXP\${ac_uC}-bI:/usr/lpp/X11/bin/smt.exp\${ac_uD} | |
| 5848 \${ac_eA}AIX_SMT_EXP\${ac_eB}AIX_SMT_EXP\${ac_eC}-bI:/usr/lpp/X11/bin/smt.exp\${ac_eD} | |
| 5849 " | |
| 5850 } | |
| 5851 | |
| 5852 elif test -f /usr/bin/X11/smt.exp ; then | |
| 5853 | |
| 5854 { | |
| 5855 test -n "$verbose" && \ | |
| 5856 echo " defining" AIX_SMT_EXP to be "-bI:/usr/bin/X11/smt.exp" | |
| 5857 echo "#define" AIX_SMT_EXP "-bI:/usr/bin/X11/smt.exp" >> confdefs.h | |
| 5858 DEFS="$DEFS -DAIX_SMT_EXP=-bI:/usr/bin/X11/smt.exp" | |
| 5859 ac_sed_defs="${ac_sed_defs}\${ac_dA}AIX_SMT_EXP\${ac_dB}AIX_SMT_EXP\${ac_dC}-bI:/usr/bin/X11/smt.exp\${ac_dD} | |
| 5860 \${ac_uA}AIX_SMT_EXP\${ac_uB}AIX_SMT_EXP\${ac_uC}-bI:/usr/bin/X11/smt.exp\${ac_uD} | |
| 5861 \${ac_eA}AIX_SMT_EXP\${ac_eB}AIX_SMT_EXP\${ac_eC}-bI:/usr/bin/X11/smt.exp\${ac_eD} | |
| 5862 " | |
| 5863 } | |
| 5864 | |
| 5865 fi | |
| 5866 | 7684 |
| 5867 CFLAGS="$REAL_CFLAGS" | 7685 CFLAGS="$REAL_CFLAGS" |
| 5868 | 7686 |
| 5869 file="${srcdir}/lisp/version.el" | 7687 file="$srcdir/lisp/version.el" |
| 5870 version=`sed -ne 's/^(defconst emacs-version "\(.*\)".*/\1/p' "$file"` | 7688 version=`sed -ne 's/^(defconst emacs-version "\(.*\)".*/\1/p' "$file"` |
| 5871 if test -z "${version}"; then | 7689 if test -z "$version"; then |
| 5872 echo "${progname}: can't find current emacs version in \"$file\"." >&2 | 7690 echo "$progname: can't find current emacs version in \"$file\"." >&2 |
| 5873 exit 1 | 7691 exit 1 |
| 5874 fi | 7692 fi |
| 5875 beta=`sed -ne 's/^.*XEmacs Lucid (beta\([0-9][0-9]*\)).*$/\1/p' "$file"` | 7693 beta=`sed -ne 's/^.*XEmacs Lucid (beta\([0-9][0-9]*\)).*$/\1/p' "$file"` |
| 5876 test -n "$beta" && version="${version}-b${beta}" | 7694 test -n "$beta" && version="${version}-b${beta}" |
| 5877 | 7695 |
| 5878 | 7696 |
| 5879 | 7697 |
| 5880 # the following needs to be fixed for SGI. | 7698 echo "checking "for sound support"" 1>&6 |
| 5881 if test -z "${native_sound_lib}" ; then | 7699 echo "configure:7700: checking "for sound support"" >&5 |
| 5882 if test -r /usr/demo/SOUND/lib/libaudio.a; then | 7700 case "$with_sound" in |
| 5883 native_sound_lib=/usr/demo/SOUND/lib/libaudio.a | 7701 native | both ) with_native_sound=yes;; |
| 5884 elif test -r /usr/demo/SOUND/libaudio.a ; then | 7702 nas | no ) with_native_sound=no;; |
| 5885 native_sound_lib=/usr/demo/SOUND/libaudio.a | 7703 esac |
| 7704 if test "$with_native_sound" != "no"; then | |
| 7705 if test -d "/usr/demo/SOUND"; then | |
| 7706 sound_found="yes" extra_objs="$extra_objs sunplay.o" | |
| 7707 if test -d "/usr/demo/SOUND/include" | |
| 7708 then sound_cflags="-I/usr/demo/SOUND/include" | |
| 7709 else sound_cflags="-I/usr/demo/SOUND" | |
| 7710 fi | |
| 7711 if test -z "$native_sound_lib" ; then | |
| 7712 if test -r "/usr/demo/SOUND/lib/libaudio.a" | |
| 7713 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a" | |
| 7714 else native_sound_lib="/usr/demo/SOUND/libaudio.a" | |
| 7715 fi | |
| 7716 fi | |
| 5886 else | 7717 else |
| 5887 case "${canonical}" in | 7718 case "$canonical" in \ |
| 5888 *-sgi-* ) ac_save_LIBS="${LIBS}" | 7719 *-sgi-* ) |
| 5889 LIBS="${LIBS} -laudio" | 7720 |
| 5890 ac_have_lib="" | 7721 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 |
| 5891 test -n "$silent" || echo "checking for -laudio" | 7722 echo "configure:7723: checking for ALopenport in -laudio" >&5 |
| 5892 cat > conftest.${ac_ext} <<EOF | 7723 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` |
| 5893 #include "confdefs.h" | 7724 |
| 5894 | 7725 xe_check_libs=" -laudio " |
| 5895 int main() { return 0; } | 7726 cat > conftest.$ac_ext <<EOF |
| 5896 int t() { main();; return 0; } | 7727 #line 7728 "configure" |
| 5897 EOF | 7728 #include "confdefs.h" |
| 5898 if eval $ac_compile; then | 7729 /* Override any gcc2 internal prototype to avoid an error. */ |
| 5899 rm -rf conftest* | 7730 /* We use char because int might match the return type of a gcc2 |
| 5900 ac_have_lib="1" | 7731 builtin and then its argument prototype would still apply. */ |
| 5901 | 7732 char ALopenport(); |
| 5902 fi | 7733 |
| 5903 rm -f conftest* | 7734 int main() { |
| 5904 LIBS="${ac_save_LIBS}" | 7735 ALopenport() |
| 5905 if test -n "${ac_have_lib}"; then | 7736 ; return 0; } |
| 5906 :; native_sound_lib="-laudio" | 7737 EOF |
| 5907 else | 7738 if { (eval echo configure:7739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 5908 :; | 7739 rm -rf conftest* |
| 5909 fi | 7740 eval "ac_cv_lib_$ac_lib_var=yes" |
| 5910 ;; | 7741 else |
| 5911 hppa*-hp-hpux* ) ac_save_LIBS="${LIBS}" | 7742 echo "configure: failed program was:" >&5 |
| 5912 LIBS="${LIBS} -lAlib" | 7743 cat conftest.$ac_ext >&5 |
| 5913 ac_have_lib="" | 7744 rm -rf conftest* |
| 5914 test -n "$silent" || echo "checking for -lAlib" | 7745 eval "ac_cv_lib_$ac_lib_var=no" |
| 5915 cat > conftest.${ac_ext} <<EOF | 7746 fi |
| 5916 #include "confdefs.h" | 7747 rm -f conftest* |
| 5917 | 7748 xe_check_libs="" |
| 5918 int main() { return 0; } | 7749 |
| 5919 int t() { main();; return 0; } | 7750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 5920 EOF | 7751 echo "$ac_t""yes" 1>&6 |
| 5921 if eval $ac_compile; then | 7752 native_sound_lib="-laudio" |
| 5922 rm -rf conftest* | 7753 else |
| 5923 ac_have_lib="1" | 7754 echo "$ac_t""no" 1>&6 |
| 5924 | 7755 fi |
| 5925 fi | 7756 |
| 5926 rm -f conftest* | 7757 |
| 5927 LIBS="${ac_save_LIBS}" | 7758 if test "$native_sound_lib" = "-laudio"; then |
| 5928 if test -n "${ac_have_lib}"; then | 7759 sound_found="yes" extra_objs="$extra_objs sgiplay.o" sound_cflags="" |
| 5929 :; native_sound_lib="-lAlib" | 7760 fi ;; |
| 5930 else | 7761 hppa*-hp-hpux* ) |
| 5931 :; | 7762 |
| 5932 fi | 7763 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 |
| 5933 ;; | 7764 echo "configure:7765: checking for AOpenAudio in -lAlib" >&5 |
| 7765 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` | |
| 7766 | |
| 7767 xe_check_libs=" -lAlib " | |
| 7768 cat > conftest.$ac_ext <<EOF | |
| 7769 #line 7770 "configure" | |
| 7770 #include "confdefs.h" | |
| 7771 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 7772 /* We use char because int might match the return type of a gcc2 | |
| 7773 builtin and then its argument prototype would still apply. */ | |
| 7774 char AOpenAudio(); | |
| 7775 | |
| 7776 int main() { | |
| 7777 AOpenAudio() | |
| 7778 ; return 0; } | |
| 7779 EOF | |
| 7780 if { (eval echo configure:7781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 7781 rm -rf conftest* | |
| 7782 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 7783 else | |
| 7784 echo "configure: failed program was:" >&5 | |
| 7785 cat conftest.$ac_ext >&5 | |
| 7786 rm -rf conftest* | |
| 7787 eval "ac_cv_lib_$ac_lib_var=no" | |
| 7788 fi | |
| 7789 rm -f conftest* | |
| 7790 xe_check_libs="" | |
| 7791 | |
| 7792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 7793 echo "$ac_t""yes" 1>&6 | |
| 7794 native_sound_lib="-lAlib" | |
| 7795 else | |
| 7796 echo "$ac_t""no" 1>&6 | |
| 7797 fi | |
| 7798 | |
| 7799 | |
| 7800 if test "$native_sound_lib" = "-lAlib"; then | |
| 7801 sound_found="yes" extra_objs="$extra_objs hpplay.o" | |
| 7802 if test "$with_gcc" = "yes" # Kludge city | |
| 7803 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples" | |
| 7804 else sound_cflags="+e -I/usr/audio/examples" | |
| 7805 fi | |
| 7806 fi ;; | |
| 5934 esac | 7807 esac |
| 5935 fi | 7808 fi |
| 5936 fi | 7809 |
| 5937 test -z "${with_sound}" -a -n "${native_sound_lib}" && with_sound="native"; | 7810 if test -z "$sound_found"; then |
| 5938 | 7811 for dir in "machine" "sys" "linux"; do |
| 5939 #### If the nas library doesn't contain the error jump point, then | 7812 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` |
| 5940 #### we force safer behaviour. | 7813 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 |
| 5941 | 7814 echo "configure:7815: checking for ${dir}/soundcard.h" >&5 |
| 5942 if test "${with_sound}" = "nas" -o \ | 7815 |
| 5943 "${with_sound}" = "both"; then | 7816 cat > conftest.$ac_ext <<EOF |
| 5944 echo '#include "confdefs.h" | 7817 #line 7818 "configure" |
| 5945 #include <audio/Xtutil.h>' > conftest.${ac_ext} | 7818 #include "confdefs.h" |
| 5946 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1" | 7819 #include <${dir}/soundcard.h> |
| 5947 if egrep "AuXtErrorJump" conftest.out >/dev/null 2>&1; then | 7820 EOF |
| 7821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
| 7822 { (eval echo configure:7823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
| 7823 ac_err=`grep -v '^ *+' conftest.out` | |
| 7824 if test -z "$ac_err"; then | |
| 7825 rm -rf conftest* | |
| 7826 eval "ac_cv_header_$ac_safe=yes" | |
| 7827 else | |
| 7828 echo "$ac_err" >&5 | |
| 7829 echo "configure: failed program was:" >&5 | |
| 7830 cat conftest.$ac_ext >&5 | |
| 7831 rm -rf conftest* | |
| 7832 eval "ac_cv_header_$ac_safe=no" | |
| 7833 fi | |
| 7834 rm -f conftest* | |
| 7835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
| 7836 echo "$ac_t""yes" 1>&6 | |
| 7837 sound_found=yes | |
| 7838 extra_objs="$extra_objs linuxplay.o" | |
| 7839 { test "$extra_verbose" = "yes" && cat << EOF | |
| 7840 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h" | |
| 7841 EOF | |
| 7842 cat >> confdefs.h <<EOF | |
| 7843 #define SOUNDCARD_H_PATH "${dir}/soundcard.h" | |
| 7844 EOF | |
| 7845 } | |
| 7846 | |
| 7847 break | |
| 7848 else | |
| 7849 echo "$ac_t""no" 1>&6 | |
| 7850 fi | |
| 7851 | |
| 7852 done | |
| 7853 fi | |
| 7854 | |
| 7855 test "$sound_found" = "yes" && with_native_sound=yes | |
| 7856 fi | |
| 7857 | |
| 7858 if test -z "$with_sound"; then | |
| 7859 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then | |
| 7860 with_sound=native | |
| 7861 fi | |
| 7862 fi | |
| 7863 | |
| 7864 if test "$with_native_sound" = "yes"; then | |
| 7865 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 7866 Defining HAVE_NATIVE_SOUND | |
| 7867 EOF | |
| 7868 cat >> confdefs.h <<\EOF | |
| 7869 #define HAVE_NATIVE_SOUND 1 | |
| 7870 EOF | |
| 7871 } | |
| 7872 | |
| 7873 test -n "$native_sound_lib" && LIBS="$LIBS $native_sound_lib" | |
| 7874 fi | |
| 7875 | |
| 7876 case "$with_sound" in both | nas ) | |
| 7877 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 7878 Defining HAVE_NAS_SOUND | |
| 7879 EOF | |
| 7880 cat >> confdefs.h <<\EOF | |
| 7881 #define HAVE_NAS_SOUND 1 | |
| 7882 EOF | |
| 7883 } | |
| 7884 | |
| 7885 extra_objs="$extra_objs nas.o" | |
| 7886 LIBS="$LIBS -laudio" | |
| 7887 cat > conftest.$ac_ext <<EOF | |
| 7888 #line 7889 "configure" | |
| 7889 #include "confdefs.h" | |
| 7890 #include <audio/Xtutil.h> | |
| 7891 EOF | |
| 7892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
| 7893 egrep "AuXtErrorJump" >/dev/null 2>&1; then | |
| 5948 : | 7894 : |
| 5949 else | 7895 else |
| 5950 rm -rf conftest* | 7896 rm -rf conftest* |
| 5951 old_nas=true | 7897 { test "$extra_verbose" = "yes" && cat << \EOF |
| 5952 fi | 7898 Defining NAS_NO_ERROR_JUMP |
| 5953 rm -f conftest* | 7899 EOF |
| 5954 | 7900 cat >> confdefs.h <<\EOF |
| 5955 fi | 7901 #define NAS_NO_ERROR_JUMP 1 |
| 5956 | 7902 EOF |
| 5957 if test "${with_cde}" = "yes" ; then | 7903 } |
| 5958 if test -f "/usr/dt/include/Dt/Dt.h" ; then | 7904 |
| 5959 C_SWITCH_X_SITE="${C_SWITCH_X_SITE} -I/usr/dt/include" | 7905 fi |
| 7906 rm -f conftest* | |
| 7907 | |
| 7908 esac | |
| 7909 | |
| 7910 | |
| 7911 | |
| 7912 | |
| 7913 echo "checking "how to do terminal I/O"" 1>&6 | |
| 7914 echo "configure:7915: checking "how to do terminal I/O"" >&5 | |
| 7915 | |
| 7916 test -z "$with_tty" && with_tty=yes | |
| 7917 | |
| 7918 if test "$with_tty" = "yes" ; then | |
| 7919 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 7920 Defining HAVE_TTY | |
| 7921 EOF | |
| 7922 cat >> confdefs.h <<\EOF | |
| 7923 #define HAVE_TTY 1 | |
| 7924 EOF | |
| 7925 } | |
| 7926 | |
| 7927 | |
| 7928 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` | |
| 7929 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 | |
| 7930 echo "configure:7931: checking for termios.h" >&5 | |
| 7931 | |
| 7932 cat > conftest.$ac_ext <<EOF | |
| 7933 #line 7934 "configure" | |
| 7934 #include "confdefs.h" | |
| 7935 #include <termios.h> | |
| 7936 EOF | |
| 7937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
| 7938 { (eval echo configure:7939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
| 7939 ac_err=`grep -v '^ *+' conftest.out` | |
| 7940 if test -z "$ac_err"; then | |
| 7941 rm -rf conftest* | |
| 7942 eval "ac_cv_header_$ac_safe=yes" | |
| 7943 else | |
| 7944 echo "$ac_err" >&5 | |
| 7945 echo "configure: failed program was:" >&5 | |
| 7946 cat conftest.$ac_ext >&5 | |
| 7947 rm -rf conftest* | |
| 7948 eval "ac_cv_header_$ac_safe=no" | |
| 7949 fi | |
| 7950 rm -f conftest* | |
| 7951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
| 7952 echo "$ac_t""yes" 1>&6 | |
| 7953 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 7954 Defining HAVE_TERMIOS | |
| 7955 EOF | |
| 7956 cat >> confdefs.h <<\EOF | |
| 7957 #define HAVE_TERMIOS 1 | |
| 7958 EOF | |
| 7959 } | |
| 7960 | |
| 7961 else | |
| 7962 echo "$ac_t""no" 1>&6 | |
| 7963 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` | |
| 7964 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 | |
| 7965 echo "configure:7966: checking for termio.h" >&5 | |
| 7966 | |
| 7967 cat > conftest.$ac_ext <<EOF | |
| 7968 #line 7969 "configure" | |
| 7969 #include "confdefs.h" | |
| 7970 #include <termio.h> | |
| 7971 EOF | |
| 7972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
| 7973 { (eval echo configure:7974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
| 7974 ac_err=`grep -v '^ *+' conftest.out` | |
| 7975 if test -z "$ac_err"; then | |
| 7976 rm -rf conftest* | |
| 7977 eval "ac_cv_header_$ac_safe=yes" | |
| 7978 else | |
| 7979 echo "$ac_err" >&5 | |
| 7980 echo "configure: failed program was:" >&5 | |
| 7981 cat conftest.$ac_ext >&5 | |
| 7982 rm -rf conftest* | |
| 7983 eval "ac_cv_header_$ac_safe=no" | |
| 7984 fi | |
| 7985 rm -f conftest* | |
| 7986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
| 7987 echo "$ac_t""yes" 1>&6 | |
| 7988 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 7989 Defining HAVE_TERMIO | |
| 7990 EOF | |
| 7991 cat >> confdefs.h <<\EOF | |
| 7992 #define HAVE_TERMIO 1 | |
| 7993 EOF | |
| 7994 } | |
| 7995 | |
| 7996 else | |
| 7997 echo "$ac_t""no" 1>&6 | |
| 7998 fi | |
| 7999 | |
| 8000 fi | |
| 8001 | |
| 8002 | |
| 8003 #### Attn: Bill Perry: Remove next line when GPM support is added | |
| 8004 test -z "$with_gpm" && with_gpm=no | |
| 8005 | |
| 8006 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` | |
| 8007 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 | |
| 8008 echo "configure:8009: checking for gpm.h" >&5 | |
| 8009 | |
| 8010 cat > conftest.$ac_ext <<EOF | |
| 8011 #line 8012 "configure" | |
| 8012 #include "confdefs.h" | |
| 8013 #include <gpm.h> | |
| 8014 EOF | |
| 8015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
| 8016 { (eval echo configure:8017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
| 8017 ac_err=`grep -v '^ *+' conftest.out` | |
| 8018 if test -z "$ac_err"; then | |
| 8019 rm -rf conftest* | |
| 8020 eval "ac_cv_header_$ac_safe=yes" | |
| 8021 else | |
| 8022 echo "$ac_err" >&5 | |
| 8023 echo "configure: failed program was:" >&5 | |
| 8024 cat conftest.$ac_ext >&5 | |
| 8025 rm -rf conftest* | |
| 8026 eval "ac_cv_header_$ac_safe=no" | |
| 8027 fi | |
| 8028 rm -f conftest* | |
| 8029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
| 8030 echo "$ac_t""yes" 1>&6 | |
| 8031 : | |
| 8032 else | |
| 8033 echo "$ac_t""no" 1>&6 | |
| 8034 with_gpm=no | |
| 8035 fi | |
| 8036 } | |
| 8037 test -z "$with_gpm" && { | |
| 8038 echo $ac_n "checking for connect_to_gpm in -lgpm""... $ac_c" 1>&6 | |
| 8039 echo "configure:8040: checking for connect_to_gpm in -lgpm" >&5 | |
| 8040 ac_lib_var=`echo gpm'_'connect_to_gpm | sed 'y%./+-%__p_%'` | |
| 8041 | |
| 8042 xe_check_libs=" -lgpm " | |
| 8043 cat > conftest.$ac_ext <<EOF | |
| 8044 #line 8045 "configure" | |
| 8045 #include "confdefs.h" | |
| 8046 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 8047 /* We use char because int might match the return type of a gcc2 | |
| 8048 builtin and then its argument prototype would still apply. */ | |
| 8049 char connect_to_gpm(); | |
| 8050 | |
| 8051 int main() { | |
| 8052 connect_to_gpm() | |
| 8053 ; return 0; } | |
| 8054 EOF | |
| 8055 if { (eval echo configure:8056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 8056 rm -rf conftest* | |
| 8057 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 8058 else | |
| 8059 echo "configure: failed program was:" >&5 | |
| 8060 cat conftest.$ac_ext >&5 | |
| 8061 rm -rf conftest* | |
| 8062 eval "ac_cv_lib_$ac_lib_var=no" | |
| 8063 fi | |
| 8064 rm -f conftest* | |
| 8065 xe_check_libs="" | |
| 8066 | |
| 8067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 8068 echo "$ac_t""yes" 1>&6 | |
| 8069 with_gpm=yes | |
| 8070 else | |
| 8071 echo "$ac_t""no" 1>&6 | |
| 8072 with_gpm=no | |
| 8073 fi | |
| 8074 | |
| 8075 } | |
| 8076 if test "$with_gpm" = "yes"; then | |
| 8077 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 8078 Defining HAVE_GPM | |
| 8079 EOF | |
| 8080 cat >> confdefs.h <<\EOF | |
| 8081 #define HAVE_GPM 1 | |
| 8082 EOF | |
| 8083 } | |
| 8084 | |
| 8085 extra_objs="$extra_objs gpmevent.o" | |
| 8086 LIBS="$LIBS -lgpm" | |
| 5960 fi | 8087 fi |
| 5961 if test -f "/usr/dt/lib/libDtSvc.a" ; then | 8088 |
| 5962 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} -L/usr/dt/lib" | 8089 if test -z "$with_ncurses"; then |
| 8090 | |
| 8091 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 | |
| 8092 echo "configure:8093: checking for tparm in -lncurses" >&5 | |
| 8093 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` | |
| 8094 | |
| 8095 xe_check_libs=" -lncurses " | |
| 8096 cat > conftest.$ac_ext <<EOF | |
| 8097 #line 8098 "configure" | |
| 8098 #include "confdefs.h" | |
| 8099 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 8100 /* We use char because int might match the return type of a gcc2 | |
| 8101 builtin and then its argument prototype would still apply. */ | |
| 8102 char tparm(); | |
| 8103 | |
| 8104 int main() { | |
| 8105 tparm() | |
| 8106 ; return 0; } | |
| 8107 EOF | |
| 8108 if { (eval echo configure:8109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 8109 rm -rf conftest* | |
| 8110 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 8111 else | |
| 8112 echo "configure: failed program was:" >&5 | |
| 8113 cat conftest.$ac_ext >&5 | |
| 8114 rm -rf conftest* | |
| 8115 eval "ac_cv_lib_$ac_lib_var=no" | |
| 8116 fi | |
| 8117 rm -f conftest* | |
| 8118 xe_check_libs="" | |
| 8119 | |
| 8120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 8121 echo "$ac_t""yes" 1>&6 | |
| 8122 with_ncurses=yes | |
| 8123 else | |
| 8124 echo "$ac_t""no" 1>&6 | |
| 8125 with_ncurses=no | |
| 8126 fi | |
| 8127 | |
| 8128 | |
| 5963 fi | 8129 fi |
| 5964 fi | 8130 if test "$with_ncurses" = "yes"; then |
| 5965 | 8131 { test "$extra_verbose" = "yes" && cat << \EOF |
| 5966 if test "${with_tooltalk}" = "yes" ; then | 8132 Defining HAVE_NCURSES |
| 5967 for arg in "-I/usr/include/desktop" "-I${OPENWINHOME-/usr/openwin}/include/desktop" "-I/usr/dt/include/Tt" | 8133 EOF |
| 5968 do | 8134 cat >> confdefs.h <<\EOF |
| 5969 if test -f `echo "${arg}/tt_c.h" | sed 's/^\-I//'` ; then | 8135 #define HAVE_NCURSES 1 |
| 5970 C_SWITCH_X_SITE="${C_SWITCH_X_SITE} ${arg}" | 8136 EOF |
| 5971 fi | 8137 } |
| 5972 done | 8138 |
| 5973 for arg in "-L/usr/lib" "-L${OPENWINHOME-/usr/openwin}/lib" "-L/usr/dt/lib" | 8139 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` |
| 5974 do | 8140 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 |
| 5975 case "${arg}" in | 8141 echo "configure:8142: checking for ncurses/curses.h" >&5 |
| 5976 -L*) if test -f `echo "${arg}/libtt.a" | sed 's/^\-L//'` ; then | 8142 |
| 5977 dash_r='' | 8143 cat > conftest.$ac_ext <<EOF |
| 5978 if test "${add_runtime_flag}" = "yes" ; then | 8144 #line 8145 "configure" |
| 5979 dash_r=`echo ${arg} | sed "s/^-L */${runtime_arg}/"` | 8145 #include "confdefs.h" |
| 5980 fi | 8146 #include <ncurses/curses.h> |
| 5981 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} ${arg} ${dash_r}" | 8147 EOF |
| 5982 fi | 8148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5983 ;; | 8149 { (eval echo configure:8150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 5984 esac | 8150 ac_err=`grep -v '^ *+' conftest.out` |
| 5985 done | 8151 if test -z "$ac_err"; then |
| 5986 fi | 8152 rm -rf conftest* |
| 5987 | 8153 eval "ac_cv_header_$ac_safe=yes" |
| 5988 | 8154 else |
| 5989 if test "${with_tty}" != "no" ; then | 8155 echo "$ac_err" >&5 |
| 5990 ac_save_LIBS="${LIBS}" | 8156 echo "configure: failed program was:" >&5 |
| 5991 LIBS="${LIBS} -lncurses" | 8157 cat conftest.$ac_ext >&5 |
| 5992 ac_have_lib="" | 8158 rm -rf conftest* |
| 5993 test -n "$silent" || echo "checking for -lncurses" | 8159 eval "ac_cv_header_$ac_safe=no" |
| 5994 cat > conftest.${ac_ext} <<EOF | 8160 fi |
| 5995 #include "confdefs.h" | 8161 rm -f conftest* |
| 5996 | 8162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5997 int main() { return 0; } | 8163 echo "$ac_t""yes" 1>&6 |
| 5998 int t() { main();; return 0; } | 8164 curses_h_path=ncurses/curses.h |
| 5999 EOF | 8165 else |
| 6000 if eval $ac_compile; then | 8166 echo "$ac_t""no" 1>&6 |
| 6001 rm -rf conftest* | 8167 fi |
| 6002 ac_have_lib="1" | 8168 |
| 6003 | 8169 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` |
| 6004 fi | 8170 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 |
| 6005 rm -f conftest* | 8171 echo "configure:8172: checking for ncurses/term.h" >&5 |
| 6006 LIBS="${ac_save_LIBS}" | 8172 |
| 6007 if test -n "${ac_have_lib}"; then | 8173 cat > conftest.$ac_ext <<EOF |
| 6008 :; have_ncurses=yes | 8174 #line 8175 "configure" |
| 6009 else | |
| 6010 :; have_ncurses=no | |
| 6011 fi | |
| 6012 | |
| 6013 if test "${have_ncurses}" = "yes" ; then | |
| 6014 | |
| 6015 { | |
| 6016 test -n "$verbose" && \ | |
| 6017 echo " defining HAVE_NCURSES" | |
| 6018 echo "#define" HAVE_NCURSES "1" >> confdefs.h | |
| 6019 DEFS="$DEFS -DHAVE_NCURSES=1" | |
| 6020 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NCURSES\${ac_dB}HAVE_NCURSES\${ac_dC}1\${ac_dD} | |
| 6021 \${ac_uA}HAVE_NCURSES\${ac_uB}HAVE_NCURSES\${ac_uC}1\${ac_uD} | |
| 6022 \${ac_eA}HAVE_NCURSES\${ac_eB}HAVE_NCURSES\${ac_eC}1\${ac_eD} | |
| 6023 " | |
| 6024 } | |
| 6025 | |
| 6026 test -n "$silent" || echo "checking for ncurses/term.h" | |
| 6027 cat > conftest.${ac_ext} <<EOF | |
| 6028 #include "confdefs.h" | 8175 #include "confdefs.h" |
| 6029 #include <ncurses/term.h> | 8176 #include <ncurses/term.h> |
| 6030 EOF | 8177 EOF |
| 6031 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | 8178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 6032 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | 8179 { (eval echo configure:8180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 6033 echo "$ac_err" | 8180 ac_err=`grep -v '^ *+' conftest.out` |
| 6034 fi | |
| 6035 if test -z "$ac_err"; then | 8181 if test -z "$ac_err"; then |
| 6036 rm -rf conftest* | 8182 rm -rf conftest* |
| 6037 have_ncurses_term_h=yes | 8183 eval "ac_cv_header_$ac_safe=yes" |
| 6038 | 8184 else |
| 6039 else | 8185 echo "$ac_err" >&5 |
| 6040 rm -rf conftest* | 8186 echo "configure: failed program was:" >&5 |
| 6041 have_ncurses_term_h=no | 8187 cat conftest.$ac_ext >&5 |
| 6042 fi | 8188 rm -rf conftest* |
| 6043 rm -f conftest* | 8189 eval "ac_cv_header_$ac_safe=no" |
| 6044 | 8190 fi |
| 6045 test "${have_ncurses_term_h}" = yes && | 8191 rm -f conftest* |
| 6046 { | 8192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 6047 test -n "$verbose" && \ | 8193 echo "$ac_t""yes" 1>&6 |
| 6048 echo " defining HAVE_NCURSES_TERM_H" | 8194 term_h_path=ncurses/term.h |
| 6049 echo "#define" HAVE_NCURSES_TERM_H "1" >> confdefs.h | 8195 else |
| 6050 DEFS="$DEFS -DHAVE_NCURSES_TERM_H=1" | 8196 echo "$ac_t""no" 1>&6 |
| 6051 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NCURSES_TERM_H\${ac_dB}HAVE_NCURSES_TERM_H\${ac_dC}1\${ac_dD} | 8197 fi |
| 6052 \${ac_uA}HAVE_NCURSES_TERM_H\${ac_uB}HAVE_NCURSES_TERM_H\${ac_uC}1\${ac_uD} | 8198 |
| 6053 \${ac_eA}HAVE_NCURSES_TERM_H\${ac_eB}HAVE_NCURSES_TERM_H\${ac_eC}1\${ac_eD} | 8199 extra_objs="$extra_objs terminfo.o" |
| 6054 " | 8200 LIBS="$LIBS -lncurses" |
| 6055 } | 8201 |
| 6056 | 8202 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then |
| 6057 test -n "$silent" || echo "checking for ncurses/curses.h" | 8203 save_c_switch_site="$c_switch_site" |
| 6058 cat > conftest.${ac_ext} <<EOF | 8204 c_switch_site="$c_switch_site -I/usr/include/ncurses" |
| 8205 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` | |
| 8206 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 | |
| 8207 echo "configure:8208: checking for ncurses/curses.h" >&5 | |
| 8208 | |
| 8209 cat > conftest.$ac_ext <<EOF | |
| 8210 #line 8211 "configure" | |
| 6059 #include "confdefs.h" | 8211 #include "confdefs.h" |
| 6060 #include <ncurses/curses.h> | 8212 #include <ncurses/curses.h> |
| 6061 EOF | 8213 EOF |
| 6062 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | 8214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 6063 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | 8215 { (eval echo configure:8216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 6064 echo "$ac_err" | 8216 ac_err=`grep -v '^ *+' conftest.out` |
| 6065 fi | |
| 6066 if test -z "$ac_err"; then | 8217 if test -z "$ac_err"; then |
| 6067 rm -rf conftest* | 8218 rm -rf conftest* |
| 6068 have_ncurses_curses_h=yes | 8219 eval "ac_cv_header_$ac_safe=yes" |
| 6069 | 8220 else |
| 6070 else | 8221 echo "$ac_err" >&5 |
| 6071 rm -rf conftest* | 8222 echo "configure: failed program was:" >&5 |
| 6072 have_ncurses_curses_h=no | 8223 cat conftest.$ac_ext >&5 |
| 6073 fi | 8224 rm -rf conftest* |
| 6074 rm -f conftest* | 8225 eval "ac_cv_header_$ac_safe=no" |
| 6075 | 8226 fi |
| 6076 if test "${have_ncurses_curses_h}" = "no" ; then | 8227 rm -f conftest* |
| 6077 OLD_CPP="${CPP}" | 8228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 6078 CPP="${CPP} -I/usr/include/ncurses" | 8229 echo "$ac_t""yes" 1>&6 |
| 6079 test -n "$silent" || echo "checking for ncurses/curses.h" | 8230 curses_h_path=ncurses/curses.h |
| 6080 cat > conftest.${ac_ext} <<EOF | 8231 else |
| 6081 #include "confdefs.h" | 8232 echo "$ac_t""no" 1>&6 |
| 6082 #include <ncurses/curses.h> | 8233 fi |
| 6083 EOF | 8234 |
| 6084 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | 8235 if test "$ac_cv_header_ncurses_curses_h" = "yes"; |
| 6085 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | 8236 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2 |
| 6086 echo "$ac_err" | 8237 else c_switch_site="$save_c_switch_site" |
| 6087 fi | |
| 6088 if test -z "$ac_err"; then | |
| 6089 rm -rf conftest* | |
| 6090 have_ncurses_curses_h=yes | |
| 6091 | |
| 6092 else | |
| 6093 rm -rf conftest* | |
| 6094 have_ncurses_curses_h=no | |
| 6095 fi | |
| 6096 rm -f conftest* | |
| 6097 | |
| 6098 if test "${have_ncurses_curses_h}" = "yes" ; then | |
| 6099 site_includes="${site_includes} /usr/include/ncurses" | |
| 6100 C_SWITCH_SITE="${C_SWITCH_SITE} -I/usr/include/ncurses" | |
| 6101 test -n "$verbose" && echo " Your system has the bogus ncurses include bug." | |
| 6102 else | |
| 6103 CPP="${OLD_CPP}" | |
| 6104 fi | 8238 fi |
| 6105 fi | 8239 fi |
| 6106 test "${have_ncurses_curses_h}" = yes && | 8240 else |
| 6107 { | 8241 echo $ac_n "checking for tgoto in -ltermlib""... $ac_c" 1>&6 |
| 6108 test -n "$verbose" && \ | 8242 echo "configure:8243: checking for tgoto in -ltermlib" >&5 |
| 6109 echo " defining HAVE_NCURSES_CURSES_H" | 8243 ac_lib_var=`echo termlib'_'tgoto | sed 'y%./+-%__p_%'` |
| 6110 echo "#define" HAVE_NCURSES_CURSES_H "1" >> confdefs.h | 8244 |
| 6111 DEFS="$DEFS -DHAVE_NCURSES_CURSES_H=1" | 8245 xe_check_libs=" -ltermlib " |
| 6112 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NCURSES_CURSES_H\${ac_dB}HAVE_NCURSES_CURSES_H\${ac_dC}1\${ac_dD} | 8246 cat > conftest.$ac_ext <<EOF |
| 6113 \${ac_uA}HAVE_NCURSES_CURSES_H\${ac_uB}HAVE_NCURSES_CURSES_H\${ac_uC}1\${ac_uD} | 8247 #line 8248 "configure" |
| 6114 \${ac_eA}HAVE_NCURSES_CURSES_H\${ac_eB}HAVE_NCURSES_CURSES_H\${ac_eC}1\${ac_eD} | 8248 #include "confdefs.h" |
| 6115 " | 8249 /* Override any gcc2 internal prototype to avoid an error. */ |
| 6116 } | 8250 /* We use char because int might match the return type of a gcc2 |
| 6117 | 8251 builtin and then its argument prototype would still apply. */ |
| 8252 char tgoto(); | |
| 8253 | |
| 8254 int main() { | |
| 8255 tgoto() | |
| 8256 ; return 0; } | |
| 8257 EOF | |
| 8258 if { (eval echo configure:8259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 8259 rm -rf conftest* | |
| 8260 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 8261 else | |
| 8262 echo "configure: failed program was:" >&5 | |
| 8263 cat conftest.$ac_ext >&5 | |
| 8264 rm -rf conftest* | |
| 8265 eval "ac_cv_lib_$ac_lib_var=no" | |
| 8266 fi | |
| 8267 rm -f conftest* | |
| 8268 xe_check_libs="" | |
| 8269 | |
| 8270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 8271 echo "$ac_t""yes" 1>&6 | |
| 8272 have_libtermlib=yes | |
| 8273 else | |
| 8274 echo "$ac_t""no" 1>&6 | |
| 8275 have_libtermlib=no | |
| 8276 fi | |
| 8277 | |
| 8278 | |
| 8279 | |
| 8280 echo $ac_n "checking for tgoto in -ltermcap""... $ac_c" 1>&6 | |
| 8281 echo "configure:8282: checking for tgoto in -ltermcap" >&5 | |
| 8282 ac_lib_var=`echo termcap'_'tgoto | sed 'y%./+-%__p_%'` | |
| 8283 | |
| 8284 xe_check_libs=" -ltermcap " | |
| 8285 cat > conftest.$ac_ext <<EOF | |
| 8286 #line 8287 "configure" | |
| 8287 #include "confdefs.h" | |
| 8288 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 8289 /* We use char because int might match the return type of a gcc2 | |
| 8290 builtin and then its argument prototype would still apply. */ | |
| 8291 char tgoto(); | |
| 8292 | |
| 8293 int main() { | |
| 8294 tgoto() | |
| 8295 ; return 0; } | |
| 8296 EOF | |
| 8297 if { (eval echo configure:8298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 8298 rm -rf conftest* | |
| 8299 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 8300 else | |
| 8301 echo "configure: failed program was:" >&5 | |
| 8302 cat conftest.$ac_ext >&5 | |
| 8303 rm -rf conftest* | |
| 8304 eval "ac_cv_lib_$ac_lib_var=no" | |
| 8305 fi | |
| 8306 rm -f conftest* | |
| 8307 xe_check_libs="" | |
| 8308 | |
| 8309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 8310 echo "$ac_t""yes" 1>&6 | |
| 8311 have_libtermcap=yes | |
| 8312 else | |
| 8313 echo "$ac_t""no" 1>&6 | |
| 8314 have_libtermcap=no | |
| 8315 fi | |
| 8316 | |
| 8317 | |
| 8318 | |
| 8319 echo $ac_n "checking for tparm in -lcurses""... $ac_c" 1>&6 | |
| 8320 echo "configure:8321: checking for tparm in -lcurses" >&5 | |
| 8321 ac_lib_var=`echo curses'_'tparm | sed 'y%./+-%__p_%'` | |
| 8322 | |
| 8323 xe_check_libs=" -lcurses " | |
| 8324 cat > conftest.$ac_ext <<EOF | |
| 8325 #line 8326 "configure" | |
| 8326 #include "confdefs.h" | |
| 8327 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 8328 /* We use char because int might match the return type of a gcc2 | |
| 8329 builtin and then its argument prototype would still apply. */ | |
| 8330 char tparm(); | |
| 8331 | |
| 8332 int main() { | |
| 8333 tparm() | |
| 8334 ; return 0; } | |
| 8335 EOF | |
| 8336 if { (eval echo configure:8337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 8337 rm -rf conftest* | |
| 8338 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 8339 else | |
| 8340 echo "configure: failed program was:" >&5 | |
| 8341 cat conftest.$ac_ext >&5 | |
| 8342 rm -rf conftest* | |
| 8343 eval "ac_cv_lib_$ac_lib_var=no" | |
| 8344 fi | |
| 8345 rm -f conftest* | |
| 8346 xe_check_libs="" | |
| 8347 | |
| 8348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 8349 echo "$ac_t""yes" 1>&6 | |
| 8350 have_libcurses=yes | |
| 8351 else | |
| 8352 echo "$ac_t""no" 1>&6 | |
| 8353 have_libcurses=no | |
| 8354 fi | |
| 8355 | |
| 8356 | |
| 8357 | |
| 8358 if test "$have_terminfo" = "yes"; then | |
| 8359 extra_objs="$extra_objs terminfo.o" | |
| 8360 if test -n "$libs_termcap"; then LIBS="$LIBS $libs_termcap" | |
| 8361 elif test "$have_libcurses" = "yes"; then LIBS="$LIBS -lcurses" | |
| 8362 elif test "$have_libtermlib" = "yes"; then LIBS="$LIBS -ltermlib" | |
| 8363 elif test "$have_libtermcap" = "yes"; then LIBS="$LIBS -ltermcap" | |
| 8364 fi | |
| 8365 else extra_objs="$extra_objs tparam.o" | |
| 8366 if test -n "$libs_termcap"; then LIBS="$LIBS $libs_termcap" | |
| 8367 elif test "$have_libtermcap" = "yes"; then LIBS="$LIBS -ltermcap" | |
| 8368 elif test "$have_libcurses" = "yes"; then LIBS="$LIBS -lcurses" | |
| 8369 else extra_objs="$extra_objs termcap.o" | |
| 8370 fi | |
| 8371 fi | |
| 6118 fi | 8372 fi |
| 6119 fi | 8373 { test "$extra_verbose" = "yes" && cat << EOF |
| 6120 | 8374 Defining CURSES_H_PATH = "${curses_h_path-curses.h}" |
| 6121 | 8375 EOF |
| 6122 | 8376 cat >> confdefs.h <<EOF |
| 6123 if test "${with_database_berkdb}" != "no" ; then | 8377 #define CURSES_H_PATH "${curses_h_path-curses.h}" |
| 6124 ac_save_LIBS="${LIBS}" | 8378 EOF |
| 6125 LIBS="${LIBS} -ldb" | 8379 } |
| 6126 ac_have_lib="" | 8380 |
| 6127 test -n "$silent" || echo "checking for -ldb" | 8381 { test "$extra_verbose" = "yes" && cat << EOF |
| 6128 cat > conftest.${ac_ext} <<EOF | 8382 Defining TERM_H_PATH = "${term_h_path-term.h}" |
| 6129 #include "confdefs.h" | 8383 EOF |
| 6130 | 8384 cat >> confdefs.h <<EOF |
| 6131 int main() { return 0; } | 8385 #define TERM_H_PATH "${term_h_path-term.h}" |
| 6132 int t() { main();; return 0; } | 8386 EOF |
| 6133 EOF | 8387 } |
| 6134 if eval $ac_compile; then | 8388 |
| 6135 rm -rf conftest* | 8389 else # "$with_tty" = "no" |
| 6136 ac_have_lib="1" | 8390 for feature in ncurses gpm; do |
| 6137 | 8391 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then |
| 6138 fi | 8392 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2 |
| 6139 rm -f conftest* | 8393 fi |
| 6140 LIBS="${ac_save_LIBS}" | 8394 eval "with_${feature}=no" |
| 6141 if test -n "${ac_have_lib}"; then | 8395 done |
| 6142 :; have_libdb=yes | 8396 fi |
| 6143 else | 8397 |
| 6144 :; have_libdb=no | 8398 |
| 6145 fi | 8399 echo "checking for database support" 1>&6 |
| 6146 | 8400 echo "configure:8401: checking for database support" >&5 |
| 6147 test "${have_libdb}" = yes && | 8401 |
| 6148 { | 8402 if test "$with_database_gnudbm" != "no" ; then |
| 6149 test -n "$verbose" && \ | 8403 |
| 6150 echo " defining HAVE_LIBDB" | 8404 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 |
| 6151 echo "#define" HAVE_LIBDB "1" >> confdefs.h | 8405 echo "configure:8406: checking for dbm_open in -lgdbm" >&5 |
| 6152 DEFS="$DEFS -DHAVE_LIBDB=1" | 8406 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` |
| 6153 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBDB\${ac_dB}HAVE_LIBDB\${ac_dC}1\${ac_dD} | 8407 |
| 6154 \${ac_uA}HAVE_LIBDB\${ac_uB}HAVE_LIBDB\${ac_uC}1\${ac_uD} | 8408 xe_check_libs=" -lgdbm " |
| 6155 \${ac_eA}HAVE_LIBDB\${ac_eB}HAVE_LIBDB\${ac_eC}1\${ac_eD} | 8409 cat > conftest.$ac_ext <<EOF |
| 6156 " | 8410 #line 8411 "configure" |
| 6157 } | 8411 #include "confdefs.h" |
| 6158 | 8412 /* Override any gcc2 internal prototype to avoid an error. */ |
| 6159 if test "${with_database_berkdb}" != "yes" ; then | 8413 /* We use char because int might match the return type of a gcc2 |
| 6160 if test "${have_libdb}" = "yes" ; then | 8414 builtin and then its argument prototype would still apply. */ |
| 6161 with_database_berkdb=yes | 8415 char dbm_open(); |
| 6162 else | 8416 |
| 6163 test -n "$silent" || echo "checking for dbopen" | 8417 int main() { |
| 6164 cat > conftest.${ac_ext} <<EOF | 8418 dbm_open() |
| 6165 #include "confdefs.h" | 8419 ; return 0; } |
| 6166 #include <ctype.h> | 8420 EOF |
| 6167 int main() { return 0; } | 8421 if { (eval echo configure:8422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 6168 int t() { | 8422 rm -rf conftest* |
| 8423 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 8424 else | |
| 8425 echo "configure: failed program was:" >&5 | |
| 8426 cat conftest.$ac_ext >&5 | |
| 8427 rm -rf conftest* | |
| 8428 eval "ac_cv_lib_$ac_lib_var=no" | |
| 8429 fi | |
| 8430 rm -f conftest* | |
| 8431 xe_check_libs="" | |
| 8432 | |
| 8433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 8434 echo "$ac_t""yes" 1>&6 | |
| 8435 with_database_gnudbm=yes have_libgdbm=yes | |
| 8436 else | |
| 8437 echo "$ac_t""no" 1>&6 | |
| 8438 fi | |
| 8439 | |
| 8440 | |
| 8441 if test "$with_database_gnudbm" != "yes"; then | |
| 8442 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 | |
| 8443 echo "configure:8444: checking for dbm_open" >&5 | |
| 8444 | |
| 8445 cat > conftest.$ac_ext <<EOF | |
| 8446 #line 8447 "configure" | |
| 8447 #include "confdefs.h" | |
| 8448 /* System header to define __stub macros and hopefully few prototypes, | |
| 8449 which can conflict with char dbm_open(); below. */ | |
| 8450 #include <assert.h> | |
| 8451 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 8452 /* We use char because int might match the return type of a gcc2 | |
| 8453 builtin and then its argument prototype would still apply. */ | |
| 8454 char dbm_open(); | |
| 8455 | |
| 8456 int main() { | |
| 8457 | |
| 8458 /* The GNU C library defines this for functions which it implements | |
| 8459 to always fail with ENOSYS. Some functions are actually named | |
| 8460 something starting with __ and the normal name is an alias. */ | |
| 8461 #if defined (__stub_dbm_open) || defined (__stub___dbm_open) | |
| 8462 choke me | |
| 8463 #else | |
| 8464 dbm_open(); | |
| 8465 #endif | |
| 8466 | |
| 8467 ; return 0; } | |
| 8468 EOF | |
| 8469 if { (eval echo configure:8470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 8470 rm -rf conftest* | |
| 8471 eval "ac_cv_func_dbm_open=yes" | |
| 8472 else | |
| 8473 echo "configure: failed program was:" >&5 | |
| 8474 cat conftest.$ac_ext >&5 | |
| 8475 rm -rf conftest* | |
| 8476 eval "ac_cv_func_dbm_open=no" | |
| 8477 fi | |
| 8478 rm -f conftest* | |
| 8479 | |
| 8480 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then | |
| 8481 echo "$ac_t""yes" 1>&6 | |
| 8482 with_database_gnudbm=yes | |
| 8483 else | |
| 8484 echo "$ac_t""no" 1>&6 | |
| 8485 fi | |
| 8486 | |
| 8487 fi | |
| 8488 if test "$with_database_gnudbm" = "yes" ; then | |
| 8489 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 8490 Defining HAVE_DBM | |
| 8491 EOF | |
| 8492 cat >> confdefs.h <<\EOF | |
| 8493 #define HAVE_DBM 1 | |
| 8494 EOF | |
| 8495 } | |
| 8496 | |
| 8497 test "$have_libgdbm" = "yes" && LIBS="$LIBS -lgdbm" | |
| 8498 with_database_dbm=no | |
| 8499 else with_database_gnudbm=no | |
| 8500 fi | |
| 8501 fi | |
| 8502 | |
| 8503 if test "$with_database_dbm" != "no" ; then | |
| 8504 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 | |
| 8505 echo "configure:8506: checking for dbm_open" >&5 | |
| 8506 | |
| 8507 cat > conftest.$ac_ext <<EOF | |
| 8508 #line 8509 "configure" | |
| 8509 #include "confdefs.h" | |
| 8510 /* System header to define __stub macros and hopefully few prototypes, | |
| 8511 which can conflict with char dbm_open(); below. */ | |
| 8512 #include <assert.h> | |
| 8513 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 8514 /* We use char because int might match the return type of a gcc2 | |
| 8515 builtin and then its argument prototype would still apply. */ | |
| 8516 char dbm_open(); | |
| 8517 | |
| 8518 int main() { | |
| 8519 | |
| 8520 /* The GNU C library defines this for functions which it implements | |
| 8521 to always fail with ENOSYS. Some functions are actually named | |
| 8522 something starting with __ and the normal name is an alias. */ | |
| 8523 #if defined (__stub_dbm_open) || defined (__stub___dbm_open) | |
| 8524 choke me | |
| 8525 #else | |
| 8526 dbm_open(); | |
| 8527 #endif | |
| 8528 | |
| 8529 ; return 0; } | |
| 8530 EOF | |
| 8531 if { (eval echo configure:8532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 8532 rm -rf conftest* | |
| 8533 eval "ac_cv_func_dbm_open=yes" | |
| 8534 else | |
| 8535 echo "configure: failed program was:" >&5 | |
| 8536 cat conftest.$ac_ext >&5 | |
| 8537 rm -rf conftest* | |
| 8538 eval "ac_cv_func_dbm_open=no" | |
| 8539 fi | |
| 8540 rm -f conftest* | |
| 8541 | |
| 8542 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then | |
| 8543 echo "$ac_t""yes" 1>&6 | |
| 8544 with_database_dbm=yes need_libdbm=no | |
| 8545 else | |
| 8546 echo "$ac_t""no" 1>&6 | |
| 8547 fi | |
| 8548 | |
| 8549 if test "$need_libdbm" != "no"; then | |
| 8550 | |
| 8551 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 | |
| 8552 echo "configure:8553: checking for dbm_open in -ldbm" >&5 | |
| 8553 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` | |
| 8554 | |
| 8555 xe_check_libs=" -ldbm " | |
| 8556 cat > conftest.$ac_ext <<EOF | |
| 8557 #line 8558 "configure" | |
| 8558 #include "confdefs.h" | |
| 8559 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 8560 /* We use char because int might match the return type of a gcc2 | |
| 8561 builtin and then its argument prototype would still apply. */ | |
| 8562 char dbm_open(); | |
| 8563 | |
| 8564 int main() { | |
| 8565 dbm_open() | |
| 8566 ; return 0; } | |
| 8567 EOF | |
| 8568 if { (eval echo configure:8569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 8569 rm -rf conftest* | |
| 8570 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 8571 else | |
| 8572 echo "configure: failed program was:" >&5 | |
| 8573 cat conftest.$ac_ext >&5 | |
| 8574 rm -rf conftest* | |
| 8575 eval "ac_cv_lib_$ac_lib_var=no" | |
| 8576 fi | |
| 8577 rm -f conftest* | |
| 8578 xe_check_libs="" | |
| 8579 | |
| 8580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 8581 echo "$ac_t""yes" 1>&6 | |
| 8582 with_database_dbm=yes need_libdbm=yes | |
| 8583 else | |
| 8584 echo "$ac_t""no" 1>&6 | |
| 8585 fi | |
| 8586 | |
| 8587 | |
| 8588 fi | |
| 8589 if test "$with_database_dbm" = "yes" ; then | |
| 8590 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 8591 Defining HAVE_DBM | |
| 8592 EOF | |
| 8593 cat >> confdefs.h <<\EOF | |
| 8594 #define HAVE_DBM 1 | |
| 8595 EOF | |
| 8596 } | |
| 8597 | |
| 8598 test "$need_libdbm" = "yes" && LIBS="$LIBS -ldbm" | |
| 8599 else with_database_dbm=no | |
| 8600 fi | |
| 8601 fi | |
| 8602 | |
| 8603 if test "$with_database_berkdb" != "no"; then | |
| 8604 echo $ac_n "checking for dbopen""... $ac_c" 1>&6 | |
| 8605 echo "configure:8606: checking for dbopen" >&5 | |
| 8606 | |
| 8607 cat > conftest.$ac_ext <<EOF | |
| 8608 #line 8609 "configure" | |
| 8609 #include "confdefs.h" | |
| 8610 /* System header to define __stub macros and hopefully few prototypes, | |
| 8611 which can conflict with char dbopen(); below. */ | |
| 8612 #include <assert.h> | |
| 8613 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 8614 /* We use char because int might match the return type of a gcc2 | |
| 8615 builtin and then its argument prototype would still apply. */ | |
| 8616 char dbopen(); | |
| 8617 | |
| 8618 int main() { | |
| 8619 | |
| 6169 /* The GNU C library defines this for functions which it implements | 8620 /* The GNU C library defines this for functions which it implements |
| 6170 to always fail with ENOSYS. Some functions are actually named | 8621 to always fail with ENOSYS. Some functions are actually named |
| 6171 something starting with __ and the normal name is an alias. */ | 8622 something starting with __ and the normal name is an alias. */ |
| 6172 #if defined (__stub_dbopen) || defined (__stub___dbopen) | 8623 #if defined (__stub_dbopen) || defined (__stub___dbopen) |
| 6173 choke me | 8624 choke me |
| 6174 #else | 8625 #else |
| 8626 dbopen(); | |
| 8627 #endif | |
| 8628 | |
| 8629 ; return 0; } | |
| 8630 EOF | |
| 8631 if { (eval echo configure:8632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 8632 rm -rf conftest* | |
| 8633 eval "ac_cv_func_dbopen=yes" | |
| 8634 else | |
| 8635 echo "configure: failed program was:" >&5 | |
| 8636 cat conftest.$ac_ext >&5 | |
| 8637 rm -rf conftest* | |
| 8638 eval "ac_cv_func_dbopen=no" | |
| 8639 fi | |
| 8640 rm -f conftest* | |
| 8641 | |
| 8642 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then | |
| 8643 echo "$ac_t""yes" 1>&6 | |
| 8644 with_database_berkdb=yes need_libdb=no | |
| 8645 else | |
| 8646 echo "$ac_t""no" 1>&6 | |
| 8647 fi | |
| 8648 | |
| 8649 if test "$need_libdb" != "no"; then | |
| 8650 | |
| 8651 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 | |
| 8652 echo "configure:8653: checking for dbopen in -ldb" >&5 | |
| 8653 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` | |
| 8654 | |
| 8655 xe_check_libs=" -ldb " | |
| 8656 cat > conftest.$ac_ext <<EOF | |
| 8657 #line 8658 "configure" | |
| 8658 #include "confdefs.h" | |
| 6175 /* Override any gcc2 internal prototype to avoid an error. */ | 8659 /* Override any gcc2 internal prototype to avoid an error. */ |
| 6176 extern char dbopen(); dbopen(); | 8660 /* We use char because int might match the return type of a gcc2 |
| 8661 builtin and then its argument prototype would still apply. */ | |
| 8662 char dbopen(); | |
| 8663 | |
| 8664 int main() { | |
| 8665 dbopen() | |
| 8666 ; return 0; } | |
| 8667 EOF | |
| 8668 if { (eval echo configure:8669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 8669 rm -rf conftest* | |
| 8670 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 8671 else | |
| 8672 echo "configure: failed program was:" >&5 | |
| 8673 cat conftest.$ac_ext >&5 | |
| 8674 rm -rf conftest* | |
| 8675 eval "ac_cv_lib_$ac_lib_var=no" | |
| 8676 fi | |
| 8677 rm -f conftest* | |
| 8678 xe_check_libs="" | |
| 8679 | |
| 8680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 8681 echo "$ac_t""yes" 1>&6 | |
| 8682 with_database_berkdb=yes need_libdb=yes | |
| 8683 else | |
| 8684 echo "$ac_t""no" 1>&6 | |
| 8685 fi | |
| 8686 | |
| 8687 | |
| 8688 fi | |
| 8689 if test "$with_database_berkdb" = "yes"; then | |
| 8690 for path in "db/db.h" "db.h"; do | |
| 8691 cat > conftest.$ac_ext <<EOF | |
| 8692 #line 8693 "configure" | |
| 8693 #include "confdefs.h" | |
| 8694 #ifdef HAVE_INTTYPES_H | |
| 8695 #define __BIT_TYPES_DEFINED__ | |
| 8696 #include <inttypes.h> | |
| 8697 typedef uint8_t u_int8_t; | |
| 8698 typedef uint16_t u_int16_t; | |
| 8699 typedef uint32_t u_int32_t; | |
| 8700 #ifdef WE_DONT_NEED_QUADS | |
| 8701 typedef uint64_t u_int64_t; | |
| 6177 #endif | 8702 #endif |
| 8703 #endif | |
| 8704 #include <$path> | |
| 8705 | |
| 8706 int main() { | |
| 8707 | |
| 6178 ; return 0; } | 8708 ; return 0; } |
| 6179 EOF | 8709 EOF |
| 6180 if eval $ac_compile; then | 8710 if { (eval echo configure:8711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 6181 rm -rf conftest* | 8711 rm -rf conftest* |
| 6182 with_database_berkdb=yes | 8712 db_h_path="$path"; break |
| 6183 | 8713 else |
| 6184 else | 8714 echo "configure: failed program was:" >&5 |
| 6185 rm -rf conftest* | 8715 cat conftest.$ac_ext >&5 |
| 6186 with_database_berkdb=no | 8716 fi |
| 6187 fi | 8717 rm -f conftest* |
| 6188 rm -f conftest* | 8718 done |
| 6189 | 8719 test -z "$db_h_path" && with_database_berkdb=no |
| 6190 fi | |
| 6191 fi | 8720 fi |
| 6192 fi | 8721 if test "$with_database_berkdb" = "yes"; then |
| 6193 test "${with_database_berkdb}" = yes && | 8722 { test "$extra_verbose" = "yes" && cat << EOF |
| 6194 { | 8723 Defining DB_H_PATH = "$db_h_path" |
| 6195 test -n "$verbose" && \ | 8724 EOF |
| 6196 echo " defining HAVE_BERKELEY_DB" | 8725 cat >> confdefs.h <<EOF |
| 6197 echo "#define" HAVE_BERKELEY_DB "1" >> confdefs.h | 8726 #define DB_H_PATH "$db_h_path" |
| 6198 DEFS="$DEFS -DHAVE_BERKELEY_DB=1" | 8727 EOF |
| 6199 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_BERKELEY_DB\${ac_dB}HAVE_BERKELEY_DB\${ac_dC}1\${ac_dD} | 8728 } |
| 6200 \${ac_uA}HAVE_BERKELEY_DB\${ac_uB}HAVE_BERKELEY_DB\${ac_uC}1\${ac_uD} | 8729 |
| 6201 \${ac_eA}HAVE_BERKELEY_DB\${ac_eB}HAVE_BERKELEY_DB\${ac_eC}1\${ac_eD} | 8730 { test "$extra_verbose" = "yes" && cat << \EOF |
| 6202 " | 8731 Defining HAVE_BERKELEY_DB |
| 6203 } | 8732 EOF |
| 6204 | 8733 cat >> confdefs.h <<\EOF |
| 6205 | 8734 #define HAVE_BERKELEY_DB 1 |
| 6206 if test "${with_database_gnudbm}" != "no" ; then | 8735 EOF |
| 6207 ac_save_LIBS="${LIBS}" | 8736 } |
| 6208 LIBS="${LIBS} -lgdbm" | 8737 |
| 6209 ac_have_lib="" | 8738 test "$need_libdb" = "yes" && LIBS="$LIBS -ldb" |
| 6210 test -n "$silent" || echo "checking for -lgdbm" | 8739 else with_database_berkdb=no |
| 6211 cat > conftest.${ac_ext} <<EOF | 8740 fi |
| 6212 #include "confdefs.h" | 8741 fi |
| 6213 | 8742 |
| 6214 int main() { return 0; } | 8743 if test "$with_database_gnudbm" = "yes" -o \ |
| 6215 int t() { main();; return 0; } | 8744 "$with_database_dbm" = "yes" -o \ |
| 6216 EOF | 8745 "$with_database_berkdb" = "yes"; then |
| 6217 if eval $ac_compile; then | 8746 { test "$extra_verbose" = "yes" && cat << \EOF |
| 6218 rm -rf conftest* | 8747 Defining HAVE_DATABASE |
| 6219 ac_have_lib="1" | 8748 EOF |
| 6220 | 8749 cat >> confdefs.h <<\EOF |
| 6221 fi | 8750 #define HAVE_DATABASE 1 |
| 6222 rm -f conftest* | 8751 EOF |
| 6223 LIBS="${ac_save_LIBS}" | 8752 } |
| 6224 if test -n "${ac_have_lib}"; then | 8753 |
| 6225 :; have_libgdbm=yes | 8754 extra_objs="$extra_objs database.o" |
| 6226 else | 8755 fi |
| 6227 :; have_libgdbm=no | 8756 |
| 6228 fi | 8757 if test "$with_socks" = "yes"; then |
| 6229 | |
| 6230 test "${have_libgdbm}" = yes && | |
| 6231 { | |
| 6232 test -n "$verbose" && \ | |
| 6233 echo " defining HAVE_LIBGDBM" | |
| 6234 echo "#define" HAVE_LIBGDBM "1" >> confdefs.h | |
| 6235 DEFS="$DEFS -DHAVE_LIBGDBM=1" | |
| 6236 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBGDBM\${ac_dB}HAVE_LIBGDBM\${ac_dC}1\${ac_dD} | |
| 6237 \${ac_uA}HAVE_LIBGDBM\${ac_uB}HAVE_LIBGDBM\${ac_uC}1\${ac_uD} | |
| 6238 \${ac_eA}HAVE_LIBGDBM\${ac_eB}HAVE_LIBGDBM\${ac_eC}1\${ac_eD} | |
| 6239 " | |
| 6240 } | |
| 6241 | |
| 6242 test -z "${with_database_gnudbm}" && with_database_gnudbm="${have_libgdbm}" | |
| 6243 fi | |
| 6244 if test "${with_database_gnudbm}" = "yes" ; then | |
| 6245 | 8758 |
| 6246 { | 8759 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 |
| 6247 test -n "$verbose" && \ | 8760 echo "configure:8761: checking for SOCKSinit in -lsocks" >&5 |
| 6248 echo " defining HAVE_DBM" | 8761 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` |
| 6249 echo "#define" HAVE_DBM "1" >> confdefs.h | 8762 |
| 6250 DEFS="$DEFS -DHAVE_DBM=1" | 8763 xe_check_libs=" -lsocks " |
| 6251 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_DBM\${ac_dB}HAVE_DBM\${ac_dC}1\${ac_dD} | 8764 cat > conftest.$ac_ext <<EOF |
| 6252 \${ac_uA}HAVE_DBM\${ac_uB}HAVE_DBM\${ac_uC}1\${ac_uD} | 8765 #line 8766 "configure" |
| 6253 \${ac_eA}HAVE_DBM\${ac_eB}HAVE_DBM\${ac_eC}1\${ac_eD} | 8766 #include "confdefs.h" |
| 6254 " | 8767 /* Override any gcc2 internal prototype to avoid an error. */ |
| 6255 } | 8768 /* We use char because int might match the return type of a gcc2 |
| 6256 | 8769 builtin and then its argument prototype would still apply. */ |
| 8770 char SOCKSinit(); | |
| 8771 | |
| 8772 int main() { | |
| 8773 SOCKSinit() | |
| 8774 ; return 0; } | |
| 8775 EOF | |
| 8776 if { (eval echo configure:8777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 8777 rm -rf conftest* | |
| 8778 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 8779 else | |
| 8780 echo "configure: failed program was:" >&5 | |
| 8781 cat conftest.$ac_ext >&5 | |
| 8782 rm -rf conftest* | |
| 8783 eval "ac_cv_lib_$ac_lib_var=no" | |
| 8784 fi | |
| 8785 rm -f conftest* | |
| 8786 xe_check_libs="" | |
| 8787 | |
| 8788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 8789 echo "$ac_t""yes" 1>&6 | |
| 8790 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
| 8791 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
| 8792 { test "$extra_verbose" = "yes" && cat << EOF | |
| 8793 Defining $ac_tr_lib | |
| 8794 EOF | |
| 8795 cat >> confdefs.h <<EOF | |
| 8796 #define $ac_tr_lib 1 | |
| 8797 EOF | |
| 8798 } | |
| 8799 | |
| 8800 LIBS="-lsocks $LIBS" | |
| 8801 | |
| 8802 else | |
| 8803 echo "$ac_t""no" 1>&6 | |
| 8804 fi | |
| 8805 | |
| 8806 | |
| 8807 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF | |
| 8808 Defining HAVE_SOCKS | |
| 8809 EOF | |
| 8810 cat >> confdefs.h <<\EOF | |
| 8811 #define HAVE_SOCKS 1 | |
| 8812 EOF | |
| 8813 } | |
| 8814 | |
| 8815 fi | |
| 8816 | |
| 8817 if test "$usage_tracking" = "yes"; then | |
| 8818 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 8819 Defining USAGE_TRACKING | |
| 8820 EOF | |
| 8821 cat >> confdefs.h <<\EOF | |
| 8822 #define USAGE_TRACKING 1 | |
| 8823 EOF | |
| 8824 } | |
| 8825 | |
| 8826 LIBS="$LIBS -Bstatic -lut -Bdynamic" | |
| 8827 fi | |
| 8828 | |
| 8829 | |
| 8830 if test "$dynamic" = "no"; then add_runtime_path=no | |
| 8831 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes | |
| 8832 else case "$canonical" in | |
| 8833 *-solaris2.* | *-sgi-irix* ) add_runtime_path=yes ;; | |
| 8834 * ) add_runtime_path=no ;; | |
| 8835 esac | |
| 8836 fi | |
| 8837 | |
| 8838 if test "$add_runtime_path" = "yes"; then | |
| 8839 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 | |
| 8840 echo "configure:8841: checking "for runtime libraries flag"" >&5 | |
| 8841 dash_r="" | |
| 8842 for try_dash_r in "-R" "-R " "-rpath "; do | |
| 8843 xe_check_libs="${try_dash_r}/no/such/file-or-directory" | |
| 8844 cat > conftest.$ac_ext <<EOF | |
| 8845 #line 8846 "configure" | |
| 8846 #include "confdefs.h" | |
| 8847 | |
| 8848 int main() { | |
| 8849 | |
| 8850 ; return 0; } | |
| 8851 EOF | |
| 8852 if { (eval echo configure:8853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 8853 rm -rf conftest* | |
| 8854 dash_r="$try_dash_r" | |
| 8855 else | |
| 8856 echo "configure: failed program was:" >&5 | |
| 8857 cat conftest.$ac_ext >&5 | |
| 8858 fi | |
| 8859 rm -f conftest* | |
| 8860 xe_check_libs="" | |
| 8861 test -n "$dash_r" && break | |
| 8862 done | |
| 8863 if test -n "$dash_r"; | |
| 8864 then echo "$ac_t"""\"${dash_r}\""" 1>&6 | |
| 8865 else echo "$ac_t""NONE" 1>&6 | |
| 8866 fi | |
| 8867 fi | |
| 8868 | |
| 8869 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then | |
| 8870 ld_switch_site="`echo $ld_switch_site | sed \"s/${dash_r}[^ ]*//\"`" | |
| 8871 ld_switch_x_site="`echo $ld_switch_x_site | sed \"s/${dash_r}[^ ]*//\"`" | |
| 6257 | 8872 |
| 6258 { | 8873 if test -n "$LD_RUN_PATH"; then |
| 6259 test -n "$verbose" && \ | 8874 runpath="$LD_RUN_PATH" |
| 6260 echo " defining HAVE_GNU_DBM" | 8875 else |
| 6261 echo "#define" HAVE_GNU_DBM "1" >> confdefs.h | 8876 runpath="" |
| 6262 DEFS="$DEFS -DHAVE_GNU_DBM=1" | 8877 for arg in $ld_switch_site $ld_switch_x_site; do |
| 6263 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_GNU_DBM\${ac_dB}HAVE_GNU_DBM\${ac_dC}1\${ac_dD} | 8878 case "$arg" in -L* ) |
| 6264 \${ac_uA}HAVE_GNU_DBM\${ac_uB}HAVE_GNU_DBM\${ac_uC}1\${ac_uD} | 8879 dir=`echo $arg | sed 's/^-L//'` |
| 6265 \${ac_eA}HAVE_GNU_DBM\${ac_eB}HAVE_GNU_DBM\${ac_eC}1\${ac_eD} | 8880 if test -n "`ls ${dir}/*.so 2>/dev/null`"; then |
| 6266 " | 8881 test -n "$runpath" && runpath="${runpath}:" |
| 6267 } | 8882 runpath="${runpath}${dir}" |
| 6268 | 8883 fi |
| 6269 with_database_dbm=no | 8884 ;; |
| 6270 fi | 8885 esac |
| 6271 | 8886 done |
| 6272 if test "${with_database_dbm}" != "no" ; then | 8887 case "$canonical" in *-solaris2.* ) |
| 6273 ac_save_LIBS="${LIBS}" | 8888 test "$have_motif" = "yes" && runpath="${runpath}:/opt/SUNWdt/lib" ;; |
| 6274 LIBS="${LIBS} -ldbm" | 8889 esac |
| 6275 ac_have_lib="" | |
| 6276 test -n "$silent" || echo "checking for -ldbm" | |
| 6277 cat > conftest.${ac_ext} <<EOF | |
| 6278 #include "confdefs.h" | |
| 6279 | |
| 6280 int main() { return 0; } | |
| 6281 int t() { main();; return 0; } | |
| 6282 EOF | |
| 6283 if eval $ac_compile; then | |
| 6284 rm -rf conftest* | |
| 6285 ac_have_lib="1" | |
| 6286 | |
| 6287 fi | |
| 6288 rm -f conftest* | |
| 6289 LIBS="${ac_save_LIBS}" | |
| 6290 if test -n "${ac_have_lib}"; then | |
| 6291 :; have_libdbm=yes | |
| 6292 else | |
| 6293 :; have_libdbm=no | |
| 6294 fi | |
| 6295 | |
| 6296 test "${have_libdbm}" = yes && | |
| 6297 { | |
| 6298 test -n "$verbose" && \ | |
| 6299 echo " defining HAVE_LIBDBM" | |
| 6300 echo "#define" HAVE_LIBDBM "1" >> confdefs.h | |
| 6301 DEFS="$DEFS -DHAVE_LIBDBM=1" | |
| 6302 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBDBM\${ac_dB}HAVE_LIBDBM\${ac_dC}1\${ac_dD} | |
| 6303 \${ac_uA}HAVE_LIBDBM\${ac_uB}HAVE_LIBDBM\${ac_uC}1\${ac_uD} | |
| 6304 \${ac_eA}HAVE_LIBDBM\${ac_eB}HAVE_LIBDBM\${ac_eC}1\${ac_eD} | |
| 6305 " | |
| 6306 } | |
| 6307 | |
| 6308 if test "${with_database_dbm}" != "yes" ; then | |
| 6309 if test "${have_libdbm}" = "yes" ; then | |
| 6310 with_database_dbm=yes | |
| 6311 else | |
| 6312 test -n "$silent" || echo "checking for dbm_open" | |
| 6313 cat > conftest.${ac_ext} <<EOF | |
| 6314 #include "confdefs.h" | |
| 6315 #include <ctype.h> | |
| 6316 int main() { return 0; } | |
| 6317 int t() { | |
| 6318 /* The GNU C library defines this for functions which it implements | |
| 6319 to always fail with ENOSYS. Some functions are actually named | |
| 6320 something starting with __ and the normal name is an alias. */ | |
| 6321 #if defined (__stub_dbm_open) || defined (__stub___dbm_open) | |
| 6322 choke me | |
| 6323 #else | |
| 6324 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 6325 extern char dbm_open(); dbm_open(); | |
| 6326 #endif | |
| 6327 ; return 0; } | |
| 6328 EOF | |
| 6329 if eval $ac_compile; then | |
| 6330 rm -rf conftest* | |
| 6331 with_database_dbm=yes | |
| 6332 | |
| 6333 else | |
| 6334 rm -rf conftest* | |
| 6335 with_database_dbm=no | |
| 6336 fi | |
| 6337 rm -f conftest* | |
| 6338 | |
| 6339 fi | |
| 6340 fi | 8890 fi |
| 6341 fi | 8891 |
| 6342 test "${with_database_dbm}" = yes && | 8892 if test -n "$runpath"; then |
| 6343 { | 8893 ld_switch_site="$ld_switch_site ${dash_r}${runpath}" |
| 6344 test -n "$verbose" && \ | 8894 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath" |
| 6345 echo " defining HAVE_DBM" | 8895 fi |
| 6346 echo "#define" HAVE_DBM "1" >> confdefs.h | 8896 fi |
| 6347 DEFS="$DEFS -DHAVE_DBM=1" | 8897 |
| 6348 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_DBM\${ac_dB}HAVE_DBM\${ac_dC}1\${ac_dD} | 8898 c_switch_general="-DHAVE_CONFIG_H $c_switch_site $c_switch_machine $c_switch_system" |
| 6349 \${ac_uA}HAVE_DBM\${ac_uB}HAVE_DBM\${ac_uC}1\${ac_uD} | 8899 c_switch_window_system="$c_switch_x_site $X_CFLAGS" |
| 6350 \${ac_eA}HAVE_DBM\${ac_eB}HAVE_DBM\${ac_eC}1\${ac_eD} | 8900 c_switch_all="$c_switch_general $c_switch_window_system" |
| 6351 " | 8901 ld_switch_general="$ld_switch_site $ld_switch_machine $ld_switch_system" |
| 6352 } | 8902 ld_switch_window_system="$ld_switch_x_site" |
| 6353 | 8903 ld_switch_all="$ld_switch_general $ld_switch_window_system" |
| 6354 | 8904 ld_libs_general="$LIBS $libs_machine $libs_system $libs_standard" |
| 6355 | 8905 ld_libs_window_system="$X_PRE_LIBS $libs_x $X_EXTRA_LIBS" |
| 6356 ############################################################################ | 8906 ld_libs_all="$ld_libs_window_system $ld_libs_general" |
| 6357 # # | 8907 |
| 6358 # Substitute into Makefile and config.h # | 8908 internal_makefile_list="Makefile" |
| 6359 # # | 8909 SUBDIR_MAKEFILES='' |
| 6360 ############################################################################ | 8910 for dir in $MAKE_SUBDIR; do |
| 6361 | 8911 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $dir/Makefile" |
| 6362 | 8912 internal_makefile_list="$internal_makefile_list $dir/Makefile.in" |
| 6363 | 8913 done |
| 6364 | 8914 |
| 6365 | 8915 |
| 6366 | 8916 |
| 6367 | 8917 if test "$extra_verbose" = "yes"; then |
| 6368 | 8918 echo "" |
| 6369 | 8919 echo "extra_objs = $extra_objs" |
| 6370 | 8920 echo "c_switch_general = $c_switch_general" |
| 6371 | 8921 echo "c_switch_window_system = $c_switch_window_system" |
| 6372 | 8922 echo "c_switch_all = $c_switch_all" |
| 6373 | 8923 echo "ld_switch_general = $ld_switch_general" |
| 6374 | 8924 echo "ld_switch_window_system = $ld_switch_window_system" |
| 6375 | 8925 echo "ld_switch_all = $ld_switch_all" |
| 6376 | 8926 echo "ld_libs_general = $ld_libs_general" |
| 6377 | 8927 echo "ld_libs_window_system = $ld_libs_window_system" |
| 6378 | 8928 echo "ld_libs_all = $ld_libs_all" |
| 6379 | 8929 echo "" |
| 6380 | 8930 fi |
| 6381 | 8931 |
| 6382 | 8932 |
| 6383 | 8933 |
| 6384 | 8934 |
| 6385 | 8935 |
| 6386 | 8936 |
| 6387 | 8937 |
| 6388 | 8938 |
| 6389 | 8939 |
| 6390 | 8940 |
| 6391 | 8941 |
| 6392 | 8942 |
| 6393 | 8943 |
| 6394 | 8944 |
| 6395 | 8945 |
| 6396 | 8946 |
| 6397 | 8947 |
| 6398 | 8948 |
| 6399 | 8949 |
| 6400 | 8950 |
| 6401 | 8951 |
| 6402 | 8952 |
| 6403 { | 8953 |
| 6404 test -n "$verbose" && \ | 8954 |
| 6405 echo " defining" EMACS_VERSION to be ""${version}"" | 8955 |
| 6406 echo "#define" EMACS_VERSION ""${version}"" >> confdefs.h | 8956 |
| 6407 DEFS="$DEFS -DEMACS_VERSION="${version}"" | 8957 |
| 6408 ac_sed_defs="${ac_sed_defs}\${ac_dA}EMACS_VERSION\${ac_dB}EMACS_VERSION\${ac_dC}"${version}"\${ac_dD} | 8958 |
| 6409 \${ac_uA}EMACS_VERSION\${ac_uB}EMACS_VERSION\${ac_uC}"${version}"\${ac_uD} | 8959 |
| 6410 \${ac_eA}EMACS_VERSION\${ac_eB}EMACS_VERSION\${ac_eC}"${version}"\${ac_eD} | 8960 |
| 6411 " | 8961 |
| 6412 } | 8962 |
| 6413 | 8963 |
| 6414 | 8964 |
| 6415 { | 8965 |
| 6416 test -n "$verbose" && \ | 8966 |
| 6417 echo " defining" EMACS_CONFIGURATION to be ""\"${canonical}\""" | 8967 |
| 6418 echo "#define" EMACS_CONFIGURATION ""\"${canonical}\""" >> confdefs.h | 8968 |
| 6419 DEFS="$DEFS -DEMACS_CONFIGURATION="\"${canonical}\""" | 8969 |
| 6420 ac_sed_defs="${ac_sed_defs}\${ac_dA}EMACS_CONFIGURATION\${ac_dB}EMACS_CONFIGURATION\${ac_dC}"\"${canonical}\""\${ac_dD} | 8970 |
| 6421 \${ac_uA}EMACS_CONFIGURATION\${ac_uB}EMACS_CONFIGURATION\${ac_uC}"\"${canonical}\""\${ac_uD} | 8971 |
| 6422 \${ac_eA}EMACS_CONFIGURATION\${ac_eB}EMACS_CONFIGURATION\${ac_eC}"\"${canonical}\""\${ac_eD} | 8972 |
| 6423 " | 8973 |
| 6424 } | 8974 |
| 6425 | 8975 |
| 6426 | 8976 |
| 6427 { | 8977 |
| 6428 test -n "$verbose" && \ | 8978 |
| 6429 echo " defining" config_machfile to be ""\"${machfile}\""" | 8979 |
| 6430 echo "#define" config_machfile ""\"${machfile}\""" >> confdefs.h | 8980 |
| 6431 DEFS="$DEFS -Dconfig_machfile="\"${machfile}\""" | 8981 { test "$extra_verbose" = "yes" && cat << EOF |
| 6432 ac_sed_defs="${ac_sed_defs}\${ac_dA}config_machfile\${ac_dB}config_machfile\${ac_dC}"\"${machfile}\""\${ac_dD} | 8982 Defining EMACS_VERSION = $version |
| 6433 \${ac_uA}config_machfile\${ac_uB}config_machfile\${ac_uC}"\"${machfile}\""\${ac_uD} | 8983 EOF |
| 6434 \${ac_eA}config_machfile\${ac_eB}config_machfile\${ac_eC}"\"${machfile}\""\${ac_eD} | 8984 cat >> confdefs.h <<EOF |
| 6435 " | 8985 #define EMACS_VERSION $version |
| 6436 } | 8986 EOF |
| 6437 | 8987 } |
| 6438 | 8988 |
| 6439 { | 8989 { test "$extra_verbose" = "yes" && cat << EOF |
| 6440 test -n "$verbose" && \ | 8990 Defining EMACS_CONFIGURATION = "$canonical" |
| 6441 echo " defining" config_opsysfile to be ""\"${opsysfile}\""" | 8991 EOF |
| 6442 echo "#define" config_opsysfile ""\"${opsysfile}\""" >> confdefs.h | 8992 cat >> confdefs.h <<EOF |
| 6443 DEFS="$DEFS -Dconfig_opsysfile="\"${opsysfile}\""" | 8993 #define EMACS_CONFIGURATION "$canonical" |
| 6444 ac_sed_defs="${ac_sed_defs}\${ac_dA}config_opsysfile\${ac_dB}config_opsysfile\${ac_dC}"\"${opsysfile}\""\${ac_dD} | 8994 EOF |
| 6445 \${ac_uA}config_opsysfile\${ac_uB}config_opsysfile\${ac_uC}"\"${opsysfile}\""\${ac_uD} | 8995 } |
| 6446 \${ac_eA}config_opsysfile\${ac_eB}config_opsysfile\${ac_eC}"\"${opsysfile}\""\${ac_eD} | 8996 |
| 6447 " | 8997 { test "$extra_verbose" = "yes" && cat << EOF |
| 6448 } | 8998 Defining config_machfile = "$machfile" |
| 6449 | 8999 EOF |
| 6450 | 9000 cat >> confdefs.h <<EOF |
| 6451 { | 9001 #define config_machfile "$machfile" |
| 6452 test -n "$verbose" && \ | 9002 EOF |
| 6453 echo " defining" LD_SWITCH_X_SITE to be "${LD_SWITCH_X_SITE}" | 9003 } |
| 6454 echo "#define" LD_SWITCH_X_SITE "${LD_SWITCH_X_SITE}" >> confdefs.h | 9004 |
| 6455 DEFS="$DEFS -DLD_SWITCH_X_SITE=${LD_SWITCH_X_SITE}" | 9005 { test "$extra_verbose" = "yes" && cat << EOF |
| 6456 ac_sed_defs="${ac_sed_defs}\${ac_dA}LD_SWITCH_X_SITE\${ac_dB}LD_SWITCH_X_SITE\${ac_dC}${LD_SWITCH_X_SITE}\${ac_dD} | 9006 Defining config_opsysfile = "$opsysfile" |
| 6457 \${ac_uA}LD_SWITCH_X_SITE\${ac_uB}LD_SWITCH_X_SITE\${ac_uC}${LD_SWITCH_X_SITE}\${ac_uD} | 9007 EOF |
| 6458 \${ac_eA}LD_SWITCH_X_SITE\${ac_eB}LD_SWITCH_X_SITE\${ac_eC}${LD_SWITCH_X_SITE}\${ac_eD} | 9008 cat >> confdefs.h <<EOF |
| 6459 " | 9009 #define config_opsysfile "$opsysfile" |
| 6460 } | 9010 EOF |
| 6461 | 9011 } |
| 6462 | 9012 |
| 6463 { | 9013 { test "$extra_verbose" = "yes" && cat << EOF |
| 6464 test -n "$verbose" && \ | 9014 Defining UNEXEC_SRC = $UNEXEC_SRC |
| 6465 echo " defining" LD_SWITCH_X_SITE_AUX to be "${LD_SWITCH_X_SITE_AUX}" | 9015 EOF |
| 6466 echo "#define" LD_SWITCH_X_SITE_AUX "${LD_SWITCH_X_SITE_AUX}" >> confdefs.h | 9016 cat >> confdefs.h <<EOF |
| 6467 DEFS="$DEFS -DLD_SWITCH_X_SITE_AUX=${LD_SWITCH_X_SITE_AUX}" | 9017 #define UNEXEC_SRC $UNEXEC_SRC |
| 6468 ac_sed_defs="${ac_sed_defs}\${ac_dA}LD_SWITCH_X_SITE_AUX\${ac_dB}LD_SWITCH_X_SITE_AUX\${ac_dC}${LD_SWITCH_X_SITE_AUX}\${ac_dD} | 9018 EOF |
| 6469 \${ac_uA}LD_SWITCH_X_SITE_AUX\${ac_uB}LD_SWITCH_X_SITE_AUX\${ac_uC}${LD_SWITCH_X_SITE_AUX}\${ac_uD} | 9019 } |
| 6470 \${ac_eA}LD_SWITCH_X_SITE_AUX\${ac_eB}LD_SWITCH_X_SITE_AUX\${ac_eC}${LD_SWITCH_X_SITE_AUX}\${ac_eD} | 9020 |
| 6471 " | 9021 |
| 6472 } | 9022 |
| 6473 | 9023 null_string="" |
| 6474 | 9024 { test "$extra_verbose" = "yes" && cat << EOF |
| 6475 { | 9025 Defining LD_SWITCH_X_SITE = $null_string |
| 6476 test -n "$verbose" && \ | 9026 EOF |
| 6477 echo " defining" C_SWITCH_X_SITE to be "${C_SWITCH_X_SITE}" | 9027 cat >> confdefs.h <<EOF |
| 6478 echo "#define" C_SWITCH_X_SITE "${C_SWITCH_X_SITE}" >> confdefs.h | 9028 #define LD_SWITCH_X_SITE $null_string |
| 6479 DEFS="$DEFS -DC_SWITCH_X_SITE=${C_SWITCH_X_SITE}" | 9029 EOF |
| 6480 ac_sed_defs="${ac_sed_defs}\${ac_dA}C_SWITCH_X_SITE\${ac_dB}C_SWITCH_X_SITE\${ac_dC}${C_SWITCH_X_SITE}\${ac_dD} | 9030 } |
| 6481 \${ac_uA}C_SWITCH_X_SITE\${ac_uB}C_SWITCH_X_SITE\${ac_uC}${C_SWITCH_X_SITE}\${ac_uD} | 9031 |
| 6482 \${ac_eA}C_SWITCH_X_SITE\${ac_eB}C_SWITCH_X_SITE\${ac_eC}${C_SWITCH_X_SITE}\${ac_eD} | 9032 { test "$extra_verbose" = "yes" && cat << EOF |
| 6483 " | 9033 Defining LD_SWITCH_X_SITE_AUX = $null_string |
| 6484 } | 9034 EOF |
| 6485 | 9035 cat >> confdefs.h <<EOF |
| 6486 | 9036 #define LD_SWITCH_X_SITE_AUX $null_string |
| 6487 { | 9037 EOF |
| 6488 test -n "$verbose" && \ | 9038 } |
| 6489 echo " defining" LD_SWITCH_SITE to be "${LD_SWITCH_SITE}" | 9039 |
| 6490 echo "#define" LD_SWITCH_SITE "${LD_SWITCH_SITE}" >> confdefs.h | 9040 { test "$extra_verbose" = "yes" && cat << EOF |
| 6491 DEFS="$DEFS -DLD_SWITCH_SITE=${LD_SWITCH_SITE}" | 9041 Defining C_SWITCH_X_SITE = $null_string |
| 6492 ac_sed_defs="${ac_sed_defs}\${ac_dA}LD_SWITCH_SITE\${ac_dB}LD_SWITCH_SITE\${ac_dC}${LD_SWITCH_SITE}\${ac_dD} | 9042 EOF |
| 6493 \${ac_uA}LD_SWITCH_SITE\${ac_uB}LD_SWITCH_SITE\${ac_uC}${LD_SWITCH_SITE}\${ac_uD} | 9043 cat >> confdefs.h <<EOF |
| 6494 \${ac_eA}LD_SWITCH_SITE\${ac_eB}LD_SWITCH_SITE\${ac_eC}${LD_SWITCH_SITE}\${ac_eD} | 9044 #define C_SWITCH_X_SITE $null_string |
| 6495 " | 9045 EOF |
| 6496 } | 9046 } |
| 6497 | 9047 |
| 6498 | 9048 { test "$extra_verbose" = "yes" && cat << EOF |
| 6499 { | 9049 Defining LD_SWITCH_SITE = $null_string |
| 6500 test -n "$verbose" && \ | 9050 EOF |
| 6501 echo " defining" C_SWITCH_SITE to be "${C_SWITCH_SITE}" | 9051 cat >> confdefs.h <<EOF |
| 6502 echo "#define" C_SWITCH_SITE "${C_SWITCH_SITE}" >> confdefs.h | 9052 #define LD_SWITCH_SITE $null_string |
| 6503 DEFS="$DEFS -DC_SWITCH_SITE=${C_SWITCH_SITE}" | 9053 EOF |
| 6504 ac_sed_defs="${ac_sed_defs}\${ac_dA}C_SWITCH_SITE\${ac_dB}C_SWITCH_SITE\${ac_dC}${C_SWITCH_SITE}\${ac_dD} | 9054 } |
| 6505 \${ac_uA}C_SWITCH_SITE\${ac_uB}C_SWITCH_SITE\${ac_uC}${C_SWITCH_SITE}\${ac_uD} | 9055 |
| 6506 \${ac_eA}C_SWITCH_SITE\${ac_eB}C_SWITCH_SITE\${ac_eC}${C_SWITCH_SITE}\${ac_eD} | 9056 { test "$extra_verbose" = "yes" && cat << EOF |
| 6507 " | 9057 Defining C_SWITCH_SITE = $null_string |
| 6508 } | 9058 EOF |
| 6509 | 9059 cat >> confdefs.h <<EOF |
| 6510 | 9060 #define C_SWITCH_SITE $null_string |
| 6511 { | 9061 EOF |
| 6512 test -n "$verbose" && \ | 9062 } |
| 6513 echo " defining" UNEXEC_SRC to be "${UNEXEC_SRC}" | 9063 |
| 6514 echo "#define" UNEXEC_SRC "${UNEXEC_SRC}" >> confdefs.h | 9064 |
| 6515 DEFS="$DEFS -DUNEXEC_SRC=${UNEXEC_SRC}" | 9065 |
| 6516 ac_sed_defs="${ac_sed_defs}\${ac_dA}UNEXEC_SRC\${ac_dB}UNEXEC_SRC\${ac_dC}${UNEXEC_SRC}\${ac_dD} | 9066 test -n "$puresize" && { test "$extra_verbose" = "yes" && cat << EOF |
| 6517 \${ac_uA}UNEXEC_SRC\${ac_uB}UNEXEC_SRC\${ac_uC}${UNEXEC_SRC}\${ac_uD} | 9067 Defining RAW_PURESIZE = $puresize |
| 6518 \${ac_eA}UNEXEC_SRC\${ac_eB}UNEXEC_SRC\${ac_eC}${UNEXEC_SRC}\${ac_eD} | 9068 EOF |
| 6519 " | 9069 cat >> confdefs.h <<EOF |
| 6520 } | 9070 #define RAW_PURESIZE $puresize |
| 6521 | 9071 EOF |
| 6522 | 9072 } |
| 6523 | 9073 |
| 6524 test -n "${puresize}" && | 9074 |
| 6525 { | 9075 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF |
| 6526 test -n "$verbose" && \ | 9076 Defining GNU_MALLOC |
| 6527 echo " defining" RAW_PURESIZE to be "${puresize}" | 9077 EOF |
| 6528 echo "#define" RAW_PURESIZE "${puresize}" >> confdefs.h | 9078 cat >> confdefs.h <<\EOF |
| 6529 DEFS="$DEFS -DRAW_PURESIZE=${puresize}" | 9079 #define GNU_MALLOC 1 |
| 6530 ac_sed_defs="${ac_sed_defs}\${ac_dA}RAW_PURESIZE\${ac_dB}RAW_PURESIZE\${ac_dC}${puresize}\${ac_dD} | 9080 EOF |
| 6531 \${ac_uA}RAW_PURESIZE\${ac_uB}RAW_PURESIZE\${ac_uC}${puresize}\${ac_uD} | 9081 } |
| 6532 \${ac_eA}RAW_PURESIZE\${ac_eB}RAW_PURESIZE\${ac_eC}${puresize}\${ac_eD} | 9082 |
| 6533 " | 9083 elif test "$use_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF |
| 6534 } | 9084 Defining USE_SYSTEM_MALLOC |
| 6535 | 9085 EOF |
| 6536 test "${HAVE_X_WINDOWS}" = yes && | 9086 cat >> confdefs.h <<\EOF |
| 6537 { | 9087 #define USE_SYSTEM_MALLOC 1 |
| 6538 test -n "$verbose" && \ | 9088 EOF |
| 6539 echo " defining HAVE_X_WINDOWS" | 9089 } |
| 6540 echo "#define" HAVE_X_WINDOWS "1" >> confdefs.h | 9090 |
| 6541 DEFS="$DEFS -DHAVE_X_WINDOWS=1" | 9091 fi |
| 6542 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_X_WINDOWS\${ac_dB}HAVE_X_WINDOWS\${ac_dC}1\${ac_dD} | 9092 test "$with_motif" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 6543 \${ac_uA}HAVE_X_WINDOWS\${ac_uB}HAVE_X_WINDOWS\${ac_uC}1\${ac_uD} | 9093 Defining LWLIB_USES_MOTIF |
| 6544 \${ac_eA}HAVE_X_WINDOWS\${ac_eB}HAVE_X_WINDOWS\${ac_eC}1\${ac_eD} | 9094 EOF |
| 6545 " | 9095 cat >> confdefs.h <<\EOF |
| 6546 } | 9096 #define LWLIB_USES_MOTIF 1 |
| 6547 | 9097 EOF |
| 6548 test "${HAVE_XFREE386}" = yes && | 9098 } |
| 6549 { | 9099 |
| 6550 test -n "$verbose" && \ | 9100 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 6551 echo " defining HAVE_XFREE386" | 9101 Defining I18N3 |
| 6552 echo "#define" HAVE_XFREE386 "1" >> confdefs.h | 9102 EOF |
| 6553 DEFS="$DEFS -DHAVE_XFREE386=1" | 9103 cat >> confdefs.h <<\EOF |
| 6554 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XFREE386\${ac_dB}HAVE_XFREE386\${ac_dC}1\${ac_dD} | 9104 #define I18N3 1 |
| 6555 \${ac_uA}HAVE_XFREE386\${ac_uB}HAVE_XFREE386\${ac_uC}1\${ac_uD} | 9105 EOF |
| 6556 \${ac_eA}HAVE_XFREE386\${ac_eB}HAVE_XFREE386\${ac_eC}1\${ac_eD} | 9106 } |
| 6557 " | 9107 |
| 6558 } | 9108 test "$with_mocklisp" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 6559 | 9109 Defining MOCKLISP_SUPPORT |
| 6560 | 9110 EOF |
| 6561 if test "${GNU_MALLOC}" = yes; then | 9111 cat >> confdefs.h <<\EOF |
| 6562 { | 9112 #define MOCKLISP_SUPPORT 1 |
| 6563 test -n "$verbose" && \ | 9113 EOF |
| 6564 echo " defining GNU_MALLOC" | 9114 } |
| 6565 echo "#define" GNU_MALLOC "1" >> confdefs.h | 9115 |
| 6566 DEFS="$DEFS -DGNU_MALLOC=1" | 9116 test "$with_gcc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 6567 ac_sed_defs="${ac_sed_defs}\${ac_dA}GNU_MALLOC\${ac_dB}GNU_MALLOC\${ac_dC}1\${ac_dD} | 9117 Defining USE_GCC |
| 6568 \${ac_uA}GNU_MALLOC\${ac_uB}GNU_MALLOC\${ac_uC}1\${ac_uD} | 9118 EOF |
| 6569 \${ac_eA}GNU_MALLOC\${ac_eB}GNU_MALLOC\${ac_eC}1\${ac_eD} | 9119 cat >> confdefs.h <<\EOF |
| 6570 " | 9120 #define USE_GCC 1 |
| 6571 } | 9121 EOF |
| 6572 | 9122 } |
| 6573 elif test "${use_system_malloc}" = yes; then | 9123 |
| 6574 { | 9124 test "$with_term" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 6575 test -n "$verbose" && \ | 9125 Defining HAVE_TERM |
| 6576 echo " defining USE_SYSTEM_MALLOC" | 9126 EOF |
| 6577 echo "#define" USE_SYSTEM_MALLOC "1" >> confdefs.h | 9127 cat >> confdefs.h <<\EOF |
| 6578 DEFS="$DEFS -DUSE_SYSTEM_MALLOC=1" | 9128 #define HAVE_TERM 1 |
| 6579 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_SYSTEM_MALLOC\${ac_dB}USE_SYSTEM_MALLOC\${ac_dC}1\${ac_dD} | 9129 EOF |
| 6580 \${ac_uA}USE_SYSTEM_MALLOC\${ac_uB}USE_SYSTEM_MALLOC\${ac_uC}1\${ac_uD} | 9130 } |
| 6581 \${ac_eA}USE_SYSTEM_MALLOC\${ac_eB}USE_SYSTEM_MALLOC\${ac_eC}1\${ac_eD} | 9131 |
| 6582 " | 9132 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 6583 } | 9133 Defining EXTERNAL_WIDGET |
| 6584 | 9134 EOF |
| 6585 fi | 9135 cat >> confdefs.h <<\EOF |
| 6586 test "${rel_alloc}" = yes && | 9136 #define EXTERNAL_WIDGET 1 |
| 6587 { | 9137 EOF |
| 6588 test -n "$verbose" && \ | 9138 } |
| 6589 echo " defining REL_ALLOC" | 9139 |
| 6590 echo "#define" REL_ALLOC "1" >> confdefs.h | 9140 test "$with_gnu_make" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 6591 DEFS="$DEFS -DREL_ALLOC=1" | 9141 Defining USE_GNU_MAKE |
| 6592 ac_sed_defs="${ac_sed_defs}\${ac_dA}REL_ALLOC\${ac_dB}REL_ALLOC\${ac_dC}1\${ac_dD} | 9142 EOF |
| 6593 \${ac_uA}REL_ALLOC\${ac_uB}REL_ALLOC\${ac_uC}1\${ac_uD} | 9143 cat >> confdefs.h <<\EOF |
| 6594 \${ac_eA}REL_ALLOC\${ac_eB}REL_ALLOC\${ac_eC}1\${ac_eD} | 9144 #define USE_GNU_MAKE 1 |
| 6595 " | 9145 EOF |
| 6596 } | 9146 } |
| 6597 | 9147 |
| 6598 test "${LISP_FLOAT_TYPE}" = yes && | 9148 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 6599 { | 9149 Defining NO_DOC_FILE |
| 6600 test -n "$verbose" && \ | 9150 EOF |
| 6601 echo " defining LISP_FLOAT_TYPE" | 9151 cat >> confdefs.h <<\EOF |
| 6602 echo "#define" LISP_FLOAT_TYPE "1" >> confdefs.h | 9152 #define NO_DOC_FILE 1 |
| 6603 DEFS="$DEFS -DLISP_FLOAT_TYPE=1" | 9153 EOF |
| 6604 ac_sed_defs="${ac_sed_defs}\${ac_dA}LISP_FLOAT_TYPE\${ac_dB}LISP_FLOAT_TYPE\${ac_dC}1\${ac_dD} | 9154 } |
| 6605 \${ac_uA}LISP_FLOAT_TYPE\${ac_uB}LISP_FLOAT_TYPE\${ac_uC}1\${ac_uD} | 9155 |
| 6606 \${ac_eA}LISP_FLOAT_TYPE\${ac_eB}LISP_FLOAT_TYPE\${ac_eC}1\${ac_eD} | 9156 test "$const_is_losing" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 6607 " | 9157 Defining CONST_IS_LOSING |
| 6608 } | 9158 EOF |
| 6609 | 9159 cat >> confdefs.h <<\EOF |
| 6610 test "${with_motif}" = yes && | 9160 #define CONST_IS_LOSING 1 |
| 6611 { | 9161 EOF |
| 6612 test -n "$verbose" && \ | 9162 } |
| 6613 echo " defining LWLIB_USES_MOTIF" | 9163 |
| 6614 echo "#define" LWLIB_USES_MOTIF "1" >> confdefs.h | 9164 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 6615 DEFS="$DEFS -DLWLIB_USES_MOTIF=1" | 9165 Defining USE_ASSERTIONS |
| 6616 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_USES_MOTIF\${ac_dB}LWLIB_USES_MOTIF\${ac_dC}1\${ac_dD} | 9166 EOF |
| 6617 \${ac_uA}LWLIB_USES_MOTIF\${ac_uB}LWLIB_USES_MOTIF\${ac_uC}1\${ac_uD} | 9167 cat >> confdefs.h <<\EOF |
| 6618 \${ac_eA}LWLIB_USES_MOTIF\${ac_eB}LWLIB_USES_MOTIF\${ac_eC}1\${ac_eD} | 9168 #define USE_ASSERTIONS 1 |
| 6619 " | 9169 EOF |
| 6620 } | 9170 } |
| 6621 | 9171 |
| 6622 test "${with_athena}" = yes && | 9172 test "$debug" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 6623 { | 9173 Defining DEBUG_XEMACS |
| 6624 test -n "$verbose" && \ | 9174 EOF |
| 6625 echo " defining LWLIB_USES_ATHENA" | 9175 cat >> confdefs.h <<\EOF |
| 6626 echo "#define" LWLIB_USES_ATHENA "1" >> confdefs.h | 9176 #define DEBUG_XEMACS 1 |
| 6627 DEFS="$DEFS -DLWLIB_USES_ATHENA=1" | 9177 EOF |
| 6628 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_USES_ATHENA\${ac_dB}LWLIB_USES_ATHENA\${ac_dC}1\${ac_dD} | 9178 } |
| 6629 \${ac_uA}LWLIB_USES_ATHENA\${ac_uB}LWLIB_USES_ATHENA\${ac_uC}1\${ac_uD} | 9179 |
| 6630 \${ac_eA}LWLIB_USES_ATHENA\${ac_eB}LWLIB_USES_ATHENA\${ac_eC}1\${ac_eD} | 9180 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 6631 " | 9181 Defining QUANTIFY |
| 6632 } | 9182 EOF |
| 6633 | 9183 cat >> confdefs.h <<\EOF |
| 6634 test "${with_toolbars}" = yes && | 9184 #define QUANTIFY 1 |
| 6635 { | 9185 EOF |
| 6636 test -n "$verbose" && \ | 9186 } |
| 6637 echo " defining HAVE_TOOLBARS" | 9187 |
| 6638 echo "#define" HAVE_TOOLBARS "1" >> confdefs.h | 9188 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 6639 DEFS="$DEFS -DHAVE_TOOLBARS=1" | 9189 Defining MEMORY_USAGE_STATS |
| 6640 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TOOLBARS\${ac_dB}HAVE_TOOLBARS\${ac_dC}1\${ac_dD} | 9190 EOF |
| 6641 \${ac_uA}HAVE_TOOLBARS\${ac_uB}HAVE_TOOLBARS\${ac_uC}1\${ac_uD} | 9191 cat >> confdefs.h <<\EOF |
| 6642 \${ac_eA}HAVE_TOOLBARS\${ac_eB}HAVE_TOOLBARS\${ac_eC}1\${ac_eD} | 9192 #define MEMORY_USAGE_STATS 1 |
| 6643 " | 9193 EOF |
| 6644 } | 9194 } |
| 6645 | 9195 |
| 6646 test "${with_tty}" = yes && | 9196 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 6647 { | 9197 Defining MAIL_USE_POP |
| 6648 test -n "$verbose" && \ | 9198 EOF |
| 6649 echo " defining HAVE_TTY" | 9199 cat >> confdefs.h <<\EOF |
| 6650 echo "#define" HAVE_TTY "1" >> confdefs.h | 9200 #define MAIL_USE_POP 1 |
| 6651 DEFS="$DEFS -DHAVE_TTY=1" | 9201 EOF |
| 6652 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TTY\${ac_dB}HAVE_TTY\${ac_dC}1\${ac_dD} | 9202 } |
| 6653 \${ac_uA}HAVE_TTY\${ac_uB}HAVE_TTY\${ac_uC}1\${ac_uD} | 9203 |
| 6654 \${ac_eA}HAVE_TTY\${ac_eB}HAVE_TTY\${ac_eC}1\${ac_eD} | 9204 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 6655 " | 9205 Defining KERBEROS |
| 6656 } | 9206 EOF |
| 6657 | 9207 cat >> confdefs.h <<\EOF |
| 6658 test "${with_tooltalk}" = yes && | 9208 #define KERBEROS 1 |
| 6659 { | 9209 EOF |
| 6660 test -n "$verbose" && \ | 9210 } |
| 6661 echo " defining TOOLTALK" | 9211 |
| 6662 echo "#define" TOOLTALK "1" >> confdefs.h | 9212 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 6663 DEFS="$DEFS -DTOOLTALK=1" | 9213 Defining HESIOD |
| 6664 ac_sed_defs="${ac_sed_defs}\${ac_dA}TOOLTALK\${ac_dB}TOOLTALK\${ac_dC}1\${ac_dD} | 9214 EOF |
| 6665 \${ac_uA}TOOLTALK\${ac_uB}TOOLTALK\${ac_uC}1\${ac_uD} | 9215 cat >> confdefs.h <<\EOF |
| 6666 \${ac_eA}TOOLTALK\${ac_eB}TOOLTALK\${ac_eC}1\${ac_eD} | 9216 #define HESIOD 1 |
| 6667 " | 9217 EOF |
| 6668 } | 9218 } |
| 6669 | 9219 |
| 6670 test "${with_i18n3}" = yes && | 9220 |
| 6671 { | 9221 test "$error_check_extents" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 6672 test -n "$verbose" && \ | 9222 Defining ERROR_CHECK_EXTENTS |
| 6673 echo " defining I18N3" | 9223 EOF |
| 6674 echo "#define" I18N3 "1" >> confdefs.h | 9224 cat >> confdefs.h <<\EOF |
| 6675 DEFS="$DEFS -DI18N3=1" | 9225 #define ERROR_CHECK_EXTENTS 1 |
| 6676 ac_sed_defs="${ac_sed_defs}\${ac_dA}I18N3\${ac_dB}I18N3\${ac_dC}1\${ac_dD} | 9226 EOF |
| 6677 \${ac_uA}I18N3\${ac_uB}I18N3\${ac_uC}1\${ac_uD} | 9227 } |
| 6678 \${ac_eA}I18N3\${ac_eB}I18N3\${ac_eC}1\${ac_eD} | 9228 |
| 6679 " | 9229 test "$error_check_typecheck" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 6680 } | 9230 Defining ERROR_CHECK_TYPECHECK |
| 6681 | 9231 EOF |
| 6682 test "${with_mule}" = yes && | 9232 cat >> confdefs.h <<\EOF |
| 6683 { | 9233 #define ERROR_CHECK_TYPECHECK 1 |
| 6684 test -n "$verbose" && \ | 9234 EOF |
| 6685 echo " defining MULE" | 9235 } |
| 6686 echo "#define" MULE "1" >> confdefs.h | 9236 |
| 6687 DEFS="$DEFS -DMULE=1" | 9237 test "$error_check_bufpos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 6688 ac_sed_defs="${ac_sed_defs}\${ac_dA}MULE\${ac_dB}MULE\${ac_dC}1\${ac_dD} | 9238 Defining ERROR_CHECK_BUFPOS |
| 6689 \${ac_uA}MULE\${ac_uB}MULE\${ac_uC}1\${ac_uD} | 9239 EOF |
| 6690 \${ac_eA}MULE\${ac_eB}MULE\${ac_eC}1\${ac_eD} | 9240 cat >> confdefs.h <<\EOF |
| 6691 " | 9241 #define ERROR_CHECK_BUFPOS 1 |
| 6692 } | 9242 EOF |
| 6693 | 9243 } |
| 6694 test "${with_canna}" = yes && | 9244 |
| 6695 { | 9245 test "$error_check_gc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 6696 test -n "$verbose" && \ | 9246 Defining ERROR_CHECK_GC |
| 6697 echo " defining HAVE_CANNA" | 9247 EOF |
| 6698 echo "#define" HAVE_CANNA "1" >> confdefs.h | 9248 cat >> confdefs.h <<\EOF |
| 6699 DEFS="$DEFS -DHAVE_CANNA=1" | 9249 #define ERROR_CHECK_GC 1 |
| 6700 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_CANNA\${ac_dB}HAVE_CANNA\${ac_dC}1\${ac_dD} | 9250 EOF |
| 6701 \${ac_uA}HAVE_CANNA\${ac_uB}HAVE_CANNA\${ac_uC}1\${ac_uD} | 9251 } |
| 6702 \${ac_eA}HAVE_CANNA\${ac_eB}HAVE_CANNA\${ac_eC}1\${ac_eD} | 9252 |
| 6703 " | 9253 test "$error_check_malloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 6704 } | 9254 Defining ERROR_CHECK_MALLOC |
| 6705 | 9255 EOF |
| 6706 test "${with_wnn}" = yes && | 9256 cat >> confdefs.h <<\EOF |
| 6707 { | 9257 #define ERROR_CHECK_MALLOC 1 |
| 6708 test -n "$verbose" && \ | 9258 EOF |
| 6709 echo " defining HAVE_WNN" | 9259 } |
| 6710 echo "#define" HAVE_WNN "1" >> confdefs.h | 9260 |
| 6711 DEFS="$DEFS -DHAVE_WNN=1" | 9261 |
| 6712 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_WNN\${ac_dB}HAVE_WNN\${ac_dC}1\${ac_dD} | 9262 test "$use_union_type" != yes && { test "$extra_verbose" = "yes" && cat << \EOF |
| 6713 \${ac_uA}HAVE_WNN\${ac_uB}HAVE_WNN\${ac_uC}1\${ac_uD} | 9263 Defining NO_UNION_TYPE |
| 6714 \${ac_eA}HAVE_WNN\${ac_eB}HAVE_WNN\${ac_eC}1\${ac_eD} | 9264 EOF |
| 6715 " | 9265 cat >> confdefs.h <<\EOF |
| 6716 } | 9266 #define NO_UNION_TYPE 1 |
| 6717 | 9267 EOF |
| 6718 test "${with_wnn6}" = yes && | |
| 6719 { | |
| 6720 test -n "$verbose" && \ | |
| 6721 echo " defining WNN6" | |
| 6722 echo "#define" WNN6 "1" >> confdefs.h | |
| 6723 DEFS="$DEFS -DWNN6=1" | |
| 6724 ac_sed_defs="${ac_sed_defs}\${ac_dA}WNN6\${ac_dB}WNN6\${ac_dC}1\${ac_dD} | |
| 6725 \${ac_uA}WNN6\${ac_uB}WNN6\${ac_uC}1\${ac_uD} | |
| 6726 \${ac_eA}WNN6\${ac_eB}WNN6\${ac_eC}1\${ac_eD} | |
| 6727 " | |
| 6728 } | |
| 6729 | |
| 6730 test "${with_mock}" = yes && | |
| 6731 { | |
| 6732 test -n "$verbose" && \ | |
| 6733 echo " defining MOCKLISP_SUPPORT" | |
| 6734 echo "#define" MOCKLISP_SUPPORT "1" >> confdefs.h | |
| 6735 DEFS="$DEFS -DMOCKLISP_SUPPORT=1" | |
| 6736 ac_sed_defs="${ac_sed_defs}\${ac_dA}MOCKLISP_SUPPORT\${ac_dB}MOCKLISP_SUPPORT\${ac_dC}1\${ac_dD} | |
| 6737 \${ac_uA}MOCKLISP_SUPPORT\${ac_uB}MOCKLISP_SUPPORT\${ac_uC}1\${ac_uD} | |
| 6738 \${ac_eA}MOCKLISP_SUPPORT\${ac_eB}MOCKLISP_SUPPORT\${ac_eC}1\${ac_eD} | |
| 6739 " | |
| 6740 } | |
| 6741 | |
| 6742 test "${with_sparcworks}" = yes && | |
| 6743 { | |
| 6744 test -n "$verbose" && \ | |
| 6745 echo " defining SUNPRO" | |
| 6746 echo "#define" SUNPRO "1" >> confdefs.h | |
| 6747 DEFS="$DEFS -DSUNPRO=1" | |
| 6748 ac_sed_defs="${ac_sed_defs}\${ac_dA}SUNPRO\${ac_dB}SUNPRO\${ac_dC}1\${ac_dD} | |
| 6749 \${ac_uA}SUNPRO\${ac_uB}SUNPRO\${ac_uC}1\${ac_uD} | |
| 6750 \${ac_eA}SUNPRO\${ac_eB}SUNPRO\${ac_eC}1\${ac_eD} | |
| 6751 " | |
| 6752 } | |
| 6753 | |
| 6754 test "${usage_tracking}" = yes && | |
| 6755 { | |
| 6756 test -n "$verbose" && \ | |
| 6757 echo " defining USAGE_TRACKING" | |
| 6758 echo "#define" USAGE_TRACKING "1" >> confdefs.h | |
| 6759 DEFS="$DEFS -DUSAGE_TRACKING=1" | |
| 6760 ac_sed_defs="${ac_sed_defs}\${ac_dA}USAGE_TRACKING\${ac_dB}USAGE_TRACKING\${ac_dC}1\${ac_dD} | |
| 6761 \${ac_uA}USAGE_TRACKING\${ac_uB}USAGE_TRACKING\${ac_uC}1\${ac_uD} | |
| 6762 \${ac_eA}USAGE_TRACKING\${ac_eB}USAGE_TRACKING\${ac_eC}1\${ac_eD} | |
| 6763 " | |
| 6764 } | |
| 6765 | |
| 6766 test "${need_dynodump}" = yes && | |
| 6767 { | |
| 6768 test -n "$verbose" && \ | |
| 6769 echo " defining DYNODUMP" | |
| 6770 echo "#define" DYNODUMP "1" >> confdefs.h | |
| 6771 DEFS="$DEFS -DDYNODUMP=1" | |
| 6772 ac_sed_defs="${ac_sed_defs}\${ac_dA}DYNODUMP\${ac_dB}DYNODUMP\${ac_dC}1\${ac_dD} | |
| 6773 \${ac_uA}DYNODUMP\${ac_uB}DYNODUMP\${ac_uC}1\${ac_uD} | |
| 6774 \${ac_eA}DYNODUMP\${ac_eB}DYNODUMP\${ac_eC}1\${ac_eD} | |
| 6775 " | |
| 6776 } | |
| 6777 | |
| 6778 test "${need_xildoff}" = yes && | |
| 6779 { | |
| 6780 test -n "$verbose" && \ | |
| 6781 echo " defining NEED_XILDOFF" | |
| 6782 echo "#define" NEED_XILDOFF "1" >> confdefs.h | |
| 6783 DEFS="$DEFS -DNEED_XILDOFF=1" | |
| 6784 ac_sed_defs="${ac_sed_defs}\${ac_dA}NEED_XILDOFF\${ac_dB}NEED_XILDOFF\${ac_dC}1\${ac_dD} | |
| 6785 \${ac_uA}NEED_XILDOFF\${ac_uB}NEED_XILDOFF\${ac_uC}1\${ac_uD} | |
| 6786 \${ac_eA}NEED_XILDOFF\${ac_eB}NEED_XILDOFF\${ac_eC}1\${ac_eD} | |
| 6787 " | |
| 6788 } | |
| 6789 | |
| 6790 test "${with_gcc}" = yes && | |
| 6791 { | |
| 6792 test -n "$verbose" && \ | |
| 6793 echo " defining USE_GCC" | |
| 6794 echo "#define" USE_GCC "1" >> confdefs.h | |
| 6795 DEFS="$DEFS -DUSE_GCC=1" | |
| 6796 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_GCC\${ac_dB}USE_GCC\${ac_dC}1\${ac_dD} | |
| 6797 \${ac_uA}USE_GCC\${ac_uB}USE_GCC\${ac_uC}1\${ac_uD} | |
| 6798 \${ac_eA}USE_GCC\${ac_eB}USE_GCC\${ac_eC}1\${ac_eD} | |
| 6799 " | |
| 6800 } | |
| 6801 | |
| 6802 test "${with_lcc}" = yes && | |
| 6803 { | |
| 6804 test -n "$verbose" && \ | |
| 6805 echo " defining USE_LCC" | |
| 6806 echo "#define" USE_LCC "1" >> confdefs.h | |
| 6807 DEFS="$DEFS -DUSE_LCC=1" | |
| 6808 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_LCC\${ac_dB}USE_LCC\${ac_dC}1\${ac_dD} | |
| 6809 \${ac_uA}USE_LCC\${ac_uB}USE_LCC\${ac_uC}1\${ac_uD} | |
| 6810 \${ac_eA}USE_LCC\${ac_eB}USE_LCC\${ac_eC}1\${ac_eD} | |
| 6811 " | |
| 6812 } | |
| 6813 | |
| 6814 test "${with_socks}" = yes && | |
| 6815 { | |
| 6816 test -n "$verbose" && \ | |
| 6817 echo " defining HAVE_SOCKS" | |
| 6818 echo "#define" HAVE_SOCKS "1" >> confdefs.h | |
| 6819 DEFS="$DEFS -DHAVE_SOCKS=1" | |
| 6820 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SOCKS\${ac_dB}HAVE_SOCKS\${ac_dC}1\${ac_dD} | |
| 6821 \${ac_uA}HAVE_SOCKS\${ac_uB}HAVE_SOCKS\${ac_uC}1\${ac_uD} | |
| 6822 \${ac_eA}HAVE_SOCKS\${ac_eB}HAVE_SOCKS\${ac_eC}1\${ac_eD} | |
| 6823 " | |
| 6824 } | |
| 6825 | |
| 6826 test "${with_term}" = yes && | |
| 6827 { | |
| 6828 test -n "$verbose" && \ | |
| 6829 echo " defining HAVE_TERM" | |
| 6830 echo "#define" HAVE_TERM "1" >> confdefs.h | |
| 6831 DEFS="$DEFS -DHAVE_TERM=1" | |
| 6832 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TERM\${ac_dB}HAVE_TERM\${ac_dC}1\${ac_dD} | |
| 6833 \${ac_uA}HAVE_TERM\${ac_uB}HAVE_TERM\${ac_uC}1\${ac_uD} | |
| 6834 \${ac_eA}HAVE_TERM\${ac_eB}HAVE_TERM\${ac_eC}1\${ac_eD} | |
| 6835 " | |
| 6836 } | |
| 6837 | |
| 6838 test "${external_widget}" = yes && | |
| 6839 { | |
| 6840 test -n "$verbose" && \ | |
| 6841 echo " defining EXTERNAL_WIDGET" | |
| 6842 echo "#define" EXTERNAL_WIDGET "1" >> confdefs.h | |
| 6843 DEFS="$DEFS -DEXTERNAL_WIDGET=1" | |
| 6844 ac_sed_defs="${ac_sed_defs}\${ac_dA}EXTERNAL_WIDGET\${ac_dB}EXTERNAL_WIDGET\${ac_dC}1\${ac_dD} | |
| 6845 \${ac_uA}EXTERNAL_WIDGET\${ac_uB}EXTERNAL_WIDGET\${ac_uC}1\${ac_uD} | |
| 6846 \${ac_eA}EXTERNAL_WIDGET\${ac_eB}EXTERNAL_WIDGET\${ac_eC}1\${ac_eD} | |
| 6847 " | |
| 6848 } | |
| 6849 | |
| 6850 test "${with_gnu_make}" = yes && | |
| 6851 { | |
| 6852 test -n "$verbose" && \ | |
| 6853 echo " defining USE_GNU_MAKE" | |
| 6854 echo "#define" USE_GNU_MAKE "1" >> confdefs.h | |
| 6855 DEFS="$DEFS -DUSE_GNU_MAKE=1" | |
| 6856 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_GNU_MAKE\${ac_dB}USE_GNU_MAKE\${ac_dC}1\${ac_dD} | |
| 6857 \${ac_uA}USE_GNU_MAKE\${ac_uB}USE_GNU_MAKE\${ac_uC}1\${ac_uD} | |
| 6858 \${ac_eA}USE_GNU_MAKE\${ac_eB}USE_GNU_MAKE\${ac_eC}1\${ac_eD} | |
| 6859 " | |
| 6860 } | |
| 6861 | |
| 6862 test "${no_doc_file}" = yes && | |
| 6863 { | |
| 6864 test -n "$verbose" && \ | |
| 6865 echo " defining NO_DOC_FILE" | |
| 6866 echo "#define" NO_DOC_FILE "1" >> confdefs.h | |
| 6867 DEFS="$DEFS -DNO_DOC_FILE=1" | |
| 6868 ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_DOC_FILE\${ac_dB}NO_DOC_FILE\${ac_dC}1\${ac_dD} | |
| 6869 \${ac_uA}NO_DOC_FILE\${ac_uB}NO_DOC_FILE\${ac_uC}1\${ac_uD} | |
| 6870 \${ac_eA}NO_DOC_FILE\${ac_eB}NO_DOC_FILE\${ac_eC}1\${ac_eD} | |
| 6871 " | |
| 6872 } | |
| 6873 | |
| 6874 test "${const_is_losing}" = yes && | |
| 6875 { | |
| 6876 test -n "$verbose" && \ | |
| 6877 echo " defining CONST_IS_LOSING" | |
| 6878 echo "#define" CONST_IS_LOSING "1" >> confdefs.h | |
| 6879 DEFS="$DEFS -DCONST_IS_LOSING=1" | |
| 6880 ac_sed_defs="${ac_sed_defs}\${ac_dA}CONST_IS_LOSING\${ac_dB}CONST_IS_LOSING\${ac_dC}1\${ac_dD} | |
| 6881 \${ac_uA}CONST_IS_LOSING\${ac_uB}CONST_IS_LOSING\${ac_uC}1\${ac_uD} | |
| 6882 \${ac_eA}CONST_IS_LOSING\${ac_eB}CONST_IS_LOSING\${ac_eC}1\${ac_eD} | |
| 6883 " | |
| 6884 } | |
| 6885 | |
| 6886 test "${use_assertions}" = yes && | |
| 6887 { | |
| 6888 test -n "$verbose" && \ | |
| 6889 echo " defining USE_ASSERTIONS" | |
| 6890 echo "#define" USE_ASSERTIONS "1" >> confdefs.h | |
| 6891 DEFS="$DEFS -DUSE_ASSERTIONS=1" | |
| 6892 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_ASSERTIONS\${ac_dB}USE_ASSERTIONS\${ac_dC}1\${ac_dD} | |
| 6893 \${ac_uA}USE_ASSERTIONS\${ac_uB}USE_ASSERTIONS\${ac_uC}1\${ac_uD} | |
| 6894 \${ac_eA}USE_ASSERTIONS\${ac_eB}USE_ASSERTIONS\${ac_eC}1\${ac_eD} | |
| 6895 " | |
| 6896 } | |
| 6897 | |
| 6898 test "${debug}" = yes && | |
| 6899 { | |
| 6900 test -n "$verbose" && \ | |
| 6901 echo " defining DEBUG_XEMACS" | |
| 6902 echo "#define" DEBUG_XEMACS "1" >> confdefs.h | |
| 6903 DEFS="$DEFS -DDEBUG_XEMACS=1" | |
| 6904 ac_sed_defs="${ac_sed_defs}\${ac_dA}DEBUG_XEMACS\${ac_dB}DEBUG_XEMACS\${ac_dC}1\${ac_dD} | |
| 6905 \${ac_uA}DEBUG_XEMACS\${ac_uB}DEBUG_XEMACS\${ac_uC}1\${ac_uD} | |
| 6906 \${ac_eA}DEBUG_XEMACS\${ac_eB}DEBUG_XEMACS\${ac_eC}1\${ac_eD} | |
| 6907 " | |
| 6908 } | |
| 6909 | |
| 6910 test "${quantify}" = yes && | |
| 6911 { | |
| 6912 test -n "$verbose" && \ | |
| 6913 echo " defining QUANTIFY" | |
| 6914 echo "#define" QUANTIFY "1" >> confdefs.h | |
| 6915 DEFS="$DEFS -DQUANTIFY=1" | |
| 6916 ac_sed_defs="${ac_sed_defs}\${ac_dA}QUANTIFY\${ac_dB}QUANTIFY\${ac_dC}1\${ac_dD} | |
| 6917 \${ac_uA}QUANTIFY\${ac_uB}QUANTIFY\${ac_uC}1\${ac_uD} | |
| 6918 \${ac_eA}QUANTIFY\${ac_eB}QUANTIFY\${ac_eC}1\${ac_eD} | |
| 6919 " | |
| 6920 } | |
| 6921 | |
| 6922 test "${memory_usage_stats}" = yes && | |
| 6923 { | |
| 6924 test -n "$verbose" && \ | |
| 6925 echo " defining MEMORY_USAGE_STATS" | |
| 6926 echo "#define" MEMORY_USAGE_STATS "1" >> confdefs.h | |
| 6927 DEFS="$DEFS -DMEMORY_USAGE_STATS=1" | |
| 6928 ac_sed_defs="${ac_sed_defs}\${ac_dA}MEMORY_USAGE_STATS\${ac_dB}MEMORY_USAGE_STATS\${ac_dC}1\${ac_dD} | |
| 6929 \${ac_uA}MEMORY_USAGE_STATS\${ac_uB}MEMORY_USAGE_STATS\${ac_uC}1\${ac_uD} | |
| 6930 \${ac_eA}MEMORY_USAGE_STATS\${ac_eB}MEMORY_USAGE_STATS\${ac_eC}1\${ac_eD} | |
| 6931 " | |
| 6932 } | |
| 6933 | |
| 6934 test "${with_pop}" = yes && | |
| 6935 { | |
| 6936 test -n "$verbose" && \ | |
| 6937 echo " defining MAIL_USE_POP" | |
| 6938 echo "#define" MAIL_USE_POP "1" >> confdefs.h | |
| 6939 DEFS="$DEFS -DMAIL_USE_POP=1" | |
| 6940 ac_sed_defs="${ac_sed_defs}\${ac_dA}MAIL_USE_POP\${ac_dB}MAIL_USE_POP\${ac_dC}1\${ac_dD} | |
| 6941 \${ac_uA}MAIL_USE_POP\${ac_uB}MAIL_USE_POP\${ac_uC}1\${ac_uD} | |
| 6942 \${ac_eA}MAIL_USE_POP\${ac_eB}MAIL_USE_POP\${ac_eC}1\${ac_eD} | |
| 6943 " | |
| 6944 } | |
| 6945 | |
| 6946 test "${with_kerberos}" = yes && | |
| 6947 { | |
| 6948 test -n "$verbose" && \ | |
| 6949 echo " defining KERBEROS" | |
| 6950 echo "#define" KERBEROS "1" >> confdefs.h | |
| 6951 DEFS="$DEFS -DKERBEROS=1" | |
| 6952 ac_sed_defs="${ac_sed_defs}\${ac_dA}KERBEROS\${ac_dB}KERBEROS\${ac_dC}1\${ac_dD} | |
| 6953 \${ac_uA}KERBEROS\${ac_uB}KERBEROS\${ac_uC}1\${ac_uD} | |
| 6954 \${ac_eA}KERBEROS\${ac_eB}KERBEROS\${ac_eC}1\${ac_eD} | |
| 6955 " | |
| 6956 } | |
| 6957 | |
| 6958 test "${with_hesiod}" = yes && | |
| 6959 { | |
| 6960 test -n "$verbose" && \ | |
| 6961 echo " defining HESIOD" | |
| 6962 echo "#define" HESIOD "1" >> confdefs.h | |
| 6963 DEFS="$DEFS -DHESIOD=1" | |
| 6964 ac_sed_defs="${ac_sed_defs}\${ac_dA}HESIOD\${ac_dB}HESIOD\${ac_dC}1\${ac_dD} | |
| 6965 \${ac_uA}HESIOD\${ac_uB}HESIOD\${ac_uC}1\${ac_uD} | |
| 6966 \${ac_eA}HESIOD\${ac_eB}HESIOD\${ac_eC}1\${ac_eD} | |
| 6967 " | |
| 6968 } | |
| 6969 | |
| 6970 | |
| 6971 test "${error_check_extents}" = yes && | |
| 6972 { | |
| 6973 test -n "$verbose" && \ | |
| 6974 echo " defining ERROR_CHECK_EXTENTS" | |
| 6975 echo "#define" ERROR_CHECK_EXTENTS "1" >> confdefs.h | |
| 6976 DEFS="$DEFS -DERROR_CHECK_EXTENTS=1" | |
| 6977 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_EXTENTS\${ac_dB}ERROR_CHECK_EXTENTS\${ac_dC}1\${ac_dD} | |
| 6978 \${ac_uA}ERROR_CHECK_EXTENTS\${ac_uB}ERROR_CHECK_EXTENTS\${ac_uC}1\${ac_uD} | |
| 6979 \${ac_eA}ERROR_CHECK_EXTENTS\${ac_eB}ERROR_CHECK_EXTENTS\${ac_eC}1\${ac_eD} | |
| 6980 " | |
| 6981 } | |
| 6982 | |
| 6983 test "${error_check_typecheck}" = yes && | |
| 6984 { | |
| 6985 test -n "$verbose" && \ | |
| 6986 echo " defining ERROR_CHECK_TYPECHECK" | |
| 6987 echo "#define" ERROR_CHECK_TYPECHECK "1" >> confdefs.h | |
| 6988 DEFS="$DEFS -DERROR_CHECK_TYPECHECK=1" | |
| 6989 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_TYPECHECK\${ac_dB}ERROR_CHECK_TYPECHECK\${ac_dC}1\${ac_dD} | |
| 6990 \${ac_uA}ERROR_CHECK_TYPECHECK\${ac_uB}ERROR_CHECK_TYPECHECK\${ac_uC}1\${ac_uD} | |
| 6991 \${ac_eA}ERROR_CHECK_TYPECHECK\${ac_eB}ERROR_CHECK_TYPECHECK\${ac_eC}1\${ac_eD} | |
| 6992 " | |
| 6993 } | |
| 6994 | |
| 6995 test "${error_check_bufpos}" = yes && | |
| 6996 { | |
| 6997 test -n "$verbose" && \ | |
| 6998 echo " defining ERROR_CHECK_BUFPOS" | |
| 6999 echo "#define" ERROR_CHECK_BUFPOS "1" >> confdefs.h | |
| 7000 DEFS="$DEFS -DERROR_CHECK_BUFPOS=1" | |
| 7001 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_BUFPOS\${ac_dB}ERROR_CHECK_BUFPOS\${ac_dC}1\${ac_dD} | |
| 7002 \${ac_uA}ERROR_CHECK_BUFPOS\${ac_uB}ERROR_CHECK_BUFPOS\${ac_uC}1\${ac_uD} | |
| 7003 \${ac_eA}ERROR_CHECK_BUFPOS\${ac_eB}ERROR_CHECK_BUFPOS\${ac_eC}1\${ac_eD} | |
| 7004 " | |
| 7005 } | |
| 7006 | |
| 7007 test "${error_check_gc}" = yes && | |
| 7008 { | |
| 7009 test -n "$verbose" && \ | |
| 7010 echo " defining ERROR_CHECK_GC" | |
| 7011 echo "#define" ERROR_CHECK_GC "1" >> confdefs.h | |
| 7012 DEFS="$DEFS -DERROR_CHECK_GC=1" | |
| 7013 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_GC\${ac_dB}ERROR_CHECK_GC\${ac_dC}1\${ac_dD} | |
| 7014 \${ac_uA}ERROR_CHECK_GC\${ac_uB}ERROR_CHECK_GC\${ac_uC}1\${ac_uD} | |
| 7015 \${ac_eA}ERROR_CHECK_GC\${ac_eB}ERROR_CHECK_GC\${ac_eC}1\${ac_eD} | |
| 7016 " | |
| 7017 } | |
| 7018 | |
| 7019 test "${error_check_malloc}" = yes && | |
| 7020 { | |
| 7021 test -n "$verbose" && \ | |
| 7022 echo " defining ERROR_CHECK_MALLOC" | |
| 7023 echo "#define" ERROR_CHECK_MALLOC "1" >> confdefs.h | |
| 7024 DEFS="$DEFS -DERROR_CHECK_MALLOC=1" | |
| 7025 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_MALLOC\${ac_dB}ERROR_CHECK_MALLOC\${ac_dC}1\${ac_dD} | |
| 7026 \${ac_uA}ERROR_CHECK_MALLOC\${ac_uB}ERROR_CHECK_MALLOC\${ac_uC}1\${ac_uD} | |
| 7027 \${ac_eA}ERROR_CHECK_MALLOC\${ac_eB}ERROR_CHECK_MALLOC\${ac_eC}1\${ac_eD} | |
| 7028 " | |
| 7029 } | |
| 7030 | |
| 7031 | |
| 7032 if test "${with_energize}" = yes; then | |
| 7033 | |
| 7034 { | |
| 7035 test -n "$verbose" && \ | |
| 7036 echo " defining ENERGIZE" | |
| 7037 echo "#define" ENERGIZE "1" >> confdefs.h | |
| 7038 DEFS="$DEFS -DENERGIZE=1" | |
| 7039 ac_sed_defs="${ac_sed_defs}\${ac_dA}ENERGIZE\${ac_dB}ENERGIZE\${ac_dC}1\${ac_dD} | |
| 7040 \${ac_uA}ENERGIZE\${ac_uB}ENERGIZE\${ac_uC}1\${ac_uD} | |
| 7041 \${ac_eA}ENERGIZE\${ac_eB}ENERGIZE\${ac_eC}1\${ac_eD} | |
| 7042 " | |
| 7043 } | |
| 7044 | |
| 7045 test "${energize_version}" = "2.X" && | |
| 7046 { | |
| 7047 test -n "$verbose" && \ | |
| 7048 echo " defining ENERGIZE_2" | |
| 7049 echo "#define" ENERGIZE_2 "1" >> confdefs.h | |
| 7050 DEFS="$DEFS -DENERGIZE_2=1" | |
| 7051 ac_sed_defs="${ac_sed_defs}\${ac_dA}ENERGIZE_2\${ac_dB}ENERGIZE_2\${ac_dC}1\${ac_dD} | |
| 7052 \${ac_uA}ENERGIZE_2\${ac_uB}ENERGIZE_2\${ac_uC}1\${ac_uD} | |
| 7053 \${ac_eA}ENERGIZE_2\${ac_eB}ENERGIZE_2\${ac_eC}1\${ac_eD} | |
| 7054 " | |
| 7055 } | |
| 7056 | |
| 7057 test "${energize_version}" = "3.X" && | |
| 7058 { | |
| 7059 test -n "$verbose" && \ | |
| 7060 echo " defining ENERGIZE_3" | |
| 7061 echo "#define" ENERGIZE_3 "1" >> confdefs.h | |
| 7062 DEFS="$DEFS -DENERGIZE_3=1" | |
| 7063 ac_sed_defs="${ac_sed_defs}\${ac_dA}ENERGIZE_3\${ac_dB}ENERGIZE_3\${ac_dC}1\${ac_dD} | |
| 7064 \${ac_uA}ENERGIZE_3\${ac_uB}ENERGIZE_3\${ac_uC}1\${ac_uD} | |
| 7065 \${ac_eA}ENERGIZE_3\${ac_eB}ENERGIZE_3\${ac_eC}1\${ac_eD} | |
| 7066 " | |
| 7067 } | |
| 7068 | |
| 7069 fi | |
| 7070 | |
| 7071 test "${with_sound}" = "native" -o "${with_sound}" = "both" && | |
| 7072 { | |
| 7073 test -n "$verbose" && \ | |
| 7074 echo " defining HAVE_NATIVE_SOUND" | |
| 7075 echo "#define" HAVE_NATIVE_SOUND "1" >> confdefs.h | |
| 7076 DEFS="$DEFS -DHAVE_NATIVE_SOUND=1" | |
| 7077 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NATIVE_SOUND\${ac_dB}HAVE_NATIVE_SOUND\${ac_dC}1\${ac_dD} | |
| 7078 \${ac_uA}HAVE_NATIVE_SOUND\${ac_uB}HAVE_NATIVE_SOUND\${ac_uC}1\${ac_uD} | |
| 7079 \${ac_eA}HAVE_NATIVE_SOUND\${ac_eB}HAVE_NATIVE_SOUND\${ac_eC}1\${ac_eD} | |
| 7080 " | |
| 7081 } | |
| 7082 | |
| 7083 test "${with_sound}" = "nas" -o "${with_sound}" = "both" && | |
| 7084 { | |
| 7085 test -n "$verbose" && \ | |
| 7086 echo " defining HAVE_NAS_SOUND" | |
| 7087 echo "#define" HAVE_NAS_SOUND "1" >> confdefs.h | |
| 7088 DEFS="$DEFS -DHAVE_NAS_SOUND=1" | |
| 7089 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NAS_SOUND\${ac_dB}HAVE_NAS_SOUND\${ac_dC}1\${ac_dD} | |
| 7090 \${ac_uA}HAVE_NAS_SOUND\${ac_uB}HAVE_NAS_SOUND\${ac_uC}1\${ac_uD} | |
| 7091 \${ac_eA}HAVE_NAS_SOUND\${ac_eB}HAVE_NAS_SOUND\${ac_eC}1\${ac_eD} | |
| 7092 " | |
| 7093 } | |
| 7094 | |
| 7095 test "${old_nas}" = "true" && | |
| 7096 { | |
| 7097 test -n "$verbose" && \ | |
| 7098 echo " defining NAS_NO_ERROR_JUMP" | |
| 7099 echo "#define" NAS_NO_ERROR_JUMP "1" >> confdefs.h | |
| 7100 DEFS="$DEFS -DNAS_NO_ERROR_JUMP=1" | |
| 7101 ac_sed_defs="${ac_sed_defs}\${ac_dA}NAS_NO_ERROR_JUMP\${ac_dB}NAS_NO_ERROR_JUMP\${ac_dC}1\${ac_dD} | |
| 7102 \${ac_uA}NAS_NO_ERROR_JUMP\${ac_uB}NAS_NO_ERROR_JUMP\${ac_uC}1\${ac_uD} | |
| 7103 \${ac_eA}NAS_NO_ERROR_JUMP\${ac_eB}NAS_NO_ERROR_JUMP\${ac_eC}1\${ac_eD} | |
| 7104 " | |
| 7105 } | |
| 7106 | |
| 7107 | |
| 7108 test "${use_union_type}" != yes && | |
| 7109 { | |
| 7110 test -n "$verbose" && \ | |
| 7111 echo " defining NO_UNION_TYPE" | |
| 7112 echo "#define" NO_UNION_TYPE "1" >> confdefs.h | |
| 7113 DEFS="$DEFS -DNO_UNION_TYPE=1" | |
| 7114 ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_UNION_TYPE\${ac_dB}NO_UNION_TYPE\${ac_dC}1\${ac_dD} | |
| 7115 \${ac_uA}NO_UNION_TYPE\${ac_uB}NO_UNION_TYPE\${ac_uC}1\${ac_uD} | |
| 7116 \${ac_eA}NO_UNION_TYPE\${ac_eB}NO_UNION_TYPE\${ac_eC}1\${ac_eD} | |
| 7117 " | |
| 7118 } | 9268 } |
| 7119 | 9269 |
| 7120 | 9270 |
| 7121 | 9271 |
| 7122 ( | 9272 ( |
| 7123 if test -f /etc/osversion; then | 9273 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`" |
| 7124 # SONY NEWS-OS | 9274 else |
| 7125 echo "osversion: `cat /etc/osversion`" | 9275 echo "uname -a: `uname -a`" |
| 7126 eles | 9276 fi |
| 7127 echo "uname -a: `uname -a`" | 9277 echo "" |
| 7128 fi | 9278 echo "$0 $quoted_arguments" |
| 7129 echo "" | |
| 7130 echo "$0 $quoted_arguments" | |
| 7131 ) >> Installation | 9279 ) >> Installation |
| 7132 # Start stdout redirection to '| tee -a Installation' | 9280 |
| 7133 ( | 9281 ( |
| 7134 echo " | 9282 echo " |
| 7135 | 9283 |
| 7136 Configured for \`${canonical}'. | 9284 Configured for \`$canonical'. |
| 7137 | 9285 |
| 7138 Where should the build process find the source code? ${srcdir} | 9286 Where should the build process find the source code? $srcdir |
| 7139 What installation prefix should install use? ${prefix} | 9287 What installation prefix should install use? $prefix |
| 7140 What operating system and machine description files should XEmacs use? | 9288 What operating system and machine description files should XEmacs use? |
| 7141 \`${opsysfile}' and \`${machfile}' | 9289 \`$opsysfile' and \`$machfile' |
| 7142 What compiler should XEmacs be built with? ${CC} ${CFLAGS} | 9290 What compiler should XEmacs be built with? $CC $CFLAGS |
| 7143 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | 9291 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} |
| 7144 Should XEmacs use the relocating allocator for buffers? ${rel_alloc} | 9292 Should XEmacs use the relocating allocator for buffers? $rel_alloc |
| 7145 What window system should XEmacs use? ${window_system}${x_includes+ | 9293 What window system should XEmacs use? ${window_system}" |
| 7146 Where do we find X Windows header files? }${x_includes}${x_libraries+ | 9294 if test "$with_x11" = "yes"; then |
| 7147 Where do we find X Windows libraries? }${x_libraries}" | 9295 echo " Where do we find X Windows header files? $x_includes" |
| 7148 | 9296 echo " Where do we find X Windows libraries? $x_libraries" |
| 9297 fi | |
| 7149 if test -n "$site_includes"; then | 9298 if test -n "$site_includes"; then |
| 7150 echo " Additional header files: ${site_includes}" | 9299 echo " Additional header files: $site_includes" |
| 7151 fi | 9300 fi |
| 7152 | 9301 if test -n "$site_libraries"; then |
| 7153 if test -n "$site_libraries" -a -n "$site_runtime_libraries"; then | 9302 echo " Additional libraries: $site_libraries" |
| 7154 echo " Additional libraries: ${site_libraries} ${site_runtime_libraries}" | 9303 fi |
| 7155 elif test -n "$site_libraries"; then | 9304 if test -n "$runpath"; then |
| 7156 echo " Additional libraries: ${site_libraries}" | 9305 echo " Runtime library search path: $runpath" |
| 7157 elif test -n "$site_runtime_libraries"; then | |
| 7158 echo " Additional libraries: ${site_runtime_libraries}" | |
| 7159 fi | 9306 fi |
| 7160 test "$with_dnet" = yes && echo " Compiling in support for DNET." | 9307 test "$with_dnet" = yes && echo " Compiling in support for DNET." |
| 7161 test "$with_socks" = yes && echo " Compiling in support for SOCKS." | 9308 test "$with_socks" = yes && echo " Compiling in support for SOCKS." |
| 7162 test "$with_term" = yes && echo " Compiling in support for TERM." | 9309 test "$with_term" = yes && echo " Compiling in support for TERM." |
| 7163 test "$with_xauth" = yes && echo " Compiling in support for XAUTH." | 9310 test "$with_xauth" = yes && echo " Compiling in support for XAUTH." |
| 7164 test "$with_xpm" = yes && echo " Compiling in support for XPM." | 9311 if test "$with_xmu" != yes -a "$with_x11" = yes; then |
| 7165 if test "$with_xmu" != yes -a "$window_system" != none; then | |
| 7166 echo " No Xmu; substituting equivalent routines." | 9312 echo " No Xmu; substituting equivalent routines." |
| 7167 fi | 9313 fi |
| 7168 test "$with_xface" = yes && echo " Compiling in support for X-Face headers." | 9314 |
| 7169 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion." | 9315 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion." |
| 9316 test "$with_xpm" = yes && echo " Compiling in support for XPM images." | |
| 9317 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers." | |
| 7170 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image conversion." | 9318 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image conversion." |
| 7171 if test "$with_png" = yes -o "$with_png" = gnuz; then | 9319 test "$with_png" = yes && echo " Compiling in support for PNG image conversion." |
| 7172 echo " Compiling in support for PNG image conversion." | |
| 7173 fi | |
| 7174 if test "$with_png" = gnuz; then | |
| 7175 echo " (Using -lgz instead of -lz.)" | |
| 7176 fi | |
| 7177 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion (not implemented)." | 9320 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion (not implemented)." |
| 7178 | 9321 |
| 7179 test "$with_sound" = nas && echo " Compiling in network sound support." | 9322 case "$with_sound" in |
| 7180 test "$with_sound" = native && echo " Compiling in native sound support." | 9323 nas ) echo " Compiling in network sound (NAS) support." ;; |
| 7181 test "$with_sound" = both && echo " Compiling in both network and native sound support." | 9324 native ) echo " Compiling in native sound support." ;; |
| 7182 test "$old_nas" = true && echo " nas library lacks error trapping, will play synchronously" | 9325 both ) echo " Compiling in both network and native sound support." ;; |
| 9326 esac | |
| 9327 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously" | |
| 7183 | 9328 |
| 7184 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB." | 9329 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB." |
| 7185 test "$with_database_dbm" = yes && echo " Compiling in support for DBM." | 9330 test "$with_database_dbm" = yes && echo " Compiling in support for DBM." |
| 7186 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM." | 9331 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM." |
| 7187 | 9332 |
| 7188 test "$have_ncurses" = yes && echo " Compiling in support for ncurses." | 9333 test "$with_ncurses" = yes && echo " Compiling in support for ncurses." |
| 7189 test "$with_socks" = yes && echo " Compiling in support for SOCKS." | 9334 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)." |
| 7190 | 9335 |
| 7191 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support." | 9336 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support." |
| 7192 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support." | 9337 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support." |
| 7193 test "$with_xim" = motif && echo " Using Motif to provide XIM support." | 9338 test "$with_xim" = motif && echo " Using Motif to provide XIM support." |
| 7194 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support." | 9339 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support." |
| 7195 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule." | 9340 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule." |
| 7196 if test "$with_wnn" = yes; then | 9341 if test "$with_wnn" = yes; then |
| 7197 echo " Compiling in support for the WNN input method on Mule." | 9342 echo " Compiling in support for the WNN input method on Mule." |
| 7198 test "$with_wnn6" = yes && echo " WNN support for version 6." | 9343 test "$with_wnn6" = yes && echo " WNN support for version 6." |
| 7199 echo " Finding WNN includes with: ${wnn_includes}" | |
| 7200 echo " Finding WNN libs with: ${wnn_libraries}" | |
| 7201 fi | 9344 fi |
| 7202 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)." | 9345 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)." |
| 7203 | 9346 |
| 7204 test "$with_cde" = yes && echo " Compiling in support for CDE." | 9347 test "$with_cde" = yes && echo " Compiling in support for CDE." |
| 7205 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." | 9348 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." |
| 7206 test "$with_offix" = yes && echo " Compiling in support for OffiX." | 9349 test "$with_offix" = yes && echo " Compiling in support for OffiX." |
| 7207 test "$with_mocklisp" = yes && echo " Compiling in support for Mocklisp." | 9350 test "$with_mocklisp" = yes && echo " Compiling in support for Mocklisp." |
| 7208 test "$with_sparcworks" = yes && echo " Compiling in support for SparcWorks." | 9351 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." |
| 7209 test "$with_energize" = yes && echo " Compiling in support for Lucid Energize (doesn't currently work)." | 9352 test "$with_energize" = yes && echo " Compiling in support for Lucid Energize (doesn't currently work)." |
| 7210 test "$with_menubars" = "lucid" && echo " Using the Lucid menubar." | 9353 case "$with_menubars" in |
| 7211 if test "$with_menubars" = "motif"; then | 9354 lucid ) echo " Using the Lucid menubar." ;; |
| 7212 echo " Using the Motif menubar." | 9355 motif ) echo " Using the Motif menubar." |
| 7213 echo " *WARNING* The Motif menubar is currently buggy. We recommend" | 9356 echo " *WARNING* The Motif menubar is currently buggy." |
| 7214 echo " that you use the Lucid menubar instead. Re-run" | 9357 echo " We recommend using the Lucid menubar instead." |
| 7215 echo " configure with --with-menubars='lucid'." | 9358 echo " Re-run configure with --with-menubars='lucid'." ;; |
| 7216 fi | 9359 esac |
| 7217 test "$with_scrollbars" = lucid && echo " Using the Lucid scrollbar." | 9360 case "$with_scrollbars" in |
| 7218 test "$with_scrollbars" = motif && echo " Using the Motif scrollbar." | 9361 lucid ) echo " Using the Lucid scrollbar." ;; |
| 7219 test "$with_scrollbars" = athena && echo " Using the Athena scrollbar." | 9362 motif ) echo " Using the Motif scrollbar." ;; |
| 7220 test "$with_scrollbars" = athena3d && echo " Using the Athena-3d scrollbar." | 9363 athena ) echo " Using the Athena scrollbar." ;; |
| 7221 test "$with_dialogs" = motif && echo " Using the Motif dialog boxes." | 9364 athena3d ) echo " Using the Athena-3d scrollbar." ;; |
| 7222 test "$with_dialogs" = athena && echo " Using the Athena dialog boxes." | 9365 esac |
| 7223 test "$with_dialogs" = athena3d && echo " Using the Athena-3d dialog boxes." | 9366 case "$with_dialogs" in |
| 9367 motif ) echo " Using the Motif dialog boxes." ;; | |
| 9368 athena ) echo " Using the Athena dialog boxes." ;; | |
| 9369 athena3d ) echo " Using the Athena-3d dialog boxes." ;; | |
| 9370 esac | |
| 7224 test "$with_pop" = yes && echo " Using POP for mail access" | 9371 test "$with_pop" = yes && echo " Using POP for mail access" |
| 7225 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication" | 9372 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication" |
| 7226 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host" | 9373 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host" |
| 7227 | 9374 |
| 7228 test "${use_union_type}" = yes && echo " Using the union type for Lisp_Objects." | 9375 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects." |
| 7229 test "${debug}" = yes && echo " Compiling in extra code for debugging." | 9376 test "$debug" = yes && echo " Compiling in extra code for debugging." |
| 7230 test "${memory_usage_stats}" = yes && echo " Compiling in code for checking XEmacs memory usage." | 9377 test "$memory_usage_stats" = yes && echo " Compiling in code for checking XEmacs memory usage." |
| 7231 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)." | 9378 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)." |
| 7232 echo "" | 9379 echo "" |
| 7233 ) | tee -a Installation | 9380 ) | tee -a Installation |
| 7234 echo 'The above configure report is appended to "Installation" file.' | 9381 echo 'The above configure report is appended to "Installation" file.' |
| 7235 echo "" | 9382 echo "" |
| 7236 | 9383 |
| 7237 | 9384 |
| 7238 | 9385 |
| 7239 # Remove any trailing slashes in these variables. | 9386 # Remove any trailing slashes in these variables. |
| 7240 test -n "${prefix}" && | 9387 test -n "$prefix" && |
| 7241 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | 9388 prefix=`echo "$prefix" | sed 's,\([^/]\)/*$,\1,'` |
| 7242 test -n "${exec_prefix}" && | 9389 test -n "$exec_prefix" && |
| 7243 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | 9390 exec_prefix=`echo "$exec_prefix" | sed 's,\([^/]\)/*$,\1,'` |
| 7244 | 9391 |
| 7245 | 9392 |
| 7246 # The preferred way to propogate these variables is regular @ substitutions. | 9393 trap '' 1 2 15 |
| 7247 if test -n "$prefix"; then | 9394 |
| 7248 ac_prsub="s%^prefix\\([ ]*\\)=\\([ ]*\\).*$%prefix\\1=\\2$prefix%" | 9395 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 7249 else | 9396 |
| 7250 prefix=/usr/local | 9397 test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 7251 fi | 9398 # Let make expand exec_prefix. |
| 7252 if test -n "$exec_prefix"; then | 9399 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 7253 ac_prsub="$ac_prsub | |
| 7254 s%^exec_prefix\\([ ]*\\)=\\([ ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%" | |
| 7255 else | |
| 7256 exec_prefix='${prefix}' # Let make expand it. | |
| 7257 fi | |
| 7258 | 9400 |
| 7259 # Any assignment to VPATH causes Sun make to only execute | 9401 # Any assignment to VPATH causes Sun make to only execute |
| 7260 # the first set of double-colon rules, so remove it if not needed. | 9402 # the first set of double-colon rules, so remove it if not needed. |
| 7261 # If there is a colon in the path, we need to keep it. | 9403 # If there is a colon in the path, we need to keep it. |
| 7262 if test "x$srcdir" = x.; then | 9404 if test "x$srcdir" = x.; then |
| 7263 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | 9405 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 7264 fi | 9406 fi |
| 7265 | 9407 |
| 7266 # Quote sed substitution magic chars in DEFS. | 9408 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 7267 cat >conftest.def <<EOF | 9409 |
| 7268 $DEFS | 9410 DEFS=-DHAVE_CONFIG_H |
| 7269 EOF | 9411 |
| 7270 ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g' | 9412 # Without the "./", some shells look in PATH for config.status. |
| 7271 DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def` | 9413 : ${CONFIG_STATUS=./config.status} |
| 7272 rm -f conftest.def | 9414 |
| 7273 # Substitute for predefined variables. | 9415 echo creating $CONFIG_STATUS |
| 7274 | 9416 rm -f $CONFIG_STATUS |
| 7275 trap 'rm -f config.status; exit 1' 1 2 15 | 9417 cat > $CONFIG_STATUS <<EOF |
| 7276 echo creating config.status | 9418 #! /bin/sh |
| 7277 rm -f config.status | |
| 7278 cat > config.status <<EOF | |
| 7279 #!/bin/sh | |
| 7280 # Generated automatically by configure. | 9419 # Generated automatically by configure. |
| 7281 # Run this file to recreate the current configuration. | 9420 # Run this file to recreate the current configuration. |
| 7282 # This directory was configured as follows, | 9421 # This directory was configured as follows, |
| 7283 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 9422 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 7284 # | 9423 # |
| 7285 # $0 $quoted_arguments | 9424 # $0 $ac_configure_args |
| 7286 | 9425 # |
| 7287 ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]" | 9426 # Compiler output produced by configure, useful for debugging |
| 9427 # configure, is in ./config.log if it exists. | |
| 9428 | |
| 9429 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
| 7288 for ac_option | 9430 for ac_option |
| 7289 do | 9431 do |
| 7290 case "\$ac_option" in | 9432 case "\$ac_option" in |
| 7291 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 9433 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 7292 echo running \${CONFIG_SHELL-/bin/sh} $0 $quoted_arguments --no-create | 9434 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 7293 exec \${CONFIG_SHELL-/bin/sh} $0 $quoted_arguments --no-create ;; | 9435 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 7294 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | 9436 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
| 7295 echo "config.status generated by autoconf version 1.11" | 9437 echo "$CONFIG_STATUS generated by autoconf version 2.12" |
| 7296 exit 0 ;; | 9438 exit 0 ;; |
| 7297 -help | --help | --hel | --he | --h) | 9439 -help | --help | --hel | --he | --h) |
| 7298 echo "\$ac_cs_usage"; exit 0 ;; | 9440 echo "\$ac_cs_usage"; exit 0 ;; |
| 7299 *) echo "\$ac_cs_usage"; exit 1 ;; | 9441 *) echo "\$ac_cs_usage"; exit 1 ;; |
| 7300 esac | 9442 esac |
| 7301 done | 9443 done |
| 7302 | 9444 |
| 7303 trap 'rm -fr $internal_makefile_list src/config.h conftest*; exit 1' 1 2 15 | |
| 7304 LN_S='$LN_S' | |
| 7305 CC='$CC' | |
| 7306 CPP='$CPP' | |
| 7307 RANLIB='$RANLIB' | |
| 7308 INSTALL='$INSTALL' | |
| 7309 INSTALL_PROGRAM='$INSTALL_PROGRAM' | |
| 7310 INSTALL_DATA='$INSTALL_DATA' | |
| 7311 YACC='$YACC' | |
| 7312 SET_MAKE='$SET_MAKE' | |
| 7313 ALLOCA='$ALLOCA' | |
| 7314 version='$version' | |
| 7315 configuration='$configuration' | |
| 7316 canonical='$canonical' | |
| 7317 srcdir='$srcdir' | |
| 7318 prefix='$prefix' | |
| 7319 exec_prefix='$exec_prefix' | |
| 7320 bindir='$bindir' | |
| 7321 datadir='$datadir' | |
| 7322 statedir='$statedir' | |
| 7323 libdir='$libdir' | |
| 7324 mandir='$mandir' | |
| 7325 infodir='$infodir' | |
| 7326 infodir_user_defined='$infodir_user_defined' | |
| 7327 lispdir='$lispdir' | |
| 7328 lispdir_user_defined='$lispdir_user_defined' | |
| 7329 sitelispdir='$sitelispdir' | |
| 7330 etcdir='$etcdir' | |
| 7331 etcdir_user_defined='$etcdir_user_defined' | |
| 7332 lockdir='$lockdir' | |
| 7333 lockdir_user_defined='$lockdir_user_defined' | |
| 7334 archlibdir='$archlibdir' | |
| 7335 archlibdir_user_defined='$archlibdir_user_defined' | |
| 7336 docdir='$docdir' | |
| 7337 bitmapdir='$bitmapdir' | |
| 7338 c_switch_system='$c_switch_system' | |
| 7339 c_switch_machine='$c_switch_machine' | |
| 7340 libsrc_libs='$libsrc_libs' | |
| 7341 LD_SWITCH_X_SITE='$LD_SWITCH_X_SITE' | |
| 7342 LD_SWITCH_X_SITE_AUX='$LD_SWITCH_X_SITE_AUX' | |
| 7343 C_SWITCH_X_SITE='$C_SWITCH_X_SITE' | |
| 7344 LD_SWITCH_SITE='$LD_SWITCH_SITE' | |
| 7345 C_SWITCH_SITE='$C_SWITCH_SITE' | |
| 7346 CFLAGS='$CFLAGS' | |
| 7347 native_sound_lib='$native_sound_lib' | |
| 7348 machfile='$machfile' | |
| 7349 opsysfile='$opsysfile' | |
| 7350 dynodump_arch='$dynodump_arch' | |
| 7351 internal_makefile_list='$internal_makefile_list' | |
| 7352 LIBS='$LIBS' | |
| 7353 top_srcdir='$top_srcdir' | |
| 7354 ac_prsub='$ac_prsub' | |
| 7355 ac_vpsub='$ac_vpsub' | |
| 7356 extrasub='$extrasub' | |
| 7357 EOF | |
| 7358 cat >> config.status <<\EOF | |
| 7359 | |
| 7360 ac_given_srcdir=$srcdir | 9445 ac_given_srcdir=$srcdir |
| 7361 | 9446 ac_given_INSTALL="$INSTALL" |
| 7362 CONFIG_FILES=${CONFIG_FILES-"$internal_makefile_list"} | 9447 |
| 7363 for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then | 9448 trap 'rm -fr `echo "$internal_makefile_list src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
| 7364 # Remove last slash and all that follows it. Not all systems have dirname. | 9449 EOF |
| 7365 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | 9450 cat >> $CONFIG_STATUS <<EOF |
| 7366 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | 9451 |
| 7367 # The file is in a subdirectory. | 9452 # Protect against being on the right side of a sed subst in config.status. |
| 7368 test ! -d "$ac_dir" && mkdir "$ac_dir" | 9453 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 7369 ac_dir_suffix="/$ac_dir" | 9454 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
| 7370 else | |
| 7371 ac_dir_suffix= | |
| 7372 fi | |
| 7373 | |
| 7374 # A "../" for each directory in $ac_dir_suffix. | |
| 7375 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
| 7376 case "$ac_given_srcdir" in | |
| 7377 .) srcdir=. | |
| 7378 if test -z "$ac_dir_suffix"; then top_srcdir=. | |
| 7379 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
| 7380 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
| 7381 *) # Relative path. | |
| 7382 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
| 7383 top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
| 7384 esac | |
| 7385 | |
| 7386 echo creating "$ac_file" | |
| 7387 rm -f "$ac_file" | |
| 7388 comment_str="Generated automatically from `echo $ac_file|sed 's|.*/||'`.in by configure." | |
| 7389 case "$ac_file" in | |
| 7390 *.c | *.h | *.C | *.cc | *.m ) echo "/* $comment_str */" > "$ac_file" ;; | |
| 7391 * ) echo "# $comment_str" > "$ac_file" ;; | |
| 7392 esac | |
| 7393 sed -e " | |
| 7394 $ac_prsub | |
| 7395 $ac_vpsub | 9455 $ac_vpsub |
| 7396 $extrasub | 9456 $extrasub |
| 9457 s%@CFLAGS@%$CFLAGS%g | |
| 9458 s%@CPPFLAGS@%$CPPFLAGS%g | |
| 9459 s%@CXXFLAGS@%$CXXFLAGS%g | |
| 9460 s%@DEFS@%$DEFS%g | |
| 9461 s%@LDFLAGS@%$LDFLAGS%g | |
| 9462 s%@LIBS@%$LIBS%g | |
| 9463 s%@exec_prefix@%$exec_prefix%g | |
| 9464 s%@prefix@%$prefix%g | |
| 9465 s%@program_transform_name@%$program_transform_name%g | |
| 9466 s%@bindir@%$bindir%g | |
| 9467 s%@sbindir@%$sbindir%g | |
| 9468 s%@libexecdir@%$libexecdir%g | |
| 9469 s%@datadir@%$datadir%g | |
| 9470 s%@sysconfdir@%$sysconfdir%g | |
| 9471 s%@sharedstatedir@%$sharedstatedir%g | |
| 9472 s%@localstatedir@%$localstatedir%g | |
| 9473 s%@libdir@%$libdir%g | |
| 9474 s%@includedir@%$includedir%g | |
| 9475 s%@oldincludedir@%$oldincludedir%g | |
| 9476 s%@infodir@%$infodir%g | |
| 9477 s%@mandir@%$mandir%g | |
| 7397 s%@LN_S@%$LN_S%g | 9478 s%@LN_S@%$LN_S%g |
| 7398 s%@CC@%$CC%g | 9479 s%@CC@%$CC%g |
| 7399 s%@CPP@%$CPP%g | 9480 s%@CPP@%$CPP%g |
| 7400 s%@RANLIB@%$RANLIB%g | 9481 s%@RANLIB@%$RANLIB%g |
| 7401 s%@INSTALL@%$INSTALL%g | |
| 7402 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | 9482 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 7403 s%@INSTALL_DATA@%$INSTALL_DATA%g | 9483 s%@INSTALL_DATA@%$INSTALL_DATA%g |
| 7404 s%@YACC@%$YACC%g | 9484 s%@YACC@%$YACC%g |
| 7405 s%@SET_MAKE@%$SET_MAKE%g | 9485 s%@SET_MAKE@%$SET_MAKE%g |
| 9486 s%@X_CFLAGS@%$X_CFLAGS%g | |
| 9487 s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
| 9488 s%@X_LIBS@%$X_LIBS%g | |
| 9489 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
| 7406 s%@ALLOCA@%$ALLOCA%g | 9490 s%@ALLOCA@%$ALLOCA%g |
| 9491 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g | |
| 9492 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g | |
| 7407 s%@version@%$version%g | 9493 s%@version@%$version%g |
| 7408 s%@configuration@%$configuration%g | 9494 s%@configuration@%$configuration%g |
| 7409 s%@canonical@%$canonical%g | 9495 s%@canonical@%$canonical%g |
| 7410 s%@srcdir@%$srcdir%g | 9496 s%@srcdir@%$srcdir%g |
| 7411 s%@prefix@%$prefix%g | |
| 7412 s%@exec_prefix@%$exec_prefix%g | |
| 7413 s%@bindir@%$bindir%g | |
| 7414 s%@datadir@%$datadir%g | |
| 7415 s%@statedir@%$statedir%g | 9497 s%@statedir@%$statedir%g |
| 7416 s%@libdir@%$libdir%g | |
| 7417 s%@mandir@%$mandir%g | |
| 7418 s%@infodir@%$infodir%g | |
| 7419 s%@infodir_user_defined@%$infodir_user_defined%g | 9498 s%@infodir_user_defined@%$infodir_user_defined%g |
| 7420 s%@lispdir@%$lispdir%g | 9499 s%@lispdir@%$lispdir%g |
| 7421 s%@lispdir_user_defined@%$lispdir_user_defined%g | 9500 s%@lispdir_user_defined@%$lispdir_user_defined%g |
| 7422 s%@sitelispdir@%$sitelispdir%g | 9501 s%@sitelispdir@%$sitelispdir%g |
| 7423 s%@etcdir@%$etcdir%g | 9502 s%@etcdir@%$etcdir%g |
| 7426 s%@lockdir_user_defined@%$lockdir_user_defined%g | 9505 s%@lockdir_user_defined@%$lockdir_user_defined%g |
| 7427 s%@archlibdir@%$archlibdir%g | 9506 s%@archlibdir@%$archlibdir%g |
| 7428 s%@archlibdir_user_defined@%$archlibdir_user_defined%g | 9507 s%@archlibdir_user_defined@%$archlibdir_user_defined%g |
| 7429 s%@docdir@%$docdir%g | 9508 s%@docdir@%$docdir%g |
| 7430 s%@bitmapdir@%$bitmapdir%g | 9509 s%@bitmapdir@%$bitmapdir%g |
| 7431 s%@c_switch_system@%$c_switch_system%g | 9510 s%@extra_objs@%$extra_objs%g |
| 7432 s%@c_switch_machine@%$c_switch_machine%g | |
| 7433 s%@libsrc_libs@%$libsrc_libs%g | |
| 7434 s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g | |
| 7435 s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g | |
| 7436 s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g | |
| 7437 s%@LD_SWITCH_SITE@%$LD_SWITCH_SITE%g | |
| 7438 s%@C_SWITCH_SITE@%$C_SWITCH_SITE%g | |
| 7439 s%@CFLAGS@%$CFLAGS%g | |
| 7440 s%@native_sound_lib@%$native_sound_lib%g | |
| 7441 s%@machfile@%$machfile%g | 9511 s%@machfile@%$machfile%g |
| 7442 s%@opsysfile@%$opsysfile%g | 9512 s%@opsysfile@%$opsysfile%g |
| 9513 s%@c_switch_general@%$c_switch_general%g | |
| 9514 s%@c_switch_window_system@%$c_switch_window_system%g | |
| 9515 s%@c_switch_all@%$c_switch_all%g | |
| 9516 s%@ld_switch_general@%$ld_switch_general%g | |
| 9517 s%@ld_switch_window_system@%$ld_switch_window_system%g | |
| 9518 s%@ld_switch_all@%$ld_switch_all%g | |
| 9519 s%@ld_libs_general@%$ld_libs_general%g | |
| 9520 s%@ld_libs_window_system@%$ld_libs_window_system%g | |
| 9521 s%@ld_libs_all@%$ld_libs_all%g | |
| 9522 s%@libsrc_libs@%$libsrc_libs%g | |
| 9523 s%@native_sound_lib@%$native_sound_lib%g | |
| 9524 s%@sound_cflags@%$sound_cflags%g | |
| 7443 s%@dynodump_arch@%$dynodump_arch%g | 9525 s%@dynodump_arch@%$dynodump_arch%g |
| 7444 s%@internal_makefile_list@%$internal_makefile_list%g | 9526 s%@internal_makefile_list@%$internal_makefile_list%g |
| 7445 s%@LIBS@%$LIBS%g | 9527 |
| 9528 CEOF | |
| 9529 EOF | |
| 9530 | |
| 9531 cat >> $CONFIG_STATUS <<\EOF | |
| 9532 | |
| 9533 # Split the substitutions into bite-sized pieces for seds with | |
| 9534 # small command number limits, like on Digital OSF/1 and HP-UX. | |
| 9535 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
| 9536 ac_file=1 # Number of current file. | |
| 9537 ac_beg=1 # First line for current file. | |
| 9538 ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
| 9539 ac_more_lines=: | |
| 9540 ac_sed_cmds="" | |
| 9541 while $ac_more_lines; do | |
| 9542 if test $ac_beg -gt 1; then | |
| 9543 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
| 9544 else | |
| 9545 sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
| 9546 fi | |
| 9547 if test ! -s conftest.s$ac_file; then | |
| 9548 ac_more_lines=false | |
| 9549 rm -f conftest.s$ac_file | |
| 9550 else | |
| 9551 if test -z "$ac_sed_cmds"; then | |
| 9552 ac_sed_cmds="sed -f conftest.s$ac_file" | |
| 9553 else | |
| 9554 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
| 9555 fi | |
| 9556 ac_file=`expr $ac_file + 1` | |
| 9557 ac_beg=$ac_end | |
| 9558 ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
| 9559 fi | |
| 9560 done | |
| 9561 if test -z "$ac_sed_cmds"; then | |
| 9562 ac_sed_cmds=cat | |
| 9563 fi | |
| 9564 EOF | |
| 9565 | |
| 9566 cat >> $CONFIG_STATUS <<EOF | |
| 9567 | |
| 9568 CONFIG_FILES=\${CONFIG_FILES-"$internal_makefile_list"} | |
| 9569 EOF | |
| 9570 cat >> $CONFIG_STATUS <<\EOF | |
| 9571 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
| 9572 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
| 9573 case "$ac_file" in | |
| 9574 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
| 9575 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
| 9576 *) ac_file_in="${ac_file}.in" ;; | |
| 9577 esac | |
| 9578 | |
| 9579 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
| 9580 | |
| 9581 # Remove last slash and all that follows it. Not all systems have dirname. | |
| 9582 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
| 9583 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
| 9584 # The file is in a subdirectory. | |
| 9585 test ! -d "$ac_dir" && mkdir "$ac_dir" | |
| 9586 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
| 9587 # A "../" for each directory in $ac_dir_suffix. | |
| 9588 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
| 9589 else | |
| 9590 ac_dir_suffix= ac_dots= | |
| 9591 fi | |
| 9592 | |
| 9593 case "$ac_given_srcdir" in | |
| 9594 .) srcdir=. | |
| 9595 if test -z "$ac_dots"; then top_srcdir=. | |
| 9596 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
| 9597 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
| 9598 *) # Relative path. | |
| 9599 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
| 9600 top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
| 9601 esac | |
| 9602 | |
| 9603 case "$ac_given_INSTALL" in | |
| 9604 [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
| 9605 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
| 9606 esac | |
| 9607 | |
| 9608 echo creating "$ac_file" | |
| 9609 rm -f "$ac_file" | |
| 9610 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
| 9611 case "$ac_file" in | |
| 9612 *Makefile*) ac_comsub="1i\\ | |
| 9613 # $configure_input" ;; | |
| 9614 *) ac_comsub= ;; | |
| 9615 esac | |
| 9616 | |
| 9617 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
| 9618 sed -e "$ac_comsub | |
| 9619 s%@configure_input@%$configure_input%g | |
| 9620 s%@srcdir@%$srcdir%g | |
| 7446 s%@top_srcdir@%$top_srcdir%g | 9621 s%@top_srcdir@%$top_srcdir%g |
| 7447 s%@DEFS@%-DHAVE_CONFIG_H%" $ac_given_srcdir/${ac_file}.in >> $ac_file | 9622 s%@INSTALL@%$INSTALL%g |
| 9623 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
| 7448 fi; done | 9624 fi; done |
| 7449 | 9625 rm -f conftest.s* |
| 7450 # These sed commands are put into ac_sed_defs when defining a macro. | 9626 |
| 7451 # They are broken into pieces to make the sed script easier to manage. | 9627 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 7452 # They are passed to sed as "A NAME B NAME C VALUE D", where NAME | 9628 # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 7453 # is the cpp macro being defined and VALUE is the value it is being given. | |
| 7454 # Each defining turns into a single global substitution command. | |
| 7455 # Hopefully no one uses "!" as a variable value. | |
| 7456 # Other candidates for the sed separators, like , and @, do get used. | |
| 7457 # | 9629 # |
| 7458 # ac_d sets the value in "#define NAME VALUE" lines. | 9630 # ac_d sets the value in "#define NAME VALUE" lines. |
| 7459 ac_dA='s!^\([ ]*\)#\([ ]*define[ ][ ]*\)' | 9631 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 7460 ac_dB='\([ ][ ]*\)[^ ]*!\1#\2' | 9632 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
| 7461 ac_dC='\3' | 9633 ac_dC='\3' |
| 7462 ac_dD='!g' | 9634 ac_dD='%g' |
| 7463 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | 9635 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
| 7464 ac_uA='s!^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | 9636 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 7465 ac_uB='\([ ]\)!\1#\2define\3' | 9637 ac_uB='\([ ]\)%\1#\2define\3' |
| 7466 ac_uC=' ' | 9638 ac_uC=' ' |
| 7467 ac_uD='\4!g' | 9639 ac_uD='\4%g' |
| 7468 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | 9640 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 7469 ac_eA='s!^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | 9641 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 7470 ac_eB='$!\1#\2define\3' | 9642 ac_eB='$%\1#\2define\3' |
| 7471 ac_eC=' ' | 9643 ac_eC=' ' |
| 7472 ac_eD='!g' | 9644 ac_eD='%g' |
| 7473 rm -f conftest.sed | 9645 |
| 7474 EOF | 9646 if test "${CONFIG_HEADERS+set}" != set; then |
| 7475 # Turn off quoting long enough to insert the sed commands. | 9647 EOF |
| 7476 rm -f conftest.sh | 9648 cat >> $CONFIG_STATUS <<EOF |
| 7477 cat > conftest.sh <<EOF | 9649 CONFIG_HEADERS="src/config.h lwlib/config.h" |
| 7478 $ac_sed_defs | 9650 EOF |
| 7479 EOF | 9651 cat >> $CONFIG_STATUS <<\EOF |
| 7480 | 9652 fi |
| 7481 # Break up $ac_sed_defs (now in conftest.sh) because some shells have a limit | 9653 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
| 7482 # on the size of here documents. | 9654 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 7483 | 9655 case "$ac_file" in |
| 7484 # Maximum number of lines to put in a single here document. | 9656 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 7485 ac_max_sh_lines=9 | 9657 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 7486 | 9658 *) ac_file_in="${ac_file}.in" ;; |
| 9659 esac | |
| 9660 | |
| 9661 echo creating $ac_file | |
| 9662 | |
| 9663 rm -f conftest.frag conftest.in conftest.out | |
| 9664 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
| 9665 cat $ac_file_inputs > conftest.in | |
| 9666 | |
| 9667 EOF | |
| 9668 | |
| 9669 # Transform confdefs.h into a sed script conftest.vals that substitutes | |
| 9670 # the proper values into config.h.in to produce config.h. And first: | |
| 9671 # Protect against being on the right side of a sed subst in config.status. | |
| 9672 # Protect against being in an unquoted here document in config.status. | |
| 9673 rm -f conftest.vals | |
| 9674 cat > conftest.hdr <<\EOF | |
| 9675 s/[\\&%]/\\&/g | |
| 9676 s%[\\$`]%\\&%g | |
| 9677 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
| 9678 s%ac_d%ac_u%gp | |
| 9679 s%ac_u%ac_e%gp | |
| 9680 EOF | |
| 9681 sed -n -f conftest.hdr confdefs.h > conftest.vals | |
| 9682 rm -f conftest.hdr | |
| 9683 | |
| 9684 # This sed command replaces #undef with comments. This is necessary, for | |
| 9685 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
| 9686 # on some systems where configure will not decide to define it. | |
| 9687 cat >> conftest.vals <<\EOF | |
| 9688 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
| 9689 EOF | |
| 9690 | |
| 9691 # Break up conftest.vals because some shells have a limit on | |
| 9692 # the size of here documents, and old seds have small limits too. | |
| 9693 | |
| 9694 rm -f conftest.tail | |
| 7487 while : | 9695 while : |
| 7488 do | 9696 do |
| 7489 # wc gives bogus results for an empty file on some AIX systems. | 9697 ac_lines=`grep -c . conftest.vals` |
| 7490 ac_lines=`grep -c . conftest.sh` | 9698 # grep -c gives empty output for an empty file on some AIX systems. |
| 7491 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | 9699 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 7492 rm -f conftest.s1 conftest.s2 | 9700 # Write a limited-size here document to conftest.frag. |
| 7493 sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -9. | 9701 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 7494 sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +10. | 9702 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 7495 # Write a limited-size here document to append to conftest.sed. | 9703 echo 'CEOF |
| 7496 echo 'cat >> conftest.sed <<CONFEOF' >> config.status | 9704 sed -f conftest.frag conftest.in > conftest.out |
| 7497 cat conftest.s1 >> config.status | 9705 rm -f conftest.in |
| 7498 echo 'CONFEOF' >> config.status | 9706 mv conftest.out conftest.in |
| 7499 rm -f conftest.s1 conftest.sh | 9707 ' >> $CONFIG_STATUS |
| 7500 mv conftest.s2 conftest.sh | 9708 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 9709 rm -f conftest.vals | |
| 9710 mv conftest.tail conftest.vals | |
| 7501 done | 9711 done |
| 7502 rm -f conftest.sh | 9712 rm -f conftest.vals |
| 7503 | 9713 |
| 7504 # Now back to your regularly scheduled config.status. | 9714 cat >> $CONFIG_STATUS <<\EOF |
| 7505 cat >> config.status <<\EOF | 9715 rm -f conftest.frag conftest.h |
| 7506 # This sed command replaces #undef's with comments. This is necessary, for | |
| 7507 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
| 7508 # on some systems where configure will not decide to define it in | |
| 7509 # src/config.h. | |
| 7510 cat >> conftest.sed <<\CONFEOF | |
| 7511 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
| 7512 CONFEOF | |
| 7513 rm -f conftest.h | |
| 7514 # Break up the sed commands because old seds have small limits. | |
| 7515 ac_max_sed_lines=20 | |
| 7516 | |
| 7517 CONFIG_HEADERS=${CONFIG_HEADERS-"src/config.h"} | |
| 7518 for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then | |
| 7519 echo creating $ac_file | |
| 7520 | |
| 7521 cp $ac_given_srcdir/$ac_file.in conftest.h1 | |
| 7522 cp conftest.sed conftest.stm | |
| 7523 while : | |
| 7524 do | |
| 7525 ac_lines=`grep -c . conftest.stm` | |
| 7526 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
| 7527 rm -f conftest.s1 conftest.s2 conftest.h2 | |
| 7528 sed ${ac_max_sed_lines}q conftest.stm > conftest.s1 # Like head -20. | |
| 7529 sed 1,${ac_max_sed_lines}d conftest.stm > conftest.s2 # Like tail +21. | |
| 7530 sed -f conftest.s1 < conftest.h1 > conftest.h2 | |
| 7531 rm -f conftest.s1 conftest.h1 conftest.stm | |
| 7532 mv conftest.h2 conftest.h1 | |
| 7533 mv conftest.s2 conftest.stm | |
| 7534 done | |
| 7535 rm -f conftest.stm conftest.h | |
| 7536 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | 9716 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
| 7537 cat conftest.h1 >> conftest.h | 9717 cat conftest.in >> conftest.h |
| 7538 rm -f conftest.h1 | 9718 rm -f conftest.in |
| 7539 if cmp -s $ac_file conftest.h 2>/dev/null; then | 9719 if cmp -s $ac_file conftest.h 2>/dev/null; then |
| 7540 # The file exists and we would not be changing it. | |
| 7541 echo "$ac_file is unchanged" | 9720 echo "$ac_file is unchanged" |
| 7542 rm -f conftest.h | 9721 rm -f conftest.h |
| 7543 else | 9722 else |
| 9723 # Remove last slash and all that follows it. Not all systems have dirname. | |
| 9724 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
| 9725 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
| 9726 # The file is in a subdirectory. | |
| 9727 test ! -d "$ac_dir" && mkdir "$ac_dir" | |
| 9728 fi | |
| 7544 rm -f $ac_file | 9729 rm -f $ac_file |
| 7545 mv conftest.h $ac_file | 9730 mv conftest.h $ac_file |
| 7546 fi | 9731 fi |
| 7547 fi; done | 9732 fi; done |
| 7548 rm -f conftest.sed | 9733 |
| 7549 | 9734 EOF |
| 7550 | 9735 cat >> $CONFIG_STATUS <<EOF |
| 9736 CPP="$CPP" | |
| 9737 CPPFLAGS="$CPPFLAGS" | |
| 9738 top_srcdir="$srcdir" | |
| 9739 MAKE_SUBDIR="$MAKE_SUBDIR" | |
| 9740 | |
| 9741 EOF | |
| 9742 cat >> $CONFIG_STATUS <<\EOF | |
| 9743 | |
| 9744 for dir in $MAKE_SUBDIR; do | |
| 9745 echo creating $dir/Makefile | |
| 9746 ( set -e | |
| 9747 cd $dir | |
| 9748 rm -f junk.c | |
| 9749 sed -e 's/^# Generated.*//' -e 's%/\*\*/#.*%%' < Makefile.in > junk.c; | |
| 9750 $CPP -I. -I${top_srcdir}/src $CPPFLAGS junk.c > junk.cpp; | |
| 9751 < junk.cpp \ | |
| 9752 sed -e 's/^#.*//' \ | |
| 9753 -e 's/^[ \f\t][ \f\t]*$//' \ | |
| 9754 -e 's/^ / /' \ | |
| 9755 | sed -n -e '/^..*$/p' \ | |
| 9756 > Makefile.new | |
| 9757 chmod 444 Makefile.new | |
| 9758 mv -f Makefile.new Makefile | |
| 9759 rm -f junk.c junk.cpp | |
| 9760 ) | |
| 9761 test "$?" != 0 && exit "$?" # For debugging | |
| 9762 done | |
| 7551 | 9763 |
| 7552 exit 0 | 9764 exit 0 |
| 7553 EOF | 9765 EOF |
| 7554 chmod +x config.status | 9766 chmod +x $CONFIG_STATUS |
| 7555 # Some shells look in PATH for config.status without the "./". | 9767 rm -fr confdefs* $ac_clean_files |
| 7556 test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status | 9768 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| 7557 | 9769 |
| 7558 # Build: | |
| 7559 # src/Makefile from ${srcdir}/src/Makefile.in | |
| 7560 # lwlib/Makefile from ${srcdir}/lwlib/Makefile.in | |
| 7561 # lib-src/Makefile from ${srcdir}/lib-src/Makefile.in | |
| 7562 # dynodump/Makefile from ${srcdir}/dynodump/Makefile.in | |
| 7563 # and possibly | |
| 7564 # lwlib/energize/Makefile from ${srcdir}/lwlib/energize/Makefile.in. | |
| 7565 # This must be done after src/config.h is built, since we rely on that | |
| 7566 # file. Only do the build if "config.status" is present, since its | |
| 7567 # non-presence indicates an error occured. | |
| 7568 status=$? | |
| 7569 if test ! -f ./config.status ; then | |
| 7570 exit $status | |
| 7571 fi | |
| 7572 topsrcdir=${srcdir} | |
| 7573 # We discard all lines in Makefile.in that start with `# Generated' or /**/# | |
| 7574 # because some cpps get confused by them. | |
| 7575 # Really we should preserve them somehow into Makefile, | |
| 7576 # but that is beyond my level of shell programming. | |
| 7577 makefile_command='echo "creating src/Makefile"; | |
| 7578 topsrcdir='"${topsrcdir}"'; | |
| 7579 ( cd ./src; | |
| 7580 rm -f junk.c; | |
| 7581 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c; | |
| 7582 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; | |
| 7583 < junk.cpp '\ | |
| 7584 ' sed -e '\''s/^#.*//'\'' '\ | |
| 7585 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\ | |
| 7586 ' -e '\''s/^ / /'\'' '\ | |
| 7587 ' | sed -n -e '\''/^..*$/p'\'' '\ | |
| 7588 ' > Makefile.new; | |
| 7589 chmod 444 Makefile.new; | |
| 7590 mv -f Makefile.new Makefile; | |
| 7591 rm -f junk.c junk.cpp; | |
| 7592 )' | |
| 7593 eval `echo $makefile_command` | |
| 7594 lwlib_makefile_command='echo "creating lwlib/Makefile"; | |
| 7595 topsrcdir='"${topsrcdir}"'; | |
| 7596 ( cd ./lwlib; | |
| 7597 rm -f junk.c; | |
| 7598 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c; | |
| 7599 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; | |
| 7600 < junk.cpp '\ | |
| 7601 ' sed -e '\''s/^#.*//'\'' '\ | |
| 7602 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\ | |
| 7603 ' -e '\''s/^ / /'\'' '\ | |
| 7604 ' | sed -n -e '\''/^..*$/p'\'' '\ | |
| 7605 ' > Makefile.new; | |
| 7606 chmod 444 Makefile.new; | |
| 7607 mv -f Makefile.new Makefile; | |
| 7608 rm -f junk.c junk.cpp; | |
| 7609 )' | |
| 7610 eval `echo $lwlib_makefile_command` | |
| 7611 lib_src_makefile_command='echo "creating lib-src/Makefile"; | |
| 7612 topsrcdir='"${topsrcdir}"'; | |
| 7613 ( cd ./lib-src; | |
| 7614 rm -f junk.c; | |
| 7615 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c; | |
| 7616 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; | |
| 7617 < junk.cpp '\ | |
| 7618 ' sed -e '\''s/^#.*//'\'' '\ | |
| 7619 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\ | |
| 7620 ' -e '\''s/^ / /'\'' '\ | |
| 7621 ' | sed -n -e '\''/^..*$/p'\'' '\ | |
| 7622 ' > Makefile.new; | |
| 7623 chmod 444 Makefile.new; | |
| 7624 mv -f Makefile.new Makefile; | |
| 7625 rm -f junk.c junk.cpp; | |
| 7626 )' | |
| 7627 eval `echo $lib_src_makefile_command` | |
| 7628 | |
| 7629 # Mule utilitity programs - currently disabled | |
| 7630 if test "${with_mule_util}" = "yes"; then | |
| 7631 lib_src_mule_makefile_command='echo "creating lib-src/mule/Makefile"; | |
| 7632 topsrcdir='"${topsrcdir}"'; | |
| 7633 ( cd ./lib-src/mule; | |
| 7634 rm -f junk.c; | |
| 7635 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c; | |
| 7636 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; | |
| 7637 < junk.cpp '\ | |
| 7638 ' sed -e '\''s/^#.*//'\'' '\ | |
| 7639 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\ | |
| 7640 ' -e '\''s/^ / /'\'' '\ | |
| 7641 ' | sed -n -e '\''/^..*$/p'\'' '\ | |
| 7642 ' > Makefile.new; | |
| 7643 chmod 444 Makefile.new; | |
| 7644 mv -f Makefile.new Makefile; | |
| 7645 rm -f junk.c junk.cpp; | |
| 7646 )' | |
| 7647 eval `echo $lib_src_mule_makefile_command` | |
| 7648 fi # Mule | |
| 7649 | |
| 7650 dynodump_makefile_command='echo "creating dynodump/Makefile"; | |
| 7651 topsrcdir='"${topsrcdir}"'; | |
| 7652 ( cd ./dynodump; | |
| 7653 rm -f junk.c; | |
| 7654 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c; | |
| 7655 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; | |
| 7656 < junk.cpp '\ | |
| 7657 ' sed -e '\''s/^#.*//'\'' '\ | |
| 7658 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\ | |
| 7659 ' -e '\''s/^ / /'\'' '\ | |
| 7660 ' | sed -n -e '\''/^..*$/p'\'' '\ | |
| 7661 ' > Makefile.new; | |
| 7662 chmod 444 Makefile.new; | |
| 7663 mv -f Makefile.new Makefile; | |
| 7664 rm -f junk.c junk.cpp; | |
| 7665 )' | |
| 7666 eval `echo $dynodump_makefile_command` | |
| 7667 if test "${with_energize}" = "yes" ; then | |
| 7668 energize_makefile_command='echo "creating lwlib/energize/Makefile"; | |
| 7669 topsrcdir='"${topsrcdir}"'; | |
| 7670 ( cd ./lwlib/energize; | |
| 7671 rm -f junk.c; | |
| 7672 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c; | |
| 7673 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; | |
| 7674 < junk.cpp '\ | |
| 7675 ' sed -e '\''s/^#.*//'\'' '\ | |
| 7676 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\ | |
| 7677 ' -e '\''s/^ / /'\'' '\ | |
| 7678 ' | sed -n -e '\''/^..*$/p'\'' '\ | |
| 7679 ' > Makefile.new; | |
| 7680 chmod 444 Makefile.new; | |
| 7681 mv -f Makefile.new Makefile; | |
| 7682 rm -f junk.c junk.cpp; | |
| 7683 )' | |
| 7684 eval `echo $energize_makefile_command` | |
| 7685 fi | |
| 7686 # AC-OUTPUT has created `config.status' already. We need to add the | |
| 7687 # above commands to re-create `src/Makefile', `lwlib/Makefile', | |
| 7688 # `lib-src/Makefile', `dynodump/Makefile', and possibly | |
| 7689 # `lwlib/energize/Makefile', and we need to insert them before the final | |
| 7690 # "exit 0" which appears at the end of `config.status'. | |
| 7691 <config.status sed -e 's/^exit 0$//' >config.new | |
| 7692 echo $makefile_command >>config.new | |
| 7693 echo $lwlib_makefile_command >>config.new | |
| 7694 echo $lib_src_makefile_command >>config.new | |
| 7695 if test "${with_mule_util}" = "yes"; then | |
| 7696 echo $lib_src_mule_makefile_command >>config.new | |
| 7697 fi | |
| 7698 echo $dynodump_makefile_command >>config.new | |
| 7699 echo $man_makefile_command >>config.new | |
| 7700 if test "${with_energize}" = "yes" ; then | |
| 7701 echo $energize_makefile_command >>config.new | |
| 7702 fi | |
| 7703 echo exit 0 >>config.new | |
| 7704 mv -f config.new config.status | |
| 7705 chmod +x config.status | |
| 7706 # Don't let the fact that we just rewrote config.status make Makefile think | |
| 7707 # that it is now newer. We have just rewritten all of the Makefiles as well. | |
| 7708 MFS="Makefile \ | |
| 7709 src/Makefile src/Makefile.in \ | |
| 7710 lib-src/Makefile lib-src/Makefile.in \ | |
| 7711 dynodump/Makefile dynodump/Makefile.in \ | |
| 7712 lwlib/Makefile lwlib/Makefile.in" | |
| 7713 chmod a+w $MFS | |
| 7714 touch $MFS | |
| 7715 chmod 444 $MFS | |
| 7716 | 9770 |
| 7717 if test ! -f src/gdbinit && test -f $topsrcdir/src/gdbinit; then | 9771 if test ! -f src/gdbinit && test -f $topsrcdir/src/gdbinit; then |
| 7718 echo creating src/gdbinit | 9772 echo "creating src/gdbinit" |
| 7719 echo source $topsrcdir/src/gdbinit > src/gdbinit | 9773 echo "source $topsrcdir/src/gdbinit" > src/gdbinit |
| 7720 fi | 9774 fi |
| 7721 | 9775 |
| 7722 exit 0 | 9776 if test "$sunpro_c" = "yes"; then cat < EOF > .sbinit |
| 7723 | 9777 # For use with Sun WorkShop's Source browser. |
| 7724 | 9778 # See sbquery(1) and sbinit(4) for more information |
| 7725 # Local Variables: | 9779 import src |
| 7726 # eval: (modify-syntax-entry ?\" "\"") | 9780 import lwlib |
| 7727 # End: | 9781 import lib-src |
| 9782 import dynodump | |
| 9783 EOF | |
| 9784 fi |
