149
+ − 1 #! /bin/sh
+ − 2
+ − 3 #### Configuration script for XEmacs. Largely divergent from FSF.
+ − 4 #### Guess values for system-dependent variables and create Makefiles.
420
+ − 5 #### Generated automatically using autoconf version 2.13
460
+ − 6 #### Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
0
+ − 7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
149
+ − 8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
1332
+ − 9 #### Copyright (C) 1995, 1996, 2002, 2003 Ben Wing.
460
+ − 10 #### Copyright (C) 2000, 2001 Martin Buchholz.
388
+ − 11 #### Copyright (C) 1998, 1999 J. Kean Johnston.
0
+ − 12
+ − 13 ### Don't edit this script!
+ − 14 ### This script was automatically generated by the `autoconf' program
+ − 15 ### from the file `./configure.in'.
+ − 16 ### To rebuild it, execute the command
+ − 17 ### autoconf
442
+ − 18 ### in the this directory. You must have autoconf version 2.13 or later.
724
+ − 19 ### Note: this script has not yet been ported to autoconf version 2.5x.
0
+ − 20
+ − 21 ### This file is part of XEmacs.
+ − 22
+ − 23 ### XEmacs is free software; you can redistribute it and/or modify it
+ − 24 ### under the terms of the GNU General Public License as published by
+ − 25 ### the Free Software Foundation; either version 2, or (at your
+ − 26 ### option) any later version.
+ − 27
+ − 28 ### XEmacs is distributed in the hope that it will be useful, but
+ − 29 ### WITHOUT ANY WARRANTY; without even the implied warranty of
+ − 30 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ − 31 ### General Public License for more details.
+ − 32
+ − 33 ### You should have received a copy of the GNU General Public License
+ − 34 ### along with XEmacs; see the file COPYING. If not, write to the Free
+ − 35 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ − 36 ### 02111-1307, USA.
+ − 37
149
+ − 38 ### For usage, run `./configure --help'
+ − 39 ### For more detailed information on building and installing XEmacs,
+ − 40 ### read the file `INSTALL'.
0
+ − 41 ###
+ − 42 ### If configure succeeds, it leaves its status in config.status.
149
+ − 43 ### A log of configuration tests can be found in config.log.
0
+ − 44 ### If configure fails after disturbing the status quo,
+ − 45 ### config.status is removed.
+ − 46
149
+ − 47 ac_help="$ac_help
+ − 48 --with-x use the X Window System"
+ − 49
284
+ − 50
+ − 51
+ − 52 if test -n "$ZSH_VERSION"; then
+ − 53 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
+ − 54 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
+ − 55 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
+ − 56 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
+ − 57 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
+ − 58 elif test -n "$BASH_VERSION"; then
+ − 59 set -o posix
+ − 60 unset CDPATH
+ − 61 else
+ − 62 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
+ − 63 fi
+ − 64
1259
+ − 65 for xe_parse_arg in ""; do
+ − 66 case $xe_parse_arg in
+ − 67 --srcdir) (echo "$progname: Usage error:"
+ − 68 echo " " "The \`--srcdir' option requires a boolean value: \`yes' or \`no'."
+ − 69 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
+ − 70 --srcdir=*) srcdir=`echo $xe_parse_arg | sed -e 's/--srcdir=//'` ;;
+ − 71 *) ;;
+ − 72 esac
+ − 73 done
+ − 74
149
+ − 75 exec_prefix=NONE
+ − 76 host=NONE
+ − 77 no_create=
+ − 78 nonopt=NONE
+ − 79 no_recursion=
+ − 80 prefix=NONE
+ − 81 program_prefix=NONE
+ − 82 program_suffix=NONE
+ − 83 program_transform_name=s,x,x,
+ − 84 silent=
+ − 85 site=
+ − 86 target=NONE
+ − 87 verbose=
+ − 88 x_includes=NONE
+ − 89 x_libraries=NONE
153
+ − 90
149
+ − 91 subdirs=
+ − 92 MFLAGS= MAKEFLAGS=
442
+ − 93 SHELL=${CONFIG_SHELL-/bin/sh}
149
+ − 94 ac_max_here_lines=12
+ − 95
+ − 96 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
+ − 97
+ − 98 # File descriptor usage:
+ − 99 # 0 standard input
+ − 100 # 1 file creation
+ − 101 # 2 errors and warnings
+ − 102 # 3 some systems may open it to /dev/tty
+ − 103 # 4 used on the Kubota Titan
+ − 104 # 6 checking for... messages and results
+ − 105 # 5 compiler messages saved in config.log
+ − 106 if test "$silent" = yes; then
+ − 107 exec 6>/dev/null
+ − 108 else
+ − 109 exec 6>&1
+ − 110 fi
+ − 111 exec 5>./config.log
+ − 112
+ − 113 echo "\
+ − 114 This file contains any messages produced by compilers while
+ − 115 running configure, to aid debugging if configure makes a mistake.
+ − 116 " 1>&5
+ − 117
+ − 118 # Strip out --no-create and --no-recursion so they do not pile up.
+ − 119 # Also quote any args containing shell metacharacters.
+ − 120 ac_configure_args=
+ − 121 for ac_arg
+ − 122 do
+ − 123 case "$ac_arg" in
+ − 124 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+ − 125 | --no-cr | --no-c) ;;
+ − 126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+ − 127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
+ − 128 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
+ − 129 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
+ − 130 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
+ − 131 esac
+ − 132 done
+ − 133
+ − 134 # NLS nuisances.
+ − 135 # Only set these to C if already set. These must not be set unconditionally
+ − 136 # because not all systems understand e.g. LANG=C (notably SCO).
+ − 137 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
+ − 138 # Non-C LC_CTYPE values break the ctype check.
+ − 139 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
+ − 140 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
+ − 141 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
+ − 142 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
+ − 143
+ − 144 # confdefs.h avoids OS command line length limits that DEFS can exceed.
+ − 145 rm -rf conftest* confdefs.h
+ − 146 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
+ − 147 echo > confdefs.h
+ − 148
+ − 149 # A filename unique to this package, relative to the directory that
+ − 150 # configure is in, which we can look for to find out if srcdir is correct.
+ − 151 ac_unique_file=src/lisp.h
+ − 152
+ − 153 # Find the source files, if location was not specified.
+ − 154 if test -z "$srcdir"; then
+ − 155 ac_srcdir_defaulted=yes
+ − 156 # Try the directory containing this script, then its parent.
+ − 157 ac_prog=$0
+ − 158 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
+ − 159 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
+ − 160 srcdir=$ac_confdir
+ − 161 if test ! -r $srcdir/$ac_unique_file; then
+ − 162 srcdir=..
+ − 163 fi
+ − 164 else
+ − 165 ac_srcdir_defaulted=no
+ − 166 fi
+ − 167 if test ! -r $srcdir/$ac_unique_file; then
+ − 168 if test "$ac_srcdir_defaulted" = yes; then
+ − 169 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
+ − 170 else
+ − 171 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
+ − 172 fi
+ − 173 fi
+ − 174 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
+ − 175
+ − 176 # Prefer explicitly selected file to automatically selected ones.
+ − 177 if test -z "$CONFIG_SITE"; then
+ − 178 if test "x$prefix" != xNONE; then
+ − 179 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
+ − 180 else
+ − 181 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
+ − 182 fi
+ − 183 fi
+ − 184 for ac_site_file in $CONFIG_SITE; do
+ − 185 if test -r "$ac_site_file"; then
+ − 186 echo "loading site script $ac_site_file"
+ − 187 . "$ac_site_file"
+ − 188 fi
+ − 189 done
+ − 190
+ − 191
+ − 192 ac_ext=c
151
+ − 193 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
+ − 194 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
+ − 195 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
149
+ − 196 ac_cpp='$CPP '"$xe_cppflags"
151
+ − 197 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
+ − 198 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
149
+ − 199 cross_compiling=no
+ − 200
420
+ − 201 ac_exeext=
+ − 202 ac_objext=o
149
+ − 203 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
+ − 204 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
+ − 205 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
+ − 206 ac_n= ac_c='
+ − 207 ' ac_t=' '
+ − 208 else
+ − 209 ac_n=-n ac_c= ac_t=
+ − 210 fi
+ − 211 else
+ − 212 ac_n= ac_c='\c' ac_t=
+ − 213 fi
+ − 214
+ − 215
0
+ − 216 progname="`echo $0 | sed 's:^\./\./:\./:'`"
+ − 217
149
+ − 218
151
+ − 219 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
167
+ − 220 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
149
+ − 221
0
+ − 222 prefix='/usr/local'
+ − 223 exec_prefix='${prefix}'
+ − 224 bindir='${exec_prefix}/bin'
+ − 225 datadir='${prefix}/lib'
+ − 226 statedir='${prefix}/lib'
+ − 227 libdir='${exec_prefix}/lib'
+ − 228 mandir='${prefix}/man/man1'
422
+ − 229 inststaticdir='${PROGNAME}'
+ − 230 instvardir='${PROGNAME}-${version}'
+ − 231 infodir='${datadir}/${instvardir}/info'
274
+ − 232 infopath=''
276
+ − 233 install_pp=''
422
+ − 234 lispdir='${datadir}/${instvardir}/lisp'
670
+ − 235 moduledir='${libdir}/${instvardir}/${configuration}/modules'
422
+ − 236 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
670
+ − 237 sitemoduledir='${libdir}/${inststaticdir}/site-modules'
274
+ − 238 package_path=''
422
+ − 239 etcdir='${datadir}/${instvardir}/etc'
670
+ − 240 archlibdir='${libdir}/${instvardir}/${configuration}'
420
+ − 241 docdir='${archlibdir}'
462
+ − 242 with_netinstall="no"
420
+ − 243 with_prefix='yes'
269
+ − 244 with_site_lisp='no'
388
+ − 245 with_site_modules='yes'
1111
+ − 246 need_modules_common=''
0
+ − 247 with_menubars=''
+ − 248 with_scrollbars=''
420
+ − 249 with_widgets=''
0
+ − 250 with_dialogs=''
272
+ − 251 cpp='' cppflags='' libs='' ldflags=''
452
+ − 252 extra_includes=''
0
+ − 253 dynamic=''
+ − 254 with_x11=''
263
+ − 255 with_msw=''
0
+ − 256 rel_alloc='default'
181
+ − 257 with_system_malloc='default'
261
+ − 258 with_dlmalloc='default'
0
+ − 259 native_sound_lib=''
462
+ − 260 with_gtk='no'
+ − 261 with_gnome='no'
153
+ − 262 use_assertions="yes"
+ − 263 with_toolbars=""
157
+ − 264 with_tty=""
153
+ − 265 use_union_type="no"
+ − 266 with_dnet=""
1161
+ − 267 pdump=""
771
+ − 268 with_dragndrop_default="no"
708
+ − 269 with_ipv6_cname="no"
0
+ − 270
149
+ − 271
0
+ − 272 arguments="$@"
+ − 273
120
+ − 274 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
0
+ − 275 quoted_arguments=
+ − 276 for i in "$@"; do
120
+ − 277 case "$i" in
+ − 278 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+ − 279 | --no-cr | --no-c) ;;
153
+ − 280 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+ − 281 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
120
+ − 282 *)
159
+ − 283 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
120
+ − 284 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
+ − 285 esac
0
+ − 286 done
+ − 287
70
+ − 288 while test $# != 0; do
0
+ − 289 arg="$1"; shift
149
+ − 290 case "$arg" in
157
+ − 291 --no-create|--no-recursion) ;;
1259
+ − 292 --srcdir=*) ;;
149
+ − 293 -* )
+ − 294 case "$arg" in
0
+ − 295 -*=*)
149
+ − 296 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
+ − 297 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
0
+ − 298 valomitted=no
+ − 299 ;;
149
+ − 300 -*)
+ − 301 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
243
+ − 302 val="yes" valomitted=yes
0
+ − 303 ;;
+ − 304 esac
+ − 305
274
+ − 306 optname="$opt"
+ − 307 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
+ − 308
243
+ − 309 case "${valomitted}-${opt}" in yes-without_* )
+ − 310 opt=`echo $opt | sed 's/without/with/'`
+ − 311 valomitted="no" val="no" ;;
+ − 312 esac
+ − 313
149
+ − 314 case "$opt" in
+ − 315
380
+ − 316 with_site_lisp | \
420
+ − 317 with_prefix | \
+ − 318 with_site_modules | \
70
+ − 319 with_x | \
+ − 320 with_x11 | \
462
+ − 321 with_gtk | \
+ − 322 with_gnome | \
263
+ − 323 with_msw | \
70
+ − 324 with_gcc | \
+ − 325 dynamic | \
149
+ − 326 with_ncurses | \
+ − 327 with_dnet | \
+ − 328 with_socks | \
282
+ − 329 with_dragndrop | \
70
+ − 330 with_cde | \
+ − 331 with_offix | \
149
+ − 332 with_gpm | \
+ − 333 with_xpm | \
+ − 334 with_xface | \
251
+ − 335 with_gif | \
+ − 336 with_jpeg | \
+ − 337 with_png | \
+ − 338 with_tiff | \
771
+ − 339 with_zlib | \
414
+ − 340 with_wmcommand | \
70
+ − 341 with_xmu | \
380
+ − 342 with_purify | \
149
+ − 343 with_quantify | \
70
+ − 344 with_toolbars | \
+ − 345 with_tty | \
215
+ − 346 with_xfs | \
70
+ − 347 with_mule | \
771
+ − 348 with_default_eol_detection | \
70
+ − 349 with_canna | \
+ − 350 with_wnn | \
98
+ − 351 with_wnn6 | \
149
+ − 352 with_workshop | \
70
+ − 353 with_sparcworks | \
380
+ − 354 with_tooltalk | \
259
+ − 355 with_ldap | \
442
+ − 356 with_postgresql | \
118
+ − 357 with_pop | \
+ − 358 with_kerberos | \
+ − 359 with_hesiod | \
136
+ − 360 with_dnet | \
280
+ − 361 with_infodock | \
724
+ − 362 with_netinstall | \
+ − 363 with_ipv6_cname | \
70
+ − 364 external_widget | \
925
+ − 365 use_kkcc | \
120
+ − 366 verbose | \
+ − 367 extra_verbose | \
380
+ − 368 usage_tracking | \
+ − 369 use_union_type | \
424
+ − 370 pdump | \
70
+ − 371 debug | \
+ − 372 use_assertions | \
+ − 373 memory_usage_stats | \
173
+ − 374 with_clash_detection | \
422
+ − 375 with_modules | \
442
+ − 376 quick_build )
149
+ − 377 case "$val" in
0
+ − 378 y | ye | yes ) val=yes ;;
380
+ − 379 n | no ) val=no ;;
149
+ − 380 * ) (echo "$progname: Usage error:"
+ − 381 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
+ − 382 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
+ − 383 esac
380
+ − 384 eval "$opt=\"$val\"" ;;
149
+ − 385
+ − 386
1259
+ − 387 compiler | \
596
+ − 388 xemacs_compiler | \
157
+ − 389 cflags | \
1111
+ − 390 cflags_warning | \
272
+ − 391 cpp | \
+ − 392 cppflags | \
+ − 393 libs | \
+ − 394 ldflags | \
153
+ − 395 cache_file | \
380
+ − 396 native_sound_lib| \
267
+ − 397 site_lisp | \
70
+ − 398 x_includes | \
+ − 399 x_libraries | \
+ − 400 site_includes | \
+ − 401 site_libraries | \
209
+ − 402 site_prefixes | \
149
+ − 403 site_runtime_libraries )
+ − 404 if test "$valomitted" = "yes" ; then
+ − 405 if test "$#" = 0 ; then
+ − 406 (echo "$progname: Usage error:"
+ − 407 echo " " "The \`--$optname' option requires a value."
+ − 408 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
0
+ − 409 fi
+ − 410 val="$1"; shift
+ − 411 fi
149
+ − 412 eval "$opt=\"$val\""
0
+ − 413 ;;
+ − 414
149
+ − 415 rel_alloc | \
261
+ − 416 with_dlmalloc | \
181
+ − 417 with_debug_malloc | use_debug_malloc | \
+ − 418 with_system_malloc | use_system_malloc )
149
+ − 419 case "$val" in
0
+ − 420 y | ye | yes ) val=yes ;;
+ − 421 n | no ) val=no ;;
181
+ − 422 d | de | def | defa | defau | defaul | default ) val=default ;;
149
+ − 423 * ) (echo "$progname: Usage error:"
+ − 424 echo " " "The \`--$optname' option requires one of these values:
120
+ − 425 \`yes', \`no', or \`default'."
149
+ − 426 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
+ − 427 esac
265
+ − 428 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
149
+ − 429 eval "$opt=\"$val\""
0
+ − 430 ;;
+ − 431
149
+ − 432 "with_database" )
120
+ − 433 with_database_berkdb=no
+ − 434 with_database_dbm=no
426
+ − 435 with_database_gdbm=no
300
+ − 436 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
149
+ − 437 case "$x" in
426
+ − 438 no ) ;;
+ − 439 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
+ − 440 d | db | dbm ) with_database_dbm=yes ;;
+ − 441 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
+ − 442 * ) (echo "$progname: Usage error:"
149
+ − 443 echo " " "The \`--$optname' option value
120
+ − 444 must be either \`no' or a comma-separated list
380
+ − 445 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
149
+ − 446 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
120
+ − 447 esac
+ − 448 done
426
+ − 449 if test "$with_database_dbm" = "yes" -a \
+ − 450 "$with_database_gdbm" = "yes"; then
149
+ − 451 (echo "$progname: Usage error:"
120
+ − 452 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
149
+ − 453 with the \`--$optname' option."
+ − 454 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
0
+ − 455 fi
70
+ − 456 ;;
0
+ − 457
149
+ − 458 "with_sound" )
426
+ − 459 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
+ − 460 case "$x" in
+ − 461 n | no | non | none ) new_sdefault=no ;;
+ − 462 a | al | all | both ) new_sdefault=yes ;;
+ − 463
+ − 464 native ) with_native_sound=yes ;;
+ − 465 nonative ) with_native_sound=no ;;
+ − 466
+ − 467 nas ) with_nas_sound=yes ;;
+ − 468 nonas ) with_nas_sound=no ;;
+ − 469
432
+ − 470 esd ) with_esd_sound=yes ;;
+ − 471 noesd ) with_esd_sound=no ;;
426
+ − 472
+ − 473 * ) bogus_sound=yes ;;
+ − 474 esac
+ − 475 if test "$bogus_sound" -o \
+ − 476 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
+ − 477 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
+ − 478 (echo "$progname: Usage error:"
+ − 479 echo " " "Valid types for the \`--$optname' option are:
+ − 480 $types.
724
+ − 481 Option \`all' or \`none' must be first in the list.
+ − 482 The default is to autodetect native and NAS sound support."
426
+ − 483 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
+ − 484 elif test -n "$new_sdefault" ; then
+ − 485 with_native_sound=$new_sdefault
+ − 486 with_nas_sound=$new_sdefault
432
+ − 487 with_esd_sound=$new_sdefault
426
+ − 488 new_sdefault= # reset this
+ − 489 fi
+ − 490 sound_notfirst=true
+ − 491 done
0
+ − 492 ;;
+ − 493
434
+ − 494 "with_athena" )
+ − 495 case "$val" in
+ − 496 xa | xaw ) val=xaw ;;
+ − 497 3 | 3d | xaw3d ) val=3d ;;
+ − 498 ne | nex | next | naxtaw) val=next ;;
+ − 499 9 | 95 | xaw95 ) val=95 ;;
+ − 500 xp | xpm | xawxpm ) val=xpm ;;
+ − 501 * ) (echo "$progname: Usage error:"
+ − 502 echo " " "The \`--$optname' option must have one of these values:
+ − 503 \`xaw', \`3d', \`next', \`95', or \`xpm'."
+ − 504 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
+ − 505 esac
+ − 506 eval "$opt=\"$val\""
+ − 507 ;;
+ − 508
149
+ − 509 "with_xim" )
+ − 510 case "$val" in
+ − 511 y | ye | yes ) val=yes ;;
+ − 512 n | no | non | none ) val=no ;;
+ − 513 x | xl | xli | xlib ) val=xlib ;;
+ − 514 m | mo | mot | moti | motif ) val=motif ;;
+ − 515 * ) (echo "$progname: Usage error:"
+ − 516 echo " " "The \`--$optname' option must have one of these values:
+ − 517 \`motif', \`xlib', \`yes', or \`no'."
+ − 518 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
+ − 519 esac
149
+ − 520 eval "$opt=\"$val\""
0
+ − 521 ;;
+ − 522
149
+ − 523 "mail_locking" )
+ − 524 case "$val" in
+ − 525 lockf ) val=lockf ;;
+ − 526 flock ) val=flock ;;
438
+ − 527 file | dot ) val=file ;;
+ − 528 locking ) val=locking ;;
149
+ − 529 * ) (echo "$progname: Usage error:"
+ − 530 echo " " "The \`--$optname' option must have one of these values:
438
+ − 531 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
149
+ − 532 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
+ − 533 esac
+ − 534 eval "$opt=\"$val\""
+ − 535 ;;
+ − 536
+ − 537 "error_checking" )
+ − 538
267
+ − 539 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
149
+ − 540 case "$x" in
+ − 541 n | no | non | none ) new_default=no ;;
0
+ − 542 a | al | all ) new_default=yes ;;
+ − 543
+ − 544 extents ) error_check_extents=yes ;;
+ − 545 noextents ) error_check_extents=no ;;
+ − 546
800
+ − 547 types ) error_check_types=yes ;;
+ − 548 notypes ) error_check_types=no ;;
+ − 549
+ − 550 text ) error_check_text=yes ;;
+ − 551 notext ) error_check_text=no ;;
0
+ − 552
+ − 553 gc ) error_check_gc=yes ;;
+ − 554 nogc ) error_check_gc=no ;;
+ − 555
+ − 556 malloc ) error_check_malloc=yes ;;
+ − 557 nomalloc ) error_check_malloc=no ;;
149
+ − 558
414
+ − 559 byte_code ) error_check_byte_code=yes ;;
+ − 560 nobyte_code ) error_check_byte_code=no ;;
+ − 561
800
+ − 562 glyphs ) error_check_glyphs=yes ;;
+ − 563 noglyphs ) error_check_glyphs=no ;;
+ − 564
+ − 565 display ) error_check_display=yes ;;
+ − 566 nodisplay ) error_check_display=no ;;
+ − 567
+ − 568 structures ) error_check_structures=yes ;;
+ − 569 nostructures ) error_check_structures=no ;;
442
+ − 570
0
+ − 571 * ) bogus_error_check=yes ;;
+ − 572 esac
70
+ − 573 if test "$bogus_error_check" -o \
+ − 574 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
267
+ − 575 if test "$error_check_default" = yes ; then
800
+ − 576 types="\`all' (default), \`none', \`noextents', \`notypes', \`notext', \`nogc', \`nomalloc', \`noglyphs', \`nobyte-code', \`nodisplay', \`nostructures'."
0
+ − 577 else
800
+ − 578 types="\`all', \`none' (default), \`extents', \`types', \`text', \`gc', \`malloc', \`glyphs', \`byte-code', \`display', \`structures'."
0
+ − 579 fi
149
+ − 580 (echo "$progname: Usage error:"
+ − 581 echo " " "Valid types for the \`--$optname' option are:
120
+ − 582 $types."
149
+ − 583 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
151
+ − 584 elif test -n "$new_default" ; then
0
+ − 585 error_check_extents=$new_default
800
+ − 586 error_check_types=$new_default
+ − 587 error_check_text=$new_default
0
+ − 588 error_check_gc=$new_default
+ − 589 error_check_malloc=$new_default
414
+ − 590 error_check_byte_code=$new_default
442
+ − 591 error_check_glyphs=$new_default
800
+ − 592 error_check_display=$new_default
+ − 593 error_check_structures=$new_default
0
+ − 594 new_default= # reset this
+ − 595 fi
+ − 596 echeck_notfirst=true
+ − 597 done
+ − 598 ;;
+ − 599
149
+ − 600
+ − 601 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
1349
+ − 602 mandir | infodir | infopath | lispdir | etcdir | \
867
+ − 603 archlibdir | docdir | package_path | moduledir )
151
+ − 604 if test "$valomitted" = "yes"; then
+ − 605 if test "$#" = 0; then
149
+ − 606 (echo "$progname: Usage error:"
+ − 607 echo " " "The \`--$optname' option requires a value."
+ − 608 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
120
+ − 609 fi
+ − 610 val="$1"; shift
0
+ − 611 fi
149
+ − 612 eval "$opt=\"$val\""
+ − 613
278
+ − 614 case "$opt" in
420
+ − 615 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 616 Defining EXEC_PREFIX_USER_DEFINED
+ − 617 EOF
+ − 618 cat >> confdefs.h <<\EOF
+ − 619 #define EXEC_PREFIX_USER_DEFINED 1
+ − 620 EOF
+ − 621 }
+ − 622 ;;
274
+ − 623 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 624 Defining LISPDIR_USER_DEFINED
+ − 625 EOF
+ − 626 cat >> confdefs.h <<\EOF
+ − 627 #define LISPDIR_USER_DEFINED 1
+ − 628 EOF
+ − 629 }
+ − 630 ;;
388
+ − 631 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 632 Defining SITELISPDIR_USER_DEFINED
+ − 633 EOF
+ − 634 cat >> confdefs.h <<\EOF
+ − 635 #define SITELISPDIR_USER_DEFINED 1
+ − 636 EOF
+ − 637 }
+ − 638 ;;
+ − 639 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 640 Defining MODULEDIR_USER_DEFINED
+ − 641 EOF
+ − 642 cat >> confdefs.h <<\EOF
+ − 643 #define MODULEDIR_USER_DEFINED 1
+ − 644 EOF
+ − 645 }
+ − 646 ;;
274
+ − 647 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 648 Defining ETCDIR_USER_DEFINED
+ − 649 EOF
+ − 650 cat >> confdefs.h <<\EOF
+ − 651 #define ETCDIR_USER_DEFINED 1
+ − 652 EOF
+ − 653 }
+ − 654 ;;
+ − 655 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 656 Defining INFODIR_USER_DEFINED
+ − 657 EOF
+ − 658 cat >> confdefs.h <<\EOF
+ − 659 #define INFODIR_USER_DEFINED 1
+ − 660 EOF
+ − 661 }
+ − 662 ;;
+ − 663 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 664 Defining INFOPATH_USER_DEFINED
+ − 665 EOF
+ − 666 cat >> confdefs.h <<\EOF
+ − 667 #define INFOPATH_USER_DEFINED 1
+ − 668 EOF
+ − 669 }
+ − 670 ;;
+ − 671 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 672 Defining PACKAGE_PATH_USER_DEFINED
+ − 673 EOF
+ − 674 cat >> confdefs.h <<\EOF
+ − 675 #define PACKAGE_PATH_USER_DEFINED 1
+ − 676 EOF
+ − 677 }
+ − 678 ;;
278
+ − 679 datadir )
462
+ − 680 { test "$extra_verbose" = "yes" && cat << \EOF
278
+ − 681 Defining INFODIR_USER_DEFINED
+ − 682 EOF
+ − 683 cat >> confdefs.h <<\EOF
+ − 684 #define INFODIR_USER_DEFINED 1
+ − 685 EOF
+ − 686 }
+ − 687
462
+ − 688 { test "$extra_verbose" = "yes" && cat << \EOF
278
+ − 689 Defining LISPDIR_USER_DEFINED
+ − 690 EOF
+ − 691 cat >> confdefs.h <<\EOF
+ − 692 #define LISPDIR_USER_DEFINED 1
+ − 693 EOF
+ − 694 }
+ − 695
462
+ − 696 { test "$extra_verbose" = "yes" && cat << \EOF
388
+ − 697 Defining MODULEDIR_USER_DEFINED
+ − 698 EOF
+ − 699 cat >> confdefs.h <<\EOF
+ − 700 #define MODULEDIR_USER_DEFINED 1
+ − 701 EOF
+ − 702 }
+ − 703
278
+ − 704 { test "$extra_verbose" = "yes" && cat << \EOF
274
+ − 705 Defining ETCDIR_USER_DEFINED
+ − 706 EOF
+ − 707 cat >> confdefs.h <<\EOF
+ − 708 #define ETCDIR_USER_DEFINED 1
+ − 709 EOF
+ − 710 }
458
+ − 711
+ − 712 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 713 Defining DOCDIR_USER_DEFINED
+ − 714 EOF
+ − 715 cat >> confdefs.h <<\EOF
+ − 716 #define DOCDIR_USER_DEFINED 1
+ − 717 EOF
+ − 718 }
+ − 719
+ − 720 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 721 Defining ARCHLIBDIR_USER_DEFINED
+ − 722 EOF
+ − 723 cat >> confdefs.h <<\EOF
+ − 724 #define ARCHLIBDIR_USER_DEFINED 1
+ − 725 EOF
+ − 726 }
274
+ − 727 ;;
420
+ − 728 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 729 Defining DOCDIR_USER_DEFINED
+ − 730 EOF
+ − 731 cat >> confdefs.h <<\EOF
+ − 732 #define DOCDIR_USER_DEFINED 1
+ − 733 EOF
+ − 734 }
+ − 735 ;;
274
+ − 736 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 737 Defining ARCHLIBDIR_USER_DEFINED
+ − 738 EOF
+ − 739 cat >> confdefs.h <<\EOF
+ − 740 #define ARCHLIBDIR_USER_DEFINED 1
+ − 741 EOF
+ − 742 }
+ − 743 ;;
149
+ − 744 esac
0
+ − 745 ;;
+ − 746
149
+ − 747 "no_create" ) ;;
+ − 748
215
+ − 749 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
149
+ − 750
380
+ − 751 "with_menubars" | \
+ − 752 "with_scrollbars" | \
442
+ − 753 "with_dialogs" | \
420
+ − 754 "with_widgets" )
149
+ − 755 case "$val" in
0
+ − 756 l | lu | luc | luci | lucid ) val=lucid ;;
724
+ − 757 mo | mot | moti | motif ) val=motif ;;
0
+ − 758 a | at | ath | athe | athen | athena ) val=athena ;;
442
+ − 759 n | no | non | none ) val=no ;;
+ − 760 y | ye | yes ) val=yes ;;
726
+ − 761 "") val=yes ;;
462
+ − 762 g | gt | gtk ) val=gtk ;;
724
+ − 763 ms | msw ) val=msw ;;
149
+ − 764 * ) (echo "$progname: Usage error:"
+ − 765 echo " " "The \`--$optname' option must have one of these values:
585
+ − 766 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."
149
+ − 767 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
+ − 768 esac
149
+ − 769 eval "$opt=\"$val\""
0
+ − 770 ;;
+ − 771
424
+ − 772 "use_minimal_tagbits" | \
+ − 773 "use_indexed_lrecord_implementation" | \
+ − 774 "run_in_place" | \
442
+ − 775 "const_is_losing" | \
380
+ − 776 "with_gnu_make" )
+ − 777 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
+ − 778 ;;
+ − 779
149
+ − 780 * ) (echo "$progname: Usage error:"
+ − 781 echo " " "Unrecognized option: $arg"
+ − 782 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
+ − 783
+ − 784 esac
+ − 785 ;;
+ − 786
243
+ − 787 *-*-*) configuration="$arg" ;;
+ − 788
+ − 789 *) (echo "$progname: Usage error:"
+ − 790 echo " " "Unrecognized argument: $arg"
+ − 791 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
+ − 792
+ − 793 esac
+ − 794 done
+ − 795
149
+ − 796
272
+ − 797 test -n "$cpp" && CPP="$cpp"
+ − 798 test -n "$cppflags" && CPPFLAGS="$cppflags"
+ − 799 test -n "$libs" && LIBS="$libs"
+ − 800 test -n "$ldflags" && LDFLAGS="$ldflags"
+ − 801
0
+ − 802 eval set x "$quoted_arguments"; shift
+ − 803
149
+ − 804 test "$extra_verbose" = "yes" && verbose=yes
+ − 805
+ − 806 test -n "$with_x" && with_x11="$with_x"
+ − 807
380
+ − 808 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
+ − 809 test "$with_system_malloc" = "default" && with_system_malloc=yes
+ − 810 fi
272
+ − 811
284
+ − 812
+ − 813
+ − 814 if test "$with_cde $with_tooltalk" = "yes no"; then
+ − 815 (echo "$progname: Usage error:"
+ − 816 echo " " "--with-cde requires --with-tooltalk"
+ − 817 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
+ − 818 elif test "$with_tooltalk" = "no" ; then with_cde=no
+ − 819 elif test "$with_cde" = "yes"; then with_tooltalk=yes
+ − 820 fi
+ − 821
+ − 822
149
+ − 823 case "$srcdir" in
+ − 824
+ − 825 "" )
70
+ − 826 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
120
+ − 827 if test -f "$dir/src/lisp.h" -a \
+ − 828 -f "$dir/lisp/version.el" ; then
149
+ − 829 srcdir="$dir"
70
+ − 830 break
+ − 831 fi
+ − 832 done
149
+ − 833 if test -z "$srcdir" ; then
+ − 834 (echo "$progname: Usage error:"
1259
+ − 835 echo " " "None of the path to configure, the current directory,
+ − 836 and its parent seem to contain the XEmacs sources. If you do not want
+ − 837 to build XEmacs in its source tree, you should run \`$progname' in the
+ − 838 directory in which you wish to build XEmacs, using the \`--srcdir' option
+ − 839 to say where the sources may be found."
149
+ − 840 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
120
+ − 841 fi
0
+ − 842 ;;
+ − 843
149
+ − 844 * )
243
+ − 845 if test ! -f "$srcdir/src/lisp.h" -o \
149
+ − 846 ! -f "$srcdir/lisp/version.el" ; then
+ − 847 (echo "$progname: Usage error:"
120
+ − 848 echo " " "The directory specified with the \`--srcdir' option,
149
+ − 849 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
+ − 850 either run the \`$progname' script at the top of the XEmacs source
120
+ − 851 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
149
+ − 852 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
0
+ − 853 fi
+ − 854 ;;
+ − 855 esac
+ − 856
243
+ − 857 if test -z "$configuration"; then
380
+ − 858 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
+ − 859 if test -z "$configuration"; then
243
+ − 860 (echo "$progname: Usage error:"
+ − 861 echo " " "XEmacs has not been ported to this host type.
+ − 862 Try explicitly specifying the CONFIGURATION when rerunning configure."
+ − 863 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
+ − 864 fi
+ − 865 fi
+ − 866
149
+ − 867 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1259
+ − 868 echo "configure:870: checking whether ln -s works" >&5
149
+ − 869
0
+ − 870 rm -f conftestdata
+ − 871 if ln -s X conftestdata 2>/dev/null
+ − 872 then
+ − 873 rm -f conftestdata
149
+ − 874 ac_cv_prog_LN_S="ln -s"
+ − 875 else
+ − 876 ac_cv_prog_LN_S=ln
+ − 877 fi
+ − 878 LN_S="$ac_cv_prog_LN_S"
+ − 879 if test "$ac_cv_prog_LN_S" = "ln -s"; then
+ − 880 echo "$ac_t""yes" 1>&6
+ − 881 else
+ − 882 echo "$ac_t""no" 1>&6
+ − 883 fi
+ − 884
+ − 885
438
+ − 886 for dir in lisp etc man info tests; do
149
+ − 887 if test ! -d "$dir" ; then
+ − 888 echo Making symbolic link to "$srcdir/$dir"
157
+ − 889 ${LN_S} "$srcdir/$dir" "$dir"
0
+ − 890 fi
+ − 891 done
+ − 892
392
+ − 893
181
+ − 894 absolute_pwd="`pwd`";
187
+ − 895 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
181
+ − 896 then blddir="$PWD"
392
+ − 897 else blddir="$absolute_pwd"; if test -d "/net"; then
+ − 898 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
+ − 899 blddir=`echo "$blddir" | \
+ − 900 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
+ − 901 fi
181
+ − 902 fi
+ − 903
+ − 904
149
+ − 905 case "$srcdir" in
0
+ − 906 /* ) ;;
181
+ − 907 . ) srcdir="$blddir" ;;
392
+ − 908 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
+ − 909 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
+ − 910 srcdir=`echo "$srcdir" | \
+ − 911 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
+ − 912 fi ;;
0
+ − 913 esac
+ − 914
149
+ − 915 if test `pwd` != `sh -c cd $srcdir && pwd` \
+ − 916 && test -f "$srcdir/src/config.h"; then
+ − 917 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
0
+ − 918 echo " as a build directory right now; it has been configured in its own"
+ − 919 echo " right. To configure in another directory as well, you MUST"
+ − 920 echo " use GNU make. If you do not have GNU make, then you must"
149
+ − 921 echo " now do \`make distclean' in $srcdir,"
+ − 922 echo " and then run $progname again.") >&2
0
+ − 923 extrasub='/^VPATH[ ]*=/c\
+ − 924 vpath %.c $(srcdir)\
+ − 925 vpath %.h $(srcdir)\
+ − 926 vpath %.y $(srcdir)\
+ − 927 vpath %.l $(srcdir)\
+ − 928 vpath %.s $(srcdir)\
+ − 929 vpath %.in $(srcdir)'
+ − 930 fi
+ − 931
171
+ − 932 . "$srcdir/version.sh" || exit 1;
414
+ − 933 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
173
+ − 934 : "${extra_verbose=$beta}"
171
+ − 935 version="${emacs_major_version}.${emacs_minor_version}"
+ − 936 { test "$extra_verbose" = "yes" && cat << EOF
+ − 937 Defining EMACS_MAJOR_VERSION = $emacs_major_version
+ − 938 EOF
+ − 939 cat >> confdefs.h <<EOF
+ − 940 #define EMACS_MAJOR_VERSION $emacs_major_version
+ − 941 EOF
+ − 942 }
+ − 943
+ − 944 { test "$extra_verbose" = "yes" && cat << EOF
+ − 945 Defining EMACS_MINOR_VERSION = $emacs_minor_version
+ − 946 EOF
+ − 947 cat >> confdefs.h <<EOF
+ − 948 #define EMACS_MINOR_VERSION $emacs_minor_version
+ − 949 EOF
+ − 950 }
+ − 951
414
+ − 952 if test -n "$emacs_beta_version" ; then
+ − 953 if test "$beta" = "yes"; then
+ − 954 version="${version}-b${emacs_beta_version}"
+ − 955 { test "$extra_verbose" = "yes" && cat << EOF
171
+ − 956 Defining EMACS_BETA_VERSION = $emacs_beta_version
+ − 957 EOF
+ − 958 cat >> confdefs.h <<EOF
+ − 959 #define EMACS_BETA_VERSION $emacs_beta_version
+ − 960 EOF
+ − 961 }
+ − 962
414
+ − 963 else
+ − 964 version="${version}.${emacs_beta_version}"
+ − 965 { test "$extra_verbose" = "yes" && cat << EOF
+ − 966 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
+ − 967 EOF
+ − 968 cat >> confdefs.h <<EOF
+ − 969 #define EMACS_PATCH_LEVEL $emacs_beta_version
+ − 970 EOF
+ − 971 }
+ − 972
+ − 973 fi
171
+ − 974 fi
+ − 975 { test "$extra_verbose" = "yes" && cat << EOF
+ − 976 Defining XEMACS_CODENAME = "$xemacs_codename"
+ − 977 EOF
+ − 978 cat >> confdefs.h <<EOF
+ − 979 #define XEMACS_CODENAME "$xemacs_codename"
+ − 980 EOF
+ − 981 }
+ − 982
975
+ − 983 if test "X$xemacs_extra_name" != "X"; then
+ − 984 { test "$extra_verbose" = "yes" && cat << EOF
+ − 985 Defining XEMACS_EXTRA_NAME = "$xemacs_extra_name"
+ − 986 EOF
+ − 987 cat >> confdefs.h <<EOF
+ − 988 #define XEMACS_EXTRA_NAME "$xemacs_extra_name"
+ − 989 EOF
+ − 990 }
+ − 991
+ − 992 fi
171
+ − 993 { test "$extra_verbose" = "yes" && cat << EOF
+ − 994 Defining EMACS_VERSION = "$version"
+ − 995 EOF
+ − 996 cat >> confdefs.h <<EOF
+ − 997 #define EMACS_VERSION "$version"
+ − 998 EOF
+ − 999 }
+ − 1000
+ − 1001
280
+ − 1002 if test "$with_infodock" = "yes"; then
420
+ − 1003 if test ! -f ../../ID-INSTALL; then
280
+ − 1004 echo "Cannot build InfoDock without InfoDock sources"
+ − 1005 with_infodock=no
+ − 1006 fi
+ − 1007 fi
+ − 1008
+ − 1009 if test "$with_infodock" = "yes"; then
+ − 1010 { test "$extra_verbose" = "yes" && cat << EOF
278
+ − 1011 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
+ − 1012 EOF
+ − 1013 cat >> confdefs.h <<EOF
+ − 1014 #define INFODOCK_MAJOR_VERSION $infodock_major_version
+ − 1015 EOF
+ − 1016 }
+ − 1017
280
+ − 1018 { test "$extra_verbose" = "yes" && cat << EOF
278
+ − 1019 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
+ − 1020 EOF
+ − 1021 cat >> confdefs.h <<EOF
+ − 1022 #define INFODOCK_MINOR_VERSION $infodock_minor_version
+ − 1023 EOF
+ − 1024 }
+ − 1025
280
+ − 1026 { test "$extra_verbose" = "yes" && cat << EOF
278
+ − 1027 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
+ − 1028 EOF
+ − 1029 cat >> confdefs.h <<EOF
+ − 1030 #define INFODOCK_BUILD_VERSION $infodock_build_version
+ − 1031 EOF
+ − 1032 }
+ − 1033
280
+ − 1034 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
+ − 1035 PROGNAME=infodock
+ − 1036 CPPFLAGS="$CPPFLAGS -DINFODOCK"
+ − 1037 else
+ − 1038 PROGNAME=xemacs
+ − 1039 fi
278
+ − 1040
442
+ − 1041 { test "$extra_verbose" = "yes" && cat << EOF
+ − 1042 Defining EMACS_PROGNAME = "$PROGNAME"
+ − 1043 EOF
+ − 1044 cat >> confdefs.h <<EOF
+ − 1045 #define EMACS_PROGNAME "$PROGNAME"
+ − 1046 EOF
+ − 1047 }
+ − 1048
+ − 1049
414
+ − 1050 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
800
+ − 1051 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
171
+ − 1052 Defining ERROR_CHECK_EXTENTS
+ − 1053 EOF
+ − 1054 cat >> confdefs.h <<\EOF
+ − 1055 #define ERROR_CHECK_EXTENTS 1
+ − 1056 EOF
+ − 1057 }
+ − 1058
800
+ − 1059 test "${error_check_types=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1060 Defining ERROR_CHECK_TYPES
+ − 1061 EOF
+ − 1062 cat >> confdefs.h <<\EOF
+ − 1063 #define ERROR_CHECK_TYPES 1
+ − 1064 EOF
+ − 1065 }
+ − 1066
+ − 1067 test "${error_check_text=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1068 Defining ERROR_CHECK_TEXT
+ − 1069 EOF
+ − 1070 cat >> confdefs.h <<\EOF
+ − 1071 #define ERROR_CHECK_TEXT 1
+ − 1072 EOF
+ − 1073 }
+ − 1074
+ − 1075 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
171
+ − 1076 Defining ERROR_CHECK_GC
+ − 1077 EOF
+ − 1078 cat >> confdefs.h <<\EOF
+ − 1079 #define ERROR_CHECK_GC 1
+ − 1080 EOF
+ − 1081 }
+ − 1082
800
+ − 1083 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
171
+ − 1084 Defining ERROR_CHECK_MALLOC
+ − 1085 EOF
+ − 1086 cat >> confdefs.h <<\EOF
+ − 1087 #define ERROR_CHECK_MALLOC 1
+ − 1088 EOF
+ − 1089 }
+ − 1090
800
+ − 1091 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
414
+ − 1092 Defining ERROR_CHECK_BYTE_CODE
+ − 1093 EOF
+ − 1094 cat >> confdefs.h <<\EOF
+ − 1095 #define ERROR_CHECK_BYTE_CODE 1
+ − 1096 EOF
+ − 1097 }
+ − 1098
800
+ − 1099 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
442
+ − 1100 Defining ERROR_CHECK_GLYPHS
+ − 1101 EOF
+ − 1102 cat >> confdefs.h <<\EOF
+ − 1103 #define ERROR_CHECK_GLYPHS 1
+ − 1104 EOF
+ − 1105 }
+ − 1106
800
+ − 1107 test "${error_check_display=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1108 Defining ERROR_CHECK_DISPLAY
+ − 1109 EOF
+ − 1110 cat >> confdefs.h <<\EOF
+ − 1111 #define ERROR_CHECK_DISPLAY 1
+ − 1112 EOF
+ − 1113 }
+ − 1114
+ − 1115 test "${error_check_structures=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1116 Defining ERROR_CHECK_STRUCTURES
+ − 1117 EOF
+ − 1118 cat >> confdefs.h <<\EOF
+ − 1119 #define ERROR_CHECK_STRUCTURES 1
+ − 1120 EOF
+ − 1121 }
+ − 1122
272
+ − 1123 if test "${debug:=$beta}" = "yes"; then
771
+ − 1124 use_assertions=yes
+ − 1125 memory_usage_stats=yes
171
+ − 1126 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1127 Defining DEBUG_XEMACS
+ − 1128 EOF
+ − 1129 cat >> confdefs.h <<\EOF
+ − 1130 #define DEBUG_XEMACS 1
+ − 1131 EOF
+ − 1132 }
+ − 1133
+ − 1134 fi
+ − 1135 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1136 Defining USE_ASSERTIONS
+ − 1137 EOF
+ − 1138 cat >> confdefs.h <<\EOF
+ − 1139 #define USE_ASSERTIONS 1
+ − 1140 EOF
+ − 1141 }
+ − 1142
+ − 1143 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1144 Defining MEMORY_USAGE_STATS
+ − 1145 EOF
+ − 1146 cat >> confdefs.h <<\EOF
+ − 1147 #define MEMORY_USAGE_STATS 1
+ − 1148 EOF
+ − 1149 }
+ − 1150
+ − 1151
149
+ − 1152
380
+ − 1153 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1259
+ − 1154 echo "configure:1156: checking "host system type"" >&5
217
+ − 1155 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
380
+ − 1156 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
+ − 1157 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
+ − 1158 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
+ − 1159 echo "$ac_t""$configuration" 1>&6
0
+ − 1160
149
+ − 1161
+ − 1162
+ − 1163
+ − 1164
151
+ − 1165 machine='' opsys=''
149
+ − 1166
+ − 1167 case "$canonical" in
+ − 1168 sparc-*-* ) machine=sparc ;;
373
+ − 1169 alpha*-*-* ) machine=alpha ;;
149
+ − 1170 vax-*-* ) machine=vax ;;
+ − 1171 mips-dec-* ) machine=pmax ;;
440
+ − 1172 mips-sgi-irix6* ) machine=iris6d ;;
149
+ − 1173 mips-sgi-* ) machine=iris4d ;;
424
+ − 1174 mips*-linux ) machine=mips ;;
149
+ − 1175 romp-ibm-* ) machine=ibmrt ;;
+ − 1176 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
+ − 1177 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
163
+ − 1178 powerpc*-* ) machine=powerpc ;;
149
+ − 1179 hppa-*-* ) machine=hp800 ;;
+ − 1180 m88k-dg-* ) machine=aviion ;;
+ − 1181 m68*-sony-* ) machine=news ;;
+ − 1182 mips-sony-* ) machine=news-risc ;;
+ − 1183 clipper-* ) machine=clipper ;;
442
+ − 1184 arm* ) machine=arm ;;
380
+ − 1185 ns32k-* ) machine=ns32000 ;;
149
+ − 1186 esac
+ − 1187
+ − 1188 case "$canonical" in
+ − 1189 *-*-linux* ) opsys=linux ;;
+ − 1190 *-*-netbsd* ) opsys=netbsd ;;
286
+ − 1191 *-*-openbsd* ) opsys=openbsd ;;
149
+ − 1192 *-*-nextstep* ) opsys=nextstep ;;
+ − 1193 *-*-vms ) opsys=vms ;;
+ − 1194
+ − 1195 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
+ − 1196 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
+ − 1197 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
+ − 1198 *-dec-osf3* ) opsys=decosf3-1 ;;
444
+ − 1199 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
149
+ − 1200
+ − 1201 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
+ − 1202 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
+ − 1203 *-*-ultrix* ) opsys=ultrix4-3 ;;
+ − 1204
1300
+ − 1205 *-*-aix3.1* ) opsys=aix3-1 ;;
+ − 1206 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
+ − 1207 *-*-aix3* ) opsys=aix3-2 ;;
+ − 1208 *-*-aix4.0* ) opsys=aix4 ;;
+ − 1209 *-*-aix4.1* ) opsys=aix4-1 ;;
+ − 1210 *-*-aix[4-9]* ) opsys=aix4-2 ;;
149
+ − 1211
+ − 1212 *-gnu* ) opsys=gnu ;;
+ − 1213 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
+ − 1214 *-*-bsd4.2 ) opsys=bsd4-2 ;;
+ − 1215 *-*-bsd4.3 ) opsys=bsd4-3 ;;
+ − 1216 *-*-aos4.2 ) opsys=bsd4-2 ;;
+ − 1217 *-*-aos* ) opsys=bsd4-3 ;;
+ − 1218 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
+ − 1219 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
+ − 1220 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
+ − 1221 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
+ − 1222 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
+ − 1223 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
+ − 1224 if test -z "$NON_GNU_CPP" ; then
151
+ − 1225 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
+ − 1226 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
+ − 1227 done
149
+ − 1228 fi
+ − 1229 opsys=usg5-4-2 ;;
+ − 1230 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
+ − 1231 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
+ − 1232 esac
+ − 1233
+ − 1234 case "$canonical" in
+ − 1235
+ − 1236 *-*-netbsd* )
+ − 1237 case "$canonical" in
0
+ − 1238 i[3-9]86-*-netbsd*) machine=intel386 ;;
+ − 1239 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
149
+ − 1240 machine=hp9000s300 ;;
70
+ − 1241 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
+ − 1242 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
0
+ − 1243 esac
+ − 1244 ;;
+ − 1245
286
+ − 1246 *-*-openbsd* )
+ − 1247 case "${canonical}" in
+ − 1248 i386-*-openbsd*) machine=intel386 ;;
+ − 1249 m68k-*-openbsd*) machine=hp9000s300 ;;
+ − 1250 mipsel-*-openbsd*) machine=pmax ;;
+ − 1251 esac
+ − 1252 ;;
+ − 1253
149
+ − 1254 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
70
+ − 1255 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
0
+ − 1256
149
+ − 1257 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
70
+ − 1258 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
0
+ − 1259
149
+ − 1260 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
+ − 1261
+ − 1262 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
+ − 1263
+ − 1264 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
+ − 1265
+ − 1266 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
+ − 1267
+ − 1268 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
+ − 1269
+ − 1270 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
74
+ − 1271 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
+ − 1272 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
0
+ − 1273
149
+ − 1274
+ − 1275 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
+ − 1276
+ − 1277 *-convex-bsd* | *-convex-convexos* )
0
+ − 1278 machine=convex opsys=bsd4-3
+ − 1279 NON_GNU_CPP="cc -E -P"
+ − 1280 ;;
+ − 1281
149
+ − 1282 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
+ − 1283
867
+ − 1284 *-*-darwin*)
+ − 1285 opsys=darwin
1161
+ − 1286 RANLIB="ranlib -c" ;;
867
+ − 1287
149
+ − 1288 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
+ − 1289 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
+ − 1290 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
+ − 1291 m88k-dg-dgux* ) opsys=dgux ;;
+ − 1292
+ − 1293 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
0
+ − 1294 m88k-motorola-sysv4* )
149
+ − 1295 machine=delta88k opsys=usg5-4-2
0
+ − 1296 ;;
70
+ − 1297 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
0
+ − 1298
149
+ − 1299 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
70
+ − 1300 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
0
+ − 1301
149
+ − 1302 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
+ − 1303
+ − 1304 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
70
+ − 1305 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
+ − 1306 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
0
+ − 1307
149
+ − 1308 m88k-harris-cxux* )
+ − 1309 case "`uname -r`" in
74
+ − 1310 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
70
+ − 1311 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
0
+ − 1312 esac
+ − 1313 NON_GNU_CPP="/lib/cpp"
+ − 1314 ;;
149
+ − 1315 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
+ − 1316 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
+ − 1317
+ − 1318 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
+ − 1319
+ − 1320 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
+ − 1321
+ − 1322 *-hp-hpux* )
+ − 1323 case "$canonical" in
70
+ − 1324 m68* ) machine=hp9000s300 ;;
+ − 1325 hppa* ) machine=hp800 ;;
+ − 1326 esac
+ − 1327
149
+ − 1328 case "$canonical" in
+ − 1329 *-hp-hpux7* ) opsys=hpux ;;
+ − 1330 *-hp-hpux8* ) opsys=hpux8 ;;
+ − 1331 *-hp-hpux9* ) opsys=hpux9 ;;
+ − 1332 *-hp-hpux10* ) opsys=hpux10 ;;
269
+ − 1333 *-hp-hpux11* ) opsys=hpux11 ;;
151
+ − 1334 * ) opsys=hpux ;;
0
+ − 1335 esac
72
+ − 1336
151
+ − 1337 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
+ − 1338 echo " xemacs will be linked with \"strcat.o\""
+ − 1339 fi ;; esac
149
+ − 1340
269
+ − 1341 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
+ − 1342 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
149
+ − 1343 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
+ − 1344
+ − 1345 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
0
+ − 1346 ;;
+ − 1347
149
+ − 1348 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
70
+ − 1349 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
0
+ − 1350
149
+ − 1351 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
70
+ − 1352 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
+ − 1353 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
149
+ − 1354 romp-ibm-aos* ) opsys=bsd4-3 ;;
+ − 1355 romp-ibm-bsd* ) opsys=bsd4-3 ;;
+ − 1356 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
+ − 1357
+ − 1358 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
70
+ − 1359 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
0
+ − 1360
149
+ − 1361 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
+ − 1362
+ − 1363 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
+ − 1364
+ − 1365 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
+ − 1366
+ − 1367 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
+ − 1368
+ − 1369 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
+ − 1370
+ − 1371 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
+ − 1372
+ − 1373 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
+ − 1374
+ − 1375 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
+ − 1376
+ − 1377 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
+ − 1378
+ − 1379 mips-mips-usg* ) machine=mips4 ;;
70
+ − 1380 mips-mips-riscos4 )
+ − 1381 machine=mips4
0
+ − 1382 NON_GNU_CC="cc -systype bsd43"
+ − 1383 NON_GNU_CPP="cc -systype bsd43 -E"
149
+ − 1384 case "$canonical" in
70
+ − 1385 mips-mips-riscos4* ) opsys=bsd4-3 ;;
+ − 1386 mips-mips-riscos5* ) opsys=riscos5 ;;
+ − 1387 esac
0
+ − 1388 ;;
70
+ − 1389 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
+ − 1390 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
0
+ − 1391
149
+ − 1392 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
+ − 1393
+ − 1394 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
+ − 1395
+ − 1396 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
70
+ − 1397 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
0
+ − 1398
149
+ − 1399 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
+ − 1400
+ − 1401 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
+ − 1402
+ − 1403 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
+ − 1404
+ − 1405 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
+ − 1406
+ − 1407 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
70
+ − 1408 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
0
+ − 1409
149
+ − 1410 mips-siemens-sysv* | mips-sni-sysv*)
0
+ − 1411 machine=mips-siemens opsys=usg5-4
+ − 1412 NON_GNU_CC=/usr/ccs/bin/cc
+ − 1413 NON_GNU_CPP=/usr/ccs/lib/cpp
+ − 1414 ;;
+ − 1415
377
+ − 1416 mips-nec-sysv*)
+ − 1417 machine=mips-nec
+ − 1418 NON_GNU_CC=/usr/ccs/bin/cc
+ − 1419 NON_GNU_CPP=/usr/ccs/lib/cpp
+ − 1420 ;;
+ − 1421
149
+ − 1422 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
70
+ − 1423 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
149
+ − 1424 mips-sgi-irix3.* ) opsys=irix3-3 ;;
+ − 1425 mips-sgi-irix4.* ) opsys=irix4-0 ;;
207
+ − 1426 mips-sgi-irix6* ) opsys=irix6-0 ;;
149
+ − 1427 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
+ − 1428 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
+ − 1429 mips-sgi-irix5.* ) opsys=irix5-3 ;;
+ − 1430 mips-sgi-irix* ) opsys=irix5-0 ;;
+ − 1431
+ − 1432 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
+ − 1433 *-sony-news* ) opsys=newsos5 ;;
+ − 1434
+ − 1435 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
+ − 1436
+ − 1437 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
+ − 1438 case "$canonical" in
0
+ − 1439 m68*-sunos1* ) machine=sun1 ;;
+ − 1440 m68*-sunos2* ) machine=sun2 ;;
+ − 1441 m68* ) machine=sun3 ;;
163
+ − 1442 i*86*-sun-sunos[34]* ) machine=sun386 ;;
+ − 1443 i*86-*-* ) machine=intel386 ;;
0
+ − 1444 rs6000* ) machine=rs6000 ;;
+ − 1445 esac
149
+ − 1446
+ − 1447 case "$canonical" in *-sunos5*)
163
+ − 1448 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
0
+ − 1449 esac
+ − 1450
149
+ − 1451 case "$canonical" in
0
+ − 1452 *-sunos4* )
157
+ − 1453 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
+ − 1454 : ;;
70
+ − 1455 *-solaris2* )
157
+ − 1456 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
+ − 1457 RANLIB=':' ;;
151
+ − 1458 esac
149
+ − 1459
+ − 1460 case "$canonical" in
163
+ − 1461 *-solaris* )
+ − 1462 opsys=sol2
+ − 1463 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
+ − 1464 { test "$extra_verbose" = "yes" && cat << EOF
+ − 1465 Defining OS_RELEASE = $os_release
+ − 1466 EOF
+ − 1467 cat >> confdefs.h <<EOF
+ − 1468 #define OS_RELEASE $os_release
+ − 1469 EOF
+ − 1470 }
+ − 1471 ;;
+ − 1472
+ − 1473 i*86-*-sunos4* ) opsys=sunos4-0 ;;
74
+ − 1474 *-sunos4.0* ) opsys=sunos4-0 ;;
+ − 1475 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
110
+ − 1476 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
120
+ − 1477 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
74
+ − 1478 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
+ − 1479 *-mach* ) opsys=mach-bsd4-3 ;;
+ − 1480 * ) opsys=bsd4-2 ;;
0
+ − 1481 esac
70
+ − 1482
149
+ − 1483 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
+ − 1484
163
+ − 1485 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
0
+ − 1486 ;;
70
+ − 1487
149
+ − 1488 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
+ − 1489
+ − 1490 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
70
+ − 1491 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
0
+ − 1492
149
+ − 1493 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
+ − 1494
+ − 1495 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
+ − 1496
+ − 1497 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
+ − 1498 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
+ − 1499
+ − 1500 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
+ − 1501
+ − 1502 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
+ − 1503
+ − 1504 vax-dec-* )
+ − 1505 case "$canonical" in
+ − 1506 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
+ − 1507 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
+ − 1508 *-mach* ) opsys=mach-bsd4-3 ;;
0
+ − 1509 esac
+ − 1510 ;;
+ − 1511
149
+ − 1512 ns16k-whitechapel-* ) machine=mg1 ;;
+ − 1513
+ − 1514 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
+ − 1515
+ − 1516 i[3-9]86-*-* )
0
+ − 1517 machine=intel386
149
+ − 1518 case "$canonical" in
120
+ − 1519 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
0
+ − 1520 *-isc2.2* ) opsys=isc2-2 ;;
+ − 1521 *-isc4.0* ) opsys=isc4-0 ;;
+ − 1522 *-isc4.* ) opsys=isc4-1
+ − 1523 GCC_TEST_OPTIONS=-posix
+ − 1524 NON_GCC_TEST_OPTIONS=-Xp
+ − 1525 ;;
+ − 1526 *-isc* ) opsys=isc3-0 ;;
149
+ − 1527 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
0
+ − 1528 *-esix* ) opsys=esix ;;
+ − 1529 *-mach* ) opsys=mach-bsd4-3 ;;
+ − 1530 *-xenix* ) opsys=xenix ;;
149
+ − 1531 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
0
+ − 1532 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
392
+ − 1533 *-bsdi4* ) opsys=bsdos4 ;;
110
+ − 1534 *-bsdi3* ) opsys=bsdos3 ;;
0
+ − 1535 *-bsdi2.1* ) opsys=bsdos2-1 ;;
+ − 1536 *-bsdi2* ) opsys=bsdos2 ;;
460
+ − 1537 *-sco3.2v5* ) opsys=sco5 ;;
422
+ − 1538 *-sysv5* ) opsys=sco7 ;;
70
+ − 1539 *-386bsd* ) opsys=386bsd ;;
+ − 1540 *-freebsd* ) opsys=freebsd ;;
0
+ − 1541 *-nextstep* ) opsys=nextstep ;;
398
+ − 1542 *-pc-cygwin* ) opsys=cygwin32 ;;
+ − 1543 *-pc-mingw* ) opsys=mingw32 ;
+ − 1544 test -z "$with_tty" && with_tty="no";;
149
+ − 1545 esac
0
+ − 1546 ;;
+ − 1547
149
+ − 1548 m68k-*-linux* ) machine=m68k opsys=linux ;;
+ − 1549
0
+ − 1550 esac
+ − 1551
442
+ − 1552 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
505
+ − 1553
+ − 1554 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
442
+ − 1555
+ − 1556 if test -r "${srcdir}/src/m/${machine}.h"; then
+ − 1557 machfile="m/${machine}.h"
+ − 1558 { test "$extra_verbose" = "yes" && cat << EOF
+ − 1559 Defining config_machfile = "$machfile"
+ − 1560 EOF
+ − 1561 cat >> confdefs.h <<EOF
+ − 1562 #define config_machfile "$machfile"
+ − 1563 EOF
+ − 1564 }
+ − 1565
+ − 1566 else
+ − 1567 echo "XEmacs has no builtin knowledge of \`$machine' machines."
+ − 1568 echo "Using configure-time autodetection only."
+ − 1569 fi
+ − 1570
+ − 1571 if test -r "${srcdir}/src/s/${opsys}.h"; then
+ − 1572 opsysfile="s/${opsys}.h"
+ − 1573 { test "$extra_verbose" = "yes" && cat << EOF
+ − 1574 Defining config_opsysfile = "$opsysfile"
+ − 1575 EOF
+ − 1576 cat >> confdefs.h <<EOF
+ − 1577 #define config_opsysfile "$opsysfile"
+ − 1578 EOF
+ − 1579 }
+ − 1580
+ − 1581 else
+ − 1582 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
+ − 1583 echo "Using configure-time autodetection only."
+ − 1584 fi
+ − 1585
0
+ − 1586
1161
+ − 1587 if test -z "$pdump"; then
+ − 1588 case "$opsys" in
1259
+ − 1589 linux* ) pdump=yes ;; darwin ) pdump=yes ;; *) pdump=no ;;
1161
+ − 1590 esac
+ − 1591 fi
+ − 1592
173
+ − 1593 if test -z "$dynamic"; then
+ − 1594 case "$opsys" in
388
+ − 1595 hpux* | sunos4* ) dynamic=no ;;
173
+ − 1596 *) dynamic=yes ;;
+ − 1597 esac
+ − 1598 fi
+ − 1599 if test "$dynamic" = "yes"; then
149
+ − 1600 case "$opsys" in
72
+ − 1601 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
173
+ − 1602 decosf* ) ld_call_shared="-call_shared" ;;
1259
+ − 1603 darwin ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1604 Defining DLSYM_NEEDS_UNDERSCORE
+ − 1605 EOF
+ − 1606 cat >> confdefs.h <<\EOF
+ − 1607 #define DLSYM_NEEDS_UNDERSCORE 1
+ − 1608 EOF
+ − 1609 }
+ − 1610 ;;
0
+ − 1611 esac
173
+ − 1612 else case "$opsys" in
187
+ − 1613 sol2 )
173
+ − 1614 echo "Static linking is not supported on Solaris 2."
+ − 1615 echo "Rerun configure without specifying --dynamic=no."
+ − 1616 exit 1 ;;
+ − 1617 linux ) ld_call_shared="-Bstatic" ;;
+ − 1618 decosf* ) ld_call_shared="-non_shared" ;;
0
+ − 1619 esac
+ − 1620 fi
+ − 1621
207
+ − 1622 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
+ − 1623
280
+ − 1624 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
173
+ − 1625 { test "$extra_verbose" = "yes" && cat << EOF
177
+ − 1626 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
173
+ − 1627 EOF
+ − 1628 cat >> confdefs.h <<EOF
177
+ − 1629 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
173
+ − 1630 EOF
+ − 1631 }
+ − 1632
+ − 1633
0
+ − 1634
151
+ − 1635 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
284
+ − 1636 if test "$with_workshop $with_tooltalk" = "yes no"; then
+ − 1637 (echo "$progname: Usage error:"
+ − 1638 echo " " "--with-workshop requires --with-tooltalk"
+ − 1639 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
+ − 1640 elif test "$with_tooltalk" = "no" ; then with_workshop=no
+ − 1641 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
+ − 1642 fi
+ − 1643
151
+ − 1644 if test "$with_workshop" = "yes"; then
+ − 1645 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1646 Defining SUNPRO
+ − 1647 EOF
+ − 1648 cat >> confdefs.h <<\EOF
+ − 1649 #define SUNPRO 1
+ − 1650 EOF
+ − 1651 }
+ − 1652
+ − 1653 fi
+ − 1654
442
+ − 1655 if test "$with_clash_detection" != "no"; then
175
+ − 1656 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1657 Defining CLASH_DETECTION
+ − 1658 EOF
+ − 1659 cat >> confdefs.h <<\EOF
+ − 1660 #define CLASH_DETECTION 1
+ − 1661 EOF
+ − 1662 }
+ − 1663
+ − 1664 fi
+ − 1665
169
+ − 1666 test -n "$compiler" && CC="$compiler"
+ − 1667 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
+ − 1668 fi
149
+ − 1669
272
+ − 1670 test "${cflags-unset}" != unset && CFLAGS="$cflags"
+ − 1671 if test "${CFLAGS-unset}" != unset
+ − 1672 then cflags_specified=yes;
+ − 1673 else cflags_specified=no;
+ − 1674 fi
+ − 1675
1111
+ − 1676 if test "${cflags_warning-unset}" != unset
+ − 1677 then cflags_warning_specified=yes;
+ − 1678 else cflags_warning_specified=no;
+ − 1679 fi
+ − 1680
157
+ − 1681 xe_save_CFLAGS="$CFLAGS"
+ − 1682
149
+ − 1683 # Extract the first word of "gcc", so it can be a program name with args.
+ − 1684 set dummy gcc; ac_word=$2
+ − 1685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1259
+ − 1686 echo "configure:1688: checking for $ac_word" >&5
149
+ − 1687
+ − 1688 if test -n "$CC"; then
+ − 1689 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 1690 else
420
+ − 1691 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 1692 ac_dummy="$PATH"
+ − 1693 for ac_dir in $ac_dummy; do
149
+ − 1694 test -z "$ac_dir" && ac_dir=.
+ − 1695 if test -f $ac_dir/$ac_word; then
+ − 1696 ac_cv_prog_CC="gcc"
+ − 1697 break
+ − 1698 fi
+ − 1699 done
+ − 1700 IFS="$ac_save_ifs"
+ − 1701 fi
+ − 1702 CC="$ac_cv_prog_CC"
+ − 1703 if test -n "$CC"; then
+ − 1704 echo "$ac_t""$CC" 1>&6
+ − 1705 else
+ − 1706 echo "$ac_t""no" 1>&6
+ − 1707 fi
+ − 1708
+ − 1709 if test -z "$CC"; then
+ − 1710 # Extract the first word of "cc", so it can be a program name with args.
+ − 1711 set dummy cc; ac_word=$2
+ − 1712 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1259
+ − 1713 echo "configure:1715: checking for $ac_word" >&5
149
+ − 1714
+ − 1715 if test -n "$CC"; then
+ − 1716 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 1717 else
420
+ − 1718 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
149
+ − 1719 ac_prog_rejected=no
420
+ − 1720 ac_dummy="$PATH"
+ − 1721 for ac_dir in $ac_dummy; do
149
+ − 1722 test -z "$ac_dir" && ac_dir=.
+ − 1723 if test -f $ac_dir/$ac_word; then
+ − 1724 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
+ − 1725 ac_prog_rejected=yes
+ − 1726 continue
+ − 1727 fi
+ − 1728 ac_cv_prog_CC="cc"
+ − 1729 break
+ − 1730 fi
+ − 1731 done
+ − 1732 IFS="$ac_save_ifs"
+ − 1733 if test $ac_prog_rejected = yes; then
+ − 1734 # We found a bogon in the path, so make sure we never use it.
+ − 1735 set dummy $ac_cv_prog_CC
+ − 1736 shift
+ − 1737 if test $# -gt 0; then
+ − 1738 # We chose a different compiler from the bogus one.
+ − 1739 # However, it has the same basename, so the bogon will be chosen
+ − 1740 # first if we set CC to just the basename; use the full file name.
+ − 1741 shift
+ − 1742 set dummy "$ac_dir/$ac_word" "$@"
+ − 1743 shift
+ − 1744 ac_cv_prog_CC="$@"
+ − 1745 fi
+ − 1746 fi
+ − 1747 fi
+ − 1748 CC="$ac_cv_prog_CC"
+ − 1749 if test -n "$CC"; then
+ − 1750 echo "$ac_t""$CC" 1>&6
+ − 1751 else
+ − 1752 echo "$ac_t""no" 1>&6
+ − 1753 fi
+ − 1754
420
+ − 1755 if test -z "$CC"; then
+ − 1756 case "`uname -s`" in
+ − 1757 *win32* | *WIN32*)
+ − 1758 # Extract the first word of "cl", so it can be a program name with args.
+ − 1759 set dummy cl; ac_word=$2
+ − 1760 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1259
+ − 1761 echo "configure:1763: checking for $ac_word" >&5
420
+ − 1762
+ − 1763 if test -n "$CC"; then
+ − 1764 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 1765 else
+ − 1766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 1767 ac_dummy="$PATH"
+ − 1768 for ac_dir in $ac_dummy; do
+ − 1769 test -z "$ac_dir" && ac_dir=.
+ − 1770 if test -f $ac_dir/$ac_word; then
+ − 1771 ac_cv_prog_CC="cl"
+ − 1772 break
+ − 1773 fi
+ − 1774 done
+ − 1775 IFS="$ac_save_ifs"
+ − 1776 fi
+ − 1777 CC="$ac_cv_prog_CC"
+ − 1778 if test -n "$CC"; then
+ − 1779 echo "$ac_t""$CC" 1>&6
+ − 1780 else
+ − 1781 echo "$ac_t""no" 1>&6
+ − 1782 fi
+ − 1783 ;;
+ − 1784 esac
+ − 1785 fi
149
+ − 1786 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
+ − 1787 fi
+ − 1788
+ − 1789 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1259
+ − 1790 echo "configure:1792: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
70
+ − 1791
0
+ − 1792 ac_ext=c
151
+ − 1793 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
+ − 1794 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
+ − 1795 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
149
+ − 1796 ac_cpp='$CPP '"$xe_cppflags"
151
+ − 1797 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
+ − 1798 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
149
+ − 1799 cross_compiling=no
+ − 1800
420
+ − 1801 cat > conftest.$ac_ext << EOF
+ − 1802
1259
+ − 1803 #line 1805 "configure"
420
+ − 1804 #include "confdefs.h"
+ − 1805
149
+ − 1806 main(){return(0);}
+ − 1807 EOF
1259
+ − 1808 if { (eval echo configure:1810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 1809 ac_cv_prog_cc_works=yes
+ − 1810 # If we can't run a trivial program, we are probably using a cross compiler.
+ − 1811 if (./conftest; exit) 2>/dev/null; then
+ − 1812 ac_cv_prog_cc_cross=no
+ − 1813 else
+ − 1814 ac_cv_prog_cc_cross=yes
0
+ − 1815 fi
149
+ − 1816 else
+ − 1817 echo "configure: failed program was:" >&5
+ − 1818 cat conftest.$ac_ext >&5
+ − 1819 ac_cv_prog_cc_works=no
+ − 1820 fi
+ − 1821 rm -fr conftest*
420
+ − 1822 ac_ext=c
+ − 1823 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
+ − 1824 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
+ − 1825 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
420
+ − 1826 ac_cpp='$CPP '"$xe_cppflags"
+ − 1827 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
+ − 1828 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
+ − 1829 cross_compiling=no
149
+ − 1830
+ − 1831 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
+ − 1832 if test $ac_cv_prog_cc_works = no; then
+ − 1833 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
+ − 1834 fi
+ − 1835 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1259
+ − 1836 echo "configure:1838: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
149
+ − 1837 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
+ − 1838 cross_compiling=$ac_cv_prog_cc_cross
+ − 1839
+ − 1840 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1259
+ − 1841 echo "configure:1843: checking whether we are using GNU C" >&5
149
+ − 1842
+ − 1843 cat > conftest.c <<EOF
+ − 1844 #ifdef __GNUC__
+ − 1845 yes;
+ − 1846 #endif
+ − 1847 EOF
1259
+ − 1848 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
149
+ − 1849 ac_cv_prog_gcc=yes
+ − 1850 else
+ − 1851 ac_cv_prog_gcc=no
+ − 1852 fi
+ − 1853
+ − 1854 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
+ − 1855
+ − 1856 if test $ac_cv_prog_gcc = yes; then
+ − 1857 GCC=yes
420
+ − 1858 else
+ − 1859 GCC=
+ − 1860 fi
+ − 1861
+ − 1862 ac_test_CFLAGS="${CFLAGS+set}"
+ − 1863 ac_save_CFLAGS="$CFLAGS"
+ − 1864 CFLAGS=
+ − 1865 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1259
+ − 1866 echo "configure:1868: checking whether ${CC-cc} accepts -g" >&5
149
+ − 1867
+ − 1868 echo 'void f(){}' > conftest.c
+ − 1869 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
+ − 1870 ac_cv_prog_cc_g=yes
+ − 1871 else
+ − 1872 ac_cv_prog_cc_g=no
+ − 1873 fi
+ − 1874 rm -f conftest*
+ − 1875
+ − 1876
+ − 1877 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
420
+ − 1878 if test "$ac_test_CFLAGS" = set; then
+ − 1879 CFLAGS="$ac_save_CFLAGS"
+ − 1880 elif test $ac_cv_prog_cc_g = yes; then
+ − 1881 if test "$GCC" = yes; then
149
+ − 1882 CFLAGS="-g -O2"
0
+ − 1883 else
420
+ − 1884 CFLAGS="-g"
+ − 1885 fi
+ − 1886 else
+ − 1887 if test "$GCC" = yes; then
149
+ − 1888 CFLAGS="-O2"
420
+ − 1889 else
+ − 1890 CFLAGS=
+ − 1891 fi
149
+ − 1892 fi
169
+ − 1893
+ − 1894 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
149
+ − 1895 CC=${NON_GNU_CC-cc}
+ − 1896 # Extract the first word of "gcc", so it can be a program name with args.
+ − 1897 set dummy gcc; ac_word=$2
+ − 1898 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1259
+ − 1899 echo "configure:1901: checking for $ac_word" >&5
149
+ − 1900
+ − 1901 if test -n "$CC"; then
+ − 1902 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 1903 else
420
+ − 1904 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 1905 ac_dummy="$PATH"
+ − 1906 for ac_dir in $ac_dummy; do
0
+ − 1907 test -z "$ac_dir" && ac_dir=.
+ − 1908 if test -f $ac_dir/$ac_word; then
149
+ − 1909 ac_cv_prog_CC="gcc"
+ − 1910 break
+ − 1911 fi
+ − 1912 done
+ − 1913 IFS="$ac_save_ifs"
+ − 1914 fi
+ − 1915 CC="$ac_cv_prog_CC"
+ − 1916 if test -n "$CC"; then
+ − 1917 echo "$ac_t""$CC" 1>&6
+ − 1918 else
+ − 1919 echo "$ac_t""no" 1>&6
+ − 1920 fi
+ − 1921
+ − 1922 if test -z "$CC"; then
+ − 1923 # Extract the first word of "cc", so it can be a program name with args.
+ − 1924 set dummy cc; ac_word=$2
+ − 1925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1259
+ − 1926 echo "configure:1928: checking for $ac_word" >&5
157
+ − 1927
+ − 1928 if test -n "$CC"; then
+ − 1929 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 1930 else
420
+ − 1931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
157
+ − 1932 ac_prog_rejected=no
420
+ − 1933 ac_dummy="$PATH"
+ − 1934 for ac_dir in $ac_dummy; do
157
+ − 1935 test -z "$ac_dir" && ac_dir=.
+ − 1936 if test -f $ac_dir/$ac_word; then
+ − 1937 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
+ − 1938 ac_prog_rejected=yes
+ − 1939 continue
+ − 1940 fi
+ − 1941 ac_cv_prog_CC="cc"
+ − 1942 break
+ − 1943 fi
+ − 1944 done
+ − 1945 IFS="$ac_save_ifs"
+ − 1946 if test $ac_prog_rejected = yes; then
+ − 1947 # We found a bogon in the path, so make sure we never use it.
+ − 1948 set dummy $ac_cv_prog_CC
+ − 1949 shift
+ − 1950 if test $# -gt 0; then
+ − 1951 # We chose a different compiler from the bogus one.
+ − 1952 # However, it has the same basename, so the bogon will be chosen
+ − 1953 # first if we set CC to just the basename; use the full file name.
+ − 1954 shift
+ − 1955 set dummy "$ac_dir/$ac_word" "$@"
+ − 1956 shift
+ − 1957 ac_cv_prog_CC="$@"
+ − 1958 fi
+ − 1959 fi
+ − 1960 fi
+ − 1961 CC="$ac_cv_prog_CC"
+ − 1962 if test -n "$CC"; then
+ − 1963 echo "$ac_t""$CC" 1>&6
+ − 1964 else
+ − 1965 echo "$ac_t""no" 1>&6
+ − 1966 fi
+ − 1967
420
+ − 1968 if test -z "$CC"; then
+ − 1969 case "`uname -s`" in
+ − 1970 *win32* | *WIN32*)
+ − 1971 # Extract the first word of "cl", so it can be a program name with args.
+ − 1972 set dummy cl; ac_word=$2
+ − 1973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1259
+ − 1974 echo "configure:1976: checking for $ac_word" >&5
420
+ − 1975
+ − 1976 if test -n "$CC"; then
+ − 1977 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 1978 else
+ − 1979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 1980 ac_dummy="$PATH"
+ − 1981 for ac_dir in $ac_dummy; do
+ − 1982 test -z "$ac_dir" && ac_dir=.
+ − 1983 if test -f $ac_dir/$ac_word; then
+ − 1984 ac_cv_prog_CC="cl"
+ − 1985 break
+ − 1986 fi
+ − 1987 done
+ − 1988 IFS="$ac_save_ifs"
+ − 1989 fi
+ − 1990 CC="$ac_cv_prog_CC"
+ − 1991 if test -n "$CC"; then
+ − 1992 echo "$ac_t""$CC" 1>&6
+ − 1993 else
+ − 1994 echo "$ac_t""no" 1>&6
+ − 1995 fi
+ − 1996 ;;
+ − 1997 esac
+ − 1998 fi
157
+ − 1999 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
+ − 2000 fi
+ − 2001
+ − 2002 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1259
+ − 2003 echo "configure:2005: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
157
+ − 2004
+ − 2005 ac_ext=c
+ − 2006 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
+ − 2007 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
+ − 2008 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
157
+ − 2009 ac_cpp='$CPP '"$xe_cppflags"
+ − 2010 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
+ − 2011 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
+ − 2012 cross_compiling=no
+ − 2013
420
+ − 2014 cat > conftest.$ac_ext << EOF
+ − 2015
1259
+ − 2016 #line 2018 "configure"
420
+ − 2017 #include "confdefs.h"
+ − 2018
157
+ − 2019 main(){return(0);}
+ − 2020 EOF
1259
+ − 2021 if { (eval echo configure:2023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
157
+ − 2022 ac_cv_prog_cc_works=yes
+ − 2023 # If we can't run a trivial program, we are probably using a cross compiler.
+ − 2024 if (./conftest; exit) 2>/dev/null; then
+ − 2025 ac_cv_prog_cc_cross=no
+ − 2026 else
+ − 2027 ac_cv_prog_cc_cross=yes
+ − 2028 fi
+ − 2029 else
+ − 2030 echo "configure: failed program was:" >&5
+ − 2031 cat conftest.$ac_ext >&5
+ − 2032 ac_cv_prog_cc_works=no
+ − 2033 fi
+ − 2034 rm -fr conftest*
420
+ − 2035 ac_ext=c
+ − 2036 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
+ − 2037 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
+ − 2038 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
420
+ − 2039 ac_cpp='$CPP '"$xe_cppflags"
+ − 2040 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
+ − 2041 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
+ − 2042 cross_compiling=no
157
+ − 2043
+ − 2044 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
+ − 2045 if test $ac_cv_prog_cc_works = no; then
+ − 2046 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
+ − 2047 fi
+ − 2048 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1259
+ − 2049 echo "configure:2051: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
157
+ − 2050 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
+ − 2051 cross_compiling=$ac_cv_prog_cc_cross
+ − 2052
+ − 2053 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1259
+ − 2054 echo "configure:2056: checking whether we are using GNU C" >&5
157
+ − 2055
+ − 2056 cat > conftest.c <<EOF
+ − 2057 #ifdef __GNUC__
+ − 2058 yes;
+ − 2059 #endif
+ − 2060 EOF
1259
+ − 2061 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
157
+ − 2062 ac_cv_prog_gcc=yes
+ − 2063 else
+ − 2064 ac_cv_prog_gcc=no
+ − 2065 fi
+ − 2066
+ − 2067 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
+ − 2068
+ − 2069 if test $ac_cv_prog_gcc = yes; then
+ − 2070 GCC=yes
420
+ − 2071 else
+ − 2072 GCC=
+ − 2073 fi
+ − 2074
+ − 2075 ac_test_CFLAGS="${CFLAGS+set}"
+ − 2076 ac_save_CFLAGS="$CFLAGS"
+ − 2077 CFLAGS=
+ − 2078 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1259
+ − 2079 echo "configure:2081: checking whether ${CC-cc} accepts -g" >&5
157
+ − 2080
+ − 2081 echo 'void f(){}' > conftest.c
+ − 2082 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
+ − 2083 ac_cv_prog_cc_g=yes
+ − 2084 else
+ − 2085 ac_cv_prog_cc_g=no
+ − 2086 fi
+ − 2087 rm -f conftest*
+ − 2088
+ − 2089
+ − 2090 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
420
+ − 2091 if test "$ac_test_CFLAGS" = set; then
+ − 2092 CFLAGS="$ac_save_CFLAGS"
+ − 2093 elif test $ac_cv_prog_cc_g = yes; then
+ − 2094 if test "$GCC" = yes; then
157
+ − 2095 CFLAGS="-g -O2"
+ − 2096 else
420
+ − 2097 CFLAGS="-g"
+ − 2098 fi
+ − 2099 else
+ − 2100 if test "$GCC" = yes; then
157
+ − 2101 CFLAGS="-O2"
420
+ − 2102 else
+ − 2103 CFLAGS=
+ − 2104 fi
157
+ − 2105 fi
+ − 2106
169
+ − 2107 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
157
+ − 2108 CC=gcc
+ − 2109 # Extract the first word of "gcc", so it can be a program name with args.
+ − 2110 set dummy gcc; ac_word=$2
+ − 2111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1259
+ − 2112 echo "configure:2114: checking for $ac_word" >&5
157
+ − 2113
+ − 2114 if test -n "$CC"; then
+ − 2115 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 2116 else
420
+ − 2117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 2118 ac_dummy="$PATH"
+ − 2119 for ac_dir in $ac_dummy; do
157
+ − 2120 test -z "$ac_dir" && ac_dir=.
+ − 2121 if test -f $ac_dir/$ac_word; then
+ − 2122 ac_cv_prog_CC="gcc"
+ − 2123 break
+ − 2124 fi
+ − 2125 done
+ − 2126 IFS="$ac_save_ifs"
+ − 2127 fi
+ − 2128 CC="$ac_cv_prog_CC"
+ − 2129 if test -n "$CC"; then
+ − 2130 echo "$ac_t""$CC" 1>&6
+ − 2131 else
+ − 2132 echo "$ac_t""no" 1>&6
+ − 2133 fi
+ − 2134
+ − 2135 if test -z "$CC"; then
+ − 2136 # Extract the first word of "cc", so it can be a program name with args.
+ − 2137 set dummy cc; ac_word=$2
+ − 2138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1259
+ − 2139 echo "configure:2141: checking for $ac_word" >&5
149
+ − 2140
+ − 2141 if test -n "$CC"; then
+ − 2142 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 2143 else
420
+ − 2144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
149
+ − 2145 ac_prog_rejected=no
420
+ − 2146 ac_dummy="$PATH"
+ − 2147 for ac_dir in $ac_dummy; do
149
+ − 2148 test -z "$ac_dir" && ac_dir=.
+ − 2149 if test -f $ac_dir/$ac_word; then
+ − 2150 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
+ − 2151 ac_prog_rejected=yes
+ − 2152 continue
+ − 2153 fi
+ − 2154 ac_cv_prog_CC="cc"
+ − 2155 break
+ − 2156 fi
+ − 2157 done
+ − 2158 IFS="$ac_save_ifs"
+ − 2159 if test $ac_prog_rejected = yes; then
+ − 2160 # We found a bogon in the path, so make sure we never use it.
+ − 2161 set dummy $ac_cv_prog_CC
+ − 2162 shift
+ − 2163 if test $# -gt 0; then
+ − 2164 # We chose a different compiler from the bogus one.
+ − 2165 # However, it has the same basename, so the bogon will be chosen
+ − 2166 # first if we set CC to just the basename; use the full file name.
+ − 2167 shift
+ − 2168 set dummy "$ac_dir/$ac_word" "$@"
+ − 2169 shift
+ − 2170 ac_cv_prog_CC="$@"
+ − 2171 fi
+ − 2172 fi
+ − 2173 fi
+ − 2174 CC="$ac_cv_prog_CC"
+ − 2175 if test -n "$CC"; then
+ − 2176 echo "$ac_t""$CC" 1>&6
+ − 2177 else
+ − 2178 echo "$ac_t""no" 1>&6
+ − 2179 fi
+ − 2180
420
+ − 2181 if test -z "$CC"; then
+ − 2182 case "`uname -s`" in
+ − 2183 *win32* | *WIN32*)
+ − 2184 # Extract the first word of "cl", so it can be a program name with args.
+ − 2185 set dummy cl; ac_word=$2
+ − 2186 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1259
+ − 2187 echo "configure:2189: checking for $ac_word" >&5
420
+ − 2188
+ − 2189 if test -n "$CC"; then
+ − 2190 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 2191 else
+ − 2192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 2193 ac_dummy="$PATH"
+ − 2194 for ac_dir in $ac_dummy; do
+ − 2195 test -z "$ac_dir" && ac_dir=.
+ − 2196 if test -f $ac_dir/$ac_word; then
+ − 2197 ac_cv_prog_CC="cl"
+ − 2198 break
+ − 2199 fi
+ − 2200 done
+ − 2201 IFS="$ac_save_ifs"
+ − 2202 fi
+ − 2203 CC="$ac_cv_prog_CC"
+ − 2204 if test -n "$CC"; then
+ − 2205 echo "$ac_t""$CC" 1>&6
+ − 2206 else
+ − 2207 echo "$ac_t""no" 1>&6
+ − 2208 fi
+ − 2209 ;;
+ − 2210 esac
+ − 2211 fi
149
+ − 2212 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
+ − 2213 fi
+ − 2214
+ − 2215 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1259
+ − 2216 echo "configure:2218: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
149
+ − 2217
+ − 2218 ac_ext=c
151
+ − 2219 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
+ − 2220 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
+ − 2221 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
149
+ − 2222 ac_cpp='$CPP '"$xe_cppflags"
151
+ − 2223 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
+ − 2224 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
149
+ − 2225 cross_compiling=no
+ − 2226
420
+ − 2227 cat > conftest.$ac_ext << EOF
+ − 2228
1259
+ − 2229 #line 2231 "configure"
420
+ − 2230 #include "confdefs.h"
+ − 2231
149
+ − 2232 main(){return(0);}
+ − 2233 EOF
1259
+ − 2234 if { (eval echo configure:2236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 2235 ac_cv_prog_cc_works=yes
+ − 2236 # If we can't run a trivial program, we are probably using a cross compiler.
+ − 2237 if (./conftest; exit) 2>/dev/null; then
+ − 2238 ac_cv_prog_cc_cross=no
+ − 2239 else
+ − 2240 ac_cv_prog_cc_cross=yes
+ − 2241 fi
+ − 2242 else
+ − 2243 echo "configure: failed program was:" >&5
+ − 2244 cat conftest.$ac_ext >&5
+ − 2245 ac_cv_prog_cc_works=no
+ − 2246 fi
+ − 2247 rm -fr conftest*
420
+ − 2248 ac_ext=c
+ − 2249 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
+ − 2250 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
+ − 2251 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
420
+ − 2252 ac_cpp='$CPP '"$xe_cppflags"
+ − 2253 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
+ − 2254 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
+ − 2255 cross_compiling=no
149
+ − 2256
+ − 2257 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
+ − 2258 if test $ac_cv_prog_cc_works = no; then
+ − 2259 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
+ − 2260 fi
+ − 2261 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1259
+ − 2262 echo "configure:2264: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
149
+ − 2263 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
+ − 2264 cross_compiling=$ac_cv_prog_cc_cross
+ − 2265
+ − 2266 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1259
+ − 2267 echo "configure:2269: checking whether we are using GNU C" >&5
149
+ − 2268
+ − 2269 cat > conftest.c <<EOF
+ − 2270 #ifdef __GNUC__
+ − 2271 yes;
+ − 2272 #endif
+ − 2273 EOF
1259
+ − 2274 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
149
+ − 2275 ac_cv_prog_gcc=yes
+ − 2276 else
+ − 2277 ac_cv_prog_gcc=no
+ − 2278 fi
+ − 2279
+ − 2280 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
+ − 2281
+ − 2282 if test $ac_cv_prog_gcc = yes; then
+ − 2283 GCC=yes
420
+ − 2284 else
+ − 2285 GCC=
+ − 2286 fi
+ − 2287
+ − 2288 ac_test_CFLAGS="${CFLAGS+set}"
+ − 2289 ac_save_CFLAGS="$CFLAGS"
+ − 2290 CFLAGS=
+ − 2291 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1259
+ − 2292 echo "configure:2294: checking whether ${CC-cc} accepts -g" >&5
149
+ − 2293
+ − 2294 echo 'void f(){}' > conftest.c
+ − 2295 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
+ − 2296 ac_cv_prog_cc_g=yes
+ − 2297 else
+ − 2298 ac_cv_prog_cc_g=no
+ − 2299 fi
+ − 2300 rm -f conftest*
+ − 2301
+ − 2302
+ − 2303 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
420
+ − 2304 if test "$ac_test_CFLAGS" = set; then
+ − 2305 CFLAGS="$ac_save_CFLAGS"
+ − 2306 elif test $ac_cv_prog_cc_g = yes; then
+ − 2307 if test "$GCC" = yes; then
149
+ − 2308 CFLAGS="-g -O2"
+ − 2309 else
420
+ − 2310 CFLAGS="-g"
+ − 2311 fi
+ − 2312 else
+ − 2313 if test "$GCC" = yes; then
149
+ − 2314 CFLAGS="-O2"
420
+ − 2315 else
+ − 2316 CFLAGS=
+ − 2317 fi
149
+ − 2318 fi
+ − 2319
157
+ − 2320 fi
+ − 2321 CFLAGS="$xe_save_CFLAGS"
149
+ − 2322
1123
+ − 2323 if test "$GCC" = "yes"; then
+ − 2324 cat > conftest.$ac_ext <<EOF
1259
+ − 2325 #line 2327 "configure"
1123
+ − 2326 #include "confdefs.h"
+ − 2327 int main () {
+ − 2328 #if __GNUC__ >= 3
+ − 2329 return 11;
+ − 2330 #else
+ − 2331 return 0;
+ − 2332 #endif
+ − 2333 }
+ − 2334 EOF
1259
+ − 2335 if { (eval echo configure:2337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
1123
+ − 2336 then
+ − 2337 :
+ − 2338 else
+ − 2339 conftest_rc="$?"
+ − 2340 echo "configure: failed program was:" >&5
+ − 2341 cat conftest.$ac_ext >&5
+ − 2342 rm -fr conftest*
+ − 2343 case "$conftest_rc" in
+ − 2344 11) echo "You appear to be using GCC version 3 or above."; __GCC3=yes ;;
+ − 2345 esac
+ − 2346 fi
+ − 2347 rm -fr conftest*
+ − 2348 fi
+ − 2349
171
+ − 2350
+ − 2351 test -n "$CPP" -a -d "$CPP" && CPP=
+ − 2352
169
+ − 2353 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
149
+ − 2354
+ − 2355 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1259
+ − 2356 echo "configure:2358: checking how to run the C preprocessor" >&5
149
+ − 2357 # On Suns, sometimes $CPP names a directory.
+ − 2358 if test -n "$CPP" && test -d "$CPP"; then
+ − 2359 CPP=
+ − 2360 fi
0
+ − 2361 if test -z "$CPP"; then
149
+ − 2362
0
+ − 2363 # This must be in double quotes, not single quotes, because CPP may get
149
+ − 2364 # substituted into the Makefile and "${CC-cc}" will confuse make.
0
+ − 2365 CPP="${CC-cc} -E"
149
+ − 2366 # On the NeXT, cc -E runs the code through the compiler's parser,
+ − 2367 # not just through cpp.
+ − 2368 cat > conftest.$ac_ext <<EOF
1259
+ − 2369 #line 2371 "configure"
149
+ − 2370 #include "confdefs.h"
+ − 2371 #include <assert.h>
0
+ − 2372 Syntax Error
+ − 2373 EOF
149
+ − 2374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1259
+ − 2375 { (eval echo configure:2377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 2376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 2377 if test -z "$ac_err"; then
+ − 2378 :
+ − 2379 else
+ − 2380 echo "$ac_err" >&5
+ − 2381 echo "configure: failed program was:" >&5
+ − 2382 cat conftest.$ac_ext >&5
+ − 2383 rm -rf conftest*
+ − 2384 CPP="${CC-cc} -E -traditional-cpp"
+ − 2385 cat > conftest.$ac_ext <<EOF
1259
+ − 2386 #line 2388 "configure"
149
+ − 2387 #include "confdefs.h"
+ − 2388 #include <assert.h>
+ − 2389 Syntax Error
+ − 2390 EOF
+ − 2391 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1259
+ − 2392 { (eval echo configure:2394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 2393 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 2394 if test -z "$ac_err"; then
+ − 2395 :
+ − 2396 else
+ − 2397 echo "$ac_err" >&5
+ − 2398 echo "configure: failed program was:" >&5
+ − 2399 cat conftest.$ac_ext >&5
+ − 2400 rm -rf conftest*
+ − 2401 CPP="${CC-cc} -nologo -E"
+ − 2402 cat > conftest.$ac_ext <<EOF
1259
+ − 2403 #line 2405 "configure"
420
+ − 2404 #include "confdefs.h"
+ − 2405 #include <assert.h>
+ − 2406 Syntax Error
+ − 2407 EOF
+ − 2408 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1259
+ − 2409 { (eval echo configure:2411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 2410 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 2411 if test -z "$ac_err"; then
+ − 2412 :
+ − 2413 else
149
+ − 2414 echo "$ac_err" >&5
+ − 2415 echo "configure: failed program was:" >&5
+ − 2416 cat conftest.$ac_ext >&5
0
+ − 2417 rm -rf conftest*
+ − 2418 CPP=/lib/cpp
+ − 2419 fi
+ − 2420 rm -f conftest*
+ − 2421 fi
+ − 2422 rm -f conftest*
420
+ − 2423 fi
+ − 2424 rm -f conftest*
149
+ − 2425 ac_cv_prog_CPP="$CPP"
+ − 2426 CPP="$ac_cv_prog_CPP"
+ − 2427 else
+ − 2428 ac_cv_prog_CPP="$CPP"
+ − 2429 fi
+ − 2430 echo "$ac_t""$CPP" 1>&6
+ − 2431
+ − 2432
442
+ − 2433
157
+ − 2434 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1259
+ − 2435 echo "configure:2437: checking for AIX" >&5
+ − 2436 cat > conftest.$ac_ext <<EOF
+ − 2437 #line 2439 "configure"
157
+ − 2438 #include "confdefs.h"
+ − 2439 #ifdef _AIX
+ − 2440 yes
+ − 2441 #endif
+ − 2442
+ − 2443 EOF
+ − 2444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 2445 egrep "yes" >/dev/null 2>&1; then
+ − 2446 rm -rf conftest*
+ − 2447 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2448 Defining _ALL_SOURCE
+ − 2449 EOF
+ − 2450 cat >> confdefs.h <<\EOF
+ − 2451 #define _ALL_SOURCE 1
+ − 2452 EOF
+ − 2453 }
+ − 2454
+ − 2455 else
+ − 2456 rm -rf conftest*
+ − 2457 echo "$ac_t""no" 1>&6
+ − 2458 fi
+ − 2459 rm -f conftest*
+ − 2460
442
+ − 2461
410
+ − 2462
+ − 2463 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
1259
+ − 2464 echo "configure:2466: checking for GNU libc" >&5
+ − 2465 cat > conftest.$ac_ext <<EOF
+ − 2466 #line 2468 "configure"
406
+ − 2467 #include "confdefs.h"
243
+ − 2468 #include <features.h>
+ − 2469 int main() {
+ − 2470
+ − 2471 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
+ − 2472 #error Not a GNU libc system :-(
+ − 2473 ******* ======= ******** &&&&&&&&
+ − 2474 #endif
+ − 2475
+ − 2476 ; return 0; }
+ − 2477 EOF
1259
+ − 2478 if { (eval echo configure:2480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
243
+ − 2479 rm -rf conftest*
+ − 2480 have_glibc=yes
+ − 2481 else
+ − 2482 echo "configure: failed program was:" >&5
+ − 2483 cat conftest.$ac_ext >&5
+ − 2484 rm -rf conftest*
+ − 2485 have_glibc=no
+ − 2486 fi
+ − 2487 rm -f conftest*
+ − 2488 echo "$ac_t""$have_glibc" 1>&6
272
+ − 2489 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2490 Defining _GNU_SOURCE
+ − 2491 EOF
+ − 2492 cat >> confdefs.h <<\EOF
+ − 2493 #define _GNU_SOURCE 1
+ − 2494 EOF
+ − 2495 }
+ − 2496
243
+ − 2497
442
+ − 2498 case "$opsys" in
+ − 2499 sol2)
+ − 2500 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2501 Defining __EXTENSIONS__
+ − 2502 EOF
+ − 2503 cat >> confdefs.h <<\EOF
+ − 2504 #define __EXTENSIONS__ 1
+ − 2505 EOF
+ − 2506 }
+ − 2507
+ − 2508 if test "$os_release" -ge 55; then
+ − 2509 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2510 Defining _XOPEN_SOURCE = 500
+ − 2511 EOF
+ − 2512 cat >> confdefs.h <<\EOF
+ − 2513 #define _XOPEN_SOURCE 500
+ − 2514 EOF
+ − 2515 }
+ − 2516
+ − 2517 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2518 Defining _XOPEN_SOURCE_EXTENDED
+ − 2519 EOF
+ − 2520 cat >> confdefs.h <<\EOF
+ − 2521 #define _XOPEN_SOURCE_EXTENDED 1
+ − 2522 EOF
+ − 2523 }
+ − 2524
+ − 2525 fi ;;
+ − 2526 linux)
+ − 2527 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2528 Defining _POSIX_C_SOURCE = 199506L
+ − 2529 EOF
+ − 2530 cat >> confdefs.h <<\EOF
+ − 2531 #define _POSIX_C_SOURCE 199506L
+ − 2532 EOF
+ − 2533 }
+ − 2534
+ − 2535 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2536 Defining _XOPEN_SOURCE = 500
+ − 2537 EOF
+ − 2538 cat >> confdefs.h <<\EOF
+ − 2539 #define _XOPEN_SOURCE 500
+ − 2540 EOF
+ − 2541 }
+ − 2542
+ − 2543 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2544 Defining _XOPEN_SOURCE_EXTENDED
+ − 2545 EOF
+ − 2546 cat >> confdefs.h <<\EOF
+ − 2547 #define _XOPEN_SOURCE_EXTENDED 1
+ − 2548 EOF
+ − 2549 }
+ − 2550
+ − 2551 ;;
+ − 2552 esac
+ − 2553
+ − 2554 cat > conftest.$ac_ext <<EOF
1259
+ − 2555 #line 2557 "configure"
373
+ − 2556 #include "confdefs.h"
+ − 2557 int main () {
+ − 2558 #if defined __SUNPRO_C
+ − 2559 return 11;
+ − 2560 #elif defined __DECC
+ − 2561 return 12;
442
+ − 2562 #elif defined __USLC__ && defined __SCO_VERSION__
+ − 2563 return 13;
373
+ − 2564 #else
+ − 2565 return 0;
+ − 2566 #endif
+ − 2567 }
+ − 2568 EOF
1259
+ − 2569 if { (eval echo configure:2571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
373
+ − 2570 then
+ − 2571 :
+ − 2572 else
+ − 2573 conftest_rc="$?"
+ − 2574 echo "configure: failed program was:" >&5
+ − 2575 cat conftest.$ac_ext >&5
+ − 2576 rm -fr conftest*
+ − 2577 case "$conftest_rc" in
+ − 2578 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
+ − 2579 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
442
+ − 2580 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
373
+ − 2581 esac
+ − 2582 fi
+ − 2583 rm -fr conftest*
+ − 2584
157
+ − 2585
0
+ − 2586
149
+ − 2587
+ − 2588 echo "Extracting information from the machine- and system-dependent headers..."
+ − 2589
+ − 2590 tempcname="conftest.c"
+ − 2591
+ − 2592
+ − 2593
442
+ − 2594 cat > $tempcname < confdefs.h
+ − 2595 cat >> $tempcname <<EOF
149
+ − 2596 #define NOT_C_CODE
+ − 2597 #define C_SWITCH_SITE
+ − 2598 #define C_SWITCH_X_SITE
+ − 2599 #define LD_SWITCH_SITE
+ − 2600 #define LD_SWITCH_X_SITE
+ − 2601 #define LD_SWITCH_X_SITE_AUX
284
+ − 2602 #define OS_RELEASE $os_release
442
+ − 2603
+ − 2604 #ifdef config_opsysfile
284
+ − 2605 #include "$srcdir/src/$opsysfile"
442
+ − 2606 #endif
+ − 2607
+ − 2608 #ifdef config_machfile
284
+ − 2609 #include "$srcdir/src/$machfile"
442
+ − 2610 #endif
149
+ − 2611
+ − 2612 #ifndef LIBS_MACHINE
151
+ − 2613 #define LIBS_MACHINE
149
+ − 2614 #endif
+ − 2615 configure___ libs_machine=LIBS_MACHINE
+ − 2616
+ − 2617 #ifndef LIBS_SYSTEM
151
+ − 2618 #define LIBS_SYSTEM
149
+ − 2619 #endif
+ − 2620 configure___ libs_system=LIBS_SYSTEM
+ − 2621
+ − 2622 #ifndef LIBS_TERMCAP
151
+ − 2623 #define LIBS_TERMCAP
149
+ − 2624 #endif
+ − 2625 configure___ libs_termcap=LIBS_TERMCAP
+ − 2626
+ − 2627 #ifndef LIB_STANDARD
151
+ − 2628 #define LIB_STANDARD
149
+ − 2629 #endif
+ − 2630 configure___ libs_standard=LIB_STANDARD
+ − 2631
+ − 2632
163
+ − 2633 #ifndef OBJECTS_MACHINE
+ − 2634 #define OBJECTS_MACHINE
+ − 2635 #endif
+ − 2636 configure___ objects_machine=OBJECTS_MACHINE
+ − 2637
+ − 2638 #ifndef OBJECTS_SYSTEM
+ − 2639 #define OBJECTS_SYSTEM
+ − 2640 #endif
+ − 2641 configure___ objects_system=OBJECTS_SYSTEM
+ − 2642
+ − 2643
149
+ − 2644 #ifndef C_SWITCH_MACHINE
151
+ − 2645 #define C_SWITCH_MACHINE
149
+ − 2646 #endif
+ − 2647 configure___ c_switch_machine=C_SWITCH_MACHINE
+ − 2648
157
+ − 2649 #ifndef C_SWITCH_SYSTEM
+ − 2650 #define C_SWITCH_SYSTEM
+ − 2651 #endif
+ − 2652 configure___ c_switch_system=C_SWITCH_SYSTEM
+ − 2653
+ − 2654
+ − 2655 #ifndef LD_SWITCH_MACHINE
+ − 2656 #define LD_SWITCH_MACHINE
+ − 2657 #endif
+ − 2658 configure___ ld_switch_machine=LD_SWITCH_MACHINE
+ − 2659
+ − 2660 #ifndef LD_SWITCH_SYSTEM
+ − 2661 #define LD_SWITCH_SYSTEM
+ − 2662 #endif
+ − 2663 configure___ ld_switch_system=LD_SWITCH_SYSTEM
+ − 2664
149
+ − 2665
+ − 2666 #ifndef UNEXEC
561
+ − 2667 #define UNEXEC
149
+ − 2668 #endif
+ − 2669 configure___ unexec=UNEXEC
+ − 2670
+ − 2671
561
+ − 2672 #ifndef SYSTEM_TYPE
+ − 2673 #define SYSTEM_TYPE
+ − 2674 #endif
+ − 2675 configure___ system_type=SYSTEM_TYPE
+ − 2676
+ − 2677
163
+ − 2678 #ifndef LD_SWITCH_SHARED
+ − 2679 #define LD_SWITCH_SHARED "-c"
+ − 2680 #endif
+ − 2681 configure___ ld_switch_shared=LD_SWITCH_SHARED
+ − 2682
+ − 2683
442
+ − 2684 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
+ − 2685 configure___ ordinary_ld=ORDINARY_LD
+ − 2686
163
+ − 2687 #ifdef ORDINARY_LINK
442
+ − 2688 #define LD ORDINARY_LD
163
+ − 2689 #else /* no ORDINARY LINK */
+ − 2690 #ifdef COFF_ENCAPSULATE
284
+ − 2691 #define LD "\$(CC) -nostdlib"
163
+ − 2692 #else /* not COFF_ENCAPSULATE */
+ − 2693 #ifdef LINKER
+ − 2694 #define LD LINKER
+ − 2695 #else /* ! defined (LINKER) */
+ − 2696 #define LD "ld"
+ − 2697 #endif /* ! defined (LINKER) */
+ − 2698 #endif /* ! defined (COFF_ENCAPSULATE) */
+ − 2699 #endif /* not ORDINARY_LINK */
+ − 2700 configure___ ld=LD
+ − 2701
+ − 2702 #ifndef LIB_GCC
+ − 2703 #define LIB_GCC
+ − 2704 #endif
+ − 2705 configure___ lib_gcc=LIB_GCC
+ − 2706
+ − 2707 #ifndef LD_TEXT_START_ADDR
+ − 2708 #define LD_TEXT_START_ADDR
+ − 2709 #endif
+ − 2710 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
+ − 2711
+ − 2712
+ − 2713 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
+ − 2714 #ifdef NO_REMAP
+ − 2715 #ifdef COFF_ENCAPSULATE
+ − 2716 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
+ − 2717 #else /* ! defined (COFF_ENCAPSULATE) */
+ − 2718 #define START_FILES "pre-crt0.o /lib/crt0.o"
+ − 2719 #endif /* ! defined (COFF_ENCAPSULATE) */
+ − 2720 #else /* ! defined (NO_REMAP) */
+ − 2721 #define START_FILES "ecrt0.o"
+ − 2722 #endif /* ! defined (NO_REMAP) */
+ − 2723 #endif /* no ORDINARY_LINK */
+ − 2724 #ifndef START_FILES
+ − 2725 #define START_FILES
+ − 2726 #endif
+ − 2727 configure___ start_files=START_FILES
+ − 2728
153
+ − 2729 #ifdef ORDINARY_LINK
+ − 2730 configure___ ordinary_link=yes
+ − 2731 #else
+ − 2732 configure___ ordinary_link=no
+ − 2733 #endif
+ − 2734
149
+ − 2735 #ifdef SYSTEM_MALLOC
+ − 2736 configure___ system_malloc=yes
+ − 2737 #else
+ − 2738 configure___ system_malloc=no
+ − 2739 #endif
+ − 2740
+ − 2741 #ifdef TERMINFO
+ − 2742 configure___ have_terminfo=yes
+ − 2743 #else
+ − 2744 configure___ have_terminfo=no
+ − 2745 #endif
+ − 2746
+ − 2747 #ifdef MAIL_USE_FLOCK
+ − 2748 configure___ mail_use_flock=yes
+ − 2749 #else
+ − 2750 configure___ mail_use_flock=no
+ − 2751 #endif
+ − 2752
+ − 2753 #ifdef MAIL_USE_LOCKF
+ − 2754 configure___ mail_use_lockf=yes
+ − 2755 #else
+ − 2756 configure___ mail_use_lockf=no
+ − 2757 #endif
+ − 2758
438
+ − 2759 #ifdef MAIL_USE_LOCKING
+ − 2760 configure___ mail_use_locking=yes
+ − 2761 #else
+ − 2762 configure___ mail_use_locking=no
+ − 2763 #endif
+ − 2764
398
+ − 2765 #ifdef HAVE_WIN32_PROCESSES
+ − 2766 configure___ win32_processes=yes
+ − 2767 #else
+ − 2768 configure___ win32_processes=no
+ − 2769 #endif
+ − 2770
284
+ − 2771 EOF
+ − 2772
380
+ − 2773 CPP=`eval "echo $CPP $CPPFLAGS"`
149
+ − 2774 eval `$CPP -Isrc $tempcname \
165
+ − 2775 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
153
+ − 2776
149
+ − 2777 rm $tempcname
+ − 2778
561
+ − 2779 test -z "$system_type" && \
+ − 2780 { test "$extra_verbose" = "yes" && cat << EOF
+ − 2781 Defining SYSTEM_TYPE = "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
+ − 2782 EOF
+ − 2783 cat >> confdefs.h <<EOF
+ − 2784 #define SYSTEM_TYPE "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
+ − 2785 EOF
+ − 2786 }
+ − 2787
+ − 2788
+ − 2789 test -z "$unexec" && pdump=yes
+ − 2790
442
+ − 2791 if test "$pdump" = "yes"; then
+ − 2792 ordinary_link="yes"
+ − 2793 ld="${ordinary_ld}"
+ − 2794 start_files=
+ − 2795 libs_standard=
+ − 2796 unexec=
+ − 2797 lib_gcc=
+ − 2798 fi
+ − 2799
163
+ − 2800 test "$extra_verbose" = "yes" && \
201
+ − 2801 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo ""
163
+ − 2802
458
+ − 2803 case "$opsys" in mingw* | cygwin*)
452
+ − 2804 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
+ − 2805 cygwin_include=`eval "dirname $cygwin_include"` ;
+ − 2806 cygwin_include="-I$cygwin_include/../include" ;
462
+ − 2807 extra_includes="$cygwin_include/mingw $cygwin_include" ;
458
+ − 2808 case "$opsys" in mingw*)
452
+ − 2809 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
+ − 2810 esac
458
+ − 2811 ;;
438
+ − 2812 esac
+ − 2813
153
+ − 2814 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
+ − 2815
442
+ − 2816
+ − 2817 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
+ − 2818
+ − 2819 if test "$__USLC__" = yes; then
+ − 2820 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
1259
+ − 2821 echo "configure:2823: checking for whether the -Kalloca compiler flag is needed" >&5
442
+ − 2822 need_kalloca=no
+ − 2823 cat > conftest.$ac_ext <<EOF
1259
+ − 2824 #line 2826 "configure"
442
+ − 2825 #include "confdefs.h"
+ − 2826
+ − 2827 int main() {
+ − 2828 void *x = alloca(4);
+ − 2829 ; return 0; }
+ − 2830 EOF
1259
+ − 2831 if { (eval echo configure:2833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 2832 rm -rf conftest*
+ − 2833 :
+ − 2834 else
+ − 2835 echo "configure: failed program was:" >&5
+ − 2836 cat conftest.$ac_ext >&5
+ − 2837 rm -rf conftest*
+ − 2838
+ − 2839 xe_save_c_switch_system="$c_switch_system"
+ − 2840 c_switch_system="$c_switch_system -Kalloca"
+ − 2841 cat > conftest.$ac_ext <<EOF
1259
+ − 2842 #line 2844 "configure"
442
+ − 2843 #include "confdefs.h"
+ − 2844
+ − 2845 int main() {
+ − 2846 void *x = alloca(4);
+ − 2847 ; return 0; }
+ − 2848 EOF
1259
+ − 2849 if { (eval echo configure:2851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 2850 rm -rf conftest*
+ − 2851 need_kalloca=yes
+ − 2852 else
+ − 2853 echo "configure: failed program was:" >&5
+ − 2854 cat conftest.$ac_ext >&5
+ − 2855 fi
+ − 2856 rm -f conftest*
+ − 2857 c_switch_system="$xe_save_c_switch_system"
+ − 2858 fi
+ − 2859 rm -f conftest*
+ − 2860 echo "$ac_t""$need_kalloca" 1>&6
+ − 2861 test "$need_kalloca" = "yes" && c_switch_system="$c_switch_system -Kalloca" && if test "$extra_verbose" = "yes"; then echo " Appending \"-Kalloca\" to \$c_switch_system"; fi
+ − 2862 fi
373
+ − 2863
272
+ − 2864 if test "$cflags_specified" = "no"; then
1123
+ − 2865 if test "$GCC" = "yes"; then
1111
+ − 2866 CFLAGS="-g -O3"
398
+ − 2867 elif test "$__SUNPRO_C" = "yes"; then
157
+ − 2868 case "$opsys" in
1111
+ − 2869 sol2 ) CFLAGS="-xO4" ;;
+ − 2870 sunos4* ) CFLAGS="-xO2" ;;
157
+ − 2871 esac
373
+ − 2872 elif test "$__DECC" = "yes"; then
+ − 2873 CFLAGS="-O3"
207
+ − 2874 elif test "$CC" = "xlc"; then
1111
+ − 2875 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qro -qmaxmem=20000"
373
+ − 2876 else
+ − 2877 CFLAGS="-O" ; fi
272
+ − 2878 fi
+ − 2879
1111
+ − 2880
+ − 2881 if test "$cflags_warning_specified" = "no"; then
1123
+ − 2882 if test "$GCC" = "yes"; then
1111
+ − 2883 cflags_warning="-Wall -Wno-switch -Winline -Wmissing-prototypes"
+ − 2884 cflags_warning="$cflags_warning -Wsign-compare"
1123
+ − 2885 cflags_warning="$cflags_warning -Wundef -Wstrict-prototypes"
+ − 2886 if test "$__GCC3" = "yes"; then
+ − 2887 cflags_warning="$cflags_warning -Wpacked"
+ − 2888 fi
1111
+ − 2889 if test "$xemacs_compiler" != "g++"; then
+ − 2890 cflags_warning="$cflags_warning -Wshadow -Wmissing-declarations"
+ − 2891 else
+ − 2892 cflags_warning="$cflags_warning -Weffc++"
+ − 2893 fi
+ − 2894 test "$have_glibc" != "yes" && \
+ − 2895 cflags_warning="$cflags_warning -Wpointer-arith"
+ − 2896 elif test "$__SUNPRO_C" = "yes"; then
+ − 2897 case "$opsys" in
+ − 2898 sol2 ) cflags_warning="-v" ;;
+ − 2899 esac
+ − 2900 elif test "$CC" = "xlc"; then
+ − 2901 cflags_warning="-qinfo"
+ − 2902 fi
+ − 2903 fi
+ − 2904
+ − 2905 CFLAGS="$cflags_warning $CFLAGS"
+ − 2906
442
+ − 2907 if test "$GCC" = "yes"; then
+ − 2908 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
1259
+ − 2909 echo "configure:2911: checking for buggy gcc versions" >&5
442
+ − 2910 GCC_VERSION=`$CC --version`
+ − 2911 case `uname -s`:`uname -m`:$GCC_VERSION in
+ − 2912 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
+ − 2913 case "$CFLAGS" in
+ − 2914 *-O2*|*-O3*)
+ − 2915 case "$CFLAGS" in
+ − 2916 *-fno-schedule-insns*) ;;
+ − 2917 *)
+ − 2918 echo "$ac_t""yes" 1>&6
+ − 2919 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
+ − 2920 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
+ − 2921 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
+ − 2922 ;;
+ − 2923 esac
+ − 2924 ;;
+ − 2925 esac
+ − 2926 ;;
+ − 2927 Linux:alpha:egcs-2.91.*)
+ − 2928 echo "$ac_t""yes" 1>&6
+ − 2929 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
+ − 2930 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
+ − 2931 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
+ − 2932 ;;
+ − 2933 *:i*86*:2.7.2*)
448
+ − 2934 case "$CFLAGS" in
+ − 2935 *-O2*|*-O3*)
+ − 2936 case "$GCC_VERSION" in
+ − 2937 2.7.2)
442
+ − 2938 case "$CFLAGS" in
+ − 2939 *-fno-strength-reduce*) ;;
+ − 2940 *)
+ − 2941 echo "$ac_t""yes" 1>&6
+ − 2942 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
+ − 2943 echo "configure: warning: -fno-strength-reduce." 1>&2
+ − 2944 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
+ − 2945 ;;
+ − 2946 esac
+ − 2947 ;;
+ − 2948 esac
448
+ − 2949 case "$CFLAGS" in
+ − 2950 *-fno-caller-saves*) ;;
+ − 2951 *)
+ − 2952 echo "$ac_t""yes" 1>&6
+ − 2953 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
+ − 2954 echo "configure: warning: -fno-caller-saves." 1>&2
+ − 2955 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
+ − 2956 ;;
+ − 2957 esac
442
+ − 2958 ;;
+ − 2959 esac
+ − 2960 ;;
+ − 2961 esac
+ − 2962 echo "$ac_t""no" 1>&6
+ − 2963 fi
+ − 2964
853
+ − 2965 if test "$pdump" != "yes"; then
+ − 2966 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6
1259
+ − 2967 echo "configure:2969: checking for \"-z nocombreloc\" linker flag" >&5
853
+ − 2968 case "`ld --help 2>&1`" in
+ − 2969 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
+ − 2970 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;;
+ − 2971 *) echo "$ac_t""no" 1>&6 ;;
+ − 2972 esac
+ − 2973 fi
+ − 2974
+ − 2975
272
+ − 2976
+ − 2977 if test "$GCC" = "yes"; then
+ − 2978 set x $ld_switch_system; shift; ld_switch_system=""
+ − 2979 while test -n "$1"; do
+ − 2980 case $1 in
380
+ − 2981 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
+ − 2982 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
272
+ − 2983 -Xlinker* ) ;;
+ − 2984 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
+ − 2985 esac
+ − 2986 shift
+ − 2987 done
157
+ − 2988 fi
151
+ − 2989
163
+ − 2990 if test "$GCC" = "yes"; then
272
+ − 2991 set x $ld_switch_machine; shift; ld_switch_machine=""
+ − 2992 while test -n "$1"; do
+ − 2993 case $1 in
380
+ − 2994 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
+ − 2995 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
163
+ − 2996 -Xlinker* ) ;;
272
+ − 2997 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
163
+ − 2998 esac
272
+ − 2999 shift
163
+ − 3000 done
272
+ − 3001 fi
+ − 3002
+ − 3003 if test "$GCC" = "yes"; then
853
+ − 3004 set x $ld_switch_site; shift; ld_switch_site=""
+ − 3005 while test -n "$1"; do
+ − 3006 case $1 in
+ − 3007 -L | -l | -u ) ld_switch_site="$ld_switch_site $1 $2"; shift ;;
+ − 3008 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_site="$ld_switch_site $1" ;;
+ − 3009 -Xlinker* ) ;;
+ − 3010 * ) ld_switch_site="$ld_switch_site -Xlinker $1" ;;
+ − 3011 esac
+ − 3012 shift
+ − 3013 done
+ − 3014 fi
+ − 3015
+ − 3016 if test "$GCC" = "yes"; then
272
+ − 3017 set x $LDFLAGS; shift; LDFLAGS=""
+ − 3018 while test -n "$1"; do
+ − 3019 case $1 in
380
+ − 3020 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
+ − 3021 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
163
+ − 3022 -Xlinker* ) ;;
272
+ − 3023 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
163
+ − 3024 esac
272
+ − 3025 shift
163
+ − 3026 done
272
+ − 3027 fi
+ − 3028
+ − 3029 if test "$GCC" = "yes"; then
+ − 3030 set x $ld_call_shared; shift; ld_call_shared=""
+ − 3031 while test -n "$1"; do
+ − 3032 case $1 in
380
+ − 3033 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
+ − 3034 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
173
+ − 3035 -Xlinker* ) ;;
272
+ − 3036 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
173
+ − 3037 esac
272
+ − 3038 shift
173
+ − 3039 done
163
+ − 3040 fi
+ − 3041
+ − 3042 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
+ − 3043 echo " xemacs will be linked with \"$objects_machine\""
+ − 3044 fi
+ − 3045 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
+ − 3046 echo " xemacs will be linked with \"$objects_system\""
+ − 3047 fi
442
+ − 3048 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
151
+ − 3049 echo " xemacs will be linked with \"$unexec\""
+ − 3050 fi
442
+ − 3051 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
+ − 3052 echo " xemacs will be linked with \"dumper.o\""
+ − 3053 fi
151
+ − 3054
163
+ − 3055 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
1259
+ − 3056 echo "configure:3058: checking for dynodump" >&5
163
+ − 3057 if test "$unexec" != "unexsol2.o"; then
+ − 3058 echo "$ac_t""no" 1>&6
+ − 3059 else
+ − 3060 echo "$ac_t""yes" 1>&6
+ − 3061 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3062 Defining DYNODUMP
+ − 3063 EOF
+ − 3064 cat >> confdefs.h <<\EOF
+ − 3065 #define DYNODUMP 1
+ − 3066 EOF
+ − 3067 }
+ − 3068
+ − 3069 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
175
+ − 3070 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
163
+ − 3071 case "$machine" in
+ − 3072 sparc ) dynodump_arch=sparc ;;
+ − 3073 *86* ) dynodump_arch=i386 ;;
+ − 3074 powerpc ) dynodump_arch=ppc ;;
+ − 3075 esac
+ − 3076 test "$GCC" = "yes" && ld_switch_site="$ld_switch_site -fno-gnu-linker" && if test "$extra_verbose" = "yes"; then echo " Appending \"-fno-gnu-linker\" to \$ld_switch_site"; fi
+ − 3077 fi
+ − 3078
+ − 3079
274
+ − 3080 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
272
+ − 3081
207
+ − 3082 if test "$unexec" = "unexaix.o"; then
219
+ − 3083 if test "$dynamic" = "no"; then
207
+ − 3084 start_flags="-Wl,-bnso,-bnodelcsect"
209
+ − 3085 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
272
+ − 3086 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
207
+ − 3087 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
+ − 3088 done
+ − 3089 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
+ − 3090 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
+ − 3091 done
294
+ − 3092
+ − 3093 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
1259
+ − 3094 echo "configure:3096: checking for terminateAndUnload in -lC" >&5
294
+ − 3095 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
+ − 3096
+ − 3097 xe_check_libs=" -lC "
+ − 3098 cat > conftest.$ac_ext <<EOF
1259
+ − 3099 #line 3101 "configure"
294
+ − 3100 #include "confdefs.h"
+ − 3101 /* Override any gcc2 internal prototype to avoid an error. */
+ − 3102 /* We use char because int might match the return type of a gcc2
+ − 3103 builtin and then its argument prototype would still apply. */
+ − 3104 char terminateAndUnload();
+ − 3105
+ − 3106 int main() {
+ − 3107 terminateAndUnload()
+ − 3108 ; return 0; }
+ − 3109 EOF
1259
+ − 3110 if { (eval echo configure:3112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
294
+ − 3111 rm -rf conftest*
+ − 3112 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 3113 else
+ − 3114 echo "configure: failed program was:" >&5
+ − 3115 cat conftest.$ac_ext >&5
+ − 3116 rm -rf conftest*
+ − 3117 eval "ac_cv_lib_$ac_lib_var=no"
+ − 3118 fi
+ − 3119 rm -f conftest*
+ − 3120 xe_check_libs=""
+ − 3121
+ − 3122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 3123 echo "$ac_t""yes" 1>&6
+ − 3124 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
+ − 3125 else
+ − 3126 echo "$ac_t""no" 1>&6
+ − 3127 fi
+ − 3128
+ − 3129
272
+ − 3130 fi
207
+ − 3131 elif test -n "$ld_text_start_addr"; then
+ − 3132 start_flags="-T $ld_text_start_addr -e __start"
+ − 3133 fi
+ − 3134
+ − 3135
+ − 3136
163
+ − 3137
+ − 3138 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
+ − 3139 test -z "$linker" && linker='$(CC) -nostdlib'
175
+ − 3140 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
163
+ − 3141 fi
+ − 3142 test "$GCC" != "yes" && lib_gcc=
+ − 3143
+ − 3144
+ − 3145
151
+ − 3146
209
+ − 3147
380
+ − 3148 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
151
+ − 3149 if test -n "$site_libraries"; then
+ − 3150 for arg in $site_libraries; do
380
+ − 3151 case "$arg" in
+ − 3152 -* ) ;;
+ − 3153 * ) test -d "$arg" || \
384
+ − 3154 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
380
+ − 3155 arg="-L${arg}" ;;
+ − 3156 esac
151
+ − 3157 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
+ − 3158 done
+ − 3159 fi
+ − 3160
380
+ − 3161 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
272
+ − 3162 if test -n "$site_includes"; then
151
+ − 3163 for arg in $site_includes; do
380
+ − 3164 case "$arg" in
+ − 3165 -* ) ;;
+ − 3166 * ) test -d "$arg" || \
384
+ − 3167 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
380
+ − 3168 arg="-I${arg}" ;;
+ − 3169 esac
151
+ − 3170 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
+ − 3171 done
+ − 3172 fi
+ − 3173
380
+ − 3174 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
+ − 3175 if test -n "$site_prefixes"; then
+ − 3176 for dir in $site_prefixes; do
398
+ − 3177 lib_dir="${dir}/lib"
416
+ − 3178 inc_dir="${dir}/include"
380
+ − 3179 if test ! -d "$dir"; then
384
+ − 3180 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
380
+ − 3181 elif test ! -d "$lib_dir"; then
384
+ − 3182 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
380
+ − 3183 else
414
+ − 3184 if test -d "$inc_dir"; then
+ − 3185 c_switch_site="$c_switch_site "-I$inc_dir"" && if test "$extra_verbose" = "yes"; then echo " Appending \""-I$inc_dir"\" to \$c_switch_site"; fi
+ − 3186 fi
380
+ − 3187 ld_switch_site="$ld_switch_site "-L$lib_dir"" && if test "$extra_verbose" = "yes"; then echo " Appending \""-L$lib_dir"\" to \$ld_switch_site"; fi
+ − 3188 fi
+ − 3189 done
+ − 3190 fi
+ − 3191
157
+ − 3192
151
+ − 3193 for dir in "/usr/ccs/lib"; do
440
+ − 3194 test -d "$dir" && ld_switch_system="$ld_switch_system -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_system"; fi
151
+ − 3195 done
+ − 3196
380
+ − 3197 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
272
+ − 3198 if test -n "$site_runtime_libraries"; then
165
+ − 3199 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
151
+ − 3200 export LD_RUN_PATH
+ − 3201 fi
+ − 3202
+ − 3203
440
+ − 3204
+ − 3205
+ − 3206
+ − 3207 if test -n "$add_runtime_path"; then :;
+ − 3208 elif test "$dynamic" = "no"; then add_runtime_path=no
151
+ − 3209 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
163
+ − 3210 else case "$opsys" in
373
+ − 3211 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
151
+ − 3212 * ) add_runtime_path=no ;;
+ − 3213 esac
+ − 3214 fi
+ − 3215
+ − 3216 if test "$add_runtime_path" = "yes"; then
+ − 3217 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
1259
+ − 3218 echo "configure:3220: checking "for runtime libraries flag"" >&5
373
+ − 3219 case "$opsys" in
377
+ − 3220 sol2 ) dash_r="-R" ;;
392
+ − 3221 decosf* | linux* | irix*) dash_r="-rpath " ;;
373
+ − 3222 *)
+ − 3223 dash_r=""
+ − 3224 for try_dash_r in "-R" "-R " "-rpath "; do
+ − 3225 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
+ − 3226
272
+ − 3227 if test "$GCC" = "yes"; then
+ − 3228 set x $xe_check_libs; shift; xe_check_libs=""
+ − 3229 while test -n "$1"; do
+ − 3230 case $1 in
380
+ − 3231 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
+ − 3232 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
272
+ − 3233 -Xlinker* ) ;;
+ − 3234 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
+ − 3235 esac
+ − 3236 shift
+ − 3237 done
+ − 3238 fi
373
+ − 3239 cat > conftest.$ac_ext <<EOF
1259
+ − 3240 #line 3242 "configure"
+ − 3241 #include "confdefs.h"
+ − 3242
+ − 3243 int main() {
+ − 3244
+ − 3245 ; return 0; }
+ − 3246 EOF
+ − 3247 if { (eval echo configure:3249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
151
+ − 3248 rm -rf conftest*
+ − 3249 dash_r="$try_dash_r"
+ − 3250 else
+ − 3251 echo "configure: failed program was:" >&5
+ − 3252 cat conftest.$ac_ext >&5
+ − 3253 fi
+ − 3254 rm -f conftest*
373
+ − 3255 xe_check_libs=""
+ − 3256 test -n "$dash_r" && break
+ − 3257 done ;;
+ − 3258 esac
151
+ − 3259 if test -n "$dash_r";
+ − 3260 then echo "$ac_t"""\"${dash_r}\""" 1>&6
+ − 3261 else echo "$ac_t""NONE" 1>&6
+ − 3262 fi
+ − 3263 fi
+ − 3264
163
+ − 3265 xe_add_unique_runpath_dir='
+ − 3266 xe_add_p=yes
+ − 3267 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
+ − 3268 done
+ − 3269 if test "$xe_add_p" = "yes"; then
+ − 3270 test -n "$runpath" && runpath="${runpath}:"
+ − 3271 runpath="${runpath}${xe_runpath_dir}"
+ − 3272 runpath_dirs="$runpath_dirs $xe_runpath_dir"
+ − 3273 fi'
+ − 3274
+ − 3275
151
+ − 3276
155
+ − 3277
151
+ − 3278 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
+ − 3279 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
+ − 3280 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
151
+ − 3281
163
+ − 3282 runpath="" runpath_dirs=""
155
+ − 3283 if test -n "$LD_RUN_PATH"; then
151
+ − 3284 runpath="$LD_RUN_PATH"
155
+ − 3285 elif test "$GCC" = "yes"; then
163
+ − 3286 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
+ − 3287 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
+ − 3288 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
+ − 3289 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
+ − 3290 case "$arg" in P,* | -L* | -R* )
159
+ − 3291 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
163
+ − 3292 {
155
+ − 3293 xe_runpath_dir="$dir"
163
+ − 3294 test "$xe_runpath_dir" != "/lib" -a \
155
+ − 3295 "$xe_runpath_dir" != "/usr/lib" -a \
371
+ − 3296 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
+ − 3297 eval "$xe_add_unique_runpath_dir"
+ − 3298 }
155
+ − 3299 done ;;
+ − 3300 esac
+ − 3301 done
163
+ − 3302 ld_switch_run="$ld_switch_run_save"
155
+ − 3303 rm -f conftest*
151
+ − 3304 else
155
+ − 3305 for arg in $ld_switch_site $ld_switch_x_site; do
163
+ − 3306 case "$arg" in -L*) {
159
+ − 3307 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
+ − 3308 test "$xe_runpath_dir" != "/lib" -a \
155
+ − 3309 "$xe_runpath_dir" != "/usr/lib" -a \
371
+ − 3310 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
+ − 3311 eval "$xe_add_unique_runpath_dir"
+ − 3312 };; esac
151
+ − 3313 done
163
+ − 3314 if test "$opsys $need_motif" = "sol2 yes"; then
+ − 3315 xe_runpath_dir="/opt/SUNWdt/lib";
+ − 3316 eval "$xe_add_unique_runpath_dir";
+ − 3317 fi
155
+ − 3318 fi
151
+ − 3319 if test -n "$runpath"; then
+ − 3320 ld_switch_run="${dash_r}${runpath}"
272
+ − 3321
+ − 3322 if test "$GCC" = "yes"; then
+ − 3323 set x $ld_switch_run; shift; ld_switch_run=""
+ − 3324 while test -n "$1"; do
+ − 3325 case $1 in
380
+ − 3326 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
+ − 3327 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
272
+ − 3328 -Xlinker* ) ;;
+ − 3329 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
+ − 3330 esac
+ − 3331 shift
+ − 3332 done
+ − 3333 fi
151
+ − 3334 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
+ − 3335 fi
+ − 3336 fi
+ − 3337
+ − 3338
149
+ − 3339
+ − 3340 GNU_MALLOC=yes
261
+ − 3341 if test "$with_dlmalloc" != "no"; then
+ − 3342 doug_lea_malloc=yes
+ − 3343 else
+ − 3344 doug_lea_malloc=no
+ − 3345 fi
259
+ − 3346 after_morecore_hook_exists=yes
255
+ − 3347 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
1259
+ − 3348 echo "configure:3350: checking for malloc_set_state" >&5
+ − 3349
+ − 3350 cat > conftest.$ac_ext <<EOF
+ − 3351 #line 3353 "configure"
255
+ − 3352 #include "confdefs.h"
+ − 3353 /* System header to define __stub macros and hopefully few prototypes,
+ − 3354 which can conflict with char malloc_set_state(); below. */
+ − 3355 #include <assert.h>
+ − 3356 /* Override any gcc2 internal prototype to avoid an error. */
+ − 3357 /* We use char because int might match the return type of a gcc2
+ − 3358 builtin and then its argument prototype would still apply. */
+ − 3359 char malloc_set_state();
+ − 3360
+ − 3361 int main() {
+ − 3362
+ − 3363 /* The GNU C library defines this for functions which it implements
+ − 3364 to always fail with ENOSYS. Some functions are actually named
+ − 3365 something starting with __ and the normal name is an alias. */
+ − 3366 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
+ − 3367 choke me
+ − 3368 #else
+ − 3369 malloc_set_state();
+ − 3370 #endif
+ − 3371
+ − 3372 ; return 0; }
+ − 3373 EOF
1259
+ − 3374 if { (eval echo configure:3376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
255
+ − 3375 rm -rf conftest*
+ − 3376 eval "ac_cv_func_malloc_set_state=yes"
+ − 3377 else
+ − 3378 echo "configure: failed program was:" >&5
+ − 3379 cat conftest.$ac_ext >&5
+ − 3380 rm -rf conftest*
+ − 3381 eval "ac_cv_func_malloc_set_state=no"
+ − 3382 fi
+ − 3383 rm -f conftest*
+ − 3384
+ − 3385 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
+ − 3386 echo "$ac_t""yes" 1>&6
+ − 3387 :
+ − 3388 else
+ − 3389 echo "$ac_t""no" 1>&6
+ − 3390 doug_lea_malloc=no
+ − 3391 fi
+ − 3392
+ − 3393 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
1259
+ − 3394 echo "configure:3396: checking whether __after_morecore_hook exists" >&5
+ − 3395 cat > conftest.$ac_ext <<EOF
+ − 3396 #line 3398 "configure"
255
+ − 3397 #include "confdefs.h"
+ − 3398 extern void (* __after_morecore_hook)();
+ − 3399 int main() {
+ − 3400 __after_morecore_hook = 0
+ − 3401 ; return 0; }
+ − 3402 EOF
1259
+ − 3403 if { (eval echo configure:3405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
259
+ − 3404 rm -rf conftest*
+ − 3405 echo "$ac_t""yes" 1>&6
+ − 3406 else
+ − 3407 echo "configure: failed program was:" >&5
+ − 3408 cat conftest.$ac_ext >&5
+ − 3409 rm -rf conftest*
+ − 3410 echo "$ac_t""no" 1>&6
+ − 3411 after_morecore_hook_exists=no
255
+ − 3412 fi
+ − 3413 rm -f conftest*
149
+ − 3414 if test "$system_malloc" = "yes" ; then
+ − 3415 GNU_MALLOC=no
+ − 3416 GNU_MALLOC_reason="
442
+ − 3417 - The GNU allocators don't work with this system configuration."
181
+ − 3418 elif test "$with_system_malloc" = "yes" ; then
149
+ − 3419 GNU_MALLOC=no
+ − 3420 GNU_MALLOC_reason="
442
+ − 3421 - User chose not to use GNU allocators."
181
+ − 3422 elif test "$with_debug_malloc" = "yes" ; then
177
+ − 3423 GNU_MALLOC=no
+ − 3424 GNU_MALLOC_reason="
442
+ − 3425 - User chose to use Debugging Malloc."
+ − 3426 fi
+ − 3427
+ − 3428 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
+ − 3429 GNU_MALLOC_reason="
+ − 3430 - Using Doug Lea's new malloc from the GNU C Library."
255
+ − 3431 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3432 Defining DOUG_LEA_MALLOC
+ − 3433 EOF
+ − 3434 cat >> confdefs.h <<\EOF
+ − 3435 #define DOUG_LEA_MALLOC 1
+ − 3436 EOF
+ − 3437 }
+ − 3438
259
+ − 3439 if test "$after_morecore_hook_exists" = "no" ; then
+ − 3440 GNU_MALLOC_reason="
442
+ − 3441 - Using Doug Lea's new malloc from the Linux C Library."
259
+ − 3442 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3443 Defining _NO_MALLOC_WARNING_
+ − 3444 EOF
+ − 3445 cat >> confdefs.h <<\EOF
+ − 3446 #define _NO_MALLOC_WARNING_ 1
+ − 3447 EOF
+ − 3448 }
+ − 3449
+ − 3450 fi
255
+ − 3451 fi
+ − 3452
149
+ − 3453
267
+ − 3454
+ − 3455
149
+ − 3456 # Extract the first word of "ranlib", so it can be a program name with args.
+ − 3457 set dummy ranlib; ac_word=$2
+ − 3458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1259
+ − 3459 echo "configure:3461: checking for $ac_word" >&5
149
+ − 3460
+ − 3461 if test -n "$RANLIB"; then
+ − 3462 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
+ − 3463 else
420
+ − 3464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 3465 ac_dummy="$PATH"
+ − 3466 for ac_dir in $ac_dummy; do
0
+ − 3467 test -z "$ac_dir" && ac_dir=.
+ − 3468 if test -f $ac_dir/$ac_word; then
149
+ − 3469 ac_cv_prog_RANLIB="ranlib"
0
+ − 3470 break
+ − 3471 fi
+ − 3472 done
+ − 3473 IFS="$ac_save_ifs"
149
+ − 3474 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
+ − 3475 fi
+ − 3476 RANLIB="$ac_cv_prog_RANLIB"
+ − 3477 if test -n "$RANLIB"; then
+ − 3478 echo "$ac_t""$RANLIB" 1>&6
+ − 3479 else
+ − 3480 echo "$ac_t""no" 1>&6
+ − 3481 fi
+ − 3482
+ − 3483 ac_aux_dir=
+ − 3484 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
+ − 3485 if test -f $ac_dir/install-sh; then
+ − 3486 ac_aux_dir=$ac_dir
+ − 3487 ac_install_sh="$ac_aux_dir/install-sh -c"
+ − 3488 break
+ − 3489 elif test -f $ac_dir/install.sh; then
+ − 3490 ac_aux_dir=$ac_dir
+ − 3491 ac_install_sh="$ac_aux_dir/install.sh -c"
+ − 3492 break
+ − 3493 fi
+ − 3494 done
+ − 3495 if test -z "$ac_aux_dir"; then
+ − 3496 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
+ − 3497 fi
+ − 3498 ac_config_guess=$ac_aux_dir/config.guess
+ − 3499 ac_config_sub=$ac_aux_dir/config.sub
+ − 3500 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
+ − 3501
+ − 3502 # Find a good install program. We prefer a C program (faster),
+ − 3503 # so one script is as good as another. But avoid the broken or
+ − 3504 # incompatible versions:
+ − 3505 # SysV /etc/install, /usr/sbin/install
+ − 3506 # SunOS /usr/etc/install
+ − 3507 # IRIX /sbin/install
+ − 3508 # AIX /bin/install
420
+ − 3509 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
149
+ − 3510 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
+ − 3511 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+ − 3512 # ./install, which can be erroneously created by make from ./install.sh.
+ − 3513 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1259
+ − 3514 echo "configure:3516: checking for a BSD compatible install" >&5
149
+ − 3515 if test -z "$INSTALL"; then
+ − 3516
420
+ − 3517 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
0
+ − 3518 for ac_dir in $PATH; do
149
+ − 3519 # Account for people who put trailing slashes in PATH elements.
+ − 3520 case "$ac_dir/" in
+ − 3521 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
0
+ − 3522 *)
+ − 3523 # OSF1 and SCO ODT 3.0 have their own names for install.
420
+ − 3524 # Don't use installbsd from OSF since it installs stuff as root
+ − 3525 # by default.
+ − 3526 for ac_prog in ginstall scoinst install; do
0
+ − 3527 if test -f $ac_dir/$ac_prog; then
+ − 3528 if test $ac_prog = install &&
+ − 3529 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
+ − 3530 # AIX install. It has an incompatible calling convention.
+ − 3531 :
+ − 3532 else
149
+ − 3533 ac_cv_path_install="$ac_dir/$ac_prog -c"
0
+ − 3534 break 2
+ − 3535 fi
+ − 3536 fi
+ − 3537 done
+ − 3538 ;;
+ − 3539 esac
+ − 3540 done
149
+ − 3541 IFS="$ac_save_IFS"
+ − 3542
+ − 3543 if test "${ac_cv_path_install+set}" = set; then
+ − 3544 INSTALL="$ac_cv_path_install"
+ − 3545 else
+ − 3546 # As a last resort, use the slow shell script. We don't cache a
+ − 3547 # path for INSTALL within a source directory, because that will
+ − 3548 # break other packages using the cache if that directory is
+ − 3549 # removed, or if the path is relative.
+ − 3550 INSTALL="$ac_install_sh"
+ − 3551 fi
+ − 3552 fi
+ − 3553 echo "$ac_t""$INSTALL" 1>&6
+ − 3554
+ − 3555 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
0
+ − 3556 # It thinks the first close brace ends the variable substitution.
+ − 3557 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+ − 3558
420
+ − 3559 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
+ − 3560
0
+ − 3561 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+ − 3562
+ − 3563 for ac_prog in 'bison -y' byacc
+ − 3564 do
149
+ − 3565 # Extract the first word of "$ac_prog", so it can be a program name with args.
+ − 3566 set dummy $ac_prog; ac_word=$2
+ − 3567 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1259
+ − 3568 echo "configure:3570: checking for $ac_word" >&5
149
+ − 3569
+ − 3570 if test -n "$YACC"; then
+ − 3571 ac_cv_prog_YACC="$YACC" # Let the user override the test.
+ − 3572 else
420
+ − 3573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 3574 ac_dummy="$PATH"
+ − 3575 for ac_dir in $ac_dummy; do
0
+ − 3576 test -z "$ac_dir" && ac_dir=.
+ − 3577 if test -f $ac_dir/$ac_word; then
149
+ − 3578 ac_cv_prog_YACC="$ac_prog"
0
+ − 3579 break
+ − 3580 fi
+ − 3581 done
+ − 3582 IFS="$ac_save_ifs"
+ − 3583 fi
149
+ − 3584 YACC="$ac_cv_prog_YACC"
+ − 3585 if test -n "$YACC"; then
+ − 3586 echo "$ac_t""$YACC" 1>&6
+ − 3587 else
+ − 3588 echo "$ac_t""no" 1>&6
+ − 3589 fi
0
+ − 3590
+ − 3591 test -n "$YACC" && break
+ − 3592 done
+ − 3593 test -n "$YACC" || YACC="yacc"
+ − 3594
+ − 3595
911
+ − 3596 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h wchar.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/times.h sys/un.h ulimit.h unistd.h
120
+ − 3597 do
149
+ − 3598 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 3599 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1259
+ − 3600 echo "configure:3602: checking for $ac_hdr" >&5
+ − 3601
+ − 3602 cat > conftest.$ac_ext <<EOF
+ − 3603 #line 3605 "configure"
149
+ − 3604 #include "confdefs.h"
+ − 3605 #include <$ac_hdr>
+ − 3606 EOF
+ − 3607 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1259
+ − 3608 { (eval echo configure:3610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 3609 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 3610 if test -z "$ac_err"; then
+ − 3611 rm -rf conftest*
149
+ − 3612 eval "ac_cv_header_$ac_safe=yes"
+ − 3613 else
+ − 3614 echo "$ac_err" >&5
+ − 3615 echo "configure: failed program was:" >&5
+ − 3616 cat conftest.$ac_ext >&5
+ − 3617 rm -rf conftest*
+ − 3618 eval "ac_cv_header_$ac_safe=no"
+ − 3619 fi
+ − 3620 rm -f conftest*
+ − 3621 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 3622 echo "$ac_t""yes" 1>&6
+ − 3623 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 3624 { test "$extra_verbose" = "yes" && cat << EOF
+ − 3625 Defining $ac_tr_hdr
+ − 3626 EOF
+ − 3627 cat >> confdefs.h <<EOF
+ − 3628 #define $ac_tr_hdr 1
+ − 3629 EOF
+ − 3630 }
+ − 3631
+ − 3632 else
+ − 3633 echo "$ac_t""no" 1>&6
+ − 3634 fi
0
+ − 3635 done
+ − 3636
155
+ − 3637 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1259
+ − 3638 echo "configure:3640: checking for sys/wait.h that is POSIX.1 compatible" >&5
+ − 3639
+ − 3640 cat > conftest.$ac_ext <<EOF
+ − 3641 #line 3643 "configure"
155
+ − 3642 #include "confdefs.h"
+ − 3643 #include <sys/types.h>
+ − 3644 #include <sys/wait.h>
+ − 3645 #ifndef WEXITSTATUS
+ − 3646 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
+ − 3647 #endif
+ − 3648 #ifndef WIFEXITED
+ − 3649 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
+ − 3650 #endif
+ − 3651 int main() {
+ − 3652 int s;
+ − 3653 wait (&s);
+ − 3654 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
+ − 3655 ; return 0; }
+ − 3656 EOF
1259
+ − 3657 if { (eval echo configure:3659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
155
+ − 3658 rm -rf conftest*
+ − 3659 ac_cv_header_sys_wait_h=yes
+ − 3660 else
+ − 3661 echo "configure: failed program was:" >&5
+ − 3662 cat conftest.$ac_ext >&5
+ − 3663 rm -rf conftest*
+ − 3664 ac_cv_header_sys_wait_h=no
+ − 3665 fi
+ − 3666 rm -f conftest*
+ − 3667
+ − 3668 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
+ − 3669 if test $ac_cv_header_sys_wait_h = yes; then
+ − 3670 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3671 Defining HAVE_SYS_WAIT_H
+ − 3672 EOF
+ − 3673 cat >> confdefs.h <<\EOF
+ − 3674 #define HAVE_SYS_WAIT_H 1
+ − 3675 EOF
+ − 3676 }
+ − 3677
+ − 3678 fi
+ − 3679
149
+ − 3680 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1259
+ − 3681 echo "configure:3683: checking for ANSI C header files" >&5
+ − 3682
+ − 3683 cat > conftest.$ac_ext <<EOF
+ − 3684 #line 3686 "configure"
0
+ − 3685 #include "confdefs.h"
+ − 3686 #include <stdlib.h>
+ − 3687 #include <stdarg.h>
+ − 3688 #include <string.h>
+ − 3689 #include <float.h>
+ − 3690 EOF
149
+ − 3691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1259
+ − 3692 { (eval echo configure:3694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 3693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 3694 if test -z "$ac_err"; then
+ − 3695 rm -rf conftest*
149
+ − 3696 ac_cv_header_stdc=yes
+ − 3697 else
+ − 3698 echo "$ac_err" >&5
+ − 3699 echo "configure: failed program was:" >&5
+ − 3700 cat conftest.$ac_ext >&5
+ − 3701 rm -rf conftest*
+ − 3702 ac_cv_header_stdc=no
+ − 3703 fi
+ − 3704 rm -f conftest*
+ − 3705
+ − 3706 if test $ac_cv_header_stdc = yes; then
0
+ − 3707 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
149
+ − 3708 cat > conftest.$ac_ext <<EOF
1259
+ − 3709 #line 3711 "configure"
149
+ − 3710 #include "confdefs.h"
+ − 3711 #include <string.h>
+ − 3712 EOF
+ − 3713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 3714 egrep "memchr" >/dev/null 2>&1; then
+ − 3715 :
+ − 3716 else
+ − 3717 rm -rf conftest*
+ − 3718 ac_cv_header_stdc=no
+ − 3719 fi
+ − 3720 rm -f conftest*
+ − 3721
+ − 3722 fi
+ − 3723
+ − 3724 if test $ac_cv_header_stdc = yes; then
+ − 3725 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+ − 3726 cat > conftest.$ac_ext <<EOF
1259
+ − 3727 #line 3729 "configure"
149
+ − 3728 #include "confdefs.h"
+ − 3729 #include <stdlib.h>
+ − 3730 EOF
+ − 3731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 3732 egrep "free" >/dev/null 2>&1; then
+ − 3733 :
+ − 3734 else
+ − 3735 rm -rf conftest*
+ − 3736 ac_cv_header_stdc=no
+ − 3737 fi
+ − 3738 rm -f conftest*
+ − 3739
+ − 3740 fi
+ − 3741
+ − 3742 if test $ac_cv_header_stdc = yes; then
+ − 3743 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+ − 3744 cat > conftest.$ac_ext <<EOF
1259
+ − 3745 #line 3747 "configure"
0
+ − 3746 #include "confdefs.h"
+ − 3747 #include <ctype.h>
+ − 3748 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+ − 3749 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
149
+ − 3750 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
0
+ − 3751 int main () { int i; for (i = 0; i < 256; i++)
+ − 3752 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
+ − 3753 exit (0); }
+ − 3754
+ − 3755 EOF
1259
+ − 3756 if { (eval echo configure:3758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
+ − 3757 then
+ − 3758 :
+ − 3759 else
373
+ − 3760 conftest_rc="$?"
149
+ − 3761 echo "configure: failed program was:" >&5
+ − 3762 cat conftest.$ac_ext >&5
+ − 3763 rm -fr conftest*
+ − 3764 ac_cv_header_stdc=no
0
+ − 3765 fi
+ − 3766 rm -fr conftest*
149
+ − 3767 fi
+ − 3768
+ − 3769 echo "$ac_t""$ac_cv_header_stdc" 1>&6
+ − 3770 if test $ac_cv_header_stdc = yes; then
+ − 3771 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3772 Defining STDC_HEADERS
+ − 3773 EOF
+ − 3774 cat >> confdefs.h <<\EOF
+ − 3775 #define STDC_HEADERS 1
+ − 3776 EOF
+ − 3777 }
+ − 3778
+ − 3779 fi
+ − 3780
+ − 3781 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1259
+ − 3782 echo "configure:3784: checking whether time.h and sys/time.h may both be included" >&5
+ − 3783
+ − 3784 cat > conftest.$ac_ext <<EOF
+ − 3785 #line 3787 "configure"
0
+ − 3786 #include "confdefs.h"
+ − 3787 #include <sys/types.h>
+ − 3788 #include <sys/time.h>
+ − 3789 #include <time.h>
149
+ − 3790 int main() {
+ − 3791 struct tm *tp;
+ − 3792 ; return 0; }
+ − 3793 EOF
1259
+ − 3794 if { (eval echo configure:3796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 3795 rm -rf conftest*
+ − 3796 ac_cv_header_time=yes
+ − 3797 else
+ − 3798 echo "configure: failed program was:" >&5
+ − 3799 cat conftest.$ac_ext >&5
+ − 3800 rm -rf conftest*
+ − 3801 ac_cv_header_time=no
+ − 3802 fi
+ − 3803 rm -f conftest*
+ − 3804
+ − 3805 echo "$ac_t""$ac_cv_header_time" 1>&6
+ − 3806 if test $ac_cv_header_time = yes; then
+ − 3807 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3808 Defining TIME_WITH_SYS_TIME
+ − 3809 EOF
+ − 3810 cat >> confdefs.h <<\EOF
+ − 3811 #define TIME_WITH_SYS_TIME 1
+ − 3812 EOF
+ − 3813 }
+ − 3814
+ − 3815 fi
+ − 3816
+ − 3817 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
1259
+ − 3818 echo "configure:3820: checking for sys_siglist declaration in signal.h or unistd.h" >&5
+ − 3819
+ − 3820 cat > conftest.$ac_ext <<EOF
+ − 3821 #line 3823 "configure"
149
+ − 3822 #include "confdefs.h"
+ − 3823 #include <sys/types.h>
0
+ − 3824 #include <signal.h>
149
+ − 3825 /* NetBSD declares sys_siglist in unistd.h. */
0
+ − 3826 #ifdef HAVE_UNISTD_H
+ − 3827 #include <unistd.h>
+ − 3828 #endif
149
+ − 3829 int main() {
+ − 3830 char *msg = *(sys_siglist + 1);
+ − 3831 ; return 0; }
+ − 3832 EOF
1259
+ − 3833 if { (eval echo configure:3835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 3834 rm -rf conftest*
+ − 3835 ac_cv_decl_sys_siglist=yes
+ − 3836 else
+ − 3837 echo "configure: failed program was:" >&5
+ − 3838 cat conftest.$ac_ext >&5
+ − 3839 rm -rf conftest*
+ − 3840 ac_cv_decl_sys_siglist=no
+ − 3841 fi
+ − 3842 rm -f conftest*
+ − 3843
+ − 3844 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
+ − 3845 if test $ac_cv_decl_sys_siglist = yes; then
+ − 3846 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3847 Defining SYS_SIGLIST_DECLARED
+ − 3848 EOF
+ − 3849 cat >> confdefs.h <<\EOF
+ − 3850 #define SYS_SIGLIST_DECLARED 1
+ − 3851 EOF
+ − 3852 }
+ − 3853
+ − 3854 fi
+ − 3855
+ − 3856
460
+ − 3857
+ − 3858 echo $ac_n "checking for utime""... $ac_c" 1>&6
1259
+ − 3859 echo "configure:3861: checking for utime" >&5
+ − 3860 cat > conftest.$ac_ext <<EOF
+ − 3861 #line 3863 "configure"
460
+ − 3862 #include "confdefs.h"
+ − 3863 #include <sys/types.h>
0
+ − 3864 #include <utime.h>
460
+ − 3865 int main() {
+ − 3866 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
+ − 3867 ; return 0; }
+ − 3868 EOF
1259
+ − 3869 if { (eval echo configure:3871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 3870 rm -rf conftest*
+ − 3871 echo "$ac_t""yes" 1>&6
+ − 3872 { test "$extra_verbose" = "yes" && cat << \EOF
460
+ − 3873 Defining HAVE_UTIME
+ − 3874 EOF
+ − 3875 cat >> confdefs.h <<\EOF
+ − 3876 #define HAVE_UTIME 1
+ − 3877 EOF
+ − 3878 }
+ − 3879
+ − 3880 else
+ − 3881 echo "configure: failed program was:" >&5
+ − 3882 cat conftest.$ac_ext >&5
+ − 3883 rm -rf conftest*
+ − 3884 echo "$ac_t""no" 1>&6
+ − 3885 for ac_func in utimes
+ − 3886 do
+ − 3887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1259
+ − 3888 echo "configure:3890: checking for $ac_func" >&5
+ − 3889
+ − 3890 cat > conftest.$ac_ext <<EOF
+ − 3891 #line 3893 "configure"
460
+ − 3892 #include "confdefs.h"
+ − 3893 /* System header to define __stub macros and hopefully few prototypes,
+ − 3894 which can conflict with char $ac_func(); below. */
+ − 3895 #include <assert.h>
+ − 3896 /* Override any gcc2 internal prototype to avoid an error. */
+ − 3897 /* We use char because int might match the return type of a gcc2
+ − 3898 builtin and then its argument prototype would still apply. */
+ − 3899 char $ac_func();
+ − 3900
+ − 3901 int main() {
+ − 3902
+ − 3903 /* The GNU C library defines this for functions which it implements
+ − 3904 to always fail with ENOSYS. Some functions are actually named
+ − 3905 something starting with __ and the normal name is an alias. */
+ − 3906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 3907 choke me
+ − 3908 #else
+ − 3909 $ac_func();
+ − 3910 #endif
+ − 3911
+ − 3912 ; return 0; }
+ − 3913 EOF
1259
+ − 3914 if { (eval echo configure:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
460
+ − 3915 rm -rf conftest*
+ − 3916 eval "ac_cv_func_$ac_func=yes"
+ − 3917 else
+ − 3918 echo "configure: failed program was:" >&5
+ − 3919 cat conftest.$ac_ext >&5
+ − 3920 rm -rf conftest*
+ − 3921 eval "ac_cv_func_$ac_func=no"
+ − 3922 fi
+ − 3923 rm -f conftest*
+ − 3924
+ − 3925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 3926 echo "$ac_t""yes" 1>&6
+ − 3927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 3928 { test "$extra_verbose" = "yes" && cat << EOF
+ − 3929 Defining $ac_tr_func
+ − 3930 EOF
+ − 3931 cat >> confdefs.h <<EOF
+ − 3932 #define $ac_tr_func 1
+ − 3933 EOF
+ − 3934 }
+ − 3935
+ − 3936 else
+ − 3937 echo "$ac_t""no" 1>&6
+ − 3938 fi
+ − 3939 done
+ − 3940
+ − 3941 fi
+ − 3942 rm -f conftest*
+ − 3943
149
+ − 3944
+ − 3945 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1259
+ − 3946 echo "configure:3948: checking return type of signal handlers" >&5
+ − 3947
+ − 3948 cat > conftest.$ac_ext <<EOF
+ − 3949 #line 3951 "configure"
0
+ − 3950 #include "confdefs.h"
+ − 3951 #include <sys/types.h>
+ − 3952 #include <signal.h>
+ − 3953 #ifdef signal
+ − 3954 #undef signal
+ − 3955 #endif
149
+ − 3956 #ifdef __cplusplus
+ − 3957 extern "C" void (*signal (int, void (*)(int)))(int);
+ − 3958 #else
+ − 3959 void (*signal ()) ();
+ − 3960 #endif
+ − 3961
+ − 3962 int main() {
+ − 3963 int i;
+ − 3964 ; return 0; }
+ − 3965 EOF
1259
+ − 3966 if { (eval echo configure:3968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 3967 rm -rf conftest*
+ − 3968 ac_cv_type_signal=void
+ − 3969 else
+ − 3970 echo "configure: failed program was:" >&5
+ − 3971 cat conftest.$ac_ext >&5
+ − 3972 rm -rf conftest*
+ − 3973 ac_cv_type_signal=int
+ − 3974 fi
+ − 3975 rm -f conftest*
+ − 3976
+ − 3977 echo "$ac_t""$ac_cv_type_signal" 1>&6
+ − 3978 { test "$extra_verbose" = "yes" && cat << EOF
+ − 3979 Defining RETSIGTYPE = $ac_cv_type_signal
+ − 3980 EOF
+ − 3981 cat >> confdefs.h <<EOF
+ − 3982 #define RETSIGTYPE $ac_cv_type_signal
+ − 3983 EOF
+ − 3984 }
+ − 3985
+ − 3986
163
+ − 3987 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1259
+ − 3988 echo "configure:3990: checking for size_t" >&5
+ − 3989
+ − 3990 cat > conftest.$ac_ext <<EOF
+ − 3991 #line 3993 "configure"
163
+ − 3992 #include "confdefs.h"
+ − 3993 #include <sys/types.h>
+ − 3994 #if STDC_HEADERS
+ − 3995 #include <stdlib.h>
+ − 3996 #include <stddef.h>
+ − 3997 #endif
+ − 3998 EOF
+ − 3999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420
+ − 4000 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
163
+ − 4001 rm -rf conftest*
+ − 4002 ac_cv_type_size_t=yes
+ − 4003 else
+ − 4004 rm -rf conftest*
+ − 4005 ac_cv_type_size_t=no
+ − 4006 fi
+ − 4007 rm -f conftest*
+ − 4008
+ − 4009 echo "$ac_t""$ac_cv_type_size_t" 1>&6
+ − 4010 if test $ac_cv_type_size_t = no; then
+ − 4011 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4012 Defining size_t = unsigned
+ − 4013 EOF
+ − 4014 cat >> confdefs.h <<\EOF
+ − 4015 #define size_t unsigned
+ − 4016 EOF
+ − 4017 }
+ − 4018
+ − 4019 fi
+ − 4020
+ − 4021 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1259
+ − 4022 echo "configure:4024: checking for pid_t" >&5
+ − 4023
+ − 4024 cat > conftest.$ac_ext <<EOF
+ − 4025 #line 4027 "configure"
163
+ − 4026 #include "confdefs.h"
+ − 4027 #include <sys/types.h>
+ − 4028 #if STDC_HEADERS
+ − 4029 #include <stdlib.h>
+ − 4030 #include <stddef.h>
+ − 4031 #endif
+ − 4032 EOF
+ − 4033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420
+ − 4034 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
163
+ − 4035 rm -rf conftest*
+ − 4036 ac_cv_type_pid_t=yes
+ − 4037 else
+ − 4038 rm -rf conftest*
+ − 4039 ac_cv_type_pid_t=no
+ − 4040 fi
+ − 4041 rm -f conftest*
+ − 4042
+ − 4043 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
+ − 4044 if test $ac_cv_type_pid_t = no; then
+ − 4045 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4046 Defining pid_t = int
+ − 4047 EOF
+ − 4048 cat >> confdefs.h <<\EOF
+ − 4049 #define pid_t int
+ − 4050 EOF
+ − 4051 }
+ − 4052
+ − 4053 fi
+ − 4054
+ − 4055 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1259
+ − 4056 echo "configure:4058: checking for uid_t in sys/types.h" >&5
+ − 4057
+ − 4058 cat > conftest.$ac_ext <<EOF
+ − 4059 #line 4061 "configure"
163
+ − 4060 #include "confdefs.h"
+ − 4061 #include <sys/types.h>
+ − 4062 EOF
+ − 4063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 4064 egrep "uid_t" >/dev/null 2>&1; then
+ − 4065 rm -rf conftest*
+ − 4066 ac_cv_type_uid_t=yes
+ − 4067 else
+ − 4068 rm -rf conftest*
+ − 4069 ac_cv_type_uid_t=no
+ − 4070 fi
+ − 4071 rm -f conftest*
+ − 4072
+ − 4073
+ − 4074 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
+ − 4075 if test $ac_cv_type_uid_t = no; then
+ − 4076 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4077 Defining uid_t = int
+ − 4078 EOF
+ − 4079 cat >> confdefs.h <<\EOF
+ − 4080 #define uid_t int
+ − 4081 EOF
+ − 4082 }
+ − 4083
+ − 4084 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4085 Defining gid_t = int
+ − 4086 EOF
+ − 4087 cat >> confdefs.h <<\EOF
+ − 4088 #define gid_t int
+ − 4089 EOF
+ − 4090 }
+ − 4091
+ − 4092 fi
+ − 4093
+ − 4094 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1259
+ − 4095 echo "configure:4097: checking for mode_t" >&5
+ − 4096
+ − 4097 cat > conftest.$ac_ext <<EOF
+ − 4098 #line 4100 "configure"
163
+ − 4099 #include "confdefs.h"
+ − 4100 #include <sys/types.h>
+ − 4101 #if STDC_HEADERS
+ − 4102 #include <stdlib.h>
+ − 4103 #include <stddef.h>
+ − 4104 #endif
+ − 4105 EOF
+ − 4106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420
+ − 4107 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
163
+ − 4108 rm -rf conftest*
+ − 4109 ac_cv_type_mode_t=yes
+ − 4110 else
+ − 4111 rm -rf conftest*
+ − 4112 ac_cv_type_mode_t=no
+ − 4113 fi
+ − 4114 rm -f conftest*
+ − 4115
+ − 4116 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
+ − 4117 if test $ac_cv_type_mode_t = no; then
+ − 4118 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4119 Defining mode_t = int
+ − 4120 EOF
+ − 4121 cat >> confdefs.h <<\EOF
+ − 4122 #define mode_t int
+ − 4123 EOF
+ − 4124 }
+ − 4125
+ − 4126 fi
+ − 4127
+ − 4128 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1259
+ − 4129 echo "configure:4131: checking for off_t" >&5
+ − 4130
+ − 4131 cat > conftest.$ac_ext <<EOF
+ − 4132 #line 4134 "configure"
163
+ − 4133 #include "confdefs.h"
+ − 4134 #include <sys/types.h>
+ − 4135 #if STDC_HEADERS
+ − 4136 #include <stdlib.h>
+ − 4137 #include <stddef.h>
+ − 4138 #endif
+ − 4139 EOF
+ − 4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420
+ − 4141 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
163
+ − 4142 rm -rf conftest*
+ − 4143 ac_cv_type_off_t=yes
+ − 4144 else
+ − 4145 rm -rf conftest*
+ − 4146 ac_cv_type_off_t=no
+ − 4147 fi
+ − 4148 rm -f conftest*
+ − 4149
+ − 4150 echo "$ac_t""$ac_cv_type_off_t" 1>&6
+ − 4151 if test $ac_cv_type_off_t = no; then
+ − 4152 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4153 Defining off_t = long
+ − 4154 EOF
+ − 4155 cat >> confdefs.h <<\EOF
+ − 4156 #define off_t long
+ − 4157 EOF
+ − 4158 }
+ − 4159
+ − 4160 fi
+ − 4161
426
+ − 4162 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
1259
+ − 4163 echo "configure:4165: checking for ssize_t" >&5
+ − 4164
+ − 4165 cat > conftest.$ac_ext <<EOF
+ − 4166 #line 4168 "configure"
426
+ − 4167 #include "confdefs.h"
+ − 4168 #include <sys/types.h>
+ − 4169 #if STDC_HEADERS
+ − 4170 #include <stdlib.h>
+ − 4171 #include <stddef.h>
+ − 4172 #endif
+ − 4173 EOF
+ − 4174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 4175 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
+ − 4176 rm -rf conftest*
+ − 4177 ac_cv_type_ssize_t=yes
+ − 4178 else
+ − 4179 rm -rf conftest*
+ − 4180 ac_cv_type_ssize_t=no
+ − 4181 fi
+ − 4182 rm -f conftest*
+ − 4183
+ − 4184 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
+ − 4185 if test $ac_cv_type_ssize_t = no; then
+ − 4186 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4187 Defining ssize_t = int
+ − 4188 EOF
+ − 4189 cat >> confdefs.h <<\EOF
+ − 4190 #define ssize_t int
+ − 4191 EOF
+ − 4192 }
+ − 4193
+ − 4194 fi
+ − 4195
410
+ − 4196
442
+ − 4197 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
1259
+ − 4198 echo "configure:4200: checking for socklen_t" >&5
+ − 4199 cat > conftest.$ac_ext <<EOF
+ − 4200 #line 4202 "configure"
442
+ − 4201 #include "confdefs.h"
+ − 4202 #include <sys/socket.h>
+ − 4203 socklen_t x;
+ − 4204
+ − 4205 int main() {
+ − 4206
+ − 4207 ; return 0; }
+ − 4208 EOF
1259
+ − 4209 if { (eval echo configure:4211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
442
+ − 4210 rm -rf conftest*
+ − 4211 echo "$ac_t""yes" 1>&6
+ − 4212 else
+ − 4213 echo "configure: failed program was:" >&5
+ − 4214 cat conftest.$ac_ext >&5
+ − 4215 rm -rf conftest*
+ − 4216
+ − 4217 cat > conftest.$ac_ext <<EOF
1259
+ − 4218 #line 4220 "configure"
442
+ − 4219 #include "confdefs.h"
+ − 4220 #include <sys/socket.h>
+ − 4221 int accept (int, struct sockaddr *, size_t *);
+ − 4222
+ − 4223 int main() {
+ − 4224
+ − 4225 ; return 0; }
+ − 4226 EOF
1259
+ − 4227 if { (eval echo configure:4229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
442
+ − 4228 rm -rf conftest*
+ − 4229
+ − 4230 echo "$ac_t""size_t" 1>&6
+ − 4231 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4232 Defining socklen_t = size_t
+ − 4233 EOF
+ − 4234 cat >> confdefs.h <<\EOF
+ − 4235 #define socklen_t size_t
+ − 4236 EOF
+ − 4237 }
+ − 4238
+ − 4239 else
+ − 4240 echo "configure: failed program was:" >&5
+ − 4241 cat conftest.$ac_ext >&5
+ − 4242 rm -rf conftest*
+ − 4243
+ − 4244 echo "$ac_t""int" 1>&6
+ − 4245 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4246 Defining socklen_t = int
+ − 4247 EOF
+ − 4248 cat >> confdefs.h <<\EOF
+ − 4249 #define socklen_t int
+ − 4250 EOF
+ − 4251 }
+ − 4252
+ − 4253 fi
+ − 4254 rm -f conftest*
+ − 4255 fi
+ − 4256 rm -f conftest*
+ − 4257
149
+ − 4258 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
1259
+ − 4259 echo "configure:4261: checking for struct timeval" >&5
+ − 4260 cat > conftest.$ac_ext <<EOF
+ − 4261 #line 4263 "configure"
0
+ − 4262 #include "confdefs.h"
+ − 4263 #ifdef TIME_WITH_SYS_TIME
+ − 4264 #include <sys/time.h>
+ − 4265 #include <time.h>
+ − 4266 #else
+ − 4267 #ifdef HAVE_SYS_TIME_H
+ − 4268 #include <sys/time.h>
+ − 4269 #else
+ − 4270 #include <time.h>
+ − 4271 #endif
+ − 4272 #endif
149
+ − 4273 int main() {
+ − 4274 static struct timeval x; x.tv_sec = x.tv_usec;
+ − 4275 ; return 0; }
+ − 4276 EOF
1259
+ − 4277 if { (eval echo configure:4279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 4278 rm -rf conftest*
+ − 4279 echo "$ac_t""yes" 1>&6
0
+ − 4280 HAVE_TIMEVAL=yes
149
+ − 4281 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4282 Defining HAVE_TIMEVAL
+ − 4283 EOF
+ − 4284 cat >> confdefs.h <<\EOF
+ − 4285 #define HAVE_TIMEVAL 1
+ − 4286 EOF
+ − 4287 }
+ − 4288
+ − 4289 else
+ − 4290 echo "configure: failed program was:" >&5
+ − 4291 cat conftest.$ac_ext >&5
+ − 4292 rm -rf conftest*
+ − 4293 echo "$ac_t""no" 1>&6
+ − 4294 HAVE_TIMEVAL=no
+ − 4295 fi
+ − 4296 rm -f conftest*
+ − 4297
+ − 4298 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1259
+ − 4299 echo "configure:4301: checking whether struct tm is in sys/time.h or time.h" >&5
+ − 4300
+ − 4301 cat > conftest.$ac_ext <<EOF
+ − 4302 #line 4304 "configure"
0
+ − 4303 #include "confdefs.h"
+ − 4304 #include <sys/types.h>
+ − 4305 #include <time.h>
149
+ − 4306 int main() {
+ − 4307 struct tm *tp; tp->tm_sec;
+ − 4308 ; return 0; }
+ − 4309 EOF
1259
+ − 4310 if { (eval echo configure:4312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 4311 rm -rf conftest*
+ − 4312 ac_cv_struct_tm=time.h
+ − 4313 else
+ − 4314 echo "configure: failed program was:" >&5
+ − 4315 cat conftest.$ac_ext >&5
+ − 4316 rm -rf conftest*
+ − 4317 ac_cv_struct_tm=sys/time.h
+ − 4318 fi
+ − 4319 rm -f conftest*
+ − 4320
+ − 4321 echo "$ac_t""$ac_cv_struct_tm" 1>&6
+ − 4322 if test $ac_cv_struct_tm = sys/time.h; then
+ − 4323 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4324 Defining TM_IN_SYS_TIME
+ − 4325 EOF
+ − 4326 cat >> confdefs.h <<\EOF
+ − 4327 #define TM_IN_SYS_TIME 1
+ − 4328 EOF
+ − 4329 }
+ − 4330
+ − 4331 fi
+ − 4332
+ − 4333 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
1259
+ − 4334 echo "configure:4336: checking for tm_zone in struct tm" >&5
+ − 4335
+ − 4336 cat > conftest.$ac_ext <<EOF
+ − 4337 #line 4339 "configure"
149
+ − 4338 #include "confdefs.h"
+ − 4339 #include <sys/types.h>
+ − 4340 #include <$ac_cv_struct_tm>
+ − 4341 int main() {
+ − 4342 struct tm tm; tm.tm_zone;
+ − 4343 ; return 0; }
+ − 4344 EOF
1259
+ − 4345 if { (eval echo configure:4347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 4346 rm -rf conftest*
+ − 4347 ac_cv_struct_tm_zone=yes
+ − 4348 else
+ − 4349 echo "configure: failed program was:" >&5
+ − 4350 cat conftest.$ac_ext >&5
+ − 4351 rm -rf conftest*
+ − 4352 ac_cv_struct_tm_zone=no
+ − 4353 fi
+ − 4354 rm -f conftest*
+ − 4355
+ − 4356 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
+ − 4357 if test "$ac_cv_struct_tm_zone" = yes; then
+ − 4358 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4359 Defining HAVE_TM_ZONE
+ − 4360 EOF
+ − 4361 cat >> confdefs.h <<\EOF
+ − 4362 #define HAVE_TM_ZONE 1
+ − 4363 EOF
+ − 4364 }
+ − 4365
+ − 4366 else
+ − 4367 echo $ac_n "checking for tzname""... $ac_c" 1>&6
1259
+ − 4368 echo "configure:4370: checking for tzname" >&5
+ − 4369
+ − 4370 cat > conftest.$ac_ext <<EOF
+ − 4371 #line 4373 "configure"
0
+ − 4372 #include "confdefs.h"
+ − 4373 #include <time.h>
+ − 4374 #ifndef tzname /* For SGI. */
149
+ − 4375 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
0
+ − 4376 #endif
149
+ − 4377 int main() {
+ − 4378 atoi(*tzname);
+ − 4379 ; return 0; }
+ − 4380 EOF
1259
+ − 4381 if { (eval echo configure:4383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 4382 rm -rf conftest*
+ − 4383 ac_cv_var_tzname=yes
+ − 4384 else
+ − 4385 echo "configure: failed program was:" >&5
+ − 4386 cat conftest.$ac_ext >&5
+ − 4387 rm -rf conftest*
+ − 4388 ac_cv_var_tzname=no
+ − 4389 fi
+ − 4390 rm -f conftest*
+ − 4391
+ − 4392 echo "$ac_t""$ac_cv_var_tzname" 1>&6
+ − 4393 if test $ac_cv_var_tzname = yes; then
+ − 4394 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4395 Defining HAVE_TZNAME
+ − 4396 EOF
+ − 4397 cat >> confdefs.h <<\EOF
+ − 4398 #define HAVE_TZNAME 1
+ − 4399 EOF
+ − 4400 }
+ − 4401
+ − 4402 fi
+ − 4403 fi
+ − 4404
+ − 4405
+ − 4406 echo $ac_n "checking for working const""... $ac_c" 1>&6
1259
+ − 4407 echo "configure:4409: checking for working const" >&5
+ − 4408
+ − 4409 cat > conftest.$ac_ext <<EOF
+ − 4410 #line 4412 "configure"
149
+ − 4411 #include "confdefs.h"
+ − 4412
+ − 4413 int main() {
+ − 4414
+ − 4415 /* Ultrix mips cc rejects this. */
744
+ − 4416 typedef int charset[2]; const charset x;
0
+ − 4417 /* SunOS 4.1.1 cc rejects this. */
+ − 4418 char const *const *ccp;
+ − 4419 char **p;
149
+ − 4420 /* NEC SVR4.0.2 mips cc rejects this. */
+ − 4421 struct point {int x, y;};
+ − 4422 static struct point const zero = {0,0};
0
+ − 4423 /* AIX XL C 1.02.0.0 rejects this.
+ − 4424 It does not let you subtract one const X* pointer from another in an arm
+ − 4425 of an if-expression whose if-part is not a constant expression */
+ − 4426 const char *g = "string";
+ − 4427 ccp = &g + (g ? g-g : 0);
+ − 4428 /* HPUX 7.0 cc rejects these. */
+ − 4429 ++ccp;
+ − 4430 p = (char**) ccp;
+ − 4431 ccp = (char const *const *) p;
+ − 4432 { /* SCO 3.2v4 cc rejects this. */
+ − 4433 char *t;
+ − 4434 char const *s = 0 ? (char *) 0 : (char const *) 0;
+ − 4435
+ − 4436 *t++ = 0;
+ − 4437 }
+ − 4438 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
149
+ − 4439 int x[] = {25, 17};
0
+ − 4440 const int *foo = &x[0];
+ − 4441 ++foo;
+ − 4442 }
+ − 4443 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
+ − 4444 typedef const int *iptr;
+ − 4445 iptr p = 0;
+ − 4446 ++p;
+ − 4447 }
+ − 4448 { /* AIX XL C 1.02.0.0 rejects this saying
+ − 4449 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
+ − 4450 struct s { int j; const int *ap[3]; };
+ − 4451 struct s *b; b->j = 5;
+ − 4452 }
+ − 4453 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
+ − 4454 const int foo = 10;
149
+ − 4455 }
+ − 4456
+ − 4457 ; return 0; }
+ − 4458 EOF
1259
+ − 4459 if { (eval echo configure:4461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 4460 rm -rf conftest*
+ − 4461 ac_cv_c_const=yes
+ − 4462 else
+ − 4463 echo "configure: failed program was:" >&5
+ − 4464 cat conftest.$ac_ext >&5
+ − 4465 rm -rf conftest*
+ − 4466 ac_cv_c_const=no
+ − 4467 fi
+ − 4468 rm -f conftest*
+ − 4469
+ − 4470 echo "$ac_t""$ac_cv_c_const" 1>&6
+ − 4471 if test $ac_cv_c_const = no; then
+ − 4472 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4473 Defining const =
+ − 4474 EOF
+ − 4475 cat >> confdefs.h <<\EOF
+ − 4476 #define const
+ − 4477 EOF
+ − 4478 }
+ − 4479
+ − 4480 fi
+ − 4481
+ − 4482
+ − 4483 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1259
+ − 4484 echo "configure:4486: checking whether ${MAKE-make} sets \${MAKE}" >&5
149
+ − 4485 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
+ − 4486
+ − 4487 cat > conftestmake <<\EOF
0
+ − 4488 all:
+ − 4489 @echo 'ac_maketemp="${MAKE}"'
+ − 4490 EOF
+ − 4491 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
+ − 4492 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
149
+ − 4493 if test -n "$ac_maketemp"; then
+ − 4494 eval ac_cv_prog_make_${ac_make}_set=yes
+ − 4495 else
+ − 4496 eval ac_cv_prog_make_${ac_make}_set=no
+ − 4497 fi
0
+ − 4498 rm -f conftestmake
149
+ − 4499 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
+ − 4500 echo "$ac_t""yes" 1>&6
+ − 4501 SET_MAKE=
+ − 4502 else
+ − 4503 echo "$ac_t""no" 1>&6
+ − 4504 SET_MAKE="MAKE=${MAKE-make}"
+ − 4505 fi
+ − 4506
+ − 4507
+ − 4508 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1259
+ − 4509 echo "configure:4511: checking whether byte ordering is bigendian" >&5
149
+ − 4510
+ − 4511 ac_cv_c_bigendian=unknown
+ − 4512 # See if sys/param.h defines the BYTE_ORDER macro.
+ − 4513 cat > conftest.$ac_ext <<EOF
1259
+ − 4514 #line 4516 "configure"
149
+ − 4515 #include "confdefs.h"
+ − 4516 #include <sys/types.h>
+ − 4517 #include <sys/param.h>
+ − 4518 int main() {
+ − 4519
+ − 4520 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
+ − 4521 bogus endian macros
+ − 4522 #endif
+ − 4523 ; return 0; }
+ − 4524 EOF
1259
+ − 4525 if { (eval echo configure:4527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 4526 rm -rf conftest*
+ − 4527 # It does; now see whether it defined to BIG_ENDIAN or not.
+ − 4528 cat > conftest.$ac_ext <<EOF
1259
+ − 4529 #line 4531 "configure"
149
+ − 4530 #include "confdefs.h"
+ − 4531 #include <sys/types.h>
+ − 4532 #include <sys/param.h>
+ − 4533 int main() {
+ − 4534
+ − 4535 #if BYTE_ORDER != BIG_ENDIAN
+ − 4536 not big endian
+ − 4537 #endif
+ − 4538 ; return 0; }
+ − 4539 EOF
1259
+ − 4540 if { (eval echo configure:4542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 4541 rm -rf conftest*
+ − 4542 ac_cv_c_bigendian=yes
+ − 4543 else
+ − 4544 echo "configure: failed program was:" >&5
+ − 4545 cat conftest.$ac_ext >&5
+ − 4546 rm -rf conftest*
+ − 4547 ac_cv_c_bigendian=no
+ − 4548 fi
+ − 4549 rm -f conftest*
+ − 4550 else
+ − 4551 echo "configure: failed program was:" >&5
+ − 4552 cat conftest.$ac_ext >&5
+ − 4553 fi
+ − 4554 rm -f conftest*
+ − 4555 if test $ac_cv_c_bigendian = unknown; then
+ − 4556 cat > conftest.$ac_ext <<EOF
1259
+ − 4557 #line 4559 "configure"
0
+ − 4558 #include "confdefs.h"
+ − 4559 main () {
+ − 4560 /* Are we little or big endian? From Harbison&Steele. */
+ − 4561 union
+ − 4562 {
+ − 4563 long l;
+ − 4564 char c[sizeof (long)];
+ − 4565 } u;
+ − 4566 u.l = 1;
+ − 4567 exit (u.c[sizeof (long) - 1] == 1);
+ − 4568 }
+ − 4569 EOF
1259
+ − 4570 if { (eval echo configure:4572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
+ − 4571 then
+ − 4572 ac_cv_c_bigendian=no
+ − 4573 else
373
+ − 4574 conftest_rc="$?"
149
+ − 4575 echo "configure: failed program was:" >&5
+ − 4576 cat conftest.$ac_ext >&5
+ − 4577 rm -fr conftest*
+ − 4578 ac_cv_c_bigendian=yes
0
+ − 4579 fi
+ − 4580 rm -fr conftest*
149
+ − 4581 fi
+ − 4582
+ − 4583 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
+ − 4584 if test $ac_cv_c_bigendian = yes; then
+ − 4585 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4586 Defining WORDS_BIGENDIAN
+ − 4587 EOF
+ − 4588 cat >> confdefs.h <<\EOF
+ − 4589 #define WORDS_BIGENDIAN 1
+ − 4590 EOF
+ − 4591 }
+ − 4592
+ − 4593 fi
+ − 4594
+ − 4595
151
+ − 4596 echo $ac_n "checking size of short""... $ac_c" 1>&6
1259
+ − 4597 echo "configure:4599: checking size of short" >&5
+ − 4598
+ − 4599 cat > conftest.$ac_ext <<EOF
+ − 4600 #line 4602 "configure"
151
+ − 4601 #include "confdefs.h"
+ − 4602 #include <stdio.h>
1070
+ − 4603 main()
151
+ − 4604 {
+ − 4605 FILE *f=fopen("conftestval", "w");
1070
+ − 4606 if (!f) exit(1);
151
+ − 4607 fprintf(f, "%d\n", sizeof(short));
1070
+ − 4608 exit(0);
151
+ − 4609 }
+ − 4610 EOF
1261
+ − 4611 if { (eval echo configure:4613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
151
+ − 4612 then
+ − 4613 ac_cv_sizeof_short=`cat conftestval`
+ − 4614 else
373
+ − 4615 conftest_rc="$?"
151
+ − 4616 echo "configure: failed program was:" >&5
+ − 4617 cat conftest.$ac_ext >&5
+ − 4618 rm -fr conftest*
+ − 4619 ac_cv_sizeof_short=0
+ − 4620 fi
+ − 4621 rm -fr conftest*
+ − 4622 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
+ − 4623 { test "$extra_verbose" = "yes" && cat << EOF
+ − 4624 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
+ − 4625 EOF
+ − 4626 cat >> confdefs.h <<EOF
+ − 4627 #define SIZEOF_SHORT $ac_cv_sizeof_short
+ − 4628 EOF
+ − 4629 }
+ − 4630
+ − 4631
163
+ − 4632 if test "$ac_cv_sizeof_short" = 0; then
+ − 4633 echo ""
+ − 4634 echo "*** PANIC *** Configure tests are not working - compiler is broken."
+ − 4635 echo "*** PANIC *** Please examine config.log for compilation errors."
+ − 4636 exit 1
+ − 4637 fi
151
+ − 4638 echo $ac_n "checking size of int""... $ac_c" 1>&6
1261
+ − 4639 echo "configure:4641: checking size of int" >&5
+ − 4640
+ − 4641 cat > conftest.$ac_ext <<EOF
+ − 4642 #line 4644 "configure"
151
+ − 4643 #include "confdefs.h"
+ − 4644 #include <stdio.h>
1070
+ − 4645 main()
151
+ − 4646 {
+ − 4647 FILE *f=fopen("conftestval", "w");
1070
+ − 4648 if (!f) exit(1);
151
+ − 4649 fprintf(f, "%d\n", sizeof(int));
1070
+ − 4650 exit(0);
151
+ − 4651 }
+ − 4652 EOF
1261
+ − 4653 if { (eval echo configure:4655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
151
+ − 4654 then
+ − 4655 ac_cv_sizeof_int=`cat conftestval`
+ − 4656 else
373
+ − 4657 conftest_rc="$?"
151
+ − 4658 echo "configure: failed program was:" >&5
+ − 4659 cat conftest.$ac_ext >&5
+ − 4660 rm -fr conftest*
+ − 4661 ac_cv_sizeof_int=0
+ − 4662 fi
+ − 4663 rm -fr conftest*
+ − 4664 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
+ − 4665 { test "$extra_verbose" = "yes" && cat << EOF
+ − 4666 Defining SIZEOF_INT = $ac_cv_sizeof_int
+ − 4667 EOF
+ − 4668 cat >> confdefs.h <<EOF
+ − 4669 #define SIZEOF_INT $ac_cv_sizeof_int
+ − 4670 EOF
+ − 4671 }
+ − 4672
+ − 4673
+ − 4674 echo $ac_n "checking size of long""... $ac_c" 1>&6
1261
+ − 4675 echo "configure:4677: checking size of long" >&5
+ − 4676
+ − 4677 cat > conftest.$ac_ext <<EOF
+ − 4678 #line 4680 "configure"
151
+ − 4679 #include "confdefs.h"
+ − 4680 #include <stdio.h>
1070
+ − 4681 main()
151
+ − 4682 {
+ − 4683 FILE *f=fopen("conftestval", "w");
1070
+ − 4684 if (!f) exit(1);
151
+ − 4685 fprintf(f, "%d\n", sizeof(long));
1070
+ − 4686 exit(0);
151
+ − 4687 }
+ − 4688 EOF
1261
+ − 4689 if { (eval echo configure:4691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
151
+ − 4690 then
+ − 4691 ac_cv_sizeof_long=`cat conftestval`
+ − 4692 else
373
+ − 4693 conftest_rc="$?"
151
+ − 4694 echo "configure: failed program was:" >&5
+ − 4695 cat conftest.$ac_ext >&5
+ − 4696 rm -fr conftest*
+ − 4697 ac_cv_sizeof_long=0
+ − 4698 fi
+ − 4699 rm -fr conftest*
+ − 4700 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
+ − 4701 { test "$extra_verbose" = "yes" && cat << EOF
+ − 4702 Defining SIZEOF_LONG = $ac_cv_sizeof_long
+ − 4703 EOF
+ − 4704 cat >> confdefs.h <<EOF
+ − 4705 #define SIZEOF_LONG $ac_cv_sizeof_long
+ − 4706 EOF
+ − 4707 }
+ − 4708
+ − 4709
163
+ − 4710 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1261
+ − 4711 echo "configure:4713: checking size of long long" >&5
+ − 4712
+ − 4713 cat > conftest.$ac_ext <<EOF
+ − 4714 #line 4716 "configure"
163
+ − 4715 #include "confdefs.h"
+ − 4716 #include <stdio.h>
1070
+ − 4717 main()
163
+ − 4718 {
+ − 4719 FILE *f=fopen("conftestval", "w");
1070
+ − 4720 if (!f) exit(1);
163
+ − 4721 fprintf(f, "%d\n", sizeof(long long));
1070
+ − 4722 exit(0);
163
+ − 4723 }
+ − 4724 EOF
1261
+ − 4725 if { (eval echo configure:4727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
163
+ − 4726 then
+ − 4727 ac_cv_sizeof_long_long=`cat conftestval`
+ − 4728 else
373
+ − 4729 conftest_rc="$?"
163
+ − 4730 echo "configure: failed program was:" >&5
+ − 4731 cat conftest.$ac_ext >&5
+ − 4732 rm -fr conftest*
+ − 4733 ac_cv_sizeof_long_long=0
+ − 4734 fi
+ − 4735 rm -fr conftest*
+ − 4736 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
+ − 4737 { test "$extra_verbose" = "yes" && cat << EOF
+ − 4738 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
+ − 4739 EOF
+ − 4740 cat >> confdefs.h <<EOF
+ − 4741 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
+ − 4742 EOF
+ − 4743 }
+ − 4744
+ − 4745
+ − 4746 echo $ac_n "checking size of void *""... $ac_c" 1>&6
1261
+ − 4747 echo "configure:4749: checking size of void *" >&5
+ − 4748
+ − 4749 cat > conftest.$ac_ext <<EOF
+ − 4750 #line 4752 "configure"
163
+ − 4751 #include "confdefs.h"
+ − 4752 #include <stdio.h>
1070
+ − 4753 main()
163
+ − 4754 {
+ − 4755 FILE *f=fopen("conftestval", "w");
1070
+ − 4756 if (!f) exit(1);
163
+ − 4757 fprintf(f, "%d\n", sizeof(void *));
1070
+ − 4758 exit(0);
163
+ − 4759 }
+ − 4760 EOF
1261
+ − 4761 if { (eval echo configure:4763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
163
+ − 4762 then
+ − 4763 ac_cv_sizeof_void_p=`cat conftestval`
+ − 4764 else
373
+ − 4765 conftest_rc="$?"
163
+ − 4766 echo "configure: failed program was:" >&5
+ − 4767 cat conftest.$ac_ext >&5
+ − 4768 rm -fr conftest*
+ − 4769 ac_cv_sizeof_void_p=0
+ − 4770 fi
+ − 4771 rm -fr conftest*
+ − 4772 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
+ − 4773 { test "$extra_verbose" = "yes" && cat << EOF
+ − 4774 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
+ − 4775 EOF
+ − 4776 cat >> confdefs.h <<EOF
+ − 4777 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
+ − 4778 EOF
+ − 4779 }
+ − 4780
+ − 4781
151
+ − 4782
149
+ − 4783 echo $ac_n "checking for long file names""... $ac_c" 1>&6
1261
+ − 4784 echo "configure:4786: checking for long file names" >&5
149
+ − 4785
+ − 4786 ac_cv_sys_long_file_names=yes
0
+ − 4787 # Test for long file names in all the places we know might matter:
+ − 4788 # . the current directory, where building will happen
149
+ − 4789 # $prefix/lib where we will be installing things
+ − 4790 # $exec_prefix/lib likewise
+ − 4791 # eval it to expand exec_prefix.
+ − 4792 # $TMPDIR if set, where it might want to write temporary files
+ − 4793 # if $TMPDIR is not set:
0
+ − 4794 # /tmp where it might want to write temporary files
+ − 4795 # /var/tmp likewise
+ − 4796 # /usr/tmp likewise
149
+ − 4797 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
+ − 4798 ac_tmpdirs="$TMPDIR"
+ − 4799 else
+ − 4800 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
+ − 4801 fi
+ − 4802 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
0
+ − 4803 test -d $ac_dir || continue
149
+ − 4804 test -w $ac_dir || continue # It is less confusing to not echo anything here.
0
+ − 4805 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
+ − 4806 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
+ − 4807 val=`cat $ac_dir/conftest9012345 2>/dev/null`
149
+ − 4808 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
+ − 4809 ac_cv_sys_long_file_names=no
+ − 4810 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
+ − 4811 break
0
+ − 4812 fi
149
+ − 4813 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
+ − 4814 done
+ − 4815
+ − 4816 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
+ − 4817 if test $ac_cv_sys_long_file_names = yes; then
+ − 4818 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4819 Defining HAVE_LONG_FILE_NAMES
+ − 4820 EOF
+ − 4821 cat >> confdefs.h <<\EOF
+ − 4822 #define HAVE_LONG_FILE_NAMES 1
+ − 4823 EOF
+ − 4824 }
+ − 4825
+ − 4826 fi
+ − 4827
+ − 4828
398
+ − 4829 echo $ac_n "checking for sin""... $ac_c" 1>&6
1261
+ − 4830 echo "configure:4832: checking for sin" >&5
+ − 4831
+ − 4832 cat > conftest.$ac_ext <<EOF
+ − 4833 #line 4835 "configure"
398
+ − 4834 #include "confdefs.h"
+ − 4835 /* System header to define __stub macros and hopefully few prototypes,
+ − 4836 which can conflict with char sin(); below. */
+ − 4837 #include <assert.h>
+ − 4838 /* Override any gcc2 internal prototype to avoid an error. */
+ − 4839 /* We use char because int might match the return type of a gcc2
+ − 4840 builtin and then its argument prototype would still apply. */
+ − 4841 char sin();
+ − 4842
+ − 4843 int main() {
+ − 4844
+ − 4845 /* The GNU C library defines this for functions which it implements
+ − 4846 to always fail with ENOSYS. Some functions are actually named
+ − 4847 something starting with __ and the normal name is an alias. */
+ − 4848 #if defined (__stub_sin) || defined (__stub___sin)
+ − 4849 choke me
+ − 4850 #else
+ − 4851 sin();
+ − 4852 #endif
+ − 4853
+ − 4854 ; return 0; }
+ − 4855 EOF
1261
+ − 4856 if { (eval echo configure:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
398
+ − 4857 rm -rf conftest*
+ − 4858 eval "ac_cv_func_sin=yes"
+ − 4859 else
+ − 4860 echo "configure: failed program was:" >&5
+ − 4861 cat conftest.$ac_ext >&5
+ − 4862 rm -rf conftest*
+ − 4863 eval "ac_cv_func_sin=no"
+ − 4864 fi
+ − 4865 rm -f conftest*
+ − 4866
+ − 4867 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
+ − 4868 echo "$ac_t""yes" 1>&6
+ − 4869 :
+ − 4870 else
+ − 4871 echo "$ac_t""no" 1>&6
149
+ − 4872
207
+ − 4873 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1261
+ − 4874 echo "configure:4876: checking for sin in -lm" >&5
207
+ − 4875 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
149
+ − 4876
+ − 4877 xe_check_libs=" -lm "
+ − 4878 cat > conftest.$ac_ext <<EOF
1261
+ − 4879 #line 4881 "configure"
149
+ − 4880 #include "confdefs.h"
+ − 4881 /* Override any gcc2 internal prototype to avoid an error. */
+ − 4882 /* We use char because int might match the return type of a gcc2
+ − 4883 builtin and then its argument prototype would still apply. */
207
+ − 4884 char sin();
149
+ − 4885
+ − 4886 int main() {
207
+ − 4887 sin()
149
+ − 4888 ; return 0; }
+ − 4889 EOF
1261
+ − 4890 if { (eval echo configure:4892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 4891 rm -rf conftest*
+ − 4892 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 4893 else
+ − 4894 echo "configure: failed program was:" >&5
+ − 4895 cat conftest.$ac_ext >&5
+ − 4896 rm -rf conftest*
+ − 4897 eval "ac_cv_lib_$ac_lib_var=no"
+ − 4898 fi
+ − 4899 rm -f conftest*
+ − 4900 xe_check_libs=""
+ − 4901
151
+ − 4902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 4903 echo "$ac_t""yes" 1>&6
398
+ − 4904 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
149
+ − 4905 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ − 4906 { test "$extra_verbose" = "yes" && cat << EOF
+ − 4907 Defining $ac_tr_lib
+ − 4908 EOF
+ − 4909 cat >> confdefs.h <<EOF
+ − 4910 #define $ac_tr_lib 1
+ − 4911 EOF
+ − 4912 }
+ − 4913
151
+ − 4914 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
+ − 4915
+ − 4916 else
+ − 4917 echo "$ac_t""no" 1>&6
+ − 4918 fi
+ − 4919
+ − 4920
398
+ − 4921 fi
+ − 4922
151
+ − 4923
1123
+ − 4924 cat > conftest.$ac_ext <<EOF
1261
+ − 4925 #line 4927 "configure"
243
+ − 4926 #include "confdefs.h"
+ − 4927 #include <math.h>
+ − 4928 int main() {
+ − 4929 return atanh(1.0) + asinh(1.0) + acosh(1.0);
+ − 4930 ; return 0; }
+ − 4931 EOF
1261
+ − 4932 if { (eval echo configure:4934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
243
+ − 4933 rm -rf conftest*
+ − 4934 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4935 Defining HAVE_INVERSE_HYPERBOLIC
+ − 4936 EOF
+ − 4937 cat >> confdefs.h <<\EOF
+ − 4938 #define HAVE_INVERSE_HYPERBOLIC 1
+ − 4939 EOF
+ − 4940 }
+ − 4941
+ − 4942 else
+ − 4943 echo "configure: failed program was:" >&5
+ − 4944 cat conftest.$ac_ext >&5
+ − 4945 fi
+ − 4946 rm -f conftest*
+ − 4947
567
+ − 4948 for ac_func in mkstemp
438
+ − 4949 do
+ − 4950 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1261
+ − 4951 echo "configure:4953: checking for $ac_func" >&5
+ − 4952
+ − 4953 cat > conftest.$ac_ext <<EOF
+ − 4954 #line 4956 "configure"
438
+ − 4955 #include "confdefs.h"
+ − 4956 /* System header to define __stub macros and hopefully few prototypes,
+ − 4957 which can conflict with char $ac_func(); below. */
+ − 4958 #include <assert.h>
+ − 4959 /* Override any gcc2 internal prototype to avoid an error. */
+ − 4960 /* We use char because int might match the return type of a gcc2
+ − 4961 builtin and then its argument prototype would still apply. */
+ − 4962 char $ac_func();
+ − 4963
+ − 4964 int main() {
+ − 4965
+ − 4966 /* The GNU C library defines this for functions which it implements
+ − 4967 to always fail with ENOSYS. Some functions are actually named
+ − 4968 something starting with __ and the normal name is an alias. */
+ − 4969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 4970 choke me
+ − 4971 #else
+ − 4972 $ac_func();
+ − 4973 #endif
+ − 4974
+ − 4975 ; return 0; }
+ − 4976 EOF
1261
+ − 4977 if { (eval echo configure:4979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
567
+ − 4978 rm -rf conftest*
+ − 4979 eval "ac_cv_func_$ac_func=yes"
+ − 4980 else
+ − 4981 echo "configure: failed program was:" >&5
+ − 4982 cat conftest.$ac_ext >&5
+ − 4983 rm -rf conftest*
+ − 4984 eval "ac_cv_func_$ac_func=no"
+ − 4985 fi
+ − 4986 rm -f conftest*
+ − 4987
+ − 4988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 4989 echo "$ac_t""yes" 1>&6
+ − 4990 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 4991 { test "$extra_verbose" = "yes" && cat << EOF
+ − 4992 Defining $ac_tr_func
+ − 4993 EOF
+ − 4994 cat >> confdefs.h <<EOF
+ − 4995 #define $ac_tr_func 1
+ − 4996 EOF
+ − 4997 }
+ − 4998
+ − 4999 else
+ − 5000 echo "$ac_t""no" 1>&6
+ − 5001 fi
+ − 5002 done
+ − 5003
+ − 5004
+ − 5005 echo "checking type of mail spool file locking" 1>&6
1261
+ − 5006 echo "configure:5008: checking type of mail spool file locking" >&5
567
+ − 5007 for ac_func in lockf flock
+ − 5008 do
+ − 5009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1261
+ − 5010 echo "configure:5012: checking for $ac_func" >&5
+ − 5011
+ − 5012 cat > conftest.$ac_ext <<EOF
+ − 5013 #line 5015 "configure"
567
+ − 5014 #include "confdefs.h"
+ − 5015 /* System header to define __stub macros and hopefully few prototypes,
+ − 5016 which can conflict with char $ac_func(); below. */
+ − 5017 #include <assert.h>
+ − 5018 /* Override any gcc2 internal prototype to avoid an error. */
+ − 5019 /* We use char because int might match the return type of a gcc2
+ − 5020 builtin and then its argument prototype would still apply. */
+ − 5021 char $ac_func();
+ − 5022
+ − 5023 int main() {
+ − 5024
+ − 5025 /* The GNU C library defines this for functions which it implements
+ − 5026 to always fail with ENOSYS. Some functions are actually named
+ − 5027 something starting with __ and the normal name is an alias. */
+ − 5028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 5029 choke me
+ − 5030 #else
+ − 5031 $ac_func();
+ − 5032 #endif
+ − 5033
+ − 5034 ; return 0; }
+ − 5035 EOF
1261
+ − 5036 if { (eval echo configure:5038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
438
+ − 5037 rm -rf conftest*
+ − 5038 eval "ac_cv_func_$ac_func=yes"
+ − 5039 else
+ − 5040 echo "configure: failed program was:" >&5
+ − 5041 cat conftest.$ac_ext >&5
+ − 5042 rm -rf conftest*
+ − 5043 eval "ac_cv_func_$ac_func=no"
+ − 5044 fi
+ − 5045 rm -f conftest*
+ − 5046
+ − 5047 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 5048 echo "$ac_t""yes" 1>&6
+ − 5049 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 5050 { test "$extra_verbose" = "yes" && cat << EOF
+ − 5051 Defining $ac_tr_func
+ − 5052 EOF
+ − 5053 cat >> confdefs.h <<EOF
+ − 5054 #define $ac_tr_func 1
+ − 5055 EOF
+ − 5056 }
+ − 5057
+ − 5058 else
+ − 5059 echo "$ac_t""no" 1>&6
+ − 5060 fi
+ − 5061 done
+ − 5062
149
+ − 5063 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
+ − 5064 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
438
+ − 5065 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
442
+ − 5066 if test -z "$mail_locking"; then
+ − 5067 case "$opsys" in cygwin* | mingw*)
+ − 5068 mail_locking=pop ;;
+ − 5069 esac
+ − 5070 fi
+ − 5071
149
+ − 5072 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
438
+ − 5073 Defining MAIL_LOCK_LOCKF
+ − 5074 EOF
+ − 5075 cat >> confdefs.h <<\EOF
+ − 5076 #define MAIL_LOCK_LOCKF 1
149
+ − 5077 EOF
+ − 5078 }
+ − 5079
+ − 5080 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
438
+ − 5081 Defining MAIL_LOCK_FLOCK
+ − 5082 EOF
+ − 5083 cat >> confdefs.h <<\EOF
+ − 5084 #define MAIL_LOCK_FLOCK 1
+ − 5085 EOF
+ − 5086 }
+ − 5087
+ − 5088 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
+ − 5089 Defining MAIL_LOCK_LOCKING
+ − 5090 EOF
+ − 5091 cat >> confdefs.h <<\EOF
+ − 5092 #define MAIL_LOCK_LOCKING 1
+ − 5093 EOF
+ − 5094 }
+ − 5095
442
+ − 5096 elif test "$mail_locking" = "pop"; then
+ − 5097 with_pop=yes
+ − 5098 mail_locking=
438
+ − 5099 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
+ − 5100 Defining MAIL_LOCK_DOT
+ − 5101 EOF
+ − 5102 cat >> confdefs.h <<\EOF
+ − 5103 #define MAIL_LOCK_DOT 1
+ − 5104 EOF
+ − 5105 }
+ − 5106
+ − 5107 fi
+ − 5108 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
+ − 5109 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
+ − 5110 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
+ − 5111 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
+ − 5112 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
+ − 5113 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
151
+ − 5114
278
+ − 5115 case "$opsys" in decosf*)
+ − 5116
151
+ − 5117 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
1261
+ − 5118 echo "configure:5120: checking for cma_open in -lpthreads" >&5
151
+ − 5119 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
+ − 5120
+ − 5121 xe_check_libs=" -lpthreads "
+ − 5122 cat > conftest.$ac_ext <<EOF
1261
+ − 5123 #line 5125 "configure"
151
+ − 5124 #include "confdefs.h"
+ − 5125 /* Override any gcc2 internal prototype to avoid an error. */
+ − 5126 /* We use char because int might match the return type of a gcc2
+ − 5127 builtin and then its argument prototype would still apply. */
+ − 5128 char cma_open();
+ − 5129
+ − 5130 int main() {
+ − 5131 cma_open()
+ − 5132 ; return 0; }
+ − 5133 EOF
1261
+ − 5134 if { (eval echo configure:5136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
151
+ − 5135 rm -rf conftest*
+ − 5136 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 5137 else
+ − 5138 echo "configure: failed program was:" >&5
+ − 5139 cat conftest.$ac_ext >&5
+ − 5140 rm -rf conftest*
+ − 5141 eval "ac_cv_lib_$ac_lib_var=no"
+ − 5142 fi
+ − 5143 rm -f conftest*
+ − 5144 xe_check_libs=""
+ − 5145
+ − 5146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 5147 echo "$ac_t""yes" 1>&6
+ − 5148 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ − 5149 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ − 5150 { test "$extra_verbose" = "yes" && cat << EOF
+ − 5151 Defining $ac_tr_lib
+ − 5152 EOF
+ − 5153 cat >> confdefs.h <<EOF
+ − 5154 #define $ac_tr_lib 1
+ − 5155 EOF
+ − 5156 }
+ − 5157
+ − 5158 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
+ − 5159
+ − 5160 else
+ − 5161 echo "$ac_t""no" 1>&6
+ − 5162 fi
+ − 5163
+ − 5164
278
+ − 5165 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
+ − 5166 c_switch_site="$c_switch_site -threads" ;;
+ − 5167 esac
151
+ − 5168
708
+ − 5169
151
+ − 5170 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
1261
+ − 5171 echo "configure:5173: checking whether the -xildoff compiler flag is required" >&5
151
+ − 5172 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
+ − 5173 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
+ − 5174 then echo "$ac_t""no" 1>&6;
+ − 5175 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi
+ − 5176 fi
+ − 5177 else echo "$ac_t""no" 1>&6
+ − 5178 fi
+ − 5179
442
+ − 5180 if test "$opsys" = "sol2"; then
+ − 5181 if test "$os_release" -ge 56; then
+ − 5182 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
1261
+ − 5183 echo "configure:5185: checking for \"-z ignore\" linker flag" >&5
442
+ − 5184 case "`ld -h 2>&1`" in
+ − 5185 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
+ − 5186 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
+ − 5187 *) echo "$ac_t""no" 1>&6 ;;
+ − 5188 esac
+ − 5189 fi
163
+ − 5190 fi
155
+ − 5191
149
+ − 5192
+ − 5193 echo "checking "for specified window system"" 1>&6
1261
+ − 5194 echo "configure:5196: checking "for specified window system"" >&5
462
+ − 5195
+ − 5196
+ − 5197 GNOME_CONFIG=no
+ − 5198 GTK_CONFIG=no
+ − 5199
+ − 5200 if test "$with_gnome" != "no"; then
+ − 5201 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
1261
+ − 5202 echo "configure:5204: checking for GNOME configuration script" >&5
462
+ − 5203 for possible in gnome-config
+ − 5204 do
+ − 5205 possible_version=`${possible} --version 2> /dev/null`
+ − 5206 if test "x${possible_version}" != "x"; then
+ − 5207 GNOME_CONFIG="${possible}"
+ − 5208 with_gnome=yes
+ − 5209 with_gtk=yes
+ − 5210 break
+ − 5211 fi
+ − 5212 done
+ − 5213 echo "$ac_t""${GNOME_CONFIG}" 1>&6
+ − 5214 fi
+ − 5215
+ − 5216 if test "${GNOME_CONFIG}" != "no"; then
+ − 5217 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
+ − 5218 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
+ − 5219 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 5220 Defining HAVE_GNOME
+ − 5221 EOF
+ − 5222 cat >> confdefs.h <<\EOF
+ − 5223 #define HAVE_GNOME 1
+ − 5224 EOF
+ − 5225 }
+ − 5226
+ − 5227 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
+ − 5228 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
+ − 5229 fi
+ − 5230
+ − 5231 if test "$with_gtk" != "no";then
+ − 5232 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
1261
+ − 5233 echo "configure:5235: checking for GTK configuration script" >&5
462
+ − 5234 for possible in gtk12-config gtk14-config gtk-config
+ − 5235 do
+ − 5236 possible_version=`${possible} --version 2> /dev/null`
+ − 5237 if test "x${possible_version}" != "x"; then
+ − 5238 GTK_CONFIG="${possible}"
527
+ − 5239 case "${possible_version}" in
+ − 5240 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
+ − 5241 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
+ − 5242 1.2.*)
+ − 5243 with_gtk=yes
+ − 5244 break
+ − 5245 ;;
+ − 5246 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
+ − 5247 esac
462
+ − 5248 fi
+ − 5249 done
+ − 5250 echo "$ac_t""${GTK_CONFIG}" 1>&6
+ − 5251 fi
+ − 5252
+ − 5253 if test "${GTK_CONFIG}" != "no"; then
+ − 5254 echo $ac_n "checking gtk version""... $ac_c" 1>&6
1261
+ − 5255 echo "configure:5257: checking gtk version" >&5
462
+ − 5256 GTK_VERSION=`${GTK_CONFIG} --version`
+ − 5257 echo "$ac_t""${GTK_VERSION}" 1>&6
+ − 5258
+ − 5259 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
1261
+ − 5260 echo "configure:5262: checking gtk libs" >&5
462
+ − 5261 GTK_LIBS=`${GTK_CONFIG} --libs`
+ − 5262 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
+ − 5263 echo "$ac_t""${GTK_LIBS}" 1>&6
+ − 5264
+ − 5265 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
1261
+ − 5266 echo "configure:5268: checking gtk cflags" >&5
462
+ − 5267 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
720
+ − 5268 if test "$GCC" = "yes"; then
+ − 5269 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
+ − 5270 fi
462
+ − 5271 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
+ − 5272 echo "$ac_t""${GTK_CFLAGS}" 1>&6
+ − 5273
+ − 5274
+ − 5275 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
1261
+ − 5276 echo "configure:5278: checking for main in -lgdk_imlib" >&5
462
+ − 5277 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
+ − 5278
+ − 5279 xe_check_libs=" -lgdk_imlib "
+ − 5280 cat > conftest.$ac_ext <<EOF
1261
+ − 5281 #line 5283 "configure"
462
+ − 5282 #include "confdefs.h"
+ − 5283
+ − 5284 int main() {
+ − 5285 main()
+ − 5286 ; return 0; }
+ − 5287 EOF
1261
+ − 5288 if { (eval echo configure:5290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
+ − 5289 rm -rf conftest*
+ − 5290 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 5291 else
+ − 5292 echo "configure: failed program was:" >&5
+ − 5293 cat conftest.$ac_ext >&5
+ − 5294 rm -rf conftest*
+ − 5295 eval "ac_cv_lib_$ac_lib_var=no"
+ − 5296 fi
+ − 5297 rm -f conftest*
+ − 5298 xe_check_libs=""
+ − 5299
+ − 5300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 5301 echo "$ac_t""yes" 1>&6
+ − 5302 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
+ − 5303 else
+ − 5304 echo "$ac_t""no" 1>&6
+ − 5305 fi
+ − 5306
+ − 5307
+ − 5308
+ − 5309 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
1261
+ − 5310 echo "configure:5312: checking for Imlib_init in -lImlib" >&5
462
+ − 5311 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
+ − 5312
+ − 5313 xe_check_libs=" -lImlib "
+ − 5314 cat > conftest.$ac_ext <<EOF
1261
+ − 5315 #line 5317 "configure"
462
+ − 5316 #include "confdefs.h"
+ − 5317 /* Override any gcc2 internal prototype to avoid an error. */
+ − 5318 /* We use char because int might match the return type of a gcc2
+ − 5319 builtin and then its argument prototype would still apply. */
+ − 5320 char Imlib_init();
+ − 5321
+ − 5322 int main() {
+ − 5323 Imlib_init()
+ − 5324 ; return 0; }
+ − 5325 EOF
1261
+ − 5326 if { (eval echo configure:5328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
+ − 5327 rm -rf conftest*
+ − 5328 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 5329 else
+ − 5330 echo "configure: failed program was:" >&5
+ − 5331 cat conftest.$ac_ext >&5
+ − 5332 rm -rf conftest*
+ − 5333 eval "ac_cv_lib_$ac_lib_var=no"
+ − 5334 fi
+ − 5335 rm -f conftest*
+ − 5336 xe_check_libs=""
+ − 5337
+ − 5338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 5339 echo "$ac_t""yes" 1>&6
+ − 5340 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
+ − 5341 else
+ − 5342 echo "$ac_t""no" 1>&6
+ − 5343 fi
+ − 5344
+ − 5345
+ − 5346 for ac_func in gdk_imlib_init
+ − 5347 do
+ − 5348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1261
+ − 5349 echo "configure:5351: checking for $ac_func" >&5
+ − 5350
+ − 5351 cat > conftest.$ac_ext <<EOF
+ − 5352 #line 5354 "configure"
462
+ − 5353 #include "confdefs.h"
+ − 5354 /* System header to define __stub macros and hopefully few prototypes,
+ − 5355 which can conflict with char $ac_func(); below. */
+ − 5356 #include <assert.h>
+ − 5357 /* Override any gcc2 internal prototype to avoid an error. */
+ − 5358 /* We use char because int might match the return type of a gcc2
+ − 5359 builtin and then its argument prototype would still apply. */
+ − 5360 char $ac_func();
+ − 5361
+ − 5362 int main() {
+ − 5363
+ − 5364 /* The GNU C library defines this for functions which it implements
+ − 5365 to always fail with ENOSYS. Some functions are actually named
+ − 5366 something starting with __ and the normal name is an alias. */
+ − 5367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 5368 choke me
+ − 5369 #else
+ − 5370 $ac_func();
+ − 5371 #endif
+ − 5372
+ − 5373 ; return 0; }
+ − 5374 EOF
1261
+ − 5375 if { (eval echo configure:5377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
+ − 5376 rm -rf conftest*
+ − 5377 eval "ac_cv_func_$ac_func=yes"
+ − 5378 else
+ − 5379 echo "configure: failed program was:" >&5
+ − 5380 cat conftest.$ac_ext >&5
+ − 5381 rm -rf conftest*
+ − 5382 eval "ac_cv_func_$ac_func=no"
+ − 5383 fi
+ − 5384 rm -f conftest*
+ − 5385
+ − 5386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 5387 echo "$ac_t""yes" 1>&6
+ − 5388 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 5389 { test "$extra_verbose" = "yes" && cat << EOF
+ − 5390 Defining $ac_tr_func
+ − 5391 EOF
+ − 5392 cat >> confdefs.h <<EOF
+ − 5393 #define $ac_tr_func 1
+ − 5394 EOF
+ − 5395 }
+ − 5396
+ − 5397 else
+ − 5398 echo "$ac_t""no" 1>&6
+ − 5399 fi
+ − 5400 done
+ − 5401
+ − 5402
+ − 5403 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 5404 Defining HAVE_XPM
+ − 5405 EOF
+ − 5406 cat >> confdefs.h <<\EOF
+ − 5407 #define HAVE_XPM 1
+ − 5408 EOF
+ − 5409 }
+ − 5410
+ − 5411 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 5412 Defining HAVE_GTK
+ − 5413 EOF
+ − 5414 cat >> confdefs.h <<\EOF
+ − 5415 #define HAVE_GTK 1
+ − 5416 EOF
+ − 5417 }
+ − 5418
+ − 5419
+ − 5420
+ − 5421 window_system=gtk
+ − 5422 with_gtk=yes
+ − 5423 with_x11=no
+ − 5424
+ − 5425 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
+ − 5426 test "${with_toolbars}" != no && with_toolbars=gtk
+ − 5427 test "${with_menubars}" != "no" && with_menubars=gtk
+ − 5428 test "${with_dialogs}" != "no" && with_dialogs=gtk
+ − 5429 test "${with_widgets}" != "no" && with_widgets=gtk
+ − 5430
+ − 5431 OLD_CFLAGS="${CFLAGS}"
724
+ − 5432 OLD_CPPFLAGS="${CPPFLAGS}"
462
+ − 5433 OLD_LDFLAGS="${LDFLAGS}"
+ − 5434 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
724
+ − 5435 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
462
+ − 5436 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
+ − 5437 for ac_hdr in glade/glade.h glade.h
+ − 5438 do
+ − 5439 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 5440 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1261
+ − 5441 echo "configure:5443: checking for $ac_hdr" >&5
+ − 5442
+ − 5443 cat > conftest.$ac_ext <<EOF
+ − 5444 #line 5446 "configure"
462
+ − 5445 #include "confdefs.h"
+ − 5446 #include <$ac_hdr>
+ − 5447 EOF
+ − 5448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 5449 { (eval echo configure:5451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
462
+ − 5450 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 5451 if test -z "$ac_err"; then
+ − 5452 rm -rf conftest*
+ − 5453 eval "ac_cv_header_$ac_safe=yes"
+ − 5454 else
+ − 5455 echo "$ac_err" >&5
+ − 5456 echo "configure: failed program was:" >&5
+ − 5457 cat conftest.$ac_ext >&5
+ − 5458 rm -rf conftest*
+ − 5459 eval "ac_cv_header_$ac_safe=no"
+ − 5460 fi
+ − 5461 rm -f conftest*
+ − 5462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 5463 echo "$ac_t""yes" 1>&6
+ − 5464 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 5465 { test "$extra_verbose" = "yes" && cat << EOF
+ − 5466 Defining $ac_tr_hdr
+ − 5467 EOF
+ − 5468 cat >> confdefs.h <<EOF
+ − 5469 #define $ac_tr_hdr 1
+ − 5470 EOF
+ − 5471 }
+ − 5472
+ − 5473 else
+ − 5474 echo "$ac_t""no" 1>&6
+ − 5475 fi
+ − 5476 done
+ − 5477
+ − 5478
+ − 5479 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
1261
+ − 5480 echo "configure:5482: checking for main in -lxml" >&5
462
+ − 5481 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
+ − 5482
+ − 5483 xe_check_libs=" -lxml "
+ − 5484 cat > conftest.$ac_ext <<EOF
1261
+ − 5485 #line 5487 "configure"
462
+ − 5486 #include "confdefs.h"
+ − 5487
+ − 5488 int main() {
+ − 5489 main()
+ − 5490 ; return 0; }
+ − 5491 EOF
1261
+ − 5492 if { (eval echo configure:5494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
+ − 5493 rm -rf conftest*
+ − 5494 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 5495 else
+ − 5496 echo "configure: failed program was:" >&5
+ − 5497 cat conftest.$ac_ext >&5
+ − 5498 rm -rf conftest*
+ − 5499 eval "ac_cv_lib_$ac_lib_var=no"
+ − 5500 fi
+ − 5501 rm -f conftest*
+ − 5502 xe_check_libs=""
+ − 5503
+ − 5504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 5505 echo "$ac_t""yes" 1>&6
+ − 5506 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
+ − 5507 else
+ − 5508 echo "$ac_t""no" 1>&6
+ − 5509 fi
+ − 5510
+ − 5511
+ − 5512
+ − 5513 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
1261
+ − 5514 echo "configure:5516: checking for main in -lglade" >&5
462
+ − 5515 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
+ − 5516
+ − 5517 xe_check_libs=" -lglade "
+ − 5518 cat > conftest.$ac_ext <<EOF
1261
+ − 5519 #line 5521 "configure"
462
+ − 5520 #include "confdefs.h"
+ − 5521
+ − 5522 int main() {
+ − 5523 main()
+ − 5524 ; return 0; }
+ − 5525 EOF
1261
+ − 5526 if { (eval echo configure:5528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
+ − 5527 rm -rf conftest*
+ − 5528 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 5529 else
+ − 5530 echo "configure: failed program was:" >&5
+ − 5531 cat conftest.$ac_ext >&5
+ − 5532 rm -rf conftest*
+ − 5533 eval "ac_cv_lib_$ac_lib_var=no"
+ − 5534 fi
+ − 5535 rm -f conftest*
+ − 5536 xe_check_libs=""
+ − 5537
+ − 5538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 5539 echo "$ac_t""yes" 1>&6
+ − 5540 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
+ − 5541 else
+ − 5542 echo "$ac_t""no" 1>&6
+ − 5543 fi
+ − 5544
+ − 5545
+ − 5546
+ − 5547 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
1261
+ − 5548 echo "configure:5550: checking for main in -lglade-gnome" >&5
462
+ − 5549 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
+ − 5550
+ − 5551 xe_check_libs=" -lglade-gnome "
+ − 5552 cat > conftest.$ac_ext <<EOF
1261
+ − 5553 #line 5555 "configure"
462
+ − 5554 #include "confdefs.h"
+ − 5555
+ − 5556 int main() {
+ − 5557 main()
+ − 5558 ; return 0; }
+ − 5559 EOF
1261
+ − 5560 if { (eval echo configure:5562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
+ − 5561 rm -rf conftest*
+ − 5562 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 5563 else
+ − 5564 echo "configure: failed program was:" >&5
+ − 5565 cat conftest.$ac_ext >&5
+ − 5566 rm -rf conftest*
+ − 5567 eval "ac_cv_lib_$ac_lib_var=no"
+ − 5568 fi
+ − 5569 rm -f conftest*
+ − 5570 xe_check_libs=""
+ − 5571
+ − 5572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 5573 echo "$ac_t""yes" 1>&6
+ − 5574 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
+ − 5575 else
+ − 5576 echo "$ac_t""no" 1>&6
+ − 5577 fi
+ − 5578
+ − 5579
+ − 5580 cat > conftest.$ac_ext <<EOF
1261
+ − 5581 #line 5583 "configure"
462
+ − 5582 #include "confdefs.h"
+ − 5583 #include <glade/glade-xml.h>
+ − 5584 EOF
+ − 5585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 5586 egrep "char \*txtdomain;" >/dev/null 2>&1; then
+ − 5587 rm -rf conftest*
+ − 5588 echo "$ac_t""yes" 1>&6
+ − 5589 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 5590 Defining LIBGLADE_XML_TXTDOMAIN = 1
+ − 5591 EOF
+ − 5592 cat >> confdefs.h <<\EOF
+ − 5593 #define LIBGLADE_XML_TXTDOMAIN 1
+ − 5594 EOF
+ − 5595 }
+ − 5596
+ − 5597 else
+ − 5598 rm -rf conftest*
+ − 5599 echo "$ac_t""no" 1>&6
+ − 5600 fi
+ − 5601 rm -f conftest*
+ − 5602
+ − 5603 CFLAGS="${OLD_CFLAGS}"
724
+ − 5604 CPPFLAGS="${OLD_CPPFLAGS}"
462
+ − 5605 LDFLAGS="${OLD_LDFLAGS}"
+ − 5606 fi
+ − 5607
149
+ − 5608
187
+ − 5609 if test "$with_x11" != "no"; then
+ − 5610 test "$x_includes $x_libraries" != "NONE NONE" && \
+ − 5611 window_system=x11 with_x11=yes
+ − 5612
272
+ − 5613
+ − 5614 if test "$x_includes $x_libraries" = "NONE NONE" \
+ − 5615 -a -n "$OPENWINHOME" \
+ − 5616 -a "$OPENWINHOME" != "/usr/openwin" \
+ − 5617 -a -d "$OPENWINHOME"; then
187
+ − 5618 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
+ − 5619 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
+ − 5620 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
272
+ − 5621 fi
+ − 5622
+ − 5623 if test "$x_includes" = "NONE"; then
+ − 5624 for dir in "/usr/X11" "/usr/X11R6"; do
+ − 5625 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
+ − 5626 done
+ − 5627 fi
+ − 5628
+ − 5629 if test "$x_libraries" = "NONE"; then
+ − 5630 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
+ − 5631 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
+ − 5632 done
149
+ − 5633 fi
187
+ − 5634
149
+ − 5635 # If we find X, set shell vars x_includes and x_libraries to the
+ − 5636 # paths, otherwise set no_x=yes.
+ − 5637 # Uses ac_ vars as temps to allow command line to override cache and checks.
+ − 5638 # --without-x overrides everything else, but does not touch the cache.
+ − 5639 echo $ac_n "checking for X""... $ac_c" 1>&6
1261
+ − 5640 echo "configure:5642: checking for X" >&5
149
+ − 5641
+ − 5642 # Check whether --with-x or --without-x was given.
+ − 5643 if test "${with_x+set}" = set; then
+ − 5644 withval="$with_x"
+ − 5645 :
+ − 5646 fi
+ − 5647
+ − 5648 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
+ − 5649 if test "x$with_x" = xno; then
+ − 5650 # The user explicitly disabled X.
+ − 5651 have_x=disabled
+ − 5652 else
+ − 5653 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
+ − 5654 # Both variables are already set.
+ − 5655 have_x=yes
+ − 5656 else
+ − 5657
+ − 5658 # One or both of the vars are not set, and there is no cached value.
+ − 5659 ac_x_includes=NO ac_x_libraries=NO
0
+ − 5660 rm -fr conftestdir
+ − 5661 if mkdir conftestdir; then
+ − 5662 cd conftestdir
+ − 5663 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
+ − 5664 cat > Imakefile <<'EOF'
+ − 5665 acfindx:
+ − 5666 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
+ − 5667 EOF
+ − 5668 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
+ − 5669 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
149
+ − 5670 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
0
+ − 5671 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
149
+ − 5672 for ac_extension in a so sl; do
+ − 5673 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
+ − 5674 test -f $ac_im_libdir/libX11.$ac_extension; then
+ − 5675 ac_im_usrlibdir=$ac_im_libdir; break
+ − 5676 fi
+ − 5677 done
+ − 5678 # Screen out bogus values from the imake configuration. They are
+ − 5679 # bogus both because they are the default anyway, and because
+ − 5680 # using them would break gcc on systems where it needs fixed includes.
0
+ − 5681 case "$ac_im_incroot" in
+ − 5682 /usr/include) ;;
149
+ − 5683 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
0
+ − 5684 esac
+ − 5685 case "$ac_im_usrlibdir" in
+ − 5686 /usr/lib | /lib) ;;
149
+ − 5687 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
0
+ − 5688 esac
+ − 5689 fi
+ − 5690 cd ..
+ − 5691 rm -fr conftestdir
+ − 5692 fi
+ − 5693
149
+ − 5694 if test "$ac_x_includes" = NO; then
+ − 5695 # Guess where to find include files, by looking for this one X11 .h file.
+ − 5696 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
+ − 5697
+ − 5698 # First, try using that file with no special directory specified.
+ − 5699 cat > conftest.$ac_ext <<EOF
1261
+ − 5700 #line 5702 "configure"
0
+ − 5701 #include "confdefs.h"
+ − 5702 #include <$x_direct_test_include>
+ − 5703 EOF
149
+ − 5704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 5705 { (eval echo configure:5707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 5706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 5707 if test -z "$ac_err"; then
+ − 5708 rm -rf conftest*
149
+ − 5709 # We can compile using X headers with no special include directory.
+ − 5710 ac_x_includes=
+ − 5711 else
+ − 5712 echo "$ac_err" >&5
+ − 5713 echo "configure: failed program was:" >&5
+ − 5714 cat conftest.$ac_ext >&5
+ − 5715 rm -rf conftest*
+ − 5716 # Look for the header file in a standard set of common directories.
+ − 5717 # Check X11 before X11Rn because it is often a symlink to the current release.
0
+ − 5718 for ac_dir in \
149
+ − 5719 /usr/X11/include \
0
+ − 5720 /usr/X11R6/include \
+ − 5721 /usr/X11R5/include \
+ − 5722 /usr/X11R4/include \
+ − 5723 \
149
+ − 5724 /usr/include/X11 \
0
+ − 5725 /usr/include/X11R6 \
+ − 5726 /usr/include/X11R5 \
+ − 5727 /usr/include/X11R4 \
+ − 5728 \
149
+ − 5729 /usr/local/X11/include \
0
+ − 5730 /usr/local/X11R6/include \
+ − 5731 /usr/local/X11R5/include \
+ − 5732 /usr/local/X11R4/include \
+ − 5733 \
149
+ − 5734 /usr/local/include/X11 \
0
+ − 5735 /usr/local/include/X11R6 \
+ − 5736 /usr/local/include/X11R5 \
+ − 5737 /usr/local/include/X11R4 \
+ − 5738 \
+ − 5739 /usr/X386/include \
+ − 5740 /usr/x386/include \
+ − 5741 /usr/XFree86/include/X11 \
+ − 5742 \
+ − 5743 /usr/include \
+ − 5744 /usr/local/include \
+ − 5745 /usr/unsupported/include \
+ − 5746 /usr/athena/include \
+ − 5747 /usr/local/x11r5/include \
+ − 5748 /usr/lpp/Xamples/include \
+ − 5749 \
+ − 5750 /usr/openwin/include \
+ − 5751 /usr/openwin/share/include \
+ − 5752 ; \
+ − 5753 do
+ − 5754 if test -r "$ac_dir/$x_direct_test_include"; then
149
+ − 5755 ac_x_includes=$ac_dir
0
+ − 5756 break
+ − 5757 fi
+ − 5758 done
+ − 5759 fi
+ − 5760 rm -f conftest*
149
+ − 5761 fi # $ac_x_includes = NO
+ − 5762
+ − 5763 if test "$ac_x_libraries" = NO; then
+ − 5764 # Check for the libraries.
+ − 5765
+ − 5766 test -z "$x_direct_test_library" && x_direct_test_library=Xt
+ − 5767 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
+ − 5768
+ − 5769 # See if we find them without any special options.
+ − 5770 # Don't add to $LIBS permanently.
+ − 5771 ac_save_LIBS="$LIBS"
+ − 5772 LIBS="-l$x_direct_test_library $LIBS"
+ − 5773 cat > conftest.$ac_ext <<EOF
1261
+ − 5774 #line 5776 "configure"
149
+ − 5775 #include "confdefs.h"
+ − 5776
+ − 5777 int main() {
+ − 5778 ${x_direct_test_function}()
+ − 5779 ; return 0; }
+ − 5780 EOF
1261
+ − 5781 if { (eval echo configure:5783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 5782 rm -rf conftest*
+ − 5783 LIBS="$ac_save_LIBS"
+ − 5784 # We can link X programs with no special library path.
+ − 5785 ac_x_libraries=
+ − 5786 else
+ − 5787 echo "configure: failed program was:" >&5
+ − 5788 cat conftest.$ac_ext >&5
+ − 5789 rm -rf conftest*
+ − 5790 LIBS="$ac_save_LIBS"
+ − 5791 # First see if replacing the include by lib works.
+ − 5792 # Check X11 before X11Rn because it is often a symlink to the current release.
+ − 5793 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
+ − 5794 /usr/X11/lib \
0
+ − 5795 /usr/X11R6/lib \
+ − 5796 /usr/X11R5/lib \
+ − 5797 /usr/X11R4/lib \
+ − 5798 \
149
+ − 5799 /usr/lib/X11 \
0
+ − 5800 /usr/lib/X11R6 \
+ − 5801 /usr/lib/X11R5 \
+ − 5802 /usr/lib/X11R4 \
+ − 5803 \
149
+ − 5804 /usr/local/X11/lib \
0
+ − 5805 /usr/local/X11R6/lib \
+ − 5806 /usr/local/X11R5/lib \
+ − 5807 /usr/local/X11R4/lib \
+ − 5808 \
149
+ − 5809 /usr/local/lib/X11 \
0
+ − 5810 /usr/local/lib/X11R6 \
+ − 5811 /usr/local/lib/X11R5 \
+ − 5812 /usr/local/lib/X11R4 \
+ − 5813 \
+ − 5814 /usr/X386/lib \
+ − 5815 /usr/x386/lib \
+ − 5816 /usr/XFree86/lib/X11 \
+ − 5817 \
+ − 5818 /usr/lib \
+ − 5819 /usr/local/lib \
+ − 5820 /usr/unsupported/lib \
+ − 5821 /usr/athena/lib \
+ − 5822 /usr/local/x11r5/lib \
+ − 5823 /usr/lpp/Xamples/lib \
149
+ − 5824 /lib/usr/lib/X11 \
0
+ − 5825 \
+ − 5826 /usr/openwin/lib \
+ − 5827 /usr/openwin/share/lib \
+ − 5828 ; \
+ − 5829 do
+ − 5830 for ac_extension in a so sl; do
+ − 5831 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
149
+ − 5832 ac_x_libraries=$ac_dir
0
+ − 5833 break 2
+ − 5834 fi
+ − 5835 done
+ − 5836 done
+ − 5837 fi
149
+ − 5838 rm -f conftest*
+ − 5839 fi # $ac_x_libraries = NO
+ − 5840
+ − 5841 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
+ − 5842 # Didn't find X anywhere. Cache the known absence of X.
+ − 5843 ac_cv_have_x="have_x=no"
+ − 5844 else
+ − 5845 # Record where we found X for the cache.
+ − 5846 ac_cv_have_x="have_x=yes \
+ − 5847 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
+ − 5848 fi
+ − 5849 fi
+ − 5850 eval "$ac_cv_have_x"
+ − 5851 fi # $with_x != no
+ − 5852
+ − 5853 if test "$have_x" != yes; then
+ − 5854 echo "$ac_t""$have_x" 1>&6
+ − 5855 no_x=yes
+ − 5856 else
+ − 5857 # If each of the values was on the command line, it overrides each guess.
+ − 5858 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
+ − 5859 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
+ − 5860 # Update the cache value to reflect the command line values.
+ − 5861 ac_cv_have_x="have_x=yes \
+ − 5862 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
+ − 5863 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
+ − 5864 fi
+ − 5865
+ − 5866 if test "$no_x" = yes; then
+ − 5867 # Not all programs may use this symbol, but it does not hurt to define it.
+ − 5868 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 5869 Defining X_DISPLAY_MISSING
+ − 5870 EOF
+ − 5871 cat >> confdefs.h <<\EOF
+ − 5872 #define X_DISPLAY_MISSING 1
+ − 5873 EOF
+ − 5874 }
+ − 5875
+ − 5876 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
+ − 5877 else
+ − 5878 if test -n "$x_includes"; then
+ − 5879 X_CFLAGS="$X_CFLAGS -I$x_includes"
+ − 5880 fi
+ − 5881
+ − 5882 # It would also be nice to do this for all -L options, not just this one.
+ − 5883 if test -n "$x_libraries"; then
+ − 5884 X_LIBS="$X_LIBS -L$x_libraries"
+ − 5885 # For Solaris; some versions of Sun CC require a space after -R and
+ − 5886 # others require no space. Words are not sufficient . . . .
+ − 5887 case "`(uname -sr) 2>/dev/null`" in
+ − 5888 "SunOS 5"*)
+ − 5889 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1261
+ − 5890 echo "configure:5892: checking whether -R must be followed by a space" >&5
149
+ − 5891 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
+ − 5892 cat > conftest.$ac_ext <<EOF
1261
+ − 5893 #line 5895 "configure"
+ − 5894 #include "confdefs.h"
+ − 5895
+ − 5896 int main() {
+ − 5897
+ − 5898 ; return 0; }
+ − 5899 EOF
+ − 5900 if { (eval echo configure:5902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 5901 rm -rf conftest*
+ − 5902 ac_R_nospace=yes
+ − 5903 else
+ − 5904 echo "configure: failed program was:" >&5
+ − 5905 cat conftest.$ac_ext >&5
+ − 5906 rm -rf conftest*
+ − 5907 ac_R_nospace=no
+ − 5908 fi
+ − 5909 rm -f conftest*
+ − 5910 if test $ac_R_nospace = yes; then
+ − 5911 echo "$ac_t""no" 1>&6
+ − 5912 X_LIBS="$X_LIBS -R$x_libraries"
+ − 5913 else
+ − 5914 LIBS="$ac_xsave_LIBS -R $x_libraries"
+ − 5915 cat > conftest.$ac_ext <<EOF
1261
+ − 5916 #line 5918 "configure"
+ − 5917 #include "confdefs.h"
+ − 5918
+ − 5919 int main() {
+ − 5920
+ − 5921 ; return 0; }
+ − 5922 EOF
+ − 5923 if { (eval echo configure:5925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 5924 rm -rf conftest*
+ − 5925 ac_R_space=yes
+ − 5926 else
+ − 5927 echo "configure: failed program was:" >&5
+ − 5928 cat conftest.$ac_ext >&5
+ − 5929 rm -rf conftest*
+ − 5930 ac_R_space=no
+ − 5931 fi
+ − 5932 rm -f conftest*
+ − 5933 if test $ac_R_space = yes; then
+ − 5934 echo "$ac_t""yes" 1>&6
+ − 5935 X_LIBS="$X_LIBS -R $x_libraries"
+ − 5936 else
+ − 5937 echo "$ac_t""neither works" 1>&6
+ − 5938 fi
+ − 5939 fi
+ − 5940 LIBS="$ac_xsave_LIBS"
+ − 5941 esac
+ − 5942 fi
+ − 5943
+ − 5944 # Check for system-dependent libraries X programs must link with.
+ − 5945 # Do this before checking for the system-independent R6 libraries
+ − 5946 # (-lICE), since we may need -lsocket or whatever for X linking.
+ − 5947
+ − 5948 if test "$ISC" = yes; then
+ − 5949 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
+ − 5950 else
+ − 5951 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
+ − 5952 # libraries were built with DECnet support. And karl@cs.umb.edu says
+ − 5953 # the Alpha needs dnet_stub (dnet does not exist).
151
+ − 5954 if test "$with_dnet" = "no" ; then
149
+ − 5955 ac_cv_lib_dnet_dnet_ntoa=no
+ − 5956 else
+ − 5957
+ − 5958 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1261
+ − 5959 echo "configure:5961: checking for dnet_ntoa in -ldnet" >&5
149
+ − 5960 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
+ − 5961
+ − 5962 xe_check_libs=" -ldnet "
+ − 5963 cat > conftest.$ac_ext <<EOF
1261
+ − 5964 #line 5966 "configure"
149
+ − 5965 #include "confdefs.h"
+ − 5966 /* Override any gcc2 internal prototype to avoid an error. */
+ − 5967 /* We use char because int might match the return type of a gcc2
+ − 5968 builtin and then its argument prototype would still apply. */
+ − 5969 char dnet_ntoa();
+ − 5970
+ − 5971 int main() {
+ − 5972 dnet_ntoa()
+ − 5973 ; return 0; }
+ − 5974 EOF
1261
+ − 5975 if { (eval echo configure:5977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 5976 rm -rf conftest*
+ − 5977 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 5978 else
+ − 5979 echo "configure: failed program was:" >&5
+ − 5980 cat conftest.$ac_ext >&5
+ − 5981 rm -rf conftest*
+ − 5982 eval "ac_cv_lib_$ac_lib_var=no"
+ − 5983 fi
+ − 5984 rm -f conftest*
+ − 5985 xe_check_libs=""
+ − 5986
151
+ − 5987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 5988 echo "$ac_t""yes" 1>&6
+ − 5989 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
+ − 5990 else
+ − 5991 echo "$ac_t""no" 1>&6
+ − 5992 fi
+ − 5993
+ − 5994 fi
+ − 5995
+ − 5996 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
+ − 5997
+ − 5998 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1261
+ − 5999 echo "configure:6001: checking for dnet_ntoa in -ldnet_stub" >&5
149
+ − 6000 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
+ − 6001
+ − 6002 xe_check_libs=" -ldnet_stub "
+ − 6003 cat > conftest.$ac_ext <<EOF
1261
+ − 6004 #line 6006 "configure"
149
+ − 6005 #include "confdefs.h"
+ − 6006 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6007 /* We use char because int might match the return type of a gcc2
+ − 6008 builtin and then its argument prototype would still apply. */
+ − 6009 char dnet_ntoa();
+ − 6010
+ − 6011 int main() {
+ − 6012 dnet_ntoa()
+ − 6013 ; return 0; }
+ − 6014 EOF
1261
+ − 6015 if { (eval echo configure:6017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6016 rm -rf conftest*
+ − 6017 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6018 else
+ − 6019 echo "configure: failed program was:" >&5
+ − 6020 cat conftest.$ac_ext >&5
+ − 6021 rm -rf conftest*
+ − 6022 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6023 fi
+ − 6024 rm -f conftest*
+ − 6025 xe_check_libs=""
+ − 6026
151
+ − 6027 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 6028 echo "$ac_t""yes" 1>&6
+ − 6029 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
+ − 6030 else
+ − 6031 echo "$ac_t""no" 1>&6
+ − 6032 fi
+ − 6033
+ − 6034
+ − 6035 fi
+ − 6036
+ − 6037 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
+ − 6038 # to get the SysV transport functions.
+ − 6039 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
+ − 6040 # needs -lnsl.
+ − 6041 # The nsl library prevents programs from opening the X display
+ − 6042 # on Irix 5.2, according to dickey@clark.net.
+ − 6043 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1261
+ − 6044 echo "configure:6046: checking for gethostbyname" >&5
+ − 6045
+ − 6046 cat > conftest.$ac_ext <<EOF
+ − 6047 #line 6049 "configure"
149
+ − 6048 #include "confdefs.h"
+ − 6049 /* System header to define __stub macros and hopefully few prototypes,
+ − 6050 which can conflict with char gethostbyname(); below. */
+ − 6051 #include <assert.h>
+ − 6052 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6053 /* We use char because int might match the return type of a gcc2
+ − 6054 builtin and then its argument prototype would still apply. */
+ − 6055 char gethostbyname();
+ − 6056
+ − 6057 int main() {
+ − 6058
+ − 6059 /* The GNU C library defines this for functions which it implements
+ − 6060 to always fail with ENOSYS. Some functions are actually named
+ − 6061 something starting with __ and the normal name is an alias. */
+ − 6062 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
+ − 6063 choke me
+ − 6064 #else
+ − 6065 gethostbyname();
+ − 6066 #endif
+ − 6067
+ − 6068 ; return 0; }
+ − 6069 EOF
1261
+ − 6070 if { (eval echo configure:6072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6071 rm -rf conftest*
+ − 6072 eval "ac_cv_func_gethostbyname=yes"
+ − 6073 else
+ − 6074 echo "configure: failed program was:" >&5
+ − 6075 cat conftest.$ac_ext >&5
+ − 6076 rm -rf conftest*
+ − 6077 eval "ac_cv_func_gethostbyname=no"
+ − 6078 fi
+ − 6079 rm -f conftest*
+ − 6080
+ − 6081 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
+ − 6082 echo "$ac_t""yes" 1>&6
+ − 6083 :
+ − 6084 else
+ − 6085 echo "$ac_t""no" 1>&6
+ − 6086 fi
+ − 6087
+ − 6088 if test $ac_cv_func_gethostbyname = no; then
+ − 6089
+ − 6090 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1261
+ − 6091 echo "configure:6093: checking for gethostbyname in -lnsl" >&5
149
+ − 6092 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
+ − 6093
+ − 6094 xe_check_libs=" -lnsl "
+ − 6095 cat > conftest.$ac_ext <<EOF
1261
+ − 6096 #line 6098 "configure"
149
+ − 6097 #include "confdefs.h"
+ − 6098 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6099 /* We use char because int might match the return type of a gcc2
+ − 6100 builtin and then its argument prototype would still apply. */
+ − 6101 char gethostbyname();
+ − 6102
+ − 6103 int main() {
+ − 6104 gethostbyname()
+ − 6105 ; return 0; }
+ − 6106 EOF
1261
+ − 6107 if { (eval echo configure:6109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6108 rm -rf conftest*
+ − 6109 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6110 else
+ − 6111 echo "configure: failed program was:" >&5
+ − 6112 cat conftest.$ac_ext >&5
+ − 6113 rm -rf conftest*
+ − 6114 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6115 fi
+ − 6116 rm -f conftest*
+ − 6117 xe_check_libs=""
+ − 6118
151
+ − 6119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 6120 echo "$ac_t""yes" 1>&6
+ − 6121 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
+ − 6122 else
+ − 6123 echo "$ac_t""no" 1>&6
+ − 6124 fi
+ − 6125
+ − 6126
+ − 6127 fi
+ − 6128
+ − 6129 # lieder@skyler.mavd.honeywell.com says without -lsocket,
+ − 6130 # socket/setsockopt and other routines are undefined under SCO ODT
+ − 6131 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
+ − 6132 # on later versions), says simon@lia.di.epfl.ch: it contains
+ − 6133 # gethostby* variants that don't use the nameserver (or something).
+ − 6134 # -lsocket must be given before -lnsl if both are needed.
+ − 6135 # We assume that if connect needs -lnsl, so does gethostbyname.
+ − 6136 echo $ac_n "checking for connect""... $ac_c" 1>&6
1261
+ − 6137 echo "configure:6139: checking for connect" >&5
+ − 6138
+ − 6139 cat > conftest.$ac_ext <<EOF
+ − 6140 #line 6142 "configure"
149
+ − 6141 #include "confdefs.h"
+ − 6142 /* System header to define __stub macros and hopefully few prototypes,
+ − 6143 which can conflict with char connect(); below. */
+ − 6144 #include <assert.h>
+ − 6145 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6146 /* We use char because int might match the return type of a gcc2
+ − 6147 builtin and then its argument prototype would still apply. */
+ − 6148 char connect();
+ − 6149
+ − 6150 int main() {
+ − 6151
+ − 6152 /* The GNU C library defines this for functions which it implements
+ − 6153 to always fail with ENOSYS. Some functions are actually named
+ − 6154 something starting with __ and the normal name is an alias. */
+ − 6155 #if defined (__stub_connect) || defined (__stub___connect)
+ − 6156 choke me
+ − 6157 #else
+ − 6158 connect();
+ − 6159 #endif
+ − 6160
+ − 6161 ; return 0; }
+ − 6162 EOF
1261
+ − 6163 if { (eval echo configure:6165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6164 rm -rf conftest*
+ − 6165 eval "ac_cv_func_connect=yes"
+ − 6166 else
+ − 6167 echo "configure: failed program was:" >&5
+ − 6168 cat conftest.$ac_ext >&5
+ − 6169 rm -rf conftest*
+ − 6170 eval "ac_cv_func_connect=no"
+ − 6171 fi
+ − 6172 rm -f conftest*
+ − 6173
+ − 6174 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
+ − 6175 echo "$ac_t""yes" 1>&6
+ − 6176 :
+ − 6177 else
+ − 6178 echo "$ac_t""no" 1>&6
+ − 6179 fi
+ − 6180
+ − 6181 if test $ac_cv_func_connect = no; then
+ − 6182
+ − 6183 xe_msg_checking="for connect in -lsocket"
+ − 6184 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
+ − 6185 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
1261
+ − 6186 echo "configure:6188: checking "$xe_msg_checking"" >&5
149
+ − 6187 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
+ − 6188
+ − 6189 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
+ − 6190 cat > conftest.$ac_ext <<EOF
1261
+ − 6191 #line 6193 "configure"
149
+ − 6192 #include "confdefs.h"
+ − 6193 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6194 /* We use char because int might match the return type of a gcc2
+ − 6195 builtin and then its argument prototype would still apply. */
+ − 6196 char connect();
+ − 6197
+ − 6198 int main() {
+ − 6199 connect()
+ − 6200 ; return 0; }
+ − 6201 EOF
1261
+ − 6202 if { (eval echo configure:6204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6203 rm -rf conftest*
+ − 6204 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6205 else
+ − 6206 echo "configure: failed program was:" >&5
+ − 6207 cat conftest.$ac_ext >&5
+ − 6208 rm -rf conftest*
+ − 6209 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6210 fi
+ − 6211 rm -f conftest*
+ − 6212 xe_check_libs=""
+ − 6213
151
+ − 6214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 6215 echo "$ac_t""yes" 1>&6
+ − 6216 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
+ − 6217 else
+ − 6218 echo "$ac_t""no" 1>&6
+ − 6219 fi
+ − 6220
+ − 6221
+ − 6222 fi
+ − 6223
+ − 6224 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
+ − 6225 echo $ac_n "checking for remove""... $ac_c" 1>&6
1261
+ − 6226 echo "configure:6228: checking for remove" >&5
+ − 6227
+ − 6228 cat > conftest.$ac_ext <<EOF
+ − 6229 #line 6231 "configure"
149
+ − 6230 #include "confdefs.h"
+ − 6231 /* System header to define __stub macros and hopefully few prototypes,
+ − 6232 which can conflict with char remove(); below. */
+ − 6233 #include <assert.h>
+ − 6234 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6235 /* We use char because int might match the return type of a gcc2
+ − 6236 builtin and then its argument prototype would still apply. */
+ − 6237 char remove();
+ − 6238
+ − 6239 int main() {
+ − 6240
+ − 6241 /* The GNU C library defines this for functions which it implements
+ − 6242 to always fail with ENOSYS. Some functions are actually named
+ − 6243 something starting with __ and the normal name is an alias. */
+ − 6244 #if defined (__stub_remove) || defined (__stub___remove)
+ − 6245 choke me
+ − 6246 #else
+ − 6247 remove();
+ − 6248 #endif
+ − 6249
+ − 6250 ; return 0; }
+ − 6251 EOF
1261
+ − 6252 if { (eval echo configure:6254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6253 rm -rf conftest*
+ − 6254 eval "ac_cv_func_remove=yes"
+ − 6255 else
+ − 6256 echo "configure: failed program was:" >&5
+ − 6257 cat conftest.$ac_ext >&5
+ − 6258 rm -rf conftest*
+ − 6259 eval "ac_cv_func_remove=no"
+ − 6260 fi
+ − 6261 rm -f conftest*
+ − 6262
+ − 6263 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
+ − 6264 echo "$ac_t""yes" 1>&6
+ − 6265 :
+ − 6266 else
+ − 6267 echo "$ac_t""no" 1>&6
+ − 6268 fi
+ − 6269
+ − 6270 if test $ac_cv_func_remove = no; then
+ − 6271
+ − 6272 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1261
+ − 6273 echo "configure:6275: checking for remove in -lposix" >&5
149
+ − 6274 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
+ − 6275
+ − 6276 xe_check_libs=" -lposix "
+ − 6277 cat > conftest.$ac_ext <<EOF
1261
+ − 6278 #line 6280 "configure"
149
+ − 6279 #include "confdefs.h"
+ − 6280 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6281 /* We use char because int might match the return type of a gcc2
+ − 6282 builtin and then its argument prototype would still apply. */
+ − 6283 char remove();
+ − 6284
+ − 6285 int main() {
+ − 6286 remove()
+ − 6287 ; return 0; }
+ − 6288 EOF
1261
+ − 6289 if { (eval echo configure:6291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6290 rm -rf conftest*
+ − 6291 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6292 else
+ − 6293 echo "configure: failed program was:" >&5
+ − 6294 cat conftest.$ac_ext >&5
+ − 6295 rm -rf conftest*
+ − 6296 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6297 fi
+ − 6298 rm -f conftest*
+ − 6299 xe_check_libs=""
+ − 6300
151
+ − 6301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 6302 echo "$ac_t""yes" 1>&6
+ − 6303 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
+ − 6304 else
+ − 6305 echo "$ac_t""no" 1>&6
+ − 6306 fi
+ − 6307
+ − 6308
+ − 6309 fi
+ − 6310
+ − 6311 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
+ − 6312 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1261
+ − 6313 echo "configure:6315: checking for shmat" >&5
+ − 6314
+ − 6315 cat > conftest.$ac_ext <<EOF
+ − 6316 #line 6318 "configure"
149
+ − 6317 #include "confdefs.h"
+ − 6318 /* System header to define __stub macros and hopefully few prototypes,
+ − 6319 which can conflict with char shmat(); below. */
+ − 6320 #include <assert.h>
+ − 6321 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6322 /* We use char because int might match the return type of a gcc2
+ − 6323 builtin and then its argument prototype would still apply. */
+ − 6324 char shmat();
+ − 6325
+ − 6326 int main() {
+ − 6327
+ − 6328 /* The GNU C library defines this for functions which it implements
+ − 6329 to always fail with ENOSYS. Some functions are actually named
+ − 6330 something starting with __ and the normal name is an alias. */
+ − 6331 #if defined (__stub_shmat) || defined (__stub___shmat)
+ − 6332 choke me
+ − 6333 #else
+ − 6334 shmat();
+ − 6335 #endif
+ − 6336
+ − 6337 ; return 0; }
+ − 6338 EOF
1261
+ − 6339 if { (eval echo configure:6341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6340 rm -rf conftest*
+ − 6341 eval "ac_cv_func_shmat=yes"
+ − 6342 else
+ − 6343 echo "configure: failed program was:" >&5
+ − 6344 cat conftest.$ac_ext >&5
+ − 6345 rm -rf conftest*
+ − 6346 eval "ac_cv_func_shmat=no"
+ − 6347 fi
+ − 6348 rm -f conftest*
+ − 6349
+ − 6350 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
+ − 6351 echo "$ac_t""yes" 1>&6
+ − 6352 :
+ − 6353 else
+ − 6354 echo "$ac_t""no" 1>&6
+ − 6355 fi
+ − 6356
+ − 6357 if test $ac_cv_func_shmat = no; then
+ − 6358
+ − 6359 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1261
+ − 6360 echo "configure:6362: checking for shmat in -lipc" >&5
149
+ − 6361 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
+ − 6362
+ − 6363 xe_check_libs=" -lipc "
+ − 6364 cat > conftest.$ac_ext <<EOF
1261
+ − 6365 #line 6367 "configure"
149
+ − 6366 #include "confdefs.h"
+ − 6367 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6368 /* We use char because int might match the return type of a gcc2
+ − 6369 builtin and then its argument prototype would still apply. */
+ − 6370 char shmat();
+ − 6371
+ − 6372 int main() {
+ − 6373 shmat()
+ − 6374 ; return 0; }
+ − 6375 EOF
1261
+ − 6376 if { (eval echo configure:6378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6377 rm -rf conftest*
+ − 6378 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6379 else
+ − 6380 echo "configure: failed program was:" >&5
+ − 6381 cat conftest.$ac_ext >&5
+ − 6382 rm -rf conftest*
+ − 6383 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6384 fi
+ − 6385 rm -f conftest*
+ − 6386 xe_check_libs=""
+ − 6387
151
+ − 6388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 6389 echo "$ac_t""yes" 1>&6
+ − 6390 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
+ − 6391 else
+ − 6392 echo "$ac_t""no" 1>&6
+ − 6393 fi
+ − 6394
0
+ − 6395
+ − 6396 fi
149
+ − 6397 fi
+ − 6398
+ − 6399 # Check for libraries that X11R6 Xt/Xaw programs need.
+ − 6400 ac_save_LDFLAGS="$LDFLAGS"
+ − 6401 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
+ − 6402 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
+ − 6403 # check for ICE first), but we must link in the order -lSM -lICE or
+ − 6404 # we get undefined symbols. So assume we have SM if we have ICE.
+ − 6405 # These have to be linked with before -lX11, unlike the other
+ − 6406 # libraries we check for below, so use a different variable.
+ − 6407 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
+ − 6408
420
+ − 6409 xe_msg_checking="for IceConnectionNumber in -lICE"
+ − 6410 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
+ − 6411 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
1261
+ − 6412 echo "configure:6414: checking "$xe_msg_checking"" >&5
149
+ − 6413 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
+ − 6414
420
+ − 6415 xe_check_libs=" -lICE $X_EXTRA_LIBS"
+ − 6416 cat > conftest.$ac_ext <<EOF
1261
+ − 6417 #line 6419 "configure"
149
+ − 6418 #include "confdefs.h"
+ − 6419 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6420 /* We use char because int might match the return type of a gcc2
+ − 6421 builtin and then its argument prototype would still apply. */
+ − 6422 char IceConnectionNumber();
+ − 6423
+ − 6424 int main() {
+ − 6425 IceConnectionNumber()
+ − 6426 ; return 0; }
+ − 6427 EOF
1261
+ − 6428 if { (eval echo configure:6430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6429 rm -rf conftest*
+ − 6430 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6431 else
+ − 6432 echo "configure: failed program was:" >&5
+ − 6433 cat conftest.$ac_ext >&5
+ − 6434 rm -rf conftest*
+ − 6435 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6436 fi
+ − 6437 rm -f conftest*
+ − 6438 xe_check_libs=""
+ − 6439
151
+ − 6440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 6441 echo "$ac_t""yes" 1>&6
+ − 6442 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
+ − 6443 else
+ − 6444 echo "$ac_t""no" 1>&6
+ − 6445 fi
+ − 6446
+ − 6447
+ − 6448 LDFLAGS="$ac_save_LDFLAGS"
+ − 6449
+ − 6450 fi
+ − 6451 # Autoconf claims to find X library and include dirs for us.
+ − 6452 if test "$no_x" = "yes"
+ − 6453 then with_x11=no window_system=none HAVE_X_WINDOWS=no
+ − 6454 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
+ − 6455 fi
+ − 6456 fi
+ − 6457
0
+ − 6458
149
+ − 6459 if test "$with_x11" = "yes"; then
+ − 6460 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 6461 Defining HAVE_X_WINDOWS
+ − 6462 EOF
+ − 6463 cat >> confdefs.h <<\EOF
+ − 6464 #define HAVE_X_WINDOWS 1
+ − 6465 EOF
+ − 6466 }
+ − 6467
151
+ − 6468 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
175
+ − 6469 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
149
+ − 6470
278
+ − 6471 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
159
+ − 6472 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
149
+ − 6473 if test -d "$lib_dir" -a -d "$inc_dir"; then
151
+ − 6474 case "$x_libraries" in *"$lib_dir"* ) ;; *)
+ − 6475 x_libraries="$lib_dir $x_libraries"
+ − 6476 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
149
+ − 6477 esac
151
+ − 6478 case "$x_includes" in "$inc_dir"* ) ;; *)
+ − 6479 x_includes="$inc_dir $x_includes"
+ − 6480 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
149
+ − 6481 esac
+ − 6482 break; fi
+ − 6483 done
+ − 6484
+ − 6485 for rel in "X11R6" "X11R5" "X11R4"; do
+ − 6486 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
+ − 6487 if test -d "$lib_dir" -a -d "$inc_dir"; then
151
+ − 6488 case "$x_libraries" in *"$lib_dir"* ) ;; *)
+ − 6489 x_libraries="$x_libraries $lib_dir"
+ − 6490 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
149
+ − 6491 esac
151
+ − 6492 case "$x_includes" in "$inc_dir"* ) ;; *)
+ − 6493 x_includes="$x_includes $inc_dir"
+ − 6494 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
149
+ − 6495 esac
+ − 6496 break; fi
+ − 6497 done
+ − 6498
442
+ − 6499 case "$opsys" in
+ − 6500 decosf*) if test "$GCC" = yes -a -d /usr/shlib; then X_LIBS="$X_LIBS -L/usr/shlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L/usr/shlib\" to \$X_LIBS"; fi; fi ;;
+ − 6501 esac
373
+ − 6502
149
+ − 6503 ld_switch_x_site="$X_LIBS"
+ − 6504
151
+ − 6505
+ − 6506 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
+ − 6507 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
+ − 6508 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
151
+ − 6509
163
+ − 6510 runpath="" runpath_dirs=""
155
+ − 6511 if test -n "$LD_RUN_PATH"; then
151
+ − 6512 runpath="$LD_RUN_PATH"
155
+ − 6513 elif test "$GCC" = "yes"; then
163
+ − 6514 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
+ − 6515 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
+ − 6516 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
+ − 6517 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
+ − 6518 case "$arg" in P,* | -L* | -R* )
159
+ − 6519 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
163
+ − 6520 {
155
+ − 6521 xe_runpath_dir="$dir"
163
+ − 6522 test "$xe_runpath_dir" != "/lib" -a \
155
+ − 6523 "$xe_runpath_dir" != "/usr/lib" -a \
371
+ − 6524 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
+ − 6525 eval "$xe_add_unique_runpath_dir"
+ − 6526 }
155
+ − 6527 done ;;
+ − 6528 esac
+ − 6529 done
163
+ − 6530 ld_switch_run="$ld_switch_run_save"
155
+ − 6531 rm -f conftest*
151
+ − 6532 else
155
+ − 6533 for arg in $ld_switch_site $ld_switch_x_site; do
163
+ − 6534 case "$arg" in -L*) {
159
+ − 6535 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
+ − 6536 test "$xe_runpath_dir" != "/lib" -a \
155
+ − 6537 "$xe_runpath_dir" != "/usr/lib" -a \
371
+ − 6538 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
+ − 6539 eval "$xe_add_unique_runpath_dir"
+ − 6540 };; esac
151
+ − 6541 done
163
+ − 6542 if test "$opsys $need_motif" = "sol2 yes"; then
+ − 6543 xe_runpath_dir="/opt/SUNWdt/lib";
+ − 6544 eval "$xe_add_unique_runpath_dir";
+ − 6545 fi
155
+ − 6546 fi
151
+ − 6547 if test -n "$runpath"; then
+ − 6548 ld_switch_run="${dash_r}${runpath}"
272
+ − 6549
+ − 6550 if test "$GCC" = "yes"; then
+ − 6551 set x $ld_switch_run; shift; ld_switch_run=""
+ − 6552 while test -n "$1"; do
+ − 6553 case $1 in
380
+ − 6554 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
+ − 6555 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
272
+ − 6556 -Xlinker* ) ;;
+ − 6557 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
+ − 6558 esac
+ − 6559 shift
+ − 6560 done
+ − 6561 fi
151
+ − 6562 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
+ − 6563 fi
+ − 6564 fi
+ − 6565
+ − 6566
149
+ − 6567 if test "$extra_verbose" = "yes"; then
+ − 6568 echo; echo "X11 compilation variables:"
163
+ − 6569 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
149
+ − 6570 echo
+ − 6571 fi
+ − 6572
265
+ − 6573 bitmapdirs=
+ − 6574 if test "$x_includes" != NONE; then
+ − 6575 for i in $x_includes; do
+ − 6576 if test -d "$i/bitmaps"; then
+ − 6577 bitmapdirs="$i/bitmaps:$bitmapdirs"
+ − 6578 fi
+ − 6579 if test -d "$i/X11/bitmaps"; then
+ − 6580 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
+ − 6581 fi
+ − 6582 done
+ − 6583 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
+ − 6584 fi
+ − 6585 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
+ − 6586 Defining BITMAPDIR = "$bitmapdirs"
+ − 6587 EOF
+ − 6588 cat >> confdefs.h <<EOF
+ − 6589 #define BITMAPDIR "$bitmapdirs"
+ − 6590 EOF
+ − 6591 }
+ − 6592
+ − 6593
163
+ − 6594 echo "checking for X defines extracted by xmkmf" 1>&6
1261
+ − 6595 echo "configure:6597: checking for X defines extracted by xmkmf" >&5
163
+ − 6596 rm -fr conftestdir
+ − 6597 if mkdir conftestdir; then
+ − 6598 cd conftestdir
+ − 6599 cat > Imakefile <<'EOF'
+ − 6600 xetest:
+ − 6601 @echo ${PROTO_DEFINES} ${STD_DEFINES}
+ − 6602 EOF
+ − 6603 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
+ − 6604 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
+ − 6605 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
+ − 6606 fi
+ − 6607 cd ..
+ − 6608 rm -fr conftestdir
+ − 6609 for word in $xmkmf_defines; do
535
+ − 6610 case "$word" in
473
+ − 6611 -D__STDC__*) ;;
+ − 6612 -D* )
442
+ − 6613 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
+ − 6614 case "$word" in
+ − 6615 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
+ − 6616 * ) val=1 ;;
+ − 6617 esac
+ − 6618 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
+ − 6619 if test "$val" = "1"
+ − 6620 then { test "$extra_verbose" = "yes" && cat << EOF
+ − 6621 Defining $sym
+ − 6622 EOF
+ − 6623 cat >> confdefs.h <<EOF
+ − 6624 #define $sym 1
+ − 6625 EOF
+ − 6626 }
+ − 6627
+ − 6628 else { test "$extra_verbose" = "yes" && cat << EOF
+ − 6629 Defining $sym = $val
+ − 6630 EOF
+ − 6631 cat >> confdefs.h <<EOF
+ − 6632 #define $sym $val
+ − 6633 EOF
+ − 6634 }
+ − 6635
+ − 6636 fi
+ − 6637 fi ;;
163
+ − 6638 esac
+ − 6639 done
+ − 6640 fi
+ − 6641
149
+ − 6642 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
+ − 6643 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
1261
+ − 6644 echo "configure:6646: checking for X11/Intrinsic.h" >&5
+ − 6645
+ − 6646 cat > conftest.$ac_ext <<EOF
+ − 6647 #line 6649 "configure"
149
+ − 6648 #include "confdefs.h"
+ − 6649 #include <X11/Intrinsic.h>
+ − 6650 EOF
+ − 6651 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 6652 { (eval echo configure:6654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 6653 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 6654 if test -z "$ac_err"; then
+ − 6655 rm -rf conftest*
+ − 6656 eval "ac_cv_header_$ac_safe=yes"
+ − 6657 else
+ − 6658 echo "$ac_err" >&5
+ − 6659 echo "configure: failed program was:" >&5
+ − 6660 cat conftest.$ac_ext >&5
+ − 6661 rm -rf conftest*
+ − 6662 eval "ac_cv_header_$ac_safe=no"
+ − 6663 fi
+ − 6664 rm -f conftest*
+ − 6665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 6666 echo "$ac_t""yes" 1>&6
+ − 6667 :
+ − 6668 else
+ − 6669 echo "$ac_t""no" 1>&6
561
+ − 6670 { echo "configure: error: Unable to find X11 header files." 1>&2; exit 1; }
149
+ − 6671 fi
+ − 6672
+ − 6673
+ − 6674
+ − 6675 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
1261
+ − 6676 echo "configure:6678: checking for XOpenDisplay in -lX11" >&5
149
+ − 6677 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
+ − 6678
+ − 6679 xe_check_libs=" -lX11 "
+ − 6680 cat > conftest.$ac_ext <<EOF
1261
+ − 6681 #line 6683 "configure"
149
+ − 6682 #include "confdefs.h"
+ − 6683 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6684 /* We use char because int might match the return type of a gcc2
+ − 6685 builtin and then its argument prototype would still apply. */
+ − 6686 char XOpenDisplay();
+ − 6687
+ − 6688 int main() {
+ − 6689 XOpenDisplay()
+ − 6690 ; return 0; }
+ − 6691 EOF
1261
+ − 6692 if { (eval echo configure:6694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6693 rm -rf conftest*
+ − 6694 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6695 else
+ − 6696 echo "configure: failed program was:" >&5
+ − 6697 cat conftest.$ac_ext >&5
+ − 6698 rm -rf conftest*
+ − 6699 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6700 fi
+ − 6701 rm -f conftest*
+ − 6702 xe_check_libs=""
+ − 6703
151
+ − 6704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 6705 echo "$ac_t""yes" 1>&6
+ − 6706 have_lib_x11=yes
+ − 6707 else
+ − 6708 echo "$ac_t""no" 1>&6
+ − 6709 fi
+ − 6710
+ − 6711
+ − 6712 if test "$have_lib_x11" != "yes"; then
+ − 6713
+ − 6714 xe_msg_checking="for XGetFontProperty in -lX11"
+ − 6715 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
+ − 6716 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
1261
+ − 6717 echo "configure:6719: checking "$xe_msg_checking"" >&5
149
+ − 6718 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
+ − 6719
+ − 6720 xe_check_libs=" -lX11 -b i486-linuxaout"
+ − 6721 cat > conftest.$ac_ext <<EOF
1261
+ − 6722 #line 6724 "configure"
149
+ − 6723 #include "confdefs.h"
+ − 6724 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6725 /* We use char because int might match the return type of a gcc2
+ − 6726 builtin and then its argument prototype would still apply. */
+ − 6727 char XGetFontProperty();
+ − 6728
+ − 6729 int main() {
+ − 6730 XGetFontProperty()
+ − 6731 ; return 0; }
+ − 6732 EOF
1261
+ − 6733 if { (eval echo configure:6735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6734 rm -rf conftest*
+ − 6735 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6736 else
+ − 6737 echo "configure: failed program was:" >&5
+ − 6738 cat conftest.$ac_ext >&5
+ − 6739 rm -rf conftest*
+ − 6740 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6741 fi
+ − 6742 rm -f conftest*
+ − 6743 xe_check_libs=""
+ − 6744
151
+ − 6745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 6746 echo "$ac_t""yes" 1>&6
+ − 6747 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
+ − 6748 else
+ − 6749 echo "$ac_t""no" 1>&6
561
+ − 6750 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; }
149
+ − 6751 fi
+ − 6752
+ − 6753
0
+ − 6754 fi
149
+ − 6755 libs_x="-lX11"
151
+ − 6756 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
149
+ − 6757
153
+ − 6758
+ − 6759 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
1261
+ − 6760 echo "configure:6762: checking for XShapeSelectInput in -lXext" >&5
153
+ − 6761 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
+ − 6762
+ − 6763 xe_check_libs=" -lXext "
+ − 6764 cat > conftest.$ac_ext <<EOF
1261
+ − 6765 #line 6767 "configure"
153
+ − 6766 #include "confdefs.h"
+ − 6767 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6768 /* We use char because int might match the return type of a gcc2
+ − 6769 builtin and then its argument prototype would still apply. */
+ − 6770 char XShapeSelectInput();
+ − 6771
+ − 6772 int main() {
+ − 6773 XShapeSelectInput()
+ − 6774 ; return 0; }
+ − 6775 EOF
1261
+ − 6776 if { (eval echo configure:6778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
153
+ − 6777 rm -rf conftest*
+ − 6778 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6779 else
+ − 6780 echo "configure: failed program was:" >&5
+ − 6781 cat conftest.$ac_ext >&5
+ − 6782 rm -rf conftest*
+ − 6783 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6784 fi
+ − 6785 rm -f conftest*
+ − 6786 xe_check_libs=""
+ − 6787
+ − 6788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 6789 echo "$ac_t""yes" 1>&6
+ − 6790 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
+ − 6791 else
+ − 6792 echo "$ac_t""no" 1>&6
+ − 6793 fi
+ − 6794
+ − 6795
+ − 6796
169
+ − 6797
149
+ − 6798 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
1261
+ − 6799 echo "configure:6801: checking for XtOpenDisplay in -lXt" >&5
149
+ − 6800 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
+ − 6801
+ − 6802 xe_check_libs=" -lXt "
+ − 6803 cat > conftest.$ac_ext <<EOF
1261
+ − 6804 #line 6806 "configure"
149
+ − 6805 #include "confdefs.h"
+ − 6806 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6807 /* We use char because int might match the return type of a gcc2
+ − 6808 builtin and then its argument prototype would still apply. */
+ − 6809 char XtOpenDisplay();
+ − 6810
+ − 6811 int main() {
+ − 6812 XtOpenDisplay()
+ − 6813 ; return 0; }
+ − 6814 EOF
1261
+ − 6815 if { (eval echo configure:6817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6816 rm -rf conftest*
+ − 6817 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6818 else
+ − 6819 echo "configure: failed program was:" >&5
+ − 6820 cat conftest.$ac_ext >&5
+ − 6821 rm -rf conftest*
+ − 6822 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6823 fi
+ − 6824 rm -f conftest*
+ − 6825 xe_check_libs=""
+ − 6826
151
+ − 6827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 6828 echo "$ac_t""yes" 1>&6
+ − 6829 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
149
+ − 6830 else
+ − 6831 echo "$ac_t""no" 1>&6
561
+ − 6832 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; }
149
+ − 6833 fi
+ − 6834
169
+ − 6835
149
+ − 6836
+ − 6837 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
1261
+ − 6838 echo "configure:6840: checking the version of X11 being used" >&5
149
+ − 6839 cat > conftest.$ac_ext <<EOF
1261
+ − 6840 #line 6842 "configure"
149
+ − 6841 #include "confdefs.h"
+ − 6842 #include <X11/Intrinsic.h>
272
+ − 6843 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
+ − 6844 EOF
1261
+ − 6845 if { (eval echo configure:6847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
+ − 6846 then
151
+ − 6847 ./conftest foobar; x11_release=$?
149
+ − 6848 else
373
+ − 6849 conftest_rc="$?"
149
+ − 6850 echo "configure: failed program was:" >&5
+ − 6851 cat conftest.$ac_ext >&5
+ − 6852 rm -fr conftest*
151
+ − 6853 x11_release=4
149
+ − 6854 fi
+ − 6855 rm -fr conftest*
151
+ − 6856 echo "$ac_t""R${x11_release}" 1>&6
149
+ − 6857 { test "$extra_verbose" = "yes" && cat << EOF
151
+ − 6858 Defining THIS_IS_X11R${x11_release}
149
+ − 6859 EOF
+ − 6860 cat >> confdefs.h <<EOF
151
+ − 6861 #define THIS_IS_X11R${x11_release} 1
149
+ − 6862 EOF
+ − 6863 }
+ − 6864
+ − 6865
442
+ − 6866 if test "${x11_release}" = "4"; then
+ − 6867 case "$with_widgets" in
+ − 6868 "" | "no") with_widgets=no ;;
+ − 6869 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
+ − 6870 esac
+ − 6871 fi
+ − 6872
+ − 6873 for ac_func in XConvertCase
+ − 6874 do
+ − 6875 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1261
+ − 6876 echo "configure:6878: checking for $ac_func" >&5
+ − 6877
+ − 6878 cat > conftest.$ac_ext <<EOF
+ − 6879 #line 6881 "configure"
442
+ − 6880 #include "confdefs.h"
+ − 6881 /* System header to define __stub macros and hopefully few prototypes,
+ − 6882 which can conflict with char $ac_func(); below. */
+ − 6883 #include <assert.h>
+ − 6884 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6885 /* We use char because int might match the return type of a gcc2
+ − 6886 builtin and then its argument prototype would still apply. */
+ − 6887 char $ac_func();
+ − 6888
+ − 6889 int main() {
+ − 6890
+ − 6891 /* The GNU C library defines this for functions which it implements
+ − 6892 to always fail with ENOSYS. Some functions are actually named
+ − 6893 something starting with __ and the normal name is an alias. */
+ − 6894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 6895 choke me
+ − 6896 #else
+ − 6897 $ac_func();
+ − 6898 #endif
+ − 6899
+ − 6900 ; return 0; }
+ − 6901 EOF
1261
+ − 6902 if { (eval echo configure:6904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 6903 rm -rf conftest*
+ − 6904 eval "ac_cv_func_$ac_func=yes"
+ − 6905 else
+ − 6906 echo "configure: failed program was:" >&5
+ − 6907 cat conftest.$ac_ext >&5
+ − 6908 rm -rf conftest*
+ − 6909 eval "ac_cv_func_$ac_func=no"
+ − 6910 fi
+ − 6911 rm -f conftest*
+ − 6912
+ − 6913 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 6914 echo "$ac_t""yes" 1>&6
+ − 6915 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 6916 { test "$extra_verbose" = "yes" && cat << EOF
+ − 6917 Defining $ac_tr_func
+ − 6918 EOF
+ − 6919 cat >> confdefs.h <<EOF
+ − 6920 #define $ac_tr_func 1
+ − 6921 EOF
+ − 6922 }
+ − 6923
+ − 6924 else
+ − 6925 echo "$ac_t""no" 1>&6
+ − 6926 fi
+ − 6927 done
+ − 6928
+ − 6929
149
+ − 6930 for ac_hdr in X11/Xlocale.h
+ − 6931 do
+ − 6932 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 6933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1261
+ − 6934 echo "configure:6936: checking for $ac_hdr" >&5
+ − 6935
+ − 6936 cat > conftest.$ac_ext <<EOF
+ − 6937 #line 6939 "configure"
149
+ − 6938 #include "confdefs.h"
+ − 6939 #include <$ac_hdr>
+ − 6940 EOF
+ − 6941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 6942 { (eval echo configure:6944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 6943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 6944 if test -z "$ac_err"; then
+ − 6945 rm -rf conftest*
+ − 6946 eval "ac_cv_header_$ac_safe=yes"
+ − 6947 else
+ − 6948 echo "$ac_err" >&5
+ − 6949 echo "configure: failed program was:" >&5
+ − 6950 cat conftest.$ac_ext >&5
+ − 6951 rm -rf conftest*
+ − 6952 eval "ac_cv_header_$ac_safe=no"
+ − 6953 fi
+ − 6954 rm -f conftest*
+ − 6955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 6956 echo "$ac_t""yes" 1>&6
+ − 6957 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 6958 { test "$extra_verbose" = "yes" && cat << EOF
+ − 6959 Defining $ac_tr_hdr
+ − 6960 EOF
+ − 6961 cat >> confdefs.h <<EOF
+ − 6962 #define $ac_tr_hdr 1
+ − 6963 EOF
+ − 6964 }
+ − 6965
+ − 6966 else
+ − 6967 echo "$ac_t""no" 1>&6
+ − 6968 fi
+ − 6969 done
+ − 6970
+ − 6971
444
+ − 6972 for ac_func in XRegisterIMInstantiateCallback
+ − 6973 do
+ − 6974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1261
+ − 6975 echo "configure:6977: checking for $ac_func" >&5
+ − 6976
+ − 6977 cat > conftest.$ac_ext <<EOF
+ − 6978 #line 6980 "configure"
444
+ − 6979 #include "confdefs.h"
+ − 6980 /* System header to define __stub macros and hopefully few prototypes,
+ − 6981 which can conflict with char $ac_func(); below. */
+ − 6982 #include <assert.h>
+ − 6983 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6984 /* We use char because int might match the return type of a gcc2
+ − 6985 builtin and then its argument prototype would still apply. */
+ − 6986 char $ac_func();
+ − 6987
+ − 6988 int main() {
+ − 6989
+ − 6990 /* The GNU C library defines this for functions which it implements
+ − 6991 to always fail with ENOSYS. Some functions are actually named
+ − 6992 something starting with __ and the normal name is an alias. */
+ − 6993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 6994 choke me
+ − 6995 #else
+ − 6996 $ac_func();
+ − 6997 #endif
+ − 6998
+ − 6999 ; return 0; }
+ − 7000 EOF
1261
+ − 7001 if { (eval echo configure:7003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
444
+ − 7002 rm -rf conftest*
+ − 7003 eval "ac_cv_func_$ac_func=yes"
+ − 7004 else
+ − 7005 echo "configure: failed program was:" >&5
+ − 7006 cat conftest.$ac_ext >&5
+ − 7007 rm -rf conftest*
+ − 7008 eval "ac_cv_func_$ac_func=no"
+ − 7009 fi
+ − 7010 rm -f conftest*
+ − 7011
+ − 7012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 7013 echo "$ac_t""yes" 1>&6
+ − 7014 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 7015 { test "$extra_verbose" = "yes" && cat << EOF
+ − 7016 Defining $ac_tr_func
+ − 7017 EOF
+ − 7018 cat >> confdefs.h <<EOF
+ − 7019 #define $ac_tr_func 1
+ − 7020 EOF
+ − 7021 }
+ − 7022
+ − 7023 else
+ − 7024 echo "$ac_t""no" 1>&6
+ − 7025 fi
+ − 7026 done
+ − 7027
+ − 7028 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
1261
+ − 7029 echo "configure:7031: checking for standard XRegisterIMInstantiateCallback prototype" >&5
444
+ − 7030 cat > conftest.$ac_ext <<EOF
1261
+ − 7031 #line 7033 "configure"
444
+ − 7032 #include "confdefs.h"
+ − 7033
+ − 7034 #define NeedFunctionPrototypes 1
+ − 7035 #include <X11/Xlib.h>
+ − 7036 extern Bool XRegisterIMInstantiateCallback(
+ − 7037 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
+ − 7038
+ − 7039 int main() {
+ − 7040
+ − 7041 ; return 0; }
+ − 7042 EOF
1261
+ − 7043 if { (eval echo configure:7045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
444
+ − 7044 rm -rf conftest*
+ − 7045 echo "$ac_t""yes" 1>&6
+ − 7046 else
+ − 7047 echo "configure: failed program was:" >&5
+ − 7048 cat conftest.$ac_ext >&5
+ − 7049 rm -rf conftest*
+ − 7050 echo "$ac_t""no" 1>&6
+ − 7051 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7052 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
+ − 7053 EOF
+ − 7054 cat >> confdefs.h <<\EOF
+ − 7055 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
+ − 7056 EOF
+ − 7057 }
+ − 7058
+ − 7059 fi
+ − 7060 rm -f conftest*
149
+ − 7061
169
+ − 7062 test -z "$with_xmu" && {
+ − 7063 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
1261
+ − 7064 echo "configure:7066: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
169
+ − 7065 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
149
+ − 7066
+ − 7067 xe_check_libs=" -lXmu "
+ − 7068 cat > conftest.$ac_ext <<EOF
1261
+ − 7069 #line 7071 "configure"
149
+ − 7070 #include "confdefs.h"
+ − 7071 /* Override any gcc2 internal prototype to avoid an error. */
+ − 7072 /* We use char because int might match the return type of a gcc2
+ − 7073 builtin and then its argument prototype would still apply. */
169
+ − 7074 char XmuReadBitmapDataFromFile();
149
+ − 7075
+ − 7076 int main() {
169
+ − 7077 XmuReadBitmapDataFromFile()
149
+ − 7078 ; return 0; }
+ − 7079 EOF
1261
+ − 7080 if { (eval echo configure:7082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 7081 rm -rf conftest*
+ − 7082 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 7083 else
+ − 7084 echo "configure: failed program was:" >&5
+ − 7085 cat conftest.$ac_ext >&5
+ − 7086 rm -rf conftest*
+ − 7087 eval "ac_cv_lib_$ac_lib_var=no"
+ − 7088 fi
+ − 7089 rm -f conftest*
+ − 7090 xe_check_libs=""
+ − 7091
151
+ − 7092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 7093 echo "$ac_t""yes" 1>&6
+ − 7094 with_xmu=yes
+ − 7095 else
+ − 7096 echo "$ac_t""no" 1>&6
+ − 7097 with_xmu=no
+ − 7098 fi
+ − 7099
169
+ − 7100 }
185
+ − 7101 if test "$with_xmu" = "no"; then
+ − 7102 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
151
+ − 7103 echo " xemacs will be linked with \"xmu.o\""
+ − 7104 fi
187
+ − 7105 else
185
+ − 7106 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
+ − 7107 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7108 Defining HAVE_XMU
+ − 7109 EOF
+ − 7110 cat >> confdefs.h <<\EOF
+ − 7111 #define HAVE_XMU 1
+ − 7112 EOF
+ − 7113 }
+ − 7114
169
+ − 7115 fi
151
+ − 7116
+ − 7117
+ − 7118 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
1261
+ − 7119 echo "configure:7121: checking for main in -lXbsd" >&5
151
+ − 7120 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
+ − 7121
+ − 7122 xe_check_libs=" -lXbsd "
+ − 7123 cat > conftest.$ac_ext <<EOF
1261
+ − 7124 #line 7126 "configure"
151
+ − 7125 #include "confdefs.h"
149
+ − 7126
+ − 7127 int main() {
151
+ − 7128 main()
149
+ − 7129 ; return 0; }
+ − 7130 EOF
1261
+ − 7131 if { (eval echo configure:7133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 7132 rm -rf conftest*
+ − 7133 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 7134 else
+ − 7135 echo "configure: failed program was:" >&5
+ − 7136 cat conftest.$ac_ext >&5
+ − 7137 rm -rf conftest*
+ − 7138 eval "ac_cv_lib_$ac_lib_var=no"
+ − 7139 fi
+ − 7140 rm -f conftest*
+ − 7141 xe_check_libs=""
+ − 7142
151
+ − 7143 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 7144 echo "$ac_t""yes" 1>&6
+ − 7145 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
+ − 7146 else
+ − 7147 echo "$ac_t""no" 1>&6
+ − 7148 fi
+ − 7149
149
+ − 7150
+ − 7151
243
+ − 7152 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
274
+ − 7153 if test "$GCC" = "yes"; then
+ − 7154 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
+ − 7155 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
+ − 7156 else
+ − 7157 case "$CC" in
+ − 7158 "xlc" ) CC="xlc_r" ;;
+ − 7159 "xlC" ) CC="xlC_r" ;;
+ − 7160 "cc" ) CC="cc_r" ;;
+ − 7161 esac
+ − 7162 fi
243
+ − 7163 fi
+ − 7164
149
+ − 7165 fi
265
+ − 7166 if test "$with_msw" != "no"; then
+ − 7167 echo "checking for MS-Windows" 1>&6
1261
+ − 7168 echo "configure:7170: checking for MS-Windows" >&5
265
+ − 7169
+ − 7170 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
1261
+ − 7171 echo "configure:7173: checking for main in -lgdi32" >&5
265
+ − 7172 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
+ − 7173
+ − 7174 xe_check_libs=" -lgdi32 "
+ − 7175 cat > conftest.$ac_ext <<EOF
1261
+ − 7176 #line 7178 "configure"
265
+ − 7177 #include "confdefs.h"
+ − 7178
+ − 7179 int main() {
+ − 7180 main()
+ − 7181 ; return 0; }
+ − 7182 EOF
1261
+ − 7183 if { (eval echo configure:7185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
265
+ − 7184 rm -rf conftest*
+ − 7185 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 7186 else
+ − 7187 echo "configure: failed program was:" >&5
+ − 7188 cat conftest.$ac_ext >&5
+ − 7189 rm -rf conftest*
+ − 7190 eval "ac_cv_lib_$ac_lib_var=no"
+ − 7191 fi
+ − 7192 rm -f conftest*
+ − 7193 xe_check_libs=""
+ − 7194
+ − 7195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 7196 echo "$ac_t""yes" 1>&6
+ − 7197 with_msw=yes
+ − 7198 else
+ − 7199 echo "$ac_t""no" 1>&6
+ − 7200 fi
+ − 7201
+ − 7202
+ − 7203 if test "$with_msw" = "yes"; then
+ − 7204 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7205 Defining HAVE_MS_WINDOWS
+ − 7206 EOF
+ − 7207 cat >> confdefs.h <<\EOF
+ − 7208 #define HAVE_MS_WINDOWS 1
+ − 7209 EOF
+ − 7210 }
+ − 7211
448
+ − 7212
462
+ − 7213 if test "$with_netinstall" = "yes"; then
+ − 7214 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
+ − 7215 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
+ − 7216 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
+ − 7217 fi
458
+ − 7218
276
+ − 7219 install_pp="$blddir/lib-src/installexe.sh"
771
+ − 7220 libs_system="$libs_system -limm32 -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lole32 -luuid -lwinspool -lmpr" && if test "$extra_verbose" = "yes"; then echo " Appending \"-limm32 -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lole32 -luuid -lwinspool -lmpr\" to \$libs_system"; fi
+ − 7221 if test "$with_dragndrop" != no; then
+ − 7222 dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
+ − 7223 with_dragndrop=yes
+ − 7224 fi
265
+ − 7225 if test "$window_system" != x11; then
771
+ − 7226 window_system=msw
+ − 7227 test "$with_scrollbars" != "no" && with_scrollbars=msw
+ − 7228 test "$with_menubars" != "no" && with_menubars=msw
+ − 7229 test "$with_toolbars" != "no" && with_toolbars=msw
+ − 7230 test "$with_dialogs" != "no" && with_dialogs=msw
+ − 7231 test "$with_widgets" != "no" && with_widgets=msw
265
+ − 7232 fi
278
+ − 7233 cat > conftest.$ac_ext <<EOF
1261
+ − 7234 #line 7236 "configure"
278
+ − 7235 #include "confdefs.h"
+ − 7236 #include <fcntl.h>
+ − 7237 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
+ − 7238 EOF
1261
+ − 7239 if { (eval echo configure:7241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
278
+ − 7240 then
771
+ − 7241 { test "$extra_verbose" = "yes" && cat << \EOF
278
+ − 7242 Defining HAVE_MSG_SELECT
+ − 7243 EOF
+ − 7244 cat >> confdefs.h <<\EOF
+ − 7245 #define HAVE_MSG_SELECT 1
+ − 7246 EOF
+ − 7247 }
+ − 7248
+ − 7249 else
373
+ − 7250 conftest_rc="$?"
278
+ − 7251 echo "configure: failed program was:" >&5
+ − 7252 cat conftest.$ac_ext >&5
+ − 7253 fi
+ − 7254 rm -fr conftest*
771
+ − 7255 fi
+ − 7256 fi
+ − 7257
+ − 7258
+ − 7259
+ − 7260 test -z "$with_dragndrop" && with_dragndrop="$with_dragndrop_default"
149
+ − 7261 test -z "$window_system" && window_system="none"
+ − 7262
272
+ − 7263 if test "$window_system" = "none"; then
388
+ − 7264 for feature in menubars scrollbars toolbars dialogs dragndrop xface
272
+ − 7265 do
+ − 7266 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
+ − 7267 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
+ − 7268 fi
+ − 7269 eval "with_${feature}=no"
+ − 7270 done
+ − 7271 else
+ − 7272 test -z "$with_toolbars" && with_toolbars=yes
+ − 7273 fi
+ − 7274
+ − 7275 if test "$with_msw" != "yes"; then
+ − 7276 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
+ − 7277 do
+ − 7278 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
+ − 7279 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
+ − 7280 fi
+ − 7281 eval "with_${feature}=no"
+ − 7282 done
+ − 7283 else
+ − 7284 :
+ − 7285 fi
+ − 7286
+ − 7287 if test "$with_x11" != "yes"; then
434
+ − 7288 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
70
+ − 7289 do
149
+ − 7290 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
+ − 7291 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
70
+ − 7292 fi
149
+ − 7293 eval "with_${feature}=no"
70
+ − 7294 done
149
+ − 7295 fi
+ − 7296
442
+ − 7297 if test "$with_x11" = "yes"; then
+ − 7298 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
+ − 7299 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
1261
+ − 7300 echo "configure:7302: checking for X11/extensions/shape.h" >&5
+ − 7301
+ − 7302 cat > conftest.$ac_ext <<EOF
+ − 7303 #line 7305 "configure"
442
+ − 7304 #include "confdefs.h"
+ − 7305 #include <X11/extensions/shape.h>
+ − 7306 EOF
+ − 7307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 7308 { (eval echo configure:7310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
+ − 7309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 7310 if test -z "$ac_err"; then
+ − 7311 rm -rf conftest*
+ − 7312 eval "ac_cv_header_$ac_safe=yes"
+ − 7313 else
+ − 7314 echo "$ac_err" >&5
+ − 7315 echo "configure: failed program was:" >&5
+ − 7316 cat conftest.$ac_ext >&5
+ − 7317 rm -rf conftest*
+ − 7318 eval "ac_cv_header_$ac_safe=no"
+ − 7319 fi
+ − 7320 rm -f conftest*
+ − 7321 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 7322 echo "$ac_t""yes" 1>&6
+ − 7323
+ − 7324 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7325 Defining HAVE_BALLOON_HELP
+ − 7326 EOF
+ − 7327 cat >> confdefs.h <<\EOF
+ − 7328 #define HAVE_BALLOON_HELP 1
+ − 7329 EOF
+ − 7330 }
+ − 7331
771
+ − 7332
442
+ − 7333 else
+ − 7334 echo "$ac_t""no" 1>&6
+ − 7335 fi
+ − 7336
+ − 7337 fi
+ − 7338
0
+ − 7339 bitmapdir=
+ − 7340
149
+ − 7341 case "$window_system" in
70
+ − 7342 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
272
+ − 7343 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
462
+ − 7344 gtk )
+ − 7345 HAVE_X_WINDOWS=no
+ − 7346 test "$with_gnome" = "yes" && echo " Using GNOME."
+ − 7347 test "$with_gnome" = "no" && echo " Using GTK."
+ − 7348 ;;
70
+ − 7349 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
0
+ − 7350 esac
+ − 7351
149
+ − 7352 case "$x_libraries" in *X11R4* )
+ − 7353 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
+ − 7354 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
+ − 7355 esac
+ − 7356
414
+ − 7357 echo "checking for WM_COMMAND option" 1>&6
1261
+ − 7358 echo "configure:7360: checking for WM_COMMAND option" >&5;
414
+ − 7359 if test "$with_wmcommand" != "no"; then
+ − 7360 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7361 Defining HAVE_WMCOMMAND
+ − 7362 EOF
+ − 7363 cat >> confdefs.h <<\EOF
+ − 7364 #define HAVE_WMCOMMAND 1
177
+ − 7365 EOF
+ − 7366 }
+ − 7367
+ − 7368 fi
+ − 7369
149
+ − 7370 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
+ − 7371 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
+ − 7372 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
1261
+ − 7373 echo "configure:7375: checking for X11/Xauth.h" >&5
+ − 7374
+ − 7375 cat > conftest.$ac_ext <<EOF
+ − 7376 #line 7378 "configure"
149
+ − 7377 #include "confdefs.h"
+ − 7378 #include <X11/Xauth.h>
+ − 7379 EOF
+ − 7380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 7381 { (eval echo configure:7383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 7382 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 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 else
+ − 7398 echo "$ac_t""no" 1>&6
+ − 7399 with_xauth=no
+ − 7400 fi
+ − 7401 }
+ − 7402 test -z "$with_xauth" && {
+ − 7403 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
1261
+ − 7404 echo "configure:7406: checking for XauGetAuthByAddr in -lXau" >&5
149
+ − 7405 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
+ − 7406
+ − 7407 xe_check_libs=" -lXau "
+ − 7408 cat > conftest.$ac_ext <<EOF
1261
+ − 7409 #line 7411 "configure"
149
+ − 7410 #include "confdefs.h"
+ − 7411 /* Override any gcc2 internal prototype to avoid an error. */
+ − 7412 /* We use char because int might match the return type of a gcc2
+ − 7413 builtin and then its argument prototype would still apply. */
+ − 7414 char XauGetAuthByAddr();
+ − 7415
+ − 7416 int main() {
+ − 7417 XauGetAuthByAddr()
+ − 7418 ; return 0; }
+ − 7419 EOF
1261
+ − 7420 if { (eval echo configure:7422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 7421 rm -rf conftest*
+ − 7422 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 7423 else
+ − 7424 echo "configure: failed program was:" >&5
+ − 7425 cat conftest.$ac_ext >&5
+ − 7426 rm -rf conftest*
+ − 7427 eval "ac_cv_lib_$ac_lib_var=no"
+ − 7428 fi
+ − 7429 rm -f conftest*
+ − 7430 xe_check_libs=""
+ − 7431
151
+ − 7432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 7433 echo "$ac_t""yes" 1>&6
+ − 7434 :
+ − 7435 else
+ − 7436 echo "$ac_t""no" 1>&6
+ − 7437 with_xauth=no
+ − 7438 fi
+ − 7439
+ − 7440 }
+ − 7441 test -z "$with_xauth" && with_xauth=yes
+ − 7442 if test "$with_xauth" = "yes"; then
+ − 7443 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7444 Defining HAVE_XAUTH
+ − 7445 EOF
+ − 7446 cat >> confdefs.h <<\EOF
+ − 7447 #define HAVE_XAUTH 1
+ − 7448 EOF
+ − 7449 }
+ − 7450
159
+ − 7451
+ − 7452 T=""
462
+ − 7453 for W in $GTK_LIBS $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
159
+ − 7454 libs_xauth="$T"
+ − 7455
+ − 7456 fi
+ − 7457
149
+ − 7458
274
+ − 7459
149
+ − 7460
1111
+ − 7461
+ − 7462 test -n "$xemacs_compiler" && XEMACS_CC="$xemacs_compiler"
+ − 7463 : ${XEMACS_CC:="$CC"}
+ − 7464
997
+ − 7465 if test "$with_modules" != "no"; then
+ − 7466 echo "checking for module support" 1>&6
1261
+ − 7467 echo "configure:7469: checking for module support" >&5
997
+ − 7468
+ − 7469 if test "$with_msw" = "yes"; then
+ − 7470 have_dl=yes;
+ − 7471 else
+ − 7472 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
+ − 7473 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
1261
+ − 7474 echo "configure:7476: checking for dlfcn.h" >&5
+ − 7475
+ − 7476 cat > conftest.$ac_ext <<EOF
+ − 7477 #line 7479 "configure"
997
+ − 7478 #include "confdefs.h"
+ − 7479 #include <dlfcn.h>
+ − 7480 EOF
+ − 7481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 7482 { (eval echo configure:7484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
997
+ − 7483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 7484 if test -z "$ac_err"; then
+ − 7485 rm -rf conftest*
+ − 7486 eval "ac_cv_header_$ac_safe=yes"
+ − 7487 else
+ − 7488 echo "$ac_err" >&5
+ − 7489 echo "configure: failed program was:" >&5
+ − 7490 cat conftest.$ac_ext >&5
+ − 7491 rm -rf conftest*
+ − 7492 eval "ac_cv_header_$ac_safe=no"
+ − 7493 fi
+ − 7494 rm -f conftest*
+ − 7495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 7496 echo "$ac_t""yes" 1>&6
+ − 7497
+ − 7498 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
1261
+ − 7499 echo "configure:7501: checking for dlopen in -lc" >&5
997
+ − 7500 cat > conftest.$ac_ext <<EOF
1261
+ − 7501 #line 7503 "configure"
997
+ − 7502 #include "confdefs.h"
+ − 7503 #include <dlfcn.h>
+ − 7504 int main() {
+ − 7505 dlopen ("", 0);
+ − 7506 ; return 0; }
+ − 7507 EOF
1261
+ − 7508 if { (eval echo configure:7510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
997
+ − 7509 rm -rf conftest*
+ − 7510 have_dl=yes
+ − 7511 else
+ − 7512 echo "configure: failed program was:" >&5
+ − 7513 cat conftest.$ac_ext >&5
+ − 7514 rm -rf conftest*
1259
+ − 7515
+ − 7516 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1261
+ − 7517 echo "configure:7519: checking for dlopen in -ldl" >&5
1259
+ − 7518 ac_save_LIBS="$LIBS"
+ − 7519 LIBS="-ldl $LIBS"
+ − 7520 cat > conftest.$ac_ext <<EOF
1261
+ − 7521 #line 7523 "configure"
1259
+ − 7522 #include "confdefs.h"
+ − 7523 #include <dlfcn.h>
+ − 7524 int main() {
+ − 7525 dlopen ("", 0);
+ − 7526 ; return 0; }
+ − 7527 EOF
1261
+ − 7528 if { (eval echo configure:7530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1259
+ − 7529 rm -rf conftest*
+ − 7530 have_dl=yes
+ − 7531 else
+ − 7532 echo "configure: failed program was:" >&5
+ − 7533 cat conftest.$ac_ext >&5
+ − 7534 rm -rf conftest*
997
+ − 7535 LIBS="$ac_save_LIBS"
+ − 7536 fi
+ − 7537 rm -f conftest*
+ − 7538 ac_save_LIBS=
+ − 7539 fi
+ − 7540 rm -f conftest*
+ − 7541 else
+ − 7542 echo "$ac_t""no" 1>&6
+ − 7543 fi
+ − 7544
+ − 7545 if test -n "$have_dl"; then
+ − 7546 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7547 Defining HAVE_DLOPEN
+ − 7548 EOF
+ − 7549 cat >> confdefs.h <<\EOF
+ − 7550 #define HAVE_DLOPEN 1
+ − 7551 EOF
+ − 7552 }
+ − 7553
+ − 7554 else
+ − 7555
+ − 7556 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
1261
+ − 7557 echo "configure:7559: checking for shl_load in -ldld" >&5
997
+ − 7558 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
+ − 7559
+ − 7560 xe_check_libs=" -ldld "
+ − 7561 cat > conftest.$ac_ext <<EOF
1261
+ − 7562 #line 7564 "configure"
997
+ − 7563 #include "confdefs.h"
+ − 7564 /* Override any gcc2 internal prototype to avoid an error. */
+ − 7565 /* We use char because int might match the return type of a gcc2
+ − 7566 builtin and then its argument prototype would still apply. */
+ − 7567 char shl_load();
+ − 7568
+ − 7569 int main() {
+ − 7570 shl_load()
+ − 7571 ; return 0; }
+ − 7572 EOF
1261
+ − 7573 if { (eval echo configure:7575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
997
+ − 7574 rm -rf conftest*
+ − 7575 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 7576 else
+ − 7577 echo "configure: failed program was:" >&5
+ − 7578 cat conftest.$ac_ext >&5
+ − 7579 rm -rf conftest*
+ − 7580 eval "ac_cv_lib_$ac_lib_var=no"
+ − 7581 fi
+ − 7582 rm -f conftest*
+ − 7583 xe_check_libs=""
+ − 7584
+ − 7585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 7586 echo "$ac_t""yes" 1>&6
+ − 7587 libdl=dld have_dl=yes;
+ − 7588 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7589 Defining HAVE_SHL_LOAD
+ − 7590 EOF
+ − 7591 cat >> confdefs.h <<\EOF
+ − 7592 #define HAVE_SHL_LOAD 1
+ − 7593 EOF
+ − 7594 }
+ − 7595
+ − 7596 else
+ − 7597 echo "$ac_t""no" 1>&6
+ − 7598
+ − 7599 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
1261
+ − 7600 echo "configure:7602: checking for dld_init in -ldld" >&5
997
+ − 7601 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
+ − 7602
+ − 7603 xe_check_libs=" -ldld "
+ − 7604 cat > conftest.$ac_ext <<EOF
1261
+ − 7605 #line 7607 "configure"
997
+ − 7606 #include "confdefs.h"
+ − 7607 /* Override any gcc2 internal prototype to avoid an error. */
+ − 7608 /* We use char because int might match the return type of a gcc2
+ − 7609 builtin and then its argument prototype would still apply. */
+ − 7610 char dld_init();
+ − 7611
+ − 7612 int main() {
+ − 7613 dld_init()
+ − 7614 ; return 0; }
+ − 7615 EOF
1261
+ − 7616 if { (eval echo configure:7618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
997
+ − 7617 rm -rf conftest*
+ − 7618 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 7619 else
+ − 7620 echo "configure: failed program was:" >&5
+ − 7621 cat conftest.$ac_ext >&5
+ − 7622 rm -rf conftest*
+ − 7623 eval "ac_cv_lib_$ac_lib_var=no"
+ − 7624 fi
+ − 7625 rm -f conftest*
+ − 7626 xe_check_libs=""
+ − 7627
+ − 7628 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 7629 echo "$ac_t""yes" 1>&6
+ − 7630 libdl=dld have_dl=yes;
+ − 7631 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7632 Defining HAVE_DLD_INIT
+ − 7633 EOF
+ − 7634 cat >> confdefs.h <<\EOF
+ − 7635 #define HAVE_DLD_INIT 1
+ − 7636 EOF
+ − 7637 }
+ − 7638
+ − 7639 else
+ − 7640 echo "$ac_t""no" 1>&6
+ − 7641 fi
+ − 7642
+ − 7643
+ − 7644 fi
+ − 7645
+ − 7646
+ − 7647 fi
+ − 7648 fi
+ − 7649 if test -n "$have_dl"; then
+ − 7650
+ − 7651 dll_ld=
+ − 7652 dll_ldflags=
+ − 7653 dll_cflags=
+ − 7654 dll_post=
+ − 7655 dll_ldo="-o"
+ − 7656 ld_dynamic_link_flags=
+ − 7657 xehost=$canonical
+ − 7658 xealias=$internal_configuration
+ − 7659
+ − 7660 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
1261
+ − 7661 echo "configure:7663: checking how to build dynamic libraries for ${xehost}" >&5
997
+ − 7662 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
+ − 7663 case "$xehost" in
+ − 7664 *-*-linux-gnu*) ;;
+ − 7665 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
+ − 7666 esac
+ − 7667
+ − 7668 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+ − 7669 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
+ − 7670 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+ − 7671
+ − 7672 case "$xehost_os" in
+ − 7673 aix3*)
+ − 7674 # AIX sometimes has problems with the GCC collect2 program. For some
+ − 7675 # reason, if we set the COLLECT_NAMES environment variable, the problems
+ − 7676 # vanish in a puff of smoke.
+ − 7677 if test "${COLLECT_NAMES+set}" != set; then
+ − 7678 COLLECT_NAMES=
+ − 7679 export COLLECT_NAMES
+ − 7680 fi
+ − 7681 ;;
+ − 7682 esac
+ − 7683
+ − 7684 # Now see if the compiler is really GCC.
+ − 7685 if test "$GCC" = "yes"; then
+ − 7686 XEGCC=yes
+ − 7687 else
+ − 7688 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
1261
+ − 7689 echo "configure:7691: checking checking whether we are using GNU C" >&5
997
+ − 7690 cat > conftest.$ac_ext <<EOF
1261
+ − 7691 #line 7693 "configure"
997
+ − 7692 #include "confdefs.h"
+ − 7693
+ − 7694 #ifdef __GNUC__
+ − 7695 yes;
+ − 7696 #endif
+ − 7697
+ − 7698 EOF
+ − 7699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 7700 egrep "yes" >/dev/null 2>&1; then
+ − 7701 rm -rf conftest*
+ − 7702 XEGCC=yes
+ − 7703 else
+ − 7704 rm -rf conftest*
+ − 7705 XEGCC=no
+ − 7706 fi
+ − 7707 rm -f conftest*
+ − 7708
+ − 7709 echo "$ac_t""${XEGCC}" 1>&6
+ − 7710 fi
+ − 7711
+ − 7712 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
1261
+ − 7713 echo "configure:7715: checking how to produce PIC code" >&5
997
+ − 7714 wl=
+ − 7715
+ − 7716 can_build_shared=yes
1111
+ − 7717 cygwin_warn=
997
+ − 7718 if test "$XEGCC" = yes; then
+ − 7719 wl='-Wl,'
+ − 7720
+ − 7721 case "$xehost_os" in
+ − 7722 aix[3-9]* | irix[5-9]* | osf[3-9])
+ − 7723 # PIC is the default for these OSes.
+ − 7724 ;;
+ − 7725
+ − 7726 os2*)
+ − 7727 # We can build DLLs from non-PIC.
+ − 7728 ;;
+ − 7729 amigaos*)
+ − 7730 # FIXME: we need at least 68020 code to build shared libraries, but
+ − 7731 # adding the `-m68020' flag to GCC prevents building anything better,
+ − 7732 # like `-m68040'.
+ − 7733 dll_cflags='-m68020 -resident32 -malways-restore-a4'
+ − 7734 ;;
+ − 7735 *cygwin* | *mingw* )
+ − 7736 # PIC is the default
1111
+ − 7737 cygwin_warn=yes
+ − 7738 # #### Need some trickery involving import libraries that we don't
+ − 7739 # currently support.
+ − 7740 can_build_shared=no
997
+ − 7741 ;;
+ − 7742 *)
+ − 7743 dll_cflags='-fPIC'
+ − 7744 ;;
+ − 7745 esac
+ − 7746 else
+ − 7747 # PORTME Check for PIC flags for the system compiler.
+ − 7748 case "$xehost_os" in
+ − 7749 hpux9* | hpux1[0-9]*)
+ − 7750 # Is there a better link_static_flag that works with the bundled CC?
+ − 7751 wl='-Wl,'
+ − 7752 dll_cflags='+Z'
+ − 7753 ;;
+ − 7754
+ − 7755 irix[5-9]*)
+ − 7756 wl='-Wl,'
+ − 7757 # PIC (with -KPIC) is the default.
+ − 7758 ;;
+ − 7759
+ − 7760 os2*)
+ − 7761 # We can build DLLs from non-PIC.
+ − 7762 ;;
+ − 7763
+ − 7764 osf[3-9]*)
+ − 7765 # All OSF/1 code is PIC.
+ − 7766 wl='-Wl,'
+ − 7767 ;;
+ − 7768
+ − 7769 aix[3-9]*)
+ − 7770 # All AIX code is PIC.
+ − 7771 wl='-Wl,'
+ − 7772 ;;
+ − 7773
+ − 7774 sco3.2v5*)
+ − 7775 dll_cflags='-belf -Kpic'
+ − 7776 wl='-Wl,'
+ − 7777 ;;
+ − 7778
+ − 7779 unixware*)
+ − 7780 dll_cflags="-KPIC"
+ − 7781 wl="-Wl,"
+ − 7782 ;;
+ − 7783
+ − 7784 sysv4*)
+ − 7785 dll_cflags="-KPIC"
+ − 7786 wl="-Wl,"
+ − 7787 ;;
+ − 7788
+ − 7789 sysv5*)
+ − 7790 dll_cflags="-KPIC"
+ − 7791 wl="-Wl,"
+ − 7792 ;;
+ − 7793
+ − 7794 solaris2*)
+ − 7795 dll_cflags='-KPIC'
+ − 7796 wl='-Wl,'
+ − 7797 ;;
+ − 7798
+ − 7799 sunos4*)
+ − 7800 dll_cflags='-PIC'
+ − 7801 wl='-Qoption ld '
+ − 7802 ;;
+ − 7803
+ − 7804 uts4*)
+ − 7805 dll_cflags='-pic'
+ − 7806 ;;
+ − 7807
+ − 7808 *)
+ − 7809 can_build_shared=no
+ − 7810 ;;
+ − 7811 esac
+ − 7812 fi
+ − 7813
+ − 7814 if test -n "$dll_cflags"; then
+ − 7815 echo "$ac_t""${dll_cflags}" 1>&6
+ − 7816
+ − 7817 # Check to make sure the dll_cflags actually works.
+ − 7818 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
1261
+ − 7819 echo "configure:7821: checking if PIC flag ${dll_cflags} really works" >&5
997
+ − 7820 save_CFLAGS="$CFLAGS"
+ − 7821 CFLAGS="$CFLAGS $dll_cflags -DPIC"
+ − 7822 cat > conftest.$ac_ext <<EOF
1261
+ − 7823 #line 7825 "configure"
997
+ − 7824 #include "confdefs.h"
+ − 7825
+ − 7826 int main() {
+ − 7827 int x=0;
+ − 7828 ; return 0; }
+ − 7829 EOF
1261
+ − 7830 if { (eval echo configure:7832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
997
+ − 7831 rm -rf conftest*
+ − 7832
+ − 7833 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
+ − 7834 # reports no error. So, we need to grep stderr for (Bundled).
+ − 7835 if grep '(Bundled)' config.log >/dev/null; then
+ − 7836 echo "$ac_t""no" 1>&6
+ − 7837 can_build_shared=no
+ − 7838 dll_cflags=
+ − 7839 else
+ − 7840 echo "$ac_t""yes" 1>&6
+ − 7841 fi
+ − 7842 else
+ − 7843 echo "configure: failed program was:" >&5
+ − 7844 cat conftest.$ac_ext >&5
+ − 7845 rm -rf conftest*
+ − 7846 echo "$ac_t""no" 1>&6
+ − 7847 can_build_shared=no
+ − 7848 dll_cflags=
+ − 7849 fi
+ − 7850 rm -f conftest*
+ − 7851 CFLAGS="$save_CFLAGS"
+ − 7852 else
+ − 7853 echo "$ac_t""none" 1>&6
+ − 7854 fi
+ − 7855
1111
+ − 7856 if test -n "$cygwin_warn"; then
+ − 7857 echo "configure: warning: Cannot currently build modules under Cygwin." 1>&2
+ − 7858 fi
+ − 7859
997
+ − 7860 if test "$can_build_shared" = "yes"; then
+ − 7861 cc_produces_so=no
+ − 7862 xldf=
+ − 7863 xcldf=
+ − 7864 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
1261
+ − 7865 echo "configure:7867: checking if C compiler can produce shared libraries" >&5
997
+ − 7866 if test "$XEGCC" = yes; then
+ − 7867 xcldf="-shared"
+ − 7868 xldf="-shared"
+ − 7869 else # Not using GCC
+ − 7870 case "$xehost_os" in
+ − 7871 aix[3-9]*)
+ − 7872 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
+ − 7873 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
+ − 7874 ;;
+ − 7875
+ − 7876 freebsd2* | netbsd* | openbsd*)
+ − 7877 xldf="-Bshareable"
+ − 7878 xcldf="${wl}-Bshareable"
+ − 7879 ;;
+ − 7880
+ − 7881 freebsd3*)
+ − 7882 xcldf="-shared"
+ − 7883 ;;
+ − 7884
+ − 7885 hpux*)
+ − 7886 xldf="-b +s"
+ − 7887 xcldf="${wl}-b ${wl}+s"
+ − 7888 ;;
+ − 7889
+ − 7890 irix[5-9]* | osf[3-9]*)
+ − 7891 xcldf="${wl}-shared"
+ − 7892 xldf="-shared"
+ − 7893 ;;
+ − 7894
+ − 7895 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
+ − 7896 xcldf="-G"
+ − 7897 xldf="-G"
+ − 7898 ;;
+ − 7899
+ − 7900 sunos4*)
+ − 7901 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
+ − 7902 xldf="-assert pure-text -Bstatic"
+ − 7903 ;;
+ − 7904 esac
+ − 7905 fi # End if if we are using gcc
+ − 7906
+ − 7907 if test -n "$xcldf"; then
+ − 7908 save_LDFLAGS=$LDFLAGS
+ − 7909 save_LIBS=$LIBS
+ − 7910 save_xe_libs=$xe_libs
+ − 7911 LDFLAGS="$xcldf $LDFLAGS"
+ − 7912 LIBS=
+ − 7913 xe_libs=
+ − 7914 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
+ − 7915 cat > conftest.$ac_ext <<EOF
1261
+ − 7916 #line 7918 "configure"
997
+ − 7917 #include "confdefs.h"
+ − 7918
+ − 7919 int main() {
+ − 7920 int x=0;
+ − 7921 ; return 0; }
+ − 7922 EOF
1261
+ − 7923 if { (eval echo configure:7925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
997
+ − 7924 rm -rf conftest*
+ − 7925 cc_produces_so=yes
+ − 7926 else
+ − 7927 echo "configure: failed program was:" >&5
+ − 7928 cat conftest.$ac_ext >&5
+ − 7929 rm -rf conftest*
+ − 7930 cc_produces_so=no
+ − 7931 fi
+ − 7932 rm -f conftest*
+ − 7933 LDFLAGS=$save_LDFLAGS
+ − 7934 LIBS=$save_LIBS
+ − 7935 xe_libs=$save_xe_libs
+ − 7936 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
+ − 7937 else
+ − 7938 cc_produces_so=no
+ − 7939 fi
+ − 7940 echo "$ac_t""${cc_produces_so}" 1>&6
+ − 7941
+ − 7942 LTLD=$LD
+ − 7943 if test -z "$LTLD"; then
+ − 7944 ac_prog=ld
+ − 7945 if test "$XEGCC" = yes; then
+ − 7946 # Check if gcc -print-prog-name=ld gives a path.
+ − 7947 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1261
+ − 7948 echo "configure:7950: checking for ld used by GCC" >&5
997
+ − 7949 ac_prog=`($CC -print-prog-name=ld) 2>&5`
+ − 7950 case "$ac_prog" in
+ − 7951 # Accept absolute paths.
+ − 7952 /*)
+ − 7953 if test -z "$LTLD"; then
+ − 7954 # case "$ac_prog" in
+ − 7955 # *gcc-lib*) LTLD="$CC"
+ − 7956 # ;;
+ − 7957 # *)
+ − 7958 LTLD="$ac_prog"
+ − 7959 # ;;
+ − 7960 # esac
+ − 7961 fi
+ − 7962 ;;
+ − 7963 "")
+ − 7964 # If it fails, then pretend we aren't using GCC.
+ − 7965 ac_prog=ld
+ − 7966 ;;
+ − 7967 *)
+ − 7968 # If it is relative, then search for the first ld in PATH.
+ − 7969 with_gnu_ld=unknown
+ − 7970 ;;
+ − 7971 esac
+ − 7972 else
+ − 7973 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1261
+ − 7974 echo "configure:7976: checking for GNU ld" >&5
997
+ − 7975 fi
+ − 7976
+ − 7977 if test -z "$LTLD"; then
+ − 7978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
+ − 7979 for ac_dir in $PATH; do
+ − 7980 test -z "$ac_dir" && ac_dir=.
+ − 7981 if test -f "$ac_dir/$ac_prog"; then
+ − 7982 LTLD="$ac_dir/$ac_prog"
+ − 7983 # Check to see if the program is GNU ld. I'd rather use --version,
+ − 7984 # but apparently some GNU ld's only accept -v.
+ − 7985 # Break only if it was the GNU/non-GNU ld that we prefer.
+ − 7986 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
+ − 7987 xe_gnu_ld=yes
+ − 7988 else
+ − 7989 xe_gnu_ld=no
+ − 7990 fi
+ − 7991 fi
+ − 7992 done
+ − 7993 IFS="$ac_save_ifs"
+ − 7994 fi
+ − 7995
+ − 7996 if test -n "$LTLD"; then
+ − 7997 echo "$ac_t""${LTLD}" 1>&6
+ − 7998 else
+ − 7999 echo "$ac_t""no" 1>&6
+ − 8000 fi
+ − 8001
+ − 8002 if test -z "$LTLD" -a "$cc_produces_so" = no; then
+ − 8003 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
+ − 8004 exit 1
+ − 8005 fi
+ − 8006 fi
+ − 8007
+ − 8008 ld_dynamic_link_flags=
+ − 8009
+ − 8010 # Check to see if it really is or isn't GNU ld.
+ − 8011 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
1261
+ − 8012 echo "configure:8014: checking if the linker is GNU ld" >&5
997
+ − 8013 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
+ − 8014 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
+ − 8015 xe_gnu_ld=yes
+ − 8016 else
+ − 8017 xe_gnu_ld=no
+ − 8018 fi
+ − 8019 echo "$ac_t""${xe_gnu_ld}" 1>&6
+ − 8020
+ − 8021 case "$xehost_os" in
+ − 8022 amigaos* | sunos4*)
+ − 8023 # On these operating systems, we should treat GNU ld like the system ld.
+ − 8024 gnu_ld_acts_native=yes
+ − 8025 ;;
+ − 8026 *)
+ − 8027 gnu_ld_acts_native=no
+ − 8028 ;;
+ − 8029 esac
+ − 8030
+ − 8031 if test "$cc_produces_so" = "yes"; then
+ − 8032 dll_ld=$CC
+ − 8033 dll_ldflags=$xcldf
+ − 8034 can_build_shared=yes
+ − 8035 ld_shlibs=yes
+ − 8036 else
+ − 8037 # OK - only NOW do we futz about with ld.
+ − 8038 # See if the linker supports building shared libraries.
+ − 8039 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
1261
+ − 8040 echo "configure:8042: checking whether the linker supports shared libraries" >&5
997
+ − 8041 dll_ld=$CC
+ − 8042 dll_ldflags=$LDFLAGS
+ − 8043 ld_shlibs=yes
+ − 8044 can_build_shared=yes
+ − 8045 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
+ − 8046 # See if GNU ld supports shared libraries.
+ − 8047 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
+ − 8048 dll_ld=$CC
+ − 8049 dll_ldflags="-shared"
+ − 8050 ld_shlibs=yes
+ − 8051 else
+ − 8052 ld_shlibs=no
+ − 8053 fi
+ − 8054 else
+ − 8055 # PORTME fill in a description of your system's linker (not GNU ld)
+ − 8056 case "$xehost_os" in
+ − 8057 aix3*)
+ − 8058 dll_ld=$LTLD
+ − 8059 dll_ldflags=$xldf
+ − 8060 ;;
+ − 8061
+ − 8062 aix[4-9]*)
+ − 8063 dll_ldflags=$xcldf
+ − 8064 ;;
+ − 8065
+ − 8066 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+ − 8067 # support. Future versions do this automatically, but an explicit c++rt0.o
+ − 8068 # doesn't break anything, and helps significantly (at the cost of a little
+ − 8069 # extra space).
+ − 8070 freebsd2.2*)
+ − 8071 dll_ld=$LTLD
+ − 8072 dll_ldflags=$xldf
+ − 8073 dll_post="/usr/lib/c++rt0.o"
+ − 8074 ;;
+ − 8075
+ − 8076 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
+ − 8077 freebsd2*)
+ − 8078 dll_ld=$LTLD
+ − 8079 dll_ldflags="-Bshareable"
+ − 8080 ;;
+ − 8081
+ − 8082 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
+ − 8083 freebsd3*)
+ − 8084 dll_ldflags="-shared"
+ − 8085 ;;
+ − 8086
+ − 8087 hpux*)
+ − 8088 dll_ld=$LTLD
+ − 8089 dll_ldflags=$xldf
+ − 8090 ;;
+ − 8091
+ − 8092 irix[5-9]*)
+ − 8093 dll_ld=$LTLD
+ − 8094 dll_ldflags=$xldf
+ − 8095 ;;
+ − 8096
+ − 8097 netbsd*)
+ − 8098 # Tested with NetBSD 1.2 ld
+ − 8099 dll_ld=$LTLD
+ − 8100 dll_ldflags=$xldf
+ − 8101 ;;
+ − 8102
+ − 8103 openbsd*)
+ − 8104 dll_ld=$LTLD
+ − 8105 dll_ldflags=$xldf
+ − 8106 ;;
+ − 8107
+ − 8108 osf3* | osf4*)
+ − 8109 dll_ld=$LTLD
+ − 8110 dll_ldflags=$xldf
+ − 8111 ;;
+ − 8112
+ − 8113 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
+ − 8114 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
+ − 8115 dll_ld=$LTLD
+ − 8116 case "$dll_ld" in
+ − 8117 *gcc*) dll_ldflags="-shared"
+ − 8118 dll_ld=$CC
+ − 8119 ;;
+ − 8120 *) dll_ldflags="-G"
+ − 8121 ;;
+ − 8122 esac
+ − 8123 ;;
+ − 8124
+ − 8125 sunos4*)
+ − 8126 if test "$XEGCC" = yes; then
+ − 8127 dll_ld=$CC
+ − 8128 else
+ − 8129 dll_ld=$LTLD
+ − 8130 fi
+ − 8131 dll_ldflags=$xldf
+ − 8132 ;;
+ − 8133
+ − 8134 uts4*)
+ − 8135 dll_ld=$LTLD
+ − 8136 dll_ldflags="-G"
+ − 8137 ;;
+ − 8138
+ − 8139 bsdi*)
+ − 8140 dll_ldflags="-r"
+ − 8141 dll_ld="shlicc2"
+ − 8142 ;;
+ − 8143
+ − 8144 *)
+ − 8145 ld_shlibs=no
+ − 8146 can_build_shared=no
+ − 8147 ;;
+ − 8148 esac
+ − 8149 fi
+ − 8150 echo "$ac_t""${ld_shlibs}" 1>&6
+ − 8151 if test "$ld_shlibs" = "no"; then
+ − 8152 can_build_shared=no
+ − 8153 fi
+ − 8154 fi # End of if cc_produces_so = no
+ − 8155
+ − 8156
+ − 8157 if test "$xe_gnu_ld" = yes; then
+ − 8158 if test "$ld_shlibs" = yes; then
+ − 8159 ld_dynamic_link_flags="${wl}-export-dynamic"
+ − 8160 fi
+ − 8161 fi
+ − 8162
+ − 8163 if test -z "$ld_dynamic_link_flags"; then
+ − 8164 case "$xehost_os" in
+ − 8165 aix[3-9]*)
+ − 8166 ld_dynamic_link_flags=
+ − 8167 ;;
+ − 8168
+ − 8169 freebsd2.2*)
+ − 8170 ld_dynamic_link_flags=
+ − 8171 ;;
+ − 8172
+ − 8173 freebsd2*)
+ − 8174 ld_dynamic_link_flags=
+ − 8175 ;;
+ − 8176
+ − 8177 freebsd3*)
+ − 8178 ld_dynamic_link_flags=
+ − 8179 ;;
+ − 8180
+ − 8181 hpux*)
+ − 8182 ld_dynamic_link_flags="${wl}-E"
+ − 8183 ;;
+ − 8184
+ − 8185 irix[5-9]*)
+ − 8186 ld_dynamic_link_flags=
+ − 8187 ;;
+ − 8188
+ − 8189 netbsd*)
+ − 8190 ld_dynamic_link_flags=
+ − 8191 ;;
+ − 8192
+ − 8193 openbsd*)
+ − 8194 ld_dynamic_link_flags=
+ − 8195 ;;
+ − 8196
+ − 8197 osf3* | osf4*)
+ − 8198 ld_dynamic_link_flags=
+ − 8199 ;;
+ − 8200
+ − 8201 solaris2* | solaris7*)
+ − 8202 ld_dynamic_link_flags=
+ − 8203 ;;
+ − 8204
+ − 8205 sco3.2v5* | unixware* | sysv5* | sysv4*)
+ − 8206 ld_dynamic_link_flags="${wl}-Bexport"
+ − 8207 ;;
+ − 8208
+ − 8209 sunos4*)
+ − 8210 ld_dynamic_link_flags=
+ − 8211 ;;
+ − 8212
+ − 8213 uts4*)
+ − 8214 ld_dynamic_link_flags=
+ − 8215 ;;
+ − 8216
+ − 8217 bsdi*)
+ − 8218 ld_dynamic_link_flags=
+ − 8219 ;;
+ − 8220
+ − 8221 esac
+ − 8222 fi # End of if -z ld_dynamic_link_flags
+ − 8223 fi # End of if test "$can_build_shared" = "yes"
+ − 8224
+ − 8225
+ − 8226
+ − 8227
+ − 8228
+ − 8229
+ − 8230
+ − 8231
+ − 8232 fi
+ − 8233
+ − 8234 if test "$can_build_shared" = "yes"; then
+ − 8235 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8236 Defining HAVE_SHLIB
+ − 8237 EOF
+ − 8238 cat >> confdefs.h <<\EOF
+ − 8239 #define HAVE_SHLIB 1
+ − 8240 EOF
+ − 8241 }
+ − 8242
+ − 8243 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
+ − 8244 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
+ − 8245 for ac_func in dlerror _dlerror
+ − 8246 do
+ − 8247 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1261
+ − 8248 echo "configure:8250: checking for $ac_func" >&5
+ − 8249
+ − 8250 cat > conftest.$ac_ext <<EOF
+ − 8251 #line 8253 "configure"
997
+ − 8252 #include "confdefs.h"
+ − 8253 /* System header to define __stub macros and hopefully few prototypes,
+ − 8254 which can conflict with char $ac_func(); below. */
+ − 8255 #include <assert.h>
+ − 8256 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8257 /* We use char because int might match the return type of a gcc2
+ − 8258 builtin and then its argument prototype would still apply. */
+ − 8259 char $ac_func();
+ − 8260
+ − 8261 int main() {
+ − 8262
+ − 8263 /* The GNU C library defines this for functions which it implements
+ − 8264 to always fail with ENOSYS. Some functions are actually named
+ − 8265 something starting with __ and the normal name is an alias. */
+ − 8266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 8267 choke me
+ − 8268 #else
+ − 8269 $ac_func();
+ − 8270 #endif
+ − 8271
+ − 8272 ; return 0; }
+ − 8273 EOF
1261
+ − 8274 if { (eval echo configure:8276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
997
+ − 8275 rm -rf conftest*
+ − 8276 eval "ac_cv_func_$ac_func=yes"
+ − 8277 else
+ − 8278 echo "configure: failed program was:" >&5
+ − 8279 cat conftest.$ac_ext >&5
+ − 8280 rm -rf conftest*
+ − 8281 eval "ac_cv_func_$ac_func=no"
+ − 8282 fi
+ − 8283 rm -f conftest*
+ − 8284
+ − 8285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 8286 echo "$ac_t""yes" 1>&6
+ − 8287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 8288 { test "$extra_verbose" = "yes" && cat << EOF
+ − 8289 Defining $ac_tr_func
+ − 8290 EOF
+ − 8291 cat >> confdefs.h <<EOF
+ − 8292 #define $ac_tr_func 1
+ − 8293 EOF
+ − 8294 }
+ − 8295
+ − 8296 else
+ − 8297 echo "$ac_t""no" 1>&6
+ − 8298 fi
+ − 8299 done
+ − 8300
+ − 8301 with_modules=yes
+ − 8302 MOD_CC="../../lib-src/ellcc"
+ − 8303 MODCFLAGS="\$(CFLAGS) --mode=compile --mod-output=\$@ -I../../src -I\$(srcdir)/../../src"
+ − 8304 INSTALLPATH="\$(moduledir)"
+ − 8305 MOD_INSTALL_PROGRAM=${INSTALL_PROGRAM}
+ − 8306 OBJECT_TO_BUILD="\$(MODNAME).ell"
+ − 8307 else
+ − 8308 if test "$with_modules" = "yes"; then
+ − 8309 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
+ − 8310 else
+ − 8311 echo " No module support."
+ − 8312 fi
+ − 8313 with_modules=no
1111
+ − 8314 MOD_CC="$XEMACS_CC"
997
+ − 8315 MODCFLAGS="\$(CFLAGS) -I../../src -I\$(srcdir)/../../src"
+ − 8316 INSTALLPATH=""
+ − 8317 MOD_INSTALL_PROGRAM="true"
+ − 8318 OBJECT_TO_BUILD="\$(MODNAME).o"
+ − 8319 fi
+ − 8320 fi
+ − 8321 MODARCHDIR=
+ − 8322 MAKE_DOCFILE="../../lib-src/make-docfile"
+ − 8323
+ − 8324
+ − 8325
+ − 8326
+ − 8327
+ − 8328
+ − 8329
+ − 8330
+ − 8331
149
+ − 8332 if test "$with_tooltalk" != "no" ; then
+ − 8333 for dir in "" "Tt/" "desktop/" ; do
+ − 8334 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
+ − 8335 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
1261
+ − 8336 echo "configure:8338: checking for ${dir}tt_c.h" >&5
+ − 8337
+ − 8338 cat > conftest.$ac_ext <<EOF
+ − 8339 #line 8341 "configure"
149
+ − 8340 #include "confdefs.h"
+ − 8341 #include <${dir}tt_c.h>
+ − 8342 EOF
+ − 8343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 8344 { (eval echo configure:8346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 8345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 8346 if test -z "$ac_err"; then
+ − 8347 rm -rf conftest*
+ − 8348 eval "ac_cv_header_$ac_safe=yes"
+ − 8349 else
+ − 8350 echo "$ac_err" >&5
+ − 8351 echo "configure: failed program was:" >&5
+ − 8352 cat conftest.$ac_ext >&5
+ − 8353 rm -rf conftest*
+ − 8354 eval "ac_cv_header_$ac_safe=no"
+ − 8355 fi
+ − 8356 rm -f conftest*
+ − 8357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 8358 echo "$ac_t""yes" 1>&6
442
+ − 8359 tt_c_h_file="${dir}tt_c.h"; break
149
+ − 8360 else
+ − 8361 echo "$ac_t""no" 1>&6
+ − 8362 fi
+ − 8363
+ − 8364 done
442
+ − 8365 if test -z "$tt_c_h_file"; then
284
+ − 8366 if test "$with_tooltalk" = "yes"; then
+ − 8367 (echo "$progname: Usage error:"
+ − 8368 echo " " "Unable to find required tooltalk header files."
+ − 8369 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
+ − 8370 fi
+ − 8371 with_tooltalk=no
+ − 8372 fi
149
+ − 8373 fi
+ − 8374 if test "$with_tooltalk" != "no" ; then
+ − 8375 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
+ − 8376
+ − 8377 xe_msg_checking="for tt_message_create in -ltt"
+ − 8378 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
+ − 8379 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
1261
+ − 8380 echo "configure:8382: checking "$xe_msg_checking"" >&5
149
+ − 8381 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
+ − 8382
+ − 8383 xe_check_libs=" -ltt $extra_libs"
+ − 8384 cat > conftest.$ac_ext <<EOF
1261
+ − 8385 #line 8387 "configure"
149
+ − 8386 #include "confdefs.h"
+ − 8387 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8388 /* We use char because int might match the return type of a gcc2
+ − 8389 builtin and then its argument prototype would still apply. */
+ − 8390 char tt_message_create();
+ − 8391
+ − 8392 int main() {
+ − 8393 tt_message_create()
+ − 8394 ; return 0; }
+ − 8395 EOF
1261
+ − 8396 if { (eval echo configure:8398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 8397 rm -rf conftest*
+ − 8398 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8399 else
+ − 8400 echo "configure: failed program was:" >&5
+ − 8401 cat conftest.$ac_ext >&5
+ − 8402 rm -rf conftest*
+ − 8403 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8404 fi
+ − 8405 rm -f conftest*
+ − 8406 xe_check_libs=""
+ − 8407
151
+ − 8408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 8409 echo "$ac_t""yes" 1>&6
284
+ − 8410 tt_libs="-ltt $extra_libs"; break
149
+ − 8411 else
+ − 8412 echo "$ac_t""no" 1>&6
+ − 8413 :
+ − 8414 fi
+ − 8415
+ − 8416
+ − 8417 done
284
+ − 8418 if test -z "$tt_libs"; then
+ − 8419 if test "$with_tooltalk" = "yes"; then
+ − 8420 (echo "$progname: Usage error:"
+ − 8421 echo " " "Unable to find required tooltalk libraries."
+ − 8422 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
+ − 8423 fi
+ − 8424 with_tooltalk=no
+ − 8425 fi
+ − 8426 fi
+ − 8427 test -z "$with_tooltalk" && with_tooltalk=yes
149
+ − 8428 if test "$with_tooltalk" = "yes"; then
+ − 8429 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8430 Defining TOOLTALK
+ − 8431 EOF
+ − 8432 cat >> confdefs.h <<\EOF
+ − 8433 #define TOOLTALK 1
+ − 8434 EOF
+ − 8435 }
+ − 8436
+ − 8437 { test "$extra_verbose" = "yes" && cat << EOF
442
+ − 8438 Defining TT_C_H_FILE = "$tt_c_h_file"
+ − 8439 EOF
+ − 8440 cat >> confdefs.h <<EOF
+ − 8441 #define TT_C_H_FILE "$tt_c_h_file"
149
+ − 8442 EOF
+ − 8443 }
+ − 8444
151
+ − 8445 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
149
+ − 8446 fi
+ − 8447
+ − 8448 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
+ − 8449 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
1261
+ − 8450 echo "configure:8452: checking for Dt/Dt.h" >&5
+ − 8451
+ − 8452 cat > conftest.$ac_ext <<EOF
+ − 8453 #line 8455 "configure"
149
+ − 8454 #include "confdefs.h"
+ − 8455 #include <Dt/Dt.h>
+ − 8456 EOF
+ − 8457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 8458 { (eval echo configure:8460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 8459 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 8460 if test -z "$ac_err"; then
+ − 8461 rm -rf conftest*
+ − 8462 eval "ac_cv_header_$ac_safe=yes"
+ − 8463 else
+ − 8464 echo "$ac_err" >&5
+ − 8465 echo "configure: failed program was:" >&5
+ − 8466 cat conftest.$ac_ext >&5
+ − 8467 rm -rf conftest*
+ − 8468 eval "ac_cv_header_$ac_safe=no"
+ − 8469 fi
+ − 8470 rm -f conftest*
+ − 8471 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 8472 echo "$ac_t""yes" 1>&6
+ − 8473 :
+ − 8474 else
+ − 8475 echo "$ac_t""no" 1>&6
+ − 8476 with_cde=no
136
+ − 8477 fi
+ − 8478 }
149
+ − 8479 test -z "$with_cde" && {
+ − 8480 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
1261
+ − 8481 echo "configure:8483: checking for DtDndDragStart in -lDtSvc" >&5
149
+ − 8482 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
+ − 8483
+ − 8484 xe_check_libs=" -lDtSvc "
+ − 8485 cat > conftest.$ac_ext <<EOF
1261
+ − 8486 #line 8488 "configure"
149
+ − 8487 #include "confdefs.h"
+ − 8488 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8489 /* We use char because int might match the return type of a gcc2
+ − 8490 builtin and then its argument prototype would still apply. */
+ − 8491 char DtDndDragStart();
+ − 8492
+ − 8493 int main() {
+ − 8494 DtDndDragStart()
+ − 8495 ; return 0; }
+ − 8496 EOF
1261
+ − 8497 if { (eval echo configure:8499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 8498 rm -rf conftest*
+ − 8499 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8500 else
+ − 8501 echo "configure: failed program was:" >&5
+ − 8502 cat conftest.$ac_ext >&5
+ − 8503 rm -rf conftest*
+ − 8504 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8505 fi
+ − 8506 rm -f conftest*
+ − 8507 xe_check_libs=""
+ − 8508
151
+ − 8509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 8510 echo "$ac_t""yes" 1>&6
+ − 8511 :
+ − 8512 else
+ − 8513 echo "$ac_t""no" 1>&6
+ − 8514 with_cde=no
+ − 8515 fi
+ − 8516
+ − 8517 }
582
+ − 8518 if test "$with_dragndrop" = "no" ; then
+ − 8519 if test "$with_cde" = "yes" ; then
+ − 8520 echo "configure: warning: --with-cde forced to \`no'; no generic Drag'n'Drop support" 1>&2
+ − 8521 fi
+ − 8522 with_cde=no
+ − 8523 fi
149
+ − 8524 test -z "$with_cde" && with_cde=yes
+ − 8525 if test "$with_cde" = "yes" ; then
+ − 8526 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8527 Defining HAVE_CDE
+ − 8528 EOF
+ − 8529 cat >> confdefs.h <<\EOF
+ − 8530 #define HAVE_CDE 1
+ − 8531 EOF
+ − 8532 }
+ − 8533
151
+ − 8534 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
282
+ − 8535 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
149
+ − 8536 with_tooltalk=yes # CDE requires Tooltalk
167
+ − 8537 need_motif=yes # CDE requires Motif
149
+ − 8538 fi
+ − 8539
288
+ − 8540 test "$window_system" != "x11" && with_offix=no
+ − 8541 if test "$with_xmu" != yes -a "$with_x11" = yes; then
582
+ − 8542 if test "$with_offix" = "yes" ; then
+ − 8543 echo "configure: warning: --with-offix forced to \`no'; no real Xmu support" 1>&2
+ − 8544 fi
288
+ − 8545 with_offix=no
+ − 8546 fi
+ − 8547 if test "$with_dragndrop" = no; then
582
+ − 8548 if test "$with_offix" = "yes" ; then
+ − 8549 echo "configure: warning: --with-offix forced to \`no'; no generic Drag'n'Drop support" 1>&2
+ − 8550 fi
288
+ − 8551 with_offix=no
+ − 8552 fi
+ − 8553 if test "$with_cde" = yes; then
582
+ − 8554 if test "$with_offix" = "yes" ; then
+ − 8555 echo "configure: warning: --with-offix forced to \`no'; CDE already found" 1>&2
+ − 8556 fi
288
+ − 8557 with_offix=no
+ − 8558 fi
300
+ − 8559 test -z "$with_offix" && with_offix=no
288
+ − 8560 if test "$with_offix" = "yes"; then
+ − 8561 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8562 Defining HAVE_OFFIX_DND
+ − 8563 EOF
+ − 8564 cat >> confdefs.h <<\EOF
+ − 8565 #define HAVE_OFFIX_DND 1
+ − 8566 EOF
+ − 8567 }
+ − 8568
+ − 8569 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
+ − 8570 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
+ − 8571 fi
462
+ − 8572 if test "$with_gtk" = "yes"; then
+ − 8573 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
+ − 8574 fi
288
+ − 8575
282
+ − 8576 if test "$with_dragndrop" != "no" ; then
446
+ − 8577 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
1261
+ − 8578 echo "configure:8580: checking if drag and drop API is needed" >&5
282
+ − 8579 if test -n "$dragndrop_proto" ; then
+ − 8580 with_dragndrop=yes
+ − 8581 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
+ − 8582 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8583 Defining HAVE_DRAGNDROP
+ − 8584 EOF
+ − 8585 cat >> confdefs.h <<\EOF
+ − 8586 #define HAVE_DRAGNDROP 1
+ − 8587 EOF
+ − 8588 }
+ − 8589
+ − 8590 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
+ − 8591 else
+ − 8592 with_dragndrop=no
+ − 8593 echo "$ac_t""no" 1>&6
+ − 8594 fi
+ − 8595 fi
+ − 8596
259
+ − 8597 echo "checking for LDAP" 1>&6
1261
+ − 8598 echo "configure:8600: checking for LDAP" >&5
997
+ − 8599 ldap_libs=
259
+ − 8600 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
+ − 8601 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
1261
+ − 8602 echo "configure:8604: checking for ldap.h" >&5
+ − 8603
+ − 8604 cat > conftest.$ac_ext <<EOF
+ − 8605 #line 8607 "configure"
259
+ − 8606 #include "confdefs.h"
+ − 8607 #include <ldap.h>
+ − 8608 EOF
+ − 8609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 8610 { (eval echo configure:8612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 8611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
259
+ − 8612 if test -z "$ac_err"; then
+ − 8613 rm -rf conftest*
+ − 8614 eval "ac_cv_header_$ac_safe=yes"
+ − 8615 else
+ − 8616 echo "$ac_err" >&5
+ − 8617 echo "configure: failed program was:" >&5
+ − 8618 cat conftest.$ac_ext >&5
+ − 8619 rm -rf conftest*
+ − 8620 eval "ac_cv_header_$ac_safe=no"
+ − 8621 fi
+ − 8622 rm -f conftest*
+ − 8623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 8624 echo "$ac_t""yes" 1>&6
+ − 8625 :
+ − 8626 else
+ − 8627 echo "$ac_t""no" 1>&6
+ − 8628 with_ldap=no
+ − 8629 fi
+ − 8630 }
+ − 8631 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
+ − 8632 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
1261
+ − 8633 echo "configure:8635: checking for lber.h" >&5
+ − 8634
+ − 8635 cat > conftest.$ac_ext <<EOF
+ − 8636 #line 8638 "configure"
259
+ − 8637 #include "confdefs.h"
+ − 8638 #include <lber.h>
+ − 8639 EOF
+ − 8640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 8641 { (eval echo configure:8643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 8642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
259
+ − 8643 if test -z "$ac_err"; then
+ − 8644 rm -rf conftest*
+ − 8645 eval "ac_cv_header_$ac_safe=yes"
+ − 8646 else
+ − 8647 echo "$ac_err" >&5
+ − 8648 echo "configure: failed program was:" >&5
+ − 8649 cat conftest.$ac_ext >&5
+ − 8650 rm -rf conftest*
+ − 8651 eval "ac_cv_header_$ac_safe=no"
+ − 8652 fi
+ − 8653 rm -f conftest*
+ − 8654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 8655 echo "$ac_t""yes" 1>&6
+ − 8656 :
+ − 8657 else
+ − 8658 echo "$ac_t""no" 1>&6
+ − 8659 with_ldap=no
+ − 8660 fi
+ − 8661 }
272
+ − 8662 if test "$with_ldap" != "no"; then
418
+ − 8663
+ − 8664 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
1261
+ − 8665 echo "configure:8667: checking for ldap_search in -lldap" >&5
418
+ − 8666 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
+ − 8667
+ − 8668 xe_check_libs=" -lldap "
+ − 8669 cat > conftest.$ac_ext <<EOF
1261
+ − 8670 #line 8672 "configure"
418
+ − 8671 #include "confdefs.h"
+ − 8672 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8673 /* We use char because int might match the return type of a gcc2
+ − 8674 builtin and then its argument prototype would still apply. */
+ − 8675 char ldap_search();
+ − 8676
+ − 8677 int main() {
+ − 8678 ldap_search()
+ − 8679 ; return 0; }
+ − 8680 EOF
1261
+ − 8681 if { (eval echo configure:8683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
259
+ − 8682 rm -rf conftest*
+ − 8683 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8684 else
+ − 8685 echo "configure: failed program was:" >&5
+ − 8686 cat conftest.$ac_ext >&5
+ − 8687 rm -rf conftest*
+ − 8688 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8689 fi
+ − 8690 rm -f conftest*
+ − 8691 xe_check_libs=""
+ − 8692
+ − 8693 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8694 echo "$ac_t""yes" 1>&6
418
+ − 8695 with_ldap_nolber=yes
+ − 8696 else
+ − 8697 echo "$ac_t""no" 1>&6
+ − 8698 with_ldap_nolber=no
+ − 8699 fi
+ − 8700
+ − 8701
+ − 8702 test "$with_ldap_nolber" = "no" && {
+ − 8703 xe_msg_checking="for ldap_open in -lldap"
+ − 8704 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
+ − 8705 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
1261
+ − 8706 echo "configure:8708: checking "$xe_msg_checking"" >&5
418
+ − 8707 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
+ − 8708
+ − 8709 xe_check_libs=" -lldap -llber"
+ − 8710 cat > conftest.$ac_ext <<EOF
1261
+ − 8711 #line 8713 "configure"
418
+ − 8712 #include "confdefs.h"
+ − 8713 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8714 /* We use char because int might match the return type of a gcc2
+ − 8715 builtin and then its argument prototype would still apply. */
+ − 8716 char ldap_open();
+ − 8717
+ − 8718 int main() {
+ − 8719 ldap_open()
+ − 8720 ; return 0; }
+ − 8721 EOF
1261
+ − 8722 if { (eval echo configure:8724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
259
+ − 8723 rm -rf conftest*
+ − 8724 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8725 else
+ − 8726 echo "configure: failed program was:" >&5
+ − 8727 cat conftest.$ac_ext >&5
+ − 8728 rm -rf conftest*
+ − 8729 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8730 fi
+ − 8731 rm -f conftest*
+ − 8732 xe_check_libs=""
+ − 8733
+ − 8734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8735 echo "$ac_t""yes" 1>&6
418
+ − 8736 with_ldap_lber=yes
+ − 8737 else
+ − 8738 echo "$ac_t""no" 1>&6
+ − 8739 with_ldap_lber=no
259
+ − 8740 fi
+ − 8741
+ − 8742 }
422
+ − 8743 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
+ − 8744 xe_msg_checking="for ldap_open in -lldap"
+ − 8745 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
+ − 8746 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
1261
+ − 8747 echo "configure:8749: checking "$xe_msg_checking"" >&5
422
+ − 8748 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
+ − 8749
+ − 8750 xe_check_libs=" -lldap -llber -lkrb"
+ − 8751 cat > conftest.$ac_ext <<EOF
1261
+ − 8752 #line 8754 "configure"
422
+ − 8753 #include "confdefs.h"
+ − 8754 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8755 /* We use char because int might match the return type of a gcc2
+ − 8756 builtin and then its argument prototype would still apply. */
+ − 8757 char ldap_open();
+ − 8758
+ − 8759 int main() {
+ − 8760 ldap_open()
+ − 8761 ; return 0; }
+ − 8762 EOF
1261
+ − 8763 if { (eval echo configure:8765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422
+ − 8764 rm -rf conftest*
+ − 8765 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8766 else
+ − 8767 echo "configure: failed program was:" >&5
+ − 8768 cat conftest.$ac_ext >&5
+ − 8769 rm -rf conftest*
+ − 8770 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8771 fi
+ − 8772 rm -f conftest*
+ − 8773 xe_check_libs=""
+ − 8774
+ − 8775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8776 echo "$ac_t""yes" 1>&6
+ − 8777 with_ldap_krb=yes
+ − 8778 else
+ − 8779 echo "$ac_t""no" 1>&6
+ − 8780 with_ldap_krb=no
+ − 8781 fi
+ − 8782
+ − 8783 }
+ − 8784 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
+ − 8785 xe_msg_checking="for ldap_open in -lldap"
+ − 8786 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
+ − 8787 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
1261
+ − 8788 echo "configure:8790: checking "$xe_msg_checking"" >&5
422
+ − 8789 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
+ − 8790
+ − 8791 xe_check_libs=" -lldap -llber -lkrb -ldes"
+ − 8792 cat > conftest.$ac_ext <<EOF
1261
+ − 8793 #line 8795 "configure"
422
+ − 8794 #include "confdefs.h"
+ − 8795 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8796 /* We use char because int might match the return type of a gcc2
+ − 8797 builtin and then its argument prototype would still apply. */
+ − 8798 char ldap_open();
+ − 8799
+ − 8800 int main() {
+ − 8801 ldap_open()
+ − 8802 ; return 0; }
+ − 8803 EOF
1261
+ − 8804 if { (eval echo configure:8806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422
+ − 8805 rm -rf conftest*
+ − 8806 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8807 else
+ − 8808 echo "configure: failed program was:" >&5
+ − 8809 cat conftest.$ac_ext >&5
+ − 8810 rm -rf conftest*
+ − 8811 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8812 fi
+ − 8813 rm -f conftest*
+ − 8814 xe_check_libs=""
+ − 8815
+ − 8816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8817 echo "$ac_t""yes" 1>&6
+ − 8818 with_ldap_krbdes=yes
+ − 8819 else
+ − 8820 echo "$ac_t""no" 1>&6
+ − 8821 with_ldap_krbdes=no
+ − 8822 fi
+ − 8823
+ − 8824 }
+ − 8825 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" -o "$with_ldap_krb" = "yes" -o "$with_ldap_krbdes" = "yes" \) && with_ldap=yes
272
+ − 8826 fi
+ − 8827 if test "$with_ldap" = "yes"; then
259
+ − 8828 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8829 Defining HAVE_LDAP
+ − 8830 EOF
+ − 8831 cat >> confdefs.h <<\EOF
+ − 8832 #define HAVE_LDAP 1
+ − 8833 EOF
+ − 8834 }
+ − 8835
418
+ − 8836 if test "$with_ldap_nolber" = "yes" ; then
997
+ − 8837 ldap_libs="-lldap $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$ldap_libs"; fi
418
+ − 8838 else
422
+ − 8839 if test "$with_ldap_krb" = "yes" ; then
997
+ − 8840 ldap_libs="-lkrb $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$ldap_libs"; fi
422
+ − 8841 fi
+ − 8842 if test "$with_ldap_krbdes" = "yes" ; then
997
+ − 8843 ldap_libs="-ldes $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$ldap_libs"; fi
+ − 8844 ldap_libs="-lkrb $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$ldap_libs"; fi
+ − 8845 fi
+ − 8846 ldap_libs="-llber $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$ldap_libs"; fi
+ − 8847 ldap_libs="-lldap $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$ldap_libs"; fi
+ − 8848 fi
+ − 8849 save_LIBS="$LIBS" LIBS="$LIBS $ldap_libs"
418
+ − 8850 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
+ − 8851 do
+ − 8852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1261
+ − 8853 echo "configure:8855: checking for $ac_func" >&5
+ − 8854
+ − 8855 cat > conftest.$ac_ext <<EOF
+ − 8856 #line 8858 "configure"
418
+ − 8857 #include "confdefs.h"
+ − 8858 /* System header to define __stub macros and hopefully few prototypes,
+ − 8859 which can conflict with char $ac_func(); below. */
+ − 8860 #include <assert.h>
+ − 8861 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8862 /* We use char because int might match the return type of a gcc2
+ − 8863 builtin and then its argument prototype would still apply. */
+ − 8864 char $ac_func();
+ − 8865
+ − 8866 int main() {
+ − 8867
+ − 8868 /* The GNU C library defines this for functions which it implements
+ − 8869 to always fail with ENOSYS. Some functions are actually named
+ − 8870 something starting with __ and the normal name is an alias. */
+ − 8871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 8872 choke me
+ − 8873 #else
+ − 8874 $ac_func();
+ − 8875 #endif
+ − 8876
+ − 8877 ; return 0; }
+ − 8878 EOF
1261
+ − 8879 if { (eval echo configure:8881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
418
+ − 8880 rm -rf conftest*
+ − 8881 eval "ac_cv_func_$ac_func=yes"
+ − 8882 else
+ − 8883 echo "configure: failed program was:" >&5
+ − 8884 cat conftest.$ac_ext >&5
+ − 8885 rm -rf conftest*
+ − 8886 eval "ac_cv_func_$ac_func=no"
+ − 8887 fi
+ − 8888 rm -f conftest*
+ − 8889
+ − 8890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 8891 echo "$ac_t""yes" 1>&6
+ − 8892 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 8893 { test "$extra_verbose" = "yes" && cat << EOF
+ − 8894 Defining $ac_tr_func
+ − 8895 EOF
+ − 8896 cat >> confdefs.h <<EOF
+ − 8897 #define $ac_tr_func 1
+ − 8898 EOF
+ − 8899 }
+ − 8900
+ − 8901 else
+ − 8902 echo "$ac_t""no" 1>&6
+ − 8903 fi
+ − 8904 done
+ − 8905
997
+ − 8906 LIBS="$save_LIBS"
+ − 8907 MAKE_SUBDIR="$MAKE_SUBDIR modules/ldap" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/ldap\" to \$MAKE_SUBDIR"; fi
1111
+ − 8908 need_modules_common=yes
997
+ − 8909 if test "$with_modules" = "yes"; then
+ − 8910 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR modules/ldap" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/ldap\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
+ − 8911 fi
+ − 8912 fi
+ − 8913
+ − 8914
+ − 8915 postgresql_libs=
442
+ − 8916 if test "$with_postgresql" != "no"; then
+ − 8917 echo "checking for PostgreSQL" 1>&6
1261
+ − 8918 echo "configure:8920: checking for PostgreSQL" >&5
442
+ − 8919
+ − 8920 for header_dir in "" "pgsql/" "postgresql/"; do
+ − 8921 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
+ − 8922 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
1261
+ − 8923 echo "configure:8925: checking for ${header_dir}libpq-fe.h" >&5
+ − 8924
+ − 8925 cat > conftest.$ac_ext <<EOF
+ − 8926 #line 8928 "configure"
442
+ − 8927 #include "confdefs.h"
+ − 8928 #include <${header_dir}libpq-fe.h>
+ − 8929 EOF
+ − 8930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 8931 { (eval echo configure:8933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
+ − 8932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 8933 if test -z "$ac_err"; then
+ − 8934 rm -rf conftest*
+ − 8935 eval "ac_cv_header_$ac_safe=yes"
+ − 8936 else
+ − 8937 echo "$ac_err" >&5
+ − 8938 echo "configure: failed program was:" >&5
+ − 8939 cat conftest.$ac_ext >&5
+ − 8940 rm -rf conftest*
+ − 8941 eval "ac_cv_header_$ac_safe=no"
+ − 8942 fi
+ − 8943 rm -f conftest*
+ − 8944 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 8945 echo "$ac_t""yes" 1>&6
+ − 8946 libpq_fe_h_file=${header_dir}libpq-fe.h; break
+ − 8947 else
+ − 8948 echo "$ac_t""no" 1>&6
+ − 8949 fi
+ − 8950
+ − 8951 done
+ − 8952
+ − 8953 test -n "$libpq_fe_h_file" && {
+ − 8954 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
1261
+ − 8955 echo "configure:8957: checking for PQconnectdb in -lpq" >&5
442
+ − 8956 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
+ − 8957
+ − 8958 xe_check_libs=" -lpq "
+ − 8959 cat > conftest.$ac_ext <<EOF
1261
+ − 8960 #line 8962 "configure"
442
+ − 8961 #include "confdefs.h"
+ − 8962 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8963 /* We use char because int might match the return type of a gcc2
+ − 8964 builtin and then its argument prototype would still apply. */
+ − 8965 char PQconnectdb();
+ − 8966
+ − 8967 int main() {
+ − 8968 PQconnectdb()
+ − 8969 ; return 0; }
+ − 8970 EOF
1261
+ − 8971 if { (eval echo configure:8973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 8972 rm -rf conftest*
+ − 8973 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8974 else
+ − 8975 echo "configure: failed program was:" >&5
+ − 8976 cat conftest.$ac_ext >&5
+ − 8977 rm -rf conftest*
+ − 8978 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8979 fi
+ − 8980 rm -f conftest*
+ − 8981 xe_check_libs=""
+ − 8982
+ − 8983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8984 echo "$ac_t""yes" 1>&6
+ − 8985 have_libpq=yes
+ − 8986 else
+ − 8987 echo "$ac_t""no" 1>&6
+ − 8988 fi
+ − 8989
+ − 8990 }
+ − 8991
+ − 8992 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
+ − 8993 with_postgresql=yes
+ − 8994 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8995 Defining HAVE_POSTGRESQL
+ − 8996 EOF
+ − 8997 cat >> confdefs.h <<\EOF
+ − 8998 #define HAVE_POSTGRESQL 1
+ − 8999 EOF
+ − 9000 }
+ − 9001
+ − 9002
+ − 9003 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
1261
+ − 9004 echo "configure:9006: checking for PQconnectStart in -lpq" >&5
442
+ − 9005 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
+ − 9006
+ − 9007 xe_check_libs=" -lpq "
+ − 9008 cat > conftest.$ac_ext <<EOF
1261
+ − 9009 #line 9011 "configure"
442
+ − 9010 #include "confdefs.h"
+ − 9011 /* Override any gcc2 internal prototype to avoid an error. */
+ − 9012 /* We use char because int might match the return type of a gcc2
+ − 9013 builtin and then its argument prototype would still apply. */
+ − 9014 char PQconnectStart();
+ − 9015
+ − 9016 int main() {
+ − 9017 PQconnectStart()
+ − 9018 ; return 0; }
+ − 9019 EOF
1261
+ − 9020 if { (eval echo configure:9022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 9021 rm -rf conftest*
+ − 9022 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 9023 else
+ − 9024 echo "configure: failed program was:" >&5
+ − 9025 cat conftest.$ac_ext >&5
+ − 9026 rm -rf conftest*
+ − 9027 eval "ac_cv_lib_$ac_lib_var=no"
+ − 9028 fi
+ − 9029 rm -f conftest*
+ − 9030 xe_check_libs=""
+ − 9031
+ − 9032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 9033 echo "$ac_t""yes" 1>&6
+ − 9034 with_postgresqlv7=yes;
+ − 9035 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9036 Defining HAVE_POSTGRESQLV7
+ − 9037 EOF
+ − 9038 cat >> confdefs.h <<\EOF
+ − 9039 #define HAVE_POSTGRESQLV7 1
+ − 9040 EOF
+ − 9041 }
+ − 9042
+ − 9043 else
+ − 9044 echo "$ac_t""no" 1>&6
+ − 9045 fi
+ − 9046
+ − 9047
+ − 9048 { test "$extra_verbose" = "yes" && cat << EOF
+ − 9049 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
+ − 9050 EOF
+ − 9051 cat >> confdefs.h <<EOF
+ − 9052 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
+ − 9053 EOF
+ − 9054 }
+ − 9055
997
+ − 9056 postgresql_libs="-lpq $postgresql_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$postgresql_libs"; fi
+ − 9057 MAKE_SUBDIR="$MAKE_SUBDIR modules/postgresql" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/postgresql\" to \$MAKE_SUBDIR"; fi
1111
+ − 9058 need_modules_common=yes
997
+ − 9059 if test "$with_modules" = "yes"; then
+ − 9060 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR modules/postgresql" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/postgresql\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
+ − 9061 fi
442
+ − 9062 elif test "$with_postgresql" = "yes"; then
+ − 9063 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
+ − 9064 fi
+ − 9065 fi
+ − 9066
149
+ − 9067
997
+ − 9068
278
+ − 9069 if test "$window_system" != "none"; then
+ − 9070 echo "checking for graphics libraries" 1>&6
1261
+ − 9071 echo "configure:9073: checking for graphics libraries" >&5
724
+ − 9072
+ − 9073 libpath_xpm=
+ − 9074 incpath_xpm=
+ − 9075 case "$opsys" in
+ − 9076 cygwin*)
+ − 9077 cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
+ − 9078 cygwin_top=`eval "dirname ${cygwin_top}"`;
+ − 9079 cygwin_top="${cygwin_top}/..";
+ − 9080 case "$window_system" in
+ − 9081 x11) ;;
+ − 9082 msw) libpath_xpm="-L${cygwin_top}/lib/noX"
+ − 9083 incpath_xpm="-I${cygwin_top}/include/noX"
+ − 9084 ;;
+ − 9085 gtk) ;;
+ − 9086 none) ;;
+ − 9087 *) ;;
+ − 9088 esac
+ − 9089 ;;
+ − 9090 *) ;;
+ − 9091 esac
373
+ − 9092 xpm_problem=""
+ − 9093 if test -z "$with_xpm"; then
724
+ − 9094 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
+ − 9095 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
193
+ − 9096 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
1261
+ − 9097 echo "configure:9099: checking for Xpm - no older than 3.4f" >&5
272
+ − 9098 xe_check_libs=-lXpm
+ − 9099 cat > conftest.$ac_ext <<EOF
1261
+ − 9100 #line 9102 "configure"
442
+ − 9101 #include "confdefs.h"
+ − 9102 #define XPM_NUMBERS
149
+ − 9103 #include <X11/xpm.h>
272
+ − 9104 int main(int c, char **v) {
+ − 9105 return c == 1 ? 0 :
+ − 9106 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
+ − 9107 XpmIncludeVersion < 30406 ? 2 : 0 ;}
+ − 9108 EOF
1261
+ − 9109 if { (eval echo configure:9111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
159
+ − 9110 then
272
+ − 9111 ./conftest dummy_arg; xpm_status=$?;
373
+ − 9112 if test "$xpm_status" = "0"; then
272
+ − 9113 with_xpm=yes;
+ − 9114 else
+ − 9115 with_xpm=no;
373
+ − 9116 if test "$xpm_status" = "1"; then
272
+ − 9117 xpm_problem="Xpm library version and header file version don't match!"
373
+ − 9118 elif test "$xpm_status" = "2"; then
272
+ − 9119 xpm_problem="Xpm library version is too old!"
+ − 9120 else
+ − 9121 xpm_problem="Internal xpm detection logic error!"
+ − 9122 fi
+ − 9123 echo "
373
+ − 9124 *** WARNING *** $xpm_problem
278
+ − 9125 I'm not touching that with a 10-foot pole!
+ − 9126 If you really want to use the installed version of Xpm, rerun
373
+ − 9127 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
278
+ − 9128 fi
159
+ − 9129 else
373
+ − 9130 conftest_rc="$?"
159
+ − 9131 echo "configure: failed program was:" >&5
+ − 9132 cat conftest.$ac_ext >&5
+ − 9133 rm -fr conftest*
+ − 9134 with_xpm=no
+ − 9135 fi
+ − 9136 rm -fr conftest*
272
+ − 9137 xe_check_libs=
+ − 9138 echo "$ac_t""$with_xpm" 1>&6
193
+ − 9139 fi
+ − 9140 if test "$with_xpm" = "yes"; then
458
+ − 9141 { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 9142 Defining HAVE_XPM
+ − 9143 EOF
+ − 9144 cat >> confdefs.h <<\EOF
+ − 9145 #define HAVE_XPM 1
+ − 9146 EOF
+ − 9147 }
+ − 9148
724
+ − 9149 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
193
+ − 9150 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
724
+ − 9151 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
278
+ − 9152 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
1261
+ − 9153 echo "configure:9155: checking for \"FOR_MSW\" xpm" >&5
278
+ − 9154 xe_check_libs=-lXpm
+ − 9155 cat > conftest.$ac_ext <<EOF
1261
+ − 9156 #line 9158 "configure"
278
+ − 9157 #include "confdefs.h"
+ − 9158
+ − 9159 int main() {
+ − 9160 XpmCreatePixmapFromData()
+ − 9161 ; return 0; }
+ − 9162 EOF
1261
+ − 9163 if { (eval echo configure:9165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
278
+ − 9164 rm -rf conftest*
+ − 9165 xpm_for_msw=no
+ − 9166 else
+ − 9167 echo "configure: failed program was:" >&5
+ − 9168 cat conftest.$ac_ext >&5
+ − 9169 rm -rf conftest*
+ − 9170 xpm_for_msw=yes
+ − 9171 fi
+ − 9172 rm -f conftest*
+ − 9173 xe_check_libs=
+ − 9174 echo "$ac_t""$xpm_for_msw" 1>&6
+ − 9175 if test "$xpm_for_msw" = "yes"; then
+ − 9176 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9177 Defining FOR_MSW
+ − 9178 EOF
+ − 9179 cat >> confdefs.h <<\EOF
+ − 9180 #define FOR_MSW 1
+ − 9181 EOF
+ − 9182 }
+ − 9183
+ − 9184 fi
+ − 9185 fi
+ − 9186
388
+ − 9187 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
+ − 9188 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
1261
+ − 9189 echo "configure:9191: checking for compface.h" >&5
+ − 9190
+ − 9191 cat > conftest.$ac_ext <<EOF
+ − 9192 #line 9194 "configure"
388
+ − 9193 #include "confdefs.h"
+ − 9194 #include <compface.h>
+ − 9195 EOF
+ − 9196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 9197 { (eval echo configure:9199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 9198 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
388
+ − 9199 if test -z "$ac_err"; then
+ − 9200 rm -rf conftest*
+ − 9201 eval "ac_cv_header_$ac_safe=yes"
+ − 9202 else
+ − 9203 echo "$ac_err" >&5
+ − 9204 echo "configure: failed program was:" >&5
+ − 9205 cat conftest.$ac_ext >&5
+ − 9206 rm -rf conftest*
+ − 9207 eval "ac_cv_header_$ac_safe=no"
+ − 9208 fi
+ − 9209 rm -f conftest*
+ − 9210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9211 echo "$ac_t""yes" 1>&6
+ − 9212 :
+ − 9213 else
+ − 9214 echo "$ac_t""no" 1>&6
+ − 9215 with_xface=no
+ − 9216 fi
+ − 9217 }
+ − 9218 test -z "$with_xface" && {
+ − 9219 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
1261
+ − 9220 echo "configure:9222: checking for UnGenFace in -lcompface" >&5
388
+ − 9221 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
+ − 9222
+ − 9223 xe_check_libs=" -lcompface "
+ − 9224 cat > conftest.$ac_ext <<EOF
1261
+ − 9225 #line 9227 "configure"
388
+ − 9226 #include "confdefs.h"
+ − 9227 /* Override any gcc2 internal prototype to avoid an error. */
+ − 9228 /* We use char because int might match the return type of a gcc2
+ − 9229 builtin and then its argument prototype would still apply. */
+ − 9230 char UnGenFace();
+ − 9231
+ − 9232 int main() {
+ − 9233 UnGenFace()
+ − 9234 ; return 0; }
+ − 9235 EOF
1261
+ − 9236 if { (eval echo configure:9238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
388
+ − 9237 rm -rf conftest*
+ − 9238 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 9239 else
+ − 9240 echo "configure: failed program was:" >&5
+ − 9241 cat conftest.$ac_ext >&5
+ − 9242 rm -rf conftest*
+ − 9243 eval "ac_cv_lib_$ac_lib_var=no"
+ − 9244 fi
+ − 9245 rm -f conftest*
+ − 9246 xe_check_libs=""
+ − 9247
+ − 9248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 9249 echo "$ac_t""yes" 1>&6
+ − 9250 :
+ − 9251 else
+ − 9252 echo "$ac_t""no" 1>&6
+ − 9253 with_xface=no
+ − 9254 fi
+ − 9255
+ − 9256 }
+ − 9257 test -z "$with_xface" && with_xface=yes
+ − 9258 if test "$with_xface" = "yes"; then
+ − 9259 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9260 Defining HAVE_XFACE
+ − 9261 EOF
+ − 9262 cat >> confdefs.h <<\EOF
+ − 9263 #define HAVE_XFACE 1
+ − 9264 EOF
+ − 9265 }
+ − 9266
+ − 9267 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
+ − 9268 fi
+ − 9269
373
+ − 9270 if test "$with_gif" != "no"; then
+ − 9271 with_gif="yes"
+ − 9272 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9273 Defining HAVE_GIF
+ − 9274 EOF
+ − 9275 cat >> confdefs.h <<\EOF
+ − 9276 #define HAVE_GIF 1
+ − 9277 EOF
+ − 9278 }
+ − 9279
+ − 9280 fi
+ − 9281
278
+ − 9282 if test "$with_png $with_tiff" != "no no"; then
+ − 9283
+ − 9284 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
1261
+ − 9285 echo "configure:9287: checking for inflate in -lc" >&5
278
+ − 9286 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
+ − 9287
+ − 9288 xe_check_libs=" -lc "
+ − 9289 cat > conftest.$ac_ext <<EOF
1261
+ − 9290 #line 9292 "configure"
149
+ − 9291 #include "confdefs.h"
+ − 9292 /* Override any gcc2 internal prototype to avoid an error. */
+ − 9293 /* We use char because int might match the return type of a gcc2
+ − 9294 builtin and then its argument prototype would still apply. */
278
+ − 9295 char inflate();
+ − 9296
+ − 9297 int main() {
+ − 9298 inflate()
+ − 9299 ; return 0; }
+ − 9300 EOF
1261
+ − 9301 if { (eval echo configure:9303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 9302 rm -rf conftest*
+ − 9303 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 9304 else
+ − 9305 echo "configure: failed program was:" >&5
+ − 9306 cat conftest.$ac_ext >&5
+ − 9307 rm -rf conftest*
+ − 9308 eval "ac_cv_lib_$ac_lib_var=no"
+ − 9309 fi
+ − 9310 rm -f conftest*
+ − 9311 xe_check_libs=""
+ − 9312
151
+ − 9313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 9314 echo "$ac_t""yes" 1>&6
278
+ − 9315 :
+ − 9316 else
+ − 9317 echo "$ac_t""no" 1>&6
+ − 9318
+ − 9319 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
1261
+ − 9320 echo "configure:9322: checking for inflate in -lz" >&5
278
+ − 9321 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
+ − 9322
+ − 9323 xe_check_libs=" -lz "
+ − 9324 cat > conftest.$ac_ext <<EOF
1261
+ − 9325 #line 9327 "configure"
278
+ − 9326 #include "confdefs.h"
+ − 9327 /* Override any gcc2 internal prototype to avoid an error. */
+ − 9328 /* We use char because int might match the return type of a gcc2
+ − 9329 builtin and then its argument prototype would still apply. */
+ − 9330 char inflate();
+ − 9331
+ − 9332 int main() {
+ − 9333 inflate()
+ − 9334 ; return 0; }
+ − 9335 EOF
1261
+ − 9336 if { (eval echo configure:9338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
278
+ − 9337 rm -rf conftest*
+ − 9338 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 9339 else
+ − 9340 echo "configure: failed program was:" >&5
+ − 9341 cat conftest.$ac_ext >&5
+ − 9342 rm -rf conftest*
+ − 9343 eval "ac_cv_lib_$ac_lib_var=no"
+ − 9344 fi
+ − 9345 rm -f conftest*
+ − 9346 xe_check_libs=""
+ − 9347
+ − 9348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 9349 echo "$ac_t""yes" 1>&6
+ − 9350 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
+ − 9351 else
+ − 9352 echo "$ac_t""no" 1>&6
+ − 9353
+ − 9354 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
1261
+ − 9355 echo "configure:9357: checking for inflate in -lgz" >&5
278
+ − 9356 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
+ − 9357
+ − 9358 xe_check_libs=" -lgz "
+ − 9359 cat > conftest.$ac_ext <<EOF
1261
+ − 9360 #line 9362 "configure"
278
+ − 9361 #include "confdefs.h"
+ − 9362 /* Override any gcc2 internal prototype to avoid an error. */
+ − 9363 /* We use char because int might match the return type of a gcc2
+ − 9364 builtin and then its argument prototype would still apply. */
+ − 9365 char inflate();
+ − 9366
+ − 9367 int main() {
+ − 9368 inflate()
+ − 9369 ; return 0; }
+ − 9370 EOF
1261
+ − 9371 if { (eval echo configure:9373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
278
+ − 9372 rm -rf conftest*
+ − 9373 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 9374 else
+ − 9375 echo "configure: failed program was:" >&5
+ − 9376 cat conftest.$ac_ext >&5
+ − 9377 rm -rf conftest*
+ − 9378 eval "ac_cv_lib_$ac_lib_var=no"
+ − 9379 fi
+ − 9380 rm -f conftest*
+ − 9381 xe_check_libs=""
+ − 9382
+ − 9383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 9384 echo "$ac_t""yes" 1>&6
+ − 9385 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
+ − 9386 else
+ − 9387 echo "$ac_t""no" 1>&6
+ − 9388 fi
+ − 9389
+ − 9390
+ − 9391 fi
+ − 9392
+ − 9393
+ − 9394 fi
+ − 9395
+ − 9396
193
+ − 9397 fi
+ − 9398
251
+ − 9399 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
+ − 9400 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
1261
+ − 9401 echo "configure:9403: checking for jpeglib.h" >&5
+ − 9402
+ − 9403 cat > conftest.$ac_ext <<EOF
+ − 9404 #line 9406 "configure"
251
+ − 9405 #include "confdefs.h"
+ − 9406 #include <jpeglib.h>
0
+ − 9407 EOF
149
+ − 9408 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 9409 { (eval echo configure:9411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 9410 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
251
+ − 9411 if test -z "$ac_err"; then
+ − 9412 rm -rf conftest*
+ − 9413 eval "ac_cv_header_$ac_safe=yes"
+ − 9414 else
+ − 9415 echo "$ac_err" >&5
+ − 9416 echo "configure: failed program was:" >&5
+ − 9417 cat conftest.$ac_ext >&5
+ − 9418 rm -rf conftest*
+ − 9419 eval "ac_cv_header_$ac_safe=no"
+ − 9420 fi
+ − 9421 rm -f conftest*
+ − 9422 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9423 echo "$ac_t""yes" 1>&6
+ − 9424 :
+ − 9425 else
+ − 9426 echo "$ac_t""no" 1>&6
+ − 9427 with_jpeg=no
+ − 9428 fi
+ − 9429 }
+ − 9430 test -z "$with_jpeg" && {
+ − 9431 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
1261
+ − 9432 echo "configure:9434: checking for jpeg_destroy_decompress in -ljpeg" >&5
251
+ − 9433 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
+ − 9434
+ − 9435 xe_check_libs=" -ljpeg "
+ − 9436 cat > conftest.$ac_ext <<EOF
1261
+ − 9437 #line 9439 "configure"
251
+ − 9438 #include "confdefs.h"
+ − 9439 /* Override any gcc2 internal prototype to avoid an error. */
+ − 9440 /* We use char because int might match the return type of a gcc2
+ − 9441 builtin and then its argument prototype would still apply. */
+ − 9442 char jpeg_destroy_decompress();
+ − 9443
+ − 9444 int main() {
+ − 9445 jpeg_destroy_decompress()
+ − 9446 ; return 0; }
+ − 9447 EOF
1261
+ − 9448 if { (eval echo configure:9450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
251
+ − 9449 rm -rf conftest*
+ − 9450 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 9451 else
+ − 9452 echo "configure: failed program was:" >&5
+ − 9453 cat conftest.$ac_ext >&5
+ − 9454 rm -rf conftest*
+ − 9455 eval "ac_cv_lib_$ac_lib_var=no"
+ − 9456 fi
+ − 9457 rm -f conftest*
+ − 9458 xe_check_libs=""
+ − 9459
+ − 9460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 9461 echo "$ac_t""yes" 1>&6
+ − 9462 :
+ − 9463 else
+ − 9464 echo "$ac_t""no" 1>&6
+ − 9465 with_jpeg=no
+ − 9466 fi
+ − 9467
+ − 9468 }
+ − 9469 test -z "$with_jpeg" && with_jpeg=yes
+ − 9470 if test "$with_jpeg" = "yes"; then
+ − 9471 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9472 Defining HAVE_JPEG
+ − 9473 EOF
+ − 9474 cat >> confdefs.h <<\EOF
+ − 9475 #define HAVE_JPEG 1
+ − 9476 EOF
+ − 9477 }
+ − 9478
+ − 9479 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
+ − 9480 fi
+ − 9481
373
+ − 9482 png_problem=""
251
+ − 9483 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
1261
+ − 9484 echo "configure:9486: checking for pow" >&5
+ − 9485
+ − 9486 cat > conftest.$ac_ext <<EOF
+ − 9487 #line 9489 "configure"
251
+ − 9488 #include "confdefs.h"
+ − 9489 /* System header to define __stub macros and hopefully few prototypes,
+ − 9490 which can conflict with char pow(); below. */
+ − 9491 #include <assert.h>
243
+ − 9492 /* Override any gcc2 internal prototype to avoid an error. */
+ − 9493 /* We use char because int might match the return type of a gcc2
+ − 9494 builtin and then its argument prototype would still apply. */
251
+ − 9495 char pow();
243
+ − 9496
+ − 9497 int main() {
251
+ − 9498
+ − 9499 /* The GNU C library defines this for functions which it implements
+ − 9500 to always fail with ENOSYS. Some functions are actually named
+ − 9501 something starting with __ and the normal name is an alias. */
+ − 9502 #if defined (__stub_pow) || defined (__stub___pow)
+ − 9503 choke me
+ − 9504 #else
+ − 9505 pow();
+ − 9506 #endif
+ − 9507
243
+ − 9508 ; return 0; }
+ − 9509 EOF
1261
+ − 9510 if { (eval echo configure:9512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
251
+ − 9511 rm -rf conftest*
+ − 9512 eval "ac_cv_func_pow=yes"
+ − 9513 else
+ − 9514 echo "configure: failed program was:" >&5
+ − 9515 cat conftest.$ac_ext >&5
+ − 9516 rm -rf conftest*
+ − 9517 eval "ac_cv_func_pow=no"
+ − 9518 fi
+ − 9519 rm -f conftest*
+ − 9520
+ − 9521 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
+ − 9522 echo "$ac_t""yes" 1>&6
+ − 9523 :
+ − 9524 else
+ − 9525 echo "$ac_t""no" 1>&6
+ − 9526 with_png=no
+ − 9527 fi
+ − 9528 }
373
+ − 9529 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
+ − 9530 echo $ac_n "checking for png.h""... $ac_c" 1>&6
1261
+ − 9531 echo "configure:9533: checking for png.h" >&5
+ − 9532
+ − 9533 cat > conftest.$ac_ext <<EOF
+ − 9534 #line 9536 "configure"
373
+ − 9535 #include "confdefs.h"
+ − 9536 #include <png.h>
+ − 9537 EOF
+ − 9538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 9539 { (eval echo configure:9541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 9540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
373
+ − 9541 if test -z "$ac_err"; then
+ − 9542 rm -rf conftest*
+ − 9543 eval "ac_cv_header_$ac_safe=yes"
+ − 9544 else
+ − 9545 echo "$ac_err" >&5
+ − 9546 echo "configure: failed program was:" >&5
+ − 9547 cat conftest.$ac_ext >&5
+ − 9548 rm -rf conftest*
+ − 9549 eval "ac_cv_header_$ac_safe=no"
+ − 9550 fi
+ − 9551 rm -f conftest*
+ − 9552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9553 echo "$ac_t""yes" 1>&6
+ − 9554 :
+ − 9555 else
+ − 9556 echo "$ac_t""no" 1>&6
+ − 9557 with_png=no
+ − 9558 fi
+ − 9559 }
272
+ − 9560 test -z "$with_png" && {
+ − 9561 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
1261
+ − 9562 echo "configure:9564: checking for png_read_image in -lpng" >&5
272
+ − 9563 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
+ − 9564
+ − 9565 xe_check_libs=" -lpng "
+ − 9566 cat > conftest.$ac_ext <<EOF
1261
+ − 9567 #line 9569 "configure"
243
+ − 9568 #include "confdefs.h"
+ − 9569 /* Override any gcc2 internal prototype to avoid an error. */
+ − 9570 /* We use char because int might match the return type of a gcc2
+ − 9571 builtin and then its argument prototype would still apply. */
272
+ − 9572 char png_read_image();
+ − 9573
+ − 9574 int main() {
+ − 9575 png_read_image()
+ − 9576 ; return 0; }
+ − 9577 EOF
1261
+ − 9578 if { (eval echo configure:9580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
217
+ − 9579 rm -rf conftest*
+ − 9580 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 9581 else
+ − 9582 echo "configure: failed program was:" >&5
+ − 9583 cat conftest.$ac_ext >&5
+ − 9584 rm -rf conftest*
+ − 9585 eval "ac_cv_lib_$ac_lib_var=no"
+ − 9586 fi
+ − 9587 rm -f conftest*
+ − 9588 xe_check_libs=""
+ − 9589
+ − 9590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 9591 echo "$ac_t""yes" 1>&6
272
+ − 9592 :
+ − 9593 else
+ − 9594 echo "$ac_t""no" 1>&6
+ − 9595 with_png=no
+ − 9596 fi
+ − 9597
+ − 9598 }
373
+ − 9599 if test -z "$with_png"; then
+ − 9600 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
1261
+ − 9601 echo "configure:9603: checking for workable png version information" >&5
373
+ − 9602 xe_check_libs="-lpng -lz"
+ − 9603 cat > conftest.$ac_ext <<EOF
1261
+ − 9604 #line 9606 "configure"
373
+ − 9605 #include "confdefs.h"
+ − 9606 #include <png.h>
+ − 9607 int main(int c, char **v) {
+ − 9608 if (c == 1) return 0;
+ − 9609 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
+ − 9610 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
+ − 9611 EOF
1261
+ − 9612 if { (eval echo configure:9614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
373
+ − 9613 then
+ − 9614 ./conftest dummy_arg; png_status=$?;
+ − 9615 if test "$png_status" = "0"; then
+ − 9616 with_png=yes;
+ − 9617 else
+ − 9618 with_png=no;
+ − 9619 if test "$png_status" = "1"; then
+ − 9620 png_problem="PNG library version and header file don't match!"
+ − 9621 elif test "$png_status" = "2"; then
+ − 9622 png_problem="PNG library version too old (pre 1.0.2)!"
+ − 9623 fi
+ − 9624 echo "
+ − 9625 *** WARNING *** $png_problem
+ − 9626 I'm not touching that with a 10-foot pole!
+ − 9627 If you really want to use the installed version of libPNG, rerun
+ − 9628 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
+ − 9629 fi
+ − 9630 else
+ − 9631 conftest_rc="$?"
+ − 9632 echo "configure: failed program was:" >&5
+ − 9633 cat conftest.$ac_ext >&5
+ − 9634 rm -fr conftest*
+ − 9635 with_png=no
+ − 9636 fi
+ − 9637 rm -fr conftest*
+ − 9638 xe_check_libs=
+ − 9639 echo "$ac_t""$with_png" 1>&6
+ − 9640 fi
251
+ − 9641 if test "$with_png" = "yes"; then
+ − 9642 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9643 Defining HAVE_PNG
+ − 9644 EOF
+ − 9645 cat >> confdefs.h <<\EOF
+ − 9646 #define HAVE_PNG 1
+ − 9647 EOF
+ − 9648 }
+ − 9649
272
+ − 9650 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
251
+ − 9651 fi
+ − 9652
272
+ − 9653 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
+ − 9654 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
1261
+ − 9655 echo "configure:9657: checking for tiffio.h" >&5
+ − 9656
+ − 9657 cat > conftest.$ac_ext <<EOF
+ − 9658 #line 9660 "configure"
272
+ − 9659 #include "confdefs.h"
+ − 9660 #include <tiffio.h>
+ − 9661 EOF
+ − 9662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 9663 { (eval echo configure:9665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 9664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
272
+ − 9665 if test -z "$ac_err"; then
+ − 9666 rm -rf conftest*
+ − 9667 eval "ac_cv_header_$ac_safe=yes"
+ − 9668 else
+ − 9669 echo "$ac_err" >&5
+ − 9670 echo "configure: failed program was:" >&5
+ − 9671 cat conftest.$ac_ext >&5
+ − 9672 rm -rf conftest*
+ − 9673 eval "ac_cv_header_$ac_safe=no"
+ − 9674 fi
+ − 9675 rm -f conftest*
+ − 9676 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9677 echo "$ac_t""yes" 1>&6
+ − 9678 :
+ − 9679 else
+ − 9680 echo "$ac_t""no" 1>&6
+ − 9681 with_tiff=no
+ − 9682 fi
+ − 9683 }
+ − 9684 test -z "$with_tiff" && {
286
+ − 9685 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
1261
+ − 9686 echo "configure:9688: checking for TIFFClientOpen in -ltiff" >&5
286
+ − 9687 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
251
+ − 9688
272
+ − 9689 xe_check_libs=" -ltiff "
+ − 9690 cat > conftest.$ac_ext <<EOF
1261
+ − 9691 #line 9693 "configure"
217
+ − 9692 #include "confdefs.h"
+ − 9693 /* Override any gcc2 internal prototype to avoid an error. */
+ − 9694 /* We use char because int might match the return type of a gcc2
+ − 9695 builtin and then its argument prototype would still apply. */
286
+ − 9696 char TIFFClientOpen();
+ − 9697
+ − 9698 int main() {
+ − 9699 TIFFClientOpen()
+ − 9700 ; return 0; }
+ − 9701 EOF
1261
+ − 9702 if { (eval echo configure:9704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
217
+ − 9703 rm -rf conftest*
+ − 9704 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 9705 else
+ − 9706 echo "configure: failed program was:" >&5
+ − 9707 cat conftest.$ac_ext >&5
+ − 9708 rm -rf conftest*
+ − 9709 eval "ac_cv_lib_$ac_lib_var=no"
+ − 9710 fi
+ − 9711 rm -f conftest*
+ − 9712 xe_check_libs=""
+ − 9713
+ − 9714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 9715 echo "$ac_t""yes" 1>&6
272
+ − 9716 :
+ − 9717 else
+ − 9718 echo "$ac_t""no" 1>&6
+ − 9719 with_tiff=no
+ − 9720 fi
+ − 9721
+ − 9722 }
+ − 9723 test -z "$with_tiff" && with_tiff=yes
251
+ − 9724 if test "$with_tiff" = "yes"; then
+ − 9725 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9726 Defining HAVE_TIFF
+ − 9727 EOF
+ − 9728 cat >> confdefs.h <<\EOF
+ − 9729 #define HAVE_TIFF 1
+ − 9730 EOF
+ − 9731 }
+ − 9732
272
+ − 9733 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
251
+ − 9734 fi
278
+ − 9735 fi
+ − 9736
+ − 9737
462
+ − 9738 if test "$with_gtk" = "yes"; then
+ − 9739 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
+ − 9740 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
1261
+ − 9741 echo "configure:9743: checking for compface.h" >&5
+ − 9742
+ − 9743 cat > conftest.$ac_ext <<EOF
+ − 9744 #line 9746 "configure"
462
+ − 9745 #include "confdefs.h"
+ − 9746 #include <compface.h>
+ − 9747 EOF
+ − 9748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 9749 { (eval echo configure:9751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
462
+ − 9750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 9751 if test -z "$ac_err"; then
+ − 9752 rm -rf conftest*
+ − 9753 eval "ac_cv_header_$ac_safe=yes"
+ − 9754 else
+ − 9755 echo "$ac_err" >&5
+ − 9756 echo "configure: failed program was:" >&5
+ − 9757 cat conftest.$ac_ext >&5
+ − 9758 rm -rf conftest*
+ − 9759 eval "ac_cv_header_$ac_safe=no"
+ − 9760 fi
+ − 9761 rm -f conftest*
+ − 9762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9763 echo "$ac_t""yes" 1>&6
+ − 9764 :
+ − 9765 else
+ − 9766 echo "$ac_t""no" 1>&6
+ − 9767 with_xface=no
+ − 9768 fi
+ − 9769 }
+ − 9770 test -z "$with_xface" && {
+ − 9771 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
1261
+ − 9772 echo "configure:9774: checking for UnGenFace in -lcompface" >&5
462
+ − 9773 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
+ − 9774
+ − 9775 xe_check_libs=" -lcompface "
+ − 9776 cat > conftest.$ac_ext <<EOF
1261
+ − 9777 #line 9779 "configure"
462
+ − 9778 #include "confdefs.h"
+ − 9779 /* Override any gcc2 internal prototype to avoid an error. */
+ − 9780 /* We use char because int might match the return type of a gcc2
+ − 9781 builtin and then its argument prototype would still apply. */
+ − 9782 char UnGenFace();
+ − 9783
+ − 9784 int main() {
+ − 9785 UnGenFace()
+ − 9786 ; return 0; }
+ − 9787 EOF
1261
+ − 9788 if { (eval echo configure:9790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
+ − 9789 rm -rf conftest*
+ − 9790 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 9791 else
+ − 9792 echo "configure: failed program was:" >&5
+ − 9793 cat conftest.$ac_ext >&5
+ − 9794 rm -rf conftest*
+ − 9795 eval "ac_cv_lib_$ac_lib_var=no"
+ − 9796 fi
+ − 9797 rm -f conftest*
+ − 9798 xe_check_libs=""
+ − 9799
+ − 9800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 9801 echo "$ac_t""yes" 1>&6
+ − 9802 :
+ − 9803 else
+ − 9804 echo "$ac_t""no" 1>&6
+ − 9805 with_xface=no
+ − 9806 fi
+ − 9807
+ − 9808 }
+ − 9809 test -z "$with_xface" && with_xface=yes
+ − 9810 if test "$with_xface" = "yes"; then
+ − 9811 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9812 Defining HAVE_XFACE
+ − 9813 EOF
+ − 9814 cat >> confdefs.h <<\EOF
+ − 9815 #define HAVE_XFACE 1
+ − 9816 EOF
+ − 9817 }
+ − 9818
+ − 9819 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
+ − 9820 fi
+ − 9821 fi
+ − 9822
+ − 9823
+ − 9824
278
+ − 9825 if test "$with_x11" = "yes"; then
+ − 9826 echo "checking for X11 graphics libraries" 1>&6
1261
+ − 9827 echo "configure:9829: checking for X11 graphics libraries" >&5
726
+ − 9828 fi
+ − 9829
+ − 9830 case "$with_widgets" in
+ − 9831 "yes" | "athena") detect_athena=yes ;;
+ − 9832 *) detect_athena=no ;;
+ − 9833 esac
+ − 9834
+ − 9835 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then
434
+ − 9836 echo "checking for the Athena widgets" 1>&6
1261
+ − 9837 echo "configure:9839: checking for the Athena widgets" >&5
434
+ − 9838
+ − 9839 case "$with_athena" in
+ − 9840 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
+ − 9841 "3d") athena_variant=Xaw3d athena_3d=yes ;;
+ − 9842 "next") athena_variant=neXtaw athena_3d=yes ;;
+ − 9843 "95") athena_variant=Xaw95 athena_3d=yes ;;
+ − 9844 "xpm") athena_variant=XawXpm athena_3d=yes ;;
+ − 9845 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
+ − 9846 esac
+ − 9847
+ − 9848 if test "$athena_3d" = "no"; then
193
+ − 9849
434
+ − 9850 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
1261
+ − 9851 echo "configure:9853: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
434
+ − 9852 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
+ − 9853
+ − 9854 xe_check_libs=" -l$athena_variant "
+ − 9855 cat > conftest.$ac_ext <<EOF
1261
+ − 9856 #line 9858 "configure"
193
+ − 9857 #include "confdefs.h"
+ − 9858 /* Override any gcc2 internal prototype to avoid an error. */
+ − 9859 /* We use char because int might match the return type of a gcc2
+ − 9860 builtin and then its argument prototype would still apply. */
+ − 9861 char XawScrollbarSetThumb();
+ − 9862
+ − 9863 int main() {
+ − 9864 XawScrollbarSetThumb()
+ − 9865 ; return 0; }
+ − 9866 EOF
1261
+ − 9867 if { (eval echo configure:9869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
434
+ − 9868 rm -rf conftest*
+ − 9869 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 9870 else
+ − 9871 echo "configure: failed program was:" >&5
+ − 9872 cat conftest.$ac_ext >&5
+ − 9873 rm -rf conftest*
+ − 9874 eval "ac_cv_lib_$ac_lib_var=no"
+ − 9875 fi
+ − 9876 rm -f conftest*
+ − 9877 xe_check_libs=""
+ − 9878
+ − 9879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 9880 echo "$ac_t""yes" 1>&6
+ − 9881
+ − 9882 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
1261
+ − 9883 echo "configure:9885: checking for threeDClassRec in -l$athena_variant" >&5
434
+ − 9884 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
+ − 9885
+ − 9886 xe_check_libs=" -l$athena_variant "
+ − 9887 cat > conftest.$ac_ext <<EOF
1261
+ − 9888 #line 9890 "configure"
434
+ − 9889 #include "confdefs.h"
+ − 9890 /* Override any gcc2 internal prototype to avoid an error. */
+ − 9891 /* We use char because int might match the return type of a gcc2
+ − 9892 builtin and then its argument prototype would still apply. */
+ − 9893 char threeDClassRec();
+ − 9894
+ − 9895 int main() {
+ − 9896 threeDClassRec()
+ − 9897 ; return 0; }
+ − 9898 EOF
1261
+ − 9899 if { (eval echo configure:9901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
561
+ − 9900 rm -rf conftest*
+ − 9901 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 9902 else
+ − 9903 echo "configure: failed program was:" >&5
+ − 9904 cat conftest.$ac_ext >&5
+ − 9905 rm -rf conftest*
+ − 9906 eval "ac_cv_lib_$ac_lib_var=no"
+ − 9907 fi
+ − 9908 rm -f conftest*
+ − 9909 xe_check_libs=""
+ − 9910
+ − 9911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 9912 echo "$ac_t""yes" 1>&6
+ − 9913 echo "configure: warning: Could not find a non-3d Athena widget library." 1>&2
434
+ − 9914 else
+ − 9915 echo "$ac_t""no" 1>&6
+ − 9916 athena_lib=$athena_variant
+ − 9917 fi
+ − 9918
+ − 9919
+ − 9920
+ − 9921 else
+ − 9922 echo "$ac_t""no" 1>&6
561
+ − 9923 echo "configure: warning: Could not find an Athena widget library." 1>&2
434
+ − 9924 fi
+ − 9925
+ − 9926
+ − 9927 else
+ − 9928
+ − 9929 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
1261
+ − 9930 echo "configure:9932: checking for threeDClassRec in -l$athena_variant" >&5
434
+ − 9931 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
+ − 9932
+ − 9933 xe_check_libs=" -l$athena_variant "
+ − 9934 cat > conftest.$ac_ext <<EOF
1261
+ − 9935 #line 9937 "configure"
434
+ − 9936 #include "confdefs.h"
+ − 9937 /* Override any gcc2 internal prototype to avoid an error. */
+ − 9938 /* We use char because int might match the return type of a gcc2
+ − 9939 builtin and then its argument prototype would still apply. */
+ − 9940 char threeDClassRec();
+ − 9941
+ − 9942 int main() {
+ − 9943 threeDClassRec()
+ − 9944 ; return 0; }
+ − 9945 EOF
1261
+ − 9946 if { (eval echo configure:9948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
434
+ − 9947 rm -rf conftest*
+ − 9948 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 9949 else
+ − 9950 echo "configure: failed program was:" >&5
+ − 9951 cat conftest.$ac_ext >&5
+ − 9952 rm -rf conftest*
+ − 9953 eval "ac_cv_lib_$ac_lib_var=no"
+ − 9954 fi
+ − 9955 rm -f conftest*
+ − 9956 xe_check_libs=""
+ − 9957
+ − 9958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 9959 echo "$ac_t""yes" 1>&6
+ − 9960 athena_lib=$athena_variant
+ − 9961 else
+ − 9962 echo "$ac_t""no" 1>&6
+ − 9963 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
1261
+ − 9964 echo "configure:9966: checking for threeDClassRec in -lXaw" >&5
434
+ − 9965 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
+ − 9966
+ − 9967 xe_check_libs=" -lXaw "
+ − 9968 cat > conftest.$ac_ext <<EOF
1261
+ − 9969 #line 9971 "configure"
434
+ − 9970 #include "confdefs.h"
+ − 9971 /* Override any gcc2 internal prototype to avoid an error. */
+ − 9972 /* We use char because int might match the return type of a gcc2
+ − 9973 builtin and then its argument prototype would still apply. */
+ − 9974 char threeDClassRec();
+ − 9975
+ − 9976 int main() {
+ − 9977 threeDClassRec()
+ − 9978 ; return 0; }
+ − 9979 EOF
1261
+ − 9980 if { (eval echo configure:9982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
193
+ − 9981 rm -rf conftest*
+ − 9982 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 9983 else
+ − 9984 echo "configure: failed program was:" >&5
+ − 9985 cat conftest.$ac_ext >&5
+ − 9986 rm -rf conftest*
+ − 9987 eval "ac_cv_lib_$ac_lib_var=no"
+ − 9988 fi
+ − 9989 rm -f conftest*
+ − 9990 xe_check_libs=""
+ − 9991
+ − 9992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 9993 echo "$ac_t""yes" 1>&6
438
+ − 9994 athena_lib=Xaw;
561
+ − 9995 echo "configure: warning: Assuming that libXaw is actually $athena_variant." 1>&2;
434
+ − 9996
+ − 9997 else
+ − 9998 echo "$ac_t""no" 1>&6
561
+ − 9999 echo "configure: warning: Could not find a 3d Athena widget library that looked like $athena_variant." 1>&2
434
+ − 10000 fi
+ − 10001
+ − 10002
+ − 10003 fi
+ − 10004
+ − 10005
+ − 10006 fi
+ − 10007
+ − 10008 if test "$athena_3d" = "no"; then
+ − 10009 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
+ − 10010 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
1261
+ − 10011 echo "configure:10013: checking for X11/Xaw/ThreeD.h" >&5
+ − 10012
+ − 10013 cat > conftest.$ac_ext <<EOF
+ − 10014 #line 10016 "configure"
434
+ − 10015 #include "confdefs.h"
+ − 10016 #include <X11/Xaw/ThreeD.h>
+ − 10017 EOF
+ − 10018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 10019 { (eval echo configure:10021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
561
+ − 10020 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 10021 if test -z "$ac_err"; then
+ − 10022 rm -rf conftest*
+ − 10023 eval "ac_cv_header_$ac_safe=yes"
+ − 10024 else
+ − 10025 echo "$ac_err" >&5
+ − 10026 echo "configure: failed program was:" >&5
+ − 10027 cat conftest.$ac_ext >&5
+ − 10028 rm -rf conftest*
+ − 10029 eval "ac_cv_header_$ac_safe=no"
+ − 10030 fi
+ − 10031 rm -f conftest*
+ − 10032 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 10033 echo "$ac_t""yes" 1>&6
+ − 10034 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
434
+ − 10035 else
+ − 10036 echo "$ac_t""no" 1>&6
+ − 10037 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
+ − 10038 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
1261
+ − 10039 echo "configure:10041: checking for X11/Xaw/XawInit.h" >&5
+ − 10040
+ − 10041 cat > conftest.$ac_ext <<EOF
+ − 10042 #line 10044 "configure"
434
+ − 10043 #include "confdefs.h"
+ − 10044 #include <X11/Xaw/XawInit.h>
+ − 10045 EOF
+ − 10046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 10047 { (eval echo configure:10049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
+ − 10048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 10049 if test -z "$ac_err"; then
+ − 10050 rm -rf conftest*
+ − 10051 eval "ac_cv_header_$ac_safe=yes"
+ − 10052 else
+ − 10053 echo "$ac_err" >&5
+ − 10054 echo "configure: failed program was:" >&5
+ − 10055 cat conftest.$ac_ext >&5
+ − 10056 rm -rf conftest*
+ − 10057 eval "ac_cv_header_$ac_safe=no"
+ − 10058 fi
+ − 10059 rm -f conftest*
+ − 10060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 10061 echo "$ac_t""yes" 1>&6
+ − 10062 athena_h_path=X11/Xaw
+ − 10063 else
+ − 10064 echo "$ac_t""no" 1>&6
561
+ − 10065 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
434
+ − 10066 fi
+ − 10067
+ − 10068 fi
+ − 10069
+ − 10070 else
+ − 10071 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
+ − 10072 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
1261
+ − 10073 echo "configure:10075: checking for X11/$athena_variant/XawInit.h" >&5
+ − 10074
+ − 10075 cat > conftest.$ac_ext <<EOF
+ − 10076 #line 10078 "configure"
434
+ − 10077 #include "confdefs.h"
+ − 10078 #include <X11/$athena_variant/XawInit.h>
+ − 10079 EOF
+ − 10080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 10081 { (eval echo configure:10083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
+ − 10082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 10083 if test -z "$ac_err"; then
+ − 10084 rm -rf conftest*
+ − 10085 eval "ac_cv_header_$ac_safe=yes"
+ − 10086 else
+ − 10087 echo "$ac_err" >&5
+ − 10088 echo "configure: failed program was:" >&5
+ − 10089 cat conftest.$ac_ext >&5
+ − 10090 rm -rf conftest*
+ − 10091 eval "ac_cv_header_$ac_safe=no"
+ − 10092 fi
+ − 10093 rm -f conftest*
+ − 10094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 10095 echo "$ac_t""yes" 1>&6
+ − 10096 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
+ − 10097 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
1261
+ − 10098 echo "configure:10100: checking for X11/$athena_variant/ThreeD.h" >&5
+ − 10099
+ − 10100 cat > conftest.$ac_ext <<EOF
+ − 10101 #line 10103 "configure"
434
+ − 10102 #include "confdefs.h"
+ − 10103 #include <X11/$athena_variant/ThreeD.h>
+ − 10104 EOF
+ − 10105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 10106 { (eval echo configure:10108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
+ − 10107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 10108 if test -z "$ac_err"; then
+ − 10109 rm -rf conftest*
+ − 10110 eval "ac_cv_header_$ac_safe=yes"
+ − 10111 else
+ − 10112 echo "$ac_err" >&5
+ − 10113 echo "configure: failed program was:" >&5
+ − 10114 cat conftest.$ac_ext >&5
+ − 10115 rm -rf conftest*
+ − 10116 eval "ac_cv_header_$ac_safe=no"
+ − 10117 fi
+ − 10118 rm -f conftest*
+ − 10119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 10120 echo "$ac_t""yes" 1>&6
+ − 10121 athena_h_path=X11/$athena_variant
+ − 10122 else
+ − 10123 echo "$ac_t""no" 1>&6
+ − 10124 fi
+ − 10125
+ − 10126 else
+ − 10127 echo "$ac_t""no" 1>&6
+ − 10128 fi
+ − 10129
+ − 10130
440
+ − 10131 if test -z "$athena_h_path"; then
+ − 10132 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
+ − 10133 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
1261
+ − 10134 echo "configure:10136: checking for $athena_variant/XawInit.h" >&5
+ − 10135
+ − 10136 cat > conftest.$ac_ext <<EOF
+ − 10137 #line 10139 "configure"
440
+ − 10138 #include "confdefs.h"
+ − 10139 #include <$athena_variant/XawInit.h>
+ − 10140 EOF
+ − 10141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 10142 { (eval echo configure:10144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
440
+ − 10143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 10144 if test -z "$ac_err"; then
+ − 10145 rm -rf conftest*
+ − 10146 eval "ac_cv_header_$ac_safe=yes"
+ − 10147 else
+ − 10148 echo "$ac_err" >&5
+ − 10149 echo "configure: failed program was:" >&5
+ − 10150 cat conftest.$ac_ext >&5
+ − 10151 rm -rf conftest*
+ − 10152 eval "ac_cv_header_$ac_safe=no"
+ − 10153 fi
+ − 10154 rm -f conftest*
+ − 10155 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 10156 echo "$ac_t""yes" 1>&6
+ − 10157 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
+ − 10158 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
1261
+ − 10159 echo "configure:10161: checking for $athena_variant/ThreeD.h" >&5
+ − 10160
+ − 10161 cat > conftest.$ac_ext <<EOF
+ − 10162 #line 10164 "configure"
440
+ − 10163 #include "confdefs.h"
+ − 10164 #include <$athena_variant/ThreeD.h>
+ − 10165 EOF
+ − 10166 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 10167 { (eval echo configure:10169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
440
+ − 10168 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 10169 if test -z "$ac_err"; then
+ − 10170 rm -rf conftest*
+ − 10171 eval "ac_cv_header_$ac_safe=yes"
+ − 10172 else
+ − 10173 echo "$ac_err" >&5
+ − 10174 echo "configure: failed program was:" >&5
+ − 10175 cat conftest.$ac_ext >&5
+ − 10176 rm -rf conftest*
+ − 10177 eval "ac_cv_header_$ac_safe=no"
+ − 10178 fi
+ − 10179 rm -f conftest*
+ − 10180 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 10181 echo "$ac_t""yes" 1>&6
+ − 10182 athena_h_path=$athena_variant
+ − 10183 else
+ − 10184 echo "$ac_t""no" 1>&6
+ − 10185 fi
+ − 10186
+ − 10187 else
+ − 10188 echo "$ac_t""no" 1>&6
+ − 10189 fi
+ − 10190
+ − 10191 fi
+ − 10192
434
+ − 10193 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
+ − 10194 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
+ − 10195 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
1261
+ − 10196 echo "configure:10198: checking for X11/Xaw3d/XawInit.h" >&5
+ − 10197
+ − 10198 cat > conftest.$ac_ext <<EOF
+ − 10199 #line 10201 "configure"
434
+ − 10200 #include "confdefs.h"
+ − 10201 #include <X11/Xaw3d/XawInit.h>
+ − 10202 EOF
+ − 10203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 10204 { (eval echo configure:10206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
+ − 10205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 10206 if test -z "$ac_err"; then
+ − 10207 rm -rf conftest*
+ − 10208 eval "ac_cv_header_$ac_safe=yes"
+ − 10209 else
+ − 10210 echo "$ac_err" >&5
+ − 10211 echo "configure: failed program was:" >&5
+ − 10212 cat conftest.$ac_ext >&5
+ − 10213 rm -rf conftest*
+ − 10214 eval "ac_cv_header_$ac_safe=no"
+ − 10215 fi
+ − 10216 rm -f conftest*
+ − 10217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 10218 echo "$ac_t""yes" 1>&6
+ − 10219 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
+ − 10220 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
1261
+ − 10221 echo "configure:10223: checking for X11/Xaw3d/ThreeD.h" >&5
+ − 10222
+ − 10223 cat > conftest.$ac_ext <<EOF
+ − 10224 #line 10226 "configure"
434
+ − 10225 #include "confdefs.h"
+ − 10226 #include <X11/Xaw3d/ThreeD.h>
+ − 10227 EOF
+ − 10228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 10229 { (eval echo configure:10231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
+ − 10230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 10231 if test -z "$ac_err"; then
+ − 10232 rm -rf conftest*
+ − 10233 eval "ac_cv_header_$ac_safe=yes"
+ − 10234 else
+ − 10235 echo "$ac_err" >&5
+ − 10236 echo "configure: failed program was:" >&5
+ − 10237 cat conftest.$ac_ext >&5
+ − 10238 rm -rf conftest*
+ − 10239 eval "ac_cv_header_$ac_safe=no"
+ − 10240 fi
+ − 10241 rm -f conftest*
+ − 10242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 10243 echo "$ac_t""yes" 1>&6
+ − 10244
561
+ − 10245 echo "configure: warning: Assuming that X11/Xaw3d headers are suitable for $athena_variant." 1>&2
434
+ − 10246 athena_h_path=X11/Xaw3d
+ − 10247
+ − 10248 else
+ − 10249 echo "$ac_t""no" 1>&6
+ − 10250 fi
+ − 10251
+ − 10252 else
+ − 10253 echo "$ac_t""no" 1>&6
+ − 10254 fi
+ − 10255
+ − 10256 fi
+ − 10257
440
+ − 10258 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
+ − 10259 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
+ − 10260 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
1261
+ − 10261 echo "configure:10263: checking for Xaw3d/XawInit.h" >&5
+ − 10262
+ − 10263 cat > conftest.$ac_ext <<EOF
+ − 10264 #line 10266 "configure"
440
+ − 10265 #include "confdefs.h"
+ − 10266 #include <Xaw3d/XawInit.h>
+ − 10267 EOF
+ − 10268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 10269 { (eval echo configure:10271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
440
+ − 10270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 10271 if test -z "$ac_err"; then
+ − 10272 rm -rf conftest*
+ − 10273 eval "ac_cv_header_$ac_safe=yes"
+ − 10274 else
+ − 10275 echo "$ac_err" >&5
+ − 10276 echo "configure: failed program was:" >&5
+ − 10277 cat conftest.$ac_ext >&5
+ − 10278 rm -rf conftest*
+ − 10279 eval "ac_cv_header_$ac_safe=no"
+ − 10280 fi
+ − 10281 rm -f conftest*
+ − 10282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 10283 echo "$ac_t""yes" 1>&6
+ − 10284 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
+ − 10285 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
1261
+ − 10286 echo "configure:10288: checking for Xaw3d/ThreeD.h" >&5
+ − 10287
+ − 10288 cat > conftest.$ac_ext <<EOF
+ − 10289 #line 10291 "configure"
440
+ − 10290 #include "confdefs.h"
+ − 10291 #include <Xaw3d/ThreeD.h>
+ − 10292 EOF
+ − 10293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 10294 { (eval echo configure:10296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
440
+ − 10295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 10296 if test -z "$ac_err"; then
+ − 10297 rm -rf conftest*
+ − 10298 eval "ac_cv_header_$ac_safe=yes"
+ − 10299 else
+ − 10300 echo "$ac_err" >&5
+ − 10301 echo "configure: failed program was:" >&5
+ − 10302 cat conftest.$ac_ext >&5
+ − 10303 rm -rf conftest*
+ − 10304 eval "ac_cv_header_$ac_safe=no"
+ − 10305 fi
+ − 10306 rm -f conftest*
+ − 10307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 10308 echo "$ac_t""yes" 1>&6
+ − 10309
561
+ − 10310 echo "configure: warning: Assuming that Xaw3d headers are suitable for $athena_variant." 1>&2
440
+ − 10311 athena_h_path=Xaw3d
+ − 10312
+ − 10313 else
+ − 10314 echo "$ac_t""no" 1>&6
+ − 10315 fi
+ − 10316
+ − 10317 else
+ − 10318 echo "$ac_t""no" 1>&6
+ − 10319 fi
+ − 10320
+ − 10321 fi
+ − 10322
434
+ − 10323 if test -z "$athena_h_path"; then
+ − 10324 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
+ − 10325 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
1261
+ − 10326 echo "configure:10328: checking for X11/Xaw/ThreeD.h" >&5
+ − 10327
+ − 10328 cat > conftest.$ac_ext <<EOF
+ − 10329 #line 10331 "configure"
434
+ − 10330 #include "confdefs.h"
+ − 10331 #include <X11/Xaw/ThreeD.h>
+ − 10332 EOF
+ − 10333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 10334 { (eval echo configure:10336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
+ − 10335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 10336 if test -z "$ac_err"; then
+ − 10337 rm -rf conftest*
+ − 10338 eval "ac_cv_header_$ac_safe=yes"
+ − 10339 else
+ − 10340 echo "$ac_err" >&5
+ − 10341 echo "configure: failed program was:" >&5
+ − 10342 cat conftest.$ac_ext >&5
+ − 10343 rm -rf conftest*
+ − 10344 eval "ac_cv_header_$ac_safe=no"
+ − 10345 fi
+ − 10346 rm -f conftest*
+ − 10347 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 10348 echo "$ac_t""yes" 1>&6
+ − 10349
561
+ − 10350 echo "configure: warning: Assuming that X11/Xaw headers are suitable for $athena_variant." 1>&2
434
+ − 10351 athena_h_path=X11/Xaw
+ − 10352
+ − 10353 else
+ − 10354 echo "$ac_t""no" 1>&6
561
+ − 10355 echo "configure: warning: Could not find a suitable 3d Athena header set." 1>&2
434
+ − 10356 fi
+ − 10357
+ − 10358 fi
+ − 10359 fi
+ − 10360
+ − 10361 if test -n "$athena_lib" -a -n "$athena_h_path"; then
+ − 10362 have_xaw=yes
+ − 10363 else
+ − 10364 have_xaw=no
+ − 10365 fi
424
+ − 10366
724
+ − 10367 else
+ − 10368 have_xaw=no
+ − 10369 fi
+ − 10370 if test "$with_x11" = "yes"; then
193
+ − 10371 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
151
+ − 10372 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
1261
+ − 10373 echo "configure:10375: checking for Xm/Xm.h" >&5
+ − 10374
+ − 10375 cat > conftest.$ac_ext <<EOF
+ − 10376 #line 10378 "configure"
151
+ − 10377 #include "confdefs.h"
+ − 10378 #include <Xm/Xm.h>
+ − 10379 EOF
+ − 10380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 10381 { (eval echo configure:10383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 10382 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
151
+ − 10383 if test -z "$ac_err"; then
+ − 10384 rm -rf conftest*
+ − 10385 eval "ac_cv_header_$ac_safe=yes"
+ − 10386 else
+ − 10387 echo "$ac_err" >&5
+ − 10388 echo "configure: failed program was:" >&5
+ − 10389 cat conftest.$ac_ext >&5
+ − 10390 rm -rf conftest*
+ − 10391 eval "ac_cv_header_$ac_safe=no"
+ − 10392 fi
+ − 10393 rm -f conftest*
+ − 10394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 10395 echo "$ac_t""yes" 1>&6
+ − 10396
+ − 10397 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
1261
+ − 10398 echo "configure:10400: checking for XmStringFree in -lXm" >&5
151
+ − 10399 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
+ − 10400
+ − 10401 xe_check_libs=" -lXm "
+ − 10402 cat > conftest.$ac_ext <<EOF
1261
+ − 10403 #line 10405 "configure"
151
+ − 10404 #include "confdefs.h"
+ − 10405 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10406 /* We use char because int might match the return type of a gcc2
+ − 10407 builtin and then its argument prototype would still apply. */
+ − 10408 char XmStringFree();
+ − 10409
+ − 10410 int main() {
+ − 10411 XmStringFree()
+ − 10412 ; return 0; }
+ − 10413 EOF
1261
+ − 10414 if { (eval echo configure:10416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
151
+ − 10415 rm -rf conftest*
+ − 10416 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10417 else
+ − 10418 echo "configure: failed program was:" >&5
+ − 10419 cat conftest.$ac_ext >&5
+ − 10420 rm -rf conftest*
+ − 10421 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10422 fi
+ − 10423 rm -f conftest*
+ − 10424 xe_check_libs=""
+ − 10425
+ − 10426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 10427 echo "$ac_t""yes" 1>&6
+ − 10428 have_motif=yes
+ − 10429 else
+ − 10430 echo "$ac_t""no" 1>&6
+ − 10431 have_motif=no
+ − 10432 fi
+ − 10433
+ − 10434
+ − 10435 else
+ − 10436 echo "$ac_t""no" 1>&6
+ − 10437 have_motif=no
+ − 10438 fi
+ − 10439
149
+ − 10440
272
+ − 10441 if test "$have_motif" = "yes"; then
+ − 10442 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
1261
+ − 10443 echo "configure:10445: checking for Lesstif" >&5
272
+ − 10444 cat > conftest.$ac_ext <<EOF
1261
+ − 10445 #line 10447 "configure"
272
+ − 10446 #include "confdefs.h"
+ − 10447 #include <Xm/Xm.h>
+ − 10448 #ifdef LESSTIF_VERSION
+ − 10449 yes
+ − 10450 #endif
+ − 10451
+ − 10452 EOF
+ − 10453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 10454 egrep "yes" >/dev/null 2>&1; then
+ − 10455 rm -rf conftest*
+ − 10456 have_lesstif=yes
+ − 10457 else
+ − 10458 rm -rf conftest*
+ − 10459 have_lesstif=no
+ − 10460 fi
+ − 10461 rm -f conftest*
+ − 10462
+ − 10463 echo "$ac_t""$have_lesstif" 1>&6
+ − 10464 fi
+ − 10465
193
+ − 10466 fi
149
+ − 10467
434
+ − 10468 case "$with_menubars" in "" | "yes" | "athena" )
149
+ − 10469 with_menubars="lucid" ;;
+ − 10470 esac
243
+ − 10471 case "$with_dialogs" in "" | "yes" | "lucid" )
434
+ − 10472 if test "$have_motif" = "yes"; then with_dialogs="motif"
+ − 10473 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
771
+ − 10474 elif test "$with_msw" = "yes"; then with_dialogs="msw"
149
+ − 10475 else with_dialogs=no
+ − 10476 fi ;;
+ − 10477 esac
+ − 10478 case "$with_scrollbars" in "" | "yes" )
+ − 10479 with_scrollbars="lucid" ;;
+ − 10480 esac
424
+ − 10481 case "$with_widgets" in "" | "yes" | "lucid")
420
+ − 10482 if test "$have_motif" = "yes"; then with_widgets="motif"
424
+ − 10483 elif test "$have_xaw" = "yes"; then with_widgets="athena"
771
+ − 10484 elif test "$with_msw" = "yes"; then with_widgets="msw"
420
+ − 10485 else with_widgets=no
+ − 10486 fi ;;
+ − 10487 esac
+ − 10488
+ − 10489 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
412
+ − 10490
424
+ − 10491 case "$all_widgets" in
434
+ − 10492 *athena* )
+ − 10493 if test "$have_xaw" != "yes"; then
+ − 10494 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
+ − 10495 fi
+ − 10496
+ − 10497 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
+ − 10498
+ − 10499 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
+ − 10500
442
+ − 10501 { test "$extra_verbose" = "yes" && cat << EOF
+ − 10502 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
+ − 10503 EOF
+ − 10504 cat >> confdefs.h <<EOF
+ − 10505 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
+ − 10506 EOF
+ − 10507 }
+ − 10508
+ − 10509 { test "$extra_verbose" = "yes" && cat << EOF
+ − 10510 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
+ − 10511 EOF
+ − 10512 cat >> confdefs.h <<EOF
+ − 10513 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
+ − 10514 EOF
+ − 10515 }
+ − 10516
+ − 10517 { test "$extra_verbose" = "yes" && cat << EOF
+ − 10518 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
+ − 10519 EOF
+ − 10520 cat >> confdefs.h <<EOF
+ − 10521 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
+ − 10522 EOF
+ − 10523 }
+ − 10524
+ − 10525 { test "$extra_verbose" = "yes" && cat << EOF
+ − 10526 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
+ − 10527 EOF
+ − 10528 cat >> confdefs.h <<EOF
+ − 10529 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
+ − 10530 EOF
+ − 10531 }
+ − 10532
+ − 10533 { test "$extra_verbose" = "yes" && cat << EOF
+ − 10534 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
+ − 10535 EOF
+ − 10536 cat >> confdefs.h <<EOF
+ − 10537 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
+ − 10538 EOF
+ − 10539 }
+ − 10540
+ − 10541 { test "$extra_verbose" = "yes" && cat << EOF
+ − 10542 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
+ − 10543 EOF
+ − 10544 cat >> confdefs.h <<EOF
+ − 10545 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
+ − 10546 EOF
+ − 10547 }
+ − 10548
+ − 10549 { test "$extra_verbose" = "yes" && cat << EOF
+ − 10550 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
+ − 10551 EOF
+ − 10552 cat >> confdefs.h <<EOF
+ − 10553 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
+ − 10554 EOF
+ − 10555 }
+ − 10556
+ − 10557 { test "$extra_verbose" = "yes" && cat << EOF
+ − 10558 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
+ − 10559 EOF
+ − 10560 cat >> confdefs.h <<EOF
+ − 10561 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
+ − 10562 EOF
+ − 10563 }
+ − 10564
+ − 10565 { test "$extra_verbose" = "yes" && cat << EOF
+ − 10566 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
+ − 10567 EOF
+ − 10568 cat >> confdefs.h <<EOF
+ − 10569 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
+ − 10570 EOF
+ − 10571 }
+ − 10572
+ − 10573 { test "$extra_verbose" = "yes" && cat << EOF
+ − 10574 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
+ − 10575 EOF
+ − 10576 cat >> confdefs.h <<EOF
+ − 10577 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
434
+ − 10578 EOF
+ − 10579 }
+ − 10580
+ − 10581
+ − 10582 { test "$extra_verbose" = "yes" && cat << \EOF
424
+ − 10583 Defining LWLIB_USES_ATHENA
+ − 10584 EOF
+ − 10585 cat >> confdefs.h <<\EOF
+ − 10586 #define LWLIB_USES_ATHENA 1
+ − 10587 EOF
+ − 10588 }
+ − 10589
434
+ − 10590 { test "$extra_verbose" = "yes" && cat << \EOF
424
+ − 10591 Defining NEED_ATHENA
+ − 10592 EOF
+ − 10593 cat >> confdefs.h <<\EOF
+ − 10594 #define NEED_ATHENA 1
+ − 10595 EOF
+ − 10596 }
+ − 10597
442
+ − 10598 need_athena="yes"
434
+ − 10599
+ − 10600 if test "$athena_3d" = "yes"; then
+ − 10601 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10602 Defining HAVE_ATHENA_3D
+ − 10603 EOF
+ − 10604 cat >> confdefs.h <<\EOF
+ − 10605 #define HAVE_ATHENA_3D 1
+ − 10606 EOF
+ − 10607 }
+ − 10608
+ − 10609 fi
+ − 10610 ;;
149
+ − 10611 esac
+ − 10612
+ − 10613 case "$all_widgets" in *motif* )
+ − 10614 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10615 Defining LWLIB_USES_MOTIF
+ − 10616 EOF
+ − 10617 cat >> confdefs.h <<\EOF
+ − 10618 #define LWLIB_USES_MOTIF 1
+ − 10619 EOF
+ − 10620 }
+ − 10621
157
+ − 10622 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10623 Defining NEED_MOTIF
+ − 10624 EOF
+ − 10625 cat >> confdefs.h <<\EOF
+ − 10626 #define NEED_MOTIF 1
+ − 10627 EOF
+ − 10628 }
+ − 10629
+ − 10630 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
149
+ − 10631 need_motif=yes ;;
70
+ − 10632 esac
+ − 10633
157
+ − 10634 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
219
+ − 10635 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
157
+ − 10636 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
424
+ − 10637 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
+ − 10638 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
+ − 10639 case "$with_widgets" in athena* )
+ − 10640 lwlib_objs="$lwlib_objs xlwradio.o xlwcheckbox.o xlwgauge.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwradio.o xlwcheckbox.o xlwgauge.o\" to \$lwlib_objs"; fi;;
+ − 10641 esac
157
+ − 10642 case "$all_widgets" in *lucid* )
+ − 10643 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10644 Defining NEED_LUCID
+ − 10645 EOF
+ − 10646 cat >> confdefs.h <<\EOF
+ − 10647 #define NEED_LUCID 1
+ − 10648 EOF
+ − 10649 }
+ − 10650
+ − 10651 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
+ − 10652 esac
+ − 10653
+ − 10654
+ − 10655
434
+ − 10656 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 10657 Defining LWLIB_SCROLLBARS_ATHENA
+ − 10658 EOF
+ − 10659 cat >> confdefs.h <<\EOF
+ − 10660 #define LWLIB_SCROLLBARS_ATHENA 1
+ − 10661 EOF
+ − 10662 }
434
+ − 10663
+ − 10664 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 10665 Defining LWLIB_DIALOGS_ATHENA
+ − 10666 EOF
+ − 10667 cat >> confdefs.h <<\EOF
+ − 10668 #define LWLIB_DIALOGS_ATHENA 1
+ − 10669 EOF
+ − 10670 }
434
+ − 10671
+ − 10672
+ − 10673 if test "$athena_3d" = "yes"; then
+ − 10674 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 10675 Defining LWLIB_SCROLLBARS_ATHENA3D
+ − 10676 EOF
+ − 10677 cat >> confdefs.h <<\EOF
+ − 10678 #define LWLIB_SCROLLBARS_ATHENA3D 1
+ − 10679 EOF
+ − 10680 }
+ − 10681
434
+ − 10682 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 10683 Defining LWLIB_DIALOGS_ATHENA3D
+ − 10684 EOF
+ − 10685 cat >> confdefs.h <<\EOF
+ − 10686 #define LWLIB_DIALOGS_ATHENA3D 1
+ − 10687 EOF
+ − 10688 }
+ − 10689
434
+ − 10690 fi
+ − 10691
424
+ − 10692 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10693 Defining LWLIB_WIDGETS_ATHENA
+ − 10694 EOF
+ − 10695 cat >> confdefs.h <<\EOF
+ − 10696 #define LWLIB_WIDGETS_ATHENA 1
+ − 10697 EOF
+ − 10698 }
+ − 10699 ;; esac
+ − 10700 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
+ − 10701 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10702 Defining LWLIB_TABS_LUCID
+ − 10703 EOF
+ − 10704 cat >> confdefs.h <<\EOF
+ − 10705 #define LWLIB_TABS_LUCID 1
+ − 10706 EOF
+ − 10707 }
+ − 10708
149
+ − 10709
+ − 10710 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10711 Defining HAVE_MENUBARS
+ − 10712 EOF
+ − 10713 cat >> confdefs.h <<\EOF
+ − 10714 #define HAVE_MENUBARS 1
+ − 10715 EOF
+ − 10716 }
+ − 10717
+ − 10718 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10719 Defining HAVE_SCROLLBARS
+ − 10720 EOF
+ − 10721 cat >> confdefs.h <<\EOF
+ − 10722 #define HAVE_SCROLLBARS 1
+ − 10723 EOF
+ − 10724 }
+ − 10725
+ − 10726 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10727 Defining HAVE_DIALOGS
+ − 10728 EOF
+ − 10729 cat >> confdefs.h <<\EOF
+ − 10730 #define HAVE_DIALOGS 1
+ − 10731 EOF
+ − 10732 }
+ − 10733
+ − 10734 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10735 Defining HAVE_TOOLBARS
+ − 10736 EOF
+ − 10737 cat >> confdefs.h <<\EOF
+ − 10738 #define HAVE_TOOLBARS 1
+ − 10739 EOF
+ − 10740 }
+ − 10741
440
+ − 10742 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
424
+ − 10743 Defining HAVE_WIDGETS
+ − 10744 EOF
+ − 10745 cat >> confdefs.h <<\EOF
+ − 10746 #define HAVE_WIDGETS 1
+ − 10747 EOF
+ − 10748 }
+ − 10749
149
+ − 10750
+ − 10751 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10752 Defining LWLIB_MENUBARS_LUCID
+ − 10753 EOF
+ − 10754 cat >> confdefs.h <<\EOF
+ − 10755 #define LWLIB_MENUBARS_LUCID 1
+ − 10756 EOF
+ − 10757 }
+ − 10758
+ − 10759 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10760 Defining LWLIB_SCROLLBARS_LUCID
+ − 10761 EOF
+ − 10762 cat >> confdefs.h <<\EOF
+ − 10763 #define LWLIB_SCROLLBARS_LUCID 1
+ − 10764 EOF
+ − 10765 }
+ − 10766
+ − 10767
+ − 10768 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10769 Defining LWLIB_MENUBARS_MOTIF
+ − 10770 EOF
+ − 10771 cat >> confdefs.h <<\EOF
+ − 10772 #define LWLIB_MENUBARS_MOTIF 1
+ − 10773 EOF
+ − 10774 }
+ − 10775
+ − 10776 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10777 Defining LWLIB_SCROLLBARS_MOTIF
+ − 10778 EOF
+ − 10779 cat >> confdefs.h <<\EOF
+ − 10780 #define LWLIB_SCROLLBARS_MOTIF 1
+ − 10781 EOF
+ − 10782 }
+ − 10783
+ − 10784 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10785 Defining LWLIB_DIALOGS_MOTIF
+ − 10786 EOF
+ − 10787 cat >> confdefs.h <<\EOF
+ − 10788 #define LWLIB_DIALOGS_MOTIF 1
+ − 10789 EOF
+ − 10790 }
+ − 10791
424
+ − 10792 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10793 Defining LWLIB_WIDGETS_MOTIF
+ − 10794 EOF
+ − 10795 cat >> confdefs.h <<\EOF
+ − 10796 #define LWLIB_WIDGETS_MOTIF 1
+ − 10797 EOF
+ − 10798 }
+ − 10799
412
+ − 10800
272
+ − 10801
+ − 10802 test -z "$with_mule" && with_mule=no
561
+ − 10803
+ − 10804
771
+ − 10805 if test "$with_default_eol_detection" = "yes"; then
251
+ − 10806 { test "$extra_verbose" = "yes" && cat << \EOF
771
+ − 10807 Defining HAVE_DEFAULT_EOL_DETECTION
+ − 10808 EOF
+ − 10809 cat >> confdefs.h <<\EOF
+ − 10810 #define HAVE_DEFAULT_EOL_DETECTION 1
+ − 10811 EOF
+ − 10812 }
+ − 10813
+ − 10814 fi
594
+ − 10815
149
+ − 10816 if test "$with_mule" = "yes" ; then
151
+ − 10817 echo "checking for Mule-related features" 1>&6
1261
+ − 10818 echo "configure:10820: checking for Mule-related features" >&5
149
+ − 10819 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10820 Defining MULE
+ − 10821 EOF
+ − 10822 cat >> confdefs.h <<\EOF
+ − 10823 #define MULE 1
+ − 10824 EOF
+ − 10825 }
+ − 10826
+ − 10827
155
+ − 10828 for ac_hdr in libintl.h
+ − 10829 do
+ − 10830 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 10831 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1261
+ − 10832 echo "configure:10834: checking for $ac_hdr" >&5
+ − 10833
+ − 10834 cat > conftest.$ac_ext <<EOF
+ − 10835 #line 10837 "configure"
155
+ − 10836 #include "confdefs.h"
+ − 10837 #include <$ac_hdr>
+ − 10838 EOF
+ − 10839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 10840 { (eval echo configure:10842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 10841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
155
+ − 10842 if test -z "$ac_err"; then
+ − 10843 rm -rf conftest*
+ − 10844 eval "ac_cv_header_$ac_safe=yes"
+ − 10845 else
+ − 10846 echo "$ac_err" >&5
+ − 10847 echo "configure: failed program was:" >&5
+ − 10848 cat conftest.$ac_ext >&5
+ − 10849 rm -rf conftest*
+ − 10850 eval "ac_cv_header_$ac_safe=no"
+ − 10851 fi
+ − 10852 rm -f conftest*
+ − 10853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 10854 echo "$ac_t""yes" 1>&6
+ − 10855 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 10856 { test "$extra_verbose" = "yes" && cat << EOF
+ − 10857 Defining $ac_tr_hdr
+ − 10858 EOF
+ − 10859 cat >> confdefs.h <<EOF
+ − 10860 #define $ac_tr_hdr 1
+ − 10861 EOF
+ − 10862 }
+ − 10863
+ − 10864 else
+ − 10865 echo "$ac_t""no" 1>&6
+ − 10866 fi
+ − 10867 done
+ − 10868
+ − 10869
149
+ − 10870 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
1261
+ − 10871 echo "configure:10873: checking for strerror in -lintl" >&5
149
+ − 10872 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
+ − 10873
+ − 10874 xe_check_libs=" -lintl "
+ − 10875 cat > conftest.$ac_ext <<EOF
1261
+ − 10876 #line 10878 "configure"
149
+ − 10877 #include "confdefs.h"
+ − 10878 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10879 /* We use char because int might match the return type of a gcc2
+ − 10880 builtin and then its argument prototype would still apply. */
+ − 10881 char strerror();
+ − 10882
+ − 10883 int main() {
+ − 10884 strerror()
+ − 10885 ; return 0; }
+ − 10886 EOF
1261
+ − 10887 if { (eval echo configure:10889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 10888 rm -rf conftest*
+ − 10889 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10890 else
+ − 10891 echo "configure: failed program was:" >&5
+ − 10892 cat conftest.$ac_ext >&5
+ − 10893 rm -rf conftest*
+ − 10894 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10895 fi
+ − 10896 rm -f conftest*
+ − 10897 xe_check_libs=""
+ − 10898
151
+ − 10899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 10900 echo "$ac_t""yes" 1>&6
+ − 10901 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ − 10902 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ − 10903 { test "$extra_verbose" = "yes" && cat << EOF
+ − 10904 Defining $ac_tr_lib
+ − 10905 EOF
+ − 10906 cat >> confdefs.h <<EOF
+ − 10907 #define $ac_tr_lib 1
+ − 10908 EOF
+ − 10909 }
+ − 10910
151
+ − 10911 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
149
+ − 10912
+ − 10913 else
+ − 10914 echo "$ac_t""no" 1>&6
+ − 10915 fi
+ − 10916
+ − 10917
+ − 10918
+ − 10919 echo "checking for Mule input methods" 1>&6
1261
+ − 10920 echo "configure:10922: checking for Mule input methods" >&5
272
+ − 10921 case "$with_xim" in "" | "yes" )
149
+ − 10922 echo "checking for XIM" 1>&6
1261
+ − 10923 echo "configure:10925: checking for XIM" >&5
392
+ − 10924
+ − 10925 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
1261
+ − 10926 echo "configure:10928: checking for XOpenIM in -lX11" >&5
392
+ − 10927 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
+ − 10928
+ − 10929 xe_check_libs=" -lX11 "
+ − 10930 cat > conftest.$ac_ext <<EOF
1261
+ − 10931 #line 10933 "configure"
392
+ − 10932 #include "confdefs.h"
+ − 10933 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10934 /* We use char because int might match the return type of a gcc2
+ − 10935 builtin and then its argument prototype would still apply. */
+ − 10936 char XOpenIM();
+ − 10937
+ − 10938 int main() {
+ − 10939 XOpenIM()
+ − 10940 ; return 0; }
+ − 10941 EOF
1261
+ − 10942 if { (eval echo configure:10944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
392
+ − 10943 rm -rf conftest*
+ − 10944 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10945 else
+ − 10946 echo "configure: failed program was:" >&5
+ − 10947 cat conftest.$ac_ext >&5
+ − 10948 rm -rf conftest*
+ − 10949 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10950 fi
+ − 10951 rm -f conftest*
+ − 10952 xe_check_libs=""
+ − 10953
+ − 10954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 10955 echo "$ac_t""yes" 1>&6
+ − 10956 with_xim=xlib
+ − 10957 else
+ − 10958 echo "$ac_t""no" 1>&6
+ − 10959 with_xim=no
+ − 10960 fi
+ − 10961
+ − 10962
+ − 10963 if test "$have_motif $have_lesstif" = "yes no"; then
+ − 10964
149
+ − 10965 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
1261
+ − 10966 echo "configure:10968: checking for XmImMbLookupString in -lXm" >&5
149
+ − 10967 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
+ − 10968
+ − 10969 xe_check_libs=" -lXm "
+ − 10970 cat > conftest.$ac_ext <<EOF
1261
+ − 10971 #line 10973 "configure"
149
+ − 10972 #include "confdefs.h"
+ − 10973 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10974 /* We use char because int might match the return type of a gcc2
+ − 10975 builtin and then its argument prototype would still apply. */
+ − 10976 char XmImMbLookupString();
+ − 10977
+ − 10978 int main() {
+ − 10979 XmImMbLookupString()
+ − 10980 ; return 0; }
+ − 10981 EOF
1261
+ − 10982 if { (eval echo configure:10984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 10983 rm -rf conftest*
+ − 10984 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10985 else
+ − 10986 echo "configure: failed program was:" >&5
+ − 10987 cat conftest.$ac_ext >&5
+ − 10988 rm -rf conftest*
+ − 10989 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10990 fi
+ − 10991 rm -f conftest*
+ − 10992 xe_check_libs=""
+ − 10993
151
+ − 10994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 10995 echo "$ac_t""yes" 1>&6
+ − 10996 with_xim=motif
+ − 10997 else
+ − 10998 echo "$ac_t""no" 1>&6
392
+ − 10999 fi
+ − 11000
+ − 11001
+ − 11002 fi ;;
149
+ − 11003 esac
272
+ − 11004 if test "$with_xim" != "no"; then
149
+ − 11005 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 11006 Defining HAVE_XIM
+ − 11007 EOF
+ − 11008 cat >> confdefs.h <<\EOF
+ − 11009 #define HAVE_XIM 1
+ − 11010 EOF
+ − 11011 }
+ − 11012
+ − 11013 if test "$with_xim" = "xlib"; then
+ − 11014 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 11015 Defining XIM_XLIB
+ − 11016 EOF
+ − 11017 cat >> confdefs.h <<\EOF
+ − 11018 #define XIM_XLIB 1
+ − 11019 EOF
+ − 11020 }
+ − 11021
151
+ − 11022 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
+ − 11023 echo " xemacs will be linked with \"input-method-xlib.o\""
+ − 11024 fi
+ − 11025 fi
149
+ − 11026 if test "$with_xim" = "motif"; then
+ − 11027 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 11028 Defining XIM_MOTIF
+ − 11029 EOF
+ − 11030 cat >> confdefs.h <<\EOF
+ − 11031 #define XIM_MOTIF 1
+ − 11032 EOF
+ − 11033 }
+ − 11034
+ − 11035 need_motif=yes
151
+ − 11036 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
+ − 11037 echo " xemacs will be linked with \"input-method-motif.o\""
+ − 11038 fi
149
+ − 11039 fi
215
+ − 11040 if test "$with_xim" = "motif"; then
177
+ − 11041 with_xfs=no
+ − 11042 fi
215
+ − 11043 fi
+ − 11044
+ − 11045 if test "$with_xfs" = "yes" ; then
+ − 11046 echo "checking for XFontSet" 1>&6
1261
+ − 11047 echo "configure:11049: checking for XFontSet" >&5
215
+ − 11048
177
+ − 11049 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
1261
+ − 11050 echo "configure:11052: checking for XmbDrawString in -lX11" >&5
177
+ − 11051 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
+ − 11052
+ − 11053 xe_check_libs=" -lX11 "
+ − 11054 cat > conftest.$ac_ext <<EOF
1261
+ − 11055 #line 11057 "configure"
177
+ − 11056 #include "confdefs.h"
+ − 11057 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11058 /* We use char because int might match the return type of a gcc2
+ − 11059 builtin and then its argument prototype would still apply. */
+ − 11060 char XmbDrawString();
+ − 11061
+ − 11062 int main() {
+ − 11063 XmbDrawString()
+ − 11064 ; return 0; }
+ − 11065 EOF
1261
+ − 11066 if { (eval echo configure:11068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
177
+ − 11067 rm -rf conftest*
+ − 11068 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 11069 else
+ − 11070 echo "configure: failed program was:" >&5
+ − 11071 cat conftest.$ac_ext >&5
+ − 11072 rm -rf conftest*
+ − 11073 eval "ac_cv_lib_$ac_lib_var=no"
+ − 11074 fi
+ − 11075 rm -f conftest*
+ − 11076 xe_check_libs=""
+ − 11077
+ − 11078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 11079 echo "$ac_t""yes" 1>&6
+ − 11080 :
+ − 11081 else
+ − 11082 echo "$ac_t""no" 1>&6
+ − 11083 with_xfs=no
+ − 11084 fi
+ − 11085
+ − 11086
+ − 11087 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
+ − 11088 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 11089 Defining USE_XFONTSET
+ − 11090 EOF
+ − 11091 cat >> confdefs.h <<\EOF
+ − 11092 #define USE_XFONTSET 1
+ − 11093 EOF
+ − 11094 }
+ − 11095
215
+ − 11096 if test "$with_xim" = "no" ; then
450
+ − 11097 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
+ − 11098 echo " xemacs will be linked with \"input-method-xlib.o\""
177
+ − 11099 fi
215
+ − 11100 fi
177
+ − 11101 fi
151
+ − 11102 fi
149
+ − 11103 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
151
+ − 11104 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
+ − 11105 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
1261
+ − 11106 echo "configure:11108: checking for wnn/jllib.h" >&5
+ − 11107
+ − 11108 cat > conftest.$ac_ext <<EOF
+ − 11109 #line 11111 "configure"
151
+ − 11110 #include "confdefs.h"
+ − 11111 #include <wnn/jllib.h>
149
+ − 11112 EOF
+ − 11113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 11114 { (eval echo configure:11116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
458
+ − 11115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 11116 if test -z "$ac_err"; then
+ − 11117 rm -rf conftest*
+ − 11118 eval "ac_cv_header_$ac_safe=yes"
+ − 11119 else
+ − 11120 echo "$ac_err" >&5
+ − 11121 echo "configure: failed program was:" >&5
+ − 11122 cat conftest.$ac_ext >&5
+ − 11123 rm -rf conftest*
+ − 11124 eval "ac_cv_header_$ac_safe=no"
+ − 11125 fi
+ − 11126 rm -f conftest*
+ − 11127 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 11128 echo "$ac_t""yes" 1>&6
+ − 11129 :
+ − 11130 else
+ − 11131 echo "$ac_t""no" 1>&6
+ − 11132 with_wnn=no
+ − 11133 fi
+ − 11134 }
+ − 11135 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
+ − 11136 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
1261
+ − 11137 echo "configure:11139: checking for wnn/commonhd.h" >&5
+ − 11138
+ − 11139 cat > conftest.$ac_ext <<EOF
+ − 11140 #line 11142 "configure"
458
+ − 11141 #include "confdefs.h"
+ − 11142 #include <wnn/commonhd.h>
+ − 11143 EOF
+ − 11144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 11145 { (eval echo configure:11147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 11146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 11147 if test -z "$ac_err"; then
+ − 11148 rm -rf conftest*
+ − 11149 eval "ac_cv_header_$ac_safe=yes"
+ − 11150 else
+ − 11151 echo "$ac_err" >&5
+ − 11152 echo "configure: failed program was:" >&5
+ − 11153 cat conftest.$ac_ext >&5
+ − 11154 rm -rf conftest*
+ − 11155 eval "ac_cv_header_$ac_safe=no"
+ − 11156 fi
+ − 11157 rm -f conftest*
+ − 11158 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 11159 echo "$ac_t""yes" 1>&6
+ − 11160 :
+ − 11161 else
+ − 11162 echo "$ac_t""no" 1>&6
+ − 11163 with_wnn=no
+ − 11164 fi
+ − 11165 }
167
+ − 11166 if test "$with_wnn" != "no"; then
+ − 11167 for ac_func in crypt
+ − 11168 do
+ − 11169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1261
+ − 11170 echo "configure:11172: checking for $ac_func" >&5
+ − 11171
+ − 11172 cat > conftest.$ac_ext <<EOF
+ − 11173 #line 11175 "configure"
167
+ − 11174 #include "confdefs.h"
+ − 11175 /* System header to define __stub macros and hopefully few prototypes,
+ − 11176 which can conflict with char $ac_func(); below. */
+ − 11177 #include <assert.h>
+ − 11178 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11179 /* We use char because int might match the return type of a gcc2
+ − 11180 builtin and then its argument prototype would still apply. */
+ − 11181 char $ac_func();
+ − 11182
+ − 11183 int main() {
+ − 11184
+ − 11185 /* The GNU C library defines this for functions which it implements
+ − 11186 to always fail with ENOSYS. Some functions are actually named
+ − 11187 something starting with __ and the normal name is an alias. */
+ − 11188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 11189 choke me
+ − 11190 #else
+ − 11191 $ac_func();
+ − 11192 #endif
+ − 11193
+ − 11194 ; return 0; }
+ − 11195 EOF
1261
+ − 11196 if { (eval echo configure:11198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
167
+ − 11197 rm -rf conftest*
+ − 11198 eval "ac_cv_func_$ac_func=yes"
+ − 11199 else
+ − 11200 echo "configure: failed program was:" >&5
+ − 11201 cat conftest.$ac_ext >&5
+ − 11202 rm -rf conftest*
+ − 11203 eval "ac_cv_func_$ac_func=no"
+ − 11204 fi
+ − 11205 rm -f conftest*
+ − 11206
+ − 11207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 11208 echo "$ac_t""yes" 1>&6
+ − 11209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 11210 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11211 Defining $ac_tr_func
+ − 11212 EOF
+ − 11213 cat >> confdefs.h <<EOF
+ − 11214 #define $ac_tr_func 1
+ − 11215 EOF
+ − 11216 }
+ − 11217
+ − 11218 else
+ − 11219 echo "$ac_t""no" 1>&6
+ − 11220 fi
+ − 11221 done
+ − 11222
+ − 11223 test "$ac_cv_func_crypt" != "yes" && {
+ − 11224 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1261
+ − 11225 echo "configure:11227: checking for crypt in -lcrypt" >&5
167
+ − 11226 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
+ − 11227
+ − 11228 xe_check_libs=" -lcrypt "
+ − 11229 cat > conftest.$ac_ext <<EOF
1261
+ − 11230 #line 11232 "configure"
167
+ − 11231 #include "confdefs.h"
+ − 11232 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11233 /* We use char because int might match the return type of a gcc2
+ − 11234 builtin and then its argument prototype would still apply. */
+ − 11235 char crypt();
+ − 11236
+ − 11237 int main() {
+ − 11238 crypt()
+ − 11239 ; return 0; }
+ − 11240 EOF
1261
+ − 11241 if { (eval echo configure:11243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
167
+ − 11242 rm -rf conftest*
+ − 11243 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 11244 else
+ − 11245 echo "configure: failed program was:" >&5
+ − 11246 cat conftest.$ac_ext >&5
+ − 11247 rm -rf conftest*
+ − 11248 eval "ac_cv_lib_$ac_lib_var=no"
+ − 11249 fi
+ − 11250 rm -f conftest*
+ − 11251 xe_check_libs=""
+ − 11252
+ − 11253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 11254 echo "$ac_t""yes" 1>&6
+ − 11255 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ − 11256 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ − 11257 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11258 Defining $ac_tr_lib
+ − 11259 EOF
+ − 11260 cat >> confdefs.h <<EOF
+ − 11261 #define $ac_tr_lib 1
+ − 11262 EOF
+ − 11263 }
+ − 11264
+ − 11265 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
+ − 11266
+ − 11267 else
+ − 11268 echo "$ac_t""no" 1>&6
+ − 11269 fi
+ − 11270
+ − 11271 }
+ − 11272 fi
377
+ − 11273 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
+ − 11274
159
+ − 11275 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
1261
+ − 11276 echo "configure:11278: checking for jl_dic_list_e in -lwnn" >&5
155
+ − 11277 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
149
+ − 11278
159
+ − 11279 xe_check_libs=" -lwnn "
+ − 11280 cat > conftest.$ac_ext <<EOF
1261
+ − 11281 #line 11283 "configure"
149
+ − 11282 #include "confdefs.h"
+ − 11283 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11284 /* We use char because int might match the return type of a gcc2
+ − 11285 builtin and then its argument prototype would still apply. */
155
+ − 11286 char jl_dic_list_e();
149
+ − 11287
+ − 11288 int main() {
155
+ − 11289 jl_dic_list_e()
149
+ − 11290 ; return 0; }
+ − 11291 EOF
1261
+ − 11292 if { (eval echo configure:11294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
377
+ − 11293 rm -rf conftest*
+ − 11294 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 11295 else
+ − 11296 echo "configure: failed program was:" >&5
+ − 11297 cat conftest.$ac_ext >&5
+ − 11298 rm -rf conftest*
+ − 11299 eval "ac_cv_lib_$ac_lib_var=no"
+ − 11300 fi
+ − 11301 rm -f conftest*
+ − 11302 xe_check_libs=""
+ − 11303
+ − 11304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 11305 echo "$ac_t""yes" 1>&6
+ − 11306 libwnn=wnn
+ − 11307 else
+ − 11308 echo "$ac_t""no" 1>&6
+ − 11309 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
1261
+ − 11310 echo "configure:11312: checking for jl_dic_list_e in -lwnn4" >&5
377
+ − 11311 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
+ − 11312
+ − 11313 xe_check_libs=" -lwnn4 "
+ − 11314 cat > conftest.$ac_ext <<EOF
1261
+ − 11315 #line 11317 "configure"
377
+ − 11316 #include "confdefs.h"
+ − 11317 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11318 /* We use char because int might match the return type of a gcc2
+ − 11319 builtin and then its argument prototype would still apply. */
+ − 11320 char jl_dic_list_e();
+ − 11321
+ − 11322 int main() {
+ − 11323 jl_dic_list_e()
+ − 11324 ; return 0; }
+ − 11325 EOF
1261
+ − 11326 if { (eval echo configure:11328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 11327 rm -rf conftest*
+ − 11328 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 11329 else
+ − 11330 echo "configure: failed program was:" >&5
+ − 11331 cat conftest.$ac_ext >&5
+ − 11332 rm -rf conftest*
+ − 11333 eval "ac_cv_lib_$ac_lib_var=no"
+ − 11334 fi
+ − 11335 rm -f conftest*
+ − 11336 xe_check_libs=""
+ − 11337
151
+ − 11338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 11339 echo "$ac_t""yes" 1>&6
377
+ − 11340 libwnn=wnn4
+ − 11341 else
+ − 11342 echo "$ac_t""no" 1>&6
+ − 11343 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
1261
+ − 11344 echo "configure:11346: checking for jl_dic_list_e in -lwnn6" >&5
377
+ − 11345 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
+ − 11346
+ − 11347 xe_check_libs=" -lwnn6 "
+ − 11348 cat > conftest.$ac_ext <<EOF
1261
+ − 11349 #line 11351 "configure"
377
+ − 11350 #include "confdefs.h"
+ − 11351 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11352 /* We use char because int might match the return type of a gcc2
+ − 11353 builtin and then its argument prototype would still apply. */
+ − 11354 char jl_dic_list_e();
+ − 11355
+ − 11356 int main() {
+ − 11357 jl_dic_list_e()
+ − 11358 ; return 0; }
+ − 11359 EOF
1261
+ − 11360 if { (eval echo configure:11362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
377
+ − 11361 rm -rf conftest*
+ − 11362 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 11363 else
+ − 11364 echo "configure: failed program was:" >&5
+ − 11365 cat conftest.$ac_ext >&5
+ − 11366 rm -rf conftest*
+ − 11367 eval "ac_cv_lib_$ac_lib_var=no"
+ − 11368 fi
+ − 11369 rm -f conftest*
+ − 11370 xe_check_libs=""
+ − 11371
+ − 11372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 11373 echo "$ac_t""yes" 1>&6
+ − 11374 libwnn=wnn6
+ − 11375 else
+ − 11376 echo "$ac_t""no" 1>&6
+ − 11377 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
1261
+ − 11378 echo "configure:11380: checking for dic_list_e in -lwnn6_fromsrc" >&5
377
+ − 11379 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
+ − 11380
+ − 11381 xe_check_libs=" -lwnn6_fromsrc "
+ − 11382 cat > conftest.$ac_ext <<EOF
1261
+ − 11383 #line 11385 "configure"
377
+ − 11384 #include "confdefs.h"
+ − 11385 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11386 /* We use char because int might match the return type of a gcc2
+ − 11387 builtin and then its argument prototype would still apply. */
+ − 11388 char dic_list_e();
+ − 11389
+ − 11390 int main() {
+ − 11391 dic_list_e()
+ − 11392 ; return 0; }
+ − 11393 EOF
1261
+ − 11394 if { (eval echo configure:11396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
377
+ − 11395 rm -rf conftest*
+ − 11396 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 11397 else
+ − 11398 echo "configure: failed program was:" >&5
+ − 11399 cat conftest.$ac_ext >&5
+ − 11400 rm -rf conftest*
+ − 11401 eval "ac_cv_lib_$ac_lib_var=no"
+ − 11402 fi
+ − 11403 rm -f conftest*
+ − 11404 xe_check_libs=""
+ − 11405
+ − 11406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 11407 echo "$ac_t""yes" 1>&6
+ − 11408 libwnn=wnn6_fromsrc
159
+ − 11409 else
+ − 11410 echo "$ac_t""no" 1>&6
+ − 11411 with_wnn=no
149
+ − 11412 fi
+ − 11413
377
+ − 11414
+ − 11415 fi
+ − 11416
+ − 11417
+ − 11418 fi
+ − 11419
+ − 11420
+ − 11421 fi
+ − 11422
+ − 11423
+ − 11424 fi
149
+ − 11425 test -z "$with_wnn" && with_wnn=yes
+ − 11426 if test "$with_wnn" = "yes"; then
+ − 11427 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 11428 Defining HAVE_WNN
+ − 11429 EOF
+ − 11430 cat >> confdefs.h <<\EOF
+ − 11431 #define HAVE_WNN 1
+ − 11432 EOF
+ − 11433 }
+ − 11434
377
+ − 11435 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
284
+ − 11436 if test "$with_wnn6" != "no"; then
+ − 11437
377
+ − 11438 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
1261
+ − 11439 echo "configure:11441: checking for jl_fi_dic_list in -l$libwnn" >&5
377
+ − 11440 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
+ − 11441
+ − 11442 xe_check_libs=" -l$libwnn "
+ − 11443 cat > conftest.$ac_ext <<EOF
1261
+ − 11444 #line 11446 "configure"
149
+ − 11445 #include "confdefs.h"
+ − 11446 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11447 /* We use char because int might match the return type of a gcc2
+ − 11448 builtin and then its argument prototype would still apply. */
+ − 11449 char jl_fi_dic_list();
+ − 11450
+ − 11451 int main() {
+ − 11452 jl_fi_dic_list()
+ − 11453 ; return 0; }
+ − 11454 EOF
1261
+ − 11455 if { (eval echo configure:11457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 11456 rm -rf conftest*
+ − 11457 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 11458 else
+ − 11459 echo "configure: failed program was:" >&5
+ − 11460 cat conftest.$ac_ext >&5
+ − 11461 rm -rf conftest*
+ − 11462 eval "ac_cv_lib_$ac_lib_var=no"
+ − 11463 fi
+ − 11464 rm -f conftest*
+ − 11465 xe_check_libs=""
+ − 11466
151
+ − 11467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 11468 echo "$ac_t""yes" 1>&6
+ − 11469 with_wnn6=yes
+ − 11470 else
+ − 11471 echo "$ac_t""no" 1>&6
+ − 11472 fi
+ − 11473
+ − 11474
284
+ − 11475 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
151
+ − 11476 Defining WNN6
+ − 11477 EOF
+ − 11478 cat >> confdefs.h <<\EOF
+ − 11479 #define WNN6 1
+ − 11480 EOF
+ − 11481 }
+ − 11482
284
+ − 11483 fi
151
+ − 11484 fi
149
+ − 11485
267
+ − 11486 canna_includes_found=no
+ − 11487 if test "$with_canna" != "no"; then
+ − 11488 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
+ − 11489 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
1261
+ − 11490 echo "configure:11492: checking for canna/jrkanji.h" >&5
+ − 11491
+ − 11492 cat > conftest.$ac_ext <<EOF
+ − 11493 #line 11495 "configure"
267
+ − 11494 #include "confdefs.h"
+ − 11495 #include <canna/jrkanji.h>
+ − 11496 EOF
+ − 11497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 11498 { (eval echo configure:11500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 11499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
267
+ − 11500 if test -z "$ac_err"; then
+ − 11501 rm -rf conftest*
+ − 11502 eval "ac_cv_header_$ac_safe=yes"
+ − 11503 else
+ − 11504 echo "$ac_err" >&5
+ − 11505 echo "configure: failed program was:" >&5
+ − 11506 cat conftest.$ac_ext >&5
+ − 11507 rm -rf conftest*
+ − 11508 eval "ac_cv_header_$ac_safe=no"
+ − 11509 fi
+ − 11510 rm -f conftest*
+ − 11511 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 11512 echo "$ac_t""yes" 1>&6
+ − 11513 canna_includes_found=yes
+ − 11514 else
+ − 11515 echo "$ac_t""no" 1>&6
+ − 11516 fi
+ − 11517
+ − 11518 fi
+ − 11519 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
+ − 11520 -d "/usr/local/canna/include"; then
+ − 11521 save_c_switch_site="$c_switch_site"
+ − 11522 c_switch_site="$c_switch_site -I/usr/local/canna/include"
+ − 11523 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
+ − 11524 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
1261
+ − 11525 echo "configure:11527: checking for canna/jrkanji.h" >&5
+ − 11526
+ − 11527 cat > conftest.$ac_ext <<EOF
+ − 11528 #line 11530 "configure"
267
+ − 11529 #include "confdefs.h"
+ − 11530 #include <canna/jrkanji.h>
+ − 11531 EOF
+ − 11532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 11533 { (eval echo configure:11535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 11534 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
267
+ − 11535 if test -z "$ac_err"; then
+ − 11536 rm -rf conftest*
+ − 11537 eval "ac_cv_header_$ac_safe=yes"
+ − 11538 else
+ − 11539 echo "$ac_err" >&5
+ − 11540 echo "configure: failed program was:" >&5
+ − 11541 cat conftest.$ac_ext >&5
+ − 11542 rm -rf conftest*
+ − 11543 eval "ac_cv_header_$ac_safe=no"
+ − 11544 fi
+ − 11545 rm -f conftest*
+ − 11546 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 11547 echo "$ac_t""yes" 1>&6
+ − 11548 canna_includes_found=yes
+ − 11549 else
+ − 11550 echo "$ac_t""no" 1>&6
+ − 11551 fi
+ − 11552
+ − 11553 if test "$canna_includes_found" != "yes"; then
+ − 11554 c_switch_site="$save_c_switch_site"
+ − 11555 with_canna="no"
+ − 11556 fi
+ − 11557 fi
+ − 11558
+ − 11559 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
149
+ − 11560 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
1261
+ − 11561 echo "configure:11563: checking for canna/RK.h" >&5
+ − 11562
+ − 11563 cat > conftest.$ac_ext <<EOF
+ − 11564 #line 11566 "configure"
149
+ − 11565 #include "confdefs.h"
+ − 11566 #include <canna/RK.h>
+ − 11567 EOF
+ − 11568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 11569 { (eval echo configure:11571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 11570 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 11571 if test -z "$ac_err"; then
+ − 11572 rm -rf conftest*
+ − 11573 eval "ac_cv_header_$ac_safe=yes"
+ − 11574 else
+ − 11575 echo "$ac_err" >&5
+ − 11576 echo "configure: failed program was:" >&5
+ − 11577 cat conftest.$ac_ext >&5
+ − 11578 rm -rf conftest*
+ − 11579 eval "ac_cv_header_$ac_safe=no"
+ − 11580 fi
+ − 11581 rm -f conftest*
+ − 11582 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 11583 echo "$ac_t""yes" 1>&6
+ − 11584 :
+ − 11585 else
+ − 11586 echo "$ac_t""no" 1>&6
+ − 11587 with_canna=no
+ − 11588 fi
+ − 11589 }
+ − 11590 test -z "$with_canna" && {
+ − 11591 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
1261
+ − 11592 echo "configure:11594: checking for RkBgnBun in -lRKC" >&5
149
+ − 11593 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
+ − 11594
+ − 11595 xe_check_libs=" -lRKC "
+ − 11596 cat > conftest.$ac_ext <<EOF
1261
+ − 11597 #line 11599 "configure"
149
+ − 11598 #include "confdefs.h"
+ − 11599 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11600 /* We use char because int might match the return type of a gcc2
+ − 11601 builtin and then its argument prototype would still apply. */
+ − 11602 char RkBgnBun();
+ − 11603
+ − 11604 int main() {
+ − 11605 RkBgnBun()
+ − 11606 ; return 0; }
+ − 11607 EOF
1261
+ − 11608 if { (eval echo configure:11610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 11609 rm -rf conftest*
+ − 11610 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 11611 else
+ − 11612 echo "configure: failed program was:" >&5
+ − 11613 cat conftest.$ac_ext >&5
+ − 11614 rm -rf conftest*
+ − 11615 eval "ac_cv_lib_$ac_lib_var=no"
+ − 11616 fi
+ − 11617 rm -f conftest*
+ − 11618 xe_check_libs=""
+ − 11619
151
+ − 11620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 11621 echo "$ac_t""yes" 1>&6
+ − 11622 :
+ − 11623 else
+ − 11624 echo "$ac_t""no" 1>&6
+ − 11625 with_canna=no
+ − 11626 fi
+ − 11627
+ − 11628 }
+ − 11629 test -z "$with_canna" && {
+ − 11630 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
1261
+ − 11631 echo "configure:11633: checking for jrKanjiControl in -lcanna" >&5
149
+ − 11632 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
+ − 11633
+ − 11634 xe_check_libs=" -lcanna "
+ − 11635 cat > conftest.$ac_ext <<EOF
1261
+ − 11636 #line 11638 "configure"
149
+ − 11637 #include "confdefs.h"
+ − 11638 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11639 /* We use char because int might match the return type of a gcc2
+ − 11640 builtin and then its argument prototype would still apply. */
+ − 11641 char jrKanjiControl();
+ − 11642
+ − 11643 int main() {
+ − 11644 jrKanjiControl()
+ − 11645 ; return 0; }
+ − 11646 EOF
1261
+ − 11647 if { (eval echo configure:11649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 11648 rm -rf conftest*
+ − 11649 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 11650 else
+ − 11651 echo "configure: failed program was:" >&5
+ − 11652 cat conftest.$ac_ext >&5
+ − 11653 rm -rf conftest*
+ − 11654 eval "ac_cv_lib_$ac_lib_var=no"
+ − 11655 fi
+ − 11656 rm -f conftest*
+ − 11657 xe_check_libs=""
+ − 11658
151
+ − 11659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 11660 echo "$ac_t""yes" 1>&6
+ − 11661 :
+ − 11662 else
+ − 11663 echo "$ac_t""no" 1>&6
+ − 11664 with_canna=no
+ − 11665 fi
+ − 11666
+ − 11667 }
+ − 11668 test -z "$with_canna" && with_canna=yes
+ − 11669 if test "$with_canna" = "yes"; then
+ − 11670 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 11671 Defining HAVE_CANNA
+ − 11672 EOF
+ − 11673 cat >> confdefs.h <<\EOF
+ − 11674 #define HAVE_CANNA 1
+ − 11675 EOF
+ − 11676 }
+ − 11677
151
+ − 11678 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
+ − 11679 fi
155
+ − 11680
151
+ − 11681 else for feature in xim canna wnn; do
149
+ − 11682 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
561
+ − 11683 echo "configure: warning: --with-${feature} ignored: Not valid without Mule support" 1>&2
149
+ − 11684 fi
+ − 11685 eval "with_${feature}=no"
+ − 11686 done
151
+ − 11687 fi
+ − 11688
+ − 11689 if test "$need_motif" = "yes" ; then
+ − 11690 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
207
+ − 11691
+ − 11692 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
1261
+ − 11693 echo "configure:11695: checking for layout_object_getvalue in -li18n" >&5
207
+ − 11694 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
+ − 11695
+ − 11696 xe_check_libs=" -li18n "
+ − 11697 cat > conftest.$ac_ext <<EOF
1261
+ − 11698 #line 11700 "configure"
207
+ − 11699 #include "confdefs.h"
+ − 11700 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11701 /* We use char because int might match the return type of a gcc2
+ − 11702 builtin and then its argument prototype would still apply. */
+ − 11703 char layout_object_getvalue();
+ − 11704
+ − 11705 int main() {
+ − 11706 layout_object_getvalue()
+ − 11707 ; return 0; }
+ − 11708 EOF
1261
+ − 11709 if { (eval echo configure:11711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
207
+ − 11710 rm -rf conftest*
+ − 11711 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 11712 else
+ − 11713 echo "configure: failed program was:" >&5
+ − 11714 cat conftest.$ac_ext >&5
+ − 11715 rm -rf conftest*
+ − 11716 eval "ac_cv_lib_$ac_lib_var=no"
+ − 11717 fi
+ − 11718 rm -f conftest*
+ − 11719 xe_check_libs=""
+ − 11720
+ − 11721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 11722 echo "$ac_t""yes" 1>&6
+ − 11723 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
+ − 11724 else
+ − 11725 echo "$ac_t""no" 1>&6
+ − 11726 fi
+ − 11727
+ − 11728
151
+ − 11729
+ − 11730 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
+ − 11731 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
+ − 11732 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
151
+ − 11733
163
+ − 11734 runpath="" runpath_dirs=""
155
+ − 11735 if test -n "$LD_RUN_PATH"; then
151
+ − 11736 runpath="$LD_RUN_PATH"
155
+ − 11737 elif test "$GCC" = "yes"; then
163
+ − 11738 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
+ − 11739 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
+ − 11740 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
+ − 11741 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
+ − 11742 case "$arg" in P,* | -L* | -R* )
159
+ − 11743 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
163
+ − 11744 {
155
+ − 11745 xe_runpath_dir="$dir"
163
+ − 11746 test "$xe_runpath_dir" != "/lib" -a \
155
+ − 11747 "$xe_runpath_dir" != "/usr/lib" -a \
371
+ − 11748 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
+ − 11749 eval "$xe_add_unique_runpath_dir"
+ − 11750 }
155
+ − 11751 done ;;
+ − 11752 esac
+ − 11753 done
163
+ − 11754 ld_switch_run="$ld_switch_run_save"
155
+ − 11755 rm -f conftest*
151
+ − 11756 else
155
+ − 11757 for arg in $ld_switch_site $ld_switch_x_site; do
163
+ − 11758 case "$arg" in -L*) {
159
+ − 11759 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
+ − 11760 test "$xe_runpath_dir" != "/lib" -a \
155
+ − 11761 "$xe_runpath_dir" != "/usr/lib" -a \
371
+ − 11762 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
+ − 11763 eval "$xe_add_unique_runpath_dir"
+ − 11764 };; esac
151
+ − 11765 done
163
+ − 11766 if test "$opsys $need_motif" = "sol2 yes"; then
+ − 11767 xe_runpath_dir="/opt/SUNWdt/lib";
+ − 11768 eval "$xe_add_unique_runpath_dir";
+ − 11769 fi
155
+ − 11770 fi
151
+ − 11771 if test -n "$runpath"; then
+ − 11772 ld_switch_run="${dash_r}${runpath}"
272
+ − 11773
+ − 11774 if test "$GCC" = "yes"; then
+ − 11775 set x $ld_switch_run; shift; ld_switch_run=""
+ − 11776 while test -n "$1"; do
+ − 11777 case $1 in
380
+ − 11778 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
+ − 11779 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
272
+ − 11780 -Xlinker* ) ;;
+ − 11781 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
+ − 11782 esac
+ − 11783 shift
+ − 11784 done
+ − 11785 fi
151
+ − 11786 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
+ − 11787 fi
+ − 11788 fi
+ − 11789
+ − 11790 fi
+ − 11791
1070
+ − 11792
1202
+ − 11793 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd link logb lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror strlwr strupr symlink tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask wcslen wcscmp
149
+ − 11794 do
+ − 11795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1261
+ − 11796 echo "configure:11798: checking for $ac_func" >&5
+ − 11797
+ − 11798 cat > conftest.$ac_ext <<EOF
+ − 11799 #line 11801 "configure"
410
+ − 11800 #include "confdefs.h"
+ − 11801 /* System header to define __stub macros and hopefully few prototypes,
+ − 11802 which can conflict with char $ac_func(); below. */
+ − 11803 #include <assert.h>
+ − 11804 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11805 /* We use char because int might match the return type of a gcc2
+ − 11806 builtin and then its argument prototype would still apply. */
+ − 11807 char $ac_func();
+ − 11808
+ − 11809 int main() {
+ − 11810
+ − 11811 /* The GNU C library defines this for functions which it implements
+ − 11812 to always fail with ENOSYS. Some functions are actually named
+ − 11813 something starting with __ and the normal name is an alias. */
+ − 11814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 11815 choke me
+ − 11816 #else
+ − 11817 $ac_func();
+ − 11818 #endif
+ − 11819
+ − 11820 ; return 0; }
+ − 11821 EOF
1261
+ − 11822 if { (eval echo configure:11824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 11823 rm -rf conftest*
+ − 11824 eval "ac_cv_func_$ac_func=yes"
+ − 11825 else
+ − 11826 echo "configure: failed program was:" >&5
+ − 11827 cat conftest.$ac_ext >&5
+ − 11828 rm -rf conftest*
+ − 11829 eval "ac_cv_func_$ac_func=no"
+ − 11830 fi
+ − 11831 rm -f conftest*
+ − 11832
+ − 11833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 11834 echo "$ac_t""yes" 1>&6
+ − 11835 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 11836 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11837 Defining $ac_tr_func
+ − 11838 EOF
+ − 11839 cat >> confdefs.h <<EOF
+ − 11840 #define $ac_tr_func 1
+ − 11841 EOF
+ − 11842 }
+ − 11843
+ − 11844 else
+ − 11845 echo "$ac_t""no" 1>&6
+ − 11846 fi
+ − 11847 done
+ − 11848
+ − 11849
1070
+ − 11850 if test "$ac_cv_func_getaddrinfo" != "no" ; then
+ − 11851 case "$opsys" in
+ − 11852 hpux11 )
+ − 11853 echo "configure: warning: Use of getaddrinfo is disabled for HP-UX 11.XX." 1>&2
+ − 11854 ac_cv_func_getaddrinfo=no
+ − 11855 ;;
+ − 11856 esac
+ − 11857 fi
+ − 11858
458
+ − 11859
444
+ − 11860 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
442
+ − 11861 do
+ − 11862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1261
+ − 11863 echo "configure:11865: checking for $ac_func" >&5
+ − 11864
+ − 11865 cat > conftest.$ac_ext <<EOF
+ − 11866 #line 11868 "configure"
442
+ − 11867 #include "confdefs.h"
+ − 11868 /* System header to define __stub macros and hopefully few prototypes,
+ − 11869 which can conflict with char $ac_func(); below. */
+ − 11870 #include <assert.h>
+ − 11871 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11872 /* We use char because int might match the return type of a gcc2
+ − 11873 builtin and then its argument prototype would still apply. */
+ − 11874 char $ac_func();
+ − 11875
+ − 11876 int main() {
+ − 11877
+ − 11878 /* The GNU C library defines this for functions which it implements
+ − 11879 to always fail with ENOSYS. Some functions are actually named
+ − 11880 something starting with __ and the normal name is an alias. */
+ − 11881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 11882 choke me
+ − 11883 #else
+ − 11884 $ac_func();
+ − 11885 #endif
+ − 11886
+ − 11887 ; return 0; }
+ − 11888 EOF
1261
+ − 11889 if { (eval echo configure:11891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
410
+ − 11890 rm -rf conftest*
+ − 11891 eval "ac_cv_func_$ac_func=yes"
+ − 11892 else
+ − 11893 echo "configure: failed program was:" >&5
+ − 11894 cat conftest.$ac_ext >&5
+ − 11895 rm -rf conftest*
+ − 11896 eval "ac_cv_func_$ac_func=no"
+ − 11897 fi
+ − 11898 rm -f conftest*
+ − 11899
+ − 11900 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 11901 echo "$ac_t""yes" 1>&6
+ − 11902 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 11903 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11904 Defining $ac_tr_func
+ − 11905 EOF
+ − 11906 cat >> confdefs.h <<EOF
+ − 11907 #define $ac_tr_func 1
+ − 11908 EOF
+ − 11909 }
+ − 11910
+ − 11911 else
+ − 11912 echo "$ac_t""no" 1>&6
+ − 11913 fi
+ − 11914 done
+ − 11915
+ − 11916
442
+ − 11917 echo $ac_n "checking for openpty""... $ac_c" 1>&6
1261
+ − 11918 echo "configure:11920: checking for openpty" >&5
+ − 11919
+ − 11920 cat > conftest.$ac_ext <<EOF
+ − 11921 #line 11923 "configure"
442
+ − 11922 #include "confdefs.h"
+ − 11923 /* System header to define __stub macros and hopefully few prototypes,
+ − 11924 which can conflict with char openpty(); below. */
+ − 11925 #include <assert.h>
+ − 11926 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11927 /* We use char because int might match the return type of a gcc2
+ − 11928 builtin and then its argument prototype would still apply. */
+ − 11929 char openpty();
+ − 11930
+ − 11931 int main() {
+ − 11932
+ − 11933 /* The GNU C library defines this for functions which it implements
+ − 11934 to always fail with ENOSYS. Some functions are actually named
+ − 11935 something starting with __ and the normal name is an alias. */
+ − 11936 #if defined (__stub_openpty) || defined (__stub___openpty)
+ − 11937 choke me
+ − 11938 #else
+ − 11939 openpty();
+ − 11940 #endif
+ − 11941
+ − 11942 ; return 0; }
+ − 11943 EOF
1261
+ − 11944 if { (eval echo configure:11946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 11945 rm -rf conftest*
+ − 11946 eval "ac_cv_func_openpty=yes"
+ − 11947 else
+ − 11948 echo "configure: failed program was:" >&5
+ − 11949 cat conftest.$ac_ext >&5
+ − 11950 rm -rf conftest*
+ − 11951 eval "ac_cv_func_openpty=no"
+ − 11952 fi
+ − 11953 rm -f conftest*
+ − 11954
+ − 11955 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
+ − 11956 echo "$ac_t""yes" 1>&6
+ − 11957 have_openpty=yes
+ − 11958 else
+ − 11959 echo "$ac_t""no" 1>&6
+ − 11960
+ − 11961
+ − 11962 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
1261
+ − 11963 echo "configure:11965: checking for openpty in -lutil" >&5
442
+ − 11964 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
+ − 11965
+ − 11966 xe_check_libs=" -lutil "
+ − 11967 cat > conftest.$ac_ext <<EOF
1261
+ − 11968 #line 11970 "configure"
442
+ − 11969 #include "confdefs.h"
+ − 11970 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11971 /* We use char because int might match the return type of a gcc2
+ − 11972 builtin and then its argument prototype would still apply. */
+ − 11973 char openpty();
+ − 11974
+ − 11975 int main() {
+ − 11976 openpty()
+ − 11977 ; return 0; }
+ − 11978 EOF
1261
+ − 11979 if { (eval echo configure:11981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 11980 rm -rf conftest*
+ − 11981 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 11982 else
+ − 11983 echo "configure: failed program was:" >&5
+ − 11984 cat conftest.$ac_ext >&5
+ − 11985 rm -rf conftest*
+ − 11986 eval "ac_cv_lib_$ac_lib_var=no"
+ − 11987 fi
+ − 11988 rm -f conftest*
+ − 11989 xe_check_libs=""
+ − 11990
+ − 11991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 11992 echo "$ac_t""yes" 1>&6
+ − 11993 have_openpty=yes need_libutil=yes
+ − 11994 else
+ − 11995 echo "$ac_t""no" 1>&6
+ − 11996 fi
+ − 11997
+ − 11998
+ − 11999 fi
+ − 12000
+ − 12001 if test "$have_openpty" = "yes"; then
+ − 12002 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12003 Defining HAVE_OPENPTY
+ − 12004 EOF
+ − 12005 cat >> confdefs.h <<\EOF
+ − 12006 #define HAVE_OPENPTY 1
+ − 12007 EOF
+ − 12008 }
+ − 12009
535
+ − 12010 for ac_hdr in libutil.h util.h
442
+ − 12011 do
+ − 12012 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 12013 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1261
+ − 12014 echo "configure:12016: checking for $ac_hdr" >&5
+ − 12015
+ − 12016 cat > conftest.$ac_ext <<EOF
+ − 12017 #line 12019 "configure"
442
+ − 12018 #include "confdefs.h"
+ − 12019 #include <$ac_hdr>
+ − 12020 EOF
+ − 12021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 12022 { (eval echo configure:12024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
+ − 12023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 12024 if test -z "$ac_err"; then
+ − 12025 rm -rf conftest*
+ − 12026 eval "ac_cv_header_$ac_safe=yes"
+ − 12027 else
+ − 12028 echo "$ac_err" >&5
+ − 12029 echo "configure: failed program was:" >&5
+ − 12030 cat conftest.$ac_ext >&5
+ − 12031 rm -rf conftest*
+ − 12032 eval "ac_cv_header_$ac_safe=no"
+ − 12033 fi
+ − 12034 rm -f conftest*
+ − 12035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12036 echo "$ac_t""yes" 1>&6
+ − 12037 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 12038 { test "$extra_verbose" = "yes" && cat << EOF
+ − 12039 Defining $ac_tr_hdr
+ − 12040 EOF
+ − 12041 cat >> confdefs.h <<EOF
+ − 12042 #define $ac_tr_hdr 1
+ − 12043 EOF
+ − 12044 }
458
+ − 12045 break
442
+ − 12046 else
+ − 12047 echo "$ac_t""no" 1>&6
+ − 12048 fi
+ − 12049 done
+ − 12050
+ − 12051 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
+ − 12052 fi
+ − 12053
535
+ − 12054 case "$opsys" in
+ − 12055 hpux*) for ac_hdr in sys/ptyio.h
+ − 12056 do
+ − 12057 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 12058 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1261
+ − 12059 echo "configure:12061: checking for $ac_hdr" >&5
+ − 12060
+ − 12061 cat > conftest.$ac_ext <<EOF
+ − 12062 #line 12064 "configure"
535
+ − 12063 #include "confdefs.h"
+ − 12064 #include <$ac_hdr>
+ − 12065 EOF
+ − 12066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 12067 { (eval echo configure:12069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
535
+ − 12068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 12069 if test -z "$ac_err"; then
+ − 12070 rm -rf conftest*
+ − 12071 eval "ac_cv_header_$ac_safe=yes"
+ − 12072 else
+ − 12073 echo "$ac_err" >&5
+ − 12074 echo "configure: failed program was:" >&5
+ − 12075 cat conftest.$ac_ext >&5
+ − 12076 rm -rf conftest*
+ − 12077 eval "ac_cv_header_$ac_safe=no"
+ − 12078 fi
+ − 12079 rm -f conftest*
+ − 12080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12081 echo "$ac_t""yes" 1>&6
+ − 12082 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 12083 { test "$extra_verbose" = "yes" && cat << EOF
+ − 12084 Defining $ac_tr_hdr
+ − 12085 EOF
+ − 12086 cat >> confdefs.h <<EOF
+ − 12087 #define $ac_tr_hdr 1
+ − 12088 EOF
+ − 12089 }
+ − 12090
+ − 12091 else
+ − 12092 echo "$ac_t""no" 1>&6
+ − 12093 fi
+ − 12094 done
1111
+ − 12095 ;;
+ − 12096 *) for ac_hdr in pty.h
535
+ − 12097 do
+ − 12098 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 12099 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1261
+ − 12100 echo "configure:12102: checking for $ac_hdr" >&5
+ − 12101
+ − 12102 cat > conftest.$ac_ext <<EOF
+ − 12103 #line 12105 "configure"
771
+ − 12104 #include "confdefs.h"
+ − 12105 #include <$ac_hdr>
+ − 12106 EOF
+ − 12107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 12108 { (eval echo configure:12110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
771
+ − 12109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 12110 if test -z "$ac_err"; then
+ − 12111 rm -rf conftest*
+ − 12112 eval "ac_cv_header_$ac_safe=yes"
+ − 12113 else
+ − 12114 echo "$ac_err" >&5
+ − 12115 echo "configure: failed program was:" >&5
+ − 12116 cat conftest.$ac_ext >&5
+ − 12117 rm -rf conftest*
+ − 12118 eval "ac_cv_header_$ac_safe=no"
+ − 12119 fi
+ − 12120 rm -f conftest*
+ − 12121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12122 echo "$ac_t""yes" 1>&6
+ − 12123 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 12124 { test "$extra_verbose" = "yes" && cat << EOF
+ − 12125 Defining $ac_tr_hdr
+ − 12126 EOF
+ − 12127 cat >> confdefs.h <<EOF
+ − 12128 #define $ac_tr_hdr 1
+ − 12129 EOF
+ − 12130 }
+ − 12131
+ − 12132 else
+ − 12133 echo "$ac_t""no" 1>&6
+ − 12134 fi
+ − 12135 done
+ − 12136
1111
+ − 12137 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h
+ − 12138 do
+ − 12139 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 12140 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1261
+ − 12141 echo "configure:12143: checking for $ac_hdr" >&5
+ − 12142
+ − 12143 cat > conftest.$ac_ext <<EOF
+ − 12144 #line 12146 "configure"
1111
+ − 12145 #include "confdefs.h"
+ − 12146 #include <$ac_hdr>
+ − 12147 EOF
+ − 12148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 12149 { (eval echo configure:12151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1111
+ − 12150 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 12151 if test -z "$ac_err"; then
+ − 12152 rm -rf conftest*
+ − 12153 eval "ac_cv_header_$ac_safe=yes"
+ − 12154 else
+ − 12155 echo "$ac_err" >&5
+ − 12156 echo "configure: failed program was:" >&5
+ − 12157 cat conftest.$ac_ext >&5
+ − 12158 rm -rf conftest*
+ − 12159 eval "ac_cv_header_$ac_safe=no"
+ − 12160 fi
+ − 12161 rm -f conftest*
+ − 12162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12163 echo "$ac_t""yes" 1>&6
+ − 12164 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 12165 { test "$extra_verbose" = "yes" && cat << EOF
+ − 12166 Defining $ac_tr_hdr
+ − 12167 EOF
+ − 12168 cat >> confdefs.h <<EOF
+ − 12169 #define $ac_tr_hdr 1
+ − 12170 EOF
+ − 12171 }
+ − 12172
+ − 12173 else
+ − 12174 echo "$ac_t""no" 1>&6
+ − 12175 fi
+ − 12176 done
+ − 12177
771
+ − 12178 ;;
+ − 12179 esac
+ − 12180
+ − 12181 for ac_hdr in stropts.h
+ − 12182 do
+ − 12183 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 12184 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1261
+ − 12185 echo "configure:12187: checking for $ac_hdr" >&5
+ − 12186
+ − 12187 cat > conftest.$ac_ext <<EOF
+ − 12188 #line 12190 "configure"
771
+ − 12189 #include "confdefs.h"
+ − 12190 #include <$ac_hdr>
+ − 12191 EOF
+ − 12192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 12193 { (eval echo configure:12195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
771
+ − 12194 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 12195 if test -z "$ac_err"; then
+ − 12196 rm -rf conftest*
+ − 12197 eval "ac_cv_header_$ac_safe=yes"
+ − 12198 else
+ − 12199 echo "$ac_err" >&5
+ − 12200 echo "configure: failed program was:" >&5
+ − 12201 cat conftest.$ac_ext >&5
+ − 12202 rm -rf conftest*
+ − 12203 eval "ac_cv_header_$ac_safe=no"
+ − 12204 fi
+ − 12205 rm -f conftest*
+ − 12206 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12207 echo "$ac_t""yes" 1>&6
+ − 12208 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 12209 { test "$extra_verbose" = "yes" && cat << EOF
+ − 12210 Defining $ac_tr_hdr
+ − 12211 EOF
+ − 12212 cat >> confdefs.h <<EOF
+ − 12213 #define $ac_tr_hdr 1
+ − 12214 EOF
+ − 12215 }
+ − 12216
+ − 12217 else
+ − 12218 echo "$ac_t""no" 1>&6
+ − 12219 fi
+ − 12220 done
+ − 12221
+ − 12222 if test "$ac_cv_header_stropts_h" = "yes"; then
+ − 12223 for ac_func in isastream
+ − 12224 do
+ − 12225 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1261
+ − 12226 echo "configure:12228: checking for $ac_func" >&5
+ − 12227
+ − 12228 cat > conftest.$ac_ext <<EOF
+ − 12229 #line 12231 "configure"
771
+ − 12230 #include "confdefs.h"
+ − 12231 /* System header to define __stub macros and hopefully few prototypes,
+ − 12232 which can conflict with char $ac_func(); below. */
+ − 12233 #include <assert.h>
+ − 12234 /* Override any gcc2 internal prototype to avoid an error. */
+ − 12235 /* We use char because int might match the return type of a gcc2
+ − 12236 builtin and then its argument prototype would still apply. */
+ − 12237 char $ac_func();
+ − 12238
+ − 12239 int main() {
+ − 12240
+ − 12241 /* The GNU C library defines this for functions which it implements
+ − 12242 to always fail with ENOSYS. Some functions are actually named
+ − 12243 something starting with __ and the normal name is an alias. */
+ − 12244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 12245 choke me
+ − 12246 #else
+ − 12247 $ac_func();
+ − 12248 #endif
+ − 12249
+ − 12250 ; return 0; }
+ − 12251 EOF
1261
+ − 12252 if { (eval echo configure:12254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
771
+ − 12253 rm -rf conftest*
+ − 12254 eval "ac_cv_func_$ac_func=yes"
+ − 12255 else
+ − 12256 echo "configure: failed program was:" >&5
+ − 12257 cat conftest.$ac_ext >&5
+ − 12258 rm -rf conftest*
+ − 12259 eval "ac_cv_func_$ac_func=no"
+ − 12260 fi
+ − 12261 rm -f conftest*
+ − 12262
+ − 12263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 12264 echo "$ac_t""yes" 1>&6
+ − 12265 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 12266 { test "$extra_verbose" = "yes" && cat << EOF
+ − 12267 Defining $ac_tr_func
+ − 12268 EOF
+ − 12269 cat >> confdefs.h <<EOF
+ − 12270 #define $ac_tr_func 1
+ − 12271 EOF
+ − 12272 }
+ − 12273
+ − 12274 else
+ − 12275 echo "$ac_t""no" 1>&6
+ − 12276 fi
+ − 12277 done
+ − 12278
+ − 12279 for ac_hdr in strtio.h
+ − 12280 do
+ − 12281 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 12282 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1261
+ − 12283 echo "configure:12285: checking for $ac_hdr" >&5
+ − 12284
+ − 12285 cat > conftest.$ac_ext <<EOF
+ − 12286 #line 12288 "configure"
535
+ − 12287 #include "confdefs.h"
+ − 12288 #include <$ac_hdr>
+ − 12289 EOF
+ − 12290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 12291 { (eval echo configure:12293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
535
+ − 12292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 12293 if test -z "$ac_err"; then
+ − 12294 rm -rf conftest*
+ − 12295 eval "ac_cv_header_$ac_safe=yes"
+ − 12296 else
+ − 12297 echo "$ac_err" >&5
+ − 12298 echo "configure: failed program was:" >&5
+ − 12299 cat conftest.$ac_ext >&5
+ − 12300 rm -rf conftest*
+ − 12301 eval "ac_cv_header_$ac_safe=no"
+ − 12302 fi
+ − 12303 rm -f conftest*
+ − 12304 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12305 echo "$ac_t""yes" 1>&6
+ − 12306 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 12307 { test "$extra_verbose" = "yes" && cat << EOF
+ − 12308 Defining $ac_tr_hdr
+ − 12309 EOF
+ − 12310 cat >> confdefs.h <<EOF
+ − 12311 #define $ac_tr_hdr 1
+ − 12312 EOF
+ − 12313 }
+ − 12314
+ − 12315 else
+ − 12316 echo "$ac_t""no" 1>&6
+ − 12317 fi
+ − 12318 done
771
+ − 12319 fi
+ − 12320
+ − 12321 for ac_func in getloadavg
410
+ − 12322 do
+ − 12323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1261
+ − 12324 echo "configure:12326: checking for $ac_func" >&5
+ − 12325
+ − 12326 cat > conftest.$ac_ext <<EOF
+ − 12327 #line 12329 "configure"
149
+ − 12328 #include "confdefs.h"
+ − 12329 /* System header to define __stub macros and hopefully few prototypes,
+ − 12330 which can conflict with char $ac_func(); below. */
+ − 12331 #include <assert.h>
+ − 12332 /* Override any gcc2 internal prototype to avoid an error. */
+ − 12333 /* We use char because int might match the return type of a gcc2
+ − 12334 builtin and then its argument prototype would still apply. */
+ − 12335 char $ac_func();
+ − 12336
+ − 12337 int main() {
+ − 12338
70
+ − 12339 /* The GNU C library defines this for functions which it implements
+ − 12340 to always fail with ENOSYS. Some functions are actually named
+ − 12341 something starting with __ and the normal name is an alias. */
149
+ − 12342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70
+ − 12343 choke me
+ − 12344 #else
149
+ − 12345 $ac_func();
70
+ − 12346 #endif
149
+ − 12347
70
+ − 12348 ; return 0; }
+ − 12349 EOF
1261
+ − 12350 if { (eval echo configure:12352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 12351 rm -rf conftest*
+ − 12352 eval "ac_cv_func_$ac_func=yes"
+ − 12353 else
+ − 12354 echo "configure: failed program was:" >&5
+ − 12355 cat conftest.$ac_ext >&5
+ − 12356 rm -rf conftest*
+ − 12357 eval "ac_cv_func_$ac_func=no"
+ − 12358 fi
+ − 12359 rm -f conftest*
+ − 12360
+ − 12361 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 12362 echo "$ac_t""yes" 1>&6
+ − 12363 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 12364 { test "$extra_verbose" = "yes" && cat << EOF
+ − 12365 Defining $ac_tr_func
+ − 12366 EOF
+ − 12367 cat >> confdefs.h <<EOF
+ − 12368 #define $ac_tr_func 1
+ − 12369 EOF
+ − 12370 }
+ − 12371
+ − 12372 else
+ − 12373 echo "$ac_t""no" 1>&6
+ − 12374 fi
+ − 12375 done
+ − 12376
+ − 12377
+ − 12378 if test "$ac_cv_func_getloadavg" = "yes"; then
+ − 12379 for ac_hdr in sys/loadavg.h
+ − 12380 do
+ − 12381 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 12382 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1261
+ − 12383 echo "configure:12385: checking for $ac_hdr" >&5
+ − 12384
+ − 12385 cat > conftest.$ac_ext <<EOF
+ − 12386 #line 12388 "configure"
442
+ − 12387 #include "confdefs.h"
+ − 12388 #include <$ac_hdr>
+ − 12389 EOF
+ − 12390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 12391 { (eval echo configure:12393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
+ − 12392 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 12393 if test -z "$ac_err"; then
+ − 12394 rm -rf conftest*
+ − 12395 eval "ac_cv_header_$ac_safe=yes"
+ − 12396 else
+ − 12397 echo "$ac_err" >&5
+ − 12398 echo "configure: failed program was:" >&5
+ − 12399 cat conftest.$ac_ext >&5
+ − 12400 rm -rf conftest*
+ − 12401 eval "ac_cv_header_$ac_safe=no"
+ − 12402 fi
+ − 12403 rm -f conftest*
+ − 12404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12405 echo "$ac_t""yes" 1>&6
+ − 12406 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 12407 { test "$extra_verbose" = "yes" && cat << EOF
+ − 12408 Defining $ac_tr_hdr
+ − 12409 EOF
+ − 12410 cat >> confdefs.h <<EOF
+ − 12411 #define $ac_tr_hdr 1
+ − 12412 EOF
+ − 12413 }
+ − 12414
+ − 12415 else
+ − 12416 echo "$ac_t""no" 1>&6
+ − 12417 fi
+ − 12418 done
+ − 12419
+ − 12420 else
+ − 12421 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
398
+ − 12422 echo " xemacs will be linked with \"getloadavg.o\""
+ − 12423 fi
+ − 12424
+ − 12425
+ − 12426 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
1261
+ − 12427 echo "configure:12429: checking for kstat_open in -lkstat" >&5
398
+ − 12428 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
+ − 12429
+ − 12430 xe_check_libs=" -lkstat "
+ − 12431 cat > conftest.$ac_ext <<EOF
1261
+ − 12432 #line 12434 "configure"
398
+ − 12433 #include "confdefs.h"
+ − 12434 /* Override any gcc2 internal prototype to avoid an error. */
+ − 12435 /* We use char because int might match the return type of a gcc2
+ − 12436 builtin and then its argument prototype would still apply. */
+ − 12437 char kstat_open();
+ − 12438
+ − 12439 int main() {
+ − 12440 kstat_open()
+ − 12441 ; return 0; }
+ − 12442 EOF
1261
+ − 12443 if { (eval echo configure:12445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
398
+ − 12444 rm -rf conftest*
+ − 12445 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 12446 else
+ − 12447 echo "configure: failed program was:" >&5
+ − 12448 cat conftest.$ac_ext >&5
+ − 12449 rm -rf conftest*
+ − 12450 eval "ac_cv_lib_$ac_lib_var=no"
+ − 12451 fi
+ − 12452 rm -f conftest*
+ − 12453 xe_check_libs=""
+ − 12454
+ − 12455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 12456 echo "$ac_t""yes" 1>&6
+ − 12457 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ − 12458 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
369
+ − 12459 { test "$extra_verbose" = "yes" && cat << EOF
398
+ − 12460 Defining $ac_tr_lib
369
+ − 12461 EOF
+ − 12462 cat >> confdefs.h <<EOF
398
+ − 12463 #define $ac_tr_lib 1
+ − 12464 EOF
+ − 12465 }
+ − 12466
+ − 12467 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
+ − 12468
+ − 12469 else
+ − 12470 echo "$ac_t""no" 1>&6
+ − 12471 fi
+ − 12472
+ − 12473
442
+ − 12474 for ac_hdr in kstat.h
+ − 12475 do
+ − 12476 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 12477 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1261
+ − 12478 echo "configure:12480: checking for $ac_hdr" >&5
+ − 12479
+ − 12480 cat > conftest.$ac_ext <<EOF
+ − 12481 #line 12483 "configure"
442
+ − 12482 #include "confdefs.h"
+ − 12483 #include <$ac_hdr>
+ − 12484 EOF
+ − 12485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
+ − 12486 { (eval echo configure:12488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
+ − 12487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 12488 if test -z "$ac_err"; then
+ − 12489 rm -rf conftest*
+ − 12490 eval "ac_cv_header_$ac_safe=yes"
+ − 12491 else
+ − 12492 echo "$ac_err" >&5
+ − 12493 echo "configure: failed program was:" >&5
+ − 12494 cat conftest.$ac_ext >&5
+ − 12495 rm -rf conftest*
+ − 12496 eval "ac_cv_header_$ac_safe=no"
+ − 12497 fi
+ − 12498 rm -f conftest*
+ − 12499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12500 echo "$ac_t""yes" 1>&6
+ − 12501 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 12502 { test "$extra_verbose" = "yes" && cat << EOF
+ − 12503 Defining $ac_tr_hdr
+ − 12504 EOF
+ − 12505 cat >> confdefs.h <<EOF
+ − 12506 #define $ac_tr_hdr 1
+ − 12507 EOF
+ − 12508 }
+ − 12509
+ − 12510 else
+ − 12511 echo "$ac_t""no" 1>&6
+ − 12512 fi
+ − 12513 done
+ − 12514
398
+ − 12515
+ − 12516
+ − 12517 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
1261
+ − 12518 echo "configure:12520: checking for kvm_read in -lkvm" >&5
398
+ − 12519 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
+ − 12520
+ − 12521 xe_check_libs=" -lkvm "
+ − 12522 cat > conftest.$ac_ext <<EOF
1261
+ − 12523 #line 12525 "configure"
398
+ − 12524 #include "confdefs.h"
+ − 12525 /* Override any gcc2 internal prototype to avoid an error. */
+ − 12526 /* We use char because int might match the return type of a gcc2
+ − 12527 builtin and then its argument prototype would still apply. */
+ − 12528 char kvm_read();
+ − 12529
+ − 12530 int main() {
+ − 12531 kvm_read()
+ − 12532 ; return 0; }
+ − 12533 EOF
1261
+ − 12534 if { (eval echo configure:12536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
398
+ − 12535 rm -rf conftest*
+ − 12536 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 12537 else
+ − 12538 echo "configure: failed program was:" >&5
+ − 12539 cat conftest.$ac_ext >&5
+ − 12540 rm -rf conftest*
+ − 12541 eval "ac_cv_lib_$ac_lib_var=no"
+ − 12542 fi
+ − 12543 rm -f conftest*
+ − 12544 xe_check_libs=""
+ − 12545
+ − 12546 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 12547 echo "$ac_t""yes" 1>&6
+ − 12548 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ − 12549 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ − 12550 { test "$extra_verbose" = "yes" && cat << EOF
+ − 12551 Defining $ac_tr_lib
+ − 12552 EOF
+ − 12553 cat >> confdefs.h <<EOF
+ − 12554 #define $ac_tr_lib 1
+ − 12555 EOF
+ − 12556 }
+ − 12557
+ − 12558 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
+ − 12559
+ − 12560 else
+ − 12561 echo "$ac_t""no" 1>&6
+ − 12562 fi
+ − 12563
+ − 12564
+ − 12565 fi
151
+ − 12566
149
+ − 12567 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
1261
+ − 12568 echo "configure:12570: checking whether netdb declares h_errno" >&5
+ − 12569 cat > conftest.$ac_ext <<EOF
+ − 12570 #line 12572 "configure"
0
+ − 12571 #include "confdefs.h"
+ − 12572 #include <netdb.h>
149
+ − 12573 int main() {
+ − 12574 return h_errno;
+ − 12575 ; return 0; }
+ − 12576 EOF
1261
+ − 12577 if { (eval echo configure:12579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 12578 rm -rf conftest*
+ − 12579 echo "$ac_t""yes" 1>&6
+ − 12580 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12581 Defining HAVE_H_ERRNO
+ − 12582 EOF
+ − 12583 cat >> confdefs.h <<\EOF
+ − 12584 #define HAVE_H_ERRNO 1
+ − 12585 EOF
+ − 12586 }
+ − 12587
+ − 12588 else
+ − 12589 echo "configure: failed program was:" >&5
+ − 12590 cat conftest.$ac_ext >&5
+ − 12591 rm -rf conftest*
+ − 12592 echo "$ac_t""no" 1>&6
+ − 12593 fi
+ − 12594 rm -f conftest*
+ − 12595
+ − 12596 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
1261
+ − 12597 echo "configure:12599: checking for sigsetjmp" >&5
+ − 12598 cat > conftest.$ac_ext <<EOF
+ − 12599 #line 12601 "configure"
0
+ − 12600 #include "confdefs.h"
+ − 12601 #include <setjmp.h>
149
+ − 12602 int main() {
+ − 12603 sigjmp_buf bar; sigsetjmp (bar, 0);
+ − 12604 ; return 0; }
+ − 12605 EOF
1261
+ − 12606 if { (eval echo configure:12608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 12607 rm -rf conftest*
+ − 12608 echo "$ac_t""yes" 1>&6
+ − 12609 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12610 Defining HAVE_SIGSETJMP
+ − 12611 EOF
+ − 12612 cat >> confdefs.h <<\EOF
+ − 12613 #define HAVE_SIGSETJMP 1
+ − 12614 EOF
+ − 12615 }
+ − 12616
+ − 12617 else
+ − 12618 echo "configure: failed program was:" >&5
+ − 12619 cat conftest.$ac_ext >&5
+ − 12620 rm -rf conftest*
+ − 12621 echo "$ac_t""no" 1>&6
+ − 12622 fi
+ − 12623 rm -f conftest*
+ − 12624
+ − 12625 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
1261
+ − 12626 echo "configure:12628: checking whether localtime caches TZ" >&5
149
+ − 12627
+ − 12628 if test "$ac_cv_func_tzset" = "yes"; then
+ − 12629 cat > conftest.$ac_ext <<EOF
1261
+ − 12630 #line 12632 "configure"
0
+ − 12631 #include "confdefs.h"
+ − 12632 #include <time.h>
149
+ − 12633 #if STDC_HEADERS
0
+ − 12634 # include <stdlib.h>
+ − 12635 #endif
+ − 12636 extern char **environ;
+ − 12637 unset_TZ ()
+ − 12638 {
+ − 12639 char **from, **to;
+ − 12640 for (to = from = environ; (*to = *from); from++)
+ − 12641 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
+ − 12642 to++;
+ − 12643 }
149
+ − 12644 char TZ_GMT0[] = "TZ=GMT0";
+ − 12645 char TZ_PST8[] = "TZ=PST8";
0
+ − 12646 main()
+ − 12647 {
+ − 12648 time_t now = time ((time_t *) 0);
+ − 12649 int hour_GMT0, hour_unset;
149
+ − 12650 if (putenv (TZ_GMT0) != 0)
0
+ − 12651 exit (1);
+ − 12652 hour_GMT0 = localtime (&now)->tm_hour;
+ − 12653 unset_TZ ();
+ − 12654 hour_unset = localtime (&now)->tm_hour;
149
+ − 12655 if (putenv (TZ_PST8) != 0)
0
+ − 12656 exit (1);
+ − 12657 if (localtime (&now)->tm_hour == hour_GMT0)
+ − 12658 exit (1);
+ − 12659 unset_TZ ();
+ − 12660 if (localtime (&now)->tm_hour != hour_unset)
+ − 12661 exit (1);
+ − 12662 exit (0);
+ − 12663 }
+ − 12664 EOF
1261
+ − 12665 if { (eval echo configure:12667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
+ − 12666 then
0
+ − 12667 emacs_cv_localtime_cache=no
149
+ − 12668 else
373
+ − 12669 conftest_rc="$?"
149
+ − 12670 echo "configure: failed program was:" >&5
+ − 12671 cat conftest.$ac_ext >&5
+ − 12672 rm -fr conftest*
0
+ − 12673 emacs_cv_localtime_cache=yes
+ − 12674 fi
+ − 12675 rm -fr conftest*
149
+ − 12676 else
+ − 12677 # If we lack tzset, report that localtime does not cache TZ,
+ − 12678 # since we can't invalidate the cache if we don't have tzset.
+ − 12679 emacs_cv_localtime_cache=no
+ − 12680 fi
+ − 12681 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
+ − 12682 if test $emacs_cv_localtime_cache = yes; then
+ − 12683 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12684 Defining LOCALTIME_CACHE
+ − 12685 EOF
+ − 12686 cat >> confdefs.h <<\EOF
+ − 12687 #define LOCALTIME_CACHE 1
+ − 12688 EOF
+ − 12689 }
+ − 12690
+ − 12691 fi
+ − 12692
+ − 12693 if test "$HAVE_TIMEVAL" = "yes"; then
274
+ − 12694 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
1261
+ − 12695 echo "configure:12697: checking whether gettimeofday accepts one or two arguments" >&5
+ − 12696 cat > conftest.$ac_ext <<EOF
+ − 12697 #line 12699 "configure"
0
+ − 12698 #include "confdefs.h"
+ − 12699
+ − 12700 #ifdef TIME_WITH_SYS_TIME
+ − 12701 #include <sys/time.h>
+ − 12702 #include <time.h>
+ − 12703 #else
+ − 12704 #ifdef HAVE_SYS_TIME_H
+ − 12705 #include <sys/time.h>
+ − 12706 #else
+ − 12707 #include <time.h>
+ − 12708 #endif
+ − 12709 #endif
+ − 12710
149
+ − 12711 int main() {
+ − 12712
0
+ − 12713 struct timeval time;
442
+ − 12714 gettimeofday (&time, 0);
+ − 12715
+ − 12716 ; return 0; }
+ − 12717 EOF
1261
+ − 12718 if { (eval echo configure:12720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
274
+ − 12719 rm -rf conftest*
+ − 12720 echo "$ac_t""two" 1>&6
+ − 12721 else
+ − 12722 echo "configure: failed program was:" >&5
+ − 12723 cat conftest.$ac_ext >&5
+ − 12724 rm -rf conftest*
+ − 12725 echo "$ac_t""one" 1>&6
149
+ − 12726 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12727 Defining GETTIMEOFDAY_ONE_ARGUMENT
+ − 12728 EOF
+ − 12729 cat >> confdefs.h <<\EOF
+ − 12730 #define GETTIMEOFDAY_ONE_ARGUMENT 1
+ − 12731 EOF
+ − 12732 }
+ − 12733
+ − 12734 fi
+ − 12735 rm -f conftest*
+ − 12736 fi
+ − 12737
+ − 12738
+ − 12739 echo $ac_n "checking for inline""... $ac_c" 1>&6
1261
+ − 12740 echo "configure:12742: checking for inline" >&5
149
+ − 12741
+ − 12742 ac_cv_c_inline=no
+ − 12743 for ac_kw in inline __inline__ __inline; do
+ − 12744 cat > conftest.$ac_ext <<EOF
1261
+ − 12745 #line 12747 "configure"
744
+ − 12746 #include "confdefs.h"
+ − 12747
+ − 12748 int main() {
+ − 12749 } $ac_kw foo() {
+ − 12750 ; return 0; }
+ − 12751 EOF
1261
+ − 12752 if { (eval echo configure:12754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 12753 rm -rf conftest*
+ − 12754 ac_cv_c_inline=$ac_kw; break
+ − 12755 else
+ − 12756 echo "configure: failed program was:" >&5
+ − 12757 cat conftest.$ac_ext >&5
+ − 12758 fi
+ − 12759 rm -f conftest*
+ − 12760 done
+ − 12761
+ − 12762
+ − 12763 echo "$ac_t""$ac_cv_c_inline" 1>&6
+ − 12764 case "$ac_cv_c_inline" in
+ − 12765 inline | yes) ;;
+ − 12766 no) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12767 Defining inline =
+ − 12768 EOF
+ − 12769 cat >> confdefs.h <<\EOF
+ − 12770 #define inline
+ − 12771 EOF
+ − 12772 }
+ − 12773 ;;
+ − 12774 *) { test "$extra_verbose" = "yes" && cat << EOF
+ − 12775 Defining inline = $ac_cv_c_inline
+ − 12776 EOF
+ − 12777 cat >> confdefs.h <<EOF
+ − 12778 #define inline $ac_cv_c_inline
+ − 12779 EOF
+ − 12780 }
+ − 12781 ;;
+ − 12782 esac
+ − 12783
442
+ − 12784 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
155
+ − 12785 echo " xemacs will be linked with \"inline.o\""
+ − 12786 fi
149
+ − 12787
+ − 12788
444
+ − 12789 if test "$__DECC" != "yes"; then
+ − 12790 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
0
+ − 12791 # for constant arguments. Useless!
149
+ − 12792 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1261
+ − 12793 echo "configure:12795: checking for working alloca.h" >&5
+ − 12794
+ − 12795 cat > conftest.$ac_ext <<EOF
+ − 12796 #line 12798 "configure"
0
+ − 12797 #include "confdefs.h"
+ − 12798 #include <alloca.h>
149
+ − 12799 int main() {
744
+ − 12800 char *p = alloca(2 * sizeof(int));
+ − 12801 ; return 0; }
+ − 12802 EOF
1261
+ − 12803 if { (eval echo configure:12805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 12804 rm -rf conftest*
+ − 12805 ac_cv_header_alloca_h=yes
+ − 12806 else
+ − 12807 echo "configure: failed program was:" >&5
+ − 12808 cat conftest.$ac_ext >&5
+ − 12809 rm -rf conftest*
+ − 12810 ac_cv_header_alloca_h=no
+ − 12811 fi
+ − 12812 rm -f conftest*
+ − 12813
+ − 12814 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
+ − 12815 if test $ac_cv_header_alloca_h = yes; then
+ − 12816 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12817 Defining HAVE_ALLOCA_H
+ − 12818 EOF
+ − 12819 cat >> confdefs.h <<\EOF
+ − 12820 #define HAVE_ALLOCA_H 1
+ − 12821 EOF
+ − 12822 }
+ − 12823
+ − 12824 fi
+ − 12825
+ − 12826 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1261
+ − 12827 echo "configure:12829: checking for alloca" >&5
+ − 12828
+ − 12829 cat > conftest.$ac_ext <<EOF
+ − 12830 #line 12832 "configure"
149
+ − 12831 #include "confdefs.h"
+ − 12832
+ − 12833 #ifdef __GNUC__
+ − 12834 # define alloca __builtin_alloca
0
+ − 12835 #else
420
+ − 12836 # ifdef _MSC_VER
+ − 12837 # include <malloc.h>
+ − 12838 # define alloca _alloca
149
+ − 12839 # else
420
+ − 12840 # if HAVE_ALLOCA_H
+ − 12841 # include <alloca.h>
149
+ − 12842 # else
420
+ − 12843 # ifdef _AIX
+ − 12844 #pragma alloca
+ − 12845 # else
+ − 12846 # ifndef alloca /* predefined by HP cc +Olibcalls */
149
+ − 12847 char *alloca ();
420
+ − 12848 # endif
149
+ − 12849 # endif
+ − 12850 # endif
+ − 12851 # endif
0
+ − 12852 #endif
149
+ − 12853
+ − 12854 int main() {
+ − 12855 char *p = (char *) alloca(1);
0
+ − 12856 ; return 0; }
+ − 12857 EOF
1261
+ − 12858 if { (eval echo configure:12860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 12859 rm -rf conftest*
+ − 12860 ac_cv_func_alloca_works=yes
+ − 12861 else
+ − 12862 echo "configure: failed program was:" >&5
+ − 12863 cat conftest.$ac_ext >&5
+ − 12864 rm -rf conftest*
+ − 12865 ac_cv_func_alloca_works=no
+ − 12866 fi
+ − 12867 rm -f conftest*
+ − 12868
+ − 12869 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
+ − 12870 if test $ac_cv_func_alloca_works = yes; then
+ − 12871 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12872 Defining HAVE_ALLOCA
+ − 12873 EOF
+ − 12874 cat >> confdefs.h <<\EOF
+ − 12875 #define HAVE_ALLOCA 1
+ − 12876 EOF
+ − 12877 }
+ − 12878
+ − 12879 fi
+ − 12880
+ − 12881 if test $ac_cv_func_alloca_works = no; then
0
+ − 12882 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
+ − 12883 # that cause trouble. Some versions do not even contain alloca or
+ − 12884 # contain a buggy version. If you still want to use their alloca,
+ − 12885 # use ar to extract alloca.o from them instead of compiling alloca.c.
420
+ − 12886 ALLOCA=alloca.${ac_objext}
149
+ − 12887 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12888 Defining C_ALLOCA
+ − 12889 EOF
+ − 12890 cat >> confdefs.h <<\EOF
+ − 12891 #define C_ALLOCA 1
+ − 12892 EOF
+ − 12893 }
+ − 12894
+ − 12895
+ − 12896 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1261
+ − 12897 echo "configure:12899: checking whether alloca needs Cray hooks" >&5
+ − 12898
+ − 12899 cat > conftest.$ac_ext <<EOF
+ − 12900 #line 12902 "configure"
149
+ − 12901 #include "confdefs.h"
+ − 12902 #if defined(CRAY) && ! defined(CRAY2)
+ − 12903 webecray
+ − 12904 #else
+ − 12905 wenotbecray
+ − 12906 #endif
+ − 12907
+ − 12908 EOF
+ − 12909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 12910 egrep "webecray" >/dev/null 2>&1; then
+ − 12911 rm -rf conftest*
+ − 12912 ac_cv_os_cray=yes
+ − 12913 else
+ − 12914 rm -rf conftest*
+ − 12915 ac_cv_os_cray=no
+ − 12916 fi
+ − 12917 rm -f conftest*
+ − 12918
+ − 12919
+ − 12920 echo "$ac_t""$ac_cv_os_cray" 1>&6
+ − 12921 if test $ac_cv_os_cray = yes; then
+ − 12922 for ac_func in _getb67 GETB67 getb67; do
+ − 12923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1261
+ − 12924 echo "configure:12926: checking for $ac_func" >&5
+ − 12925
+ − 12926 cat > conftest.$ac_ext <<EOF
+ − 12927 #line 12929 "configure"
149
+ − 12928 #include "confdefs.h"
+ − 12929 /* System header to define __stub macros and hopefully few prototypes,
+ − 12930 which can conflict with char $ac_func(); below. */
+ − 12931 #include <assert.h>
+ − 12932 /* Override any gcc2 internal prototype to avoid an error. */
+ − 12933 /* We use char because int might match the return type of a gcc2
+ − 12934 builtin and then its argument prototype would still apply. */
+ − 12935 char $ac_func();
+ − 12936
+ − 12937 int main() {
+ − 12938
+ − 12939 /* The GNU C library defines this for functions which it implements
+ − 12940 to always fail with ENOSYS. Some functions are actually named
+ − 12941 something starting with __ and the normal name is an alias. */
+ − 12942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 12943 choke me
+ − 12944 #else
+ − 12945 $ac_func();
+ − 12946 #endif
+ − 12947
+ − 12948 ; return 0; }
+ − 12949 EOF
1261
+ − 12950 if { (eval echo configure:12952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 12951 rm -rf conftest*
+ − 12952 eval "ac_cv_func_$ac_func=yes"
+ − 12953 else
+ − 12954 echo "configure: failed program was:" >&5
+ − 12955 cat conftest.$ac_ext >&5
+ − 12956 rm -rf conftest*
+ − 12957 eval "ac_cv_func_$ac_func=no"
+ − 12958 fi
+ − 12959 rm -f conftest*
+ − 12960
+ − 12961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 12962 echo "$ac_t""yes" 1>&6
+ − 12963 { test "$extra_verbose" = "yes" && cat << EOF
+ − 12964 Defining CRAY_STACKSEG_END = $ac_func
+ − 12965 EOF
+ − 12966 cat >> confdefs.h <<EOF
+ − 12967 #define CRAY_STACKSEG_END $ac_func
+ − 12968 EOF
+ − 12969 }
+ − 12970
+ − 12971 break
+ − 12972 else
+ − 12973 echo "$ac_t""no" 1>&6
+ − 12974 fi
+ − 12975
+ − 12976 done
+ − 12977 fi
+ − 12978
+ − 12979 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1261
+ − 12980 echo "configure:12982: checking stack direction for C alloca" >&5
+ − 12981
+ − 12982 cat > conftest.$ac_ext <<EOF
+ − 12983 #line 12985 "configure"
0
+ − 12984 #include "confdefs.h"
+ − 12985 find_stack_direction ()
+ − 12986 {
+ − 12987 static char *addr = 0;
+ − 12988 auto char dummy;
+ − 12989 if (addr == 0)
+ − 12990 {
+ − 12991 addr = &dummy;
+ − 12992 return find_stack_direction ();
+ − 12993 }
+ − 12994 else
+ − 12995 return (&dummy > addr) ? 1 : -1;
+ − 12996 }
+ − 12997 main ()
+ − 12998 {
+ − 12999 exit (find_stack_direction() < 0);
+ − 13000 }
+ − 13001 EOF
1261
+ − 13002 if { (eval echo configure:13004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
+ − 13003 then
+ − 13004 ac_cv_c_stack_direction=1
+ − 13005 else
373
+ − 13006 conftest_rc="$?"
149
+ − 13007 echo "configure: failed program was:" >&5
+ − 13008 cat conftest.$ac_ext >&5
+ − 13009 rm -fr conftest*
+ − 13010 ac_cv_c_stack_direction=-1
0
+ − 13011 fi
+ − 13012 rm -fr conftest*
149
+ − 13013
+ − 13014 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
+ − 13015 { test "$extra_verbose" = "yes" && cat << EOF
+ − 13016 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
+ − 13017 EOF
+ − 13018 cat >> confdefs.h <<EOF
+ − 13019 #define STACK_DIRECTION $ac_cv_c_stack_direction
+ − 13020 EOF
+ − 13021 }
+ − 13022
+ − 13023 fi
+ − 13024
444
+ − 13025 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
151
+ − 13026 echo " xemacs will be linked with \"$ALLOCA\""
+ − 13027 fi
444
+ − 13028 fi
149
+ − 13029
1332
+ − 13030 echo $ac_n "checking for working alloca in function calls""... $ac_c" 1>&6
+ − 13031 echo "configure:13033: checking for working alloca in function calls" >&5
+ − 13032 cat > conftest.$ac_ext <<EOF
+ − 13033 #line 13035 "configure"
+ − 13034 #include "confdefs.h"
+ − 13035
+ − 13036 #if defined (__CYGWIN__)
+ − 13037 #include <alloca.h>
+ − 13038 #elif defined (__GNUC__)
+ − 13039 #define alloca __builtin_alloca
+ − 13040 #elif defined (__DECC)
+ − 13041 #include <alloca.h>
+ − 13042 #pragma intrinsic(alloca)
+ − 13043 #elif defined (HAVE_ALLOCA_H)
+ − 13044 #include <alloca.h>
+ − 13045 #elif defined (_AIX)
+ − 13046 #pragma alloca
+ − 13047 #elif ! defined (alloca)
+ − 13048 #ifdef C_ALLOCA
+ − 13049 #define alloca xemacs_c_alloca
+ − 13050 #else
+ − 13051 void *alloca ();
+ − 13052 #endif /* C_ALLOCA */
+ − 13053 #endif /* !defined (alloca) */
+ − 13054
+ − 13055 void
+ − 13056 f1 (double a, void *ptr, int b)
+ − 13057 {
+ − 13058 unsigned char *ptr2 = (unsigned char *) ptr;
+ − 13059 if (ptr2[0] != 0xBF || ptr2[1] != 0xBF || ptr2[3000] != 0xBF)
+ − 13060 exit (1);
+ − 13061 if (a != 3.1415 || b != -5490)
+ − 13062 exit (1);
+ − 13063 }
+ − 13064
+ − 13065 int
+ − 13066 f2 (short c, void *ptr, long e)
+ − 13067 {
+ − 13068 unsigned char *ptr2 = (unsigned char *) ptr;
+ − 13069 if (ptr2[0] != 0xFB || ptr2[1] != 0xFB || ptr2[1000] != 0xFB)
+ − 13070 exit (1);
+ − 13071 if (c != 665 || e != 776776776)
+ − 13072 exit (1);
+ − 13073 f1 (3.1415, memset (alloca (3001), 0xBF, 3001), -5490);
+ − 13074 return 42;
+ − 13075 }
+ − 13076
+ − 13077 int
+ − 13078 main (int argc, char *argv[])
+ − 13079 {
+ − 13080 if (f2 (665, memset (alloca (1001), 0xFB, 1001), 776776776) != 42)
+ − 13081 return 1;
+ − 13082 return 0;
+ − 13083 }
+ − 13084
+ − 13085 EOF
+ − 13086 if { (eval echo configure:13088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
+ − 13087 then
+ − 13088 working_alloca_in_function_calls=yes
+ − 13089 else
+ − 13090 conftest_rc="$?"
+ − 13091 echo "configure: failed program was:" >&5
+ − 13092 cat conftest.$ac_ext >&5
+ − 13093 rm -fr conftest*
+ − 13094 working_alloca_in_function_calls=no
+ − 13095 fi
+ − 13096 rm -fr conftest*
+ − 13097 echo "$ac_t""$working_alloca_in_function_calls" 1>&6
+ − 13098 test "$working_alloca_in_function_calls" != "yes" && \
+ − 13099 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13100 Defining BROKEN_ALLOCA_IN_FUNCTION_CALLS
+ − 13101 EOF
+ − 13102 cat >> confdefs.h <<\EOF
+ − 13103 #define BROKEN_ALLOCA_IN_FUNCTION_CALLS 1
+ − 13104 EOF
+ − 13105 }
+ − 13106
+ − 13107
149
+ − 13108 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
1332
+ − 13109 echo "configure:13111: checking for working strcoll" >&5
+ − 13110
+ − 13111 cat > conftest.$ac_ext <<EOF
+ − 13112 #line 13114 "configure"
0
+ − 13113 #include "confdefs.h"
+ − 13114 #include <string.h>
+ − 13115 main ()
+ − 13116 {
+ − 13117 exit (strcoll ("abc", "def") >= 0 ||
+ − 13118 strcoll ("ABC", "DEF") >= 0 ||
+ − 13119 strcoll ("123", "456") >= 0);
+ − 13120 }
+ − 13121 EOF
1332
+ − 13122 if { (eval echo configure:13124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
+ − 13123 then
+ − 13124 ac_cv_func_strcoll_works=yes
+ − 13125 else
373
+ − 13126 conftest_rc="$?"
149
+ − 13127 echo "configure: failed program was:" >&5
+ − 13128 cat conftest.$ac_ext >&5
+ − 13129 rm -fr conftest*
+ − 13130 ac_cv_func_strcoll_works=no
0
+ − 13131 fi
+ − 13132 rm -fr conftest*
+ − 13133
149
+ − 13134 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
+ − 13135 if test $ac_cv_func_strcoll_works = yes; then
+ − 13136 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13137 Defining HAVE_STRCOLL
+ − 13138 EOF
+ − 13139 cat >> confdefs.h <<\EOF
+ − 13140 #define HAVE_STRCOLL 1
+ − 13141 EOF
+ − 13142 }
+ − 13143
+ − 13144 fi
+ − 13145
+ − 13146
163
+ − 13147 for ac_func in getpgrp
+ − 13148 do
+ − 13149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1332
+ − 13150 echo "configure:13152: checking for $ac_func" >&5
+ − 13151
+ − 13152 cat > conftest.$ac_ext <<EOF
+ − 13153 #line 13155 "configure"
163
+ − 13154 #include "confdefs.h"
+ − 13155 /* System header to define __stub macros and hopefully few prototypes,
+ − 13156 which can conflict with char $ac_func(); below. */
+ − 13157 #include <assert.h>
+ − 13158 /* Override any gcc2 internal prototype to avoid an error. */
+ − 13159 /* We use char because int might match the return type of a gcc2
+ − 13160 builtin and then its argument prototype would still apply. */
+ − 13161 char $ac_func();
+ − 13162
+ − 13163 int main() {
+ − 13164
+ − 13165 /* The GNU C library defines this for functions which it implements
+ − 13166 to always fail with ENOSYS. Some functions are actually named
+ − 13167 something starting with __ and the normal name is an alias. */
+ − 13168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 13169 choke me
+ − 13170 #else
+ − 13171 $ac_func();
+ − 13172 #endif
+ − 13173
+ − 13174 ; return 0; }
+ − 13175 EOF
1332
+ − 13176 if { (eval echo configure:13178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
163
+ − 13177 rm -rf conftest*
+ − 13178 eval "ac_cv_func_$ac_func=yes"
+ − 13179 else
+ − 13180 echo "configure: failed program was:" >&5
+ − 13181 cat conftest.$ac_ext >&5
+ − 13182 rm -rf conftest*
+ − 13183 eval "ac_cv_func_$ac_func=no"
+ − 13184 fi
+ − 13185 rm -f conftest*
+ − 13186
+ − 13187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 13188 echo "$ac_t""yes" 1>&6
+ − 13189 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 13190 { test "$extra_verbose" = "yes" && cat << EOF
+ − 13191 Defining $ac_tr_func
+ − 13192 EOF
+ − 13193 cat >> confdefs.h <<EOF
+ − 13194 #define $ac_tr_func 1
+ − 13195 EOF
+ − 13196 }
+ − 13197
+ − 13198 else
+ − 13199 echo "$ac_t""no" 1>&6
+ − 13200 fi
+ − 13201 done
+ − 13202
+ − 13203 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
1332
+ − 13204 echo "configure:13206: checking whether getpgrp takes no argument" >&5
+ − 13205
+ − 13206 cat > conftest.$ac_ext <<EOF
+ − 13207 #line 13209 "configure"
163
+ − 13208 #include "confdefs.h"
+ − 13209
+ − 13210 /*
+ − 13211 * If this system has a BSD-style getpgrp(),
+ − 13212 * which takes a pid argument, exit unsuccessfully.
+ − 13213 *
+ − 13214 * Snarfed from Chet Ramey's bash pgrp.c test program
+ − 13215 */
+ − 13216 #include <stdio.h>
+ − 13217 #include <sys/types.h>
+ − 13218
+ − 13219 int pid;
+ − 13220 int pg1, pg2, pg3, pg4;
+ − 13221 int ng, np, s, child;
+ − 13222
+ − 13223 main()
+ − 13224 {
+ − 13225 pid = getpid();
+ − 13226 pg1 = getpgrp(0);
+ − 13227 pg2 = getpgrp();
+ − 13228 pg3 = getpgrp(pid);
+ − 13229 pg4 = getpgrp(1);
+ − 13230
+ − 13231 /*
+ − 13232 * If all of these values are the same, it's pretty sure that
+ − 13233 * we're on a system that ignores getpgrp's first argument.
+ − 13234 */
+ − 13235 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
+ − 13236 exit(0);
+ − 13237
+ − 13238 child = fork();
+ − 13239 if (child < 0)
+ − 13240 exit(1);
+ − 13241 else if (child == 0) {
+ − 13242 np = getpid();
+ − 13243 /*
+ − 13244 * If this is Sys V, this will not work; pgrp will be
+ − 13245 * set to np because setpgrp just changes a pgrp to be
+ − 13246 * the same as the pid.
+ − 13247 */
+ − 13248 setpgrp(np, pg1);
+ − 13249 ng = getpgrp(0); /* Same result for Sys V and BSD */
+ − 13250 if (ng == pg1) {
+ − 13251 exit(1);
+ − 13252 } else {
+ − 13253 exit(0);
+ − 13254 }
+ − 13255 } else {
+ − 13256 wait(&s);
+ − 13257 exit(s>>8);
+ − 13258 }
+ − 13259 }
+ − 13260
+ − 13261 EOF
1332
+ − 13262 if { (eval echo configure:13264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
163
+ − 13263 then
+ − 13264 ac_cv_func_getpgrp_void=yes
+ − 13265 else
373
+ − 13266 conftest_rc="$?"
163
+ − 13267 echo "configure: failed program was:" >&5
+ − 13268 cat conftest.$ac_ext >&5
+ − 13269 rm -fr conftest*
+ − 13270 ac_cv_func_getpgrp_void=no
+ − 13271 fi
+ − 13272 rm -fr conftest*
+ − 13273
+ − 13274
+ − 13275 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
+ − 13276 if test $ac_cv_func_getpgrp_void = yes; then
+ − 13277 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13278 Defining GETPGRP_VOID
+ − 13279 EOF
+ − 13280 cat >> confdefs.h <<\EOF
+ − 13281 #define GETPGRP_VOID 1
+ − 13282 EOF
+ − 13283 }
+ − 13284
+ − 13285 fi
+ − 13286
+ − 13287
149
+ − 13288 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1332
+ − 13289 echo "configure:13291: checking for working mmap" >&5
155
+ − 13290 case "$opsys" in ultrix* ) have_mmap=no ;; *)
+ − 13291 cat > conftest.$ac_ext <<EOF
1332
+ − 13292 #line 13294 "configure"
153
+ − 13293 #include "confdefs.h"
+ − 13294 #include <stdio.h>
+ − 13295 #include <unistd.h>
149
+ − 13296 #include <fcntl.h>
+ − 13297 #include <sys/mman.h>
+ − 13298
153
+ − 13299 #ifndef MAP_VARIABLE
+ − 13300 #define MAP_VARIABLE 0
0
+ − 13301 #endif
149
+ − 13302
153
+ − 13303 #ifndef MAP_FAILED
+ − 13304 #define MAP_FAILED -1
+ − 13305 #endif
+ − 13306
+ − 13307 int main (int argc, char *argv[])
0
+ − 13308 {
153
+ − 13309 int fd = -1;
+ − 13310 caddr_t p;
+ − 13311 #ifndef MAP_ANONYMOUS
+ − 13312 fd = open ("/dev/zero", O_RDWR);
+ − 13313 if (fd < 0)
+ − 13314 return 1;
+ − 13315 #define MAP_ANONYMOUS 0
+ − 13316 #endif
+ − 13317 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
+ − 13318 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
+ − 13319 fd, 0) != (void *) MAP_FAILED)
+ − 13320 return 0;
+ − 13321 perror ("conftest: mmap failed");
+ − 13322 return 1;
+ − 13323 }
+ − 13324 EOF
1332
+ − 13325 if { (eval echo configure:13327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
+ − 13326 then
153
+ − 13327 have_mmap=yes
149
+ − 13328 else
373
+ − 13329 conftest_rc="$?"
149
+ − 13330 echo "configure: failed program was:" >&5
+ − 13331 cat conftest.$ac_ext >&5
+ − 13332 rm -fr conftest*
153
+ − 13333 have_mmap=no
149
+ − 13334 fi
155
+ − 13335 rm -fr conftest* ;;
+ − 13336 esac
153
+ − 13337 echo "$ac_t""$have_mmap" 1>&6
+ − 13338 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 13339 Defining HAVE_MMAP
+ − 13340 EOF
+ − 13341 cat >> confdefs.h <<\EOF
+ − 13342 #define HAVE_MMAP 1
+ − 13343 EOF
+ − 13344 }
+ − 13345
412
+ − 13346
535
+ − 13347 case "$opsys" in cygwin*)
462
+ − 13348 test "$rel_alloc" = "default" && rel_alloc=no ;;
+ − 13349 esac
442
+ − 13350 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
+ − 13351 if test "$rel_alloc $have_mmap" = "default yes"; then
+ − 13352 if test "$doug_lea_malloc" = "yes"; then
+ − 13353 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
1332
+ − 13354 echo "configure:13356: checking for M_MMAP_THRESHOLD" >&5
442
+ − 13355 cat > conftest.$ac_ext <<EOF
1332
+ − 13356 #line 13358 "configure"
442
+ − 13357 #include "confdefs.h"
+ − 13358 #include <malloc.h>
+ − 13359 int main() {
+ − 13360
+ − 13361 #ifndef M_MMAP_THRESHOLD
+ − 13362 #error No M_MMAP_THRESHOLD :-(
+ − 13363 !@+$%^&*_)(_ - unlikely to compile...
+ − 13364 #endif
+ − 13365
+ − 13366 ; return 0; }
+ − 13367 EOF
1332
+ − 13368 if { (eval echo configure:13370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
442
+ − 13369 rm -rf conftest*
+ − 13370 rel_alloc=no; echo "$ac_t""yes" 1>&6;
+ − 13371 else
+ − 13372 echo "configure: failed program was:" >&5
+ − 13373 cat conftest.$ac_ext >&5
+ − 13374 rm -rf conftest*
+ − 13375 rel_alloc=yes; echo "$ac_t""no" 1>&6;
+ − 13376 fi
+ − 13377 rm -f conftest*
+ − 13378 else
+ − 13379 rel_alloc=yes
+ − 13380 fi
+ − 13381 fi
149
+ − 13382 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13383 Defining REL_ALLOC
+ − 13384 EOF
+ − 13385 cat >> confdefs.h <<\EOF
+ − 13386 #define REL_ALLOC 1
+ − 13387 EOF
+ − 13388 }
+ − 13389
+ − 13390
175
+ − 13391 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
+ − 13392 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
1332
+ − 13393 echo "configure:13395: checking for termios.h" >&5
+ − 13394
+ − 13395 cat > conftest.$ac_ext <<EOF
+ − 13396 #line 13398 "configure"
175
+ − 13397 #include "confdefs.h"
+ − 13398 #include <termios.h>
+ − 13399 EOF
+ − 13400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1332
+ − 13401 { (eval echo configure:13403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
175
+ − 13403 if test -z "$ac_err"; then
+ − 13404 rm -rf conftest*
+ − 13405 eval "ac_cv_header_$ac_safe=yes"
+ − 13406 else
+ − 13407 echo "$ac_err" >&5
+ − 13408 echo "configure: failed program was:" >&5
+ − 13409 cat conftest.$ac_ext >&5
+ − 13410 rm -rf conftest*
+ − 13411 eval "ac_cv_header_$ac_safe=no"
+ − 13412 fi
+ − 13413 rm -f conftest*
+ − 13414 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13415 echo "$ac_t""yes" 1>&6
+ − 13416 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13417 Defining HAVE_TERMIOS
+ − 13418 EOF
+ − 13419 cat >> confdefs.h <<\EOF
+ − 13420 #define HAVE_TERMIOS 1
+ − 13421 EOF
+ − 13422 }
+ − 13423
+ − 13424 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13425 Defining SIGNALS_VIA_CHARACTERS
+ − 13426 EOF
+ − 13427 cat >> confdefs.h <<\EOF
+ − 13428 #define SIGNALS_VIA_CHARACTERS 1
+ − 13429 EOF
+ − 13430 }
+ − 13431
+ − 13432 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13433 Defining NO_TERMIO
+ − 13434 EOF
+ − 13435 cat >> confdefs.h <<\EOF
+ − 13436 #define NO_TERMIO 1
+ − 13437 EOF
+ − 13438 }
+ − 13439
+ − 13440 else
+ − 13441 echo "$ac_t""no" 1>&6
+ − 13442 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
+ − 13443 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
1332
+ − 13444 echo "configure:13446: checking for termio.h" >&5
+ − 13445
+ − 13446 cat > conftest.$ac_ext <<EOF
+ − 13447 #line 13449 "configure"
175
+ − 13448 #include "confdefs.h"
+ − 13449 #include <termio.h>
+ − 13450 EOF
+ − 13451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1332
+ − 13452 { (eval echo configure:13454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
175
+ − 13454 if test -z "$ac_err"; then
+ − 13455 rm -rf conftest*
+ − 13456 eval "ac_cv_header_$ac_safe=yes"
+ − 13457 else
+ − 13458 echo "$ac_err" >&5
+ − 13459 echo "configure: failed program was:" >&5
+ − 13460 cat conftest.$ac_ext >&5
+ − 13461 rm -rf conftest*
+ − 13462 eval "ac_cv_header_$ac_safe=no"
+ − 13463 fi
+ − 13464 rm -f conftest*
+ − 13465 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13466 echo "$ac_t""yes" 1>&6
+ − 13467 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13468 Defining HAVE_TERMIO
+ − 13469 EOF
+ − 13470 cat >> confdefs.h <<\EOF
+ − 13471 #define HAVE_TERMIO 1
+ − 13472 EOF
+ − 13473 }
+ − 13474
+ − 13475 else
+ − 13476 echo "$ac_t""no" 1>&6
+ − 13477 fi
+ − 13478
+ − 13479 fi
+ − 13480
+ − 13481
+ − 13482
149
+ − 13483 echo $ac_n "checking for socket""... $ac_c" 1>&6
1332
+ − 13484 echo "configure:13486: checking for socket" >&5
+ − 13485
+ − 13486 cat > conftest.$ac_ext <<EOF
+ − 13487 #line 13489 "configure"
149
+ − 13488 #include "confdefs.h"
+ − 13489 /* System header to define __stub macros and hopefully few prototypes,
+ − 13490 which can conflict with char socket(); below. */
+ − 13491 #include <assert.h>
+ − 13492 /* Override any gcc2 internal prototype to avoid an error. */
+ − 13493 /* We use char because int might match the return type of a gcc2
+ − 13494 builtin and then its argument prototype would still apply. */
+ − 13495 char socket();
+ − 13496
+ − 13497 int main() {
+ − 13498
0
+ − 13499 /* The GNU C library defines this for functions which it implements
+ − 13500 to always fail with ENOSYS. Some functions are actually named
+ − 13501 something starting with __ and the normal name is an alias. */
+ − 13502 #if defined (__stub_socket) || defined (__stub___socket)
+ − 13503 choke me
+ − 13504 #else
149
+ − 13505 socket();
0
+ − 13506 #endif
149
+ − 13507
0
+ − 13508 ; return 0; }
+ − 13509 EOF
1332
+ − 13510 if { (eval echo configure:13512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 13511 rm -rf conftest*
+ − 13512 eval "ac_cv_func_socket=yes"
+ − 13513 else
+ − 13514 echo "configure: failed program was:" >&5
+ − 13515 cat conftest.$ac_ext >&5
+ − 13516 rm -rf conftest*
+ − 13517 eval "ac_cv_func_socket=no"
+ − 13518 fi
+ − 13519 rm -f conftest*
+ − 13520
+ − 13521 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
+ − 13522 echo "$ac_t""yes" 1>&6
+ − 13523 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
+ − 13524 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
1332
+ − 13525 echo "configure:13527: checking for netinet/in.h" >&5
+ − 13526
+ − 13527 cat > conftest.$ac_ext <<EOF
+ − 13528 #line 13530 "configure"
0
+ − 13529 #include "confdefs.h"
+ − 13530 #include <netinet/in.h>
+ − 13531 EOF
149
+ − 13532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1332
+ − 13533 { (eval echo configure:13535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13534 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 13535 if test -z "$ac_err"; then
149
+ − 13536 rm -rf conftest*
+ − 13537 eval "ac_cv_header_$ac_safe=yes"
+ − 13538 else
+ − 13539 echo "$ac_err" >&5
+ − 13540 echo "configure: failed program was:" >&5
+ − 13541 cat conftest.$ac_ext >&5
+ − 13542 rm -rf conftest*
+ − 13543 eval "ac_cv_header_$ac_safe=no"
+ − 13544 fi
+ − 13545 rm -f conftest*
+ − 13546 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13547 echo "$ac_t""yes" 1>&6
+ − 13548 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
+ − 13549 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
1332
+ − 13550 echo "configure:13552: checking for arpa/inet.h" >&5
+ − 13551
+ − 13552 cat > conftest.$ac_ext <<EOF
+ − 13553 #line 13555 "configure"
0
+ − 13554 #include "confdefs.h"
+ − 13555 #include <arpa/inet.h>
+ − 13556 EOF
149
+ − 13557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1332
+ − 13558 { (eval echo configure:13560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13559 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 13560 if test -z "$ac_err"; then
149
+ − 13561 rm -rf conftest*
+ − 13562 eval "ac_cv_header_$ac_safe=yes"
+ − 13563 else
+ − 13564 echo "$ac_err" >&5
+ − 13565 echo "configure: failed program was:" >&5
+ − 13566 cat conftest.$ac_ext >&5
+ − 13567 rm -rf conftest*
+ − 13568 eval "ac_cv_header_$ac_safe=no"
+ − 13569 fi
+ − 13570 rm -f conftest*
+ − 13571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13572 echo "$ac_t""yes" 1>&6
0
+ − 13573
149
+ − 13574 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13575 Defining HAVE_SOCKETS
+ − 13576 EOF
+ − 13577 cat >> confdefs.h <<\EOF
+ − 13578 #define HAVE_SOCKETS 1
+ − 13579 EOF
+ − 13580 }
+ − 13581
+ − 13582 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
1332
+ − 13583 echo "configure:13585: checking "for sun_len member in struct sockaddr_un"" >&5
149
+ − 13584 cat > conftest.$ac_ext <<EOF
1332
+ − 13585 #line 13587 "configure"
149
+ − 13586 #include "confdefs.h"
+ − 13587
0
+ − 13588 #include <sys/types.h>
149
+ − 13589 #include <sys/socket.h>
+ − 13590 #include <sys/un.h>
+ − 13591
+ − 13592 int main() {
+ − 13593 static struct sockaddr_un x; x.sun_len = 1;
+ − 13594 ; return 0; }
+ − 13595 EOF
1332
+ − 13596 if { (eval echo configure:13598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 13597 rm -rf conftest*
+ − 13598 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13599 Defining HAVE_SOCKADDR_SUN_LEN
+ − 13600 EOF
+ − 13601 cat >> confdefs.h <<\EOF
+ − 13602 #define HAVE_SOCKADDR_SUN_LEN 1
+ − 13603 EOF
+ − 13604 }
+ − 13605
+ − 13606 else
+ − 13607 echo "configure: failed program was:" >&5
+ − 13608 cat conftest.$ac_ext >&5
+ − 13609 rm -rf conftest*
+ − 13610 echo "$ac_t""no" 1>&6
+ − 13611 fi
+ − 13612 rm -f conftest*
259
+ − 13613 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
1332
+ − 13614 echo "configure:13616: checking "for ip_mreq struct in netinet/in.h"" >&5
259
+ − 13615 cat > conftest.$ac_ext <<EOF
1332
+ − 13616 #line 13618 "configure"
284
+ − 13617 #include "confdefs.h"
+ − 13618
+ − 13619 #include <sys/types.h>
259
+ − 13620 #include <netinet/in.h>
+ − 13621
+ − 13622 int main() {
+ − 13623 static struct ip_mreq x;
+ − 13624 ; return 0; }
+ − 13625 EOF
1332
+ − 13626 if { (eval echo configure:13628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
259
+ − 13627 rm -rf conftest*
+ − 13628 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13629 Defining HAVE_MULTICAST
+ − 13630 EOF
+ − 13631 cat >> confdefs.h <<\EOF
+ − 13632 #define HAVE_MULTICAST 1
+ − 13633 EOF
+ − 13634 }
+ − 13635
+ − 13636 else
+ − 13637 echo "configure: failed program was:" >&5
+ − 13638 cat conftest.$ac_ext >&5
+ − 13639 rm -rf conftest*
+ − 13640 echo "$ac_t""no" 1>&6
+ − 13641 fi
+ − 13642 rm -f conftest*
149
+ − 13643 else
+ − 13644 echo "$ac_t""no" 1>&6
+ − 13645 fi
+ − 13646
+ − 13647 else
+ − 13648 echo "$ac_t""no" 1>&6
+ − 13649 fi
+ − 13650
+ − 13651 else
+ − 13652 echo "$ac_t""no" 1>&6
+ − 13653 fi
+ − 13654
+ − 13655
+ − 13656 echo $ac_n "checking for msgget""... $ac_c" 1>&6
1332
+ − 13657 echo "configure:13659: checking for msgget" >&5
+ − 13658
+ − 13659 cat > conftest.$ac_ext <<EOF
+ − 13660 #line 13662 "configure"
149
+ − 13661 #include "confdefs.h"
+ − 13662 /* System header to define __stub macros and hopefully few prototypes,
+ − 13663 which can conflict with char msgget(); below. */
+ − 13664 #include <assert.h>
+ − 13665 /* Override any gcc2 internal prototype to avoid an error. */
+ − 13666 /* We use char because int might match the return type of a gcc2
+ − 13667 builtin and then its argument prototype would still apply. */
+ − 13668 char msgget();
+ − 13669
+ − 13670 int main() {
+ − 13671
0
+ − 13672 /* The GNU C library defines this for functions which it implements
+ − 13673 to always fail with ENOSYS. Some functions are actually named
+ − 13674 something starting with __ and the normal name is an alias. */
+ − 13675 #if defined (__stub_msgget) || defined (__stub___msgget)
+ − 13676 choke me
+ − 13677 #else
149
+ − 13678 msgget();
0
+ − 13679 #endif
149
+ − 13680
0
+ − 13681 ; return 0; }
+ − 13682 EOF
1332
+ − 13683 if { (eval echo configure:13685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 13684 rm -rf conftest*
+ − 13685 eval "ac_cv_func_msgget=yes"
+ − 13686 else
+ − 13687 echo "configure: failed program was:" >&5
+ − 13688 cat conftest.$ac_ext >&5
+ − 13689 rm -rf conftest*
+ − 13690 eval "ac_cv_func_msgget=no"
+ − 13691 fi
+ − 13692 rm -f conftest*
+ − 13693
+ − 13694 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
+ − 13695 echo "$ac_t""yes" 1>&6
+ − 13696 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
+ − 13697 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
1332
+ − 13698 echo "configure:13700: checking for sys/ipc.h" >&5
+ − 13699
+ − 13700 cat > conftest.$ac_ext <<EOF
+ − 13701 #line 13703 "configure"
0
+ − 13702 #include "confdefs.h"
+ − 13703 #include <sys/ipc.h>
+ − 13704 EOF
149
+ − 13705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1332
+ − 13706 { (eval echo configure:13708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 13708 if test -z "$ac_err"; then
149
+ − 13709 rm -rf conftest*
+ − 13710 eval "ac_cv_header_$ac_safe=yes"
+ − 13711 else
+ − 13712 echo "$ac_err" >&5
+ − 13713 echo "configure: failed program was:" >&5
+ − 13714 cat conftest.$ac_ext >&5
+ − 13715 rm -rf conftest*
+ − 13716 eval "ac_cv_header_$ac_safe=no"
+ − 13717 fi
+ − 13718 rm -f conftest*
+ − 13719 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13720 echo "$ac_t""yes" 1>&6
+ − 13721 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
+ − 13722 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
1332
+ − 13723 echo "configure:13725: checking for sys/msg.h" >&5
+ − 13724
+ − 13725 cat > conftest.$ac_ext <<EOF
+ − 13726 #line 13728 "configure"
0
+ − 13727 #include "confdefs.h"
+ − 13728 #include <sys/msg.h>
+ − 13729 EOF
149
+ − 13730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1332
+ − 13731 { (eval echo configure:13733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 13733 if test -z "$ac_err"; then
149
+ − 13734 rm -rf conftest*
+ − 13735 eval "ac_cv_header_$ac_safe=yes"
+ − 13736 else
+ − 13737 echo "$ac_err" >&5
+ − 13738 echo "configure: failed program was:" >&5
+ − 13739 cat conftest.$ac_ext >&5
+ − 13740 rm -rf conftest*
+ − 13741 eval "ac_cv_header_$ac_safe=no"
+ − 13742 fi
+ − 13743 rm -f conftest*
+ − 13744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13745 echo "$ac_t""yes" 1>&6
+ − 13746 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13747 Defining HAVE_SYSVIPC
+ − 13748 EOF
+ − 13749 cat >> confdefs.h <<\EOF
+ − 13750 #define HAVE_SYSVIPC 1
+ − 13751 EOF
+ − 13752 }
+ − 13753
+ − 13754 else
+ − 13755 echo "$ac_t""no" 1>&6
+ − 13756 fi
+ − 13757
+ − 13758 else
+ − 13759 echo "$ac_t""no" 1>&6
+ − 13760 fi
+ − 13761
+ − 13762 else
+ − 13763 echo "$ac_t""no" 1>&6
+ − 13764 fi
+ − 13765
+ − 13766
+ − 13767 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
+ − 13768 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
1332
+ − 13769 echo "configure:13771: checking for dirent.h" >&5
+ − 13770
+ − 13771 cat > conftest.$ac_ext <<EOF
+ − 13772 #line 13774 "configure"
0
+ − 13773 #include "confdefs.h"
+ − 13774 #include <dirent.h>
+ − 13775 EOF
149
+ − 13776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1332
+ − 13777 { (eval echo configure:13779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 13779 if test -z "$ac_err"; then
+ − 13780 rm -rf conftest*
149
+ − 13781 eval "ac_cv_header_$ac_safe=yes"
+ − 13782 else
+ − 13783 echo "$ac_err" >&5
+ − 13784 echo "configure: failed program was:" >&5
+ − 13785 cat conftest.$ac_ext >&5
+ − 13786 rm -rf conftest*
+ − 13787 eval "ac_cv_header_$ac_safe=no"
+ − 13788 fi
+ − 13789 rm -f conftest*
+ − 13790 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13791 echo "$ac_t""yes" 1>&6
+ − 13792 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13793 Defining SYSV_SYSTEM_DIR
+ − 13794 EOF
+ − 13795 cat >> confdefs.h <<\EOF
+ − 13796 #define SYSV_SYSTEM_DIR 1
+ − 13797 EOF
+ − 13798 }
+ − 13799
+ − 13800 else
+ − 13801 echo "$ac_t""no" 1>&6
+ − 13802 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
+ − 13803 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
1332
+ − 13804 echo "configure:13806: checking for sys/dir.h" >&5
+ − 13805
+ − 13806 cat > conftest.$ac_ext <<EOF
+ − 13807 #line 13809 "configure"
0
+ − 13808 #include "confdefs.h"
+ − 13809 #include <sys/dir.h>
+ − 13810 EOF
149
+ − 13811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1332
+ − 13812 { (eval echo configure:13814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 13814 if test -z "$ac_err"; then
149
+ − 13815 rm -rf conftest*
+ − 13816 eval "ac_cv_header_$ac_safe=yes"
+ − 13817 else
+ − 13818 echo "$ac_err" >&5
+ − 13819 echo "configure: failed program was:" >&5
+ − 13820 cat conftest.$ac_ext >&5
+ − 13821 rm -rf conftest*
+ − 13822 eval "ac_cv_header_$ac_safe=no"
+ − 13823 fi
+ − 13824 rm -f conftest*
+ − 13825 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13826 echo "$ac_t""yes" 1>&6
0
+ − 13827 :
+ − 13828 else
149
+ − 13829 echo "$ac_t""no" 1>&6
+ − 13830 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13831 Defining NONSYSTEM_DIR_LIBRARY
+ − 13832 EOF
+ − 13833 cat >> confdefs.h <<\EOF
+ − 13834 #define NONSYSTEM_DIR_LIBRARY 1
+ − 13835 EOF
+ − 13836 }
+ − 13837
+ − 13838 fi
+ − 13839
+ − 13840 fi
+ − 13841
+ − 13842
+ − 13843 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
+ − 13844 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
1332
+ − 13845 echo "configure:13847: checking for nlist.h" >&5
+ − 13846
+ − 13847 cat > conftest.$ac_ext <<EOF
+ − 13848 #line 13850 "configure"
0
+ − 13849 #include "confdefs.h"
+ − 13850 #include <nlist.h>
+ − 13851 EOF
149
+ − 13852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1332
+ − 13853 { (eval echo configure:13855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 13855 if test -z "$ac_err"; then
+ − 13856 rm -rf conftest*
149
+ − 13857 eval "ac_cv_header_$ac_safe=yes"
+ − 13858 else
+ − 13859 echo "$ac_err" >&5
+ − 13860 echo "configure: failed program was:" >&5
+ − 13861 cat conftest.$ac_ext >&5
+ − 13862 rm -rf conftest*
+ − 13863 eval "ac_cv_header_$ac_safe=no"
+ − 13864 fi
+ − 13865 rm -f conftest*
+ − 13866 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13867 echo "$ac_t""yes" 1>&6
+ − 13868 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13869 Defining NLIST_STRUCT
+ − 13870 EOF
+ − 13871 cat >> confdefs.h <<\EOF
+ − 13872 #define NLIST_STRUCT 1
+ − 13873 EOF
+ − 13874 }
+ − 13875
+ − 13876 else
+ − 13877 echo "$ac_t""no" 1>&6
+ − 13878 fi
+ − 13879
+ − 13880
0
+ − 13881
149
+ − 13882 echo "checking "for sound support"" 1>&6
1332
+ − 13883 echo "configure:13885: checking "for sound support"" >&5
155
+ − 13884 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
+ − 13885
149
+ − 13886 if test "$with_native_sound" != "no"; then
155
+ − 13887 if test -n "$native_sound_lib"; then
+ − 13888 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
+ − 13889 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
1332
+ − 13890 echo "configure:13892: checking for multimedia/audio_device.h" >&5
+ − 13891
+ − 13892 cat > conftest.$ac_ext <<EOF
+ − 13893 #line 13895 "configure"
155
+ − 13894 #include "confdefs.h"
+ − 13895 #include <multimedia/audio_device.h>
+ − 13896 EOF
+ − 13897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1332
+ − 13898 { (eval echo configure:13900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
155
+ − 13900 if test -z "$ac_err"; then
+ − 13901 rm -rf conftest*
+ − 13902 eval "ac_cv_header_$ac_safe=yes"
+ − 13903 else
+ − 13904 echo "$ac_err" >&5
+ − 13905 echo "configure: failed program was:" >&5
+ − 13906 cat conftest.$ac_ext >&5
+ − 13907 rm -rf conftest*
+ − 13908 eval "ac_cv_header_$ac_safe=no"
+ − 13909 fi
+ − 13910 rm -f conftest*
+ − 13911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13912 echo "$ac_t""yes" 1>&6
+ − 13913 sound_found=yes sound_cflags=""
+ − 13914 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
+ − 13915 echo " xemacs will be linked with \"sunplay.o\""
+ − 13916 fi
+ − 13917 else
+ − 13918 echo "$ac_t""no" 1>&6
+ − 13919 fi
+ − 13920
+ − 13921 fi
+ − 13922
+ − 13923 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
+ − 13924 sound_found=yes
151
+ − 13925 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
+ − 13926 echo " xemacs will be linked with \"sunplay.o\""
+ − 13927 fi
149
+ − 13928 if test -d "/usr/demo/SOUND/include"
+ − 13929 then sound_cflags="-I/usr/demo/SOUND/include"
+ − 13930 else sound_cflags="-I/usr/demo/SOUND"
+ − 13931 fi
+ − 13932 if test -z "$native_sound_lib" ; then
+ − 13933 if test -r "/usr/demo/SOUND/lib/libaudio.a"
+ − 13934 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
+ − 13935 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
+ − 13936 fi
+ − 13937 fi
155
+ − 13938 fi
+ − 13939
+ − 13940 if test -z "$sound_found"; then
+ − 13941 case "$canonical" in
149
+ − 13942 *-sgi-* )
155
+ − 13943 if test -z "$native_sound_lib"; then
+ − 13944
149
+ − 13945 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
1332
+ − 13946 echo "configure:13948: checking for ALopenport in -laudio" >&5
149
+ − 13947 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
+ − 13948
+ − 13949 xe_check_libs=" -laudio "
+ − 13950 cat > conftest.$ac_ext <<EOF
1332
+ − 13951 #line 13953 "configure"
149
+ − 13952 #include "confdefs.h"
+ − 13953 /* Override any gcc2 internal prototype to avoid an error. */
+ − 13954 /* We use char because int might match the return type of a gcc2
+ − 13955 builtin and then its argument prototype would still apply. */
+ − 13956 char ALopenport();
+ − 13957
+ − 13958 int main() {
+ − 13959 ALopenport()
+ − 13960 ; return 0; }
+ − 13961 EOF
1332
+ − 13962 if { (eval echo configure:13964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 13963 rm -rf conftest*
+ − 13964 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 13965 else
+ − 13966 echo "configure: failed program was:" >&5
+ − 13967 cat conftest.$ac_ext >&5
+ − 13968 rm -rf conftest*
+ − 13969 eval "ac_cv_lib_$ac_lib_var=no"
+ − 13970 fi
+ − 13971 rm -f conftest*
+ − 13972 xe_check_libs=""
+ − 13973
151
+ − 13974 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 13975 echo "$ac_t""yes" 1>&6
+ − 13976 native_sound_lib="-laudio"
+ − 13977 else
+ − 13978 echo "$ac_t""no" 1>&6
+ − 13979 fi
+ − 13980
+ − 13981
155
+ − 13982 fi
+ − 13983 if test -n "$native_sound_lib"; then
+ − 13984 sound_found=yes sound_cflags=""
151
+ − 13985 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
+ − 13986 echo " xemacs will be linked with \"sgiplay.o\""
+ − 13987 fi
149
+ − 13988 fi ;;
+ − 13989 hppa*-hp-hpux* )
155
+ − 13990 if test -z "$native_sound_lib"; then
+ − 13991
149
+ − 13992 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
1332
+ − 13993 echo "configure:13995: checking for AOpenAudio in -lAlib" >&5
149
+ − 13994 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
+ − 13995
+ − 13996 xe_check_libs=" -lAlib "
+ − 13997 cat > conftest.$ac_ext <<EOF
1332
+ − 13998 #line 14000 "configure"
149
+ − 13999 #include "confdefs.h"
+ − 14000 /* Override any gcc2 internal prototype to avoid an error. */
+ − 14001 /* We use char because int might match the return type of a gcc2
+ − 14002 builtin and then its argument prototype would still apply. */
+ − 14003 char AOpenAudio();
+ − 14004
+ − 14005 int main() {
+ − 14006 AOpenAudio()
+ − 14007 ; return 0; }
+ − 14008 EOF
1332
+ − 14009 if { (eval echo configure:14011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 14010 rm -rf conftest*
+ − 14011 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 14012 else
+ − 14013 echo "configure: failed program was:" >&5
+ − 14014 cat conftest.$ac_ext >&5
+ − 14015 rm -rf conftest*
+ − 14016 eval "ac_cv_lib_$ac_lib_var=no"
+ − 14017 fi
+ − 14018 rm -f conftest*
+ − 14019 xe_check_libs=""
+ − 14020
151
+ − 14021 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 14022 echo "$ac_t""yes" 1>&6
+ − 14023 native_sound_lib="-lAlib"
+ − 14024 else
+ − 14025 echo "$ac_t""no" 1>&6
+ − 14026 fi
+ − 14027
+ − 14028
155
+ − 14029 fi
+ − 14030 if test -n "$native_sound_lib"; then
+ − 14031 sound_found=yes
151
+ − 14032 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
+ − 14033 echo " xemacs will be linked with \"hpplay.o\""
+ − 14034 fi
169
+ − 14035 if test "$GCC" = "yes" # Kludge city
149
+ − 14036 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
+ − 14037 else sound_cflags="+e -I/usr/audio/examples"
+ − 14038 fi
+ − 14039 fi ;;
0
+ − 14040 esac
+ − 14041 fi
149
+ − 14042
155
+ − 14043 if test -z "$sound_found"; then
553
+ − 14044 if test "$with_msw" = "yes"; then
594
+ − 14045 sound_found=yes
+ − 14046 native_sound_lib=
+ − 14047 extra_objs="$extra_objs ntplay.o" && if test "$extra_verbose" = "yes"; then
+ − 14048 echo " xemacs will be linked with \"ntplay.o\""
+ − 14049 fi
553
+ − 14050 fi
+ − 14051 fi
+ − 14052
+ − 14053 if test -z "$sound_found"; then
149
+ − 14054 for dir in "machine" "sys" "linux"; do
+ − 14055 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
+ − 14056 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
1332
+ − 14057 echo "configure:14059: checking for ${dir}/soundcard.h" >&5
+ − 14058
+ − 14059 cat > conftest.$ac_ext <<EOF
+ − 14060 #line 14062 "configure"
149
+ − 14061 #include "confdefs.h"
+ − 14062 #include <${dir}/soundcard.h>
+ − 14063 EOF
+ − 14064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1332
+ − 14065 { (eval echo configure:14067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 14066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 14067 if test -z "$ac_err"; then
+ − 14068 rm -rf conftest*
+ − 14069 eval "ac_cv_header_$ac_safe=yes"
+ − 14070 else
+ − 14071 echo "$ac_err" >&5
+ − 14072 echo "configure: failed program was:" >&5
+ − 14073 cat conftest.$ac_ext >&5
+ − 14074 rm -rf conftest*
+ − 14075 eval "ac_cv_header_$ac_safe=no"
+ − 14076 fi
+ − 14077 rm -f conftest*
+ − 14078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 14079 echo "$ac_t""yes" 1>&6
+ − 14080 sound_found=yes
426
+ − 14081 need_miscplay=yes
151
+ − 14082 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
+ − 14083 echo " xemacs will be linked with \"linuxplay.o\""
+ − 14084 fi
149
+ − 14085 { test "$extra_verbose" = "yes" && cat << EOF
442
+ − 14086 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
+ − 14087 EOF
+ − 14088 cat >> confdefs.h <<EOF
+ − 14089 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
149
+ − 14090 EOF
+ − 14091 }
+ − 14092
+ − 14093 break
+ − 14094 else
+ − 14095 echo "$ac_t""no" 1>&6
+ − 14096 fi
+ − 14097
+ − 14098 done
100
+ − 14099 fi
149
+ − 14100
+ − 14101 test "$sound_found" = "yes" && with_native_sound=yes
+ − 14102 fi
+ − 14103
+ − 14104 if test "$with_native_sound" = "yes"; then
+ − 14105 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 14106 Defining HAVE_NATIVE_SOUND
+ − 14107 EOF
+ − 14108 cat >> confdefs.h <<\EOF
+ − 14109 #define HAVE_NATIVE_SOUND 1
+ − 14110 EOF
+ − 14111 }
+ − 14112
151
+ − 14113 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
149
+ − 14114 fi
+ − 14115
432
+ − 14116 if test "$with_nas_sound" != "no"; then
+ − 14117 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
+ − 14118 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
1332
+ − 14119 echo "configure:14121: checking for audio/audiolib.h" >&5
+ − 14120
+ − 14121 cat > conftest.$ac_ext <<EOF
+ − 14122 #line 14124 "configure"
432
+ − 14123 #include "confdefs.h"
+ − 14124 #include <audio/audiolib.h>
+ − 14125 EOF
+ − 14126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1332
+ − 14127 { (eval echo configure:14129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
432
+ − 14128 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 14129 if test -z "$ac_err"; then
+ − 14130 rm -rf conftest*
+ − 14131 eval "ac_cv_header_$ac_safe=yes"
+ − 14132 else
+ − 14133 echo "$ac_err" >&5
+ − 14134 echo "configure: failed program was:" >&5
+ − 14135 cat conftest.$ac_ext >&5
+ − 14136 rm -rf conftest*
+ − 14137 eval "ac_cv_header_$ac_safe=no"
+ − 14138 fi
+ − 14139 rm -f conftest*
+ − 14140 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 14141 echo "$ac_t""yes" 1>&6
+ − 14142
+ − 14143
+ − 14144 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
1332
+ − 14145 echo "configure:14147: checking for AuOpenServer in -laudio" >&5
432
+ − 14146 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
+ − 14147
+ − 14148 xe_check_libs=" -laudio "
+ − 14149 cat > conftest.$ac_ext <<EOF
1332
+ − 14150 #line 14152 "configure"
432
+ − 14151 #include "confdefs.h"
+ − 14152 /* Override any gcc2 internal prototype to avoid an error. */
+ − 14153 /* We use char because int might match the return type of a gcc2
+ − 14154 builtin and then its argument prototype would still apply. */
+ − 14155 char AuOpenServer();
+ − 14156
+ − 14157 int main() {
+ − 14158 AuOpenServer()
+ − 14159 ; return 0; }
+ − 14160 EOF
1332
+ − 14161 if { (eval echo configure:14163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
432
+ − 14162 rm -rf conftest*
+ − 14163 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 14164 else
+ − 14165 echo "configure: failed program was:" >&5
+ − 14166 cat conftest.$ac_ext >&5
+ − 14167 rm -rf conftest*
+ − 14168 eval "ac_cv_lib_$ac_lib_var=no"
+ − 14169 fi
+ − 14170 rm -f conftest*
+ − 14171 xe_check_libs=""
+ − 14172
+ − 14173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 14174 echo "$ac_t""yes" 1>&6
+ − 14175 have_nas_sound=yes
+ − 14176 else
+ − 14177 echo "$ac_t""no" 1>&6
+ − 14178 fi
+ − 14179
+ − 14180
+ − 14181 else
+ − 14182 echo "$ac_t""no" 1>&6
+ − 14183 fi
+ − 14184
+ − 14185 if test "$have_nas_sound" = "yes"; then
+ − 14186 with_nas_sound=yes
+ − 14187 { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 14188 Defining HAVE_NAS_SOUND
+ − 14189 EOF
+ − 14190 cat >> confdefs.h <<\EOF
+ − 14191 #define HAVE_NAS_SOUND 1
+ − 14192 EOF
+ − 14193 }
+ − 14194
432
+ − 14195 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
151
+ − 14196 echo " xemacs will be linked with \"nas.o\""
+ − 14197 fi
432
+ − 14198 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
+ − 14199 cat > conftest.$ac_ext <<EOF
1332
+ − 14200 #line 14202 "configure"
149
+ − 14201 #include "confdefs.h"
+ − 14202 #include <audio/Xtutil.h>
+ − 14203 EOF
+ − 14204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 14205 egrep "AuXtErrorJump" >/dev/null 2>&1; then
+ − 14206 :
+ − 14207 else
+ − 14208 rm -rf conftest*
432
+ − 14209 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 14210 Defining NAS_NO_ERROR_JUMP
+ − 14211 EOF
+ − 14212 cat >> confdefs.h <<\EOF
+ − 14213 #define NAS_NO_ERROR_JUMP 1
+ − 14214 EOF
+ − 14215 }
+ − 14216
+ − 14217 fi
+ − 14218 rm -f conftest*
+ − 14219
432
+ − 14220 else
+ − 14221 test "$with_nas_sound" = "yes" && \
+ − 14222 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
+ − 14223 with_nas_sound=no
+ − 14224 fi
+ − 14225 fi
+ − 14226
+ − 14227 if test "$with_esd_sound" != "no"; then
+ − 14228 # Extract the first word of "esd-config", so it can be a program name with args.
426
+ − 14229 set dummy esd-config; ac_word=$2
+ − 14230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1332
+ − 14231 echo "configure:14233: checking for $ac_word" >&5
426
+ − 14232
+ − 14233 if test -n "$have_esd_config"; then
+ − 14234 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
+ − 14235 else
+ − 14236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 14237 ac_dummy="$PATH"
+ − 14238 for ac_dir in $ac_dummy; do
+ − 14239 test -z "$ac_dir" && ac_dir=.
+ − 14240 if test -f $ac_dir/$ac_word; then
+ − 14241 ac_cv_prog_have_esd_config="yes"
+ − 14242 break
+ − 14243 fi
+ − 14244 done
+ − 14245 IFS="$ac_save_ifs"
+ − 14246 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
+ − 14247 fi
+ − 14248 have_esd_config="$ac_cv_prog_have_esd_config"
+ − 14249 if test -n "$have_esd_config"; then
+ − 14250 echo "$ac_t""$have_esd_config" 1>&6
+ − 14251 else
+ − 14252 echo "$ac_t""no" 1>&6
+ − 14253 fi
+ − 14254
432
+ − 14255 if test "$have_esd_config" = "yes"; then
+ − 14256 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
+ − 14257 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi
+ − 14258 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
+ − 14259 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
1332
+ − 14260 echo "configure:14262: checking for esd_play_stream" >&5
+ − 14261
+ − 14262 cat > conftest.$ac_ext <<EOF
+ − 14263 #line 14265 "configure"
432
+ − 14264 #include "confdefs.h"
+ − 14265 /* System header to define __stub macros and hopefully few prototypes,
+ − 14266 which can conflict with char esd_play_stream(); below. */
+ − 14267 #include <assert.h>
+ − 14268 /* Override any gcc2 internal prototype to avoid an error. */
+ − 14269 /* We use char because int might match the return type of a gcc2
+ − 14270 builtin and then its argument prototype would still apply. */
+ − 14271 char esd_play_stream();
+ − 14272
+ − 14273 int main() {
+ − 14274
+ − 14275 /* The GNU C library defines this for functions which it implements
+ − 14276 to always fail with ENOSYS. Some functions are actually named
+ − 14277 something starting with __ and the normal name is an alias. */
+ − 14278 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
+ − 14279 choke me
+ − 14280 #else
+ − 14281 esd_play_stream();
+ − 14282 #endif
+ − 14283
+ − 14284 ; return 0; }
+ − 14285 EOF
1332
+ − 14286 if { (eval echo configure:14288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
432
+ − 14287 rm -rf conftest*
+ − 14288 eval "ac_cv_func_esd_play_stream=yes"
+ − 14289 else
+ − 14290 echo "configure: failed program was:" >&5
+ − 14291 cat conftest.$ac_ext >&5
+ − 14292 rm -rf conftest*
+ − 14293 eval "ac_cv_func_esd_play_stream=no"
+ − 14294 fi
+ − 14295 rm -f conftest*
+ − 14296
+ − 14297 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
+ − 14298 echo "$ac_t""yes" 1>&6
+ − 14299 have_esd_sound=yes
+ − 14300 else
+ − 14301 echo "$ac_t""no" 1>&6
+ − 14302 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
+ − 14303 fi
+ − 14304
+ − 14305 fi
+ − 14306
+ − 14307 if test "$have_esd_sound" = "yes"; then
+ − 14308 with_esd_sound=yes
+ − 14309 need_miscplay=yes
+ − 14310 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
+ − 14311 echo " xemacs will be linked with \"esd.o\""
+ − 14312 fi
426
+ − 14313 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 14314 Defining HAVE_ESD_SOUND
+ − 14315 EOF
+ − 14316 cat >> confdefs.h <<\EOF
+ − 14317 #define HAVE_ESD_SOUND 1
+ − 14318 EOF
+ − 14319 }
+ − 14320
432
+ − 14321 else
+ − 14322 test "$with_esd_sound" = "yes" && \
+ − 14323 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
+ − 14324 with_esd_sound=no
+ − 14325 fi
+ − 14326 fi
+ − 14327
+ − 14328 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
426
+ − 14329 echo " xemacs will be linked with \"miscplay.o\""
+ − 14330 fi
149
+ − 14331
+ − 14332
+ − 14333 test -z "$with_tty" && with_tty=yes
+ − 14334
+ − 14335 if test "$with_tty" = "yes" ; then
151
+ − 14336 echo "checking for TTY-related features" 1>&6
1332
+ − 14337 echo "configure:14339: checking for TTY-related features" >&5
149
+ − 14338 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 14339 Defining HAVE_TTY
+ − 14340 EOF
+ − 14341 cat >> confdefs.h <<\EOF
+ − 14342 #define HAVE_TTY 1
+ − 14343 EOF
+ − 14344 }
+ − 14345
+ − 14346
+ − 14347 if test -z "$with_ncurses"; then
70
+ − 14348
151
+ − 14349 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
1332
+ − 14350 echo "configure:14352: checking for tgetent in -lncurses" >&5
151
+ − 14351 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
149
+ − 14352
+ − 14353 xe_check_libs=" -lncurses "
+ − 14354 cat > conftest.$ac_ext <<EOF
1332
+ − 14355 #line 14357 "configure"
149
+ − 14356 #include "confdefs.h"
+ − 14357 /* Override any gcc2 internal prototype to avoid an error. */
+ − 14358 /* We use char because int might match the return type of a gcc2
+ − 14359 builtin and then its argument prototype would still apply. */
151
+ − 14360 char tgetent();
149
+ − 14361
+ − 14362 int main() {
151
+ − 14363 tgetent()
149
+ − 14364 ; return 0; }
+ − 14365 EOF
1332
+ − 14366 if { (eval echo configure:14368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 14367 rm -rf conftest*
+ − 14368 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 14369 else
+ − 14370 echo "configure: failed program was:" >&5
+ − 14371 cat conftest.$ac_ext >&5
+ − 14372 rm -rf conftest*
+ − 14373 eval "ac_cv_lib_$ac_lib_var=no"
+ − 14374 fi
+ − 14375 rm -f conftest*
+ − 14376 xe_check_libs=""
+ − 14377
151
+ − 14378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 14379 echo "$ac_t""yes" 1>&6
+ − 14380 with_ncurses=yes
+ − 14381 else
+ − 14382 echo "$ac_t""no" 1>&6
+ − 14383 with_ncurses=no
+ − 14384 fi
+ − 14385
+ − 14386
+ − 14387 fi
+ − 14388 if test "$with_ncurses" = "yes"; then
+ − 14389 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 14390 Defining HAVE_NCURSES
+ − 14391 EOF
+ − 14392 cat >> confdefs.h <<\EOF
+ − 14393 #define HAVE_NCURSES 1
+ − 14394 EOF
+ − 14395 }
+ − 14396
+ − 14397 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
+ − 14398 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
1332
+ − 14399 echo "configure:14401: checking for ncurses/curses.h" >&5
+ − 14400
+ − 14401 cat > conftest.$ac_ext <<EOF
+ − 14402 #line 14404 "configure"
149
+ − 14403 #include "confdefs.h"
+ − 14404 #include <ncurses/curses.h>
+ − 14405 EOF
+ − 14406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1332
+ − 14407 { (eval echo configure:14409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 14408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 14409 if test -z "$ac_err"; then
+ − 14410 rm -rf conftest*
+ − 14411 eval "ac_cv_header_$ac_safe=yes"
+ − 14412 else
+ − 14413 echo "$ac_err" >&5
+ − 14414 echo "configure: failed program was:" >&5
+ − 14415 cat conftest.$ac_ext >&5
+ − 14416 rm -rf conftest*
+ − 14417 eval "ac_cv_header_$ac_safe=no"
+ − 14418 fi
+ − 14419 rm -f conftest*
+ − 14420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 14421 echo "$ac_t""yes" 1>&6
442
+ − 14422 curses_h_file=ncurses/curses.h
149
+ − 14423 else
+ − 14424 echo "$ac_t""no" 1>&6
+ − 14425 fi
+ − 14426
+ − 14427 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
+ − 14428 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
1332
+ − 14429 echo "configure:14431: checking for ncurses/term.h" >&5
+ − 14430
+ − 14431 cat > conftest.$ac_ext <<EOF
+ − 14432 #line 14434 "configure"
0
+ − 14433 #include "confdefs.h"
+ − 14434 #include <ncurses/term.h>
+ − 14435 EOF
149
+ − 14436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1332
+ − 14437 { (eval echo configure:14439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 14438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 14439 if test -z "$ac_err"; then
+ − 14440 rm -rf conftest*
149
+ − 14441 eval "ac_cv_header_$ac_safe=yes"
+ − 14442 else
+ − 14443 echo "$ac_err" >&5
+ − 14444 echo "configure: failed program was:" >&5
+ − 14445 cat conftest.$ac_ext >&5
+ − 14446 rm -rf conftest*
+ − 14447 eval "ac_cv_header_$ac_safe=no"
+ − 14448 fi
+ − 14449 rm -f conftest*
+ − 14450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 14451 echo "$ac_t""yes" 1>&6
442
+ − 14452 term_h_file=ncurses/term.h
149
+ − 14453 else
+ − 14454 echo "$ac_t""no" 1>&6
+ − 14455 fi
+ − 14456
151
+ − 14457 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
+ − 14458 echo " xemacs will be linked with \"terminfo.o\""
+ − 14459 fi
+ − 14460 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
149
+ − 14461
153
+ − 14462 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
149
+ − 14463 save_c_switch_site="$c_switch_site"
+ − 14464 c_switch_site="$c_switch_site -I/usr/include/ncurses"
+ − 14465 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
+ − 14466 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
1332
+ − 14467 echo "configure:14469: checking for ncurses/curses.h" >&5
+ − 14468
+ − 14469 cat > conftest.$ac_ext <<EOF
+ − 14470 #line 14472 "configure"
0
+ − 14471 #include "confdefs.h"
+ − 14472 #include <ncurses/curses.h>
+ − 14473 EOF
149
+ − 14474 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1332
+ − 14475 { (eval echo configure:14477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 14476 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 14477 if test -z "$ac_err"; then
+ − 14478 rm -rf conftest*
149
+ − 14479 eval "ac_cv_header_$ac_safe=yes"
+ − 14480 else
+ − 14481 echo "$ac_err" >&5
+ − 14482 echo "configure: failed program was:" >&5
+ − 14483 cat conftest.$ac_ext >&5
+ − 14484 rm -rf conftest*
+ − 14485 eval "ac_cv_header_$ac_safe=no"
+ − 14486 fi
+ − 14487 rm -f conftest*
+ − 14488 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 14489 echo "$ac_t""yes" 1>&6
442
+ − 14490 curses_h_file=ncurses/curses.h
149
+ − 14491 else
+ − 14492 echo "$ac_t""no" 1>&6
+ − 14493 fi
+ − 14494
153
+ − 14495 if test "$ac_cv_header_ncurses_curses_h" = "yes"
561
+ − 14496 then echo "configure: warning: Your system has the bogus ncurses include bug." 1>&2
149
+ − 14497 else c_switch_site="$save_c_switch_site"
+ − 14498 fi
+ − 14499 fi
151
+ − 14500 else if test "$have_terminfo" = "yes"; then
+ − 14501 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
+ − 14502 echo " xemacs will be linked with \"terminfo.o\""
+ − 14503 fi
+ − 14504 if test -n "$libs_termcap"; then
+ − 14505 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
+ − 14506 else
+ − 14507 for lib in curses termlib termcap; do
+ − 14508
+ − 14509 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
1332
+ − 14510 echo "configure:14512: checking for tgetent in -l$lib" >&5
151
+ − 14511 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
+ − 14512
+ − 14513 xe_check_libs=" -l$lib "
+ − 14514 cat > conftest.$ac_ext <<EOF
1332
+ − 14515 #line 14517 "configure"
149
+ − 14516 #include "confdefs.h"
+ − 14517 /* Override any gcc2 internal prototype to avoid an error. */
+ − 14518 /* We use char because int might match the return type of a gcc2
+ − 14519 builtin and then its argument prototype would still apply. */
151
+ − 14520 char tgetent();
149
+ − 14521
+ − 14522 int main() {
151
+ − 14523 tgetent()
149
+ − 14524 ; return 0; }
+ − 14525 EOF
1332
+ − 14526 if { (eval echo configure:14528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 14527 rm -rf conftest*
+ − 14528 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 14529 else
+ − 14530 echo "configure: failed program was:" >&5
+ − 14531 cat conftest.$ac_ext >&5
+ − 14532 rm -rf conftest*
+ − 14533 eval "ac_cv_lib_$ac_lib_var=no"
+ − 14534 fi
+ − 14535 rm -f conftest*
+ − 14536 xe_check_libs=""
+ − 14537
151
+ − 14538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 14539 echo "$ac_t""yes" 1>&6
+ − 14540 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
+ − 14541 else
+ − 14542 echo "$ac_t""no" 1>&6
+ − 14543 fi
+ − 14544
+ − 14545
+ − 14546 done
+ − 14547 fi
+ − 14548 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
+ − 14549 echo " xemacs will be linked with \"tparam.o\""
+ − 14550 fi
+ − 14551 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
+ − 14552 if test -n "$libs_termcap"; then
+ − 14553 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
+ − 14554 else
+ − 14555
+ − 14556 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
1332
+ − 14557 echo "configure:14559: checking for tgetent in -lcurses" >&5
151
+ − 14558 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
+ − 14559
+ − 14560 xe_check_libs=" -lcurses "
+ − 14561 cat > conftest.$ac_ext <<EOF
1332
+ − 14562 #line 14564 "configure"
149
+ − 14563 #include "confdefs.h"
+ − 14564 /* Override any gcc2 internal prototype to avoid an error. */
+ − 14565 /* We use char because int might match the return type of a gcc2
+ − 14566 builtin and then its argument prototype would still apply. */
151
+ − 14567 char tgetent();
149
+ − 14568
+ − 14569 int main() {
151
+ − 14570 tgetent()
149
+ − 14571 ; return 0; }
+ − 14572 EOF
1332
+ − 14573 if { (eval echo configure:14575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 14574 rm -rf conftest*
+ − 14575 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 14576 else
+ − 14577 echo "configure: failed program was:" >&5
+ − 14578 cat conftest.$ac_ext >&5
+ − 14579 rm -rf conftest*
+ − 14580 eval "ac_cv_lib_$ac_lib_var=no"
+ − 14581 fi
+ − 14582 rm -f conftest*
+ − 14583 xe_check_libs=""
+ − 14584
151
+ − 14585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 14586 echo "$ac_t""yes" 1>&6
+ − 14587 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
+ − 14588 else
+ − 14589 echo "$ac_t""no" 1>&6
+ − 14590 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
1332
+ − 14591 echo "configure:14593: checking for tgetent in -ltermcap" >&5
151
+ − 14592 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
+ − 14593
+ − 14594 xe_check_libs=" -ltermcap "
+ − 14595 cat > conftest.$ac_ext <<EOF
1332
+ − 14596 #line 14598 "configure"
149
+ − 14597 #include "confdefs.h"
+ − 14598 /* Override any gcc2 internal prototype to avoid an error. */
+ − 14599 /* We use char because int might match the return type of a gcc2
+ − 14600 builtin and then its argument prototype would still apply. */
151
+ − 14601 char tgetent();
149
+ − 14602
+ − 14603 int main() {
151
+ − 14604 tgetent()
149
+ − 14605 ; return 0; }
+ − 14606 EOF
1332
+ − 14607 if { (eval echo configure:14609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 14608 rm -rf conftest*
+ − 14609 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 14610 else
+ − 14611 echo "configure: failed program was:" >&5
+ − 14612 cat conftest.$ac_ext >&5
+ − 14613 rm -rf conftest*
+ − 14614 eval "ac_cv_lib_$ac_lib_var=no"
+ − 14615 fi
+ − 14616 rm -f conftest*
+ − 14617 xe_check_libs=""
+ − 14618
151
+ − 14619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 14620 echo "$ac_t""yes" 1>&6
+ − 14621 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
+ − 14622 else
+ − 14623 echo "$ac_t""no" 1>&6
+ − 14624 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
+ − 14625 echo " xemacs will be linked with \"termcap.o\""
+ − 14626 fi
+ − 14627 fi
+ − 14628
+ − 14629
+ − 14630 fi
+ − 14631
+ − 14632
0
+ − 14633 fi
+ − 14634 fi
149
+ − 14635 fi
+ − 14636 { test "$extra_verbose" = "yes" && cat << EOF
442
+ − 14637 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
+ − 14638 EOF
+ − 14639 cat >> confdefs.h <<EOF
+ − 14640 #define CURSES_H_FILE "${curses_h_file-curses.h}"
149
+ − 14641 EOF
+ − 14642 }
+ − 14643
+ − 14644 { test "$extra_verbose" = "yes" && cat << EOF
442
+ − 14645 Defining TERM_H_FILE = "${term_h_file-term.h}"
+ − 14646 EOF
+ − 14647 cat >> confdefs.h <<EOF
+ − 14648 #define TERM_H_FILE "${term_h_file-term.h}"
149
+ − 14649 EOF
+ − 14650 }
+ − 14651
155
+ − 14652
+ − 14653 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
+ − 14654 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
1332
+ − 14655 echo "configure:14657: checking for gpm.h" >&5
+ − 14656
+ − 14657 cat > conftest.$ac_ext <<EOF
+ − 14658 #line 14660 "configure"
155
+ − 14659 #include "confdefs.h"
+ − 14660 #include <gpm.h>
+ − 14661 EOF
+ − 14662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1332
+ − 14663 { (eval echo configure:14665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 14664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
155
+ − 14665 if test -z "$ac_err"; then
+ − 14666 rm -rf conftest*
+ − 14667 eval "ac_cv_header_$ac_safe=yes"
+ − 14668 else
+ − 14669 echo "$ac_err" >&5
+ − 14670 echo "configure: failed program was:" >&5
+ − 14671 cat conftest.$ac_ext >&5
+ − 14672 rm -rf conftest*
+ − 14673 eval "ac_cv_header_$ac_safe=no"
+ − 14674 fi
+ − 14675 rm -f conftest*
+ − 14676 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 14677 echo "$ac_t""yes" 1>&6
+ − 14678 :
+ − 14679 else
+ − 14680 echo "$ac_t""no" 1>&6
+ − 14681 with_gpm=no
+ − 14682 fi
+ − 14683 }
+ − 14684 test -z "$with_gpm" && {
+ − 14685 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
1332
+ − 14686 echo "configure:14688: checking for Gpm_Open in -lgpm" >&5
155
+ − 14687 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
+ − 14688
+ − 14689 xe_check_libs=" -lgpm "
+ − 14690 cat > conftest.$ac_ext <<EOF
1332
+ − 14691 #line 14693 "configure"
155
+ − 14692 #include "confdefs.h"
+ − 14693 /* Override any gcc2 internal prototype to avoid an error. */
+ − 14694 /* We use char because int might match the return type of a gcc2
+ − 14695 builtin and then its argument prototype would still apply. */
+ − 14696 char Gpm_Open();
+ − 14697
+ − 14698 int main() {
+ − 14699 Gpm_Open()
+ − 14700 ; return 0; }
+ − 14701 EOF
1332
+ − 14702 if { (eval echo configure:14704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
155
+ − 14703 rm -rf conftest*
+ − 14704 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 14705 else
+ − 14706 echo "configure: failed program was:" >&5
+ − 14707 cat conftest.$ac_ext >&5
+ − 14708 rm -rf conftest*
+ − 14709 eval "ac_cv_lib_$ac_lib_var=no"
+ − 14710 fi
+ − 14711 rm -f conftest*
+ − 14712 xe_check_libs=""
+ − 14713
+ − 14714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 14715 echo "$ac_t""yes" 1>&6
+ − 14716 with_gpm=yes
+ − 14717 else
+ − 14718 echo "$ac_t""no" 1>&6
+ − 14719 with_gpm=no
+ − 14720 fi
+ − 14721
+ − 14722 }
+ − 14723 if test "$with_gpm" = "yes"; then
+ − 14724 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 14725 Defining HAVE_GPM
+ − 14726 EOF
+ − 14727 cat >> confdefs.h <<\EOF
+ − 14728 #define HAVE_GPM 1
+ − 14729 EOF
+ − 14730 }
+ − 14731
+ − 14732 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
+ − 14733 fi
+ − 14734
151
+ − 14735 else for feature in ncurses gpm; do
149
+ − 14736 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
561
+ − 14737 echo "configure: warning: --with-${feature} ignored: Not valid without TTY support" 1>&2
149
+ − 14738 fi
+ − 14739 eval "with_${feature}=no"
+ − 14740 done
151
+ − 14741 fi
149
+ − 14742
426
+ − 14743 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
384
+ − 14744 != "no no no" && echo "checking for database support" 1>&6
1332
+ − 14745 echo "configure:14747: checking for database support" >&5
426
+ − 14746
+ − 14747 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
384
+ − 14748 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
+ − 14749 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
1332
+ − 14750 echo "configure:14752: checking for ndbm.h" >&5
+ − 14751
+ − 14752 cat > conftest.$ac_ext <<EOF
+ − 14753 #line 14755 "configure"
384
+ − 14754 #include "confdefs.h"
+ − 14755 #include <ndbm.h>
265
+ − 14756 EOF
+ − 14757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1332
+ − 14758 { (eval echo configure:14760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 14759 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
265
+ − 14760 if test -z "$ac_err"; then
+ − 14761 rm -rf conftest*
+ − 14762 eval "ac_cv_header_$ac_safe=yes"
+ − 14763 else
+ − 14764 echo "$ac_err" >&5
+ − 14765 echo "configure: failed program was:" >&5
+ − 14766 cat conftest.$ac_ext >&5
+ − 14767 rm -rf conftest*
+ − 14768 eval "ac_cv_header_$ac_safe=no"
+ − 14769 fi
+ − 14770 rm -f conftest*
+ − 14771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 14772 echo "$ac_t""yes" 1>&6
384
+ − 14773 :
+ − 14774 else
+ − 14775 echo "$ac_t""no" 1>&6
+ − 14776
426
+ − 14777 test "$with_database_gdbm" = "yes" -o \
+ − 14778 "$with_database_dbm" = "yes" && \
384
+ − 14779 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
426
+ − 14780 with_database_gdbm=no with_database_dbm=no
+ − 14781 fi
+ − 14782
+ − 14783 fi
+ − 14784
+ − 14785 if test "$with_database_gdbm" != "no"; then
384
+ − 14786
149
+ − 14787 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
1332
+ − 14788 echo "configure:14790: checking for dbm_open in -lgdbm" >&5
149
+ − 14789 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
+ − 14790
+ − 14791 xe_check_libs=" -lgdbm "
+ − 14792 cat > conftest.$ac_ext <<EOF
1332
+ − 14793 #line 14795 "configure"
149
+ − 14794 #include "confdefs.h"
+ − 14795 /* Override any gcc2 internal prototype to avoid an error. */
+ − 14796 /* We use char because int might match the return type of a gcc2
+ − 14797 builtin and then its argument prototype would still apply. */
+ − 14798 char dbm_open();
+ − 14799
+ − 14800 int main() {
+ − 14801 dbm_open()
+ − 14802 ; return 0; }
+ − 14803 EOF
1332
+ − 14804 if { (eval echo configure:14806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 14805 rm -rf conftest*
+ − 14806 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 14807 else
+ − 14808 echo "configure: failed program was:" >&5
+ − 14809 cat conftest.$ac_ext >&5
+ − 14810 rm -rf conftest*
+ − 14811 eval "ac_cv_lib_$ac_lib_var=no"
+ − 14812 fi
+ − 14813 rm -f conftest*
+ − 14814 xe_check_libs=""
+ − 14815
151
+ − 14816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 14817 echo "$ac_t""yes" 1>&6
426
+ − 14818 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
+ − 14819 else
+ − 14820 echo "$ac_t""no" 1>&6
+ − 14821 if test "$with_database_gdbm" = "yes"; then
384
+ − 14822 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
+ − 14823 fi
426
+ − 14824 with_database_gdbm=no
384
+ − 14825 fi
+ − 14826
+ − 14827
149
+ − 14828 fi
+ − 14829
151
+ − 14830 if test "$with_database_dbm" != "no"; then
149
+ − 14831 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
1332
+ − 14832 echo "configure:14834: checking for dbm_open" >&5
+ − 14833
+ − 14834 cat > conftest.$ac_ext <<EOF
+ − 14835 #line 14837 "configure"
149
+ − 14836 #include "confdefs.h"
+ − 14837 /* System header to define __stub macros and hopefully few prototypes,
+ − 14838 which can conflict with char dbm_open(); below. */
+ − 14839 #include <assert.h>
+ − 14840 /* Override any gcc2 internal prototype to avoid an error. */
+ − 14841 /* We use char because int might match the return type of a gcc2
+ − 14842 builtin and then its argument prototype would still apply. */
+ − 14843 char dbm_open();
+ − 14844
+ − 14845 int main() {
+ − 14846
+ − 14847 /* The GNU C library defines this for functions which it implements
+ − 14848 to always fail with ENOSYS. Some functions are actually named
+ − 14849 something starting with __ and the normal name is an alias. */
+ − 14850 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
+ − 14851 choke me
+ − 14852 #else
+ − 14853 dbm_open();
+ − 14854 #endif
+ − 14855
+ − 14856 ; return 0; }
+ − 14857 EOF
1332
+ − 14858 if { (eval echo configure:14860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 14859 rm -rf conftest*
+ − 14860 eval "ac_cv_func_dbm_open=yes"
+ − 14861 else
+ − 14862 echo "configure: failed program was:" >&5
+ − 14863 cat conftest.$ac_ext >&5
+ − 14864 rm -rf conftest*
+ − 14865 eval "ac_cv_func_dbm_open=no"
+ − 14866 fi
+ − 14867 rm -f conftest*
+ − 14868
+ − 14869 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
+ − 14870 echo "$ac_t""yes" 1>&6
384
+ − 14871 with_database_dbm=yes libdbm=
+ − 14872 else
+ − 14873 echo "$ac_t""no" 1>&6
+ − 14874
149
+ − 14875
+ − 14876 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
1332
+ − 14877 echo "configure:14879: checking for dbm_open in -ldbm" >&5
149
+ − 14878 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
+ − 14879
+ − 14880 xe_check_libs=" -ldbm "
+ − 14881 cat > conftest.$ac_ext <<EOF
1332
+ − 14882 #line 14884 "configure"
149
+ − 14883 #include "confdefs.h"
+ − 14884 /* Override any gcc2 internal prototype to avoid an error. */
+ − 14885 /* We use char because int might match the return type of a gcc2
+ − 14886 builtin and then its argument prototype would still apply. */
+ − 14887 char dbm_open();
+ − 14888
+ − 14889 int main() {
+ − 14890 dbm_open()
+ − 14891 ; return 0; }
+ − 14892 EOF
1332
+ − 14893 if { (eval echo configure:14895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 14894 rm -rf conftest*
+ − 14895 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 14896 else
+ − 14897 echo "configure: failed program was:" >&5
+ − 14898 cat conftest.$ac_ext >&5
+ − 14899 rm -rf conftest*
+ − 14900 eval "ac_cv_lib_$ac_lib_var=no"
+ − 14901 fi
+ − 14902 rm -f conftest*
+ − 14903 xe_check_libs=""
+ − 14904
151
+ − 14905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 14906 echo "$ac_t""yes" 1>&6
384
+ − 14907 with_database_dbm=yes libdbm=-ldbm
+ − 14908 else
+ − 14909 echo "$ac_t""no" 1>&6
+ − 14910 test "$with_database_dbm" = "yes" && \
+ − 14911 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
+ − 14912 with_database_dbm=no
+ − 14913 fi
+ − 14914
+ − 14915
+ − 14916 fi
+ − 14917
+ − 14918 fi
+ − 14919
+ − 14920 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
426
+ − 14921 test "$with_database_gdbm" = "yes" -o \
+ − 14922 "$with_database_dbm" = "yes" && \
384
+ − 14923 { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 14924 Defining HAVE_DBM
+ − 14925 EOF
+ − 14926 cat >> confdefs.h <<\EOF
+ − 14927 #define HAVE_DBM 1
+ − 14928 EOF
+ − 14929 }
+ − 14930
+ − 14931
+ − 14932 if test "$with_database_berkdb" != "no"; then
298
+ − 14933 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
1332
+ − 14934 echo "configure:14936: checking for Berkeley db.h" >&5
442
+ − 14935 for header in "db/db.h" "db.h"; do
298
+ − 14936 cat > conftest.$ac_ext <<EOF
1332
+ − 14937 #line 14939 "configure"
442
+ − 14938 #include "confdefs.h"
+ − 14939
+ − 14940 #include <stdlib.h>
+ − 14941 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
298
+ − 14942 #ifdef HAVE_INTTYPES_H
+ − 14943 #define __BIT_TYPES_DEFINED__
+ − 14944 #include <inttypes.h>
+ − 14945 typedef uint8_t u_int8_t;
+ − 14946 typedef uint16_t u_int16_t;
+ − 14947 typedef uint32_t u_int32_t;
+ − 14948 #ifdef WE_DONT_NEED_QUADS
+ − 14949 typedef uint64_t u_int64_t;
+ − 14950 #endif
+ − 14951 #endif
442
+ − 14952 #endif
+ − 14953 #include <$header>
+ − 14954
+ − 14955 int main() {
+ − 14956
+ − 14957 ; return 0; }
+ − 14958 EOF
1332
+ − 14959 if { (eval echo configure:14961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
442
+ − 14960 rm -rf conftest*
+ − 14961 db_h_file="$header"; break
298
+ − 14962 else
+ − 14963 echo "configure: failed program was:" >&5
+ − 14964 cat conftest.$ac_ext >&5
+ − 14965 fi
+ − 14966 rm -f conftest*
+ − 14967 done
442
+ − 14968 if test -z "$db_h_file"
298
+ − 14969 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
442
+ − 14970 else echo "$ac_t""$db_h_file" 1>&6
298
+ − 14971 fi
+ − 14972
+ − 14973 if test "$with_database_berkdb" != "no"; then
+ − 14974 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
1332
+ − 14975 echo "configure:14977: checking for Berkeley DB version" >&5
298
+ − 14976 cat > conftest.$ac_ext <<EOF
1332
+ − 14977 #line 14979 "configure"
442
+ − 14978 #include "confdefs.h"
+ − 14979 #include <$db_h_file>
298
+ − 14980 #if DB_VERSION_MAJOR > 1
+ − 14981 yes
+ − 14982 #endif
+ − 14983
+ − 14984 EOF
+ − 14985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 14986 egrep "yes" >/dev/null 2>&1; then
+ − 14987 rm -rf conftest*
448
+ − 14988 cat > conftest.$ac_ext <<EOF
1332
+ − 14989 #line 14991 "configure"
448
+ − 14990 #include "confdefs.h"
+ − 14991 #include <$db_h_file>
+ − 14992 #if DB_VERSION_MAJOR > 2
+ − 14993 yes
+ − 14994 #endif
+ − 14995
+ − 14996 EOF
+ − 14997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 14998 egrep "yes" >/dev/null 2>&1; then
+ − 14999 rm -rf conftest*
+ − 15000 echo "$ac_t""3" 1>&6; dbfunc=db_create
+ − 15001 else
+ − 15002 rm -rf conftest*
+ − 15003
+ − 15004 echo "$ac_t""2" 1>&6; dbfunc=db_open
+ − 15005 fi
+ − 15006 rm -f conftest*
+ − 15007
+ − 15008 else
+ − 15009 rm -rf conftest*
+ − 15010
+ − 15011 echo "$ac_t""1" 1>&6; dbfunc=dbopen
298
+ − 15012 fi
+ − 15013 rm -f conftest*
+ − 15014
+ − 15015 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
1332
+ − 15016 echo "configure:15018: checking for $dbfunc" >&5
+ − 15017
+ − 15018 cat > conftest.$ac_ext <<EOF
+ − 15019 #line 15021 "configure"
298
+ − 15020 #include "confdefs.h"
149
+ − 15021 /* System header to define __stub macros and hopefully few prototypes,
298
+ − 15022 which can conflict with char $dbfunc(); below. */
149
+ − 15023 #include <assert.h>
+ − 15024 /* Override any gcc2 internal prototype to avoid an error. */
+ − 15025 /* We use char because int might match the return type of a gcc2
+ − 15026 builtin and then its argument prototype would still apply. */
298
+ − 15027 char $dbfunc();
149
+ − 15028
+ − 15029 int main() {
+ − 15030
0
+ − 15031 /* The GNU C library defines this for functions which it implements
+ − 15032 to always fail with ENOSYS. Some functions are actually named
+ − 15033 something starting with __ and the normal name is an alias. */
298
+ − 15034 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
0
+ − 15035 choke me
+ − 15036 #else
298
+ − 15037 $dbfunc();
0
+ − 15038 #endif
149
+ − 15039
0
+ − 15040 ; return 0; }
+ − 15041 EOF
1332
+ − 15042 if { (eval echo configure:15044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
298
+ − 15043 rm -rf conftest*
+ − 15044 eval "ac_cv_func_$dbfunc=yes"
+ − 15045 else
+ − 15046 echo "configure: failed program was:" >&5
+ − 15047 cat conftest.$ac_ext >&5
+ − 15048 rm -rf conftest*
+ − 15049 eval "ac_cv_func_$dbfunc=no"
+ − 15050 fi
+ − 15051 rm -f conftest*
+ − 15052
+ − 15053 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
149
+ − 15054 echo "$ac_t""yes" 1>&6
+ − 15055 with_database_berkdb=yes need_libdb=no
+ − 15056 else
+ − 15057 echo "$ac_t""no" 1>&6
298
+ − 15058
+ − 15059
+ − 15060 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
1332
+ − 15061 echo "configure:15063: checking for $dbfunc in -ldb" >&5
298
+ − 15062 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
149
+ − 15063
+ − 15064 xe_check_libs=" -ldb "
+ − 15065 cat > conftest.$ac_ext <<EOF
1332
+ − 15066 #line 15068 "configure"
149
+ − 15067 #include "confdefs.h"
0
+ − 15068 /* Override any gcc2 internal prototype to avoid an error. */
149
+ − 15069 /* We use char because int might match the return type of a gcc2
+ − 15070 builtin and then its argument prototype would still apply. */
298
+ − 15071 char $dbfunc();
+ − 15072
+ − 15073 int main() {
+ − 15074 $dbfunc()
+ − 15075 ; return 0; }
+ − 15076 EOF
1332
+ − 15077 if { (eval echo configure:15079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 15078 rm -rf conftest*
+ − 15079 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 15080 else
+ − 15081 echo "configure: failed program was:" >&5
+ − 15082 cat conftest.$ac_ext >&5
+ − 15083 rm -rf conftest*
+ − 15084 eval "ac_cv_lib_$ac_lib_var=no"
+ − 15085 fi
+ − 15086 rm -f conftest*
+ − 15087 xe_check_libs=""
+ − 15088
151
+ − 15089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 15090 echo "$ac_t""yes" 1>&6
+ − 15091 with_database_berkdb=yes need_libdb=yes
+ − 15092 else
+ − 15093 echo "$ac_t""no" 1>&6
298
+ − 15094 fi
+ − 15095
+ − 15096
+ − 15097 fi
+ − 15098
+ − 15099 fi
+ − 15100
149
+ − 15101 if test "$with_database_berkdb" = "yes"; then
+ − 15102 { test "$extra_verbose" = "yes" && cat << EOF
442
+ − 15103 Defining DB_H_FILE = "$db_h_file"
+ − 15104 EOF
+ − 15105 cat >> confdefs.h <<EOF
+ − 15106 #define DB_H_FILE "$db_h_file"
149
+ − 15107 EOF
+ − 15108 }
+ − 15109
+ − 15110 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15111 Defining HAVE_BERKELEY_DB
+ − 15112 EOF
+ − 15113 cat >> confdefs.h <<\EOF
+ − 15114 #define HAVE_BERKELEY_DB 1
+ − 15115 EOF
+ − 15116 }
+ − 15117
151
+ − 15118 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
149
+ − 15119 else with_database_berkdb=no
+ − 15120 fi
+ − 15121 fi
+ − 15122
426
+ − 15123 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
272
+ − 15124 != "no no no"; then
149
+ − 15125 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15126 Defining HAVE_DATABASE
+ − 15127 EOF
+ − 15128 cat >> confdefs.h <<\EOF
+ − 15129 #define HAVE_DATABASE 1
+ − 15130 EOF
+ − 15131 }
+ − 15132
+ − 15133 fi
+ − 15134
+ − 15135 if test "$with_socks" = "yes"; then
+ − 15136
+ − 15137 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
1332
+ − 15138 echo "configure:15140: checking for SOCKSinit in -lsocks" >&5
149
+ − 15139 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
+ − 15140
+ − 15141 xe_check_libs=" -lsocks "
+ − 15142 cat > conftest.$ac_ext <<EOF
1332
+ − 15143 #line 15145 "configure"
149
+ − 15144 #include "confdefs.h"
+ − 15145 /* Override any gcc2 internal prototype to avoid an error. */
+ − 15146 /* We use char because int might match the return type of a gcc2
+ − 15147 builtin and then its argument prototype would still apply. */
+ − 15148 char SOCKSinit();
+ − 15149
+ − 15150 int main() {
+ − 15151 SOCKSinit()
+ − 15152 ; return 0; }
+ − 15153 EOF
1332
+ − 15154 if { (eval echo configure:15156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 15155 rm -rf conftest*
+ − 15156 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 15157 else
+ − 15158 echo "configure: failed program was:" >&5
+ − 15159 cat conftest.$ac_ext >&5
+ − 15160 rm -rf conftest*
+ − 15161 eval "ac_cv_lib_$ac_lib_var=no"
+ − 15162 fi
+ − 15163 rm -f conftest*
+ − 15164 xe_check_libs=""
+ − 15165
151
+ − 15166 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 15167 echo "$ac_t""yes" 1>&6
+ − 15168 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ − 15169 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ − 15170 { test "$extra_verbose" = "yes" && cat << EOF
+ − 15171 Defining $ac_tr_lib
+ − 15172 EOF
+ − 15173 cat >> confdefs.h <<EOF
+ − 15174 #define $ac_tr_lib 1
+ − 15175 EOF
+ − 15176 }
+ − 15177
151
+ − 15178 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
149
+ − 15179
+ − 15180 else
+ − 15181 echo "$ac_t""no" 1>&6
+ − 15182 fi
+ − 15183
+ − 15184
+ − 15185 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15186 Defining HAVE_SOCKS
+ − 15187 EOF
+ − 15188 cat >> confdefs.h <<\EOF
+ − 15189 #define HAVE_SOCKS 1
+ − 15190 EOF
+ − 15191 }
+ − 15192
+ − 15193 fi
+ − 15194
+ − 15195 if test "$usage_tracking" = "yes"; then
+ − 15196 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15197 Defining USAGE_TRACKING
+ − 15198 EOF
+ − 15199 cat >> confdefs.h <<\EOF
+ − 15200 #define USAGE_TRACKING 1
+ − 15201 EOF
+ − 15202 }
+ − 15203
151
+ − 15204 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
149
+ − 15205 fi
+ − 15206
997
+ − 15207 cat > conftest.$ac_ext <<EOF
1332
+ − 15208 #line 15210 "configure"
272
+ − 15209 #include "confdefs.h"
+ − 15210 int main(int c,char *v[]){return 0;}
+ − 15211 EOF
1332
+ − 15212 if { (eval echo configure:15214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
272
+ − 15213 then
+ − 15214 :
+ − 15215 else
373
+ − 15216 conftest_rc="$?"
272
+ − 15217 echo "configure: failed program was:" >&5
+ − 15218 cat conftest.$ac_ext >&5
+ − 15219 rm -fr conftest*
+ − 15220
+ − 15221 echo ""
+ − 15222 echo "*** PANIC *** The C compiler can no longer build working executables."
+ − 15223 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
+ − 15224 echo "*** PANIC *** The most likely reason for this problem is that configure"
+ − 15225 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
+ − 15226 echo "*** PANIC *** found at run time."
+ − 15227 echo "*** PANIC ***"
+ − 15228 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
+ − 15229 echo "*** PANIC *** On other systems, try telling configure where to find the"
+ − 15230 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
+ − 15231 echo "*** PANIC ***"
+ − 15232 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
+ − 15233 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
+ − 15234 echo "*** PANIC *** on your system. Don't do that."
+ − 15235 exit 1
+ − 15236 fi
+ − 15237 rm -fr conftest*
+ − 15238
771
+ − 15239 if test "$win32_processes" != "yes"; then
398
+ − 15240 { test "$extra_verbose" = "yes" && cat << \EOF
263
+ − 15241 Defining HAVE_UNIX_PROCESSES
+ − 15242 EOF
+ − 15243 cat >> confdefs.h <<\EOF
+ − 15244 #define HAVE_UNIX_PROCESSES 1
+ − 15245 EOF
+ − 15246 }
+ − 15247
398
+ − 15248 fi
261
+ − 15249
155
+ − 15250
997
+ − 15251 if test "$with_modules" = "yes"; then
+ − 15252 ld_libs_module=
+ − 15253 else
+ − 15254
+ − 15255 T=""
+ − 15256 for W in $ldap_libs $postgresql_libs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15257 ld_libs_module="$T"
+ − 15258
+ − 15259 fi
+ − 15260
155
+ − 15261
+ − 15262 T=""
175
+ − 15263 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15264 CFLAGS="$T"
+ − 15265
+ − 15266
+ − 15267 T=""
155
+ − 15268 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15269 extra_objs="$T"
+ − 15270
+ − 15271
+ − 15272 T=""
+ − 15273 for W in -DHAVE_CONFIG_H $c_switch_site $c_switch_machine $c_switch_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15274 c_switch_general="$T"
+ − 15275
+ − 15276
+ − 15277 T=""
462
+ − 15278 for W in $c_switch_x_site $c_switch_gtk $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
155
+ − 15279 c_switch_window_system="$T"
+ − 15280
+ − 15281
+ − 15282 T=""
+ − 15283 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15284 c_switch_all="$T"
+ − 15285
+ − 15286
+ − 15287 T=""
+ − 15288 for W in $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_run; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15289 ld_switch_general="$T"
+ − 15290
+ − 15291
+ − 15292 T=""
+ − 15293 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15294 ld_switch_window_system="$T"
+ − 15295
+ − 15296
+ − 15297 T=""
+ − 15298 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15299 ld_switch_all="$T"
+ − 15300
+ − 15301
+ − 15302 T=""
+ − 15303 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15304 ld_libs_general="$T"
+ − 15305
+ − 15306
+ − 15307 T=""
462
+ − 15308 for W in $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
155
+ − 15309 ld_libs_window_system="$T"
+ − 15310
+ − 15311
+ − 15312 T=""
997
+ − 15313 for W in $ld_libs_window_system $ld_libs_general $ld_libs_module; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
155
+ − 15314 ld_libs_all="$T"
+ − 15315
149
+ − 15316
151
+ − 15317
+ − 15318 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
380
+ − 15319 internal_makefile_list="Makefile.in"
149
+ − 15320 SUBDIR_MAKEFILES=''
151
+ − 15321 test -d lock || mkdir lock
149
+ − 15322 for dir in $MAKE_SUBDIR; do
167
+ − 15323 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
+ − 15324 test -d "$d" || mkdir "$d"; cd "$d"
+ − 15325 done ) ;;
+ − 15326 * ) test -d "$dir" || mkdir "$dir" ;;
+ − 15327 esac
155
+ − 15328
+ − 15329 T=""
384
+ − 15330 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
155
+ − 15331 SUBDIR_MAKEFILES="$T"
+ − 15332
+ − 15333
+ − 15334 T=""
+ − 15335 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15336 internal_makefile_list="$T"
+ − 15337
149
+ − 15338 done
+ − 15339
+ − 15340
+ − 15341
167
+ − 15342
157
+ − 15343 for dir in src/s src/m; do
+ − 15344 if test ! -d "$dir" ; then
+ − 15345 echo Making symbolic link to "$srcdir/$dir"
+ − 15346 ${LN_S} "$srcdir/$dir" "$dir"
+ − 15347 fi
+ − 15348 done
+ − 15349
1111
+ − 15350 if test "$need_modules_common" = "yes"; then
+ − 15351 for dir in modules/common; do
+ − 15352 if test ! -d "$dir" ; then
+ − 15353 echo Making symbolic link to "$srcdir/$dir"
+ − 15354 ${LN_S} "$srcdir/$dir" "$dir"
+ − 15355 fi
+ − 15356 done
+ − 15357 fi
+ − 15358
149
+ − 15359 if test "$extra_verbose" = "yes"; then
151
+ − 15360 echo ""
163
+ − 15361 for var in extra_objs c_switch_general c_switch_window_system c_switch_all ld_switch_general ld_switch_window_system ld_switch_all ld_libs_general ld_libs_window_system ld_libs_all; do eval "echo \"$var = '\$$var'\""; done
149
+ − 15362 echo ""
+ − 15363 fi
+ − 15364
438
+ − 15365
+ − 15366 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
+ − 15367 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
+ − 15368 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
+ − 15369 fi
+ − 15370
+ − 15371 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
+ − 15372 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
+ − 15373 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
+ − 15374 fi
+ − 15375
+ − 15376 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
+ − 15377 test "$extra_verbose" = "yes" && echo "creating TAGS"
+ − 15378 echo "
+ − 15379 $srcdir/TAGS,include" > "TAGS"
151
+ − 15380 fi
+ − 15381
373
+ − 15382 if test "$__SUNPRO_C" = "yes"; then
438
+ − 15383 test "$extra_verbose" = "yes" && echo "creating .sbinit"
157
+ − 15384 ( echo "# For use with Sun WorkShop's Source browser."
+ − 15385 echo "# See sbquery(1) and sbinit(4) for more information"
+ − 15386 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
+ − 15387 ) > .sbinit
+ − 15388 fi
151
+ − 15389
+ − 15390 rm -f core
+ − 15391
149
+ − 15392
+ − 15393
+ − 15394
+ − 15395
+ − 15396
+ − 15397
+ − 15398
+ − 15399
+ − 15400
+ − 15401
+ − 15402
+ − 15403
+ − 15404
+ − 15405
280
+ − 15406
420
+ − 15407
422
+ − 15408
+ − 15409
452
+ − 15410
278
+ − 15411 PREFIX=$prefix
+ − 15412 while true; do
+ − 15413 case "$PREFIX" in
+ − 15414 *\$* ) eval "PREFIX=$PREFIX" ;;
+ − 15415 *) break ;;
+ − 15416 esac
+ − 15417 done
+ − 15418
+ − 15419
+ − 15420
420
+ − 15421
278
+ − 15422 EXEC_PREFIX=$exec_prefix
+ − 15423 while true; do
+ − 15424 case "$EXEC_PREFIX" in
+ − 15425 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
+ − 15426 *) break ;;
+ − 15427 esac
+ − 15428 done
+ − 15429
149
+ − 15430
+ − 15431
+ − 15432
274
+ − 15433 INFODIR=$infodir
+ − 15434 while true; do
+ − 15435 case "$INFODIR" in
+ − 15436 *\$* ) eval "INFODIR=$INFODIR" ;;
+ − 15437 *) break ;;
+ − 15438 esac
+ − 15439 done
+ − 15440
+ − 15441
+ − 15442
+ − 15443
+ − 15444 INFOPATH=$infopath
+ − 15445 while true; do
+ − 15446 case "$INFOPATH" in
+ − 15447 *\$* ) eval "INFOPATH=$INFOPATH" ;;
+ − 15448 *) break ;;
+ − 15449 esac
+ − 15450 done
+ − 15451
+ − 15452
+ − 15453
+ − 15454
+ − 15455 PACKAGE_PATH=$package_path
+ − 15456 while true; do
+ − 15457 case "$PACKAGE_PATH" in
+ − 15458 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
+ − 15459 *) break ;;
+ − 15460 esac
+ − 15461 done
+ − 15462
+ − 15463
+ − 15464
+ − 15465
+ − 15466 LISPDIR=$lispdir
+ − 15467 while true; do
+ − 15468 case "$LISPDIR" in
+ − 15469 *\$* ) eval "LISPDIR=$LISPDIR" ;;
+ − 15470 *) break ;;
+ − 15471 esac
+ − 15472 done
+ − 15473
+ − 15474
+ − 15475
+ − 15476
388
+ − 15477 MODULEDIR=$moduledir
+ − 15478 while true; do
+ − 15479 case "$MODULEDIR" in
+ − 15480 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
+ − 15481 *) break ;;
+ − 15482 esac
+ − 15483 done
+ − 15484
+ − 15485
+ − 15486
+ − 15487
+ − 15488 SITELISPDIR=$sitelispdir
+ − 15489 while true; do
+ − 15490 case "$SITELISPDIR" in
+ − 15491 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
+ − 15492 *) break ;;
+ − 15493 esac
+ − 15494 done
+ − 15495
+ − 15496
+ − 15497
+ − 15498
+ − 15499 SITEMODULEDIR=$sitemoduledir
+ − 15500 while true; do
+ − 15501 case "$SITEMODULEDIR" in
+ − 15502 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
+ − 15503 *) break ;;
+ − 15504 esac
+ − 15505 done
+ − 15506
+ − 15507
+ − 15508
274
+ − 15509
+ − 15510 ETCDIR=$etcdir
+ − 15511 while true; do
+ − 15512 case "$ETCDIR" in
+ − 15513 *\$* ) eval "ETCDIR=$ETCDIR" ;;
+ − 15514 *) break ;;
+ − 15515 esac
+ − 15516 done
+ − 15517
+ − 15518
+ − 15519
+ − 15520
420
+ − 15521 DOCDIR=$docdir
+ − 15522 while true; do
+ − 15523 case "$DOCDIR" in
+ − 15524 *\$* ) eval "DOCDIR=$DOCDIR" ;;
+ − 15525 *) break ;;
+ − 15526 esac
+ − 15527 done
+ − 15528
+ − 15529
+ − 15530
+ − 15531
274
+ − 15532 ARCHLIBDIR=$archlibdir
+ − 15533 while true; do
+ − 15534 case "$ARCHLIBDIR" in
+ − 15535 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
+ − 15536 *) break ;;
+ − 15537 esac
+ − 15538 done
149
+ − 15539
+ − 15540
+ − 15541
+ − 15542
+ − 15543
+ − 15544
+ − 15545
+ − 15546
+ − 15547
+ − 15548
+ − 15549
+ − 15550
+ − 15551
+ − 15552
+ − 15553
+ − 15554
203
+ − 15555
207
+ − 15556
263
+ − 15557
267
+ − 15558
173
+ − 15559 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
+ − 15560
+ − 15561
+ − 15562
+ − 15563
+ − 15564
+ − 15565
+ − 15566
594
+ − 15567
380
+ − 15568
420
+ − 15569 if test "$with_prefix" = "yes"; then
+ − 15570 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15571 Defining PREFIX_USER_DEFINED
+ − 15572 EOF
+ − 15573 cat >> confdefs.h <<\EOF
+ − 15574 #define PREFIX_USER_DEFINED 1
+ − 15575 EOF
+ − 15576 }
+ − 15577
+ − 15578 fi
380
+ − 15579
267
+ − 15580 if test "$with_site_lisp" = "no"; then
+ − 15581 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15582 Defining INHIBIT_SITE_LISP
+ − 15583 EOF
+ − 15584 cat >> confdefs.h <<\EOF
+ − 15585 #define INHIBIT_SITE_LISP 1
+ − 15586 EOF
+ − 15587 }
+ − 15588
+ − 15589 fi
388
+ − 15590 if test "$with_site_modules" = "no"; then
+ − 15591 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15592 Defining INHIBIT_SITE_MODULES
+ − 15593 EOF
+ − 15594 cat >> confdefs.h <<\EOF
+ − 15595 #define INHIBIT_SITE_MODULES 1
+ − 15596 EOF
+ − 15597 }
+ − 15598
+ − 15599 fi
155
+ − 15600
207
+ − 15601
+ − 15602 T=""
+ − 15603 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15604 ac_configure_args="$T"
+ − 15605
149
+ − 15606 { test "$extra_verbose" = "yes" && cat << EOF
424
+ − 15607 Defining EMACS_CONFIGURATION = "$configuration"
149
+ − 15608 EOF
+ − 15609 cat >> confdefs.h <<EOF
424
+ − 15610 #define EMACS_CONFIGURATION "$configuration"
149
+ − 15611 EOF
+ − 15612 }
+ − 15613
+ − 15614 { test "$extra_verbose" = "yes" && cat << EOF
207
+ − 15615 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
173
+ − 15616 EOF
+ − 15617 cat >> confdefs.h <<EOF
207
+ − 15618 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
173
+ − 15619 EOF
+ − 15620 }
+ − 15621
149
+ − 15622
+ − 15623
+ − 15624 null_string=""
+ − 15625 { test "$extra_verbose" = "yes" && cat << EOF
+ − 15626 Defining LD_SWITCH_X_SITE = $null_string
+ − 15627 EOF
+ − 15628 cat >> confdefs.h <<EOF
+ − 15629 #define LD_SWITCH_X_SITE $null_string
+ − 15630 EOF
+ − 15631 }
+ − 15632
+ − 15633 { test "$extra_verbose" = "yes" && cat << EOF
+ − 15634 Defining LD_SWITCH_X_SITE_AUX = $null_string
+ − 15635 EOF
+ − 15636 cat >> confdefs.h <<EOF
+ − 15637 #define LD_SWITCH_X_SITE_AUX $null_string
+ − 15638 EOF
+ − 15639 }
+ − 15640
+ − 15641 { test "$extra_verbose" = "yes" && cat << EOF
+ − 15642 Defining C_SWITCH_X_SITE = $null_string
+ − 15643 EOF
+ − 15644 cat >> confdefs.h <<EOF
+ − 15645 #define C_SWITCH_X_SITE $null_string
+ − 15646 EOF
+ − 15647 }
+ − 15648
+ − 15649 { test "$extra_verbose" = "yes" && cat << EOF
+ − 15650 Defining LD_SWITCH_SITE = $null_string
+ − 15651 EOF
+ − 15652 cat >> confdefs.h <<EOF
+ − 15653 #define LD_SWITCH_SITE $null_string
+ − 15654 EOF
+ − 15655 }
+ − 15656
+ − 15657 { test "$extra_verbose" = "yes" && cat << EOF
+ − 15658 Defining C_SWITCH_SITE = $null_string
+ − 15659 EOF
+ − 15660 cat >> confdefs.h <<EOF
+ − 15661 #define C_SWITCH_SITE $null_string
+ − 15662 EOF
+ − 15663 }
+ − 15664
+ − 15665
+ − 15666
181
+ − 15667 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 15668 Defining GNU_MALLOC
+ − 15669 EOF
+ − 15670 cat >> confdefs.h <<\EOF
+ − 15671 #define GNU_MALLOC 1
+ − 15672 EOF
+ − 15673 }
+ − 15674
181
+ − 15675 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 15676 Defining USE_SYSTEM_MALLOC
+ − 15677 EOF
+ − 15678 cat >> confdefs.h <<\EOF
+ − 15679 #define USE_SYSTEM_MALLOC 1
+ − 15680 EOF
+ − 15681 }
+ − 15682
181
+ − 15683 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
177
+ − 15684 Defining USE_DEBUG_MALLOC
+ − 15685 EOF
+ − 15686 cat >> confdefs.h <<\EOF
+ − 15687 #define USE_DEBUG_MALLOC 1
+ − 15688 EOF
+ − 15689 }
+ − 15690
181
+ − 15691 { test "$extra_verbose" = "yes" && cat << \EOF
177
+ − 15692 Defining USE_SYSTEM_MALLOC
+ − 15693 EOF
+ − 15694 cat >> confdefs.h <<\EOF
+ − 15695 #define USE_SYSTEM_MALLOC 1
+ − 15696 EOF
+ − 15697 }
+ − 15698
149
+ − 15699 fi
169
+ − 15700 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 15701 Defining USE_GCC
+ − 15702 EOF
+ − 15703 cat >> confdefs.h <<\EOF
+ − 15704 #define USE_GCC 1
+ − 15705 EOF
+ − 15706 }
+ − 15707
+ − 15708 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15709 Defining EXTERNAL_WIDGET
+ − 15710 EOF
+ − 15711 cat >> confdefs.h <<\EOF
+ − 15712 #define EXTERNAL_WIDGET 1
+ − 15713 EOF
+ − 15714 }
+ − 15715
925
+ − 15716 test "$use_kkcc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15717 Defining USE_KKCC
+ − 15718 EOF
+ − 15719 cat >> confdefs.h <<\EOF
+ − 15720 #define USE_KKCC 1
+ − 15721 EOF
+ − 15722 }
+ − 15723
442
+ − 15724 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15725 Defining QUICK_BUILD
+ − 15726 EOF
+ − 15727 cat >> confdefs.h <<\EOF
+ − 15728 #define QUICK_BUILD 1
149
+ − 15729 EOF
+ − 15730 }
+ − 15731
380
+ − 15732 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15733 Defining PURIFY
+ − 15734 EOF
+ − 15735 cat >> confdefs.h <<\EOF
+ − 15736 #define PURIFY 1
+ − 15737 EOF
+ − 15738 }
+ − 15739
149
+ − 15740 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15741 Defining QUANTIFY
+ − 15742 EOF
+ − 15743 cat >> confdefs.h <<\EOF
+ − 15744 #define QUANTIFY 1
+ − 15745 EOF
+ − 15746 }
+ − 15747
+ − 15748 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15749 Defining MAIL_USE_POP
+ − 15750 EOF
+ − 15751 cat >> confdefs.h <<\EOF
+ − 15752 #define MAIL_USE_POP 1
+ − 15753 EOF
+ − 15754 }
+ − 15755
+ − 15756 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15757 Defining KERBEROS
+ − 15758 EOF
+ − 15759 cat >> confdefs.h <<\EOF
+ − 15760 #define KERBEROS 1
+ − 15761 EOF
+ − 15762 }
+ − 15763
+ − 15764 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15765 Defining HESIOD
+ − 15766 EOF
+ − 15767 cat >> confdefs.h <<\EOF
+ − 15768 #define HESIOD 1
+ − 15769 EOF
+ − 15770 }
+ − 15771
272
+ − 15772 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15773 Defining USE_UNION_TYPE
+ − 15774 EOF
+ − 15775 cat >> confdefs.h <<\EOF
+ − 15776 #define USE_UNION_TYPE 1
149
+ − 15777 EOF
0
+ − 15778 }
70
+ − 15779
424
+ − 15780 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15781 Defining PDUMP
+ − 15782 EOF
+ − 15783 cat >> confdefs.h <<\EOF
+ − 15784 #define PDUMP 1
+ − 15785 EOF
+ − 15786 }
+ − 15787
724
+ − 15788 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15789 Defining IPV6_CANONICALIZE
+ − 15790 EOF
+ − 15791 cat >> confdefs.h <<\EOF
+ − 15792 #define IPV6_CANONICALIZE 1
+ − 15793 EOF
+ − 15794 }
+ − 15795
70
+ − 15796
0
+ − 15797
118
+ − 15798 (
149
+ − 15799 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
+ − 15800 else
+ − 15801 echo "uname -a: `uname -a`"
+ − 15802 fi
+ − 15803 echo ""
+ − 15804 echo "$0 $quoted_arguments"
261
+ − 15805 ) > Installation
+ − 15806
414
+ − 15807 if test ! -z ${emacs_beta_version} ; then
+ − 15808 if test -z "${emacs_is_beta}" ; then
+ − 15809 xemacs_betaname=".${emacs_beta_version}"
+ − 15810 else
+ − 15811 xemacs_betaname="-b${emacs_beta_version}"
+ − 15812 fi
+ − 15813 else
430
+ − 15814 xemacs_betaname=""
414
+ − 15815 fi
149
+ − 15816
116
+ − 15817 (
0
+ − 15818 echo "
+ − 15819
975
+ − 15820 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" $xemacs_extra_name configured for \`$canonical'.
442
+ − 15821 "
+ − 15822 echo "
+ − 15823 Compilation / Installation:"
+ − 15824 echo " Source code location: $srcdir"
+ − 15825 echo " Installation prefix: $prefix"
70
+ − 15826 if test -n "$site_includes"; then
442
+ − 15827 echo " Additional header files: $site_includes"
149
+ − 15828 fi
+ − 15829 if test -n "$site_libraries"; then
442
+ − 15830 echo " Additional libraries: $site_libraries"
149
+ − 15831 fi
209
+ − 15832 if test -n "$site_prefixes"; then
442
+ − 15833 echo " Additional prefixes: $site_prefixes"
209
+ − 15834 fi
149
+ − 15835 if test -n "$runpath"; then
442
+ − 15836 echo " Runtime library search path: $runpath"
+ − 15837 fi
+ − 15838
+ − 15839 if test -n "$opsysfile"
+ − 15840 then echo " Operating system description file: \`$opsysfile'"
+ − 15841 else echo " Not using any operating system description file"
+ − 15842 fi
+ − 15843 if test -n "$machfile"
+ − 15844 then echo " Machine description file: \`$machfile'"
+ − 15845 else echo " Not using any machine description file"
+ − 15846 fi
+ − 15847
1111
+ − 15848 echo " Compiler: $XEMACS_CC $CFLAGS"
442
+ − 15849 echo " Relocating allocator for buffers: $rel_alloc"
+ − 15850 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
708
+ − 15851 case "$ld_switch_site" in
+ − 15852 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
+ − 15853 - Consider configuring with --pdump." ;;
+ − 15854 esac
442
+ − 15855
+ − 15856 echo "
+ − 15857 Window System:"
+ − 15858 if test "$with_msw" = "yes"; then
+ − 15859 echo " Compiling in support for the Microsoft window system."
+ − 15860 fi
+ − 15861 if test "$with_x11" = "yes"; then
+ − 15862 echo " Compiling in support for the X window system:"
+ − 15863 echo " - X Windows headers location: $x_includes"
+ − 15864 echo " - X Windows libraries location: $x_libraries"
+ − 15865 if test "$with_xauth" != yes; then
+ − 15866 echo " - Xau (X authority) not available."
+ − 15867 fi
+ − 15868 if test "$with_xmu" != yes; then
+ − 15869 echo " - Xmu library not available; substituting equivalent routines."
+ − 15870 fi
+ − 15871 if test "$with_wmcommand" != no; then
+ − 15872 echo " - Handling WM_COMMAND properly."
+ − 15873 fi
+ − 15874 fi
+ − 15875 if test "$need_athena" = "yes"; then
+ − 15876 echo " Compiling in support for the Athena widget set:"
+ − 15877 echo " - Athena headers location: $athena_h_path"
+ − 15878 echo " - Athena library to link: $athena_lib"
+ − 15879 fi
+ − 15880 case "$with_menubars" in
462
+ − 15881 gtk ) echo " Using GTK menubars." ;;
442
+ − 15882 lucid ) echo " Using Lucid menubars." ;;
+ − 15883 motif ) echo " Using Motif menubars."
+ − 15884 echo " *WARNING* The Motif menubar implementation is currently buggy."
+ − 15885 echo " We recommend using the Lucid menubar instead."
+ − 15886 echo " Re-run configure with --with-menubars='lucid'." ;;
+ − 15887 msw ) echo " Using MS-Windows menubars." ;;
+ − 15888 esac
+ − 15889 case "$with_scrollbars" in
462
+ − 15890 gtk ) echo " Using GTK scrollbars." ;;
442
+ − 15891 lucid ) echo " Using Lucid scrollbars." ;;
+ − 15892 motif ) echo " Using Motif scrollbars." ;;
+ − 15893 athena ) echo " Using Athena scrollbars." ;;
+ − 15894 msw ) echo " Using MS-Windows scrollbars." ;;
+ − 15895 esac
+ − 15896 case "$with_dialogs" in
462
+ − 15897 gtk ) echo " Using GTK dialog boxes." ;;
442
+ − 15898 motif ) echo " Using Motif dialog boxes."
+ − 15899 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
+ − 15900 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
+ − 15901 echo " We recommend using the Athena dialog boxes instead."
+ − 15902 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
+ − 15903 echo " Read the PROBLEMS file for more information."
+ − 15904 fi; fi ;;
+ − 15905 athena ) echo " Using Athena dialog boxes." ;;
+ − 15906 msw ) echo " Using MS-Windows dialog boxes." ;;
+ − 15907 esac
+ − 15908 case "$with_widgets" in
462
+ − 15909 gtk ) echo " Using GTK native widgets." ;;
442
+ − 15910 motif ) echo " Using Motif native widgets." ;;
+ − 15911 athena ) echo " Using Athena native widgets." ;;
+ − 15912 msw ) echo " Using MS-Windows native widgets." ;;
+ − 15913 esac
+ − 15914 if test "$with_dragndrop" = yes; then
+ − 15915 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
+ − 15916 echo " - Drag'n'Drop prototype: $dragndrop_proto."
+ − 15917 fi
+ − 15918
+ − 15919 echo "
+ − 15920 TTY:"
+ − 15921 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
+ − 15922 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
+ − 15923
+ − 15924 echo "
+ − 15925 Images:"
+ − 15926 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
153
+ − 15927 if test "$with_xpm" = yes; then
442
+ − 15928 echo " Compiling in support for XPM images."
175
+ − 15929 elif test "$with_x11" = yes; then
442
+ − 15930 echo " WARNING: -----------------------------------------------------------"
+ − 15931 echo " WARNING: Compiling without XPM image support."
373
+ − 15932 if test "$xpm_problem" != ""; then
+ − 15933 echo " Reason: $xpm_problem"
+ − 15934 fi
+ − 15935 echo " WARNING: You should strongly consider installing XPM."
151
+ − 15936 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
373
+ − 15937 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
442
+ − 15938 echo " WARNING: -----------------------------------------------------------"
371
+ − 15939 fi
373
+ − 15940 if test "$with_png" = yes; then
442
+ − 15941 echo " Compiling in support for PNG images."
373
+ − 15942 elif test "$window_system" != "none"; then
442
+ − 15943 echo " WARNING: -----------------------------------------------------------"
373
+ − 15944 echo " WARNING: Compiling without PNG image support."
+ − 15945 if test "$png_problem" != ""; then
+ − 15946 echo " Reason: $png_problem"
+ − 15947 fi
+ − 15948 echo " WARNING: You should strongly consider installing the PNG libraries."
+ − 15949 echo " WARNING: Otherwise certain images and glyphs may not display."
+ − 15950 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
442
+ − 15951 echo " WARNING: -----------------------------------------------------------"
+ − 15952 fi
+ − 15953 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
+ − 15954 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
310
+ − 15955 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
432
+ − 15956
442
+ − 15957 echo "
+ − 15958 Sound:"
+ − 15959 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
+ − 15960 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
+ − 15961 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
+ − 15962 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
+ − 15963
+ − 15964 echo "
+ − 15965 Databases:"
+ − 15966 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
116
+ − 15967 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
426
+ − 15968 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
442
+ − 15969 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
+ − 15970 if test "$with_postgresql" = yes; then
+ − 15971 echo " Compiling in support for PostgreSQL."
+ − 15972 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
+ − 15973 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
+ − 15974 fi
+ − 15975
+ − 15976 echo "
+ − 15977 Internationalization:"
+ − 15978 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
+ − 15979 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
+ − 15980 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
+ − 15981 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
+ − 15982 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
+ − 15983 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
120
+ − 15984 if test "$with_wnn" = yes; then
+ − 15985 echo " Compiling in support for the WNN input method on Mule."
442
+ − 15986 test "$with_wnn6" = yes && echo " - Using WNN version 6."
+ − 15987 fi
+ − 15988
+ − 15989 echo "
+ − 15990 Mail:"
+ − 15991 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
+ − 15992 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
+ − 15993 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
+ − 15994 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
+ − 15995
+ − 15996 echo "
+ − 15997 Other Features:"
708
+ − 15998 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
116
+ − 15999 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
149
+ − 16000 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
442
+ − 16001 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
+ − 16002 test "$with_dnet" = yes && echo " Compiling in support for DNET."
+ − 16003 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
1202
+ − 16004 if test "$use_union_type" = yes ; then
+ − 16005 echo " Using the union type for Lisp_Objects."
+ − 16006 echo " WARNING: ---------------------------------------------------------"
+ − 16007 echo " WARNING: This tends to trigger compiler bugs, especially when"
+ − 16008 echo " WARNING: combined with MULE and ERROR_CHECKING. Crashes have"
+ − 16009 echo " WARNING: been seen with various versions of GCC, and recently"
+ − 16010 echo " WARNING: with Visual C++ as well."
+ − 16011 echo " WARNING: ---------------------------------------------------------"
+ − 16012 fi
+ − 16013 test "$use_union_type" = yes && echo " WARNING: Use of the union type may cause crashes due to compiler bugs."
925
+ − 16014 test "$use_kkcc" = yes && echo " Using the new GC algorithms."
442
+ − 16015 test "$pdump" = yes && echo " Using the new portable dumper."
+ − 16016 test "$debug" = yes && echo " Compiling in support for extra debugging code."
+ − 16017 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
800
+ − 16018 if test "$error_check_extents $error_check_types $error_check_text $error_check_gc $error_check_malloc $error_check_glyphs $error_check_byte_code $error_check_display $error_check_structures" \
831
+ − 16019 != "no no no no no no no no no"; then
151
+ − 16020 echo " WARNING: ---------------------------------------------------------"
+ − 16021 echo " WARNING: Compiling in support for runtime error checking."
+ − 16022 echo " WARNING: XEmacs will run noticeably more slowly as a result."
+ − 16023 echo " WARNING: Error checking is on by default for XEmacs beta releases."
+ − 16024 echo " WARNING: ---------------------------------------------------------"
+ − 16025 fi
118
+ − 16026 echo ""
116
+ − 16027 ) | tee -a Installation
118
+ − 16028 echo ""
+ − 16029
70
+ − 16030
0
+ − 16031 # Remove any trailing slashes in these variables.
149
+ − 16032 test -n "$prefix" &&
159
+ − 16033 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
149
+ − 16034 test -n "$exec_prefix" &&
159
+ − 16035 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
149
+ − 16036
+ − 16037
272
+ − 16038 for file in $internal_makefile_list; do
1111
+ − 16039 case $file in
+ − 16040 src/Makefile.in ) file="src/Makefile.in:src/Makefile.in.in:src/depend" ;;
+ − 16041 modules/* ) file="${file}:${file}.in:modules/common/Makefile.common" ;;
+ − 16042 esac
430
+ − 16043 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
272
+ − 16044 done
276
+ − 16045 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
430
+ − 16046 test "$with_modules" = "yes" && ac_output_files="$ac_output_files lib-src/ellcc.h" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src/ellcc.h\" to \$ac_output_files"; fi
272
+ − 16047
149
+ − 16048 trap '' 1 2 15
+ − 16049
+ − 16050 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
+ − 16051
+ − 16052 test "x$prefix" = xNONE && prefix=$ac_default_prefix
+ − 16053 # Let make expand exec_prefix.
+ − 16054 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
0
+ − 16055
+ − 16056 # Any assignment to VPATH causes Sun make to only execute
+ − 16057 # the first set of double-colon rules, so remove it if not needed.
+ − 16058 # If there is a colon in the path, we need to keep it.
+ − 16059 if test "x$srcdir" = x.; then
+ − 16060 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
+ − 16061 fi
+ − 16062
149
+ − 16063 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
+ − 16064
+ − 16065 DEFS=-DHAVE_CONFIG_H
+ − 16066
+ − 16067 # Without the "./", some shells look in PATH for config.status.
+ − 16068 : ${CONFIG_STATUS=./config.status}
+ − 16069
+ − 16070 echo creating $CONFIG_STATUS
+ − 16071 rm -f $CONFIG_STATUS
+ − 16072 cat > $CONFIG_STATUS <<EOF
+ − 16073 #! /bin/sh
0
+ − 16074 # Generated automatically by configure.
+ − 16075 # Run this file to recreate the current configuration.
+ − 16076 # This directory was configured as follows,
+ − 16077 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+ − 16078 #
149
+ − 16079 # $0 $ac_configure_args
+ − 16080 #
+ − 16081 # Compiler output produced by configure, useful for debugging
+ − 16082 # configure, is in ./config.log if it exists.
+ − 16083
+ − 16084 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
0
+ − 16085 for ac_option
+ − 16086 do
+ − 16087 case "\$ac_option" in
+ − 16088 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
149
+ − 16089 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
+ − 16090 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
0
+ − 16091 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
420
+ − 16092 echo "$CONFIG_STATUS generated by autoconf version 2.13"
0
+ − 16093 exit 0 ;;
+ − 16094 -help | --help | --hel | --he | --h)
+ − 16095 echo "\$ac_cs_usage"; exit 0 ;;
+ − 16096 *) echo "\$ac_cs_usage"; exit 1 ;;
+ − 16097 esac
+ − 16098 done
+ − 16099
+ − 16100 ac_given_srcdir=$srcdir
149
+ − 16101 ac_given_INSTALL="$INSTALL"
+ − 16102
276
+ − 16103 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
149
+ − 16104 EOF
+ − 16105 cat >> $CONFIG_STATUS <<EOF
+ − 16106
+ − 16107 # Protect against being on the right side of a sed subst in config.status.
+ − 16108 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
+ − 16109 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
0
+ − 16110 $ac_vpsub
+ − 16111 $extrasub
420
+ − 16112 s%@SHELL@%$SHELL%g
149
+ − 16113 s%@CFLAGS@%$CFLAGS%g
+ − 16114 s%@CPPFLAGS@%$CPPFLAGS%g
+ − 16115 s%@CXXFLAGS@%$CXXFLAGS%g
420
+ − 16116 s%@FFLAGS@%$FFLAGS%g
149
+ − 16117 s%@DEFS@%$DEFS%g
+ − 16118 s%@LDFLAGS@%$LDFLAGS%g
+ − 16119 s%@LIBS@%$LIBS%g
+ − 16120 s%@exec_prefix@%$exec_prefix%g
+ − 16121 s%@prefix@%$prefix%g
+ − 16122 s%@program_transform_name@%$program_transform_name%g
+ − 16123 s%@bindir@%$bindir%g
+ − 16124 s%@sbindir@%$sbindir%g
+ − 16125 s%@libexecdir@%$libexecdir%g
+ − 16126 s%@datadir@%$datadir%g
+ − 16127 s%@sysconfdir@%$sysconfdir%g
+ − 16128 s%@sharedstatedir@%$sharedstatedir%g
+ − 16129 s%@localstatedir@%$localstatedir%g
+ − 16130 s%@libdir@%$libdir%g
+ − 16131 s%@includedir@%$includedir%g
+ − 16132 s%@oldincludedir@%$oldincludedir%g
+ − 16133 s%@infodir@%$infodir%g
+ − 16134 s%@mandir@%$mandir%g
0
+ − 16135 s%@LN_S@%$LN_S%g
181
+ − 16136 s%@blddir@%$blddir%g
0
+ − 16137 s%@CC@%$CC%g
+ − 16138 s%@CPP@%$CPP%g
207
+ − 16139 s%@start_flags@%$start_flags%g
163
+ − 16140 s%@ld_switch_shared@%$ld_switch_shared%g
+ − 16141 s%@start_files@%$start_files%g
+ − 16142 s%@ld@%$ld%g
+ − 16143 s%@lib_gcc@%$lib_gcc%g
0
+ − 16144 s%@RANLIB@%$RANLIB%g
+ − 16145 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
420
+ − 16146 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
0
+ − 16147 s%@INSTALL_DATA@%$INSTALL_DATA%g
+ − 16148 s%@YACC@%$YACC%g
+ − 16149 s%@SET_MAKE@%$SET_MAKE%g
462
+ − 16150 s%@GTK_CONFIG@%$GTK_CONFIG%g
149
+ − 16151 s%@X_CFLAGS@%$X_CFLAGS%g
+ − 16152 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
+ − 16153 s%@X_LIBS@%$X_LIBS%g
+ − 16154 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
276
+ − 16155 s%@install_pp@%$install_pp%g
159
+ − 16156 s%@libs_xauth@%$libs_xauth%g
274
+ − 16157 s%@dnd_objs@%$dnd_objs%g
265
+ − 16158 s%@dll_ld@%$dll_ld%g
+ − 16159 s%@dll_cflags@%$dll_cflags%g
388
+ − 16160 s%@dll_ldflags@%$dll_ldflags%g
+ − 16161 s%@dll_post@%$dll_post%g
+ − 16162 s%@dll_ldo@%$dll_ldo%g
+ − 16163 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
997
+ − 16164 s%@with_modules@%$with_modules%g
+ − 16165 s%@MOD_CC@%$MOD_CC%g
+ − 16166 s%@MODARCHDIR@%$MODARCHDIR%g
+ − 16167 s%@MAKE_DOCFILE@%$MAKE_DOCFILE%g
+ − 16168 s%@MODCFLAGS@%$MODCFLAGS%g
+ − 16169 s%@INSTALLPATH@%$INSTALLPATH%g
+ − 16170 s%@MOD_INSTALL_PROGRAM@%$MOD_INSTALL_PROGRAM%g
+ − 16171 s%@OBJECT_TO_BUILD@%$OBJECT_TO_BUILD%g
+ − 16172 s%@ldap_libs@%$ldap_libs%g
+ − 16173 s%@postgresql_libs@%$postgresql_libs%g
+ − 16174 s%@lwlib_objs@%$lwlib_objs%g
+ − 16175 s%@ALLOCA@%$ALLOCA%g
+ − 16176 s%@have_esd_config@%$have_esd_config%g
151
+ − 16177 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
167
+ − 16178 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
149
+ − 16179 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
+ − 16180 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
280
+ − 16181 s%@PROGNAME@%$PROGNAME%g
0
+ − 16182 s%@version@%$version%g
+ − 16183 s%@configuration@%$configuration%g
+ − 16184 s%@canonical@%$canonical%g
422
+ − 16185 s%@inststaticdir@%$inststaticdir%g
+ − 16186 s%@instvardir@%$instvardir%g
0
+ − 16187 s%@srcdir@%$srcdir%g
+ − 16188 s%@statedir@%$statedir%g
452
+ − 16189 s%@extra_includes@%$extra_includes%g
420
+ − 16190 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
278
+ − 16191 s%@PREFIX@%$PREFIX%g
420
+ − 16192 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
278
+ − 16193 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
274
+ − 16194 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
+ − 16195 s%@INFODIR@%$INFODIR%g
203
+ − 16196 s%@infopath@%$infopath%g
274
+ − 16197 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
+ − 16198 s%@INFOPATH@%$INFOPATH%g
269
+ − 16199 s%@package_path@%$package_path%g
274
+ − 16200 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
+ − 16201 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
0
+ − 16202 s%@lispdir@%$lispdir%g
274
+ − 16203 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
+ − 16204 s%@LISPDIR@%$LISPDIR%g
388
+ − 16205 s%@moduledir@%$moduledir%g
+ − 16206 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
+ − 16207 s%@MODULEDIR@%$MODULEDIR%g
+ − 16208 s%@sitelispdir@%$sitelispdir%g
+ − 16209 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
+ − 16210 s%@SITELISPDIR@%$SITELISPDIR%g
+ − 16211 s%@sitemoduledir@%$sitemoduledir%g
+ − 16212 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
+ − 16213 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
0
+ − 16214 s%@etcdir@%$etcdir%g
274
+ − 16215 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
+ − 16216 s%@ETCDIR@%$ETCDIR%g
420
+ − 16217 s%@docdir@%$docdir%g
+ − 16218 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
+ − 16219 s%@DOCDIR@%$DOCDIR%g
0
+ − 16220 s%@archlibdir@%$archlibdir%g
274
+ − 16221 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
+ − 16222 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
0
+ − 16223 s%@bitmapdir@%$bitmapdir%g
149
+ − 16224 s%@extra_objs@%$extra_objs%g
0
+ − 16225 s%@machfile@%$machfile%g
+ − 16226 s%@opsysfile@%$opsysfile%g
149
+ − 16227 s%@c_switch_general@%$c_switch_general%g
+ − 16228 s%@c_switch_window_system@%$c_switch_window_system%g
+ − 16229 s%@c_switch_all@%$c_switch_all%g
+ − 16230 s%@ld_switch_general@%$ld_switch_general%g
+ − 16231 s%@ld_switch_window_system@%$ld_switch_window_system%g
+ − 16232 s%@ld_switch_all@%$ld_switch_all%g
+ − 16233 s%@ld_libs_general@%$ld_libs_general%g
+ − 16234 s%@ld_libs_window_system@%$ld_libs_window_system%g
+ − 16235 s%@ld_libs_all@%$ld_libs_all%g
173
+ − 16236 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
149
+ − 16237 s%@native_sound_lib@%$native_sound_lib%g
+ − 16238 s%@sound_cflags@%$sound_cflags%g
0
+ − 16239 s%@dynodump_arch@%$dynodump_arch%g
380
+ − 16240 s%@XEMACS_CC@%$XEMACS_CC%g
0
+ − 16241 s%@internal_makefile_list@%$internal_makefile_list%g
149
+ − 16242
+ − 16243 CEOF
+ − 16244 EOF
+ − 16245
+ − 16246 cat >> $CONFIG_STATUS <<\EOF
+ − 16247
+ − 16248 # Split the substitutions into bite-sized pieces for seds with
+ − 16249 # small command number limits, like on Digital OSF/1 and HP-UX.
+ − 16250 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
+ − 16251 ac_file=1 # Number of current file.
+ − 16252 ac_beg=1 # First line for current file.
+ − 16253 ac_end=$ac_max_sed_cmds # Line after last line for current file.
+ − 16254 ac_more_lines=:
+ − 16255 ac_sed_cmds=""
+ − 16256 while $ac_more_lines; do
+ − 16257 if test $ac_beg -gt 1; then
+ − 16258 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
+ − 16259 else
+ − 16260 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
+ − 16261 fi
+ − 16262 if test ! -s conftest.s$ac_file; then
+ − 16263 ac_more_lines=false
+ − 16264 rm -f conftest.s$ac_file
+ − 16265 else
+ − 16266 if test -z "$ac_sed_cmds"; then
+ − 16267 ac_sed_cmds="sed -f conftest.s$ac_file"
+ − 16268 else
+ − 16269 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
+ − 16270 fi
+ − 16271 ac_file=`expr $ac_file + 1`
+ − 16272 ac_beg=$ac_end
+ − 16273 ac_end=`expr $ac_end + $ac_max_sed_cmds`
+ − 16274 fi
+ − 16275 done
+ − 16276 if test -z "$ac_sed_cmds"; then
+ − 16277 ac_sed_cmds=cat
+ − 16278 fi
+ − 16279 EOF
+ − 16280
+ − 16281 cat >> $CONFIG_STATUS <<EOF
+ − 16282
272
+ − 16283 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
149
+ − 16284 EOF
+ − 16285 cat >> $CONFIG_STATUS <<\EOF
+ − 16286 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
+ − 16287 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
+ − 16288 case "$ac_file" in
+ − 16289 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
+ − 16290 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
+ − 16291 *) ac_file_in="${ac_file}.in" ;;
+ − 16292 esac
+ − 16293
+ − 16294 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
+ − 16295
+ − 16296 # Remove last slash and all that follows it. Not all systems have dirname.
+ − 16297 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
+ − 16298 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
+ − 16299 # The file is in a subdirectory.
+ − 16300 test ! -d "$ac_dir" && mkdir "$ac_dir"
+ − 16301 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
+ − 16302 # A "../" for each directory in $ac_dir_suffix.
+ − 16303 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
+ − 16304 else
+ − 16305 ac_dir_suffix= ac_dots=
+ − 16306 fi
+ − 16307
+ − 16308 case "$ac_given_srcdir" in
+ − 16309 .) srcdir=.
+ − 16310 if test -z "$ac_dots"; then top_srcdir=.
+ − 16311 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
+ − 16312 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
+ − 16313 *) # Relative path.
+ − 16314 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
+ − 16315 top_srcdir="$ac_dots$ac_given_srcdir" ;;
+ − 16316 esac
+ − 16317
+ − 16318 case "$ac_given_INSTALL" in
+ − 16319 [/$]*) INSTALL="$ac_given_INSTALL" ;;
+ − 16320 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
+ − 16321 esac
+ − 16322
+ − 16323 echo creating "$ac_file"
+ − 16324 rm -f "$ac_file"
+ − 16325 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
+ − 16326 case "$ac_file" in
+ − 16327 *Makefile*) ac_comsub="1i\\
+ − 16328 # $configure_input" ;;
+ − 16329 *) ac_comsub= ;;
+ − 16330 esac
+ − 16331
+ − 16332 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
+ − 16333 sed -e "$ac_comsub
+ − 16334 s%@configure_input@%$configure_input%g
+ − 16335 s%@srcdir@%$srcdir%g
0
+ − 16336 s%@top_srcdir@%$top_srcdir%g
149
+ − 16337 s%@INSTALL@%$INSTALL%g
+ − 16338 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
0
+ − 16339 fi; done
149
+ − 16340 rm -f conftest.s*
+ − 16341
+ − 16342 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
+ − 16343 # NAME is the cpp macro being defined and VALUE is the value it is being given.
0
+ − 16344 #
+ − 16345 # ac_d sets the value in "#define NAME VALUE" lines.
149
+ − 16346 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
+ − 16347 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
0
+ − 16348 ac_dC='\3'
149
+ − 16349 ac_dD='%g'
0
+ − 16350 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
149
+ − 16351 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
+ − 16352 ac_uB='\([ ]\)%\1#\2define\3'
0
+ − 16353 ac_uC=' '
149
+ − 16354 ac_uD='\4%g'
0
+ − 16355 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
149
+ − 16356 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
+ − 16357 ac_eB='$%\1#\2define\3'
0
+ − 16358 ac_eC=' '
149
+ − 16359 ac_eD='%g'
+ − 16360
+ − 16361 if test "${CONFIG_HEADERS+set}" != set; then
+ − 16362 EOF
+ − 16363 cat >> $CONFIG_STATUS <<EOF
276
+ − 16364 CONFIG_HEADERS="src/config.h lwlib/config.h"
149
+ − 16365 EOF
+ − 16366 cat >> $CONFIG_STATUS <<\EOF
+ − 16367 fi
+ − 16368 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
+ − 16369 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
+ − 16370 case "$ac_file" in
+ − 16371 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
+ − 16372 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
+ − 16373 *) ac_file_in="${ac_file}.in" ;;
+ − 16374 esac
+ − 16375
+ − 16376 echo creating $ac_file
+ − 16377
+ − 16378 rm -f conftest.frag conftest.in conftest.out
+ − 16379 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
+ − 16380 cat $ac_file_inputs > conftest.in
+ − 16381
+ − 16382 EOF
+ − 16383
+ − 16384 # Transform confdefs.h into a sed script conftest.vals that substitutes
+ − 16385 # the proper values into config.h.in to produce config.h. And first:
+ − 16386 # Protect against being on the right side of a sed subst in config.status.
+ − 16387 # Protect against being in an unquoted here document in config.status.
+ − 16388 rm -f conftest.vals
+ − 16389 cat > conftest.hdr <<\EOF
+ − 16390 s/[\\&%]/\\&/g
+ − 16391 s%[\\$`]%\\&%g
+ − 16392 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
+ − 16393 s%ac_d%ac_u%gp
+ − 16394 s%ac_u%ac_e%gp
+ − 16395 EOF
+ − 16396 sed -n -f conftest.hdr confdefs.h > conftest.vals
+ − 16397 rm -f conftest.hdr
+ − 16398
+ − 16399 # This sed command replaces #undef with comments. This is necessary, for
+ − 16400 # example, in the case of _POSIX_SOURCE, which is predefined and required
+ − 16401 # on some systems where configure will not decide to define it.
+ − 16402 cat >> conftest.vals <<\EOF
+ − 16403 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
+ − 16404 EOF
+ − 16405
+ − 16406 # Break up conftest.vals because some shells have a limit on
+ − 16407 # the size of here documents, and old seds have small limits too.
+ − 16408
+ − 16409 rm -f conftest.tail
0
+ − 16410 while :
+ − 16411 do
149
+ − 16412 ac_lines=`grep -c . conftest.vals`
+ − 16413 # grep -c gives empty output for an empty file on some AIX systems.
0
+ − 16414 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
149
+ − 16415 # Write a limited-size here document to conftest.frag.
+ − 16416 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
+ − 16417 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
+ − 16418 echo 'CEOF
+ − 16419 sed -f conftest.frag conftest.in > conftest.out
+ − 16420 rm -f conftest.in
+ − 16421 mv conftest.out conftest.in
+ − 16422 ' >> $CONFIG_STATUS
+ − 16423 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
+ − 16424 rm -f conftest.vals
+ − 16425 mv conftest.tail conftest.vals
0
+ − 16426 done
149
+ − 16427 rm -f conftest.vals
+ − 16428
+ − 16429 cat >> $CONFIG_STATUS <<\EOF
+ − 16430 rm -f conftest.frag conftest.h
0
+ − 16431 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
149
+ − 16432 cat conftest.in >> conftest.h
+ − 16433 rm -f conftest.in
0
+ − 16434 if cmp -s $ac_file conftest.h 2>/dev/null; then
+ − 16435 echo "$ac_file is unchanged"
+ − 16436 rm -f conftest.h
+ − 16437 else
149
+ − 16438 # Remove last slash and all that follows it. Not all systems have dirname.
+ − 16439 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
+ − 16440 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
+ − 16441 # The file is in a subdirectory.
+ − 16442 test ! -d "$ac_dir" && mkdir "$ac_dir"
+ − 16443 fi
0
+ − 16444 rm -f $ac_file
+ − 16445 mv conftest.h $ac_file
+ − 16446 fi
+ − 16447 fi; done
149
+ − 16448
+ − 16449 EOF
+ − 16450 cat >> $CONFIG_STATUS <<EOF
+ − 16451 CPP="$CPP"
+ − 16452 top_srcdir="$srcdir"
+ − 16453 MAKE_SUBDIR="$MAKE_SUBDIR"
+ − 16454
+ − 16455 EOF
+ − 16456 cat >> $CONFIG_STATUS <<\EOF
380
+ − 16457 for dir in . $MAKE_SUBDIR; do
151
+ − 16458 (
149
+ − 16459 cd $dir
+ − 16460 rm -f junk.c
163
+ − 16461 < Makefile.in \
165
+ − 16462 sed -e '/^# Generated/d' \
163
+ − 16463 -e 's%/\*\*/#.*%%' \
165
+ − 16464 -e 's/^ *# */#/' \
163
+ − 16465 -e '/^##/d' \
+ − 16466 -e '/^#/ {
+ − 16467 p
+ − 16468 d
380
+ − 16469 }' \
+ − 16470 -e '/./ {
163
+ − 16471 s/\([\"]\)/\\\1/g
+ − 16472 s/^/"/
+ − 16473 s/$/"/
+ − 16474 }' > junk.c;
380
+ − 16475
+ − 16476
+ − 16477
+ − 16478 echo creating $dir/Makefile
+ − 16479 $CPP -I. -I${top_srcdir}/src junk.c \
+ − 16480 | sed -e 's/^\#.*//' \
+ − 16481 -e 's/^[ ][ ]*$//'\
+ − 16482 -e 's/^ / /' \
442
+ − 16483 -e '/^[ ]*$/d' \
+ − 16484 -e '/^\"/ {
380
+ − 16485 s/\\\([\"]\)/\1/g
+ − 16486 s/^[ ]*\"//
+ − 16487 s/\"[ ]*$//
+ − 16488 }' > Makefile.new
149
+ − 16489 chmod 444 Makefile.new
+ − 16490 mv -f Makefile.new Makefile
380
+ − 16491
+ − 16492 echo creating $dir/GNUmakefile
+ − 16493 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
+ − 16494 | sed -e 's/^\#.*//' \
+ − 16495 -e 's/^[ ][ ]*$//'\
+ − 16496 -e 's/^ / /' \
442
+ − 16497 -e '/^[ ]*$/d' \
+ − 16498 -e '/^\"/ {
380
+ − 16499 s/\\\([\"]\)/\1/g
+ − 16500 s/^[ ]*\"//
+ − 16501 s/\"[ ]*$//
+ − 16502 }' > Makefile.new
+ − 16503 chmod 444 Makefile.new
+ − 16504 mv -f Makefile.new GNUmakefile
+ − 16505
+ − 16506 rm -f junk.c
+ − 16507 )
149
+ − 16508 done
0
+ − 16509
181
+ − 16510 sed < config.status >> lib-src/config.values \
+ − 16511 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
+ − 16512 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
+ − 16513 -e 's/^\([^ ]*\) $/\1 ""/' \
+ − 16514 -e 's/ 1$/ t/'
175
+ − 16515
+ − 16516
0
+ − 16517 exit 0
+ − 16518 EOF
149
+ − 16519 chmod +x $CONFIG_STATUS
+ − 16520 rm -fr confdefs* $ac_clean_files
+ − 16521 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1