| 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.59. |
| 4 | # |
| 5 | # Copyright (C) 2003, 2006 Free Software Foundation, Inc. |
| 6 | # This configure script is free software; the Free Software Foundation |
| 7 | # gives unlimited permission to copy, distribute and modify it. |
| 8 | ## --------------------- ## |
| 9 | ## M4sh Initialization. ## |
| 10 | ## --------------------- ## |
| 11 | |
| 12 | # Be Bourne compatible |
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 14 | emulate sh |
| 15 | NULLCMD=: |
| 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 17 | # is contrary to our usage. Disable this feature. |
| 18 | alias -g '${1+"$@"}'='"$@"' |
| 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20 | set -o posix |
| 21 | fi |
| 22 | DUALCASE=1; export DUALCASE # for MKS sh |
| 23 | |
| 24 | # Support unset when possible. |
| 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 26 | as_unset=unset |
| 27 | else |
| 28 | as_unset=false |
| 29 | fi |
| 30 | |
| 31 | |
| 32 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33 | $as_unset ENV MAIL MAILPATH |
| 34 | PS1='$ ' |
| 35 | PS2='> ' |
| 36 | PS4='+ ' |
| 37 | |
| 38 | # NLS nuisances. |
| 39 | for as_var in \ |
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 42 | LC_TELEPHONE LC_TIME |
| 43 | do |
| 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 45 | eval $as_var=C; export $as_var |
| 46 | else |
| 47 | $as_unset $as_var |
| 48 | fi |
| 49 | done |
| 50 | |
| 51 | # Required to use basename. |
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 53 | as_expr=expr |
| 54 | else |
| 55 | as_expr=false |
| 56 | fi |
| 57 | |
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 59 | as_basename=basename |
| 60 | else |
| 61 | as_basename=false |
| 62 | fi |
| 63 | |
| 64 | |
| 65 | # Name of the executable. |
| 66 | as_me=`$as_basename "$0" || |
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 68 | X"$0" : 'X\(//\)$' \| \ |
| 69 | X"$0" : 'X\(/\)$' \| \ |
| 70 | . : '\(.\)' 2>/dev/null || |
| 71 | echo X/"$0" | |
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 74 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 75 | s/.*/./; q'` |
| 76 | |
| 77 | |
| 78 | # PATH needs CR, and LINENO needs CR and PATH. |
| 79 | # Avoid depending upon Character Ranges. |
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 83 | as_cr_digits='0123456789' |
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 85 | |
| 86 | # The user is always right. |
| 87 | if test "${PATH_SEPARATOR+set}" != set; then |
| 88 | echo "#! /bin/sh" >conf$$.sh |
| 89 | echo "exit 0" >>conf$$.sh |
| 90 | chmod +x conf$$.sh |
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 92 | PATH_SEPARATOR=';' |
| 93 | else |
| 94 | PATH_SEPARATOR=: |
| 95 | fi |
| 96 | rm -f conf$$.sh |
| 97 | fi |
| 98 | |
| 99 | |
| 100 | as_lineno_1=$LINENO |
| 101 | as_lineno_2=$LINENO |
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 105 | # Find who we are. Look in the path if we contain no path at all |
| 106 | # relative or not. |
| 107 | case $0 in |
| 108 | *[\\/]* ) as_myself=$0 ;; |
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 110 | for as_dir in $PATH |
| 111 | do |
| 112 | IFS=$as_save_IFS |
| 113 | test -z "$as_dir" && as_dir=. |
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 115 | done |
| 116 | |
| 117 | ;; |
| 118 | esac |
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 120 | # in which case we are not to be found in the path. |
| 121 | if test "x$as_myself" = x; then |
| 122 | as_myself=$0 |
| 123 | fi |
| 124 | if test ! -f "$as_myself"; then |
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 126 | { (exit 1); exit 1; }; } |
| 127 | fi |
| 128 | case $CONFIG_SHELL in |
| 129 | '') |
| 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 132 | do |
| 133 | IFS=$as_save_IFS |
| 134 | test -z "$as_dir" && as_dir=. |
| 135 | for as_base in sh bash ksh sh5; do |
| 136 | case $as_dir in |
| 137 | /*) |
| 138 | if ("$as_dir/$as_base" -c ' |
| 139 | as_lineno_1=$LINENO |
| 140 | as_lineno_2=$LINENO |
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 146 | CONFIG_SHELL=$as_dir/$as_base |
| 147 | export CONFIG_SHELL |
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 149 | fi;; |
| 150 | esac |
| 151 | done |
| 152 | done |
| 153 | ;; |
| 154 | esac |
| 155 | |
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 158 | # line-number line before each line; the second 'sed' does the real |
| 159 | # work. The second script uses 'N' to pair each line-number line |
| 160 | # with the numbered line, and appends trailing '-' during |
| 161 | # substitution so that $LINENO is not a special case at line end. |
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 164 | sed '=' <$as_myself | |
| 165 | sed ' |
| 166 | N |
| 167 | s,$,-, |
| 168 | : loop |
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 170 | t loop |
| 171 | s,-$,, |
| 172 | s,^['$as_cr_digits']*\n,, |
| 173 | ' >$as_me.lineno && |
| 174 | chmod +x $as_me.lineno || |
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 176 | { (exit 1); exit 1; }; } |
| 177 | |
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 179 | # (the dirname of $[0] is not the place where we might find the |
| 180 | # original and so on. Autoconf is especially sensible to this). |
| 181 | . ./$as_me.lineno |
| 182 | # Exit status is that of the last command. |
| 183 | exit |
| 184 | } |
| 185 | |
| 186 | |
| 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 188 | *c*,-n*) ECHO_N= ECHO_C=' |
| 189 | ' ECHO_T=' ' ;; |
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 192 | esac |
| 193 | |
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 195 | as_expr=expr |
| 196 | else |
| 197 | as_expr=false |
| 198 | fi |
| 199 | |
| 200 | rm -f conf$$ conf$$.exe conf$$.file |
| 201 | echo >conf$$.file |
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 205 | if test -f conf$$.exe; then |
| 206 | # Don't use ln at all; we don't have any links |
| 207 | as_ln_s='cp -p' |
| 208 | else |
| 209 | as_ln_s='ln -s' |
| 210 | fi |
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 212 | as_ln_s=ln |
| 213 | else |
| 214 | as_ln_s='cp -p' |
| 215 | fi |
| 216 | rm -f conf$$ conf$$.exe conf$$.file |
| 217 | |
| 218 | if mkdir -p . 2>/dev/null; then |
| 219 | as_mkdir_p=: |
| 220 | else |
| 221 | test -d ./-p && rmdir ./-p |
| 222 | as_mkdir_p=false |
| 223 | fi |
| 224 | |
| 225 | as_executable_p="test -f" |
| 226 | |
| 227 | # Sed expression to map a string onto a valid CPP name. |
| 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 229 | |
| 230 | # Sed expression to map a string onto a valid variable name. |
| 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 232 | |
| 233 | |
| 234 | # IFS |
| 235 | # We need space, tab and new line, in precisely that order. |
| 236 | as_nl=' |
| 237 | ' |
| 238 | IFS=" $as_nl" |
| 239 | |
| 240 | # CDPATH. |
| 241 | $as_unset CDPATH |
| 242 | |
| 243 | |
| 244 | # Name of the host. |
| 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 246 | # so uname gets run too. |
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 248 | |
| 249 | exec 6>&1 |
| 250 | |
| 251 | # |
| 252 | # Initializations. |
| 253 | # |
| 254 | ac_default_prefix=/usr/local |
| 255 | ac_config_libobj_dir=. |
| 256 | cross_compiling=no |
| 257 | subdirs= |
| 258 | MFLAGS= |
| 259 | MAKEFLAGS= |
| 260 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 261 | |
| 262 | # Maximum number of lines to put in a shell here document. |
| 263 | # This variable seems obsolete. It should probably be removed, and |
| 264 | # only ac_max_sed_lines should be used. |
| 265 | : ${ac_max_here_lines=38} |
| 266 | |
| 267 | # Identity of this package. |
| 268 | PACKAGE_NAME= |
| 269 | PACKAGE_TARNAME= |
| 270 | PACKAGE_VERSION= |
| 271 | PACKAGE_STRING= |
| 272 | PACKAGE_BUGREPORT= |
| 273 | |
| 274 | ac_unique_file="src/lisp.h" |
| 275 | ac_config_libobj_dir=src |
| 276 | # Factoring default headers for most tests. |
| 277 | ac_includes_default="\ |
| 278 | #include <stdio.h> |
| 279 | #if HAVE_SYS_TYPES_H |
| 280 | # include <sys/types.h> |
| 281 | #endif |
| 282 | #if HAVE_SYS_STAT_H |
| 283 | # include <sys/stat.h> |
| 284 | #endif |
| 285 | #if STDC_HEADERS |
| 286 | # include <stdlib.h> |
| 287 | # include <stddef.h> |
| 288 | #else |
| 289 | # if HAVE_STDLIB_H |
| 290 | # include <stdlib.h> |
| 291 | # endif |
| 292 | #endif |
| 293 | #if HAVE_STRING_H |
| 294 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 295 | # include <memory.h> |
| 296 | # endif |
| 297 | # include <string.h> |
| 298 | #endif |
| 299 | #if HAVE_STRINGS_H |
| 300 | # include <strings.h> |
| 301 | #endif |
| 302 | #if HAVE_INTTYPES_H |
| 303 | # include <inttypes.h> |
| 304 | #else |
| 305 | # if HAVE_STDINT_H |
| 306 | # include <stdint.h> |
| 307 | # endif |
| 308 | #endif |
| 309 | #if HAVE_UNISTD_H |
| 310 | # include <unistd.h> |
| 311 | #endif" |
| 312 | |
| 313 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS' |
| 314 | ac_subst_files='' |
| 315 | |
| 316 | # Initialize some variables set by options. |
| 317 | ac_init_help= |
| 318 | ac_init_version=false |
| 319 | # The variables have the same names as the options, with |
| 320 | # dashes changed to underlines. |
| 321 | cache_file=/dev/null |
| 322 | exec_prefix=NONE |
| 323 | no_create= |
| 324 | no_recursion= |
| 325 | prefix=NONE |
| 326 | program_prefix=NONE |
| 327 | program_suffix=NONE |
| 328 | program_transform_name=s,x,x, |
| 329 | silent= |
| 330 | site= |
| 331 | srcdir= |
| 332 | verbose= |
| 333 | x_includes=NONE |
| 334 | x_libraries=NONE |
| 335 | |
| 336 | # Installation directory options. |
| 337 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 338 | # and all the variables that are supposed to be based on exec_prefix |
| 339 | # by default will actually change. |
| 340 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 341 | bindir='${exec_prefix}/bin' |
| 342 | sbindir='${exec_prefix}/sbin' |
| 343 | libexecdir='${exec_prefix}/libexec' |
| 344 | datadir='${prefix}/share' |
| 345 | sysconfdir='${prefix}/etc' |
| 346 | sharedstatedir='${prefix}/com' |
| 347 | localstatedir='${prefix}/var' |
| 348 | libdir='${exec_prefix}/lib' |
| 349 | includedir='${prefix}/include' |
| 350 | oldincludedir='/usr/include' |
| 351 | infodir='${prefix}/info' |
| 352 | mandir='${prefix}/man' |
| 353 | |
| 354 | ac_prev= |
| 355 | for ac_option |
| 356 | do |
| 357 | # If the previous option needs an argument, assign it. |
| 358 | if test -n "$ac_prev"; then |
| 359 | eval "$ac_prev=\$ac_option" |
| 360 | ac_prev= |
| 361 | continue |
| 362 | fi |
| 363 | |
| 364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 365 | |
| 366 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 367 | |
| 368 | case $ac_option in |
| 369 | |
| 370 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 371 | ac_prev=bindir ;; |
| 372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 373 | bindir=$ac_optarg ;; |
| 374 | |
| 375 | -build | --build | --buil | --bui | --bu) |
| 376 | ac_prev=build_alias ;; |
| 377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 378 | build_alias=$ac_optarg ;; |
| 379 | |
| 380 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 382 | ac_prev=cache_file ;; |
| 383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 385 | cache_file=$ac_optarg ;; |
| 386 | |
| 387 | --config-cache | -C) |
| 388 | cache_file=config.cache ;; |
| 389 | |
| 390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 391 | ac_prev=datadir ;; |
| 392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 393 | | --da=*) |
| 394 | datadir=$ac_optarg ;; |
| 395 | |
| 396 | -disable-* | --disable-*) |
| 397 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 398 | # Reject names that are not valid shell variable names. |
| 399 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 400 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 401 | { (exit 1); exit 1; }; } |
| 402 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 403 | eval "enable_$ac_feature=no" ;; |
| 404 | |
| 405 | -enable-* | --enable-*) |
| 406 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 407 | # Reject names that are not valid shell variable names. |
| 408 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 409 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 410 | { (exit 1); exit 1; }; } |
| 411 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 412 | case $ac_option in |
| 413 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 414 | *) ac_optarg=yes ;; |
| 415 | esac |
| 416 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 417 | |
| 418 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 419 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 420 | | --exec | --exe | --ex) |
| 421 | ac_prev=exec_prefix ;; |
| 422 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 423 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 424 | | --exec=* | --exe=* | --ex=*) |
| 425 | exec_prefix=$ac_optarg ;; |
| 426 | |
| 427 | -gas | --gas | --ga | --g) |
| 428 | # Obsolete; use --with-gas. |
| 429 | with_gas=yes ;; |
| 430 | |
| 431 | -help | --help | --hel | --he | -h) |
| 432 | ac_init_help=long ;; |
| 433 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 434 | ac_init_help=recursive ;; |
| 435 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 436 | ac_init_help=short ;; |
| 437 | |
| 438 | -host | --host | --hos | --ho) |
| 439 | ac_prev=host_alias ;; |
| 440 | -host=* | --host=* | --hos=* | --ho=*) |
| 441 | host_alias=$ac_optarg ;; |
| 442 | |
| 443 | -includedir | --includedir | --includedi | --included | --include \ |
| 444 | | --includ | --inclu | --incl | --inc) |
| 445 | ac_prev=includedir ;; |
| 446 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 447 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 448 | includedir=$ac_optarg ;; |
| 449 | |
| 450 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 451 | ac_prev=infodir ;; |
| 452 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 453 | infodir=$ac_optarg ;; |
| 454 | |
| 455 | -libdir | --libdir | --libdi | --libd) |
| 456 | ac_prev=libdir ;; |
| 457 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 458 | libdir=$ac_optarg ;; |
| 459 | |
| 460 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 461 | | --libexe | --libex | --libe) |
| 462 | ac_prev=libexecdir ;; |
| 463 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 464 | | --libexe=* | --libex=* | --libe=*) |
| 465 | libexecdir=$ac_optarg ;; |
| 466 | |
| 467 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 468 | | --localstate | --localstat | --localsta | --localst \ |
| 469 | | --locals | --local | --loca | --loc | --lo) |
| 470 | ac_prev=localstatedir ;; |
| 471 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 472 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 473 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 474 | localstatedir=$ac_optarg ;; |
| 475 | |
| 476 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 477 | ac_prev=mandir ;; |
| 478 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 479 | mandir=$ac_optarg ;; |
| 480 | |
| 481 | -nfp | --nfp | --nf) |
| 482 | # Obsolete; use --without-fp. |
| 483 | with_fp=no ;; |
| 484 | |
| 485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 486 | | --no-cr | --no-c | -n) |
| 487 | no_create=yes ;; |
| 488 | |
| 489 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 490 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 491 | no_recursion=yes ;; |
| 492 | |
| 493 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 494 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 495 | | --oldin | --oldi | --old | --ol | --o) |
| 496 | ac_prev=oldincludedir ;; |
| 497 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 498 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 499 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 500 | oldincludedir=$ac_optarg ;; |
| 501 | |
| 502 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 503 | ac_prev=prefix ;; |
| 504 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 505 | prefix=$ac_optarg ;; |
| 506 | |
| 507 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 508 | | --program-pre | --program-pr | --program-p) |
| 509 | ac_prev=program_prefix ;; |
| 510 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 511 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 512 | program_prefix=$ac_optarg ;; |
| 513 | |
| 514 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 515 | | --program-suf | --program-su | --program-s) |
| 516 | ac_prev=program_suffix ;; |
| 517 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 518 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 519 | program_suffix=$ac_optarg ;; |
| 520 | |
| 521 | -program-transform-name | --program-transform-name \ |
| 522 | | --program-transform-nam | --program-transform-na \ |
| 523 | | --program-transform-n | --program-transform- \ |
| 524 | | --program-transform | --program-transfor \ |
| 525 | | --program-transfo | --program-transf \ |
| 526 | | --program-trans | --program-tran \ |
| 527 | | --progr-tra | --program-tr | --program-t) |
| 528 | ac_prev=program_transform_name ;; |
| 529 | -program-transform-name=* | --program-transform-name=* \ |
| 530 | | --program-transform-nam=* | --program-transform-na=* \ |
| 531 | | --program-transform-n=* | --program-transform-=* \ |
| 532 | | --program-transform=* | --program-transfor=* \ |
| 533 | | --program-transfo=* | --program-transf=* \ |
| 534 | | --program-trans=* | --program-tran=* \ |
| 535 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 536 | program_transform_name=$ac_optarg ;; |
| 537 | |
| 538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 539 | | -silent | --silent | --silen | --sile | --sil) |
| 540 | silent=yes ;; |
| 541 | |
| 542 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 543 | ac_prev=sbindir ;; |
| 544 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 545 | | --sbi=* | --sb=*) |
| 546 | sbindir=$ac_optarg ;; |
| 547 | |
| 548 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 549 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 550 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 551 | | --sha | --sh) |
| 552 | ac_prev=sharedstatedir ;; |
| 553 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 554 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 555 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 556 | | --sha=* | --sh=*) |
| 557 | sharedstatedir=$ac_optarg ;; |
| 558 | |
| 559 | -site | --site | --sit) |
| 560 | ac_prev=site ;; |
| 561 | -site=* | --site=* | --sit=*) |
| 562 | site=$ac_optarg ;; |
| 563 | |
| 564 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 565 | ac_prev=srcdir ;; |
| 566 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 567 | srcdir=$ac_optarg ;; |
| 568 | |
| 569 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 570 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 571 | ac_prev=sysconfdir ;; |
| 572 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 573 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 574 | sysconfdir=$ac_optarg ;; |
| 575 | |
| 576 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 577 | ac_prev=target_alias ;; |
| 578 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 579 | target_alias=$ac_optarg ;; |
| 580 | |
| 581 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 582 | verbose=yes ;; |
| 583 | |
| 584 | -version | --version | --versio | --versi | --vers | -V) |
| 585 | ac_init_version=: ;; |
| 586 | |
| 587 | -with-* | --with-*) |
| 588 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 589 | # Reject names that are not valid shell variable names. |
| 590 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 591 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 592 | { (exit 1); exit 1; }; } |
| 593 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 594 | case $ac_option in |
| 595 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 596 | *) ac_optarg=yes ;; |
| 597 | esac |
| 598 | eval "with_$ac_package='$ac_optarg'" ;; |
| 599 | |
| 600 | -without-* | --without-*) |
| 601 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 602 | # Reject names that are not valid shell variable names. |
| 603 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 604 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 605 | { (exit 1); exit 1; }; } |
| 606 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 607 | eval "with_$ac_package=no" ;; |
| 608 | |
| 609 | --x) |
| 610 | # Obsolete; use --with-x. |
| 611 | with_x=yes ;; |
| 612 | |
| 613 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 614 | | --x-incl | --x-inc | --x-in | --x-i) |
| 615 | ac_prev=x_includes ;; |
| 616 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 617 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 618 | x_includes=$ac_optarg ;; |
| 619 | |
| 620 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 621 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 622 | ac_prev=x_libraries ;; |
| 623 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 624 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 625 | x_libraries=$ac_optarg ;; |
| 626 | |
| 627 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 628 | Try \`$0 --help' for more information." >&2 |
| 629 | { (exit 1); exit 1; }; } |
| 630 | ;; |
| 631 | |
| 632 | *=*) |
| 633 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 634 | # Reject names that are not valid shell variable names. |
| 635 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 636 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 637 | { (exit 1); exit 1; }; } |
| 638 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 639 | eval "$ac_envvar='$ac_optarg'" |
| 640 | export $ac_envvar ;; |
| 641 | |
| 642 | *) |
| 643 | # FIXME: should be removed in autoconf 3.0. |
| 644 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 645 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 646 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 647 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 648 | ;; |
| 649 | |
| 650 | esac |
| 651 | done |
| 652 | |
| 653 | if test -n "$ac_prev"; then |
| 654 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 655 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 656 | { (exit 1); exit 1; }; } |
| 657 | fi |
| 658 | |
| 659 | # Be sure to have absolute paths. |
| 660 | for ac_var in exec_prefix prefix |
| 661 | do |
| 662 | eval ac_val=$`echo $ac_var` |
| 663 | case $ac_val in |
| 664 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 665 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 666 | { (exit 1); exit 1; }; };; |
| 667 | esac |
| 668 | done |
| 669 | |
| 670 | # Be sure to have absolute paths. |
| 671 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 672 | localstatedir libdir includedir oldincludedir infodir mandir |
| 673 | do |
| 674 | eval ac_val=$`echo $ac_var` |
| 675 | case $ac_val in |
| 676 | [\\/$]* | ?:[\\/]* ) ;; |
| 677 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 678 | { (exit 1); exit 1; }; };; |
| 679 | esac |
| 680 | done |
| 681 | |
| 682 | # There might be people who depend on the old broken behavior: `$host' |
| 683 | # used to hold the argument of --host etc. |
| 684 | # FIXME: To remove some day. |
| 685 | build=$build_alias |
| 686 | host=$host_alias |
| 687 | target=$target_alias |
| 688 | |
| 689 | # FIXME: To remove some day. |
| 690 | if test "x$host_alias" != x; then |
| 691 | if test "x$build_alias" = x; then |
| 692 | cross_compiling=maybe |
| 693 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 694 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 695 | elif test "x$build_alias" != "x$host_alias"; then |
| 696 | cross_compiling=yes |
| 697 | fi |
| 698 | fi |
| 699 | |
| 700 | ac_tool_prefix= |
| 701 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 702 | |
| 703 | test "$silent" = yes && exec 6>/dev/null |
| 704 | |
| 705 | |
| 706 | # Find the source files, if location was not specified. |
| 707 | if test -z "$srcdir"; then |
| 708 | ac_srcdir_defaulted=yes |
| 709 | # Try the directory containing this script, then its parent. |
| 710 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 712 | X"$0" : 'X\(//\)[^/]' \| \ |
| 713 | X"$0" : 'X\(//\)$' \| \ |
| 714 | X"$0" : 'X\(/\)' \| \ |
| 715 | . : '\(.\)' 2>/dev/null || |
| 716 | echo X"$0" | |
| 717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 718 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 719 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 720 | /^X\(\/\).*/{ s//\1/; q; } |
| 721 | s/.*/./; q'` |
| 722 | srcdir=$ac_confdir |
| 723 | if test ! -r $srcdir/$ac_unique_file; then |
| 724 | srcdir=.. |
| 725 | fi |
| 726 | else |
| 727 | ac_srcdir_defaulted=no |
| 728 | fi |
| 729 | if test ! -r $srcdir/$ac_unique_file; then |
| 730 | if test "$ac_srcdir_defaulted" = yes; then |
| 731 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 732 | { (exit 1); exit 1; }; } |
| 733 | else |
| 734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 735 | { (exit 1); exit 1; }; } |
| 736 | fi |
| 737 | fi |
| 738 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 739 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 740 | { (exit 1); exit 1; }; } |
| 741 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 742 | ac_env_build_alias_set=${build_alias+set} |
| 743 | ac_env_build_alias_value=$build_alias |
| 744 | ac_cv_env_build_alias_set=${build_alias+set} |
| 745 | ac_cv_env_build_alias_value=$build_alias |
| 746 | ac_env_host_alias_set=${host_alias+set} |
| 747 | ac_env_host_alias_value=$host_alias |
| 748 | ac_cv_env_host_alias_set=${host_alias+set} |
| 749 | ac_cv_env_host_alias_value=$host_alias |
| 750 | ac_env_target_alias_set=${target_alias+set} |
| 751 | ac_env_target_alias_value=$target_alias |
| 752 | ac_cv_env_target_alias_set=${target_alias+set} |
| 753 | ac_cv_env_target_alias_value=$target_alias |
| 754 | ac_env_CC_set=${CC+set} |
| 755 | ac_env_CC_value=$CC |
| 756 | ac_cv_env_CC_set=${CC+set} |
| 757 | ac_cv_env_CC_value=$CC |
| 758 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 759 | ac_env_CFLAGS_value=$CFLAGS |
| 760 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 761 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 762 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 763 | ac_env_LDFLAGS_value=$LDFLAGS |
| 764 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 765 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 766 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 767 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 768 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 769 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 770 | ac_env_CPP_set=${CPP+set} |
| 771 | ac_env_CPP_value=$CPP |
| 772 | ac_cv_env_CPP_set=${CPP+set} |
| 773 | ac_cv_env_CPP_value=$CPP |
| 774 | |
| 775 | # |
| 776 | # Report the --help message. |
| 777 | # |
| 778 | if test "$ac_init_help" = "long"; then |
| 779 | # Omit some internal or obsolete options to make the list less imposing. |
| 780 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 781 | cat <<_ACEOF |
| 782 | \`configure' configures this package to adapt to many kinds of systems. |
| 783 | |
| 784 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 785 | |
| 786 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 787 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 788 | |
| 789 | Defaults for the options are specified in brackets. |
| 790 | |
| 791 | Configuration: |
| 792 | -h, --help display this help and exit |
| 793 | --help=short display options specific to this package |
| 794 | --help=recursive display the short help of all the included packages |
| 795 | -V, --version display version information and exit |
| 796 | -q, --quiet, --silent do not print \`checking...' messages |
| 797 | --cache-file=FILE cache test results in FILE [disabled] |
| 798 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 799 | -n, --no-create do not create output files |
| 800 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 801 | |
| 802 | _ACEOF |
| 803 | |
| 804 | cat <<_ACEOF |
| 805 | Installation directories: |
| 806 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 807 | [$ac_default_prefix] |
| 808 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 809 | [PREFIX] |
| 810 | |
| 811 | By default, \`make install' will install all the files in |
| 812 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 813 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 814 | for instance \`--prefix=\$HOME'. |
| 815 | |
| 816 | For better control, use the options below. |
| 817 | |
| 818 | Fine tuning of the installation directories: |
| 819 | --bindir=DIR user executables [EPREFIX/bin] |
| 820 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 821 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 822 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 823 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 824 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 825 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 826 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 827 | --includedir=DIR C header files [PREFIX/include] |
| 828 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 829 | --infodir=DIR info documentation [PREFIX/info] |
| 830 | --mandir=DIR man documentation [PREFIX/man] |
| 831 | _ACEOF |
| 832 | |
| 833 | cat <<\_ACEOF |
| 834 | |
| 835 | Program names: |
| 836 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 837 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 838 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 839 | |
| 840 | X features: |
| 841 | --x-includes=DIR X include files are in DIR |
| 842 | --x-libraries=DIR X library files are in DIR |
| 843 | |
| 844 | System types: |
| 845 | --build=BUILD configure for building on BUILD [guessed] |
| 846 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 847 | _ACEOF |
| 848 | fi |
| 849 | |
| 850 | if test -n "$ac_init_help"; then |
| 851 | |
| 852 | cat <<\_ACEOF |
| 853 | |
| 854 | Optional Features: |
| 855 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 856 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 857 | --enable-carbon-app[=DIR] [DIR=/Application] |
| 858 | specify install directory for Emacs.app on Mac OS X |
| 859 | --enable-asserts compile code with asserts enabled |
| 860 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 861 | (and sometimes confusing) to the casual installer |
| 862 | --enable-locallisppath=PATH |
| 863 | directories Emacs should search for lisp files |
| 864 | specific to this site |
| 865 | --disable-largefile omit support for large files |
| 866 | |
| 867 | Optional Packages: |
| 868 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 869 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 870 | --without-gcc don't use GCC to compile Emacs if GCC is found |
| 871 | --without-pop don't support POP mail retrieval with movemail |
| 872 | --with-kerberos support Kerberos-authenticated POP |
| 873 | --with-kerberos5 support Kerberos version 5 authenticated POP |
| 874 | --with-hesiod support Hesiod to get the POP server host |
| 875 | --without-sound don't compile with sound support |
| 876 | --with-x-toolkit=KIT use an X toolkit |
| 877 | (KIT = yes/lucid/athena/motif/gtk/no) |
| 878 | --with-xpm use -lXpm for displaying XPM images |
| 879 | --with-jpeg use -ljpeg for displaying JPEG images |
| 880 | --with-tiff use -ltiff for displaying TIFF images |
| 881 | --with-gif use -lungif for displaying GIF images |
| 882 | --with-png use -lpng for displaying PNG images |
| 883 | --with-gtk use GTK (same as --with-x-toolkit=gtk) |
| 884 | --with-pkg-config-prog Path to pkg-config to use for finding GTK |
| 885 | --without-toolkit-scroll-bars |
| 886 | don't use Motif or Xaw3d scroll bars |
| 887 | --without-xim don't use X11 XIM |
| 888 | --without-carbon don't use Carbon GUI on Mac OS X |
| 889 | --with-x use the X Window System |
| 890 | |
| 891 | Some influential environment variables: |
| 892 | CC C compiler command |
| 893 | CFLAGS C compiler flags |
| 894 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 895 | nonstandard directory <lib dir> |
| 896 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 897 | headers in a nonstandard directory <include dir> |
| 898 | CPP C preprocessor |
| 899 | |
| 900 | Use these variables to override the choices made by `configure' or to help |
| 901 | it to find libraries and programs with nonstandard names/locations. |
| 902 | |
| 903 | _ACEOF |
| 904 | fi |
| 905 | |
| 906 | if test "$ac_init_help" = "recursive"; then |
| 907 | # If there are subdirs, report their specific --help. |
| 908 | ac_popdir=`pwd` |
| 909 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 910 | test -d $ac_dir || continue |
| 911 | ac_builddir=. |
| 912 | |
| 913 | if test "$ac_dir" != .; then |
| 914 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 915 | # A "../" for each directory in $ac_dir_suffix. |
| 916 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 917 | else |
| 918 | ac_dir_suffix= ac_top_builddir= |
| 919 | fi |
| 920 | |
| 921 | case $srcdir in |
| 922 | .) # No --srcdir option. We are building in place. |
| 923 | ac_srcdir=. |
| 924 | if test -z "$ac_top_builddir"; then |
| 925 | ac_top_srcdir=. |
| 926 | else |
| 927 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 928 | fi ;; |
| 929 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 930 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 931 | ac_top_srcdir=$srcdir ;; |
| 932 | *) # Relative path. |
| 933 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 934 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 935 | esac |
| 936 | |
| 937 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 938 | # the directories may not exist. |
| 939 | case `pwd` in |
| 940 | .) ac_abs_builddir="$ac_dir";; |
| 941 | *) |
| 942 | case "$ac_dir" in |
| 943 | .) ac_abs_builddir=`pwd`;; |
| 944 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 945 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 946 | esac;; |
| 947 | esac |
| 948 | case $ac_abs_builddir in |
| 949 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 950 | *) |
| 951 | case ${ac_top_builddir}. in |
| 952 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 953 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 954 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 955 | esac;; |
| 956 | esac |
| 957 | case $ac_abs_builddir in |
| 958 | .) ac_abs_srcdir=$ac_srcdir;; |
| 959 | *) |
| 960 | case $ac_srcdir in |
| 961 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 962 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 963 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 964 | esac;; |
| 965 | esac |
| 966 | case $ac_abs_builddir in |
| 967 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 968 | *) |
| 969 | case $ac_top_srcdir in |
| 970 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 971 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 972 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 973 | esac;; |
| 974 | esac |
| 975 | |
| 976 | cd $ac_dir |
| 977 | # Check for guested configure; otherwise get Cygnus style configure. |
| 978 | if test -f $ac_srcdir/configure.gnu; then |
| 979 | echo |
| 980 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 981 | elif test -f $ac_srcdir/configure; then |
| 982 | echo |
| 983 | $SHELL $ac_srcdir/configure --help=recursive |
| 984 | elif test -f $ac_srcdir/configure.ac || |
| 985 | test -f $ac_srcdir/configure.in; then |
| 986 | echo |
| 987 | $ac_configure --help |
| 988 | else |
| 989 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 990 | fi |
| 991 | cd $ac_popdir |
| 992 | done |
| 993 | fi |
| 994 | |
| 995 | test -n "$ac_init_help" && exit 0 |
| 996 | if $ac_init_version; then |
| 997 | cat <<\_ACEOF |
| 998 | |
| 999 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 1000 | This configure script is free software; the Free Software Foundation |
| 1001 | gives unlimited permission to copy, distribute and modify it. |
| 1002 | _ACEOF |
| 1003 | exit 0 |
| 1004 | fi |
| 1005 | exec 5>config.log |
| 1006 | cat >&5 <<_ACEOF |
| 1007 | This file contains any messages produced by compilers while |
| 1008 | running configure, to aid debugging if configure makes a mistake. |
| 1009 | |
| 1010 | It was created by $as_me, which was |
| 1011 | generated by GNU Autoconf 2.59. Invocation command line was |
| 1012 | |
| 1013 | $ $0 $@ |
| 1014 | |
| 1015 | _ACEOF |
| 1016 | { |
| 1017 | cat <<_ASUNAME |
| 1018 | ## --------- ## |
| 1019 | ## Platform. ## |
| 1020 | ## --------- ## |
| 1021 | |
| 1022 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1023 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1024 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1025 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1026 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1027 | |
| 1028 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1029 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1030 | |
| 1031 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1032 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1033 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1034 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1035 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1036 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1037 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1038 | |
| 1039 | _ASUNAME |
| 1040 | |
| 1041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1042 | for as_dir in $PATH |
| 1043 | do |
| 1044 | IFS=$as_save_IFS |
| 1045 | test -z "$as_dir" && as_dir=. |
| 1046 | echo "PATH: $as_dir" |
| 1047 | done |
| 1048 | |
| 1049 | } >&5 |
| 1050 | |
| 1051 | cat >&5 <<_ACEOF |
| 1052 | |
| 1053 | |
| 1054 | ## ----------- ## |
| 1055 | ## Core tests. ## |
| 1056 | ## ----------- ## |
| 1057 | |
| 1058 | _ACEOF |
| 1059 | |
| 1060 | |
| 1061 | # Keep a trace of the command line. |
| 1062 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1063 | # Strip out --silent because we don't want to record it for future runs. |
| 1064 | # Also quote any args containing shell meta-characters. |
| 1065 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1066 | ac_configure_args= |
| 1067 | ac_configure_args0= |
| 1068 | ac_configure_args1= |
| 1069 | ac_sep= |
| 1070 | ac_must_keep_next=false |
| 1071 | for ac_pass in 1 2 |
| 1072 | do |
| 1073 | for ac_arg |
| 1074 | do |
| 1075 | case $ac_arg in |
| 1076 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1077 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1078 | | -silent | --silent | --silen | --sile | --sil) |
| 1079 | continue ;; |
| 1080 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1081 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1082 | esac |
| 1083 | case $ac_pass in |
| 1084 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1085 | 2) |
| 1086 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1087 | if test $ac_must_keep_next = true; then |
| 1088 | ac_must_keep_next=false # Got value, back to normal. |
| 1089 | else |
| 1090 | case $ac_arg in |
| 1091 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1092 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1093 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1094 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1095 | case "$ac_configure_args0 " in |
| 1096 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1097 | esac |
| 1098 | ;; |
| 1099 | -* ) ac_must_keep_next=true ;; |
| 1100 | esac |
| 1101 | fi |
| 1102 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1103 | # Get rid of the leading space. |
| 1104 | ac_sep=" " |
| 1105 | ;; |
| 1106 | esac |
| 1107 | done |
| 1108 | done |
| 1109 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1110 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1111 | |
| 1112 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1113 | # config.log. We remove comments because anyway the quotes in there |
| 1114 | # would cause problems or look ugly. |
| 1115 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1116 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1117 | trap 'exit_status=$? |
| 1118 | # Save into config.log some information that might help in debugging. |
| 1119 | { |
| 1120 | echo |
| 1121 | |
| 1122 | cat <<\_ASBOX |
| 1123 | ## ---------------- ## |
| 1124 | ## Cache variables. ## |
| 1125 | ## ---------------- ## |
| 1126 | _ASBOX |
| 1127 | echo |
| 1128 | # The following way of writing the cache mishandles newlines in values, |
| 1129 | { |
| 1130 | (set) 2>&1 | |
| 1131 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1132 | *ac_space=\ *) |
| 1133 | sed -n \ |
| 1134 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1135 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1136 | ;; |
| 1137 | *) |
| 1138 | sed -n \ |
| 1139 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1140 | ;; |
| 1141 | esac; |
| 1142 | } |
| 1143 | echo |
| 1144 | |
| 1145 | cat <<\_ASBOX |
| 1146 | ## ----------------- ## |
| 1147 | ## Output variables. ## |
| 1148 | ## ----------------- ## |
| 1149 | _ASBOX |
| 1150 | echo |
| 1151 | for ac_var in $ac_subst_vars |
| 1152 | do |
| 1153 | eval ac_val=$`echo $ac_var` |
| 1154 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1155 | done | sort |
| 1156 | echo |
| 1157 | |
| 1158 | if test -n "$ac_subst_files"; then |
| 1159 | cat <<\_ASBOX |
| 1160 | ## ------------- ## |
| 1161 | ## Output files. ## |
| 1162 | ## ------------- ## |
| 1163 | _ASBOX |
| 1164 | echo |
| 1165 | for ac_var in $ac_subst_files |
| 1166 | do |
| 1167 | eval ac_val=$`echo $ac_var` |
| 1168 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1169 | done | sort |
| 1170 | echo |
| 1171 | fi |
| 1172 | |
| 1173 | if test -s confdefs.h; then |
| 1174 | cat <<\_ASBOX |
| 1175 | ## ----------- ## |
| 1176 | ## confdefs.h. ## |
| 1177 | ## ----------- ## |
| 1178 | _ASBOX |
| 1179 | echo |
| 1180 | sed "/^$/d" confdefs.h | sort |
| 1181 | echo |
| 1182 | fi |
| 1183 | test "$ac_signal" != 0 && |
| 1184 | echo "$as_me: caught signal $ac_signal" |
| 1185 | echo "$as_me: exit $exit_status" |
| 1186 | } >&5 |
| 1187 | rm -f core *.core && |
| 1188 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1189 | exit $exit_status |
| 1190 | ' 0 |
| 1191 | for ac_signal in 1 2 13 15; do |
| 1192 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1193 | done |
| 1194 | ac_signal=0 |
| 1195 | |
| 1196 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1197 | rm -rf conftest* confdefs.h |
| 1198 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1199 | echo >confdefs.h |
| 1200 | |
| 1201 | # Predefined preprocessor variables. |
| 1202 | |
| 1203 | cat >>confdefs.h <<_ACEOF |
| 1204 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1205 | _ACEOF |
| 1206 | |
| 1207 | |
| 1208 | cat >>confdefs.h <<_ACEOF |
| 1209 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1210 | _ACEOF |
| 1211 | |
| 1212 | |
| 1213 | cat >>confdefs.h <<_ACEOF |
| 1214 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1215 | _ACEOF |
| 1216 | |
| 1217 | |
| 1218 | cat >>confdefs.h <<_ACEOF |
| 1219 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1220 | _ACEOF |
| 1221 | |
| 1222 | |
| 1223 | cat >>confdefs.h <<_ACEOF |
| 1224 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1225 | _ACEOF |
| 1226 | |
| 1227 | |
| 1228 | # Let the site file select an alternate cache file if it wants to. |
| 1229 | # Prefer explicitly selected file to automatically selected ones. |
| 1230 | if test -z "$CONFIG_SITE"; then |
| 1231 | if test "x$prefix" != xNONE; then |
| 1232 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1233 | else |
| 1234 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1235 | fi |
| 1236 | fi |
| 1237 | for ac_site_file in $CONFIG_SITE; do |
| 1238 | if test -r "$ac_site_file"; then |
| 1239 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1240 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1241 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1242 | . "$ac_site_file" |
| 1243 | fi |
| 1244 | done |
| 1245 | |
| 1246 | if test -r "$cache_file"; then |
| 1247 | # Some versions of bash will fail to source /dev/null (special |
| 1248 | # files actually), so we avoid doing that. |
| 1249 | if test -f "$cache_file"; then |
| 1250 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1251 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1252 | case $cache_file in |
| 1253 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1254 | *) . ./$cache_file;; |
| 1255 | esac |
| 1256 | fi |
| 1257 | else |
| 1258 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1259 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1260 | >$cache_file |
| 1261 | fi |
| 1262 | |
| 1263 | # Check that the precious variables saved in the cache have kept the same |
| 1264 | # value. |
| 1265 | ac_cache_corrupted=false |
| 1266 | for ac_var in `(set) 2>&1 | |
| 1267 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1268 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1269 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1270 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1271 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1272 | case $ac_old_set,$ac_new_set in |
| 1273 | set,) |
| 1274 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1275 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1276 | ac_cache_corrupted=: ;; |
| 1277 | ,set) |
| 1278 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1279 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1280 | ac_cache_corrupted=: ;; |
| 1281 | ,);; |
| 1282 | *) |
| 1283 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1284 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1285 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1286 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1287 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1288 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1289 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1290 | ac_cache_corrupted=: |
| 1291 | fi;; |
| 1292 | esac |
| 1293 | # Pass precious variables to config.status. |
| 1294 | if test "$ac_new_set" = set; then |
| 1295 | case $ac_new_val in |
| 1296 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1297 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1298 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1299 | esac |
| 1300 | case " $ac_configure_args " in |
| 1301 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1302 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1303 | esac |
| 1304 | fi |
| 1305 | done |
| 1306 | if $ac_cache_corrupted; then |
| 1307 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1308 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1309 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1310 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1311 | { (exit 1); exit 1; }; } |
| 1312 | fi |
| 1313 | |
| 1314 | ac_ext=c |
| 1315 | ac_cpp='$CPP $CPPFLAGS' |
| 1316 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1317 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1318 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1319 | |
| 1320 | |
| 1321 | |
| 1322 | |
| 1323 | |
| 1324 | |
| 1325 | |
| 1326 | |
| 1327 | |
| 1328 | |
| 1329 | |
| 1330 | |
| 1331 | |
| 1332 | |
| 1333 | |
| 1334 | |
| 1335 | |
| 1336 | |
| 1337 | |
| 1338 | ac_config_headers="$ac_config_headers src/config.h:src/config.in" |
| 1339 | |
| 1340 | |
| 1341 | test "$program_prefix" != NONE && |
| 1342 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
| 1343 | # Use a double $ so make ignores it. |
| 1344 | test "$program_suffix" != NONE && |
| 1345 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 1346 | # Double any \ or $. echo might interpret backslashes. |
| 1347 | # By default was `s,x,x', remove it if useless. |
| 1348 | cat <<\_ACEOF >conftest.sed |
| 1349 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 1350 | _ACEOF |
| 1351 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 1352 | rm conftest.sed |
| 1353 | |
| 1354 | |
| 1355 | lispdir='${datadir}/emacs/${version}/lisp' |
| 1356 | locallisppath='${datadir}/emacs/${version}/site-lisp:'\ |
| 1357 | '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' |
| 1358 | lisppath='${locallisppath}:${lispdir}' |
| 1359 | etcdir='${datadir}/emacs/${version}/etc' |
| 1360 | archlibdir='${libexecdir}/emacs/${version}/${configuration}' |
| 1361 | docdir='${datadir}/emacs/${version}/etc' |
| 1362 | gamedir='${localstatedir}/games/emacs' |
| 1363 | |
| 1364 | gameuser=games |
| 1365 | |
| 1366 | |
| 1367 | # Check whether --with-gcc or --without-gcc was given. |
| 1368 | if test "${with_gcc+set}" = set; then |
| 1369 | withval="$with_gcc" |
| 1370 | |
| 1371 | fi; |
| 1372 | |
| 1373 | # Check whether --with-pop or --without-pop was given. |
| 1374 | if test "${with_pop+set}" = set; then |
| 1375 | withval="$with_pop" |
| 1376 | if test "$withval" = yes; then |
| 1377 | cat >>confdefs.h <<\_ACEOF |
| 1378 | #define MAIL_USE_POP 1 |
| 1379 | _ACEOF |
| 1380 | |
| 1381 | else : |
| 1382 | fi |
| 1383 | else |
| 1384 | cat >>confdefs.h <<\_ACEOF |
| 1385 | #define MAIL_USE_POP 1 |
| 1386 | _ACEOF |
| 1387 | |
| 1388 | fi; |
| 1389 | |
| 1390 | |
| 1391 | # Check whether --with-kerberos or --without-kerberos was given. |
| 1392 | if test "${with_kerberos+set}" = set; then |
| 1393 | withval="$with_kerberos" |
| 1394 | cat >>confdefs.h <<\_ACEOF |
| 1395 | #define KERBEROS 1 |
| 1396 | _ACEOF |
| 1397 | |
| 1398 | fi; |
| 1399 | |
| 1400 | |
| 1401 | # Check whether --with-kerberos5 or --without-kerberos5 was given. |
| 1402 | if test "${with_kerberos5+set}" = set; then |
| 1403 | withval="$with_kerberos5" |
| 1404 | if test "${with_kerberos5+set}" = set; then |
| 1405 | if test "${with_kerberos+set}" != set; then |
| 1406 | with_kerberos=yes |
| 1407 | cat >>confdefs.h <<\_ACEOF |
| 1408 | #define KERBEROS 1 |
| 1409 | _ACEOF |
| 1410 | |
| 1411 | fi |
| 1412 | fi |
| 1413 | |
| 1414 | cat >>confdefs.h <<\_ACEOF |
| 1415 | #define KERBEROS5 1 |
| 1416 | _ACEOF |
| 1417 | |
| 1418 | fi; |
| 1419 | |
| 1420 | # Check whether --with-hesiod or --without-hesiod was given. |
| 1421 | if test "${with_hesiod+set}" = set; then |
| 1422 | withval="$with_hesiod" |
| 1423 | |
| 1424 | cat >>confdefs.h <<\_ACEOF |
| 1425 | #define HESIOD 1 |
| 1426 | _ACEOF |
| 1427 | |
| 1428 | fi; |
| 1429 | |
| 1430 | |
| 1431 | # Check whether --with-sound or --without-sound was given. |
| 1432 | if test "${with_sound+set}" = set; then |
| 1433 | withval="$with_sound" |
| 1434 | |
| 1435 | fi; |
| 1436 | |
| 1437 | |
| 1438 | # Check whether --with-x-toolkit or --without-x-toolkit was given. |
| 1439 | if test "${with_x_toolkit+set}" = set; then |
| 1440 | withval="$with_x_toolkit" |
| 1441 | case "${withval}" in |
| 1442 | y | ye | yes ) val=athena ;; |
| 1443 | n | no ) val=no ;; |
| 1444 | l | lu | luc | luci | lucid ) val=lucid ;; |
| 1445 | a | at | ath | athe | athen | athena ) val=athena ;; |
| 1446 | m | mo | mot | moti | motif ) val=motif ;; |
| 1447 | g | gt | gtk ) val=gtk ;; |
| 1448 | * ) |
| 1449 | { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\; |
| 1450 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. |
| 1451 | Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5 |
| 1452 | echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\; |
| 1453 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. |
| 1454 | Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;} |
| 1455 | { (exit 1); exit 1; }; } |
| 1456 | ;; |
| 1457 | esac |
| 1458 | with_x_toolkit=$val |
| 1459 | |
| 1460 | fi; |
| 1461 | |
| 1462 | # Check whether --with-xpm or --without-xpm was given. |
| 1463 | if test "${with_xpm+set}" = set; then |
| 1464 | withval="$with_xpm" |
| 1465 | |
| 1466 | fi; |
| 1467 | |
| 1468 | # Check whether --with-jpeg or --without-jpeg was given. |
| 1469 | if test "${with_jpeg+set}" = set; then |
| 1470 | withval="$with_jpeg" |
| 1471 | |
| 1472 | fi; |
| 1473 | |
| 1474 | # Check whether --with-tiff or --without-tiff was given. |
| 1475 | if test "${with_tiff+set}" = set; then |
| 1476 | withval="$with_tiff" |
| 1477 | |
| 1478 | fi; |
| 1479 | |
| 1480 | # Check whether --with-gif or --without-gif was given. |
| 1481 | if test "${with_gif+set}" = set; then |
| 1482 | withval="$with_gif" |
| 1483 | |
| 1484 | fi; |
| 1485 | |
| 1486 | # Check whether --with-png or --without-png was given. |
| 1487 | if test "${with_png+set}" = set; then |
| 1488 | withval="$with_png" |
| 1489 | |
| 1490 | fi; |
| 1491 | |
| 1492 | # Check whether --with-gtk or --without-gtk was given. |
| 1493 | if test "${with_gtk+set}" = set; then |
| 1494 | withval="$with_gtk" |
| 1495 | |
| 1496 | fi; |
| 1497 | |
| 1498 | # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given. |
| 1499 | if test "${with_pkg_config_prog+set}" = set; then |
| 1500 | withval="$with_pkg_config_prog" |
| 1501 | |
| 1502 | fi; |
| 1503 | |
| 1504 | # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given. |
| 1505 | if test "${with_toolkit_scroll_bars+set}" = set; then |
| 1506 | withval="$with_toolkit_scroll_bars" |
| 1507 | |
| 1508 | fi; |
| 1509 | |
| 1510 | # Check whether --with-xim or --without-xim was given. |
| 1511 | if test "${with_xim+set}" = set; then |
| 1512 | withval="$with_xim" |
| 1513 | |
| 1514 | fi; |
| 1515 | |
| 1516 | # Check whether --with-carbon or --without-carbon was given. |
| 1517 | if test "${with_carbon+set}" = set; then |
| 1518 | withval="$with_carbon" |
| 1519 | |
| 1520 | fi; |
| 1521 | # Check whether --enable-carbon-app or --disable-carbon-app was given. |
| 1522 | if test "${enable_carbon_app+set}" = set; then |
| 1523 | enableval="$enable_carbon_app" |
| 1524 | carbon_appdir_x=${enableval} |
| 1525 | fi; |
| 1526 | |
| 1527 | # Check whether --enable-asserts or --disable-asserts was given. |
| 1528 | if test "${enable_asserts+set}" = set; then |
| 1529 | enableval="$enable_asserts" |
| 1530 | USE_XASSERTS=$enableval |
| 1531 | else |
| 1532 | USE_XASSERTS=no |
| 1533 | fi; |
| 1534 | |
| 1535 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
| 1536 | if test "${enable_maintainer_mode+set}" = set; then |
| 1537 | enableval="$enable_maintainer_mode" |
| 1538 | USE_MAINTAINER_MODE=$enableval |
| 1539 | else |
| 1540 | USE_MAINTAINER_MODE=no |
| 1541 | fi; |
| 1542 | if test $USE_MAINTAINER_MODE = yes; then |
| 1543 | MAINT= |
| 1544 | else |
| 1545 | MAINT=# |
| 1546 | fi |
| 1547 | |
| 1548 | |
| 1549 | # Check whether --enable-locallisppath or --disable-locallisppath was given. |
| 1550 | if test "${enable_locallisppath+set}" = set; then |
| 1551 | enableval="$enable_locallisppath" |
| 1552 | if test "${enableval}" = "no"; then |
| 1553 | locallisppath= |
| 1554 | elif test "${enableval}" != "yes"; then |
| 1555 | locallisppath=${enableval} |
| 1556 | fi |
| 1557 | fi; |
| 1558 | |
| 1559 | #### Make srcdir absolute, if it isn't already. It's important to |
| 1560 | #### avoid running the path through pwd unnecessarily, since pwd can |
| 1561 | #### give you automounter prefixes, which can go away. We do all this |
| 1562 | #### so Emacs can find its files when run uninstalled. |
| 1563 | ## Make sure CDPATH doesn't affect cd (in case PWD is relative). |
| 1564 | unset CDPATH |
| 1565 | case "${srcdir}" in |
| 1566 | /* ) ;; |
| 1567 | . ) |
| 1568 | ## We may be able to use the $PWD environment variable to make this |
| 1569 | ## absolute. But sometimes PWD is inaccurate. |
| 1570 | ## Note: we used to use ${PWD} at the end instead of `pwd`, |
| 1571 | ## but that tested only for a well-formed and valid PWD, |
| 1572 | ## it did not object when PWD was well-formed and valid but just wrong. |
| 1573 | if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ; |
| 1574 | then |
| 1575 | srcdir="$PWD" |
| 1576 | else |
| 1577 | srcdir="`(cd ${srcdir}; pwd)`" |
| 1578 | fi |
| 1579 | ;; |
| 1580 | * ) srcdir="`(cd ${srcdir}; pwd)`" ;; |
| 1581 | esac |
| 1582 | |
| 1583 | #### Check if the source directory already has a configured system in it. |
| 1584 | if test `pwd` != `(cd ${srcdir} && pwd)` \ |
| 1585 | && test -f "${srcdir}/src/config.h" ; then |
| 1586 | { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used |
| 1587 | as a build directory right now; it has been configured in its own |
| 1588 | right. To configure in another directory as well, you MUST |
| 1589 | use GNU make. If you do not have GNU make, then you must |
| 1590 | now do \`make distclean' in ${srcdir}, |
| 1591 | and then run $0 again." >&5 |
| 1592 | echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used |
| 1593 | as a build directory right now; it has been configured in its own |
| 1594 | right. To configure in another directory as well, you MUST |
| 1595 | use GNU make. If you do not have GNU make, then you must |
| 1596 | now do \`make distclean' in ${srcdir}, |
| 1597 | and then run $0 again." >&2;} |
| 1598 | fi |
| 1599 | |
| 1600 | #### Given the configuration name, set machfile and opsysfile to the |
| 1601 | #### names of the m/*.h and s/*.h files we should use. |
| 1602 | |
| 1603 | ### Canonicalize the configuration name. |
| 1604 | |
| 1605 | ac_aux_dir= |
| 1606 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1607 | if test -f $ac_dir/install-sh; then |
| 1608 | ac_aux_dir=$ac_dir |
| 1609 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1610 | break |
| 1611 | elif test -f $ac_dir/install.sh; then |
| 1612 | ac_aux_dir=$ac_dir |
| 1613 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1614 | break |
| 1615 | elif test -f $ac_dir/shtool; then |
| 1616 | ac_aux_dir=$ac_dir |
| 1617 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1618 | break |
| 1619 | fi |
| 1620 | done |
| 1621 | if test -z "$ac_aux_dir"; then |
| 1622 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1623 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1624 | { (exit 1); exit 1; }; } |
| 1625 | fi |
| 1626 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1627 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1628 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1629 | |
| 1630 | # Make sure we can run config.sub. |
| 1631 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1632 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1633 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1634 | { (exit 1); exit 1; }; } |
| 1635 | |
| 1636 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1637 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1638 | if test "${ac_cv_build+set}" = set; then |
| 1639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1640 | else |
| 1641 | ac_cv_build_alias=$build_alias |
| 1642 | test -z "$ac_cv_build_alias" && |
| 1643 | ac_cv_build_alias=`$ac_config_guess` |
| 1644 | test -z "$ac_cv_build_alias" && |
| 1645 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1646 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1647 | { (exit 1); exit 1; }; } |
| 1648 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1649 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1650 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1651 | { (exit 1); exit 1; }; } |
| 1652 | |
| 1653 | fi |
| 1654 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1655 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1656 | build=$ac_cv_build |
| 1657 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1658 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1659 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1660 | |
| 1661 | |
| 1662 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1663 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1664 | if test "${ac_cv_host+set}" = set; then |
| 1665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1666 | else |
| 1667 | ac_cv_host_alias=$host_alias |
| 1668 | test -z "$ac_cv_host_alias" && |
| 1669 | ac_cv_host_alias=$ac_cv_build_alias |
| 1670 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1671 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1672 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1673 | { (exit 1); exit 1; }; } |
| 1674 | |
| 1675 | fi |
| 1676 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1677 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1678 | host=$ac_cv_host |
| 1679 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1680 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1681 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1682 | |
| 1683 | |
| 1684 | canonical=$host |
| 1685 | configuration=${host_alias-$host} |
| 1686 | |
| 1687 | |
| 1688 | |
| 1689 | ### If you add support for a new configuration, add code to this |
| 1690 | ### switch statement to recognize your configuration name and select |
| 1691 | ### the appropriate operating system and machine description files. |
| 1692 | |
| 1693 | ### You would hope that you could choose an m/*.h file pretty much |
| 1694 | ### based on the machine portion of the configuration name, and an s- |
| 1695 | ### file based on the operating system portion. However, it turns out |
| 1696 | ### that each m/*.h file is pretty manufacturer-specific - for |
| 1697 | ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are |
| 1698 | ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS |
| 1699 | ### machines. So we basically have to have a special case for each |
| 1700 | ### configuration name. |
| 1701 | ### |
| 1702 | ### As far as handling version numbers on operating systems is |
| 1703 | ### concerned, make sure things will fail in a fixable way. If |
| 1704 | ### /etc/MACHINES doesn't say anything about version numbers, be |
| 1705 | ### prepared to handle anything reasonably. If version numbers |
| 1706 | ### matter, be sure /etc/MACHINES says something about it. |
| 1707 | ### |
| 1708 | ### Eric Raymond says we should accept strings like "sysvr4" to mean |
| 1709 | ### "System V Release 4"; he writes, "The old convention encouraged |
| 1710 | ### confusion between `system' and `release' levels'." |
| 1711 | |
| 1712 | machine='' opsys='' unported=no |
| 1713 | case "${canonical}" in |
| 1714 | |
| 1715 | ## FreeBSD ports |
| 1716 | *-*-freebsd* ) |
| 1717 | opsys=freebsd |
| 1718 | case "${canonical}" in |
| 1719 | alpha*-*-freebsd*) machine=alpha ;; |
| 1720 | i[3456]86-*-freebsd*) machine=intel386 ;; |
| 1721 | amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;; |
| 1722 | esac |
| 1723 | ;; |
| 1724 | |
| 1725 | ## NetBSD ports |
| 1726 | *-*-netbsd* ) |
| 1727 | opsys=netbsd |
| 1728 | if test -f /usr/lib/crti.o; then |
| 1729 | |
| 1730 | cat >>confdefs.h <<\_ACEOF |
| 1731 | #define HAVE_CRTIN |
| 1732 | _ACEOF |
| 1733 | |
| 1734 | fi |
| 1735 | |
| 1736 | case "${canonical}" in |
| 1737 | alpha*-*-netbsd*) machine=alpha ;; |
| 1738 | i[3456]86-*-netbsd*) machine=intel386 ;; |
| 1739 | m68k-*-netbsd*) |
| 1740 | # This is somewhat bogus. |
| 1741 | machine=hp9000s300 ;; |
| 1742 | powerpc-apple-netbsd*) machine=macppc ;; |
| 1743 | mips-*-netbsd*) machine=pmax ;; |
| 1744 | mipsel-*-netbsd*) machine=pmax ;; |
| 1745 | mipseb-*-netbsd*) machine=pmax ;; |
| 1746 | ns32k-*-netbsd*) machine=ns32000 ;; |
| 1747 | powerpc-*-netbsd*) machine=macppc ;; |
| 1748 | sparc*-*-netbsd*) machine=sparc ;; |
| 1749 | vax-*-netbsd*) machine=vax ;; |
| 1750 | arm-*-netbsd*) machine=arm ;; |
| 1751 | esac |
| 1752 | ;; |
| 1753 | |
| 1754 | ## OpenBSD ports |
| 1755 | *-*-openbsd* ) |
| 1756 | opsys=openbsd |
| 1757 | case "${canonical}" in |
| 1758 | alpha*-*-openbsd*) machine=alpha ;; |
| 1759 | i386-*-openbsd*) machine=intel386 ;; |
| 1760 | m68k-*-openbsd*) machine=hp9000s300 ;; |
| 1761 | mipsel-*-openbsd*) machine=pmax ;; |
| 1762 | ns32k-*-openbsd*) machine=ns32000 ;; |
| 1763 | sparc-*-openbsd*) machine=sparc ;; |
| 1764 | vax-*-openbsd*) machine=vax ;; |
| 1765 | esac |
| 1766 | ;; |
| 1767 | |
| 1768 | ## LynxOS ports |
| 1769 | *-*-lynxos* ) |
| 1770 | opsys=lynxos |
| 1771 | case "${canonical}" in |
| 1772 | i[3456]86-*-lynxos*) machine=intel386 ;; |
| 1773 | powerpc-*-lynxos*) machine=powerpc ;; |
| 1774 | esac |
| 1775 | ;; |
| 1776 | |
| 1777 | ## Acorn RISCiX: |
| 1778 | arm-acorn-riscix1.1* ) |
| 1779 | machine=acorn opsys=riscix1-1 |
| 1780 | ;; |
| 1781 | arm-acorn-riscix1.2* | arm-acorn-riscix ) |
| 1782 | ## This name is riscix12 instead of riscix1.2 |
| 1783 | ## to avoid a file name conflict on MSDOS. |
| 1784 | machine=acorn opsys=riscix12 |
| 1785 | ;; |
| 1786 | |
| 1787 | ## BSDI ports |
| 1788 | *-*-bsdi* ) |
| 1789 | opsys=bsdi |
| 1790 | case "${canonical}" in |
| 1791 | i[345]86-*-bsdi*) machine=intel386 ;; |
| 1792 | sparc-*-bsdi*) machine=sparc ;; |
| 1793 | powerpc-*-bsdi*) machine=macppc ;; |
| 1794 | esac |
| 1795 | case "${canonical}" in |
| 1796 | *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; |
| 1797 | *-*-bsdi2.0* ) opsys=bsdos2 ;; |
| 1798 | *-*-bsdi2* ) opsys=bsdos2-1 ;; |
| 1799 | *-*-bsdi3* ) opsys=bsdos3 ;; |
| 1800 | *-*-bsdi[45]* ) opsys=bsdos4 ;; |
| 1801 | esac |
| 1802 | ;; |
| 1803 | |
| 1804 | ## Alliant machines |
| 1805 | ## Strictly speaking, we need the version of the alliant operating |
| 1806 | ## system to choose the right machine file, but currently the |
| 1807 | ## configuration name doesn't tell us enough to choose the right |
| 1808 | ## one; we need to give alliants their own operating system name to |
| 1809 | ## do this right. When someone cares, they can help us. |
| 1810 | fx80-alliant-* ) |
| 1811 | machine=alliant4 opsys=bsd4-2 |
| 1812 | ;; |
| 1813 | i860-alliant-* ) |
| 1814 | machine=alliant-2800 opsys=bsd4-3 |
| 1815 | ;; |
| 1816 | |
| 1817 | ## Alpha (DEC) machines. |
| 1818 | alpha*-dec-osf* ) |
| 1819 | machine=alpha opsys=osf1 |
| 1820 | # This is needed to find X11R6.1 libraries for certain tests. |
| 1821 | NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib |
| 1822 | GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib |
| 1823 | # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile |
| 1824 | # due to non-traditional preprocessing with the current compiler |
| 1825 | # defaults. OSF 4 can also have that compiler version, and there |
| 1826 | # seems always to have been a usable /usr/bin/cpp. |
| 1827 | NON_GNU_CPP=/usr/bin/cpp |
| 1828 | case "${canonical}" in |
| 1829 | alpha*-dec-osf[5-9]*) |
| 1830 | opsys=osf5-0 ;; |
| 1831 | esac |
| 1832 | ;; |
| 1833 | |
| 1834 | alpha*-*-linux-gnu* ) |
| 1835 | machine=alpha opsys=gnu-linux |
| 1836 | ;; |
| 1837 | |
| 1838 | arm*-*-linux-gnu* ) |
| 1839 | machine=arm opsys=gnu-linux |
| 1840 | ;; |
| 1841 | |
| 1842 | ## Altos 3068 |
| 1843 | m68*-altos-sysv* ) |
| 1844 | machine=altos opsys=usg5-2 |
| 1845 | ;; |
| 1846 | |
| 1847 | ## Amdahl UTS |
| 1848 | 580-amdahl-sysv* ) |
| 1849 | machine=amdahl opsys=usg5-2-2 |
| 1850 | ;; |
| 1851 | |
| 1852 | ## Apollo, Domain/OS |
| 1853 | m68*-apollo-* ) |
| 1854 | machine=apollo opsys=bsd4-3 |
| 1855 | ;; |
| 1856 | |
| 1857 | ## AT&T 3b2, 3b5, 3b15, 3b20 |
| 1858 | we32k-att-sysv* ) |
| 1859 | machine=att3b opsys=usg5-2-2 |
| 1860 | ;; |
| 1861 | |
| 1862 | ## AT&T 3b1 - The Mighty Unix PC! |
| 1863 | m68*-att-sysv* ) |
| 1864 | machine=7300 opsys=usg5-2-2 |
| 1865 | ;; |
| 1866 | |
| 1867 | ## Bull dpx20 |
| 1868 | rs6000-bull-bosx* ) |
| 1869 | machine=ibmrs6000 opsys=aix3-2 |
| 1870 | ;; |
| 1871 | |
| 1872 | ## Bull dpx2 |
| 1873 | m68*-bull-sysv3* ) |
| 1874 | machine=dpx2 opsys=usg5-3 |
| 1875 | ;; |
| 1876 | |
| 1877 | ## Bull sps7 |
| 1878 | m68*-bull-sysv2* ) |
| 1879 | machine=sps7 opsys=usg5-2 |
| 1880 | ;; |
| 1881 | |
| 1882 | ## CCI 5/32, 6/32 -- see "Tahoe". |
| 1883 | |
| 1884 | ## Celerity |
| 1885 | ## I don't know what configuration name to use for this; config.sub |
| 1886 | ## doesn't seem to know anything about it. Hey, Celerity users, get |
| 1887 | ## in touch with us! |
| 1888 | celerity-celerity-bsd* ) |
| 1889 | machine=celerity opsys=bsd4-2 |
| 1890 | ;; |
| 1891 | |
| 1892 | ## Clipper |
| 1893 | ## What operating systems does this chip run that Emacs has been |
| 1894 | ## tested on? |
| 1895 | clipper-* ) |
| 1896 | machine=clipper |
| 1897 | ## We'll use the catch-all code at the bottom to guess the |
| 1898 | ## operating system. |
| 1899 | ;; |
| 1900 | |
| 1901 | ## Compaq Nonstop |
| 1902 | mips-compaq-nonstopux* ) |
| 1903 | machine=nonstopux opsys=nonstopux |
| 1904 | ;; |
| 1905 | |
| 1906 | ## Convex |
| 1907 | *-convex-bsd* | *-convex-convexos* ) |
| 1908 | machine=convex opsys=bsd4-3 |
| 1909 | ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov |
| 1910 | NON_GNU_CPP="cc -E -P" |
| 1911 | ;; |
| 1912 | |
| 1913 | ## Cubix QBx/386 |
| 1914 | i[3456]86-cubix-sysv* ) |
| 1915 | machine=intel386 opsys=usg5-3 |
| 1916 | ;; |
| 1917 | |
| 1918 | ## Cydra 5 |
| 1919 | cydra*-cydrome-sysv* ) |
| 1920 | machine=cydra5 opsys=usg5-3 |
| 1921 | ;; |
| 1922 | |
| 1923 | ## Data General AViiON Machines |
| 1924 | ## DG changed naming conventions with the release of 5.4.4.10, they |
| 1925 | ## dropped the initial 5.4 but left the intervening R. Because of the |
| 1926 | ## R this shouldn't conflict with older versions of the OS (which I |
| 1927 | ## think were named like dgux4.*). In addition, DG new AViiONs series |
| 1928 | ## uses either Motorola M88k or Intel Pentium CPUs. |
| 1929 | m88k-dg-dguxR4.* | m88k-dg-dgux4* ) |
| 1930 | machine=aviion opsys=dgux4 |
| 1931 | ;; |
| 1932 | m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) |
| 1933 | ## This name is dgux5-4-3 instead of dgux5-4r3 |
| 1934 | ## to avoid a file name conflict on MSDOS. |
| 1935 | machine=aviion opsys=dgux5-4-3 |
| 1936 | ;; |
| 1937 | m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) |
| 1938 | machine=aviion opsys=dgux5-4r2 |
| 1939 | ;; |
| 1940 | m88k-dg-dgux* ) |
| 1941 | machine=aviion opsys=dgux |
| 1942 | ;; |
| 1943 | |
| 1944 | ## Data General AViiON Intel (x86) Machines |
| 1945 | ## Exists from 5.4.3 (current i586-dg-dguxR4.11) |
| 1946 | ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il |
| 1947 | i[345]86-dg-dguxR4* ) |
| 1948 | machine=aviion-intel opsys=dgux4 |
| 1949 | ;; |
| 1950 | |
| 1951 | ## DECstations |
| 1952 | mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) |
| 1953 | machine=pmax opsys=bsd4-2 |
| 1954 | ;; |
| 1955 | mips-dec-ultrix4.[12]* | mips-dec-bsd* ) |
| 1956 | machine=pmax opsys=bsd4-3 |
| 1957 | ;; |
| 1958 | mips-dec-ultrix* ) |
| 1959 | machine=pmax opsys=ultrix4-3 |
| 1960 | ;; |
| 1961 | mips-dec-osf* ) |
| 1962 | machine=pmax opsys=osf1 |
| 1963 | ;; |
| 1964 | mips-dec-mach_bsd4.3* ) |
| 1965 | machine=pmax opsys=mach-bsd4-3 |
| 1966 | ;; |
| 1967 | |
| 1968 | ## Motorola Delta machines |
| 1969 | m68k-motorola-sysv* | m68000-motorola-sysv* ) |
| 1970 | machine=delta opsys=usg5-3 |
| 1971 | if test -z "`type gnucc | grep 'not found'`" |
| 1972 | then |
| 1973 | if test -s /etc/167config |
| 1974 | then CC="gnucc -m68040" |
| 1975 | else CC="gnucc -m68881" |
| 1976 | fi |
| 1977 | else |
| 1978 | if test -z "`type gcc | grep 'not found'`" |
| 1979 | then CC=gcc |
| 1980 | else CC=cc |
| 1981 | fi |
| 1982 | fi |
| 1983 | ;; |
| 1984 | m88k-motorola-sysv4* ) |
| 1985 | # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 |
| 1986 | # needs POSIX_SIGNALS and therefore needs usg5-4-2. |
| 1987 | # I hope there are not other 4.0 versions for this machine |
| 1988 | # which really need usg5-4 instead. |
| 1989 | machine=delta88k opsys=usg5-4-2 |
| 1990 | ;; |
| 1991 | m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) |
| 1992 | machine=delta88k opsys=usg5-3 |
| 1993 | ;; |
| 1994 | |
| 1995 | ## Dual machines |
| 1996 | m68*-dual-sysv* ) |
| 1997 | machine=dual opsys=usg5-2 |
| 1998 | ;; |
| 1999 | m68*-dual-uniplus* ) |
| 2000 | machine=dual opsys=unipl5-2 |
| 2001 | ;; |
| 2002 | |
| 2003 | ## Elxsi 6400 |
| 2004 | elxsi-elxsi-sysv* ) |
| 2005 | machine=elxsi opsys=usg5-2 |
| 2006 | ;; |
| 2007 | |
| 2008 | ## Encore machines |
| 2009 | ns16k-encore-bsd* ) |
| 2010 | machine=ns16000 opsys=umax |
| 2011 | ;; |
| 2012 | |
| 2013 | ## The GEC 63 - apparently, this port isn't really finished yet. |
| 2014 | # I'm sure we finished off the last of the machines, though. -- fx |
| 2015 | |
| 2016 | ## Gould Power Node and NP1 |
| 2017 | pn-gould-bsd4.2* ) |
| 2018 | machine=gould opsys=bsd4-2 |
| 2019 | ;; |
| 2020 | pn-gould-bsd4.3* ) |
| 2021 | machine=gould opsys=bsd4-3 |
| 2022 | ;; |
| 2023 | np1-gould-bsd* ) |
| 2024 | machine=gould-np1 opsys=bsd4-3 |
| 2025 | ;; |
| 2026 | |
| 2027 | ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 |
| 2028 | ## as far as Emacs is concerned). |
| 2029 | m88k-harris-cxux* ) |
| 2030 | # Build needs to be different on 7.0 and later releases |
| 2031 | case "`uname -r`" in |
| 2032 | [56].[0-9] ) machine=nh4000 opsys=cxux ;; |
| 2033 | [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; |
| 2034 | esac |
| 2035 | NON_GNU_CPP="/lib/cpp" |
| 2036 | ;; |
| 2037 | ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) |
| 2038 | m68k-harris-cxux* ) |
| 2039 | machine=nh3000 opsys=cxux |
| 2040 | ;; |
| 2041 | ## Harris power pc NightHawk running Power UNIX (Series 6000) |
| 2042 | powerpc-harris-powerunix ) |
| 2043 | machine=nh6000 opsys=powerunix |
| 2044 | NON_GNU_CPP="cc -Xo -E -P" |
| 2045 | ;; |
| 2046 | ## SR2001/SR2201 running HI-UX/MPP |
| 2047 | hppa1.1-hitachi-hiuxmpp* ) |
| 2048 | machine=sr2k opsys=hiuxmpp |
| 2049 | ;; |
| 2050 | hppa1.1-hitachi-hiuxwe2* ) |
| 2051 | machine=sr2k opsys=hiuxwe2 |
| 2052 | ;; |
| 2053 | ## Honeywell XPS100 |
| 2054 | xps*-honeywell-sysv* ) |
| 2055 | machine=xps100 opsys=usg5-2 |
| 2056 | ;; |
| 2057 | |
| 2058 | ## HP 9000 series 200 or 300 |
| 2059 | m68*-hp-bsd* ) |
| 2060 | machine=hp9000s300 opsys=bsd4-3 |
| 2061 | ;; |
| 2062 | ## HP/UX 7, 8, 9, and 10 are supported on these machines. |
| 2063 | m68*-hp-hpux* ) |
| 2064 | case "`uname -r`" in |
| 2065 | ## Someone's system reports A.B8.05 for this. |
| 2066 | ## I wonder what other possibilities there are. |
| 2067 | *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; |
| 2068 | *.08.* ) machine=hp9000s300 opsys=hpux8 ;; |
| 2069 | *.09.* ) machine=hp9000s300 opsys=hpux9 ;; |
| 2070 | *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; |
| 2071 | *) machine=hp9000s300 opsys=hpux ;; |
| 2072 | esac |
| 2073 | ;; |
| 2074 | |
| 2075 | ## HP 9000 series 700 and 800, running HP/UX |
| 2076 | hppa*-hp-hpux7* ) |
| 2077 | machine=hp800 opsys=hpux |
| 2078 | ;; |
| 2079 | hppa*-hp-hpux8* ) |
| 2080 | machine=hp800 opsys=hpux8 |
| 2081 | ;; |
| 2082 | hppa*-hp-hpux9shr* ) |
| 2083 | machine=hp800 opsys=hpux9shr |
| 2084 | ;; |
| 2085 | hppa*-hp-hpux9* ) |
| 2086 | machine=hp800 opsys=hpux9 |
| 2087 | ;; |
| 2088 | hppa*-hp-hpux10.2* ) |
| 2089 | machine=hp800 opsys=hpux10-20 |
| 2090 | ;; |
| 2091 | hppa*-hp-hpux10* ) |
| 2092 | machine=hp800 opsys=hpux10 |
| 2093 | ;; |
| 2094 | hppa*-hp-hpux1[1-9]* ) |
| 2095 | machine=hp800 opsys=hpux11 |
| 2096 | CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS" |
| 2097 | ;; |
| 2098 | |
| 2099 | hppa*-*-linux-gnu* ) |
| 2100 | machine=hp800 opsys=gnu-linux |
| 2101 | ;; |
| 2102 | |
| 2103 | ## HP 9000 series 700 and 800, running HP/UX |
| 2104 | hppa*-hp-hpux* ) |
| 2105 | ## Cross-compilation? Nah! |
| 2106 | case "`uname -r`" in |
| 2107 | ## Someone's system reports A.B8.05 for this. |
| 2108 | ## I wonder what other possibilities there are. |
| 2109 | *.B8.* ) machine=hp800 opsys=hpux8 ;; |
| 2110 | *.08.* ) machine=hp800 opsys=hpux8 ;; |
| 2111 | *.09.* ) machine=hp800 opsys=hpux9 ;; |
| 2112 | *) machine=hp800 opsys=hpux10 ;; |
| 2113 | esac |
| 2114 | ;; |
| 2115 | hppa*-*-nextstep* ) |
| 2116 | machine=hp800 opsys=nextstep |
| 2117 | ;; |
| 2118 | |
| 2119 | ## Orion machines |
| 2120 | orion-orion-bsd* ) |
| 2121 | machine=orion opsys=bsd4-2 |
| 2122 | ;; |
| 2123 | clipper-orion-bsd* ) |
| 2124 | machine=orion105 opsys=bsd4-2 |
| 2125 | ;; |
| 2126 | |
| 2127 | ## IBM machines |
| 2128 | i[3456]86-ibm-aix1.1* ) |
| 2129 | machine=ibmps2-aix opsys=usg5-2-2 |
| 2130 | ;; |
| 2131 | i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) |
| 2132 | machine=ibmps2-aix opsys=usg5-3 |
| 2133 | ;; |
| 2134 | i370-ibm-aix*) |
| 2135 | machine=ibm370aix opsys=usg5-3 |
| 2136 | ;; |
| 2137 | s390-*-linux-gnu* ) |
| 2138 | machine=ibms390 opsys=gnu-linux |
| 2139 | ;; |
| 2140 | s390x-*-linux-gnu* ) |
| 2141 | machine=ibms390x opsys=gnu-linux |
| 2142 | ;; |
| 2143 | rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) |
| 2144 | machine=ibmrs6000 opsys=aix3-1 |
| 2145 | ;; |
| 2146 | rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) |
| 2147 | machine=ibmrs6000 opsys=aix3-2-5 |
| 2148 | ;; |
| 2149 | rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) |
| 2150 | machine=ibmrs6000 opsys=aix4-1 |
| 2151 | ;; |
| 2152 | rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) |
| 2153 | machine=ibmrs6000 opsys=aix4-2 |
| 2154 | ;; |
| 2155 | rs6000-ibm-aix5* | powerpc-ibm-aix5* ) |
| 2156 | machine=ibmrs6000 opsys=aix4-2 |
| 2157 | ;; |
| 2158 | rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) |
| 2159 | machine=ibmrs6000 opsys=aix4 |
| 2160 | ;; |
| 2161 | rs6000-ibm-aix4* | powerpc-ibm-aix4* ) |
| 2162 | machine=ibmrs6000 opsys=aix4-1 |
| 2163 | ;; |
| 2164 | rs6000-ibm-aix* | powerpc-ibm-aix* ) |
| 2165 | machine=ibmrs6000 opsys=aix3-2 |
| 2166 | ;; |
| 2167 | romp-ibm-bsd4.3* ) |
| 2168 | machine=ibmrt opsys=bsd4-3 |
| 2169 | ;; |
| 2170 | romp-ibm-bsd4.2* ) |
| 2171 | machine=ibmrt opsys=bsd4-2 |
| 2172 | ;; |
| 2173 | romp-ibm-aos4.3* ) |
| 2174 | machine=ibmrt opsys=bsd4-3 |
| 2175 | ;; |
| 2176 | romp-ibm-aos4.2* ) |
| 2177 | machine=ibmrt opsys=bsd4-2 |
| 2178 | ;; |
| 2179 | romp-ibm-aos* ) |
| 2180 | machine=ibmrt opsys=bsd4-3 |
| 2181 | ;; |
| 2182 | romp-ibm-bsd* ) |
| 2183 | machine=ibmrt opsys=bsd4-3 |
| 2184 | ;; |
| 2185 | romp-ibm-aix* ) |
| 2186 | machine=ibmrt-aix opsys=usg5-2-2 |
| 2187 | ;; |
| 2188 | |
| 2189 | ## Integrated Solutions `Optimum V' |
| 2190 | m68*-isi-bsd4.2* ) |
| 2191 | machine=isi-ov opsys=bsd4-2 |
| 2192 | ;; |
| 2193 | m68*-isi-bsd4.3* ) |
| 2194 | machine=isi-ov opsys=bsd4-3 |
| 2195 | ;; |
| 2196 | |
| 2197 | ## Intel 386 machines where we do care about the manufacturer |
| 2198 | i[3456]86-intsys-sysv* ) |
| 2199 | machine=is386 opsys=usg5-2-2 |
| 2200 | ;; |
| 2201 | |
| 2202 | ## Prime EXL |
| 2203 | i[3456]86-prime-sysv* ) |
| 2204 | machine=i386 opsys=usg5-3 |
| 2205 | ;; |
| 2206 | |
| 2207 | ## Sequent Symmetry running Dynix |
| 2208 | i[3456]86-sequent-bsd* ) |
| 2209 | machine=symmetry opsys=bsd4-3 |
| 2210 | ;; |
| 2211 | |
| 2212 | ## Sequent Symmetry running ptx 4, which is a modified SVR4. |
| 2213 | i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) |
| 2214 | machine=sequent-ptx opsys=ptx4 |
| 2215 | NON_GNU_CPP=/lib/cpp |
| 2216 | ;; |
| 2217 | |
| 2218 | ## Sequent Symmetry running DYNIX/ptx |
| 2219 | ## Use the old cpp rather than the newer ANSI one. |
| 2220 | i[3456]86-sequent-ptx* ) |
| 2221 | machine=sequent-ptx opsys=ptx |
| 2222 | NON_GNU_CPP="/lib/cpp" |
| 2223 | ;; |
| 2224 | |
| 2225 | ## ncr machine running svr4.3. |
| 2226 | i[3456]86-ncr-sysv4.3 ) |
| 2227 | machine=ncr386 opsys=usg5-4-3 |
| 2228 | ;; |
| 2229 | |
| 2230 | ## Unspecified sysv on an ncr machine defaults to svr4.2. |
| 2231 | ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) |
| 2232 | i[3456]86-ncr-sysv* ) |
| 2233 | machine=ncr386 opsys=usg5-4-2 |
| 2234 | ;; |
| 2235 | |
| 2236 | ## Intel Paragon OSF/1 |
| 2237 | i860-intel-osf1* ) |
| 2238 | machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp |
| 2239 | ;; |
| 2240 | |
| 2241 | ## Intel 860 |
| 2242 | i860-*-sysv4* ) |
| 2243 | machine=i860 opsys=usg5-4 |
| 2244 | NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. |
| 2245 | NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. |
| 2246 | ;; |
| 2247 | |
| 2248 | ## Macintosh PowerPC |
| 2249 | powerpc*-*-linux-gnu* ) |
| 2250 | machine=macppc opsys=gnu-linux |
| 2251 | ;; |
| 2252 | |
| 2253 | ## Masscomp machines |
| 2254 | m68*-masscomp-rtu* ) |
| 2255 | machine=masscomp opsys=rtu |
| 2256 | ;; |
| 2257 | |
| 2258 | ## Megatest machines |
| 2259 | m68*-megatest-bsd* ) |
| 2260 | machine=mega68 opsys=bsd4-2 |
| 2261 | ;; |
| 2262 | |
| 2263 | ## Workstations sold by MIPS |
| 2264 | ## This is not necessarily all workstations using the MIPS processor - |
| 2265 | ## Irises are produced by SGI, and DECstations by DEC. |
| 2266 | |
| 2267 | ## etc/MACHINES lists mips.h and mips4.h as possible machine files, |
| 2268 | ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance |
| 2269 | ## it gives for choosing between the alternatives seems to be "Use |
| 2270 | ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with |
| 2271 | ## the BSD world." I'll assume that these are instructions for |
| 2272 | ## handling two odd situations, and that every other situation |
| 2273 | ## should use mips.h and usg5-2-2, they being listed first. |
| 2274 | mips-mips-usg* ) |
| 2275 | machine=mips4 |
| 2276 | ## Fall through to the general code at the bottom to decide on the OS. |
| 2277 | ;; |
| 2278 | mips-mips-riscos4* ) |
| 2279 | machine=mips4 opsys=bsd4-3 |
| 2280 | NON_GNU_CC="cc -systype bsd43" |
| 2281 | NON_GNU_CPP="cc -systype bsd43 -E" |
| 2282 | ;; |
| 2283 | mips-mips-riscos5* ) |
| 2284 | machine=mips4 opsys=riscos5 |
| 2285 | NON_GNU_CC="cc -systype bsd43" |
| 2286 | NON_GNU_CPP="cc -systype bsd43 -E" |
| 2287 | ;; |
| 2288 | mips-mips-bsd* ) |
| 2289 | machine=mips opsys=bsd4-3 |
| 2290 | ;; |
| 2291 | mips-mips-* ) |
| 2292 | machine=mips opsys=usg5-2-2 |
| 2293 | ;; |
| 2294 | |
| 2295 | ## NeXT |
| 2296 | m68*-next-* | m68k-*-nextstep* ) |
| 2297 | machine=m68k opsys=nextstep |
| 2298 | ;; |
| 2299 | |
| 2300 | ## The complete machine from National Semiconductor |
| 2301 | ns32k-ns-genix* ) |
| 2302 | machine=ns32000 opsys=usg5-2 |
| 2303 | ;; |
| 2304 | |
| 2305 | ## NCR machines |
| 2306 | m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) |
| 2307 | machine=tower32 opsys=usg5-2-2 |
| 2308 | ;; |
| 2309 | m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) |
| 2310 | machine=tower32v3 opsys=usg5-3 |
| 2311 | ;; |
| 2312 | |
| 2313 | ## NEC EWS4800 |
| 2314 | mips-nec-sysv4*) |
| 2315 | machine=ews4800 opsys=ux4800 |
| 2316 | ;; |
| 2317 | |
| 2318 | ## Nixdorf Targon 31 |
| 2319 | m68*-nixdorf-sysv* ) |
| 2320 | machine=targon31 opsys=usg5-2-2 |
| 2321 | ;; |
| 2322 | |
| 2323 | ## Nu (TI or LMI) |
| 2324 | m68*-nu-sysv* ) |
| 2325 | machine=nu opsys=usg5-2 |
| 2326 | ;; |
| 2327 | |
| 2328 | ## Plexus |
| 2329 | m68*-plexus-sysv* ) |
| 2330 | machine=plexus opsys=usg5-2 |
| 2331 | ;; |
| 2332 | |
| 2333 | ## Pyramid machines |
| 2334 | ## I don't really have any idea what sort of processor the Pyramid has, |
| 2335 | ## so I'm assuming it is its own architecture. |
| 2336 | pyramid-pyramid-bsd* ) |
| 2337 | machine=pyramid opsys=bsd4-2 |
| 2338 | ;; |
| 2339 | |
| 2340 | ## Sequent Balance |
| 2341 | ns32k-sequent-bsd4.2* ) |
| 2342 | machine=sequent opsys=bsd4-2 |
| 2343 | ;; |
| 2344 | ns32k-sequent-bsd4.3* ) |
| 2345 | machine=sequent opsys=bsd4-3 |
| 2346 | ;; |
| 2347 | |
| 2348 | ## Siemens Nixdorf |
| 2349 | mips-siemens-sysv* | mips-sni-sysv*) |
| 2350 | machine=mips-siemens opsys=usg5-4 |
| 2351 | NON_GNU_CC=/usr/ccs/bin/cc |
| 2352 | NON_GNU_CPP=/usr/ccs/lib/cpp |
| 2353 | ;; |
| 2354 | |
| 2355 | ## Silicon Graphics machines |
| 2356 | ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) |
| 2357 | m68*-sgi-iris3.5* ) |
| 2358 | machine=irist opsys=iris3-5 |
| 2359 | ;; |
| 2360 | m68*-sgi-iris3.6* | m68*-sgi-iris*) |
| 2361 | machine=irist opsys=iris3-6 |
| 2362 | ;; |
| 2363 | ## Iris 4D |
| 2364 | mips-sgi-irix3* ) |
| 2365 | machine=iris4d opsys=irix3-3 |
| 2366 | ;; |
| 2367 | mips-sgi-irix4* ) |
| 2368 | machine=iris4d opsys=irix4-0 |
| 2369 | ;; |
| 2370 | mips-sgi-irix6.5 ) |
| 2371 | machine=iris4d opsys=irix6-5 |
| 2372 | # Without defining _LANGUAGE_C, things get masked out in the headers |
| 2373 | # so that, for instance, grepping for `free' in stdlib.h fails and |
| 2374 | # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). |
| 2375 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" |
| 2376 | NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
| 2377 | ;; |
| 2378 | mips-sgi-irix6* ) |
| 2379 | machine=iris4d opsys=irix6-0 |
| 2380 | # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5, |
| 2381 | # but presumably it does no harm. |
| 2382 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" |
| 2383 | # -32 probably isn't necessary in later v.6s -- anyone know which? |
| 2384 | NON_GCC_TEST_OPTIONS=-32 |
| 2385 | ;; |
| 2386 | mips-sgi-irix5.[01]* ) |
| 2387 | machine=iris4d opsys=irix5-0 |
| 2388 | ;; |
| 2389 | mips-sgi-irix5* | mips-sgi-irix* ) |
| 2390 | machine=iris4d opsys=irix5-2 |
| 2391 | ;; |
| 2392 | |
| 2393 | ## SONY machines |
| 2394 | m68*-sony-bsd4.2* ) |
| 2395 | machine=news opsys=bsd4-2 |
| 2396 | ;; |
| 2397 | m68*-sony-bsd4.3* ) |
| 2398 | machine=news opsys=bsd4-3 |
| 2399 | ;; |
| 2400 | m68*-sony-newsos3* | m68*-sony-news3*) |
| 2401 | machine=news opsys=bsd4-3 |
| 2402 | ;; |
| 2403 | mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) |
| 2404 | machine=news-risc opsys=bsd4-3 |
| 2405 | ;; |
| 2406 | mips-sony-newsos6* ) |
| 2407 | machine=news-r6 opsys=newsos6 |
| 2408 | ;; |
| 2409 | mips-sony-news* ) |
| 2410 | machine=news-risc opsys=newsos5 |
| 2411 | ;; |
| 2412 | |
| 2413 | ## Stride |
| 2414 | m68*-stride-sysv* ) |
| 2415 | machine=stride opsys=usg5-2 |
| 2416 | ;; |
| 2417 | |
| 2418 | ## Suns |
| 2419 | sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) |
| 2420 | machine=sparc opsys=gnu-linux |
| 2421 | ;; |
| 2422 | |
| 2423 | *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ |
| 2424 | | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ |
| 2425 | | rs6000-*-solaris2*) |
| 2426 | case "${canonical}" in |
| 2427 | m68*-sunos1* ) machine=sun1 ;; |
| 2428 | m68*-sunos2* ) machine=sun2 ;; |
| 2429 | m68* ) machine=sun3 ;; |
| 2430 | i[3456]86-sun-sunos[34]* ) machine=sun386 ;; |
| 2431 | i[3456]86-*-* ) machine=intel386 ;; |
| 2432 | powerpcle* ) machine=powerpcle ;; |
| 2433 | powerpc* | rs6000* ) machine=ibmrs6000 ;; |
| 2434 | sparc* ) machine=sparc ;; |
| 2435 | * ) unported=yes ;; |
| 2436 | esac |
| 2437 | case "${canonical}" in |
| 2438 | ## The Sun386 didn't get past 4.0. |
| 2439 | i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; |
| 2440 | *-sunos4.0* ) opsys=sunos4-0 ;; |
| 2441 | *-sunos4.1.[3-9]*noshare ) |
| 2442 | ## This name is sunos413 instead of sunos4-1-3 |
| 2443 | ## to avoid a file name conflict on MSDOS. |
| 2444 | opsys=sunos413 |
| 2445 | NON_GNU_CPP=/usr/lib/cpp |
| 2446 | NON_GCC_TEST_OPTIONS=-Bstatic |
| 2447 | GCC_TEST_OPTIONS=-static |
| 2448 | ;; |
| 2449 | *-sunos4.1.[3-9]* | *-sunos4shr*) |
| 2450 | opsys=sunos4shr |
| 2451 | NON_GNU_CPP=/usr/lib/cpp |
| 2452 | ;; |
| 2453 | *-sunos4* | *-sunos ) |
| 2454 | opsys=sunos4-1 |
| 2455 | NON_GCC_TEST_OPTIONS=-Bstatic |
| 2456 | GCC_TEST_OPTIONS=-static |
| 2457 | ;; |
| 2458 | *-sunos5.3* | *-solaris2.3* ) |
| 2459 | opsys=sol2-3 |
| 2460 | NON_GNU_CPP=/usr/ccs/lib/cpp |
| 2461 | ;; |
| 2462 | *-sunos5.4* | *-solaris2.4* ) |
| 2463 | opsys=sol2-4 |
| 2464 | NON_GNU_CPP=/usr/ccs/lib/cpp |
| 2465 | RANLIB="ar -ts" |
| 2466 | ;; |
| 2467 | *-sunos5.5* | *-solaris2.5* ) |
| 2468 | opsys=sol2-5 |
| 2469 | NON_GNU_CPP=/usr/ccs/lib/cpp |
| 2470 | RANLIB="ar -ts" |
| 2471 | ;; |
| 2472 | *-sunos5.6* | *-solaris2.6* ) |
| 2473 | opsys=sol2-6 |
| 2474 | NON_GNU_CPP=/usr/ccs/lib/cpp |
| 2475 | RANLIB="ar -ts" |
| 2476 | ;; |
| 2477 | *-sunos5* | *-solaris* ) |
| 2478 | opsys=sol2-6 |
| 2479 | NON_GNU_CPP=/usr/ccs/lib/cpp |
| 2480 | ;; |
| 2481 | * ) opsys=bsd4-2 ;; |
| 2482 | esac |
| 2483 | ## Watch out for a compiler that we know will not work. |
| 2484 | case "${canonical}" in |
| 2485 | *-solaris* | *-sunos5* ) |
| 2486 | if [ "x$CC" = x/usr/ucb/cc ]; then |
| 2487 | ## /usr/ucb/cc doesn't work; |
| 2488 | ## we should find some other compiler that does work. |
| 2489 | unset CC |
| 2490 | fi |
| 2491 | ;; |
| 2492 | *) ;; |
| 2493 | esac |
| 2494 | ;; |
| 2495 | sparc-*-nextstep* ) |
| 2496 | machine=sparc opsys=nextstep |
| 2497 | ;; |
| 2498 | |
| 2499 | ## Tadpole 68k |
| 2500 | m68*-tadpole-sysv* ) |
| 2501 | machine=tad68k opsys=usg5-3 |
| 2502 | ;; |
| 2503 | |
| 2504 | ## Tahoe machines |
| 2505 | tahoe-tahoe-bsd4.2* ) |
| 2506 | machine=tahoe opsys=bsd4-2 |
| 2507 | ;; |
| 2508 | tahoe-tahoe-bsd4.3* ) |
| 2509 | machine=tahoe opsys=bsd4-3 |
| 2510 | ;; |
| 2511 | |
| 2512 | ## Tandem Integrity S2 |
| 2513 | mips-tandem-sysv* ) |
| 2514 | machine=tandem-s2 opsys=usg5-3 |
| 2515 | ;; |
| 2516 | |
| 2517 | ## Tektronix XD88 |
| 2518 | m88k-tektronix-sysv3* ) |
| 2519 | machine=tekxd88 opsys=usg5-3 |
| 2520 | ;; |
| 2521 | |
| 2522 | ## Tektronix 16000 box (6130?) |
| 2523 | ns16k-tektronix-bsd* ) |
| 2524 | machine=ns16000 opsys=bsd4-2 |
| 2525 | ;; |
| 2526 | ## Tektronix 4300 |
| 2527 | ## src/m/tek4300.h hints that this is a m68k machine. |
| 2528 | m68*-tektronix-bsd* ) |
| 2529 | machine=tek4300 opsys=bsd4-3 |
| 2530 | ;; |
| 2531 | |
| 2532 | ## Titan P2 or P3 |
| 2533 | ## We seem to have lost the machine-description file titan.h! |
| 2534 | titan-titan-sysv* ) |
| 2535 | machine=titan opsys=usg5-3 |
| 2536 | ;; |
| 2537 | |
| 2538 | ## Ustation E30 (SS5E) |
| 2539 | m68*-unisys-uniplus* ) |
| 2540 | machine=ustation opsystem=unipl5-2 |
| 2541 | ;; |
| 2542 | |
| 2543 | ## Vaxen. |
| 2544 | vax-dec-* ) |
| 2545 | machine=vax |
| 2546 | case "${canonical}" in |
| 2547 | *-bsd4.1* ) opsys=bsd4-1 ;; |
| 2548 | *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; |
| 2549 | *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; |
| 2550 | *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; |
| 2551 | *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; |
| 2552 | *-vms* ) opsys=vms ;; |
| 2553 | * ) unported=yes |
| 2554 | esac |
| 2555 | ;; |
| 2556 | |
| 2557 | ## Whitechapel MG1 |
| 2558 | ns16k-whitechapel-* ) |
| 2559 | machine=mg1 |
| 2560 | ## We don't know what sort of OS runs on these; we'll let the |
| 2561 | ## operating system guessing code below try. |
| 2562 | ;; |
| 2563 | |
| 2564 | ## Wicat |
| 2565 | m68*-wicat-sysv* ) |
| 2566 | machine=wicat opsys=usg5-2 |
| 2567 | ;; |
| 2568 | |
| 2569 | ## IA-64 |
| 2570 | ia64*-*-linux* ) |
| 2571 | machine=ia64 opsys=gnu-linux |
| 2572 | ;; |
| 2573 | |
| 2574 | ## Intel 386 machines where we don't care about the manufacturer |
| 2575 | i[3456]86-*-* ) |
| 2576 | machine=intel386 |
| 2577 | case "${canonical}" in |
| 2578 | *-cygwin ) opsys=cygwin ;; |
| 2579 | *-darwin* ) opsys=darwin |
| 2580 | CPP="${CC-cc} -E -no-cpp-precomp" |
| 2581 | ;; |
| 2582 | *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
| 2583 | *-isc2.2* ) opsys=isc2-2 ;; |
| 2584 | *-isc4.0* ) opsys=isc4-0 ;; |
| 2585 | *-isc4.* ) opsys=isc4-1 |
| 2586 | GCC_TEST_OPTIONS=-posix |
| 2587 | NON_GCC_TEST_OPTIONS=-Xp |
| 2588 | ;; |
| 2589 | *-isc* ) opsys=isc3-0 ;; |
| 2590 | *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; |
| 2591 | *-esix* ) opsys=esix ;; |
| 2592 | *-xenix* ) opsys=xenix ;; |
| 2593 | *-linux-gnu* ) opsys=gnu-linux ;; |
| 2594 | *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; |
| 2595 | *-sco3.2v5* ) opsys=sco5 |
| 2596 | NON_GNU_CPP=/lib/cpp |
| 2597 | # Prevent -belf from being passed to $CPP. |
| 2598 | # /lib/cpp does not accept it. |
| 2599 | OVERRIDE_CPPFLAGS=" " |
| 2600 | ;; |
| 2601 | *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; |
| 2602 | *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; |
| 2603 | *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; |
| 2604 | *-386bsd* ) opsys=386bsd ;; |
| 2605 | *-nextstep* ) opsys=nextstep ;; |
| 2606 | ## Otherwise, we'll fall through to the generic opsys code at the bottom. |
| 2607 | esac |
| 2608 | ;; |
| 2609 | |
| 2610 | ## m68k Linux-based GNU system |
| 2611 | m68k-*-linux-gnu* ) |
| 2612 | machine=m68k opsys=gnu-linux |
| 2613 | ;; |
| 2614 | |
| 2615 | ## Mips Linux-based GNU system |
| 2616 | mips-*-linux-gnu* | mipsel-*-linux-gnu* ) |
| 2617 | machine=mips opsys=gnu-linux |
| 2618 | ;; |
| 2619 | |
| 2620 | ## UXP/DS |
| 2621 | sparc-fujitsu-sysv4* ) |
| 2622 | machine=sparc opsys=uxpds |
| 2623 | NON_GNU_CPP=/usr/ccs/lib/cpp |
| 2624 | RANLIB="ar -ts" |
| 2625 | ;; |
| 2626 | |
| 2627 | ## UXP/V |
| 2628 | f301-fujitsu-uxpv4.1) |
| 2629 | machine=f301 opsys=uxpv |
| 2630 | ;; |
| 2631 | |
| 2632 | ## Darwin / Mac OS X |
| 2633 | powerpc-apple-darwin* ) |
| 2634 | machine=powermac opsys=darwin |
| 2635 | # Define CPP as follows to make autoconf work correctly. |
| 2636 | CPP="${CC-cc} -E -no-cpp-precomp" |
| 2637 | # Use fink packages if available. |
| 2638 | if test -d /sw/include && test -d /sw/lib; then |
| 2639 | GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib" |
| 2640 | CPP="${CPP} ${GCC_TEST_OPTIONS}" |
| 2641 | NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS} |
| 2642 | fi |
| 2643 | ;; |
| 2644 | |
| 2645 | ## AMD x86-64 Linux-based GNU system |
| 2646 | x86_64-*-linux-gnu* ) |
| 2647 | machine=amdx86-64 opsys=gnu-linux |
| 2648 | ;; |
| 2649 | |
| 2650 | * ) |
| 2651 | unported=yes |
| 2652 | ;; |
| 2653 | esac |
| 2654 | |
| 2655 | ### If the code above didn't choose an operating system, just choose |
| 2656 | ### an operating system based on the configuration name. You really |
| 2657 | ### only want to use this when you have no idea what the right |
| 2658 | ### operating system is; if you know what operating systems a machine |
| 2659 | ### runs, it's cleaner to make it explicit in the case statement |
| 2660 | ### above. |
| 2661 | if test x"${opsys}" = x; then |
| 2662 | case "${canonical}" in |
| 2663 | *-gnu* ) opsys=gnu ;; |
| 2664 | *-bsd4.[01] ) opsys=bsd4-1 ;; |
| 2665 | *-bsd4.2 ) opsys=bsd4-2 ;; |
| 2666 | *-bsd4.3 ) opsys=bsd4-3 ;; |
| 2667 | *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; |
| 2668 | *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; |
| 2669 | *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; |
| 2670 | *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; |
| 2671 | *-sysv4.2uw* ) opsys=unixware ;; |
| 2672 | *-sysv5uw* ) opsys=unixware ;; |
| 2673 | *-sysv5OpenUNIX* ) opsys=unixware ;; |
| 2674 | *-sysv4.1* | *-sysvr4.1* ) |
| 2675 | NON_GNU_CPP=/usr/lib/cpp |
| 2676 | opsys=usg5-4 ;; |
| 2677 | *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) |
| 2678 | if [ x$NON_GNU_CPP = x ]; then |
| 2679 | if [ -f /usr/ccs/lib/cpp ]; then |
| 2680 | NON_GNU_CPP=/usr/ccs/lib/cpp |
| 2681 | else |
| 2682 | NON_GNU_CPP=/lib/cpp |
| 2683 | fi |
| 2684 | fi |
| 2685 | opsys=usg5-4-2 ;; |
| 2686 | *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; |
| 2687 | * ) |
| 2688 | unported=yes |
| 2689 | ;; |
| 2690 | esac |
| 2691 | fi |
| 2692 | |
| 2693 | |
| 2694 | |
| 2695 | if test $unported = yes; then |
| 2696 | { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems. |
| 2697 | Check \`etc/MACHINES' for recognized configuration names." >&5 |
| 2698 | echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. |
| 2699 | Check \`etc/MACHINES' for recognized configuration names." >&2;} |
| 2700 | { (exit 1); exit 1; }; } |
| 2701 | fi |
| 2702 | |
| 2703 | machfile="m/${machine}.h" |
| 2704 | opsysfile="s/${opsys}.h" |
| 2705 | |
| 2706 | |
| 2707 | #### Choose a compiler. |
| 2708 | test -n "$CC" && cc_specified=yes |
| 2709 | |
| 2710 | # Save the value of CFLAGS that the user specified. |
| 2711 | SPECIFIED_CFLAGS="$CFLAGS" |
| 2712 | |
| 2713 | case ${with_gcc} in |
| 2714 | "yes" ) CC="gcc" GCC=yes ;; |
| 2715 | "no" ) : ${CC=cc} ;; |
| 2716 | * ) |
| 2717 | esac |
| 2718 | ac_ext=c |
| 2719 | ac_cpp='$CPP $CPPFLAGS' |
| 2720 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2721 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2722 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2723 | if test -n "$ac_tool_prefix"; then |
| 2724 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2725 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 2726 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2727 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2728 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2730 | else |
| 2731 | if test -n "$CC"; then |
| 2732 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2733 | else |
| 2734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2735 | for as_dir in $PATH |
| 2736 | do |
| 2737 | IFS=$as_save_IFS |
| 2738 | test -z "$as_dir" && as_dir=. |
| 2739 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2740 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2741 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2742 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2743 | break 2 |
| 2744 | fi |
| 2745 | done |
| 2746 | done |
| 2747 | |
| 2748 | fi |
| 2749 | fi |
| 2750 | CC=$ac_cv_prog_CC |
| 2751 | if test -n "$CC"; then |
| 2752 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2753 | echo "${ECHO_T}$CC" >&6 |
| 2754 | else |
| 2755 | echo "$as_me:$LINENO: result: no" >&5 |
| 2756 | echo "${ECHO_T}no" >&6 |
| 2757 | fi |
| 2758 | |
| 2759 | fi |
| 2760 | if test -z "$ac_cv_prog_CC"; then |
| 2761 | ac_ct_CC=$CC |
| 2762 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2763 | set dummy gcc; ac_word=$2 |
| 2764 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2765 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2766 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2768 | else |
| 2769 | if test -n "$ac_ct_CC"; then |
| 2770 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2771 | else |
| 2772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2773 | for as_dir in $PATH |
| 2774 | do |
| 2775 | IFS=$as_save_IFS |
| 2776 | test -z "$as_dir" && as_dir=. |
| 2777 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2778 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2779 | ac_cv_prog_ac_ct_CC="gcc" |
| 2780 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2781 | break 2 |
| 2782 | fi |
| 2783 | done |
| 2784 | done |
| 2785 | |
| 2786 | fi |
| 2787 | fi |
| 2788 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2789 | if test -n "$ac_ct_CC"; then |
| 2790 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2791 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2792 | else |
| 2793 | echo "$as_me:$LINENO: result: no" >&5 |
| 2794 | echo "${ECHO_T}no" >&6 |
| 2795 | fi |
| 2796 | |
| 2797 | CC=$ac_ct_CC |
| 2798 | else |
| 2799 | CC="$ac_cv_prog_CC" |
| 2800 | fi |
| 2801 | |
| 2802 | if test -z "$CC"; then |
| 2803 | if test -n "$ac_tool_prefix"; then |
| 2804 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2805 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2806 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2807 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2808 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2810 | else |
| 2811 | if test -n "$CC"; then |
| 2812 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2813 | else |
| 2814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2815 | for as_dir in $PATH |
| 2816 | do |
| 2817 | IFS=$as_save_IFS |
| 2818 | test -z "$as_dir" && as_dir=. |
| 2819 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2820 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2821 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2822 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2823 | break 2 |
| 2824 | fi |
| 2825 | done |
| 2826 | done |
| 2827 | |
| 2828 | fi |
| 2829 | fi |
| 2830 | CC=$ac_cv_prog_CC |
| 2831 | if test -n "$CC"; then |
| 2832 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2833 | echo "${ECHO_T}$CC" >&6 |
| 2834 | else |
| 2835 | echo "$as_me:$LINENO: result: no" >&5 |
| 2836 | echo "${ECHO_T}no" >&6 |
| 2837 | fi |
| 2838 | |
| 2839 | fi |
| 2840 | if test -z "$ac_cv_prog_CC"; then |
| 2841 | ac_ct_CC=$CC |
| 2842 | # Extract the first word of "cc", so it can be a program name with args. |
| 2843 | set dummy cc; ac_word=$2 |
| 2844 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2845 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2846 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2848 | else |
| 2849 | if test -n "$ac_ct_CC"; then |
| 2850 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2851 | else |
| 2852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2853 | for as_dir in $PATH |
| 2854 | do |
| 2855 | IFS=$as_save_IFS |
| 2856 | test -z "$as_dir" && as_dir=. |
| 2857 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2858 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2859 | ac_cv_prog_ac_ct_CC="cc" |
| 2860 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2861 | break 2 |
| 2862 | fi |
| 2863 | done |
| 2864 | done |
| 2865 | |
| 2866 | fi |
| 2867 | fi |
| 2868 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2869 | if test -n "$ac_ct_CC"; then |
| 2870 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2871 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2872 | else |
| 2873 | echo "$as_me:$LINENO: result: no" >&5 |
| 2874 | echo "${ECHO_T}no" >&6 |
| 2875 | fi |
| 2876 | |
| 2877 | CC=$ac_ct_CC |
| 2878 | else |
| 2879 | CC="$ac_cv_prog_CC" |
| 2880 | fi |
| 2881 | |
| 2882 | fi |
| 2883 | if test -z "$CC"; then |
| 2884 | # Extract the first word of "cc", so it can be a program name with args. |
| 2885 | set dummy cc; ac_word=$2 |
| 2886 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2887 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2888 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2890 | else |
| 2891 | if test -n "$CC"; then |
| 2892 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2893 | else |
| 2894 | ac_prog_rejected=no |
| 2895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2896 | for as_dir in $PATH |
| 2897 | do |
| 2898 | IFS=$as_save_IFS |
| 2899 | test -z "$as_dir" && as_dir=. |
| 2900 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2901 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2902 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2903 | ac_prog_rejected=yes |
| 2904 | continue |
| 2905 | fi |
| 2906 | ac_cv_prog_CC="cc" |
| 2907 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2908 | break 2 |
| 2909 | fi |
| 2910 | done |
| 2911 | done |
| 2912 | |
| 2913 | if test $ac_prog_rejected = yes; then |
| 2914 | # We found a bogon in the path, so make sure we never use it. |
| 2915 | set dummy $ac_cv_prog_CC |
| 2916 | shift |
| 2917 | if test $# != 0; then |
| 2918 | # We chose a different compiler from the bogus one. |
| 2919 | # However, it has the same basename, so the bogon will be chosen |
| 2920 | # first if we set CC to just the basename; use the full file name. |
| 2921 | shift |
| 2922 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2923 | fi |
| 2924 | fi |
| 2925 | fi |
| 2926 | fi |
| 2927 | CC=$ac_cv_prog_CC |
| 2928 | if test -n "$CC"; then |
| 2929 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2930 | echo "${ECHO_T}$CC" >&6 |
| 2931 | else |
| 2932 | echo "$as_me:$LINENO: result: no" >&5 |
| 2933 | echo "${ECHO_T}no" >&6 |
| 2934 | fi |
| 2935 | |
| 2936 | fi |
| 2937 | if test -z "$CC"; then |
| 2938 | if test -n "$ac_tool_prefix"; then |
| 2939 | for ac_prog in cl |
| 2940 | do |
| 2941 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2942 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2943 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2944 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2945 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2947 | else |
| 2948 | if test -n "$CC"; then |
| 2949 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2950 | else |
| 2951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2952 | for as_dir in $PATH |
| 2953 | do |
| 2954 | IFS=$as_save_IFS |
| 2955 | test -z "$as_dir" && as_dir=. |
| 2956 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2957 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2958 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2959 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2960 | break 2 |
| 2961 | fi |
| 2962 | done |
| 2963 | done |
| 2964 | |
| 2965 | fi |
| 2966 | fi |
| 2967 | CC=$ac_cv_prog_CC |
| 2968 | if test -n "$CC"; then |
| 2969 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2970 | echo "${ECHO_T}$CC" >&6 |
| 2971 | else |
| 2972 | echo "$as_me:$LINENO: result: no" >&5 |
| 2973 | echo "${ECHO_T}no" >&6 |
| 2974 | fi |
| 2975 | |
| 2976 | test -n "$CC" && break |
| 2977 | done |
| 2978 | fi |
| 2979 | if test -z "$CC"; then |
| 2980 | ac_ct_CC=$CC |
| 2981 | for ac_prog in cl |
| 2982 | do |
| 2983 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2984 | set dummy $ac_prog; ac_word=$2 |
| 2985 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2986 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2987 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2989 | else |
| 2990 | if test -n "$ac_ct_CC"; then |
| 2991 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2992 | else |
| 2993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2994 | for as_dir in $PATH |
| 2995 | do |
| 2996 | IFS=$as_save_IFS |
| 2997 | test -z "$as_dir" && as_dir=. |
| 2998 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2999 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3000 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3001 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3002 | break 2 |
| 3003 | fi |
| 3004 | done |
| 3005 | done |
| 3006 | |
| 3007 | fi |
| 3008 | fi |
| 3009 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3010 | if test -n "$ac_ct_CC"; then |
| 3011 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 3012 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 3013 | else |
| 3014 | echo "$as_me:$LINENO: result: no" >&5 |
| 3015 | echo "${ECHO_T}no" >&6 |
| 3016 | fi |
| 3017 | |
| 3018 | test -n "$ac_ct_CC" && break |
| 3019 | done |
| 3020 | |
| 3021 | CC=$ac_ct_CC |
| 3022 | fi |
| 3023 | |
| 3024 | fi |
| 3025 | |
| 3026 | |
| 3027 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 3028 | See \`config.log' for more details." >&5 |
| 3029 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 3030 | See \`config.log' for more details." >&2;} |
| 3031 | { (exit 1); exit 1; }; } |
| 3032 | |
| 3033 | # Provide some information about the compiler. |
| 3034 | echo "$as_me:$LINENO:" \ |
| 3035 | "checking for C compiler version" >&5 |
| 3036 | ac_compiler=`set X $ac_compile; echo $2` |
| 3037 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 3038 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 3039 | ac_status=$? |
| 3040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3041 | (exit $ac_status); } |
| 3042 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 3043 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 3044 | ac_status=$? |
| 3045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3046 | (exit $ac_status); } |
| 3047 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 3048 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 3049 | ac_status=$? |
| 3050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3051 | (exit $ac_status); } |
| 3052 | |
| 3053 | cat >conftest.$ac_ext <<_ACEOF |
| 3054 | /* confdefs.h. */ |
| 3055 | _ACEOF |
| 3056 | cat confdefs.h >>conftest.$ac_ext |
| 3057 | cat >>conftest.$ac_ext <<_ACEOF |
| 3058 | /* end confdefs.h. */ |
| 3059 | |
| 3060 | int |
| 3061 | main () |
| 3062 | { |
| 3063 | |
| 3064 | ; |
| 3065 | return 0; |
| 3066 | } |
| 3067 | _ACEOF |
| 3068 | ac_clean_files_save=$ac_clean_files |
| 3069 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 3070 | # Try to create an executable without -o first, disregard a.out. |
| 3071 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3072 | # of exeext. |
| 3073 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 3074 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 3075 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3076 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 3077 | (eval $ac_link_default) 2>&5 |
| 3078 | ac_status=$? |
| 3079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3080 | (exit $ac_status); }; then |
| 3081 | # Find the output, starting from the most likely. This scheme is |
| 3082 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 3083 | # resort. |
| 3084 | |
| 3085 | # Be careful to initialize this variable, since it used to be cached. |
| 3086 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 3087 | ac_cv_exeext= |
| 3088 | # b.out is created by i960 compilers. |
| 3089 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 3090 | do |
| 3091 | test -f "$ac_file" || continue |
| 3092 | case $ac_file in |
| 3093 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 3094 | ;; |
| 3095 | conftest.$ac_ext ) |
| 3096 | # This is the source file. |
| 3097 | ;; |
| 3098 | [ab].out ) |
| 3099 | # We found the default executable, but exeext='' is most |
| 3100 | # certainly right. |
| 3101 | break;; |
| 3102 | *.* ) |
| 3103 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3104 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 3105 | # but it would be cool to find out if it's true. Does anybody |
| 3106 | # maintain Libtool? --akim. |
| 3107 | export ac_cv_exeext |
| 3108 | break;; |
| 3109 | * ) |
| 3110 | break;; |
| 3111 | esac |
| 3112 | done |
| 3113 | else |
| 3114 | echo "$as_me: failed program was:" >&5 |
| 3115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3116 | |
| 3117 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 3118 | See \`config.log' for more details." >&5 |
| 3119 | echo "$as_me: error: C compiler cannot create executables |
| 3120 | See \`config.log' for more details." >&2;} |
| 3121 | { (exit 77); exit 77; }; } |
| 3122 | fi |
| 3123 | |
| 3124 | ac_exeext=$ac_cv_exeext |
| 3125 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 3126 | echo "${ECHO_T}$ac_file" >&6 |
| 3127 | |
| 3128 | # Check the compiler produces executables we can run. If not, either |
| 3129 | # the compiler is broken, or we cross compile. |
| 3130 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 3131 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 3132 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 3133 | # If not cross compiling, check that we can run a simple program. |
| 3134 | if test "$cross_compiling" != yes; then |
| 3135 | if { ac_try='./$ac_file' |
| 3136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3137 | (eval $ac_try) 2>&5 |
| 3138 | ac_status=$? |
| 3139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3140 | (exit $ac_status); }; }; then |
| 3141 | cross_compiling=no |
| 3142 | else |
| 3143 | if test "$cross_compiling" = maybe; then |
| 3144 | cross_compiling=yes |
| 3145 | else |
| 3146 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 3147 | If you meant to cross compile, use \`--host'. |
| 3148 | See \`config.log' for more details." >&5 |
| 3149 | echo "$as_me: error: cannot run C compiled programs. |
| 3150 | If you meant to cross compile, use \`--host'. |
| 3151 | See \`config.log' for more details." >&2;} |
| 3152 | { (exit 1); exit 1; }; } |
| 3153 | fi |
| 3154 | fi |
| 3155 | fi |
| 3156 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3157 | echo "${ECHO_T}yes" >&6 |
| 3158 | |
| 3159 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 3160 | ac_clean_files=$ac_clean_files_save |
| 3161 | # Check the compiler produces executables we can run. If not, either |
| 3162 | # the compiler is broken, or we cross compile. |
| 3163 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 3164 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 3165 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 3166 | echo "${ECHO_T}$cross_compiling" >&6 |
| 3167 | |
| 3168 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 3169 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 3170 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3171 | (eval $ac_link) 2>&5 |
| 3172 | ac_status=$? |
| 3173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3174 | (exit $ac_status); }; then |
| 3175 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3176 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3177 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3178 | # `rm'. |
| 3179 | for ac_file in conftest.exe conftest conftest.*; do |
| 3180 | test -f "$ac_file" || continue |
| 3181 | case $ac_file in |
| 3182 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 3183 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3184 | export ac_cv_exeext |
| 3185 | break;; |
| 3186 | * ) break;; |
| 3187 | esac |
| 3188 | done |
| 3189 | else |
| 3190 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 3191 | See \`config.log' for more details." >&5 |
| 3192 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 3193 | See \`config.log' for more details." >&2;} |
| 3194 | { (exit 1); exit 1; }; } |
| 3195 | fi |
| 3196 | |
| 3197 | rm -f conftest$ac_cv_exeext |
| 3198 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 3199 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 3200 | |
| 3201 | rm -f conftest.$ac_ext |
| 3202 | EXEEXT=$ac_cv_exeext |
| 3203 | ac_exeext=$EXEEXT |
| 3204 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 3205 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 3206 | if test "${ac_cv_objext+set}" = set; then |
| 3207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3208 | else |
| 3209 | cat >conftest.$ac_ext <<_ACEOF |
| 3210 | /* confdefs.h. */ |
| 3211 | _ACEOF |
| 3212 | cat confdefs.h >>conftest.$ac_ext |
| 3213 | cat >>conftest.$ac_ext <<_ACEOF |
| 3214 | /* end confdefs.h. */ |
| 3215 | |
| 3216 | int |
| 3217 | main () |
| 3218 | { |
| 3219 | |
| 3220 | ; |
| 3221 | return 0; |
| 3222 | } |
| 3223 | _ACEOF |
| 3224 | rm -f conftest.o conftest.obj |
| 3225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3226 | (eval $ac_compile) 2>&5 |
| 3227 | ac_status=$? |
| 3228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3229 | (exit $ac_status); }; then |
| 3230 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 3231 | case $ac_file in |
| 3232 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 3233 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3234 | break;; |
| 3235 | esac |
| 3236 | done |
| 3237 | else |
| 3238 | echo "$as_me: failed program was:" >&5 |
| 3239 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3240 | |
| 3241 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 3242 | See \`config.log' for more details." >&5 |
| 3243 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 3244 | See \`config.log' for more details." >&2;} |
| 3245 | { (exit 1); exit 1; }; } |
| 3246 | fi |
| 3247 | |
| 3248 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3249 | fi |
| 3250 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 3251 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 3252 | OBJEXT=$ac_cv_objext |
| 3253 | ac_objext=$OBJEXT |
| 3254 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3255 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 3256 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 3257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3258 | else |
| 3259 | cat >conftest.$ac_ext <<_ACEOF |
| 3260 | /* confdefs.h. */ |
| 3261 | _ACEOF |
| 3262 | cat confdefs.h >>conftest.$ac_ext |
| 3263 | cat >>conftest.$ac_ext <<_ACEOF |
| 3264 | /* end confdefs.h. */ |
| 3265 | |
| 3266 | int |
| 3267 | main () |
| 3268 | { |
| 3269 | #ifndef __GNUC__ |
| 3270 | choke me |
| 3271 | #endif |
| 3272 | |
| 3273 | ; |
| 3274 | return 0; |
| 3275 | } |
| 3276 | _ACEOF |
| 3277 | rm -f conftest.$ac_objext |
| 3278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3279 | (eval $ac_compile) 2>conftest.er1 |
| 3280 | ac_status=$? |
| 3281 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3282 | rm -f conftest.er1 |
| 3283 | cat conftest.err >&5 |
| 3284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3285 | (exit $ac_status); } && |
| 3286 | { ac_try='test -z "$ac_c_werror_flag" |
| 3287 | || test ! -s conftest.err' |
| 3288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3289 | (eval $ac_try) 2>&5 |
| 3290 | ac_status=$? |
| 3291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3292 | (exit $ac_status); }; } && |
| 3293 | { ac_try='test -s conftest.$ac_objext' |
| 3294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3295 | (eval $ac_try) 2>&5 |
| 3296 | ac_status=$? |
| 3297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3298 | (exit $ac_status); }; }; then |
| 3299 | ac_compiler_gnu=yes |
| 3300 | else |
| 3301 | echo "$as_me: failed program was:" >&5 |
| 3302 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3303 | |
| 3304 | ac_compiler_gnu=no |
| 3305 | fi |
| 3306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3307 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3308 | |
| 3309 | fi |
| 3310 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3311 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 3312 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3313 | ac_test_CFLAGS=${CFLAGS+set} |
| 3314 | ac_save_CFLAGS=$CFLAGS |
| 3315 | CFLAGS="-g" |
| 3316 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3317 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 3318 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3320 | else |
| 3321 | cat >conftest.$ac_ext <<_ACEOF |
| 3322 | /* confdefs.h. */ |
| 3323 | _ACEOF |
| 3324 | cat confdefs.h >>conftest.$ac_ext |
| 3325 | cat >>conftest.$ac_ext <<_ACEOF |
| 3326 | /* end confdefs.h. */ |
| 3327 | |
| 3328 | int |
| 3329 | main () |
| 3330 | { |
| 3331 | |
| 3332 | ; |
| 3333 | return 0; |
| 3334 | } |
| 3335 | _ACEOF |
| 3336 | rm -f conftest.$ac_objext |
| 3337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3338 | (eval $ac_compile) 2>conftest.er1 |
| 3339 | ac_status=$? |
| 3340 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3341 | rm -f conftest.er1 |
| 3342 | cat conftest.err >&5 |
| 3343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3344 | (exit $ac_status); } && |
| 3345 | { ac_try='test -z "$ac_c_werror_flag" |
| 3346 | || test ! -s conftest.err' |
| 3347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3348 | (eval $ac_try) 2>&5 |
| 3349 | ac_status=$? |
| 3350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3351 | (exit $ac_status); }; } && |
| 3352 | { ac_try='test -s conftest.$ac_objext' |
| 3353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3354 | (eval $ac_try) 2>&5 |
| 3355 | ac_status=$? |
| 3356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3357 | (exit $ac_status); }; }; then |
| 3358 | ac_cv_prog_cc_g=yes |
| 3359 | else |
| 3360 | echo "$as_me: failed program was:" >&5 |
| 3361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3362 | |
| 3363 | ac_cv_prog_cc_g=no |
| 3364 | fi |
| 3365 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3366 | fi |
| 3367 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3368 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 3369 | if test "$ac_test_CFLAGS" = set; then |
| 3370 | CFLAGS=$ac_save_CFLAGS |
| 3371 | elif test $ac_cv_prog_cc_g = yes; then |
| 3372 | if test "$GCC" = yes; then |
| 3373 | CFLAGS="-g -O2" |
| 3374 | else |
| 3375 | CFLAGS="-g" |
| 3376 | fi |
| 3377 | else |
| 3378 | if test "$GCC" = yes; then |
| 3379 | CFLAGS="-O2" |
| 3380 | else |
| 3381 | CFLAGS= |
| 3382 | fi |
| 3383 | fi |
| 3384 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 3385 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 3386 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 3387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3388 | else |
| 3389 | ac_cv_prog_cc_stdc=no |
| 3390 | ac_save_CC=$CC |
| 3391 | cat >conftest.$ac_ext <<_ACEOF |
| 3392 | /* confdefs.h. */ |
| 3393 | _ACEOF |
| 3394 | cat confdefs.h >>conftest.$ac_ext |
| 3395 | cat >>conftest.$ac_ext <<_ACEOF |
| 3396 | /* end confdefs.h. */ |
| 3397 | #include <stdarg.h> |
| 3398 | #include <stdio.h> |
| 3399 | #include <sys/types.h> |
| 3400 | #include <sys/stat.h> |
| 3401 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3402 | struct buf { int x; }; |
| 3403 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3404 | static char *e (p, i) |
| 3405 | char **p; |
| 3406 | int i; |
| 3407 | { |
| 3408 | return p[i]; |
| 3409 | } |
| 3410 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3411 | { |
| 3412 | char *s; |
| 3413 | va_list v; |
| 3414 | va_start (v,p); |
| 3415 | s = g (p, va_arg (v,int)); |
| 3416 | va_end (v); |
| 3417 | return s; |
| 3418 | } |
| 3419 | |
| 3420 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3421 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3422 | These don't provoke an error unfortunately, instead are silently treated |
| 3423 | as 'x'. The following induces an error, until -std1 is added to get |
| 3424 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3425 | array size at least. It's necessary to write '\x00'==0 to get something |
| 3426 | that's true only with -std1. */ |
| 3427 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3428 | |
| 3429 | int test (int i, double x); |
| 3430 | struct s1 {int (*f) (int a);}; |
| 3431 | struct s2 {int (*f) (double a);}; |
| 3432 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3433 | int argc; |
| 3434 | char **argv; |
| 3435 | int |
| 3436 | main () |
| 3437 | { |
| 3438 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3439 | ; |
| 3440 | return 0; |
| 3441 | } |
| 3442 | _ACEOF |
| 3443 | # Don't try gcc -ansi; that turns off useful extensions and |
| 3444 | # breaks some systems' header files. |
| 3445 | # AIX -qlanglvl=ansi |
| 3446 | # Ultrix and OSF/1 -std1 |
| 3447 | # HP-UX 10.20 and later -Ae |
| 3448 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 3449 | # SVR4 -Xc -D__EXTENSIONS__ |
| 3450 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3451 | do |
| 3452 | CC="$ac_save_CC $ac_arg" |
| 3453 | rm -f conftest.$ac_objext |
| 3454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3455 | (eval $ac_compile) 2>conftest.er1 |
| 3456 | ac_status=$? |
| 3457 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3458 | rm -f conftest.er1 |
| 3459 | cat conftest.err >&5 |
| 3460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3461 | (exit $ac_status); } && |
| 3462 | { ac_try='test -z "$ac_c_werror_flag" |
| 3463 | || test ! -s conftest.err' |
| 3464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3465 | (eval $ac_try) 2>&5 |
| 3466 | ac_status=$? |
| 3467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3468 | (exit $ac_status); }; } && |
| 3469 | { ac_try='test -s conftest.$ac_objext' |
| 3470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3471 | (eval $ac_try) 2>&5 |
| 3472 | ac_status=$? |
| 3473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3474 | (exit $ac_status); }; }; then |
| 3475 | ac_cv_prog_cc_stdc=$ac_arg |
| 3476 | break |
| 3477 | else |
| 3478 | echo "$as_me: failed program was:" >&5 |
| 3479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3480 | |
| 3481 | fi |
| 3482 | rm -f conftest.err conftest.$ac_objext |
| 3483 | done |
| 3484 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 3485 | CC=$ac_save_CC |
| 3486 | |
| 3487 | fi |
| 3488 | |
| 3489 | case "x$ac_cv_prog_cc_stdc" in |
| 3490 | x|xno) |
| 3491 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 3492 | echo "${ECHO_T}none needed" >&6 ;; |
| 3493 | *) |
| 3494 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 3495 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 3496 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 3497 | esac |
| 3498 | |
| 3499 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 3500 | # in C++ we need to declare it. In case someone uses the same compiler |
| 3501 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 3502 | # the declaration of exit, since it's the most demanding environment. |
| 3503 | cat >conftest.$ac_ext <<_ACEOF |
| 3504 | #ifndef __cplusplus |
| 3505 | choke me |
| 3506 | #endif |
| 3507 | _ACEOF |
| 3508 | rm -f conftest.$ac_objext |
| 3509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3510 | (eval $ac_compile) 2>conftest.er1 |
| 3511 | ac_status=$? |
| 3512 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3513 | rm -f conftest.er1 |
| 3514 | cat conftest.err >&5 |
| 3515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3516 | (exit $ac_status); } && |
| 3517 | { ac_try='test -z "$ac_c_werror_flag" |
| 3518 | || test ! -s conftest.err' |
| 3519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3520 | (eval $ac_try) 2>&5 |
| 3521 | ac_status=$? |
| 3522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3523 | (exit $ac_status); }; } && |
| 3524 | { ac_try='test -s conftest.$ac_objext' |
| 3525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3526 | (eval $ac_try) 2>&5 |
| 3527 | ac_status=$? |
| 3528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3529 | (exit $ac_status); }; }; then |
| 3530 | for ac_declaration in \ |
| 3531 | '' \ |
| 3532 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 3533 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 3534 | 'extern "C" void exit (int) throw ();' \ |
| 3535 | 'extern "C" void exit (int);' \ |
| 3536 | 'void exit (int);' |
| 3537 | do |
| 3538 | cat >conftest.$ac_ext <<_ACEOF |
| 3539 | /* confdefs.h. */ |
| 3540 | _ACEOF |
| 3541 | cat confdefs.h >>conftest.$ac_ext |
| 3542 | cat >>conftest.$ac_ext <<_ACEOF |
| 3543 | /* end confdefs.h. */ |
| 3544 | $ac_declaration |
| 3545 | #include <stdlib.h> |
| 3546 | int |
| 3547 | main () |
| 3548 | { |
| 3549 | exit (42); |
| 3550 | ; |
| 3551 | return 0; |
| 3552 | } |
| 3553 | _ACEOF |
| 3554 | rm -f conftest.$ac_objext |
| 3555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3556 | (eval $ac_compile) 2>conftest.er1 |
| 3557 | ac_status=$? |
| 3558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3559 | rm -f conftest.er1 |
| 3560 | cat conftest.err >&5 |
| 3561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3562 | (exit $ac_status); } && |
| 3563 | { ac_try='test -z "$ac_c_werror_flag" |
| 3564 | || test ! -s conftest.err' |
| 3565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3566 | (eval $ac_try) 2>&5 |
| 3567 | ac_status=$? |
| 3568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3569 | (exit $ac_status); }; } && |
| 3570 | { ac_try='test -s conftest.$ac_objext' |
| 3571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3572 | (eval $ac_try) 2>&5 |
| 3573 | ac_status=$? |
| 3574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3575 | (exit $ac_status); }; }; then |
| 3576 | : |
| 3577 | else |
| 3578 | echo "$as_me: failed program was:" >&5 |
| 3579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3580 | |
| 3581 | continue |
| 3582 | fi |
| 3583 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3584 | cat >conftest.$ac_ext <<_ACEOF |
| 3585 | /* confdefs.h. */ |
| 3586 | _ACEOF |
| 3587 | cat confdefs.h >>conftest.$ac_ext |
| 3588 | cat >>conftest.$ac_ext <<_ACEOF |
| 3589 | /* end confdefs.h. */ |
| 3590 | $ac_declaration |
| 3591 | int |
| 3592 | main () |
| 3593 | { |
| 3594 | exit (42); |
| 3595 | ; |
| 3596 | return 0; |
| 3597 | } |
| 3598 | _ACEOF |
| 3599 | rm -f conftest.$ac_objext |
| 3600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3601 | (eval $ac_compile) 2>conftest.er1 |
| 3602 | ac_status=$? |
| 3603 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3604 | rm -f conftest.er1 |
| 3605 | cat conftest.err >&5 |
| 3606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3607 | (exit $ac_status); } && |
| 3608 | { ac_try='test -z "$ac_c_werror_flag" |
| 3609 | || test ! -s conftest.err' |
| 3610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3611 | (eval $ac_try) 2>&5 |
| 3612 | ac_status=$? |
| 3613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3614 | (exit $ac_status); }; } && |
| 3615 | { ac_try='test -s conftest.$ac_objext' |
| 3616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3617 | (eval $ac_try) 2>&5 |
| 3618 | ac_status=$? |
| 3619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3620 | (exit $ac_status); }; }; then |
| 3621 | break |
| 3622 | else |
| 3623 | echo "$as_me: failed program was:" >&5 |
| 3624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3625 | |
| 3626 | fi |
| 3627 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3628 | done |
| 3629 | rm -f conftest* |
| 3630 | if test -n "$ac_declaration"; then |
| 3631 | echo '#ifdef __cplusplus' >>confdefs.h |
| 3632 | echo $ac_declaration >>confdefs.h |
| 3633 | echo '#endif' >>confdefs.h |
| 3634 | fi |
| 3635 | |
| 3636 | else |
| 3637 | echo "$as_me: failed program was:" >&5 |
| 3638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3639 | |
| 3640 | fi |
| 3641 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3642 | ac_ext=c |
| 3643 | ac_cpp='$CPP $CPPFLAGS' |
| 3644 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3645 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3646 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3647 | |
| 3648 | |
| 3649 | # On Suns, sometimes $CPP names a directory. |
| 3650 | if test -n "$CPP" && test -d "$CPP"; then |
| 3651 | CPP= |
| 3652 | fi |
| 3653 | |
| 3654 | #### Some systems specify a CPP to use unless we are using GCC. |
| 3655 | #### Now that we know whether we are using GCC, we can decide whether |
| 3656 | #### to use that one. |
| 3657 | if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x |
| 3658 | then |
| 3659 | CPP="$NON_GNU_CPP" |
| 3660 | fi |
| 3661 | |
| 3662 | #### Some systems specify a CC to use unless we are using GCC. |
| 3663 | #### Now that we know whether we are using GCC, we can decide whether |
| 3664 | #### to use that one. |
| 3665 | if test "x$NON_GNU_CC" != x && test x$GCC != xyes && |
| 3666 | test x$cc_specified != xyes |
| 3667 | then |
| 3668 | CC="$NON_GNU_CC" |
| 3669 | fi |
| 3670 | |
| 3671 | if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x |
| 3672 | then |
| 3673 | CC="$CC $GCC_TEST_OPTIONS" |
| 3674 | fi |
| 3675 | |
| 3676 | if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x |
| 3677 | then |
| 3678 | CC="$CC $NON_GCC_TEST_OPTIONS" |
| 3679 | fi |
| 3680 | |
| 3681 | |
| 3682 | ac_ext=c |
| 3683 | ac_cpp='$CPP $CPPFLAGS' |
| 3684 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3685 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3686 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3687 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3688 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3689 | # On Suns, sometimes $CPP names a directory. |
| 3690 | if test -n "$CPP" && test -d "$CPP"; then |
| 3691 | CPP= |
| 3692 | fi |
| 3693 | if test -z "$CPP"; then |
| 3694 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3696 | else |
| 3697 | # Double quotes because CPP needs to be expanded |
| 3698 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3699 | do |
| 3700 | ac_preproc_ok=false |
| 3701 | for ac_c_preproc_warn_flag in '' yes |
| 3702 | do |
| 3703 | # Use a header file that comes with gcc, so configuring glibc |
| 3704 | # with a fresh cross-compiler works. |
| 3705 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3706 | # <limits.h> exists even on freestanding compilers. |
| 3707 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3708 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3709 | cat >conftest.$ac_ext <<_ACEOF |
| 3710 | /* confdefs.h. */ |
| 3711 | _ACEOF |
| 3712 | cat confdefs.h >>conftest.$ac_ext |
| 3713 | cat >>conftest.$ac_ext <<_ACEOF |
| 3714 | /* end confdefs.h. */ |
| 3715 | #ifdef __STDC__ |
| 3716 | # include <limits.h> |
| 3717 | #else |
| 3718 | # include <assert.h> |
| 3719 | #endif |
| 3720 | Syntax error |
| 3721 | _ACEOF |
| 3722 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3723 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3724 | ac_status=$? |
| 3725 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3726 | rm -f conftest.er1 |
| 3727 | cat conftest.err >&5 |
| 3728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3729 | (exit $ac_status); } >/dev/null; then |
| 3730 | if test -s conftest.err; then |
| 3731 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3732 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3733 | else |
| 3734 | ac_cpp_err= |
| 3735 | fi |
| 3736 | else |
| 3737 | ac_cpp_err=yes |
| 3738 | fi |
| 3739 | if test -z "$ac_cpp_err"; then |
| 3740 | : |
| 3741 | else |
| 3742 | echo "$as_me: failed program was:" >&5 |
| 3743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3744 | |
| 3745 | # Broken: fails on valid input. |
| 3746 | continue |
| 3747 | fi |
| 3748 | rm -f conftest.err conftest.$ac_ext |
| 3749 | |
| 3750 | # OK, works on sane cases. Now check whether non-existent headers |
| 3751 | # can be detected and how. |
| 3752 | cat >conftest.$ac_ext <<_ACEOF |
| 3753 | /* confdefs.h. */ |
| 3754 | _ACEOF |
| 3755 | cat confdefs.h >>conftest.$ac_ext |
| 3756 | cat >>conftest.$ac_ext <<_ACEOF |
| 3757 | /* end confdefs.h. */ |
| 3758 | #include <ac_nonexistent.h> |
| 3759 | _ACEOF |
| 3760 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3761 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3762 | ac_status=$? |
| 3763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3764 | rm -f conftest.er1 |
| 3765 | cat conftest.err >&5 |
| 3766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3767 | (exit $ac_status); } >/dev/null; then |
| 3768 | if test -s conftest.err; then |
| 3769 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3770 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3771 | else |
| 3772 | ac_cpp_err= |
| 3773 | fi |
| 3774 | else |
| 3775 | ac_cpp_err=yes |
| 3776 | fi |
| 3777 | if test -z "$ac_cpp_err"; then |
| 3778 | # Broken: success on invalid input. |
| 3779 | continue |
| 3780 | else |
| 3781 | echo "$as_me: failed program was:" >&5 |
| 3782 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3783 | |
| 3784 | # Passes both tests. |
| 3785 | ac_preproc_ok=: |
| 3786 | break |
| 3787 | fi |
| 3788 | rm -f conftest.err conftest.$ac_ext |
| 3789 | |
| 3790 | done |
| 3791 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3792 | rm -f conftest.err conftest.$ac_ext |
| 3793 | if $ac_preproc_ok; then |
| 3794 | break |
| 3795 | fi |
| 3796 | |
| 3797 | done |
| 3798 | ac_cv_prog_CPP=$CPP |
| 3799 | |
| 3800 | fi |
| 3801 | CPP=$ac_cv_prog_CPP |
| 3802 | else |
| 3803 | ac_cv_prog_CPP=$CPP |
| 3804 | fi |
| 3805 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3806 | echo "${ECHO_T}$CPP" >&6 |
| 3807 | ac_preproc_ok=false |
| 3808 | for ac_c_preproc_warn_flag in '' yes |
| 3809 | do |
| 3810 | # Use a header file that comes with gcc, so configuring glibc |
| 3811 | # with a fresh cross-compiler works. |
| 3812 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3813 | # <limits.h> exists even on freestanding compilers. |
| 3814 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3815 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3816 | cat >conftest.$ac_ext <<_ACEOF |
| 3817 | /* confdefs.h. */ |
| 3818 | _ACEOF |
| 3819 | cat confdefs.h >>conftest.$ac_ext |
| 3820 | cat >>conftest.$ac_ext <<_ACEOF |
| 3821 | /* end confdefs.h. */ |
| 3822 | #ifdef __STDC__ |
| 3823 | # include <limits.h> |
| 3824 | #else |
| 3825 | # include <assert.h> |
| 3826 | #endif |
| 3827 | Syntax error |
| 3828 | _ACEOF |
| 3829 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3830 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3831 | ac_status=$? |
| 3832 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3833 | rm -f conftest.er1 |
| 3834 | cat conftest.err >&5 |
| 3835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3836 | (exit $ac_status); } >/dev/null; then |
| 3837 | if test -s conftest.err; then |
| 3838 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3839 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3840 | else |
| 3841 | ac_cpp_err= |
| 3842 | fi |
| 3843 | else |
| 3844 | ac_cpp_err=yes |
| 3845 | fi |
| 3846 | if test -z "$ac_cpp_err"; then |
| 3847 | : |
| 3848 | else |
| 3849 | echo "$as_me: failed program was:" >&5 |
| 3850 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3851 | |
| 3852 | # Broken: fails on valid input. |
| 3853 | continue |
| 3854 | fi |
| 3855 | rm -f conftest.err conftest.$ac_ext |
| 3856 | |
| 3857 | # OK, works on sane cases. Now check whether non-existent headers |
| 3858 | # can be detected and how. |
| 3859 | cat >conftest.$ac_ext <<_ACEOF |
| 3860 | /* confdefs.h. */ |
| 3861 | _ACEOF |
| 3862 | cat confdefs.h >>conftest.$ac_ext |
| 3863 | cat >>conftest.$ac_ext <<_ACEOF |
| 3864 | /* end confdefs.h. */ |
| 3865 | #include <ac_nonexistent.h> |
| 3866 | _ACEOF |
| 3867 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3868 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3869 | ac_status=$? |
| 3870 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3871 | rm -f conftest.er1 |
| 3872 | cat conftest.err >&5 |
| 3873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3874 | (exit $ac_status); } >/dev/null; then |
| 3875 | if test -s conftest.err; then |
| 3876 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3877 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3878 | else |
| 3879 | ac_cpp_err= |
| 3880 | fi |
| 3881 | else |
| 3882 | ac_cpp_err=yes |
| 3883 | fi |
| 3884 | if test -z "$ac_cpp_err"; then |
| 3885 | # Broken: success on invalid input. |
| 3886 | continue |
| 3887 | else |
| 3888 | echo "$as_me: failed program was:" >&5 |
| 3889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3890 | |
| 3891 | # Passes both tests. |
| 3892 | ac_preproc_ok=: |
| 3893 | break |
| 3894 | fi |
| 3895 | rm -f conftest.err conftest.$ac_ext |
| 3896 | |
| 3897 | done |
| 3898 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3899 | rm -f conftest.err conftest.$ac_ext |
| 3900 | if $ac_preproc_ok; then |
| 3901 | : |
| 3902 | else |
| 3903 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3904 | See \`config.log' for more details." >&5 |
| 3905 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3906 | See \`config.log' for more details." >&2;} |
| 3907 | { (exit 1); exit 1; }; } |
| 3908 | fi |
| 3909 | |
| 3910 | ac_ext=c |
| 3911 | ac_cpp='$CPP $CPPFLAGS' |
| 3912 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3913 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3914 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3915 | |
| 3916 | |
| 3917 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3918 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3919 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3921 | else |
| 3922 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3923 | then ac_cv_prog_egrep='grep -E' |
| 3924 | else ac_cv_prog_egrep='egrep' |
| 3925 | fi |
| 3926 | fi |
| 3927 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3928 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3929 | EGREP=$ac_cv_prog_egrep |
| 3930 | |
| 3931 | |
| 3932 | |
| 3933 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3934 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 3935 | cat >conftest.$ac_ext <<_ACEOF |
| 3936 | /* confdefs.h. */ |
| 3937 | _ACEOF |
| 3938 | cat confdefs.h >>conftest.$ac_ext |
| 3939 | cat >>conftest.$ac_ext <<_ACEOF |
| 3940 | /* end confdefs.h. */ |
| 3941 | #ifdef _AIX |
| 3942 | yes |
| 3943 | #endif |
| 3944 | |
| 3945 | _ACEOF |
| 3946 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3947 | $EGREP "yes" >/dev/null 2>&1; then |
| 3948 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3949 | echo "${ECHO_T}yes" >&6 |
| 3950 | cat >>confdefs.h <<\_ACEOF |
| 3951 | #define _ALL_SOURCE 1 |
| 3952 | _ACEOF |
| 3953 | |
| 3954 | else |
| 3955 | echo "$as_me:$LINENO: result: no" >&5 |
| 3956 | echo "${ECHO_T}no" >&6 |
| 3957 | fi |
| 3958 | rm -f conftest* |
| 3959 | |
| 3960 | |
| 3961 | |
| 3962 | cat >>confdefs.h <<\_ACEOF |
| 3963 | #define _GNU_SOURCE 1 |
| 3964 | _ACEOF |
| 3965 | |
| 3966 | |
| 3967 | |
| 3968 | ### Use -Wno-pointer-sign if the compiler supports it |
| 3969 | echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5 |
| 3970 | echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6 |
| 3971 | SAVE_CFLAGS="$CFLAGS" |
| 3972 | CFLAGS="$CFLAGS -Wno-pointer-sign" |
| 3973 | cat >conftest.$ac_ext <<_ACEOF |
| 3974 | /* confdefs.h. */ |
| 3975 | _ACEOF |
| 3976 | cat confdefs.h >>conftest.$ac_ext |
| 3977 | cat >>conftest.$ac_ext <<_ACEOF |
| 3978 | /* end confdefs.h. */ |
| 3979 | |
| 3980 | int |
| 3981 | main () |
| 3982 | { |
| 3983 | |
| 3984 | ; |
| 3985 | return 0; |
| 3986 | } |
| 3987 | _ACEOF |
| 3988 | rm -f conftest.$ac_objext |
| 3989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3990 | (eval $ac_compile) 2>conftest.er1 |
| 3991 | ac_status=$? |
| 3992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3993 | rm -f conftest.er1 |
| 3994 | cat conftest.err >&5 |
| 3995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3996 | (exit $ac_status); } && |
| 3997 | { ac_try='test -z "$ac_c_werror_flag" |
| 3998 | || test ! -s conftest.err' |
| 3999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4000 | (eval $ac_try) 2>&5 |
| 4001 | ac_status=$? |
| 4002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4003 | (exit $ac_status); }; } && |
| 4004 | { ac_try='test -s conftest.$ac_objext' |
| 4005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4006 | (eval $ac_try) 2>&5 |
| 4007 | ac_status=$? |
| 4008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4009 | (exit $ac_status); }; }; then |
| 4010 | has_option=yes |
| 4011 | else |
| 4012 | echo "$as_me: failed program was:" >&5 |
| 4013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4014 | |
| 4015 | has_option=no |
| 4016 | fi |
| 4017 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4018 | if test $has_option = yes; then |
| 4019 | C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH" |
| 4020 | fi |
| 4021 | echo "$as_me:$LINENO: result: $has_option" >&5 |
| 4022 | echo "${ECHO_T}$has_option" >&6 |
| 4023 | CFLAGS="$SAVE_CFLAGS" |
| 4024 | unset has_option |
| 4025 | unset SAVE_CFLAGS |
| 4026 | |
| 4027 | #### Some other nice autoconf tests. |
| 4028 | |
| 4029 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 4030 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 4031 | LN_S=$as_ln_s |
| 4032 | if test "$LN_S" = "ln -s"; then |
| 4033 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4034 | echo "${ECHO_T}yes" >&6 |
| 4035 | else |
| 4036 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 4037 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 4038 | fi |
| 4039 | |
| 4040 | ac_ext=c |
| 4041 | ac_cpp='$CPP $CPPFLAGS' |
| 4042 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4043 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4044 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4045 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 4046 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 4047 | # On Suns, sometimes $CPP names a directory. |
| 4048 | if test -n "$CPP" && test -d "$CPP"; then |
| 4049 | CPP= |
| 4050 | fi |
| 4051 | if test -z "$CPP"; then |
| 4052 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 4053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4054 | else |
| 4055 | # Double quotes because CPP needs to be expanded |
| 4056 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4057 | do |
| 4058 | ac_preproc_ok=false |
| 4059 | for ac_c_preproc_warn_flag in '' yes |
| 4060 | do |
| 4061 | # Use a header file that comes with gcc, so configuring glibc |
| 4062 | # with a fresh cross-compiler works. |
| 4063 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4064 | # <limits.h> exists even on freestanding compilers. |
| 4065 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4066 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4067 | cat >conftest.$ac_ext <<_ACEOF |
| 4068 | /* confdefs.h. */ |
| 4069 | _ACEOF |
| 4070 | cat confdefs.h >>conftest.$ac_ext |
| 4071 | cat >>conftest.$ac_ext <<_ACEOF |
| 4072 | /* end confdefs.h. */ |
| 4073 | #ifdef __STDC__ |
| 4074 | # include <limits.h> |
| 4075 | #else |
| 4076 | # include <assert.h> |
| 4077 | #endif |
| 4078 | Syntax error |
| 4079 | _ACEOF |
| 4080 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4081 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4082 | ac_status=$? |
| 4083 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4084 | rm -f conftest.er1 |
| 4085 | cat conftest.err >&5 |
| 4086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4087 | (exit $ac_status); } >/dev/null; then |
| 4088 | if test -s conftest.err; then |
| 4089 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4090 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4091 | else |
| 4092 | ac_cpp_err= |
| 4093 | fi |
| 4094 | else |
| 4095 | ac_cpp_err=yes |
| 4096 | fi |
| 4097 | if test -z "$ac_cpp_err"; then |
| 4098 | : |
| 4099 | else |
| 4100 | echo "$as_me: failed program was:" >&5 |
| 4101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4102 | |
| 4103 | # Broken: fails on valid input. |
| 4104 | continue |
| 4105 | fi |
| 4106 | rm -f conftest.err conftest.$ac_ext |
| 4107 | |
| 4108 | # OK, works on sane cases. Now check whether non-existent headers |
| 4109 | # can be detected and how. |
| 4110 | cat >conftest.$ac_ext <<_ACEOF |
| 4111 | /* confdefs.h. */ |
| 4112 | _ACEOF |
| 4113 | cat confdefs.h >>conftest.$ac_ext |
| 4114 | cat >>conftest.$ac_ext <<_ACEOF |
| 4115 | /* end confdefs.h. */ |
| 4116 | #include <ac_nonexistent.h> |
| 4117 | _ACEOF |
| 4118 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4119 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4120 | ac_status=$? |
| 4121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4122 | rm -f conftest.er1 |
| 4123 | cat conftest.err >&5 |
| 4124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4125 | (exit $ac_status); } >/dev/null; then |
| 4126 | if test -s conftest.err; then |
| 4127 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4128 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4129 | else |
| 4130 | ac_cpp_err= |
| 4131 | fi |
| 4132 | else |
| 4133 | ac_cpp_err=yes |
| 4134 | fi |
| 4135 | if test -z "$ac_cpp_err"; then |
| 4136 | # Broken: success on invalid input. |
| 4137 | continue |
| 4138 | else |
| 4139 | echo "$as_me: failed program was:" >&5 |
| 4140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4141 | |
| 4142 | # Passes both tests. |
| 4143 | ac_preproc_ok=: |
| 4144 | break |
| 4145 | fi |
| 4146 | rm -f conftest.err conftest.$ac_ext |
| 4147 | |
| 4148 | done |
| 4149 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4150 | rm -f conftest.err conftest.$ac_ext |
| 4151 | if $ac_preproc_ok; then |
| 4152 | break |
| 4153 | fi |
| 4154 | |
| 4155 | done |
| 4156 | ac_cv_prog_CPP=$CPP |
| 4157 | |
| 4158 | fi |
| 4159 | CPP=$ac_cv_prog_CPP |
| 4160 | else |
| 4161 | ac_cv_prog_CPP=$CPP |
| 4162 | fi |
| 4163 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4164 | echo "${ECHO_T}$CPP" >&6 |
| 4165 | ac_preproc_ok=false |
| 4166 | for ac_c_preproc_warn_flag in '' yes |
| 4167 | do |
| 4168 | # Use a header file that comes with gcc, so configuring glibc |
| 4169 | # with a fresh cross-compiler works. |
| 4170 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4171 | # <limits.h> exists even on freestanding compilers. |
| 4172 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4173 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4174 | cat >conftest.$ac_ext <<_ACEOF |
| 4175 | /* confdefs.h. */ |
| 4176 | _ACEOF |
| 4177 | cat confdefs.h >>conftest.$ac_ext |
| 4178 | cat >>conftest.$ac_ext <<_ACEOF |
| 4179 | /* end confdefs.h. */ |
| 4180 | #ifdef __STDC__ |
| 4181 | # include <limits.h> |
| 4182 | #else |
| 4183 | # include <assert.h> |
| 4184 | #endif |
| 4185 | Syntax error |
| 4186 | _ACEOF |
| 4187 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4188 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4189 | ac_status=$? |
| 4190 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4191 | rm -f conftest.er1 |
| 4192 | cat conftest.err >&5 |
| 4193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4194 | (exit $ac_status); } >/dev/null; then |
| 4195 | if test -s conftest.err; then |
| 4196 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4197 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4198 | else |
| 4199 | ac_cpp_err= |
| 4200 | fi |
| 4201 | else |
| 4202 | ac_cpp_err=yes |
| 4203 | fi |
| 4204 | if test -z "$ac_cpp_err"; then |
| 4205 | : |
| 4206 | else |
| 4207 | echo "$as_me: failed program was:" >&5 |
| 4208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4209 | |
| 4210 | # Broken: fails on valid input. |
| 4211 | continue |
| 4212 | fi |
| 4213 | rm -f conftest.err conftest.$ac_ext |
| 4214 | |
| 4215 | # OK, works on sane cases. Now check whether non-existent headers |
| 4216 | # can be detected and how. |
| 4217 | cat >conftest.$ac_ext <<_ACEOF |
| 4218 | /* confdefs.h. */ |
| 4219 | _ACEOF |
| 4220 | cat confdefs.h >>conftest.$ac_ext |
| 4221 | cat >>conftest.$ac_ext <<_ACEOF |
| 4222 | /* end confdefs.h. */ |
| 4223 | #include <ac_nonexistent.h> |
| 4224 | _ACEOF |
| 4225 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4226 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4227 | ac_status=$? |
| 4228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4229 | rm -f conftest.er1 |
| 4230 | cat conftest.err >&5 |
| 4231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4232 | (exit $ac_status); } >/dev/null; then |
| 4233 | if test -s conftest.err; then |
| 4234 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4235 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4236 | else |
| 4237 | ac_cpp_err= |
| 4238 | fi |
| 4239 | else |
| 4240 | ac_cpp_err=yes |
| 4241 | fi |
| 4242 | if test -z "$ac_cpp_err"; then |
| 4243 | # Broken: success on invalid input. |
| 4244 | continue |
| 4245 | else |
| 4246 | echo "$as_me: failed program was:" >&5 |
| 4247 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4248 | |
| 4249 | # Passes both tests. |
| 4250 | ac_preproc_ok=: |
| 4251 | break |
| 4252 | fi |
| 4253 | rm -f conftest.err conftest.$ac_ext |
| 4254 | |
| 4255 | done |
| 4256 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4257 | rm -f conftest.err conftest.$ac_ext |
| 4258 | if $ac_preproc_ok; then |
| 4259 | : |
| 4260 | else |
| 4261 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 4262 | See \`config.log' for more details." >&5 |
| 4263 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 4264 | See \`config.log' for more details." >&2;} |
| 4265 | { (exit 1); exit 1; }; } |
| 4266 | fi |
| 4267 | |
| 4268 | ac_ext=c |
| 4269 | ac_cpp='$CPP $CPPFLAGS' |
| 4270 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4271 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4272 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4273 | |
| 4274 | # Find a good install program. We prefer a C program (faster), |
| 4275 | # so one script is as good as another. But avoid the broken or |
| 4276 | # incompatible versions: |
| 4277 | # SysV /etc/install, /usr/sbin/install |
| 4278 | # SunOS /usr/etc/install |
| 4279 | # IRIX /sbin/install |
| 4280 | # AIX /bin/install |
| 4281 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4282 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4283 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4284 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4285 | # OS/2's system install, which has a completely different semantic |
| 4286 | # ./install, which can be erroneously created by make from ./install.sh. |
| 4287 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4288 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 4289 | if test -z "$INSTALL"; then |
| 4290 | if test "${ac_cv_path_install+set}" = set; then |
| 4291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4292 | else |
| 4293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4294 | for as_dir in $PATH |
| 4295 | do |
| 4296 | IFS=$as_save_IFS |
| 4297 | test -z "$as_dir" && as_dir=. |
| 4298 | # Account for people who put trailing slashes in PATH elements. |
| 4299 | case $as_dir/ in |
| 4300 | ./ | .// | /cC/* | \ |
| 4301 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4302 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4303 | /usr/ucb/* ) ;; |
| 4304 | *) |
| 4305 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4306 | # Don't use installbsd from OSF since it installs stuff as root |
| 4307 | # by default. |
| 4308 | for ac_prog in ginstall scoinst install; do |
| 4309 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4310 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 4311 | if test $ac_prog = install && |
| 4312 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4313 | # AIX install. It has an incompatible calling convention. |
| 4314 | : |
| 4315 | elif test $ac_prog = install && |
| 4316 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4317 | # program-specific install script used by HP pwplus--don't use. |
| 4318 | : |
| 4319 | else |
| 4320 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4321 | break 3 |
| 4322 | fi |
| 4323 | fi |
| 4324 | done |
| 4325 | done |
| 4326 | ;; |
| 4327 | esac |
| 4328 | done |
| 4329 | |
| 4330 | |
| 4331 | fi |
| 4332 | if test "${ac_cv_path_install+set}" = set; then |
| 4333 | INSTALL=$ac_cv_path_install |
| 4334 | else |
| 4335 | # As a last resort, use the slow shell script. We don't cache a |
| 4336 | # path for INSTALL within a source directory, because that will |
| 4337 | # break other packages using the cache if that directory is |
| 4338 | # removed, or if the path is relative. |
| 4339 | INSTALL=$ac_install_sh |
| 4340 | fi |
| 4341 | fi |
| 4342 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4343 | echo "${ECHO_T}$INSTALL" >&6 |
| 4344 | |
| 4345 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4346 | # It thinks the first close brace ends the variable substitution. |
| 4347 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4348 | |
| 4349 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4350 | |
| 4351 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4352 | |
| 4353 | if test "x$RANLIB" = x; then |
| 4354 | if test -n "$ac_tool_prefix"; then |
| 4355 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4356 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 4357 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4358 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4359 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4361 | else |
| 4362 | if test -n "$RANLIB"; then |
| 4363 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4364 | else |
| 4365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4366 | for as_dir in $PATH |
| 4367 | do |
| 4368 | IFS=$as_save_IFS |
| 4369 | test -z "$as_dir" && as_dir=. |
| 4370 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4371 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4372 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4373 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4374 | break 2 |
| 4375 | fi |
| 4376 | done |
| 4377 | done |
| 4378 | |
| 4379 | fi |
| 4380 | fi |
| 4381 | RANLIB=$ac_cv_prog_RANLIB |
| 4382 | if test -n "$RANLIB"; then |
| 4383 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4384 | echo "${ECHO_T}$RANLIB" >&6 |
| 4385 | else |
| 4386 | echo "$as_me:$LINENO: result: no" >&5 |
| 4387 | echo "${ECHO_T}no" >&6 |
| 4388 | fi |
| 4389 | |
| 4390 | fi |
| 4391 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4392 | ac_ct_RANLIB=$RANLIB |
| 4393 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4394 | set dummy ranlib; ac_word=$2 |
| 4395 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4396 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4397 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4399 | else |
| 4400 | if test -n "$ac_ct_RANLIB"; then |
| 4401 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4402 | else |
| 4403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4404 | for as_dir in $PATH |
| 4405 | do |
| 4406 | IFS=$as_save_IFS |
| 4407 | test -z "$as_dir" && as_dir=. |
| 4408 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4409 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4410 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4411 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4412 | break 2 |
| 4413 | fi |
| 4414 | done |
| 4415 | done |
| 4416 | |
| 4417 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 4418 | fi |
| 4419 | fi |
| 4420 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4421 | if test -n "$ac_ct_RANLIB"; then |
| 4422 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4423 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 4424 | else |
| 4425 | echo "$as_me:$LINENO: result: no" >&5 |
| 4426 | echo "${ECHO_T}no" >&6 |
| 4427 | fi |
| 4428 | |
| 4429 | RANLIB=$ac_ct_RANLIB |
| 4430 | else |
| 4431 | RANLIB="$ac_cv_prog_RANLIB" |
| 4432 | fi |
| 4433 | |
| 4434 | fi |
| 4435 | # Extract the first word of "install-info", so it can be a program name with args. |
| 4436 | set dummy install-info; ac_word=$2 |
| 4437 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4438 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4439 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then |
| 4440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4441 | else |
| 4442 | case $INSTALL_INFO in |
| 4443 | [\\/]* | ?:[\\/]*) |
| 4444 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. |
| 4445 | ;; |
| 4446 | *) |
| 4447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4448 | for as_dir in $PATH |
| 4449 | do |
| 4450 | IFS=$as_save_IFS |
| 4451 | test -z "$as_dir" && as_dir=. |
| 4452 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4453 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4454 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
| 4455 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4456 | break 2 |
| 4457 | fi |
| 4458 | done |
| 4459 | done |
| 4460 | |
| 4461 | ;; |
| 4462 | esac |
| 4463 | fi |
| 4464 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO |
| 4465 | |
| 4466 | if test -n "$INSTALL_INFO"; then |
| 4467 | echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 |
| 4468 | echo "${ECHO_T}$INSTALL_INFO" >&6 |
| 4469 | else |
| 4470 | echo "$as_me:$LINENO: result: no" >&5 |
| 4471 | echo "${ECHO_T}no" >&6 |
| 4472 | fi |
| 4473 | |
| 4474 | # Extract the first word of "install-info", so it can be a program name with args. |
| 4475 | set dummy install-info; ac_word=$2 |
| 4476 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4477 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4478 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then |
| 4479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4480 | else |
| 4481 | case $INSTALL_INFO in |
| 4482 | [\\/]* | ?:[\\/]*) |
| 4483 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. |
| 4484 | ;; |
| 4485 | *) |
| 4486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4487 | for as_dir in /usr/sbin |
| 4488 | do |
| 4489 | IFS=$as_save_IFS |
| 4490 | test -z "$as_dir" && as_dir=. |
| 4491 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4492 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4493 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
| 4494 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4495 | break 2 |
| 4496 | fi |
| 4497 | done |
| 4498 | done |
| 4499 | |
| 4500 | ;; |
| 4501 | esac |
| 4502 | fi |
| 4503 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO |
| 4504 | |
| 4505 | if test -n "$INSTALL_INFO"; then |
| 4506 | echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 |
| 4507 | echo "${ECHO_T}$INSTALL_INFO" >&6 |
| 4508 | else |
| 4509 | echo "$as_me:$LINENO: result: no" >&5 |
| 4510 | echo "${ECHO_T}no" >&6 |
| 4511 | fi |
| 4512 | |
| 4513 | # Extract the first word of "install-info", so it can be a program name with args. |
| 4514 | set dummy install-info; ac_word=$2 |
| 4515 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4516 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4517 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then |
| 4518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4519 | else |
| 4520 | case $INSTALL_INFO in |
| 4521 | [\\/]* | ?:[\\/]*) |
| 4522 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. |
| 4523 | ;; |
| 4524 | *) |
| 4525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4526 | for as_dir in /sbin |
| 4527 | do |
| 4528 | IFS=$as_save_IFS |
| 4529 | test -z "$as_dir" && as_dir=. |
| 4530 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4531 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4532 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
| 4533 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4534 | break 2 |
| 4535 | fi |
| 4536 | done |
| 4537 | done |
| 4538 | |
| 4539 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" |
| 4540 | ;; |
| 4541 | esac |
| 4542 | fi |
| 4543 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO |
| 4544 | |
| 4545 | if test -n "$INSTALL_INFO"; then |
| 4546 | echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 |
| 4547 | echo "${ECHO_T}$INSTALL_INFO" >&6 |
| 4548 | else |
| 4549 | echo "$as_me:$LINENO: result: no" >&5 |
| 4550 | echo "${ECHO_T}no" >&6 |
| 4551 | fi |
| 4552 | |
| 4553 | # Extract the first word of "gzip", so it can be a program name with args. |
| 4554 | set dummy gzip; ac_word=$2 |
| 4555 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4556 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4557 | if test "${ac_cv_path_GZIP_PROG+set}" = set; then |
| 4558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4559 | else |
| 4560 | case $GZIP_PROG in |
| 4561 | [\\/]* | ?:[\\/]*) |
| 4562 | ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path. |
| 4563 | ;; |
| 4564 | *) |
| 4565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4566 | for as_dir in $PATH |
| 4567 | do |
| 4568 | IFS=$as_save_IFS |
| 4569 | test -z "$as_dir" && as_dir=. |
| 4570 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4571 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4572 | ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext" |
| 4573 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4574 | break 2 |
| 4575 | fi |
| 4576 | done |
| 4577 | done |
| 4578 | |
| 4579 | ;; |
| 4580 | esac |
| 4581 | fi |
| 4582 | GZIP_PROG=$ac_cv_path_GZIP_PROG |
| 4583 | |
| 4584 | if test -n "$GZIP_PROG"; then |
| 4585 | echo "$as_me:$LINENO: result: $GZIP_PROG" >&5 |
| 4586 | echo "${ECHO_T}$GZIP_PROG" >&6 |
| 4587 | else |
| 4588 | echo "$as_me:$LINENO: result: no" >&5 |
| 4589 | echo "${ECHO_T}no" >&6 |
| 4590 | fi |
| 4591 | |
| 4592 | |
| 4593 | |
| 4594 | if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x |
| 4595 | then |
| 4596 | ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" |
| 4597 | fi |
| 4598 | |
| 4599 | if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x |
| 4600 | then |
| 4601 | ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" |
| 4602 | fi |
| 4603 | |
| 4604 | |
| 4605 | late_LDFLAGS=$LDFLAGS |
| 4606 | if test "$GCC" = yes; then |
| 4607 | LDFLAGS="$LDFLAGS -Wl,-znocombreloc" |
| 4608 | else |
| 4609 | LDFLAGS="$LDFLAGS -znocombreloc" |
| 4610 | fi |
| 4611 | |
| 4612 | echo "$as_me:$LINENO: checking for -znocombreloc" >&5 |
| 4613 | echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6 |
| 4614 | cat >conftest.$ac_ext <<_ACEOF |
| 4615 | main(){return 0;} |
| 4616 | _ACEOF |
| 4617 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4619 | (eval $ac_link) 2>conftest.er1 |
| 4620 | ac_status=$? |
| 4621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4622 | rm -f conftest.er1 |
| 4623 | cat conftest.err >&5 |
| 4624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4625 | (exit $ac_status); } && |
| 4626 | { ac_try='test -z "$ac_c_werror_flag" |
| 4627 | || test ! -s conftest.err' |
| 4628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4629 | (eval $ac_try) 2>&5 |
| 4630 | ac_status=$? |
| 4631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4632 | (exit $ac_status); }; } && |
| 4633 | { ac_try='test -s conftest$ac_exeext' |
| 4634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4635 | (eval $ac_try) 2>&5 |
| 4636 | ac_status=$? |
| 4637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4638 | (exit $ac_status); }; }; then |
| 4639 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4640 | echo "${ECHO_T}yes" >&6 |
| 4641 | else |
| 4642 | echo "$as_me: failed program was:" >&5 |
| 4643 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4644 | |
| 4645 | LDFLAGS=$late_LDFLAGS |
| 4646 | echo "$as_me:$LINENO: result: no" >&5 |
| 4647 | echo "${ECHO_T}no" >&6 |
| 4648 | fi |
| 4649 | rm -f conftest.err conftest.$ac_objext \ |
| 4650 | conftest$ac_exeext conftest.$ac_ext |
| 4651 | |
| 4652 | #### Extract some information from the operating system and machine files. |
| 4653 | |
| 4654 | { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out |
| 4655 | - which libraries the lib-src programs will want, and |
| 4656 | - whether the GNU malloc routines are usable..." >&5 |
| 4657 | echo "$as_me: checking the machine- and system-dependent files to find out |
| 4658 | - which libraries the lib-src programs will want, and |
| 4659 | - whether the GNU malloc routines are usable..." >&6;} |
| 4660 | |
| 4661 | ### First figure out CFLAGS (which we use for running the compiler here) |
| 4662 | ### and REAL_CFLAGS (which we use for real compilation). |
| 4663 | ### The two are the same except on a few systems, where they are made |
| 4664 | ### different to work around various lossages. For example, |
| 4665 | ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g |
| 4666 | ### as implying static linking. |
| 4667 | |
| 4668 | ### If the CFLAGS env var is specified, we use that value |
| 4669 | ### instead of the default. |
| 4670 | |
| 4671 | ### It's not important that this name contain the PID; you can't run |
| 4672 | ### two configures in the same directory and have anything work |
| 4673 | ### anyway. |
| 4674 | tempcname="conftest.c" |
| 4675 | |
| 4676 | echo ' |
| 4677 | #include "'${srcdir}'/src/'${opsysfile}'" |
| 4678 | #include "'${srcdir}'/src/'${machfile}'" |
| 4679 | #ifndef LIBS_MACHINE |
| 4680 | #define LIBS_MACHINE |
| 4681 | #endif |
| 4682 | #ifndef LIBS_SYSTEM |
| 4683 | #define LIBS_SYSTEM |
| 4684 | #endif |
| 4685 | #ifndef C_SWITCH_SYSTEM |
| 4686 | #define C_SWITCH_SYSTEM |
| 4687 | #endif |
| 4688 | #ifndef C_SWITCH_MACHINE |
| 4689 | #define C_SWITCH_MACHINE |
| 4690 | #endif |
| 4691 | configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM |
| 4692 | configure___ c_switch_system=C_SWITCH_SYSTEM |
| 4693 | configure___ c_switch_machine=C_SWITCH_MACHINE |
| 4694 | |
| 4695 | #ifndef LIB_X11_LIB |
| 4696 | #define LIB_X11_LIB -lX11 |
| 4697 | #endif |
| 4698 | |
| 4699 | #ifndef LIBX11_MACHINE |
| 4700 | #define LIBX11_MACHINE |
| 4701 | #endif |
| 4702 | |
| 4703 | #ifndef LIBX11_SYSTEM |
| 4704 | #define LIBX11_SYSTEM |
| 4705 | #endif |
| 4706 | configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM |
| 4707 | |
| 4708 | #ifdef UNEXEC |
| 4709 | configure___ unexec=UNEXEC |
| 4710 | #else |
| 4711 | configure___ unexec=unexec.o |
| 4712 | #endif |
| 4713 | |
| 4714 | #ifdef SYSTEM_MALLOC |
| 4715 | configure___ system_malloc=yes |
| 4716 | #else |
| 4717 | configure___ system_malloc=no |
| 4718 | #endif |
| 4719 | |
| 4720 | #ifdef USE_MMAP_FOR_BUFFERS |
| 4721 | configure___ use_mmap_for_buffers=yes |
| 4722 | #else |
| 4723 | configure___ use_mmap_for_buffers=no |
| 4724 | #endif |
| 4725 | |
| 4726 | #ifndef C_DEBUG_SWITCH |
| 4727 | #define C_DEBUG_SWITCH -g |
| 4728 | #endif |
| 4729 | |
| 4730 | #ifndef C_OPTIMIZE_SWITCH |
| 4731 | #ifdef __GNUC__ |
| 4732 | #define C_OPTIMIZE_SWITCH -O2 |
| 4733 | #else |
| 4734 | #define C_OPTIMIZE_SWITCH -O |
| 4735 | #endif |
| 4736 | #endif |
| 4737 | |
| 4738 | #ifndef C_WARNINGS_SWITCH |
| 4739 | #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH} |
| 4740 | #endif |
| 4741 | |
| 4742 | #ifndef LD_SWITCH_MACHINE |
| 4743 | #define LD_SWITCH_MACHINE |
| 4744 | #endif |
| 4745 | |
| 4746 | #ifndef LD_SWITCH_SYSTEM |
| 4747 | #define LD_SWITCH_SYSTEM |
| 4748 | #endif |
| 4749 | |
| 4750 | #ifndef LD_SWITCH_X_SITE_AUX |
| 4751 | #define LD_SWITCH_X_SITE_AUX |
| 4752 | #endif |
| 4753 | |
| 4754 | configure___ ld_switch_system=LD_SWITCH_SYSTEM |
| 4755 | configure___ ld_switch_machine=LD_SWITCH_MACHINE |
| 4756 | |
| 4757 | #ifdef THIS_IS_CONFIGURE |
| 4758 | |
| 4759 | /* Get the CFLAGS for tests in configure. */ |
| 4760 | #ifdef __GNUC__ |
| 4761 | configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' |
| 4762 | #else |
| 4763 | configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' |
| 4764 | #endif |
| 4765 | |
| 4766 | #else /* not THIS_IS_CONFIGURE */ |
| 4767 | |
| 4768 | /* Get the CFLAGS for real compilation. */ |
| 4769 | #ifdef __GNUC__ |
| 4770 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}' |
| 4771 | #else |
| 4772 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' |
| 4773 | #endif |
| 4774 | |
| 4775 | #endif /* not THIS_IS_CONFIGURE */ |
| 4776 | ' > ${tempcname} |
| 4777 | |
| 4778 | # The value of CPP is a quoted variable reference, so we need to do this |
| 4779 | # to get its actual value... |
| 4780 | CPP=`eval "echo $CPP"` |
| 4781 | eval `${CPP} -Isrc ${tempcname} \ |
| 4782 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` |
| 4783 | if test "x$SPECIFIED_CFLAGS" = x; then |
| 4784 | eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ |
| 4785 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` |
| 4786 | else |
| 4787 | REAL_CFLAGS="$CFLAGS" |
| 4788 | fi |
| 4789 | rm ${tempcname} |
| 4790 | |
| 4791 | ac_link="$ac_link $ld_switch_machine $ld_switch_system" |
| 4792 | |
| 4793 | ### Make sure subsequent tests use flags consistent with the build flags. |
| 4794 | |
| 4795 | if test x"${OVERRIDE_CPPFLAGS}" != x; then |
| 4796 | CPPFLAGS="${OVERRIDE_CPPFLAGS}" |
| 4797 | else |
| 4798 | CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" |
| 4799 | fi |
| 4800 | |
| 4801 | |
| 4802 | |
| 4803 | # Check whether --enable-largefile or --disable-largefile was given. |
| 4804 | if test "${enable_largefile+set}" = set; then |
| 4805 | enableval="$enable_largefile" |
| 4806 | |
| 4807 | fi; |
| 4808 | if test "$enable_largefile" != no; then |
| 4809 | |
| 4810 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
| 4811 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 |
| 4812 | if test "${ac_cv_sys_largefile_CC+set}" = set; then |
| 4813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4814 | else |
| 4815 | ac_cv_sys_largefile_CC=no |
| 4816 | if test "$GCC" != yes; then |
| 4817 | ac_save_CC=$CC |
| 4818 | while :; do |
| 4819 | # IRIX 6.2 and later do not support large files by default, |
| 4820 | # so use the C compiler's -n32 option if that helps. |
| 4821 | cat >conftest.$ac_ext <<_ACEOF |
| 4822 | /* confdefs.h. */ |
| 4823 | _ACEOF |
| 4824 | cat confdefs.h >>conftest.$ac_ext |
| 4825 | cat >>conftest.$ac_ext <<_ACEOF |
| 4826 | /* end confdefs.h. */ |
| 4827 | #include <sys/types.h> |
| 4828 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 4829 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 4830 | since some C++ compilers masquerading as C compilers |
| 4831 | incorrectly reject 9223372036854775807. */ |
| 4832 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 4833 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 4834 | && LARGE_OFF_T % 2147483647 == 1) |
| 4835 | ? 1 : -1]; |
| 4836 | int |
| 4837 | main () |
| 4838 | { |
| 4839 | |
| 4840 | ; |
| 4841 | return 0; |
| 4842 | } |
| 4843 | _ACEOF |
| 4844 | rm -f conftest.$ac_objext |
| 4845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4846 | (eval $ac_compile) 2>conftest.er1 |
| 4847 | ac_status=$? |
| 4848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4849 | rm -f conftest.er1 |
| 4850 | cat conftest.err >&5 |
| 4851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4852 | (exit $ac_status); } && |
| 4853 | { ac_try='test -z "$ac_c_werror_flag" |
| 4854 | || test ! -s conftest.err' |
| 4855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4856 | (eval $ac_try) 2>&5 |
| 4857 | ac_status=$? |
| 4858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4859 | (exit $ac_status); }; } && |
| 4860 | { ac_try='test -s conftest.$ac_objext' |
| 4861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4862 | (eval $ac_try) 2>&5 |
| 4863 | ac_status=$? |
| 4864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4865 | (exit $ac_status); }; }; then |
| 4866 | break |
| 4867 | else |
| 4868 | echo "$as_me: failed program was:" >&5 |
| 4869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4870 | |
| 4871 | fi |
| 4872 | rm -f conftest.err conftest.$ac_objext |
| 4873 | CC="$CC -n32" |
| 4874 | rm -f conftest.$ac_objext |
| 4875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4876 | (eval $ac_compile) 2>conftest.er1 |
| 4877 | ac_status=$? |
| 4878 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4879 | rm -f conftest.er1 |
| 4880 | cat conftest.err >&5 |
| 4881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4882 | (exit $ac_status); } && |
| 4883 | { ac_try='test -z "$ac_c_werror_flag" |
| 4884 | || test ! -s conftest.err' |
| 4885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4886 | (eval $ac_try) 2>&5 |
| 4887 | ac_status=$? |
| 4888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4889 | (exit $ac_status); }; } && |
| 4890 | { ac_try='test -s conftest.$ac_objext' |
| 4891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4892 | (eval $ac_try) 2>&5 |
| 4893 | ac_status=$? |
| 4894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4895 | (exit $ac_status); }; }; then |
| 4896 | ac_cv_sys_largefile_CC=' -n32'; break |
| 4897 | else |
| 4898 | echo "$as_me: failed program was:" >&5 |
| 4899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4900 | |
| 4901 | fi |
| 4902 | rm -f conftest.err conftest.$ac_objext |
| 4903 | break |
| 4904 | done |
| 4905 | CC=$ac_save_CC |
| 4906 | rm -f conftest.$ac_ext |
| 4907 | fi |
| 4908 | fi |
| 4909 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
| 4910 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 |
| 4911 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 4912 | CC=$CC$ac_cv_sys_largefile_CC |
| 4913 | fi |
| 4914 | |
| 4915 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 4916 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 |
| 4917 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then |
| 4918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4919 | else |
| 4920 | while :; do |
| 4921 | ac_cv_sys_file_offset_bits=no |
| 4922 | cat >conftest.$ac_ext <<_ACEOF |
| 4923 | /* confdefs.h. */ |
| 4924 | _ACEOF |
| 4925 | cat confdefs.h >>conftest.$ac_ext |
| 4926 | cat >>conftest.$ac_ext <<_ACEOF |
| 4927 | /* end confdefs.h. */ |
| 4928 | #include <sys/types.h> |
| 4929 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 4930 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 4931 | since some C++ compilers masquerading as C compilers |
| 4932 | incorrectly reject 9223372036854775807. */ |
| 4933 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 4934 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 4935 | && LARGE_OFF_T % 2147483647 == 1) |
| 4936 | ? 1 : -1]; |
| 4937 | int |
| 4938 | main () |
| 4939 | { |
| 4940 | |
| 4941 | ; |
| 4942 | return 0; |
| 4943 | } |
| 4944 | _ACEOF |
| 4945 | rm -f conftest.$ac_objext |
| 4946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4947 | (eval $ac_compile) 2>conftest.er1 |
| 4948 | ac_status=$? |
| 4949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4950 | rm -f conftest.er1 |
| 4951 | cat conftest.err >&5 |
| 4952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4953 | (exit $ac_status); } && |
| 4954 | { ac_try='test -z "$ac_c_werror_flag" |
| 4955 | || test ! -s conftest.err' |
| 4956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4957 | (eval $ac_try) 2>&5 |
| 4958 | ac_status=$? |
| 4959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4960 | (exit $ac_status); }; } && |
| 4961 | { ac_try='test -s conftest.$ac_objext' |
| 4962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4963 | (eval $ac_try) 2>&5 |
| 4964 | ac_status=$? |
| 4965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4966 | (exit $ac_status); }; }; then |
| 4967 | break |
| 4968 | else |
| 4969 | echo "$as_me: failed program was:" >&5 |
| 4970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4971 | |
| 4972 | fi |
| 4973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4974 | cat >conftest.$ac_ext <<_ACEOF |
| 4975 | /* confdefs.h. */ |
| 4976 | _ACEOF |
| 4977 | cat confdefs.h >>conftest.$ac_ext |
| 4978 | cat >>conftest.$ac_ext <<_ACEOF |
| 4979 | /* end confdefs.h. */ |
| 4980 | #define _FILE_OFFSET_BITS 64 |
| 4981 | #include <sys/types.h> |
| 4982 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 4983 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 4984 | since some C++ compilers masquerading as C compilers |
| 4985 | incorrectly reject 9223372036854775807. */ |
| 4986 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 4987 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 4988 | && LARGE_OFF_T % 2147483647 == 1) |
| 4989 | ? 1 : -1]; |
| 4990 | int |
| 4991 | main () |
| 4992 | { |
| 4993 | |
| 4994 | ; |
| 4995 | return 0; |
| 4996 | } |
| 4997 | _ACEOF |
| 4998 | rm -f conftest.$ac_objext |
| 4999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5000 | (eval $ac_compile) 2>conftest.er1 |
| 5001 | ac_status=$? |
| 5002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5003 | rm -f conftest.er1 |
| 5004 | cat conftest.err >&5 |
| 5005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5006 | (exit $ac_status); } && |
| 5007 | { ac_try='test -z "$ac_c_werror_flag" |
| 5008 | || test ! -s conftest.err' |
| 5009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5010 | (eval $ac_try) 2>&5 |
| 5011 | ac_status=$? |
| 5012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5013 | (exit $ac_status); }; } && |
| 5014 | { ac_try='test -s conftest.$ac_objext' |
| 5015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5016 | (eval $ac_try) 2>&5 |
| 5017 | ac_status=$? |
| 5018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5019 | (exit $ac_status); }; }; then |
| 5020 | ac_cv_sys_file_offset_bits=64; break |
| 5021 | else |
| 5022 | echo "$as_me: failed program was:" >&5 |
| 5023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5024 | |
| 5025 | fi |
| 5026 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5027 | break |
| 5028 | done |
| 5029 | fi |
| 5030 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
| 5031 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 |
| 5032 | if test "$ac_cv_sys_file_offset_bits" != no; then |
| 5033 | |
| 5034 | cat >>confdefs.h <<_ACEOF |
| 5035 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 5036 | _ACEOF |
| 5037 | |
| 5038 | fi |
| 5039 | rm -f conftest* |
| 5040 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 |
| 5041 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 |
| 5042 | if test "${ac_cv_sys_large_files+set}" = set; then |
| 5043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5044 | else |
| 5045 | while :; do |
| 5046 | ac_cv_sys_large_files=no |
| 5047 | cat >conftest.$ac_ext <<_ACEOF |
| 5048 | /* confdefs.h. */ |
| 5049 | _ACEOF |
| 5050 | cat confdefs.h >>conftest.$ac_ext |
| 5051 | cat >>conftest.$ac_ext <<_ACEOF |
| 5052 | /* end confdefs.h. */ |
| 5053 | #include <sys/types.h> |
| 5054 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5055 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5056 | since some C++ compilers masquerading as C compilers |
| 5057 | incorrectly reject 9223372036854775807. */ |
| 5058 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5059 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5060 | && LARGE_OFF_T % 2147483647 == 1) |
| 5061 | ? 1 : -1]; |
| 5062 | int |
| 5063 | main () |
| 5064 | { |
| 5065 | |
| 5066 | ; |
| 5067 | return 0; |
| 5068 | } |
| 5069 | _ACEOF |
| 5070 | rm -f conftest.$ac_objext |
| 5071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5072 | (eval $ac_compile) 2>conftest.er1 |
| 5073 | ac_status=$? |
| 5074 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5075 | rm -f conftest.er1 |
| 5076 | cat conftest.err >&5 |
| 5077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5078 | (exit $ac_status); } && |
| 5079 | { ac_try='test -z "$ac_c_werror_flag" |
| 5080 | || test ! -s conftest.err' |
| 5081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5082 | (eval $ac_try) 2>&5 |
| 5083 | ac_status=$? |
| 5084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5085 | (exit $ac_status); }; } && |
| 5086 | { ac_try='test -s conftest.$ac_objext' |
| 5087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5088 | (eval $ac_try) 2>&5 |
| 5089 | ac_status=$? |
| 5090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5091 | (exit $ac_status); }; }; then |
| 5092 | break |
| 5093 | else |
| 5094 | echo "$as_me: failed program was:" >&5 |
| 5095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5096 | |
| 5097 | fi |
| 5098 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5099 | cat >conftest.$ac_ext <<_ACEOF |
| 5100 | /* confdefs.h. */ |
| 5101 | _ACEOF |
| 5102 | cat confdefs.h >>conftest.$ac_ext |
| 5103 | cat >>conftest.$ac_ext <<_ACEOF |
| 5104 | /* end confdefs.h. */ |
| 5105 | #define _LARGE_FILES 1 |
| 5106 | #include <sys/types.h> |
| 5107 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5108 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5109 | since some C++ compilers masquerading as C compilers |
| 5110 | incorrectly reject 9223372036854775807. */ |
| 5111 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5112 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5113 | && LARGE_OFF_T % 2147483647 == 1) |
| 5114 | ? 1 : -1]; |
| 5115 | int |
| 5116 | main () |
| 5117 | { |
| 5118 | |
| 5119 | ; |
| 5120 | return 0; |
| 5121 | } |
| 5122 | _ACEOF |
| 5123 | rm -f conftest.$ac_objext |
| 5124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5125 | (eval $ac_compile) 2>conftest.er1 |
| 5126 | ac_status=$? |
| 5127 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5128 | rm -f conftest.er1 |
| 5129 | cat conftest.err >&5 |
| 5130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5131 | (exit $ac_status); } && |
| 5132 | { ac_try='test -z "$ac_c_werror_flag" |
| 5133 | || test ! -s conftest.err' |
| 5134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5135 | (eval $ac_try) 2>&5 |
| 5136 | ac_status=$? |
| 5137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5138 | (exit $ac_status); }; } && |
| 5139 | { ac_try='test -s conftest.$ac_objext' |
| 5140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5141 | (eval $ac_try) 2>&5 |
| 5142 | ac_status=$? |
| 5143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5144 | (exit $ac_status); }; }; then |
| 5145 | ac_cv_sys_large_files=1; break |
| 5146 | else |
| 5147 | echo "$as_me: failed program was:" >&5 |
| 5148 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5149 | |
| 5150 | fi |
| 5151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5152 | break |
| 5153 | done |
| 5154 | fi |
| 5155 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
| 5156 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 |
| 5157 | if test "$ac_cv_sys_large_files" != no; then |
| 5158 | |
| 5159 | cat >>confdefs.h <<_ACEOF |
| 5160 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 5161 | _ACEOF |
| 5162 | |
| 5163 | fi |
| 5164 | rm -f conftest* |
| 5165 | fi |
| 5166 | |
| 5167 | |
| 5168 | if test "${with_sound}" != "no"; then |
| 5169 | # Sound support for GNU/Linux and the free BSDs. |
| 5170 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5171 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 5172 | if test "${ac_cv_header_stdc+set}" = set; then |
| 5173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5174 | else |
| 5175 | cat >conftest.$ac_ext <<_ACEOF |
| 5176 | /* confdefs.h. */ |
| 5177 | _ACEOF |
| 5178 | cat confdefs.h >>conftest.$ac_ext |
| 5179 | cat >>conftest.$ac_ext <<_ACEOF |
| 5180 | /* end confdefs.h. */ |
| 5181 | #include <stdlib.h> |
| 5182 | #include <stdarg.h> |
| 5183 | #include <string.h> |
| 5184 | #include <float.h> |
| 5185 | |
| 5186 | int |
| 5187 | main () |
| 5188 | { |
| 5189 | |
| 5190 | ; |
| 5191 | return 0; |
| 5192 | } |
| 5193 | _ACEOF |
| 5194 | rm -f conftest.$ac_objext |
| 5195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5196 | (eval $ac_compile) 2>conftest.er1 |
| 5197 | ac_status=$? |
| 5198 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5199 | rm -f conftest.er1 |
| 5200 | cat conftest.err >&5 |
| 5201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5202 | (exit $ac_status); } && |
| 5203 | { ac_try='test -z "$ac_c_werror_flag" |
| 5204 | || test ! -s conftest.err' |
| 5205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5206 | (eval $ac_try) 2>&5 |
| 5207 | ac_status=$? |
| 5208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5209 | (exit $ac_status); }; } && |
| 5210 | { ac_try='test -s conftest.$ac_objext' |
| 5211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5212 | (eval $ac_try) 2>&5 |
| 5213 | ac_status=$? |
| 5214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5215 | (exit $ac_status); }; }; then |
| 5216 | ac_cv_header_stdc=yes |
| 5217 | else |
| 5218 | echo "$as_me: failed program was:" >&5 |
| 5219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5220 | |
| 5221 | ac_cv_header_stdc=no |
| 5222 | fi |
| 5223 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5224 | |
| 5225 | if test $ac_cv_header_stdc = yes; then |
| 5226 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5227 | cat >conftest.$ac_ext <<_ACEOF |
| 5228 | /* confdefs.h. */ |
| 5229 | _ACEOF |
| 5230 | cat confdefs.h >>conftest.$ac_ext |
| 5231 | cat >>conftest.$ac_ext <<_ACEOF |
| 5232 | /* end confdefs.h. */ |
| 5233 | #include <string.h> |
| 5234 | |
| 5235 | _ACEOF |
| 5236 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5237 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5238 | : |
| 5239 | else |
| 5240 | ac_cv_header_stdc=no |
| 5241 | fi |
| 5242 | rm -f conftest* |
| 5243 | |
| 5244 | fi |
| 5245 | |
| 5246 | if test $ac_cv_header_stdc = yes; then |
| 5247 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5248 | cat >conftest.$ac_ext <<_ACEOF |
| 5249 | /* confdefs.h. */ |
| 5250 | _ACEOF |
| 5251 | cat confdefs.h >>conftest.$ac_ext |
| 5252 | cat >>conftest.$ac_ext <<_ACEOF |
| 5253 | /* end confdefs.h. */ |
| 5254 | #include <stdlib.h> |
| 5255 | |
| 5256 | _ACEOF |
| 5257 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5258 | $EGREP "free" >/dev/null 2>&1; then |
| 5259 | : |
| 5260 | else |
| 5261 | ac_cv_header_stdc=no |
| 5262 | fi |
| 5263 | rm -f conftest* |
| 5264 | |
| 5265 | fi |
| 5266 | |
| 5267 | if test $ac_cv_header_stdc = yes; then |
| 5268 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5269 | if test "$cross_compiling" = yes; then |
| 5270 | : |
| 5271 | else |
| 5272 | cat >conftest.$ac_ext <<_ACEOF |
| 5273 | /* confdefs.h. */ |
| 5274 | _ACEOF |
| 5275 | cat confdefs.h >>conftest.$ac_ext |
| 5276 | cat >>conftest.$ac_ext <<_ACEOF |
| 5277 | /* end confdefs.h. */ |
| 5278 | #include <ctype.h> |
| 5279 | #if ((' ' & 0x0FF) == 0x020) |
| 5280 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5281 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5282 | #else |
| 5283 | # define ISLOWER(c) \ |
| 5284 | (('a' <= (c) && (c) <= 'i') \ |
| 5285 | || ('j' <= (c) && (c) <= 'r') \ |
| 5286 | || ('s' <= (c) && (c) <= 'z')) |
| 5287 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5288 | #endif |
| 5289 | |
| 5290 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5291 | int |
| 5292 | main () |
| 5293 | { |
| 5294 | int i; |
| 5295 | for (i = 0; i < 256; i++) |
| 5296 | if (XOR (islower (i), ISLOWER (i)) |
| 5297 | || toupper (i) != TOUPPER (i)) |
| 5298 | exit(2); |
| 5299 | exit (0); |
| 5300 | } |
| 5301 | _ACEOF |
| 5302 | rm -f conftest$ac_exeext |
| 5303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5304 | (eval $ac_link) 2>&5 |
| 5305 | ac_status=$? |
| 5306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5307 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5309 | (eval $ac_try) 2>&5 |
| 5310 | ac_status=$? |
| 5311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5312 | (exit $ac_status); }; }; then |
| 5313 | : |
| 5314 | else |
| 5315 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5316 | echo "$as_me: failed program was:" >&5 |
| 5317 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5318 | |
| 5319 | ( exit $ac_status ) |
| 5320 | ac_cv_header_stdc=no |
| 5321 | fi |
| 5322 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5323 | fi |
| 5324 | fi |
| 5325 | fi |
| 5326 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5327 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 5328 | if test $ac_cv_header_stdc = yes; then |
| 5329 | |
| 5330 | cat >>confdefs.h <<\_ACEOF |
| 5331 | #define STDC_HEADERS 1 |
| 5332 | _ACEOF |
| 5333 | |
| 5334 | fi |
| 5335 | |
| 5336 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5337 | |
| 5338 | |
| 5339 | |
| 5340 | |
| 5341 | |
| 5342 | |
| 5343 | |
| 5344 | |
| 5345 | |
| 5346 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5347 | inttypes.h stdint.h unistd.h |
| 5348 | do |
| 5349 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5350 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5351 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5352 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5354 | else |
| 5355 | cat >conftest.$ac_ext <<_ACEOF |
| 5356 | /* confdefs.h. */ |
| 5357 | _ACEOF |
| 5358 | cat confdefs.h >>conftest.$ac_ext |
| 5359 | cat >>conftest.$ac_ext <<_ACEOF |
| 5360 | /* end confdefs.h. */ |
| 5361 | $ac_includes_default |
| 5362 | |
| 5363 | #include <$ac_header> |
| 5364 | _ACEOF |
| 5365 | rm -f conftest.$ac_objext |
| 5366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5367 | (eval $ac_compile) 2>conftest.er1 |
| 5368 | ac_status=$? |
| 5369 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5370 | rm -f conftest.er1 |
| 5371 | cat conftest.err >&5 |
| 5372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5373 | (exit $ac_status); } && |
| 5374 | { ac_try='test -z "$ac_c_werror_flag" |
| 5375 | || test ! -s conftest.err' |
| 5376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5377 | (eval $ac_try) 2>&5 |
| 5378 | ac_status=$? |
| 5379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5380 | (exit $ac_status); }; } && |
| 5381 | { ac_try='test -s conftest.$ac_objext' |
| 5382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5383 | (eval $ac_try) 2>&5 |
| 5384 | ac_status=$? |
| 5385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5386 | (exit $ac_status); }; }; then |
| 5387 | eval "$as_ac_Header=yes" |
| 5388 | else |
| 5389 | echo "$as_me: failed program was:" >&5 |
| 5390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5391 | |
| 5392 | eval "$as_ac_Header=no" |
| 5393 | fi |
| 5394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5395 | fi |
| 5396 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5397 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5398 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5399 | cat >>confdefs.h <<_ACEOF |
| 5400 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5401 | _ACEOF |
| 5402 | |
| 5403 | fi |
| 5404 | |
| 5405 | done |
| 5406 | |
| 5407 | |
| 5408 | |
| 5409 | |
| 5410 | |
| 5411 | for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h |
| 5412 | do |
| 5413 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5414 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5415 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5416 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5417 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5419 | fi |
| 5420 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5421 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5422 | else |
| 5423 | # Is the header compilable? |
| 5424 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5425 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 5426 | cat >conftest.$ac_ext <<_ACEOF |
| 5427 | /* confdefs.h. */ |
| 5428 | _ACEOF |
| 5429 | cat confdefs.h >>conftest.$ac_ext |
| 5430 | cat >>conftest.$ac_ext <<_ACEOF |
| 5431 | /* end confdefs.h. */ |
| 5432 | $ac_includes_default |
| 5433 | #include <$ac_header> |
| 5434 | _ACEOF |
| 5435 | rm -f conftest.$ac_objext |
| 5436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5437 | (eval $ac_compile) 2>conftest.er1 |
| 5438 | ac_status=$? |
| 5439 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5440 | rm -f conftest.er1 |
| 5441 | cat conftest.err >&5 |
| 5442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5443 | (exit $ac_status); } && |
| 5444 | { ac_try='test -z "$ac_c_werror_flag" |
| 5445 | || test ! -s conftest.err' |
| 5446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5447 | (eval $ac_try) 2>&5 |
| 5448 | ac_status=$? |
| 5449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5450 | (exit $ac_status); }; } && |
| 5451 | { ac_try='test -s conftest.$ac_objext' |
| 5452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5453 | (eval $ac_try) 2>&5 |
| 5454 | ac_status=$? |
| 5455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5456 | (exit $ac_status); }; }; then |
| 5457 | ac_header_compiler=yes |
| 5458 | else |
| 5459 | echo "$as_me: failed program was:" >&5 |
| 5460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5461 | |
| 5462 | ac_header_compiler=no |
| 5463 | fi |
| 5464 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5465 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5466 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5467 | |
| 5468 | # Is the header present? |
| 5469 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5470 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 5471 | cat >conftest.$ac_ext <<_ACEOF |
| 5472 | /* confdefs.h. */ |
| 5473 | _ACEOF |
| 5474 | cat confdefs.h >>conftest.$ac_ext |
| 5475 | cat >>conftest.$ac_ext <<_ACEOF |
| 5476 | /* end confdefs.h. */ |
| 5477 | #include <$ac_header> |
| 5478 | _ACEOF |
| 5479 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5480 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5481 | ac_status=$? |
| 5482 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5483 | rm -f conftest.er1 |
| 5484 | cat conftest.err >&5 |
| 5485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5486 | (exit $ac_status); } >/dev/null; then |
| 5487 | if test -s conftest.err; then |
| 5488 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5489 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5490 | else |
| 5491 | ac_cpp_err= |
| 5492 | fi |
| 5493 | else |
| 5494 | ac_cpp_err=yes |
| 5495 | fi |
| 5496 | if test -z "$ac_cpp_err"; then |
| 5497 | ac_header_preproc=yes |
| 5498 | else |
| 5499 | echo "$as_me: failed program was:" >&5 |
| 5500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5501 | |
| 5502 | ac_header_preproc=no |
| 5503 | fi |
| 5504 | rm -f conftest.err conftest.$ac_ext |
| 5505 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5506 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5507 | |
| 5508 | # So? What about this header? |
| 5509 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5510 | yes:no: ) |
| 5511 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5512 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5513 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5514 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5515 | ac_header_preproc=yes |
| 5516 | ;; |
| 5517 | no:yes:* ) |
| 5518 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5519 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5520 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5521 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5522 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5523 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5524 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5525 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5526 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5527 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5528 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5529 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 5530 | ( |
| 5531 | cat <<\_ASBOX |
| 5532 | ## ------------------------------------------ ## |
| 5533 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 5534 | ## ------------------------------------------ ## |
| 5535 | _ASBOX |
| 5536 | ) | |
| 5537 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5538 | ;; |
| 5539 | esac |
| 5540 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5541 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5542 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5544 | else |
| 5545 | eval "$as_ac_Header=\$ac_header_preproc" |
| 5546 | fi |
| 5547 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5548 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5549 | |
| 5550 | fi |
| 5551 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5552 | cat >>confdefs.h <<_ACEOF |
| 5553 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5554 | _ACEOF |
| 5555 | |
| 5556 | fi |
| 5557 | |
| 5558 | done |
| 5559 | |
| 5560 | # Emulation library used on NetBSD. |
| 5561 | echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
| 5562 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 |
| 5563 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then |
| 5564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5565 | else |
| 5566 | ac_check_lib_save_LIBS=$LIBS |
| 5567 | LIBS="-lossaudio $LIBS" |
| 5568 | cat >conftest.$ac_ext <<_ACEOF |
| 5569 | /* confdefs.h. */ |
| 5570 | _ACEOF |
| 5571 | cat confdefs.h >>conftest.$ac_ext |
| 5572 | cat >>conftest.$ac_ext <<_ACEOF |
| 5573 | /* end confdefs.h. */ |
| 5574 | |
| 5575 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5576 | #ifdef __cplusplus |
| 5577 | extern "C" |
| 5578 | #endif |
| 5579 | /* We use char because int might match the return type of a gcc2 |
| 5580 | builtin and then its argument prototype would still apply. */ |
| 5581 | char _oss_ioctl (); |
| 5582 | int |
| 5583 | main () |
| 5584 | { |
| 5585 | _oss_ioctl (); |
| 5586 | ; |
| 5587 | return 0; |
| 5588 | } |
| 5589 | _ACEOF |
| 5590 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5591 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5592 | (eval $ac_link) 2>conftest.er1 |
| 5593 | ac_status=$? |
| 5594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5595 | rm -f conftest.er1 |
| 5596 | cat conftest.err >&5 |
| 5597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5598 | (exit $ac_status); } && |
| 5599 | { ac_try='test -z "$ac_c_werror_flag" |
| 5600 | || test ! -s conftest.err' |
| 5601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5602 | (eval $ac_try) 2>&5 |
| 5603 | ac_status=$? |
| 5604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5605 | (exit $ac_status); }; } && |
| 5606 | { ac_try='test -s conftest$ac_exeext' |
| 5607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5608 | (eval $ac_try) 2>&5 |
| 5609 | ac_status=$? |
| 5610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5611 | (exit $ac_status); }; }; then |
| 5612 | ac_cv_lib_ossaudio__oss_ioctl=yes |
| 5613 | else |
| 5614 | echo "$as_me: failed program was:" >&5 |
| 5615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5616 | |
| 5617 | ac_cv_lib_ossaudio__oss_ioctl=no |
| 5618 | fi |
| 5619 | rm -f conftest.err conftest.$ac_objext \ |
| 5620 | conftest$ac_exeext conftest.$ac_ext |
| 5621 | LIBS=$ac_check_lib_save_LIBS |
| 5622 | fi |
| 5623 | echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
| 5624 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 |
| 5625 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then |
| 5626 | LIBSOUND=-lossaudio |
| 5627 | else |
| 5628 | LIBSOUND= |
| 5629 | fi |
| 5630 | |
| 5631 | |
| 5632 | fi |
| 5633 | |
| 5634 | |
| 5635 | |
| 5636 | |
| 5637 | |
| 5638 | |
| 5639 | |
| 5640 | |
| 5641 | |
| 5642 | |
| 5643 | |
| 5644 | |
| 5645 | |
| 5646 | |
| 5647 | |
| 5648 | |
| 5649 | |
| 5650 | |
| 5651 | |
| 5652 | |
| 5653 | |
| 5654 | |
| 5655 | |
| 5656 | |
| 5657 | |
| 5658 | |
| 5659 | for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
| 5660 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
| 5661 | termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ |
| 5662 | sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ |
| 5663 | sys/utsname.h pwd.h |
| 5664 | do |
| 5665 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5666 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5667 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5668 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5669 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5671 | fi |
| 5672 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5673 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5674 | else |
| 5675 | # Is the header compilable? |
| 5676 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5677 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 5678 | cat >conftest.$ac_ext <<_ACEOF |
| 5679 | /* confdefs.h. */ |
| 5680 | _ACEOF |
| 5681 | cat confdefs.h >>conftest.$ac_ext |
| 5682 | cat >>conftest.$ac_ext <<_ACEOF |
| 5683 | /* end confdefs.h. */ |
| 5684 | $ac_includes_default |
| 5685 | #include <$ac_header> |
| 5686 | _ACEOF |
| 5687 | rm -f conftest.$ac_objext |
| 5688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5689 | (eval $ac_compile) 2>conftest.er1 |
| 5690 | ac_status=$? |
| 5691 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5692 | rm -f conftest.er1 |
| 5693 | cat conftest.err >&5 |
| 5694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5695 | (exit $ac_status); } && |
| 5696 | { ac_try='test -z "$ac_c_werror_flag" |
| 5697 | || test ! -s conftest.err' |
| 5698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5699 | (eval $ac_try) 2>&5 |
| 5700 | ac_status=$? |
| 5701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5702 | (exit $ac_status); }; } && |
| 5703 | { ac_try='test -s conftest.$ac_objext' |
| 5704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5705 | (eval $ac_try) 2>&5 |
| 5706 | ac_status=$? |
| 5707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5708 | (exit $ac_status); }; }; then |
| 5709 | ac_header_compiler=yes |
| 5710 | else |
| 5711 | echo "$as_me: failed program was:" >&5 |
| 5712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5713 | |
| 5714 | ac_header_compiler=no |
| 5715 | fi |
| 5716 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5717 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5718 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5719 | |
| 5720 | # Is the header present? |
| 5721 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5722 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 5723 | cat >conftest.$ac_ext <<_ACEOF |
| 5724 | /* confdefs.h. */ |
| 5725 | _ACEOF |
| 5726 | cat confdefs.h >>conftest.$ac_ext |
| 5727 | cat >>conftest.$ac_ext <<_ACEOF |
| 5728 | /* end confdefs.h. */ |
| 5729 | #include <$ac_header> |
| 5730 | _ACEOF |
| 5731 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5732 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5733 | ac_status=$? |
| 5734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5735 | rm -f conftest.er1 |
| 5736 | cat conftest.err >&5 |
| 5737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5738 | (exit $ac_status); } >/dev/null; then |
| 5739 | if test -s conftest.err; then |
| 5740 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5741 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5742 | else |
| 5743 | ac_cpp_err= |
| 5744 | fi |
| 5745 | else |
| 5746 | ac_cpp_err=yes |
| 5747 | fi |
| 5748 | if test -z "$ac_cpp_err"; then |
| 5749 | ac_header_preproc=yes |
| 5750 | else |
| 5751 | echo "$as_me: failed program was:" >&5 |
| 5752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5753 | |
| 5754 | ac_header_preproc=no |
| 5755 | fi |
| 5756 | rm -f conftest.err conftest.$ac_ext |
| 5757 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5758 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5759 | |
| 5760 | # So? What about this header? |
| 5761 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5762 | yes:no: ) |
| 5763 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5764 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5765 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5766 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5767 | ac_header_preproc=yes |
| 5768 | ;; |
| 5769 | no:yes:* ) |
| 5770 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5771 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5772 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5773 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5774 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5775 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5776 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5777 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5778 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5779 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5780 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5781 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 5782 | ( |
| 5783 | cat <<\_ASBOX |
| 5784 | ## ------------------------------------------ ## |
| 5785 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 5786 | ## ------------------------------------------ ## |
| 5787 | _ASBOX |
| 5788 | ) | |
| 5789 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5790 | ;; |
| 5791 | esac |
| 5792 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5793 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5794 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5796 | else |
| 5797 | eval "$as_ac_Header=\$ac_header_preproc" |
| 5798 | fi |
| 5799 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5800 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5801 | |
| 5802 | fi |
| 5803 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5804 | cat >>confdefs.h <<_ACEOF |
| 5805 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5806 | _ACEOF |
| 5807 | |
| 5808 | fi |
| 5809 | |
| 5810 | done |
| 5811 | |
| 5812 | |
| 5813 | echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5 |
| 5814 | echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6 |
| 5815 | cat >conftest.$ac_ext <<_ACEOF |
| 5816 | /* confdefs.h. */ |
| 5817 | _ACEOF |
| 5818 | cat confdefs.h >>conftest.$ac_ext |
| 5819 | cat >>conftest.$ac_ext <<_ACEOF |
| 5820 | /* end confdefs.h. */ |
| 5821 | #include <sys/personality.h> |
| 5822 | int |
| 5823 | main () |
| 5824 | { |
| 5825 | personality (PER_LINUX32) |
| 5826 | ; |
| 5827 | return 0; |
| 5828 | } |
| 5829 | _ACEOF |
| 5830 | rm -f conftest.$ac_objext |
| 5831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5832 | (eval $ac_compile) 2>conftest.er1 |
| 5833 | ac_status=$? |
| 5834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5835 | rm -f conftest.er1 |
| 5836 | cat conftest.err >&5 |
| 5837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5838 | (exit $ac_status); } && |
| 5839 | { ac_try='test -z "$ac_c_werror_flag" |
| 5840 | || test ! -s conftest.err' |
| 5841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5842 | (eval $ac_try) 2>&5 |
| 5843 | ac_status=$? |
| 5844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5845 | (exit $ac_status); }; } && |
| 5846 | { ac_try='test -s conftest.$ac_objext' |
| 5847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5848 | (eval $ac_try) 2>&5 |
| 5849 | ac_status=$? |
| 5850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5851 | (exit $ac_status); }; }; then |
| 5852 | emacs_cv_personality_linux32=yes |
| 5853 | else |
| 5854 | echo "$as_me: failed program was:" >&5 |
| 5855 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5856 | |
| 5857 | emacs_cv_personality_linux32=no |
| 5858 | fi |
| 5859 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5860 | echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5 |
| 5861 | echo "${ECHO_T}$emacs_cv_personality_linux32" >&6 |
| 5862 | |
| 5863 | if test $emacs_cv_personality_linux32 = yes; then |
| 5864 | |
| 5865 | cat >>confdefs.h <<\_ACEOF |
| 5866 | #define HAVE_PERSONALITY_LINUX32 1 |
| 5867 | _ACEOF |
| 5868 | |
| 5869 | fi |
| 5870 | |
| 5871 | |
| 5872 | for ac_header in term.h |
| 5873 | do |
| 5874 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5875 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5876 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5877 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5879 | else |
| 5880 | cat >conftest.$ac_ext <<_ACEOF |
| 5881 | /* confdefs.h. */ |
| 5882 | _ACEOF |
| 5883 | cat confdefs.h >>conftest.$ac_ext |
| 5884 | cat >>conftest.$ac_ext <<_ACEOF |
| 5885 | /* end confdefs.h. */ |
| 5886 | #include <$ac_header> |
| 5887 | _ACEOF |
| 5888 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5889 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5890 | ac_status=$? |
| 5891 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5892 | rm -f conftest.er1 |
| 5893 | cat conftest.err >&5 |
| 5894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5895 | (exit $ac_status); } >/dev/null; then |
| 5896 | if test -s conftest.err; then |
| 5897 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5898 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5899 | else |
| 5900 | ac_cpp_err= |
| 5901 | fi |
| 5902 | else |
| 5903 | ac_cpp_err=yes |
| 5904 | fi |
| 5905 | if test -z "$ac_cpp_err"; then |
| 5906 | eval "$as_ac_Header=yes" |
| 5907 | else |
| 5908 | echo "$as_me: failed program was:" >&5 |
| 5909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5910 | |
| 5911 | eval "$as_ac_Header=no" |
| 5912 | fi |
| 5913 | rm -f conftest.err conftest.$ac_ext |
| 5914 | fi |
| 5915 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5916 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5917 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5918 | cat >>confdefs.h <<_ACEOF |
| 5919 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5920 | _ACEOF |
| 5921 | |
| 5922 | fi |
| 5923 | |
| 5924 | done |
| 5925 | |
| 5926 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5927 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 5928 | if test "${ac_cv_header_stdc+set}" = set; then |
| 5929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5930 | else |
| 5931 | cat >conftest.$ac_ext <<_ACEOF |
| 5932 | /* confdefs.h. */ |
| 5933 | _ACEOF |
| 5934 | cat confdefs.h >>conftest.$ac_ext |
| 5935 | cat >>conftest.$ac_ext <<_ACEOF |
| 5936 | /* end confdefs.h. */ |
| 5937 | #include <stdlib.h> |
| 5938 | #include <stdarg.h> |
| 5939 | #include <string.h> |
| 5940 | #include <float.h> |
| 5941 | |
| 5942 | int |
| 5943 | main () |
| 5944 | { |
| 5945 | |
| 5946 | ; |
| 5947 | return 0; |
| 5948 | } |
| 5949 | _ACEOF |
| 5950 | rm -f conftest.$ac_objext |
| 5951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5952 | (eval $ac_compile) 2>conftest.er1 |
| 5953 | ac_status=$? |
| 5954 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5955 | rm -f conftest.er1 |
| 5956 | cat conftest.err >&5 |
| 5957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5958 | (exit $ac_status); } && |
| 5959 | { ac_try='test -z "$ac_c_werror_flag" |
| 5960 | || test ! -s conftest.err' |
| 5961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5962 | (eval $ac_try) 2>&5 |
| 5963 | ac_status=$? |
| 5964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5965 | (exit $ac_status); }; } && |
| 5966 | { ac_try='test -s conftest.$ac_objext' |
| 5967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5968 | (eval $ac_try) 2>&5 |
| 5969 | ac_status=$? |
| 5970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5971 | (exit $ac_status); }; }; then |
| 5972 | ac_cv_header_stdc=yes |
| 5973 | else |
| 5974 | echo "$as_me: failed program was:" >&5 |
| 5975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5976 | |
| 5977 | ac_cv_header_stdc=no |
| 5978 | fi |
| 5979 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5980 | |
| 5981 | if test $ac_cv_header_stdc = yes; then |
| 5982 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5983 | cat >conftest.$ac_ext <<_ACEOF |
| 5984 | /* confdefs.h. */ |
| 5985 | _ACEOF |
| 5986 | cat confdefs.h >>conftest.$ac_ext |
| 5987 | cat >>conftest.$ac_ext <<_ACEOF |
| 5988 | /* end confdefs.h. */ |
| 5989 | #include <string.h> |
| 5990 | |
| 5991 | _ACEOF |
| 5992 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5993 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5994 | : |
| 5995 | else |
| 5996 | ac_cv_header_stdc=no |
| 5997 | fi |
| 5998 | rm -f conftest* |
| 5999 | |
| 6000 | fi |
| 6001 | |
| 6002 | if test $ac_cv_header_stdc = yes; then |
| 6003 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6004 | cat >conftest.$ac_ext <<_ACEOF |
| 6005 | /* confdefs.h. */ |
| 6006 | _ACEOF |
| 6007 | cat confdefs.h >>conftest.$ac_ext |
| 6008 | cat >>conftest.$ac_ext <<_ACEOF |
| 6009 | /* end confdefs.h. */ |
| 6010 | #include <stdlib.h> |
| 6011 | |
| 6012 | _ACEOF |
| 6013 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6014 | $EGREP "free" >/dev/null 2>&1; then |
| 6015 | : |
| 6016 | else |
| 6017 | ac_cv_header_stdc=no |
| 6018 | fi |
| 6019 | rm -f conftest* |
| 6020 | |
| 6021 | fi |
| 6022 | |
| 6023 | if test $ac_cv_header_stdc = yes; then |
| 6024 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6025 | if test "$cross_compiling" = yes; then |
| 6026 | : |
| 6027 | else |
| 6028 | cat >conftest.$ac_ext <<_ACEOF |
| 6029 | /* confdefs.h. */ |
| 6030 | _ACEOF |
| 6031 | cat confdefs.h >>conftest.$ac_ext |
| 6032 | cat >>conftest.$ac_ext <<_ACEOF |
| 6033 | /* end confdefs.h. */ |
| 6034 | #include <ctype.h> |
| 6035 | #if ((' ' & 0x0FF) == 0x020) |
| 6036 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6037 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6038 | #else |
| 6039 | # define ISLOWER(c) \ |
| 6040 | (('a' <= (c) && (c) <= 'i') \ |
| 6041 | || ('j' <= (c) && (c) <= 'r') \ |
| 6042 | || ('s' <= (c) && (c) <= 'z')) |
| 6043 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6044 | #endif |
| 6045 | |
| 6046 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6047 | int |
| 6048 | main () |
| 6049 | { |
| 6050 | int i; |
| 6051 | for (i = 0; i < 256; i++) |
| 6052 | if (XOR (islower (i), ISLOWER (i)) |
| 6053 | || toupper (i) != TOUPPER (i)) |
| 6054 | exit(2); |
| 6055 | exit (0); |
| 6056 | } |
| 6057 | _ACEOF |
| 6058 | rm -f conftest$ac_exeext |
| 6059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6060 | (eval $ac_link) 2>&5 |
| 6061 | ac_status=$? |
| 6062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6063 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6065 | (eval $ac_try) 2>&5 |
| 6066 | ac_status=$? |
| 6067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6068 | (exit $ac_status); }; }; then |
| 6069 | : |
| 6070 | else |
| 6071 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6072 | echo "$as_me: failed program was:" >&5 |
| 6073 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6074 | |
| 6075 | ( exit $ac_status ) |
| 6076 | ac_cv_header_stdc=no |
| 6077 | fi |
| 6078 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6079 | fi |
| 6080 | fi |
| 6081 | fi |
| 6082 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 6083 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 6084 | if test $ac_cv_header_stdc = yes; then |
| 6085 | |
| 6086 | cat >>confdefs.h <<\_ACEOF |
| 6087 | #define STDC_HEADERS 1 |
| 6088 | _ACEOF |
| 6089 | |
| 6090 | fi |
| 6091 | |
| 6092 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 6093 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 6094 | if test "${ac_cv_header_time+set}" = set; then |
| 6095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6096 | else |
| 6097 | cat >conftest.$ac_ext <<_ACEOF |
| 6098 | /* confdefs.h. */ |
| 6099 | _ACEOF |
| 6100 | cat confdefs.h >>conftest.$ac_ext |
| 6101 | cat >>conftest.$ac_ext <<_ACEOF |
| 6102 | /* end confdefs.h. */ |
| 6103 | #include <sys/types.h> |
| 6104 | #include <sys/time.h> |
| 6105 | #include <time.h> |
| 6106 | |
| 6107 | int |
| 6108 | main () |
| 6109 | { |
| 6110 | if ((struct tm *) 0) |
| 6111 | return 0; |
| 6112 | ; |
| 6113 | return 0; |
| 6114 | } |
| 6115 | _ACEOF |
| 6116 | rm -f conftest.$ac_objext |
| 6117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6118 | (eval $ac_compile) 2>conftest.er1 |
| 6119 | ac_status=$? |
| 6120 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6121 | rm -f conftest.er1 |
| 6122 | cat conftest.err >&5 |
| 6123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6124 | (exit $ac_status); } && |
| 6125 | { ac_try='test -z "$ac_c_werror_flag" |
| 6126 | || test ! -s conftest.err' |
| 6127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6128 | (eval $ac_try) 2>&5 |
| 6129 | ac_status=$? |
| 6130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6131 | (exit $ac_status); }; } && |
| 6132 | { ac_try='test -s conftest.$ac_objext' |
| 6133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6134 | (eval $ac_try) 2>&5 |
| 6135 | ac_status=$? |
| 6136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6137 | (exit $ac_status); }; }; then |
| 6138 | ac_cv_header_time=yes |
| 6139 | else |
| 6140 | echo "$as_me: failed program was:" >&5 |
| 6141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6142 | |
| 6143 | ac_cv_header_time=no |
| 6144 | fi |
| 6145 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6146 | fi |
| 6147 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 6148 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
| 6149 | if test $ac_cv_header_time = yes; then |
| 6150 | |
| 6151 | cat >>confdefs.h <<\_ACEOF |
| 6152 | #define TIME_WITH_SYS_TIME 1 |
| 6153 | _ACEOF |
| 6154 | |
| 6155 | fi |
| 6156 | |
| 6157 | echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 |
| 6158 | echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6 |
| 6159 | if test "${ac_cv_have_decl_sys_siglist+set}" = set; then |
| 6160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6161 | else |
| 6162 | cat >conftest.$ac_ext <<_ACEOF |
| 6163 | /* confdefs.h. */ |
| 6164 | _ACEOF |
| 6165 | cat confdefs.h >>conftest.$ac_ext |
| 6166 | cat >>conftest.$ac_ext <<_ACEOF |
| 6167 | /* end confdefs.h. */ |
| 6168 | $ac_includes_default |
| 6169 | int |
| 6170 | main () |
| 6171 | { |
| 6172 | #ifndef sys_siglist |
| 6173 | char *p = (char *) sys_siglist; |
| 6174 | #endif |
| 6175 | |
| 6176 | ; |
| 6177 | return 0; |
| 6178 | } |
| 6179 | _ACEOF |
| 6180 | rm -f conftest.$ac_objext |
| 6181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6182 | (eval $ac_compile) 2>conftest.er1 |
| 6183 | ac_status=$? |
| 6184 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6185 | rm -f conftest.er1 |
| 6186 | cat conftest.err >&5 |
| 6187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6188 | (exit $ac_status); } && |
| 6189 | { ac_try='test -z "$ac_c_werror_flag" |
| 6190 | || test ! -s conftest.err' |
| 6191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6192 | (eval $ac_try) 2>&5 |
| 6193 | ac_status=$? |
| 6194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6195 | (exit $ac_status); }; } && |
| 6196 | { ac_try='test -s conftest.$ac_objext' |
| 6197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6198 | (eval $ac_try) 2>&5 |
| 6199 | ac_status=$? |
| 6200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6201 | (exit $ac_status); }; }; then |
| 6202 | ac_cv_have_decl_sys_siglist=yes |
| 6203 | else |
| 6204 | echo "$as_me: failed program was:" >&5 |
| 6205 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6206 | |
| 6207 | ac_cv_have_decl_sys_siglist=no |
| 6208 | fi |
| 6209 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6210 | fi |
| 6211 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 |
| 6212 | echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6 |
| 6213 | if test $ac_cv_have_decl_sys_siglist = yes; then |
| 6214 | |
| 6215 | cat >>confdefs.h <<_ACEOF |
| 6216 | #define HAVE_DECL_SYS_SIGLIST 1 |
| 6217 | _ACEOF |
| 6218 | |
| 6219 | |
| 6220 | else |
| 6221 | cat >>confdefs.h <<_ACEOF |
| 6222 | #define HAVE_DECL_SYS_SIGLIST 0 |
| 6223 | _ACEOF |
| 6224 | |
| 6225 | |
| 6226 | fi |
| 6227 | |
| 6228 | |
| 6229 | if test $ac_cv_have_decl_sys_siglist != yes; then |
| 6230 | # For Tru64, at least: |
| 6231 | echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5 |
| 6232 | echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6 |
| 6233 | if test "${ac_cv_have_decl___sys_siglist+set}" = set; then |
| 6234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6235 | else |
| 6236 | cat >conftest.$ac_ext <<_ACEOF |
| 6237 | /* confdefs.h. */ |
| 6238 | _ACEOF |
| 6239 | cat confdefs.h >>conftest.$ac_ext |
| 6240 | cat >>conftest.$ac_ext <<_ACEOF |
| 6241 | /* end confdefs.h. */ |
| 6242 | $ac_includes_default |
| 6243 | int |
| 6244 | main () |
| 6245 | { |
| 6246 | #ifndef __sys_siglist |
| 6247 | char *p = (char *) __sys_siglist; |
| 6248 | #endif |
| 6249 | |
| 6250 | ; |
| 6251 | return 0; |
| 6252 | } |
| 6253 | _ACEOF |
| 6254 | rm -f conftest.$ac_objext |
| 6255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6256 | (eval $ac_compile) 2>conftest.er1 |
| 6257 | ac_status=$? |
| 6258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6259 | rm -f conftest.er1 |
| 6260 | cat conftest.err >&5 |
| 6261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6262 | (exit $ac_status); } && |
| 6263 | { ac_try='test -z "$ac_c_werror_flag" |
| 6264 | || test ! -s conftest.err' |
| 6265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6266 | (eval $ac_try) 2>&5 |
| 6267 | ac_status=$? |
| 6268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6269 | (exit $ac_status); }; } && |
| 6270 | { ac_try='test -s conftest.$ac_objext' |
| 6271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6272 | (eval $ac_try) 2>&5 |
| 6273 | ac_status=$? |
| 6274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6275 | (exit $ac_status); }; }; then |
| 6276 | ac_cv_have_decl___sys_siglist=yes |
| 6277 | else |
| 6278 | echo "$as_me: failed program was:" >&5 |
| 6279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6280 | |
| 6281 | ac_cv_have_decl___sys_siglist=no |
| 6282 | fi |
| 6283 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6284 | fi |
| 6285 | echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5 |
| 6286 | echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6 |
| 6287 | if test $ac_cv_have_decl___sys_siglist = yes; then |
| 6288 | |
| 6289 | cat >>confdefs.h <<_ACEOF |
| 6290 | #define HAVE_DECL___SYS_SIGLIST 1 |
| 6291 | _ACEOF |
| 6292 | |
| 6293 | |
| 6294 | else |
| 6295 | cat >>confdefs.h <<_ACEOF |
| 6296 | #define HAVE_DECL___SYS_SIGLIST 0 |
| 6297 | _ACEOF |
| 6298 | |
| 6299 | |
| 6300 | fi |
| 6301 | |
| 6302 | |
| 6303 | if test $ac_cv_have_decl___sys_siglist = yes; then |
| 6304 | |
| 6305 | cat >>confdefs.h <<\_ACEOF |
| 6306 | #define sys_siglist __sys_siglist |
| 6307 | _ACEOF |
| 6308 | |
| 6309 | fi |
| 6310 | fi |
| 6311 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 6312 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
| 6313 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 6314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6315 | else |
| 6316 | cat >conftest.$ac_ext <<_ACEOF |
| 6317 | /* confdefs.h. */ |
| 6318 | _ACEOF |
| 6319 | cat confdefs.h >>conftest.$ac_ext |
| 6320 | cat >>conftest.$ac_ext <<_ACEOF |
| 6321 | /* end confdefs.h. */ |
| 6322 | #include <sys/types.h> |
| 6323 | #include <sys/wait.h> |
| 6324 | #ifndef WEXITSTATUS |
| 6325 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
| 6326 | #endif |
| 6327 | #ifndef WIFEXITED |
| 6328 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 6329 | #endif |
| 6330 | |
| 6331 | int |
| 6332 | main () |
| 6333 | { |
| 6334 | int s; |
| 6335 | wait (&s); |
| 6336 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 6337 | ; |
| 6338 | return 0; |
| 6339 | } |
| 6340 | _ACEOF |
| 6341 | rm -f conftest.$ac_objext |
| 6342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6343 | (eval $ac_compile) 2>conftest.er1 |
| 6344 | ac_status=$? |
| 6345 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6346 | rm -f conftest.er1 |
| 6347 | cat conftest.err >&5 |
| 6348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6349 | (exit $ac_status); } && |
| 6350 | { ac_try='test -z "$ac_c_werror_flag" |
| 6351 | || test ! -s conftest.err' |
| 6352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6353 | (eval $ac_try) 2>&5 |
| 6354 | ac_status=$? |
| 6355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6356 | (exit $ac_status); }; } && |
| 6357 | { ac_try='test -s conftest.$ac_objext' |
| 6358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6359 | (eval $ac_try) 2>&5 |
| 6360 | ac_status=$? |
| 6361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6362 | (exit $ac_status); }; }; then |
| 6363 | ac_cv_header_sys_wait_h=yes |
| 6364 | else |
| 6365 | echo "$as_me: failed program was:" >&5 |
| 6366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6367 | |
| 6368 | ac_cv_header_sys_wait_h=no |
| 6369 | fi |
| 6370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6371 | fi |
| 6372 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 6373 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
| 6374 | if test $ac_cv_header_sys_wait_h = yes; then |
| 6375 | |
| 6376 | cat >>confdefs.h <<\_ACEOF |
| 6377 | #define HAVE_SYS_WAIT_H 1 |
| 6378 | _ACEOF |
| 6379 | |
| 6380 | fi |
| 6381 | |
| 6382 | |
| 6383 | echo "$as_me:$LINENO: checking for struct utimbuf" >&5 |
| 6384 | echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6 |
| 6385 | if test "${emacs_cv_struct_utimbuf+set}" = set; then |
| 6386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6387 | else |
| 6388 | cat >conftest.$ac_ext <<_ACEOF |
| 6389 | /* confdefs.h. */ |
| 6390 | _ACEOF |
| 6391 | cat confdefs.h >>conftest.$ac_ext |
| 6392 | cat >>conftest.$ac_ext <<_ACEOF |
| 6393 | /* end confdefs.h. */ |
| 6394 | #ifdef TIME_WITH_SYS_TIME |
| 6395 | #include <sys/time.h> |
| 6396 | #include <time.h> |
| 6397 | #else |
| 6398 | #ifdef HAVE_SYS_TIME_H |
| 6399 | #include <sys/time.h> |
| 6400 | #else |
| 6401 | #include <time.h> |
| 6402 | #endif |
| 6403 | #endif |
| 6404 | #ifdef HAVE_UTIME_H |
| 6405 | #include <utime.h> |
| 6406 | #endif |
| 6407 | int |
| 6408 | main () |
| 6409 | { |
| 6410 | static struct utimbuf x; x.actime = x.modtime; |
| 6411 | ; |
| 6412 | return 0; |
| 6413 | } |
| 6414 | _ACEOF |
| 6415 | rm -f conftest.$ac_objext |
| 6416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6417 | (eval $ac_compile) 2>conftest.er1 |
| 6418 | ac_status=$? |
| 6419 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6420 | rm -f conftest.er1 |
| 6421 | cat conftest.err >&5 |
| 6422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6423 | (exit $ac_status); } && |
| 6424 | { ac_try='test -z "$ac_c_werror_flag" |
| 6425 | || test ! -s conftest.err' |
| 6426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6427 | (eval $ac_try) 2>&5 |
| 6428 | ac_status=$? |
| 6429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6430 | (exit $ac_status); }; } && |
| 6431 | { ac_try='test -s conftest.$ac_objext' |
| 6432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6433 | (eval $ac_try) 2>&5 |
| 6434 | ac_status=$? |
| 6435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6436 | (exit $ac_status); }; }; then |
| 6437 | emacs_cv_struct_utimbuf=yes |
| 6438 | else |
| 6439 | echo "$as_me: failed program was:" >&5 |
| 6440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6441 | |
| 6442 | emacs_cv_struct_utimbuf=no |
| 6443 | fi |
| 6444 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6445 | fi |
| 6446 | echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5 |
| 6447 | echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6 |
| 6448 | if test $emacs_cv_struct_utimbuf = yes; then |
| 6449 | |
| 6450 | cat >>confdefs.h <<\_ACEOF |
| 6451 | #define HAVE_STRUCT_UTIMBUF 1 |
| 6452 | _ACEOF |
| 6453 | |
| 6454 | fi |
| 6455 | |
| 6456 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 6457 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 6458 | if test "${ac_cv_type_signal+set}" = set; then |
| 6459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6460 | else |
| 6461 | cat >conftest.$ac_ext <<_ACEOF |
| 6462 | /* confdefs.h. */ |
| 6463 | _ACEOF |
| 6464 | cat confdefs.h >>conftest.$ac_ext |
| 6465 | cat >>conftest.$ac_ext <<_ACEOF |
| 6466 | /* end confdefs.h. */ |
| 6467 | #include <sys/types.h> |
| 6468 | #include <signal.h> |
| 6469 | #ifdef signal |
| 6470 | # undef signal |
| 6471 | #endif |
| 6472 | #ifdef __cplusplus |
| 6473 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 6474 | #else |
| 6475 | void (*signal ()) (); |
| 6476 | #endif |
| 6477 | |
| 6478 | int |
| 6479 | main () |
| 6480 | { |
| 6481 | int i; |
| 6482 | ; |
| 6483 | return 0; |
| 6484 | } |
| 6485 | _ACEOF |
| 6486 | rm -f conftest.$ac_objext |
| 6487 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6488 | (eval $ac_compile) 2>conftest.er1 |
| 6489 | ac_status=$? |
| 6490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6491 | rm -f conftest.er1 |
| 6492 | cat conftest.err >&5 |
| 6493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6494 | (exit $ac_status); } && |
| 6495 | { ac_try='test -z "$ac_c_werror_flag" |
| 6496 | || test ! -s conftest.err' |
| 6497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6498 | (eval $ac_try) 2>&5 |
| 6499 | ac_status=$? |
| 6500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6501 | (exit $ac_status); }; } && |
| 6502 | { ac_try='test -s conftest.$ac_objext' |
| 6503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6504 | (eval $ac_try) 2>&5 |
| 6505 | ac_status=$? |
| 6506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6507 | (exit $ac_status); }; }; then |
| 6508 | ac_cv_type_signal=void |
| 6509 | else |
| 6510 | echo "$as_me: failed program was:" >&5 |
| 6511 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6512 | |
| 6513 | ac_cv_type_signal=int |
| 6514 | fi |
| 6515 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6516 | fi |
| 6517 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 6518 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 6519 | |
| 6520 | cat >>confdefs.h <<_ACEOF |
| 6521 | #define RETSIGTYPE $ac_cv_type_signal |
| 6522 | _ACEOF |
| 6523 | |
| 6524 | |
| 6525 | |
| 6526 | echo "$as_me:$LINENO: checking for speed_t" >&5 |
| 6527 | echo $ECHO_N "checking for speed_t... $ECHO_C" >&6 |
| 6528 | if test "${emacs_cv_speed_t+set}" = set; then |
| 6529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6530 | else |
| 6531 | cat >conftest.$ac_ext <<_ACEOF |
| 6532 | /* confdefs.h. */ |
| 6533 | _ACEOF |
| 6534 | cat confdefs.h >>conftest.$ac_ext |
| 6535 | cat >>conftest.$ac_ext <<_ACEOF |
| 6536 | /* end confdefs.h. */ |
| 6537 | #include <termios.h> |
| 6538 | int |
| 6539 | main () |
| 6540 | { |
| 6541 | speed_t x = 1; |
| 6542 | ; |
| 6543 | return 0; |
| 6544 | } |
| 6545 | _ACEOF |
| 6546 | rm -f conftest.$ac_objext |
| 6547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6548 | (eval $ac_compile) 2>conftest.er1 |
| 6549 | ac_status=$? |
| 6550 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6551 | rm -f conftest.er1 |
| 6552 | cat conftest.err >&5 |
| 6553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6554 | (exit $ac_status); } && |
| 6555 | { ac_try='test -z "$ac_c_werror_flag" |
| 6556 | || test ! -s conftest.err' |
| 6557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6558 | (eval $ac_try) 2>&5 |
| 6559 | ac_status=$? |
| 6560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6561 | (exit $ac_status); }; } && |
| 6562 | { ac_try='test -s conftest.$ac_objext' |
| 6563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6564 | (eval $ac_try) 2>&5 |
| 6565 | ac_status=$? |
| 6566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6567 | (exit $ac_status); }; }; then |
| 6568 | emacs_cv_speed_t=yes |
| 6569 | else |
| 6570 | echo "$as_me: failed program was:" >&5 |
| 6571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6572 | |
| 6573 | emacs_cv_speed_t=no |
| 6574 | fi |
| 6575 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6576 | fi |
| 6577 | echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5 |
| 6578 | echo "${ECHO_T}$emacs_cv_speed_t" >&6 |
| 6579 | if test $emacs_cv_speed_t = yes; then |
| 6580 | |
| 6581 | cat >>confdefs.h <<\_ACEOF |
| 6582 | #define HAVE_SPEED_T 1 |
| 6583 | _ACEOF |
| 6584 | |
| 6585 | fi |
| 6586 | |
| 6587 | echo "$as_me:$LINENO: checking for struct timeval" >&5 |
| 6588 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 |
| 6589 | if test "${emacs_cv_struct_timeval+set}" = set; then |
| 6590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6591 | else |
| 6592 | cat >conftest.$ac_ext <<_ACEOF |
| 6593 | /* confdefs.h. */ |
| 6594 | _ACEOF |
| 6595 | cat confdefs.h >>conftest.$ac_ext |
| 6596 | cat >>conftest.$ac_ext <<_ACEOF |
| 6597 | /* end confdefs.h. */ |
| 6598 | #ifdef TIME_WITH_SYS_TIME |
| 6599 | #include <sys/time.h> |
| 6600 | #include <time.h> |
| 6601 | #else |
| 6602 | #ifdef HAVE_SYS_TIME_H |
| 6603 | #include <sys/time.h> |
| 6604 | #else |
| 6605 | #include <time.h> |
| 6606 | #endif |
| 6607 | #endif |
| 6608 | int |
| 6609 | main () |
| 6610 | { |
| 6611 | static struct timeval x; x.tv_sec = x.tv_usec; |
| 6612 | ; |
| 6613 | return 0; |
| 6614 | } |
| 6615 | _ACEOF |
| 6616 | rm -f conftest.$ac_objext |
| 6617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6618 | (eval $ac_compile) 2>conftest.er1 |
| 6619 | ac_status=$? |
| 6620 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6621 | rm -f conftest.er1 |
| 6622 | cat conftest.err >&5 |
| 6623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6624 | (exit $ac_status); } && |
| 6625 | { ac_try='test -z "$ac_c_werror_flag" |
| 6626 | || test ! -s conftest.err' |
| 6627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6628 | (eval $ac_try) 2>&5 |
| 6629 | ac_status=$? |
| 6630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6631 | (exit $ac_status); }; } && |
| 6632 | { ac_try='test -s conftest.$ac_objext' |
| 6633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6634 | (eval $ac_try) 2>&5 |
| 6635 | ac_status=$? |
| 6636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6637 | (exit $ac_status); }; }; then |
| 6638 | emacs_cv_struct_timeval=yes |
| 6639 | else |
| 6640 | echo "$as_me: failed program was:" >&5 |
| 6641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6642 | |
| 6643 | emacs_cv_struct_timeval=no |
| 6644 | fi |
| 6645 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6646 | fi |
| 6647 | echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5 |
| 6648 | echo "${ECHO_T}$emacs_cv_struct_timeval" >&6 |
| 6649 | HAVE_TIMEVAL=$emacs_cv_struct_timeval |
| 6650 | if test $emacs_cv_struct_timeval = yes; then |
| 6651 | |
| 6652 | cat >>confdefs.h <<\_ACEOF |
| 6653 | #define HAVE_TIMEVAL 1 |
| 6654 | _ACEOF |
| 6655 | |
| 6656 | fi |
| 6657 | |
| 6658 | echo "$as_me:$LINENO: checking for struct exception" >&5 |
| 6659 | echo $ECHO_N "checking for struct exception... $ECHO_C" >&6 |
| 6660 | if test "${emacs_cv_struct_exception+set}" = set; then |
| 6661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6662 | else |
| 6663 | cat >conftest.$ac_ext <<_ACEOF |
| 6664 | /* confdefs.h. */ |
| 6665 | _ACEOF |
| 6666 | cat confdefs.h >>conftest.$ac_ext |
| 6667 | cat >>conftest.$ac_ext <<_ACEOF |
| 6668 | /* end confdefs.h. */ |
| 6669 | #include <math.h> |
| 6670 | int |
| 6671 | main () |
| 6672 | { |
| 6673 | static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
| 6674 | ; |
| 6675 | return 0; |
| 6676 | } |
| 6677 | _ACEOF |
| 6678 | rm -f conftest.$ac_objext |
| 6679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6680 | (eval $ac_compile) 2>conftest.er1 |
| 6681 | ac_status=$? |
| 6682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6683 | rm -f conftest.er1 |
| 6684 | cat conftest.err >&5 |
| 6685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6686 | (exit $ac_status); } && |
| 6687 | { ac_try='test -z "$ac_c_werror_flag" |
| 6688 | || test ! -s conftest.err' |
| 6689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6690 | (eval $ac_try) 2>&5 |
| 6691 | ac_status=$? |
| 6692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6693 | (exit $ac_status); }; } && |
| 6694 | { ac_try='test -s conftest.$ac_objext' |
| 6695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6696 | (eval $ac_try) 2>&5 |
| 6697 | ac_status=$? |
| 6698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6699 | (exit $ac_status); }; }; then |
| 6700 | emacs_cv_struct_exception=yes |
| 6701 | else |
| 6702 | echo "$as_me: failed program was:" >&5 |
| 6703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6704 | |
| 6705 | emacs_cv_struct_exception=no |
| 6706 | fi |
| 6707 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6708 | fi |
| 6709 | echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5 |
| 6710 | echo "${ECHO_T}$emacs_cv_struct_exception" >&6 |
| 6711 | HAVE_EXCEPTION=$emacs_cv_struct_exception |
| 6712 | if test $emacs_cv_struct_exception != yes; then |
| 6713 | |
| 6714 | cat >>confdefs.h <<\_ACEOF |
| 6715 | #define NO_MATHERR 1 |
| 6716 | _ACEOF |
| 6717 | |
| 6718 | fi |
| 6719 | |
| 6720 | |
| 6721 | for ac_header in sys/socket.h |
| 6722 | do |
| 6723 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6724 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6725 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6726 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6727 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6729 | fi |
| 6730 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6731 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6732 | else |
| 6733 | # Is the header compilable? |
| 6734 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6735 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 6736 | cat >conftest.$ac_ext <<_ACEOF |
| 6737 | /* confdefs.h. */ |
| 6738 | _ACEOF |
| 6739 | cat confdefs.h >>conftest.$ac_ext |
| 6740 | cat >>conftest.$ac_ext <<_ACEOF |
| 6741 | /* end confdefs.h. */ |
| 6742 | $ac_includes_default |
| 6743 | #include <$ac_header> |
| 6744 | _ACEOF |
| 6745 | rm -f conftest.$ac_objext |
| 6746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6747 | (eval $ac_compile) 2>conftest.er1 |
| 6748 | ac_status=$? |
| 6749 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6750 | rm -f conftest.er1 |
| 6751 | cat conftest.err >&5 |
| 6752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6753 | (exit $ac_status); } && |
| 6754 | { ac_try='test -z "$ac_c_werror_flag" |
| 6755 | || test ! -s conftest.err' |
| 6756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6757 | (eval $ac_try) 2>&5 |
| 6758 | ac_status=$? |
| 6759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6760 | (exit $ac_status); }; } && |
| 6761 | { ac_try='test -s conftest.$ac_objext' |
| 6762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6763 | (eval $ac_try) 2>&5 |
| 6764 | ac_status=$? |
| 6765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6766 | (exit $ac_status); }; }; then |
| 6767 | ac_header_compiler=yes |
| 6768 | else |
| 6769 | echo "$as_me: failed program was:" >&5 |
| 6770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6771 | |
| 6772 | ac_header_compiler=no |
| 6773 | fi |
| 6774 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6775 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6776 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6777 | |
| 6778 | # Is the header present? |
| 6779 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6780 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 6781 | cat >conftest.$ac_ext <<_ACEOF |
| 6782 | /* confdefs.h. */ |
| 6783 | _ACEOF |
| 6784 | cat confdefs.h >>conftest.$ac_ext |
| 6785 | cat >>conftest.$ac_ext <<_ACEOF |
| 6786 | /* end confdefs.h. */ |
| 6787 | #include <$ac_header> |
| 6788 | _ACEOF |
| 6789 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6790 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6791 | ac_status=$? |
| 6792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6793 | rm -f conftest.er1 |
| 6794 | cat conftest.err >&5 |
| 6795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6796 | (exit $ac_status); } >/dev/null; then |
| 6797 | if test -s conftest.err; then |
| 6798 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6799 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6800 | else |
| 6801 | ac_cpp_err= |
| 6802 | fi |
| 6803 | else |
| 6804 | ac_cpp_err=yes |
| 6805 | fi |
| 6806 | if test -z "$ac_cpp_err"; then |
| 6807 | ac_header_preproc=yes |
| 6808 | else |
| 6809 | echo "$as_me: failed program was:" >&5 |
| 6810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6811 | |
| 6812 | ac_header_preproc=no |
| 6813 | fi |
| 6814 | rm -f conftest.err conftest.$ac_ext |
| 6815 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6816 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6817 | |
| 6818 | # So? What about this header? |
| 6819 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6820 | yes:no: ) |
| 6821 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6822 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6823 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6824 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6825 | ac_header_preproc=yes |
| 6826 | ;; |
| 6827 | no:yes:* ) |
| 6828 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6829 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6830 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6831 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6832 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6833 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6834 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6835 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6836 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6837 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6838 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6839 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 6840 | ( |
| 6841 | cat <<\_ASBOX |
| 6842 | ## ------------------------------------------ ## |
| 6843 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 6844 | ## ------------------------------------------ ## |
| 6845 | _ASBOX |
| 6846 | ) | |
| 6847 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6848 | ;; |
| 6849 | esac |
| 6850 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6851 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6852 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6854 | else |
| 6855 | eval "$as_ac_Header=\$ac_header_preproc" |
| 6856 | fi |
| 6857 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6858 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6859 | |
| 6860 | fi |
| 6861 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6862 | cat >>confdefs.h <<_ACEOF |
| 6863 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6864 | _ACEOF |
| 6865 | |
| 6866 | fi |
| 6867 | |
| 6868 | done |
| 6869 | |
| 6870 | |
| 6871 | for ac_header in net/if.h |
| 6872 | do |
| 6873 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6874 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6875 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6876 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6878 | else |
| 6879 | cat >conftest.$ac_ext <<_ACEOF |
| 6880 | /* confdefs.h. */ |
| 6881 | _ACEOF |
| 6882 | cat confdefs.h >>conftest.$ac_ext |
| 6883 | cat >>conftest.$ac_ext <<_ACEOF |
| 6884 | /* end confdefs.h. */ |
| 6885 | $ac_includes_default |
| 6886 | #if HAVE_SYS_SOCKET_H |
| 6887 | #include <sys/socket.h> |
| 6888 | #endif |
| 6889 | |
| 6890 | #include <$ac_header> |
| 6891 | _ACEOF |
| 6892 | rm -f conftest.$ac_objext |
| 6893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6894 | (eval $ac_compile) 2>conftest.er1 |
| 6895 | ac_status=$? |
| 6896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6897 | rm -f conftest.er1 |
| 6898 | cat conftest.err >&5 |
| 6899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6900 | (exit $ac_status); } && |
| 6901 | { ac_try='test -z "$ac_c_werror_flag" |
| 6902 | || test ! -s conftest.err' |
| 6903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6904 | (eval $ac_try) 2>&5 |
| 6905 | ac_status=$? |
| 6906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6907 | (exit $ac_status); }; } && |
| 6908 | { ac_try='test -s conftest.$ac_objext' |
| 6909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6910 | (eval $ac_try) 2>&5 |
| 6911 | ac_status=$? |
| 6912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6913 | (exit $ac_status); }; }; then |
| 6914 | eval "$as_ac_Header=yes" |
| 6915 | else |
| 6916 | echo "$as_me: failed program was:" >&5 |
| 6917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6918 | |
| 6919 | eval "$as_ac_Header=no" |
| 6920 | fi |
| 6921 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6922 | fi |
| 6923 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6924 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6925 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6926 | cat >>confdefs.h <<_ACEOF |
| 6927 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6928 | _ACEOF |
| 6929 | |
| 6930 | fi |
| 6931 | |
| 6932 | done |
| 6933 | |
| 6934 | |
| 6935 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 6936 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 6937 | if test "${ac_cv_struct_tm+set}" = set; then |
| 6938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6939 | else |
| 6940 | cat >conftest.$ac_ext <<_ACEOF |
| 6941 | /* confdefs.h. */ |
| 6942 | _ACEOF |
| 6943 | cat confdefs.h >>conftest.$ac_ext |
| 6944 | cat >>conftest.$ac_ext <<_ACEOF |
| 6945 | /* end confdefs.h. */ |
| 6946 | #include <sys/types.h> |
| 6947 | #include <time.h> |
| 6948 | |
| 6949 | int |
| 6950 | main () |
| 6951 | { |
| 6952 | struct tm *tp; tp->tm_sec; |
| 6953 | ; |
| 6954 | return 0; |
| 6955 | } |
| 6956 | _ACEOF |
| 6957 | rm -f conftest.$ac_objext |
| 6958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6959 | (eval $ac_compile) 2>conftest.er1 |
| 6960 | ac_status=$? |
| 6961 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6962 | rm -f conftest.er1 |
| 6963 | cat conftest.err >&5 |
| 6964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6965 | (exit $ac_status); } && |
| 6966 | { ac_try='test -z "$ac_c_werror_flag" |
| 6967 | || test ! -s conftest.err' |
| 6968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6969 | (eval $ac_try) 2>&5 |
| 6970 | ac_status=$? |
| 6971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6972 | (exit $ac_status); }; } && |
| 6973 | { ac_try='test -s conftest.$ac_objext' |
| 6974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6975 | (eval $ac_try) 2>&5 |
| 6976 | ac_status=$? |
| 6977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6978 | (exit $ac_status); }; }; then |
| 6979 | ac_cv_struct_tm=time.h |
| 6980 | else |
| 6981 | echo "$as_me: failed program was:" >&5 |
| 6982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6983 | |
| 6984 | ac_cv_struct_tm=sys/time.h |
| 6985 | fi |
| 6986 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6987 | fi |
| 6988 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 6989 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
| 6990 | if test $ac_cv_struct_tm = sys/time.h; then |
| 6991 | |
| 6992 | cat >>confdefs.h <<\_ACEOF |
| 6993 | #define TM_IN_SYS_TIME 1 |
| 6994 | _ACEOF |
| 6995 | |
| 6996 | fi |
| 6997 | |
| 6998 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 6999 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 7000 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 7001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7002 | else |
| 7003 | cat >conftest.$ac_ext <<_ACEOF |
| 7004 | /* confdefs.h. */ |
| 7005 | _ACEOF |
| 7006 | cat confdefs.h >>conftest.$ac_ext |
| 7007 | cat >>conftest.$ac_ext <<_ACEOF |
| 7008 | /* end confdefs.h. */ |
| 7009 | #include <sys/types.h> |
| 7010 | #include <$ac_cv_struct_tm> |
| 7011 | |
| 7012 | |
| 7013 | int |
| 7014 | main () |
| 7015 | { |
| 7016 | static struct tm ac_aggr; |
| 7017 | if (ac_aggr.tm_zone) |
| 7018 | return 0; |
| 7019 | ; |
| 7020 | return 0; |
| 7021 | } |
| 7022 | _ACEOF |
| 7023 | rm -f conftest.$ac_objext |
| 7024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7025 | (eval $ac_compile) 2>conftest.er1 |
| 7026 | ac_status=$? |
| 7027 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7028 | rm -f conftest.er1 |
| 7029 | cat conftest.err >&5 |
| 7030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7031 | (exit $ac_status); } && |
| 7032 | { ac_try='test -z "$ac_c_werror_flag" |
| 7033 | || test ! -s conftest.err' |
| 7034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7035 | (eval $ac_try) 2>&5 |
| 7036 | ac_status=$? |
| 7037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7038 | (exit $ac_status); }; } && |
| 7039 | { ac_try='test -s conftest.$ac_objext' |
| 7040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7041 | (eval $ac_try) 2>&5 |
| 7042 | ac_status=$? |
| 7043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7044 | (exit $ac_status); }; }; then |
| 7045 | ac_cv_member_struct_tm_tm_zone=yes |
| 7046 | else |
| 7047 | echo "$as_me: failed program was:" >&5 |
| 7048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7049 | |
| 7050 | cat >conftest.$ac_ext <<_ACEOF |
| 7051 | /* confdefs.h. */ |
| 7052 | _ACEOF |
| 7053 | cat confdefs.h >>conftest.$ac_ext |
| 7054 | cat >>conftest.$ac_ext <<_ACEOF |
| 7055 | /* end confdefs.h. */ |
| 7056 | #include <sys/types.h> |
| 7057 | #include <$ac_cv_struct_tm> |
| 7058 | |
| 7059 | |
| 7060 | int |
| 7061 | main () |
| 7062 | { |
| 7063 | static struct tm ac_aggr; |
| 7064 | if (sizeof ac_aggr.tm_zone) |
| 7065 | return 0; |
| 7066 | ; |
| 7067 | return 0; |
| 7068 | } |
| 7069 | _ACEOF |
| 7070 | rm -f conftest.$ac_objext |
| 7071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7072 | (eval $ac_compile) 2>conftest.er1 |
| 7073 | ac_status=$? |
| 7074 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7075 | rm -f conftest.er1 |
| 7076 | cat conftest.err >&5 |
| 7077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7078 | (exit $ac_status); } && |
| 7079 | { ac_try='test -z "$ac_c_werror_flag" |
| 7080 | || test ! -s conftest.err' |
| 7081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7082 | (eval $ac_try) 2>&5 |
| 7083 | ac_status=$? |
| 7084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7085 | (exit $ac_status); }; } && |
| 7086 | { ac_try='test -s conftest.$ac_objext' |
| 7087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7088 | (eval $ac_try) 2>&5 |
| 7089 | ac_status=$? |
| 7090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7091 | (exit $ac_status); }; }; then |
| 7092 | ac_cv_member_struct_tm_tm_zone=yes |
| 7093 | else |
| 7094 | echo "$as_me: failed program was:" >&5 |
| 7095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7096 | |
| 7097 | ac_cv_member_struct_tm_tm_zone=no |
| 7098 | fi |
| 7099 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7100 | fi |
| 7101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7102 | fi |
| 7103 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 7104 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 7105 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 7106 | |
| 7107 | cat >>confdefs.h <<_ACEOF |
| 7108 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 7109 | _ACEOF |
| 7110 | |
| 7111 | |
| 7112 | fi |
| 7113 | |
| 7114 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 7115 | |
| 7116 | cat >>confdefs.h <<\_ACEOF |
| 7117 | #define HAVE_TM_ZONE 1 |
| 7118 | _ACEOF |
| 7119 | |
| 7120 | else |
| 7121 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 7122 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 7123 | if test "${ac_cv_var_tzname+set}" = set; then |
| 7124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7125 | else |
| 7126 | cat >conftest.$ac_ext <<_ACEOF |
| 7127 | /* confdefs.h. */ |
| 7128 | _ACEOF |
| 7129 | cat confdefs.h >>conftest.$ac_ext |
| 7130 | cat >>conftest.$ac_ext <<_ACEOF |
| 7131 | /* end confdefs.h. */ |
| 7132 | #include <time.h> |
| 7133 | #ifndef tzname /* For SGI. */ |
| 7134 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
| 7135 | #endif |
| 7136 | |
| 7137 | int |
| 7138 | main () |
| 7139 | { |
| 7140 | atoi(*tzname); |
| 7141 | ; |
| 7142 | return 0; |
| 7143 | } |
| 7144 | _ACEOF |
| 7145 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7147 | (eval $ac_link) 2>conftest.er1 |
| 7148 | ac_status=$? |
| 7149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7150 | rm -f conftest.er1 |
| 7151 | cat conftest.err >&5 |
| 7152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7153 | (exit $ac_status); } && |
| 7154 | { ac_try='test -z "$ac_c_werror_flag" |
| 7155 | || test ! -s conftest.err' |
| 7156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7157 | (eval $ac_try) 2>&5 |
| 7158 | ac_status=$? |
| 7159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7160 | (exit $ac_status); }; } && |
| 7161 | { ac_try='test -s conftest$ac_exeext' |
| 7162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7163 | (eval $ac_try) 2>&5 |
| 7164 | ac_status=$? |
| 7165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7166 | (exit $ac_status); }; }; then |
| 7167 | ac_cv_var_tzname=yes |
| 7168 | else |
| 7169 | echo "$as_me: failed program was:" >&5 |
| 7170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7171 | |
| 7172 | ac_cv_var_tzname=no |
| 7173 | fi |
| 7174 | rm -f conftest.err conftest.$ac_objext \ |
| 7175 | conftest$ac_exeext conftest.$ac_ext |
| 7176 | fi |
| 7177 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 7178 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
| 7179 | if test $ac_cv_var_tzname = yes; then |
| 7180 | |
| 7181 | cat >>confdefs.h <<\_ACEOF |
| 7182 | #define HAVE_TZNAME 1 |
| 7183 | _ACEOF |
| 7184 | |
| 7185 | fi |
| 7186 | fi |
| 7187 | |
| 7188 | echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5 |
| 7189 | echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6 |
| 7190 | if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then |
| 7191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7192 | else |
| 7193 | cat >conftest.$ac_ext <<_ACEOF |
| 7194 | /* confdefs.h. */ |
| 7195 | _ACEOF |
| 7196 | cat confdefs.h >>conftest.$ac_ext |
| 7197 | cat >>conftest.$ac_ext <<_ACEOF |
| 7198 | /* end confdefs.h. */ |
| 7199 | #include <time.h> |
| 7200 | |
| 7201 | int |
| 7202 | main () |
| 7203 | { |
| 7204 | static struct tm ac_aggr; |
| 7205 | if (ac_aggr.tm_gmtoff) |
| 7206 | return 0; |
| 7207 | ; |
| 7208 | return 0; |
| 7209 | } |
| 7210 | _ACEOF |
| 7211 | rm -f conftest.$ac_objext |
| 7212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7213 | (eval $ac_compile) 2>conftest.er1 |
| 7214 | ac_status=$? |
| 7215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7216 | rm -f conftest.er1 |
| 7217 | cat conftest.err >&5 |
| 7218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7219 | (exit $ac_status); } && |
| 7220 | { ac_try='test -z "$ac_c_werror_flag" |
| 7221 | || test ! -s conftest.err' |
| 7222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7223 | (eval $ac_try) 2>&5 |
| 7224 | ac_status=$? |
| 7225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7226 | (exit $ac_status); }; } && |
| 7227 | { ac_try='test -s conftest.$ac_objext' |
| 7228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7229 | (eval $ac_try) 2>&5 |
| 7230 | ac_status=$? |
| 7231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7232 | (exit $ac_status); }; }; then |
| 7233 | ac_cv_member_struct_tm_tm_gmtoff=yes |
| 7234 | else |
| 7235 | echo "$as_me: failed program was:" >&5 |
| 7236 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7237 | |
| 7238 | cat >conftest.$ac_ext <<_ACEOF |
| 7239 | /* confdefs.h. */ |
| 7240 | _ACEOF |
| 7241 | cat confdefs.h >>conftest.$ac_ext |
| 7242 | cat >>conftest.$ac_ext <<_ACEOF |
| 7243 | /* end confdefs.h. */ |
| 7244 | #include <time.h> |
| 7245 | |
| 7246 | int |
| 7247 | main () |
| 7248 | { |
| 7249 | static struct tm ac_aggr; |
| 7250 | if (sizeof ac_aggr.tm_gmtoff) |
| 7251 | return 0; |
| 7252 | ; |
| 7253 | return 0; |
| 7254 | } |
| 7255 | _ACEOF |
| 7256 | rm -f conftest.$ac_objext |
| 7257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7258 | (eval $ac_compile) 2>conftest.er1 |
| 7259 | ac_status=$? |
| 7260 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7261 | rm -f conftest.er1 |
| 7262 | cat conftest.err >&5 |
| 7263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7264 | (exit $ac_status); } && |
| 7265 | { ac_try='test -z "$ac_c_werror_flag" |
| 7266 | || test ! -s conftest.err' |
| 7267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7268 | (eval $ac_try) 2>&5 |
| 7269 | ac_status=$? |
| 7270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7271 | (exit $ac_status); }; } && |
| 7272 | { ac_try='test -s conftest.$ac_objext' |
| 7273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7274 | (eval $ac_try) 2>&5 |
| 7275 | ac_status=$? |
| 7276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7277 | (exit $ac_status); }; }; then |
| 7278 | ac_cv_member_struct_tm_tm_gmtoff=yes |
| 7279 | else |
| 7280 | echo "$as_me: failed program was:" >&5 |
| 7281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7282 | |
| 7283 | ac_cv_member_struct_tm_tm_gmtoff=no |
| 7284 | fi |
| 7285 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7286 | fi |
| 7287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7288 | fi |
| 7289 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5 |
| 7290 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6 |
| 7291 | if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then |
| 7292 | |
| 7293 | cat >>confdefs.h <<\_ACEOF |
| 7294 | #define HAVE_TM_GMTOFF 1 |
| 7295 | _ACEOF |
| 7296 | |
| 7297 | fi |
| 7298 | |
| 7299 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5 |
| 7300 | echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6 |
| 7301 | if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then |
| 7302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7303 | else |
| 7304 | cat >conftest.$ac_ext <<_ACEOF |
| 7305 | /* confdefs.h. */ |
| 7306 | _ACEOF |
| 7307 | cat confdefs.h >>conftest.$ac_ext |
| 7308 | cat >>conftest.$ac_ext <<_ACEOF |
| 7309 | /* end confdefs.h. */ |
| 7310 | $ac_includes_default |
| 7311 | #if HAVE_SYS_SOCKET_H |
| 7312 | #include <sys/socket.h> |
| 7313 | #endif |
| 7314 | #if HAVE_NET_IF_H |
| 7315 | #include <net/if.h> |
| 7316 | #endif |
| 7317 | |
| 7318 | int |
| 7319 | main () |
| 7320 | { |
| 7321 | static struct ifreq ac_aggr; |
| 7322 | if (ac_aggr.ifr_flags) |
| 7323 | return 0; |
| 7324 | ; |
| 7325 | return 0; |
| 7326 | } |
| 7327 | _ACEOF |
| 7328 | rm -f conftest.$ac_objext |
| 7329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7330 | (eval $ac_compile) 2>conftest.er1 |
| 7331 | ac_status=$? |
| 7332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7333 | rm -f conftest.er1 |
| 7334 | cat conftest.err >&5 |
| 7335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7336 | (exit $ac_status); } && |
| 7337 | { ac_try='test -z "$ac_c_werror_flag" |
| 7338 | || test ! -s conftest.err' |
| 7339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7340 | (eval $ac_try) 2>&5 |
| 7341 | ac_status=$? |
| 7342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7343 | (exit $ac_status); }; } && |
| 7344 | { ac_try='test -s conftest.$ac_objext' |
| 7345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7346 | (eval $ac_try) 2>&5 |
| 7347 | ac_status=$? |
| 7348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7349 | (exit $ac_status); }; }; then |
| 7350 | ac_cv_member_struct_ifreq_ifr_flags=yes |
| 7351 | else |
| 7352 | echo "$as_me: failed program was:" >&5 |
| 7353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7354 | |
| 7355 | cat >conftest.$ac_ext <<_ACEOF |
| 7356 | /* confdefs.h. */ |
| 7357 | _ACEOF |
| 7358 | cat confdefs.h >>conftest.$ac_ext |
| 7359 | cat >>conftest.$ac_ext <<_ACEOF |
| 7360 | /* end confdefs.h. */ |
| 7361 | $ac_includes_default |
| 7362 | #if HAVE_SYS_SOCKET_H |
| 7363 | #include <sys/socket.h> |
| 7364 | #endif |
| 7365 | #if HAVE_NET_IF_H |
| 7366 | #include <net/if.h> |
| 7367 | #endif |
| 7368 | |
| 7369 | int |
| 7370 | main () |
| 7371 | { |
| 7372 | static struct ifreq ac_aggr; |
| 7373 | if (sizeof ac_aggr.ifr_flags) |
| 7374 | return 0; |
| 7375 | ; |
| 7376 | return 0; |
| 7377 | } |
| 7378 | _ACEOF |
| 7379 | rm -f conftest.$ac_objext |
| 7380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7381 | (eval $ac_compile) 2>conftest.er1 |
| 7382 | ac_status=$? |
| 7383 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7384 | rm -f conftest.er1 |
| 7385 | cat conftest.err >&5 |
| 7386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7387 | (exit $ac_status); } && |
| 7388 | { ac_try='test -z "$ac_c_werror_flag" |
| 7389 | || test ! -s conftest.err' |
| 7390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7391 | (eval $ac_try) 2>&5 |
| 7392 | ac_status=$? |
| 7393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7394 | (exit $ac_status); }; } && |
| 7395 | { ac_try='test -s conftest.$ac_objext' |
| 7396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7397 | (eval $ac_try) 2>&5 |
| 7398 | ac_status=$? |
| 7399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7400 | (exit $ac_status); }; }; then |
| 7401 | ac_cv_member_struct_ifreq_ifr_flags=yes |
| 7402 | else |
| 7403 | echo "$as_me: failed program was:" >&5 |
| 7404 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7405 | |
| 7406 | ac_cv_member_struct_ifreq_ifr_flags=no |
| 7407 | fi |
| 7408 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7409 | fi |
| 7410 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7411 | fi |
| 7412 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5 |
| 7413 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6 |
| 7414 | if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then |
| 7415 | |
| 7416 | cat >>confdefs.h <<_ACEOF |
| 7417 | #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 |
| 7418 | _ACEOF |
| 7419 | |
| 7420 | |
| 7421 | fi |
| 7422 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5 |
| 7423 | echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6 |
| 7424 | if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then |
| 7425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7426 | else |
| 7427 | cat >conftest.$ac_ext <<_ACEOF |
| 7428 | /* confdefs.h. */ |
| 7429 | _ACEOF |
| 7430 | cat confdefs.h >>conftest.$ac_ext |
| 7431 | cat >>conftest.$ac_ext <<_ACEOF |
| 7432 | /* end confdefs.h. */ |
| 7433 | $ac_includes_default |
| 7434 | #if HAVE_SYS_SOCKET_H |
| 7435 | #include <sys/socket.h> |
| 7436 | #endif |
| 7437 | #if HAVE_NET_IF_H |
| 7438 | #include <net/if.h> |
| 7439 | #endif |
| 7440 | |
| 7441 | int |
| 7442 | main () |
| 7443 | { |
| 7444 | static struct ifreq ac_aggr; |
| 7445 | if (ac_aggr.ifr_hwaddr) |
| 7446 | return 0; |
| 7447 | ; |
| 7448 | return 0; |
| 7449 | } |
| 7450 | _ACEOF |
| 7451 | rm -f conftest.$ac_objext |
| 7452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7453 | (eval $ac_compile) 2>conftest.er1 |
| 7454 | ac_status=$? |
| 7455 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7456 | rm -f conftest.er1 |
| 7457 | cat conftest.err >&5 |
| 7458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7459 | (exit $ac_status); } && |
| 7460 | { ac_try='test -z "$ac_c_werror_flag" |
| 7461 | || test ! -s conftest.err' |
| 7462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7463 | (eval $ac_try) 2>&5 |
| 7464 | ac_status=$? |
| 7465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7466 | (exit $ac_status); }; } && |
| 7467 | { ac_try='test -s conftest.$ac_objext' |
| 7468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7469 | (eval $ac_try) 2>&5 |
| 7470 | ac_status=$? |
| 7471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7472 | (exit $ac_status); }; }; then |
| 7473 | ac_cv_member_struct_ifreq_ifr_hwaddr=yes |
| 7474 | else |
| 7475 | echo "$as_me: failed program was:" >&5 |
| 7476 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7477 | |
| 7478 | cat >conftest.$ac_ext <<_ACEOF |
| 7479 | /* confdefs.h. */ |
| 7480 | _ACEOF |
| 7481 | cat confdefs.h >>conftest.$ac_ext |
| 7482 | cat >>conftest.$ac_ext <<_ACEOF |
| 7483 | /* end confdefs.h. */ |
| 7484 | $ac_includes_default |
| 7485 | #if HAVE_SYS_SOCKET_H |
| 7486 | #include <sys/socket.h> |
| 7487 | #endif |
| 7488 | #if HAVE_NET_IF_H |
| 7489 | #include <net/if.h> |
| 7490 | #endif |
| 7491 | |
| 7492 | int |
| 7493 | main () |
| 7494 | { |
| 7495 | static struct ifreq ac_aggr; |
| 7496 | if (sizeof ac_aggr.ifr_hwaddr) |
| 7497 | return 0; |
| 7498 | ; |
| 7499 | return 0; |
| 7500 | } |
| 7501 | _ACEOF |
| 7502 | rm -f conftest.$ac_objext |
| 7503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7504 | (eval $ac_compile) 2>conftest.er1 |
| 7505 | ac_status=$? |
| 7506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7507 | rm -f conftest.er1 |
| 7508 | cat conftest.err >&5 |
| 7509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7510 | (exit $ac_status); } && |
| 7511 | { ac_try='test -z "$ac_c_werror_flag" |
| 7512 | || test ! -s conftest.err' |
| 7513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7514 | (eval $ac_try) 2>&5 |
| 7515 | ac_status=$? |
| 7516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7517 | (exit $ac_status); }; } && |
| 7518 | { ac_try='test -s conftest.$ac_objext' |
| 7519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7520 | (eval $ac_try) 2>&5 |
| 7521 | ac_status=$? |
| 7522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7523 | (exit $ac_status); }; }; then |
| 7524 | ac_cv_member_struct_ifreq_ifr_hwaddr=yes |
| 7525 | else |
| 7526 | echo "$as_me: failed program was:" >&5 |
| 7527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7528 | |
| 7529 | ac_cv_member_struct_ifreq_ifr_hwaddr=no |
| 7530 | fi |
| 7531 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7532 | fi |
| 7533 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7534 | fi |
| 7535 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5 |
| 7536 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6 |
| 7537 | if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then |
| 7538 | |
| 7539 | cat >>confdefs.h <<_ACEOF |
| 7540 | #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 |
| 7541 | _ACEOF |
| 7542 | |
| 7543 | |
| 7544 | fi |
| 7545 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5 |
| 7546 | echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6 |
| 7547 | if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then |
| 7548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7549 | else |
| 7550 | cat >conftest.$ac_ext <<_ACEOF |
| 7551 | /* confdefs.h. */ |
| 7552 | _ACEOF |
| 7553 | cat confdefs.h >>conftest.$ac_ext |
| 7554 | cat >>conftest.$ac_ext <<_ACEOF |
| 7555 | /* end confdefs.h. */ |
| 7556 | $ac_includes_default |
| 7557 | #if HAVE_SYS_SOCKET_H |
| 7558 | #include <sys/socket.h> |
| 7559 | #endif |
| 7560 | #if HAVE_NET_IF_H |
| 7561 | #include <net/if.h> |
| 7562 | #endif |
| 7563 | |
| 7564 | int |
| 7565 | main () |
| 7566 | { |
| 7567 | static struct ifreq ac_aggr; |
| 7568 | if (ac_aggr.ifr_netmask) |
| 7569 | return 0; |
| 7570 | ; |
| 7571 | return 0; |
| 7572 | } |
| 7573 | _ACEOF |
| 7574 | rm -f conftest.$ac_objext |
| 7575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7576 | (eval $ac_compile) 2>conftest.er1 |
| 7577 | ac_status=$? |
| 7578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7579 | rm -f conftest.er1 |
| 7580 | cat conftest.err >&5 |
| 7581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7582 | (exit $ac_status); } && |
| 7583 | { ac_try='test -z "$ac_c_werror_flag" |
| 7584 | || test ! -s conftest.err' |
| 7585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7586 | (eval $ac_try) 2>&5 |
| 7587 | ac_status=$? |
| 7588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7589 | (exit $ac_status); }; } && |
| 7590 | { ac_try='test -s conftest.$ac_objext' |
| 7591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7592 | (eval $ac_try) 2>&5 |
| 7593 | ac_status=$? |
| 7594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7595 | (exit $ac_status); }; }; then |
| 7596 | ac_cv_member_struct_ifreq_ifr_netmask=yes |
| 7597 | else |
| 7598 | echo "$as_me: failed program was:" >&5 |
| 7599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7600 | |
| 7601 | cat >conftest.$ac_ext <<_ACEOF |
| 7602 | /* confdefs.h. */ |
| 7603 | _ACEOF |
| 7604 | cat confdefs.h >>conftest.$ac_ext |
| 7605 | cat >>conftest.$ac_ext <<_ACEOF |
| 7606 | /* end confdefs.h. */ |
| 7607 | $ac_includes_default |
| 7608 | #if HAVE_SYS_SOCKET_H |
| 7609 | #include <sys/socket.h> |
| 7610 | #endif |
| 7611 | #if HAVE_NET_IF_H |
| 7612 | #include <net/if.h> |
| 7613 | #endif |
| 7614 | |
| 7615 | int |
| 7616 | main () |
| 7617 | { |
| 7618 | static struct ifreq ac_aggr; |
| 7619 | if (sizeof ac_aggr.ifr_netmask) |
| 7620 | return 0; |
| 7621 | ; |
| 7622 | return 0; |
| 7623 | } |
| 7624 | _ACEOF |
| 7625 | rm -f conftest.$ac_objext |
| 7626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7627 | (eval $ac_compile) 2>conftest.er1 |
| 7628 | ac_status=$? |
| 7629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7630 | rm -f conftest.er1 |
| 7631 | cat conftest.err >&5 |
| 7632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7633 | (exit $ac_status); } && |
| 7634 | { ac_try='test -z "$ac_c_werror_flag" |
| 7635 | || test ! -s conftest.err' |
| 7636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7637 | (eval $ac_try) 2>&5 |
| 7638 | ac_status=$? |
| 7639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7640 | (exit $ac_status); }; } && |
| 7641 | { ac_try='test -s conftest.$ac_objext' |
| 7642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7643 | (eval $ac_try) 2>&5 |
| 7644 | ac_status=$? |
| 7645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7646 | (exit $ac_status); }; }; then |
| 7647 | ac_cv_member_struct_ifreq_ifr_netmask=yes |
| 7648 | else |
| 7649 | echo "$as_me: failed program was:" >&5 |
| 7650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7651 | |
| 7652 | ac_cv_member_struct_ifreq_ifr_netmask=no |
| 7653 | fi |
| 7654 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7655 | fi |
| 7656 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7657 | fi |
| 7658 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5 |
| 7659 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6 |
| 7660 | if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then |
| 7661 | |
| 7662 | cat >>confdefs.h <<_ACEOF |
| 7663 | #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 |
| 7664 | _ACEOF |
| 7665 | |
| 7666 | |
| 7667 | fi |
| 7668 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5 |
| 7669 | echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6 |
| 7670 | if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then |
| 7671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7672 | else |
| 7673 | cat >conftest.$ac_ext <<_ACEOF |
| 7674 | /* confdefs.h. */ |
| 7675 | _ACEOF |
| 7676 | cat confdefs.h >>conftest.$ac_ext |
| 7677 | cat >>conftest.$ac_ext <<_ACEOF |
| 7678 | /* end confdefs.h. */ |
| 7679 | $ac_includes_default |
| 7680 | #if HAVE_SYS_SOCKET_H |
| 7681 | #include <sys/socket.h> |
| 7682 | #endif |
| 7683 | #if HAVE_NET_IF_H |
| 7684 | #include <net/if.h> |
| 7685 | #endif |
| 7686 | |
| 7687 | int |
| 7688 | main () |
| 7689 | { |
| 7690 | static struct ifreq ac_aggr; |
| 7691 | if (ac_aggr.ifr_broadaddr) |
| 7692 | return 0; |
| 7693 | ; |
| 7694 | return 0; |
| 7695 | } |
| 7696 | _ACEOF |
| 7697 | rm -f conftest.$ac_objext |
| 7698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7699 | (eval $ac_compile) 2>conftest.er1 |
| 7700 | ac_status=$? |
| 7701 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7702 | rm -f conftest.er1 |
| 7703 | cat conftest.err >&5 |
| 7704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7705 | (exit $ac_status); } && |
| 7706 | { ac_try='test -z "$ac_c_werror_flag" |
| 7707 | || test ! -s conftest.err' |
| 7708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7709 | (eval $ac_try) 2>&5 |
| 7710 | ac_status=$? |
| 7711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7712 | (exit $ac_status); }; } && |
| 7713 | { ac_try='test -s conftest.$ac_objext' |
| 7714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7715 | (eval $ac_try) 2>&5 |
| 7716 | ac_status=$? |
| 7717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7718 | (exit $ac_status); }; }; then |
| 7719 | ac_cv_member_struct_ifreq_ifr_broadaddr=yes |
| 7720 | else |
| 7721 | echo "$as_me: failed program was:" >&5 |
| 7722 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7723 | |
| 7724 | cat >conftest.$ac_ext <<_ACEOF |
| 7725 | /* confdefs.h. */ |
| 7726 | _ACEOF |
| 7727 | cat confdefs.h >>conftest.$ac_ext |
| 7728 | cat >>conftest.$ac_ext <<_ACEOF |
| 7729 | /* end confdefs.h. */ |
| 7730 | $ac_includes_default |
| 7731 | #if HAVE_SYS_SOCKET_H |
| 7732 | #include <sys/socket.h> |
| 7733 | #endif |
| 7734 | #if HAVE_NET_IF_H |
| 7735 | #include <net/if.h> |
| 7736 | #endif |
| 7737 | |
| 7738 | int |
| 7739 | main () |
| 7740 | { |
| 7741 | static struct ifreq ac_aggr; |
| 7742 | if (sizeof ac_aggr.ifr_broadaddr) |
| 7743 | return 0; |
| 7744 | ; |
| 7745 | return 0; |
| 7746 | } |
| 7747 | _ACEOF |
| 7748 | rm -f conftest.$ac_objext |
| 7749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7750 | (eval $ac_compile) 2>conftest.er1 |
| 7751 | ac_status=$? |
| 7752 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7753 | rm -f conftest.er1 |
| 7754 | cat conftest.err >&5 |
| 7755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7756 | (exit $ac_status); } && |
| 7757 | { ac_try='test -z "$ac_c_werror_flag" |
| 7758 | || test ! -s conftest.err' |
| 7759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7760 | (eval $ac_try) 2>&5 |
| 7761 | ac_status=$? |
| 7762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7763 | (exit $ac_status); }; } && |
| 7764 | { ac_try='test -s conftest.$ac_objext' |
| 7765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7766 | (eval $ac_try) 2>&5 |
| 7767 | ac_status=$? |
| 7768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7769 | (exit $ac_status); }; }; then |
| 7770 | ac_cv_member_struct_ifreq_ifr_broadaddr=yes |
| 7771 | else |
| 7772 | echo "$as_me: failed program was:" >&5 |
| 7773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7774 | |
| 7775 | ac_cv_member_struct_ifreq_ifr_broadaddr=no |
| 7776 | fi |
| 7777 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7778 | fi |
| 7779 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7780 | fi |
| 7781 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5 |
| 7782 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6 |
| 7783 | if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then |
| 7784 | |
| 7785 | cat >>confdefs.h <<_ACEOF |
| 7786 | #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 |
| 7787 | _ACEOF |
| 7788 | |
| 7789 | |
| 7790 | fi |
| 7791 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5 |
| 7792 | echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6 |
| 7793 | if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then |
| 7794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7795 | else |
| 7796 | cat >conftest.$ac_ext <<_ACEOF |
| 7797 | /* confdefs.h. */ |
| 7798 | _ACEOF |
| 7799 | cat confdefs.h >>conftest.$ac_ext |
| 7800 | cat >>conftest.$ac_ext <<_ACEOF |
| 7801 | /* end confdefs.h. */ |
| 7802 | $ac_includes_default |
| 7803 | #if HAVE_SYS_SOCKET_H |
| 7804 | #include <sys/socket.h> |
| 7805 | #endif |
| 7806 | #if HAVE_NET_IF_H |
| 7807 | #include <net/if.h> |
| 7808 | #endif |
| 7809 | |
| 7810 | int |
| 7811 | main () |
| 7812 | { |
| 7813 | static struct ifreq ac_aggr; |
| 7814 | if (ac_aggr.ifr_addr) |
| 7815 | return 0; |
| 7816 | ; |
| 7817 | return 0; |
| 7818 | } |
| 7819 | _ACEOF |
| 7820 | rm -f conftest.$ac_objext |
| 7821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7822 | (eval $ac_compile) 2>conftest.er1 |
| 7823 | ac_status=$? |
| 7824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7825 | rm -f conftest.er1 |
| 7826 | cat conftest.err >&5 |
| 7827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7828 | (exit $ac_status); } && |
| 7829 | { ac_try='test -z "$ac_c_werror_flag" |
| 7830 | || test ! -s conftest.err' |
| 7831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7832 | (eval $ac_try) 2>&5 |
| 7833 | ac_status=$? |
| 7834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7835 | (exit $ac_status); }; } && |
| 7836 | { ac_try='test -s conftest.$ac_objext' |
| 7837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7838 | (eval $ac_try) 2>&5 |
| 7839 | ac_status=$? |
| 7840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7841 | (exit $ac_status); }; }; then |
| 7842 | ac_cv_member_struct_ifreq_ifr_addr=yes |
| 7843 | else |
| 7844 | echo "$as_me: failed program was:" >&5 |
| 7845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7846 | |
| 7847 | cat >conftest.$ac_ext <<_ACEOF |
| 7848 | /* confdefs.h. */ |
| 7849 | _ACEOF |
| 7850 | cat confdefs.h >>conftest.$ac_ext |
| 7851 | cat >>conftest.$ac_ext <<_ACEOF |
| 7852 | /* end confdefs.h. */ |
| 7853 | $ac_includes_default |
| 7854 | #if HAVE_SYS_SOCKET_H |
| 7855 | #include <sys/socket.h> |
| 7856 | #endif |
| 7857 | #if HAVE_NET_IF_H |
| 7858 | #include <net/if.h> |
| 7859 | #endif |
| 7860 | |
| 7861 | int |
| 7862 | main () |
| 7863 | { |
| 7864 | static struct ifreq ac_aggr; |
| 7865 | if (sizeof ac_aggr.ifr_addr) |
| 7866 | return 0; |
| 7867 | ; |
| 7868 | return 0; |
| 7869 | } |
| 7870 | _ACEOF |
| 7871 | rm -f conftest.$ac_objext |
| 7872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7873 | (eval $ac_compile) 2>conftest.er1 |
| 7874 | ac_status=$? |
| 7875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7876 | rm -f conftest.er1 |
| 7877 | cat conftest.err >&5 |
| 7878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7879 | (exit $ac_status); } && |
| 7880 | { ac_try='test -z "$ac_c_werror_flag" |
| 7881 | || test ! -s conftest.err' |
| 7882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7883 | (eval $ac_try) 2>&5 |
| 7884 | ac_status=$? |
| 7885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7886 | (exit $ac_status); }; } && |
| 7887 | { ac_try='test -s conftest.$ac_objext' |
| 7888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7889 | (eval $ac_try) 2>&5 |
| 7890 | ac_status=$? |
| 7891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7892 | (exit $ac_status); }; }; then |
| 7893 | ac_cv_member_struct_ifreq_ifr_addr=yes |
| 7894 | else |
| 7895 | echo "$as_me: failed program was:" >&5 |
| 7896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7897 | |
| 7898 | ac_cv_member_struct_ifreq_ifr_addr=no |
| 7899 | fi |
| 7900 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7901 | fi |
| 7902 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7903 | fi |
| 7904 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5 |
| 7905 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6 |
| 7906 | if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then |
| 7907 | |
| 7908 | cat >>confdefs.h <<_ACEOF |
| 7909 | #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 |
| 7910 | _ACEOF |
| 7911 | |
| 7912 | |
| 7913 | fi |
| 7914 | |
| 7915 | |
| 7916 | |
| 7917 | echo "$as_me:$LINENO: checking for function prototypes" >&5 |
| 7918 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
| 7919 | if test "$ac_cv_prog_cc_stdc" != no; then |
| 7920 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7921 | echo "${ECHO_T}yes" >&6 |
| 7922 | |
| 7923 | cat >>confdefs.h <<\_ACEOF |
| 7924 | #define PROTOTYPES 1 |
| 7925 | _ACEOF |
| 7926 | |
| 7927 | |
| 7928 | cat >>confdefs.h <<\_ACEOF |
| 7929 | #define __PROTOTYPES 1 |
| 7930 | _ACEOF |
| 7931 | |
| 7932 | else |
| 7933 | echo "$as_me:$LINENO: result: no" >&5 |
| 7934 | echo "${ECHO_T}no" >&6 |
| 7935 | fi |
| 7936 | |
| 7937 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 7938 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 7939 | if test "${ac_cv_c_volatile+set}" = set; then |
| 7940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7941 | else |
| 7942 | cat >conftest.$ac_ext <<_ACEOF |
| 7943 | /* confdefs.h. */ |
| 7944 | _ACEOF |
| 7945 | cat confdefs.h >>conftest.$ac_ext |
| 7946 | cat >>conftest.$ac_ext <<_ACEOF |
| 7947 | /* end confdefs.h. */ |
| 7948 | |
| 7949 | int |
| 7950 | main () |
| 7951 | { |
| 7952 | |
| 7953 | volatile int x; |
| 7954 | int * volatile y; |
| 7955 | ; |
| 7956 | return 0; |
| 7957 | } |
| 7958 | _ACEOF |
| 7959 | rm -f conftest.$ac_objext |
| 7960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7961 | (eval $ac_compile) 2>conftest.er1 |
| 7962 | ac_status=$? |
| 7963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7964 | rm -f conftest.er1 |
| 7965 | cat conftest.err >&5 |
| 7966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7967 | (exit $ac_status); } && |
| 7968 | { ac_try='test -z "$ac_c_werror_flag" |
| 7969 | || test ! -s conftest.err' |
| 7970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7971 | (eval $ac_try) 2>&5 |
| 7972 | ac_status=$? |
| 7973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7974 | (exit $ac_status); }; } && |
| 7975 | { ac_try='test -s conftest.$ac_objext' |
| 7976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7977 | (eval $ac_try) 2>&5 |
| 7978 | ac_status=$? |
| 7979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7980 | (exit $ac_status); }; }; then |
| 7981 | ac_cv_c_volatile=yes |
| 7982 | else |
| 7983 | echo "$as_me: failed program was:" >&5 |
| 7984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7985 | |
| 7986 | ac_cv_c_volatile=no |
| 7987 | fi |
| 7988 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7989 | fi |
| 7990 | echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 |
| 7991 | echo "${ECHO_T}$ac_cv_c_volatile" >&6 |
| 7992 | if test $ac_cv_c_volatile = no; then |
| 7993 | |
| 7994 | cat >>confdefs.h <<\_ACEOF |
| 7995 | #define volatile |
| 7996 | _ACEOF |
| 7997 | |
| 7998 | fi |
| 7999 | |
| 8000 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8001 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 8002 | if test "${ac_cv_c_const+set}" = set; then |
| 8003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8004 | else |
| 8005 | cat >conftest.$ac_ext <<_ACEOF |
| 8006 | /* confdefs.h. */ |
| 8007 | _ACEOF |
| 8008 | cat confdefs.h >>conftest.$ac_ext |
| 8009 | cat >>conftest.$ac_ext <<_ACEOF |
| 8010 | /* end confdefs.h. */ |
| 8011 | |
| 8012 | int |
| 8013 | main () |
| 8014 | { |
| 8015 | /* FIXME: Include the comments suggested by Paul. */ |
| 8016 | #ifndef __cplusplus |
| 8017 | /* Ultrix mips cc rejects this. */ |
| 8018 | typedef int charset[2]; |
| 8019 | const charset x; |
| 8020 | /* SunOS 4.1.1 cc rejects this. */ |
| 8021 | char const *const *ccp; |
| 8022 | char **p; |
| 8023 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8024 | struct point {int x, y;}; |
| 8025 | static struct point const zero = {0,0}; |
| 8026 | /* AIX XL C 1.02.0.0 rejects this. |
| 8027 | It does not let you subtract one const X* pointer from another in |
| 8028 | an arm of an if-expression whose if-part is not a constant |
| 8029 | expression */ |
| 8030 | const char *g = "string"; |
| 8031 | ccp = &g + (g ? g-g : 0); |
| 8032 | /* HPUX 7.0 cc rejects these. */ |
| 8033 | ++ccp; |
| 8034 | p = (char**) ccp; |
| 8035 | ccp = (char const *const *) p; |
| 8036 | { /* SCO 3.2v4 cc rejects this. */ |
| 8037 | char *t; |
| 8038 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8039 | |
| 8040 | *t++ = 0; |
| 8041 | } |
| 8042 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8043 | int x[] = {25, 17}; |
| 8044 | const int *foo = &x[0]; |
| 8045 | ++foo; |
| 8046 | } |
| 8047 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8048 | typedef const int *iptr; |
| 8049 | iptr p = 0; |
| 8050 | ++p; |
| 8051 | } |
| 8052 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8053 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8054 | struct s { int j; const int *ap[3]; }; |
| 8055 | struct s *b; b->j = 5; |
| 8056 | } |
| 8057 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8058 | const int foo = 10; |
| 8059 | } |
| 8060 | #endif |
| 8061 | |
| 8062 | ; |
| 8063 | return 0; |
| 8064 | } |
| 8065 | _ACEOF |
| 8066 | rm -f conftest.$ac_objext |
| 8067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8068 | (eval $ac_compile) 2>conftest.er1 |
| 8069 | ac_status=$? |
| 8070 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8071 | rm -f conftest.er1 |
| 8072 | cat conftest.err >&5 |
| 8073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8074 | (exit $ac_status); } && |
| 8075 | { ac_try='test -z "$ac_c_werror_flag" |
| 8076 | || test ! -s conftest.err' |
| 8077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8078 | (eval $ac_try) 2>&5 |
| 8079 | ac_status=$? |
| 8080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8081 | (exit $ac_status); }; } && |
| 8082 | { ac_try='test -s conftest.$ac_objext' |
| 8083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8084 | (eval $ac_try) 2>&5 |
| 8085 | ac_status=$? |
| 8086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8087 | (exit $ac_status); }; }; then |
| 8088 | ac_cv_c_const=yes |
| 8089 | else |
| 8090 | echo "$as_me: failed program was:" >&5 |
| 8091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8092 | |
| 8093 | ac_cv_c_const=no |
| 8094 | fi |
| 8095 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8096 | fi |
| 8097 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8098 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 8099 | if test $ac_cv_c_const = no; then |
| 8100 | |
| 8101 | cat >>confdefs.h <<\_ACEOF |
| 8102 | #define const |
| 8103 | _ACEOF |
| 8104 | |
| 8105 | fi |
| 8106 | |
| 8107 | echo "$as_me:$LINENO: checking for void * support" >&5 |
| 8108 | echo $ECHO_N "checking for void * support... $ECHO_C" >&6 |
| 8109 | if test "${emacs_cv_void_star+set}" = set; then |
| 8110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8111 | else |
| 8112 | cat >conftest.$ac_ext <<_ACEOF |
| 8113 | /* confdefs.h. */ |
| 8114 | _ACEOF |
| 8115 | cat confdefs.h >>conftest.$ac_ext |
| 8116 | cat >>conftest.$ac_ext <<_ACEOF |
| 8117 | /* end confdefs.h. */ |
| 8118 | |
| 8119 | int |
| 8120 | main () |
| 8121 | { |
| 8122 | void * foo; |
| 8123 | ; |
| 8124 | return 0; |
| 8125 | } |
| 8126 | _ACEOF |
| 8127 | rm -f conftest.$ac_objext |
| 8128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8129 | (eval $ac_compile) 2>conftest.er1 |
| 8130 | ac_status=$? |
| 8131 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8132 | rm -f conftest.er1 |
| 8133 | cat conftest.err >&5 |
| 8134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8135 | (exit $ac_status); } && |
| 8136 | { ac_try='test -z "$ac_c_werror_flag" |
| 8137 | || test ! -s conftest.err' |
| 8138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8139 | (eval $ac_try) 2>&5 |
| 8140 | ac_status=$? |
| 8141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8142 | (exit $ac_status); }; } && |
| 8143 | { ac_try='test -s conftest.$ac_objext' |
| 8144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8145 | (eval $ac_try) 2>&5 |
| 8146 | ac_status=$? |
| 8147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8148 | (exit $ac_status); }; }; then |
| 8149 | emacs_cv_void_star=yes |
| 8150 | else |
| 8151 | echo "$as_me: failed program was:" >&5 |
| 8152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8153 | |
| 8154 | emacs_cv_void_star=no |
| 8155 | fi |
| 8156 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8157 | fi |
| 8158 | echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5 |
| 8159 | echo "${ECHO_T}$emacs_cv_void_star" >&6 |
| 8160 | if test $emacs_cv_void_star = yes; then |
| 8161 | cat >>confdefs.h <<\_ACEOF |
| 8162 | #define POINTER_TYPE void |
| 8163 | _ACEOF |
| 8164 | |
| 8165 | else |
| 8166 | cat >>confdefs.h <<\_ACEOF |
| 8167 | #define POINTER_TYPE char |
| 8168 | _ACEOF |
| 8169 | |
| 8170 | fi |
| 8171 | |
| 8172 | |
| 8173 | |
| 8174 | |
| 8175 | |
| 8176 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 8177 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 8178 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
| 8179 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 8180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8181 | else |
| 8182 | cat >conftest.make <<\_ACEOF |
| 8183 | all: |
| 8184 | @echo 'ac_maketemp="$(MAKE)"' |
| 8185 | _ACEOF |
| 8186 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 8187 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 8188 | if test -n "$ac_maketemp"; then |
| 8189 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 8190 | else |
| 8191 | eval ac_cv_prog_make_${ac_make}_set=no |
| 8192 | fi |
| 8193 | rm -f conftest.make |
| 8194 | fi |
| 8195 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 8196 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8197 | echo "${ECHO_T}yes" >&6 |
| 8198 | SET_MAKE= |
| 8199 | else |
| 8200 | echo "$as_me:$LINENO: result: no" >&5 |
| 8201 | echo "${ECHO_T}no" >&6 |
| 8202 | SET_MAKE="MAKE=${MAKE-make}" |
| 8203 | fi |
| 8204 | |
| 8205 | |
| 8206 | echo "$as_me:$LINENO: checking for long file names" >&5 |
| 8207 | echo $ECHO_N "checking for long file names... $ECHO_C" >&6 |
| 8208 | if test "${ac_cv_sys_long_file_names+set}" = set; then |
| 8209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8210 | else |
| 8211 | ac_cv_sys_long_file_names=yes |
| 8212 | # Test for long file names in all the places we know might matter: |
| 8213 | # . the current directory, where building will happen |
| 8214 | # $prefix/lib where we will be installing things |
| 8215 | # $exec_prefix/lib likewise |
| 8216 | # eval it to expand exec_prefix. |
| 8217 | # $TMPDIR if set, where it might want to write temporary files |
| 8218 | # if $TMPDIR is not set: |
| 8219 | # /tmp where it might want to write temporary files |
| 8220 | # /var/tmp likewise |
| 8221 | # /usr/tmp likewise |
| 8222 | if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then |
| 8223 | ac_tmpdirs=$TMPDIR |
| 8224 | else |
| 8225 | ac_tmpdirs='/tmp /var/tmp /usr/tmp' |
| 8226 | fi |
| 8227 | for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do |
| 8228 | test -d $ac_dir || continue |
| 8229 | test -w $ac_dir || continue # It is less confusing to not echo anything here. |
| 8230 | ac_xdir=$ac_dir/cf$$ |
| 8231 | (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue |
| 8232 | ac_tf1=$ac_xdir/conftest9012345 |
| 8233 | ac_tf2=$ac_xdir/conftest9012346 |
| 8234 | (echo 1 >$ac_tf1) 2>/dev/null |
| 8235 | (echo 2 >$ac_tf2) 2>/dev/null |
| 8236 | ac_val=`cat $ac_tf1 2>/dev/null` |
| 8237 | if test ! -f $ac_tf1 || test "$ac_val" != 1; then |
| 8238 | ac_cv_sys_long_file_names=no |
| 8239 | rm -rf $ac_xdir 2>/dev/null |
| 8240 | break |
| 8241 | fi |
| 8242 | rm -rf $ac_xdir 2>/dev/null |
| 8243 | done |
| 8244 | fi |
| 8245 | echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 |
| 8246 | echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6 |
| 8247 | if test $ac_cv_sys_long_file_names = yes; then |
| 8248 | |
| 8249 | cat >>confdefs.h <<\_ACEOF |
| 8250 | #define HAVE_LONG_FILE_NAMES 1 |
| 8251 | _ACEOF |
| 8252 | |
| 8253 | fi |
| 8254 | |
| 8255 | |
| 8256 | #### Choose a window system. |
| 8257 | |
| 8258 | echo "$as_me:$LINENO: checking for X" >&5 |
| 8259 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
| 8260 | |
| 8261 | |
| 8262 | # Check whether --with-x or --without-x was given. |
| 8263 | if test "${with_x+set}" = set; then |
| 8264 | withval="$with_x" |
| 8265 | |
| 8266 | fi; |
| 8267 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 8268 | if test "x$with_x" = xno; then |
| 8269 | # The user explicitly disabled X. |
| 8270 | have_x=disabled |
| 8271 | else |
| 8272 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
| 8273 | # Both variables are already set. |
| 8274 | have_x=yes |
| 8275 | else |
| 8276 | if test "${ac_cv_have_x+set}" = set; then |
| 8277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8278 | else |
| 8279 | # One or both of the vars are not set, and there is no cached value. |
| 8280 | ac_x_includes=no ac_x_libraries=no |
| 8281 | rm -fr conftest.dir |
| 8282 | if mkdir conftest.dir; then |
| 8283 | cd conftest.dir |
| 8284 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
| 8285 | cat >Imakefile <<'_ACEOF' |
| 8286 | acfindx: |
| 8287 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
| 8288 | _ACEOF |
| 8289 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 8290 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 8291 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 8292 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 8293 | for ac_extension in a so sl; do |
| 8294 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
| 8295 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 8296 | ac_im_usrlibdir=$ac_im_libdir; break |
| 8297 | fi |
| 8298 | done |
| 8299 | # Screen out bogus values from the imake configuration. They are |
| 8300 | # bogus both because they are the default anyway, and because |
| 8301 | # using them would break gcc on systems where it needs fixed includes. |
| 8302 | case $ac_im_incroot in |
| 8303 | /usr/include) ;; |
| 8304 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 8305 | esac |
| 8306 | case $ac_im_usrlibdir in |
| 8307 | /usr/lib | /lib) ;; |
| 8308 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 8309 | esac |
| 8310 | fi |
| 8311 | cd .. |
| 8312 | rm -fr conftest.dir |
| 8313 | fi |
| 8314 | |
| 8315 | # Standard set of common directories for X headers. |
| 8316 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 8317 | ac_x_header_dirs=' |
| 8318 | /usr/X11/include |
| 8319 | /usr/X11R6/include |
| 8320 | /usr/X11R5/include |
| 8321 | /usr/X11R4/include |
| 8322 | |
| 8323 | /usr/include/X11 |
| 8324 | /usr/include/X11R6 |
| 8325 | /usr/include/X11R5 |
| 8326 | /usr/include/X11R4 |
| 8327 | |
| 8328 | /usr/local/X11/include |
| 8329 | /usr/local/X11R6/include |
| 8330 | /usr/local/X11R5/include |
| 8331 | /usr/local/X11R4/include |
| 8332 | |
| 8333 | /usr/local/include/X11 |
| 8334 | /usr/local/include/X11R6 |
| 8335 | /usr/local/include/X11R5 |
| 8336 | /usr/local/include/X11R4 |
| 8337 | |
| 8338 | /usr/X386/include |
| 8339 | /usr/x386/include |
| 8340 | /usr/XFree86/include/X11 |
| 8341 | |
| 8342 | /usr/include |
| 8343 | /usr/local/include |
| 8344 | /usr/unsupported/include |
| 8345 | /usr/athena/include |
| 8346 | /usr/local/x11r5/include |
| 8347 | /usr/lpp/Xamples/include |
| 8348 | |
| 8349 | /usr/openwin/include |
| 8350 | /usr/openwin/share/include' |
| 8351 | |
| 8352 | if test "$ac_x_includes" = no; then |
| 8353 | # Guess where to find include files, by looking for Intrinsic.h. |
| 8354 | # First, try using that file with no special directory specified. |
| 8355 | cat >conftest.$ac_ext <<_ACEOF |
| 8356 | /* confdefs.h. */ |
| 8357 | _ACEOF |
| 8358 | cat confdefs.h >>conftest.$ac_ext |
| 8359 | cat >>conftest.$ac_ext <<_ACEOF |
| 8360 | /* end confdefs.h. */ |
| 8361 | #include <X11/Intrinsic.h> |
| 8362 | _ACEOF |
| 8363 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8364 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8365 | ac_status=$? |
| 8366 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8367 | rm -f conftest.er1 |
| 8368 | cat conftest.err >&5 |
| 8369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8370 | (exit $ac_status); } >/dev/null; then |
| 8371 | if test -s conftest.err; then |
| 8372 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8373 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8374 | else |
| 8375 | ac_cpp_err= |
| 8376 | fi |
| 8377 | else |
| 8378 | ac_cpp_err=yes |
| 8379 | fi |
| 8380 | if test -z "$ac_cpp_err"; then |
| 8381 | # We can compile using X headers with no special include directory. |
| 8382 | ac_x_includes= |
| 8383 | else |
| 8384 | echo "$as_me: failed program was:" >&5 |
| 8385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8386 | |
| 8387 | for ac_dir in $ac_x_header_dirs; do |
| 8388 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 8389 | ac_x_includes=$ac_dir |
| 8390 | break |
| 8391 | fi |
| 8392 | done |
| 8393 | fi |
| 8394 | rm -f conftest.err conftest.$ac_ext |
| 8395 | fi # $ac_x_includes = no |
| 8396 | |
| 8397 | if test "$ac_x_libraries" = no; then |
| 8398 | # Check for the libraries. |
| 8399 | # See if we find them without any special options. |
| 8400 | # Don't add to $LIBS permanently. |
| 8401 | ac_save_LIBS=$LIBS |
| 8402 | LIBS="-lXt $LIBS" |
| 8403 | cat >conftest.$ac_ext <<_ACEOF |
| 8404 | /* confdefs.h. */ |
| 8405 | _ACEOF |
| 8406 | cat confdefs.h >>conftest.$ac_ext |
| 8407 | cat >>conftest.$ac_ext <<_ACEOF |
| 8408 | /* end confdefs.h. */ |
| 8409 | #include <X11/Intrinsic.h> |
| 8410 | int |
| 8411 | main () |
| 8412 | { |
| 8413 | XtMalloc (0) |
| 8414 | ; |
| 8415 | return 0; |
| 8416 | } |
| 8417 | _ACEOF |
| 8418 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8419 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8420 | (eval $ac_link) 2>conftest.er1 |
| 8421 | ac_status=$? |
| 8422 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8423 | rm -f conftest.er1 |
| 8424 | cat conftest.err >&5 |
| 8425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8426 | (exit $ac_status); } && |
| 8427 | { ac_try='test -z "$ac_c_werror_flag" |
| 8428 | || test ! -s conftest.err' |
| 8429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8430 | (eval $ac_try) 2>&5 |
| 8431 | ac_status=$? |
| 8432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8433 | (exit $ac_status); }; } && |
| 8434 | { ac_try='test -s conftest$ac_exeext' |
| 8435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8436 | (eval $ac_try) 2>&5 |
| 8437 | ac_status=$? |
| 8438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8439 | (exit $ac_status); }; }; then |
| 8440 | LIBS=$ac_save_LIBS |
| 8441 | # We can link X programs with no special library path. |
| 8442 | ac_x_libraries= |
| 8443 | else |
| 8444 | echo "$as_me: failed program was:" >&5 |
| 8445 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8446 | |
| 8447 | LIBS=$ac_save_LIBS |
| 8448 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 8449 | do |
| 8450 | # Don't even attempt the hair of trying to link an X program! |
| 8451 | for ac_extension in a so sl; do |
| 8452 | if test -r $ac_dir/libXt.$ac_extension; then |
| 8453 | ac_x_libraries=$ac_dir |
| 8454 | break 2 |
| 8455 | fi |
| 8456 | done |
| 8457 | done |
| 8458 | fi |
| 8459 | rm -f conftest.err conftest.$ac_objext \ |
| 8460 | conftest$ac_exeext conftest.$ac_ext |
| 8461 | fi # $ac_x_libraries = no |
| 8462 | |
| 8463 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
| 8464 | # Didn't find X anywhere. Cache the known absence of X. |
| 8465 | ac_cv_have_x="have_x=no" |
| 8466 | else |
| 8467 | # Record where we found X for the cache. |
| 8468 | ac_cv_have_x="have_x=yes \ |
| 8469 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
| 8470 | fi |
| 8471 | fi |
| 8472 | |
| 8473 | fi |
| 8474 | eval "$ac_cv_have_x" |
| 8475 | fi # $with_x != no |
| 8476 | |
| 8477 | if test "$have_x" != yes; then |
| 8478 | echo "$as_me:$LINENO: result: $have_x" >&5 |
| 8479 | echo "${ECHO_T}$have_x" >&6 |
| 8480 | no_x=yes |
| 8481 | else |
| 8482 | # If each of the values was on the command line, it overrides each guess. |
| 8483 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 8484 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 8485 | # Update the cache value to reflect the command line values. |
| 8486 | ac_cv_have_x="have_x=yes \ |
| 8487 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
| 8488 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 8489 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
| 8490 | fi |
| 8491 | |
| 8492 | if test "$no_x" = yes; then |
| 8493 | window_system=none |
| 8494 | else |
| 8495 | window_system=x11 |
| 8496 | fi |
| 8497 | |
| 8498 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then |
| 8499 | LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` |
| 8500 | LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` |
| 8501 | x_default_search_path="" |
| 8502 | for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do |
| 8503 | x_search_path="\ |
| 8504 | ${x_library}/X11/%L/%T/%N%C%S:\ |
| 8505 | ${x_library}/X11/%l/%T/%N%C%S:\ |
| 8506 | ${x_library}/X11/%T/%N%C%S:\ |
| 8507 | ${x_library}/X11/%L/%T/%N%S:\ |
| 8508 | ${x_library}/X11/%l/%T/%N%S:\ |
| 8509 | ${x_library}/X11/%T/%N%S" |
| 8510 | if test x"${x_default_search_path}" = x; then |
| 8511 | x_default_search_path=${x_search_path} |
| 8512 | else |
| 8513 | x_default_search_path="${x_search_path}:${x_default_search_path}" |
| 8514 | fi |
| 8515 | done |
| 8516 | fi |
| 8517 | if test "${x_includes}" != NONE && test -n "${x_includes}"; then |
| 8518 | C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` |
| 8519 | fi |
| 8520 | |
| 8521 | if test x"${x_includes}" = x; then |
| 8522 | bitmapdir=/usr/include/X11/bitmaps |
| 8523 | else |
| 8524 | # accumulate include directories that have X11 bitmap subdirectories |
| 8525 | bmd_acc="dummyval" |
| 8526 | for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do |
| 8527 | if test -d "${bmd}/X11/bitmaps"; then |
| 8528 | bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" |
| 8529 | fi |
| 8530 | if test -d "${bmd}/bitmaps"; then |
| 8531 | bmd_acc="${bmd_acc}:${bmd}/bitmaps" |
| 8532 | fi |
| 8533 | done |
| 8534 | if test ${bmd_acc} != "dummyval"; then |
| 8535 | bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` |
| 8536 | fi |
| 8537 | fi |
| 8538 | |
| 8539 | HAVE_CARBON=no |
| 8540 | if test "${with_carbon}" != no; then |
| 8541 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
| 8542 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 8543 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 |
| 8544 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
| 8545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8546 | fi |
| 8547 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 8548 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
| 8549 | else |
| 8550 | # Is the header compilable? |
| 8551 | echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 |
| 8552 | echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6 |
| 8553 | cat >conftest.$ac_ext <<_ACEOF |
| 8554 | /* confdefs.h. */ |
| 8555 | _ACEOF |
| 8556 | cat confdefs.h >>conftest.$ac_ext |
| 8557 | cat >>conftest.$ac_ext <<_ACEOF |
| 8558 | /* end confdefs.h. */ |
| 8559 | $ac_includes_default |
| 8560 | #include <Carbon/Carbon.h> |
| 8561 | _ACEOF |
| 8562 | rm -f conftest.$ac_objext |
| 8563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8564 | (eval $ac_compile) 2>conftest.er1 |
| 8565 | ac_status=$? |
| 8566 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8567 | rm -f conftest.er1 |
| 8568 | cat conftest.err >&5 |
| 8569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8570 | (exit $ac_status); } && |
| 8571 | { ac_try='test -z "$ac_c_werror_flag" |
| 8572 | || test ! -s conftest.err' |
| 8573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8574 | (eval $ac_try) 2>&5 |
| 8575 | ac_status=$? |
| 8576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8577 | (exit $ac_status); }; } && |
| 8578 | { ac_try='test -s conftest.$ac_objext' |
| 8579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8580 | (eval $ac_try) 2>&5 |
| 8581 | ac_status=$? |
| 8582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8583 | (exit $ac_status); }; }; then |
| 8584 | ac_header_compiler=yes |
| 8585 | else |
| 8586 | echo "$as_me: failed program was:" >&5 |
| 8587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8588 | |
| 8589 | ac_header_compiler=no |
| 8590 | fi |
| 8591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8592 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8593 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8594 | |
| 8595 | # Is the header present? |
| 8596 | echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 |
| 8597 | echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6 |
| 8598 | cat >conftest.$ac_ext <<_ACEOF |
| 8599 | /* confdefs.h. */ |
| 8600 | _ACEOF |
| 8601 | cat confdefs.h >>conftest.$ac_ext |
| 8602 | cat >>conftest.$ac_ext <<_ACEOF |
| 8603 | /* end confdefs.h. */ |
| 8604 | #include <Carbon/Carbon.h> |
| 8605 | _ACEOF |
| 8606 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8607 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8608 | ac_status=$? |
| 8609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8610 | rm -f conftest.er1 |
| 8611 | cat conftest.err >&5 |
| 8612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8613 | (exit $ac_status); } >/dev/null; then |
| 8614 | if test -s conftest.err; then |
| 8615 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8616 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8617 | else |
| 8618 | ac_cpp_err= |
| 8619 | fi |
| 8620 | else |
| 8621 | ac_cpp_err=yes |
| 8622 | fi |
| 8623 | if test -z "$ac_cpp_err"; then |
| 8624 | ac_header_preproc=yes |
| 8625 | else |
| 8626 | echo "$as_me: failed program was:" >&5 |
| 8627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8628 | |
| 8629 | ac_header_preproc=no |
| 8630 | fi |
| 8631 | rm -f conftest.err conftest.$ac_ext |
| 8632 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8633 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8634 | |
| 8635 | # So? What about this header? |
| 8636 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8637 | yes:no: ) |
| 8638 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8639 | echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8640 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5 |
| 8641 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;} |
| 8642 | ac_header_preproc=yes |
| 8643 | ;; |
| 8644 | no:yes:* ) |
| 8645 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 |
| 8646 | echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} |
| 8647 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 |
| 8648 | echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} |
| 8649 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5 |
| 8650 | echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;} |
| 8651 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8652 | echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8653 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
| 8654 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} |
| 8655 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5 |
| 8656 | echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;} |
| 8657 | ( |
| 8658 | cat <<\_ASBOX |
| 8659 | ## ------------------------------------------ ## |
| 8660 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8661 | ## ------------------------------------------ ## |
| 8662 | _ASBOX |
| 8663 | ) | |
| 8664 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8665 | ;; |
| 8666 | esac |
| 8667 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 8668 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 |
| 8669 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
| 8670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8671 | else |
| 8672 | ac_cv_header_Carbon_Carbon_h=$ac_header_preproc |
| 8673 | fi |
| 8674 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 8675 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
| 8676 | |
| 8677 | fi |
| 8678 | if test $ac_cv_header_Carbon_Carbon_h = yes; then |
| 8679 | HAVE_CARBON=yes |
| 8680 | fi |
| 8681 | |
| 8682 | |
| 8683 | fi |
| 8684 | if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then |
| 8685 | if test "${with_carbon+set}" != set \ |
| 8686 | && test "${carbon_appdir_x+set}" != set; then |
| 8687 | HAVE_CARBON=no |
| 8688 | fi |
| 8689 | fi |
| 8690 | if test "${HAVE_CARBON}" = yes; then |
| 8691 | window_system=mac |
| 8692 | fi |
| 8693 | |
| 8694 | case "${window_system}" in |
| 8695 | x11 ) |
| 8696 | HAVE_X_WINDOWS=yes |
| 8697 | HAVE_X11=yes |
| 8698 | case "${with_x_toolkit}" in |
| 8699 | athena | lucid ) USE_X_TOOLKIT=LUCID ;; |
| 8700 | motif ) USE_X_TOOLKIT=MOTIF ;; |
| 8701 | gtk ) with_gtk=yes |
| 8702 | USE_X_TOOLKIT=none ;; |
| 8703 | no ) USE_X_TOOLKIT=none ;; |
| 8704 | * ) USE_X_TOOLKIT=maybe ;; |
| 8705 | esac |
| 8706 | ;; |
| 8707 | mac | none ) |
| 8708 | HAVE_X_WINDOWS=no |
| 8709 | HAVE_X11=no |
| 8710 | USE_X_TOOLKIT=none |
| 8711 | ;; |
| 8712 | esac |
| 8713 | |
| 8714 | ### If we're using X11, we should use the X menu package. |
| 8715 | HAVE_MENUS=no |
| 8716 | case ${HAVE_X11} in |
| 8717 | yes ) HAVE_MENUS=yes ;; |
| 8718 | esac |
| 8719 | |
| 8720 | if test "${opsys}" = "hpux9"; then |
| 8721 | case "${x_libraries}" in |
| 8722 | *X11R4* ) |
| 8723 | opsysfile="s/hpux9-x11r4.h" |
| 8724 | ;; |
| 8725 | esac |
| 8726 | fi |
| 8727 | |
| 8728 | if test "${opsys}" = "hpux9shr"; then |
| 8729 | case "${x_libraries}" in |
| 8730 | *X11R4* ) |
| 8731 | opsysfile="s/hpux9shxr4.h" |
| 8732 | ;; |
| 8733 | esac |
| 8734 | fi |
| 8735 | |
| 8736 | ### Compute the unexec source name from the object name. |
| 8737 | UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" |
| 8738 | |
| 8739 | # Do the opsystem or machine files prohibit the use of the GNU malloc? |
| 8740 | # Assume not, until told otherwise. |
| 8741 | GNU_MALLOC=yes |
| 8742 | doug_lea_malloc=yes |
| 8743 | echo "$as_me:$LINENO: checking for malloc_get_state" >&5 |
| 8744 | echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6 |
| 8745 | if test "${ac_cv_func_malloc_get_state+set}" = set; then |
| 8746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8747 | else |
| 8748 | cat >conftest.$ac_ext <<_ACEOF |
| 8749 | /* confdefs.h. */ |
| 8750 | _ACEOF |
| 8751 | cat confdefs.h >>conftest.$ac_ext |
| 8752 | cat >>conftest.$ac_ext <<_ACEOF |
| 8753 | /* end confdefs.h. */ |
| 8754 | /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state. |
| 8755 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8756 | #define malloc_get_state innocuous_malloc_get_state |
| 8757 | |
| 8758 | /* System header to define __stub macros and hopefully few prototypes, |
| 8759 | which can conflict with char malloc_get_state (); below. |
| 8760 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8761 | <limits.h> exists even on freestanding compilers. */ |
| 8762 | |
| 8763 | #ifdef __STDC__ |
| 8764 | # include <limits.h> |
| 8765 | #else |
| 8766 | # include <assert.h> |
| 8767 | #endif |
| 8768 | |
| 8769 | #undef malloc_get_state |
| 8770 | |
| 8771 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8772 | #ifdef __cplusplus |
| 8773 | extern "C" |
| 8774 | { |
| 8775 | #endif |
| 8776 | /* We use char because int might match the return type of a gcc2 |
| 8777 | builtin and then its argument prototype would still apply. */ |
| 8778 | char malloc_get_state (); |
| 8779 | /* The GNU C library defines this for functions which it implements |
| 8780 | to always fail with ENOSYS. Some functions are actually named |
| 8781 | something starting with __ and the normal name is an alias. */ |
| 8782 | #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) |
| 8783 | choke me |
| 8784 | #else |
| 8785 | char (*f) () = malloc_get_state; |
| 8786 | #endif |
| 8787 | #ifdef __cplusplus |
| 8788 | } |
| 8789 | #endif |
| 8790 | |
| 8791 | int |
| 8792 | main () |
| 8793 | { |
| 8794 | return f != malloc_get_state; |
| 8795 | ; |
| 8796 | return 0; |
| 8797 | } |
| 8798 | _ACEOF |
| 8799 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8801 | (eval $ac_link) 2>conftest.er1 |
| 8802 | ac_status=$? |
| 8803 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8804 | rm -f conftest.er1 |
| 8805 | cat conftest.err >&5 |
| 8806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8807 | (exit $ac_status); } && |
| 8808 | { ac_try='test -z "$ac_c_werror_flag" |
| 8809 | || test ! -s conftest.err' |
| 8810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8811 | (eval $ac_try) 2>&5 |
| 8812 | ac_status=$? |
| 8813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8814 | (exit $ac_status); }; } && |
| 8815 | { ac_try='test -s conftest$ac_exeext' |
| 8816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8817 | (eval $ac_try) 2>&5 |
| 8818 | ac_status=$? |
| 8819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8820 | (exit $ac_status); }; }; then |
| 8821 | ac_cv_func_malloc_get_state=yes |
| 8822 | else |
| 8823 | echo "$as_me: failed program was:" >&5 |
| 8824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8825 | |
| 8826 | ac_cv_func_malloc_get_state=no |
| 8827 | fi |
| 8828 | rm -f conftest.err conftest.$ac_objext \ |
| 8829 | conftest$ac_exeext conftest.$ac_ext |
| 8830 | fi |
| 8831 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5 |
| 8832 | echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6 |
| 8833 | if test $ac_cv_func_malloc_get_state = yes; then |
| 8834 | : |
| 8835 | else |
| 8836 | doug_lea_malloc=no |
| 8837 | fi |
| 8838 | |
| 8839 | echo "$as_me:$LINENO: checking for malloc_set_state" >&5 |
| 8840 | echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6 |
| 8841 | if test "${ac_cv_func_malloc_set_state+set}" = set; then |
| 8842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8843 | else |
| 8844 | cat >conftest.$ac_ext <<_ACEOF |
| 8845 | /* confdefs.h. */ |
| 8846 | _ACEOF |
| 8847 | cat confdefs.h >>conftest.$ac_ext |
| 8848 | cat >>conftest.$ac_ext <<_ACEOF |
| 8849 | /* end confdefs.h. */ |
| 8850 | /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state. |
| 8851 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8852 | #define malloc_set_state innocuous_malloc_set_state |
| 8853 | |
| 8854 | /* System header to define __stub macros and hopefully few prototypes, |
| 8855 | which can conflict with char malloc_set_state (); below. |
| 8856 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8857 | <limits.h> exists even on freestanding compilers. */ |
| 8858 | |
| 8859 | #ifdef __STDC__ |
| 8860 | # include <limits.h> |
| 8861 | #else |
| 8862 | # include <assert.h> |
| 8863 | #endif |
| 8864 | |
| 8865 | #undef malloc_set_state |
| 8866 | |
| 8867 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8868 | #ifdef __cplusplus |
| 8869 | extern "C" |
| 8870 | { |
| 8871 | #endif |
| 8872 | /* We use char because int might match the return type of a gcc2 |
| 8873 | builtin and then its argument prototype would still apply. */ |
| 8874 | char malloc_set_state (); |
| 8875 | /* The GNU C library defines this for functions which it implements |
| 8876 | to always fail with ENOSYS. Some functions are actually named |
| 8877 | something starting with __ and the normal name is an alias. */ |
| 8878 | #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) |
| 8879 | choke me |
| 8880 | #else |
| 8881 | char (*f) () = malloc_set_state; |
| 8882 | #endif |
| 8883 | #ifdef __cplusplus |
| 8884 | } |
| 8885 | #endif |
| 8886 | |
| 8887 | int |
| 8888 | main () |
| 8889 | { |
| 8890 | return f != malloc_set_state; |
| 8891 | ; |
| 8892 | return 0; |
| 8893 | } |
| 8894 | _ACEOF |
| 8895 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8897 | (eval $ac_link) 2>conftest.er1 |
| 8898 | ac_status=$? |
| 8899 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8900 | rm -f conftest.er1 |
| 8901 | cat conftest.err >&5 |
| 8902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8903 | (exit $ac_status); } && |
| 8904 | { ac_try='test -z "$ac_c_werror_flag" |
| 8905 | || test ! -s conftest.err' |
| 8906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8907 | (eval $ac_try) 2>&5 |
| 8908 | ac_status=$? |
| 8909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8910 | (exit $ac_status); }; } && |
| 8911 | { ac_try='test -s conftest$ac_exeext' |
| 8912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8913 | (eval $ac_try) 2>&5 |
| 8914 | ac_status=$? |
| 8915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8916 | (exit $ac_status); }; }; then |
| 8917 | ac_cv_func_malloc_set_state=yes |
| 8918 | else |
| 8919 | echo "$as_me: failed program was:" >&5 |
| 8920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8921 | |
| 8922 | ac_cv_func_malloc_set_state=no |
| 8923 | fi |
| 8924 | rm -f conftest.err conftest.$ac_objext \ |
| 8925 | conftest$ac_exeext conftest.$ac_ext |
| 8926 | fi |
| 8927 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5 |
| 8928 | echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6 |
| 8929 | if test $ac_cv_func_malloc_set_state = yes; then |
| 8930 | : |
| 8931 | else |
| 8932 | doug_lea_malloc=no |
| 8933 | fi |
| 8934 | |
| 8935 | echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5 |
| 8936 | echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6 |
| 8937 | if test "${emacs_cv_var___after_morecore_hook+set}" = set; then |
| 8938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8939 | else |
| 8940 | cat >conftest.$ac_ext <<_ACEOF |
| 8941 | /* confdefs.h. */ |
| 8942 | _ACEOF |
| 8943 | cat confdefs.h >>conftest.$ac_ext |
| 8944 | cat >>conftest.$ac_ext <<_ACEOF |
| 8945 | /* end confdefs.h. */ |
| 8946 | extern void (* __after_morecore_hook)(); |
| 8947 | int |
| 8948 | main () |
| 8949 | { |
| 8950 | __after_morecore_hook = 0 |
| 8951 | ; |
| 8952 | return 0; |
| 8953 | } |
| 8954 | _ACEOF |
| 8955 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8956 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8957 | (eval $ac_link) 2>conftest.er1 |
| 8958 | ac_status=$? |
| 8959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8960 | rm -f conftest.er1 |
| 8961 | cat conftest.err >&5 |
| 8962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8963 | (exit $ac_status); } && |
| 8964 | { ac_try='test -z "$ac_c_werror_flag" |
| 8965 | || test ! -s conftest.err' |
| 8966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8967 | (eval $ac_try) 2>&5 |
| 8968 | ac_status=$? |
| 8969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8970 | (exit $ac_status); }; } && |
| 8971 | { ac_try='test -s conftest$ac_exeext' |
| 8972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8973 | (eval $ac_try) 2>&5 |
| 8974 | ac_status=$? |
| 8975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8976 | (exit $ac_status); }; }; then |
| 8977 | emacs_cv_var___after_morecore_hook=yes |
| 8978 | else |
| 8979 | echo "$as_me: failed program was:" >&5 |
| 8980 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8981 | |
| 8982 | emacs_cv_var___after_morecore_hook=no |
| 8983 | fi |
| 8984 | rm -f conftest.err conftest.$ac_objext \ |
| 8985 | conftest$ac_exeext conftest.$ac_ext |
| 8986 | fi |
| 8987 | echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5 |
| 8988 | echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6 |
| 8989 | if test $emacs_cv_var___after_morecore_hook = no; then |
| 8990 | doug_lea_malloc=no |
| 8991 | fi |
| 8992 | if test "${system_malloc}" = "yes"; then |
| 8993 | GNU_MALLOC=no |
| 8994 | GNU_MALLOC_reason=" |
| 8995 | (The GNU allocators don't work with this system configuration.)" |
| 8996 | fi |
| 8997 | if test "$doug_lea_malloc" = "yes" ; then |
| 8998 | if test "$GNU_MALLOC" = yes ; then |
| 8999 | GNU_MALLOC_reason=" |
| 9000 | (Using Doug Lea's new malloc from the GNU C Library.)" |
| 9001 | fi |
| 9002 | |
| 9003 | cat >>confdefs.h <<\_ACEOF |
| 9004 | #define DOUG_LEA_MALLOC 1 |
| 9005 | _ACEOF |
| 9006 | |
| 9007 | fi |
| 9008 | |
| 9009 | if test x"${REL_ALLOC}" = x; then |
| 9010 | REL_ALLOC=${GNU_MALLOC} |
| 9011 | fi |
| 9012 | |
| 9013 | |
| 9014 | |
| 9015 | |
| 9016 | for ac_header in stdlib.h unistd.h |
| 9017 | do |
| 9018 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9019 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9020 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9021 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9022 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9024 | fi |
| 9025 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9026 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9027 | else |
| 9028 | # Is the header compilable? |
| 9029 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9030 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9031 | cat >conftest.$ac_ext <<_ACEOF |
| 9032 | /* confdefs.h. */ |
| 9033 | _ACEOF |
| 9034 | cat confdefs.h >>conftest.$ac_ext |
| 9035 | cat >>conftest.$ac_ext <<_ACEOF |
| 9036 | /* end confdefs.h. */ |
| 9037 | $ac_includes_default |
| 9038 | #include <$ac_header> |
| 9039 | _ACEOF |
| 9040 | rm -f conftest.$ac_objext |
| 9041 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9042 | (eval $ac_compile) 2>conftest.er1 |
| 9043 | ac_status=$? |
| 9044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9045 | rm -f conftest.er1 |
| 9046 | cat conftest.err >&5 |
| 9047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9048 | (exit $ac_status); } && |
| 9049 | { ac_try='test -z "$ac_c_werror_flag" |
| 9050 | || test ! -s conftest.err' |
| 9051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9052 | (eval $ac_try) 2>&5 |
| 9053 | ac_status=$? |
| 9054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9055 | (exit $ac_status); }; } && |
| 9056 | { ac_try='test -s conftest.$ac_objext' |
| 9057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9058 | (eval $ac_try) 2>&5 |
| 9059 | ac_status=$? |
| 9060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9061 | (exit $ac_status); }; }; then |
| 9062 | ac_header_compiler=yes |
| 9063 | else |
| 9064 | echo "$as_me: failed program was:" >&5 |
| 9065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9066 | |
| 9067 | ac_header_compiler=no |
| 9068 | fi |
| 9069 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9070 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9071 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9072 | |
| 9073 | # Is the header present? |
| 9074 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9075 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9076 | cat >conftest.$ac_ext <<_ACEOF |
| 9077 | /* confdefs.h. */ |
| 9078 | _ACEOF |
| 9079 | cat confdefs.h >>conftest.$ac_ext |
| 9080 | cat >>conftest.$ac_ext <<_ACEOF |
| 9081 | /* end confdefs.h. */ |
| 9082 | #include <$ac_header> |
| 9083 | _ACEOF |
| 9084 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9085 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9086 | ac_status=$? |
| 9087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9088 | rm -f conftest.er1 |
| 9089 | cat conftest.err >&5 |
| 9090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9091 | (exit $ac_status); } >/dev/null; then |
| 9092 | if test -s conftest.err; then |
| 9093 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9094 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9095 | else |
| 9096 | ac_cpp_err= |
| 9097 | fi |
| 9098 | else |
| 9099 | ac_cpp_err=yes |
| 9100 | fi |
| 9101 | if test -z "$ac_cpp_err"; then |
| 9102 | ac_header_preproc=yes |
| 9103 | else |
| 9104 | echo "$as_me: failed program was:" >&5 |
| 9105 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9106 | |
| 9107 | ac_header_preproc=no |
| 9108 | fi |
| 9109 | rm -f conftest.err conftest.$ac_ext |
| 9110 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9111 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9112 | |
| 9113 | # So? What about this header? |
| 9114 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9115 | yes:no: ) |
| 9116 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9117 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9118 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9119 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9120 | ac_header_preproc=yes |
| 9121 | ;; |
| 9122 | no:yes:* ) |
| 9123 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9124 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9125 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9126 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9127 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9128 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9129 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9130 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9131 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9132 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9133 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9134 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9135 | ( |
| 9136 | cat <<\_ASBOX |
| 9137 | ## ------------------------------------------ ## |
| 9138 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9139 | ## ------------------------------------------ ## |
| 9140 | _ASBOX |
| 9141 | ) | |
| 9142 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9143 | ;; |
| 9144 | esac |
| 9145 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9146 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9147 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9149 | else |
| 9150 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9151 | fi |
| 9152 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9153 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9154 | |
| 9155 | fi |
| 9156 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9157 | cat >>confdefs.h <<_ACEOF |
| 9158 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9159 | _ACEOF |
| 9160 | |
| 9161 | fi |
| 9162 | |
| 9163 | done |
| 9164 | |
| 9165 | |
| 9166 | for ac_func in getpagesize |
| 9167 | do |
| 9168 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9169 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9170 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9171 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9173 | else |
| 9174 | cat >conftest.$ac_ext <<_ACEOF |
| 9175 | /* confdefs.h. */ |
| 9176 | _ACEOF |
| 9177 | cat confdefs.h >>conftest.$ac_ext |
| 9178 | cat >>conftest.$ac_ext <<_ACEOF |
| 9179 | /* end confdefs.h. */ |
| 9180 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9181 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9182 | #define $ac_func innocuous_$ac_func |
| 9183 | |
| 9184 | /* System header to define __stub macros and hopefully few prototypes, |
| 9185 | which can conflict with char $ac_func (); below. |
| 9186 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9187 | <limits.h> exists even on freestanding compilers. */ |
| 9188 | |
| 9189 | #ifdef __STDC__ |
| 9190 | # include <limits.h> |
| 9191 | #else |
| 9192 | # include <assert.h> |
| 9193 | #endif |
| 9194 | |
| 9195 | #undef $ac_func |
| 9196 | |
| 9197 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9198 | #ifdef __cplusplus |
| 9199 | extern "C" |
| 9200 | { |
| 9201 | #endif |
| 9202 | /* We use char because int might match the return type of a gcc2 |
| 9203 | builtin and then its argument prototype would still apply. */ |
| 9204 | char $ac_func (); |
| 9205 | /* The GNU C library defines this for functions which it implements |
| 9206 | to always fail with ENOSYS. Some functions are actually named |
| 9207 | something starting with __ and the normal name is an alias. */ |
| 9208 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9209 | choke me |
| 9210 | #else |
| 9211 | char (*f) () = $ac_func; |
| 9212 | #endif |
| 9213 | #ifdef __cplusplus |
| 9214 | } |
| 9215 | #endif |
| 9216 | |
| 9217 | int |
| 9218 | main () |
| 9219 | { |
| 9220 | return f != $ac_func; |
| 9221 | ; |
| 9222 | return 0; |
| 9223 | } |
| 9224 | _ACEOF |
| 9225 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9226 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9227 | (eval $ac_link) 2>conftest.er1 |
| 9228 | ac_status=$? |
| 9229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9230 | rm -f conftest.er1 |
| 9231 | cat conftest.err >&5 |
| 9232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9233 | (exit $ac_status); } && |
| 9234 | { ac_try='test -z "$ac_c_werror_flag" |
| 9235 | || test ! -s conftest.err' |
| 9236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9237 | (eval $ac_try) 2>&5 |
| 9238 | ac_status=$? |
| 9239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9240 | (exit $ac_status); }; } && |
| 9241 | { ac_try='test -s conftest$ac_exeext' |
| 9242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9243 | (eval $ac_try) 2>&5 |
| 9244 | ac_status=$? |
| 9245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9246 | (exit $ac_status); }; }; then |
| 9247 | eval "$as_ac_var=yes" |
| 9248 | else |
| 9249 | echo "$as_me: failed program was:" >&5 |
| 9250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9251 | |
| 9252 | eval "$as_ac_var=no" |
| 9253 | fi |
| 9254 | rm -f conftest.err conftest.$ac_objext \ |
| 9255 | conftest$ac_exeext conftest.$ac_ext |
| 9256 | fi |
| 9257 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9258 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9259 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9260 | cat >>confdefs.h <<_ACEOF |
| 9261 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9262 | _ACEOF |
| 9263 | |
| 9264 | fi |
| 9265 | done |
| 9266 | |
| 9267 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 9268 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
| 9269 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 9270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9271 | else |
| 9272 | if test "$cross_compiling" = yes; then |
| 9273 | ac_cv_func_mmap_fixed_mapped=no |
| 9274 | else |
| 9275 | cat >conftest.$ac_ext <<_ACEOF |
| 9276 | /* confdefs.h. */ |
| 9277 | _ACEOF |
| 9278 | cat confdefs.h >>conftest.$ac_ext |
| 9279 | cat >>conftest.$ac_ext <<_ACEOF |
| 9280 | /* end confdefs.h. */ |
| 9281 | $ac_includes_default |
| 9282 | /* malloc might have been renamed as rpl_malloc. */ |
| 9283 | #undef malloc |
| 9284 | |
| 9285 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 9286 | Here is a matrix of mmap possibilities: |
| 9287 | mmap private not fixed |
| 9288 | mmap private fixed at somewhere currently unmapped |
| 9289 | mmap private fixed at somewhere already mapped |
| 9290 | mmap shared not fixed |
| 9291 | mmap shared fixed at somewhere currently unmapped |
| 9292 | mmap shared fixed at somewhere already mapped |
| 9293 | For private mappings, we should verify that changes cannot be read() |
| 9294 | back from the file, nor mmap's back from the file at a different |
| 9295 | address. (There have been systems where private was not correctly |
| 9296 | implemented like the infamous i386 svr4.0, and systems where the |
| 9297 | VM page cache was not coherent with the file system buffer cache |
| 9298 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 9299 | For shared mappings, we should conversely verify that changes get |
| 9300 | propagated back to all the places they're supposed to be. |
| 9301 | |
| 9302 | Grep wants private fixed already mapped. |
| 9303 | The main things grep needs to know about mmap are: |
| 9304 | * does it exist and is it safe to write into the mmap'd area |
| 9305 | * how to use it (BSD variants) */ |
| 9306 | |
| 9307 | #include <fcntl.h> |
| 9308 | #include <sys/mman.h> |
| 9309 | |
| 9310 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 9311 | char *malloc (); |
| 9312 | #endif |
| 9313 | |
| 9314 | /* This mess was copied from the GNU getpagesize.h. */ |
| 9315 | #if !HAVE_GETPAGESIZE |
| 9316 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 9317 | # if !HAVE_SYS_PARAM_H |
| 9318 | # define HAVE_SYS_PARAM_H 1 |
| 9319 | # endif |
| 9320 | |
| 9321 | # ifdef _SC_PAGESIZE |
| 9322 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 9323 | # else /* no _SC_PAGESIZE */ |
| 9324 | # if HAVE_SYS_PARAM_H |
| 9325 | # include <sys/param.h> |
| 9326 | # ifdef EXEC_PAGESIZE |
| 9327 | # define getpagesize() EXEC_PAGESIZE |
| 9328 | # else /* no EXEC_PAGESIZE */ |
| 9329 | # ifdef NBPG |
| 9330 | # define getpagesize() NBPG * CLSIZE |
| 9331 | # ifndef CLSIZE |
| 9332 | # define CLSIZE 1 |
| 9333 | # endif /* no CLSIZE */ |
| 9334 | # else /* no NBPG */ |
| 9335 | # ifdef NBPC |
| 9336 | # define getpagesize() NBPC |
| 9337 | # else /* no NBPC */ |
| 9338 | # ifdef PAGESIZE |
| 9339 | # define getpagesize() PAGESIZE |
| 9340 | # endif /* PAGESIZE */ |
| 9341 | # endif /* no NBPC */ |
| 9342 | # endif /* no NBPG */ |
| 9343 | # endif /* no EXEC_PAGESIZE */ |
| 9344 | # else /* no HAVE_SYS_PARAM_H */ |
| 9345 | # define getpagesize() 8192 /* punt totally */ |
| 9346 | # endif /* no HAVE_SYS_PARAM_H */ |
| 9347 | # endif /* no _SC_PAGESIZE */ |
| 9348 | |
| 9349 | #endif /* no HAVE_GETPAGESIZE */ |
| 9350 | |
| 9351 | int |
| 9352 | main () |
| 9353 | { |
| 9354 | char *data, *data2, *data3; |
| 9355 | int i, pagesize; |
| 9356 | int fd; |
| 9357 | |
| 9358 | pagesize = getpagesize (); |
| 9359 | |
| 9360 | /* First, make a file with some known garbage in it. */ |
| 9361 | data = (char *) malloc (pagesize); |
| 9362 | if (!data) |
| 9363 | exit (1); |
| 9364 | for (i = 0; i < pagesize; ++i) |
| 9365 | *(data + i) = rand (); |
| 9366 | umask (0); |
| 9367 | fd = creat ("conftest.mmap", 0600); |
| 9368 | if (fd < 0) |
| 9369 | exit (1); |
| 9370 | if (write (fd, data, pagesize) != pagesize) |
| 9371 | exit (1); |
| 9372 | close (fd); |
| 9373 | |
| 9374 | /* Next, try to mmap the file at a fixed address which already has |
| 9375 | something else allocated at it. If we can, also make sure that |
| 9376 | we see the same garbage. */ |
| 9377 | fd = open ("conftest.mmap", O_RDWR); |
| 9378 | if (fd < 0) |
| 9379 | exit (1); |
| 9380 | data2 = (char *) malloc (2 * pagesize); |
| 9381 | if (!data2) |
| 9382 | exit (1); |
| 9383 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
| 9384 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 9385 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 9386 | exit (1); |
| 9387 | for (i = 0; i < pagesize; ++i) |
| 9388 | if (*(data + i) != *(data2 + i)) |
| 9389 | exit (1); |
| 9390 | |
| 9391 | /* Finally, make sure that changes to the mapped area do not |
| 9392 | percolate back to the file as seen by read(). (This is a bug on |
| 9393 | some variants of i386 svr4.0.) */ |
| 9394 | for (i = 0; i < pagesize; ++i) |
| 9395 | *(data2 + i) = *(data2 + i) + 1; |
| 9396 | data3 = (char *) malloc (pagesize); |
| 9397 | if (!data3) |
| 9398 | exit (1); |
| 9399 | if (read (fd, data3, pagesize) != pagesize) |
| 9400 | exit (1); |
| 9401 | for (i = 0; i < pagesize; ++i) |
| 9402 | if (*(data + i) != *(data3 + i)) |
| 9403 | exit (1); |
| 9404 | close (fd); |
| 9405 | exit (0); |
| 9406 | } |
| 9407 | _ACEOF |
| 9408 | rm -f conftest$ac_exeext |
| 9409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9410 | (eval $ac_link) 2>&5 |
| 9411 | ac_status=$? |
| 9412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9413 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9415 | (eval $ac_try) 2>&5 |
| 9416 | ac_status=$? |
| 9417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9418 | (exit $ac_status); }; }; then |
| 9419 | ac_cv_func_mmap_fixed_mapped=yes |
| 9420 | else |
| 9421 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9422 | echo "$as_me: failed program was:" >&5 |
| 9423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9424 | |
| 9425 | ( exit $ac_status ) |
| 9426 | ac_cv_func_mmap_fixed_mapped=no |
| 9427 | fi |
| 9428 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 9429 | fi |
| 9430 | fi |
| 9431 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 9432 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
| 9433 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 9434 | |
| 9435 | cat >>confdefs.h <<\_ACEOF |
| 9436 | #define HAVE_MMAP 1 |
| 9437 | _ACEOF |
| 9438 | |
| 9439 | fi |
| 9440 | rm -f conftest.mmap |
| 9441 | |
| 9442 | if test $use_mmap_for_buffers = yes; then |
| 9443 | REL_ALLOC=no |
| 9444 | fi |
| 9445 | |
| 9446 | LIBS="$libsrc_libs $LIBS" |
| 9447 | |
| 9448 | |
| 9449 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
| 9450 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
| 9451 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 9452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9453 | else |
| 9454 | ac_check_lib_save_LIBS=$LIBS |
| 9455 | LIBS="-ldnet $LIBS" |
| 9456 | cat >conftest.$ac_ext <<_ACEOF |
| 9457 | /* confdefs.h. */ |
| 9458 | _ACEOF |
| 9459 | cat confdefs.h >>conftest.$ac_ext |
| 9460 | cat >>conftest.$ac_ext <<_ACEOF |
| 9461 | /* end confdefs.h. */ |
| 9462 | |
| 9463 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9464 | #ifdef __cplusplus |
| 9465 | extern "C" |
| 9466 | #endif |
| 9467 | /* We use char because int might match the return type of a gcc2 |
| 9468 | builtin and then its argument prototype would still apply. */ |
| 9469 | char dnet_ntoa (); |
| 9470 | int |
| 9471 | main () |
| 9472 | { |
| 9473 | dnet_ntoa (); |
| 9474 | ; |
| 9475 | return 0; |
| 9476 | } |
| 9477 | _ACEOF |
| 9478 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9480 | (eval $ac_link) 2>conftest.er1 |
| 9481 | ac_status=$? |
| 9482 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9483 | rm -f conftest.er1 |
| 9484 | cat conftest.err >&5 |
| 9485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9486 | (exit $ac_status); } && |
| 9487 | { ac_try='test -z "$ac_c_werror_flag" |
| 9488 | || test ! -s conftest.err' |
| 9489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9490 | (eval $ac_try) 2>&5 |
| 9491 | ac_status=$? |
| 9492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9493 | (exit $ac_status); }; } && |
| 9494 | { ac_try='test -s conftest$ac_exeext' |
| 9495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9496 | (eval $ac_try) 2>&5 |
| 9497 | ac_status=$? |
| 9498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9499 | (exit $ac_status); }; }; then |
| 9500 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 9501 | else |
| 9502 | echo "$as_me: failed program was:" >&5 |
| 9503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9504 | |
| 9505 | ac_cv_lib_dnet_dnet_ntoa=no |
| 9506 | fi |
| 9507 | rm -f conftest.err conftest.$ac_objext \ |
| 9508 | conftest$ac_exeext conftest.$ac_ext |
| 9509 | LIBS=$ac_check_lib_save_LIBS |
| 9510 | fi |
| 9511 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 9512 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
| 9513 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
| 9514 | cat >>confdefs.h <<_ACEOF |
| 9515 | #define HAVE_LIBDNET 1 |
| 9516 | _ACEOF |
| 9517 | |
| 9518 | LIBS="-ldnet $LIBS" |
| 9519 | |
| 9520 | fi |
| 9521 | |
| 9522 | |
| 9523 | echo "$as_me:$LINENO: checking for main in -lXbsd" >&5 |
| 9524 | echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6 |
| 9525 | if test "${ac_cv_lib_Xbsd_main+set}" = set; then |
| 9526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9527 | else |
| 9528 | ac_check_lib_save_LIBS=$LIBS |
| 9529 | LIBS="-lXbsd $LIBS" |
| 9530 | cat >conftest.$ac_ext <<_ACEOF |
| 9531 | /* confdefs.h. */ |
| 9532 | _ACEOF |
| 9533 | cat confdefs.h >>conftest.$ac_ext |
| 9534 | cat >>conftest.$ac_ext <<_ACEOF |
| 9535 | /* end confdefs.h. */ |
| 9536 | |
| 9537 | |
| 9538 | int |
| 9539 | main () |
| 9540 | { |
| 9541 | main (); |
| 9542 | ; |
| 9543 | return 0; |
| 9544 | } |
| 9545 | _ACEOF |
| 9546 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9548 | (eval $ac_link) 2>conftest.er1 |
| 9549 | ac_status=$? |
| 9550 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9551 | rm -f conftest.er1 |
| 9552 | cat conftest.err >&5 |
| 9553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9554 | (exit $ac_status); } && |
| 9555 | { ac_try='test -z "$ac_c_werror_flag" |
| 9556 | || test ! -s conftest.err' |
| 9557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9558 | (eval $ac_try) 2>&5 |
| 9559 | ac_status=$? |
| 9560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9561 | (exit $ac_status); }; } && |
| 9562 | { ac_try='test -s conftest$ac_exeext' |
| 9563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9564 | (eval $ac_try) 2>&5 |
| 9565 | ac_status=$? |
| 9566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9567 | (exit $ac_status); }; }; then |
| 9568 | ac_cv_lib_Xbsd_main=yes |
| 9569 | else |
| 9570 | echo "$as_me: failed program was:" >&5 |
| 9571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9572 | |
| 9573 | ac_cv_lib_Xbsd_main=no |
| 9574 | fi |
| 9575 | rm -f conftest.err conftest.$ac_objext \ |
| 9576 | conftest$ac_exeext conftest.$ac_ext |
| 9577 | LIBS=$ac_check_lib_save_LIBS |
| 9578 | fi |
| 9579 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5 |
| 9580 | echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6 |
| 9581 | if test $ac_cv_lib_Xbsd_main = yes; then |
| 9582 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" |
| 9583 | fi |
| 9584 | |
| 9585 | |
| 9586 | |
| 9587 | echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5 |
| 9588 | echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6 |
| 9589 | if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then |
| 9590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9591 | else |
| 9592 | ac_check_lib_save_LIBS=$LIBS |
| 9593 | LIBS="-lpthreads $LIBS" |
| 9594 | cat >conftest.$ac_ext <<_ACEOF |
| 9595 | /* confdefs.h. */ |
| 9596 | _ACEOF |
| 9597 | cat confdefs.h >>conftest.$ac_ext |
| 9598 | cat >>conftest.$ac_ext <<_ACEOF |
| 9599 | /* end confdefs.h. */ |
| 9600 | |
| 9601 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9602 | #ifdef __cplusplus |
| 9603 | extern "C" |
| 9604 | #endif |
| 9605 | /* We use char because int might match the return type of a gcc2 |
| 9606 | builtin and then its argument prototype would still apply. */ |
| 9607 | char cma_open (); |
| 9608 | int |
| 9609 | main () |
| 9610 | { |
| 9611 | cma_open (); |
| 9612 | ; |
| 9613 | return 0; |
| 9614 | } |
| 9615 | _ACEOF |
| 9616 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9617 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9618 | (eval $ac_link) 2>conftest.er1 |
| 9619 | ac_status=$? |
| 9620 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9621 | rm -f conftest.er1 |
| 9622 | cat conftest.err >&5 |
| 9623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9624 | (exit $ac_status); } && |
| 9625 | { ac_try='test -z "$ac_c_werror_flag" |
| 9626 | || test ! -s conftest.err' |
| 9627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9628 | (eval $ac_try) 2>&5 |
| 9629 | ac_status=$? |
| 9630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9631 | (exit $ac_status); }; } && |
| 9632 | { ac_try='test -s conftest$ac_exeext' |
| 9633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9634 | (eval $ac_try) 2>&5 |
| 9635 | ac_status=$? |
| 9636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9637 | (exit $ac_status); }; }; then |
| 9638 | ac_cv_lib_pthreads_cma_open=yes |
| 9639 | else |
| 9640 | echo "$as_me: failed program was:" >&5 |
| 9641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9642 | |
| 9643 | ac_cv_lib_pthreads_cma_open=no |
| 9644 | fi |
| 9645 | rm -f conftest.err conftest.$ac_objext \ |
| 9646 | conftest$ac_exeext conftest.$ac_ext |
| 9647 | LIBS=$ac_check_lib_save_LIBS |
| 9648 | fi |
| 9649 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5 |
| 9650 | echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6 |
| 9651 | if test $ac_cv_lib_pthreads_cma_open = yes; then |
| 9652 | cat >>confdefs.h <<_ACEOF |
| 9653 | #define HAVE_LIBPTHREADS 1 |
| 9654 | _ACEOF |
| 9655 | |
| 9656 | LIBS="-lpthreads $LIBS" |
| 9657 | |
| 9658 | fi |
| 9659 | |
| 9660 | |
| 9661 | echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5 |
| 9662 | echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6 |
| 9663 | if test -d /usr/X386/include; then |
| 9664 | HAVE_XFREE386=yes |
| 9665 | : ${C_SWITCH_X_SITE="-I/usr/X386/include"} |
| 9666 | else |
| 9667 | HAVE_XFREE386=no |
| 9668 | fi |
| 9669 | echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5 |
| 9670 | echo "${ECHO_T}$HAVE_XFREE386" >&6 |
| 9671 | |
| 9672 | |
| 9673 | case ${host_os} in |
| 9674 | aix*) |
| 9675 | echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 |
| 9676 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6 |
| 9677 | if test "${gdb_cv_bigtoc+set}" = set; then |
| 9678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9679 | else |
| 9680 | |
| 9681 | case $GCC in |
| 9682 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; |
| 9683 | *) gdb_cv_bigtoc=-bbigtoc ;; |
| 9684 | esac |
| 9685 | |
| 9686 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc |
| 9687 | cat >conftest.$ac_ext <<_ACEOF |
| 9688 | /* confdefs.h. */ |
| 9689 | _ACEOF |
| 9690 | cat confdefs.h >>conftest.$ac_ext |
| 9691 | cat >>conftest.$ac_ext <<_ACEOF |
| 9692 | /* end confdefs.h. */ |
| 9693 | |
| 9694 | int |
| 9695 | main () |
| 9696 | { |
| 9697 | int i; |
| 9698 | ; |
| 9699 | return 0; |
| 9700 | } |
| 9701 | _ACEOF |
| 9702 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9704 | (eval $ac_link) 2>conftest.er1 |
| 9705 | ac_status=$? |
| 9706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9707 | rm -f conftest.er1 |
| 9708 | cat conftest.err >&5 |
| 9709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9710 | (exit $ac_status); } && |
| 9711 | { ac_try='test -z "$ac_c_werror_flag" |
| 9712 | || test ! -s conftest.err' |
| 9713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9714 | (eval $ac_try) 2>&5 |
| 9715 | ac_status=$? |
| 9716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9717 | (exit $ac_status); }; } && |
| 9718 | { ac_try='test -s conftest$ac_exeext' |
| 9719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9720 | (eval $ac_try) 2>&5 |
| 9721 | ac_status=$? |
| 9722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9723 | (exit $ac_status); }; }; then |
| 9724 | : |
| 9725 | else |
| 9726 | echo "$as_me: failed program was:" >&5 |
| 9727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9728 | |
| 9729 | gdb_cv_bigtoc= |
| 9730 | fi |
| 9731 | rm -f conftest.err conftest.$ac_objext \ |
| 9732 | conftest$ac_exeext conftest.$ac_ext |
| 9733 | |
| 9734 | fi |
| 9735 | echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 |
| 9736 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6 |
| 9737 | ;; |
| 9738 | esac |
| 9739 | |
| 9740 | # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets |
| 9741 | # used for the tests that follow. We set them back to REAL_CFLAGS and |
| 9742 | # REAL_CPPFLAGS later on. |
| 9743 | |
| 9744 | REAL_CPPFLAGS="$CPPFLAGS" |
| 9745 | |
| 9746 | if test "${HAVE_X11}" = "yes"; then |
| 9747 | DEFS="$C_SWITCH_X_SITE $DEFS" |
| 9748 | LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" |
| 9749 | LIBS="$LIBX $LIBS" |
| 9750 | CFLAGS="$C_SWITCH_X_SITE $CFLAGS" |
| 9751 | CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" |
| 9752 | |
| 9753 | # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. |
| 9754 | # This is handled by LD_SWITCH_X_SITE_AUX during the real build, |
| 9755 | # but it's more convenient here to set LD_RUN_PATH |
| 9756 | # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. |
| 9757 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then |
| 9758 | LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH |
| 9759 | export LD_RUN_PATH |
| 9760 | fi |
| 9761 | |
| 9762 | if test "${opsys}" = "gnu-linux"; then |
| 9763 | echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5 |
| 9764 | echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6 |
| 9765 | cat >conftest.$ac_ext <<_ACEOF |
| 9766 | /* confdefs.h. */ |
| 9767 | _ACEOF |
| 9768 | cat confdefs.h >>conftest.$ac_ext |
| 9769 | cat >>conftest.$ac_ext <<_ACEOF |
| 9770 | /* end confdefs.h. */ |
| 9771 | |
| 9772 | int |
| 9773 | main () |
| 9774 | { |
| 9775 | XOpenDisplay ("foo"); |
| 9776 | ; |
| 9777 | return 0; |
| 9778 | } |
| 9779 | _ACEOF |
| 9780 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9782 | (eval $ac_link) 2>conftest.er1 |
| 9783 | ac_status=$? |
| 9784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9785 | rm -f conftest.er1 |
| 9786 | cat conftest.err >&5 |
| 9787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9788 | (exit $ac_status); } && |
| 9789 | { ac_try='test -z "$ac_c_werror_flag" |
| 9790 | || test ! -s conftest.err' |
| 9791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9792 | (eval $ac_try) 2>&5 |
| 9793 | ac_status=$? |
| 9794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9795 | (exit $ac_status); }; } && |
| 9796 | { ac_try='test -s conftest$ac_exeext' |
| 9797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9798 | (eval $ac_try) 2>&5 |
| 9799 | ac_status=$? |
| 9800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9801 | (exit $ac_status); }; }; then |
| 9802 | xlinux_first_failure=no |
| 9803 | else |
| 9804 | echo "$as_me: failed program was:" >&5 |
| 9805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9806 | |
| 9807 | xlinux_first_failure=yes |
| 9808 | fi |
| 9809 | rm -f conftest.err conftest.$ac_objext \ |
| 9810 | conftest$ac_exeext conftest.$ac_ext |
| 9811 | if test "${xlinux_first_failure}" = "yes"; then |
| 9812 | OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" |
| 9813 | OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" |
| 9814 | OLD_CPPFLAGS="$CPPFLAGS" |
| 9815 | OLD_LIBS="$LIBS" |
| 9816 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" |
| 9817 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" |
| 9818 | CPPFLAGS="$CPPFLAGS -b i486-linuxaout" |
| 9819 | LIBS="$LIBS -b i486-linuxaout" |
| 9820 | cat >conftest.$ac_ext <<_ACEOF |
| 9821 | /* confdefs.h. */ |
| 9822 | _ACEOF |
| 9823 | cat confdefs.h >>conftest.$ac_ext |
| 9824 | cat >>conftest.$ac_ext <<_ACEOF |
| 9825 | /* end confdefs.h. */ |
| 9826 | |
| 9827 | int |
| 9828 | main () |
| 9829 | { |
| 9830 | XOpenDisplay ("foo"); |
| 9831 | ; |
| 9832 | return 0; |
| 9833 | } |
| 9834 | _ACEOF |
| 9835 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9837 | (eval $ac_link) 2>conftest.er1 |
| 9838 | ac_status=$? |
| 9839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9840 | rm -f conftest.er1 |
| 9841 | cat conftest.err >&5 |
| 9842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9843 | (exit $ac_status); } && |
| 9844 | { ac_try='test -z "$ac_c_werror_flag" |
| 9845 | || test ! -s conftest.err' |
| 9846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9847 | (eval $ac_try) 2>&5 |
| 9848 | ac_status=$? |
| 9849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9850 | (exit $ac_status); }; } && |
| 9851 | { ac_try='test -s conftest$ac_exeext' |
| 9852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9853 | (eval $ac_try) 2>&5 |
| 9854 | ac_status=$? |
| 9855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9856 | (exit $ac_status); }; }; then |
| 9857 | xlinux_second_failure=no |
| 9858 | else |
| 9859 | echo "$as_me: failed program was:" >&5 |
| 9860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9861 | |
| 9862 | xlinux_second_failure=yes |
| 9863 | fi |
| 9864 | rm -f conftest.err conftest.$ac_objext \ |
| 9865 | conftest$ac_exeext conftest.$ac_ext |
| 9866 | if test "${xlinux_second_failure}" = "yes"; then |
| 9867 | # If we get the same failure with -b, there is no use adding -b. |
| 9868 | # So take it out. This plays safe. |
| 9869 | LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" |
| 9870 | C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" |
| 9871 | CPPFLAGS="$OLD_CPPFLAGS" |
| 9872 | LIBS="$OLD_LIBS" |
| 9873 | echo "$as_me:$LINENO: result: no" >&5 |
| 9874 | echo "${ECHO_T}no" >&6 |
| 9875 | else |
| 9876 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9877 | echo "${ECHO_T}yes" >&6 |
| 9878 | fi |
| 9879 | else |
| 9880 | echo "$as_me:$LINENO: result: no" >&5 |
| 9881 | echo "${ECHO_T}no" >&6 |
| 9882 | fi |
| 9883 | fi |
| 9884 | |
| 9885 | # Reportedly, some broken Solaris systems have XKBlib.h but are missing |
| 9886 | # header files included from there. |
| 9887 | echo "$as_me:$LINENO: checking for Xkb" >&5 |
| 9888 | echo $ECHO_N "checking for Xkb... $ECHO_C" >&6 |
| 9889 | cat >conftest.$ac_ext <<_ACEOF |
| 9890 | /* confdefs.h. */ |
| 9891 | _ACEOF |
| 9892 | cat confdefs.h >>conftest.$ac_ext |
| 9893 | cat >>conftest.$ac_ext <<_ACEOF |
| 9894 | /* end confdefs.h. */ |
| 9895 | #include <X11/Xlib.h> |
| 9896 | #include <X11/XKBlib.h> |
| 9897 | int |
| 9898 | main () |
| 9899 | { |
| 9900 | XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); |
| 9901 | ; |
| 9902 | return 0; |
| 9903 | } |
| 9904 | _ACEOF |
| 9905 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9906 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9907 | (eval $ac_link) 2>conftest.er1 |
| 9908 | ac_status=$? |
| 9909 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9910 | rm -f conftest.er1 |
| 9911 | cat conftest.err >&5 |
| 9912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9913 | (exit $ac_status); } && |
| 9914 | { ac_try='test -z "$ac_c_werror_flag" |
| 9915 | || test ! -s conftest.err' |
| 9916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9917 | (eval $ac_try) 2>&5 |
| 9918 | ac_status=$? |
| 9919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9920 | (exit $ac_status); }; } && |
| 9921 | { ac_try='test -s conftest$ac_exeext' |
| 9922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9923 | (eval $ac_try) 2>&5 |
| 9924 | ac_status=$? |
| 9925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9926 | (exit $ac_status); }; }; then |
| 9927 | emacs_xkb=yes |
| 9928 | else |
| 9929 | echo "$as_me: failed program was:" >&5 |
| 9930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9931 | |
| 9932 | emacs_xkb=no |
| 9933 | fi |
| 9934 | rm -f conftest.err conftest.$ac_objext \ |
| 9935 | conftest$ac_exeext conftest.$ac_ext |
| 9936 | echo "$as_me:$LINENO: result: $emacs_xkb" >&5 |
| 9937 | echo "${ECHO_T}$emacs_xkb" >&6 |
| 9938 | if test $emacs_xkb = yes; then |
| 9939 | |
| 9940 | cat >>confdefs.h <<\_ACEOF |
| 9941 | #define HAVE_XKBGETKEYBOARD 1 |
| 9942 | _ACEOF |
| 9943 | |
| 9944 | fi |
| 9945 | |
| 9946 | |
| 9947 | |
| 9948 | |
| 9949 | |
| 9950 | for ac_func in XrmSetDatabase XScreenResourceString \ |
| 9951 | XScreenNumberOfScreen XSetWMProtocols |
| 9952 | do |
| 9953 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9954 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9955 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9956 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9958 | else |
| 9959 | cat >conftest.$ac_ext <<_ACEOF |
| 9960 | /* confdefs.h. */ |
| 9961 | _ACEOF |
| 9962 | cat confdefs.h >>conftest.$ac_ext |
| 9963 | cat >>conftest.$ac_ext <<_ACEOF |
| 9964 | /* end confdefs.h. */ |
| 9965 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9966 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9967 | #define $ac_func innocuous_$ac_func |
| 9968 | |
| 9969 | /* System header to define __stub macros and hopefully few prototypes, |
| 9970 | which can conflict with char $ac_func (); below. |
| 9971 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9972 | <limits.h> exists even on freestanding compilers. */ |
| 9973 | |
| 9974 | #ifdef __STDC__ |
| 9975 | # include <limits.h> |
| 9976 | #else |
| 9977 | # include <assert.h> |
| 9978 | #endif |
| 9979 | |
| 9980 | #undef $ac_func |
| 9981 | |
| 9982 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9983 | #ifdef __cplusplus |
| 9984 | extern "C" |
| 9985 | { |
| 9986 | #endif |
| 9987 | /* We use char because int might match the return type of a gcc2 |
| 9988 | builtin and then its argument prototype would still apply. */ |
| 9989 | char $ac_func (); |
| 9990 | /* The GNU C library defines this for functions which it implements |
| 9991 | to always fail with ENOSYS. Some functions are actually named |
| 9992 | something starting with __ and the normal name is an alias. */ |
| 9993 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9994 | choke me |
| 9995 | #else |
| 9996 | char (*f) () = $ac_func; |
| 9997 | #endif |
| 9998 | #ifdef __cplusplus |
| 9999 | } |
| 10000 | #endif |
| 10001 | |
| 10002 | int |
| 10003 | main () |
| 10004 | { |
| 10005 | return f != $ac_func; |
| 10006 | ; |
| 10007 | return 0; |
| 10008 | } |
| 10009 | _ACEOF |
| 10010 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10011 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10012 | (eval $ac_link) 2>conftest.er1 |
| 10013 | ac_status=$? |
| 10014 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10015 | rm -f conftest.er1 |
| 10016 | cat conftest.err >&5 |
| 10017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10018 | (exit $ac_status); } && |
| 10019 | { ac_try='test -z "$ac_c_werror_flag" |
| 10020 | || test ! -s conftest.err' |
| 10021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10022 | (eval $ac_try) 2>&5 |
| 10023 | ac_status=$? |
| 10024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10025 | (exit $ac_status); }; } && |
| 10026 | { ac_try='test -s conftest$ac_exeext' |
| 10027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10028 | (eval $ac_try) 2>&5 |
| 10029 | ac_status=$? |
| 10030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10031 | (exit $ac_status); }; }; then |
| 10032 | eval "$as_ac_var=yes" |
| 10033 | else |
| 10034 | echo "$as_me: failed program was:" >&5 |
| 10035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10036 | |
| 10037 | eval "$as_ac_var=no" |
| 10038 | fi |
| 10039 | rm -f conftest.err conftest.$ac_objext \ |
| 10040 | conftest$ac_exeext conftest.$ac_ext |
| 10041 | fi |
| 10042 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 10043 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 10044 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10045 | cat >>confdefs.h <<_ACEOF |
| 10046 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10047 | _ACEOF |
| 10048 | |
| 10049 | fi |
| 10050 | done |
| 10051 | |
| 10052 | fi |
| 10053 | |
| 10054 | if test "${window_system}" = "x11"; then |
| 10055 | echo "$as_me:$LINENO: checking X11 version 6" >&5 |
| 10056 | echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6 |
| 10057 | if test "${emacs_cv_x11_version_6+set}" = set; then |
| 10058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10059 | else |
| 10060 | cat >conftest.$ac_ext <<_ACEOF |
| 10061 | /* confdefs.h. */ |
| 10062 | _ACEOF |
| 10063 | cat confdefs.h >>conftest.$ac_ext |
| 10064 | cat >>conftest.$ac_ext <<_ACEOF |
| 10065 | /* end confdefs.h. */ |
| 10066 | #include <X11/Xlib.h> |
| 10067 | int |
| 10068 | main () |
| 10069 | { |
| 10070 | #if XlibSpecificationRelease < 6 |
| 10071 | fail; |
| 10072 | #endif |
| 10073 | |
| 10074 | ; |
| 10075 | return 0; |
| 10076 | } |
| 10077 | _ACEOF |
| 10078 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10079 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10080 | (eval $ac_link) 2>conftest.er1 |
| 10081 | ac_status=$? |
| 10082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10083 | rm -f conftest.er1 |
| 10084 | cat conftest.err >&5 |
| 10085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10086 | (exit $ac_status); } && |
| 10087 | { ac_try='test -z "$ac_c_werror_flag" |
| 10088 | || test ! -s conftest.err' |
| 10089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10090 | (eval $ac_try) 2>&5 |
| 10091 | ac_status=$? |
| 10092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10093 | (exit $ac_status); }; } && |
| 10094 | { ac_try='test -s conftest$ac_exeext' |
| 10095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10096 | (eval $ac_try) 2>&5 |
| 10097 | ac_status=$? |
| 10098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10099 | (exit $ac_status); }; }; then |
| 10100 | emacs_cv_x11_version_6=yes |
| 10101 | else |
| 10102 | echo "$as_me: failed program was:" >&5 |
| 10103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10104 | |
| 10105 | emacs_cv_x11_version_6=no |
| 10106 | fi |
| 10107 | rm -f conftest.err conftest.$ac_objext \ |
| 10108 | conftest$ac_exeext conftest.$ac_ext |
| 10109 | fi |
| 10110 | |
| 10111 | if test $emacs_cv_x11_version_6 = yes; then |
| 10112 | echo "$as_me:$LINENO: result: 6 or newer" >&5 |
| 10113 | echo "${ECHO_T}6 or newer" >&6 |
| 10114 | |
| 10115 | cat >>confdefs.h <<\_ACEOF |
| 10116 | #define HAVE_X11R6 1 |
| 10117 | _ACEOF |
| 10118 | |
| 10119 | else |
| 10120 | echo "$as_me:$LINENO: result: before 6" >&5 |
| 10121 | echo "${ECHO_T}before 6" >&6 |
| 10122 | fi |
| 10123 | fi |
| 10124 | |
| 10125 | if test "${window_system}" = "x11"; then |
| 10126 | echo "$as_me:$LINENO: checking X11 version 5" >&5 |
| 10127 | echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6 |
| 10128 | if test "${emacs_cv_x11_version_5+set}" = set; then |
| 10129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10130 | else |
| 10131 | cat >conftest.$ac_ext <<_ACEOF |
| 10132 | /* confdefs.h. */ |
| 10133 | _ACEOF |
| 10134 | cat confdefs.h >>conftest.$ac_ext |
| 10135 | cat >>conftest.$ac_ext <<_ACEOF |
| 10136 | /* end confdefs.h. */ |
| 10137 | #include <X11/Xlib.h> |
| 10138 | int |
| 10139 | main () |
| 10140 | { |
| 10141 | #if XlibSpecificationRelease < 5 |
| 10142 | fail; |
| 10143 | #endif |
| 10144 | |
| 10145 | ; |
| 10146 | return 0; |
| 10147 | } |
| 10148 | _ACEOF |
| 10149 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10151 | (eval $ac_link) 2>conftest.er1 |
| 10152 | ac_status=$? |
| 10153 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10154 | rm -f conftest.er1 |
| 10155 | cat conftest.err >&5 |
| 10156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10157 | (exit $ac_status); } && |
| 10158 | { ac_try='test -z "$ac_c_werror_flag" |
| 10159 | || test ! -s conftest.err' |
| 10160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10161 | (eval $ac_try) 2>&5 |
| 10162 | ac_status=$? |
| 10163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10164 | (exit $ac_status); }; } && |
| 10165 | { ac_try='test -s conftest$ac_exeext' |
| 10166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10167 | (eval $ac_try) 2>&5 |
| 10168 | ac_status=$? |
| 10169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10170 | (exit $ac_status); }; }; then |
| 10171 | emacs_cv_x11_version_5=yes |
| 10172 | else |
| 10173 | echo "$as_me: failed program was:" >&5 |
| 10174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10175 | |
| 10176 | emacs_cv_x11_version_5=no |
| 10177 | fi |
| 10178 | rm -f conftest.err conftest.$ac_objext \ |
| 10179 | conftest$ac_exeext conftest.$ac_ext |
| 10180 | fi |
| 10181 | |
| 10182 | if test $emacs_cv_x11_version_5 = yes; then |
| 10183 | echo "$as_me:$LINENO: result: 5 or newer" >&5 |
| 10184 | echo "${ECHO_T}5 or newer" >&6 |
| 10185 | HAVE_X11R5=yes |
| 10186 | |
| 10187 | cat >>confdefs.h <<\_ACEOF |
| 10188 | #define HAVE_X11R5 1 |
| 10189 | _ACEOF |
| 10190 | |
| 10191 | else |
| 10192 | HAVE_X11R5=no |
| 10193 | echo "$as_me:$LINENO: result: before 5" >&5 |
| 10194 | echo "${ECHO_T}before 5" >&6 |
| 10195 | fi |
| 10196 | fi |
| 10197 | |
| 10198 | |
| 10199 | |
| 10200 | HAVE_GTK=no |
| 10201 | if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then |
| 10202 | if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then |
| 10203 | { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5 |
| 10204 | echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;} |
| 10205 | { (exit 1); exit 1; }; }; |
| 10206 | fi |
| 10207 | GLIB_REQUIRED=2.4 |
| 10208 | GTK_REQUIRED=2.4 |
| 10209 | GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED" |
| 10210 | |
| 10211 | if test "X${with_pkg_config_prog}" != X; then |
| 10212 | PKG_CONFIG="${with_pkg_config_prog}" |
| 10213 | fi |
| 10214 | |
| 10215 | succeeded=no |
| 10216 | |
| 10217 | if test -z "$PKG_CONFIG"; then |
| 10218 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 10219 | set dummy pkg-config; ac_word=$2 |
| 10220 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10222 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 10223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10224 | else |
| 10225 | case $PKG_CONFIG in |
| 10226 | [\\/]* | ?:[\\/]*) |
| 10227 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 10228 | ;; |
| 10229 | *) |
| 10230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10231 | for as_dir in $PATH |
| 10232 | do |
| 10233 | IFS=$as_save_IFS |
| 10234 | test -z "$as_dir" && as_dir=. |
| 10235 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10236 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10237 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 10238 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10239 | break 2 |
| 10240 | fi |
| 10241 | done |
| 10242 | done |
| 10243 | |
| 10244 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
| 10245 | ;; |
| 10246 | esac |
| 10247 | fi |
| 10248 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 10249 | |
| 10250 | if test -n "$PKG_CONFIG"; then |
| 10251 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 10252 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
| 10253 | else |
| 10254 | echo "$as_me:$LINENO: result: no" >&5 |
| 10255 | echo "${ECHO_T}no" >&6 |
| 10256 | fi |
| 10257 | |
| 10258 | fi |
| 10259 | |
| 10260 | if test "$PKG_CONFIG" = "no" ; then |
| 10261 | echo "*** The pkg-config script could not be found. Make sure it is" |
| 10262 | echo "*** in your path, or give the full path to pkg-config with" |
| 10263 | echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog." |
| 10264 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." |
| 10265 | else |
| 10266 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 10267 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 10268 | echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5 |
| 10269 | echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6 |
| 10270 | |
| 10271 | if $PKG_CONFIG --exists "$GTK_MODULES" ; then |
| 10272 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10273 | echo "${ECHO_T}yes" >&6 |
| 10274 | succeeded=yes |
| 10275 | |
| 10276 | echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5 |
| 10277 | echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6 |
| 10278 | GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"` |
| 10279 | echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5 |
| 10280 | echo "${ECHO_T}$GTK_CFLAGS" >&6 |
| 10281 | |
| 10282 | echo "$as_me:$LINENO: checking GTK_LIBS" >&5 |
| 10283 | echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6 |
| 10284 | GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"` |
| 10285 | echo "$as_me:$LINENO: result: $GTK_LIBS" >&5 |
| 10286 | echo "${ECHO_T}$GTK_LIBS" >&6 |
| 10287 | else |
| 10288 | GTK_CFLAGS="" |
| 10289 | GTK_LIBS="" |
| 10290 | ## If we have a custom action on failure, don't print errors, but |
| 10291 | ## do set a variable so people can do so. |
| 10292 | GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"` |
| 10293 | echo $GTK_PKG_ERRORS |
| 10294 | fi |
| 10295 | |
| 10296 | |
| 10297 | |
| 10298 | else |
| 10299 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 10300 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 10301 | fi |
| 10302 | fi |
| 10303 | |
| 10304 | if test $succeeded = yes; then |
| 10305 | : |
| 10306 | else |
| 10307 | { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5 |
| 10308 | echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;} |
| 10309 | { (exit 1); exit 1; }; } |
| 10310 | fi |
| 10311 | |
| 10312 | |
| 10313 | |
| 10314 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" |
| 10315 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 10316 | LIBS="$GTK_LIBS $LIBS" |
| 10317 | HAVE_GTK=yes |
| 10318 | |
| 10319 | cat >>confdefs.h <<\_ACEOF |
| 10320 | #define HAVE_GTK 1 |
| 10321 | _ACEOF |
| 10322 | |
| 10323 | USE_X_TOOLKIT=none |
| 10324 | |
| 10325 | if test "$with_toolkit_scroll_bars" != no; then |
| 10326 | with_toolkit_scroll_bars=yes |
| 10327 | fi |
| 10328 | |
| 10329 | HAVE_GTK_MULTIDISPLAY=no |
| 10330 | |
| 10331 | for ac_func in gdk_display_open |
| 10332 | do |
| 10333 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10334 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10335 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 10336 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 10337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10338 | else |
| 10339 | cat >conftest.$ac_ext <<_ACEOF |
| 10340 | /* confdefs.h. */ |
| 10341 | _ACEOF |
| 10342 | cat confdefs.h >>conftest.$ac_ext |
| 10343 | cat >>conftest.$ac_ext <<_ACEOF |
| 10344 | /* end confdefs.h. */ |
| 10345 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10346 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10347 | #define $ac_func innocuous_$ac_func |
| 10348 | |
| 10349 | /* System header to define __stub macros and hopefully few prototypes, |
| 10350 | which can conflict with char $ac_func (); below. |
| 10351 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10352 | <limits.h> exists even on freestanding compilers. */ |
| 10353 | |
| 10354 | #ifdef __STDC__ |
| 10355 | # include <limits.h> |
| 10356 | #else |
| 10357 | # include <assert.h> |
| 10358 | #endif |
| 10359 | |
| 10360 | #undef $ac_func |
| 10361 | |
| 10362 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10363 | #ifdef __cplusplus |
| 10364 | extern "C" |
| 10365 | { |
| 10366 | #endif |
| 10367 | /* We use char because int might match the return type of a gcc2 |
| 10368 | builtin and then its argument prototype would still apply. */ |
| 10369 | char $ac_func (); |
| 10370 | /* The GNU C library defines this for functions which it implements |
| 10371 | to always fail with ENOSYS. Some functions are actually named |
| 10372 | something starting with __ and the normal name is an alias. */ |
| 10373 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 10374 | choke me |
| 10375 | #else |
| 10376 | char (*f) () = $ac_func; |
| 10377 | #endif |
| 10378 | #ifdef __cplusplus |
| 10379 | } |
| 10380 | #endif |
| 10381 | |
| 10382 | int |
| 10383 | main () |
| 10384 | { |
| 10385 | return f != $ac_func; |
| 10386 | ; |
| 10387 | return 0; |
| 10388 | } |
| 10389 | _ACEOF |
| 10390 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10391 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10392 | (eval $ac_link) 2>conftest.er1 |
| 10393 | ac_status=$? |
| 10394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10395 | rm -f conftest.er1 |
| 10396 | cat conftest.err >&5 |
| 10397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10398 | (exit $ac_status); } && |
| 10399 | { ac_try='test -z "$ac_c_werror_flag" |
| 10400 | || test ! -s conftest.err' |
| 10401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10402 | (eval $ac_try) 2>&5 |
| 10403 | ac_status=$? |
| 10404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10405 | (exit $ac_status); }; } && |
| 10406 | { ac_try='test -s conftest$ac_exeext' |
| 10407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10408 | (eval $ac_try) 2>&5 |
| 10409 | ac_status=$? |
| 10410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10411 | (exit $ac_status); }; }; then |
| 10412 | eval "$as_ac_var=yes" |
| 10413 | else |
| 10414 | echo "$as_me: failed program was:" >&5 |
| 10415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10416 | |
| 10417 | eval "$as_ac_var=no" |
| 10418 | fi |
| 10419 | rm -f conftest.err conftest.$ac_objext \ |
| 10420 | conftest$ac_exeext conftest.$ac_ext |
| 10421 | fi |
| 10422 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 10423 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 10424 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10425 | cat >>confdefs.h <<_ACEOF |
| 10426 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10427 | _ACEOF |
| 10428 | HAVE_GTK_MULTIDISPLAY=yes |
| 10429 | fi |
| 10430 | done |
| 10431 | |
| 10432 | if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then |
| 10433 | |
| 10434 | cat >>confdefs.h <<\_ACEOF |
| 10435 | #define HAVE_GTK_MULTIDISPLAY 1 |
| 10436 | _ACEOF |
| 10437 | |
| 10438 | fi |
| 10439 | HAVE_GTK_FILE_SELECTION=no |
| 10440 | |
| 10441 | for ac_func in gtk_file_selection_new |
| 10442 | do |
| 10443 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10444 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10445 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 10446 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 10447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10448 | else |
| 10449 | cat >conftest.$ac_ext <<_ACEOF |
| 10450 | /* confdefs.h. */ |
| 10451 | _ACEOF |
| 10452 | cat confdefs.h >>conftest.$ac_ext |
| 10453 | cat >>conftest.$ac_ext <<_ACEOF |
| 10454 | /* end confdefs.h. */ |
| 10455 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10456 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10457 | #define $ac_func innocuous_$ac_func |
| 10458 | |
| 10459 | /* System header to define __stub macros and hopefully few prototypes, |
| 10460 | which can conflict with char $ac_func (); below. |
| 10461 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10462 | <limits.h> exists even on freestanding compilers. */ |
| 10463 | |
| 10464 | #ifdef __STDC__ |
| 10465 | # include <limits.h> |
| 10466 | #else |
| 10467 | # include <assert.h> |
| 10468 | #endif |
| 10469 | |
| 10470 | #undef $ac_func |
| 10471 | |
| 10472 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10473 | #ifdef __cplusplus |
| 10474 | extern "C" |
| 10475 | { |
| 10476 | #endif |
| 10477 | /* We use char because int might match the return type of a gcc2 |
| 10478 | builtin and then its argument prototype would still apply. */ |
| 10479 | char $ac_func (); |
| 10480 | /* The GNU C library defines this for functions which it implements |
| 10481 | to always fail with ENOSYS. Some functions are actually named |
| 10482 | something starting with __ and the normal name is an alias. */ |
| 10483 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 10484 | choke me |
| 10485 | #else |
| 10486 | char (*f) () = $ac_func; |
| 10487 | #endif |
| 10488 | #ifdef __cplusplus |
| 10489 | } |
| 10490 | #endif |
| 10491 | |
| 10492 | int |
| 10493 | main () |
| 10494 | { |
| 10495 | return f != $ac_func; |
| 10496 | ; |
| 10497 | return 0; |
| 10498 | } |
| 10499 | _ACEOF |
| 10500 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10502 | (eval $ac_link) 2>conftest.er1 |
| 10503 | ac_status=$? |
| 10504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10505 | rm -f conftest.er1 |
| 10506 | cat conftest.err >&5 |
| 10507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10508 | (exit $ac_status); } && |
| 10509 | { ac_try='test -z "$ac_c_werror_flag" |
| 10510 | || test ! -s conftest.err' |
| 10511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10512 | (eval $ac_try) 2>&5 |
| 10513 | ac_status=$? |
| 10514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10515 | (exit $ac_status); }; } && |
| 10516 | { ac_try='test -s conftest$ac_exeext' |
| 10517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10518 | (eval $ac_try) 2>&5 |
| 10519 | ac_status=$? |
| 10520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10521 | (exit $ac_status); }; }; then |
| 10522 | eval "$as_ac_var=yes" |
| 10523 | else |
| 10524 | echo "$as_me: failed program was:" >&5 |
| 10525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10526 | |
| 10527 | eval "$as_ac_var=no" |
| 10528 | fi |
| 10529 | rm -f conftest.err conftest.$ac_objext \ |
| 10530 | conftest$ac_exeext conftest.$ac_ext |
| 10531 | fi |
| 10532 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 10533 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 10534 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10535 | cat >>confdefs.h <<_ACEOF |
| 10536 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10537 | _ACEOF |
| 10538 | HAVE_GTK_FILE_SELECTION=yes |
| 10539 | fi |
| 10540 | done |
| 10541 | |
| 10542 | |
| 10543 | HAVE_GTK_FILE_CHOOSER=no |
| 10544 | |
| 10545 | for ac_func in gtk_file_chooser_dialog_new |
| 10546 | do |
| 10547 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10548 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10549 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 10550 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 10551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10552 | else |
| 10553 | cat >conftest.$ac_ext <<_ACEOF |
| 10554 | /* confdefs.h. */ |
| 10555 | _ACEOF |
| 10556 | cat confdefs.h >>conftest.$ac_ext |
| 10557 | cat >>conftest.$ac_ext <<_ACEOF |
| 10558 | /* end confdefs.h. */ |
| 10559 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10560 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10561 | #define $ac_func innocuous_$ac_func |
| 10562 | |
| 10563 | /* System header to define __stub macros and hopefully few prototypes, |
| 10564 | which can conflict with char $ac_func (); below. |
| 10565 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10566 | <limits.h> exists even on freestanding compilers. */ |
| 10567 | |
| 10568 | #ifdef __STDC__ |
| 10569 | # include <limits.h> |
| 10570 | #else |
| 10571 | # include <assert.h> |
| 10572 | #endif |
| 10573 | |
| 10574 | #undef $ac_func |
| 10575 | |
| 10576 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10577 | #ifdef __cplusplus |
| 10578 | extern "C" |
| 10579 | { |
| 10580 | #endif |
| 10581 | /* We use char because int might match the return type of a gcc2 |
| 10582 | builtin and then its argument prototype would still apply. */ |
| 10583 | char $ac_func (); |
| 10584 | /* The GNU C library defines this for functions which it implements |
| 10585 | to always fail with ENOSYS. Some functions are actually named |
| 10586 | something starting with __ and the normal name is an alias. */ |
| 10587 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 10588 | choke me |
| 10589 | #else |
| 10590 | char (*f) () = $ac_func; |
| 10591 | #endif |
| 10592 | #ifdef __cplusplus |
| 10593 | } |
| 10594 | #endif |
| 10595 | |
| 10596 | int |
| 10597 | main () |
| 10598 | { |
| 10599 | return f != $ac_func; |
| 10600 | ; |
| 10601 | return 0; |
| 10602 | } |
| 10603 | _ACEOF |
| 10604 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10606 | (eval $ac_link) 2>conftest.er1 |
| 10607 | ac_status=$? |
| 10608 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10609 | rm -f conftest.er1 |
| 10610 | cat conftest.err >&5 |
| 10611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10612 | (exit $ac_status); } && |
| 10613 | { ac_try='test -z "$ac_c_werror_flag" |
| 10614 | || test ! -s conftest.err' |
| 10615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10616 | (eval $ac_try) 2>&5 |
| 10617 | ac_status=$? |
| 10618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10619 | (exit $ac_status); }; } && |
| 10620 | { ac_try='test -s conftest$ac_exeext' |
| 10621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10622 | (eval $ac_try) 2>&5 |
| 10623 | ac_status=$? |
| 10624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10625 | (exit $ac_status); }; }; then |
| 10626 | eval "$as_ac_var=yes" |
| 10627 | else |
| 10628 | echo "$as_me: failed program was:" >&5 |
| 10629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10630 | |
| 10631 | eval "$as_ac_var=no" |
| 10632 | fi |
| 10633 | rm -f conftest.err conftest.$ac_objext \ |
| 10634 | conftest$ac_exeext conftest.$ac_ext |
| 10635 | fi |
| 10636 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 10637 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 10638 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10639 | cat >>confdefs.h <<_ACEOF |
| 10640 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10641 | _ACEOF |
| 10642 | HAVE_GTK_FILE_CHOOSER=yes |
| 10643 | fi |
| 10644 | done |
| 10645 | |
| 10646 | |
| 10647 | if test "$HAVE_GTK_FILE_SELECTION" = yes \ |
| 10648 | && test "$HAVE_GTK_FILE_CHOOSER" = yes; then |
| 10649 | |
| 10650 | cat >>confdefs.h <<\_ACEOF |
| 10651 | #define HAVE_GTK_FILE_BOTH 1 |
| 10652 | _ACEOF |
| 10653 | |
| 10654 | fi |
| 10655 | |
| 10656 | if test "$HAVE_GTK_FILE_CHOOSER" = yes; then |
| 10657 | HAVE_GTK_AND_PTHREAD=no |
| 10658 | |
| 10659 | for ac_header in pthread.h |
| 10660 | do |
| 10661 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10662 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10663 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10664 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10665 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10667 | fi |
| 10668 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10669 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10670 | else |
| 10671 | # Is the header compilable? |
| 10672 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10673 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10674 | cat >conftest.$ac_ext <<_ACEOF |
| 10675 | /* confdefs.h. */ |
| 10676 | _ACEOF |
| 10677 | cat confdefs.h >>conftest.$ac_ext |
| 10678 | cat >>conftest.$ac_ext <<_ACEOF |
| 10679 | /* end confdefs.h. */ |
| 10680 | $ac_includes_default |
| 10681 | #include <$ac_header> |
| 10682 | _ACEOF |
| 10683 | rm -f conftest.$ac_objext |
| 10684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10685 | (eval $ac_compile) 2>conftest.er1 |
| 10686 | ac_status=$? |
| 10687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10688 | rm -f conftest.er1 |
| 10689 | cat conftest.err >&5 |
| 10690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10691 | (exit $ac_status); } && |
| 10692 | { ac_try='test -z "$ac_c_werror_flag" |
| 10693 | || test ! -s conftest.err' |
| 10694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10695 | (eval $ac_try) 2>&5 |
| 10696 | ac_status=$? |
| 10697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10698 | (exit $ac_status); }; } && |
| 10699 | { ac_try='test -s conftest.$ac_objext' |
| 10700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10701 | (eval $ac_try) 2>&5 |
| 10702 | ac_status=$? |
| 10703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10704 | (exit $ac_status); }; }; then |
| 10705 | ac_header_compiler=yes |
| 10706 | else |
| 10707 | echo "$as_me: failed program was:" >&5 |
| 10708 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10709 | |
| 10710 | ac_header_compiler=no |
| 10711 | fi |
| 10712 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10713 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10714 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10715 | |
| 10716 | # Is the header present? |
| 10717 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10718 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10719 | cat >conftest.$ac_ext <<_ACEOF |
| 10720 | /* confdefs.h. */ |
| 10721 | _ACEOF |
| 10722 | cat confdefs.h >>conftest.$ac_ext |
| 10723 | cat >>conftest.$ac_ext <<_ACEOF |
| 10724 | /* end confdefs.h. */ |
| 10725 | #include <$ac_header> |
| 10726 | _ACEOF |
| 10727 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10728 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10729 | ac_status=$? |
| 10730 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10731 | rm -f conftest.er1 |
| 10732 | cat conftest.err >&5 |
| 10733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10734 | (exit $ac_status); } >/dev/null; then |
| 10735 | if test -s conftest.err; then |
| 10736 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10737 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10738 | else |
| 10739 | ac_cpp_err= |
| 10740 | fi |
| 10741 | else |
| 10742 | ac_cpp_err=yes |
| 10743 | fi |
| 10744 | if test -z "$ac_cpp_err"; then |
| 10745 | ac_header_preproc=yes |
| 10746 | else |
| 10747 | echo "$as_me: failed program was:" >&5 |
| 10748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10749 | |
| 10750 | ac_header_preproc=no |
| 10751 | fi |
| 10752 | rm -f conftest.err conftest.$ac_ext |
| 10753 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10754 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10755 | |
| 10756 | # So? What about this header? |
| 10757 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10758 | yes:no: ) |
| 10759 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10760 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10761 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10762 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10763 | ac_header_preproc=yes |
| 10764 | ;; |
| 10765 | no:yes:* ) |
| 10766 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10767 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10768 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10769 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10770 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10771 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10772 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10773 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10774 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10775 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10776 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10777 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10778 | ( |
| 10779 | cat <<\_ASBOX |
| 10780 | ## ------------------------------------------ ## |
| 10781 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10782 | ## ------------------------------------------ ## |
| 10783 | _ASBOX |
| 10784 | ) | |
| 10785 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10786 | ;; |
| 10787 | esac |
| 10788 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10789 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10790 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10792 | else |
| 10793 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10794 | fi |
| 10795 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10796 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10797 | |
| 10798 | fi |
| 10799 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10800 | cat >>confdefs.h <<_ACEOF |
| 10801 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10802 | _ACEOF |
| 10803 | |
| 10804 | fi |
| 10805 | |
| 10806 | done |
| 10807 | |
| 10808 | if test "$ac_cv_header_pthread_h"; then |
| 10809 | echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5 |
| 10810 | echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6 |
| 10811 | if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then |
| 10812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10813 | else |
| 10814 | ac_check_lib_save_LIBS=$LIBS |
| 10815 | LIBS="-lpthread $LIBS" |
| 10816 | cat >conftest.$ac_ext <<_ACEOF |
| 10817 | /* confdefs.h. */ |
| 10818 | _ACEOF |
| 10819 | cat confdefs.h >>conftest.$ac_ext |
| 10820 | cat >>conftest.$ac_ext <<_ACEOF |
| 10821 | /* end confdefs.h. */ |
| 10822 | |
| 10823 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10824 | #ifdef __cplusplus |
| 10825 | extern "C" |
| 10826 | #endif |
| 10827 | /* We use char because int might match the return type of a gcc2 |
| 10828 | builtin and then its argument prototype would still apply. */ |
| 10829 | char pthread_self (); |
| 10830 | int |
| 10831 | main () |
| 10832 | { |
| 10833 | pthread_self (); |
| 10834 | ; |
| 10835 | return 0; |
| 10836 | } |
| 10837 | _ACEOF |
| 10838 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10840 | (eval $ac_link) 2>conftest.er1 |
| 10841 | ac_status=$? |
| 10842 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10843 | rm -f conftest.er1 |
| 10844 | cat conftest.err >&5 |
| 10845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10846 | (exit $ac_status); } && |
| 10847 | { ac_try='test -z "$ac_c_werror_flag" |
| 10848 | || test ! -s conftest.err' |
| 10849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10850 | (eval $ac_try) 2>&5 |
| 10851 | ac_status=$? |
| 10852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10853 | (exit $ac_status); }; } && |
| 10854 | { ac_try='test -s conftest$ac_exeext' |
| 10855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10856 | (eval $ac_try) 2>&5 |
| 10857 | ac_status=$? |
| 10858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10859 | (exit $ac_status); }; }; then |
| 10860 | ac_cv_lib_pthread_pthread_self=yes |
| 10861 | else |
| 10862 | echo "$as_me: failed program was:" >&5 |
| 10863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10864 | |
| 10865 | ac_cv_lib_pthread_pthread_self=no |
| 10866 | fi |
| 10867 | rm -f conftest.err conftest.$ac_objext \ |
| 10868 | conftest$ac_exeext conftest.$ac_ext |
| 10869 | LIBS=$ac_check_lib_save_LIBS |
| 10870 | fi |
| 10871 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5 |
| 10872 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6 |
| 10873 | if test $ac_cv_lib_pthread_pthread_self = yes; then |
| 10874 | HAVE_GTK_AND_PTHREAD=yes |
| 10875 | fi |
| 10876 | |
| 10877 | fi |
| 10878 | if test "$HAVE_GTK_AND_PTHREAD" = yes; then |
| 10879 | GTK_LIBS="$GTK_LIBS -lpthread" |
| 10880 | |
| 10881 | cat >>confdefs.h <<\_ACEOF |
| 10882 | #define HAVE_GTK_AND_PTHREAD 1 |
| 10883 | _ACEOF |
| 10884 | |
| 10885 | fi |
| 10886 | fi |
| 10887 | fi |
| 10888 | |
| 10889 | if test x"${USE_X_TOOLKIT}" = xmaybe; then |
| 10890 | if test x"${HAVE_X11R5}" = xyes; then |
| 10891 | echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5 |
| 10892 | echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6 |
| 10893 | if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then |
| 10894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10895 | else |
| 10896 | cat >conftest.$ac_ext <<_ACEOF |
| 10897 | /* confdefs.h. */ |
| 10898 | _ACEOF |
| 10899 | cat confdefs.h >>conftest.$ac_ext |
| 10900 | cat >>conftest.$ac_ext <<_ACEOF |
| 10901 | /* end confdefs.h. */ |
| 10902 | |
| 10903 | #include <X11/Intrinsic.h> |
| 10904 | #include <X11/Xaw/Simple.h> |
| 10905 | int |
| 10906 | main () |
| 10907 | { |
| 10908 | |
| 10909 | ; |
| 10910 | return 0; |
| 10911 | } |
| 10912 | _ACEOF |
| 10913 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10914 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10915 | (eval $ac_link) 2>conftest.er1 |
| 10916 | ac_status=$? |
| 10917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10918 | rm -f conftest.er1 |
| 10919 | cat conftest.err >&5 |
| 10920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10921 | (exit $ac_status); } && |
| 10922 | { ac_try='test -z "$ac_c_werror_flag" |
| 10923 | || test ! -s conftest.err' |
| 10924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10925 | (eval $ac_try) 2>&5 |
| 10926 | ac_status=$? |
| 10927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10928 | (exit $ac_status); }; } && |
| 10929 | { ac_try='test -s conftest$ac_exeext' |
| 10930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10931 | (eval $ac_try) 2>&5 |
| 10932 | ac_status=$? |
| 10933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10934 | (exit $ac_status); }; }; then |
| 10935 | emacs_cv_x11_version_5_with_xaw=yes |
| 10936 | else |
| 10937 | echo "$as_me: failed program was:" >&5 |
| 10938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10939 | |
| 10940 | emacs_cv_x11_version_5_with_xaw=no |
| 10941 | fi |
| 10942 | rm -f conftest.err conftest.$ac_objext \ |
| 10943 | conftest$ac_exeext conftest.$ac_ext |
| 10944 | fi |
| 10945 | |
| 10946 | if test $emacs_cv_x11_version_5_with_xaw = yes; then |
| 10947 | echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5 |
| 10948 | echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6 |
| 10949 | USE_X_TOOLKIT=LUCID |
| 10950 | else |
| 10951 | echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5 |
| 10952 | echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6 |
| 10953 | USE_X_TOOLKIT=none |
| 10954 | fi |
| 10955 | else |
| 10956 | USE_X_TOOLKIT=none |
| 10957 | fi |
| 10958 | fi |
| 10959 | |
| 10960 | X_TOOLKIT_TYPE=$USE_X_TOOLKIT |
| 10961 | |
| 10962 | if test "${USE_X_TOOLKIT}" != "none"; then |
| 10963 | echo "$as_me:$LINENO: checking X11 toolkit version" >&5 |
| 10964 | echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6 |
| 10965 | if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then |
| 10966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10967 | else |
| 10968 | cat >conftest.$ac_ext <<_ACEOF |
| 10969 | /* confdefs.h. */ |
| 10970 | _ACEOF |
| 10971 | cat confdefs.h >>conftest.$ac_ext |
| 10972 | cat >>conftest.$ac_ext <<_ACEOF |
| 10973 | /* end confdefs.h. */ |
| 10974 | #include <X11/Intrinsic.h> |
| 10975 | int |
| 10976 | main () |
| 10977 | { |
| 10978 | #if XtSpecificationRelease < 6 |
| 10979 | fail; |
| 10980 | #endif |
| 10981 | |
| 10982 | ; |
| 10983 | return 0; |
| 10984 | } |
| 10985 | _ACEOF |
| 10986 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10987 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10988 | (eval $ac_link) 2>conftest.er1 |
| 10989 | ac_status=$? |
| 10990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10991 | rm -f conftest.er1 |
| 10992 | cat conftest.err >&5 |
| 10993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10994 | (exit $ac_status); } && |
| 10995 | { ac_try='test -z "$ac_c_werror_flag" |
| 10996 | || test ! -s conftest.err' |
| 10997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10998 | (eval $ac_try) 2>&5 |
| 10999 | ac_status=$? |
| 11000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11001 | (exit $ac_status); }; } && |
| 11002 | { ac_try='test -s conftest$ac_exeext' |
| 11003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11004 | (eval $ac_try) 2>&5 |
| 11005 | ac_status=$? |
| 11006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11007 | (exit $ac_status); }; }; then |
| 11008 | emacs_cv_x11_toolkit_version_6=yes |
| 11009 | else |
| 11010 | echo "$as_me: failed program was:" >&5 |
| 11011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11012 | |
| 11013 | emacs_cv_x11_toolkit_version_6=no |
| 11014 | fi |
| 11015 | rm -f conftest.err conftest.$ac_objext \ |
| 11016 | conftest$ac_exeext conftest.$ac_ext |
| 11017 | fi |
| 11018 | |
| 11019 | HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 |
| 11020 | if test $emacs_cv_x11_toolkit_version_6 = yes; then |
| 11021 | echo "$as_me:$LINENO: result: 6 or newer" >&5 |
| 11022 | echo "${ECHO_T}6 or newer" >&6 |
| 11023 | |
| 11024 | cat >>confdefs.h <<\_ACEOF |
| 11025 | #define HAVE_X11XTR6 1 |
| 11026 | _ACEOF |
| 11027 | |
| 11028 | else |
| 11029 | echo "$as_me:$LINENO: result: before 6" >&5 |
| 11030 | echo "${ECHO_T}before 6" >&6 |
| 11031 | fi |
| 11032 | |
| 11033 | OLDLIBS="$LIBS" |
| 11034 | if test x$HAVE_X11XTR6 = xyes; then |
| 11035 | LIBS="-lXt -lSM -lICE $LIBS" |
| 11036 | else |
| 11037 | LIBS="-lXt $LIBS" |
| 11038 | fi |
| 11039 | |
| 11040 | echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5 |
| 11041 | echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6 |
| 11042 | if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then |
| 11043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11044 | else |
| 11045 | ac_check_lib_save_LIBS=$LIBS |
| 11046 | LIBS="-lXmu $LIBS" |
| 11047 | cat >conftest.$ac_ext <<_ACEOF |
| 11048 | /* confdefs.h. */ |
| 11049 | _ACEOF |
| 11050 | cat confdefs.h >>conftest.$ac_ext |
| 11051 | cat >>conftest.$ac_ext <<_ACEOF |
| 11052 | /* end confdefs.h. */ |
| 11053 | |
| 11054 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11055 | #ifdef __cplusplus |
| 11056 | extern "C" |
| 11057 | #endif |
| 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 XmuConvertStandardSelection (); |
| 11061 | int |
| 11062 | main () |
| 11063 | { |
| 11064 | XmuConvertStandardSelection (); |
| 11065 | ; |
| 11066 | return 0; |
| 11067 | } |
| 11068 | _ACEOF |
| 11069 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11070 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11071 | (eval $ac_link) 2>conftest.er1 |
| 11072 | ac_status=$? |
| 11073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11074 | rm -f conftest.er1 |
| 11075 | cat conftest.err >&5 |
| 11076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11077 | (exit $ac_status); } && |
| 11078 | { ac_try='test -z "$ac_c_werror_flag" |
| 11079 | || test ! -s conftest.err' |
| 11080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11081 | (eval $ac_try) 2>&5 |
| 11082 | ac_status=$? |
| 11083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11084 | (exit $ac_status); }; } && |
| 11085 | { ac_try='test -s conftest$ac_exeext' |
| 11086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11087 | (eval $ac_try) 2>&5 |
| 11088 | ac_status=$? |
| 11089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11090 | (exit $ac_status); }; }; then |
| 11091 | ac_cv_lib_Xmu_XmuConvertStandardSelection=yes |
| 11092 | else |
| 11093 | echo "$as_me: failed program was:" >&5 |
| 11094 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11095 | |
| 11096 | ac_cv_lib_Xmu_XmuConvertStandardSelection=no |
| 11097 | fi |
| 11098 | rm -f conftest.err conftest.$ac_objext \ |
| 11099 | conftest$ac_exeext conftest.$ac_ext |
| 11100 | LIBS=$ac_check_lib_save_LIBS |
| 11101 | fi |
| 11102 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 |
| 11103 | echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6 |
| 11104 | if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then |
| 11105 | cat >>confdefs.h <<_ACEOF |
| 11106 | #define HAVE_LIBXMU 1 |
| 11107 | _ACEOF |
| 11108 | |
| 11109 | LIBS="-lXmu $LIBS" |
| 11110 | |
| 11111 | fi |
| 11112 | |
| 11113 | test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" |
| 11114 | fi |
| 11115 | |
| 11116 | # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. |
| 11117 | if test "${HAVE_X11}" = "yes"; then |
| 11118 | if test "${USE_X_TOOLKIT}" != "none"; then |
| 11119 | |
| 11120 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
| 11121 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
| 11122 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
| 11123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11124 | else |
| 11125 | ac_check_lib_save_LIBS=$LIBS |
| 11126 | LIBS="-lXext $LIBS" |
| 11127 | cat >conftest.$ac_ext <<_ACEOF |
| 11128 | /* confdefs.h. */ |
| 11129 | _ACEOF |
| 11130 | cat confdefs.h >>conftest.$ac_ext |
| 11131 | cat >>conftest.$ac_ext <<_ACEOF |
| 11132 | /* end confdefs.h. */ |
| 11133 | |
| 11134 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11135 | #ifdef __cplusplus |
| 11136 | extern "C" |
| 11137 | #endif |
| 11138 | /* We use char because int might match the return type of a gcc2 |
| 11139 | builtin and then its argument prototype would still apply. */ |
| 11140 | char XShapeQueryExtension (); |
| 11141 | int |
| 11142 | main () |
| 11143 | { |
| 11144 | XShapeQueryExtension (); |
| 11145 | ; |
| 11146 | return 0; |
| 11147 | } |
| 11148 | _ACEOF |
| 11149 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11151 | (eval $ac_link) 2>conftest.er1 |
| 11152 | ac_status=$? |
| 11153 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11154 | rm -f conftest.er1 |
| 11155 | cat conftest.err >&5 |
| 11156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11157 | (exit $ac_status); } && |
| 11158 | { ac_try='test -z "$ac_c_werror_flag" |
| 11159 | || test ! -s conftest.err' |
| 11160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11161 | (eval $ac_try) 2>&5 |
| 11162 | ac_status=$? |
| 11163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11164 | (exit $ac_status); }; } && |
| 11165 | { ac_try='test -s conftest$ac_exeext' |
| 11166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11167 | (eval $ac_try) 2>&5 |
| 11168 | ac_status=$? |
| 11169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11170 | (exit $ac_status); }; }; then |
| 11171 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
| 11172 | else |
| 11173 | echo "$as_me: failed program was:" >&5 |
| 11174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11175 | |
| 11176 | ac_cv_lib_Xext_XShapeQueryExtension=no |
| 11177 | fi |
| 11178 | rm -f conftest.err conftest.$ac_objext \ |
| 11179 | conftest$ac_exeext conftest.$ac_ext |
| 11180 | LIBS=$ac_check_lib_save_LIBS |
| 11181 | fi |
| 11182 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
| 11183 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
| 11184 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
| 11185 | cat >>confdefs.h <<_ACEOF |
| 11186 | #define HAVE_LIBXEXT 1 |
| 11187 | _ACEOF |
| 11188 | |
| 11189 | LIBS="-lXext $LIBS" |
| 11190 | |
| 11191 | fi |
| 11192 | |
| 11193 | fi |
| 11194 | fi |
| 11195 | |
| 11196 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then |
| 11197 | echo "$as_me:$LINENO: checking for Motif version 2.1" >&5 |
| 11198 | echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6 |
| 11199 | if test "${emacs_cv_motif_version_2_1+set}" = set; then |
| 11200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11201 | else |
| 11202 | cat >conftest.$ac_ext <<_ACEOF |
| 11203 | /* confdefs.h. */ |
| 11204 | _ACEOF |
| 11205 | cat confdefs.h >>conftest.$ac_ext |
| 11206 | cat >>conftest.$ac_ext <<_ACEOF |
| 11207 | /* end confdefs.h. */ |
| 11208 | #include <Xm/Xm.h> |
| 11209 | int |
| 11210 | main () |
| 11211 | { |
| 11212 | #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) |
| 11213 | int x = 5; |
| 11214 | #else |
| 11215 | Motif version prior to 2.1. |
| 11216 | #endif |
| 11217 | ; |
| 11218 | return 0; |
| 11219 | } |
| 11220 | _ACEOF |
| 11221 | rm -f conftest.$ac_objext |
| 11222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11223 | (eval $ac_compile) 2>conftest.er1 |
| 11224 | ac_status=$? |
| 11225 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11226 | rm -f conftest.er1 |
| 11227 | cat conftest.err >&5 |
| 11228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11229 | (exit $ac_status); } && |
| 11230 | { ac_try='test -z "$ac_c_werror_flag" |
| 11231 | || test ! -s conftest.err' |
| 11232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11233 | (eval $ac_try) 2>&5 |
| 11234 | ac_status=$? |
| 11235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11236 | (exit $ac_status); }; } && |
| 11237 | { ac_try='test -s conftest.$ac_objext' |
| 11238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11239 | (eval $ac_try) 2>&5 |
| 11240 | ac_status=$? |
| 11241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11242 | (exit $ac_status); }; }; then |
| 11243 | emacs_cv_motif_version_2_1=yes |
| 11244 | else |
| 11245 | echo "$as_me: failed program was:" >&5 |
| 11246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11247 | |
| 11248 | emacs_cv_motif_version_2_1=no |
| 11249 | fi |
| 11250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11251 | fi |
| 11252 | echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5 |
| 11253 | echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6 |
| 11254 | HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 |
| 11255 | if test $emacs_cv_motif_version_2_1 = yes; then |
| 11256 | HAVE_LIBXP=no |
| 11257 | |
| 11258 | cat >>confdefs.h <<\_ACEOF |
| 11259 | #define HAVE_MOTIF_2_1 1 |
| 11260 | _ACEOF |
| 11261 | |
| 11262 | echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5 |
| 11263 | echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6 |
| 11264 | if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then |
| 11265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11266 | else |
| 11267 | ac_check_lib_save_LIBS=$LIBS |
| 11268 | LIBS="-lXp $LIBS" |
| 11269 | cat >conftest.$ac_ext <<_ACEOF |
| 11270 | /* confdefs.h. */ |
| 11271 | _ACEOF |
| 11272 | cat confdefs.h >>conftest.$ac_ext |
| 11273 | cat >>conftest.$ac_ext <<_ACEOF |
| 11274 | /* end confdefs.h. */ |
| 11275 | |
| 11276 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11277 | #ifdef __cplusplus |
| 11278 | extern "C" |
| 11279 | #endif |
| 11280 | /* We use char because int might match the return type of a gcc2 |
| 11281 | builtin and then its argument prototype would still apply. */ |
| 11282 | char XpCreateContext (); |
| 11283 | int |
| 11284 | main () |
| 11285 | { |
| 11286 | XpCreateContext (); |
| 11287 | ; |
| 11288 | return 0; |
| 11289 | } |
| 11290 | _ACEOF |
| 11291 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11293 | (eval $ac_link) 2>conftest.er1 |
| 11294 | ac_status=$? |
| 11295 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11296 | rm -f conftest.er1 |
| 11297 | cat conftest.err >&5 |
| 11298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11299 | (exit $ac_status); } && |
| 11300 | { ac_try='test -z "$ac_c_werror_flag" |
| 11301 | || test ! -s conftest.err' |
| 11302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11303 | (eval $ac_try) 2>&5 |
| 11304 | ac_status=$? |
| 11305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11306 | (exit $ac_status); }; } && |
| 11307 | { ac_try='test -s conftest$ac_exeext' |
| 11308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11309 | (eval $ac_try) 2>&5 |
| 11310 | ac_status=$? |
| 11311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11312 | (exit $ac_status); }; }; then |
| 11313 | ac_cv_lib_Xp_XpCreateContext=yes |
| 11314 | else |
| 11315 | echo "$as_me: failed program was:" >&5 |
| 11316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11317 | |
| 11318 | ac_cv_lib_Xp_XpCreateContext=no |
| 11319 | fi |
| 11320 | rm -f conftest.err conftest.$ac_objext \ |
| 11321 | conftest$ac_exeext conftest.$ac_ext |
| 11322 | LIBS=$ac_check_lib_save_LIBS |
| 11323 | fi |
| 11324 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5 |
| 11325 | echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6 |
| 11326 | if test $ac_cv_lib_Xp_XpCreateContext = yes; then |
| 11327 | HAVE_LIBXP=yes |
| 11328 | fi |
| 11329 | |
| 11330 | if test ${HAVE_LIBXP} = yes; then |
| 11331 | |
| 11332 | cat >>confdefs.h <<\_ACEOF |
| 11333 | #define HAVE_LIBXP 1 |
| 11334 | _ACEOF |
| 11335 | |
| 11336 | fi |
| 11337 | else |
| 11338 | echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5 |
| 11339 | echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6 |
| 11340 | if test "${emacs_cv_lesstif+set}" = set; then |
| 11341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11342 | else |
| 11343 | # We put this in CFLAGS temporarily to precede other -I options |
| 11344 | # that might be in CFLAGS temporarily. |
| 11345 | # We put this in CPPFLAGS where it precedes the other -I options. |
| 11346 | OLD_CPPFLAGS=$CPPFLAGS |
| 11347 | OLD_CFLAGS=$CFLAGS |
| 11348 | CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" |
| 11349 | CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" |
| 11350 | cat >conftest.$ac_ext <<_ACEOF |
| 11351 | /* confdefs.h. */ |
| 11352 | _ACEOF |
| 11353 | cat confdefs.h >>conftest.$ac_ext |
| 11354 | cat >>conftest.$ac_ext <<_ACEOF |
| 11355 | /* end confdefs.h. */ |
| 11356 | #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> |
| 11357 | int |
| 11358 | main () |
| 11359 | { |
| 11360 | int x = 5; |
| 11361 | ; |
| 11362 | return 0; |
| 11363 | } |
| 11364 | _ACEOF |
| 11365 | rm -f conftest.$ac_objext |
| 11366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11367 | (eval $ac_compile) 2>conftest.er1 |
| 11368 | ac_status=$? |
| 11369 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11370 | rm -f conftest.er1 |
| 11371 | cat conftest.err >&5 |
| 11372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11373 | (exit $ac_status); } && |
| 11374 | { ac_try='test -z "$ac_c_werror_flag" |
| 11375 | || test ! -s conftest.err' |
| 11376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11377 | (eval $ac_try) 2>&5 |
| 11378 | ac_status=$? |
| 11379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11380 | (exit $ac_status); }; } && |
| 11381 | { ac_try='test -s conftest.$ac_objext' |
| 11382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11383 | (eval $ac_try) 2>&5 |
| 11384 | ac_status=$? |
| 11385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11386 | (exit $ac_status); }; }; then |
| 11387 | emacs_cv_lesstif=yes |
| 11388 | else |
| 11389 | echo "$as_me: failed program was:" >&5 |
| 11390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11391 | |
| 11392 | emacs_cv_lesstif=no |
| 11393 | fi |
| 11394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11395 | fi |
| 11396 | echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5 |
| 11397 | echo "${ECHO_T}$emacs_cv_lesstif" >&6 |
| 11398 | if test $emacs_cv_lesstif = yes; then |
| 11399 | # Make sure this -I option remains in CPPFLAGS after it is set |
| 11400 | # back to REAL_CPPFLAGS. |
| 11401 | # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not |
| 11402 | # have those other -I options anyway. Ultimately, having this |
| 11403 | # directory ultimately in CPPFLAGS will be enough. |
| 11404 | REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS" |
| 11405 | LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS" |
| 11406 | else |
| 11407 | CFLAGS=$OLD_CFLAGS |
| 11408 | CPPFLAGS=$OLD_CPPFLAGS |
| 11409 | fi |
| 11410 | fi |
| 11411 | fi |
| 11412 | |
| 11413 | ### Is -lXaw3d available? |
| 11414 | HAVE_XAW3D=no |
| 11415 | if test "${HAVE_X11}" = "yes"; then |
| 11416 | if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then |
| 11417 | echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5 |
| 11418 | echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6 |
| 11419 | if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then |
| 11420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11421 | else |
| 11422 | cat >conftest.$ac_ext <<_ACEOF |
| 11423 | /* confdefs.h. */ |
| 11424 | _ACEOF |
| 11425 | cat confdefs.h >>conftest.$ac_ext |
| 11426 | cat >>conftest.$ac_ext <<_ACEOF |
| 11427 | /* end confdefs.h. */ |
| 11428 | #include <X11/Xaw3d/Scrollbar.h> |
| 11429 | _ACEOF |
| 11430 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11431 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11432 | ac_status=$? |
| 11433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11434 | rm -f conftest.er1 |
| 11435 | cat conftest.err >&5 |
| 11436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11437 | (exit $ac_status); } >/dev/null; then |
| 11438 | if test -s conftest.err; then |
| 11439 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11440 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11441 | else |
| 11442 | ac_cpp_err= |
| 11443 | fi |
| 11444 | else |
| 11445 | ac_cpp_err=yes |
| 11446 | fi |
| 11447 | if test -z "$ac_cpp_err"; then |
| 11448 | ac_cv_header_X11_Xaw3d_Scrollbar_h=yes |
| 11449 | else |
| 11450 | echo "$as_me: failed program was:" >&5 |
| 11451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11452 | |
| 11453 | ac_cv_header_X11_Xaw3d_Scrollbar_h=no |
| 11454 | fi |
| 11455 | rm -f conftest.err conftest.$ac_ext |
| 11456 | fi |
| 11457 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5 |
| 11458 | echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6 |
| 11459 | if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then |
| 11460 | echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
| 11461 | echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6 |
| 11462 | if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then |
| 11463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11464 | else |
| 11465 | ac_check_lib_save_LIBS=$LIBS |
| 11466 | LIBS="-lXaw3d $LIBS" |
| 11467 | cat >conftest.$ac_ext <<_ACEOF |
| 11468 | /* confdefs.h. */ |
| 11469 | _ACEOF |
| 11470 | cat confdefs.h >>conftest.$ac_ext |
| 11471 | cat >>conftest.$ac_ext <<_ACEOF |
| 11472 | /* end confdefs.h. */ |
| 11473 | |
| 11474 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11475 | #ifdef __cplusplus |
| 11476 | extern "C" |
| 11477 | #endif |
| 11478 | /* We use char because int might match the return type of a gcc2 |
| 11479 | builtin and then its argument prototype would still apply. */ |
| 11480 | char XawScrollbarSetThumb (); |
| 11481 | int |
| 11482 | main () |
| 11483 | { |
| 11484 | XawScrollbarSetThumb (); |
| 11485 | ; |
| 11486 | return 0; |
| 11487 | } |
| 11488 | _ACEOF |
| 11489 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11490 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11491 | (eval $ac_link) 2>conftest.er1 |
| 11492 | ac_status=$? |
| 11493 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11494 | rm -f conftest.er1 |
| 11495 | cat conftest.err >&5 |
| 11496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11497 | (exit $ac_status); } && |
| 11498 | { ac_try='test -z "$ac_c_werror_flag" |
| 11499 | || test ! -s conftest.err' |
| 11500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11501 | (eval $ac_try) 2>&5 |
| 11502 | ac_status=$? |
| 11503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11504 | (exit $ac_status); }; } && |
| 11505 | { ac_try='test -s conftest$ac_exeext' |
| 11506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11507 | (eval $ac_try) 2>&5 |
| 11508 | ac_status=$? |
| 11509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11510 | (exit $ac_status); }; }; then |
| 11511 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes |
| 11512 | else |
| 11513 | echo "$as_me: failed program was:" >&5 |
| 11514 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11515 | |
| 11516 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no |
| 11517 | fi |
| 11518 | rm -f conftest.err conftest.$ac_objext \ |
| 11519 | conftest$ac_exeext conftest.$ac_ext |
| 11520 | LIBS=$ac_check_lib_save_LIBS |
| 11521 | fi |
| 11522 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 |
| 11523 | echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6 |
| 11524 | if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then |
| 11525 | HAVE_XAW3D=yes |
| 11526 | fi |
| 11527 | |
| 11528 | fi |
| 11529 | |
| 11530 | |
| 11531 | if test "${HAVE_XAW3D}" = "yes"; then |
| 11532 | |
| 11533 | cat >>confdefs.h <<\_ACEOF |
| 11534 | #define HAVE_XAW3D 1 |
| 11535 | _ACEOF |
| 11536 | |
| 11537 | fi |
| 11538 | fi |
| 11539 | fi |
| 11540 | |
| 11541 | |
| 11542 | |
| 11543 | USE_TOOLKIT_SCROLL_BARS=no |
| 11544 | if test "${with_toolkit_scroll_bars}" != "no"; then |
| 11545 | if test "${USE_X_TOOLKIT}" != "none"; then |
| 11546 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then |
| 11547 | cat >>confdefs.h <<\_ACEOF |
| 11548 | #define USE_TOOLKIT_SCROLL_BARS 1 |
| 11549 | _ACEOF |
| 11550 | |
| 11551 | HAVE_XAW3D=no |
| 11552 | USE_TOOLKIT_SCROLL_BARS=yes |
| 11553 | elif test "${HAVE_XAW3D}" = "yes"; then |
| 11554 | cat >>confdefs.h <<\_ACEOF |
| 11555 | #define USE_TOOLKIT_SCROLL_BARS 1 |
| 11556 | _ACEOF |
| 11557 | |
| 11558 | USE_TOOLKIT_SCROLL_BARS=yes |
| 11559 | fi |
| 11560 | elif test "${HAVE_GTK}" = "yes"; then |
| 11561 | cat >>confdefs.h <<\_ACEOF |
| 11562 | #define USE_TOOLKIT_SCROLL_BARS 1 |
| 11563 | _ACEOF |
| 11564 | |
| 11565 | USE_TOOLKIT_SCROLL_BARS=yes |
| 11566 | elif test "${HAVE_CARBON}" = "yes"; then |
| 11567 | cat >>confdefs.h <<\_ACEOF |
| 11568 | #define USE_TOOLKIT_SCROLL_BARS 1 |
| 11569 | _ACEOF |
| 11570 | |
| 11571 | USE_TOOLKIT_SCROLL_BARS=yes |
| 11572 | fi |
| 11573 | fi |
| 11574 | |
| 11575 | cat >conftest.$ac_ext <<_ACEOF |
| 11576 | /* confdefs.h. */ |
| 11577 | _ACEOF |
| 11578 | cat confdefs.h >>conftest.$ac_ext |
| 11579 | cat >>conftest.$ac_ext <<_ACEOF |
| 11580 | /* end confdefs.h. */ |
| 11581 | |
| 11582 | #include <X11/Xlib.h> |
| 11583 | #include <X11/Xresource.h> |
| 11584 | int |
| 11585 | main () |
| 11586 | { |
| 11587 | XIMProc callback; |
| 11588 | ; |
| 11589 | return 0; |
| 11590 | } |
| 11591 | _ACEOF |
| 11592 | rm -f conftest.$ac_objext |
| 11593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11594 | (eval $ac_compile) 2>conftest.er1 |
| 11595 | ac_status=$? |
| 11596 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11597 | rm -f conftest.er1 |
| 11598 | cat conftest.err >&5 |
| 11599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11600 | (exit $ac_status); } && |
| 11601 | { ac_try='test -z "$ac_c_werror_flag" |
| 11602 | || test ! -s conftest.err' |
| 11603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11604 | (eval $ac_try) 2>&5 |
| 11605 | ac_status=$? |
| 11606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11607 | (exit $ac_status); }; } && |
| 11608 | { ac_try='test -s conftest.$ac_objext' |
| 11609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11610 | (eval $ac_try) 2>&5 |
| 11611 | ac_status=$? |
| 11612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11613 | (exit $ac_status); }; }; then |
| 11614 | HAVE_XIM=yes |
| 11615 | |
| 11616 | cat >>confdefs.h <<\_ACEOF |
| 11617 | #define HAVE_XIM 1 |
| 11618 | _ACEOF |
| 11619 | |
| 11620 | else |
| 11621 | echo "$as_me: failed program was:" >&5 |
| 11622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11623 | |
| 11624 | HAVE_XIM=no |
| 11625 | fi |
| 11626 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11627 | |
| 11628 | |
| 11629 | if test "${with_xim}" != "no"; then |
| 11630 | |
| 11631 | cat >>confdefs.h <<\_ACEOF |
| 11632 | #define USE_XIM 1 |
| 11633 | _ACEOF |
| 11634 | |
| 11635 | fi |
| 11636 | |
| 11637 | |
| 11638 | if test "${HAVE_XIM}" != "no"; then |
| 11639 | late_CFLAGS=$CFLAGS |
| 11640 | if test "$GCC" = yes; then |
| 11641 | CFLAGS="$CFLAGS --pedantic-errors" |
| 11642 | fi |
| 11643 | cat >conftest.$ac_ext <<_ACEOF |
| 11644 | /* confdefs.h. */ |
| 11645 | _ACEOF |
| 11646 | cat confdefs.h >>conftest.$ac_ext |
| 11647 | cat >>conftest.$ac_ext <<_ACEOF |
| 11648 | /* end confdefs.h. */ |
| 11649 | |
| 11650 | #include <X11/Xlib.h> |
| 11651 | #include <X11/Xresource.h> |
| 11652 | int |
| 11653 | main () |
| 11654 | { |
| 11655 | Display *display; |
| 11656 | XrmDatabase db; |
| 11657 | char *res_name; |
| 11658 | char *res_class; |
| 11659 | XIMProc callback; |
| 11660 | XPointer *client_data; |
| 11661 | #ifndef __GNUC__ |
| 11662 | /* If we're not using GCC, it's probably not XFree86, and this is |
| 11663 | probably right, but we can't use something like --pedantic-errors. */ |
| 11664 | extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*, |
| 11665 | char*, XIMProc, XPointer*); |
| 11666 | #endif |
| 11667 | (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback, |
| 11668 | client_data); |
| 11669 | ; |
| 11670 | return 0; |
| 11671 | } |
| 11672 | _ACEOF |
| 11673 | rm -f conftest.$ac_objext |
| 11674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11675 | (eval $ac_compile) 2>conftest.er1 |
| 11676 | ac_status=$? |
| 11677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11678 | rm -f conftest.er1 |
| 11679 | cat conftest.err >&5 |
| 11680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11681 | (exit $ac_status); } && |
| 11682 | { ac_try='test -z "$ac_c_werror_flag" |
| 11683 | || test ! -s conftest.err' |
| 11684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11685 | (eval $ac_try) 2>&5 |
| 11686 | ac_status=$? |
| 11687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11688 | (exit $ac_status); }; } && |
| 11689 | { ac_try='test -s conftest.$ac_objext' |
| 11690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11691 | (eval $ac_try) 2>&5 |
| 11692 | ac_status=$? |
| 11693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11694 | (exit $ac_status); }; }; then |
| 11695 | emacs_cv_arg6_star=yes |
| 11696 | else |
| 11697 | echo "$as_me: failed program was:" >&5 |
| 11698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11699 | |
| 11700 | fi |
| 11701 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11702 | |
| 11703 | if test "$emacs_cv_arg6_star" = yes; then |
| 11704 | cat >>confdefs.h <<\_ACEOF |
| 11705 | #define XRegisterIMInstantiateCallback_arg6 XPointer* |
| 11706 | _ACEOF |
| 11707 | |
| 11708 | else |
| 11709 | cat >>confdefs.h <<\_ACEOF |
| 11710 | #define XRegisterIMInstantiateCallback_arg6 XPointer |
| 11711 | _ACEOF |
| 11712 | |
| 11713 | fi |
| 11714 | CFLAGS=$late_CFLAGS |
| 11715 | fi |
| 11716 | |
| 11717 | ### Use -lXpm if available, unless `--with-xpm=no'. |
| 11718 | HAVE_XPM=no |
| 11719 | if test "${HAVE_X11}" = "yes"; then |
| 11720 | if test "${with_xpm}" != "no"; then |
| 11721 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
| 11722 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 |
| 11723 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 |
| 11724 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
| 11725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11726 | fi |
| 11727 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 |
| 11728 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 |
| 11729 | else |
| 11730 | # Is the header compilable? |
| 11731 | echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5 |
| 11732 | echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6 |
| 11733 | cat >conftest.$ac_ext <<_ACEOF |
| 11734 | /* confdefs.h. */ |
| 11735 | _ACEOF |
| 11736 | cat confdefs.h >>conftest.$ac_ext |
| 11737 | cat >>conftest.$ac_ext <<_ACEOF |
| 11738 | /* end confdefs.h. */ |
| 11739 | $ac_includes_default |
| 11740 | #include <X11/xpm.h> |
| 11741 | _ACEOF |
| 11742 | rm -f conftest.$ac_objext |
| 11743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11744 | (eval $ac_compile) 2>conftest.er1 |
| 11745 | ac_status=$? |
| 11746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11747 | rm -f conftest.er1 |
| 11748 | cat conftest.err >&5 |
| 11749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11750 | (exit $ac_status); } && |
| 11751 | { ac_try='test -z "$ac_c_werror_flag" |
| 11752 | || test ! -s conftest.err' |
| 11753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11754 | (eval $ac_try) 2>&5 |
| 11755 | ac_status=$? |
| 11756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11757 | (exit $ac_status); }; } && |
| 11758 | { ac_try='test -s conftest.$ac_objext' |
| 11759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11760 | (eval $ac_try) 2>&5 |
| 11761 | ac_status=$? |
| 11762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11763 | (exit $ac_status); }; }; then |
| 11764 | ac_header_compiler=yes |
| 11765 | else |
| 11766 | echo "$as_me: failed program was:" >&5 |
| 11767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11768 | |
| 11769 | ac_header_compiler=no |
| 11770 | fi |
| 11771 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11772 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11773 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11774 | |
| 11775 | # Is the header present? |
| 11776 | echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5 |
| 11777 | echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6 |
| 11778 | cat >conftest.$ac_ext <<_ACEOF |
| 11779 | /* confdefs.h. */ |
| 11780 | _ACEOF |
| 11781 | cat confdefs.h >>conftest.$ac_ext |
| 11782 | cat >>conftest.$ac_ext <<_ACEOF |
| 11783 | /* end confdefs.h. */ |
| 11784 | #include <X11/xpm.h> |
| 11785 | _ACEOF |
| 11786 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11787 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11788 | ac_status=$? |
| 11789 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11790 | rm -f conftest.er1 |
| 11791 | cat conftest.err >&5 |
| 11792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11793 | (exit $ac_status); } >/dev/null; then |
| 11794 | if test -s conftest.err; then |
| 11795 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11796 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11797 | else |
| 11798 | ac_cpp_err= |
| 11799 | fi |
| 11800 | else |
| 11801 | ac_cpp_err=yes |
| 11802 | fi |
| 11803 | if test -z "$ac_cpp_err"; then |
| 11804 | ac_header_preproc=yes |
| 11805 | else |
| 11806 | echo "$as_me: failed program was:" >&5 |
| 11807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11808 | |
| 11809 | ac_header_preproc=no |
| 11810 | fi |
| 11811 | rm -f conftest.err conftest.$ac_ext |
| 11812 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11813 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11814 | |
| 11815 | # So? What about this header? |
| 11816 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11817 | yes:no: ) |
| 11818 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11819 | echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11820 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5 |
| 11821 | echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;} |
| 11822 | ac_header_preproc=yes |
| 11823 | ;; |
| 11824 | no:yes:* ) |
| 11825 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5 |
| 11826 | echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;} |
| 11827 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5 |
| 11828 | echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;} |
| 11829 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5 |
| 11830 | echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;} |
| 11831 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11832 | echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11833 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5 |
| 11834 | echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;} |
| 11835 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5 |
| 11836 | echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;} |
| 11837 | ( |
| 11838 | cat <<\_ASBOX |
| 11839 | ## ------------------------------------------ ## |
| 11840 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 11841 | ## ------------------------------------------ ## |
| 11842 | _ASBOX |
| 11843 | ) | |
| 11844 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11845 | ;; |
| 11846 | esac |
| 11847 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 |
| 11848 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 |
| 11849 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
| 11850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11851 | else |
| 11852 | ac_cv_header_X11_xpm_h=$ac_header_preproc |
| 11853 | fi |
| 11854 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 |
| 11855 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 |
| 11856 | |
| 11857 | fi |
| 11858 | if test $ac_cv_header_X11_xpm_h = yes; then |
| 11859 | echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5 |
| 11860 | echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6 |
| 11861 | if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then |
| 11862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11863 | else |
| 11864 | ac_check_lib_save_LIBS=$LIBS |
| 11865 | LIBS="-lXpm -lX11 $LIBS" |
| 11866 | cat >conftest.$ac_ext <<_ACEOF |
| 11867 | /* confdefs.h. */ |
| 11868 | _ACEOF |
| 11869 | cat confdefs.h >>conftest.$ac_ext |
| 11870 | cat >>conftest.$ac_ext <<_ACEOF |
| 11871 | /* end confdefs.h. */ |
| 11872 | |
| 11873 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11874 | #ifdef __cplusplus |
| 11875 | extern "C" |
| 11876 | #endif |
| 11877 | /* We use char because int might match the return type of a gcc2 |
| 11878 | builtin and then its argument prototype would still apply. */ |
| 11879 | char XpmReadFileToPixmap (); |
| 11880 | int |
| 11881 | main () |
| 11882 | { |
| 11883 | XpmReadFileToPixmap (); |
| 11884 | ; |
| 11885 | return 0; |
| 11886 | } |
| 11887 | _ACEOF |
| 11888 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11889 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11890 | (eval $ac_link) 2>conftest.er1 |
| 11891 | ac_status=$? |
| 11892 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11893 | rm -f conftest.er1 |
| 11894 | cat conftest.err >&5 |
| 11895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11896 | (exit $ac_status); } && |
| 11897 | { ac_try='test -z "$ac_c_werror_flag" |
| 11898 | || test ! -s conftest.err' |
| 11899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11900 | (eval $ac_try) 2>&5 |
| 11901 | ac_status=$? |
| 11902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11903 | (exit $ac_status); }; } && |
| 11904 | { ac_try='test -s conftest$ac_exeext' |
| 11905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11906 | (eval $ac_try) 2>&5 |
| 11907 | ac_status=$? |
| 11908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11909 | (exit $ac_status); }; }; then |
| 11910 | ac_cv_lib_Xpm_XpmReadFileToPixmap=yes |
| 11911 | else |
| 11912 | echo "$as_me: failed program was:" >&5 |
| 11913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11914 | |
| 11915 | ac_cv_lib_Xpm_XpmReadFileToPixmap=no |
| 11916 | fi |
| 11917 | rm -f conftest.err conftest.$ac_objext \ |
| 11918 | conftest$ac_exeext conftest.$ac_ext |
| 11919 | LIBS=$ac_check_lib_save_LIBS |
| 11920 | fi |
| 11921 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 |
| 11922 | echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6 |
| 11923 | if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then |
| 11924 | HAVE_XPM=yes |
| 11925 | fi |
| 11926 | |
| 11927 | fi |
| 11928 | |
| 11929 | |
| 11930 | if test "${HAVE_XPM}" = "yes"; then |
| 11931 | echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5 |
| 11932 | echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6 |
| 11933 | cat >conftest.$ac_ext <<_ACEOF |
| 11934 | /* confdefs.h. */ |
| 11935 | _ACEOF |
| 11936 | cat confdefs.h >>conftest.$ac_ext |
| 11937 | cat >>conftest.$ac_ext <<_ACEOF |
| 11938 | /* end confdefs.h. */ |
| 11939 | #include "X11/xpm.h" |
| 11940 | #ifndef XpmReturnAllocPixels |
| 11941 | no_return_alloc_pixels |
| 11942 | #endif |
| 11943 | |
| 11944 | _ACEOF |
| 11945 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11946 | $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then |
| 11947 | HAVE_XPM=no |
| 11948 | else |
| 11949 | HAVE_XPM=yes |
| 11950 | fi |
| 11951 | rm -f conftest* |
| 11952 | |
| 11953 | |
| 11954 | if test "${HAVE_XPM}" = "yes"; then |
| 11955 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11956 | echo "${ECHO_T}yes" >&6 |
| 11957 | else |
| 11958 | echo "$as_me:$LINENO: result: no" >&5 |
| 11959 | echo "${ECHO_T}no" >&6 |
| 11960 | fi |
| 11961 | fi |
| 11962 | fi |
| 11963 | |
| 11964 | if test "${HAVE_XPM}" = "yes"; then |
| 11965 | |
| 11966 | cat >>confdefs.h <<\_ACEOF |
| 11967 | #define HAVE_XPM 1 |
| 11968 | _ACEOF |
| 11969 | |
| 11970 | fi |
| 11971 | fi |
| 11972 | |
| 11973 | ### Use -ljpeg if available, unless `--with-jpeg=no'. |
| 11974 | HAVE_JPEG=no |
| 11975 | if test "${HAVE_X11}" = "yes"; then |
| 11976 | if test "${with_jpeg}" != "no"; then |
| 11977 | if test "${ac_cv_header_jerror_h+set}" = set; then |
| 11978 | echo "$as_me:$LINENO: checking for jerror.h" >&5 |
| 11979 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 |
| 11980 | if test "${ac_cv_header_jerror_h+set}" = set; then |
| 11981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11982 | fi |
| 11983 | echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 |
| 11984 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 |
| 11985 | else |
| 11986 | # Is the header compilable? |
| 11987 | echo "$as_me:$LINENO: checking jerror.h usability" >&5 |
| 11988 | echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6 |
| 11989 | cat >conftest.$ac_ext <<_ACEOF |
| 11990 | /* confdefs.h. */ |
| 11991 | _ACEOF |
| 11992 | cat confdefs.h >>conftest.$ac_ext |
| 11993 | cat >>conftest.$ac_ext <<_ACEOF |
| 11994 | /* end confdefs.h. */ |
| 11995 | $ac_includes_default |
| 11996 | #include <jerror.h> |
| 11997 | _ACEOF |
| 11998 | rm -f conftest.$ac_objext |
| 11999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12000 | (eval $ac_compile) 2>conftest.er1 |
| 12001 | ac_status=$? |
| 12002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12003 | rm -f conftest.er1 |
| 12004 | cat conftest.err >&5 |
| 12005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12006 | (exit $ac_status); } && |
| 12007 | { ac_try='test -z "$ac_c_werror_flag" |
| 12008 | || test ! -s conftest.err' |
| 12009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12010 | (eval $ac_try) 2>&5 |
| 12011 | ac_status=$? |
| 12012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12013 | (exit $ac_status); }; } && |
| 12014 | { ac_try='test -s conftest.$ac_objext' |
| 12015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12016 | (eval $ac_try) 2>&5 |
| 12017 | ac_status=$? |
| 12018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12019 | (exit $ac_status); }; }; then |
| 12020 | ac_header_compiler=yes |
| 12021 | else |
| 12022 | echo "$as_me: failed program was:" >&5 |
| 12023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12024 | |
| 12025 | ac_header_compiler=no |
| 12026 | fi |
| 12027 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12028 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12029 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12030 | |
| 12031 | # Is the header present? |
| 12032 | echo "$as_me:$LINENO: checking jerror.h presence" >&5 |
| 12033 | echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6 |
| 12034 | cat >conftest.$ac_ext <<_ACEOF |
| 12035 | /* confdefs.h. */ |
| 12036 | _ACEOF |
| 12037 | cat confdefs.h >>conftest.$ac_ext |
| 12038 | cat >>conftest.$ac_ext <<_ACEOF |
| 12039 | /* end confdefs.h. */ |
| 12040 | #include <jerror.h> |
| 12041 | _ACEOF |
| 12042 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12043 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12044 | ac_status=$? |
| 12045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12046 | rm -f conftest.er1 |
| 12047 | cat conftest.err >&5 |
| 12048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12049 | (exit $ac_status); } >/dev/null; then |
| 12050 | if test -s conftest.err; then |
| 12051 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12052 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12053 | else |
| 12054 | ac_cpp_err= |
| 12055 | fi |
| 12056 | else |
| 12057 | ac_cpp_err=yes |
| 12058 | fi |
| 12059 | if test -z "$ac_cpp_err"; then |
| 12060 | ac_header_preproc=yes |
| 12061 | else |
| 12062 | echo "$as_me: failed program was:" >&5 |
| 12063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12064 | |
| 12065 | ac_header_preproc=no |
| 12066 | fi |
| 12067 | rm -f conftest.err conftest.$ac_ext |
| 12068 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12069 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12070 | |
| 12071 | # So? What about this header? |
| 12072 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12073 | yes:no: ) |
| 12074 | { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12075 | echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12076 | { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5 |
| 12077 | echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;} |
| 12078 | ac_header_preproc=yes |
| 12079 | ;; |
| 12080 | no:yes:* ) |
| 12081 | { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5 |
| 12082 | echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;} |
| 12083 | { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5 |
| 12084 | echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;} |
| 12085 | { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5 |
| 12086 | echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;} |
| 12087 | { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12088 | echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12089 | { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5 |
| 12090 | echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;} |
| 12091 | { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5 |
| 12092 | echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;} |
| 12093 | ( |
| 12094 | cat <<\_ASBOX |
| 12095 | ## ------------------------------------------ ## |
| 12096 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 12097 | ## ------------------------------------------ ## |
| 12098 | _ASBOX |
| 12099 | ) | |
| 12100 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12101 | ;; |
| 12102 | esac |
| 12103 | echo "$as_me:$LINENO: checking for jerror.h" >&5 |
| 12104 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 |
| 12105 | if test "${ac_cv_header_jerror_h+set}" = set; then |
| 12106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12107 | else |
| 12108 | ac_cv_header_jerror_h=$ac_header_preproc |
| 12109 | fi |
| 12110 | echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 |
| 12111 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 |
| 12112 | |
| 12113 | fi |
| 12114 | if test $ac_cv_header_jerror_h = yes; then |
| 12115 | echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5 |
| 12116 | echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6 |
| 12117 | if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then |
| 12118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12119 | else |
| 12120 | ac_check_lib_save_LIBS=$LIBS |
| 12121 | LIBS="-ljpeg $LIBS" |
| 12122 | cat >conftest.$ac_ext <<_ACEOF |
| 12123 | /* confdefs.h. */ |
| 12124 | _ACEOF |
| 12125 | cat confdefs.h >>conftest.$ac_ext |
| 12126 | cat >>conftest.$ac_ext <<_ACEOF |
| 12127 | /* end confdefs.h. */ |
| 12128 | |
| 12129 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12130 | #ifdef __cplusplus |
| 12131 | extern "C" |
| 12132 | #endif |
| 12133 | /* We use char because int might match the return type of a gcc2 |
| 12134 | builtin and then its argument prototype would still apply. */ |
| 12135 | char jpeg_destroy_compress (); |
| 12136 | int |
| 12137 | main () |
| 12138 | { |
| 12139 | jpeg_destroy_compress (); |
| 12140 | ; |
| 12141 | return 0; |
| 12142 | } |
| 12143 | _ACEOF |
| 12144 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12145 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12146 | (eval $ac_link) 2>conftest.er1 |
| 12147 | ac_status=$? |
| 12148 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12149 | rm -f conftest.er1 |
| 12150 | cat conftest.err >&5 |
| 12151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12152 | (exit $ac_status); } && |
| 12153 | { ac_try='test -z "$ac_c_werror_flag" |
| 12154 | || test ! -s conftest.err' |
| 12155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12156 | (eval $ac_try) 2>&5 |
| 12157 | ac_status=$? |
| 12158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12159 | (exit $ac_status); }; } && |
| 12160 | { ac_try='test -s conftest$ac_exeext' |
| 12161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12162 | (eval $ac_try) 2>&5 |
| 12163 | ac_status=$? |
| 12164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12165 | (exit $ac_status); }; }; then |
| 12166 | ac_cv_lib_jpeg_jpeg_destroy_compress=yes |
| 12167 | else |
| 12168 | echo "$as_me: failed program was:" >&5 |
| 12169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12170 | |
| 12171 | ac_cv_lib_jpeg_jpeg_destroy_compress=no |
| 12172 | fi |
| 12173 | rm -f conftest.err conftest.$ac_objext \ |
| 12174 | conftest$ac_exeext conftest.$ac_ext |
| 12175 | LIBS=$ac_check_lib_save_LIBS |
| 12176 | fi |
| 12177 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 |
| 12178 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6 |
| 12179 | if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then |
| 12180 | HAVE_JPEG=yes |
| 12181 | fi |
| 12182 | |
| 12183 | fi |
| 12184 | |
| 12185 | |
| 12186 | fi |
| 12187 | |
| 12188 | |
| 12189 | if test "${HAVE_JPEG}" = "yes"; then |
| 12190 | cat >>confdefs.h <<\_ACEOF |
| 12191 | #define HAVE_JPEG 1 |
| 12192 | _ACEOF |
| 12193 | |
| 12194 | cat >conftest.$ac_ext <<_ACEOF |
| 12195 | /* confdefs.h. */ |
| 12196 | _ACEOF |
| 12197 | cat confdefs.h >>conftest.$ac_ext |
| 12198 | cat >>conftest.$ac_ext <<_ACEOF |
| 12199 | /* end confdefs.h. */ |
| 12200 | #include <jpeglib.h> |
| 12201 | version=JPEG_LIB_VERSION |
| 12202 | |
| 12203 | _ACEOF |
| 12204 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 12205 | $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then |
| 12206 | cat >>confdefs.h <<\_ACEOF |
| 12207 | #define HAVE_JPEG 1 |
| 12208 | _ACEOF |
| 12209 | |
| 12210 | else |
| 12211 | { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5 |
| 12212 | echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} |
| 12213 | HAVE_JPEG=no |
| 12214 | fi |
| 12215 | rm -f conftest* |
| 12216 | |
| 12217 | fi |
| 12218 | fi |
| 12219 | |
| 12220 | ### Use -lpng if available, unless `--with-png=no'. |
| 12221 | HAVE_PNG=no |
| 12222 | if test "${HAVE_X11}" = "yes"; then |
| 12223 | if test "${with_png}" != "no"; then |
| 12224 | # Debian unstable as of July 2003 has multiple libpngs, and puts png.h |
| 12225 | # in /usr/include/libpng. |
| 12226 | |
| 12227 | |
| 12228 | for ac_header in png.h libpng/png.h |
| 12229 | do |
| 12230 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12231 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12232 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12233 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12234 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12236 | fi |
| 12237 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12238 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12239 | else |
| 12240 | # Is the header compilable? |
| 12241 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12242 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 12243 | cat >conftest.$ac_ext <<_ACEOF |
| 12244 | /* confdefs.h. */ |
| 12245 | _ACEOF |
| 12246 | cat confdefs.h >>conftest.$ac_ext |
| 12247 | cat >>conftest.$ac_ext <<_ACEOF |
| 12248 | /* end confdefs.h. */ |
| 12249 | $ac_includes_default |
| 12250 | #include <$ac_header> |
| 12251 | _ACEOF |
| 12252 | rm -f conftest.$ac_objext |
| 12253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12254 | (eval $ac_compile) 2>conftest.er1 |
| 12255 | ac_status=$? |
| 12256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12257 | rm -f conftest.er1 |
| 12258 | cat conftest.err >&5 |
| 12259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12260 | (exit $ac_status); } && |
| 12261 | { ac_try='test -z "$ac_c_werror_flag" |
| 12262 | || test ! -s conftest.err' |
| 12263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12264 | (eval $ac_try) 2>&5 |
| 12265 | ac_status=$? |
| 12266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12267 | (exit $ac_status); }; } && |
| 12268 | { ac_try='test -s conftest.$ac_objext' |
| 12269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12270 | (eval $ac_try) 2>&5 |
| 12271 | ac_status=$? |
| 12272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12273 | (exit $ac_status); }; }; then |
| 12274 | ac_header_compiler=yes |
| 12275 | else |
| 12276 | echo "$as_me: failed program was:" >&5 |
| 12277 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12278 | |
| 12279 | ac_header_compiler=no |
| 12280 | fi |
| 12281 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12282 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12283 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12284 | |
| 12285 | # Is the header present? |
| 12286 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12287 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 12288 | cat >conftest.$ac_ext <<_ACEOF |
| 12289 | /* confdefs.h. */ |
| 12290 | _ACEOF |
| 12291 | cat confdefs.h >>conftest.$ac_ext |
| 12292 | cat >>conftest.$ac_ext <<_ACEOF |
| 12293 | /* end confdefs.h. */ |
| 12294 | #include <$ac_header> |
| 12295 | _ACEOF |
| 12296 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12297 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12298 | ac_status=$? |
| 12299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12300 | rm -f conftest.er1 |
| 12301 | cat conftest.err >&5 |
| 12302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12303 | (exit $ac_status); } >/dev/null; then |
| 12304 | if test -s conftest.err; then |
| 12305 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12306 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12307 | else |
| 12308 | ac_cpp_err= |
| 12309 | fi |
| 12310 | else |
| 12311 | ac_cpp_err=yes |
| 12312 | fi |
| 12313 | if test -z "$ac_cpp_err"; then |
| 12314 | ac_header_preproc=yes |
| 12315 | else |
| 12316 | echo "$as_me: failed program was:" >&5 |
| 12317 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12318 | |
| 12319 | ac_header_preproc=no |
| 12320 | fi |
| 12321 | rm -f conftest.err conftest.$ac_ext |
| 12322 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12323 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12324 | |
| 12325 | # So? What about this header? |
| 12326 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12327 | yes:no: ) |
| 12328 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12329 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12330 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12331 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12332 | ac_header_preproc=yes |
| 12333 | ;; |
| 12334 | no:yes:* ) |
| 12335 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12336 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12337 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12338 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12339 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12340 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12341 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12342 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12343 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12344 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12345 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12346 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12347 | ( |
| 12348 | cat <<\_ASBOX |
| 12349 | ## ------------------------------------------ ## |
| 12350 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 12351 | ## ------------------------------------------ ## |
| 12352 | _ASBOX |
| 12353 | ) | |
| 12354 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12355 | ;; |
| 12356 | esac |
| 12357 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12358 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12359 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12361 | else |
| 12362 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12363 | fi |
| 12364 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12365 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12366 | |
| 12367 | fi |
| 12368 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12369 | cat >>confdefs.h <<_ACEOF |
| 12370 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12371 | _ACEOF |
| 12372 | |
| 12373 | fi |
| 12374 | |
| 12375 | done |
| 12376 | |
| 12377 | if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then |
| 12378 | echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5 |
| 12379 | echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6 |
| 12380 | if test "${ac_cv_lib_png_png_get_channels+set}" = set; then |
| 12381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12382 | else |
| 12383 | ac_check_lib_save_LIBS=$LIBS |
| 12384 | LIBS="-lpng -lz -lm $LIBS" |
| 12385 | cat >conftest.$ac_ext <<_ACEOF |
| 12386 | /* confdefs.h. */ |
| 12387 | _ACEOF |
| 12388 | cat confdefs.h >>conftest.$ac_ext |
| 12389 | cat >>conftest.$ac_ext <<_ACEOF |
| 12390 | /* end confdefs.h. */ |
| 12391 | |
| 12392 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12393 | #ifdef __cplusplus |
| 12394 | extern "C" |
| 12395 | #endif |
| 12396 | /* We use char because int might match the return type of a gcc2 |
| 12397 | builtin and then its argument prototype would still apply. */ |
| 12398 | char png_get_channels (); |
| 12399 | int |
| 12400 | main () |
| 12401 | { |
| 12402 | png_get_channels (); |
| 12403 | ; |
| 12404 | return 0; |
| 12405 | } |
| 12406 | _ACEOF |
| 12407 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12408 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12409 | (eval $ac_link) 2>conftest.er1 |
| 12410 | ac_status=$? |
| 12411 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12412 | rm -f conftest.er1 |
| 12413 | cat conftest.err >&5 |
| 12414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12415 | (exit $ac_status); } && |
| 12416 | { ac_try='test -z "$ac_c_werror_flag" |
| 12417 | || test ! -s conftest.err' |
| 12418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12419 | (eval $ac_try) 2>&5 |
| 12420 | ac_status=$? |
| 12421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12422 | (exit $ac_status); }; } && |
| 12423 | { ac_try='test -s conftest$ac_exeext' |
| 12424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12425 | (eval $ac_try) 2>&5 |
| 12426 | ac_status=$? |
| 12427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12428 | (exit $ac_status); }; }; then |
| 12429 | ac_cv_lib_png_png_get_channels=yes |
| 12430 | else |
| 12431 | echo "$as_me: failed program was:" >&5 |
| 12432 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12433 | |
| 12434 | ac_cv_lib_png_png_get_channels=no |
| 12435 | fi |
| 12436 | rm -f conftest.err conftest.$ac_objext \ |
| 12437 | conftest$ac_exeext conftest.$ac_ext |
| 12438 | LIBS=$ac_check_lib_save_LIBS |
| 12439 | fi |
| 12440 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5 |
| 12441 | echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6 |
| 12442 | if test $ac_cv_lib_png_png_get_channels = yes; then |
| 12443 | HAVE_PNG=yes |
| 12444 | fi |
| 12445 | |
| 12446 | fi |
| 12447 | fi |
| 12448 | |
| 12449 | if test "${HAVE_PNG}" = "yes"; then |
| 12450 | |
| 12451 | cat >>confdefs.h <<\_ACEOF |
| 12452 | #define HAVE_PNG 1 |
| 12453 | _ACEOF |
| 12454 | |
| 12455 | fi |
| 12456 | fi |
| 12457 | |
| 12458 | ### Use -ltiff if available, unless `--with-tiff=no'. |
| 12459 | HAVE_TIFF=no |
| 12460 | if test "${HAVE_X11}" = "yes"; then |
| 12461 | if test "${with_tiff}" != "no"; then |
| 12462 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
| 12463 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 |
| 12464 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 |
| 12465 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
| 12466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12467 | fi |
| 12468 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
| 12469 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 |
| 12470 | else |
| 12471 | # Is the header compilable? |
| 12472 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 |
| 12473 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 |
| 12474 | cat >conftest.$ac_ext <<_ACEOF |
| 12475 | /* confdefs.h. */ |
| 12476 | _ACEOF |
| 12477 | cat confdefs.h >>conftest.$ac_ext |
| 12478 | cat >>conftest.$ac_ext <<_ACEOF |
| 12479 | /* end confdefs.h. */ |
| 12480 | $ac_includes_default |
| 12481 | #include <tiffio.h> |
| 12482 | _ACEOF |
| 12483 | rm -f conftest.$ac_objext |
| 12484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12485 | (eval $ac_compile) 2>conftest.er1 |
| 12486 | ac_status=$? |
| 12487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12488 | rm -f conftest.er1 |
| 12489 | cat conftest.err >&5 |
| 12490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12491 | (exit $ac_status); } && |
| 12492 | { ac_try='test -z "$ac_c_werror_flag" |
| 12493 | || test ! -s conftest.err' |
| 12494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12495 | (eval $ac_try) 2>&5 |
| 12496 | ac_status=$? |
| 12497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12498 | (exit $ac_status); }; } && |
| 12499 | { ac_try='test -s conftest.$ac_objext' |
| 12500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12501 | (eval $ac_try) 2>&5 |
| 12502 | ac_status=$? |
| 12503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12504 | (exit $ac_status); }; }; then |
| 12505 | ac_header_compiler=yes |
| 12506 | else |
| 12507 | echo "$as_me: failed program was:" >&5 |
| 12508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12509 | |
| 12510 | ac_header_compiler=no |
| 12511 | fi |
| 12512 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12513 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12514 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12515 | |
| 12516 | # Is the header present? |
| 12517 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 |
| 12518 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 |
| 12519 | cat >conftest.$ac_ext <<_ACEOF |
| 12520 | /* confdefs.h. */ |
| 12521 | _ACEOF |
| 12522 | cat confdefs.h >>conftest.$ac_ext |
| 12523 | cat >>conftest.$ac_ext <<_ACEOF |
| 12524 | /* end confdefs.h. */ |
| 12525 | #include <tiffio.h> |
| 12526 | _ACEOF |
| 12527 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12528 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12529 | ac_status=$? |
| 12530 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12531 | rm -f conftest.er1 |
| 12532 | cat conftest.err >&5 |
| 12533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12534 | (exit $ac_status); } >/dev/null; then |
| 12535 | if test -s conftest.err; then |
| 12536 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12537 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12538 | else |
| 12539 | ac_cpp_err= |
| 12540 | fi |
| 12541 | else |
| 12542 | ac_cpp_err=yes |
| 12543 | fi |
| 12544 | if test -z "$ac_cpp_err"; then |
| 12545 | ac_header_preproc=yes |
| 12546 | else |
| 12547 | echo "$as_me: failed program was:" >&5 |
| 12548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12549 | |
| 12550 | ac_header_preproc=no |
| 12551 | fi |
| 12552 | rm -f conftest.err conftest.$ac_ext |
| 12553 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12554 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12555 | |
| 12556 | # So? What about this header? |
| 12557 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12558 | yes:no: ) |
| 12559 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12560 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12561 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
| 12562 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} |
| 12563 | ac_header_preproc=yes |
| 12564 | ;; |
| 12565 | no:yes:* ) |
| 12566 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
| 12567 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} |
| 12568 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
| 12569 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} |
| 12570 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 |
| 12571 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} |
| 12572 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12573 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12574 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
| 12575 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} |
| 12576 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
| 12577 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} |
| 12578 | ( |
| 12579 | cat <<\_ASBOX |
| 12580 | ## ------------------------------------------ ## |
| 12581 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 12582 | ## ------------------------------------------ ## |
| 12583 | _ASBOX |
| 12584 | ) | |
| 12585 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12586 | ;; |
| 12587 | esac |
| 12588 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 |
| 12589 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 |
| 12590 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
| 12591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12592 | else |
| 12593 | ac_cv_header_tiffio_h=$ac_header_preproc |
| 12594 | fi |
| 12595 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
| 12596 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 |
| 12597 | |
| 12598 | fi |
| 12599 | if test $ac_cv_header_tiffio_h = yes; then |
| 12600 | tifflibs="-lz -lm" |
| 12601 | # At least one tiff package requires the jpeg library. |
| 12602 | if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi |
| 12603 | echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5 |
| 12604 | echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6 |
| 12605 | if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then |
| 12606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12607 | else |
| 12608 | ac_check_lib_save_LIBS=$LIBS |
| 12609 | LIBS="-ltiff $tifflibs $LIBS" |
| 12610 | cat >conftest.$ac_ext <<_ACEOF |
| 12611 | /* confdefs.h. */ |
| 12612 | _ACEOF |
| 12613 | cat confdefs.h >>conftest.$ac_ext |
| 12614 | cat >>conftest.$ac_ext <<_ACEOF |
| 12615 | /* end confdefs.h. */ |
| 12616 | |
| 12617 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12618 | #ifdef __cplusplus |
| 12619 | extern "C" |
| 12620 | #endif |
| 12621 | /* We use char because int might match the return type of a gcc2 |
| 12622 | builtin and then its argument prototype would still apply. */ |
| 12623 | char TIFFGetVersion (); |
| 12624 | int |
| 12625 | main () |
| 12626 | { |
| 12627 | TIFFGetVersion (); |
| 12628 | ; |
| 12629 | return 0; |
| 12630 | } |
| 12631 | _ACEOF |
| 12632 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12633 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12634 | (eval $ac_link) 2>conftest.er1 |
| 12635 | ac_status=$? |
| 12636 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12637 | rm -f conftest.er1 |
| 12638 | cat conftest.err >&5 |
| 12639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12640 | (exit $ac_status); } && |
| 12641 | { ac_try='test -z "$ac_c_werror_flag" |
| 12642 | || test ! -s conftest.err' |
| 12643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12644 | (eval $ac_try) 2>&5 |
| 12645 | ac_status=$? |
| 12646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12647 | (exit $ac_status); }; } && |
| 12648 | { ac_try='test -s conftest$ac_exeext' |
| 12649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12650 | (eval $ac_try) 2>&5 |
| 12651 | ac_status=$? |
| 12652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12653 | (exit $ac_status); }; }; then |
| 12654 | ac_cv_lib_tiff_TIFFGetVersion=yes |
| 12655 | else |
| 12656 | echo "$as_me: failed program was:" >&5 |
| 12657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12658 | |
| 12659 | ac_cv_lib_tiff_TIFFGetVersion=no |
| 12660 | fi |
| 12661 | rm -f conftest.err conftest.$ac_objext \ |
| 12662 | conftest$ac_exeext conftest.$ac_ext |
| 12663 | LIBS=$ac_check_lib_save_LIBS |
| 12664 | fi |
| 12665 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 |
| 12666 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6 |
| 12667 | if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then |
| 12668 | HAVE_TIFF=yes |
| 12669 | fi |
| 12670 | |
| 12671 | fi |
| 12672 | |
| 12673 | |
| 12674 | fi |
| 12675 | |
| 12676 | if test "${HAVE_TIFF}" = "yes"; then |
| 12677 | |
| 12678 | cat >>confdefs.h <<\_ACEOF |
| 12679 | #define HAVE_TIFF 1 |
| 12680 | _ACEOF |
| 12681 | |
| 12682 | fi |
| 12683 | fi |
| 12684 | |
| 12685 | ### Use -lgif if available, unless `--with-gif=no'. |
| 12686 | HAVE_GIF=no |
| 12687 | if test "${HAVE_X11}" = "yes"; then |
| 12688 | if test "${with_gif}" != "no"; then |
| 12689 | if test "${ac_cv_header_gif_lib_h+set}" = set; then |
| 12690 | echo "$as_me:$LINENO: checking for gif_lib.h" >&5 |
| 12691 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 |
| 12692 | if test "${ac_cv_header_gif_lib_h+set}" = set; then |
| 12693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12694 | fi |
| 12695 | echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 |
| 12696 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 |
| 12697 | else |
| 12698 | # Is the header compilable? |
| 12699 | echo "$as_me:$LINENO: checking gif_lib.h usability" >&5 |
| 12700 | echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6 |
| 12701 | cat >conftest.$ac_ext <<_ACEOF |
| 12702 | /* confdefs.h. */ |
| 12703 | _ACEOF |
| 12704 | cat confdefs.h >>conftest.$ac_ext |
| 12705 | cat >>conftest.$ac_ext <<_ACEOF |
| 12706 | /* end confdefs.h. */ |
| 12707 | $ac_includes_default |
| 12708 | #include <gif_lib.h> |
| 12709 | _ACEOF |
| 12710 | rm -f conftest.$ac_objext |
| 12711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12712 | (eval $ac_compile) 2>conftest.er1 |
| 12713 | ac_status=$? |
| 12714 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12715 | rm -f conftest.er1 |
| 12716 | cat conftest.err >&5 |
| 12717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12718 | (exit $ac_status); } && |
| 12719 | { ac_try='test -z "$ac_c_werror_flag" |
| 12720 | || test ! -s conftest.err' |
| 12721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12722 | (eval $ac_try) 2>&5 |
| 12723 | ac_status=$? |
| 12724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12725 | (exit $ac_status); }; } && |
| 12726 | { ac_try='test -s conftest.$ac_objext' |
| 12727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12728 | (eval $ac_try) 2>&5 |
| 12729 | ac_status=$? |
| 12730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12731 | (exit $ac_status); }; }; then |
| 12732 | ac_header_compiler=yes |
| 12733 | else |
| 12734 | echo "$as_me: failed program was:" >&5 |
| 12735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12736 | |
| 12737 | ac_header_compiler=no |
| 12738 | fi |
| 12739 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12740 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12741 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12742 | |
| 12743 | # Is the header present? |
| 12744 | echo "$as_me:$LINENO: checking gif_lib.h presence" >&5 |
| 12745 | echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6 |
| 12746 | cat >conftest.$ac_ext <<_ACEOF |
| 12747 | /* confdefs.h. */ |
| 12748 | _ACEOF |
| 12749 | cat confdefs.h >>conftest.$ac_ext |
| 12750 | cat >>conftest.$ac_ext <<_ACEOF |
| 12751 | /* end confdefs.h. */ |
| 12752 | #include <gif_lib.h> |
| 12753 | _ACEOF |
| 12754 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12755 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12756 | ac_status=$? |
| 12757 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12758 | rm -f conftest.er1 |
| 12759 | cat conftest.err >&5 |
| 12760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12761 | (exit $ac_status); } >/dev/null; then |
| 12762 | if test -s conftest.err; then |
| 12763 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12764 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12765 | else |
| 12766 | ac_cpp_err= |
| 12767 | fi |
| 12768 | else |
| 12769 | ac_cpp_err=yes |
| 12770 | fi |
| 12771 | if test -z "$ac_cpp_err"; then |
| 12772 | ac_header_preproc=yes |
| 12773 | else |
| 12774 | echo "$as_me: failed program was:" >&5 |
| 12775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12776 | |
| 12777 | ac_header_preproc=no |
| 12778 | fi |
| 12779 | rm -f conftest.err conftest.$ac_ext |
| 12780 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12781 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12782 | |
| 12783 | # So? What about this header? |
| 12784 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12785 | yes:no: ) |
| 12786 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12787 | echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12788 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5 |
| 12789 | echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;} |
| 12790 | ac_header_preproc=yes |
| 12791 | ;; |
| 12792 | no:yes:* ) |
| 12793 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5 |
| 12794 | echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;} |
| 12795 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5 |
| 12796 | echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;} |
| 12797 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5 |
| 12798 | echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;} |
| 12799 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12800 | echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12801 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5 |
| 12802 | echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;} |
| 12803 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5 |
| 12804 | echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;} |
| 12805 | ( |
| 12806 | cat <<\_ASBOX |
| 12807 | ## ------------------------------------------ ## |
| 12808 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 12809 | ## ------------------------------------------ ## |
| 12810 | _ASBOX |
| 12811 | ) | |
| 12812 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12813 | ;; |
| 12814 | esac |
| 12815 | echo "$as_me:$LINENO: checking for gif_lib.h" >&5 |
| 12816 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 |
| 12817 | if test "${ac_cv_header_gif_lib_h+set}" = set; then |
| 12818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12819 | else |
| 12820 | ac_cv_header_gif_lib_h=$ac_header_preproc |
| 12821 | fi |
| 12822 | echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 |
| 12823 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 |
| 12824 | |
| 12825 | fi |
| 12826 | if test $ac_cv_header_gif_lib_h = yes; then |
| 12827 | # EGifPutExtensionLast only exists from version libungif-4.1.0b1. |
| 12828 | # Earlier versions can crash Emacs. |
| 12829 | echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5 |
| 12830 | echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6 |
| 12831 | if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then |
| 12832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12833 | else |
| 12834 | ac_check_lib_save_LIBS=$LIBS |
| 12835 | LIBS="-lungif $LIBS" |
| 12836 | cat >conftest.$ac_ext <<_ACEOF |
| 12837 | /* confdefs.h. */ |
| 12838 | _ACEOF |
| 12839 | cat confdefs.h >>conftest.$ac_ext |
| 12840 | cat >>conftest.$ac_ext <<_ACEOF |
| 12841 | /* end confdefs.h. */ |
| 12842 | |
| 12843 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12844 | #ifdef __cplusplus |
| 12845 | extern "C" |
| 12846 | #endif |
| 12847 | /* We use char because int might match the return type of a gcc2 |
| 12848 | builtin and then its argument prototype would still apply. */ |
| 12849 | char EGifPutExtensionLast (); |
| 12850 | int |
| 12851 | main () |
| 12852 | { |
| 12853 | EGifPutExtensionLast (); |
| 12854 | ; |
| 12855 | return 0; |
| 12856 | } |
| 12857 | _ACEOF |
| 12858 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12859 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12860 | (eval $ac_link) 2>conftest.er1 |
| 12861 | ac_status=$? |
| 12862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12863 | rm -f conftest.er1 |
| 12864 | cat conftest.err >&5 |
| 12865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12866 | (exit $ac_status); } && |
| 12867 | { ac_try='test -z "$ac_c_werror_flag" |
| 12868 | || test ! -s conftest.err' |
| 12869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12870 | (eval $ac_try) 2>&5 |
| 12871 | ac_status=$? |
| 12872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12873 | (exit $ac_status); }; } && |
| 12874 | { ac_try='test -s conftest$ac_exeext' |
| 12875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12876 | (eval $ac_try) 2>&5 |
| 12877 | ac_status=$? |
| 12878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12879 | (exit $ac_status); }; }; then |
| 12880 | ac_cv_lib_ungif_EGifPutExtensionLast=yes |
| 12881 | else |
| 12882 | echo "$as_me: failed program was:" >&5 |
| 12883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12884 | |
| 12885 | ac_cv_lib_ungif_EGifPutExtensionLast=no |
| 12886 | fi |
| 12887 | rm -f conftest.err conftest.$ac_objext \ |
| 12888 | conftest$ac_exeext conftest.$ac_ext |
| 12889 | LIBS=$ac_check_lib_save_LIBS |
| 12890 | fi |
| 12891 | echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 |
| 12892 | echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6 |
| 12893 | if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then |
| 12894 | HAVE_GIF=yes |
| 12895 | fi |
| 12896 | |
| 12897 | fi |
| 12898 | |
| 12899 | |
| 12900 | fi |
| 12901 | |
| 12902 | if test "${HAVE_GIF}" = "yes"; then |
| 12903 | |
| 12904 | cat >>confdefs.h <<\_ACEOF |
| 12905 | #define HAVE_GIF 1 |
| 12906 | _ACEOF |
| 12907 | |
| 12908 | fi |
| 12909 | fi |
| 12910 | |
| 12911 | if test "${ac_cv_header_malloc_malloc_h+set}" = set; then |
| 12912 | echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5 |
| 12913 | echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6 |
| 12914 | if test "${ac_cv_header_malloc_malloc_h+set}" = set; then |
| 12915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12916 | fi |
| 12917 | echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5 |
| 12918 | echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6 |
| 12919 | else |
| 12920 | # Is the header compilable? |
| 12921 | echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5 |
| 12922 | echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6 |
| 12923 | cat >conftest.$ac_ext <<_ACEOF |
| 12924 | /* confdefs.h. */ |
| 12925 | _ACEOF |
| 12926 | cat confdefs.h >>conftest.$ac_ext |
| 12927 | cat >>conftest.$ac_ext <<_ACEOF |
| 12928 | /* end confdefs.h. */ |
| 12929 | $ac_includes_default |
| 12930 | #include <malloc/malloc.h> |
| 12931 | _ACEOF |
| 12932 | rm -f conftest.$ac_objext |
| 12933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12934 | (eval $ac_compile) 2>conftest.er1 |
| 12935 | ac_status=$? |
| 12936 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12937 | rm -f conftest.er1 |
| 12938 | cat conftest.err >&5 |
| 12939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12940 | (exit $ac_status); } && |
| 12941 | { ac_try='test -z "$ac_c_werror_flag" |
| 12942 | || test ! -s conftest.err' |
| 12943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12944 | (eval $ac_try) 2>&5 |
| 12945 | ac_status=$? |
| 12946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12947 | (exit $ac_status); }; } && |
| 12948 | { ac_try='test -s conftest.$ac_objext' |
| 12949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12950 | (eval $ac_try) 2>&5 |
| 12951 | ac_status=$? |
| 12952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12953 | (exit $ac_status); }; }; then |
| 12954 | ac_header_compiler=yes |
| 12955 | else |
| 12956 | echo "$as_me: failed program was:" >&5 |
| 12957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12958 | |
| 12959 | ac_header_compiler=no |
| 12960 | fi |
| 12961 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12962 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12963 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12964 | |
| 12965 | # Is the header present? |
| 12966 | echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5 |
| 12967 | echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6 |
| 12968 | cat >conftest.$ac_ext <<_ACEOF |
| 12969 | /* confdefs.h. */ |
| 12970 | _ACEOF |
| 12971 | cat confdefs.h >>conftest.$ac_ext |
| 12972 | cat >>conftest.$ac_ext <<_ACEOF |
| 12973 | /* end confdefs.h. */ |
| 12974 | #include <malloc/malloc.h> |
| 12975 | _ACEOF |
| 12976 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12977 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12978 | ac_status=$? |
| 12979 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12980 | rm -f conftest.er1 |
| 12981 | cat conftest.err >&5 |
| 12982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12983 | (exit $ac_status); } >/dev/null; then |
| 12984 | if test -s conftest.err; then |
| 12985 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12986 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12987 | else |
| 12988 | ac_cpp_err= |
| 12989 | fi |
| 12990 | else |
| 12991 | ac_cpp_err=yes |
| 12992 | fi |
| 12993 | if test -z "$ac_cpp_err"; then |
| 12994 | ac_header_preproc=yes |
| 12995 | else |
| 12996 | echo "$as_me: failed program was:" >&5 |
| 12997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12998 | |
| 12999 | ac_header_preproc=no |
| 13000 | fi |
| 13001 | rm -f conftest.err conftest.$ac_ext |
| 13002 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13003 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 13004 | |
| 13005 | # So? What about this header? |
| 13006 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13007 | yes:no: ) |
| 13008 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13009 | echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 13010 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5 |
| 13011 | echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;} |
| 13012 | ac_header_preproc=yes |
| 13013 | ;; |
| 13014 | no:yes:* ) |
| 13015 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5 |
| 13016 | echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;} |
| 13017 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5 |
| 13018 | echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;} |
| 13019 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5 |
| 13020 | echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;} |
| 13021 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13022 | echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 13023 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5 |
| 13024 | echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;} |
| 13025 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5 |
| 13026 | echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;} |
| 13027 | ( |
| 13028 | cat <<\_ASBOX |
| 13029 | ## ------------------------------------------ ## |
| 13030 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 13031 | ## ------------------------------------------ ## |
| 13032 | _ASBOX |
| 13033 | ) | |
| 13034 | sed "s/^/$as_me: WARNING: /" >&2 |
| 13035 | ;; |
| 13036 | esac |
| 13037 | echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5 |
| 13038 | echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6 |
| 13039 | if test "${ac_cv_header_malloc_malloc_h+set}" = set; then |
| 13040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13041 | else |
| 13042 | ac_cv_header_malloc_malloc_h=$ac_header_preproc |
| 13043 | fi |
| 13044 | echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5 |
| 13045 | echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6 |
| 13046 | |
| 13047 | fi |
| 13048 | if test $ac_cv_header_malloc_malloc_h = yes; then |
| 13049 | |
| 13050 | cat >>confdefs.h <<\_ACEOF |
| 13051 | #define HAVE_MALLOC_MALLOC_H 1 |
| 13052 | _ACEOF |
| 13053 | |
| 13054 | fi |
| 13055 | |
| 13056 | |
| 13057 | |
| 13058 | ### Use Mac OS X Carbon API to implement GUI. |
| 13059 | if test "${HAVE_CARBON}" = "yes"; then |
| 13060 | |
| 13061 | cat >>confdefs.h <<\_ACEOF |
| 13062 | #define HAVE_CARBON 1 |
| 13063 | _ACEOF |
| 13064 | |
| 13065 | ## Specify the install directory |
| 13066 | carbon_appdir= |
| 13067 | if test "${carbon_appdir_x}" != ""; then |
| 13068 | case ${carbon_appdir_x} in |
| 13069 | y | ye | yes) carbon_appdir=/Applications ;; |
| 13070 | * ) carbon_appdir=${carbon_appdir_x} ;; |
| 13071 | esac |
| 13072 | fi |
| 13073 | # We also have mouse menus. |
| 13074 | HAVE_MENUS=yes |
| 13075 | |
| 13076 | tmp_CFLAGS="$CFLAGS" |
| 13077 | CFLAGS="$CFLAGS -framework Carbon" |
| 13078 | echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5 |
| 13079 | echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6 |
| 13080 | if test "${ac_cv_func_CancelMenuTracking+set}" = set; then |
| 13081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13082 | else |
| 13083 | cat >conftest.$ac_ext <<_ACEOF |
| 13084 | /* confdefs.h. */ |
| 13085 | _ACEOF |
| 13086 | cat confdefs.h >>conftest.$ac_ext |
| 13087 | cat >>conftest.$ac_ext <<_ACEOF |
| 13088 | /* end confdefs.h. */ |
| 13089 | /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking. |
| 13090 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13091 | #define CancelMenuTracking innocuous_CancelMenuTracking |
| 13092 | |
| 13093 | /* System header to define __stub macros and hopefully few prototypes, |
| 13094 | which can conflict with char CancelMenuTracking (); below. |
| 13095 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13096 | <limits.h> exists even on freestanding compilers. */ |
| 13097 | |
| 13098 | #ifdef __STDC__ |
| 13099 | # include <limits.h> |
| 13100 | #else |
| 13101 | # include <assert.h> |
| 13102 | #endif |
| 13103 | |
| 13104 | #undef CancelMenuTracking |
| 13105 | |
| 13106 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13107 | #ifdef __cplusplus |
| 13108 | extern "C" |
| 13109 | { |
| 13110 | #endif |
| 13111 | /* We use char because int might match the return type of a gcc2 |
| 13112 | builtin and then its argument prototype would still apply. */ |
| 13113 | char CancelMenuTracking (); |
| 13114 | /* The GNU C library defines this for functions which it implements |
| 13115 | to always fail with ENOSYS. Some functions are actually named |
| 13116 | something starting with __ and the normal name is an alias. */ |
| 13117 | #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking) |
| 13118 | choke me |
| 13119 | #else |
| 13120 | char (*f) () = CancelMenuTracking; |
| 13121 | #endif |
| 13122 | #ifdef __cplusplus |
| 13123 | } |
| 13124 | #endif |
| 13125 | |
| 13126 | int |
| 13127 | main () |
| 13128 | { |
| 13129 | return f != CancelMenuTracking; |
| 13130 | ; |
| 13131 | return 0; |
| 13132 | } |
| 13133 | _ACEOF |
| 13134 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13136 | (eval $ac_link) 2>conftest.er1 |
| 13137 | ac_status=$? |
| 13138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13139 | rm -f conftest.er1 |
| 13140 | cat conftest.err >&5 |
| 13141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13142 | (exit $ac_status); } && |
| 13143 | { ac_try='test -z "$ac_c_werror_flag" |
| 13144 | || test ! -s conftest.err' |
| 13145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13146 | (eval $ac_try) 2>&5 |
| 13147 | ac_status=$? |
| 13148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13149 | (exit $ac_status); }; } && |
| 13150 | { ac_try='test -s conftest$ac_exeext' |
| 13151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13152 | (eval $ac_try) 2>&5 |
| 13153 | ac_status=$? |
| 13154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13155 | (exit $ac_status); }; }; then |
| 13156 | ac_cv_func_CancelMenuTracking=yes |
| 13157 | else |
| 13158 | echo "$as_me: failed program was:" >&5 |
| 13159 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13160 | |
| 13161 | ac_cv_func_CancelMenuTracking=no |
| 13162 | fi |
| 13163 | rm -f conftest.err conftest.$ac_objext \ |
| 13164 | conftest$ac_exeext conftest.$ac_ext |
| 13165 | fi |
| 13166 | echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5 |
| 13167 | echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6 |
| 13168 | if test $ac_cv_func_CancelMenuTracking = yes; then |
| 13169 | have_cmt=yes |
| 13170 | else |
| 13171 | have_cmt=no |
| 13172 | fi |
| 13173 | |
| 13174 | if test "$have_cmt" = yes; then |
| 13175 | |
| 13176 | cat >>confdefs.h <<\_ACEOF |
| 13177 | #define HAVE_CANCELMENUTRACKING 1 |
| 13178 | _ACEOF |
| 13179 | |
| 13180 | fi |
| 13181 | CFLAGS="$tmp_CFLAGS" |
| 13182 | fi |
| 13183 | |
| 13184 | ### Use session management (-lSM -lICE) if available |
| 13185 | HAVE_X_SM=no |
| 13186 | if test "${HAVE_X11}" = "yes"; then |
| 13187 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then |
| 13188 | echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 |
| 13189 | echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6 |
| 13190 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then |
| 13191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13192 | fi |
| 13193 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 |
| 13194 | echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6 |
| 13195 | else |
| 13196 | # Is the header compilable? |
| 13197 | echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5 |
| 13198 | echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6 |
| 13199 | cat >conftest.$ac_ext <<_ACEOF |
| 13200 | /* confdefs.h. */ |
| 13201 | _ACEOF |
| 13202 | cat confdefs.h >>conftest.$ac_ext |
| 13203 | cat >>conftest.$ac_ext <<_ACEOF |
| 13204 | /* end confdefs.h. */ |
| 13205 | $ac_includes_default |
| 13206 | #include <X11/SM/SMlib.h> |
| 13207 | _ACEOF |
| 13208 | rm -f conftest.$ac_objext |
| 13209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13210 | (eval $ac_compile) 2>conftest.er1 |
| 13211 | ac_status=$? |
| 13212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13213 | rm -f conftest.er1 |
| 13214 | cat conftest.err >&5 |
| 13215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13216 | (exit $ac_status); } && |
| 13217 | { ac_try='test -z "$ac_c_werror_flag" |
| 13218 | || test ! -s conftest.err' |
| 13219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13220 | (eval $ac_try) 2>&5 |
| 13221 | ac_status=$? |
| 13222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13223 | (exit $ac_status); }; } && |
| 13224 | { ac_try='test -s conftest.$ac_objext' |
| 13225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13226 | (eval $ac_try) 2>&5 |
| 13227 | ac_status=$? |
| 13228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13229 | (exit $ac_status); }; }; then |
| 13230 | ac_header_compiler=yes |
| 13231 | else |
| 13232 | echo "$as_me: failed program was:" >&5 |
| 13233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13234 | |
| 13235 | ac_header_compiler=no |
| 13236 | fi |
| 13237 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13238 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13239 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 13240 | |
| 13241 | # Is the header present? |
| 13242 | echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5 |
| 13243 | echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6 |
| 13244 | cat >conftest.$ac_ext <<_ACEOF |
| 13245 | /* confdefs.h. */ |
| 13246 | _ACEOF |
| 13247 | cat confdefs.h >>conftest.$ac_ext |
| 13248 | cat >>conftest.$ac_ext <<_ACEOF |
| 13249 | /* end confdefs.h. */ |
| 13250 | #include <X11/SM/SMlib.h> |
| 13251 | _ACEOF |
| 13252 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 13253 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 13254 | ac_status=$? |
| 13255 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13256 | rm -f conftest.er1 |
| 13257 | cat conftest.err >&5 |
| 13258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13259 | (exit $ac_status); } >/dev/null; then |
| 13260 | if test -s conftest.err; then |
| 13261 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 13262 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 13263 | else |
| 13264 | ac_cpp_err= |
| 13265 | fi |
| 13266 | else |
| 13267 | ac_cpp_err=yes |
| 13268 | fi |
| 13269 | if test -z "$ac_cpp_err"; then |
| 13270 | ac_header_preproc=yes |
| 13271 | else |
| 13272 | echo "$as_me: failed program was:" >&5 |
| 13273 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13274 | |
| 13275 | ac_header_preproc=no |
| 13276 | fi |
| 13277 | rm -f conftest.err conftest.$ac_ext |
| 13278 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13279 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 13280 | |
| 13281 | # So? What about this header? |
| 13282 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13283 | yes:no: ) |
| 13284 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13285 | echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 13286 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5 |
| 13287 | echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;} |
| 13288 | ac_header_preproc=yes |
| 13289 | ;; |
| 13290 | no:yes:* ) |
| 13291 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5 |
| 13292 | echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;} |
| 13293 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5 |
| 13294 | echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;} |
| 13295 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5 |
| 13296 | echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;} |
| 13297 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13298 | echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 13299 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5 |
| 13300 | echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;} |
| 13301 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5 |
| 13302 | echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;} |
| 13303 | ( |
| 13304 | cat <<\_ASBOX |
| 13305 | ## ------------------------------------------ ## |
| 13306 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 13307 | ## ------------------------------------------ ## |
| 13308 | _ASBOX |
| 13309 | ) | |
| 13310 | sed "s/^/$as_me: WARNING: /" >&2 |
| 13311 | ;; |
| 13312 | esac |
| 13313 | echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 |
| 13314 | echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6 |
| 13315 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then |
| 13316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13317 | else |
| 13318 | ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc |
| 13319 | fi |
| 13320 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 |
| 13321 | echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6 |
| 13322 | |
| 13323 | fi |
| 13324 | if test $ac_cv_header_X11_SM_SMlib_h = yes; then |
| 13325 | echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5 |
| 13326 | echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6 |
| 13327 | if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then |
| 13328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13329 | else |
| 13330 | ac_check_lib_save_LIBS=$LIBS |
| 13331 | LIBS="-lSM -lICE $LIBS" |
| 13332 | cat >conftest.$ac_ext <<_ACEOF |
| 13333 | /* confdefs.h. */ |
| 13334 | _ACEOF |
| 13335 | cat confdefs.h >>conftest.$ac_ext |
| 13336 | cat >>conftest.$ac_ext <<_ACEOF |
| 13337 | /* end confdefs.h. */ |
| 13338 | |
| 13339 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13340 | #ifdef __cplusplus |
| 13341 | extern "C" |
| 13342 | #endif |
| 13343 | /* We use char because int might match the return type of a gcc2 |
| 13344 | builtin and then its argument prototype would still apply. */ |
| 13345 | char SmcOpenConnection (); |
| 13346 | int |
| 13347 | main () |
| 13348 | { |
| 13349 | SmcOpenConnection (); |
| 13350 | ; |
| 13351 | return 0; |
| 13352 | } |
| 13353 | _ACEOF |
| 13354 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13355 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13356 | (eval $ac_link) 2>conftest.er1 |
| 13357 | ac_status=$? |
| 13358 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13359 | rm -f conftest.er1 |
| 13360 | cat conftest.err >&5 |
| 13361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13362 | (exit $ac_status); } && |
| 13363 | { ac_try='test -z "$ac_c_werror_flag" |
| 13364 | || test ! -s conftest.err' |
| 13365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13366 | (eval $ac_try) 2>&5 |
| 13367 | ac_status=$? |
| 13368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13369 | (exit $ac_status); }; } && |
| 13370 | { ac_try='test -s conftest$ac_exeext' |
| 13371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13372 | (eval $ac_try) 2>&5 |
| 13373 | ac_status=$? |
| 13374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13375 | (exit $ac_status); }; }; then |
| 13376 | ac_cv_lib_SM_SmcOpenConnection=yes |
| 13377 | else |
| 13378 | echo "$as_me: failed program was:" >&5 |
| 13379 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13380 | |
| 13381 | ac_cv_lib_SM_SmcOpenConnection=no |
| 13382 | fi |
| 13383 | rm -f conftest.err conftest.$ac_objext \ |
| 13384 | conftest$ac_exeext conftest.$ac_ext |
| 13385 | LIBS=$ac_check_lib_save_LIBS |
| 13386 | fi |
| 13387 | echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 |
| 13388 | echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6 |
| 13389 | if test $ac_cv_lib_SM_SmcOpenConnection = yes; then |
| 13390 | HAVE_X_SM=yes |
| 13391 | fi |
| 13392 | |
| 13393 | fi |
| 13394 | |
| 13395 | |
| 13396 | |
| 13397 | if test "${HAVE_X_SM}" = "yes"; then |
| 13398 | |
| 13399 | cat >>confdefs.h <<\_ACEOF |
| 13400 | #define HAVE_X_SM 1 |
| 13401 | _ACEOF |
| 13402 | |
| 13403 | case "$LIBS" in |
| 13404 | *-lSM*) ;; |
| 13405 | *) LIBS="-lSM -lICE $LIBS" ;; |
| 13406 | esac |
| 13407 | fi |
| 13408 | fi |
| 13409 | |
| 13410 | # If netdb.h doesn't declare h_errno, we must declare it by hand. |
| 13411 | echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5 |
| 13412 | echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6 |
| 13413 | if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then |
| 13414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13415 | else |
| 13416 | cat >conftest.$ac_ext <<_ACEOF |
| 13417 | /* confdefs.h. */ |
| 13418 | _ACEOF |
| 13419 | cat confdefs.h >>conftest.$ac_ext |
| 13420 | cat >>conftest.$ac_ext <<_ACEOF |
| 13421 | /* end confdefs.h. */ |
| 13422 | #include <netdb.h> |
| 13423 | int |
| 13424 | main () |
| 13425 | { |
| 13426 | return h_errno; |
| 13427 | ; |
| 13428 | return 0; |
| 13429 | } |
| 13430 | _ACEOF |
| 13431 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13432 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13433 | (eval $ac_link) 2>conftest.er1 |
| 13434 | ac_status=$? |
| 13435 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13436 | rm -f conftest.er1 |
| 13437 | cat conftest.err >&5 |
| 13438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13439 | (exit $ac_status); } && |
| 13440 | { ac_try='test -z "$ac_c_werror_flag" |
| 13441 | || test ! -s conftest.err' |
| 13442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13443 | (eval $ac_try) 2>&5 |
| 13444 | ac_status=$? |
| 13445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13446 | (exit $ac_status); }; } && |
| 13447 | { ac_try='test -s conftest$ac_exeext' |
| 13448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13449 | (eval $ac_try) 2>&5 |
| 13450 | ac_status=$? |
| 13451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13452 | (exit $ac_status); }; }; then |
| 13453 | emacs_cv_netdb_declares_h_errno=yes |
| 13454 | else |
| 13455 | echo "$as_me: failed program was:" >&5 |
| 13456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13457 | |
| 13458 | emacs_cv_netdb_declares_h_errno=no |
| 13459 | fi |
| 13460 | rm -f conftest.err conftest.$ac_objext \ |
| 13461 | conftest$ac_exeext conftest.$ac_ext |
| 13462 | fi |
| 13463 | echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5 |
| 13464 | echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6 |
| 13465 | if test $emacs_cv_netdb_declares_h_errno = yes; then |
| 13466 | |
| 13467 | cat >>confdefs.h <<\_ACEOF |
| 13468 | #define HAVE_H_ERRNO 1 |
| 13469 | _ACEOF |
| 13470 | |
| 13471 | fi |
| 13472 | |
| 13473 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 13474 | # for constant arguments. Useless! |
| 13475 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 13476 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 13477 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 13478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13479 | else |
| 13480 | cat >conftest.$ac_ext <<_ACEOF |
| 13481 | /* confdefs.h. */ |
| 13482 | _ACEOF |
| 13483 | cat confdefs.h >>conftest.$ac_ext |
| 13484 | cat >>conftest.$ac_ext <<_ACEOF |
| 13485 | /* end confdefs.h. */ |
| 13486 | #include <alloca.h> |
| 13487 | int |
| 13488 | main () |
| 13489 | { |
| 13490 | char *p = (char *) alloca (2 * sizeof (int)); |
| 13491 | ; |
| 13492 | return 0; |
| 13493 | } |
| 13494 | _ACEOF |
| 13495 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13496 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13497 | (eval $ac_link) 2>conftest.er1 |
| 13498 | ac_status=$? |
| 13499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13500 | rm -f conftest.er1 |
| 13501 | cat conftest.err >&5 |
| 13502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13503 | (exit $ac_status); } && |
| 13504 | { ac_try='test -z "$ac_c_werror_flag" |
| 13505 | || test ! -s conftest.err' |
| 13506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13507 | (eval $ac_try) 2>&5 |
| 13508 | ac_status=$? |
| 13509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13510 | (exit $ac_status); }; } && |
| 13511 | { ac_try='test -s conftest$ac_exeext' |
| 13512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13513 | (eval $ac_try) 2>&5 |
| 13514 | ac_status=$? |
| 13515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13516 | (exit $ac_status); }; }; then |
| 13517 | ac_cv_working_alloca_h=yes |
| 13518 | else |
| 13519 | echo "$as_me: failed program was:" >&5 |
| 13520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13521 | |
| 13522 | ac_cv_working_alloca_h=no |
| 13523 | fi |
| 13524 | rm -f conftest.err conftest.$ac_objext \ |
| 13525 | conftest$ac_exeext conftest.$ac_ext |
| 13526 | fi |
| 13527 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 13528 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 13529 | if test $ac_cv_working_alloca_h = yes; then |
| 13530 | |
| 13531 | cat >>confdefs.h <<\_ACEOF |
| 13532 | #define HAVE_ALLOCA_H 1 |
| 13533 | _ACEOF |
| 13534 | |
| 13535 | fi |
| 13536 | |
| 13537 | echo "$as_me:$LINENO: checking for alloca" >&5 |
| 13538 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 13539 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 13540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13541 | else |
| 13542 | cat >conftest.$ac_ext <<_ACEOF |
| 13543 | /* confdefs.h. */ |
| 13544 | _ACEOF |
| 13545 | cat confdefs.h >>conftest.$ac_ext |
| 13546 | cat >>conftest.$ac_ext <<_ACEOF |
| 13547 | /* end confdefs.h. */ |
| 13548 | #ifdef __GNUC__ |
| 13549 | # define alloca __builtin_alloca |
| 13550 | #else |
| 13551 | # ifdef _MSC_VER |
| 13552 | # include <malloc.h> |
| 13553 | # define alloca _alloca |
| 13554 | # else |
| 13555 | # if HAVE_ALLOCA_H |
| 13556 | # include <alloca.h> |
| 13557 | # else |
| 13558 | # ifdef _AIX |
| 13559 | #pragma alloca |
| 13560 | # else |
| 13561 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 13562 | char *alloca (); |
| 13563 | # endif |
| 13564 | # endif |
| 13565 | # endif |
| 13566 | # endif |
| 13567 | #endif |
| 13568 | |
| 13569 | int |
| 13570 | main () |
| 13571 | { |
| 13572 | char *p = (char *) alloca (1); |
| 13573 | ; |
| 13574 | return 0; |
| 13575 | } |
| 13576 | _ACEOF |
| 13577 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13579 | (eval $ac_link) 2>conftest.er1 |
| 13580 | ac_status=$? |
| 13581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13582 | rm -f conftest.er1 |
| 13583 | cat conftest.err >&5 |
| 13584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13585 | (exit $ac_status); } && |
| 13586 | { ac_try='test -z "$ac_c_werror_flag" |
| 13587 | || test ! -s conftest.err' |
| 13588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13589 | (eval $ac_try) 2>&5 |
| 13590 | ac_status=$? |
| 13591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13592 | (exit $ac_status); }; } && |
| 13593 | { ac_try='test -s conftest$ac_exeext' |
| 13594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13595 | (eval $ac_try) 2>&5 |
| 13596 | ac_status=$? |
| 13597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13598 | (exit $ac_status); }; }; then |
| 13599 | ac_cv_func_alloca_works=yes |
| 13600 | else |
| 13601 | echo "$as_me: failed program was:" >&5 |
| 13602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13603 | |
| 13604 | ac_cv_func_alloca_works=no |
| 13605 | fi |
| 13606 | rm -f conftest.err conftest.$ac_objext \ |
| 13607 | conftest$ac_exeext conftest.$ac_ext |
| 13608 | fi |
| 13609 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 13610 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
| 13611 | |
| 13612 | if test $ac_cv_func_alloca_works = yes; then |
| 13613 | |
| 13614 | cat >>confdefs.h <<\_ACEOF |
| 13615 | #define HAVE_ALLOCA 1 |
| 13616 | _ACEOF |
| 13617 | |
| 13618 | else |
| 13619 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 13620 | # that cause trouble. Some versions do not even contain alloca or |
| 13621 | # contain a buggy version. If you still want to use their alloca, |
| 13622 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 13623 | |
| 13624 | ALLOCA=alloca.$ac_objext |
| 13625 | |
| 13626 | cat >>confdefs.h <<\_ACEOF |
| 13627 | #define C_ALLOCA 1 |
| 13628 | _ACEOF |
| 13629 | |
| 13630 | |
| 13631 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 13632 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 13633 | if test "${ac_cv_os_cray+set}" = set; then |
| 13634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13635 | else |
| 13636 | cat >conftest.$ac_ext <<_ACEOF |
| 13637 | /* confdefs.h. */ |
| 13638 | _ACEOF |
| 13639 | cat confdefs.h >>conftest.$ac_ext |
| 13640 | cat >>conftest.$ac_ext <<_ACEOF |
| 13641 | /* end confdefs.h. */ |
| 13642 | #if defined(CRAY) && ! defined(CRAY2) |
| 13643 | webecray |
| 13644 | #else |
| 13645 | wenotbecray |
| 13646 | #endif |
| 13647 | |
| 13648 | _ACEOF |
| 13649 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 13650 | $EGREP "webecray" >/dev/null 2>&1; then |
| 13651 | ac_cv_os_cray=yes |
| 13652 | else |
| 13653 | ac_cv_os_cray=no |
| 13654 | fi |
| 13655 | rm -f conftest* |
| 13656 | |
| 13657 | fi |
| 13658 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 13659 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
| 13660 | if test $ac_cv_os_cray = yes; then |
| 13661 | for ac_func in _getb67 GETB67 getb67; do |
| 13662 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13663 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13664 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13665 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13667 | else |
| 13668 | cat >conftest.$ac_ext <<_ACEOF |
| 13669 | /* confdefs.h. */ |
| 13670 | _ACEOF |
| 13671 | cat confdefs.h >>conftest.$ac_ext |
| 13672 | cat >>conftest.$ac_ext <<_ACEOF |
| 13673 | /* end confdefs.h. */ |
| 13674 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13675 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13676 | #define $ac_func innocuous_$ac_func |
| 13677 | |
| 13678 | /* System header to define __stub macros and hopefully few prototypes, |
| 13679 | which can conflict with char $ac_func (); below. |
| 13680 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13681 | <limits.h> exists even on freestanding compilers. */ |
| 13682 | |
| 13683 | #ifdef __STDC__ |
| 13684 | # include <limits.h> |
| 13685 | #else |
| 13686 | # include <assert.h> |
| 13687 | #endif |
| 13688 | |
| 13689 | #undef $ac_func |
| 13690 | |
| 13691 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13692 | #ifdef __cplusplus |
| 13693 | extern "C" |
| 13694 | { |
| 13695 | #endif |
| 13696 | /* We use char because int might match the return type of a gcc2 |
| 13697 | builtin and then its argument prototype would still apply. */ |
| 13698 | char $ac_func (); |
| 13699 | /* The GNU C library defines this for functions which it implements |
| 13700 | to always fail with ENOSYS. Some functions are actually named |
| 13701 | something starting with __ and the normal name is an alias. */ |
| 13702 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13703 | choke me |
| 13704 | #else |
| 13705 | char (*f) () = $ac_func; |
| 13706 | #endif |
| 13707 | #ifdef __cplusplus |
| 13708 | } |
| 13709 | #endif |
| 13710 | |
| 13711 | int |
| 13712 | main () |
| 13713 | { |
| 13714 | return f != $ac_func; |
| 13715 | ; |
| 13716 | return 0; |
| 13717 | } |
| 13718 | _ACEOF |
| 13719 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13720 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13721 | (eval $ac_link) 2>conftest.er1 |
| 13722 | ac_status=$? |
| 13723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13724 | rm -f conftest.er1 |
| 13725 | cat conftest.err >&5 |
| 13726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13727 | (exit $ac_status); } && |
| 13728 | { ac_try='test -z "$ac_c_werror_flag" |
| 13729 | || test ! -s conftest.err' |
| 13730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13731 | (eval $ac_try) 2>&5 |
| 13732 | ac_status=$? |
| 13733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13734 | (exit $ac_status); }; } && |
| 13735 | { ac_try='test -s conftest$ac_exeext' |
| 13736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13737 | (eval $ac_try) 2>&5 |
| 13738 | ac_status=$? |
| 13739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13740 | (exit $ac_status); }; }; then |
| 13741 | eval "$as_ac_var=yes" |
| 13742 | else |
| 13743 | echo "$as_me: failed program was:" >&5 |
| 13744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13745 | |
| 13746 | eval "$as_ac_var=no" |
| 13747 | fi |
| 13748 | rm -f conftest.err conftest.$ac_objext \ |
| 13749 | conftest$ac_exeext conftest.$ac_ext |
| 13750 | fi |
| 13751 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13752 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13753 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13754 | |
| 13755 | cat >>confdefs.h <<_ACEOF |
| 13756 | #define CRAY_STACKSEG_END $ac_func |
| 13757 | _ACEOF |
| 13758 | |
| 13759 | break |
| 13760 | fi |
| 13761 | |
| 13762 | done |
| 13763 | fi |
| 13764 | |
| 13765 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 13766 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 13767 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 13768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13769 | else |
| 13770 | if test "$cross_compiling" = yes; then |
| 13771 | ac_cv_c_stack_direction=0 |
| 13772 | else |
| 13773 | cat >conftest.$ac_ext <<_ACEOF |
| 13774 | /* confdefs.h. */ |
| 13775 | _ACEOF |
| 13776 | cat confdefs.h >>conftest.$ac_ext |
| 13777 | cat >>conftest.$ac_ext <<_ACEOF |
| 13778 | /* end confdefs.h. */ |
| 13779 | int |
| 13780 | find_stack_direction () |
| 13781 | { |
| 13782 | static char *addr = 0; |
| 13783 | auto char dummy; |
| 13784 | if (addr == 0) |
| 13785 | { |
| 13786 | addr = &dummy; |
| 13787 | return find_stack_direction (); |
| 13788 | } |
| 13789 | else |
| 13790 | return (&dummy > addr) ? 1 : -1; |
| 13791 | } |
| 13792 | |
| 13793 | int |
| 13794 | main () |
| 13795 | { |
| 13796 | exit (find_stack_direction () < 0); |
| 13797 | } |
| 13798 | _ACEOF |
| 13799 | rm -f conftest$ac_exeext |
| 13800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13801 | (eval $ac_link) 2>&5 |
| 13802 | ac_status=$? |
| 13803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13804 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13806 | (eval $ac_try) 2>&5 |
| 13807 | ac_status=$? |
| 13808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13809 | (exit $ac_status); }; }; then |
| 13810 | ac_cv_c_stack_direction=1 |
| 13811 | else |
| 13812 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13813 | echo "$as_me: failed program was:" >&5 |
| 13814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13815 | |
| 13816 | ( exit $ac_status ) |
| 13817 | ac_cv_c_stack_direction=-1 |
| 13818 | fi |
| 13819 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13820 | fi |
| 13821 | fi |
| 13822 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 13823 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
| 13824 | |
| 13825 | cat >>confdefs.h <<_ACEOF |
| 13826 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 13827 | _ACEOF |
| 13828 | |
| 13829 | |
| 13830 | fi |
| 13831 | |
| 13832 | |
| 13833 | # fmod, logb, and frexp are found in -lm on most systems. |
| 13834 | # On HPUX 9.01, -lm does not contain logb, so check for sqrt. |
| 13835 | |
| 13836 | echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
| 13837 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 |
| 13838 | if test "${ac_cv_lib_m_sqrt+set}" = set; then |
| 13839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13840 | else |
| 13841 | ac_check_lib_save_LIBS=$LIBS |
| 13842 | LIBS="-lm $LIBS" |
| 13843 | cat >conftest.$ac_ext <<_ACEOF |
| 13844 | /* confdefs.h. */ |
| 13845 | _ACEOF |
| 13846 | cat confdefs.h >>conftest.$ac_ext |
| 13847 | cat >>conftest.$ac_ext <<_ACEOF |
| 13848 | /* end confdefs.h. */ |
| 13849 | |
| 13850 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13851 | #ifdef __cplusplus |
| 13852 | extern "C" |
| 13853 | #endif |
| 13854 | /* We use char because int might match the return type of a gcc2 |
| 13855 | builtin and then its argument prototype would still apply. */ |
| 13856 | char sqrt (); |
| 13857 | int |
| 13858 | main () |
| 13859 | { |
| 13860 | sqrt (); |
| 13861 | ; |
| 13862 | return 0; |
| 13863 | } |
| 13864 | _ACEOF |
| 13865 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13867 | (eval $ac_link) 2>conftest.er1 |
| 13868 | ac_status=$? |
| 13869 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13870 | rm -f conftest.er1 |
| 13871 | cat conftest.err >&5 |
| 13872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13873 | (exit $ac_status); } && |
| 13874 | { ac_try='test -z "$ac_c_werror_flag" |
| 13875 | || test ! -s conftest.err' |
| 13876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13877 | (eval $ac_try) 2>&5 |
| 13878 | ac_status=$? |
| 13879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13880 | (exit $ac_status); }; } && |
| 13881 | { ac_try='test -s conftest$ac_exeext' |
| 13882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13883 | (eval $ac_try) 2>&5 |
| 13884 | ac_status=$? |
| 13885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13886 | (exit $ac_status); }; }; then |
| 13887 | ac_cv_lib_m_sqrt=yes |
| 13888 | else |
| 13889 | echo "$as_me: failed program was:" >&5 |
| 13890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13891 | |
| 13892 | ac_cv_lib_m_sqrt=no |
| 13893 | fi |
| 13894 | rm -f conftest.err conftest.$ac_objext \ |
| 13895 | conftest$ac_exeext conftest.$ac_ext |
| 13896 | LIBS=$ac_check_lib_save_LIBS |
| 13897 | fi |
| 13898 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
| 13899 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 |
| 13900 | if test $ac_cv_lib_m_sqrt = yes; then |
| 13901 | cat >>confdefs.h <<_ACEOF |
| 13902 | #define HAVE_LIBM 1 |
| 13903 | _ACEOF |
| 13904 | |
| 13905 | LIBS="-lm $LIBS" |
| 13906 | |
| 13907 | fi |
| 13908 | |
| 13909 | |
| 13910 | # Check for mail-locking functions in a "mail" library. Probably this should |
| 13911 | # have the same check as for liblockfile below. |
| 13912 | |
| 13913 | echo "$as_me:$LINENO: checking for maillock in -lmail" >&5 |
| 13914 | echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6 |
| 13915 | if test "${ac_cv_lib_mail_maillock+set}" = set; then |
| 13916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13917 | else |
| 13918 | ac_check_lib_save_LIBS=$LIBS |
| 13919 | LIBS="-lmail $LIBS" |
| 13920 | cat >conftest.$ac_ext <<_ACEOF |
| 13921 | /* confdefs.h. */ |
| 13922 | _ACEOF |
| 13923 | cat confdefs.h >>conftest.$ac_ext |
| 13924 | cat >>conftest.$ac_ext <<_ACEOF |
| 13925 | /* end confdefs.h. */ |
| 13926 | |
| 13927 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13928 | #ifdef __cplusplus |
| 13929 | extern "C" |
| 13930 | #endif |
| 13931 | /* We use char because int might match the return type of a gcc2 |
| 13932 | builtin and then its argument prototype would still apply. */ |
| 13933 | char maillock (); |
| 13934 | int |
| 13935 | main () |
| 13936 | { |
| 13937 | maillock (); |
| 13938 | ; |
| 13939 | return 0; |
| 13940 | } |
| 13941 | _ACEOF |
| 13942 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13944 | (eval $ac_link) 2>conftest.er1 |
| 13945 | ac_status=$? |
| 13946 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13947 | rm -f conftest.er1 |
| 13948 | cat conftest.err >&5 |
| 13949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13950 | (exit $ac_status); } && |
| 13951 | { ac_try='test -z "$ac_c_werror_flag" |
| 13952 | || test ! -s conftest.err' |
| 13953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13954 | (eval $ac_try) 2>&5 |
| 13955 | ac_status=$? |
| 13956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13957 | (exit $ac_status); }; } && |
| 13958 | { ac_try='test -s conftest$ac_exeext' |
| 13959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13960 | (eval $ac_try) 2>&5 |
| 13961 | ac_status=$? |
| 13962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13963 | (exit $ac_status); }; }; then |
| 13964 | ac_cv_lib_mail_maillock=yes |
| 13965 | else |
| 13966 | echo "$as_me: failed program was:" >&5 |
| 13967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13968 | |
| 13969 | ac_cv_lib_mail_maillock=no |
| 13970 | fi |
| 13971 | rm -f conftest.err conftest.$ac_objext \ |
| 13972 | conftest$ac_exeext conftest.$ac_ext |
| 13973 | LIBS=$ac_check_lib_save_LIBS |
| 13974 | fi |
| 13975 | echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5 |
| 13976 | echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6 |
| 13977 | if test $ac_cv_lib_mail_maillock = yes; then |
| 13978 | cat >>confdefs.h <<_ACEOF |
| 13979 | #define HAVE_LIBMAIL 1 |
| 13980 | _ACEOF |
| 13981 | |
| 13982 | LIBS="-lmail $LIBS" |
| 13983 | |
| 13984 | fi |
| 13985 | |
| 13986 | |
| 13987 | echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5 |
| 13988 | echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6 |
| 13989 | if test "${ac_cv_lib_lockfile_maillock+set}" = set; then |
| 13990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13991 | else |
| 13992 | ac_check_lib_save_LIBS=$LIBS |
| 13993 | LIBS="-llockfile $LIBS" |
| 13994 | cat >conftest.$ac_ext <<_ACEOF |
| 13995 | /* confdefs.h. */ |
| 13996 | _ACEOF |
| 13997 | cat confdefs.h >>conftest.$ac_ext |
| 13998 | cat >>conftest.$ac_ext <<_ACEOF |
| 13999 | /* end confdefs.h. */ |
| 14000 | |
| 14001 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14002 | #ifdef __cplusplus |
| 14003 | extern "C" |
| 14004 | #endif |
| 14005 | /* We use char because int might match the return type of a gcc2 |
| 14006 | builtin and then its argument prototype would still apply. */ |
| 14007 | char maillock (); |
| 14008 | int |
| 14009 | main () |
| 14010 | { |
| 14011 | maillock (); |
| 14012 | ; |
| 14013 | return 0; |
| 14014 | } |
| 14015 | _ACEOF |
| 14016 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14017 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14018 | (eval $ac_link) 2>conftest.er1 |
| 14019 | ac_status=$? |
| 14020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14021 | rm -f conftest.er1 |
| 14022 | cat conftest.err >&5 |
| 14023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14024 | (exit $ac_status); } && |
| 14025 | { ac_try='test -z "$ac_c_werror_flag" |
| 14026 | || test ! -s conftest.err' |
| 14027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14028 | (eval $ac_try) 2>&5 |
| 14029 | ac_status=$? |
| 14030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14031 | (exit $ac_status); }; } && |
| 14032 | { ac_try='test -s conftest$ac_exeext' |
| 14033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14034 | (eval $ac_try) 2>&5 |
| 14035 | ac_status=$? |
| 14036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14037 | (exit $ac_status); }; }; then |
| 14038 | ac_cv_lib_lockfile_maillock=yes |
| 14039 | else |
| 14040 | echo "$as_me: failed program was:" >&5 |
| 14041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14042 | |
| 14043 | ac_cv_lib_lockfile_maillock=no |
| 14044 | fi |
| 14045 | rm -f conftest.err conftest.$ac_objext \ |
| 14046 | conftest$ac_exeext conftest.$ac_ext |
| 14047 | LIBS=$ac_check_lib_save_LIBS |
| 14048 | fi |
| 14049 | echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5 |
| 14050 | echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6 |
| 14051 | if test $ac_cv_lib_lockfile_maillock = yes; then |
| 14052 | cat >>confdefs.h <<_ACEOF |
| 14053 | #define HAVE_LIBLOCKFILE 1 |
| 14054 | _ACEOF |
| 14055 | |
| 14056 | LIBS="-llockfile $LIBS" |
| 14057 | |
| 14058 | fi |
| 14059 | |
| 14060 | # If we have the shared liblockfile, assume we must use it for mail |
| 14061 | # locking (e.g. Debian). If we couldn't link against liblockfile |
| 14062 | # (no liblockfile.a installed), ensure that we don't need to. |
| 14063 | if test "$ac_cv_lib_lockfile_maillock" = no; then |
| 14064 | # Extract the first word of "liblockfile.so", so it can be a program name with args. |
| 14065 | set dummy liblockfile.so; ac_word=$2 |
| 14066 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14067 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14068 | if test "${ac_cv_prog_liblockfile+set}" = set; then |
| 14069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14070 | else |
| 14071 | if test -n "$liblockfile"; then |
| 14072 | ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. |
| 14073 | else |
| 14074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14075 | as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" |
| 14076 | for as_dir in $as_dummy |
| 14077 | do |
| 14078 | IFS=$as_save_IFS |
| 14079 | test -z "$as_dir" && as_dir=. |
| 14080 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14081 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14082 | ac_cv_prog_liblockfile="yes" |
| 14083 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14084 | break 2 |
| 14085 | fi |
| 14086 | done |
| 14087 | done |
| 14088 | |
| 14089 | test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" |
| 14090 | fi |
| 14091 | fi |
| 14092 | liblockfile=$ac_cv_prog_liblockfile |
| 14093 | if test -n "$liblockfile"; then |
| 14094 | echo "$as_me:$LINENO: result: $liblockfile" >&5 |
| 14095 | echo "${ECHO_T}$liblockfile" >&6 |
| 14096 | else |
| 14097 | echo "$as_me:$LINENO: result: no" >&5 |
| 14098 | echo "${ECHO_T}no" >&6 |
| 14099 | fi |
| 14100 | |
| 14101 | if test $ac_cv_prog_liblockfile = yes; then |
| 14102 | { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it. |
| 14103 | This probably means that movemail could lose mail. |
| 14104 | There may be a \`development' package to install containing liblockfile." >&5 |
| 14105 | echo "$as_me: error: Shared liblockfile found but can't link against it. |
| 14106 | This probably means that movemail could lose mail. |
| 14107 | There may be a \`development' package to install containing liblockfile." >&2;} |
| 14108 | { (exit 1); exit 1; }; } |
| 14109 | else : |
| 14110 | fi |
| 14111 | fi |
| 14112 | |
| 14113 | for ac_func in touchlock |
| 14114 | do |
| 14115 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14116 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14117 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14118 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14120 | else |
| 14121 | cat >conftest.$ac_ext <<_ACEOF |
| 14122 | /* confdefs.h. */ |
| 14123 | _ACEOF |
| 14124 | cat confdefs.h >>conftest.$ac_ext |
| 14125 | cat >>conftest.$ac_ext <<_ACEOF |
| 14126 | /* end confdefs.h. */ |
| 14127 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14128 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14129 | #define $ac_func innocuous_$ac_func |
| 14130 | |
| 14131 | /* System header to define __stub macros and hopefully few prototypes, |
| 14132 | which can conflict with char $ac_func (); below. |
| 14133 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14134 | <limits.h> exists even on freestanding compilers. */ |
| 14135 | |
| 14136 | #ifdef __STDC__ |
| 14137 | # include <limits.h> |
| 14138 | #else |
| 14139 | # include <assert.h> |
| 14140 | #endif |
| 14141 | |
| 14142 | #undef $ac_func |
| 14143 | |
| 14144 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14145 | #ifdef __cplusplus |
| 14146 | extern "C" |
| 14147 | { |
| 14148 | #endif |
| 14149 | /* We use char because int might match the return type of a gcc2 |
| 14150 | builtin and then its argument prototype would still apply. */ |
| 14151 | char $ac_func (); |
| 14152 | /* The GNU C library defines this for functions which it implements |
| 14153 | to always fail with ENOSYS. Some functions are actually named |
| 14154 | something starting with __ and the normal name is an alias. */ |
| 14155 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14156 | choke me |
| 14157 | #else |
| 14158 | char (*f) () = $ac_func; |
| 14159 | #endif |
| 14160 | #ifdef __cplusplus |
| 14161 | } |
| 14162 | #endif |
| 14163 | |
| 14164 | int |
| 14165 | main () |
| 14166 | { |
| 14167 | return f != $ac_func; |
| 14168 | ; |
| 14169 | return 0; |
| 14170 | } |
| 14171 | _ACEOF |
| 14172 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14174 | (eval $ac_link) 2>conftest.er1 |
| 14175 | ac_status=$? |
| 14176 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14177 | rm -f conftest.er1 |
| 14178 | cat conftest.err >&5 |
| 14179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14180 | (exit $ac_status); } && |
| 14181 | { ac_try='test -z "$ac_c_werror_flag" |
| 14182 | || test ! -s conftest.err' |
| 14183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14184 | (eval $ac_try) 2>&5 |
| 14185 | ac_status=$? |
| 14186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14187 | (exit $ac_status); }; } && |
| 14188 | { ac_try='test -s conftest$ac_exeext' |
| 14189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14190 | (eval $ac_try) 2>&5 |
| 14191 | ac_status=$? |
| 14192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14193 | (exit $ac_status); }; }; then |
| 14194 | eval "$as_ac_var=yes" |
| 14195 | else |
| 14196 | echo "$as_me: failed program was:" >&5 |
| 14197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14198 | |
| 14199 | eval "$as_ac_var=no" |
| 14200 | fi |
| 14201 | rm -f conftest.err conftest.$ac_objext \ |
| 14202 | conftest$ac_exeext conftest.$ac_ext |
| 14203 | fi |
| 14204 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14205 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14206 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14207 | cat >>confdefs.h <<_ACEOF |
| 14208 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14209 | _ACEOF |
| 14210 | |
| 14211 | fi |
| 14212 | done |
| 14213 | |
| 14214 | |
| 14215 | for ac_header in maillock.h |
| 14216 | do |
| 14217 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14218 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14219 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14220 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 14221 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14223 | fi |
| 14224 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14225 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 14226 | else |
| 14227 | # Is the header compilable? |
| 14228 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14229 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 14230 | cat >conftest.$ac_ext <<_ACEOF |
| 14231 | /* confdefs.h. */ |
| 14232 | _ACEOF |
| 14233 | cat confdefs.h >>conftest.$ac_ext |
| 14234 | cat >>conftest.$ac_ext <<_ACEOF |
| 14235 | /* end confdefs.h. */ |
| 14236 | $ac_includes_default |
| 14237 | #include <$ac_header> |
| 14238 | _ACEOF |
| 14239 | rm -f conftest.$ac_objext |
| 14240 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14241 | (eval $ac_compile) 2>conftest.er1 |
| 14242 | ac_status=$? |
| 14243 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14244 | rm -f conftest.er1 |
| 14245 | cat conftest.err >&5 |
| 14246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14247 | (exit $ac_status); } && |
| 14248 | { ac_try='test -z "$ac_c_werror_flag" |
| 14249 | || test ! -s conftest.err' |
| 14250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14251 | (eval $ac_try) 2>&5 |
| 14252 | ac_status=$? |
| 14253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14254 | (exit $ac_status); }; } && |
| 14255 | { ac_try='test -s conftest.$ac_objext' |
| 14256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14257 | (eval $ac_try) 2>&5 |
| 14258 | ac_status=$? |
| 14259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14260 | (exit $ac_status); }; }; then |
| 14261 | ac_header_compiler=yes |
| 14262 | else |
| 14263 | echo "$as_me: failed program was:" >&5 |
| 14264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14265 | |
| 14266 | ac_header_compiler=no |
| 14267 | fi |
| 14268 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14269 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14270 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14271 | |
| 14272 | # Is the header present? |
| 14273 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14274 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 14275 | cat >conftest.$ac_ext <<_ACEOF |
| 14276 | /* confdefs.h. */ |
| 14277 | _ACEOF |
| 14278 | cat confdefs.h >>conftest.$ac_ext |
| 14279 | cat >>conftest.$ac_ext <<_ACEOF |
| 14280 | /* end confdefs.h. */ |
| 14281 | #include <$ac_header> |
| 14282 | _ACEOF |
| 14283 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14284 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14285 | ac_status=$? |
| 14286 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14287 | rm -f conftest.er1 |
| 14288 | cat conftest.err >&5 |
| 14289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14290 | (exit $ac_status); } >/dev/null; then |
| 14291 | if test -s conftest.err; then |
| 14292 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14293 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14294 | else |
| 14295 | ac_cpp_err= |
| 14296 | fi |
| 14297 | else |
| 14298 | ac_cpp_err=yes |
| 14299 | fi |
| 14300 | if test -z "$ac_cpp_err"; then |
| 14301 | ac_header_preproc=yes |
| 14302 | else |
| 14303 | echo "$as_me: failed program was:" >&5 |
| 14304 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14305 | |
| 14306 | ac_header_preproc=no |
| 14307 | fi |
| 14308 | rm -f conftest.err conftest.$ac_ext |
| 14309 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14310 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14311 | |
| 14312 | # So? What about this header? |
| 14313 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14314 | yes:no: ) |
| 14315 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14316 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14317 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14318 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14319 | ac_header_preproc=yes |
| 14320 | ;; |
| 14321 | no:yes:* ) |
| 14322 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14323 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14324 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14325 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14326 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14327 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14328 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14329 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14330 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14331 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14332 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14333 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14334 | ( |
| 14335 | cat <<\_ASBOX |
| 14336 | ## ------------------------------------------ ## |
| 14337 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 14338 | ## ------------------------------------------ ## |
| 14339 | _ASBOX |
| 14340 | ) | |
| 14341 | sed "s/^/$as_me: WARNING: /" >&2 |
| 14342 | ;; |
| 14343 | esac |
| 14344 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14345 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 14346 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14348 | else |
| 14349 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14350 | fi |
| 14351 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14352 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 14353 | |
| 14354 | fi |
| 14355 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14356 | cat >>confdefs.h <<_ACEOF |
| 14357 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14358 | _ACEOF |
| 14359 | |
| 14360 | fi |
| 14361 | |
| 14362 | done |
| 14363 | |
| 14364 | |
| 14365 | |
| 14366 | |
| 14367 | |
| 14368 | |
| 14369 | |
| 14370 | |
| 14371 | |
| 14372 | |
| 14373 | |
| 14374 | |
| 14375 | |
| 14376 | |
| 14377 | |
| 14378 | |
| 14379 | |
| 14380 | |
| 14381 | |
| 14382 | |
| 14383 | |
| 14384 | |
| 14385 | |
| 14386 | |
| 14387 | |
| 14388 | |
| 14389 | |
| 14390 | |
| 14391 | |
| 14392 | |
| 14393 | |
| 14394 | |
| 14395 | |
| 14396 | |
| 14397 | |
| 14398 | |
| 14399 | |
| 14400 | |
| 14401 | |
| 14402 | |
| 14403 | |
| 14404 | |
| 14405 | |
| 14406 | |
| 14407 | |
| 14408 | |
| 14409 | |
| 14410 | |
| 14411 | |
| 14412 | |
| 14413 | |
| 14414 | |
| 14415 | |
| 14416 | |
| 14417 | |
| 14418 | |
| 14419 | |
| 14420 | |
| 14421 | |
| 14422 | |
| 14423 | |
| 14424 | |
| 14425 | |
| 14426 | |
| 14427 | |
| 14428 | |
| 14429 | |
| 14430 | |
| 14431 | |
| 14432 | |
| 14433 | for ac_func in gethostname getdomainname dup2 \ |
| 14434 | rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ |
| 14435 | random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ |
| 14436 | strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ |
| 14437 | utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \ |
| 14438 | __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ |
| 14439 | sendto recvfrom getsockopt setsockopt getsockname getpeername \ |
| 14440 | gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \ |
| 14441 | memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign |
| 14442 | do |
| 14443 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14444 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14445 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14446 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14448 | else |
| 14449 | cat >conftest.$ac_ext <<_ACEOF |
| 14450 | /* confdefs.h. */ |
| 14451 | _ACEOF |
| 14452 | cat confdefs.h >>conftest.$ac_ext |
| 14453 | cat >>conftest.$ac_ext <<_ACEOF |
| 14454 | /* end confdefs.h. */ |
| 14455 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14456 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14457 | #define $ac_func innocuous_$ac_func |
| 14458 | |
| 14459 | /* System header to define __stub macros and hopefully few prototypes, |
| 14460 | which can conflict with char $ac_func (); below. |
| 14461 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14462 | <limits.h> exists even on freestanding compilers. */ |
| 14463 | |
| 14464 | #ifdef __STDC__ |
| 14465 | # include <limits.h> |
| 14466 | #else |
| 14467 | # include <assert.h> |
| 14468 | #endif |
| 14469 | |
| 14470 | #undef $ac_func |
| 14471 | |
| 14472 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14473 | #ifdef __cplusplus |
| 14474 | extern "C" |
| 14475 | { |
| 14476 | #endif |
| 14477 | /* We use char because int might match the return type of a gcc2 |
| 14478 | builtin and then its argument prototype would still apply. */ |
| 14479 | char $ac_func (); |
| 14480 | /* The GNU C library defines this for functions which it implements |
| 14481 | to always fail with ENOSYS. Some functions are actually named |
| 14482 | something starting with __ and the normal name is an alias. */ |
| 14483 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14484 | choke me |
| 14485 | #else |
| 14486 | char (*f) () = $ac_func; |
| 14487 | #endif |
| 14488 | #ifdef __cplusplus |
| 14489 | } |
| 14490 | #endif |
| 14491 | |
| 14492 | int |
| 14493 | main () |
| 14494 | { |
| 14495 | return f != $ac_func; |
| 14496 | ; |
| 14497 | return 0; |
| 14498 | } |
| 14499 | _ACEOF |
| 14500 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14502 | (eval $ac_link) 2>conftest.er1 |
| 14503 | ac_status=$? |
| 14504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14505 | rm -f conftest.er1 |
| 14506 | cat conftest.err >&5 |
| 14507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14508 | (exit $ac_status); } && |
| 14509 | { ac_try='test -z "$ac_c_werror_flag" |
| 14510 | || test ! -s conftest.err' |
| 14511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14512 | (eval $ac_try) 2>&5 |
| 14513 | ac_status=$? |
| 14514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14515 | (exit $ac_status); }; } && |
| 14516 | { ac_try='test -s conftest$ac_exeext' |
| 14517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14518 | (eval $ac_try) 2>&5 |
| 14519 | ac_status=$? |
| 14520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14521 | (exit $ac_status); }; }; then |
| 14522 | eval "$as_ac_var=yes" |
| 14523 | else |
| 14524 | echo "$as_me: failed program was:" >&5 |
| 14525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14526 | |
| 14527 | eval "$as_ac_var=no" |
| 14528 | fi |
| 14529 | rm -f conftest.err conftest.$ac_objext \ |
| 14530 | conftest$ac_exeext conftest.$ac_ext |
| 14531 | fi |
| 14532 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14533 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14534 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14535 | cat >>confdefs.h <<_ACEOF |
| 14536 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14537 | _ACEOF |
| 14538 | |
| 14539 | fi |
| 14540 | done |
| 14541 | |
| 14542 | |
| 14543 | |
| 14544 | for ac_header in sys/un.h |
| 14545 | do |
| 14546 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14547 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14548 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14549 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 14550 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14552 | fi |
| 14553 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14554 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 14555 | else |
| 14556 | # Is the header compilable? |
| 14557 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14558 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 14559 | cat >conftest.$ac_ext <<_ACEOF |
| 14560 | /* confdefs.h. */ |
| 14561 | _ACEOF |
| 14562 | cat confdefs.h >>conftest.$ac_ext |
| 14563 | cat >>conftest.$ac_ext <<_ACEOF |
| 14564 | /* end confdefs.h. */ |
| 14565 | $ac_includes_default |
| 14566 | #include <$ac_header> |
| 14567 | _ACEOF |
| 14568 | rm -f conftest.$ac_objext |
| 14569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14570 | (eval $ac_compile) 2>conftest.er1 |
| 14571 | ac_status=$? |
| 14572 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14573 | rm -f conftest.er1 |
| 14574 | cat conftest.err >&5 |
| 14575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14576 | (exit $ac_status); } && |
| 14577 | { ac_try='test -z "$ac_c_werror_flag" |
| 14578 | || test ! -s conftest.err' |
| 14579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14580 | (eval $ac_try) 2>&5 |
| 14581 | ac_status=$? |
| 14582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14583 | (exit $ac_status); }; } && |
| 14584 | { ac_try='test -s conftest.$ac_objext' |
| 14585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14586 | (eval $ac_try) 2>&5 |
| 14587 | ac_status=$? |
| 14588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14589 | (exit $ac_status); }; }; then |
| 14590 | ac_header_compiler=yes |
| 14591 | else |
| 14592 | echo "$as_me: failed program was:" >&5 |
| 14593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14594 | |
| 14595 | ac_header_compiler=no |
| 14596 | fi |
| 14597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14598 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14599 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14600 | |
| 14601 | # Is the header present? |
| 14602 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14603 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 14604 | cat >conftest.$ac_ext <<_ACEOF |
| 14605 | /* confdefs.h. */ |
| 14606 | _ACEOF |
| 14607 | cat confdefs.h >>conftest.$ac_ext |
| 14608 | cat >>conftest.$ac_ext <<_ACEOF |
| 14609 | /* end confdefs.h. */ |
| 14610 | #include <$ac_header> |
| 14611 | _ACEOF |
| 14612 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14613 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14614 | ac_status=$? |
| 14615 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14616 | rm -f conftest.er1 |
| 14617 | cat conftest.err >&5 |
| 14618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14619 | (exit $ac_status); } >/dev/null; then |
| 14620 | if test -s conftest.err; then |
| 14621 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14622 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14623 | else |
| 14624 | ac_cpp_err= |
| 14625 | fi |
| 14626 | else |
| 14627 | ac_cpp_err=yes |
| 14628 | fi |
| 14629 | if test -z "$ac_cpp_err"; then |
| 14630 | ac_header_preproc=yes |
| 14631 | else |
| 14632 | echo "$as_me: failed program was:" >&5 |
| 14633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14634 | |
| 14635 | ac_header_preproc=no |
| 14636 | fi |
| 14637 | rm -f conftest.err conftest.$ac_ext |
| 14638 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14639 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14640 | |
| 14641 | # So? What about this header? |
| 14642 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14643 | yes:no: ) |
| 14644 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14645 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14646 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14647 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14648 | ac_header_preproc=yes |
| 14649 | ;; |
| 14650 | no:yes:* ) |
| 14651 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14652 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14653 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14654 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14655 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14656 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14657 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14658 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14659 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14660 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14661 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14662 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14663 | ( |
| 14664 | cat <<\_ASBOX |
| 14665 | ## ------------------------------------------ ## |
| 14666 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 14667 | ## ------------------------------------------ ## |
| 14668 | _ASBOX |
| 14669 | ) | |
| 14670 | sed "s/^/$as_me: WARNING: /" >&2 |
| 14671 | ;; |
| 14672 | esac |
| 14673 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14674 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 14675 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14677 | else |
| 14678 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14679 | fi |
| 14680 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14681 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 14682 | |
| 14683 | fi |
| 14684 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14685 | cat >>confdefs.h <<_ACEOF |
| 14686 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14687 | _ACEOF |
| 14688 | |
| 14689 | fi |
| 14690 | |
| 14691 | done |
| 14692 | |
| 14693 | |
| 14694 | |
| 14695 | |
| 14696 | |
| 14697 | for ac_header in stdlib.h sys/time.h unistd.h |
| 14698 | do |
| 14699 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14700 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14701 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14702 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 14703 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14705 | fi |
| 14706 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14707 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 14708 | else |
| 14709 | # Is the header compilable? |
| 14710 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14711 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 14712 | cat >conftest.$ac_ext <<_ACEOF |
| 14713 | /* confdefs.h. */ |
| 14714 | _ACEOF |
| 14715 | cat confdefs.h >>conftest.$ac_ext |
| 14716 | cat >>conftest.$ac_ext <<_ACEOF |
| 14717 | /* end confdefs.h. */ |
| 14718 | $ac_includes_default |
| 14719 | #include <$ac_header> |
| 14720 | _ACEOF |
| 14721 | rm -f conftest.$ac_objext |
| 14722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14723 | (eval $ac_compile) 2>conftest.er1 |
| 14724 | ac_status=$? |
| 14725 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14726 | rm -f conftest.er1 |
| 14727 | cat conftest.err >&5 |
| 14728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14729 | (exit $ac_status); } && |
| 14730 | { ac_try='test -z "$ac_c_werror_flag" |
| 14731 | || test ! -s conftest.err' |
| 14732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14733 | (eval $ac_try) 2>&5 |
| 14734 | ac_status=$? |
| 14735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14736 | (exit $ac_status); }; } && |
| 14737 | { ac_try='test -s conftest.$ac_objext' |
| 14738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14739 | (eval $ac_try) 2>&5 |
| 14740 | ac_status=$? |
| 14741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14742 | (exit $ac_status); }; }; then |
| 14743 | ac_header_compiler=yes |
| 14744 | else |
| 14745 | echo "$as_me: failed program was:" >&5 |
| 14746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14747 | |
| 14748 | ac_header_compiler=no |
| 14749 | fi |
| 14750 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14751 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14752 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14753 | |
| 14754 | # Is the header present? |
| 14755 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14756 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 14757 | cat >conftest.$ac_ext <<_ACEOF |
| 14758 | /* confdefs.h. */ |
| 14759 | _ACEOF |
| 14760 | cat confdefs.h >>conftest.$ac_ext |
| 14761 | cat >>conftest.$ac_ext <<_ACEOF |
| 14762 | /* end confdefs.h. */ |
| 14763 | #include <$ac_header> |
| 14764 | _ACEOF |
| 14765 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14766 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14767 | ac_status=$? |
| 14768 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14769 | rm -f conftest.er1 |
| 14770 | cat conftest.err >&5 |
| 14771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14772 | (exit $ac_status); } >/dev/null; then |
| 14773 | if test -s conftest.err; then |
| 14774 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14775 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14776 | else |
| 14777 | ac_cpp_err= |
| 14778 | fi |
| 14779 | else |
| 14780 | ac_cpp_err=yes |
| 14781 | fi |
| 14782 | if test -z "$ac_cpp_err"; then |
| 14783 | ac_header_preproc=yes |
| 14784 | else |
| 14785 | echo "$as_me: failed program was:" >&5 |
| 14786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14787 | |
| 14788 | ac_header_preproc=no |
| 14789 | fi |
| 14790 | rm -f conftest.err conftest.$ac_ext |
| 14791 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14792 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14793 | |
| 14794 | # So? What about this header? |
| 14795 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14796 | yes:no: ) |
| 14797 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14798 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14799 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14800 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14801 | ac_header_preproc=yes |
| 14802 | ;; |
| 14803 | no:yes:* ) |
| 14804 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14805 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14806 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14807 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14808 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14809 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14810 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14811 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14812 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14813 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14814 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14815 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14816 | ( |
| 14817 | cat <<\_ASBOX |
| 14818 | ## ------------------------------------------ ## |
| 14819 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 14820 | ## ------------------------------------------ ## |
| 14821 | _ASBOX |
| 14822 | ) | |
| 14823 | sed "s/^/$as_me: WARNING: /" >&2 |
| 14824 | ;; |
| 14825 | esac |
| 14826 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14827 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 14828 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14830 | else |
| 14831 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14832 | fi |
| 14833 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14834 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 14835 | |
| 14836 | fi |
| 14837 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14838 | cat >>confdefs.h <<_ACEOF |
| 14839 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14840 | _ACEOF |
| 14841 | |
| 14842 | fi |
| 14843 | |
| 14844 | done |
| 14845 | |
| 14846 | |
| 14847 | for ac_func in alarm |
| 14848 | do |
| 14849 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14850 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14851 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14852 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14854 | else |
| 14855 | cat >conftest.$ac_ext <<_ACEOF |
| 14856 | /* confdefs.h. */ |
| 14857 | _ACEOF |
| 14858 | cat confdefs.h >>conftest.$ac_ext |
| 14859 | cat >>conftest.$ac_ext <<_ACEOF |
| 14860 | /* end confdefs.h. */ |
| 14861 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14862 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14863 | #define $ac_func innocuous_$ac_func |
| 14864 | |
| 14865 | /* System header to define __stub macros and hopefully few prototypes, |
| 14866 | which can conflict with char $ac_func (); below. |
| 14867 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14868 | <limits.h> exists even on freestanding compilers. */ |
| 14869 | |
| 14870 | #ifdef __STDC__ |
| 14871 | # include <limits.h> |
| 14872 | #else |
| 14873 | # include <assert.h> |
| 14874 | #endif |
| 14875 | |
| 14876 | #undef $ac_func |
| 14877 | |
| 14878 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14879 | #ifdef __cplusplus |
| 14880 | extern "C" |
| 14881 | { |
| 14882 | #endif |
| 14883 | /* We use char because int might match the return type of a gcc2 |
| 14884 | builtin and then its argument prototype would still apply. */ |
| 14885 | char $ac_func (); |
| 14886 | /* The GNU C library defines this for functions which it implements |
| 14887 | to always fail with ENOSYS. Some functions are actually named |
| 14888 | something starting with __ and the normal name is an alias. */ |
| 14889 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14890 | choke me |
| 14891 | #else |
| 14892 | char (*f) () = $ac_func; |
| 14893 | #endif |
| 14894 | #ifdef __cplusplus |
| 14895 | } |
| 14896 | #endif |
| 14897 | |
| 14898 | int |
| 14899 | main () |
| 14900 | { |
| 14901 | return f != $ac_func; |
| 14902 | ; |
| 14903 | return 0; |
| 14904 | } |
| 14905 | _ACEOF |
| 14906 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14907 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14908 | (eval $ac_link) 2>conftest.er1 |
| 14909 | ac_status=$? |
| 14910 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14911 | rm -f conftest.er1 |
| 14912 | cat conftest.err >&5 |
| 14913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14914 | (exit $ac_status); } && |
| 14915 | { ac_try='test -z "$ac_c_werror_flag" |
| 14916 | || test ! -s conftest.err' |
| 14917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14918 | (eval $ac_try) 2>&5 |
| 14919 | ac_status=$? |
| 14920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14921 | (exit $ac_status); }; } && |
| 14922 | { ac_try='test -s conftest$ac_exeext' |
| 14923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14924 | (eval $ac_try) 2>&5 |
| 14925 | ac_status=$? |
| 14926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14927 | (exit $ac_status); }; }; then |
| 14928 | eval "$as_ac_var=yes" |
| 14929 | else |
| 14930 | echo "$as_me: failed program was:" >&5 |
| 14931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14932 | |
| 14933 | eval "$as_ac_var=no" |
| 14934 | fi |
| 14935 | rm -f conftest.err conftest.$ac_objext \ |
| 14936 | conftest$ac_exeext conftest.$ac_ext |
| 14937 | fi |
| 14938 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14939 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14940 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14941 | cat >>confdefs.h <<_ACEOF |
| 14942 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14943 | _ACEOF |
| 14944 | |
| 14945 | fi |
| 14946 | done |
| 14947 | |
| 14948 | echo "$as_me:$LINENO: checking for working mktime" >&5 |
| 14949 | echo $ECHO_N "checking for working mktime... $ECHO_C" >&6 |
| 14950 | if test "${ac_cv_func_working_mktime+set}" = set; then |
| 14951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14952 | else |
| 14953 | if test "$cross_compiling" = yes; then |
| 14954 | ac_cv_func_working_mktime=no |
| 14955 | else |
| 14956 | cat >conftest.$ac_ext <<_ACEOF |
| 14957 | /* confdefs.h. */ |
| 14958 | _ACEOF |
| 14959 | cat confdefs.h >>conftest.$ac_ext |
| 14960 | cat >>conftest.$ac_ext <<_ACEOF |
| 14961 | /* end confdefs.h. */ |
| 14962 | /* Test program from Paul Eggert and Tony Leneis. */ |
| 14963 | #if TIME_WITH_SYS_TIME |
| 14964 | # include <sys/time.h> |
| 14965 | # include <time.h> |
| 14966 | #else |
| 14967 | # if HAVE_SYS_TIME_H |
| 14968 | # include <sys/time.h> |
| 14969 | # else |
| 14970 | # include <time.h> |
| 14971 | # endif |
| 14972 | #endif |
| 14973 | |
| 14974 | #if HAVE_STDLIB_H |
| 14975 | # include <stdlib.h> |
| 14976 | #endif |
| 14977 | |
| 14978 | #if HAVE_UNISTD_H |
| 14979 | # include <unistd.h> |
| 14980 | #endif |
| 14981 | |
| 14982 | #if !HAVE_ALARM |
| 14983 | # define alarm(X) /* empty */ |
| 14984 | #endif |
| 14985 | |
| 14986 | /* Work around redefinition to rpl_putenv by other config tests. */ |
| 14987 | #undef putenv |
| 14988 | |
| 14989 | static time_t time_t_max; |
| 14990 | static time_t time_t_min; |
| 14991 | |
| 14992 | /* Values we'll use to set the TZ environment variable. */ |
| 14993 | static char *tz_strings[] = { |
| 14994 | (char *) 0, "TZ=GMT0", "TZ=JST-9", |
| 14995 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" |
| 14996 | }; |
| 14997 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) |
| 14998 | |
| 14999 | /* Fail if mktime fails to convert a date in the spring-forward gap. |
| 15000 | Based on a problem report from Andreas Jaeger. */ |
| 15001 | static void |
| 15002 | spring_forward_gap () |
| 15003 | { |
| 15004 | /* glibc (up to about 1998-10-07) failed this test. */ |
| 15005 | struct tm tm; |
| 15006 | |
| 15007 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" |
| 15008 | instead of "TZ=America/Vancouver" in order to detect the bug even |
| 15009 | on systems that don't support the Olson extension, or don't have the |
| 15010 | full zoneinfo tables installed. */ |
| 15011 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); |
| 15012 | |
| 15013 | tm.tm_year = 98; |
| 15014 | tm.tm_mon = 3; |
| 15015 | tm.tm_mday = 5; |
| 15016 | tm.tm_hour = 2; |
| 15017 | tm.tm_min = 0; |
| 15018 | tm.tm_sec = 0; |
| 15019 | tm.tm_isdst = -1; |
| 15020 | if (mktime (&tm) == (time_t)-1) |
| 15021 | exit (1); |
| 15022 | } |
| 15023 | |
| 15024 | static void |
| 15025 | mktime_test1 (now) |
| 15026 | time_t now; |
| 15027 | { |
| 15028 | struct tm *lt; |
| 15029 | if ((lt = localtime (&now)) && mktime (lt) != now) |
| 15030 | exit (1); |
| 15031 | } |
| 15032 | |
| 15033 | static void |
| 15034 | mktime_test (now) |
| 15035 | time_t now; |
| 15036 | { |
| 15037 | mktime_test1 (now); |
| 15038 | mktime_test1 ((time_t) (time_t_max - now)); |
| 15039 | mktime_test1 ((time_t) (time_t_min + now)); |
| 15040 | } |
| 15041 | |
| 15042 | static void |
| 15043 | irix_6_4_bug () |
| 15044 | { |
| 15045 | /* Based on code from Ariel Faigon. */ |
| 15046 | struct tm tm; |
| 15047 | tm.tm_year = 96; |
| 15048 | tm.tm_mon = 3; |
| 15049 | tm.tm_mday = 0; |
| 15050 | tm.tm_hour = 0; |
| 15051 | tm.tm_min = 0; |
| 15052 | tm.tm_sec = 0; |
| 15053 | tm.tm_isdst = -1; |
| 15054 | mktime (&tm); |
| 15055 | if (tm.tm_mon != 2 || tm.tm_mday != 31) |
| 15056 | exit (1); |
| 15057 | } |
| 15058 | |
| 15059 | static void |
| 15060 | bigtime_test (j) |
| 15061 | int j; |
| 15062 | { |
| 15063 | struct tm tm; |
| 15064 | time_t now; |
| 15065 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; |
| 15066 | now = mktime (&tm); |
| 15067 | if (now != (time_t) -1) |
| 15068 | { |
| 15069 | struct tm *lt = localtime (&now); |
| 15070 | if (! (lt |
| 15071 | && lt->tm_year == tm.tm_year |
| 15072 | && lt->tm_mon == tm.tm_mon |
| 15073 | && lt->tm_mday == tm.tm_mday |
| 15074 | && lt->tm_hour == tm.tm_hour |
| 15075 | && lt->tm_min == tm.tm_min |
| 15076 | && lt->tm_sec == tm.tm_sec |
| 15077 | && lt->tm_yday == tm.tm_yday |
| 15078 | && lt->tm_wday == tm.tm_wday |
| 15079 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) |
| 15080 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) |
| 15081 | exit (1); |
| 15082 | } |
| 15083 | } |
| 15084 | |
| 15085 | int |
| 15086 | main () |
| 15087 | { |
| 15088 | time_t t, delta; |
| 15089 | int i, j; |
| 15090 | |
| 15091 | /* This test makes some buggy mktime implementations loop. |
| 15092 | Give up after 60 seconds; a mktime slower than that |
| 15093 | isn't worth using anyway. */ |
| 15094 | alarm (60); |
| 15095 | |
| 15096 | for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) |
| 15097 | continue; |
| 15098 | time_t_max--; |
| 15099 | if ((time_t) -1 < 0) |
| 15100 | for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2) |
| 15101 | continue; |
| 15102 | delta = time_t_max / 997; /* a suitable prime number */ |
| 15103 | for (i = 0; i < N_STRINGS; i++) |
| 15104 | { |
| 15105 | if (tz_strings[i]) |
| 15106 | putenv (tz_strings[i]); |
| 15107 | |
| 15108 | for (t = 0; t <= time_t_max - delta; t += delta) |
| 15109 | mktime_test (t); |
| 15110 | mktime_test ((time_t) 1); |
| 15111 | mktime_test ((time_t) (60 * 60)); |
| 15112 | mktime_test ((time_t) (60 * 60 * 24)); |
| 15113 | |
| 15114 | for (j = 1; 0 < j; j *= 2) |
| 15115 | bigtime_test (j); |
| 15116 | bigtime_test (j - 1); |
| 15117 | } |
| 15118 | irix_6_4_bug (); |
| 15119 | spring_forward_gap (); |
| 15120 | exit (0); |
| 15121 | } |
| 15122 | _ACEOF |
| 15123 | rm -f conftest$ac_exeext |
| 15124 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15125 | (eval $ac_link) 2>&5 |
| 15126 | ac_status=$? |
| 15127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15128 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15130 | (eval $ac_try) 2>&5 |
| 15131 | ac_status=$? |
| 15132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15133 | (exit $ac_status); }; }; then |
| 15134 | ac_cv_func_working_mktime=yes |
| 15135 | else |
| 15136 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15137 | echo "$as_me: failed program was:" >&5 |
| 15138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15139 | |
| 15140 | ( exit $ac_status ) |
| 15141 | ac_cv_func_working_mktime=no |
| 15142 | fi |
| 15143 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15144 | fi |
| 15145 | fi |
| 15146 | echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 |
| 15147 | echo "${ECHO_T}$ac_cv_func_working_mktime" >&6 |
| 15148 | if test $ac_cv_func_working_mktime = no; then |
| 15149 | case $LIBOBJS in |
| 15150 | "mktime.$ac_objext" | \ |
| 15151 | *" mktime.$ac_objext" | \ |
| 15152 | "mktime.$ac_objext "* | \ |
| 15153 | *" mktime.$ac_objext "* ) ;; |
| 15154 | *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;; |
| 15155 | esac |
| 15156 | |
| 15157 | fi |
| 15158 | |
| 15159 | if test "$ac_cv_func_working_mktime" = no; then |
| 15160 | |
| 15161 | cat >>confdefs.h <<\_ACEOF |
| 15162 | #define BROKEN_MKTIME 1 |
| 15163 | _ACEOF |
| 15164 | |
| 15165 | fi |
| 15166 | |
| 15167 | ac_have_func=no # yes means we've found a way to get the load average. |
| 15168 | |
| 15169 | # Make sure getloadavg.c is where it belongs, at configure-time. |
| 15170 | test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || |
| 15171 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5 |
| 15172 | echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;} |
| 15173 | { (exit 1); exit 1; }; } |
| 15174 | |
| 15175 | ac_save_LIBS=$LIBS |
| 15176 | |
| 15177 | # Check for getloadavg, but be sure not to touch the cache variable. |
| 15178 | (echo "$as_me:$LINENO: checking for getloadavg" >&5 |
| 15179 | echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6 |
| 15180 | if test "${ac_cv_func_getloadavg+set}" = set; then |
| 15181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15182 | else |
| 15183 | cat >conftest.$ac_ext <<_ACEOF |
| 15184 | /* confdefs.h. */ |
| 15185 | _ACEOF |
| 15186 | cat confdefs.h >>conftest.$ac_ext |
| 15187 | cat >>conftest.$ac_ext <<_ACEOF |
| 15188 | /* end confdefs.h. */ |
| 15189 | /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg. |
| 15190 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15191 | #define getloadavg innocuous_getloadavg |
| 15192 | |
| 15193 | /* System header to define __stub macros and hopefully few prototypes, |
| 15194 | which can conflict with char getloadavg (); below. |
| 15195 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15196 | <limits.h> exists even on freestanding compilers. */ |
| 15197 | |
| 15198 | #ifdef __STDC__ |
| 15199 | # include <limits.h> |
| 15200 | #else |
| 15201 | # include <assert.h> |
| 15202 | #endif |
| 15203 | |
| 15204 | #undef getloadavg |
| 15205 | |
| 15206 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15207 | #ifdef __cplusplus |
| 15208 | extern "C" |
| 15209 | { |
| 15210 | #endif |
| 15211 | /* We use char because int might match the return type of a gcc2 |
| 15212 | builtin and then its argument prototype would still apply. */ |
| 15213 | char getloadavg (); |
| 15214 | /* The GNU C library defines this for functions which it implements |
| 15215 | to always fail with ENOSYS. Some functions are actually named |
| 15216 | something starting with __ and the normal name is an alias. */ |
| 15217 | #if defined (__stub_getloadavg) || defined (__stub___getloadavg) |
| 15218 | choke me |
| 15219 | #else |
| 15220 | char (*f) () = getloadavg; |
| 15221 | #endif |
| 15222 | #ifdef __cplusplus |
| 15223 | } |
| 15224 | #endif |
| 15225 | |
| 15226 | int |
| 15227 | main () |
| 15228 | { |
| 15229 | return f != getloadavg; |
| 15230 | ; |
| 15231 | return 0; |
| 15232 | } |
| 15233 | _ACEOF |
| 15234 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15235 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15236 | (eval $ac_link) 2>conftest.er1 |
| 15237 | ac_status=$? |
| 15238 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15239 | rm -f conftest.er1 |
| 15240 | cat conftest.err >&5 |
| 15241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15242 | (exit $ac_status); } && |
| 15243 | { ac_try='test -z "$ac_c_werror_flag" |
| 15244 | || test ! -s conftest.err' |
| 15245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15246 | (eval $ac_try) 2>&5 |
| 15247 | ac_status=$? |
| 15248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15249 | (exit $ac_status); }; } && |
| 15250 | { ac_try='test -s conftest$ac_exeext' |
| 15251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15252 | (eval $ac_try) 2>&5 |
| 15253 | ac_status=$? |
| 15254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15255 | (exit $ac_status); }; }; then |
| 15256 | ac_cv_func_getloadavg=yes |
| 15257 | else |
| 15258 | echo "$as_me: failed program was:" >&5 |
| 15259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15260 | |
| 15261 | ac_cv_func_getloadavg=no |
| 15262 | fi |
| 15263 | rm -f conftest.err conftest.$ac_objext \ |
| 15264 | conftest$ac_exeext conftest.$ac_ext |
| 15265 | fi |
| 15266 | echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5 |
| 15267 | echo "${ECHO_T}$ac_cv_func_getloadavg" >&6 |
| 15268 | if test $ac_cv_func_getloadavg = yes; then |
| 15269 | exit 0 |
| 15270 | else |
| 15271 | exit 1 |
| 15272 | fi |
| 15273 | ) && ac_have_func=yes |
| 15274 | |
| 15275 | # On HPUX9, an unprivileged user can get load averages through this function. |
| 15276 | |
| 15277 | for ac_func in pstat_getdynamic |
| 15278 | do |
| 15279 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15280 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15281 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15282 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15284 | else |
| 15285 | cat >conftest.$ac_ext <<_ACEOF |
| 15286 | /* confdefs.h. */ |
| 15287 | _ACEOF |
| 15288 | cat confdefs.h >>conftest.$ac_ext |
| 15289 | cat >>conftest.$ac_ext <<_ACEOF |
| 15290 | /* end confdefs.h. */ |
| 15291 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15292 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15293 | #define $ac_func innocuous_$ac_func |
| 15294 | |
| 15295 | /* System header to define __stub macros and hopefully few prototypes, |
| 15296 | which can conflict with char $ac_func (); below. |
| 15297 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15298 | <limits.h> exists even on freestanding compilers. */ |
| 15299 | |
| 15300 | #ifdef __STDC__ |
| 15301 | # include <limits.h> |
| 15302 | #else |
| 15303 | # include <assert.h> |
| 15304 | #endif |
| 15305 | |
| 15306 | #undef $ac_func |
| 15307 | |
| 15308 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15309 | #ifdef __cplusplus |
| 15310 | extern "C" |
| 15311 | { |
| 15312 | #endif |
| 15313 | /* We use char because int might match the return type of a gcc2 |
| 15314 | builtin and then its argument prototype would still apply. */ |
| 15315 | char $ac_func (); |
| 15316 | /* The GNU C library defines this for functions which it implements |
| 15317 | to always fail with ENOSYS. Some functions are actually named |
| 15318 | something starting with __ and the normal name is an alias. */ |
| 15319 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15320 | choke me |
| 15321 | #else |
| 15322 | char (*f) () = $ac_func; |
| 15323 | #endif |
| 15324 | #ifdef __cplusplus |
| 15325 | } |
| 15326 | #endif |
| 15327 | |
| 15328 | int |
| 15329 | main () |
| 15330 | { |
| 15331 | return f != $ac_func; |
| 15332 | ; |
| 15333 | return 0; |
| 15334 | } |
| 15335 | _ACEOF |
| 15336 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15337 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15338 | (eval $ac_link) 2>conftest.er1 |
| 15339 | ac_status=$? |
| 15340 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15341 | rm -f conftest.er1 |
| 15342 | cat conftest.err >&5 |
| 15343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15344 | (exit $ac_status); } && |
| 15345 | { ac_try='test -z "$ac_c_werror_flag" |
| 15346 | || test ! -s conftest.err' |
| 15347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15348 | (eval $ac_try) 2>&5 |
| 15349 | ac_status=$? |
| 15350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15351 | (exit $ac_status); }; } && |
| 15352 | { ac_try='test -s conftest$ac_exeext' |
| 15353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15354 | (eval $ac_try) 2>&5 |
| 15355 | ac_status=$? |
| 15356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15357 | (exit $ac_status); }; }; then |
| 15358 | eval "$as_ac_var=yes" |
| 15359 | else |
| 15360 | echo "$as_me: failed program was:" >&5 |
| 15361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15362 | |
| 15363 | eval "$as_ac_var=no" |
| 15364 | fi |
| 15365 | rm -f conftest.err conftest.$ac_objext \ |
| 15366 | conftest$ac_exeext conftest.$ac_ext |
| 15367 | fi |
| 15368 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15369 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15370 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15371 | cat >>confdefs.h <<_ACEOF |
| 15372 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15373 | _ACEOF |
| 15374 | |
| 15375 | fi |
| 15376 | done |
| 15377 | |
| 15378 | |
| 15379 | # Solaris has libkstat which does not require root. |
| 15380 | |
| 15381 | echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5 |
| 15382 | echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6 |
| 15383 | if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then |
| 15384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15385 | else |
| 15386 | ac_check_lib_save_LIBS=$LIBS |
| 15387 | LIBS="-lkstat $LIBS" |
| 15388 | cat >conftest.$ac_ext <<_ACEOF |
| 15389 | /* confdefs.h. */ |
| 15390 | _ACEOF |
| 15391 | cat confdefs.h >>conftest.$ac_ext |
| 15392 | cat >>conftest.$ac_ext <<_ACEOF |
| 15393 | /* end confdefs.h. */ |
| 15394 | |
| 15395 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15396 | #ifdef __cplusplus |
| 15397 | extern "C" |
| 15398 | #endif |
| 15399 | /* We use char because int might match the return type of a gcc2 |
| 15400 | builtin and then its argument prototype would still apply. */ |
| 15401 | char kstat_open (); |
| 15402 | int |
| 15403 | main () |
| 15404 | { |
| 15405 | kstat_open (); |
| 15406 | ; |
| 15407 | return 0; |
| 15408 | } |
| 15409 | _ACEOF |
| 15410 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15412 | (eval $ac_link) 2>conftest.er1 |
| 15413 | ac_status=$? |
| 15414 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15415 | rm -f conftest.er1 |
| 15416 | cat conftest.err >&5 |
| 15417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15418 | (exit $ac_status); } && |
| 15419 | { ac_try='test -z "$ac_c_werror_flag" |
| 15420 | || test ! -s conftest.err' |
| 15421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15422 | (eval $ac_try) 2>&5 |
| 15423 | ac_status=$? |
| 15424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15425 | (exit $ac_status); }; } && |
| 15426 | { ac_try='test -s conftest$ac_exeext' |
| 15427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15428 | (eval $ac_try) 2>&5 |
| 15429 | ac_status=$? |
| 15430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15431 | (exit $ac_status); }; }; then |
| 15432 | ac_cv_lib_kstat_kstat_open=yes |
| 15433 | else |
| 15434 | echo "$as_me: failed program was:" >&5 |
| 15435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15436 | |
| 15437 | ac_cv_lib_kstat_kstat_open=no |
| 15438 | fi |
| 15439 | rm -f conftest.err conftest.$ac_objext \ |
| 15440 | conftest$ac_exeext conftest.$ac_ext |
| 15441 | LIBS=$ac_check_lib_save_LIBS |
| 15442 | fi |
| 15443 | echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 |
| 15444 | echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6 |
| 15445 | if test $ac_cv_lib_kstat_kstat_open = yes; then |
| 15446 | cat >>confdefs.h <<_ACEOF |
| 15447 | #define HAVE_LIBKSTAT 1 |
| 15448 | _ACEOF |
| 15449 | |
| 15450 | LIBS="-lkstat $LIBS" |
| 15451 | |
| 15452 | fi |
| 15453 | |
| 15454 | test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes |
| 15455 | |
| 15456 | # Some systems with -lutil have (and need) -lkvm as well, some do not. |
| 15457 | # On Solaris, -lkvm requires nlist from -lelf, so check that first |
| 15458 | # to get the right answer into the cache. |
| 15459 | # For kstat on solaris, we need libelf to force the definition of SVR4 below. |
| 15460 | if test $ac_have_func = no; then |
| 15461 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
| 15462 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 |
| 15463 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
| 15464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15465 | else |
| 15466 | ac_check_lib_save_LIBS=$LIBS |
| 15467 | LIBS="-lelf $LIBS" |
| 15468 | cat >conftest.$ac_ext <<_ACEOF |
| 15469 | /* confdefs.h. */ |
| 15470 | _ACEOF |
| 15471 | cat confdefs.h >>conftest.$ac_ext |
| 15472 | cat >>conftest.$ac_ext <<_ACEOF |
| 15473 | /* end confdefs.h. */ |
| 15474 | |
| 15475 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15476 | #ifdef __cplusplus |
| 15477 | extern "C" |
| 15478 | #endif |
| 15479 | /* We use char because int might match the return type of a gcc2 |
| 15480 | builtin and then its argument prototype would still apply. */ |
| 15481 | char elf_begin (); |
| 15482 | int |
| 15483 | main () |
| 15484 | { |
| 15485 | elf_begin (); |
| 15486 | ; |
| 15487 | return 0; |
| 15488 | } |
| 15489 | _ACEOF |
| 15490 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15491 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15492 | (eval $ac_link) 2>conftest.er1 |
| 15493 | ac_status=$? |
| 15494 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15495 | rm -f conftest.er1 |
| 15496 | cat conftest.err >&5 |
| 15497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15498 | (exit $ac_status); } && |
| 15499 | { ac_try='test -z "$ac_c_werror_flag" |
| 15500 | || test ! -s conftest.err' |
| 15501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15502 | (eval $ac_try) 2>&5 |
| 15503 | ac_status=$? |
| 15504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15505 | (exit $ac_status); }; } && |
| 15506 | { ac_try='test -s conftest$ac_exeext' |
| 15507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15508 | (eval $ac_try) 2>&5 |
| 15509 | ac_status=$? |
| 15510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15511 | (exit $ac_status); }; }; then |
| 15512 | ac_cv_lib_elf_elf_begin=yes |
| 15513 | else |
| 15514 | echo "$as_me: failed program was:" >&5 |
| 15515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15516 | |
| 15517 | ac_cv_lib_elf_elf_begin=no |
| 15518 | fi |
| 15519 | rm -f conftest.err conftest.$ac_objext \ |
| 15520 | conftest$ac_exeext conftest.$ac_ext |
| 15521 | LIBS=$ac_check_lib_save_LIBS |
| 15522 | fi |
| 15523 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 15524 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 |
| 15525 | if test $ac_cv_lib_elf_elf_begin = yes; then |
| 15526 | LIBS="-lelf $LIBS" |
| 15527 | fi |
| 15528 | |
| 15529 | fi |
| 15530 | if test $ac_have_func = no; then |
| 15531 | echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5 |
| 15532 | echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6 |
| 15533 | if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then |
| 15534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15535 | else |
| 15536 | ac_check_lib_save_LIBS=$LIBS |
| 15537 | LIBS="-lkvm $LIBS" |
| 15538 | cat >conftest.$ac_ext <<_ACEOF |
| 15539 | /* confdefs.h. */ |
| 15540 | _ACEOF |
| 15541 | cat confdefs.h >>conftest.$ac_ext |
| 15542 | cat >>conftest.$ac_ext <<_ACEOF |
| 15543 | /* end confdefs.h. */ |
| 15544 | |
| 15545 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15546 | #ifdef __cplusplus |
| 15547 | extern "C" |
| 15548 | #endif |
| 15549 | /* We use char because int might match the return type of a gcc2 |
| 15550 | builtin and then its argument prototype would still apply. */ |
| 15551 | char kvm_open (); |
| 15552 | int |
| 15553 | main () |
| 15554 | { |
| 15555 | kvm_open (); |
| 15556 | ; |
| 15557 | return 0; |
| 15558 | } |
| 15559 | _ACEOF |
| 15560 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15562 | (eval $ac_link) 2>conftest.er1 |
| 15563 | ac_status=$? |
| 15564 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15565 | rm -f conftest.er1 |
| 15566 | cat conftest.err >&5 |
| 15567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15568 | (exit $ac_status); } && |
| 15569 | { ac_try='test -z "$ac_c_werror_flag" |
| 15570 | || test ! -s conftest.err' |
| 15571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15572 | (eval $ac_try) 2>&5 |
| 15573 | ac_status=$? |
| 15574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15575 | (exit $ac_status); }; } && |
| 15576 | { ac_try='test -s conftest$ac_exeext' |
| 15577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15578 | (eval $ac_try) 2>&5 |
| 15579 | ac_status=$? |
| 15580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15581 | (exit $ac_status); }; }; then |
| 15582 | ac_cv_lib_kvm_kvm_open=yes |
| 15583 | else |
| 15584 | echo "$as_me: failed program was:" >&5 |
| 15585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15586 | |
| 15587 | ac_cv_lib_kvm_kvm_open=no |
| 15588 | fi |
| 15589 | rm -f conftest.err conftest.$ac_objext \ |
| 15590 | conftest$ac_exeext conftest.$ac_ext |
| 15591 | LIBS=$ac_check_lib_save_LIBS |
| 15592 | fi |
| 15593 | echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 |
| 15594 | echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6 |
| 15595 | if test $ac_cv_lib_kvm_kvm_open = yes; then |
| 15596 | LIBS="-lkvm $LIBS" |
| 15597 | fi |
| 15598 | |
| 15599 | # Check for the 4.4BSD definition of getloadavg. |
| 15600 | echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5 |
| 15601 | echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6 |
| 15602 | if test "${ac_cv_lib_util_getloadavg+set}" = set; then |
| 15603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15604 | else |
| 15605 | ac_check_lib_save_LIBS=$LIBS |
| 15606 | LIBS="-lutil $LIBS" |
| 15607 | cat >conftest.$ac_ext <<_ACEOF |
| 15608 | /* confdefs.h. */ |
| 15609 | _ACEOF |
| 15610 | cat confdefs.h >>conftest.$ac_ext |
| 15611 | cat >>conftest.$ac_ext <<_ACEOF |
| 15612 | /* end confdefs.h. */ |
| 15613 | |
| 15614 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15615 | #ifdef __cplusplus |
| 15616 | extern "C" |
| 15617 | #endif |
| 15618 | /* We use char because int might match the return type of a gcc2 |
| 15619 | builtin and then its argument prototype would still apply. */ |
| 15620 | char getloadavg (); |
| 15621 | int |
| 15622 | main () |
| 15623 | { |
| 15624 | getloadavg (); |
| 15625 | ; |
| 15626 | return 0; |
| 15627 | } |
| 15628 | _ACEOF |
| 15629 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15630 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15631 | (eval $ac_link) 2>conftest.er1 |
| 15632 | ac_status=$? |
| 15633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15634 | rm -f conftest.er1 |
| 15635 | cat conftest.err >&5 |
| 15636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15637 | (exit $ac_status); } && |
| 15638 | { ac_try='test -z "$ac_c_werror_flag" |
| 15639 | || test ! -s conftest.err' |
| 15640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15641 | (eval $ac_try) 2>&5 |
| 15642 | ac_status=$? |
| 15643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15644 | (exit $ac_status); }; } && |
| 15645 | { ac_try='test -s conftest$ac_exeext' |
| 15646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15647 | (eval $ac_try) 2>&5 |
| 15648 | ac_status=$? |
| 15649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15650 | (exit $ac_status); }; }; then |
| 15651 | ac_cv_lib_util_getloadavg=yes |
| 15652 | else |
| 15653 | echo "$as_me: failed program was:" >&5 |
| 15654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15655 | |
| 15656 | ac_cv_lib_util_getloadavg=no |
| 15657 | fi |
| 15658 | rm -f conftest.err conftest.$ac_objext \ |
| 15659 | conftest$ac_exeext conftest.$ac_ext |
| 15660 | LIBS=$ac_check_lib_save_LIBS |
| 15661 | fi |
| 15662 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5 |
| 15663 | echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6 |
| 15664 | if test $ac_cv_lib_util_getloadavg = yes; then |
| 15665 | LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes |
| 15666 | fi |
| 15667 | |
| 15668 | fi |
| 15669 | |
| 15670 | if test $ac_have_func = no; then |
| 15671 | # There is a commonly available library for RS/6000 AIX. |
| 15672 | # Since it is not a standard part of AIX, it might be installed locally. |
| 15673 | ac_getloadavg_LIBS=$LIBS |
| 15674 | LIBS="-L/usr/local/lib $LIBS" |
| 15675 | echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5 |
| 15676 | echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6 |
| 15677 | if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then |
| 15678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15679 | else |
| 15680 | ac_check_lib_save_LIBS=$LIBS |
| 15681 | LIBS="-lgetloadavg $LIBS" |
| 15682 | cat >conftest.$ac_ext <<_ACEOF |
| 15683 | /* confdefs.h. */ |
| 15684 | _ACEOF |
| 15685 | cat confdefs.h >>conftest.$ac_ext |
| 15686 | cat >>conftest.$ac_ext <<_ACEOF |
| 15687 | /* end confdefs.h. */ |
| 15688 | |
| 15689 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15690 | #ifdef __cplusplus |
| 15691 | extern "C" |
| 15692 | #endif |
| 15693 | /* We use char because int might match the return type of a gcc2 |
| 15694 | builtin and then its argument prototype would still apply. */ |
| 15695 | char getloadavg (); |
| 15696 | int |
| 15697 | main () |
| 15698 | { |
| 15699 | getloadavg (); |
| 15700 | ; |
| 15701 | return 0; |
| 15702 | } |
| 15703 | _ACEOF |
| 15704 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15705 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15706 | (eval $ac_link) 2>conftest.er1 |
| 15707 | ac_status=$? |
| 15708 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15709 | rm -f conftest.er1 |
| 15710 | cat conftest.err >&5 |
| 15711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15712 | (exit $ac_status); } && |
| 15713 | { ac_try='test -z "$ac_c_werror_flag" |
| 15714 | || test ! -s conftest.err' |
| 15715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15716 | (eval $ac_try) 2>&5 |
| 15717 | ac_status=$? |
| 15718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15719 | (exit $ac_status); }; } && |
| 15720 | { ac_try='test -s conftest$ac_exeext' |
| 15721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15722 | (eval $ac_try) 2>&5 |
| 15723 | ac_status=$? |
| 15724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15725 | (exit $ac_status); }; }; then |
| 15726 | ac_cv_lib_getloadavg_getloadavg=yes |
| 15727 | else |
| 15728 | echo "$as_me: failed program was:" >&5 |
| 15729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15730 | |
| 15731 | ac_cv_lib_getloadavg_getloadavg=no |
| 15732 | fi |
| 15733 | rm -f conftest.err conftest.$ac_objext \ |
| 15734 | conftest$ac_exeext conftest.$ac_ext |
| 15735 | LIBS=$ac_check_lib_save_LIBS |
| 15736 | fi |
| 15737 | echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
| 15738 | echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6 |
| 15739 | if test $ac_cv_lib_getloadavg_getloadavg = yes; then |
| 15740 | LIBS="-lgetloadavg $LIBS" |
| 15741 | else |
| 15742 | LIBS=$ac_getloadavg_LIBS |
| 15743 | fi |
| 15744 | |
| 15745 | fi |
| 15746 | |
| 15747 | # Make sure it is really in the library, if we think we found it, |
| 15748 | # otherwise set up the replacement function. |
| 15749 | |
| 15750 | for ac_func in getloadavg |
| 15751 | do |
| 15752 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15753 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15754 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15755 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15757 | else |
| 15758 | cat >conftest.$ac_ext <<_ACEOF |
| 15759 | /* confdefs.h. */ |
| 15760 | _ACEOF |
| 15761 | cat confdefs.h >>conftest.$ac_ext |
| 15762 | cat >>conftest.$ac_ext <<_ACEOF |
| 15763 | /* end confdefs.h. */ |
| 15764 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15765 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15766 | #define $ac_func innocuous_$ac_func |
| 15767 | |
| 15768 | /* System header to define __stub macros and hopefully few prototypes, |
| 15769 | which can conflict with char $ac_func (); below. |
| 15770 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15771 | <limits.h> exists even on freestanding compilers. */ |
| 15772 | |
| 15773 | #ifdef __STDC__ |
| 15774 | # include <limits.h> |
| 15775 | #else |
| 15776 | # include <assert.h> |
| 15777 | #endif |
| 15778 | |
| 15779 | #undef $ac_func |
| 15780 | |
| 15781 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15782 | #ifdef __cplusplus |
| 15783 | extern "C" |
| 15784 | { |
| 15785 | #endif |
| 15786 | /* We use char because int might match the return type of a gcc2 |
| 15787 | builtin and then its argument prototype would still apply. */ |
| 15788 | char $ac_func (); |
| 15789 | /* The GNU C library defines this for functions which it implements |
| 15790 | to always fail with ENOSYS. Some functions are actually named |
| 15791 | something starting with __ and the normal name is an alias. */ |
| 15792 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15793 | choke me |
| 15794 | #else |
| 15795 | char (*f) () = $ac_func; |
| 15796 | #endif |
| 15797 | #ifdef __cplusplus |
| 15798 | } |
| 15799 | #endif |
| 15800 | |
| 15801 | int |
| 15802 | main () |
| 15803 | { |
| 15804 | return f != $ac_func; |
| 15805 | ; |
| 15806 | return 0; |
| 15807 | } |
| 15808 | _ACEOF |
| 15809 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15811 | (eval $ac_link) 2>conftest.er1 |
| 15812 | ac_status=$? |
| 15813 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15814 | rm -f conftest.er1 |
| 15815 | cat conftest.err >&5 |
| 15816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15817 | (exit $ac_status); } && |
| 15818 | { ac_try='test -z "$ac_c_werror_flag" |
| 15819 | || test ! -s conftest.err' |
| 15820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15821 | (eval $ac_try) 2>&5 |
| 15822 | ac_status=$? |
| 15823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15824 | (exit $ac_status); }; } && |
| 15825 | { ac_try='test -s conftest$ac_exeext' |
| 15826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15827 | (eval $ac_try) 2>&5 |
| 15828 | ac_status=$? |
| 15829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15830 | (exit $ac_status); }; }; then |
| 15831 | eval "$as_ac_var=yes" |
| 15832 | else |
| 15833 | echo "$as_me: failed program was:" >&5 |
| 15834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15835 | |
| 15836 | eval "$as_ac_var=no" |
| 15837 | fi |
| 15838 | rm -f conftest.err conftest.$ac_objext \ |
| 15839 | conftest$ac_exeext conftest.$ac_ext |
| 15840 | fi |
| 15841 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15842 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15843 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15844 | cat >>confdefs.h <<_ACEOF |
| 15845 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15846 | _ACEOF |
| 15847 | |
| 15848 | else |
| 15849 | case $LIBOBJS in |
| 15850 | "getloadavg.$ac_objext" | \ |
| 15851 | *" getloadavg.$ac_objext" | \ |
| 15852 | "getloadavg.$ac_objext "* | \ |
| 15853 | *" getloadavg.$ac_objext "* ) ;; |
| 15854 | *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;; |
| 15855 | esac |
| 15856 | |
| 15857 | |
| 15858 | cat >>confdefs.h <<\_ACEOF |
| 15859 | #define C_GETLOADAVG 1 |
| 15860 | _ACEOF |
| 15861 | |
| 15862 | # Figure out what our getloadavg.c needs. |
| 15863 | ac_have_func=no |
| 15864 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then |
| 15865 | echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 |
| 15866 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 |
| 15867 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then |
| 15868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15869 | fi |
| 15870 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 |
| 15871 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 |
| 15872 | else |
| 15873 | # Is the header compilable? |
| 15874 | echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5 |
| 15875 | echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6 |
| 15876 | cat >conftest.$ac_ext <<_ACEOF |
| 15877 | /* confdefs.h. */ |
| 15878 | _ACEOF |
| 15879 | cat confdefs.h >>conftest.$ac_ext |
| 15880 | cat >>conftest.$ac_ext <<_ACEOF |
| 15881 | /* end confdefs.h. */ |
| 15882 | $ac_includes_default |
| 15883 | #include <sys/dg_sys_info.h> |
| 15884 | _ACEOF |
| 15885 | rm -f conftest.$ac_objext |
| 15886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15887 | (eval $ac_compile) 2>conftest.er1 |
| 15888 | ac_status=$? |
| 15889 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15890 | rm -f conftest.er1 |
| 15891 | cat conftest.err >&5 |
| 15892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15893 | (exit $ac_status); } && |
| 15894 | { ac_try='test -z "$ac_c_werror_flag" |
| 15895 | || test ! -s conftest.err' |
| 15896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15897 | (eval $ac_try) 2>&5 |
| 15898 | ac_status=$? |
| 15899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15900 | (exit $ac_status); }; } && |
| 15901 | { ac_try='test -s conftest.$ac_objext' |
| 15902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15903 | (eval $ac_try) 2>&5 |
| 15904 | ac_status=$? |
| 15905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15906 | (exit $ac_status); }; }; then |
| 15907 | ac_header_compiler=yes |
| 15908 | else |
| 15909 | echo "$as_me: failed program was:" >&5 |
| 15910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15911 | |
| 15912 | ac_header_compiler=no |
| 15913 | fi |
| 15914 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15915 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15916 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15917 | |
| 15918 | # Is the header present? |
| 15919 | echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5 |
| 15920 | echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6 |
| 15921 | cat >conftest.$ac_ext <<_ACEOF |
| 15922 | /* confdefs.h. */ |
| 15923 | _ACEOF |
| 15924 | cat confdefs.h >>conftest.$ac_ext |
| 15925 | cat >>conftest.$ac_ext <<_ACEOF |
| 15926 | /* end confdefs.h. */ |
| 15927 | #include <sys/dg_sys_info.h> |
| 15928 | _ACEOF |
| 15929 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15930 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15931 | ac_status=$? |
| 15932 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15933 | rm -f conftest.er1 |
| 15934 | cat conftest.err >&5 |
| 15935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15936 | (exit $ac_status); } >/dev/null; then |
| 15937 | if test -s conftest.err; then |
| 15938 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15939 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15940 | else |
| 15941 | ac_cpp_err= |
| 15942 | fi |
| 15943 | else |
| 15944 | ac_cpp_err=yes |
| 15945 | fi |
| 15946 | if test -z "$ac_cpp_err"; then |
| 15947 | ac_header_preproc=yes |
| 15948 | else |
| 15949 | echo "$as_me: failed program was:" >&5 |
| 15950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15951 | |
| 15952 | ac_header_preproc=no |
| 15953 | fi |
| 15954 | rm -f conftest.err conftest.$ac_ext |
| 15955 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15956 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15957 | |
| 15958 | # So? What about this header? |
| 15959 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15960 | yes:no: ) |
| 15961 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15962 | echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15963 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5 |
| 15964 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;} |
| 15965 | ac_header_preproc=yes |
| 15966 | ;; |
| 15967 | no:yes:* ) |
| 15968 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5 |
| 15969 | echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;} |
| 15970 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5 |
| 15971 | echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;} |
| 15972 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5 |
| 15973 | echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;} |
| 15974 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 15975 | echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15976 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 |
| 15977 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;} |
| 15978 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5 |
| 15979 | echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;} |
| 15980 | ( |
| 15981 | cat <<\_ASBOX |
| 15982 | ## ------------------------------------------ ## |
| 15983 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 15984 | ## ------------------------------------------ ## |
| 15985 | _ASBOX |
| 15986 | ) | |
| 15987 | sed "s/^/$as_me: WARNING: /" >&2 |
| 15988 | ;; |
| 15989 | esac |
| 15990 | echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 |
| 15991 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 |
| 15992 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then |
| 15993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15994 | else |
| 15995 | ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc |
| 15996 | fi |
| 15997 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 |
| 15998 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 |
| 15999 | |
| 16000 | fi |
| 16001 | if test $ac_cv_header_sys_dg_sys_info_h = yes; then |
| 16002 | ac_have_func=yes |
| 16003 | |
| 16004 | cat >>confdefs.h <<\_ACEOF |
| 16005 | #define DGUX 1 |
| 16006 | _ACEOF |
| 16007 | |
| 16008 | |
| 16009 | echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5 |
| 16010 | echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6 |
| 16011 | if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then |
| 16012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16013 | else |
| 16014 | ac_check_lib_save_LIBS=$LIBS |
| 16015 | LIBS="-ldgc $LIBS" |
| 16016 | cat >conftest.$ac_ext <<_ACEOF |
| 16017 | /* confdefs.h. */ |
| 16018 | _ACEOF |
| 16019 | cat confdefs.h >>conftest.$ac_ext |
| 16020 | cat >>conftest.$ac_ext <<_ACEOF |
| 16021 | /* end confdefs.h. */ |
| 16022 | |
| 16023 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16024 | #ifdef __cplusplus |
| 16025 | extern "C" |
| 16026 | #endif |
| 16027 | /* We use char because int might match the return type of a gcc2 |
| 16028 | builtin and then its argument prototype would still apply. */ |
| 16029 | char dg_sys_info (); |
| 16030 | int |
| 16031 | main () |
| 16032 | { |
| 16033 | dg_sys_info (); |
| 16034 | ; |
| 16035 | return 0; |
| 16036 | } |
| 16037 | _ACEOF |
| 16038 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16039 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16040 | (eval $ac_link) 2>conftest.er1 |
| 16041 | ac_status=$? |
| 16042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16043 | rm -f conftest.er1 |
| 16044 | cat conftest.err >&5 |
| 16045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16046 | (exit $ac_status); } && |
| 16047 | { ac_try='test -z "$ac_c_werror_flag" |
| 16048 | || test ! -s conftest.err' |
| 16049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16050 | (eval $ac_try) 2>&5 |
| 16051 | ac_status=$? |
| 16052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16053 | (exit $ac_status); }; } && |
| 16054 | { ac_try='test -s conftest$ac_exeext' |
| 16055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16056 | (eval $ac_try) 2>&5 |
| 16057 | ac_status=$? |
| 16058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16059 | (exit $ac_status); }; }; then |
| 16060 | ac_cv_lib_dgc_dg_sys_info=yes |
| 16061 | else |
| 16062 | echo "$as_me: failed program was:" >&5 |
| 16063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16064 | |
| 16065 | ac_cv_lib_dgc_dg_sys_info=no |
| 16066 | fi |
| 16067 | rm -f conftest.err conftest.$ac_objext \ |
| 16068 | conftest$ac_exeext conftest.$ac_ext |
| 16069 | LIBS=$ac_check_lib_save_LIBS |
| 16070 | fi |
| 16071 | echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5 |
| 16072 | echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6 |
| 16073 | if test $ac_cv_lib_dgc_dg_sys_info = yes; then |
| 16074 | cat >>confdefs.h <<_ACEOF |
| 16075 | #define HAVE_LIBDGC 1 |
| 16076 | _ACEOF |
| 16077 | |
| 16078 | LIBS="-ldgc $LIBS" |
| 16079 | |
| 16080 | fi |
| 16081 | |
| 16082 | fi |
| 16083 | |
| 16084 | |
| 16085 | |
| 16086 | if test "${ac_cv_header_locale_h+set}" = set; then |
| 16087 | echo "$as_me:$LINENO: checking for locale.h" >&5 |
| 16088 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 |
| 16089 | if test "${ac_cv_header_locale_h+set}" = set; then |
| 16090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16091 | fi |
| 16092 | echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 |
| 16093 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6 |
| 16094 | else |
| 16095 | # Is the header compilable? |
| 16096 | echo "$as_me:$LINENO: checking locale.h usability" >&5 |
| 16097 | echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6 |
| 16098 | cat >conftest.$ac_ext <<_ACEOF |
| 16099 | /* confdefs.h. */ |
| 16100 | _ACEOF |
| 16101 | cat confdefs.h >>conftest.$ac_ext |
| 16102 | cat >>conftest.$ac_ext <<_ACEOF |
| 16103 | /* end confdefs.h. */ |
| 16104 | $ac_includes_default |
| 16105 | #include <locale.h> |
| 16106 | _ACEOF |
| 16107 | rm -f conftest.$ac_objext |
| 16108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16109 | (eval $ac_compile) 2>conftest.er1 |
| 16110 | ac_status=$? |
| 16111 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16112 | rm -f conftest.er1 |
| 16113 | cat conftest.err >&5 |
| 16114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16115 | (exit $ac_status); } && |
| 16116 | { ac_try='test -z "$ac_c_werror_flag" |
| 16117 | || test ! -s conftest.err' |
| 16118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16119 | (eval $ac_try) 2>&5 |
| 16120 | ac_status=$? |
| 16121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16122 | (exit $ac_status); }; } && |
| 16123 | { ac_try='test -s conftest.$ac_objext' |
| 16124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16125 | (eval $ac_try) 2>&5 |
| 16126 | ac_status=$? |
| 16127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16128 | (exit $ac_status); }; }; then |
| 16129 | ac_header_compiler=yes |
| 16130 | else |
| 16131 | echo "$as_me: failed program was:" >&5 |
| 16132 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16133 | |
| 16134 | ac_header_compiler=no |
| 16135 | fi |
| 16136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16137 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16138 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 16139 | |
| 16140 | # Is the header present? |
| 16141 | echo "$as_me:$LINENO: checking locale.h presence" >&5 |
| 16142 | echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6 |
| 16143 | cat >conftest.$ac_ext <<_ACEOF |
| 16144 | /* confdefs.h. */ |
| 16145 | _ACEOF |
| 16146 | cat confdefs.h >>conftest.$ac_ext |
| 16147 | cat >>conftest.$ac_ext <<_ACEOF |
| 16148 | /* end confdefs.h. */ |
| 16149 | #include <locale.h> |
| 16150 | _ACEOF |
| 16151 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 16152 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 16153 | ac_status=$? |
| 16154 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16155 | rm -f conftest.er1 |
| 16156 | cat conftest.err >&5 |
| 16157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16158 | (exit $ac_status); } >/dev/null; then |
| 16159 | if test -s conftest.err; then |
| 16160 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16161 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16162 | else |
| 16163 | ac_cpp_err= |
| 16164 | fi |
| 16165 | else |
| 16166 | ac_cpp_err=yes |
| 16167 | fi |
| 16168 | if test -z "$ac_cpp_err"; then |
| 16169 | ac_header_preproc=yes |
| 16170 | else |
| 16171 | echo "$as_me: failed program was:" >&5 |
| 16172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16173 | |
| 16174 | ac_header_preproc=no |
| 16175 | fi |
| 16176 | rm -f conftest.err conftest.$ac_ext |
| 16177 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16178 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 16179 | |
| 16180 | # So? What about this header? |
| 16181 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16182 | yes:no: ) |
| 16183 | { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16184 | echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16185 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5 |
| 16186 | echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;} |
| 16187 | ac_header_preproc=yes |
| 16188 | ;; |
| 16189 | no:yes:* ) |
| 16190 | { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5 |
| 16191 | echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;} |
| 16192 | { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5 |
| 16193 | echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;} |
| 16194 | { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5 |
| 16195 | echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;} |
| 16196 | { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16197 | echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16198 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 |
| 16199 | echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;} |
| 16200 | { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5 |
| 16201 | echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;} |
| 16202 | ( |
| 16203 | cat <<\_ASBOX |
| 16204 | ## ------------------------------------------ ## |
| 16205 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 16206 | ## ------------------------------------------ ## |
| 16207 | _ASBOX |
| 16208 | ) | |
| 16209 | sed "s/^/$as_me: WARNING: /" >&2 |
| 16210 | ;; |
| 16211 | esac |
| 16212 | echo "$as_me:$LINENO: checking for locale.h" >&5 |
| 16213 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 |
| 16214 | if test "${ac_cv_header_locale_h+set}" = set; then |
| 16215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16216 | else |
| 16217 | ac_cv_header_locale_h=$ac_header_preproc |
| 16218 | fi |
| 16219 | echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 |
| 16220 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6 |
| 16221 | |
| 16222 | fi |
| 16223 | |
| 16224 | |
| 16225 | |
| 16226 | for ac_func in setlocale |
| 16227 | do |
| 16228 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16229 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16230 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16231 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16233 | else |
| 16234 | cat >conftest.$ac_ext <<_ACEOF |
| 16235 | /* confdefs.h. */ |
| 16236 | _ACEOF |
| 16237 | cat confdefs.h >>conftest.$ac_ext |
| 16238 | cat >>conftest.$ac_ext <<_ACEOF |
| 16239 | /* end confdefs.h. */ |
| 16240 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16241 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16242 | #define $ac_func innocuous_$ac_func |
| 16243 | |
| 16244 | /* System header to define __stub macros and hopefully few prototypes, |
| 16245 | which can conflict with char $ac_func (); below. |
| 16246 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16247 | <limits.h> exists even on freestanding compilers. */ |
| 16248 | |
| 16249 | #ifdef __STDC__ |
| 16250 | # include <limits.h> |
| 16251 | #else |
| 16252 | # include <assert.h> |
| 16253 | #endif |
| 16254 | |
| 16255 | #undef $ac_func |
| 16256 | |
| 16257 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16258 | #ifdef __cplusplus |
| 16259 | extern "C" |
| 16260 | { |
| 16261 | #endif |
| 16262 | /* We use char because int might match the return type of a gcc2 |
| 16263 | builtin and then its argument prototype would still apply. */ |
| 16264 | char $ac_func (); |
| 16265 | /* The GNU C library defines this for functions which it implements |
| 16266 | to always fail with ENOSYS. Some functions are actually named |
| 16267 | something starting with __ and the normal name is an alias. */ |
| 16268 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16269 | choke me |
| 16270 | #else |
| 16271 | char (*f) () = $ac_func; |
| 16272 | #endif |
| 16273 | #ifdef __cplusplus |
| 16274 | } |
| 16275 | #endif |
| 16276 | |
| 16277 | int |
| 16278 | main () |
| 16279 | { |
| 16280 | return f != $ac_func; |
| 16281 | ; |
| 16282 | return 0; |
| 16283 | } |
| 16284 | _ACEOF |
| 16285 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16286 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16287 | (eval $ac_link) 2>conftest.er1 |
| 16288 | ac_status=$? |
| 16289 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16290 | rm -f conftest.er1 |
| 16291 | cat conftest.err >&5 |
| 16292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16293 | (exit $ac_status); } && |
| 16294 | { ac_try='test -z "$ac_c_werror_flag" |
| 16295 | || test ! -s conftest.err' |
| 16296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16297 | (eval $ac_try) 2>&5 |
| 16298 | ac_status=$? |
| 16299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16300 | (exit $ac_status); }; } && |
| 16301 | { ac_try='test -s conftest$ac_exeext' |
| 16302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16303 | (eval $ac_try) 2>&5 |
| 16304 | ac_status=$? |
| 16305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16306 | (exit $ac_status); }; }; then |
| 16307 | eval "$as_ac_var=yes" |
| 16308 | else |
| 16309 | echo "$as_me: failed program was:" >&5 |
| 16310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16311 | |
| 16312 | eval "$as_ac_var=no" |
| 16313 | fi |
| 16314 | rm -f conftest.err conftest.$ac_objext \ |
| 16315 | conftest$ac_exeext conftest.$ac_ext |
| 16316 | fi |
| 16317 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16318 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16319 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16320 | cat >>confdefs.h <<_ACEOF |
| 16321 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16322 | _ACEOF |
| 16323 | |
| 16324 | fi |
| 16325 | done |
| 16326 | |
| 16327 | |
| 16328 | # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it |
| 16329 | # uses stabs), but it is still SVR4. We cannot check for <elf.h> because |
| 16330 | # Irix 4.0.5F has the header but not the library. |
| 16331 | if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then |
| 16332 | ac_have_func=yes |
| 16333 | |
| 16334 | cat >>confdefs.h <<\_ACEOF |
| 16335 | #define SVR4 1 |
| 16336 | _ACEOF |
| 16337 | |
| 16338 | fi |
| 16339 | |
| 16340 | if test $ac_have_func = no; then |
| 16341 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then |
| 16342 | echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 |
| 16343 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 |
| 16344 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then |
| 16345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16346 | fi |
| 16347 | echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 |
| 16348 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 |
| 16349 | else |
| 16350 | # Is the header compilable? |
| 16351 | echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5 |
| 16352 | echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6 |
| 16353 | cat >conftest.$ac_ext <<_ACEOF |
| 16354 | /* confdefs.h. */ |
| 16355 | _ACEOF |
| 16356 | cat confdefs.h >>conftest.$ac_ext |
| 16357 | cat >>conftest.$ac_ext <<_ACEOF |
| 16358 | /* end confdefs.h. */ |
| 16359 | $ac_includes_default |
| 16360 | #include <inq_stats/cpustats.h> |
| 16361 | _ACEOF |
| 16362 | rm -f conftest.$ac_objext |
| 16363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16364 | (eval $ac_compile) 2>conftest.er1 |
| 16365 | ac_status=$? |
| 16366 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16367 | rm -f conftest.er1 |
| 16368 | cat conftest.err >&5 |
| 16369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16370 | (exit $ac_status); } && |
| 16371 | { ac_try='test -z "$ac_c_werror_flag" |
| 16372 | || test ! -s conftest.err' |
| 16373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16374 | (eval $ac_try) 2>&5 |
| 16375 | ac_status=$? |
| 16376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16377 | (exit $ac_status); }; } && |
| 16378 | { ac_try='test -s conftest.$ac_objext' |
| 16379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16380 | (eval $ac_try) 2>&5 |
| 16381 | ac_status=$? |
| 16382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16383 | (exit $ac_status); }; }; then |
| 16384 | ac_header_compiler=yes |
| 16385 | else |
| 16386 | echo "$as_me: failed program was:" >&5 |
| 16387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16388 | |
| 16389 | ac_header_compiler=no |
| 16390 | fi |
| 16391 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16392 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16393 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 16394 | |
| 16395 | # Is the header present? |
| 16396 | echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5 |
| 16397 | echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6 |
| 16398 | cat >conftest.$ac_ext <<_ACEOF |
| 16399 | /* confdefs.h. */ |
| 16400 | _ACEOF |
| 16401 | cat confdefs.h >>conftest.$ac_ext |
| 16402 | cat >>conftest.$ac_ext <<_ACEOF |
| 16403 | /* end confdefs.h. */ |
| 16404 | #include <inq_stats/cpustats.h> |
| 16405 | _ACEOF |
| 16406 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 16407 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 16408 | ac_status=$? |
| 16409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16410 | rm -f conftest.er1 |
| 16411 | cat conftest.err >&5 |
| 16412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16413 | (exit $ac_status); } >/dev/null; then |
| 16414 | if test -s conftest.err; then |
| 16415 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16416 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16417 | else |
| 16418 | ac_cpp_err= |
| 16419 | fi |
| 16420 | else |
| 16421 | ac_cpp_err=yes |
| 16422 | fi |
| 16423 | if test -z "$ac_cpp_err"; then |
| 16424 | ac_header_preproc=yes |
| 16425 | else |
| 16426 | echo "$as_me: failed program was:" >&5 |
| 16427 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16428 | |
| 16429 | ac_header_preproc=no |
| 16430 | fi |
| 16431 | rm -f conftest.err conftest.$ac_ext |
| 16432 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16433 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 16434 | |
| 16435 | # So? What about this header? |
| 16436 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16437 | yes:no: ) |
| 16438 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16439 | echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16440 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5 |
| 16441 | echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;} |
| 16442 | ac_header_preproc=yes |
| 16443 | ;; |
| 16444 | no:yes:* ) |
| 16445 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5 |
| 16446 | echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;} |
| 16447 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5 |
| 16448 | echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;} |
| 16449 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5 |
| 16450 | echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;} |
| 16451 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16452 | echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16453 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 |
| 16454 | echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;} |
| 16455 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5 |
| 16456 | echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;} |
| 16457 | ( |
| 16458 | cat <<\_ASBOX |
| 16459 | ## ------------------------------------------ ## |
| 16460 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 16461 | ## ------------------------------------------ ## |
| 16462 | _ASBOX |
| 16463 | ) | |
| 16464 | sed "s/^/$as_me: WARNING: /" >&2 |
| 16465 | ;; |
| 16466 | esac |
| 16467 | echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 |
| 16468 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 |
| 16469 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then |
| 16470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16471 | else |
| 16472 | ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc |
| 16473 | fi |
| 16474 | echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 |
| 16475 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 |
| 16476 | |
| 16477 | fi |
| 16478 | if test $ac_cv_header_inq_stats_cpustats_h = yes; then |
| 16479 | ac_have_func=yes |
| 16480 | |
| 16481 | cat >>confdefs.h <<\_ACEOF |
| 16482 | #define UMAX 1 |
| 16483 | _ACEOF |
| 16484 | |
| 16485 | |
| 16486 | cat >>confdefs.h <<\_ACEOF |
| 16487 | #define UMAX4_3 1 |
| 16488 | _ACEOF |
| 16489 | |
| 16490 | fi |
| 16491 | |
| 16492 | |
| 16493 | fi |
| 16494 | |
| 16495 | if test $ac_have_func = no; then |
| 16496 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then |
| 16497 | echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 |
| 16498 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 |
| 16499 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then |
| 16500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16501 | fi |
| 16502 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 |
| 16503 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 |
| 16504 | else |
| 16505 | # Is the header compilable? |
| 16506 | echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5 |
| 16507 | echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6 |
| 16508 | cat >conftest.$ac_ext <<_ACEOF |
| 16509 | /* confdefs.h. */ |
| 16510 | _ACEOF |
| 16511 | cat confdefs.h >>conftest.$ac_ext |
| 16512 | cat >>conftest.$ac_ext <<_ACEOF |
| 16513 | /* end confdefs.h. */ |
| 16514 | $ac_includes_default |
| 16515 | #include <sys/cpustats.h> |
| 16516 | _ACEOF |
| 16517 | rm -f conftest.$ac_objext |
| 16518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16519 | (eval $ac_compile) 2>conftest.er1 |
| 16520 | ac_status=$? |
| 16521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16522 | rm -f conftest.er1 |
| 16523 | cat conftest.err >&5 |
| 16524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16525 | (exit $ac_status); } && |
| 16526 | { ac_try='test -z "$ac_c_werror_flag" |
| 16527 | || test ! -s conftest.err' |
| 16528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16529 | (eval $ac_try) 2>&5 |
| 16530 | ac_status=$? |
| 16531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16532 | (exit $ac_status); }; } && |
| 16533 | { ac_try='test -s conftest.$ac_objext' |
| 16534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16535 | (eval $ac_try) 2>&5 |
| 16536 | ac_status=$? |
| 16537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16538 | (exit $ac_status); }; }; then |
| 16539 | ac_header_compiler=yes |
| 16540 | else |
| 16541 | echo "$as_me: failed program was:" >&5 |
| 16542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16543 | |
| 16544 | ac_header_compiler=no |
| 16545 | fi |
| 16546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16547 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16548 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 16549 | |
| 16550 | # Is the header present? |
| 16551 | echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5 |
| 16552 | echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6 |
| 16553 | cat >conftest.$ac_ext <<_ACEOF |
| 16554 | /* confdefs.h. */ |
| 16555 | _ACEOF |
| 16556 | cat confdefs.h >>conftest.$ac_ext |
| 16557 | cat >>conftest.$ac_ext <<_ACEOF |
| 16558 | /* end confdefs.h. */ |
| 16559 | #include <sys/cpustats.h> |
| 16560 | _ACEOF |
| 16561 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 16562 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 16563 | ac_status=$? |
| 16564 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16565 | rm -f conftest.er1 |
| 16566 | cat conftest.err >&5 |
| 16567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16568 | (exit $ac_status); } >/dev/null; then |
| 16569 | if test -s conftest.err; then |
| 16570 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16571 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16572 | else |
| 16573 | ac_cpp_err= |
| 16574 | fi |
| 16575 | else |
| 16576 | ac_cpp_err=yes |
| 16577 | fi |
| 16578 | if test -z "$ac_cpp_err"; then |
| 16579 | ac_header_preproc=yes |
| 16580 | else |
| 16581 | echo "$as_me: failed program was:" >&5 |
| 16582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16583 | |
| 16584 | ac_header_preproc=no |
| 16585 | fi |
| 16586 | rm -f conftest.err conftest.$ac_ext |
| 16587 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16588 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 16589 | |
| 16590 | # So? What about this header? |
| 16591 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16592 | yes:no: ) |
| 16593 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16594 | echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16595 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5 |
| 16596 | echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;} |
| 16597 | ac_header_preproc=yes |
| 16598 | ;; |
| 16599 | no:yes:* ) |
| 16600 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5 |
| 16601 | echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;} |
| 16602 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5 |
| 16603 | echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;} |
| 16604 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5 |
| 16605 | echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;} |
| 16606 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16607 | echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16608 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 |
| 16609 | echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;} |
| 16610 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5 |
| 16611 | echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;} |
| 16612 | ( |
| 16613 | cat <<\_ASBOX |
| 16614 | ## ------------------------------------------ ## |
| 16615 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 16616 | ## ------------------------------------------ ## |
| 16617 | _ASBOX |
| 16618 | ) | |
| 16619 | sed "s/^/$as_me: WARNING: /" >&2 |
| 16620 | ;; |
| 16621 | esac |
| 16622 | echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 |
| 16623 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 |
| 16624 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then |
| 16625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16626 | else |
| 16627 | ac_cv_header_sys_cpustats_h=$ac_header_preproc |
| 16628 | fi |
| 16629 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 |
| 16630 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 |
| 16631 | |
| 16632 | fi |
| 16633 | if test $ac_cv_header_sys_cpustats_h = yes; then |
| 16634 | ac_have_func=yes; cat >>confdefs.h <<\_ACEOF |
| 16635 | #define UMAX 1 |
| 16636 | _ACEOF |
| 16637 | |
| 16638 | fi |
| 16639 | |
| 16640 | |
| 16641 | fi |
| 16642 | |
| 16643 | if test $ac_have_func = no; then |
| 16644 | |
| 16645 | for ac_header in mach/mach.h |
| 16646 | do |
| 16647 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16648 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16649 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16650 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16651 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16653 | fi |
| 16654 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16655 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 16656 | else |
| 16657 | # Is the header compilable? |
| 16658 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16659 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 16660 | cat >conftest.$ac_ext <<_ACEOF |
| 16661 | /* confdefs.h. */ |
| 16662 | _ACEOF |
| 16663 | cat confdefs.h >>conftest.$ac_ext |
| 16664 | cat >>conftest.$ac_ext <<_ACEOF |
| 16665 | /* end confdefs.h. */ |
| 16666 | $ac_includes_default |
| 16667 | #include <$ac_header> |
| 16668 | _ACEOF |
| 16669 | rm -f conftest.$ac_objext |
| 16670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16671 | (eval $ac_compile) 2>conftest.er1 |
| 16672 | ac_status=$? |
| 16673 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16674 | rm -f conftest.er1 |
| 16675 | cat conftest.err >&5 |
| 16676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16677 | (exit $ac_status); } && |
| 16678 | { ac_try='test -z "$ac_c_werror_flag" |
| 16679 | || test ! -s conftest.err' |
| 16680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16681 | (eval $ac_try) 2>&5 |
| 16682 | ac_status=$? |
| 16683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16684 | (exit $ac_status); }; } && |
| 16685 | { ac_try='test -s conftest.$ac_objext' |
| 16686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16687 | (eval $ac_try) 2>&5 |
| 16688 | ac_status=$? |
| 16689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16690 | (exit $ac_status); }; }; then |
| 16691 | ac_header_compiler=yes |
| 16692 | else |
| 16693 | echo "$as_me: failed program was:" >&5 |
| 16694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16695 | |
| 16696 | ac_header_compiler=no |
| 16697 | fi |
| 16698 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16699 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16700 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 16701 | |
| 16702 | # Is the header present? |
| 16703 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16704 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 16705 | cat >conftest.$ac_ext <<_ACEOF |
| 16706 | /* confdefs.h. */ |
| 16707 | _ACEOF |
| 16708 | cat confdefs.h >>conftest.$ac_ext |
| 16709 | cat >>conftest.$ac_ext <<_ACEOF |
| 16710 | /* end confdefs.h. */ |
| 16711 | #include <$ac_header> |
| 16712 | _ACEOF |
| 16713 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 16714 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 16715 | ac_status=$? |
| 16716 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16717 | rm -f conftest.er1 |
| 16718 | cat conftest.err >&5 |
| 16719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16720 | (exit $ac_status); } >/dev/null; then |
| 16721 | if test -s conftest.err; then |
| 16722 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16723 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16724 | else |
| 16725 | ac_cpp_err= |
| 16726 | fi |
| 16727 | else |
| 16728 | ac_cpp_err=yes |
| 16729 | fi |
| 16730 | if test -z "$ac_cpp_err"; then |
| 16731 | ac_header_preproc=yes |
| 16732 | else |
| 16733 | echo "$as_me: failed program was:" >&5 |
| 16734 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16735 | |
| 16736 | ac_header_preproc=no |
| 16737 | fi |
| 16738 | rm -f conftest.err conftest.$ac_ext |
| 16739 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16740 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 16741 | |
| 16742 | # So? What about this header? |
| 16743 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16744 | yes:no: ) |
| 16745 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16746 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16747 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16748 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16749 | ac_header_preproc=yes |
| 16750 | ;; |
| 16751 | no:yes:* ) |
| 16752 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16753 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16754 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16755 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16756 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16757 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16758 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16759 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16760 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16761 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16762 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16763 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16764 | ( |
| 16765 | cat <<\_ASBOX |
| 16766 | ## ------------------------------------------ ## |
| 16767 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 16768 | ## ------------------------------------------ ## |
| 16769 | _ASBOX |
| 16770 | ) | |
| 16771 | sed "s/^/$as_me: WARNING: /" >&2 |
| 16772 | ;; |
| 16773 | esac |
| 16774 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16775 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16776 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16778 | else |
| 16779 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16780 | fi |
| 16781 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16782 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 16783 | |
| 16784 | fi |
| 16785 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16786 | cat >>confdefs.h <<_ACEOF |
| 16787 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16788 | _ACEOF |
| 16789 | |
| 16790 | fi |
| 16791 | |
| 16792 | done |
| 16793 | |
| 16794 | fi |
| 16795 | |
| 16796 | |
| 16797 | for ac_header in nlist.h |
| 16798 | do |
| 16799 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16800 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16801 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16802 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16803 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16805 | fi |
| 16806 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16807 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 16808 | else |
| 16809 | # Is the header compilable? |
| 16810 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16811 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 16812 | cat >conftest.$ac_ext <<_ACEOF |
| 16813 | /* confdefs.h. */ |
| 16814 | _ACEOF |
| 16815 | cat confdefs.h >>conftest.$ac_ext |
| 16816 | cat >>conftest.$ac_ext <<_ACEOF |
| 16817 | /* end confdefs.h. */ |
| 16818 | $ac_includes_default |
| 16819 | #include <$ac_header> |
| 16820 | _ACEOF |
| 16821 | rm -f conftest.$ac_objext |
| 16822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16823 | (eval $ac_compile) 2>conftest.er1 |
| 16824 | ac_status=$? |
| 16825 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16826 | rm -f conftest.er1 |
| 16827 | cat conftest.err >&5 |
| 16828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16829 | (exit $ac_status); } && |
| 16830 | { ac_try='test -z "$ac_c_werror_flag" |
| 16831 | || test ! -s conftest.err' |
| 16832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16833 | (eval $ac_try) 2>&5 |
| 16834 | ac_status=$? |
| 16835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16836 | (exit $ac_status); }; } && |
| 16837 | { ac_try='test -s conftest.$ac_objext' |
| 16838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16839 | (eval $ac_try) 2>&5 |
| 16840 | ac_status=$? |
| 16841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16842 | (exit $ac_status); }; }; then |
| 16843 | ac_header_compiler=yes |
| 16844 | else |
| 16845 | echo "$as_me: failed program was:" >&5 |
| 16846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16847 | |
| 16848 | ac_header_compiler=no |
| 16849 | fi |
| 16850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16851 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16852 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 16853 | |
| 16854 | # Is the header present? |
| 16855 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16856 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 16857 | cat >conftest.$ac_ext <<_ACEOF |
| 16858 | /* confdefs.h. */ |
| 16859 | _ACEOF |
| 16860 | cat confdefs.h >>conftest.$ac_ext |
| 16861 | cat >>conftest.$ac_ext <<_ACEOF |
| 16862 | /* end confdefs.h. */ |
| 16863 | #include <$ac_header> |
| 16864 | _ACEOF |
| 16865 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 16866 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 16867 | ac_status=$? |
| 16868 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16869 | rm -f conftest.er1 |
| 16870 | cat conftest.err >&5 |
| 16871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16872 | (exit $ac_status); } >/dev/null; then |
| 16873 | if test -s conftest.err; then |
| 16874 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16875 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16876 | else |
| 16877 | ac_cpp_err= |
| 16878 | fi |
| 16879 | else |
| 16880 | ac_cpp_err=yes |
| 16881 | fi |
| 16882 | if test -z "$ac_cpp_err"; then |
| 16883 | ac_header_preproc=yes |
| 16884 | else |
| 16885 | echo "$as_me: failed program was:" >&5 |
| 16886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16887 | |
| 16888 | ac_header_preproc=no |
| 16889 | fi |
| 16890 | rm -f conftest.err conftest.$ac_ext |
| 16891 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16892 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 16893 | |
| 16894 | # So? What about this header? |
| 16895 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16896 | yes:no: ) |
| 16897 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16898 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16899 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16900 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16901 | ac_header_preproc=yes |
| 16902 | ;; |
| 16903 | no:yes:* ) |
| 16904 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16905 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16906 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16907 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16908 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16909 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16910 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16911 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16912 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16913 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16914 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16915 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16916 | ( |
| 16917 | cat <<\_ASBOX |
| 16918 | ## ------------------------------------------ ## |
| 16919 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 16920 | ## ------------------------------------------ ## |
| 16921 | _ASBOX |
| 16922 | ) | |
| 16923 | sed "s/^/$as_me: WARNING: /" >&2 |
| 16924 | ;; |
| 16925 | esac |
| 16926 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16927 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16928 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16930 | else |
| 16931 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16932 | fi |
| 16933 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16934 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 16935 | |
| 16936 | fi |
| 16937 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16938 | cat >>confdefs.h <<_ACEOF |
| 16939 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16940 | _ACEOF |
| 16941 | echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5 |
| 16942 | echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6 |
| 16943 | if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then |
| 16944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16945 | else |
| 16946 | cat >conftest.$ac_ext <<_ACEOF |
| 16947 | /* confdefs.h. */ |
| 16948 | _ACEOF |
| 16949 | cat confdefs.h >>conftest.$ac_ext |
| 16950 | cat >>conftest.$ac_ext <<_ACEOF |
| 16951 | /* end confdefs.h. */ |
| 16952 | #include <nlist.h> |
| 16953 | |
| 16954 | int |
| 16955 | main () |
| 16956 | { |
| 16957 | static struct nlist ac_aggr; |
| 16958 | if (ac_aggr.n_un.n_name) |
| 16959 | return 0; |
| 16960 | ; |
| 16961 | return 0; |
| 16962 | } |
| 16963 | _ACEOF |
| 16964 | rm -f conftest.$ac_objext |
| 16965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16966 | (eval $ac_compile) 2>conftest.er1 |
| 16967 | ac_status=$? |
| 16968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16969 | rm -f conftest.er1 |
| 16970 | cat conftest.err >&5 |
| 16971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16972 | (exit $ac_status); } && |
| 16973 | { ac_try='test -z "$ac_c_werror_flag" |
| 16974 | || test ! -s conftest.err' |
| 16975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16976 | (eval $ac_try) 2>&5 |
| 16977 | ac_status=$? |
| 16978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16979 | (exit $ac_status); }; } && |
| 16980 | { ac_try='test -s conftest.$ac_objext' |
| 16981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16982 | (eval $ac_try) 2>&5 |
| 16983 | ac_status=$? |
| 16984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16985 | (exit $ac_status); }; }; then |
| 16986 | ac_cv_member_struct_nlist_n_un_n_name=yes |
| 16987 | else |
| 16988 | echo "$as_me: failed program was:" >&5 |
| 16989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16990 | |
| 16991 | cat >conftest.$ac_ext <<_ACEOF |
| 16992 | /* confdefs.h. */ |
| 16993 | _ACEOF |
| 16994 | cat confdefs.h >>conftest.$ac_ext |
| 16995 | cat >>conftest.$ac_ext <<_ACEOF |
| 16996 | /* end confdefs.h. */ |
| 16997 | #include <nlist.h> |
| 16998 | |
| 16999 | int |
| 17000 | main () |
| 17001 | { |
| 17002 | static struct nlist ac_aggr; |
| 17003 | if (sizeof ac_aggr.n_un.n_name) |
| 17004 | return 0; |
| 17005 | ; |
| 17006 | return 0; |
| 17007 | } |
| 17008 | _ACEOF |
| 17009 | rm -f conftest.$ac_objext |
| 17010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17011 | (eval $ac_compile) 2>conftest.er1 |
| 17012 | ac_status=$? |
| 17013 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17014 | rm -f conftest.er1 |
| 17015 | cat conftest.err >&5 |
| 17016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17017 | (exit $ac_status); } && |
| 17018 | { ac_try='test -z "$ac_c_werror_flag" |
| 17019 | || test ! -s conftest.err' |
| 17020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17021 | (eval $ac_try) 2>&5 |
| 17022 | ac_status=$? |
| 17023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17024 | (exit $ac_status); }; } && |
| 17025 | { ac_try='test -s conftest.$ac_objext' |
| 17026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17027 | (eval $ac_try) 2>&5 |
| 17028 | ac_status=$? |
| 17029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17030 | (exit $ac_status); }; }; then |
| 17031 | ac_cv_member_struct_nlist_n_un_n_name=yes |
| 17032 | else |
| 17033 | echo "$as_me: failed program was:" >&5 |
| 17034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17035 | |
| 17036 | ac_cv_member_struct_nlist_n_un_n_name=no |
| 17037 | fi |
| 17038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17039 | fi |
| 17040 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17041 | fi |
| 17042 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 |
| 17043 | echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6 |
| 17044 | if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then |
| 17045 | |
| 17046 | cat >>confdefs.h <<_ACEOF |
| 17047 | #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 |
| 17048 | _ACEOF |
| 17049 | |
| 17050 | |
| 17051 | cat >>confdefs.h <<\_ACEOF |
| 17052 | #define NLIST_NAME_UNION 1 |
| 17053 | _ACEOF |
| 17054 | |
| 17055 | fi |
| 17056 | |
| 17057 | |
| 17058 | fi |
| 17059 | |
| 17060 | done |
| 17061 | |
| 17062 | fi |
| 17063 | done |
| 17064 | |
| 17065 | |
| 17066 | # Some definitions of getloadavg require that the program be installed setgid. |
| 17067 | echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5 |
| 17068 | echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6 |
| 17069 | if test "${ac_cv_func_getloadavg_setgid+set}" = set; then |
| 17070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17071 | else |
| 17072 | cat >conftest.$ac_ext <<_ACEOF |
| 17073 | /* confdefs.h. */ |
| 17074 | _ACEOF |
| 17075 | cat confdefs.h >>conftest.$ac_ext |
| 17076 | cat >>conftest.$ac_ext <<_ACEOF |
| 17077 | /* end confdefs.h. */ |
| 17078 | #include "$srcdir/$ac_config_libobj_dir/getloadavg.c" |
| 17079 | #ifdef LDAV_PRIVILEGED |
| 17080 | Yowza Am I SETGID yet |
| 17081 | #endif |
| 17082 | _ACEOF |
| 17083 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 17084 | $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then |
| 17085 | ac_cv_func_getloadavg_setgid=yes |
| 17086 | else |
| 17087 | ac_cv_func_getloadavg_setgid=no |
| 17088 | fi |
| 17089 | rm -f conftest* |
| 17090 | |
| 17091 | fi |
| 17092 | echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5 |
| 17093 | echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6 |
| 17094 | if test $ac_cv_func_getloadavg_setgid = yes; then |
| 17095 | NEED_SETGID=true |
| 17096 | |
| 17097 | cat >>confdefs.h <<\_ACEOF |
| 17098 | #define GETLOADAVG_PRIVILEGED 1 |
| 17099 | _ACEOF |
| 17100 | |
| 17101 | else |
| 17102 | NEED_SETGID=false |
| 17103 | fi |
| 17104 | |
| 17105 | if test $ac_cv_func_getloadavg_setgid = yes; then |
| 17106 | echo "$as_me:$LINENO: checking group of /dev/kmem" >&5 |
| 17107 | echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6 |
| 17108 | if test "${ac_cv_group_kmem+set}" = set; then |
| 17109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17110 | else |
| 17111 | # On Solaris, /dev/kmem is a symlink. Get info on the real file. |
| 17112 | ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` |
| 17113 | # If we got an error (system does not support symlinks), try without -L. |
| 17114 | test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` |
| 17115 | ac_cv_group_kmem=`echo $ac_ls_output \ |
| 17116 | | sed -ne 's/[ ][ ]*/ /g; |
| 17117 | s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; |
| 17118 | / /s/.* //;p;'` |
| 17119 | |
| 17120 | fi |
| 17121 | echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5 |
| 17122 | echo "${ECHO_T}$ac_cv_group_kmem" >&6 |
| 17123 | KMEM_GROUP=$ac_cv_group_kmem |
| 17124 | fi |
| 17125 | if test "x$ac_save_LIBS" = x; then |
| 17126 | GETLOADAVG_LIBS=$LIBS |
| 17127 | else |
| 17128 | GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` |
| 17129 | fi |
| 17130 | LIBS=$ac_save_LIBS |
| 17131 | |
| 17132 | |
| 17133 | |
| 17134 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
| 17135 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
| 17136 | if test "${ac_cv_sys_largefile_source+set}" = set; then |
| 17137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17138 | else |
| 17139 | while :; do |
| 17140 | ac_cv_sys_largefile_source=no |
| 17141 | cat >conftest.$ac_ext <<_ACEOF |
| 17142 | /* confdefs.h. */ |
| 17143 | _ACEOF |
| 17144 | cat confdefs.h >>conftest.$ac_ext |
| 17145 | cat >>conftest.$ac_ext <<_ACEOF |
| 17146 | /* end confdefs.h. */ |
| 17147 | #include <stdio.h> |
| 17148 | int |
| 17149 | main () |
| 17150 | { |
| 17151 | return !fseeko; |
| 17152 | ; |
| 17153 | return 0; |
| 17154 | } |
| 17155 | _ACEOF |
| 17156 | rm -f conftest.$ac_objext |
| 17157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17158 | (eval $ac_compile) 2>conftest.er1 |
| 17159 | ac_status=$? |
| 17160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17161 | rm -f conftest.er1 |
| 17162 | cat conftest.err >&5 |
| 17163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17164 | (exit $ac_status); } && |
| 17165 | { ac_try='test -z "$ac_c_werror_flag" |
| 17166 | || test ! -s conftest.err' |
| 17167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17168 | (eval $ac_try) 2>&5 |
| 17169 | ac_status=$? |
| 17170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17171 | (exit $ac_status); }; } && |
| 17172 | { ac_try='test -s conftest.$ac_objext' |
| 17173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17174 | (eval $ac_try) 2>&5 |
| 17175 | ac_status=$? |
| 17176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17177 | (exit $ac_status); }; }; then |
| 17178 | break |
| 17179 | else |
| 17180 | echo "$as_me: failed program was:" >&5 |
| 17181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17182 | |
| 17183 | fi |
| 17184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17185 | cat >conftest.$ac_ext <<_ACEOF |
| 17186 | /* confdefs.h. */ |
| 17187 | _ACEOF |
| 17188 | cat confdefs.h >>conftest.$ac_ext |
| 17189 | cat >>conftest.$ac_ext <<_ACEOF |
| 17190 | /* end confdefs.h. */ |
| 17191 | #define _LARGEFILE_SOURCE 1 |
| 17192 | #include <stdio.h> |
| 17193 | int |
| 17194 | main () |
| 17195 | { |
| 17196 | return !fseeko; |
| 17197 | ; |
| 17198 | return 0; |
| 17199 | } |
| 17200 | _ACEOF |
| 17201 | rm -f conftest.$ac_objext |
| 17202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17203 | (eval $ac_compile) 2>conftest.er1 |
| 17204 | ac_status=$? |
| 17205 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17206 | rm -f conftest.er1 |
| 17207 | cat conftest.err >&5 |
| 17208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17209 | (exit $ac_status); } && |
| 17210 | { ac_try='test -z "$ac_c_werror_flag" |
| 17211 | || test ! -s conftest.err' |
| 17212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17213 | (eval $ac_try) 2>&5 |
| 17214 | ac_status=$? |
| 17215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17216 | (exit $ac_status); }; } && |
| 17217 | { ac_try='test -s conftest.$ac_objext' |
| 17218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17219 | (eval $ac_try) 2>&5 |
| 17220 | ac_status=$? |
| 17221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17222 | (exit $ac_status); }; }; then |
| 17223 | ac_cv_sys_largefile_source=1; break |
| 17224 | else |
| 17225 | echo "$as_me: failed program was:" >&5 |
| 17226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17227 | |
| 17228 | fi |
| 17229 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17230 | break |
| 17231 | done |
| 17232 | fi |
| 17233 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 |
| 17234 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 |
| 17235 | if test "$ac_cv_sys_largefile_source" != no; then |
| 17236 | |
| 17237 | cat >>confdefs.h <<_ACEOF |
| 17238 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
| 17239 | _ACEOF |
| 17240 | |
| 17241 | fi |
| 17242 | rm -f conftest* |
| 17243 | |
| 17244 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
| 17245 | # in glibc 2.1.3, but that breaks too many other things. |
| 17246 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. |
| 17247 | echo "$as_me:$LINENO: checking for fseeko" >&5 |
| 17248 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 |
| 17249 | if test "${ac_cv_func_fseeko+set}" = set; then |
| 17250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17251 | else |
| 17252 | cat >conftest.$ac_ext <<_ACEOF |
| 17253 | /* confdefs.h. */ |
| 17254 | _ACEOF |
| 17255 | cat confdefs.h >>conftest.$ac_ext |
| 17256 | cat >>conftest.$ac_ext <<_ACEOF |
| 17257 | /* end confdefs.h. */ |
| 17258 | #include <stdio.h> |
| 17259 | int |
| 17260 | main () |
| 17261 | { |
| 17262 | return fseeko && fseeko (stdin, 0, 0); |
| 17263 | ; |
| 17264 | return 0; |
| 17265 | } |
| 17266 | _ACEOF |
| 17267 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17269 | (eval $ac_link) 2>conftest.er1 |
| 17270 | ac_status=$? |
| 17271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17272 | rm -f conftest.er1 |
| 17273 | cat conftest.err >&5 |
| 17274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17275 | (exit $ac_status); } && |
| 17276 | { ac_try='test -z "$ac_c_werror_flag" |
| 17277 | || test ! -s conftest.err' |
| 17278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17279 | (eval $ac_try) 2>&5 |
| 17280 | ac_status=$? |
| 17281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17282 | (exit $ac_status); }; } && |
| 17283 | { ac_try='test -s conftest$ac_exeext' |
| 17284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17285 | (eval $ac_try) 2>&5 |
| 17286 | ac_status=$? |
| 17287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17288 | (exit $ac_status); }; }; then |
| 17289 | ac_cv_func_fseeko=yes |
| 17290 | else |
| 17291 | echo "$as_me: failed program was:" >&5 |
| 17292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17293 | |
| 17294 | ac_cv_func_fseeko=no |
| 17295 | fi |
| 17296 | rm -f conftest.err conftest.$ac_objext \ |
| 17297 | conftest$ac_exeext conftest.$ac_ext |
| 17298 | fi |
| 17299 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 |
| 17300 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 |
| 17301 | if test $ac_cv_func_fseeko = yes; then |
| 17302 | |
| 17303 | cat >>confdefs.h <<\_ACEOF |
| 17304 | #define HAVE_FSEEKO 1 |
| 17305 | _ACEOF |
| 17306 | |
| 17307 | fi |
| 17308 | |
| 17309 | |
| 17310 | # Configure getopt. |
| 17311 | # getopt.m4 serial 10 |
| 17312 | |
| 17313 | # The getopt module assume you want GNU getopt, with getopt_long etc, |
| 17314 | # rather than vanilla POSIX getopt. This means your your code should |
| 17315 | # always include <getopt.h> for the getopt prototypes. |
| 17316 | |
| 17317 | |
| 17318 | |
| 17319 | |
| 17320 | |
| 17321 | |
| 17322 | |
| 17323 | |
| 17324 | |
| 17325 | |
| 17326 | |
| 17327 | # Prerequisites of lib/getopt*. |
| 17328 | |
| 17329 | |
| 17330 | |
| 17331 | |
| 17332 | GETOPT_H= |
| 17333 | |
| 17334 | for ac_header in getopt.h |
| 17335 | do |
| 17336 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 17337 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 17338 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17339 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 17340 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 17341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17342 | fi |
| 17343 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 17344 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 17345 | else |
| 17346 | # Is the header compilable? |
| 17347 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 17348 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 17349 | cat >conftest.$ac_ext <<_ACEOF |
| 17350 | /* confdefs.h. */ |
| 17351 | _ACEOF |
| 17352 | cat confdefs.h >>conftest.$ac_ext |
| 17353 | cat >>conftest.$ac_ext <<_ACEOF |
| 17354 | /* end confdefs.h. */ |
| 17355 | $ac_includes_default |
| 17356 | #include <$ac_header> |
| 17357 | _ACEOF |
| 17358 | rm -f conftest.$ac_objext |
| 17359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17360 | (eval $ac_compile) 2>conftest.er1 |
| 17361 | ac_status=$? |
| 17362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17363 | rm -f conftest.er1 |
| 17364 | cat conftest.err >&5 |
| 17365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17366 | (exit $ac_status); } && |
| 17367 | { ac_try='test -z "$ac_c_werror_flag" |
| 17368 | || test ! -s conftest.err' |
| 17369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17370 | (eval $ac_try) 2>&5 |
| 17371 | ac_status=$? |
| 17372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17373 | (exit $ac_status); }; } && |
| 17374 | { ac_try='test -s conftest.$ac_objext' |
| 17375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17376 | (eval $ac_try) 2>&5 |
| 17377 | ac_status=$? |
| 17378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17379 | (exit $ac_status); }; }; then |
| 17380 | ac_header_compiler=yes |
| 17381 | else |
| 17382 | echo "$as_me: failed program was:" >&5 |
| 17383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17384 | |
| 17385 | ac_header_compiler=no |
| 17386 | fi |
| 17387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17388 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17389 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 17390 | |
| 17391 | # Is the header present? |
| 17392 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 17393 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 17394 | cat >conftest.$ac_ext <<_ACEOF |
| 17395 | /* confdefs.h. */ |
| 17396 | _ACEOF |
| 17397 | cat confdefs.h >>conftest.$ac_ext |
| 17398 | cat >>conftest.$ac_ext <<_ACEOF |
| 17399 | /* end confdefs.h. */ |
| 17400 | #include <$ac_header> |
| 17401 | _ACEOF |
| 17402 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 17403 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 17404 | ac_status=$? |
| 17405 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17406 | rm -f conftest.er1 |
| 17407 | cat conftest.err >&5 |
| 17408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17409 | (exit $ac_status); } >/dev/null; then |
| 17410 | if test -s conftest.err; then |
| 17411 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 17412 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 17413 | else |
| 17414 | ac_cpp_err= |
| 17415 | fi |
| 17416 | else |
| 17417 | ac_cpp_err=yes |
| 17418 | fi |
| 17419 | if test -z "$ac_cpp_err"; then |
| 17420 | ac_header_preproc=yes |
| 17421 | else |
| 17422 | echo "$as_me: failed program was:" >&5 |
| 17423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17424 | |
| 17425 | ac_header_preproc=no |
| 17426 | fi |
| 17427 | rm -f conftest.err conftest.$ac_ext |
| 17428 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17429 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 17430 | |
| 17431 | # So? What about this header? |
| 17432 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17433 | yes:no: ) |
| 17434 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17435 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17436 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 17437 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 17438 | ac_header_preproc=yes |
| 17439 | ;; |
| 17440 | no:yes:* ) |
| 17441 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 17442 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 17443 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 17444 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 17445 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 17446 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 17447 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 17448 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17449 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 17450 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 17451 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 17452 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 17453 | ( |
| 17454 | cat <<\_ASBOX |
| 17455 | ## ------------------------------------------ ## |
| 17456 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 17457 | ## ------------------------------------------ ## |
| 17458 | _ASBOX |
| 17459 | ) | |
| 17460 | sed "s/^/$as_me: WARNING: /" >&2 |
| 17461 | ;; |
| 17462 | esac |
| 17463 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17464 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 17465 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 17466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17467 | else |
| 17468 | eval "$as_ac_Header=\$ac_header_preproc" |
| 17469 | fi |
| 17470 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 17471 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 17472 | |
| 17473 | fi |
| 17474 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 17475 | cat >>confdefs.h <<_ACEOF |
| 17476 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 17477 | _ACEOF |
| 17478 | |
| 17479 | else |
| 17480 | GETOPT_H=getopt.h |
| 17481 | fi |
| 17482 | |
| 17483 | done |
| 17484 | |
| 17485 | if test -z "$GETOPT_H"; then |
| 17486 | |
| 17487 | for ac_func in getopt_long_only |
| 17488 | do |
| 17489 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17490 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17491 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17492 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17494 | else |
| 17495 | cat >conftest.$ac_ext <<_ACEOF |
| 17496 | /* confdefs.h. */ |
| 17497 | _ACEOF |
| 17498 | cat confdefs.h >>conftest.$ac_ext |
| 17499 | cat >>conftest.$ac_ext <<_ACEOF |
| 17500 | /* end confdefs.h. */ |
| 17501 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17502 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17503 | #define $ac_func innocuous_$ac_func |
| 17504 | |
| 17505 | /* System header to define __stub macros and hopefully few prototypes, |
| 17506 | which can conflict with char $ac_func (); below. |
| 17507 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17508 | <limits.h> exists even on freestanding compilers. */ |
| 17509 | |
| 17510 | #ifdef __STDC__ |
| 17511 | # include <limits.h> |
| 17512 | #else |
| 17513 | # include <assert.h> |
| 17514 | #endif |
| 17515 | |
| 17516 | #undef $ac_func |
| 17517 | |
| 17518 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17519 | #ifdef __cplusplus |
| 17520 | extern "C" |
| 17521 | { |
| 17522 | #endif |
| 17523 | /* We use char because int might match the return type of a gcc2 |
| 17524 | builtin and then its argument prototype would still apply. */ |
| 17525 | char $ac_func (); |
| 17526 | /* The GNU C library defines this for functions which it implements |
| 17527 | to always fail with ENOSYS. Some functions are actually named |
| 17528 | something starting with __ and the normal name is an alias. */ |
| 17529 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 17530 | choke me |
| 17531 | #else |
| 17532 | char (*f) () = $ac_func; |
| 17533 | #endif |
| 17534 | #ifdef __cplusplus |
| 17535 | } |
| 17536 | #endif |
| 17537 | |
| 17538 | int |
| 17539 | main () |
| 17540 | { |
| 17541 | return f != $ac_func; |
| 17542 | ; |
| 17543 | return 0; |
| 17544 | } |
| 17545 | _ACEOF |
| 17546 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17548 | (eval $ac_link) 2>conftest.er1 |
| 17549 | ac_status=$? |
| 17550 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17551 | rm -f conftest.er1 |
| 17552 | cat conftest.err >&5 |
| 17553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17554 | (exit $ac_status); } && |
| 17555 | { ac_try='test -z "$ac_c_werror_flag" |
| 17556 | || test ! -s conftest.err' |
| 17557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17558 | (eval $ac_try) 2>&5 |
| 17559 | ac_status=$? |
| 17560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17561 | (exit $ac_status); }; } && |
| 17562 | { ac_try='test -s conftest$ac_exeext' |
| 17563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17564 | (eval $ac_try) 2>&5 |
| 17565 | ac_status=$? |
| 17566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17567 | (exit $ac_status); }; }; then |
| 17568 | eval "$as_ac_var=yes" |
| 17569 | else |
| 17570 | echo "$as_me: failed program was:" >&5 |
| 17571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17572 | |
| 17573 | eval "$as_ac_var=no" |
| 17574 | fi |
| 17575 | rm -f conftest.err conftest.$ac_objext \ |
| 17576 | conftest$ac_exeext conftest.$ac_ext |
| 17577 | fi |
| 17578 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17579 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17580 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17581 | cat >>confdefs.h <<_ACEOF |
| 17582 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17583 | _ACEOF |
| 17584 | |
| 17585 | else |
| 17586 | GETOPT_H=getopt.h |
| 17587 | fi |
| 17588 | done |
| 17589 | |
| 17590 | fi |
| 17591 | |
| 17592 | if test -z "$GETOPT_H"; then |
| 17593 | echo "$as_me:$LINENO: checking whether optreset is declared" >&5 |
| 17594 | echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6 |
| 17595 | if test "${ac_cv_have_decl_optreset+set}" = set; then |
| 17596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17597 | else |
| 17598 | cat >conftest.$ac_ext <<_ACEOF |
| 17599 | /* confdefs.h. */ |
| 17600 | _ACEOF |
| 17601 | cat confdefs.h >>conftest.$ac_ext |
| 17602 | cat >>conftest.$ac_ext <<_ACEOF |
| 17603 | /* end confdefs.h. */ |
| 17604 | #include <getopt.h> |
| 17605 | |
| 17606 | int |
| 17607 | main () |
| 17608 | { |
| 17609 | #ifndef optreset |
| 17610 | char *p = (char *) optreset; |
| 17611 | #endif |
| 17612 | |
| 17613 | ; |
| 17614 | return 0; |
| 17615 | } |
| 17616 | _ACEOF |
| 17617 | rm -f conftest.$ac_objext |
| 17618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17619 | (eval $ac_compile) 2>conftest.er1 |
| 17620 | ac_status=$? |
| 17621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17622 | rm -f conftest.er1 |
| 17623 | cat conftest.err >&5 |
| 17624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17625 | (exit $ac_status); } && |
| 17626 | { ac_try='test -z "$ac_c_werror_flag" |
| 17627 | || test ! -s conftest.err' |
| 17628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17629 | (eval $ac_try) 2>&5 |
| 17630 | ac_status=$? |
| 17631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17632 | (exit $ac_status); }; } && |
| 17633 | { ac_try='test -s conftest.$ac_objext' |
| 17634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17635 | (eval $ac_try) 2>&5 |
| 17636 | ac_status=$? |
| 17637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17638 | (exit $ac_status); }; }; then |
| 17639 | ac_cv_have_decl_optreset=yes |
| 17640 | else |
| 17641 | echo "$as_me: failed program was:" >&5 |
| 17642 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17643 | |
| 17644 | ac_cv_have_decl_optreset=no |
| 17645 | fi |
| 17646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17647 | fi |
| 17648 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5 |
| 17649 | echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6 |
| 17650 | if test $ac_cv_have_decl_optreset = yes; then |
| 17651 | GETOPT_H=getopt.h |
| 17652 | fi |
| 17653 | |
| 17654 | fi |
| 17655 | |
| 17656 | if test -z "$GETOPT_H"; then |
| 17657 | echo "$as_me:$LINENO: checking for working GNU getopt function" >&5 |
| 17658 | echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6 |
| 17659 | if test "${gl_cv_func_gnu_getopt+set}" = set; then |
| 17660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17661 | else |
| 17662 | if test "$cross_compiling" = yes; then |
| 17663 | echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5 |
| 17664 | echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6 |
| 17665 | if test "${ac_cv_have_decl_getopt_clip+set}" = set; then |
| 17666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17667 | else |
| 17668 | cat >conftest.$ac_ext <<_ACEOF |
| 17669 | /* confdefs.h. */ |
| 17670 | _ACEOF |
| 17671 | cat confdefs.h >>conftest.$ac_ext |
| 17672 | cat >>conftest.$ac_ext <<_ACEOF |
| 17673 | /* end confdefs.h. */ |
| 17674 | #include <getopt.h> |
| 17675 | |
| 17676 | int |
| 17677 | main () |
| 17678 | { |
| 17679 | #ifndef getopt_clip |
| 17680 | char *p = (char *) getopt_clip; |
| 17681 | #endif |
| 17682 | |
| 17683 | ; |
| 17684 | return 0; |
| 17685 | } |
| 17686 | _ACEOF |
| 17687 | rm -f conftest.$ac_objext |
| 17688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17689 | (eval $ac_compile) 2>conftest.er1 |
| 17690 | ac_status=$? |
| 17691 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17692 | rm -f conftest.er1 |
| 17693 | cat conftest.err >&5 |
| 17694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17695 | (exit $ac_status); } && |
| 17696 | { ac_try='test -z "$ac_c_werror_flag" |
| 17697 | || test ! -s conftest.err' |
| 17698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17699 | (eval $ac_try) 2>&5 |
| 17700 | ac_status=$? |
| 17701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17702 | (exit $ac_status); }; } && |
| 17703 | { ac_try='test -s conftest.$ac_objext' |
| 17704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17705 | (eval $ac_try) 2>&5 |
| 17706 | ac_status=$? |
| 17707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17708 | (exit $ac_status); }; }; then |
| 17709 | ac_cv_have_decl_getopt_clip=yes |
| 17710 | else |
| 17711 | echo "$as_me: failed program was:" >&5 |
| 17712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17713 | |
| 17714 | ac_cv_have_decl_getopt_clip=no |
| 17715 | fi |
| 17716 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17717 | fi |
| 17718 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5 |
| 17719 | echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6 |
| 17720 | if test $ac_cv_have_decl_getopt_clip = yes; then |
| 17721 | gl_cv_func_gnu_getopt=no |
| 17722 | else |
| 17723 | gl_cv_func_gnu_getopt=yes |
| 17724 | fi |
| 17725 | |
| 17726 | else |
| 17727 | cat >conftest.$ac_ext <<_ACEOF |
| 17728 | /* confdefs.h. */ |
| 17729 | _ACEOF |
| 17730 | cat confdefs.h >>conftest.$ac_ext |
| 17731 | cat >>conftest.$ac_ext <<_ACEOF |
| 17732 | /* end confdefs.h. */ |
| 17733 | #include <getopt.h> |
| 17734 | int |
| 17735 | main () |
| 17736 | { |
| 17737 | |
| 17738 | char *myargv[3]; |
| 17739 | myargv[0] = "conftest"; |
| 17740 | myargv[1] = "-+"; |
| 17741 | myargv[2] = 0; |
| 17742 | return getopt (2, myargv, "+a") != '?'; |
| 17743 | |
| 17744 | ; |
| 17745 | return 0; |
| 17746 | } |
| 17747 | _ACEOF |
| 17748 | rm -f conftest$ac_exeext |
| 17749 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17750 | (eval $ac_link) 2>&5 |
| 17751 | ac_status=$? |
| 17752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17753 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17755 | (eval $ac_try) 2>&5 |
| 17756 | ac_status=$? |
| 17757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17758 | (exit $ac_status); }; }; then |
| 17759 | gl_cv_func_gnu_getopt=yes |
| 17760 | else |
| 17761 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17762 | echo "$as_me: failed program was:" >&5 |
| 17763 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17764 | |
| 17765 | ( exit $ac_status ) |
| 17766 | gl_cv_func_gnu_getopt=no |
| 17767 | fi |
| 17768 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 17769 | fi |
| 17770 | fi |
| 17771 | echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5 |
| 17772 | echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6 |
| 17773 | if test "$gl_cv_func_gnu_getopt" = "no"; then |
| 17774 | GETOPT_H=getopt.h |
| 17775 | fi |
| 17776 | fi |
| 17777 | |
| 17778 | |
| 17779 | |
| 17780 | if test -n "$GETOPT_H"; then |
| 17781 | |
| 17782 | |
| 17783 | GETOPT_H=getopt.h |
| 17784 | |
| 17785 | cat >>confdefs.h <<\_ACEOF |
| 17786 | #define __GETOPT_PREFIX rpl_ |
| 17787 | _ACEOF |
| 17788 | |
| 17789 | |
| 17790 | |
| 17791 | : |
| 17792 | GETOPTOBJS='getopt.o getopt1.o' |
| 17793 | |
| 17794 | fi |
| 17795 | |
| 17796 | |
| 17797 | |
| 17798 | |
| 17799 | echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 |
| 17800 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 |
| 17801 | if test "${ac_cv_func_getpgrp_void+set}" = set; then |
| 17802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17803 | else |
| 17804 | # Use it with a single arg. |
| 17805 | cat >conftest.$ac_ext <<_ACEOF |
| 17806 | /* confdefs.h. */ |
| 17807 | _ACEOF |
| 17808 | cat confdefs.h >>conftest.$ac_ext |
| 17809 | cat >>conftest.$ac_ext <<_ACEOF |
| 17810 | /* end confdefs.h. */ |
| 17811 | $ac_includes_default |
| 17812 | int |
| 17813 | main () |
| 17814 | { |
| 17815 | getpgrp (0); |
| 17816 | ; |
| 17817 | return 0; |
| 17818 | } |
| 17819 | _ACEOF |
| 17820 | rm -f conftest.$ac_objext |
| 17821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17822 | (eval $ac_compile) 2>conftest.er1 |
| 17823 | ac_status=$? |
| 17824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17825 | rm -f conftest.er1 |
| 17826 | cat conftest.err >&5 |
| 17827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17828 | (exit $ac_status); } && |
| 17829 | { ac_try='test -z "$ac_c_werror_flag" |
| 17830 | || test ! -s conftest.err' |
| 17831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17832 | (eval $ac_try) 2>&5 |
| 17833 | ac_status=$? |
| 17834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17835 | (exit $ac_status); }; } && |
| 17836 | { ac_try='test -s conftest.$ac_objext' |
| 17837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17838 | (eval $ac_try) 2>&5 |
| 17839 | ac_status=$? |
| 17840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17841 | (exit $ac_status); }; }; then |
| 17842 | ac_cv_func_getpgrp_void=no |
| 17843 | else |
| 17844 | echo "$as_me: failed program was:" >&5 |
| 17845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17846 | |
| 17847 | ac_cv_func_getpgrp_void=yes |
| 17848 | fi |
| 17849 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17850 | |
| 17851 | fi |
| 17852 | echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 |
| 17853 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 |
| 17854 | if test $ac_cv_func_getpgrp_void = yes; then |
| 17855 | |
| 17856 | cat >>confdefs.h <<\_ACEOF |
| 17857 | #define GETPGRP_VOID 1 |
| 17858 | _ACEOF |
| 17859 | |
| 17860 | fi |
| 17861 | |
| 17862 | |
| 17863 | |
| 17864 | for ac_func in strftime |
| 17865 | do |
| 17866 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17867 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17868 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17869 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17871 | else |
| 17872 | cat >conftest.$ac_ext <<_ACEOF |
| 17873 | /* confdefs.h. */ |
| 17874 | _ACEOF |
| 17875 | cat confdefs.h >>conftest.$ac_ext |
| 17876 | cat >>conftest.$ac_ext <<_ACEOF |
| 17877 | /* end confdefs.h. */ |
| 17878 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17879 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17880 | #define $ac_func innocuous_$ac_func |
| 17881 | |
| 17882 | /* System header to define __stub macros and hopefully few prototypes, |
| 17883 | which can conflict with char $ac_func (); below. |
| 17884 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17885 | <limits.h> exists even on freestanding compilers. */ |
| 17886 | |
| 17887 | #ifdef __STDC__ |
| 17888 | # include <limits.h> |
| 17889 | #else |
| 17890 | # include <assert.h> |
| 17891 | #endif |
| 17892 | |
| 17893 | #undef $ac_func |
| 17894 | |
| 17895 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17896 | #ifdef __cplusplus |
| 17897 | extern "C" |
| 17898 | { |
| 17899 | #endif |
| 17900 | /* We use char because int might match the return type of a gcc2 |
| 17901 | builtin and then its argument prototype would still apply. */ |
| 17902 | char $ac_func (); |
| 17903 | /* The GNU C library defines this for functions which it implements |
| 17904 | to always fail with ENOSYS. Some functions are actually named |
| 17905 | something starting with __ and the normal name is an alias. */ |
| 17906 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 17907 | choke me |
| 17908 | #else |
| 17909 | char (*f) () = $ac_func; |
| 17910 | #endif |
| 17911 | #ifdef __cplusplus |
| 17912 | } |
| 17913 | #endif |
| 17914 | |
| 17915 | int |
| 17916 | main () |
| 17917 | { |
| 17918 | return f != $ac_func; |
| 17919 | ; |
| 17920 | return 0; |
| 17921 | } |
| 17922 | _ACEOF |
| 17923 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17924 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17925 | (eval $ac_link) 2>conftest.er1 |
| 17926 | ac_status=$? |
| 17927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17928 | rm -f conftest.er1 |
| 17929 | cat conftest.err >&5 |
| 17930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17931 | (exit $ac_status); } && |
| 17932 | { ac_try='test -z "$ac_c_werror_flag" |
| 17933 | || test ! -s conftest.err' |
| 17934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17935 | (eval $ac_try) 2>&5 |
| 17936 | ac_status=$? |
| 17937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17938 | (exit $ac_status); }; } && |
| 17939 | { ac_try='test -s conftest$ac_exeext' |
| 17940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17941 | (eval $ac_try) 2>&5 |
| 17942 | ac_status=$? |
| 17943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17944 | (exit $ac_status); }; }; then |
| 17945 | eval "$as_ac_var=yes" |
| 17946 | else |
| 17947 | echo "$as_me: failed program was:" >&5 |
| 17948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17949 | |
| 17950 | eval "$as_ac_var=no" |
| 17951 | fi |
| 17952 | rm -f conftest.err conftest.$ac_objext \ |
| 17953 | conftest$ac_exeext conftest.$ac_ext |
| 17954 | fi |
| 17955 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17956 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17957 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17958 | cat >>confdefs.h <<_ACEOF |
| 17959 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17960 | _ACEOF |
| 17961 | |
| 17962 | else |
| 17963 | # strftime is in -lintl on SCO UNIX. |
| 17964 | echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 |
| 17965 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 |
| 17966 | if test "${ac_cv_lib_intl_strftime+set}" = set; then |
| 17967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17968 | else |
| 17969 | ac_check_lib_save_LIBS=$LIBS |
| 17970 | LIBS="-lintl $LIBS" |
| 17971 | cat >conftest.$ac_ext <<_ACEOF |
| 17972 | /* confdefs.h. */ |
| 17973 | _ACEOF |
| 17974 | cat confdefs.h >>conftest.$ac_ext |
| 17975 | cat >>conftest.$ac_ext <<_ACEOF |
| 17976 | /* end confdefs.h. */ |
| 17977 | |
| 17978 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17979 | #ifdef __cplusplus |
| 17980 | extern "C" |
| 17981 | #endif |
| 17982 | /* We use char because int might match the return type of a gcc2 |
| 17983 | builtin and then its argument prototype would still apply. */ |
| 17984 | char strftime (); |
| 17985 | int |
| 17986 | main () |
| 17987 | { |
| 17988 | strftime (); |
| 17989 | ; |
| 17990 | return 0; |
| 17991 | } |
| 17992 | _ACEOF |
| 17993 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17994 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17995 | (eval $ac_link) 2>conftest.er1 |
| 17996 | ac_status=$? |
| 17997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17998 | rm -f conftest.er1 |
| 17999 | cat conftest.err >&5 |
| 18000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18001 | (exit $ac_status); } && |
| 18002 | { ac_try='test -z "$ac_c_werror_flag" |
| 18003 | || test ! -s conftest.err' |
| 18004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18005 | (eval $ac_try) 2>&5 |
| 18006 | ac_status=$? |
| 18007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18008 | (exit $ac_status); }; } && |
| 18009 | { ac_try='test -s conftest$ac_exeext' |
| 18010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18011 | (eval $ac_try) 2>&5 |
| 18012 | ac_status=$? |
| 18013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18014 | (exit $ac_status); }; }; then |
| 18015 | ac_cv_lib_intl_strftime=yes |
| 18016 | else |
| 18017 | echo "$as_me: failed program was:" >&5 |
| 18018 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18019 | |
| 18020 | ac_cv_lib_intl_strftime=no |
| 18021 | fi |
| 18022 | rm -f conftest.err conftest.$ac_objext \ |
| 18023 | conftest$ac_exeext conftest.$ac_ext |
| 18024 | LIBS=$ac_check_lib_save_LIBS |
| 18025 | fi |
| 18026 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 |
| 18027 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 |
| 18028 | if test $ac_cv_lib_intl_strftime = yes; then |
| 18029 | cat >>confdefs.h <<\_ACEOF |
| 18030 | #define HAVE_STRFTIME 1 |
| 18031 | _ACEOF |
| 18032 | |
| 18033 | LIBS="-lintl $LIBS" |
| 18034 | fi |
| 18035 | |
| 18036 | fi |
| 18037 | done |
| 18038 | |
| 18039 | |
| 18040 | # UNIX98 PTYs. |
| 18041 | |
| 18042 | for ac_func in grantpt |
| 18043 | do |
| 18044 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18045 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18046 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 18047 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 18048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18049 | else |
| 18050 | cat >conftest.$ac_ext <<_ACEOF |
| 18051 | /* confdefs.h. */ |
| 18052 | _ACEOF |
| 18053 | cat confdefs.h >>conftest.$ac_ext |
| 18054 | cat >>conftest.$ac_ext <<_ACEOF |
| 18055 | /* end confdefs.h. */ |
| 18056 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18057 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18058 | #define $ac_func innocuous_$ac_func |
| 18059 | |
| 18060 | /* System header to define __stub macros and hopefully few prototypes, |
| 18061 | which can conflict with char $ac_func (); below. |
| 18062 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18063 | <limits.h> exists even on freestanding compilers. */ |
| 18064 | |
| 18065 | #ifdef __STDC__ |
| 18066 | # include <limits.h> |
| 18067 | #else |
| 18068 | # include <assert.h> |
| 18069 | #endif |
| 18070 | |
| 18071 | #undef $ac_func |
| 18072 | |
| 18073 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18074 | #ifdef __cplusplus |
| 18075 | extern "C" |
| 18076 | { |
| 18077 | #endif |
| 18078 | /* We use char because int might match the return type of a gcc2 |
| 18079 | builtin and then its argument prototype would still apply. */ |
| 18080 | char $ac_func (); |
| 18081 | /* The GNU C library defines this for functions which it implements |
| 18082 | to always fail with ENOSYS. Some functions are actually named |
| 18083 | something starting with __ and the normal name is an alias. */ |
| 18084 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 18085 | choke me |
| 18086 | #else |
| 18087 | char (*f) () = $ac_func; |
| 18088 | #endif |
| 18089 | #ifdef __cplusplus |
| 18090 | } |
| 18091 | #endif |
| 18092 | |
| 18093 | int |
| 18094 | main () |
| 18095 | { |
| 18096 | return f != $ac_func; |
| 18097 | ; |
| 18098 | return 0; |
| 18099 | } |
| 18100 | _ACEOF |
| 18101 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18102 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18103 | (eval $ac_link) 2>conftest.er1 |
| 18104 | ac_status=$? |
| 18105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18106 | rm -f conftest.er1 |
| 18107 | cat conftest.err >&5 |
| 18108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18109 | (exit $ac_status); } && |
| 18110 | { ac_try='test -z "$ac_c_werror_flag" |
| 18111 | || test ! -s conftest.err' |
| 18112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18113 | (eval $ac_try) 2>&5 |
| 18114 | ac_status=$? |
| 18115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18116 | (exit $ac_status); }; } && |
| 18117 | { ac_try='test -s conftest$ac_exeext' |
| 18118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18119 | (eval $ac_try) 2>&5 |
| 18120 | ac_status=$? |
| 18121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18122 | (exit $ac_status); }; }; then |
| 18123 | eval "$as_ac_var=yes" |
| 18124 | else |
| 18125 | echo "$as_me: failed program was:" >&5 |
| 18126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18127 | |
| 18128 | eval "$as_ac_var=no" |
| 18129 | fi |
| 18130 | rm -f conftest.err conftest.$ac_objext \ |
| 18131 | conftest$ac_exeext conftest.$ac_ext |
| 18132 | fi |
| 18133 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 18134 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 18135 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18136 | cat >>confdefs.h <<_ACEOF |
| 18137 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18138 | _ACEOF |
| 18139 | |
| 18140 | fi |
| 18141 | done |
| 18142 | |
| 18143 | |
| 18144 | # PTY-related GNU extensions. |
| 18145 | |
| 18146 | for ac_func in getpt |
| 18147 | do |
| 18148 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18149 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18150 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 18151 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 18152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18153 | else |
| 18154 | cat >conftest.$ac_ext <<_ACEOF |
| 18155 | /* confdefs.h. */ |
| 18156 | _ACEOF |
| 18157 | cat confdefs.h >>conftest.$ac_ext |
| 18158 | cat >>conftest.$ac_ext <<_ACEOF |
| 18159 | /* end confdefs.h. */ |
| 18160 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18161 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18162 | #define $ac_func innocuous_$ac_func |
| 18163 | |
| 18164 | /* System header to define __stub macros and hopefully few prototypes, |
| 18165 | which can conflict with char $ac_func (); below. |
| 18166 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18167 | <limits.h> exists even on freestanding compilers. */ |
| 18168 | |
| 18169 | #ifdef __STDC__ |
| 18170 | # include <limits.h> |
| 18171 | #else |
| 18172 | # include <assert.h> |
| 18173 | #endif |
| 18174 | |
| 18175 | #undef $ac_func |
| 18176 | |
| 18177 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18178 | #ifdef __cplusplus |
| 18179 | extern "C" |
| 18180 | { |
| 18181 | #endif |
| 18182 | /* We use char because int might match the return type of a gcc2 |
| 18183 | builtin and then its argument prototype would still apply. */ |
| 18184 | char $ac_func (); |
| 18185 | /* The GNU C library defines this for functions which it implements |
| 18186 | to always fail with ENOSYS. Some functions are actually named |
| 18187 | something starting with __ and the normal name is an alias. */ |
| 18188 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 18189 | choke me |
| 18190 | #else |
| 18191 | char (*f) () = $ac_func; |
| 18192 | #endif |
| 18193 | #ifdef __cplusplus |
| 18194 | } |
| 18195 | #endif |
| 18196 | |
| 18197 | int |
| 18198 | main () |
| 18199 | { |
| 18200 | return f != $ac_func; |
| 18201 | ; |
| 18202 | return 0; |
| 18203 | } |
| 18204 | _ACEOF |
| 18205 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18206 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18207 | (eval $ac_link) 2>conftest.er1 |
| 18208 | ac_status=$? |
| 18209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18210 | rm -f conftest.er1 |
| 18211 | cat conftest.err >&5 |
| 18212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18213 | (exit $ac_status); } && |
| 18214 | { ac_try='test -z "$ac_c_werror_flag" |
| 18215 | || test ! -s conftest.err' |
| 18216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18217 | (eval $ac_try) 2>&5 |
| 18218 | ac_status=$? |
| 18219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18220 | (exit $ac_status); }; } && |
| 18221 | { ac_try='test -s conftest$ac_exeext' |
| 18222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18223 | (eval $ac_try) 2>&5 |
| 18224 | ac_status=$? |
| 18225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18226 | (exit $ac_status); }; }; then |
| 18227 | eval "$as_ac_var=yes" |
| 18228 | else |
| 18229 | echo "$as_me: failed program was:" >&5 |
| 18230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18231 | |
| 18232 | eval "$as_ac_var=no" |
| 18233 | fi |
| 18234 | rm -f conftest.err conftest.$ac_objext \ |
| 18235 | conftest$ac_exeext conftest.$ac_ext |
| 18236 | fi |
| 18237 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 18238 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 18239 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18240 | cat >>confdefs.h <<_ACEOF |
| 18241 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18242 | _ACEOF |
| 18243 | |
| 18244 | fi |
| 18245 | done |
| 18246 | |
| 18247 | |
| 18248 | # Check this now, so that we will NOT find the above functions in ncurses. |
| 18249 | # That is because we have not set up to link ncurses in lib-src. |
| 18250 | # It's better to believe a function is not available |
| 18251 | # than to expect to find it in ncurses. |
| 18252 | |
| 18253 | echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5 |
| 18254 | echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6 |
| 18255 | if test "${ac_cv_lib_ncurses_tparm+set}" = set; then |
| 18256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18257 | else |
| 18258 | ac_check_lib_save_LIBS=$LIBS |
| 18259 | LIBS="-lncurses $LIBS" |
| 18260 | cat >conftest.$ac_ext <<_ACEOF |
| 18261 | /* confdefs.h. */ |
| 18262 | _ACEOF |
| 18263 | cat confdefs.h >>conftest.$ac_ext |
| 18264 | cat >>conftest.$ac_ext <<_ACEOF |
| 18265 | /* end confdefs.h. */ |
| 18266 | |
| 18267 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18268 | #ifdef __cplusplus |
| 18269 | extern "C" |
| 18270 | #endif |
| 18271 | /* We use char because int might match the return type of a gcc2 |
| 18272 | builtin and then its argument prototype would still apply. */ |
| 18273 | char tparm (); |
| 18274 | int |
| 18275 | main () |
| 18276 | { |
| 18277 | tparm (); |
| 18278 | ; |
| 18279 | return 0; |
| 18280 | } |
| 18281 | _ACEOF |
| 18282 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18283 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18284 | (eval $ac_link) 2>conftest.er1 |
| 18285 | ac_status=$? |
| 18286 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18287 | rm -f conftest.er1 |
| 18288 | cat conftest.err >&5 |
| 18289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18290 | (exit $ac_status); } && |
| 18291 | { ac_try='test -z "$ac_c_werror_flag" |
| 18292 | || test ! -s conftest.err' |
| 18293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18294 | (eval $ac_try) 2>&5 |
| 18295 | ac_status=$? |
| 18296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18297 | (exit $ac_status); }; } && |
| 18298 | { ac_try='test -s conftest$ac_exeext' |
| 18299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18300 | (eval $ac_try) 2>&5 |
| 18301 | ac_status=$? |
| 18302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18303 | (exit $ac_status); }; }; then |
| 18304 | ac_cv_lib_ncurses_tparm=yes |
| 18305 | else |
| 18306 | echo "$as_me: failed program was:" >&5 |
| 18307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18308 | |
| 18309 | ac_cv_lib_ncurses_tparm=no |
| 18310 | fi |
| 18311 | rm -f conftest.err conftest.$ac_objext \ |
| 18312 | conftest$ac_exeext conftest.$ac_ext |
| 18313 | LIBS=$ac_check_lib_save_LIBS |
| 18314 | fi |
| 18315 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5 |
| 18316 | echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6 |
| 18317 | if test $ac_cv_lib_ncurses_tparm = yes; then |
| 18318 | cat >>confdefs.h <<_ACEOF |
| 18319 | #define HAVE_LIBNCURSES 1 |
| 18320 | _ACEOF |
| 18321 | |
| 18322 | LIBS="-lncurses $LIBS" |
| 18323 | |
| 18324 | fi |
| 18325 | |
| 18326 | |
| 18327 | # Do we need the Hesiod library to provide the support routines? |
| 18328 | if test "$with_hesiod" = yes ; then |
| 18329 | # Don't set $LIBS here -- see comments above. |
| 18330 | resolv=no |
| 18331 | echo "$as_me:$LINENO: checking for res_send" >&5 |
| 18332 | echo $ECHO_N "checking for res_send... $ECHO_C" >&6 |
| 18333 | if test "${ac_cv_func_res_send+set}" = set; then |
| 18334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18335 | else |
| 18336 | cat >conftest.$ac_ext <<_ACEOF |
| 18337 | /* confdefs.h. */ |
| 18338 | _ACEOF |
| 18339 | cat confdefs.h >>conftest.$ac_ext |
| 18340 | cat >>conftest.$ac_ext <<_ACEOF |
| 18341 | /* end confdefs.h. */ |
| 18342 | /* Define res_send to an innocuous variant, in case <limits.h> declares res_send. |
| 18343 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18344 | #define res_send innocuous_res_send |
| 18345 | |
| 18346 | /* System header to define __stub macros and hopefully few prototypes, |
| 18347 | which can conflict with char res_send (); below. |
| 18348 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18349 | <limits.h> exists even on freestanding compilers. */ |
| 18350 | |
| 18351 | #ifdef __STDC__ |
| 18352 | # include <limits.h> |
| 18353 | #else |
| 18354 | # include <assert.h> |
| 18355 | #endif |
| 18356 | |
| 18357 | #undef res_send |
| 18358 | |
| 18359 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18360 | #ifdef __cplusplus |
| 18361 | extern "C" |
| 18362 | { |
| 18363 | #endif |
| 18364 | /* We use char because int might match the return type of a gcc2 |
| 18365 | builtin and then its argument prototype would still apply. */ |
| 18366 | char res_send (); |
| 18367 | /* The GNU C library defines this for functions which it implements |
| 18368 | to always fail with ENOSYS. Some functions are actually named |
| 18369 | something starting with __ and the normal name is an alias. */ |
| 18370 | #if defined (__stub_res_send) || defined (__stub___res_send) |
| 18371 | choke me |
| 18372 | #else |
| 18373 | char (*f) () = res_send; |
| 18374 | #endif |
| 18375 | #ifdef __cplusplus |
| 18376 | } |
| 18377 | #endif |
| 18378 | |
| 18379 | int |
| 18380 | main () |
| 18381 | { |
| 18382 | return f != res_send; |
| 18383 | ; |
| 18384 | return 0; |
| 18385 | } |
| 18386 | _ACEOF |
| 18387 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18389 | (eval $ac_link) 2>conftest.er1 |
| 18390 | ac_status=$? |
| 18391 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18392 | rm -f conftest.er1 |
| 18393 | cat conftest.err >&5 |
| 18394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18395 | (exit $ac_status); } && |
| 18396 | { ac_try='test -z "$ac_c_werror_flag" |
| 18397 | || test ! -s conftest.err' |
| 18398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18399 | (eval $ac_try) 2>&5 |
| 18400 | ac_status=$? |
| 18401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18402 | (exit $ac_status); }; } && |
| 18403 | { ac_try='test -s conftest$ac_exeext' |
| 18404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18405 | (eval $ac_try) 2>&5 |
| 18406 | ac_status=$? |
| 18407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18408 | (exit $ac_status); }; }; then |
| 18409 | ac_cv_func_res_send=yes |
| 18410 | else |
| 18411 | echo "$as_me: failed program was:" >&5 |
| 18412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18413 | |
| 18414 | ac_cv_func_res_send=no |
| 18415 | fi |
| 18416 | rm -f conftest.err conftest.$ac_objext \ |
| 18417 | conftest$ac_exeext conftest.$ac_ext |
| 18418 | fi |
| 18419 | echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5 |
| 18420 | echo "${ECHO_T}$ac_cv_func_res_send" >&6 |
| 18421 | if test $ac_cv_func_res_send = yes; then |
| 18422 | : |
| 18423 | else |
| 18424 | echo "$as_me:$LINENO: checking for __res_send" >&5 |
| 18425 | echo $ECHO_N "checking for __res_send... $ECHO_C" >&6 |
| 18426 | if test "${ac_cv_func___res_send+set}" = set; then |
| 18427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18428 | else |
| 18429 | cat >conftest.$ac_ext <<_ACEOF |
| 18430 | /* confdefs.h. */ |
| 18431 | _ACEOF |
| 18432 | cat confdefs.h >>conftest.$ac_ext |
| 18433 | cat >>conftest.$ac_ext <<_ACEOF |
| 18434 | /* end confdefs.h. */ |
| 18435 | /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send. |
| 18436 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18437 | #define __res_send innocuous___res_send |
| 18438 | |
| 18439 | /* System header to define __stub macros and hopefully few prototypes, |
| 18440 | which can conflict with char __res_send (); below. |
| 18441 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18442 | <limits.h> exists even on freestanding compilers. */ |
| 18443 | |
| 18444 | #ifdef __STDC__ |
| 18445 | # include <limits.h> |
| 18446 | #else |
| 18447 | # include <assert.h> |
| 18448 | #endif |
| 18449 | |
| 18450 | #undef __res_send |
| 18451 | |
| 18452 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18453 | #ifdef __cplusplus |
| 18454 | extern "C" |
| 18455 | { |
| 18456 | #endif |
| 18457 | /* We use char because int might match the return type of a gcc2 |
| 18458 | builtin and then its argument prototype would still apply. */ |
| 18459 | char __res_send (); |
| 18460 | /* The GNU C library defines this for functions which it implements |
| 18461 | to always fail with ENOSYS. Some functions are actually named |
| 18462 | something starting with __ and the normal name is an alias. */ |
| 18463 | #if defined (__stub___res_send) || defined (__stub_____res_send) |
| 18464 | choke me |
| 18465 | #else |
| 18466 | char (*f) () = __res_send; |
| 18467 | #endif |
| 18468 | #ifdef __cplusplus |
| 18469 | } |
| 18470 | #endif |
| 18471 | |
| 18472 | int |
| 18473 | main () |
| 18474 | { |
| 18475 | return f != __res_send; |
| 18476 | ; |
| 18477 | return 0; |
| 18478 | } |
| 18479 | _ACEOF |
| 18480 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18481 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18482 | (eval $ac_link) 2>conftest.er1 |
| 18483 | ac_status=$? |
| 18484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18485 | rm -f conftest.er1 |
| 18486 | cat conftest.err >&5 |
| 18487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18488 | (exit $ac_status); } && |
| 18489 | { ac_try='test -z "$ac_c_werror_flag" |
| 18490 | || test ! -s conftest.err' |
| 18491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18492 | (eval $ac_try) 2>&5 |
| 18493 | ac_status=$? |
| 18494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18495 | (exit $ac_status); }; } && |
| 18496 | { ac_try='test -s conftest$ac_exeext' |
| 18497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18498 | (eval $ac_try) 2>&5 |
| 18499 | ac_status=$? |
| 18500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18501 | (exit $ac_status); }; }; then |
| 18502 | ac_cv_func___res_send=yes |
| 18503 | else |
| 18504 | echo "$as_me: failed program was:" >&5 |
| 18505 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18506 | |
| 18507 | ac_cv_func___res_send=no |
| 18508 | fi |
| 18509 | rm -f conftest.err conftest.$ac_objext \ |
| 18510 | conftest$ac_exeext conftest.$ac_ext |
| 18511 | fi |
| 18512 | echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5 |
| 18513 | echo "${ECHO_T}$ac_cv_func___res_send" >&6 |
| 18514 | if test $ac_cv_func___res_send = yes; then |
| 18515 | : |
| 18516 | else |
| 18517 | echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5 |
| 18518 | echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6 |
| 18519 | if test "${ac_cv_lib_resolv_res_send+set}" = set; then |
| 18520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18521 | else |
| 18522 | ac_check_lib_save_LIBS=$LIBS |
| 18523 | LIBS="-lresolv $LIBS" |
| 18524 | cat >conftest.$ac_ext <<_ACEOF |
| 18525 | /* confdefs.h. */ |
| 18526 | _ACEOF |
| 18527 | cat confdefs.h >>conftest.$ac_ext |
| 18528 | cat >>conftest.$ac_ext <<_ACEOF |
| 18529 | /* end confdefs.h. */ |
| 18530 | |
| 18531 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18532 | #ifdef __cplusplus |
| 18533 | extern "C" |
| 18534 | #endif |
| 18535 | /* We use char because int might match the return type of a gcc2 |
| 18536 | builtin and then its argument prototype would still apply. */ |
| 18537 | char res_send (); |
| 18538 | int |
| 18539 | main () |
| 18540 | { |
| 18541 | res_send (); |
| 18542 | ; |
| 18543 | return 0; |
| 18544 | } |
| 18545 | _ACEOF |
| 18546 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18548 | (eval $ac_link) 2>conftest.er1 |
| 18549 | ac_status=$? |
| 18550 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18551 | rm -f conftest.er1 |
| 18552 | cat conftest.err >&5 |
| 18553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18554 | (exit $ac_status); } && |
| 18555 | { ac_try='test -z "$ac_c_werror_flag" |
| 18556 | || test ! -s conftest.err' |
| 18557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18558 | (eval $ac_try) 2>&5 |
| 18559 | ac_status=$? |
| 18560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18561 | (exit $ac_status); }; } && |
| 18562 | { ac_try='test -s conftest$ac_exeext' |
| 18563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18564 | (eval $ac_try) 2>&5 |
| 18565 | ac_status=$? |
| 18566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18567 | (exit $ac_status); }; }; then |
| 18568 | ac_cv_lib_resolv_res_send=yes |
| 18569 | else |
| 18570 | echo "$as_me: failed program was:" >&5 |
| 18571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18572 | |
| 18573 | ac_cv_lib_resolv_res_send=no |
| 18574 | fi |
| 18575 | rm -f conftest.err conftest.$ac_objext \ |
| 18576 | conftest$ac_exeext conftest.$ac_ext |
| 18577 | LIBS=$ac_check_lib_save_LIBS |
| 18578 | fi |
| 18579 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5 |
| 18580 | echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6 |
| 18581 | if test $ac_cv_lib_resolv_res_send = yes; then |
| 18582 | resolv=yes |
| 18583 | else |
| 18584 | echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5 |
| 18585 | echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6 |
| 18586 | if test "${ac_cv_lib_resolv___res_send+set}" = set; then |
| 18587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18588 | else |
| 18589 | ac_check_lib_save_LIBS=$LIBS |
| 18590 | LIBS="-lresolv $LIBS" |
| 18591 | cat >conftest.$ac_ext <<_ACEOF |
| 18592 | /* confdefs.h. */ |
| 18593 | _ACEOF |
| 18594 | cat confdefs.h >>conftest.$ac_ext |
| 18595 | cat >>conftest.$ac_ext <<_ACEOF |
| 18596 | /* end confdefs.h. */ |
| 18597 | |
| 18598 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18599 | #ifdef __cplusplus |
| 18600 | extern "C" |
| 18601 | #endif |
| 18602 | /* We use char because int might match the return type of a gcc2 |
| 18603 | builtin and then its argument prototype would still apply. */ |
| 18604 | char __res_send (); |
| 18605 | int |
| 18606 | main () |
| 18607 | { |
| 18608 | __res_send (); |
| 18609 | ; |
| 18610 | return 0; |
| 18611 | } |
| 18612 | _ACEOF |
| 18613 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18614 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18615 | (eval $ac_link) 2>conftest.er1 |
| 18616 | ac_status=$? |
| 18617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18618 | rm -f conftest.er1 |
| 18619 | cat conftest.err >&5 |
| 18620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18621 | (exit $ac_status); } && |
| 18622 | { ac_try='test -z "$ac_c_werror_flag" |
| 18623 | || test ! -s conftest.err' |
| 18624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18625 | (eval $ac_try) 2>&5 |
| 18626 | ac_status=$? |
| 18627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18628 | (exit $ac_status); }; } && |
| 18629 | { ac_try='test -s conftest$ac_exeext' |
| 18630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18631 | (eval $ac_try) 2>&5 |
| 18632 | ac_status=$? |
| 18633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18634 | (exit $ac_status); }; }; then |
| 18635 | ac_cv_lib_resolv___res_send=yes |
| 18636 | else |
| 18637 | echo "$as_me: failed program was:" >&5 |
| 18638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18639 | |
| 18640 | ac_cv_lib_resolv___res_send=no |
| 18641 | fi |
| 18642 | rm -f conftest.err conftest.$ac_objext \ |
| 18643 | conftest$ac_exeext conftest.$ac_ext |
| 18644 | LIBS=$ac_check_lib_save_LIBS |
| 18645 | fi |
| 18646 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5 |
| 18647 | echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6 |
| 18648 | if test $ac_cv_lib_resolv___res_send = yes; then |
| 18649 | resolv=yes |
| 18650 | fi |
| 18651 | |
| 18652 | fi |
| 18653 | |
| 18654 | fi |
| 18655 | |
| 18656 | fi |
| 18657 | |
| 18658 | if test "$resolv" = yes ; then |
| 18659 | RESOLVLIB=-lresolv |
| 18660 | |
| 18661 | cat >>confdefs.h <<\_ACEOF |
| 18662 | #define HAVE_LIBRESOLV 1 |
| 18663 | _ACEOF |
| 18664 | |
| 18665 | else |
| 18666 | RESOLVLIB= |
| 18667 | fi |
| 18668 | echo "$as_me:$LINENO: checking for hes_getmailhost" >&5 |
| 18669 | echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6 |
| 18670 | if test "${ac_cv_func_hes_getmailhost+set}" = set; then |
| 18671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18672 | else |
| 18673 | cat >conftest.$ac_ext <<_ACEOF |
| 18674 | /* confdefs.h. */ |
| 18675 | _ACEOF |
| 18676 | cat confdefs.h >>conftest.$ac_ext |
| 18677 | cat >>conftest.$ac_ext <<_ACEOF |
| 18678 | /* end confdefs.h. */ |
| 18679 | /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost. |
| 18680 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18681 | #define hes_getmailhost innocuous_hes_getmailhost |
| 18682 | |
| 18683 | /* System header to define __stub macros and hopefully few prototypes, |
| 18684 | which can conflict with char hes_getmailhost (); below. |
| 18685 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18686 | <limits.h> exists even on freestanding compilers. */ |
| 18687 | |
| 18688 | #ifdef __STDC__ |
| 18689 | # include <limits.h> |
| 18690 | #else |
| 18691 | # include <assert.h> |
| 18692 | #endif |
| 18693 | |
| 18694 | #undef hes_getmailhost |
| 18695 | |
| 18696 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18697 | #ifdef __cplusplus |
| 18698 | extern "C" |
| 18699 | { |
| 18700 | #endif |
| 18701 | /* We use char because int might match the return type of a gcc2 |
| 18702 | builtin and then its argument prototype would still apply. */ |
| 18703 | char hes_getmailhost (); |
| 18704 | /* The GNU C library defines this for functions which it implements |
| 18705 | to always fail with ENOSYS. Some functions are actually named |
| 18706 | something starting with __ and the normal name is an alias. */ |
| 18707 | #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost) |
| 18708 | choke me |
| 18709 | #else |
| 18710 | char (*f) () = hes_getmailhost; |
| 18711 | #endif |
| 18712 | #ifdef __cplusplus |
| 18713 | } |
| 18714 | #endif |
| 18715 | |
| 18716 | int |
| 18717 | main () |
| 18718 | { |
| 18719 | return f != hes_getmailhost; |
| 18720 | ; |
| 18721 | return 0; |
| 18722 | } |
| 18723 | _ACEOF |
| 18724 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18725 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18726 | (eval $ac_link) 2>conftest.er1 |
| 18727 | ac_status=$? |
| 18728 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18729 | rm -f conftest.er1 |
| 18730 | cat conftest.err >&5 |
| 18731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18732 | (exit $ac_status); } && |
| 18733 | { ac_try='test -z "$ac_c_werror_flag" |
| 18734 | || test ! -s conftest.err' |
| 18735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18736 | (eval $ac_try) 2>&5 |
| 18737 | ac_status=$? |
| 18738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18739 | (exit $ac_status); }; } && |
| 18740 | { ac_try='test -s conftest$ac_exeext' |
| 18741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18742 | (eval $ac_try) 2>&5 |
| 18743 | ac_status=$? |
| 18744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18745 | (exit $ac_status); }; }; then |
| 18746 | ac_cv_func_hes_getmailhost=yes |
| 18747 | else |
| 18748 | echo "$as_me: failed program was:" >&5 |
| 18749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18750 | |
| 18751 | ac_cv_func_hes_getmailhost=no |
| 18752 | fi |
| 18753 | rm -f conftest.err conftest.$ac_objext \ |
| 18754 | conftest$ac_exeext conftest.$ac_ext |
| 18755 | fi |
| 18756 | echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5 |
| 18757 | echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6 |
| 18758 | if test $ac_cv_func_hes_getmailhost = yes; then |
| 18759 | : |
| 18760 | else |
| 18761 | echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5 |
| 18762 | echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6 |
| 18763 | if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then |
| 18764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18765 | else |
| 18766 | ac_check_lib_save_LIBS=$LIBS |
| 18767 | LIBS="-lhesiod $RESOLVLIB $LIBS" |
| 18768 | cat >conftest.$ac_ext <<_ACEOF |
| 18769 | /* confdefs.h. */ |
| 18770 | _ACEOF |
| 18771 | cat confdefs.h >>conftest.$ac_ext |
| 18772 | cat >>conftest.$ac_ext <<_ACEOF |
| 18773 | /* end confdefs.h. */ |
| 18774 | |
| 18775 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18776 | #ifdef __cplusplus |
| 18777 | extern "C" |
| 18778 | #endif |
| 18779 | /* We use char because int might match the return type of a gcc2 |
| 18780 | builtin and then its argument prototype would still apply. */ |
| 18781 | char hes_getmailhost (); |
| 18782 | int |
| 18783 | main () |
| 18784 | { |
| 18785 | hes_getmailhost (); |
| 18786 | ; |
| 18787 | return 0; |
| 18788 | } |
| 18789 | _ACEOF |
| 18790 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18792 | (eval $ac_link) 2>conftest.er1 |
| 18793 | ac_status=$? |
| 18794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18795 | rm -f conftest.er1 |
| 18796 | cat conftest.err >&5 |
| 18797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18798 | (exit $ac_status); } && |
| 18799 | { ac_try='test -z "$ac_c_werror_flag" |
| 18800 | || test ! -s conftest.err' |
| 18801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18802 | (eval $ac_try) 2>&5 |
| 18803 | ac_status=$? |
| 18804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18805 | (exit $ac_status); }; } && |
| 18806 | { ac_try='test -s conftest$ac_exeext' |
| 18807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18808 | (eval $ac_try) 2>&5 |
| 18809 | ac_status=$? |
| 18810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18811 | (exit $ac_status); }; }; then |
| 18812 | ac_cv_lib_hesiod_hes_getmailhost=yes |
| 18813 | else |
| 18814 | echo "$as_me: failed program was:" >&5 |
| 18815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18816 | |
| 18817 | ac_cv_lib_hesiod_hes_getmailhost=no |
| 18818 | fi |
| 18819 | rm -f conftest.err conftest.$ac_objext \ |
| 18820 | conftest$ac_exeext conftest.$ac_ext |
| 18821 | LIBS=$ac_check_lib_save_LIBS |
| 18822 | fi |
| 18823 | echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 |
| 18824 | echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6 |
| 18825 | if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then |
| 18826 | |
| 18827 | cat >>confdefs.h <<\_ACEOF |
| 18828 | #define HAVE_LIBHESIOD 1 |
| 18829 | _ACEOF |
| 18830 | |
| 18831 | else |
| 18832 | : |
| 18833 | fi |
| 18834 | |
| 18835 | fi |
| 18836 | |
| 18837 | fi |
| 18838 | |
| 18839 | # These tell us which Kerberos-related libraries to use. |
| 18840 | if test "${with_kerberos+set}" = set; then |
| 18841 | |
| 18842 | echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5 |
| 18843 | echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6 |
| 18844 | if test "${ac_cv_lib_com_err_com_err+set}" = set; then |
| 18845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18846 | else |
| 18847 | ac_check_lib_save_LIBS=$LIBS |
| 18848 | LIBS="-lcom_err $LIBS" |
| 18849 | cat >conftest.$ac_ext <<_ACEOF |
| 18850 | /* confdefs.h. */ |
| 18851 | _ACEOF |
| 18852 | cat confdefs.h >>conftest.$ac_ext |
| 18853 | cat >>conftest.$ac_ext <<_ACEOF |
| 18854 | /* end confdefs.h. */ |
| 18855 | |
| 18856 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18857 | #ifdef __cplusplus |
| 18858 | extern "C" |
| 18859 | #endif |
| 18860 | /* We use char because int might match the return type of a gcc2 |
| 18861 | builtin and then its argument prototype would still apply. */ |
| 18862 | char com_err (); |
| 18863 | int |
| 18864 | main () |
| 18865 | { |
| 18866 | com_err (); |
| 18867 | ; |
| 18868 | return 0; |
| 18869 | } |
| 18870 | _ACEOF |
| 18871 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18872 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18873 | (eval $ac_link) 2>conftest.er1 |
| 18874 | ac_status=$? |
| 18875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18876 | rm -f conftest.er1 |
| 18877 | cat conftest.err >&5 |
| 18878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18879 | (exit $ac_status); } && |
| 18880 | { ac_try='test -z "$ac_c_werror_flag" |
| 18881 | || test ! -s conftest.err' |
| 18882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18883 | (eval $ac_try) 2>&5 |
| 18884 | ac_status=$? |
| 18885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18886 | (exit $ac_status); }; } && |
| 18887 | { ac_try='test -s conftest$ac_exeext' |
| 18888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18889 | (eval $ac_try) 2>&5 |
| 18890 | ac_status=$? |
| 18891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18892 | (exit $ac_status); }; }; then |
| 18893 | ac_cv_lib_com_err_com_err=yes |
| 18894 | else |
| 18895 | echo "$as_me: failed program was:" >&5 |
| 18896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18897 | |
| 18898 | ac_cv_lib_com_err_com_err=no |
| 18899 | fi |
| 18900 | rm -f conftest.err conftest.$ac_objext \ |
| 18901 | conftest$ac_exeext conftest.$ac_ext |
| 18902 | LIBS=$ac_check_lib_save_LIBS |
| 18903 | fi |
| 18904 | echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5 |
| 18905 | echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6 |
| 18906 | if test $ac_cv_lib_com_err_com_err = yes; then |
| 18907 | cat >>confdefs.h <<_ACEOF |
| 18908 | #define HAVE_LIBCOM_ERR 1 |
| 18909 | _ACEOF |
| 18910 | |
| 18911 | LIBS="-lcom_err $LIBS" |
| 18912 | |
| 18913 | fi |
| 18914 | |
| 18915 | |
| 18916 | echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
| 18917 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6 |
| 18918 | if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then |
| 18919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18920 | else |
| 18921 | ac_check_lib_save_LIBS=$LIBS |
| 18922 | LIBS="-lk5crypto $LIBS" |
| 18923 | cat >conftest.$ac_ext <<_ACEOF |
| 18924 | /* confdefs.h. */ |
| 18925 | _ACEOF |
| 18926 | cat confdefs.h >>conftest.$ac_ext |
| 18927 | cat >>conftest.$ac_ext <<_ACEOF |
| 18928 | /* end confdefs.h. */ |
| 18929 | |
| 18930 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18931 | #ifdef __cplusplus |
| 18932 | extern "C" |
| 18933 | #endif |
| 18934 | /* We use char because int might match the return type of a gcc2 |
| 18935 | builtin and then its argument prototype would still apply. */ |
| 18936 | char mit_des_cbc_encrypt (); |
| 18937 | int |
| 18938 | main () |
| 18939 | { |
| 18940 | mit_des_cbc_encrypt (); |
| 18941 | ; |
| 18942 | return 0; |
| 18943 | } |
| 18944 | _ACEOF |
| 18945 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18946 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18947 | (eval $ac_link) 2>conftest.er1 |
| 18948 | ac_status=$? |
| 18949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18950 | rm -f conftest.er1 |
| 18951 | cat conftest.err >&5 |
| 18952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18953 | (exit $ac_status); } && |
| 18954 | { ac_try='test -z "$ac_c_werror_flag" |
| 18955 | || test ! -s conftest.err' |
| 18956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18957 | (eval $ac_try) 2>&5 |
| 18958 | ac_status=$? |
| 18959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18960 | (exit $ac_status); }; } && |
| 18961 | { ac_try='test -s conftest$ac_exeext' |
| 18962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18963 | (eval $ac_try) 2>&5 |
| 18964 | ac_status=$? |
| 18965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18966 | (exit $ac_status); }; }; then |
| 18967 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes |
| 18968 | else |
| 18969 | echo "$as_me: failed program was:" >&5 |
| 18970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18971 | |
| 18972 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no |
| 18973 | fi |
| 18974 | rm -f conftest.err conftest.$ac_objext \ |
| 18975 | conftest$ac_exeext conftest.$ac_ext |
| 18976 | LIBS=$ac_check_lib_save_LIBS |
| 18977 | fi |
| 18978 | echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 |
| 18979 | echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6 |
| 18980 | if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then |
| 18981 | cat >>confdefs.h <<_ACEOF |
| 18982 | #define HAVE_LIBK5CRYPTO 1 |
| 18983 | _ACEOF |
| 18984 | |
| 18985 | LIBS="-lk5crypto $LIBS" |
| 18986 | |
| 18987 | fi |
| 18988 | |
| 18989 | |
| 18990 | echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
| 18991 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6 |
| 18992 | if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then |
| 18993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18994 | else |
| 18995 | ac_check_lib_save_LIBS=$LIBS |
| 18996 | LIBS="-lcrypto $LIBS" |
| 18997 | cat >conftest.$ac_ext <<_ACEOF |
| 18998 | /* confdefs.h. */ |
| 18999 | _ACEOF |
| 19000 | cat confdefs.h >>conftest.$ac_ext |
| 19001 | cat >>conftest.$ac_ext <<_ACEOF |
| 19002 | /* end confdefs.h. */ |
| 19003 | |
| 19004 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19005 | #ifdef __cplusplus |
| 19006 | extern "C" |
| 19007 | #endif |
| 19008 | /* We use char because int might match the return type of a gcc2 |
| 19009 | builtin and then its argument prototype would still apply. */ |
| 19010 | char mit_des_cbc_encrypt (); |
| 19011 | int |
| 19012 | main () |
| 19013 | { |
| 19014 | mit_des_cbc_encrypt (); |
| 19015 | ; |
| 19016 | return 0; |
| 19017 | } |
| 19018 | _ACEOF |
| 19019 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19021 | (eval $ac_link) 2>conftest.er1 |
| 19022 | ac_status=$? |
| 19023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19024 | rm -f conftest.er1 |
| 19025 | cat conftest.err >&5 |
| 19026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19027 | (exit $ac_status); } && |
| 19028 | { ac_try='test -z "$ac_c_werror_flag" |
| 19029 | || test ! -s conftest.err' |
| 19030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19031 | (eval $ac_try) 2>&5 |
| 19032 | ac_status=$? |
| 19033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19034 | (exit $ac_status); }; } && |
| 19035 | { ac_try='test -s conftest$ac_exeext' |
| 19036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19037 | (eval $ac_try) 2>&5 |
| 19038 | ac_status=$? |
| 19039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19040 | (exit $ac_status); }; }; then |
| 19041 | ac_cv_lib_crypto_mit_des_cbc_encrypt=yes |
| 19042 | else |
| 19043 | echo "$as_me: failed program was:" >&5 |
| 19044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19045 | |
| 19046 | ac_cv_lib_crypto_mit_des_cbc_encrypt=no |
| 19047 | fi |
| 19048 | rm -f conftest.err conftest.$ac_objext \ |
| 19049 | conftest$ac_exeext conftest.$ac_ext |
| 19050 | LIBS=$ac_check_lib_save_LIBS |
| 19051 | fi |
| 19052 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
| 19053 | echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6 |
| 19054 | if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then |
| 19055 | cat >>confdefs.h <<_ACEOF |
| 19056 | #define HAVE_LIBCRYPTO 1 |
| 19057 | _ACEOF |
| 19058 | |
| 19059 | LIBS="-lcrypto $LIBS" |
| 19060 | |
| 19061 | fi |
| 19062 | |
| 19063 | |
| 19064 | echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5 |
| 19065 | echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6 |
| 19066 | if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then |
| 19067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19068 | else |
| 19069 | ac_check_lib_save_LIBS=$LIBS |
| 19070 | LIBS="-lkrb5 $LIBS" |
| 19071 | cat >conftest.$ac_ext <<_ACEOF |
| 19072 | /* confdefs.h. */ |
| 19073 | _ACEOF |
| 19074 | cat confdefs.h >>conftest.$ac_ext |
| 19075 | cat >>conftest.$ac_ext <<_ACEOF |
| 19076 | /* end confdefs.h. */ |
| 19077 | |
| 19078 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19079 | #ifdef __cplusplus |
| 19080 | extern "C" |
| 19081 | #endif |
| 19082 | /* We use char because int might match the return type of a gcc2 |
| 19083 | builtin and then its argument prototype would still apply. */ |
| 19084 | char krb5_init_context (); |
| 19085 | int |
| 19086 | main () |
| 19087 | { |
| 19088 | krb5_init_context (); |
| 19089 | ; |
| 19090 | return 0; |
| 19091 | } |
| 19092 | _ACEOF |
| 19093 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19094 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19095 | (eval $ac_link) 2>conftest.er1 |
| 19096 | ac_status=$? |
| 19097 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19098 | rm -f conftest.er1 |
| 19099 | cat conftest.err >&5 |
| 19100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19101 | (exit $ac_status); } && |
| 19102 | { ac_try='test -z "$ac_c_werror_flag" |
| 19103 | || test ! -s conftest.err' |
| 19104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19105 | (eval $ac_try) 2>&5 |
| 19106 | ac_status=$? |
| 19107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19108 | (exit $ac_status); }; } && |
| 19109 | { ac_try='test -s conftest$ac_exeext' |
| 19110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19111 | (eval $ac_try) 2>&5 |
| 19112 | ac_status=$? |
| 19113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19114 | (exit $ac_status); }; }; then |
| 19115 | ac_cv_lib_krb5_krb5_init_context=yes |
| 19116 | else |
| 19117 | echo "$as_me: failed program was:" >&5 |
| 19118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19119 | |
| 19120 | ac_cv_lib_krb5_krb5_init_context=no |
| 19121 | fi |
| 19122 | rm -f conftest.err conftest.$ac_objext \ |
| 19123 | conftest$ac_exeext conftest.$ac_ext |
| 19124 | LIBS=$ac_check_lib_save_LIBS |
| 19125 | fi |
| 19126 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
| 19127 | echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6 |
| 19128 | if test $ac_cv_lib_krb5_krb5_init_context = yes; then |
| 19129 | cat >>confdefs.h <<_ACEOF |
| 19130 | #define HAVE_LIBKRB5 1 |
| 19131 | _ACEOF |
| 19132 | |
| 19133 | LIBS="-lkrb5 $LIBS" |
| 19134 | |
| 19135 | fi |
| 19136 | |
| 19137 | if test "${with_kerberos5+set}" != set; then |
| 19138 | |
| 19139 | echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 |
| 19140 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6 |
| 19141 | if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then |
| 19142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19143 | else |
| 19144 | ac_check_lib_save_LIBS=$LIBS |
| 19145 | LIBS="-ldes425 $LIBS" |
| 19146 | cat >conftest.$ac_ext <<_ACEOF |
| 19147 | /* confdefs.h. */ |
| 19148 | _ACEOF |
| 19149 | cat confdefs.h >>conftest.$ac_ext |
| 19150 | cat >>conftest.$ac_ext <<_ACEOF |
| 19151 | /* end confdefs.h. */ |
| 19152 | |
| 19153 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19154 | #ifdef __cplusplus |
| 19155 | extern "C" |
| 19156 | #endif |
| 19157 | /* We use char because int might match the return type of a gcc2 |
| 19158 | builtin and then its argument prototype would still apply. */ |
| 19159 | char des_cbc_encrypt (); |
| 19160 | int |
| 19161 | main () |
| 19162 | { |
| 19163 | des_cbc_encrypt (); |
| 19164 | ; |
| 19165 | return 0; |
| 19166 | } |
| 19167 | _ACEOF |
| 19168 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19169 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19170 | (eval $ac_link) 2>conftest.er1 |
| 19171 | ac_status=$? |
| 19172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19173 | rm -f conftest.er1 |
| 19174 | cat conftest.err >&5 |
| 19175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19176 | (exit $ac_status); } && |
| 19177 | { ac_try='test -z "$ac_c_werror_flag" |
| 19178 | || test ! -s conftest.err' |
| 19179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19180 | (eval $ac_try) 2>&5 |
| 19181 | ac_status=$? |
| 19182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19183 | (exit $ac_status); }; } && |
| 19184 | { ac_try='test -s conftest$ac_exeext' |
| 19185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19186 | (eval $ac_try) 2>&5 |
| 19187 | ac_status=$? |
| 19188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19189 | (exit $ac_status); }; }; then |
| 19190 | ac_cv_lib_des425_des_cbc_encrypt=yes |
| 19191 | else |
| 19192 | echo "$as_me: failed program was:" >&5 |
| 19193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19194 | |
| 19195 | ac_cv_lib_des425_des_cbc_encrypt=no |
| 19196 | fi |
| 19197 | rm -f conftest.err conftest.$ac_objext \ |
| 19198 | conftest$ac_exeext conftest.$ac_ext |
| 19199 | LIBS=$ac_check_lib_save_LIBS |
| 19200 | fi |
| 19201 | echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
| 19202 | echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6 |
| 19203 | if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then |
| 19204 | cat >>confdefs.h <<_ACEOF |
| 19205 | #define HAVE_LIBDES425 1 |
| 19206 | _ACEOF |
| 19207 | |
| 19208 | LIBS="-ldes425 $LIBS" |
| 19209 | |
| 19210 | else |
| 19211 | |
| 19212 | echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 |
| 19213 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 |
| 19214 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then |
| 19215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19216 | else |
| 19217 | ac_check_lib_save_LIBS=$LIBS |
| 19218 | LIBS="-ldes $LIBS" |
| 19219 | cat >conftest.$ac_ext <<_ACEOF |
| 19220 | /* confdefs.h. */ |
| 19221 | _ACEOF |
| 19222 | cat confdefs.h >>conftest.$ac_ext |
| 19223 | cat >>conftest.$ac_ext <<_ACEOF |
| 19224 | /* end confdefs.h. */ |
| 19225 | |
| 19226 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19227 | #ifdef __cplusplus |
| 19228 | extern "C" |
| 19229 | #endif |
| 19230 | /* We use char because int might match the return type of a gcc2 |
| 19231 | builtin and then its argument prototype would still apply. */ |
| 19232 | char des_cbc_encrypt (); |
| 19233 | int |
| 19234 | main () |
| 19235 | { |
| 19236 | des_cbc_encrypt (); |
| 19237 | ; |
| 19238 | return 0; |
| 19239 | } |
| 19240 | _ACEOF |
| 19241 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19242 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19243 | (eval $ac_link) 2>conftest.er1 |
| 19244 | ac_status=$? |
| 19245 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19246 | rm -f conftest.er1 |
| 19247 | cat conftest.err >&5 |
| 19248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19249 | (exit $ac_status); } && |
| 19250 | { ac_try='test -z "$ac_c_werror_flag" |
| 19251 | || test ! -s conftest.err' |
| 19252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19253 | (eval $ac_try) 2>&5 |
| 19254 | ac_status=$? |
| 19255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19256 | (exit $ac_status); }; } && |
| 19257 | { ac_try='test -s conftest$ac_exeext' |
| 19258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19259 | (eval $ac_try) 2>&5 |
| 19260 | ac_status=$? |
| 19261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19262 | (exit $ac_status); }; }; then |
| 19263 | ac_cv_lib_des_des_cbc_encrypt=yes |
| 19264 | else |
| 19265 | echo "$as_me: failed program was:" >&5 |
| 19266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19267 | |
| 19268 | ac_cv_lib_des_des_cbc_encrypt=no |
| 19269 | fi |
| 19270 | rm -f conftest.err conftest.$ac_objext \ |
| 19271 | conftest$ac_exeext conftest.$ac_ext |
| 19272 | LIBS=$ac_check_lib_save_LIBS |
| 19273 | fi |
| 19274 | echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
| 19275 | echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 |
| 19276 | if test $ac_cv_lib_des_des_cbc_encrypt = yes; then |
| 19277 | cat >>confdefs.h <<_ACEOF |
| 19278 | #define HAVE_LIBDES 1 |
| 19279 | _ACEOF |
| 19280 | |
| 19281 | LIBS="-ldes $LIBS" |
| 19282 | |
| 19283 | fi |
| 19284 | |
| 19285 | fi |
| 19286 | |
| 19287 | |
| 19288 | echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5 |
| 19289 | echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6 |
| 19290 | if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then |
| 19291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19292 | else |
| 19293 | ac_check_lib_save_LIBS=$LIBS |
| 19294 | LIBS="-lkrb4 $LIBS" |
| 19295 | cat >conftest.$ac_ext <<_ACEOF |
| 19296 | /* confdefs.h. */ |
| 19297 | _ACEOF |
| 19298 | cat confdefs.h >>conftest.$ac_ext |
| 19299 | cat >>conftest.$ac_ext <<_ACEOF |
| 19300 | /* end confdefs.h. */ |
| 19301 | |
| 19302 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19303 | #ifdef __cplusplus |
| 19304 | extern "C" |
| 19305 | #endif |
| 19306 | /* We use char because int might match the return type of a gcc2 |
| 19307 | builtin and then its argument prototype would still apply. */ |
| 19308 | char krb_get_cred (); |
| 19309 | int |
| 19310 | main () |
| 19311 | { |
| 19312 | krb_get_cred (); |
| 19313 | ; |
| 19314 | return 0; |
| 19315 | } |
| 19316 | _ACEOF |
| 19317 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19319 | (eval $ac_link) 2>conftest.er1 |
| 19320 | ac_status=$? |
| 19321 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19322 | rm -f conftest.er1 |
| 19323 | cat conftest.err >&5 |
| 19324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19325 | (exit $ac_status); } && |
| 19326 | { ac_try='test -z "$ac_c_werror_flag" |
| 19327 | || test ! -s conftest.err' |
| 19328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19329 | (eval $ac_try) 2>&5 |
| 19330 | ac_status=$? |
| 19331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19332 | (exit $ac_status); }; } && |
| 19333 | { ac_try='test -s conftest$ac_exeext' |
| 19334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19335 | (eval $ac_try) 2>&5 |
| 19336 | ac_status=$? |
| 19337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19338 | (exit $ac_status); }; }; then |
| 19339 | ac_cv_lib_krb4_krb_get_cred=yes |
| 19340 | else |
| 19341 | echo "$as_me: failed program was:" >&5 |
| 19342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19343 | |
| 19344 | ac_cv_lib_krb4_krb_get_cred=no |
| 19345 | fi |
| 19346 | rm -f conftest.err conftest.$ac_objext \ |
| 19347 | conftest$ac_exeext conftest.$ac_ext |
| 19348 | LIBS=$ac_check_lib_save_LIBS |
| 19349 | fi |
| 19350 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5 |
| 19351 | echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6 |
| 19352 | if test $ac_cv_lib_krb4_krb_get_cred = yes; then |
| 19353 | cat >>confdefs.h <<_ACEOF |
| 19354 | #define HAVE_LIBKRB4 1 |
| 19355 | _ACEOF |
| 19356 | |
| 19357 | LIBS="-lkrb4 $LIBS" |
| 19358 | |
| 19359 | else |
| 19360 | |
| 19361 | echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5 |
| 19362 | echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6 |
| 19363 | if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then |
| 19364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19365 | else |
| 19366 | ac_check_lib_save_LIBS=$LIBS |
| 19367 | LIBS="-lkrb $LIBS" |
| 19368 | cat >conftest.$ac_ext <<_ACEOF |
| 19369 | /* confdefs.h. */ |
| 19370 | _ACEOF |
| 19371 | cat confdefs.h >>conftest.$ac_ext |
| 19372 | cat >>conftest.$ac_ext <<_ACEOF |
| 19373 | /* end confdefs.h. */ |
| 19374 | |
| 19375 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19376 | #ifdef __cplusplus |
| 19377 | extern "C" |
| 19378 | #endif |
| 19379 | /* We use char because int might match the return type of a gcc2 |
| 19380 | builtin and then its argument prototype would still apply. */ |
| 19381 | char krb_get_cred (); |
| 19382 | int |
| 19383 | main () |
| 19384 | { |
| 19385 | krb_get_cred (); |
| 19386 | ; |
| 19387 | return 0; |
| 19388 | } |
| 19389 | _ACEOF |
| 19390 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19391 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19392 | (eval $ac_link) 2>conftest.er1 |
| 19393 | ac_status=$? |
| 19394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19395 | rm -f conftest.er1 |
| 19396 | cat conftest.err >&5 |
| 19397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19398 | (exit $ac_status); } && |
| 19399 | { ac_try='test -z "$ac_c_werror_flag" |
| 19400 | || test ! -s conftest.err' |
| 19401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19402 | (eval $ac_try) 2>&5 |
| 19403 | ac_status=$? |
| 19404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19405 | (exit $ac_status); }; } && |
| 19406 | { ac_try='test -s conftest$ac_exeext' |
| 19407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19408 | (eval $ac_try) 2>&5 |
| 19409 | ac_status=$? |
| 19410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19411 | (exit $ac_status); }; }; then |
| 19412 | ac_cv_lib_krb_krb_get_cred=yes |
| 19413 | else |
| 19414 | echo "$as_me: failed program was:" >&5 |
| 19415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19416 | |
| 19417 | ac_cv_lib_krb_krb_get_cred=no |
| 19418 | fi |
| 19419 | rm -f conftest.err conftest.$ac_objext \ |
| 19420 | conftest$ac_exeext conftest.$ac_ext |
| 19421 | LIBS=$ac_check_lib_save_LIBS |
| 19422 | fi |
| 19423 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
| 19424 | echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6 |
| 19425 | if test $ac_cv_lib_krb_krb_get_cred = yes; then |
| 19426 | cat >>confdefs.h <<_ACEOF |
| 19427 | #define HAVE_LIBKRB 1 |
| 19428 | _ACEOF |
| 19429 | |
| 19430 | LIBS="-lkrb $LIBS" |
| 19431 | |
| 19432 | fi |
| 19433 | |
| 19434 | fi |
| 19435 | |
| 19436 | fi |
| 19437 | |
| 19438 | if test "${with_kerberos5+set}" = set; then |
| 19439 | |
| 19440 | for ac_header in krb5.h |
| 19441 | do |
| 19442 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19443 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19444 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19445 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 19446 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19448 | fi |
| 19449 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 19450 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 19451 | else |
| 19452 | # Is the header compilable? |
| 19453 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 19454 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 19455 | cat >conftest.$ac_ext <<_ACEOF |
| 19456 | /* confdefs.h. */ |
| 19457 | _ACEOF |
| 19458 | cat confdefs.h >>conftest.$ac_ext |
| 19459 | cat >>conftest.$ac_ext <<_ACEOF |
| 19460 | /* end confdefs.h. */ |
| 19461 | $ac_includes_default |
| 19462 | #include <$ac_header> |
| 19463 | _ACEOF |
| 19464 | rm -f conftest.$ac_objext |
| 19465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19466 | (eval $ac_compile) 2>conftest.er1 |
| 19467 | ac_status=$? |
| 19468 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19469 | rm -f conftest.er1 |
| 19470 | cat conftest.err >&5 |
| 19471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19472 | (exit $ac_status); } && |
| 19473 | { ac_try='test -z "$ac_c_werror_flag" |
| 19474 | || test ! -s conftest.err' |
| 19475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19476 | (eval $ac_try) 2>&5 |
| 19477 | ac_status=$? |
| 19478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19479 | (exit $ac_status); }; } && |
| 19480 | { ac_try='test -s conftest.$ac_objext' |
| 19481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19482 | (eval $ac_try) 2>&5 |
| 19483 | ac_status=$? |
| 19484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19485 | (exit $ac_status); }; }; then |
| 19486 | ac_header_compiler=yes |
| 19487 | else |
| 19488 | echo "$as_me: failed program was:" >&5 |
| 19489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19490 | |
| 19491 | ac_header_compiler=no |
| 19492 | fi |
| 19493 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19494 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19495 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 19496 | |
| 19497 | # Is the header present? |
| 19498 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 19499 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 19500 | cat >conftest.$ac_ext <<_ACEOF |
| 19501 | /* confdefs.h. */ |
| 19502 | _ACEOF |
| 19503 | cat confdefs.h >>conftest.$ac_ext |
| 19504 | cat >>conftest.$ac_ext <<_ACEOF |
| 19505 | /* end confdefs.h. */ |
| 19506 | #include <$ac_header> |
| 19507 | _ACEOF |
| 19508 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 19509 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 19510 | ac_status=$? |
| 19511 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19512 | rm -f conftest.er1 |
| 19513 | cat conftest.err >&5 |
| 19514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19515 | (exit $ac_status); } >/dev/null; then |
| 19516 | if test -s conftest.err; then |
| 19517 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 19518 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 19519 | else |
| 19520 | ac_cpp_err= |
| 19521 | fi |
| 19522 | else |
| 19523 | ac_cpp_err=yes |
| 19524 | fi |
| 19525 | if test -z "$ac_cpp_err"; then |
| 19526 | ac_header_preproc=yes |
| 19527 | else |
| 19528 | echo "$as_me: failed program was:" >&5 |
| 19529 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19530 | |
| 19531 | ac_header_preproc=no |
| 19532 | fi |
| 19533 | rm -f conftest.err conftest.$ac_ext |
| 19534 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 19535 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 19536 | |
| 19537 | # So? What about this header? |
| 19538 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 19539 | yes:no: ) |
| 19540 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 19541 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 19542 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 19543 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 19544 | ac_header_preproc=yes |
| 19545 | ;; |
| 19546 | no:yes:* ) |
| 19547 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 19548 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 19549 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 19550 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 19551 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 19552 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 19553 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 19554 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 19555 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 19556 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19557 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 19558 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 19559 | ( |
| 19560 | cat <<\_ASBOX |
| 19561 | ## ------------------------------------------ ## |
| 19562 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 19563 | ## ------------------------------------------ ## |
| 19564 | _ASBOX |
| 19565 | ) | |
| 19566 | sed "s/^/$as_me: WARNING: /" >&2 |
| 19567 | ;; |
| 19568 | esac |
| 19569 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19570 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 19571 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19573 | else |
| 19574 | eval "$as_ac_Header=\$ac_header_preproc" |
| 19575 | fi |
| 19576 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 19577 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 19578 | |
| 19579 | fi |
| 19580 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 19581 | cat >>confdefs.h <<_ACEOF |
| 19582 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 19583 | _ACEOF |
| 19584 | |
| 19585 | fi |
| 19586 | |
| 19587 | done |
| 19588 | |
| 19589 | else |
| 19590 | |
| 19591 | for ac_header in des.h |
| 19592 | do |
| 19593 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19594 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19595 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19596 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 19597 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19599 | fi |
| 19600 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 19601 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 19602 | else |
| 19603 | # Is the header compilable? |
| 19604 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 19605 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 19606 | cat >conftest.$ac_ext <<_ACEOF |
| 19607 | /* confdefs.h. */ |
| 19608 | _ACEOF |
| 19609 | cat confdefs.h >>conftest.$ac_ext |
| 19610 | cat >>conftest.$ac_ext <<_ACEOF |
| 19611 | /* end confdefs.h. */ |
| 19612 | $ac_includes_default |
| 19613 | #include <$ac_header> |
| 19614 | _ACEOF |
| 19615 | rm -f conftest.$ac_objext |
| 19616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19617 | (eval $ac_compile) 2>conftest.er1 |
| 19618 | ac_status=$? |
| 19619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19620 | rm -f conftest.er1 |
| 19621 | cat conftest.err >&5 |
| 19622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19623 | (exit $ac_status); } && |
| 19624 | { ac_try='test -z "$ac_c_werror_flag" |
| 19625 | || test ! -s conftest.err' |
| 19626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19627 | (eval $ac_try) 2>&5 |
| 19628 | ac_status=$? |
| 19629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19630 | (exit $ac_status); }; } && |
| 19631 | { ac_try='test -s conftest.$ac_objext' |
| 19632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19633 | (eval $ac_try) 2>&5 |
| 19634 | ac_status=$? |
| 19635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19636 | (exit $ac_status); }; }; then |
| 19637 | ac_header_compiler=yes |
| 19638 | else |
| 19639 | echo "$as_me: failed program was:" >&5 |
| 19640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19641 | |
| 19642 | ac_header_compiler=no |
| 19643 | fi |
| 19644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19645 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19646 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 19647 | |
| 19648 | # Is the header present? |
| 19649 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 19650 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 19651 | cat >conftest.$ac_ext <<_ACEOF |
| 19652 | /* confdefs.h. */ |
| 19653 | _ACEOF |
| 19654 | cat confdefs.h >>conftest.$ac_ext |
| 19655 | cat >>conftest.$ac_ext <<_ACEOF |
| 19656 | /* end confdefs.h. */ |
| 19657 | #include <$ac_header> |
| 19658 | _ACEOF |
| 19659 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 19660 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 19661 | ac_status=$? |
| 19662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19663 | rm -f conftest.er1 |
| 19664 | cat conftest.err >&5 |
| 19665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19666 | (exit $ac_status); } >/dev/null; then |
| 19667 | if test -s conftest.err; then |
| 19668 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 19669 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 19670 | else |
| 19671 | ac_cpp_err= |
| 19672 | fi |
| 19673 | else |
| 19674 | ac_cpp_err=yes |
| 19675 | fi |
| 19676 | if test -z "$ac_cpp_err"; then |
| 19677 | ac_header_preproc=yes |
| 19678 | else |
| 19679 | echo "$as_me: failed program was:" >&5 |
| 19680 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19681 | |
| 19682 | ac_header_preproc=no |
| 19683 | fi |
| 19684 | rm -f conftest.err conftest.$ac_ext |
| 19685 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 19686 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 19687 | |
| 19688 | # So? What about this header? |
| 19689 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 19690 | yes:no: ) |
| 19691 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 19692 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 19693 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 19694 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 19695 | ac_header_preproc=yes |
| 19696 | ;; |
| 19697 | no:yes:* ) |
| 19698 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 19699 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 19700 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 19701 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 19702 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 19703 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 19704 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 19705 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 19706 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 19707 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19708 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 19709 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 19710 | ( |
| 19711 | cat <<\_ASBOX |
| 19712 | ## ------------------------------------------ ## |
| 19713 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 19714 | ## ------------------------------------------ ## |
| 19715 | _ASBOX |
| 19716 | ) | |
| 19717 | sed "s/^/$as_me: WARNING: /" >&2 |
| 19718 | ;; |
| 19719 | esac |
| 19720 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19721 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 19722 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19724 | else |
| 19725 | eval "$as_ac_Header=\$ac_header_preproc" |
| 19726 | fi |
| 19727 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 19728 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 19729 | |
| 19730 | fi |
| 19731 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 19732 | cat >>confdefs.h <<_ACEOF |
| 19733 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 19734 | _ACEOF |
| 19735 | |
| 19736 | else |
| 19737 | |
| 19738 | for ac_header in kerberosIV/des.h |
| 19739 | do |
| 19740 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19741 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19742 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19743 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 19744 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19746 | fi |
| 19747 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 19748 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 19749 | else |
| 19750 | # Is the header compilable? |
| 19751 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 19752 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 19753 | cat >conftest.$ac_ext <<_ACEOF |
| 19754 | /* confdefs.h. */ |
| 19755 | _ACEOF |
| 19756 | cat confdefs.h >>conftest.$ac_ext |
| 19757 | cat >>conftest.$ac_ext <<_ACEOF |
| 19758 | /* end confdefs.h. */ |
| 19759 | $ac_includes_default |
| 19760 | #include <$ac_header> |
| 19761 | _ACEOF |
| 19762 | rm -f conftest.$ac_objext |
| 19763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19764 | (eval $ac_compile) 2>conftest.er1 |
| 19765 | ac_status=$? |
| 19766 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19767 | rm -f conftest.er1 |
| 19768 | cat conftest.err >&5 |
| 19769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19770 | (exit $ac_status); } && |
| 19771 | { ac_try='test -z "$ac_c_werror_flag" |
| 19772 | || test ! -s conftest.err' |
| 19773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19774 | (eval $ac_try) 2>&5 |
| 19775 | ac_status=$? |
| 19776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19777 | (exit $ac_status); }; } && |
| 19778 | { ac_try='test -s conftest.$ac_objext' |
| 19779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19780 | (eval $ac_try) 2>&5 |
| 19781 | ac_status=$? |
| 19782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19783 | (exit $ac_status); }; }; then |
| 19784 | ac_header_compiler=yes |
| 19785 | else |
| 19786 | echo "$as_me: failed program was:" >&5 |
| 19787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19788 | |
| 19789 | ac_header_compiler=no |
| 19790 | fi |
| 19791 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19792 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19793 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 19794 | |
| 19795 | # Is the header present? |
| 19796 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 19797 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 19798 | cat >conftest.$ac_ext <<_ACEOF |
| 19799 | /* confdefs.h. */ |
| 19800 | _ACEOF |
| 19801 | cat confdefs.h >>conftest.$ac_ext |
| 19802 | cat >>conftest.$ac_ext <<_ACEOF |
| 19803 | /* end confdefs.h. */ |
| 19804 | #include <$ac_header> |
| 19805 | _ACEOF |
| 19806 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 19807 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 19808 | ac_status=$? |
| 19809 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19810 | rm -f conftest.er1 |
| 19811 | cat conftest.err >&5 |
| 19812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19813 | (exit $ac_status); } >/dev/null; then |
| 19814 | if test -s conftest.err; then |
| 19815 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 19816 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 19817 | else |
| 19818 | ac_cpp_err= |
| 19819 | fi |
| 19820 | else |
| 19821 | ac_cpp_err=yes |
| 19822 | fi |
| 19823 | if test -z "$ac_cpp_err"; then |
| 19824 | ac_header_preproc=yes |
| 19825 | else |
| 19826 | echo "$as_me: failed program was:" >&5 |
| 19827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19828 | |
| 19829 | ac_header_preproc=no |
| 19830 | fi |
| 19831 | rm -f conftest.err conftest.$ac_ext |
| 19832 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 19833 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 19834 | |
| 19835 | # So? What about this header? |
| 19836 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 19837 | yes:no: ) |
| 19838 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 19839 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 19840 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 19841 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 19842 | ac_header_preproc=yes |
| 19843 | ;; |
| 19844 | no:yes:* ) |
| 19845 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 19846 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 19847 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 19848 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 19849 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 19850 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 19851 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 19852 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 19853 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 19854 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19855 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 19856 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 19857 | ( |
| 19858 | cat <<\_ASBOX |
| 19859 | ## ------------------------------------------ ## |
| 19860 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 19861 | ## ------------------------------------------ ## |
| 19862 | _ASBOX |
| 19863 | ) | |
| 19864 | sed "s/^/$as_me: WARNING: /" >&2 |
| 19865 | ;; |
| 19866 | esac |
| 19867 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19868 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 19869 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19871 | else |
| 19872 | eval "$as_ac_Header=\$ac_header_preproc" |
| 19873 | fi |
| 19874 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 19875 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 19876 | |
| 19877 | fi |
| 19878 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 19879 | cat >>confdefs.h <<_ACEOF |
| 19880 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 19881 | _ACEOF |
| 19882 | |
| 19883 | else |
| 19884 | |
| 19885 | for ac_header in kerberos/des.h |
| 19886 | do |
| 19887 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19888 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19889 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19890 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 19891 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19893 | fi |
| 19894 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 19895 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 19896 | else |
| 19897 | # Is the header compilable? |
| 19898 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 19899 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 19900 | cat >conftest.$ac_ext <<_ACEOF |
| 19901 | /* confdefs.h. */ |
| 19902 | _ACEOF |
| 19903 | cat confdefs.h >>conftest.$ac_ext |
| 19904 | cat >>conftest.$ac_ext <<_ACEOF |
| 19905 | /* end confdefs.h. */ |
| 19906 | $ac_includes_default |
| 19907 | #include <$ac_header> |
| 19908 | _ACEOF |
| 19909 | rm -f conftest.$ac_objext |
| 19910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19911 | (eval $ac_compile) 2>conftest.er1 |
| 19912 | ac_status=$? |
| 19913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19914 | rm -f conftest.er1 |
| 19915 | cat conftest.err >&5 |
| 19916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19917 | (exit $ac_status); } && |
| 19918 | { ac_try='test -z "$ac_c_werror_flag" |
| 19919 | || test ! -s conftest.err' |
| 19920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19921 | (eval $ac_try) 2>&5 |
| 19922 | ac_status=$? |
| 19923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19924 | (exit $ac_status); }; } && |
| 19925 | { ac_try='test -s conftest.$ac_objext' |
| 19926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19927 | (eval $ac_try) 2>&5 |
| 19928 | ac_status=$? |
| 19929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19930 | (exit $ac_status); }; }; then |
| 19931 | ac_header_compiler=yes |
| 19932 | else |
| 19933 | echo "$as_me: failed program was:" >&5 |
| 19934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19935 | |
| 19936 | ac_header_compiler=no |
| 19937 | fi |
| 19938 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19939 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19940 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 19941 | |
| 19942 | # Is the header present? |
| 19943 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 19944 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 19945 | cat >conftest.$ac_ext <<_ACEOF |
| 19946 | /* confdefs.h. */ |
| 19947 | _ACEOF |
| 19948 | cat confdefs.h >>conftest.$ac_ext |
| 19949 | cat >>conftest.$ac_ext <<_ACEOF |
| 19950 | /* end confdefs.h. */ |
| 19951 | #include <$ac_header> |
| 19952 | _ACEOF |
| 19953 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 19954 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 19955 | ac_status=$? |
| 19956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19957 | rm -f conftest.er1 |
| 19958 | cat conftest.err >&5 |
| 19959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19960 | (exit $ac_status); } >/dev/null; then |
| 19961 | if test -s conftest.err; then |
| 19962 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 19963 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 19964 | else |
| 19965 | ac_cpp_err= |
| 19966 | fi |
| 19967 | else |
| 19968 | ac_cpp_err=yes |
| 19969 | fi |
| 19970 | if test -z "$ac_cpp_err"; then |
| 19971 | ac_header_preproc=yes |
| 19972 | else |
| 19973 | echo "$as_me: failed program was:" >&5 |
| 19974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19975 | |
| 19976 | ac_header_preproc=no |
| 19977 | fi |
| 19978 | rm -f conftest.err conftest.$ac_ext |
| 19979 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 19980 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 19981 | |
| 19982 | # So? What about this header? |
| 19983 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 19984 | yes:no: ) |
| 19985 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 19986 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 19987 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 19988 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 19989 | ac_header_preproc=yes |
| 19990 | ;; |
| 19991 | no:yes:* ) |
| 19992 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 19993 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 19994 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 19995 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 19996 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 19997 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 19998 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 19999 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 20000 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 20001 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 20002 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 20003 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 20004 | ( |
| 20005 | cat <<\_ASBOX |
| 20006 | ## ------------------------------------------ ## |
| 20007 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 20008 | ## ------------------------------------------ ## |
| 20009 | _ASBOX |
| 20010 | ) | |
| 20011 | sed "s/^/$as_me: WARNING: /" >&2 |
| 20012 | ;; |
| 20013 | esac |
| 20014 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20015 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 20016 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 20017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20018 | else |
| 20019 | eval "$as_ac_Header=\$ac_header_preproc" |
| 20020 | fi |
| 20021 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 20022 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 20023 | |
| 20024 | fi |
| 20025 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 20026 | cat >>confdefs.h <<_ACEOF |
| 20027 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 20028 | _ACEOF |
| 20029 | |
| 20030 | fi |
| 20031 | |
| 20032 | done |
| 20033 | |
| 20034 | fi |
| 20035 | |
| 20036 | done |
| 20037 | |
| 20038 | fi |
| 20039 | |
| 20040 | done |
| 20041 | |
| 20042 | |
| 20043 | for ac_header in krb.h |
| 20044 | do |
| 20045 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 20046 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 20047 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20048 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 20049 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 20050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20051 | fi |
| 20052 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 20053 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 20054 | else |
| 20055 | # Is the header compilable? |
| 20056 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 20057 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 20058 | cat >conftest.$ac_ext <<_ACEOF |
| 20059 | /* confdefs.h. */ |
| 20060 | _ACEOF |
| 20061 | cat confdefs.h >>conftest.$ac_ext |
| 20062 | cat >>conftest.$ac_ext <<_ACEOF |
| 20063 | /* end confdefs.h. */ |
| 20064 | $ac_includes_default |
| 20065 | #include <$ac_header> |
| 20066 | _ACEOF |
| 20067 | rm -f conftest.$ac_objext |
| 20068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20069 | (eval $ac_compile) 2>conftest.er1 |
| 20070 | ac_status=$? |
| 20071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20072 | rm -f conftest.er1 |
| 20073 | cat conftest.err >&5 |
| 20074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20075 | (exit $ac_status); } && |
| 20076 | { ac_try='test -z "$ac_c_werror_flag" |
| 20077 | || test ! -s conftest.err' |
| 20078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20079 | (eval $ac_try) 2>&5 |
| 20080 | ac_status=$? |
| 20081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20082 | (exit $ac_status); }; } && |
| 20083 | { ac_try='test -s conftest.$ac_objext' |
| 20084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20085 | (eval $ac_try) 2>&5 |
| 20086 | ac_status=$? |
| 20087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20088 | (exit $ac_status); }; }; then |
| 20089 | ac_header_compiler=yes |
| 20090 | else |
| 20091 | echo "$as_me: failed program was:" >&5 |
| 20092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20093 | |
| 20094 | ac_header_compiler=no |
| 20095 | fi |
| 20096 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20097 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 20098 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 20099 | |
| 20100 | # Is the header present? |
| 20101 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 20102 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 20103 | cat >conftest.$ac_ext <<_ACEOF |
| 20104 | /* confdefs.h. */ |
| 20105 | _ACEOF |
| 20106 | cat confdefs.h >>conftest.$ac_ext |
| 20107 | cat >>conftest.$ac_ext <<_ACEOF |
| 20108 | /* end confdefs.h. */ |
| 20109 | #include <$ac_header> |
| 20110 | _ACEOF |
| 20111 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20112 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20113 | ac_status=$? |
| 20114 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20115 | rm -f conftest.er1 |
| 20116 | cat conftest.err >&5 |
| 20117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20118 | (exit $ac_status); } >/dev/null; then |
| 20119 | if test -s conftest.err; then |
| 20120 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 20121 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 20122 | else |
| 20123 | ac_cpp_err= |
| 20124 | fi |
| 20125 | else |
| 20126 | ac_cpp_err=yes |
| 20127 | fi |
| 20128 | if test -z "$ac_cpp_err"; then |
| 20129 | ac_header_preproc=yes |
| 20130 | else |
| 20131 | echo "$as_me: failed program was:" >&5 |
| 20132 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20133 | |
| 20134 | ac_header_preproc=no |
| 20135 | fi |
| 20136 | rm -f conftest.err conftest.$ac_ext |
| 20137 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 20138 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 20139 | |
| 20140 | # So? What about this header? |
| 20141 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 20142 | yes:no: ) |
| 20143 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 20144 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 20145 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 20146 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 20147 | ac_header_preproc=yes |
| 20148 | ;; |
| 20149 | no:yes:* ) |
| 20150 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 20151 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 20152 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 20153 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 20154 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 20155 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 20156 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 20157 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 20158 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 20159 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 20160 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 20161 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 20162 | ( |
| 20163 | cat <<\_ASBOX |
| 20164 | ## ------------------------------------------ ## |
| 20165 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 20166 | ## ------------------------------------------ ## |
| 20167 | _ASBOX |
| 20168 | ) | |
| 20169 | sed "s/^/$as_me: WARNING: /" >&2 |
| 20170 | ;; |
| 20171 | esac |
| 20172 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20173 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 20174 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 20175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20176 | else |
| 20177 | eval "$as_ac_Header=\$ac_header_preproc" |
| 20178 | fi |
| 20179 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 20180 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 20181 | |
| 20182 | fi |
| 20183 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 20184 | cat >>confdefs.h <<_ACEOF |
| 20185 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 20186 | _ACEOF |
| 20187 | |
| 20188 | else |
| 20189 | |
| 20190 | for ac_header in kerberosIV/krb.h |
| 20191 | do |
| 20192 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 20193 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 20194 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20195 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 20196 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 20197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20198 | fi |
| 20199 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 20200 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 20201 | else |
| 20202 | # Is the header compilable? |
| 20203 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 20204 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 20205 | cat >conftest.$ac_ext <<_ACEOF |
| 20206 | /* confdefs.h. */ |
| 20207 | _ACEOF |
| 20208 | cat confdefs.h >>conftest.$ac_ext |
| 20209 | cat >>conftest.$ac_ext <<_ACEOF |
| 20210 | /* end confdefs.h. */ |
| 20211 | $ac_includes_default |
| 20212 | #include <$ac_header> |
| 20213 | _ACEOF |
| 20214 | rm -f conftest.$ac_objext |
| 20215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20216 | (eval $ac_compile) 2>conftest.er1 |
| 20217 | ac_status=$? |
| 20218 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20219 | rm -f conftest.er1 |
| 20220 | cat conftest.err >&5 |
| 20221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20222 | (exit $ac_status); } && |
| 20223 | { ac_try='test -z "$ac_c_werror_flag" |
| 20224 | || test ! -s conftest.err' |
| 20225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20226 | (eval $ac_try) 2>&5 |
| 20227 | ac_status=$? |
| 20228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20229 | (exit $ac_status); }; } && |
| 20230 | { ac_try='test -s conftest.$ac_objext' |
| 20231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20232 | (eval $ac_try) 2>&5 |
| 20233 | ac_status=$? |
| 20234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20235 | (exit $ac_status); }; }; then |
| 20236 | ac_header_compiler=yes |
| 20237 | else |
| 20238 | echo "$as_me: failed program was:" >&5 |
| 20239 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20240 | |
| 20241 | ac_header_compiler=no |
| 20242 | fi |
| 20243 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20244 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 20245 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 20246 | |
| 20247 | # Is the header present? |
| 20248 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 20249 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 20250 | cat >conftest.$ac_ext <<_ACEOF |
| 20251 | /* confdefs.h. */ |
| 20252 | _ACEOF |
| 20253 | cat confdefs.h >>conftest.$ac_ext |
| 20254 | cat >>conftest.$ac_ext <<_ACEOF |
| 20255 | /* end confdefs.h. */ |
| 20256 | #include <$ac_header> |
| 20257 | _ACEOF |
| 20258 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20259 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20260 | ac_status=$? |
| 20261 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20262 | rm -f conftest.er1 |
| 20263 | cat conftest.err >&5 |
| 20264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20265 | (exit $ac_status); } >/dev/null; then |
| 20266 | if test -s conftest.err; then |
| 20267 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 20268 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 20269 | else |
| 20270 | ac_cpp_err= |
| 20271 | fi |
| 20272 | else |
| 20273 | ac_cpp_err=yes |
| 20274 | fi |
| 20275 | if test -z "$ac_cpp_err"; then |
| 20276 | ac_header_preproc=yes |
| 20277 | else |
| 20278 | echo "$as_me: failed program was:" >&5 |
| 20279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20280 | |
| 20281 | ac_header_preproc=no |
| 20282 | fi |
| 20283 | rm -f conftest.err conftest.$ac_ext |
| 20284 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 20285 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 20286 | |
| 20287 | # So? What about this header? |
| 20288 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 20289 | yes:no: ) |
| 20290 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 20291 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 20292 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 20293 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 20294 | ac_header_preproc=yes |
| 20295 | ;; |
| 20296 | no:yes:* ) |
| 20297 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 20298 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 20299 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 20300 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 20301 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 20302 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 20303 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 20304 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 20305 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 20306 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 20307 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 20308 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 20309 | ( |
| 20310 | cat <<\_ASBOX |
| 20311 | ## ------------------------------------------ ## |
| 20312 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 20313 | ## ------------------------------------------ ## |
| 20314 | _ASBOX |
| 20315 | ) | |
| 20316 | sed "s/^/$as_me: WARNING: /" >&2 |
| 20317 | ;; |
| 20318 | esac |
| 20319 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20320 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 20321 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 20322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20323 | else |
| 20324 | eval "$as_ac_Header=\$ac_header_preproc" |
| 20325 | fi |
| 20326 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 20327 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 20328 | |
| 20329 | fi |
| 20330 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 20331 | cat >>confdefs.h <<_ACEOF |
| 20332 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 20333 | _ACEOF |
| 20334 | |
| 20335 | else |
| 20336 | |
| 20337 | for ac_header in kerberos/krb.h |
| 20338 | do |
| 20339 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 20340 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 20341 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20342 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 20343 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 20344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20345 | fi |
| 20346 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 20347 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 20348 | else |
| 20349 | # Is the header compilable? |
| 20350 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 20351 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 20352 | cat >conftest.$ac_ext <<_ACEOF |
| 20353 | /* confdefs.h. */ |
| 20354 | _ACEOF |
| 20355 | cat confdefs.h >>conftest.$ac_ext |
| 20356 | cat >>conftest.$ac_ext <<_ACEOF |
| 20357 | /* end confdefs.h. */ |
| 20358 | $ac_includes_default |
| 20359 | #include <$ac_header> |
| 20360 | _ACEOF |
| 20361 | rm -f conftest.$ac_objext |
| 20362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20363 | (eval $ac_compile) 2>conftest.er1 |
| 20364 | ac_status=$? |
| 20365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20366 | rm -f conftest.er1 |
| 20367 | cat conftest.err >&5 |
| 20368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20369 | (exit $ac_status); } && |
| 20370 | { ac_try='test -z "$ac_c_werror_flag" |
| 20371 | || test ! -s conftest.err' |
| 20372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20373 | (eval $ac_try) 2>&5 |
| 20374 | ac_status=$? |
| 20375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20376 | (exit $ac_status); }; } && |
| 20377 | { ac_try='test -s conftest.$ac_objext' |
| 20378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20379 | (eval $ac_try) 2>&5 |
| 20380 | ac_status=$? |
| 20381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20382 | (exit $ac_status); }; }; then |
| 20383 | ac_header_compiler=yes |
| 20384 | else |
| 20385 | echo "$as_me: failed program was:" >&5 |
| 20386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20387 | |
| 20388 | ac_header_compiler=no |
| 20389 | fi |
| 20390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20391 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 20392 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 20393 | |
| 20394 | # Is the header present? |
| 20395 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 20396 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 20397 | cat >conftest.$ac_ext <<_ACEOF |
| 20398 | /* confdefs.h. */ |
| 20399 | _ACEOF |
| 20400 | cat confdefs.h >>conftest.$ac_ext |
| 20401 | cat >>conftest.$ac_ext <<_ACEOF |
| 20402 | /* end confdefs.h. */ |
| 20403 | #include <$ac_header> |
| 20404 | _ACEOF |
| 20405 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20406 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20407 | ac_status=$? |
| 20408 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20409 | rm -f conftest.er1 |
| 20410 | cat conftest.err >&5 |
| 20411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20412 | (exit $ac_status); } >/dev/null; then |
| 20413 | if test -s conftest.err; then |
| 20414 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 20415 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 20416 | else |
| 20417 | ac_cpp_err= |
| 20418 | fi |
| 20419 | else |
| 20420 | ac_cpp_err=yes |
| 20421 | fi |
| 20422 | if test -z "$ac_cpp_err"; then |
| 20423 | ac_header_preproc=yes |
| 20424 | else |
| 20425 | echo "$as_me: failed program was:" >&5 |
| 20426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20427 | |
| 20428 | ac_header_preproc=no |
| 20429 | fi |
| 20430 | rm -f conftest.err conftest.$ac_ext |
| 20431 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 20432 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 20433 | |
| 20434 | # So? What about this header? |
| 20435 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 20436 | yes:no: ) |
| 20437 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 20438 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 20439 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 20440 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 20441 | ac_header_preproc=yes |
| 20442 | ;; |
| 20443 | no:yes:* ) |
| 20444 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 20445 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 20446 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 20447 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 20448 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 20449 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 20450 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 20451 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 20452 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 20453 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 20454 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 20455 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 20456 | ( |
| 20457 | cat <<\_ASBOX |
| 20458 | ## ------------------------------------------ ## |
| 20459 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 20460 | ## ------------------------------------------ ## |
| 20461 | _ASBOX |
| 20462 | ) | |
| 20463 | sed "s/^/$as_me: WARNING: /" >&2 |
| 20464 | ;; |
| 20465 | esac |
| 20466 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20467 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 20468 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 20469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20470 | else |
| 20471 | eval "$as_ac_Header=\$ac_header_preproc" |
| 20472 | fi |
| 20473 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 20474 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 20475 | |
| 20476 | fi |
| 20477 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 20478 | cat >>confdefs.h <<_ACEOF |
| 20479 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 20480 | _ACEOF |
| 20481 | |
| 20482 | fi |
| 20483 | |
| 20484 | done |
| 20485 | |
| 20486 | fi |
| 20487 | |
| 20488 | done |
| 20489 | |
| 20490 | fi |
| 20491 | |
| 20492 | done |
| 20493 | |
| 20494 | fi |
| 20495 | |
| 20496 | for ac_header in com_err.h |
| 20497 | do |
| 20498 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 20499 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 20500 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20501 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 20502 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 20503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20504 | fi |
| 20505 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 20506 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 20507 | else |
| 20508 | # Is the header compilable? |
| 20509 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 20510 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 20511 | cat >conftest.$ac_ext <<_ACEOF |
| 20512 | /* confdefs.h. */ |
| 20513 | _ACEOF |
| 20514 | cat confdefs.h >>conftest.$ac_ext |
| 20515 | cat >>conftest.$ac_ext <<_ACEOF |
| 20516 | /* end confdefs.h. */ |
| 20517 | $ac_includes_default |
| 20518 | #include <$ac_header> |
| 20519 | _ACEOF |
| 20520 | rm -f conftest.$ac_objext |
| 20521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20522 | (eval $ac_compile) 2>conftest.er1 |
| 20523 | ac_status=$? |
| 20524 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20525 | rm -f conftest.er1 |
| 20526 | cat conftest.err >&5 |
| 20527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20528 | (exit $ac_status); } && |
| 20529 | { ac_try='test -z "$ac_c_werror_flag" |
| 20530 | || test ! -s conftest.err' |
| 20531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20532 | (eval $ac_try) 2>&5 |
| 20533 | ac_status=$? |
| 20534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20535 | (exit $ac_status); }; } && |
| 20536 | { ac_try='test -s conftest.$ac_objext' |
| 20537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20538 | (eval $ac_try) 2>&5 |
| 20539 | ac_status=$? |
| 20540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20541 | (exit $ac_status); }; }; then |
| 20542 | ac_header_compiler=yes |
| 20543 | else |
| 20544 | echo "$as_me: failed program was:" >&5 |
| 20545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20546 | |
| 20547 | ac_header_compiler=no |
| 20548 | fi |
| 20549 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20550 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 20551 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 20552 | |
| 20553 | # Is the header present? |
| 20554 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 20555 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 20556 | cat >conftest.$ac_ext <<_ACEOF |
| 20557 | /* confdefs.h. */ |
| 20558 | _ACEOF |
| 20559 | cat confdefs.h >>conftest.$ac_ext |
| 20560 | cat >>conftest.$ac_ext <<_ACEOF |
| 20561 | /* end confdefs.h. */ |
| 20562 | #include <$ac_header> |
| 20563 | _ACEOF |
| 20564 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20565 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20566 | ac_status=$? |
| 20567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20568 | rm -f conftest.er1 |
| 20569 | cat conftest.err >&5 |
| 20570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20571 | (exit $ac_status); } >/dev/null; then |
| 20572 | if test -s conftest.err; then |
| 20573 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 20574 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 20575 | else |
| 20576 | ac_cpp_err= |
| 20577 | fi |
| 20578 | else |
| 20579 | ac_cpp_err=yes |
| 20580 | fi |
| 20581 | if test -z "$ac_cpp_err"; then |
| 20582 | ac_header_preproc=yes |
| 20583 | else |
| 20584 | echo "$as_me: failed program was:" >&5 |
| 20585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20586 | |
| 20587 | ac_header_preproc=no |
| 20588 | fi |
| 20589 | rm -f conftest.err conftest.$ac_ext |
| 20590 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 20591 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 20592 | |
| 20593 | # So? What about this header? |
| 20594 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 20595 | yes:no: ) |
| 20596 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 20597 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 20598 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 20599 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 20600 | ac_header_preproc=yes |
| 20601 | ;; |
| 20602 | no:yes:* ) |
| 20603 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 20604 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 20605 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 20606 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 20607 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 20608 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 20609 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 20610 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 20611 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 20612 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 20613 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 20614 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 20615 | ( |
| 20616 | cat <<\_ASBOX |
| 20617 | ## ------------------------------------------ ## |
| 20618 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 20619 | ## ------------------------------------------ ## |
| 20620 | _ASBOX |
| 20621 | ) | |
| 20622 | sed "s/^/$as_me: WARNING: /" >&2 |
| 20623 | ;; |
| 20624 | esac |
| 20625 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20626 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 20627 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 20628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20629 | else |
| 20630 | eval "$as_ac_Header=\$ac_header_preproc" |
| 20631 | fi |
| 20632 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 20633 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 20634 | |
| 20635 | fi |
| 20636 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 20637 | cat >>confdefs.h <<_ACEOF |
| 20638 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 20639 | _ACEOF |
| 20640 | |
| 20641 | fi |
| 20642 | |
| 20643 | done |
| 20644 | |
| 20645 | fi |
| 20646 | |
| 20647 | # Solaris requires -lintl if you want strerror (which calls dgettext) |
| 20648 | # to return localized messages. |
| 20649 | |
| 20650 | echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 |
| 20651 | echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6 |
| 20652 | if test "${ac_cv_lib_intl_dgettext+set}" = set; then |
| 20653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20654 | else |
| 20655 | ac_check_lib_save_LIBS=$LIBS |
| 20656 | LIBS="-lintl $LIBS" |
| 20657 | cat >conftest.$ac_ext <<_ACEOF |
| 20658 | /* confdefs.h. */ |
| 20659 | _ACEOF |
| 20660 | cat confdefs.h >>conftest.$ac_ext |
| 20661 | cat >>conftest.$ac_ext <<_ACEOF |
| 20662 | /* end confdefs.h. */ |
| 20663 | |
| 20664 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 20665 | #ifdef __cplusplus |
| 20666 | extern "C" |
| 20667 | #endif |
| 20668 | /* We use char because int might match the return type of a gcc2 |
| 20669 | builtin and then its argument prototype would still apply. */ |
| 20670 | char dgettext (); |
| 20671 | int |
| 20672 | main () |
| 20673 | { |
| 20674 | dgettext (); |
| 20675 | ; |
| 20676 | return 0; |
| 20677 | } |
| 20678 | _ACEOF |
| 20679 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20681 | (eval $ac_link) 2>conftest.er1 |
| 20682 | ac_status=$? |
| 20683 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20684 | rm -f conftest.er1 |
| 20685 | cat conftest.err >&5 |
| 20686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20687 | (exit $ac_status); } && |
| 20688 | { ac_try='test -z "$ac_c_werror_flag" |
| 20689 | || test ! -s conftest.err' |
| 20690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20691 | (eval $ac_try) 2>&5 |
| 20692 | ac_status=$? |
| 20693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20694 | (exit $ac_status); }; } && |
| 20695 | { ac_try='test -s conftest$ac_exeext' |
| 20696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20697 | (eval $ac_try) 2>&5 |
| 20698 | ac_status=$? |
| 20699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20700 | (exit $ac_status); }; }; then |
| 20701 | ac_cv_lib_intl_dgettext=yes |
| 20702 | else |
| 20703 | echo "$as_me: failed program was:" >&5 |
| 20704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20705 | |
| 20706 | ac_cv_lib_intl_dgettext=no |
| 20707 | fi |
| 20708 | rm -f conftest.err conftest.$ac_objext \ |
| 20709 | conftest$ac_exeext conftest.$ac_ext |
| 20710 | LIBS=$ac_check_lib_save_LIBS |
| 20711 | fi |
| 20712 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 |
| 20713 | echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6 |
| 20714 | if test $ac_cv_lib_intl_dgettext = yes; then |
| 20715 | cat >>confdefs.h <<_ACEOF |
| 20716 | #define HAVE_LIBINTL 1 |
| 20717 | _ACEOF |
| 20718 | |
| 20719 | LIBS="-lintl $LIBS" |
| 20720 | |
| 20721 | fi |
| 20722 | |
| 20723 | |
| 20724 | echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5 |
| 20725 | echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6 |
| 20726 | if test "${emacs_cv_localtime_cache+set}" = set; then |
| 20727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20728 | else |
| 20729 | if test x$ac_cv_func_tzset = xyes; then |
| 20730 | if test "$cross_compiling" = yes; then |
| 20731 | # If we have tzset, assume the worst when cross-compiling. |
| 20732 | emacs_cv_localtime_cache=yes |
| 20733 | else |
| 20734 | cat >conftest.$ac_ext <<_ACEOF |
| 20735 | /* confdefs.h. */ |
| 20736 | _ACEOF |
| 20737 | cat confdefs.h >>conftest.$ac_ext |
| 20738 | cat >>conftest.$ac_ext <<_ACEOF |
| 20739 | /* end confdefs.h. */ |
| 20740 | #include <time.h> |
| 20741 | extern char **environ; |
| 20742 | unset_TZ () |
| 20743 | { |
| 20744 | char **from, **to; |
| 20745 | for (to = from = environ; (*to = *from); from++) |
| 20746 | if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) |
| 20747 | to++; |
| 20748 | } |
| 20749 | char TZ_GMT0[] = "TZ=GMT0"; |
| 20750 | char TZ_PST8[] = "TZ=PST8"; |
| 20751 | main() |
| 20752 | { |
| 20753 | time_t now = time ((time_t *) 0); |
| 20754 | int hour_GMT0, hour_unset; |
| 20755 | if (putenv (TZ_GMT0) != 0) |
| 20756 | exit (1); |
| 20757 | hour_GMT0 = localtime (&now)->tm_hour; |
| 20758 | unset_TZ (); |
| 20759 | hour_unset = localtime (&now)->tm_hour; |
| 20760 | if (putenv (TZ_PST8) != 0) |
| 20761 | exit (1); |
| 20762 | if (localtime (&now)->tm_hour == hour_GMT0) |
| 20763 | exit (1); |
| 20764 | unset_TZ (); |
| 20765 | if (localtime (&now)->tm_hour != hour_unset) |
| 20766 | exit (1); |
| 20767 | exit (0); |
| 20768 | } |
| 20769 | _ACEOF |
| 20770 | rm -f conftest$ac_exeext |
| 20771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20772 | (eval $ac_link) 2>&5 |
| 20773 | ac_status=$? |
| 20774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20775 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20777 | (eval $ac_try) 2>&5 |
| 20778 | ac_status=$? |
| 20779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20780 | (exit $ac_status); }; }; then |
| 20781 | emacs_cv_localtime_cache=no |
| 20782 | else |
| 20783 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20784 | echo "$as_me: failed program was:" >&5 |
| 20785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20786 | |
| 20787 | ( exit $ac_status ) |
| 20788 | emacs_cv_localtime_cache=yes |
| 20789 | fi |
| 20790 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 20791 | fi |
| 20792 | else |
| 20793 | # If we lack tzset, report that localtime does not cache TZ, |
| 20794 | # since we can't invalidate the cache if we don't have tzset. |
| 20795 | emacs_cv_localtime_cache=no |
| 20796 | fi |
| 20797 | fi |
| 20798 | echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5 |
| 20799 | echo "${ECHO_T}$emacs_cv_localtime_cache" >&6 |
| 20800 | if test $emacs_cv_localtime_cache = yes; then |
| 20801 | |
| 20802 | cat >>confdefs.h <<\_ACEOF |
| 20803 | #define LOCALTIME_CACHE 1 |
| 20804 | _ACEOF |
| 20805 | |
| 20806 | fi |
| 20807 | |
| 20808 | if test "x$HAVE_TIMEVAL" = xyes; then |
| 20809 | |
| 20810 | for ac_func in gettimeofday |
| 20811 | do |
| 20812 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20813 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20814 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 20815 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 20816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20817 | else |
| 20818 | cat >conftest.$ac_ext <<_ACEOF |
| 20819 | /* confdefs.h. */ |
| 20820 | _ACEOF |
| 20821 | cat confdefs.h >>conftest.$ac_ext |
| 20822 | cat >>conftest.$ac_ext <<_ACEOF |
| 20823 | /* end confdefs.h. */ |
| 20824 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20825 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20826 | #define $ac_func innocuous_$ac_func |
| 20827 | |
| 20828 | /* System header to define __stub macros and hopefully few prototypes, |
| 20829 | which can conflict with char $ac_func (); below. |
| 20830 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20831 | <limits.h> exists even on freestanding compilers. */ |
| 20832 | |
| 20833 | #ifdef __STDC__ |
| 20834 | # include <limits.h> |
| 20835 | #else |
| 20836 | # include <assert.h> |
| 20837 | #endif |
| 20838 | |
| 20839 | #undef $ac_func |
| 20840 | |
| 20841 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 20842 | #ifdef __cplusplus |
| 20843 | extern "C" |
| 20844 | { |
| 20845 | #endif |
| 20846 | /* We use char because int might match the return type of a gcc2 |
| 20847 | builtin and then its argument prototype would still apply. */ |
| 20848 | char $ac_func (); |
| 20849 | /* The GNU C library defines this for functions which it implements |
| 20850 | to always fail with ENOSYS. Some functions are actually named |
| 20851 | something starting with __ and the normal name is an alias. */ |
| 20852 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 20853 | choke me |
| 20854 | #else |
| 20855 | char (*f) () = $ac_func; |
| 20856 | #endif |
| 20857 | #ifdef __cplusplus |
| 20858 | } |
| 20859 | #endif |
| 20860 | |
| 20861 | int |
| 20862 | main () |
| 20863 | { |
| 20864 | return f != $ac_func; |
| 20865 | ; |
| 20866 | return 0; |
| 20867 | } |
| 20868 | _ACEOF |
| 20869 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20870 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20871 | (eval $ac_link) 2>conftest.er1 |
| 20872 | ac_status=$? |
| 20873 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20874 | rm -f conftest.er1 |
| 20875 | cat conftest.err >&5 |
| 20876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20877 | (exit $ac_status); } && |
| 20878 | { ac_try='test -z "$ac_c_werror_flag" |
| 20879 | || test ! -s conftest.err' |
| 20880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20881 | (eval $ac_try) 2>&5 |
| 20882 | ac_status=$? |
| 20883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20884 | (exit $ac_status); }; } && |
| 20885 | { ac_try='test -s conftest$ac_exeext' |
| 20886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20887 | (eval $ac_try) 2>&5 |
| 20888 | ac_status=$? |
| 20889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20890 | (exit $ac_status); }; }; then |
| 20891 | eval "$as_ac_var=yes" |
| 20892 | else |
| 20893 | echo "$as_me: failed program was:" >&5 |
| 20894 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20895 | |
| 20896 | eval "$as_ac_var=no" |
| 20897 | fi |
| 20898 | rm -f conftest.err conftest.$ac_objext \ |
| 20899 | conftest$ac_exeext conftest.$ac_ext |
| 20900 | fi |
| 20901 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 20902 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 20903 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 20904 | cat >>confdefs.h <<_ACEOF |
| 20905 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 20906 | _ACEOF |
| 20907 | |
| 20908 | fi |
| 20909 | done |
| 20910 | |
| 20911 | if test $ac_cv_func_gettimeofday = yes; then |
| 20912 | echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 |
| 20913 | echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 |
| 20914 | if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then |
| 20915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20916 | else |
| 20917 | cat >conftest.$ac_ext <<_ACEOF |
| 20918 | /* confdefs.h. */ |
| 20919 | _ACEOF |
| 20920 | cat confdefs.h >>conftest.$ac_ext |
| 20921 | cat >>conftest.$ac_ext <<_ACEOF |
| 20922 | /* end confdefs.h. */ |
| 20923 | |
| 20924 | #ifdef TIME_WITH_SYS_TIME |
| 20925 | #include <sys/time.h> |
| 20926 | #include <time.h> |
| 20927 | #else |
| 20928 | #ifdef HAVE_SYS_TIME_H |
| 20929 | #include <sys/time.h> |
| 20930 | #else |
| 20931 | #include <time.h> |
| 20932 | #endif |
| 20933 | #endif |
| 20934 | int |
| 20935 | main () |
| 20936 | { |
| 20937 | struct timeval time; |
| 20938 | gettimeofday (&time, 0); |
| 20939 | ; |
| 20940 | return 0; |
| 20941 | } |
| 20942 | _ACEOF |
| 20943 | rm -f conftest.$ac_objext |
| 20944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20945 | (eval $ac_compile) 2>conftest.er1 |
| 20946 | ac_status=$? |
| 20947 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20948 | rm -f conftest.er1 |
| 20949 | cat conftest.err >&5 |
| 20950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20951 | (exit $ac_status); } && |
| 20952 | { ac_try='test -z "$ac_c_werror_flag" |
| 20953 | || test ! -s conftest.err' |
| 20954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20955 | (eval $ac_try) 2>&5 |
| 20956 | ac_status=$? |
| 20957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20958 | (exit $ac_status); }; } && |
| 20959 | { ac_try='test -s conftest.$ac_objext' |
| 20960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20961 | (eval $ac_try) 2>&5 |
| 20962 | ac_status=$? |
| 20963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20964 | (exit $ac_status); }; }; then |
| 20965 | emacs_cv_gettimeofday_two_arguments=yes |
| 20966 | else |
| 20967 | echo "$as_me: failed program was:" >&5 |
| 20968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20969 | |
| 20970 | emacs_cv_gettimeofday_two_arguments=no |
| 20971 | fi |
| 20972 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20973 | fi |
| 20974 | echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
| 20975 | echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 |
| 20976 | if test $emacs_cv_gettimeofday_two_arguments = no; then |
| 20977 | |
| 20978 | cat >>confdefs.h <<\_ACEOF |
| 20979 | #define GETTIMEOFDAY_ONE_ARGUMENT 1 |
| 20980 | _ACEOF |
| 20981 | |
| 20982 | fi |
| 20983 | fi |
| 20984 | fi |
| 20985 | |
| 20986 | # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE. |
| 20987 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 20988 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 20989 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 20990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20991 | else |
| 20992 | cat >conftest.$ac_ext <<_ACEOF |
| 20993 | /* confdefs.h. */ |
| 20994 | _ACEOF |
| 20995 | cat confdefs.h >>conftest.$ac_ext |
| 20996 | cat >>conftest.$ac_ext <<_ACEOF |
| 20997 | /* end confdefs.h. */ |
| 20998 | #include <sys/types.h> |
| 20999 | #include <$ac_cv_struct_tm> |
| 21000 | |
| 21001 | |
| 21002 | int |
| 21003 | main () |
| 21004 | { |
| 21005 | static struct tm ac_aggr; |
| 21006 | if (ac_aggr.tm_zone) |
| 21007 | return 0; |
| 21008 | ; |
| 21009 | return 0; |
| 21010 | } |
| 21011 | _ACEOF |
| 21012 | rm -f conftest.$ac_objext |
| 21013 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21014 | (eval $ac_compile) 2>conftest.er1 |
| 21015 | ac_status=$? |
| 21016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21017 | rm -f conftest.er1 |
| 21018 | cat conftest.err >&5 |
| 21019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21020 | (exit $ac_status); } && |
| 21021 | { ac_try='test -z "$ac_c_werror_flag" |
| 21022 | || test ! -s conftest.err' |
| 21023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21024 | (eval $ac_try) 2>&5 |
| 21025 | ac_status=$? |
| 21026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21027 | (exit $ac_status); }; } && |
| 21028 | { ac_try='test -s conftest.$ac_objext' |
| 21029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21030 | (eval $ac_try) 2>&5 |
| 21031 | ac_status=$? |
| 21032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21033 | (exit $ac_status); }; }; then |
| 21034 | ac_cv_member_struct_tm_tm_zone=yes |
| 21035 | else |
| 21036 | echo "$as_me: failed program was:" >&5 |
| 21037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21038 | |
| 21039 | cat >conftest.$ac_ext <<_ACEOF |
| 21040 | /* confdefs.h. */ |
| 21041 | _ACEOF |
| 21042 | cat confdefs.h >>conftest.$ac_ext |
| 21043 | cat >>conftest.$ac_ext <<_ACEOF |
| 21044 | /* end confdefs.h. */ |
| 21045 | #include <sys/types.h> |
| 21046 | #include <$ac_cv_struct_tm> |
| 21047 | |
| 21048 | |
| 21049 | int |
| 21050 | main () |
| 21051 | { |
| 21052 | static struct tm ac_aggr; |
| 21053 | if (sizeof ac_aggr.tm_zone) |
| 21054 | return 0; |
| 21055 | ; |
| 21056 | return 0; |
| 21057 | } |
| 21058 | _ACEOF |
| 21059 | rm -f conftest.$ac_objext |
| 21060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21061 | (eval $ac_compile) 2>conftest.er1 |
| 21062 | ac_status=$? |
| 21063 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21064 | rm -f conftest.er1 |
| 21065 | cat conftest.err >&5 |
| 21066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21067 | (exit $ac_status); } && |
| 21068 | { ac_try='test -z "$ac_c_werror_flag" |
| 21069 | || test ! -s conftest.err' |
| 21070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21071 | (eval $ac_try) 2>&5 |
| 21072 | ac_status=$? |
| 21073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21074 | (exit $ac_status); }; } && |
| 21075 | { ac_try='test -s conftest.$ac_objext' |
| 21076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21077 | (eval $ac_try) 2>&5 |
| 21078 | ac_status=$? |
| 21079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21080 | (exit $ac_status); }; }; then |
| 21081 | ac_cv_member_struct_tm_tm_zone=yes |
| 21082 | else |
| 21083 | echo "$as_me: failed program was:" >&5 |
| 21084 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21085 | |
| 21086 | ac_cv_member_struct_tm_tm_zone=no |
| 21087 | fi |
| 21088 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21089 | fi |
| 21090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21091 | fi |
| 21092 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 21093 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 21094 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 21095 | |
| 21096 | cat >>confdefs.h <<_ACEOF |
| 21097 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 21098 | _ACEOF |
| 21099 | |
| 21100 | |
| 21101 | fi |
| 21102 | |
| 21103 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 21104 | |
| 21105 | cat >>confdefs.h <<\_ACEOF |
| 21106 | #define HAVE_TM_ZONE 1 |
| 21107 | _ACEOF |
| 21108 | |
| 21109 | else |
| 21110 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 21111 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 21112 | if test "${ac_cv_var_tzname+set}" = set; then |
| 21113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21114 | else |
| 21115 | cat >conftest.$ac_ext <<_ACEOF |
| 21116 | /* confdefs.h. */ |
| 21117 | _ACEOF |
| 21118 | cat confdefs.h >>conftest.$ac_ext |
| 21119 | cat >>conftest.$ac_ext <<_ACEOF |
| 21120 | /* end confdefs.h. */ |
| 21121 | #include <time.h> |
| 21122 | #ifndef tzname /* For SGI. */ |
| 21123 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
| 21124 | #endif |
| 21125 | |
| 21126 | int |
| 21127 | main () |
| 21128 | { |
| 21129 | atoi(*tzname); |
| 21130 | ; |
| 21131 | return 0; |
| 21132 | } |
| 21133 | _ACEOF |
| 21134 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21136 | (eval $ac_link) 2>conftest.er1 |
| 21137 | ac_status=$? |
| 21138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21139 | rm -f conftest.er1 |
| 21140 | cat conftest.err >&5 |
| 21141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21142 | (exit $ac_status); } && |
| 21143 | { ac_try='test -z "$ac_c_werror_flag" |
| 21144 | || test ! -s conftest.err' |
| 21145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21146 | (eval $ac_try) 2>&5 |
| 21147 | ac_status=$? |
| 21148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21149 | (exit $ac_status); }; } && |
| 21150 | { ac_try='test -s conftest$ac_exeext' |
| 21151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21152 | (eval $ac_try) 2>&5 |
| 21153 | ac_status=$? |
| 21154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21155 | (exit $ac_status); }; }; then |
| 21156 | ac_cv_var_tzname=yes |
| 21157 | else |
| 21158 | echo "$as_me: failed program was:" >&5 |
| 21159 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21160 | |
| 21161 | ac_cv_var_tzname=no |
| 21162 | fi |
| 21163 | rm -f conftest.err conftest.$ac_objext \ |
| 21164 | conftest$ac_exeext conftest.$ac_ext |
| 21165 | fi |
| 21166 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 21167 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
| 21168 | if test $ac_cv_var_tzname = yes; then |
| 21169 | |
| 21170 | cat >>confdefs.h <<\_ACEOF |
| 21171 | #define HAVE_TZNAME 1 |
| 21172 | _ACEOF |
| 21173 | |
| 21174 | fi |
| 21175 | fi |
| 21176 | |
| 21177 | |
| 21178 | if test "$ac_cv_func_gettimeofday" = yes; then |
| 21179 | echo "$as_me:$LINENO: checking for struct timezone" >&5 |
| 21180 | echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 |
| 21181 | if test "${emacs_cv_struct_timezone+set}" = set; then |
| 21182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21183 | else |
| 21184 | cat >conftest.$ac_ext <<_ACEOF |
| 21185 | /* confdefs.h. */ |
| 21186 | _ACEOF |
| 21187 | cat confdefs.h >>conftest.$ac_ext |
| 21188 | cat >>conftest.$ac_ext <<_ACEOF |
| 21189 | /* end confdefs.h. */ |
| 21190 | #include <sys/time.h> |
| 21191 | int |
| 21192 | main () |
| 21193 | { |
| 21194 | struct timezone tz; |
| 21195 | ; |
| 21196 | return 0; |
| 21197 | } |
| 21198 | _ACEOF |
| 21199 | rm -f conftest.$ac_objext |
| 21200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21201 | (eval $ac_compile) 2>conftest.er1 |
| 21202 | ac_status=$? |
| 21203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21204 | rm -f conftest.er1 |
| 21205 | cat conftest.err >&5 |
| 21206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21207 | (exit $ac_status); } && |
| 21208 | { ac_try='test -z "$ac_c_werror_flag" |
| 21209 | || test ! -s conftest.err' |
| 21210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21211 | (eval $ac_try) 2>&5 |
| 21212 | ac_status=$? |
| 21213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21214 | (exit $ac_status); }; } && |
| 21215 | { ac_try='test -s conftest.$ac_objext' |
| 21216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21217 | (eval $ac_try) 2>&5 |
| 21218 | ac_status=$? |
| 21219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21220 | (exit $ac_status); }; }; then |
| 21221 | if test "$cross_compiling" = yes; then |
| 21222 | emacs_cv_struct_timezone=yes |
| 21223 | else |
| 21224 | cat >conftest.$ac_ext <<_ACEOF |
| 21225 | /* confdefs.h. */ |
| 21226 | _ACEOF |
| 21227 | cat confdefs.h >>conftest.$ac_ext |
| 21228 | cat >>conftest.$ac_ext <<_ACEOF |
| 21229 | /* end confdefs.h. */ |
| 21230 | |
| 21231 | #ifdef TIME_WITH_SYS_TIME |
| 21232 | #include <sys/time.h> |
| 21233 | #include <time.h> |
| 21234 | #else |
| 21235 | #ifdef HAVE_SYS_TIME_H |
| 21236 | #include <sys/time.h> |
| 21237 | #else |
| 21238 | #include <time.h> |
| 21239 | #endif |
| 21240 | #endif |
| 21241 | main () { |
| 21242 | struct timeval time; |
| 21243 | struct timezone dummy; |
| 21244 | exit (gettimeofday (&time, &dummy)); |
| 21245 | } |
| 21246 | _ACEOF |
| 21247 | rm -f conftest$ac_exeext |
| 21248 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21249 | (eval $ac_link) 2>&5 |
| 21250 | ac_status=$? |
| 21251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21252 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21254 | (eval $ac_try) 2>&5 |
| 21255 | ac_status=$? |
| 21256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21257 | (exit $ac_status); }; }; then |
| 21258 | emacs_cv_struct_timezone=yes |
| 21259 | else |
| 21260 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21261 | echo "$as_me: failed program was:" >&5 |
| 21262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21263 | |
| 21264 | ( exit $ac_status ) |
| 21265 | emacs_cv_struct_timezone=no |
| 21266 | fi |
| 21267 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 21268 | fi |
| 21269 | else |
| 21270 | echo "$as_me: failed program was:" >&5 |
| 21271 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21272 | |
| 21273 | emacs_cv_struct_timezone=no |
| 21274 | fi |
| 21275 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21276 | fi |
| 21277 | echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5 |
| 21278 | echo "${ECHO_T}$emacs_cv_struct_timezone" >&6 |
| 21279 | fi |
| 21280 | |
| 21281 | ok_so_far=yes |
| 21282 | echo "$as_me:$LINENO: checking for socket" >&5 |
| 21283 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
| 21284 | if test "${ac_cv_func_socket+set}" = set; then |
| 21285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21286 | else |
| 21287 | cat >conftest.$ac_ext <<_ACEOF |
| 21288 | /* confdefs.h. */ |
| 21289 | _ACEOF |
| 21290 | cat confdefs.h >>conftest.$ac_ext |
| 21291 | cat >>conftest.$ac_ext <<_ACEOF |
| 21292 | /* end confdefs.h. */ |
| 21293 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
| 21294 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21295 | #define socket innocuous_socket |
| 21296 | |
| 21297 | /* System header to define __stub macros and hopefully few prototypes, |
| 21298 | which can conflict with char socket (); below. |
| 21299 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 21300 | <limits.h> exists even on freestanding compilers. */ |
| 21301 | |
| 21302 | #ifdef __STDC__ |
| 21303 | # include <limits.h> |
| 21304 | #else |
| 21305 | # include <assert.h> |
| 21306 | #endif |
| 21307 | |
| 21308 | #undef socket |
| 21309 | |
| 21310 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 21311 | #ifdef __cplusplus |
| 21312 | extern "C" |
| 21313 | { |
| 21314 | #endif |
| 21315 | /* We use char because int might match the return type of a gcc2 |
| 21316 | builtin and then its argument prototype would still apply. */ |
| 21317 | char socket (); |
| 21318 | /* The GNU C library defines this for functions which it implements |
| 21319 | to always fail with ENOSYS. Some functions are actually named |
| 21320 | something starting with __ and the normal name is an alias. */ |
| 21321 | #if defined (__stub_socket) || defined (__stub___socket) |
| 21322 | choke me |
| 21323 | #else |
| 21324 | char (*f) () = socket; |
| 21325 | #endif |
| 21326 | #ifdef __cplusplus |
| 21327 | } |
| 21328 | #endif |
| 21329 | |
| 21330 | int |
| 21331 | main () |
| 21332 | { |
| 21333 | return f != socket; |
| 21334 | ; |
| 21335 | return 0; |
| 21336 | } |
| 21337 | _ACEOF |
| 21338 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21340 | (eval $ac_link) 2>conftest.er1 |
| 21341 | ac_status=$? |
| 21342 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21343 | rm -f conftest.er1 |
| 21344 | cat conftest.err >&5 |
| 21345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21346 | (exit $ac_status); } && |
| 21347 | { ac_try='test -z "$ac_c_werror_flag" |
| 21348 | || test ! -s conftest.err' |
| 21349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21350 | (eval $ac_try) 2>&5 |
| 21351 | ac_status=$? |
| 21352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21353 | (exit $ac_status); }; } && |
| 21354 | { ac_try='test -s conftest$ac_exeext' |
| 21355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21356 | (eval $ac_try) 2>&5 |
| 21357 | ac_status=$? |
| 21358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21359 | (exit $ac_status); }; }; then |
| 21360 | ac_cv_func_socket=yes |
| 21361 | else |
| 21362 | echo "$as_me: failed program was:" >&5 |
| 21363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21364 | |
| 21365 | ac_cv_func_socket=no |
| 21366 | fi |
| 21367 | rm -f conftest.err conftest.$ac_objext \ |
| 21368 | conftest$ac_exeext conftest.$ac_ext |
| 21369 | fi |
| 21370 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
| 21371 | echo "${ECHO_T}$ac_cv_func_socket" >&6 |
| 21372 | if test $ac_cv_func_socket = yes; then |
| 21373 | : |
| 21374 | else |
| 21375 | ok_so_far=no |
| 21376 | fi |
| 21377 | |
| 21378 | if test $ok_so_far = yes; then |
| 21379 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 21380 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
| 21381 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
| 21382 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 21383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21384 | fi |
| 21385 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 21386 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
| 21387 | else |
| 21388 | # Is the header compilable? |
| 21389 | echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 |
| 21390 | echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6 |
| 21391 | cat >conftest.$ac_ext <<_ACEOF |
| 21392 | /* confdefs.h. */ |
| 21393 | _ACEOF |
| 21394 | cat confdefs.h >>conftest.$ac_ext |
| 21395 | cat >>conftest.$ac_ext <<_ACEOF |
| 21396 | /* end confdefs.h. */ |
| 21397 | $ac_includes_default |
| 21398 | #include <netinet/in.h> |
| 21399 | _ACEOF |
| 21400 | rm -f conftest.$ac_objext |
| 21401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21402 | (eval $ac_compile) 2>conftest.er1 |
| 21403 | ac_status=$? |
| 21404 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21405 | rm -f conftest.er1 |
| 21406 | cat conftest.err >&5 |
| 21407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21408 | (exit $ac_status); } && |
| 21409 | { ac_try='test -z "$ac_c_werror_flag" |
| 21410 | || test ! -s conftest.err' |
| 21411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21412 | (eval $ac_try) 2>&5 |
| 21413 | ac_status=$? |
| 21414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21415 | (exit $ac_status); }; } && |
| 21416 | { ac_try='test -s conftest.$ac_objext' |
| 21417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21418 | (eval $ac_try) 2>&5 |
| 21419 | ac_status=$? |
| 21420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21421 | (exit $ac_status); }; }; then |
| 21422 | ac_header_compiler=yes |
| 21423 | else |
| 21424 | echo "$as_me: failed program was:" >&5 |
| 21425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21426 | |
| 21427 | ac_header_compiler=no |
| 21428 | fi |
| 21429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21430 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 21431 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 21432 | |
| 21433 | # Is the header present? |
| 21434 | echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 |
| 21435 | echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6 |
| 21436 | cat >conftest.$ac_ext <<_ACEOF |
| 21437 | /* confdefs.h. */ |
| 21438 | _ACEOF |
| 21439 | cat confdefs.h >>conftest.$ac_ext |
| 21440 | cat >>conftest.$ac_ext <<_ACEOF |
| 21441 | /* end confdefs.h. */ |
| 21442 | #include <netinet/in.h> |
| 21443 | _ACEOF |
| 21444 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 21445 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 21446 | ac_status=$? |
| 21447 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21448 | rm -f conftest.er1 |
| 21449 | cat conftest.err >&5 |
| 21450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21451 | (exit $ac_status); } >/dev/null; then |
| 21452 | if test -s conftest.err; then |
| 21453 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 21454 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 21455 | else |
| 21456 | ac_cpp_err= |
| 21457 | fi |
| 21458 | else |
| 21459 | ac_cpp_err=yes |
| 21460 | fi |
| 21461 | if test -z "$ac_cpp_err"; then |
| 21462 | ac_header_preproc=yes |
| 21463 | else |
| 21464 | echo "$as_me: failed program was:" >&5 |
| 21465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21466 | |
| 21467 | ac_header_preproc=no |
| 21468 | fi |
| 21469 | rm -f conftest.err conftest.$ac_ext |
| 21470 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 21471 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 21472 | |
| 21473 | # So? What about this header? |
| 21474 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 21475 | yes:no: ) |
| 21476 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 21477 | echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 21478 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 |
| 21479 | echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} |
| 21480 | ac_header_preproc=yes |
| 21481 | ;; |
| 21482 | no:yes:* ) |
| 21483 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 |
| 21484 | echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} |
| 21485 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 |
| 21486 | echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} |
| 21487 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 |
| 21488 | echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} |
| 21489 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 21490 | echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 21491 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 |
| 21492 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} |
| 21493 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 |
| 21494 | echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} |
| 21495 | ( |
| 21496 | cat <<\_ASBOX |
| 21497 | ## ------------------------------------------ ## |
| 21498 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 21499 | ## ------------------------------------------ ## |
| 21500 | _ASBOX |
| 21501 | ) | |
| 21502 | sed "s/^/$as_me: WARNING: /" >&2 |
| 21503 | ;; |
| 21504 | esac |
| 21505 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
| 21506 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
| 21507 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 21508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21509 | else |
| 21510 | ac_cv_header_netinet_in_h=$ac_header_preproc |
| 21511 | fi |
| 21512 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 21513 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
| 21514 | |
| 21515 | fi |
| 21516 | if test $ac_cv_header_netinet_in_h = yes; then |
| 21517 | : |
| 21518 | else |
| 21519 | ok_so_far=no |
| 21520 | fi |
| 21521 | |
| 21522 | |
| 21523 | fi |
| 21524 | if test $ok_so_far = yes; then |
| 21525 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 21526 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
| 21527 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
| 21528 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 21529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21530 | fi |
| 21531 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 21532 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
| 21533 | else |
| 21534 | # Is the header compilable? |
| 21535 | echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 |
| 21536 | echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6 |
| 21537 | cat >conftest.$ac_ext <<_ACEOF |
| 21538 | /* confdefs.h. */ |
| 21539 | _ACEOF |
| 21540 | cat confdefs.h >>conftest.$ac_ext |
| 21541 | cat >>conftest.$ac_ext <<_ACEOF |
| 21542 | /* end confdefs.h. */ |
| 21543 | $ac_includes_default |
| 21544 | #include <arpa/inet.h> |
| 21545 | _ACEOF |
| 21546 | rm -f conftest.$ac_objext |
| 21547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21548 | (eval $ac_compile) 2>conftest.er1 |
| 21549 | ac_status=$? |
| 21550 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21551 | rm -f conftest.er1 |
| 21552 | cat conftest.err >&5 |
| 21553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21554 | (exit $ac_status); } && |
| 21555 | { ac_try='test -z "$ac_c_werror_flag" |
| 21556 | || test ! -s conftest.err' |
| 21557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21558 | (eval $ac_try) 2>&5 |
| 21559 | ac_status=$? |
| 21560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21561 | (exit $ac_status); }; } && |
| 21562 | { ac_try='test -s conftest.$ac_objext' |
| 21563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21564 | (eval $ac_try) 2>&5 |
| 21565 | ac_status=$? |
| 21566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21567 | (exit $ac_status); }; }; then |
| 21568 | ac_header_compiler=yes |
| 21569 | else |
| 21570 | echo "$as_me: failed program was:" >&5 |
| 21571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21572 | |
| 21573 | ac_header_compiler=no |
| 21574 | fi |
| 21575 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21576 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 21577 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 21578 | |
| 21579 | # Is the header present? |
| 21580 | echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 |
| 21581 | echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6 |
| 21582 | cat >conftest.$ac_ext <<_ACEOF |
| 21583 | /* confdefs.h. */ |
| 21584 | _ACEOF |
| 21585 | cat confdefs.h >>conftest.$ac_ext |
| 21586 | cat >>conftest.$ac_ext <<_ACEOF |
| 21587 | /* end confdefs.h. */ |
| 21588 | #include <arpa/inet.h> |
| 21589 | _ACEOF |
| 21590 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 21591 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 21592 | ac_status=$? |
| 21593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21594 | rm -f conftest.er1 |
| 21595 | cat conftest.err >&5 |
| 21596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21597 | (exit $ac_status); } >/dev/null; then |
| 21598 | if test -s conftest.err; then |
| 21599 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 21600 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 21601 | else |
| 21602 | ac_cpp_err= |
| 21603 | fi |
| 21604 | else |
| 21605 | ac_cpp_err=yes |
| 21606 | fi |
| 21607 | if test -z "$ac_cpp_err"; then |
| 21608 | ac_header_preproc=yes |
| 21609 | else |
| 21610 | echo "$as_me: failed program was:" >&5 |
| 21611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21612 | |
| 21613 | ac_header_preproc=no |
| 21614 | fi |
| 21615 | rm -f conftest.err conftest.$ac_ext |
| 21616 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 21617 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 21618 | |
| 21619 | # So? What about this header? |
| 21620 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 21621 | yes:no: ) |
| 21622 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 21623 | echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 21624 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 |
| 21625 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} |
| 21626 | ac_header_preproc=yes |
| 21627 | ;; |
| 21628 | no:yes:* ) |
| 21629 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 |
| 21630 | echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} |
| 21631 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 |
| 21632 | echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} |
| 21633 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 |
| 21634 | echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} |
| 21635 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 21636 | echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 21637 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 |
| 21638 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
| 21639 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 |
| 21640 | echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} |
| 21641 | ( |
| 21642 | cat <<\_ASBOX |
| 21643 | ## ------------------------------------------ ## |
| 21644 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 21645 | ## ------------------------------------------ ## |
| 21646 | _ASBOX |
| 21647 | ) | |
| 21648 | sed "s/^/$as_me: WARNING: /" >&2 |
| 21649 | ;; |
| 21650 | esac |
| 21651 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
| 21652 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
| 21653 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 21654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21655 | else |
| 21656 | ac_cv_header_arpa_inet_h=$ac_header_preproc |
| 21657 | fi |
| 21658 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 21659 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
| 21660 | |
| 21661 | fi |
| 21662 | if test $ac_cv_header_arpa_inet_h = yes; then |
| 21663 | : |
| 21664 | else |
| 21665 | ok_so_far=no |
| 21666 | fi |
| 21667 | |
| 21668 | |
| 21669 | fi |
| 21670 | if test $ok_so_far = yes; then |
| 21671 | |
| 21672 | cat >>confdefs.h <<\_ACEOF |
| 21673 | #define HAVE_INET_SOCKETS 1 |
| 21674 | _ACEOF |
| 21675 | |
| 21676 | fi |
| 21677 | |
| 21678 | |
| 21679 | for ac_header in sys/ioctl.h |
| 21680 | do |
| 21681 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21682 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21683 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21684 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 21685 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21687 | fi |
| 21688 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 21689 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 21690 | else |
| 21691 | # Is the header compilable? |
| 21692 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 21693 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 21694 | cat >conftest.$ac_ext <<_ACEOF |
| 21695 | /* confdefs.h. */ |
| 21696 | _ACEOF |
| 21697 | cat confdefs.h >>conftest.$ac_ext |
| 21698 | cat >>conftest.$ac_ext <<_ACEOF |
| 21699 | /* end confdefs.h. */ |
| 21700 | $ac_includes_default |
| 21701 | #include <$ac_header> |
| 21702 | _ACEOF |
| 21703 | rm -f conftest.$ac_objext |
| 21704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21705 | (eval $ac_compile) 2>conftest.er1 |
| 21706 | ac_status=$? |
| 21707 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21708 | rm -f conftest.er1 |
| 21709 | cat conftest.err >&5 |
| 21710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21711 | (exit $ac_status); } && |
| 21712 | { ac_try='test -z "$ac_c_werror_flag" |
| 21713 | || test ! -s conftest.err' |
| 21714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21715 | (eval $ac_try) 2>&5 |
| 21716 | ac_status=$? |
| 21717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21718 | (exit $ac_status); }; } && |
| 21719 | { ac_try='test -s conftest.$ac_objext' |
| 21720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21721 | (eval $ac_try) 2>&5 |
| 21722 | ac_status=$? |
| 21723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21724 | (exit $ac_status); }; }; then |
| 21725 | ac_header_compiler=yes |
| 21726 | else |
| 21727 | echo "$as_me: failed program was:" >&5 |
| 21728 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21729 | |
| 21730 | ac_header_compiler=no |
| 21731 | fi |
| 21732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21733 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 21734 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 21735 | |
| 21736 | # Is the header present? |
| 21737 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 21738 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 21739 | cat >conftest.$ac_ext <<_ACEOF |
| 21740 | /* confdefs.h. */ |
| 21741 | _ACEOF |
| 21742 | cat confdefs.h >>conftest.$ac_ext |
| 21743 | cat >>conftest.$ac_ext <<_ACEOF |
| 21744 | /* end confdefs.h. */ |
| 21745 | #include <$ac_header> |
| 21746 | _ACEOF |
| 21747 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 21748 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 21749 | ac_status=$? |
| 21750 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21751 | rm -f conftest.er1 |
| 21752 | cat conftest.err >&5 |
| 21753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21754 | (exit $ac_status); } >/dev/null; then |
| 21755 | if test -s conftest.err; then |
| 21756 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 21757 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 21758 | else |
| 21759 | ac_cpp_err= |
| 21760 | fi |
| 21761 | else |
| 21762 | ac_cpp_err=yes |
| 21763 | fi |
| 21764 | if test -z "$ac_cpp_err"; then |
| 21765 | ac_header_preproc=yes |
| 21766 | else |
| 21767 | echo "$as_me: failed program was:" >&5 |
| 21768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21769 | |
| 21770 | ac_header_preproc=no |
| 21771 | fi |
| 21772 | rm -f conftest.err conftest.$ac_ext |
| 21773 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 21774 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 21775 | |
| 21776 | # So? What about this header? |
| 21777 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 21778 | yes:no: ) |
| 21779 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 21780 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 21781 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 21782 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 21783 | ac_header_preproc=yes |
| 21784 | ;; |
| 21785 | no:yes:* ) |
| 21786 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 21787 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 21788 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 21789 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 21790 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 21791 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 21792 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 21793 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 21794 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 21795 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 21796 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 21797 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 21798 | ( |
| 21799 | cat <<\_ASBOX |
| 21800 | ## ------------------------------------------ ## |
| 21801 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 21802 | ## ------------------------------------------ ## |
| 21803 | _ASBOX |
| 21804 | ) | |
| 21805 | sed "s/^/$as_me: WARNING: /" >&2 |
| 21806 | ;; |
| 21807 | esac |
| 21808 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21809 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 21810 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21812 | else |
| 21813 | eval "$as_ac_Header=\$ac_header_preproc" |
| 21814 | fi |
| 21815 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 21816 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 21817 | |
| 21818 | fi |
| 21819 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 21820 | cat >>confdefs.h <<_ACEOF |
| 21821 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21822 | _ACEOF |
| 21823 | |
| 21824 | fi |
| 21825 | |
| 21826 | done |
| 21827 | |
| 21828 | |
| 21829 | if test -f /usr/lpp/X11/bin/smt.exp; then |
| 21830 | |
| 21831 | cat >>confdefs.h <<\_ACEOF |
| 21832 | #define HAVE_AIX_SMT_EXP 1 |
| 21833 | _ACEOF |
| 21834 | |
| 21835 | fi |
| 21836 | |
| 21837 | echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5 |
| 21838 | echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6 |
| 21839 | if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
| 21840 | echo "$as_me:$LINENO: result: yes" >&5 |
| 21841 | echo "${ECHO_T}yes" >&6 |
| 21842 | |
| 21843 | cat >>confdefs.h <<\_ACEOF |
| 21844 | #define HAVE_DEV_PTMX 1 |
| 21845 | _ACEOF |
| 21846 | |
| 21847 | else |
| 21848 | echo "$as_me:$LINENO: result: no" >&5 |
| 21849 | echo "${ECHO_T}no" >&6 |
| 21850 | fi |
| 21851 | |
| 21852 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 21853 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 21854 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 21855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21856 | else |
| 21857 | cat >conftest.$ac_ext <<_ACEOF |
| 21858 | /* confdefs.h. */ |
| 21859 | _ACEOF |
| 21860 | cat confdefs.h >>conftest.$ac_ext |
| 21861 | cat >>conftest.$ac_ext <<_ACEOF |
| 21862 | /* end confdefs.h. */ |
| 21863 | $ac_includes_default |
| 21864 | int |
| 21865 | main () |
| 21866 | { |
| 21867 | if ((pid_t *) 0) |
| 21868 | return 0; |
| 21869 | if (sizeof (pid_t)) |
| 21870 | return 0; |
| 21871 | ; |
| 21872 | return 0; |
| 21873 | } |
| 21874 | _ACEOF |
| 21875 | rm -f conftest.$ac_objext |
| 21876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21877 | (eval $ac_compile) 2>conftest.er1 |
| 21878 | ac_status=$? |
| 21879 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21880 | rm -f conftest.er1 |
| 21881 | cat conftest.err >&5 |
| 21882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21883 | (exit $ac_status); } && |
| 21884 | { ac_try='test -z "$ac_c_werror_flag" |
| 21885 | || test ! -s conftest.err' |
| 21886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21887 | (eval $ac_try) 2>&5 |
| 21888 | ac_status=$? |
| 21889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21890 | (exit $ac_status); }; } && |
| 21891 | { ac_try='test -s conftest.$ac_objext' |
| 21892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21893 | (eval $ac_try) 2>&5 |
| 21894 | ac_status=$? |
| 21895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21896 | (exit $ac_status); }; }; then |
| 21897 | ac_cv_type_pid_t=yes |
| 21898 | else |
| 21899 | echo "$as_me: failed program was:" >&5 |
| 21900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21901 | |
| 21902 | ac_cv_type_pid_t=no |
| 21903 | fi |
| 21904 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21905 | fi |
| 21906 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 21907 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 21908 | if test $ac_cv_type_pid_t = yes; then |
| 21909 | : |
| 21910 | else |
| 21911 | |
| 21912 | cat >>confdefs.h <<_ACEOF |
| 21913 | #define pid_t int |
| 21914 | _ACEOF |
| 21915 | |
| 21916 | fi |
| 21917 | |
| 21918 | |
| 21919 | |
| 21920 | for ac_header in unistd.h vfork.h |
| 21921 | do |
| 21922 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21923 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21924 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21925 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 21926 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21928 | fi |
| 21929 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 21930 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 21931 | else |
| 21932 | # Is the header compilable? |
| 21933 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 21934 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 21935 | cat >conftest.$ac_ext <<_ACEOF |
| 21936 | /* confdefs.h. */ |
| 21937 | _ACEOF |
| 21938 | cat confdefs.h >>conftest.$ac_ext |
| 21939 | cat >>conftest.$ac_ext <<_ACEOF |
| 21940 | /* end confdefs.h. */ |
| 21941 | $ac_includes_default |
| 21942 | #include <$ac_header> |
| 21943 | _ACEOF |
| 21944 | rm -f conftest.$ac_objext |
| 21945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21946 | (eval $ac_compile) 2>conftest.er1 |
| 21947 | ac_status=$? |
| 21948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21949 | rm -f conftest.er1 |
| 21950 | cat conftest.err >&5 |
| 21951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21952 | (exit $ac_status); } && |
| 21953 | { ac_try='test -z "$ac_c_werror_flag" |
| 21954 | || test ! -s conftest.err' |
| 21955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21956 | (eval $ac_try) 2>&5 |
| 21957 | ac_status=$? |
| 21958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21959 | (exit $ac_status); }; } && |
| 21960 | { ac_try='test -s conftest.$ac_objext' |
| 21961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21962 | (eval $ac_try) 2>&5 |
| 21963 | ac_status=$? |
| 21964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21965 | (exit $ac_status); }; }; then |
| 21966 | ac_header_compiler=yes |
| 21967 | else |
| 21968 | echo "$as_me: failed program was:" >&5 |
| 21969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21970 | |
| 21971 | ac_header_compiler=no |
| 21972 | fi |
| 21973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21974 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 21975 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 21976 | |
| 21977 | # Is the header present? |
| 21978 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 21979 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 21980 | cat >conftest.$ac_ext <<_ACEOF |
| 21981 | /* confdefs.h. */ |
| 21982 | _ACEOF |
| 21983 | cat confdefs.h >>conftest.$ac_ext |
| 21984 | cat >>conftest.$ac_ext <<_ACEOF |
| 21985 | /* end confdefs.h. */ |
| 21986 | #include <$ac_header> |
| 21987 | _ACEOF |
| 21988 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 21989 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 21990 | ac_status=$? |
| 21991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21992 | rm -f conftest.er1 |
| 21993 | cat conftest.err >&5 |
| 21994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21995 | (exit $ac_status); } >/dev/null; then |
| 21996 | if test -s conftest.err; then |
| 21997 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 21998 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 21999 | else |
| 22000 | ac_cpp_err= |
| 22001 | fi |
| 22002 | else |
| 22003 | ac_cpp_err=yes |
| 22004 | fi |
| 22005 | if test -z "$ac_cpp_err"; then |
| 22006 | ac_header_preproc=yes |
| 22007 | else |
| 22008 | echo "$as_me: failed program was:" >&5 |
| 22009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22010 | |
| 22011 | ac_header_preproc=no |
| 22012 | fi |
| 22013 | rm -f conftest.err conftest.$ac_ext |
| 22014 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 22015 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 22016 | |
| 22017 | # So? What about this header? |
| 22018 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 22019 | yes:no: ) |
| 22020 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 22021 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 22022 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 22023 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 22024 | ac_header_preproc=yes |
| 22025 | ;; |
| 22026 | no:yes:* ) |
| 22027 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 22028 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 22029 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 22030 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 22031 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 22032 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 22033 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 22034 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 22035 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 22036 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 22037 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 22038 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 22039 | ( |
| 22040 | cat <<\_ASBOX |
| 22041 | ## ------------------------------------------ ## |
| 22042 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 22043 | ## ------------------------------------------ ## |
| 22044 | _ASBOX |
| 22045 | ) | |
| 22046 | sed "s/^/$as_me: WARNING: /" >&2 |
| 22047 | ;; |
| 22048 | esac |
| 22049 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 22050 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 22051 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 22052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22053 | else |
| 22054 | eval "$as_ac_Header=\$ac_header_preproc" |
| 22055 | fi |
| 22056 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 22057 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 22058 | |
| 22059 | fi |
| 22060 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 22061 | cat >>confdefs.h <<_ACEOF |
| 22062 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 22063 | _ACEOF |
| 22064 | |
| 22065 | fi |
| 22066 | |
| 22067 | done |
| 22068 | |
| 22069 | |
| 22070 | |
| 22071 | for ac_func in fork vfork |
| 22072 | do |
| 22073 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22074 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22075 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 22076 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 22077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22078 | else |
| 22079 | cat >conftest.$ac_ext <<_ACEOF |
| 22080 | /* confdefs.h. */ |
| 22081 | _ACEOF |
| 22082 | cat confdefs.h >>conftest.$ac_ext |
| 22083 | cat >>conftest.$ac_ext <<_ACEOF |
| 22084 | /* end confdefs.h. */ |
| 22085 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22086 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22087 | #define $ac_func innocuous_$ac_func |
| 22088 | |
| 22089 | /* System header to define __stub macros and hopefully few prototypes, |
| 22090 | which can conflict with char $ac_func (); below. |
| 22091 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22092 | <limits.h> exists even on freestanding compilers. */ |
| 22093 | |
| 22094 | #ifdef __STDC__ |
| 22095 | # include <limits.h> |
| 22096 | #else |
| 22097 | # include <assert.h> |
| 22098 | #endif |
| 22099 | |
| 22100 | #undef $ac_func |
| 22101 | |
| 22102 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 22103 | #ifdef __cplusplus |
| 22104 | extern "C" |
| 22105 | { |
| 22106 | #endif |
| 22107 | /* We use char because int might match the return type of a gcc2 |
| 22108 | builtin and then its argument prototype would still apply. */ |
| 22109 | char $ac_func (); |
| 22110 | /* The GNU C library defines this for functions which it implements |
| 22111 | to always fail with ENOSYS. Some functions are actually named |
| 22112 | something starting with __ and the normal name is an alias. */ |
| 22113 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 22114 | choke me |
| 22115 | #else |
| 22116 | char (*f) () = $ac_func; |
| 22117 | #endif |
| 22118 | #ifdef __cplusplus |
| 22119 | } |
| 22120 | #endif |
| 22121 | |
| 22122 | int |
| 22123 | main () |
| 22124 | { |
| 22125 | return f != $ac_func; |
| 22126 | ; |
| 22127 | return 0; |
| 22128 | } |
| 22129 | _ACEOF |
| 22130 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22132 | (eval $ac_link) 2>conftest.er1 |
| 22133 | ac_status=$? |
| 22134 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22135 | rm -f conftest.er1 |
| 22136 | cat conftest.err >&5 |
| 22137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22138 | (exit $ac_status); } && |
| 22139 | { ac_try='test -z "$ac_c_werror_flag" |
| 22140 | || test ! -s conftest.err' |
| 22141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22142 | (eval $ac_try) 2>&5 |
| 22143 | ac_status=$? |
| 22144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22145 | (exit $ac_status); }; } && |
| 22146 | { ac_try='test -s conftest$ac_exeext' |
| 22147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22148 | (eval $ac_try) 2>&5 |
| 22149 | ac_status=$? |
| 22150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22151 | (exit $ac_status); }; }; then |
| 22152 | eval "$as_ac_var=yes" |
| 22153 | else |
| 22154 | echo "$as_me: failed program was:" >&5 |
| 22155 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22156 | |
| 22157 | eval "$as_ac_var=no" |
| 22158 | fi |
| 22159 | rm -f conftest.err conftest.$ac_objext \ |
| 22160 | conftest$ac_exeext conftest.$ac_ext |
| 22161 | fi |
| 22162 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 22163 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 22164 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 22165 | cat >>confdefs.h <<_ACEOF |
| 22166 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 22167 | _ACEOF |
| 22168 | |
| 22169 | fi |
| 22170 | done |
| 22171 | |
| 22172 | if test "x$ac_cv_func_fork" = xyes; then |
| 22173 | echo "$as_me:$LINENO: checking for working fork" >&5 |
| 22174 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
| 22175 | if test "${ac_cv_func_fork_works+set}" = set; then |
| 22176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22177 | else |
| 22178 | if test "$cross_compiling" = yes; then |
| 22179 | ac_cv_func_fork_works=cross |
| 22180 | else |
| 22181 | cat >conftest.$ac_ext <<_ACEOF |
| 22182 | /* By Ruediger Kuhlmann. */ |
| 22183 | #include <sys/types.h> |
| 22184 | #if HAVE_UNISTD_H |
| 22185 | # include <unistd.h> |
| 22186 | #endif |
| 22187 | /* Some systems only have a dummy stub for fork() */ |
| 22188 | int main () |
| 22189 | { |
| 22190 | if (fork() < 0) |
| 22191 | exit (1); |
| 22192 | exit (0); |
| 22193 | } |
| 22194 | _ACEOF |
| 22195 | rm -f conftest$ac_exeext |
| 22196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22197 | (eval $ac_link) 2>&5 |
| 22198 | ac_status=$? |
| 22199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22200 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 22201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22202 | (eval $ac_try) 2>&5 |
| 22203 | ac_status=$? |
| 22204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22205 | (exit $ac_status); }; }; then |
| 22206 | ac_cv_func_fork_works=yes |
| 22207 | else |
| 22208 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22209 | echo "$as_me: failed program was:" >&5 |
| 22210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22211 | |
| 22212 | ( exit $ac_status ) |
| 22213 | ac_cv_func_fork_works=no |
| 22214 | fi |
| 22215 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 22216 | fi |
| 22217 | fi |
| 22218 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
| 22219 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 |
| 22220 | |
| 22221 | else |
| 22222 | ac_cv_func_fork_works=$ac_cv_func_fork |
| 22223 | fi |
| 22224 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 22225 | case $host in |
| 22226 | *-*-amigaos* | *-*-msdosdjgpp*) |
| 22227 | # Override, as these systems have only a dummy fork() stub |
| 22228 | ac_cv_func_fork_works=no |
| 22229 | ;; |
| 22230 | *) |
| 22231 | ac_cv_func_fork_works=yes |
| 22232 | ;; |
| 22233 | esac |
| 22234 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
| 22235 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
| 22236 | fi |
| 22237 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 22238 | if test "x$ac_cv_func_vfork" = xyes; then |
| 22239 | echo "$as_me:$LINENO: checking for working vfork" >&5 |
| 22240 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 |
| 22241 | if test "${ac_cv_func_vfork_works+set}" = set; then |
| 22242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22243 | else |
| 22244 | if test "$cross_compiling" = yes; then |
| 22245 | ac_cv_func_vfork_works=cross |
| 22246 | else |
| 22247 | cat >conftest.$ac_ext <<_ACEOF |
| 22248 | /* confdefs.h. */ |
| 22249 | _ACEOF |
| 22250 | cat confdefs.h >>conftest.$ac_ext |
| 22251 | cat >>conftest.$ac_ext <<_ACEOF |
| 22252 | /* end confdefs.h. */ |
| 22253 | /* Thanks to Paul Eggert for this test. */ |
| 22254 | #include <stdio.h> |
| 22255 | #include <stdlib.h> |
| 22256 | #include <sys/types.h> |
| 22257 | #include <sys/stat.h> |
| 22258 | #include <sys/wait.h> |
| 22259 | #if HAVE_UNISTD_H |
| 22260 | # include <unistd.h> |
| 22261 | #endif |
| 22262 | #if HAVE_VFORK_H |
| 22263 | # include <vfork.h> |
| 22264 | #endif |
| 22265 | /* On some sparc systems, changes by the child to local and incoming |
| 22266 | argument registers are propagated back to the parent. The compiler |
| 22267 | is told about this with #include <vfork.h>, but some compilers |
| 22268 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
| 22269 | static variable whose address is put into a register that is |
| 22270 | clobbered by the vfork. */ |
| 22271 | static void |
| 22272 | #ifdef __cplusplus |
| 22273 | sparc_address_test (int arg) |
| 22274 | # else |
| 22275 | sparc_address_test (arg) int arg; |
| 22276 | #endif |
| 22277 | { |
| 22278 | static pid_t child; |
| 22279 | if (!child) { |
| 22280 | child = vfork (); |
| 22281 | if (child < 0) { |
| 22282 | perror ("vfork"); |
| 22283 | _exit(2); |
| 22284 | } |
| 22285 | if (!child) { |
| 22286 | arg = getpid(); |
| 22287 | write(-1, "", 0); |
| 22288 | _exit (arg); |
| 22289 | } |
| 22290 | } |
| 22291 | } |
| 22292 | |
| 22293 | int |
| 22294 | main () |
| 22295 | { |
| 22296 | pid_t parent = getpid (); |
| 22297 | pid_t child; |
| 22298 | |
| 22299 | sparc_address_test (0); |
| 22300 | |
| 22301 | child = vfork (); |
| 22302 | |
| 22303 | if (child == 0) { |
| 22304 | /* Here is another test for sparc vfork register problems. This |
| 22305 | test uses lots of local variables, at least as many local |
| 22306 | variables as main has allocated so far including compiler |
| 22307 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
| 22308 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
| 22309 | reuse the register of parent for one of the local variables, |
| 22310 | since it will think that parent can't possibly be used any more |
| 22311 | in this routine. Assigning to the local variable will thus |
| 22312 | munge parent in the parent process. */ |
| 22313 | pid_t |
| 22314 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
| 22315 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
| 22316 | /* Convince the compiler that p..p7 are live; otherwise, it might |
| 22317 | use the same hardware register for all 8 local variables. */ |
| 22318 | if (p != p1 || p != p2 || p != p3 || p != p4 |
| 22319 | || p != p5 || p != p6 || p != p7) |
| 22320 | _exit(1); |
| 22321 | |
| 22322 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
| 22323 | from child file descriptors. If the child closes a descriptor |
| 22324 | before it execs or exits, this munges the parent's descriptor |
| 22325 | as well. Test for this by closing stdout in the child. */ |
| 22326 | _exit(close(fileno(stdout)) != 0); |
| 22327 | } else { |
| 22328 | int status; |
| 22329 | struct stat st; |
| 22330 | |
| 22331 | while (wait(&status) != child) |
| 22332 | ; |
| 22333 | exit( |
| 22334 | /* Was there some problem with vforking? */ |
| 22335 | child < 0 |
| 22336 | |
| 22337 | /* Did the child fail? (This shouldn't happen.) */ |
| 22338 | || status |
| 22339 | |
| 22340 | /* Did the vfork/compiler bug occur? */ |
| 22341 | || parent != getpid() |
| 22342 | |
| 22343 | /* Did the file descriptor bug occur? */ |
| 22344 | || fstat(fileno(stdout), &st) != 0 |
| 22345 | ); |
| 22346 | } |
| 22347 | } |
| 22348 | _ACEOF |
| 22349 | rm -f conftest$ac_exeext |
| 22350 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22351 | (eval $ac_link) 2>&5 |
| 22352 | ac_status=$? |
| 22353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22354 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 22355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22356 | (eval $ac_try) 2>&5 |
| 22357 | ac_status=$? |
| 22358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22359 | (exit $ac_status); }; }; then |
| 22360 | ac_cv_func_vfork_works=yes |
| 22361 | else |
| 22362 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22363 | echo "$as_me: failed program was:" >&5 |
| 22364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22365 | |
| 22366 | ( exit $ac_status ) |
| 22367 | ac_cv_func_vfork_works=no |
| 22368 | fi |
| 22369 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 22370 | fi |
| 22371 | fi |
| 22372 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
| 22373 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 |
| 22374 | |
| 22375 | fi; |
| 22376 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 22377 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 22378 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
| 22379 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
| 22380 | fi |
| 22381 | |
| 22382 | if test "x$ac_cv_func_vfork_works" = xyes; then |
| 22383 | |
| 22384 | cat >>confdefs.h <<\_ACEOF |
| 22385 | #define HAVE_WORKING_VFORK 1 |
| 22386 | _ACEOF |
| 22387 | |
| 22388 | else |
| 22389 | |
| 22390 | cat >>confdefs.h <<\_ACEOF |
| 22391 | #define vfork fork |
| 22392 | _ACEOF |
| 22393 | |
| 22394 | fi |
| 22395 | if test "x$ac_cv_func_fork_works" = xyes; then |
| 22396 | |
| 22397 | cat >>confdefs.h <<\_ACEOF |
| 22398 | #define HAVE_WORKING_FORK 1 |
| 22399 | _ACEOF |
| 22400 | |
| 22401 | fi |
| 22402 | |
| 22403 | |
| 22404 | echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
| 22405 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 |
| 22406 | if test "${emacs_cv_langinfo_codeset+set}" = set; then |
| 22407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22408 | else |
| 22409 | cat >conftest.$ac_ext <<_ACEOF |
| 22410 | /* confdefs.h. */ |
| 22411 | _ACEOF |
| 22412 | cat confdefs.h >>conftest.$ac_ext |
| 22413 | cat >>conftest.$ac_ext <<_ACEOF |
| 22414 | /* end confdefs.h. */ |
| 22415 | #include <langinfo.h> |
| 22416 | int |
| 22417 | main () |
| 22418 | { |
| 22419 | char* cs = nl_langinfo(CODESET); |
| 22420 | ; |
| 22421 | return 0; |
| 22422 | } |
| 22423 | _ACEOF |
| 22424 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22425 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22426 | (eval $ac_link) 2>conftest.er1 |
| 22427 | ac_status=$? |
| 22428 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22429 | rm -f conftest.er1 |
| 22430 | cat conftest.err >&5 |
| 22431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22432 | (exit $ac_status); } && |
| 22433 | { ac_try='test -z "$ac_c_werror_flag" |
| 22434 | || test ! -s conftest.err' |
| 22435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22436 | (eval $ac_try) 2>&5 |
| 22437 | ac_status=$? |
| 22438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22439 | (exit $ac_status); }; } && |
| 22440 | { ac_try='test -s conftest$ac_exeext' |
| 22441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22442 | (eval $ac_try) 2>&5 |
| 22443 | ac_status=$? |
| 22444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22445 | (exit $ac_status); }; }; then |
| 22446 | emacs_cv_langinfo_codeset=yes |
| 22447 | else |
| 22448 | echo "$as_me: failed program was:" >&5 |
| 22449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22450 | |
| 22451 | emacs_cv_langinfo_codeset=no |
| 22452 | fi |
| 22453 | rm -f conftest.err conftest.$ac_objext \ |
| 22454 | conftest$ac_exeext conftest.$ac_ext |
| 22455 | |
| 22456 | fi |
| 22457 | echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5 |
| 22458 | echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6 |
| 22459 | if test $emacs_cv_langinfo_codeset = yes; then |
| 22460 | |
| 22461 | cat >>confdefs.h <<\_ACEOF |
| 22462 | #define HAVE_LANGINFO_CODESET 1 |
| 22463 | _ACEOF |
| 22464 | |
| 22465 | fi |
| 22466 | |
| 22467 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 22468 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 22469 | if test "${ac_cv_type_size_t+set}" = set; then |
| 22470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22471 | else |
| 22472 | cat >conftest.$ac_ext <<_ACEOF |
| 22473 | /* confdefs.h. */ |
| 22474 | _ACEOF |
| 22475 | cat confdefs.h >>conftest.$ac_ext |
| 22476 | cat >>conftest.$ac_ext <<_ACEOF |
| 22477 | /* end confdefs.h. */ |
| 22478 | $ac_includes_default |
| 22479 | int |
| 22480 | main () |
| 22481 | { |
| 22482 | if ((size_t *) 0) |
| 22483 | return 0; |
| 22484 | if (sizeof (size_t)) |
| 22485 | return 0; |
| 22486 | ; |
| 22487 | return 0; |
| 22488 | } |
| 22489 | _ACEOF |
| 22490 | rm -f conftest.$ac_objext |
| 22491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22492 | (eval $ac_compile) 2>conftest.er1 |
| 22493 | ac_status=$? |
| 22494 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22495 | rm -f conftest.er1 |
| 22496 | cat conftest.err >&5 |
| 22497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22498 | (exit $ac_status); } && |
| 22499 | { ac_try='test -z "$ac_c_werror_flag" |
| 22500 | || test ! -s conftest.err' |
| 22501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22502 | (eval $ac_try) 2>&5 |
| 22503 | ac_status=$? |
| 22504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22505 | (exit $ac_status); }; } && |
| 22506 | { ac_try='test -s conftest.$ac_objext' |
| 22507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22508 | (eval $ac_try) 2>&5 |
| 22509 | ac_status=$? |
| 22510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22511 | (exit $ac_status); }; }; then |
| 22512 | ac_cv_type_size_t=yes |
| 22513 | else |
| 22514 | echo "$as_me: failed program was:" >&5 |
| 22515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22516 | |
| 22517 | ac_cv_type_size_t=no |
| 22518 | fi |
| 22519 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22520 | fi |
| 22521 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 22522 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 22523 | if test $ac_cv_type_size_t = yes; then |
| 22524 | |
| 22525 | cat >>confdefs.h <<_ACEOF |
| 22526 | #define HAVE_SIZE_T 1 |
| 22527 | _ACEOF |
| 22528 | |
| 22529 | |
| 22530 | fi |
| 22531 | |
| 22532 | |
| 22533 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
| 22534 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 |
| 22535 | if test "${ac_cv_type_mbstate_t+set}" = set; then |
| 22536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22537 | else |
| 22538 | cat >conftest.$ac_ext <<_ACEOF |
| 22539 | /* confdefs.h. */ |
| 22540 | _ACEOF |
| 22541 | cat confdefs.h >>conftest.$ac_ext |
| 22542 | cat >>conftest.$ac_ext <<_ACEOF |
| 22543 | /* end confdefs.h. */ |
| 22544 | $ac_includes_default |
| 22545 | # include <wchar.h> |
| 22546 | int |
| 22547 | main () |
| 22548 | { |
| 22549 | mbstate_t x; return sizeof x; |
| 22550 | ; |
| 22551 | return 0; |
| 22552 | } |
| 22553 | _ACEOF |
| 22554 | rm -f conftest.$ac_objext |
| 22555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22556 | (eval $ac_compile) 2>conftest.er1 |
| 22557 | ac_status=$? |
| 22558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22559 | rm -f conftest.er1 |
| 22560 | cat conftest.err >&5 |
| 22561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22562 | (exit $ac_status); } && |
| 22563 | { ac_try='test -z "$ac_c_werror_flag" |
| 22564 | || test ! -s conftest.err' |
| 22565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22566 | (eval $ac_try) 2>&5 |
| 22567 | ac_status=$? |
| 22568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22569 | (exit $ac_status); }; } && |
| 22570 | { ac_try='test -s conftest.$ac_objext' |
| 22571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22572 | (eval $ac_try) 2>&5 |
| 22573 | ac_status=$? |
| 22574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22575 | (exit $ac_status); }; }; then |
| 22576 | ac_cv_type_mbstate_t=yes |
| 22577 | else |
| 22578 | echo "$as_me: failed program was:" >&5 |
| 22579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22580 | |
| 22581 | ac_cv_type_mbstate_t=no |
| 22582 | fi |
| 22583 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22584 | fi |
| 22585 | echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 |
| 22586 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 |
| 22587 | if test $ac_cv_type_mbstate_t = yes; then |
| 22588 | |
| 22589 | cat >>confdefs.h <<\_ACEOF |
| 22590 | #define HAVE_MBSTATE_T 1 |
| 22591 | _ACEOF |
| 22592 | |
| 22593 | else |
| 22594 | |
| 22595 | cat >>confdefs.h <<\_ACEOF |
| 22596 | #define mbstate_t int |
| 22597 | _ACEOF |
| 22598 | |
| 22599 | fi |
| 22600 | |
| 22601 | echo "$as_me:$LINENO: checking for C restrict keyword" >&5 |
| 22602 | echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6 |
| 22603 | if test "${emacs_cv_c_restrict+set}" = set; then |
| 22604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22605 | else |
| 22606 | cat >conftest.$ac_ext <<_ACEOF |
| 22607 | /* confdefs.h. */ |
| 22608 | _ACEOF |
| 22609 | cat confdefs.h >>conftest.$ac_ext |
| 22610 | cat >>conftest.$ac_ext <<_ACEOF |
| 22611 | /* end confdefs.h. */ |
| 22612 | void fred (int *restrict x); |
| 22613 | int |
| 22614 | main () |
| 22615 | { |
| 22616 | |
| 22617 | ; |
| 22618 | return 0; |
| 22619 | } |
| 22620 | _ACEOF |
| 22621 | rm -f conftest.$ac_objext |
| 22622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22623 | (eval $ac_compile) 2>conftest.er1 |
| 22624 | ac_status=$? |
| 22625 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22626 | rm -f conftest.er1 |
| 22627 | cat conftest.err >&5 |
| 22628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22629 | (exit $ac_status); } && |
| 22630 | { ac_try='test -z "$ac_c_werror_flag" |
| 22631 | || test ! -s conftest.err' |
| 22632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22633 | (eval $ac_try) 2>&5 |
| 22634 | ac_status=$? |
| 22635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22636 | (exit $ac_status); }; } && |
| 22637 | { ac_try='test -s conftest.$ac_objext' |
| 22638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22639 | (eval $ac_try) 2>&5 |
| 22640 | ac_status=$? |
| 22641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22642 | (exit $ac_status); }; }; then |
| 22643 | emacs_cv_c_restrict=yes |
| 22644 | else |
| 22645 | echo "$as_me: failed program was:" >&5 |
| 22646 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22647 | |
| 22648 | cat >conftest.$ac_ext <<_ACEOF |
| 22649 | /* confdefs.h. */ |
| 22650 | _ACEOF |
| 22651 | cat confdefs.h >>conftest.$ac_ext |
| 22652 | cat >>conftest.$ac_ext <<_ACEOF |
| 22653 | /* end confdefs.h. */ |
| 22654 | void fred (int *__restrict x); |
| 22655 | int |
| 22656 | main () |
| 22657 | { |
| 22658 | |
| 22659 | ; |
| 22660 | return 0; |
| 22661 | } |
| 22662 | _ACEOF |
| 22663 | rm -f conftest.$ac_objext |
| 22664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22665 | (eval $ac_compile) 2>conftest.er1 |
| 22666 | ac_status=$? |
| 22667 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22668 | rm -f conftest.er1 |
| 22669 | cat conftest.err >&5 |
| 22670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22671 | (exit $ac_status); } && |
| 22672 | { ac_try='test -z "$ac_c_werror_flag" |
| 22673 | || test ! -s conftest.err' |
| 22674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22675 | (eval $ac_try) 2>&5 |
| 22676 | ac_status=$? |
| 22677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22678 | (exit $ac_status); }; } && |
| 22679 | { ac_try='test -s conftest.$ac_objext' |
| 22680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22681 | (eval $ac_try) 2>&5 |
| 22682 | ac_status=$? |
| 22683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22684 | (exit $ac_status); }; }; then |
| 22685 | emacs_cv_c_restrict=__restrict |
| 22686 | else |
| 22687 | echo "$as_me: failed program was:" >&5 |
| 22688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22689 | |
| 22690 | emacs_cv_c_restrict=no |
| 22691 | fi |
| 22692 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22693 | fi |
| 22694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22695 | fi |
| 22696 | echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5 |
| 22697 | echo "${ECHO_T}$emacs_cv_c_restrict" >&6 |
| 22698 | case "$emacs_cv_c_restrict" in |
| 22699 | yes) emacs_restrict=restrict;; |
| 22700 | no) emacs_restrict="";; |
| 22701 | *) emacs_restrict="$emacs_cv_c_restrict";; |
| 22702 | esac |
| 22703 | if test "$emacs_restrict" != __restrict; then |
| 22704 | |
| 22705 | cat >>confdefs.h <<_ACEOF |
| 22706 | #define __restrict $emacs_restrict |
| 22707 | _ACEOF |
| 22708 | |
| 22709 | fi |
| 22710 | |
| 22711 | echo "$as_me:$LINENO: checking for C restricted array declarations" >&5 |
| 22712 | echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6 |
| 22713 | if test "${emacs_cv_c_restrict_arr+set}" = set; then |
| 22714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22715 | else |
| 22716 | cat >conftest.$ac_ext <<_ACEOF |
| 22717 | /* confdefs.h. */ |
| 22718 | _ACEOF |
| 22719 | cat confdefs.h >>conftest.$ac_ext |
| 22720 | cat >>conftest.$ac_ext <<_ACEOF |
| 22721 | /* end confdefs.h. */ |
| 22722 | void fred (int x[__restrict]); |
| 22723 | int |
| 22724 | main () |
| 22725 | { |
| 22726 | |
| 22727 | ; |
| 22728 | return 0; |
| 22729 | } |
| 22730 | _ACEOF |
| 22731 | rm -f conftest.$ac_objext |
| 22732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22733 | (eval $ac_compile) 2>conftest.er1 |
| 22734 | ac_status=$? |
| 22735 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22736 | rm -f conftest.er1 |
| 22737 | cat conftest.err >&5 |
| 22738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22739 | (exit $ac_status); } && |
| 22740 | { ac_try='test -z "$ac_c_werror_flag" |
| 22741 | || test ! -s conftest.err' |
| 22742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22743 | (eval $ac_try) 2>&5 |
| 22744 | ac_status=$? |
| 22745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22746 | (exit $ac_status); }; } && |
| 22747 | { ac_try='test -s conftest.$ac_objext' |
| 22748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22749 | (eval $ac_try) 2>&5 |
| 22750 | ac_status=$? |
| 22751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22752 | (exit $ac_status); }; }; then |
| 22753 | emacs_cv_c_restrict_arr=yes |
| 22754 | else |
| 22755 | echo "$as_me: failed program was:" >&5 |
| 22756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22757 | |
| 22758 | emacs_cv_c_restrict_arr=no |
| 22759 | fi |
| 22760 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22761 | fi |
| 22762 | echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5 |
| 22763 | echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6 |
| 22764 | if test "$emacs_cv_c_restrict_arr" = yes; then |
| 22765 | |
| 22766 | cat >>confdefs.h <<\_ACEOF |
| 22767 | #define __restrict_arr __restrict |
| 22768 | _ACEOF |
| 22769 | |
| 22770 | fi |
| 22771 | |
| 22772 | |
| 22773 | |
| 22774 | # Set up the CFLAGS for real compilation, so we can substitute it. |
| 22775 | CFLAGS="$REAL_CFLAGS" |
| 22776 | CPPFLAGS="$REAL_CPPFLAGS" |
| 22777 | |
| 22778 | #### Find out which version of Emacs this is. |
| 22779 | version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ |
| 22780 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` |
| 22781 | if test x"${version}" = x; then |
| 22782 | { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 |
| 22783 | echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;} |
| 22784 | { (exit 1); exit 1; }; } |
| 22785 | fi |
| 22786 | |
| 22787 | ### Specify what sort of things we'll be editing into Makefile and config.h. |
| 22788 | ### Use configuration here uncanonicalized to avoid exceeding size limits. |
| 22789 | |
| 22790 | |
| 22791 | |
| 22792 | |
| 22793 | |
| 22794 | |
| 22795 | |
| 22796 | |
| 22797 | |
| 22798 | |
| 22799 | |
| 22800 | |
| 22801 | |
| 22802 | |
| 22803 | |
| 22804 | |
| 22805 | |
| 22806 | |
| 22807 | |
| 22808 | |
| 22809 | |
| 22810 | |
| 22811 | |
| 22812 | |
| 22813 | |
| 22814 | |
| 22815 | |
| 22816 | |
| 22817 | |
| 22818 | |
| 22819 | |
| 22820 | |
| 22821 | |
| 22822 | |
| 22823 | |
| 22824 | cat >>confdefs.h <<_ACEOF |
| 22825 | #define EMACS_CONFIGURATION "${canonical}" |
| 22826 | _ACEOF |
| 22827 | |
| 22828 | |
| 22829 | cat >>confdefs.h <<_ACEOF |
| 22830 | #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" |
| 22831 | _ACEOF |
| 22832 | |
| 22833 | |
| 22834 | cat >>confdefs.h <<_ACEOF |
| 22835 | #define config_machfile "${machfile}" |
| 22836 | _ACEOF |
| 22837 | |
| 22838 | |
| 22839 | cat >>confdefs.h <<_ACEOF |
| 22840 | #define config_opsysfile "${opsysfile}" |
| 22841 | _ACEOF |
| 22842 | |
| 22843 | |
| 22844 | cat >>confdefs.h <<_ACEOF |
| 22845 | #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} |
| 22846 | _ACEOF |
| 22847 | |
| 22848 | |
| 22849 | cat >>confdefs.h <<_ACEOF |
| 22850 | #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} |
| 22851 | _ACEOF |
| 22852 | |
| 22853 | |
| 22854 | cat >>confdefs.h <<_ACEOF |
| 22855 | #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} |
| 22856 | _ACEOF |
| 22857 | |
| 22858 | |
| 22859 | cat >>confdefs.h <<_ACEOF |
| 22860 | #define UNEXEC_SRC ${UNEXEC_SRC} |
| 22861 | _ACEOF |
| 22862 | |
| 22863 | |
| 22864 | if test "${HAVE_X_WINDOWS}" = "yes" ; then |
| 22865 | |
| 22866 | cat >>confdefs.h <<\_ACEOF |
| 22867 | #define HAVE_X_WINDOWS 1 |
| 22868 | _ACEOF |
| 22869 | |
| 22870 | fi |
| 22871 | if test "${USE_X_TOOLKIT}" != "none" ; then |
| 22872 | |
| 22873 | cat >>confdefs.h <<\_ACEOF |
| 22874 | #define USE_X_TOOLKIT 1 |
| 22875 | _ACEOF |
| 22876 | |
| 22877 | fi |
| 22878 | if test "${HAVE_X11}" = "yes" ; then |
| 22879 | |
| 22880 | cat >>confdefs.h <<\_ACEOF |
| 22881 | #define HAVE_X11 1 |
| 22882 | _ACEOF |
| 22883 | |
| 22884 | fi |
| 22885 | if test "${HAVE_XFREE386}" = "yes" ; then |
| 22886 | |
| 22887 | cat >>confdefs.h <<\_ACEOF |
| 22888 | #define HAVE_XFREE386 1 |
| 22889 | _ACEOF |
| 22890 | |
| 22891 | fi |
| 22892 | if test "${HAVE_MENUS}" = "yes" ; then |
| 22893 | |
| 22894 | cat >>confdefs.h <<\_ACEOF |
| 22895 | #define HAVE_MENUS 1 |
| 22896 | _ACEOF |
| 22897 | |
| 22898 | fi |
| 22899 | if test "${GNU_MALLOC}" = "yes" ; then |
| 22900 | |
| 22901 | cat >>confdefs.h <<\_ACEOF |
| 22902 | #define GNU_MALLOC 1 |
| 22903 | _ACEOF |
| 22904 | |
| 22905 | fi |
| 22906 | if test "${REL_ALLOC}" = "yes" ; then |
| 22907 | |
| 22908 | cat >>confdefs.h <<\_ACEOF |
| 22909 | #define REL_ALLOC 1 |
| 22910 | _ACEOF |
| 22911 | |
| 22912 | fi |
| 22913 | |
| 22914 | |
| 22915 | |
| 22916 | |
| 22917 | |
| 22918 | #### Report on what we decided to do. |
| 22919 | #### Report GTK as a toolkit, even if it doesn't use Xt. |
| 22920 | #### It makes printing result more understandable as using GTK sets |
| 22921 | #### toolkit_scroll_bars to yes by default. |
| 22922 | if test "${HAVE_GTK}" = "yes"; then |
| 22923 | USE_X_TOOLKIT=GTK |
| 22924 | fi |
| 22925 | |
| 22926 | echo " |
| 22927 | Configured for \`${canonical}'. |
| 22928 | |
| 22929 | Where should the build process find the source code? ${srcdir} |
| 22930 | What operating system and machine description files should Emacs use? |
| 22931 | \`${opsysfile}' and \`${machfile}' |
| 22932 | What compiler should emacs be built with? ${CC} ${CFLAGS} |
| 22933 | Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} |
| 22934 | Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} |
| 22935 | Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers |
| 22936 | What window system should Emacs use? ${window_system} |
| 22937 | What toolkit should Emacs use? ${USE_X_TOOLKIT}" |
| 22938 | |
| 22939 | if test -n "${x_includes}"; then |
| 22940 | echo " Where do we find X Windows header files? ${x_includes}" |
| 22941 | else |
| 22942 | echo " Where do we find X Windows header files? Standard dirs" |
| 22943 | fi |
| 22944 | if test -n "${x_libraries}"; then |
| 22945 | echo " Where do we find X Windows libraries? ${x_libraries}" |
| 22946 | else |
| 22947 | echo " Where do we find X Windows libraries? Standard dirs" |
| 22948 | fi |
| 22949 | |
| 22950 | echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" |
| 22951 | echo " Does Emacs use -lXpm? ${HAVE_XPM}" |
| 22952 | echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" |
| 22953 | echo " Does Emacs use -ltiff? ${HAVE_TIFF}" |
| 22954 | echo " Does Emacs use -lungif? ${HAVE_GIF}" |
| 22955 | echo " Does Emacs use -lpng? ${HAVE_PNG}" |
| 22956 | echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" |
| 22957 | echo |
| 22958 | |
| 22959 | if test $USE_XASSERTS = yes; then |
| 22960 | echo " Compiling with asserts turned on." |
| 22961 | CPPFLAGS="$CPPFLAGS -DXASSERTS=1" |
| 22962 | echo |
| 22963 | fi |
| 22964 | |
| 22965 | |
| 22966 | |
| 22967 | # Remove any trailing slashes in these variables. |
| 22968 | test "${prefix}" != NONE && |
| 22969 | prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` |
| 22970 | test "${exec_prefix}" != NONE && |
| 22971 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` |
| 22972 | |
| 22973 | ## Check if the C preprocessor will convert `..' to `. .'. If so, set |
| 22974 | ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile |
| 22975 | ## from Makefile.c can correctly provide the arg `-traditional' to the |
| 22976 | ## C preprocessor. |
| 22977 | |
| 22978 | cat >conftest.$ac_ext <<_ACEOF |
| 22979 | /* confdefs.h. */ |
| 22980 | _ACEOF |
| 22981 | cat confdefs.h >>conftest.$ac_ext |
| 22982 | cat >>conftest.$ac_ext <<_ACEOF |
| 22983 | /* end confdefs.h. */ |
| 22984 | yes..yes |
| 22985 | _ACEOF |
| 22986 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 22987 | $EGREP "yes..yes" >/dev/null 2>&1; then |
| 22988 | CPP_NEED_TRADITIONAL=no |
| 22989 | else |
| 22990 | CPP_NEED_TRADITIONAL=yes |
| 22991 | fi |
| 22992 | rm -f conftest* |
| 22993 | |
| 22994 | |
| 22995 | ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile" |
| 22996 | ac_config_commands="$ac_config_commands default" |
| 22997 | cat >confcache <<\_ACEOF |
| 22998 | # This file is a shell script that caches the results of configure |
| 22999 | # tests run on this system so they can be shared between configure |
| 23000 | # scripts and configure runs, see configure's option --config-cache. |
| 23001 | # It is not useful on other systems. If it contains results you don't |
| 23002 | # want to keep, you may remove or edit it. |
| 23003 | # |
| 23004 | # config.status only pays attention to the cache file if you give it |
| 23005 | # the --recheck option to rerun configure. |
| 23006 | # |
| 23007 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 23008 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 23009 | # following values. |
| 23010 | |
| 23011 | _ACEOF |
| 23012 | |
| 23013 | # The following way of writing the cache mishandles newlines in values, |
| 23014 | # but we know of no workaround that is simple, portable, and efficient. |
| 23015 | # So, don't put newlines in cache variables' values. |
| 23016 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 23017 | # and sets the high bit in the cache file unless we assign to the vars. |
| 23018 | { |
| 23019 | (set) 2>&1 | |
| 23020 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 23021 | *ac_space=\ *) |
| 23022 | # `set' does not quote correctly, so add quotes (double-quote |
| 23023 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 23024 | sed -n \ |
| 23025 | "s/'/'\\\\''/g; |
| 23026 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 23027 | ;; |
| 23028 | *) |
| 23029 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 23030 | sed -n \ |
| 23031 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 23032 | ;; |
| 23033 | esac; |
| 23034 | } | |
| 23035 | sed ' |
| 23036 | t clear |
| 23037 | : clear |
| 23038 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 23039 | t end |
| 23040 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 23041 | : end' >>confcache |
| 23042 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 23043 | if test -w $cache_file; then |
| 23044 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 23045 | cat confcache >$cache_file |
| 23046 | else |
| 23047 | echo "not updating unwritable cache $cache_file" |
| 23048 | fi |
| 23049 | fi |
| 23050 | rm -f confcache |
| 23051 | |
| 23052 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 23053 | # Let make expand exec_prefix. |
| 23054 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 23055 | |
| 23056 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 23057 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 23058 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 23059 | # (actually we leave an empty line to preserve line numbers). |
| 23060 | if test "x$srcdir" = x.; then |
| 23061 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 23062 | s/:*\$(srcdir):*/:/; |
| 23063 | s/:*\${srcdir}:*/:/; |
| 23064 | s/:*@srcdir@:*/:/; |
| 23065 | s/^\([^=]*=[ ]*\):*/\1/; |
| 23066 | s/:*$//; |
| 23067 | s/^[^=]*=[ ]*$//; |
| 23068 | }' |
| 23069 | fi |
| 23070 | |
| 23071 | DEFS=-DHAVE_CONFIG_H |
| 23072 | |
| 23073 | ac_libobjs= |
| 23074 | ac_ltlibobjs= |
| 23075 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 23076 | # 1. Remove the extension, and $U if already installed. |
| 23077 | ac_i=`echo "$ac_i" | |
| 23078 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 23079 | # 2. Add them. |
| 23080 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 23081 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 23082 | done |
| 23083 | LIBOBJS=$ac_libobjs |
| 23084 | |
| 23085 | LTLIBOBJS=$ac_ltlibobjs |
| 23086 | |
| 23087 | |
| 23088 | |
| 23089 | : ${CONFIG_STATUS=./config.status} |
| 23090 | ac_clean_files_save=$ac_clean_files |
| 23091 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 23092 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 23093 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 23094 | cat >$CONFIG_STATUS <<_ACEOF |
| 23095 | #! $SHELL |
| 23096 | # Generated by $as_me. |
| 23097 | # Run this file to recreate the current configuration. |
| 23098 | # Compiler output produced by configure, useful for debugging |
| 23099 | # configure, is in config.log if it exists. |
| 23100 | |
| 23101 | debug=false |
| 23102 | ac_cs_recheck=false |
| 23103 | ac_cs_silent=false |
| 23104 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 23105 | _ACEOF |
| 23106 | |
| 23107 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23108 | ## --------------------- ## |
| 23109 | ## M4sh Initialization. ## |
| 23110 | ## --------------------- ## |
| 23111 | |
| 23112 | # Be Bourne compatible |
| 23113 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 23114 | emulate sh |
| 23115 | NULLCMD=: |
| 23116 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 23117 | # is contrary to our usage. Disable this feature. |
| 23118 | alias -g '${1+"$@"}'='"$@"' |
| 23119 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 23120 | set -o posix |
| 23121 | fi |
| 23122 | DUALCASE=1; export DUALCASE # for MKS sh |
| 23123 | |
| 23124 | # Support unset when possible. |
| 23125 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 23126 | as_unset=unset |
| 23127 | else |
| 23128 | as_unset=false |
| 23129 | fi |
| 23130 | |
| 23131 | |
| 23132 | # Work around bugs in pre-3.0 UWIN ksh. |
| 23133 | $as_unset ENV MAIL MAILPATH |
| 23134 | PS1='$ ' |
| 23135 | PS2='> ' |
| 23136 | PS4='+ ' |
| 23137 | |
| 23138 | # NLS nuisances. |
| 23139 | for as_var in \ |
| 23140 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 23141 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 23142 | LC_TELEPHONE LC_TIME |
| 23143 | do |
| 23144 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 23145 | eval $as_var=C; export $as_var |
| 23146 | else |
| 23147 | $as_unset $as_var |
| 23148 | fi |
| 23149 | done |
| 23150 | |
| 23151 | # Required to use basename. |
| 23152 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 23153 | as_expr=expr |
| 23154 | else |
| 23155 | as_expr=false |
| 23156 | fi |
| 23157 | |
| 23158 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 23159 | as_basename=basename |
| 23160 | else |
| 23161 | as_basename=false |
| 23162 | fi |
| 23163 | |
| 23164 | |
| 23165 | # Name of the executable. |
| 23166 | as_me=`$as_basename "$0" || |
| 23167 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 23168 | X"$0" : 'X\(//\)$' \| \ |
| 23169 | X"$0" : 'X\(/\)$' \| \ |
| 23170 | . : '\(.\)' 2>/dev/null || |
| 23171 | echo X/"$0" | |
| 23172 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 23173 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 23174 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 23175 | s/.*/./; q'` |
| 23176 | |
| 23177 | |
| 23178 | # PATH needs CR, and LINENO needs CR and PATH. |
| 23179 | # Avoid depending upon Character Ranges. |
| 23180 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 23181 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 23182 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 23183 | as_cr_digits='0123456789' |
| 23184 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 23185 | |
| 23186 | # The user is always right. |
| 23187 | if test "${PATH_SEPARATOR+set}" != set; then |
| 23188 | echo "#! /bin/sh" >conf$$.sh |
| 23189 | echo "exit 0" >>conf$$.sh |
| 23190 | chmod +x conf$$.sh |
| 23191 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 23192 | PATH_SEPARATOR=';' |
| 23193 | else |
| 23194 | PATH_SEPARATOR=: |
| 23195 | fi |
| 23196 | rm -f conf$$.sh |
| 23197 | fi |
| 23198 | |
| 23199 | |
| 23200 | as_lineno_1=$LINENO |
| 23201 | as_lineno_2=$LINENO |
| 23202 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 23203 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 23204 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 23205 | # Find who we are. Look in the path if we contain no path at all |
| 23206 | # relative or not. |
| 23207 | case $0 in |
| 23208 | *[\\/]* ) as_myself=$0 ;; |
| 23209 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 23210 | for as_dir in $PATH |
| 23211 | do |
| 23212 | IFS=$as_save_IFS |
| 23213 | test -z "$as_dir" && as_dir=. |
| 23214 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 23215 | done |
| 23216 | |
| 23217 | ;; |
| 23218 | esac |
| 23219 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 23220 | # in which case we are not to be found in the path. |
| 23221 | if test "x$as_myself" = x; then |
| 23222 | as_myself=$0 |
| 23223 | fi |
| 23224 | if test ! -f "$as_myself"; then |
| 23225 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 23226 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 23227 | { (exit 1); exit 1; }; } |
| 23228 | fi |
| 23229 | case $CONFIG_SHELL in |
| 23230 | '') |
| 23231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 23232 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 23233 | do |
| 23234 | IFS=$as_save_IFS |
| 23235 | test -z "$as_dir" && as_dir=. |
| 23236 | for as_base in sh bash ksh sh5; do |
| 23237 | case $as_dir in |
| 23238 | /*) |
| 23239 | if ("$as_dir/$as_base" -c ' |
| 23240 | as_lineno_1=$LINENO |
| 23241 | as_lineno_2=$LINENO |
| 23242 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 23243 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 23244 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 23245 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 23246 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 23247 | CONFIG_SHELL=$as_dir/$as_base |
| 23248 | export CONFIG_SHELL |
| 23249 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 23250 | fi;; |
| 23251 | esac |
| 23252 | done |
| 23253 | done |
| 23254 | ;; |
| 23255 | esac |
| 23256 | |
| 23257 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 23258 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 23259 | # line-number line before each line; the second 'sed' does the real |
| 23260 | # work. The second script uses 'N' to pair each line-number line |
| 23261 | # with the numbered line, and appends trailing '-' during |
| 23262 | # substitution so that $LINENO is not a special case at line end. |
| 23263 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 23264 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 23265 | sed '=' <$as_myself | |
| 23266 | sed ' |
| 23267 | N |
| 23268 | s,$,-, |
| 23269 | : loop |
| 23270 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 23271 | t loop |
| 23272 | s,-$,, |
| 23273 | s,^['$as_cr_digits']*\n,, |
| 23274 | ' >$as_me.lineno && |
| 23275 | chmod +x $as_me.lineno || |
| 23276 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 23277 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 23278 | { (exit 1); exit 1; }; } |
| 23279 | |
| 23280 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 23281 | # (the dirname of $[0] is not the place where we might find the |
| 23282 | # original and so on. Autoconf is especially sensible to this). |
| 23283 | . ./$as_me.lineno |
| 23284 | # Exit status is that of the last command. |
| 23285 | exit |
| 23286 | } |
| 23287 | |
| 23288 | |
| 23289 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 23290 | *c*,-n*) ECHO_N= ECHO_C=' |
| 23291 | ' ECHO_T=' ' ;; |
| 23292 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 23293 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 23294 | esac |
| 23295 | |
| 23296 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 23297 | as_expr=expr |
| 23298 | else |
| 23299 | as_expr=false |
| 23300 | fi |
| 23301 | |
| 23302 | rm -f conf$$ conf$$.exe conf$$.file |
| 23303 | echo >conf$$.file |
| 23304 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 23305 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 23306 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 23307 | if test -f conf$$.exe; then |
| 23308 | # Don't use ln at all; we don't have any links |
| 23309 | as_ln_s='cp -p' |
| 23310 | else |
| 23311 | as_ln_s='ln -s' |
| 23312 | fi |
| 23313 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 23314 | as_ln_s=ln |
| 23315 | else |
| 23316 | as_ln_s='cp -p' |
| 23317 | fi |
| 23318 | rm -f conf$$ conf$$.exe conf$$.file |
| 23319 | |
| 23320 | if mkdir -p . 2>/dev/null; then |
| 23321 | as_mkdir_p=: |
| 23322 | else |
| 23323 | test -d ./-p && rmdir ./-p |
| 23324 | as_mkdir_p=false |
| 23325 | fi |
| 23326 | |
| 23327 | as_executable_p="test -f" |
| 23328 | |
| 23329 | # Sed expression to map a string onto a valid CPP name. |
| 23330 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 23331 | |
| 23332 | # Sed expression to map a string onto a valid variable name. |
| 23333 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 23334 | |
| 23335 | |
| 23336 | # IFS |
| 23337 | # We need space, tab and new line, in precisely that order. |
| 23338 | as_nl=' |
| 23339 | ' |
| 23340 | IFS=" $as_nl" |
| 23341 | |
| 23342 | # CDPATH. |
| 23343 | $as_unset CDPATH |
| 23344 | |
| 23345 | exec 6>&1 |
| 23346 | |
| 23347 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 23348 | # report actual input values of CONFIG_FILES etc. instead of their |
| 23349 | # values after options handling. Logging --version etc. is OK. |
| 23350 | exec 5>>config.log |
| 23351 | { |
| 23352 | echo |
| 23353 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 23354 | ## Running $as_me. ## |
| 23355 | _ASBOX |
| 23356 | } >&5 |
| 23357 | cat >&5 <<_CSEOF |
| 23358 | |
| 23359 | This file was extended by $as_me, which was |
| 23360 | generated by GNU Autoconf 2.59. Invocation command line was |
| 23361 | |
| 23362 | CONFIG_FILES = $CONFIG_FILES |
| 23363 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 23364 | CONFIG_LINKS = $CONFIG_LINKS |
| 23365 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 23366 | $ $0 $@ |
| 23367 | |
| 23368 | _CSEOF |
| 23369 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 23370 | echo >&5 |
| 23371 | _ACEOF |
| 23372 | |
| 23373 | # Files that config.status was made for. |
| 23374 | if test -n "$ac_config_files"; then |
| 23375 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 23376 | fi |
| 23377 | |
| 23378 | if test -n "$ac_config_headers"; then |
| 23379 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 23380 | fi |
| 23381 | |
| 23382 | if test -n "$ac_config_links"; then |
| 23383 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 23384 | fi |
| 23385 | |
| 23386 | if test -n "$ac_config_commands"; then |
| 23387 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 23388 | fi |
| 23389 | |
| 23390 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23391 | |
| 23392 | ac_cs_usage="\ |
| 23393 | \`$as_me' instantiates files from templates according to the |
| 23394 | current configuration. |
| 23395 | |
| 23396 | Usage: $0 [OPTIONS] [FILE]... |
| 23397 | |
| 23398 | -h, --help print this help, then exit |
| 23399 | -V, --version print version number, then exit |
| 23400 | -q, --quiet do not print progress messages |
| 23401 | -d, --debug don't remove temporary files |
| 23402 | --recheck update $as_me by reconfiguring in the same conditions |
| 23403 | --file=FILE[:TEMPLATE] |
| 23404 | instantiate the configuration file FILE |
| 23405 | --header=FILE[:TEMPLATE] |
| 23406 | instantiate the configuration header FILE |
| 23407 | |
| 23408 | Configuration files: |
| 23409 | $config_files |
| 23410 | |
| 23411 | Configuration headers: |
| 23412 | $config_headers |
| 23413 | |
| 23414 | Configuration commands: |
| 23415 | $config_commands |
| 23416 | |
| 23417 | Report bugs to <bug-autoconf@gnu.org>." |
| 23418 | _ACEOF |
| 23419 | |
| 23420 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23421 | ac_cs_version="\\ |
| 23422 | config.status |
| 23423 | configured by $0, generated by GNU Autoconf 2.59, |
| 23424 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 23425 | |
| 23426 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 23427 | This config.status script is free software; the Free Software Foundation |
| 23428 | gives unlimited permission to copy, distribute and modify it." |
| 23429 | srcdir=$srcdir |
| 23430 | INSTALL="$INSTALL" |
| 23431 | _ACEOF |
| 23432 | |
| 23433 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23434 | # If no file are specified by the user, then we need to provide default |
| 23435 | # value. By we need to know if files were specified by the user. |
| 23436 | ac_need_defaults=: |
| 23437 | while test $# != 0 |
| 23438 | do |
| 23439 | case $1 in |
| 23440 | --*=*) |
| 23441 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 23442 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 23443 | ac_shift=: |
| 23444 | ;; |
| 23445 | -*) |
| 23446 | ac_option=$1 |
| 23447 | ac_optarg=$2 |
| 23448 | ac_shift=shift |
| 23449 | ;; |
| 23450 | *) # This is not an option, so the user has probably given explicit |
| 23451 | # arguments. |
| 23452 | ac_option=$1 |
| 23453 | ac_need_defaults=false;; |
| 23454 | esac |
| 23455 | |
| 23456 | case $ac_option in |
| 23457 | # Handling of the options. |
| 23458 | _ACEOF |
| 23459 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23460 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 23461 | ac_cs_recheck=: ;; |
| 23462 | --version | --vers* | -V ) |
| 23463 | echo "$ac_cs_version"; exit 0 ;; |
| 23464 | --he | --h) |
| 23465 | # Conflict between --help and --header |
| 23466 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 23467 | Try \`$0 --help' for more information." >&5 |
| 23468 | echo "$as_me: error: ambiguous option: $1 |
| 23469 | Try \`$0 --help' for more information." >&2;} |
| 23470 | { (exit 1); exit 1; }; };; |
| 23471 | --help | --hel | -h ) |
| 23472 | echo "$ac_cs_usage"; exit 0 ;; |
| 23473 | --debug | --d* | -d ) |
| 23474 | debug=: ;; |
| 23475 | --file | --fil | --fi | --f ) |
| 23476 | $ac_shift |
| 23477 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 23478 | ac_need_defaults=false;; |
| 23479 | --header | --heade | --head | --hea ) |
| 23480 | $ac_shift |
| 23481 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 23482 | ac_need_defaults=false;; |
| 23483 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 23484 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 23485 | ac_cs_silent=: ;; |
| 23486 | |
| 23487 | # This is an error. |
| 23488 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 23489 | Try \`$0 --help' for more information." >&5 |
| 23490 | echo "$as_me: error: unrecognized option: $1 |
| 23491 | Try \`$0 --help' for more information." >&2;} |
| 23492 | { (exit 1); exit 1; }; } ;; |
| 23493 | |
| 23494 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 23495 | |
| 23496 | esac |
| 23497 | shift |
| 23498 | done |
| 23499 | |
| 23500 | ac_configure_extra_args= |
| 23501 | |
| 23502 | if $ac_cs_silent; then |
| 23503 | exec 6>/dev/null |
| 23504 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 23505 | fi |
| 23506 | |
| 23507 | _ACEOF |
| 23508 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23509 | if \$ac_cs_recheck; then |
| 23510 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 23511 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 23512 | fi |
| 23513 | |
| 23514 | _ACEOF |
| 23515 | |
| 23516 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23517 | # |
| 23518 | # INIT-COMMANDS section. |
| 23519 | # |
| 23520 | |
| 23521 | GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" |
| 23522 | |
| 23523 | _ACEOF |
| 23524 | |
| 23525 | |
| 23526 | |
| 23527 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23528 | for ac_config_target in $ac_config_targets |
| 23529 | do |
| 23530 | case "$ac_config_target" in |
| 23531 | # Handling of arguments. |
| 23532 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 23533 | "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;; |
| 23534 | "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; |
| 23535 | "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
| 23536 | "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; |
| 23537 | "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;; |
| 23538 | "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; |
| 23539 | "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;; |
| 23540 | "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;; |
| 23541 | "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; |
| 23542 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
| 23543 | "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; |
| 23544 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 23545 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 23546 | { (exit 1); exit 1; }; };; |
| 23547 | esac |
| 23548 | done |
| 23549 | |
| 23550 | # If the user did not use the arguments to specify the items to instantiate, |
| 23551 | # then the envvar interface is used. Set only those that are not. |
| 23552 | # We use the long form for the default assignment because of an extremely |
| 23553 | # bizarre bug on SunOS 4.1.3. |
| 23554 | if $ac_need_defaults; then |
| 23555 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 23556 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 23557 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 23558 | fi |
| 23559 | |
| 23560 | # Have a temporary directory for convenience. Make it in the build tree |
| 23561 | # simply because there is no reason to put it here, and in addition, |
| 23562 | # creating and moving files from /tmp can sometimes cause problems. |
| 23563 | # Create a temporary directory, and hook for its removal unless debugging. |
| 23564 | $debug || |
| 23565 | { |
| 23566 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 23567 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 23568 | } |
| 23569 | |
| 23570 | # Create a (secure) tmp directory for tmp files. |
| 23571 | |
| 23572 | { |
| 23573 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 23574 | test -n "$tmp" && test -d "$tmp" |
| 23575 | } || |
| 23576 | { |
| 23577 | tmp=./confstat$$-$RANDOM |
| 23578 | (umask 077 && mkdir $tmp) |
| 23579 | } || |
| 23580 | { |
| 23581 | echo "$me: cannot create a temporary directory in ." >&2 |
| 23582 | { (exit 1); exit 1; } |
| 23583 | } |
| 23584 | |
| 23585 | _ACEOF |
| 23586 | |
| 23587 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23588 | |
| 23589 | # |
| 23590 | # CONFIG_FILES section. |
| 23591 | # |
| 23592 | |
| 23593 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 23594 | # This happens for instance when ./config.status config.h |
| 23595 | if test -n "\$CONFIG_FILES"; then |
| 23596 | # Protect against being on the right side of a sed subst in config.status. |
| 23597 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 23598 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 23599 | s,@SHELL@,$SHELL,;t t |
| 23600 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 23601 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 23602 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 23603 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 23604 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 23605 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 23606 | s,@exec_prefix@,$exec_prefix,;t t |
| 23607 | s,@prefix@,$prefix,;t t |
| 23608 | s,@program_transform_name@,$program_transform_name,;t t |
| 23609 | s,@bindir@,$bindir,;t t |
| 23610 | s,@sbindir@,$sbindir,;t t |
| 23611 | s,@libexecdir@,$libexecdir,;t t |
| 23612 | s,@datadir@,$datadir,;t t |
| 23613 | s,@sysconfdir@,$sysconfdir,;t t |
| 23614 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 23615 | s,@localstatedir@,$localstatedir,;t t |
| 23616 | s,@libdir@,$libdir,;t t |
| 23617 | s,@includedir@,$includedir,;t t |
| 23618 | s,@oldincludedir@,$oldincludedir,;t t |
| 23619 | s,@infodir@,$infodir,;t t |
| 23620 | s,@mandir@,$mandir,;t t |
| 23621 | s,@build_alias@,$build_alias,;t t |
| 23622 | s,@host_alias@,$host_alias,;t t |
| 23623 | s,@target_alias@,$target_alias,;t t |
| 23624 | s,@DEFS@,$DEFS,;t t |
| 23625 | s,@ECHO_C@,$ECHO_C,;t t |
| 23626 | s,@ECHO_N@,$ECHO_N,;t t |
| 23627 | s,@ECHO_T@,$ECHO_T,;t t |
| 23628 | s,@LIBS@,$LIBS,;t t |
| 23629 | s,@MAINT@,$MAINT,;t t |
| 23630 | s,@build@,$build,;t t |
| 23631 | s,@build_cpu@,$build_cpu,;t t |
| 23632 | s,@build_vendor@,$build_vendor,;t t |
| 23633 | s,@build_os@,$build_os,;t t |
| 23634 | s,@host@,$host,;t t |
| 23635 | s,@host_cpu@,$host_cpu,;t t |
| 23636 | s,@host_vendor@,$host_vendor,;t t |
| 23637 | s,@host_os@,$host_os,;t t |
| 23638 | s,@CC@,$CC,;t t |
| 23639 | s,@CFLAGS@,$CFLAGS,;t t |
| 23640 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 23641 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 23642 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 23643 | s,@EXEEXT@,$EXEEXT,;t t |
| 23644 | s,@OBJEXT@,$OBJEXT,;t t |
| 23645 | s,@CPP@,$CPP,;t t |
| 23646 | s,@EGREP@,$EGREP,;t t |
| 23647 | s,@LN_S@,$LN_S,;t t |
| 23648 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 23649 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 23650 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 23651 | s,@RANLIB@,$RANLIB,;t t |
| 23652 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 23653 | s,@INSTALL_INFO@,$INSTALL_INFO,;t t |
| 23654 | s,@GZIP_PROG@,$GZIP_PROG,;t t |
| 23655 | s,@LIBSOUND@,$LIBSOUND,;t t |
| 23656 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 23657 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
| 23658 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t |
| 23659 | s,@GTK_LIBS@,$GTK_LIBS,;t t |
| 23660 | s,@ALLOCA@,$ALLOCA,;t t |
| 23661 | s,@liblockfile@,$liblockfile,;t t |
| 23662 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 23663 | s,@NEED_SETGID@,$NEED_SETGID,;t t |
| 23664 | s,@KMEM_GROUP@,$KMEM_GROUP,;t t |
| 23665 | s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t |
| 23666 | s,@GETOPT_H@,$GETOPT_H,;t t |
| 23667 | s,@GETOPTOBJS@,$GETOPTOBJS,;t t |
| 23668 | s,@version@,$version,;t t |
| 23669 | s,@configuration@,$configuration,;t t |
| 23670 | s,@canonical@,$canonical,;t t |
| 23671 | s,@srcdir@,$srcdir,;t t |
| 23672 | s,@lispdir@,$lispdir,;t t |
| 23673 | s,@locallisppath@,$locallisppath,;t t |
| 23674 | s,@lisppath@,$lisppath,;t t |
| 23675 | s,@x_default_search_path@,$x_default_search_path,;t t |
| 23676 | s,@etcdir@,$etcdir,;t t |
| 23677 | s,@archlibdir@,$archlibdir,;t t |
| 23678 | s,@docdir@,$docdir,;t t |
| 23679 | s,@bitmapdir@,$bitmapdir,;t t |
| 23680 | s,@gamedir@,$gamedir,;t t |
| 23681 | s,@gameuser@,$gameuser,;t t |
| 23682 | s,@c_switch_system@,$c_switch_system,;t t |
| 23683 | s,@c_switch_machine@,$c_switch_machine,;t t |
| 23684 | s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t |
| 23685 | s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t |
| 23686 | s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t |
| 23687 | s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t |
| 23688 | s,@machfile@,$machfile,;t t |
| 23689 | s,@opsysfile@,$opsysfile,;t t |
| 23690 | s,@carbon_appdir@,$carbon_appdir,;t t |
| 23691 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 23692 | CEOF |
| 23693 | |
| 23694 | _ACEOF |
| 23695 | |
| 23696 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23697 | # Split the substitutions into bite-sized pieces for seds with |
| 23698 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 23699 | ac_max_sed_lines=48 |
| 23700 | ac_sed_frag=1 # Number of current file. |
| 23701 | ac_beg=1 # First line for current file. |
| 23702 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 23703 | ac_more_lines=: |
| 23704 | ac_sed_cmds= |
| 23705 | while $ac_more_lines; do |
| 23706 | if test $ac_beg -gt 1; then |
| 23707 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 23708 | else |
| 23709 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 23710 | fi |
| 23711 | if test ! -s $tmp/subs.frag; then |
| 23712 | ac_more_lines=false |
| 23713 | else |
| 23714 | # The purpose of the label and of the branching condition is to |
| 23715 | # speed up the sed processing (if there are no `@' at all, there |
| 23716 | # is no need to browse any of the substitutions). |
| 23717 | # These are the two extra sed commands mentioned above. |
| 23718 | (echo ':t |
| 23719 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 23720 | if test -z "$ac_sed_cmds"; then |
| 23721 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 23722 | else |
| 23723 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 23724 | fi |
| 23725 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 23726 | ac_beg=$ac_end |
| 23727 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 23728 | fi |
| 23729 | done |
| 23730 | if test -z "$ac_sed_cmds"; then |
| 23731 | ac_sed_cmds=cat |
| 23732 | fi |
| 23733 | fi # test -n "$CONFIG_FILES" |
| 23734 | |
| 23735 | _ACEOF |
| 23736 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23737 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 23738 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 23739 | case $ac_file in |
| 23740 | - | *:- | *:-:* ) # input from stdin |
| 23741 | cat >$tmp/stdin |
| 23742 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 23743 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 23744 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 23745 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 23746 | * ) ac_file_in=$ac_file.in ;; |
| 23747 | esac |
| 23748 | |
| 23749 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 23750 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 23751 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23752 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 23753 | X"$ac_file" : 'X\(//\)$' \| \ |
| 23754 | X"$ac_file" : 'X\(/\)' \| \ |
| 23755 | . : '\(.\)' 2>/dev/null || |
| 23756 | echo X"$ac_file" | |
| 23757 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23758 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23759 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23760 | /^X\(\/\).*/{ s//\1/; q; } |
| 23761 | s/.*/./; q'` |
| 23762 | { if $as_mkdir_p; then |
| 23763 | mkdir -p "$ac_dir" |
| 23764 | else |
| 23765 | as_dir="$ac_dir" |
| 23766 | as_dirs= |
| 23767 | while test ! -d "$as_dir"; do |
| 23768 | as_dirs="$as_dir $as_dirs" |
| 23769 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 23770 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23771 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 23772 | X"$as_dir" : 'X\(//\)$' \| \ |
| 23773 | X"$as_dir" : 'X\(/\)' \| \ |
| 23774 | . : '\(.\)' 2>/dev/null || |
| 23775 | echo X"$as_dir" | |
| 23776 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23777 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23778 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23779 | /^X\(\/\).*/{ s//\1/; q; } |
| 23780 | s/.*/./; q'` |
| 23781 | done |
| 23782 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 23783 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 23784 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 23785 | { (exit 1); exit 1; }; }; } |
| 23786 | |
| 23787 | ac_builddir=. |
| 23788 | |
| 23789 | if test "$ac_dir" != .; then |
| 23790 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 23791 | # A "../" for each directory in $ac_dir_suffix. |
| 23792 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 23793 | else |
| 23794 | ac_dir_suffix= ac_top_builddir= |
| 23795 | fi |
| 23796 | |
| 23797 | case $srcdir in |
| 23798 | .) # No --srcdir option. We are building in place. |
| 23799 | ac_srcdir=. |
| 23800 | if test -z "$ac_top_builddir"; then |
| 23801 | ac_top_srcdir=. |
| 23802 | else |
| 23803 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 23804 | fi ;; |
| 23805 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 23806 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 23807 | ac_top_srcdir=$srcdir ;; |
| 23808 | *) # Relative path. |
| 23809 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 23810 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 23811 | esac |
| 23812 | |
| 23813 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 23814 | # the directories may not exist. |
| 23815 | case `pwd` in |
| 23816 | .) ac_abs_builddir="$ac_dir";; |
| 23817 | *) |
| 23818 | case "$ac_dir" in |
| 23819 | .) ac_abs_builddir=`pwd`;; |
| 23820 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 23821 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 23822 | esac;; |
| 23823 | esac |
| 23824 | case $ac_abs_builddir in |
| 23825 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 23826 | *) |
| 23827 | case ${ac_top_builddir}. in |
| 23828 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 23829 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 23830 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 23831 | esac;; |
| 23832 | esac |
| 23833 | case $ac_abs_builddir in |
| 23834 | .) ac_abs_srcdir=$ac_srcdir;; |
| 23835 | *) |
| 23836 | case $ac_srcdir in |
| 23837 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 23838 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 23839 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 23840 | esac;; |
| 23841 | esac |
| 23842 | case $ac_abs_builddir in |
| 23843 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 23844 | *) |
| 23845 | case $ac_top_srcdir in |
| 23846 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 23847 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 23848 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 23849 | esac;; |
| 23850 | esac |
| 23851 | |
| 23852 | |
| 23853 | case $INSTALL in |
| 23854 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 23855 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 23856 | esac |
| 23857 | |
| 23858 | if test x"$ac_file" != x-; then |
| 23859 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 23860 | echo "$as_me: creating $ac_file" >&6;} |
| 23861 | rm -f "$ac_file" |
| 23862 | fi |
| 23863 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 23864 | # use $as_me), people would be surprised to read: |
| 23865 | # /* config.h. Generated by config.status. */ |
| 23866 | if test x"$ac_file" = x-; then |
| 23867 | configure_input= |
| 23868 | else |
| 23869 | configure_input="$ac_file. " |
| 23870 | fi |
| 23871 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 23872 | sed 's,.*/,,'` by configure." |
| 23873 | |
| 23874 | # First look for the input files in the build tree, otherwise in the |
| 23875 | # src tree. |
| 23876 | ac_file_inputs=`IFS=: |
| 23877 | for f in $ac_file_in; do |
| 23878 | case $f in |
| 23879 | -) echo $tmp/stdin ;; |
| 23880 | [\\/$]*) |
| 23881 | # Absolute (can't be DOS-style, as IFS=:) |
| 23882 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 23883 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 23884 | { (exit 1); exit 1; }; } |
| 23885 | echo "$f";; |
| 23886 | *) # Relative |
| 23887 | if test -f "$f"; then |
| 23888 | # Build tree |
| 23889 | echo "$f" |
| 23890 | elif test -f "$srcdir/$f"; then |
| 23891 | # Source tree |
| 23892 | echo "$srcdir/$f" |
| 23893 | else |
| 23894 | # /dev/null tree |
| 23895 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 23896 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 23897 | { (exit 1); exit 1; }; } |
| 23898 | fi;; |
| 23899 | esac |
| 23900 | done` || { (exit 1); exit 1; } |
| 23901 | _ACEOF |
| 23902 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23903 | sed "$ac_vpsub |
| 23904 | $extrasub |
| 23905 | _ACEOF |
| 23906 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23907 | :t |
| 23908 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 23909 | s,@configure_input@,$configure_input,;t t |
| 23910 | s,@srcdir@,$ac_srcdir,;t t |
| 23911 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 23912 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 23913 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 23914 | s,@builddir@,$ac_builddir,;t t |
| 23915 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 23916 | s,@top_builddir@,$ac_top_builddir,;t t |
| 23917 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 23918 | s,@INSTALL@,$ac_INSTALL,;t t |
| 23919 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 23920 | rm -f $tmp/stdin |
| 23921 | if test x"$ac_file" != x-; then |
| 23922 | mv $tmp/out $ac_file |
| 23923 | else |
| 23924 | cat $tmp/out |
| 23925 | rm -f $tmp/out |
| 23926 | fi |
| 23927 | |
| 23928 | done |
| 23929 | _ACEOF |
| 23930 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23931 | |
| 23932 | # |
| 23933 | # CONFIG_HEADER section. |
| 23934 | # |
| 23935 | |
| 23936 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 23937 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 23938 | # |
| 23939 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 23940 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 23941 | ac_dB='[ ].*$,\1#\2' |
| 23942 | ac_dC=' ' |
| 23943 | ac_dD=',;t' |
| 23944 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 23945 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 23946 | ac_uB='$,\1#\2define\3' |
| 23947 | ac_uC=' ' |
| 23948 | ac_uD=',;t' |
| 23949 | |
| 23950 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 23951 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 23952 | case $ac_file in |
| 23953 | - | *:- | *:-:* ) # input from stdin |
| 23954 | cat >$tmp/stdin |
| 23955 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 23956 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 23957 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 23958 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 23959 | * ) ac_file_in=$ac_file.in ;; |
| 23960 | esac |
| 23961 | |
| 23962 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 23963 | echo "$as_me: creating $ac_file" >&6;} |
| 23964 | |
| 23965 | # First look for the input files in the build tree, otherwise in the |
| 23966 | # src tree. |
| 23967 | ac_file_inputs=`IFS=: |
| 23968 | for f in $ac_file_in; do |
| 23969 | case $f in |
| 23970 | -) echo $tmp/stdin ;; |
| 23971 | [\\/$]*) |
| 23972 | # Absolute (can't be DOS-style, as IFS=:) |
| 23973 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 23974 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 23975 | { (exit 1); exit 1; }; } |
| 23976 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 23977 | echo "$f";; |
| 23978 | *) # Relative |
| 23979 | if test -f "$f"; then |
| 23980 | # Build tree |
| 23981 | echo "$f" |
| 23982 | elif test -f "$srcdir/$f"; then |
| 23983 | # Source tree |
| 23984 | echo "$srcdir/$f" |
| 23985 | else |
| 23986 | # /dev/null tree |
| 23987 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 23988 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 23989 | { (exit 1); exit 1; }; } |
| 23990 | fi;; |
| 23991 | esac |
| 23992 | done` || { (exit 1); exit 1; } |
| 23993 | # Remove the trailing spaces. |
| 23994 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 23995 | |
| 23996 | _ACEOF |
| 23997 | |
| 23998 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 23999 | # `conftest.undefs', that substitutes the proper values into |
| 24000 | # config.h.in to produce config.h. The first handles `#define' |
| 24001 | # templates, and the second `#undef' templates. |
| 24002 | # And first: Protect against being on the right side of a sed subst in |
| 24003 | # config.status. Protect against being in an unquoted here document |
| 24004 | # in config.status. |
| 24005 | rm -f conftest.defines conftest.undefs |
| 24006 | # Using a here document instead of a string reduces the quoting nightmare. |
| 24007 | # Putting comments in sed scripts is not portable. |
| 24008 | # |
| 24009 | # `end' is used to avoid that the second main sed command (meant for |
| 24010 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 24011 | # See the Autoconf documentation for `clear'. |
| 24012 | cat >confdef2sed.sed <<\_ACEOF |
| 24013 | s/[\\&,]/\\&/g |
| 24014 | s,[\\$`],\\&,g |
| 24015 | t clear |
| 24016 | : clear |
| 24017 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 24018 | t end |
| 24019 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 24020 | : end |
| 24021 | _ACEOF |
| 24022 | # If some macros were called several times there might be several times |
| 24023 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 24024 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 24025 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 24026 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 24027 | rm -f confdef2sed.sed |
| 24028 | |
| 24029 | # This sed command replaces #undef with comments. This is necessary, for |
| 24030 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 24031 | # on some systems where configure will not decide to define it. |
| 24032 | cat >>conftest.undefs <<\_ACEOF |
| 24033 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 24034 | _ACEOF |
| 24035 | |
| 24036 | # Break up conftest.defines because some shells have a limit on the size |
| 24037 | # of here documents, and old seds have small limits too (100 cmds). |
| 24038 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 24039 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 24040 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 24041 | echo ' :' >>$CONFIG_STATUS |
| 24042 | rm -f conftest.tail |
| 24043 | while grep . conftest.defines >/dev/null |
| 24044 | do |
| 24045 | # Write a limited-size here document to $tmp/defines.sed. |
| 24046 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 24047 | # Speed up: don't consider the non `#define' lines. |
| 24048 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 24049 | # Work around the forget-to-reset-the-flag bug. |
| 24050 | echo 't clr' >>$CONFIG_STATUS |
| 24051 | echo ': clr' >>$CONFIG_STATUS |
| 24052 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 24053 | echo 'CEOF |
| 24054 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 24055 | rm -f $tmp/in |
| 24056 | mv $tmp/out $tmp/in |
| 24057 | ' >>$CONFIG_STATUS |
| 24058 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 24059 | rm -f conftest.defines |
| 24060 | mv conftest.tail conftest.defines |
| 24061 | done |
| 24062 | rm -f conftest.defines |
| 24063 | echo ' fi # grep' >>$CONFIG_STATUS |
| 24064 | echo >>$CONFIG_STATUS |
| 24065 | |
| 24066 | # Break up conftest.undefs because some shells have a limit on the size |
| 24067 | # of here documents, and old seds have small limits too (100 cmds). |
| 24068 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 24069 | rm -f conftest.tail |
| 24070 | while grep . conftest.undefs >/dev/null |
| 24071 | do |
| 24072 | # Write a limited-size here document to $tmp/undefs.sed. |
| 24073 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 24074 | # Speed up: don't consider the non `#undef' |
| 24075 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 24076 | # Work around the forget-to-reset-the-flag bug. |
| 24077 | echo 't clr' >>$CONFIG_STATUS |
| 24078 | echo ': clr' >>$CONFIG_STATUS |
| 24079 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 24080 | echo 'CEOF |
| 24081 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 24082 | rm -f $tmp/in |
| 24083 | mv $tmp/out $tmp/in |
| 24084 | ' >>$CONFIG_STATUS |
| 24085 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 24086 | rm -f conftest.undefs |
| 24087 | mv conftest.tail conftest.undefs |
| 24088 | done |
| 24089 | rm -f conftest.undefs |
| 24090 | |
| 24091 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24092 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 24093 | # use $as_me), people would be surprised to read: |
| 24094 | # /* config.h. Generated by config.status. */ |
| 24095 | if test x"$ac_file" = x-; then |
| 24096 | echo "/* Generated by configure. */" >$tmp/config.h |
| 24097 | else |
| 24098 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 24099 | fi |
| 24100 | cat $tmp/in >>$tmp/config.h |
| 24101 | rm -f $tmp/in |
| 24102 | if test x"$ac_file" != x-; then |
| 24103 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 24104 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 24105 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 24106 | else |
| 24107 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 24108 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24109 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 24110 | X"$ac_file" : 'X\(//\)$' \| \ |
| 24111 | X"$ac_file" : 'X\(/\)' \| \ |
| 24112 | . : '\(.\)' 2>/dev/null || |
| 24113 | echo X"$ac_file" | |
| 24114 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 24115 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 24116 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 24117 | /^X\(\/\).*/{ s//\1/; q; } |
| 24118 | s/.*/./; q'` |
| 24119 | { if $as_mkdir_p; then |
| 24120 | mkdir -p "$ac_dir" |
| 24121 | else |
| 24122 | as_dir="$ac_dir" |
| 24123 | as_dirs= |
| 24124 | while test ! -d "$as_dir"; do |
| 24125 | as_dirs="$as_dir $as_dirs" |
| 24126 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 24127 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24128 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 24129 | X"$as_dir" : 'X\(//\)$' \| \ |
| 24130 | X"$as_dir" : 'X\(/\)' \| \ |
| 24131 | . : '\(.\)' 2>/dev/null || |
| 24132 | echo X"$as_dir" | |
| 24133 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 24134 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 24135 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 24136 | /^X\(\/\).*/{ s//\1/; q; } |
| 24137 | s/.*/./; q'` |
| 24138 | done |
| 24139 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 24140 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 24141 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 24142 | { (exit 1); exit 1; }; }; } |
| 24143 | |
| 24144 | rm -f $ac_file |
| 24145 | mv $tmp/config.h $ac_file |
| 24146 | fi |
| 24147 | else |
| 24148 | cat $tmp/config.h |
| 24149 | rm -f $tmp/config.h |
| 24150 | fi |
| 24151 | done |
| 24152 | _ACEOF |
| 24153 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24154 | |
| 24155 | # |
| 24156 | # CONFIG_COMMANDS section. |
| 24157 | # |
| 24158 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 24159 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 24160 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 24161 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 24162 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24163 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 24164 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 24165 | X"$ac_dest" : 'X\(/\)' \| \ |
| 24166 | . : '\(.\)' 2>/dev/null || |
| 24167 | echo X"$ac_dest" | |
| 24168 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 24169 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 24170 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 24171 | /^X\(\/\).*/{ s//\1/; q; } |
| 24172 | s/.*/./; q'` |
| 24173 | { if $as_mkdir_p; then |
| 24174 | mkdir -p "$ac_dir" |
| 24175 | else |
| 24176 | as_dir="$ac_dir" |
| 24177 | as_dirs= |
| 24178 | while test ! -d "$as_dir"; do |
| 24179 | as_dirs="$as_dir $as_dirs" |
| 24180 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 24181 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24182 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 24183 | X"$as_dir" : 'X\(//\)$' \| \ |
| 24184 | X"$as_dir" : 'X\(/\)' \| \ |
| 24185 | . : '\(.\)' 2>/dev/null || |
| 24186 | echo X"$as_dir" | |
| 24187 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 24188 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 24189 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 24190 | /^X\(\/\).*/{ s//\1/; q; } |
| 24191 | s/.*/./; q'` |
| 24192 | done |
| 24193 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 24194 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 24195 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 24196 | { (exit 1); exit 1; }; }; } |
| 24197 | |
| 24198 | ac_builddir=. |
| 24199 | |
| 24200 | if test "$ac_dir" != .; then |
| 24201 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 24202 | # A "../" for each directory in $ac_dir_suffix. |
| 24203 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 24204 | else |
| 24205 | ac_dir_suffix= ac_top_builddir= |
| 24206 | fi |
| 24207 | |
| 24208 | case $srcdir in |
| 24209 | .) # No --srcdir option. We are building in place. |
| 24210 | ac_srcdir=. |
| 24211 | if test -z "$ac_top_builddir"; then |
| 24212 | ac_top_srcdir=. |
| 24213 | else |
| 24214 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 24215 | fi ;; |
| 24216 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 24217 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 24218 | ac_top_srcdir=$srcdir ;; |
| 24219 | *) # Relative path. |
| 24220 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 24221 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 24222 | esac |
| 24223 | |
| 24224 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 24225 | # the directories may not exist. |
| 24226 | case `pwd` in |
| 24227 | .) ac_abs_builddir="$ac_dir";; |
| 24228 | *) |
| 24229 | case "$ac_dir" in |
| 24230 | .) ac_abs_builddir=`pwd`;; |
| 24231 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 24232 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 24233 | esac;; |
| 24234 | esac |
| 24235 | case $ac_abs_builddir in |
| 24236 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 24237 | *) |
| 24238 | case ${ac_top_builddir}. in |
| 24239 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 24240 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 24241 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 24242 | esac;; |
| 24243 | esac |
| 24244 | case $ac_abs_builddir in |
| 24245 | .) ac_abs_srcdir=$ac_srcdir;; |
| 24246 | *) |
| 24247 | case $ac_srcdir in |
| 24248 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 24249 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 24250 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 24251 | esac;; |
| 24252 | esac |
| 24253 | case $ac_abs_builddir in |
| 24254 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 24255 | *) |
| 24256 | case $ac_top_srcdir in |
| 24257 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 24258 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 24259 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 24260 | esac;; |
| 24261 | esac |
| 24262 | |
| 24263 | |
| 24264 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 24265 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 24266 | case $ac_dest in |
| 24267 | default ) |
| 24268 | |
| 24269 | ### Make the necessary directories, if they don't exist. |
| 24270 | for dir in etc lisp ; do |
| 24271 | test -d ${dir} || mkdir ${dir} |
| 24272 | done |
| 24273 | |
| 24274 | # Build src/Makefile from ${srcdir}/src/Makefile.c |
| 24275 | # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c |
| 24276 | # This must be done after src/config.h is built, since we rely on that file. |
| 24277 | |
| 24278 | # Now get this: Some word that is part of the ${srcdir} directory name |
| 24279 | # or the ${configuration} value might, just might, happen to be an |
| 24280 | # identifier like `sun4' or `i386' or something, and be predefined by |
| 24281 | # the C preprocessor to some helpful value like 1, or maybe the empty |
| 24282 | # string. Needless to say consequent macro substitutions are less |
| 24283 | # than conducive to the makefile finding the correct directory. |
| 24284 | undefs="`echo $top_srcdir $configuration $canonical | |
| 24285 | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ |
| 24286 | -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ |
| 24287 | `" |
| 24288 | |
| 24289 | echo creating src/epaths.h |
| 24290 | ${MAKE-make} epaths-force |
| 24291 | |
| 24292 | # As of 2000-11-19, newest development versions of GNU cpp preprocess |
| 24293 | # `..' to `. .' unless invoked with -traditional |
| 24294 | |
| 24295 | if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then |
| 24296 | CPPFLAGS="$CPPFLAGS -traditional" |
| 24297 | fi |
| 24298 | |
| 24299 | echo creating lib-src/Makefile |
| 24300 | ( cd lib-src |
| 24301 | rm -f junk.c junk1.c junk2.c |
| 24302 | sed -e '/start of cpp stuff/q' \ |
| 24303 | < Makefile.c > junk1.c |
| 24304 | sed -e '1,/start of cpp stuff/d'\ |
| 24305 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
| 24306 | < Makefile.c > junk.c |
| 24307 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
| 24308 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c |
| 24309 | cat junk1.c junk2.c > Makefile.new |
| 24310 | rm -f junk.c junk1.c junk2.c |
| 24311 | chmod 444 Makefile.new |
| 24312 | mv -f Makefile.new Makefile |
| 24313 | ) |
| 24314 | |
| 24315 | echo creating src/Makefile |
| 24316 | ( cd src |
| 24317 | rm -f junk.c junk1.c junk2.c |
| 24318 | sed -e '/start of cpp stuff/q' \ |
| 24319 | < Makefile.c > junk1.c |
| 24320 | sed -e '1,/start of cpp stuff/d'\ |
| 24321 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
| 24322 | < Makefile.c > junk.c |
| 24323 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
| 24324 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c |
| 24325 | cat junk1.c junk2.c > Makefile.new |
| 24326 | rm -f junk.c junk1.c junk2.c |
| 24327 | chmod 444 Makefile.new |
| 24328 | mv -f Makefile.new Makefile |
| 24329 | ) |
| 24330 | |
| 24331 | if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
| 24332 | echo creating src/.gdbinit |
| 24333 | echo source $srcdir/src/.gdbinit > src/.gdbinit |
| 24334 | fi |
| 24335 | |
| 24336 | # This is how we know whether to re-run configure in certain cases. |
| 24337 | touch src/config.stamp |
| 24338 | |
| 24339 | ;; |
| 24340 | esac |
| 24341 | done |
| 24342 | _ACEOF |
| 24343 | |
| 24344 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24345 | |
| 24346 | { (exit 0); exit 0; } |
| 24347 | _ACEOF |
| 24348 | chmod +x $CONFIG_STATUS |
| 24349 | ac_clean_files=$ac_clean_files_save |
| 24350 | |
| 24351 | |
| 24352 | # configure is writing to config.log, and then calls config.status. |
| 24353 | # config.status does its own redirection, appending to config.log. |
| 24354 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 24355 | # by configure, so config.status won't be able to write to it; its |
| 24356 | # output is simply discarded. So we exec the FD to /dev/null, |
| 24357 | # effectively closing config.log, so it can be properly (re)opened and |
| 24358 | # appended to by config.status. When coming back to configure, we |
| 24359 | # need to make the FD available again. |
| 24360 | if test "$no_create" != yes; then |
| 24361 | ac_cs_success=: |
| 24362 | ac_config_status_args= |
| 24363 | test "$silent" = yes && |
| 24364 | ac_config_status_args="$ac_config_status_args --quiet" |
| 24365 | exec 5>/dev/null |
| 24366 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 24367 | exec 5>>config.log |
| 24368 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 24369 | # would make configure fail if this is the last instruction. |
| 24370 | $ac_cs_success || { (exit 1); exit 1; } |
| 24371 | fi |
| 24372 | |
| 24373 | |