Merge from emacs-24; up to 2012-12-05T00:13:56Z!yamaoka@jpl.org
[emacs.git] / autogen / configure
blobd63c16bb528f899802e2e5a9669091a3ad2bd765
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.3.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.3.50'
553 PACKAGE_STRING='emacs 24.3.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 ac_func_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 SUBDIR_MAKEFILES_IN
607 WINDOW_SYSTEM_OBJ
608 LIB_GCC
609 LD_FIRSTFLAG
610 LD_SWITCH_SYSTEM_TEMACS
611 LIBGNU_LTLIBDEPS
612 LIBGNU_LIBDEPS
613 gltests_WITNESS
614 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
615 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
616 gl_GNULIB_ENABLED_verify_FALSE
617 gl_GNULIB_ENABLED_verify_TRUE
618 gl_GNULIB_ENABLED_strtoull_FALSE
619 gl_GNULIB_ENABLED_strtoull_TRUE
620 gl_GNULIB_ENABLED_strtoll_FALSE
621 gl_GNULIB_ENABLED_strtoll_TRUE
622 gl_GNULIB_ENABLED_stat_FALSE
623 gl_GNULIB_ENABLED_stat_TRUE
624 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
625 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
626 gl_GNULIB_ENABLED_pathmax_FALSE
627 gl_GNULIB_ENABLED_pathmax_TRUE
628 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
629 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
630 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
631 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
632 gl_GNULIB_ENABLED_getgroups_FALSE
633 gl_GNULIB_ENABLED_getgroups_TRUE
634 gl_GNULIB_ENABLED_euidaccess_FALSE
635 gl_GNULIB_ENABLED_euidaccess_TRUE
636 gl_GNULIB_ENABLED_dosname_FALSE
637 gl_GNULIB_ENABLED_dosname_TRUE
638 LTLIBINTL
639 LIBINTL
640 LIB_EACCESS
641 WINDOWS_64_BIT_OFF_T
642 HAVE_UNISTD_H
643 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
644 NEXT_UNISTD_H
645 LIB_TIMER_TIME
646 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
647 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
648 TIME_H_DEFINES_STRUCT_TIMESPEC
649 NEXT_AS_FIRST_DIRECTIVE_TIME_H
650 NEXT_TIME_H
651 WINDOWS_64_BIT_ST_SIZE
652 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
653 NEXT_SYS_STAT_H
654 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
655 NEXT_STDLIB_H
656 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
657 NEXT_STDIO_H
658 REPLACE_VSPRINTF
659 REPLACE_VSNPRINTF
660 REPLACE_VPRINTF
661 REPLACE_VFPRINTF
662 REPLACE_VDPRINTF
663 REPLACE_VASPRINTF
664 REPLACE_TMPFILE
665 REPLACE_STDIO_WRITE_FUNCS
666 REPLACE_STDIO_READ_FUNCS
667 REPLACE_SPRINTF
668 REPLACE_SNPRINTF
669 REPLACE_RENAMEAT
670 REPLACE_RENAME
671 REPLACE_REMOVE
672 REPLACE_PRINTF
673 REPLACE_POPEN
674 REPLACE_PERROR
675 REPLACE_OBSTACK_PRINTF
676 REPLACE_GETLINE
677 REPLACE_GETDELIM
678 REPLACE_FTELLO
679 REPLACE_FTELL
680 REPLACE_FSEEKO
681 REPLACE_FSEEK
682 REPLACE_FREOPEN
683 REPLACE_FPURGE
684 REPLACE_FPRINTF
685 REPLACE_FOPEN
686 REPLACE_FFLUSH
687 REPLACE_FDOPEN
688 REPLACE_FCLOSE
689 REPLACE_DPRINTF
690 HAVE_VDPRINTF
691 HAVE_VASPRINTF
692 HAVE_RENAMEAT
693 HAVE_POPEN
694 HAVE_PCLOSE
695 HAVE_FTELLO
696 HAVE_FSEEKO
697 HAVE_DPRINTF
698 HAVE_DECL_VSNPRINTF
699 HAVE_DECL_SNPRINTF
700 HAVE_DECL_OBSTACK_PRINTF
701 HAVE_DECL_GETLINE
702 HAVE_DECL_GETDELIM
703 HAVE_DECL_FTELLO
704 HAVE_DECL_FSEEKO
705 HAVE_DECL_FPURGE
706 GNULIB_VSPRINTF_POSIX
707 GNULIB_VSNPRINTF
708 GNULIB_VPRINTF_POSIX
709 GNULIB_VPRINTF
710 GNULIB_VFPRINTF_POSIX
711 GNULIB_VFPRINTF
712 GNULIB_VDPRINTF
713 GNULIB_VSCANF
714 GNULIB_VFSCANF
715 GNULIB_VASPRINTF
716 GNULIB_TMPFILE
717 GNULIB_STDIO_H_SIGPIPE
718 GNULIB_STDIO_H_NONBLOCKING
719 GNULIB_SPRINTF_POSIX
720 GNULIB_SNPRINTF
721 GNULIB_SCANF
722 GNULIB_RENAMEAT
723 GNULIB_RENAME
724 GNULIB_REMOVE
725 GNULIB_PUTS
726 GNULIB_PUTCHAR
727 GNULIB_PUTC
728 GNULIB_PRINTF_POSIX
729 GNULIB_PRINTF
730 GNULIB_POPEN
731 GNULIB_PERROR
732 GNULIB_PCLOSE
733 GNULIB_OBSTACK_PRINTF_POSIX
734 GNULIB_OBSTACK_PRINTF
735 GNULIB_GETLINE
736 GNULIB_GETDELIM
737 GNULIB_GETCHAR
738 GNULIB_GETC
739 GNULIB_FWRITE
740 GNULIB_FTELLO
741 GNULIB_FTELL
742 GNULIB_FSEEKO
743 GNULIB_FSEEK
744 GNULIB_FSCANF
745 GNULIB_FREOPEN
746 GNULIB_FREAD
747 GNULIB_FPUTS
748 GNULIB_FPUTC
749 GNULIB_FPURGE
750 GNULIB_FPRINTF_POSIX
751 GNULIB_FPRINTF
752 GNULIB_FOPEN
753 GNULIB_FGETS
754 GNULIB_FGETC
755 GNULIB_FFLUSH
756 GNULIB_FDOPEN
757 GNULIB_FCLOSE
758 GNULIB_DPRINTF
759 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
760 NEXT_STDDEF_H
761 GL_GENERATE_STDDEF_H_FALSE
762 GL_GENERATE_STDDEF_H_TRUE
763 STDDEF_H
764 HAVE_WCHAR_T
765 REPLACE_NULL
766 HAVE__BOOL
767 GL_GENERATE_STDBOOL_H_FALSE
768 GL_GENERATE_STDBOOL_H_TRUE
769 STDBOOL_H
770 GL_GENERATE_STDARG_H_FALSE
771 GL_GENERATE_STDARG_H_TRUE
772 STDARG_H
773 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
774 NEXT_STDARG_H
775 GL_GENERATE_STDALIGN_H_FALSE
776 GL_GENERATE_STDALIGN_H_TRUE
777 STDALIGN_H
778 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
779 NEXT_SIGNAL_H
780 LIB_PTHREAD_SIGMASK
781 REPLACE_RAISE
782 REPLACE_PTHREAD_SIGMASK
783 HAVE_SIGHANDLER_T
784 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
785 HAVE_STRUCT_SIGACTION_SA_SIGACTION
786 HAVE_SIGACTION
787 HAVE_SIGINFO_T
788 HAVE_SIGSET_T
789 HAVE_RAISE
790 HAVE_PTHREAD_SIGMASK
791 HAVE_POSIX_SIGNALBLOCKING
792 GNULIB_SIGACTION
793 GNULIB_SIGPROCMASK
794 GNULIB_SIGNAL_H_SIGPIPE
795 GNULIB_RAISE
796 GNULIB_PTHREAD_SIGMASK
797 HAVE_SYS_SELECT_H
798 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
799 NEXT_SYS_SELECT_H
800 REPLACE_SELECT
801 REPLACE_PSELECT
802 HAVE_PSELECT
803 GNULIB_SELECT
804 GNULIB_PSELECT
805 REPLACE_TIMEGM
806 REPLACE_NANOSLEEP
807 REPLACE_MKTIME
808 REPLACE_LOCALTIME_R
809 HAVE_TIMEGM
810 HAVE_STRPTIME
811 HAVE_NANOSLEEP
812 HAVE_DECL_LOCALTIME_R
813 GNULIB_TIME_R
814 GNULIB_TIMEGM
815 GNULIB_STRPTIME
816 GNULIB_NANOSLEEP
817 GNULIB_MKTIME
818 REPLACE_UTIMENSAT
819 REPLACE_STAT
820 REPLACE_MKNOD
821 REPLACE_MKFIFO
822 REPLACE_MKDIR
823 REPLACE_LSTAT
824 REPLACE_FUTIMENS
825 REPLACE_FSTATAT
826 REPLACE_FSTAT
827 HAVE_UTIMENSAT
828 HAVE_MKNODAT
829 HAVE_MKNOD
830 HAVE_MKFIFOAT
831 HAVE_MKFIFO
832 HAVE_MKDIRAT
833 HAVE_LSTAT
834 HAVE_LCHMOD
835 HAVE_FUTIMENS
836 HAVE_FSTATAT
837 HAVE_FCHMODAT
838 GNULIB_UTIMENSAT
839 GNULIB_STAT
840 GNULIB_MKNODAT
841 GNULIB_MKNOD
842 GNULIB_MKFIFOAT
843 GNULIB_MKFIFO
844 GNULIB_MKDIRAT
845 GNULIB_LSTAT
846 GNULIB_LCHMOD
847 GNULIB_FUTIMENS
848 GNULIB_FSTATAT
849 GNULIB_FSTAT
850 GNULIB_FCHMODAT
851 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
852 NEXT_INTTYPES_H
853 UINT64_MAX_EQ_ULONG_MAX
854 UINT32_MAX_LT_UINTMAX_MAX
855 PRIPTR_PREFIX
856 PRI_MACROS_BROKEN
857 INT64_MAX_EQ_LONG_MAX
858 INT32_MAX_LT_INTMAX_MAX
859 REPLACE_STRTOIMAX
860 HAVE_DECL_STRTOUMAX
861 HAVE_DECL_STRTOIMAX
862 HAVE_DECL_IMAXDIV
863 HAVE_DECL_IMAXABS
864 GNULIB_STRTOUMAX
865 GNULIB_STRTOIMAX
866 GNULIB_IMAXDIV
867 GNULIB_IMAXABS
868 GL_GENERATE_STDINT_H_FALSE
869 GL_GENERATE_STDINT_H_TRUE
870 STDINT_H
871 WINT_T_SUFFIX
872 WCHAR_T_SUFFIX
873 SIG_ATOMIC_T_SUFFIX
874 SIZE_T_SUFFIX
875 PTRDIFF_T_SUFFIX
876 HAVE_SIGNED_WINT_T
877 HAVE_SIGNED_WCHAR_T
878 HAVE_SIGNED_SIG_ATOMIC_T
879 BITSIZEOF_WINT_T
880 BITSIZEOF_WCHAR_T
881 BITSIZEOF_SIG_ATOMIC_T
882 BITSIZEOF_SIZE_T
883 BITSIZEOF_PTRDIFF_T
884 APPLE_UNIVERSAL_BUILD
885 HAVE_SYS_BITYPES_H
886 HAVE_SYS_INTTYPES_H
887 HAVE_STDINT_H
888 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
889 NEXT_STDINT_H
890 HAVE_SYS_TYPES_H
891 HAVE_INTTYPES_H
892 HAVE_WCHAR_H
893 HAVE_UNSIGNED_LONG_LONG_INT
894 HAVE_LONG_LONG_INT
895 HAVE_WINSOCK2_H
896 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
897 NEXT_SYS_TIME_H
898 REPLACE_STRUCT_TIMEVAL
899 REPLACE_GETTIMEOFDAY
900 HAVE_SYS_TIME_H
901 HAVE_STRUCT_TIMEVAL
902 HAVE_GETTIMEOFDAY
903 GNULIB_GETTIMEOFDAY
904 GNULIB_GL_UNISTD_H_GETOPT
905 GETOPT_H
906 HAVE_GETOPT_H
907 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
908 NEXT_GETOPT_H
909 GETLOADAVG_LIBS
910 REPLACE_WCTOMB
911 REPLACE_UNSETENV
912 REPLACE_STRTOD
913 REPLACE_SETENV
914 REPLACE_REALPATH
915 REPLACE_REALLOC
916 REPLACE_RANDOM_R
917 REPLACE_PUTENV
918 REPLACE_PTSNAME_R
919 REPLACE_PTSNAME
920 REPLACE_MKSTEMP
921 REPLACE_MBTOWC
922 REPLACE_MALLOC
923 REPLACE_CANONICALIZE_FILE_NAME
924 REPLACE_CALLOC
925 HAVE_DECL_UNSETENV
926 HAVE_UNLOCKPT
927 HAVE_SYS_LOADAVG_H
928 HAVE_STRUCT_RANDOM_DATA
929 HAVE_STRTOULL
930 HAVE_STRTOLL
931 HAVE_STRTOD
932 HAVE_DECL_SETENV
933 HAVE_SETENV
934 HAVE_RPMATCH
935 HAVE_REALPATH
936 HAVE_RANDOM_R
937 HAVE_RANDOM_H
938 HAVE_RANDOM
939 HAVE_PTSNAME_R
940 HAVE_PTSNAME
941 HAVE_POSIX_OPENPT
942 HAVE_MKSTEMPS
943 HAVE_MKSTEMP
944 HAVE_MKOSTEMPS
945 HAVE_MKOSTEMP
946 HAVE_MKDTEMP
947 HAVE_GRANTPT
948 HAVE_GETSUBOPT
949 HAVE_DECL_GETLOADAVG
950 HAVE_CANONICALIZE_FILE_NAME
951 HAVE_ATOLL
952 HAVE__EXIT
953 GNULIB_WCTOMB
954 GNULIB_UNSETENV
955 GNULIB_UNLOCKPT
956 GNULIB_SYSTEM_POSIX
957 GNULIB_STRTOULL
958 GNULIB_STRTOLL
959 GNULIB_STRTOD
960 GNULIB_SETENV
961 GNULIB_RPMATCH
962 GNULIB_REALPATH
963 GNULIB_REALLOC_POSIX
964 GNULIB_RANDOM_R
965 GNULIB_RANDOM
966 GNULIB_PUTENV
967 GNULIB_PTSNAME_R
968 GNULIB_PTSNAME
969 GNULIB_POSIX_OPENPT
970 GNULIB_MKSTEMPS
971 GNULIB_MKSTEMP
972 GNULIB_MKOSTEMPS
973 GNULIB_MKOSTEMP
974 GNULIB_MKDTEMP
975 GNULIB_MBTOWC
976 GNULIB_MALLOC_POSIX
977 GNULIB_GRANTPT
978 GNULIB_GETSUBOPT
979 GNULIB_GETLOADAVG
980 GNULIB_CANONICALIZE_FILE_NAME
981 GNULIB_CALLOC_POSIX
982 GNULIB_ATOLL
983 GNULIB__EXIT
984 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
985 NEXT_FCNTL_H
986 PRAGMA_COLUMNS
987 PRAGMA_SYSTEM_HEADER
988 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
989 INCLUDE_NEXT
990 REPLACE_OPENAT
991 REPLACE_OPEN
992 REPLACE_FCNTL
993 HAVE_OPENAT
994 HAVE_FCNTL
995 GNULIB_OPENAT
996 GNULIB_OPEN
997 GNULIB_NONBLOCKING
998 GNULIB_FCNTL
999 GL_GENERATE_EXECINFO_H_FALSE
1000 GL_GENERATE_EXECINFO_H_TRUE
1001 LIB_EXECINFO
1002 EXECINFO_H
1003 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1004 UNISTD_H_HAVE_WINSOCK2_H
1005 REPLACE_WRITE
1006 REPLACE_USLEEP
1007 REPLACE_UNLINKAT
1008 REPLACE_UNLINK
1009 REPLACE_TTYNAME_R
1010 REPLACE_SYMLINK
1011 REPLACE_SLEEP
1012 REPLACE_RMDIR
1013 REPLACE_READLINK
1014 REPLACE_READ
1015 REPLACE_PWRITE
1016 REPLACE_PREAD
1017 REPLACE_LSEEK
1018 REPLACE_LINKAT
1019 REPLACE_LINK
1020 REPLACE_LCHOWN
1021 REPLACE_ISATTY
1022 REPLACE_GETPAGESIZE
1023 REPLACE_GETGROUPS
1024 REPLACE_GETLOGIN_R
1025 REPLACE_GETDOMAINNAME
1026 REPLACE_GETCWD
1027 REPLACE_FTRUNCATE
1028 REPLACE_FCHOWNAT
1029 REPLACE_DUP2
1030 REPLACE_DUP
1031 REPLACE_CLOSE
1032 REPLACE_CHOWN
1033 HAVE_SYS_PARAM_H
1034 HAVE_OS_H
1035 HAVE_DECL_TTYNAME_R
1036 HAVE_DECL_SETHOSTNAME
1037 HAVE_DECL_GETUSERSHELL
1038 HAVE_DECL_GETPAGESIZE
1039 HAVE_DECL_GETLOGIN_R
1040 HAVE_DECL_GETDOMAINNAME
1041 HAVE_DECL_FDATASYNC
1042 HAVE_DECL_FCHDIR
1043 HAVE_DECL_ENVIRON
1044 HAVE_USLEEP
1045 HAVE_UNLINKAT
1046 HAVE_SYMLINKAT
1047 HAVE_SYMLINK
1048 HAVE_SLEEP
1049 HAVE_SETHOSTNAME
1050 HAVE_READLINKAT
1051 HAVE_READLINK
1052 HAVE_PWRITE
1053 HAVE_PREAD
1054 HAVE_PIPE2
1055 HAVE_PIPE
1056 HAVE_LINKAT
1057 HAVE_LINK
1058 HAVE_LCHOWN
1059 HAVE_GROUP_MEMBER
1060 HAVE_GETPAGESIZE
1061 HAVE_GETLOGIN
1062 HAVE_GETHOSTNAME
1063 HAVE_GETGROUPS
1064 HAVE_GETDTABLESIZE
1065 HAVE_FTRUNCATE
1066 HAVE_FSYNC
1067 HAVE_FDATASYNC
1068 HAVE_FCHOWNAT
1069 HAVE_FCHDIR
1070 HAVE_FACCESSAT
1071 HAVE_EUIDACCESS
1072 HAVE_DUP3
1073 HAVE_DUP2
1074 HAVE_CHOWN
1075 GNULIB_WRITE
1076 GNULIB_USLEEP
1077 GNULIB_UNLINKAT
1078 GNULIB_UNLINK
1079 GNULIB_UNISTD_H_SIGPIPE
1080 GNULIB_UNISTD_H_NONBLOCKING
1081 GNULIB_TTYNAME_R
1082 GNULIB_SYMLINKAT
1083 GNULIB_SYMLINK
1084 GNULIB_SLEEP
1085 GNULIB_SETHOSTNAME
1086 GNULIB_RMDIR
1087 GNULIB_READLINKAT
1088 GNULIB_READLINK
1089 GNULIB_READ
1090 GNULIB_PWRITE
1091 GNULIB_PREAD
1092 GNULIB_PIPE2
1093 GNULIB_PIPE
1094 GNULIB_LSEEK
1095 GNULIB_LINKAT
1096 GNULIB_LINK
1097 GNULIB_LCHOWN
1098 GNULIB_ISATTY
1099 GNULIB_GROUP_MEMBER
1100 GNULIB_GETUSERSHELL
1101 GNULIB_GETPAGESIZE
1102 GNULIB_GETLOGIN_R
1103 GNULIB_GETLOGIN
1104 GNULIB_GETHOSTNAME
1105 GNULIB_GETGROUPS
1106 GNULIB_GETDTABLESIZE
1107 GNULIB_GETDOMAINNAME
1108 GNULIB_GETCWD
1109 GNULIB_FTRUNCATE
1110 GNULIB_FSYNC
1111 GNULIB_FDATASYNC
1112 GNULIB_FCHOWNAT
1113 GNULIB_FCHDIR
1114 GNULIB_FACCESSAT
1115 GNULIB_EUIDACCESS
1116 GNULIB_ENVIRON
1117 GNULIB_DUP3
1118 GNULIB_DUP2
1119 GNULIB_DUP
1120 GNULIB_CLOSE
1121 GNULIB_CHOWN
1122 GNULIB_CHDIR
1123 LIB_CLOCK_GETTIME
1124 GL_GENERATE_ALLOCA_H_FALSE
1125 GL_GENERATE_ALLOCA_H_TRUE
1126 ALLOCA_H
1127 ALLOCA
1128 GL_COND_LIBTOOL_FALSE
1129 GL_COND_LIBTOOL_TRUE
1130 POST_ALLOC_OBJ
1131 PRE_ALLOC_OBJ
1132 CYGWIN_OBJ
1133 RALLOC_OBJ
1134 OLDXMENU_DEPS
1135 LIBX_OTHER
1136 LIBXMENU
1137 OLDXMENU
1138 OLDXMENU_TARGET
1139 LIBXT_OTHER
1140 TOOLKIT_LIBW
1141 WIDGET_OBJ
1142 XOBJ
1143 XMENU_OBJ
1144 FONT_OBJ
1145 OTHER_FILES
1146 GNU_OBJC_CFLAGS
1147 ns_appsrc
1148 ns_appresdir
1149 ns_appbindir
1150 ns_appdir
1151 X_TOOLKIT_TYPE
1152 GNUSTEP_CFLAGS
1153 C_SWITCH_X_SITE
1154 LD_SWITCH_X_SITE
1155 gameuser
1156 gamedir
1157 bitmapdir
1158 archlibdir
1159 etcdir
1160 x_default_search_path
1161 lisppath
1162 locallisppath
1163 standardlisppath
1164 leimdir
1165 lispdir
1166 srcdir
1167 canonical
1168 configuration
1169 version
1170 copyright
1171 KRB4LIB
1172 DESLIB
1173 KRB5LIB
1174 CRYPTOLIB
1175 COM_ERRLIB
1176 LIBRESOLV
1177 LIBHESIOD
1178 TERMCAP_OBJ
1179 LIBS_TERMCAP
1180 BLESSMAIL_TARGET
1181 LIBS_MAIL
1182 liblockfile
1183 LIBXML2_LIBS
1184 LIBXML2_CFLAGS
1185 LIBXSM
1186 LIBGPM
1187 LIBGIF
1188 LIBTIFF
1189 LIBPNG
1190 LIBJPEG
1191 LIBXPM
1192 M17N_FLT_LIBS
1193 M17N_FLT_CFLAGS
1194 LIBOTF_LIBS
1195 LIBOTF_CFLAGS
1196 FREETYPE_LIBS
1197 FREETYPE_CFLAGS
1198 XFT_LIBS
1199 XFT_CFLAGS
1200 FONTCONFIG_LIBS
1201 FONTCONFIG_CFLAGS
1202 LIBXMU
1203 LIBXTR6
1204 LIBACL_LIBS
1205 LIBGNUTLS_LIBS
1206 LIBGNUTLS_CFLAGS
1207 LIBSELINUX_LIBS
1208 SETTINGS_LIBS
1209 SETTINGS_CFLAGS
1210 GOBJECT_LIBS
1211 GOBJECT_CFLAGS
1212 GCONF_LIBS
1213 GCONF_CFLAGS
1214 GSETTINGS_LIBS
1215 GSETTINGS_CFLAGS
1216 DBUS_OBJ
1217 DBUS_LIBS
1218 DBUS_CFLAGS
1219 GTK_OBJ
1220 GTK_LIBS
1221 GTK_CFLAGS
1222 IMAGEMAGICK_LIBS
1223 IMAGEMAGICK_CFLAGS
1224 RSVG_LIBS
1225 RSVG_CFLAGS
1226 LIB_PTHREAD
1227 VMLIMIT_OBJ
1228 GMALLOC_OBJ
1229 HAVE_XSERVER
1230 W32_RES_LINK
1231 W32_RES
1232 W32_LIBS
1233 W32_OBJ
1234 WINDRES
1235 LIB_STANDARD
1236 NS_OBJC_OBJ
1237 NS_OBJ
1238 ns_self_contained
1239 INSTALL_ARCH_INDEP_EXTRA
1240 TEMACS_LDFLAGS2
1241 LD_SWITCH_X_SITE_RPATH
1242 XMKMF
1243 DEPFLAGS
1244 MKDEPDIR
1245 CFLAGS_SOUND
1246 ALSA_LIBS
1247 ALSA_CFLAGS
1248 LIBSOUND
1249 PKG_CONFIG
1250 CRT_DIR
1251 START_FILES
1252 LIB_MATH
1253 LIBS_SYSTEM
1254 C_SWITCH_SYSTEM
1255 UNEXEC_OBJ
1256 C_SWITCH_MACHINE
1257 LD_SWITCH_SYSTEM
1258 CANNOT_DUMP
1259 INFO_OPTS
1260 INFO_EXT
1261 HAVE_MAKEINFO
1262 PAXCTL
1263 GZIP_PROG
1264 INSTALL_INFO
1265 LN_S
1266 GNULIB_WARN_CFLAGS
1267 WARN_CFLAGS
1268 WERROR_CFLAGS
1269 RANLIB
1270 ARFLAGS
1272 EGREP
1273 GREP
1275 am__fastdepCC_FALSE
1276 am__fastdepCC_TRUE
1277 CCDEPMODE
1278 AMDEPBACKSLASH
1279 AMDEP_FALSE
1280 AMDEP_TRUE
1281 am__quote
1282 am__include
1283 DEPDIR
1284 OBJEXT
1285 EXEEXT
1286 ac_ct_CC
1287 CPPFLAGS
1288 LDFLAGS
1289 CFLAGS
1291 host_os
1292 host_vendor
1293 host_cpu
1294 host
1295 build_os
1296 build_vendor
1297 build_cpu
1298 build
1299 PROFILING_CFLAGS
1300 GZIP_INFO
1301 cache_file
1302 am__untar
1303 am__tar
1304 AMTAR
1305 am__leading_dot
1306 SET_MAKE
1308 mkdir_p
1309 MKDIR_P
1310 INSTALL_STRIP_PROGRAM
1311 STRIP
1312 install_sh
1313 MAKEINFO
1314 AUTOHEADER
1315 AUTOMAKE
1316 AUTOCONF
1317 ACLOCAL
1318 VERSION
1319 PACKAGE
1320 CYGPATH_W
1321 am__isrc
1322 INSTALL_DATA
1323 INSTALL_SCRIPT
1324 INSTALL_PROGRAM
1325 target_alias
1326 host_alias
1327 build_alias
1328 LIBS
1329 ECHO_T
1330 ECHO_N
1331 ECHO_C
1332 DEFS
1333 mandir
1334 localedir
1335 libdir
1336 psdir
1337 pdfdir
1338 dvidir
1339 htmldir
1340 infodir
1341 docdir
1342 oldincludedir
1343 includedir
1344 localstatedir
1345 sharedstatedir
1346 sysconfdir
1347 datadir
1348 datarootdir
1349 libexecdir
1350 sbindir
1351 bindir
1352 program_transform_name
1353 prefix
1354 exec_prefix
1355 PACKAGE_URL
1356 PACKAGE_BUGREPORT
1357 PACKAGE_STRING
1358 PACKAGE_VERSION
1359 PACKAGE_TARNAME
1360 PACKAGE_NAME
1361 PATH_SEPARATOR
1362 SHELL'
1363 ac_subst_files='deps_frag
1364 lisp_frag'
1365 ac_user_opts='
1366 enable_option_checking
1367 with_all
1368 with_pop
1369 with_kerberos
1370 with_kerberos5
1371 with_hesiod
1372 with_mmdf
1373 with_mail_unlink
1374 with_mailhost
1375 with_sound
1376 with_x_toolkit
1377 with_wide_int
1378 with_xpm
1379 with_jpeg
1380 with_tiff
1381 with_gif
1382 with_png
1383 with_rsvg
1384 with_xml2
1385 with_imagemagick
1386 with_xft
1387 with_libotf
1388 with_m17n_flt
1389 with_toolkit_scroll_bars
1390 with_xaw3d
1391 with_xim
1392 with_ns
1393 with_w32
1394 with_gpm
1395 with_dbus
1396 with_gconf
1397 with_gsettings
1398 with_selinux
1399 with_acl
1400 with_gnutls
1401 with_inotify
1402 with_makeinfo
1403 with_compress_info
1404 with_pkg_config_prog
1405 with_crt_dir
1406 with_gameuser
1407 with_gnustep_conf
1408 enable_ns_self_contained
1409 enable_locallisppath
1410 enable_checking
1411 enable_check_lisp_object_type
1412 enable_profiling
1413 enable_autodepend
1414 enable_dependency_tracking
1415 enable_largefile
1416 enable_gcc_warnings
1417 enable_link_time_optimization
1418 with_x
1420 ac_precious_vars='build_alias
1421 host_alias
1422 target_alias
1424 CFLAGS
1425 LDFLAGS
1426 LIBS
1427 CPPFLAGS
1429 XMKMF'
1432 # Initialize some variables set by options.
1433 ac_init_help=
1434 ac_init_version=false
1435 ac_unrecognized_opts=
1436 ac_unrecognized_sep=
1437 # The variables have the same names as the options, with
1438 # dashes changed to underlines.
1439 cache_file=/dev/null
1440 exec_prefix=NONE
1441 no_create=
1442 no_recursion=
1443 prefix=NONE
1444 program_prefix=NONE
1445 program_suffix=NONE
1446 program_transform_name=s,x,x,
1447 silent=
1448 site=
1449 srcdir=
1450 verbose=
1451 x_includes=NONE
1452 x_libraries=NONE
1454 # Installation directory options.
1455 # These are left unexpanded so users can "make install exec_prefix=/foo"
1456 # and all the variables that are supposed to be based on exec_prefix
1457 # by default will actually change.
1458 # Use braces instead of parens because sh, perl, etc. also accept them.
1459 # (The list follows the same order as the GNU Coding Standards.)
1460 bindir='${exec_prefix}/bin'
1461 sbindir='${exec_prefix}/sbin'
1462 libexecdir='${exec_prefix}/libexec'
1463 datarootdir='${prefix}/share'
1464 datadir='${datarootdir}'
1465 sysconfdir='${prefix}/etc'
1466 sharedstatedir='${prefix}/com'
1467 localstatedir='${prefix}/var'
1468 includedir='${prefix}/include'
1469 oldincludedir='/usr/include'
1470 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1471 infodir='${datarootdir}/info'
1472 htmldir='${docdir}'
1473 dvidir='${docdir}'
1474 pdfdir='${docdir}'
1475 psdir='${docdir}'
1476 libdir='${exec_prefix}/lib'
1477 localedir='${datarootdir}/locale'
1478 mandir='${datarootdir}/man'
1480 ac_prev=
1481 ac_dashdash=
1482 for ac_option
1484 # If the previous option needs an argument, assign it.
1485 if test -n "$ac_prev"; then
1486 eval $ac_prev=\$ac_option
1487 ac_prev=
1488 continue
1491 case $ac_option in
1492 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1493 *) ac_optarg=yes ;;
1494 esac
1496 # Accept the important Cygnus configure options, so we can diagnose typos.
1498 case $ac_dashdash$ac_option in
1500 ac_dashdash=yes ;;
1502 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1503 ac_prev=bindir ;;
1504 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1505 bindir=$ac_optarg ;;
1507 -build | --build | --buil | --bui | --bu)
1508 ac_prev=build_alias ;;
1509 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1510 build_alias=$ac_optarg ;;
1512 -cache-file | --cache-file | --cache-fil | --cache-fi \
1513 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1514 ac_prev=cache_file ;;
1515 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1516 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1517 cache_file=$ac_optarg ;;
1519 --config-cache | -C)
1520 cache_file=config.cache ;;
1522 -datadir | --datadir | --datadi | --datad)
1523 ac_prev=datadir ;;
1524 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1525 datadir=$ac_optarg ;;
1527 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1528 | --dataroo | --dataro | --datar)
1529 ac_prev=datarootdir ;;
1530 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1531 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1532 datarootdir=$ac_optarg ;;
1534 -disable-* | --disable-*)
1535 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1536 # Reject names that are not valid shell variable names.
1537 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1538 as_fn_error "invalid feature name: $ac_useropt"
1539 ac_useropt_orig=$ac_useropt
1540 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1541 case $ac_user_opts in
1543 "enable_$ac_useropt"
1544 "*) ;;
1545 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1546 ac_unrecognized_sep=', ';;
1547 esac
1548 eval enable_$ac_useropt=no ;;
1550 -docdir | --docdir | --docdi | --doc | --do)
1551 ac_prev=docdir ;;
1552 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1553 docdir=$ac_optarg ;;
1555 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1556 ac_prev=dvidir ;;
1557 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1558 dvidir=$ac_optarg ;;
1560 -enable-* | --enable-*)
1561 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1562 # Reject names that are not valid shell variable names.
1563 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1564 as_fn_error "invalid feature name: $ac_useropt"
1565 ac_useropt_orig=$ac_useropt
1566 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1567 case $ac_user_opts in
1569 "enable_$ac_useropt"
1570 "*) ;;
1571 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1572 ac_unrecognized_sep=', ';;
1573 esac
1574 eval enable_$ac_useropt=\$ac_optarg ;;
1576 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1577 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1578 | --exec | --exe | --ex)
1579 ac_prev=exec_prefix ;;
1580 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1581 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1582 | --exec=* | --exe=* | --ex=*)
1583 exec_prefix=$ac_optarg ;;
1585 -gas | --gas | --ga | --g)
1586 # Obsolete; use --with-gas.
1587 with_gas=yes ;;
1589 -help | --help | --hel | --he | -h)
1590 ac_init_help=long ;;
1591 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1592 ac_init_help=recursive ;;
1593 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1594 ac_init_help=short ;;
1596 -host | --host | --hos | --ho)
1597 ac_prev=host_alias ;;
1598 -host=* | --host=* | --hos=* | --ho=*)
1599 host_alias=$ac_optarg ;;
1601 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1602 ac_prev=htmldir ;;
1603 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1604 | --ht=*)
1605 htmldir=$ac_optarg ;;
1607 -includedir | --includedir | --includedi | --included | --include \
1608 | --includ | --inclu | --incl | --inc)
1609 ac_prev=includedir ;;
1610 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1611 | --includ=* | --inclu=* | --incl=* | --inc=*)
1612 includedir=$ac_optarg ;;
1614 -infodir | --infodir | --infodi | --infod | --info | --inf)
1615 ac_prev=infodir ;;
1616 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1617 infodir=$ac_optarg ;;
1619 -libdir | --libdir | --libdi | --libd)
1620 ac_prev=libdir ;;
1621 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1622 libdir=$ac_optarg ;;
1624 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1625 | --libexe | --libex | --libe)
1626 ac_prev=libexecdir ;;
1627 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1628 | --libexe=* | --libex=* | --libe=*)
1629 libexecdir=$ac_optarg ;;
1631 -localedir | --localedir | --localedi | --localed | --locale)
1632 ac_prev=localedir ;;
1633 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1634 localedir=$ac_optarg ;;
1636 -localstatedir | --localstatedir | --localstatedi | --localstated \
1637 | --localstate | --localstat | --localsta | --localst | --locals)
1638 ac_prev=localstatedir ;;
1639 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1640 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1641 localstatedir=$ac_optarg ;;
1643 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1644 ac_prev=mandir ;;
1645 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1646 mandir=$ac_optarg ;;
1648 -nfp | --nfp | --nf)
1649 # Obsolete; use --without-fp.
1650 with_fp=no ;;
1652 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1653 | --no-cr | --no-c | -n)
1654 no_create=yes ;;
1656 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1657 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1658 no_recursion=yes ;;
1660 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1661 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1662 | --oldin | --oldi | --old | --ol | --o)
1663 ac_prev=oldincludedir ;;
1664 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1665 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1666 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1667 oldincludedir=$ac_optarg ;;
1669 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1670 ac_prev=prefix ;;
1671 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1672 prefix=$ac_optarg ;;
1674 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1675 | --program-pre | --program-pr | --program-p)
1676 ac_prev=program_prefix ;;
1677 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1678 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1679 program_prefix=$ac_optarg ;;
1681 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1682 | --program-suf | --program-su | --program-s)
1683 ac_prev=program_suffix ;;
1684 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1685 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1686 program_suffix=$ac_optarg ;;
1688 -program-transform-name | --program-transform-name \
1689 | --program-transform-nam | --program-transform-na \
1690 | --program-transform-n | --program-transform- \
1691 | --program-transform | --program-transfor \
1692 | --program-transfo | --program-transf \
1693 | --program-trans | --program-tran \
1694 | --progr-tra | --program-tr | --program-t)
1695 ac_prev=program_transform_name ;;
1696 -program-transform-name=* | --program-transform-name=* \
1697 | --program-transform-nam=* | --program-transform-na=* \
1698 | --program-transform-n=* | --program-transform-=* \
1699 | --program-transform=* | --program-transfor=* \
1700 | --program-transfo=* | --program-transf=* \
1701 | --program-trans=* | --program-tran=* \
1702 | --progr-tra=* | --program-tr=* | --program-t=*)
1703 program_transform_name=$ac_optarg ;;
1705 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1706 ac_prev=pdfdir ;;
1707 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1708 pdfdir=$ac_optarg ;;
1710 -psdir | --psdir | --psdi | --psd | --ps)
1711 ac_prev=psdir ;;
1712 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1713 psdir=$ac_optarg ;;
1715 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1716 | -silent | --silent | --silen | --sile | --sil)
1717 silent=yes ;;
1719 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1720 ac_prev=sbindir ;;
1721 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1722 | --sbi=* | --sb=*)
1723 sbindir=$ac_optarg ;;
1725 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1726 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1727 | --sharedst | --shareds | --shared | --share | --shar \
1728 | --sha | --sh)
1729 ac_prev=sharedstatedir ;;
1730 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1731 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1732 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1733 | --sha=* | --sh=*)
1734 sharedstatedir=$ac_optarg ;;
1736 -site | --site | --sit)
1737 ac_prev=site ;;
1738 -site=* | --site=* | --sit=*)
1739 site=$ac_optarg ;;
1741 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1742 ac_prev=srcdir ;;
1743 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1744 srcdir=$ac_optarg ;;
1746 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1747 | --syscon | --sysco | --sysc | --sys | --sy)
1748 ac_prev=sysconfdir ;;
1749 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1750 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1751 sysconfdir=$ac_optarg ;;
1753 -target | --target | --targe | --targ | --tar | --ta | --t)
1754 ac_prev=target_alias ;;
1755 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1756 target_alias=$ac_optarg ;;
1758 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1759 verbose=yes ;;
1761 -version | --version | --versio | --versi | --vers | -V)
1762 ac_init_version=: ;;
1764 -with-* | --with-*)
1765 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1766 # Reject names that are not valid shell variable names.
1767 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1768 as_fn_error "invalid package name: $ac_useropt"
1769 ac_useropt_orig=$ac_useropt
1770 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1771 case $ac_user_opts in
1773 "with_$ac_useropt"
1774 "*) ;;
1775 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1776 ac_unrecognized_sep=', ';;
1777 esac
1778 eval with_$ac_useropt=\$ac_optarg ;;
1780 -without-* | --without-*)
1781 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1782 # Reject names that are not valid shell variable names.
1783 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1784 as_fn_error "invalid package name: $ac_useropt"
1785 ac_useropt_orig=$ac_useropt
1786 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1787 case $ac_user_opts in
1789 "with_$ac_useropt"
1790 "*) ;;
1791 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1792 ac_unrecognized_sep=', ';;
1793 esac
1794 eval with_$ac_useropt=no ;;
1796 --x)
1797 # Obsolete; use --with-x.
1798 with_x=yes ;;
1800 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1801 | --x-incl | --x-inc | --x-in | --x-i)
1802 ac_prev=x_includes ;;
1803 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1804 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1805 x_includes=$ac_optarg ;;
1807 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1808 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1809 ac_prev=x_libraries ;;
1810 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1811 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1812 x_libraries=$ac_optarg ;;
1814 -*) as_fn_error "unrecognized option: \`$ac_option'
1815 Try \`$0 --help' for more information."
1818 *=*)
1819 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1820 # Reject names that are not valid shell variable names.
1821 case $ac_envvar in #(
1822 '' | [0-9]* | *[!_$as_cr_alnum]* )
1823 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1824 esac
1825 eval $ac_envvar=\$ac_optarg
1826 export $ac_envvar ;;
1829 # FIXME: should be removed in autoconf 3.0.
1830 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1831 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1832 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1833 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1836 esac
1837 done
1839 if test -n "$ac_prev"; then
1840 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1841 as_fn_error "missing argument to $ac_option"
1844 if test -n "$ac_unrecognized_opts"; then
1845 case $enable_option_checking in
1846 no) ;;
1847 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1848 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1849 esac
1852 # Check all directory arguments for consistency.
1853 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1854 datadir sysconfdir sharedstatedir localstatedir includedir \
1855 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1856 libdir localedir mandir
1858 eval ac_val=\$$ac_var
1859 # Remove trailing slashes.
1860 case $ac_val in
1861 */ )
1862 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1863 eval $ac_var=\$ac_val;;
1864 esac
1865 # Be sure to have absolute directory names.
1866 case $ac_val in
1867 [\\/$]* | ?:[\\/]* ) continue;;
1868 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1869 esac
1870 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1871 done
1873 # There might be people who depend on the old broken behavior: `$host'
1874 # used to hold the argument of --host etc.
1875 # FIXME: To remove some day.
1876 build=$build_alias
1877 host=$host_alias
1878 target=$target_alias
1880 # FIXME: To remove some day.
1881 if test "x$host_alias" != x; then
1882 if test "x$build_alias" = x; then
1883 cross_compiling=maybe
1884 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1885 If a cross compiler is detected then cross compile mode will be used." >&2
1886 elif test "x$build_alias" != "x$host_alias"; then
1887 cross_compiling=yes
1891 ac_tool_prefix=
1892 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1894 test "$silent" = yes && exec 6>/dev/null
1897 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1898 ac_ls_di=`ls -di .` &&
1899 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1900 as_fn_error "working directory cannot be determined"
1901 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1902 as_fn_error "pwd does not report name of working directory"
1905 # Find the source files, if location was not specified.
1906 if test -z "$srcdir"; then
1907 ac_srcdir_defaulted=yes
1908 # Try the directory containing this script, then the parent directory.
1909 ac_confdir=`$as_dirname -- "$as_myself" ||
1910 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1911 X"$as_myself" : 'X\(//\)[^/]' \| \
1912 X"$as_myself" : 'X\(//\)$' \| \
1913 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1914 $as_echo X"$as_myself" |
1915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1916 s//\1/
1919 /^X\(\/\/\)[^/].*/{
1920 s//\1/
1923 /^X\(\/\/\)$/{
1924 s//\1/
1927 /^X\(\/\).*/{
1928 s//\1/
1931 s/.*/./; q'`
1932 srcdir=$ac_confdir
1933 if test ! -r "$srcdir/$ac_unique_file"; then
1934 srcdir=..
1936 else
1937 ac_srcdir_defaulted=no
1939 if test ! -r "$srcdir/$ac_unique_file"; then
1940 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1941 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1943 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1944 ac_abs_confdir=`(
1945 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1946 pwd)`
1947 # When building in place, set srcdir=.
1948 if test "$ac_abs_confdir" = "$ac_pwd"; then
1949 srcdir=.
1951 # Remove unnecessary trailing slashes from srcdir.
1952 # Double slashes in file names in object file debugging info
1953 # mess up M-x gdb in Emacs.
1954 case $srcdir in
1955 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1956 esac
1957 for ac_var in $ac_precious_vars; do
1958 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1959 eval ac_env_${ac_var}_value=\$${ac_var}
1960 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1961 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1962 done
1965 # Report the --help message.
1967 if test "$ac_init_help" = "long"; then
1968 # Omit some internal or obsolete options to make the list less imposing.
1969 # This message is too long to be a string in the A/UX 3.1 sh.
1970 cat <<_ACEOF
1971 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
1973 Usage: $0 [OPTION]... [VAR=VALUE]...
1975 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1976 VAR=VALUE. See below for descriptions of some of the useful variables.
1978 Defaults for the options are specified in brackets.
1980 Configuration:
1981 -h, --help display this help and exit
1982 --help=short display options specific to this package
1983 --help=recursive display the short help of all the included packages
1984 -V, --version display version information and exit
1985 -q, --quiet, --silent do not print \`checking...' messages
1986 --cache-file=FILE cache test results in FILE [disabled]
1987 -C, --config-cache alias for \`--cache-file=config.cache'
1988 -n, --no-create do not create output files
1989 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1991 Installation directories:
1992 --prefix=PREFIX install architecture-independent files in PREFIX
1993 [$ac_default_prefix]
1994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1995 [PREFIX]
1997 By default, \`make install' will install all the files in
1998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2000 for instance \`--prefix=\$HOME'.
2002 For better control, use the options below.
2004 Fine tuning of the installation directories:
2005 --bindir=DIR user executables [EPREFIX/bin]
2006 --sbindir=DIR system admin executables [EPREFIX/sbin]
2007 --libexecdir=DIR program executables [EPREFIX/libexec]
2008 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2009 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2010 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2011 --libdir=DIR object code libraries [EPREFIX/lib]
2012 --includedir=DIR C header files [PREFIX/include]
2013 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2014 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2015 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2016 --infodir=DIR info documentation [DATAROOTDIR/info]
2017 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2018 --mandir=DIR man documentation [DATAROOTDIR/man]
2019 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2020 --htmldir=DIR html documentation [DOCDIR]
2021 --dvidir=DIR dvi documentation [DOCDIR]
2022 --pdfdir=DIR pdf documentation [DOCDIR]
2023 --psdir=DIR ps documentation [DOCDIR]
2024 _ACEOF
2026 cat <<\_ACEOF
2028 Program names:
2029 --program-prefix=PREFIX prepend PREFIX to installed program names
2030 --program-suffix=SUFFIX append SUFFIX to installed program names
2031 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2033 X features:
2034 --x-includes=DIR X include files are in DIR
2035 --x-libraries=DIR X library files are in DIR
2037 System types:
2038 --build=BUILD configure for building on BUILD [guessed]
2039 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2040 _ACEOF
2043 if test -n "$ac_init_help"; then
2044 case $ac_init_help in
2045 short | recursive ) echo "Configuration of emacs 24.3.50:";;
2046 esac
2047 cat <<\_ACEOF
2049 Optional Features:
2050 --disable-option-checking ignore unrecognized --enable/--with options
2051 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2052 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2053 --disable-ns-self-contained
2054 disable self contained build under NeXTstep
2055 --enable-locallisppath=PATH
2056 directories Emacs should search for lisp files
2057 specific to this site
2058 --enable-checking[=LIST]
2059 enable expensive run-time checks. With LIST, enable
2060 only specific categories of checks. Categories are:
2061 all,yes,no. Flags are: stringbytes, stringoverrun,
2062 stringfreelist, xmallocoverrun, conslist, glyphs
2063 --enable-check-lisp-object-type
2064 enable compile time checks for the Lisp_Object data
2065 type. This is useful for development for catching
2066 certain types of bugs.
2067 --enable-profiling build emacs with low-level, gprof profiling support.
2068 Mainly useful for debugging Emacs itself. May not
2069 work on all platforms. Stops profiler.el working.
2070 --enable-autodepend automatically generate dependencies to .h-files.
2071 Requires GNU Make and Gcc. Enabled if GNU Make and
2072 Gcc is found
2073 --disable-dependency-tracking speeds up one-time build
2074 --enable-dependency-tracking do not reject slow dependency extractors
2075 --disable-largefile omit support for large files
2076 --enable-gcc-warnings turn on lots of GCC warnings. This is intended for
2077 developers, and may generate false alarms when used
2078 with older or non-GNU development tools.
2079 --enable-link-time-optimization
2080 build emacs with link-time optimization. This is
2081 supported only for GCC since 4.5.0.
2083 Optional Packages:
2084 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2085 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2086 --without-all omit almost all features and build small executable
2087 with minimal dependencies
2088 --without-pop don't support POP mail retrieval with movemail
2089 --with-kerberos support Kerberos-authenticated POP
2090 --with-kerberos5 support Kerberos version 5 authenticated POP
2091 --with-hesiod support Hesiod to get the POP server host
2092 --with-mmdf support MMDF mailboxes
2093 --with-mail-unlink unlink, rather than empty, mail spool after reading
2094 --with-mailhost=HOSTNAME
2095 string giving default POP mail host
2096 --without-sound don't compile with sound support
2097 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2098 gtk3, lucid or athena, motif, no)
2099 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2100 --without-xpm don't compile with XPM image support
2101 --without-jpeg don't compile with JPEG image support
2102 --without-tiff don't compile with TIFF image support
2103 --without-gif don't compile with GIF image support
2104 --without-png don't compile with PNG image support
2105 --without-rsvg don't compile with SVG image support
2106 --without-xml2 don't compile with XML parsing support
2107 --without-imagemagick don't compile with ImageMagick image support
2108 --without-xft don't use XFT for anti aliased fonts
2109 --without-libotf don't use libotf for OpenType font support
2110 --without-m17n-flt don't use m17n-flt for text shaping
2111 --without-toolkit-scroll-bars
2112 don't use Motif or Xaw3d scroll bars
2113 --without-xaw3d don't use Xaw3d
2114 --without-xim don't use X11 XIM
2115 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2116 --with-w32 use native MS Windows GUI
2117 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2118 console
2119 --without-dbus don't compile with D-Bus support
2120 --without-gconf don't compile with GConf support
2121 --without-gsettings don't compile with GSettings support
2122 --without-selinux don't compile with SELinux support
2123 --without-acl don't compile with ACL support
2124 --without-gnutls don't use -lgnutls for SSL/TLS support
2125 --without-inotify don't compile with inotify (file-watch) support
2126 --without-makeinfo don't require makeinfo for building manuals
2127 --without-compress-info don't compress the installed Info pages
2128 --with-pkg-config-prog=FILENAME
2129 file name of pkg-config for finding GTK and librsvg
2130 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2131 /usr/lib, or /usr/lib64 on some platforms.
2132 --with-gameuser=USER user for shared game score files
2133 --with-gnustep-conf=FILENAME
2134 name of GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2135 or /etc/GNUstep/GNUstep.conf
2136 --with-x use the X Window System
2138 Some influential environment variables:
2139 CC C compiler command
2140 CFLAGS C compiler flags
2141 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2142 nonstandard directory <lib dir>
2143 LIBS libraries to pass to the linker, e.g. -l<library>
2144 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2145 you have headers in a nonstandard directory <include dir>
2146 CPP C preprocessor
2147 XMKMF Path to xmkmf, Makefile generator for X Window System
2149 Use these variables to override the choices made by `configure' or to help
2150 it to find libraries and programs with nonstandard names/locations.
2152 Report bugs to the package provider.
2153 _ACEOF
2154 ac_status=$?
2157 if test "$ac_init_help" = "recursive"; then
2158 # If there are subdirs, report their specific --help.
2159 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2160 test -d "$ac_dir" ||
2161 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2162 continue
2163 ac_builddir=.
2165 case "$ac_dir" in
2166 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2168 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2169 # A ".." for each directory in $ac_dir_suffix.
2170 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2171 case $ac_top_builddir_sub in
2172 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2173 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2174 esac ;;
2175 esac
2176 ac_abs_top_builddir=$ac_pwd
2177 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2178 # for backward compatibility:
2179 ac_top_builddir=$ac_top_build_prefix
2181 case $srcdir in
2182 .) # We are building in place.
2183 ac_srcdir=.
2184 ac_top_srcdir=$ac_top_builddir_sub
2185 ac_abs_top_srcdir=$ac_pwd ;;
2186 [\\/]* | ?:[\\/]* ) # Absolute name.
2187 ac_srcdir=$srcdir$ac_dir_suffix;
2188 ac_top_srcdir=$srcdir
2189 ac_abs_top_srcdir=$srcdir ;;
2190 *) # Relative name.
2191 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2192 ac_top_srcdir=$ac_top_build_prefix$srcdir
2193 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2194 esac
2195 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2197 cd "$ac_dir" || { ac_status=$?; continue; }
2198 # Check for guested configure.
2199 if test -f "$ac_srcdir/configure.gnu"; then
2200 echo &&
2201 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2202 elif test -f "$ac_srcdir/configure"; then
2203 echo &&
2204 $SHELL "$ac_srcdir/configure" --help=recursive
2205 else
2206 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2207 fi || ac_status=$?
2208 cd "$ac_pwd" || { ac_status=$?; break; }
2209 done
2212 test -n "$ac_init_help" && exit $ac_status
2213 if $ac_init_version; then
2214 cat <<\_ACEOF
2215 emacs configure 24.3.50
2216 generated by GNU Autoconf 2.65
2218 Copyright (C) 2009 Free Software Foundation, Inc.
2219 This configure script is free software; the Free Software Foundation
2220 gives unlimited permission to copy, distribute and modify it.
2221 _ACEOF
2222 exit
2225 ## ------------------------ ##
2226 ## Autoconf initialization. ##
2227 ## ------------------------ ##
2229 # ac_fn_c_try_compile LINENO
2230 # --------------------------
2231 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2232 ac_fn_c_try_compile ()
2234 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2235 rm -f conftest.$ac_objext
2236 if { { ac_try="$ac_compile"
2237 case "(($ac_try" in
2238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2239 *) ac_try_echo=$ac_try;;
2240 esac
2241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2242 $as_echo "$ac_try_echo"; } >&5
2243 (eval "$ac_compile") 2>conftest.err
2244 ac_status=$?
2245 if test -s conftest.err; then
2246 grep -v '^ *+' conftest.err >conftest.er1
2247 cat conftest.er1 >&5
2248 mv -f conftest.er1 conftest.err
2250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2251 test $ac_status = 0; } && {
2252 test -z "$ac_c_werror_flag" ||
2253 test ! -s conftest.err
2254 } && test -s conftest.$ac_objext; then :
2255 ac_retval=0
2256 else
2257 $as_echo "$as_me: failed program was:" >&5
2258 sed 's/^/| /' conftest.$ac_ext >&5
2260 ac_retval=1
2262 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2263 as_fn_set_status $ac_retval
2265 } # ac_fn_c_try_compile
2267 # ac_fn_c_try_cpp LINENO
2268 # ----------------------
2269 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2270 ac_fn_c_try_cpp ()
2272 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273 if { { ac_try="$ac_cpp conftest.$ac_ext"
2274 case "(($ac_try" in
2275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2276 *) ac_try_echo=$ac_try;;
2277 esac
2278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2279 $as_echo "$ac_try_echo"; } >&5
2280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2281 ac_status=$?
2282 if test -s conftest.err; then
2283 grep -v '^ *+' conftest.err >conftest.er1
2284 cat conftest.er1 >&5
2285 mv -f conftest.er1 conftest.err
2287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2288 test $ac_status = 0; } >/dev/null && {
2289 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2290 test ! -s conftest.err
2291 }; then :
2292 ac_retval=0
2293 else
2294 $as_echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2297 ac_retval=1
2299 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2300 as_fn_set_status $ac_retval
2302 } # ac_fn_c_try_cpp
2304 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2305 # -------------------------------------------------------
2306 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2307 # the include files in INCLUDES and setting the cache variable VAR
2308 # accordingly.
2309 ac_fn_c_check_header_mongrel ()
2311 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2312 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2314 $as_echo_n "checking for $2... " >&6; }
2315 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2316 $as_echo_n "(cached) " >&6
2318 eval ac_res=\$$3
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2320 $as_echo "$ac_res" >&6; }
2321 else
2322 # Is the header compilable?
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2324 $as_echo_n "checking $2 usability... " >&6; }
2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h. */
2328 #include <$2>
2329 _ACEOF
2330 if ac_fn_c_try_compile "$LINENO"; then :
2331 ac_header_compiler=yes
2332 else
2333 ac_header_compiler=no
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2337 $as_echo "$ac_header_compiler" >&6; }
2339 # Is the header present?
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2341 $as_echo_n "checking $2 presence... " >&6; }
2342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343 /* end confdefs.h. */
2344 #include <$2>
2345 _ACEOF
2346 if ac_fn_c_try_cpp "$LINENO"; then :
2347 ac_header_preproc=yes
2348 else
2349 ac_header_preproc=no
2351 rm -f conftest.err conftest.$ac_ext
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2353 $as_echo "$ac_header_preproc" >&6; }
2355 # So? What about this header?
2356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2357 yes:no: )
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2359 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2361 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2363 no:yes:* )
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2365 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2367 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2369 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2371 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2373 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2375 esac
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2377 $as_echo_n "checking for $2... " >&6; }
2378 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2379 $as_echo_n "(cached) " >&6
2380 else
2381 eval "$3=\$ac_header_compiler"
2383 eval ac_res=\$$3
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2385 $as_echo "$ac_res" >&6; }
2387 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2389 } # ac_fn_c_check_header_mongrel
2391 # ac_fn_c_try_run LINENO
2392 # ----------------------
2393 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2394 # that executables *can* be run.
2395 ac_fn_c_try_run ()
2397 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2398 if { { ac_try="$ac_link"
2399 case "(($ac_try" in
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2402 esac
2403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2404 $as_echo "$ac_try_echo"; } >&5
2405 (eval "$ac_link") 2>&5
2406 ac_status=$?
2407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2408 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2409 { { case "(($ac_try" in
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2412 esac
2413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2414 $as_echo "$ac_try_echo"; } >&5
2415 (eval "$ac_try") 2>&5
2416 ac_status=$?
2417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2418 test $ac_status = 0; }; }; then :
2419 ac_retval=0
2420 else
2421 $as_echo "$as_me: program exited with status $ac_status" >&5
2422 $as_echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2425 ac_retval=$ac_status
2427 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2428 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2429 as_fn_set_status $ac_retval
2431 } # ac_fn_c_try_run
2433 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2434 # -------------------------------------------------------
2435 # Tests whether HEADER exists and can be compiled using the include files in
2436 # INCLUDES, setting the cache variable VAR accordingly.
2437 ac_fn_c_check_header_compile ()
2439 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2441 $as_echo_n "checking for $2... " >&6; }
2442 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2443 $as_echo_n "(cached) " >&6
2444 else
2445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446 /* end confdefs.h. */
2448 #include <$2>
2449 _ACEOF
2450 if ac_fn_c_try_compile "$LINENO"; then :
2451 eval "$3=yes"
2452 else
2453 eval "$3=no"
2455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2457 eval ac_res=\$$3
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2459 $as_echo "$ac_res" >&6; }
2460 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2462 } # ac_fn_c_check_header_compile
2464 # ac_fn_c_try_link LINENO
2465 # -----------------------
2466 # Try to link conftest.$ac_ext, and return whether this succeeded.
2467 ac_fn_c_try_link ()
2469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470 rm -f conftest.$ac_objext conftest$ac_exeext
2471 if { { ac_try="$ac_link"
2472 case "(($ac_try" in
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2475 esac
2476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2477 $as_echo "$ac_try_echo"; } >&5
2478 (eval "$ac_link") 2>conftest.err
2479 ac_status=$?
2480 if test -s conftest.err; then
2481 grep -v '^ *+' conftest.err >conftest.er1
2482 cat conftest.er1 >&5
2483 mv -f conftest.er1 conftest.err
2485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2486 test $ac_status = 0; } && {
2487 test -z "$ac_c_werror_flag" ||
2488 test ! -s conftest.err
2489 } && test -s conftest$ac_exeext && {
2490 test "$cross_compiling" = yes ||
2491 $as_test_x conftest$ac_exeext
2492 }; then :
2493 ac_retval=0
2494 else
2495 $as_echo "$as_me: failed program was:" >&5
2496 sed 's/^/| /' conftest.$ac_ext >&5
2498 ac_retval=1
2500 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2501 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2502 # interfere with the next link command; also delete a directory that is
2503 # left behind by Apple's compiler. We do this before executing the actions.
2504 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2505 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2506 as_fn_set_status $ac_retval
2508 } # ac_fn_c_try_link
2510 # ac_fn_c_check_decl LINENO SYMBOL VAR
2511 # ------------------------------------
2512 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2513 ac_fn_c_check_decl ()
2515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2517 $as_echo_n "checking whether $2 is declared... " >&6; }
2518 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2519 $as_echo_n "(cached) " >&6
2520 else
2521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2522 /* end confdefs.h. */
2525 main ()
2527 #ifndef $2
2528 (void) $2;
2529 #endif
2532 return 0;
2534 _ACEOF
2535 if ac_fn_c_try_compile "$LINENO"; then :
2536 eval "$3=yes"
2537 else
2538 eval "$3=no"
2540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2542 eval ac_res=\$$3
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2544 $as_echo "$ac_res" >&6; }
2545 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2547 } # ac_fn_c_check_decl
2549 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2550 # ----------------------------------------------
2551 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2552 ac_fn_c_check_header_preproc ()
2554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2556 $as_echo_n "checking for $2... " >&6; }
2557 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2558 $as_echo_n "(cached) " >&6
2559 else
2560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2561 /* end confdefs.h. */
2562 #include <$2>
2563 _ACEOF
2564 if ac_fn_c_try_cpp "$LINENO"; then :
2565 eval "$3=yes"
2566 else
2567 eval "$3=no"
2569 rm -f conftest.err conftest.$ac_ext
2571 eval ac_res=\$$3
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2573 $as_echo "$ac_res" >&6; }
2574 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2576 } # ac_fn_c_check_header_preproc
2578 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2579 # ----------------------------------------------------
2580 # Tries to find if the field MEMBER exists in type AGGR, after including
2581 # INCLUDES, setting cache variable VAR accordingly.
2582 ac_fn_c_check_member ()
2584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2586 $as_echo_n "checking for $2.$3... " >&6; }
2587 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2588 $as_echo_n "(cached) " >&6
2589 else
2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h. */
2594 main ()
2596 static $2 ac_aggr;
2597 if (ac_aggr.$3)
2598 return 0;
2600 return 0;
2602 _ACEOF
2603 if ac_fn_c_try_compile "$LINENO"; then :
2604 eval "$4=yes"
2605 else
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607 /* end confdefs.h. */
2610 main ()
2612 static $2 ac_aggr;
2613 if (sizeof ac_aggr.$3)
2614 return 0;
2616 return 0;
2618 _ACEOF
2619 if ac_fn_c_try_compile "$LINENO"; then :
2620 eval "$4=yes"
2621 else
2622 eval "$4=no"
2624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2628 eval ac_res=\$$4
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2630 $as_echo "$ac_res" >&6; }
2631 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2633 } # ac_fn_c_check_member
2635 # ac_fn_c_check_func LINENO FUNC VAR
2636 # ----------------------------------
2637 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2638 ac_fn_c_check_func ()
2640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2642 $as_echo_n "checking for $2... " >&6; }
2643 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2644 $as_echo_n "(cached) " >&6
2645 else
2646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2647 /* end confdefs.h. */
2648 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2650 #define $2 innocuous_$2
2652 /* System header to define __stub macros and hopefully few prototypes,
2653 which can conflict with char $2 (); below.
2654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2655 <limits.h> exists even on freestanding compilers. */
2657 #ifdef __STDC__
2658 # include <limits.h>
2659 #else
2660 # include <assert.h>
2661 #endif
2663 #undef $2
2665 /* Override any GCC internal prototype to avoid an error.
2666 Use char because int might match the return type of a GCC
2667 builtin and then its argument prototype would still apply. */
2668 #ifdef __cplusplus
2669 extern "C"
2670 #endif
2671 char $2 ();
2672 /* The GNU C library defines this for functions which it implements
2673 to always fail with ENOSYS. Some functions are actually named
2674 something starting with __ and the normal name is an alias. */
2675 #if defined __stub_$2 || defined __stub___$2
2676 choke me
2677 #endif
2680 main ()
2682 return $2 ();
2684 return 0;
2686 _ACEOF
2687 if ac_fn_c_try_link "$LINENO"; then :
2688 eval "$3=yes"
2689 else
2690 eval "$3=no"
2692 rm -f core conftest.err conftest.$ac_objext \
2693 conftest$ac_exeext conftest.$ac_ext
2695 eval ac_res=\$$3
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2697 $as_echo "$ac_res" >&6; }
2698 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2700 } # ac_fn_c_check_func
2702 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2703 # -------------------------------------------
2704 # Tests whether TYPE exists after having included INCLUDES, setting cache
2705 # variable VAR accordingly.
2706 ac_fn_c_check_type ()
2708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2710 $as_echo_n "checking for $2... " >&6; }
2711 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2712 $as_echo_n "(cached) " >&6
2713 else
2714 eval "$3=no"
2715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2716 /* end confdefs.h. */
2719 main ()
2721 if (sizeof ($2))
2722 return 0;
2724 return 0;
2726 _ACEOF
2727 if ac_fn_c_try_compile "$LINENO"; then :
2728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2729 /* end confdefs.h. */
2732 main ()
2734 if (sizeof (($2)))
2735 return 0;
2737 return 0;
2739 _ACEOF
2740 if ac_fn_c_try_compile "$LINENO"; then :
2742 else
2743 eval "$3=yes"
2745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2749 eval ac_res=\$$3
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2751 $as_echo "$ac_res" >&6; }
2752 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2754 } # ac_fn_c_check_type
2756 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2757 # --------------------------------------------
2758 # Tries to find the compile-time value of EXPR in a program that includes
2759 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2760 # computed
2761 ac_fn_c_compute_int ()
2763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2764 if test "$cross_compiling" = yes; then
2765 # Depending upon the size, compute the lo and hi bounds.
2766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2767 /* end confdefs.h. */
2770 main ()
2772 static int test_array [1 - 2 * !(($2) >= 0)];
2773 test_array [0] = 0
2776 return 0;
2778 _ACEOF
2779 if ac_fn_c_try_compile "$LINENO"; then :
2780 ac_lo=0 ac_mid=0
2781 while :; do
2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783 /* end confdefs.h. */
2786 main ()
2788 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2789 test_array [0] = 0
2792 return 0;
2794 _ACEOF
2795 if ac_fn_c_try_compile "$LINENO"; then :
2796 ac_hi=$ac_mid; break
2797 else
2798 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2799 if test $ac_lo -le $ac_mid; then
2800 ac_lo= ac_hi=
2801 break
2803 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806 done
2807 else
2808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2809 /* end confdefs.h. */
2812 main ()
2814 static int test_array [1 - 2 * !(($2) < 0)];
2815 test_array [0] = 0
2818 return 0;
2820 _ACEOF
2821 if ac_fn_c_try_compile "$LINENO"; then :
2822 ac_hi=-1 ac_mid=-1
2823 while :; do
2824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825 /* end confdefs.h. */
2828 main ()
2830 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2831 test_array [0] = 0
2834 return 0;
2836 _ACEOF
2837 if ac_fn_c_try_compile "$LINENO"; then :
2838 ac_lo=$ac_mid; break
2839 else
2840 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2841 if test $ac_mid -le $ac_hi; then
2842 ac_lo= ac_hi=
2843 break
2845 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2848 done
2849 else
2850 ac_lo= ac_hi=
2852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2855 # Binary search between lo and hi bounds.
2856 while test "x$ac_lo" != "x$ac_hi"; do
2857 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2859 /* end confdefs.h. */
2862 main ()
2864 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2865 test_array [0] = 0
2868 return 0;
2870 _ACEOF
2871 if ac_fn_c_try_compile "$LINENO"; then :
2872 ac_hi=$ac_mid
2873 else
2874 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2877 done
2878 case $ac_lo in #((
2879 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2880 '') ac_retval=1 ;;
2881 esac
2882 else
2883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2884 /* end confdefs.h. */
2886 static long int longval () { return $2; }
2887 static unsigned long int ulongval () { return $2; }
2888 #include <stdio.h>
2889 #include <stdlib.h>
2891 main ()
2894 FILE *f = fopen ("conftest.val", "w");
2895 if (! f)
2896 return 1;
2897 if (($2) < 0)
2899 long int i = longval ();
2900 if (i != ($2))
2901 return 1;
2902 fprintf (f, "%ld", i);
2904 else
2906 unsigned long int i = ulongval ();
2907 if (i != ($2))
2908 return 1;
2909 fprintf (f, "%lu", i);
2911 /* Do not output a trailing newline, as this causes \r\n confusion
2912 on some platforms. */
2913 return ferror (f) || fclose (f) != 0;
2916 return 0;
2918 _ACEOF
2919 if ac_fn_c_try_run "$LINENO"; then :
2920 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2921 else
2922 ac_retval=1
2924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2925 conftest.$ac_objext conftest.beam conftest.$ac_ext
2926 rm -f conftest.val
2929 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2930 as_fn_set_status $ac_retval
2932 } # ac_fn_c_compute_int
2933 cat >config.log <<_ACEOF
2934 This file contains any messages produced by compilers while
2935 running configure, to aid debugging if configure makes a mistake.
2937 It was created by emacs $as_me 24.3.50, which was
2938 generated by GNU Autoconf 2.65. Invocation command line was
2940 $ $0 $@
2942 _ACEOF
2943 exec 5>>config.log
2945 cat <<_ASUNAME
2946 ## --------- ##
2947 ## Platform. ##
2948 ## --------- ##
2950 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2951 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2952 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2953 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2954 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2956 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2957 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2959 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2960 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2961 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2962 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2963 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2964 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2965 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2967 _ASUNAME
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 $as_echo "PATH: $as_dir"
2975 done
2976 IFS=$as_save_IFS
2978 } >&5
2980 cat >&5 <<_ACEOF
2983 ## ----------- ##
2984 ## Core tests. ##
2985 ## ----------- ##
2987 _ACEOF
2990 # Keep a trace of the command line.
2991 # Strip out --no-create and --no-recursion so they do not pile up.
2992 # Strip out --silent because we don't want to record it for future runs.
2993 # Also quote any args containing shell meta-characters.
2994 # Make two passes to allow for proper duplicate-argument suppression.
2995 ac_configure_args=
2996 ac_configure_args0=
2997 ac_configure_args1=
2998 ac_must_keep_next=false
2999 for ac_pass in 1 2
3001 for ac_arg
3003 case $ac_arg in
3004 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3006 | -silent | --silent | --silen | --sile | --sil)
3007 continue ;;
3008 *\'*)
3009 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3010 esac
3011 case $ac_pass in
3012 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3014 as_fn_append ac_configure_args1 " '$ac_arg'"
3015 if test $ac_must_keep_next = true; then
3016 ac_must_keep_next=false # Got value, back to normal.
3017 else
3018 case $ac_arg in
3019 *=* | --config-cache | -C | -disable-* | --disable-* \
3020 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3021 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3022 | -with-* | --with-* | -without-* | --without-* | --x)
3023 case "$ac_configure_args0 " in
3024 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3025 esac
3027 -* ) ac_must_keep_next=true ;;
3028 esac
3030 as_fn_append ac_configure_args " '$ac_arg'"
3032 esac
3033 done
3034 done
3035 { ac_configure_args0=; unset ac_configure_args0;}
3036 { ac_configure_args1=; unset ac_configure_args1;}
3038 # When interrupted or exit'd, cleanup temporary files, and complete
3039 # config.log. We remove comments because anyway the quotes in there
3040 # would cause problems or look ugly.
3041 # WARNING: Use '\'' to represent an apostrophe within the trap.
3042 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3043 trap 'exit_status=$?
3044 # Save into config.log some information that might help in debugging.
3046 echo
3048 cat <<\_ASBOX
3049 ## ---------------- ##
3050 ## Cache variables. ##
3051 ## ---------------- ##
3052 _ASBOX
3053 echo
3054 # The following way of writing the cache mishandles newlines in values,
3056 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3057 eval ac_val=\$$ac_var
3058 case $ac_val in #(
3059 *${as_nl}*)
3060 case $ac_var in #(
3061 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3062 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3063 esac
3064 case $ac_var in #(
3065 _ | IFS | as_nl) ;; #(
3066 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3067 *) { eval $ac_var=; unset $ac_var;} ;;
3068 esac ;;
3069 esac
3070 done
3071 (set) 2>&1 |
3072 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3073 *${as_nl}ac_space=\ *)
3074 sed -n \
3075 "s/'\''/'\''\\\\'\'''\''/g;
3076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3077 ;; #(
3079 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3081 esac |
3082 sort
3084 echo
3086 cat <<\_ASBOX
3087 ## ----------------- ##
3088 ## Output variables. ##
3089 ## ----------------- ##
3090 _ASBOX
3091 echo
3092 for ac_var in $ac_subst_vars
3094 eval ac_val=\$$ac_var
3095 case $ac_val in
3096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3097 esac
3098 $as_echo "$ac_var='\''$ac_val'\''"
3099 done | sort
3100 echo
3102 if test -n "$ac_subst_files"; then
3103 cat <<\_ASBOX
3104 ## ------------------- ##
3105 ## File substitutions. ##
3106 ## ------------------- ##
3107 _ASBOX
3108 echo
3109 for ac_var in $ac_subst_files
3111 eval ac_val=\$$ac_var
3112 case $ac_val in
3113 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3114 esac
3115 $as_echo "$ac_var='\''$ac_val'\''"
3116 done | sort
3117 echo
3120 if test -s confdefs.h; then
3121 cat <<\_ASBOX
3122 ## ----------- ##
3123 ## confdefs.h. ##
3124 ## ----------- ##
3125 _ASBOX
3126 echo
3127 cat confdefs.h
3128 echo
3130 test "$ac_signal" != 0 &&
3131 $as_echo "$as_me: caught signal $ac_signal"
3132 $as_echo "$as_me: exit $exit_status"
3133 } >&5
3134 rm -f core *.core core.conftest.* &&
3135 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3136 exit $exit_status
3138 for ac_signal in 1 2 13 15; do
3139 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3140 done
3141 ac_signal=0
3143 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3144 rm -f -r conftest* confdefs.h
3146 $as_echo "/* confdefs.h */" > confdefs.h
3148 # Predefined preprocessor variables.
3150 cat >>confdefs.h <<_ACEOF
3151 #define PACKAGE_NAME "$PACKAGE_NAME"
3152 _ACEOF
3154 cat >>confdefs.h <<_ACEOF
3155 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3156 _ACEOF
3158 cat >>confdefs.h <<_ACEOF
3159 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3160 _ACEOF
3162 cat >>confdefs.h <<_ACEOF
3163 #define PACKAGE_STRING "$PACKAGE_STRING"
3164 _ACEOF
3166 cat >>confdefs.h <<_ACEOF
3167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3168 _ACEOF
3170 cat >>confdefs.h <<_ACEOF
3171 #define PACKAGE_URL "$PACKAGE_URL"
3172 _ACEOF
3175 # Let the site file select an alternate cache file if it wants to.
3176 # Prefer an explicitly selected file to automatically selected ones.
3177 ac_site_file1=NONE
3178 ac_site_file2=NONE
3179 if test -n "$CONFIG_SITE"; then
3180 ac_site_file1=$CONFIG_SITE
3181 elif test "x$prefix" != xNONE; then
3182 ac_site_file1=$prefix/share/config.site
3183 ac_site_file2=$prefix/etc/config.site
3184 else
3185 ac_site_file1=$ac_default_prefix/share/config.site
3186 ac_site_file2=$ac_default_prefix/etc/config.site
3188 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3190 test "x$ac_site_file" = xNONE && continue
3191 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3193 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3194 sed 's/^/| /' "$ac_site_file" >&5
3195 . "$ac_site_file"
3197 done
3199 if test -r "$cache_file"; then
3200 # Some versions of bash will fail to source /dev/null (special files
3201 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3202 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3204 $as_echo "$as_me: loading cache $cache_file" >&6;}
3205 case $cache_file in
3206 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3207 *) . "./$cache_file";;
3208 esac
3210 else
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3212 $as_echo "$as_me: creating cache $cache_file" >&6;}
3213 >$cache_file
3216 as_fn_append ac_header_list " linux/version.h"
3217 as_fn_append ac_header_list " sys/systeminfo.h"
3218 as_fn_append ac_header_list " coff.h"
3219 as_fn_append ac_header_list " pty.h"
3220 as_fn_append ac_header_list " sys/vlimit.h"
3221 as_fn_append ac_header_list " sys/resource.h"
3222 as_fn_append ac_header_list " sys/utsname.h"
3223 as_fn_append ac_header_list " pwd.h"
3224 as_fn_append ac_header_list " utmp.h"
3225 as_fn_append ac_header_list " util.h"
3226 as_fn_append ac_header_list " sys/socket.h"
3227 as_fn_append ac_header_list " stdlib.h"
3228 as_fn_append ac_header_list " unistd.h"
3229 as_fn_append ac_header_list " sys/param.h"
3230 as_fn_append ac_header_list " pthread.h"
3231 as_fn_append ac_header_list " malloc/malloc.h"
3232 as_fn_append ac_header_list " maillock.h"
3233 as_fn_append ac_header_list " sys/un.h"
3234 as_fn_append ac_func_list " tzset"
3235 as_fn_append ac_func_list " readlinkat"
3236 as_fn_append ac_header_list " execinfo.h"
3237 as_fn_append ac_func_list " faccessat"
3238 as_fn_append ac_header_list " stdio_ext.h"
3239 as_fn_append ac_func_list " __fpending"
3240 gl_getopt_required=GNU
3241 as_fn_append ac_header_list " getopt.h"
3242 as_fn_append ac_func_list " gettimeofday"
3243 as_fn_append ac_func_list " nanotime"
3244 as_fn_append ac_header_list " sys/time.h"
3245 as_fn_append ac_header_list " wchar.h"
3246 as_fn_append ac_header_list " stdint.h"
3247 as_fn_append ac_header_list " inttypes.h"
3248 as_fn_append ac_func_list " lstat"
3249 as_fn_append ac_func_list " alarm"
3250 as_fn_append ac_header_list " sys/select.h"
3251 as_fn_append ac_func_list " pselect"
3252 as_fn_append ac_func_list " pthread_sigmask"
3253 as_fn_append ac_func_list " readlink"
3254 as_fn_append ac_func_list " strtoimax"
3255 as_fn_append ac_func_list " strtoumax"
3256 as_fn_append ac_func_list " symlink"
3257 as_fn_append ac_header_list " sys/stat.h"
3258 as_fn_append ac_func_list " localtime_r"
3259 as_fn_append ac_header_list " utime.h"
3260 as_fn_append ac_func_list " futimes"
3261 as_fn_append ac_func_list " futimesat"
3262 as_fn_append ac_func_list " futimens"
3263 as_fn_append ac_func_list " utimensat"
3264 as_fn_append ac_func_list " lutimes"
3265 # Check that the precious variables saved in the cache have kept the same
3266 # value.
3267 ac_cache_corrupted=false
3268 for ac_var in $ac_precious_vars; do
3269 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3270 eval ac_new_set=\$ac_env_${ac_var}_set
3271 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3272 eval ac_new_val=\$ac_env_${ac_var}_value
3273 case $ac_old_set,$ac_new_set in
3274 set,)
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3276 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3277 ac_cache_corrupted=: ;;
3278 ,set)
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3280 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3281 ac_cache_corrupted=: ;;
3282 ,);;
3284 if test "x$ac_old_val" != "x$ac_new_val"; then
3285 # differences in whitespace do not lead to failure.
3286 ac_old_val_w=`echo x $ac_old_val`
3287 ac_new_val_w=`echo x $ac_new_val`
3288 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3290 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3291 ac_cache_corrupted=:
3292 else
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3294 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3295 eval $ac_var=\$ac_old_val
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3298 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3300 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3301 fi;;
3302 esac
3303 # Pass precious variables to config.status.
3304 if test "$ac_new_set" = set; then
3305 case $ac_new_val in
3306 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3307 *) ac_arg=$ac_var=$ac_new_val ;;
3308 esac
3309 case " $ac_configure_args " in
3310 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3311 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3312 esac
3314 done
3315 if $ac_cache_corrupted; then
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3319 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3320 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3322 ## -------------------- ##
3323 ## Main body of script. ##
3324 ## -------------------- ##
3326 ac_ext=c
3327 ac_cpp='$CPP $CPPFLAGS'
3328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3333 emacs_config_options="$@"
3334 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3337 ac_aux_dir=
3338 for ac_dir in build-aux "$srcdir"/build-aux; do
3339 for ac_t in install-sh install.sh shtool; do
3340 if test -f "$ac_dir/$ac_t"; then
3341 ac_aux_dir=$ac_dir
3342 ac_install_sh="$ac_aux_dir/$ac_t -c"
3343 break 2
3345 done
3346 done
3347 if test -z "$ac_aux_dir"; then
3348 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3351 # These three variables are undocumented and unsupported,
3352 # and are intended to be withdrawn in a future Autoconf release.
3353 # They can cause serious problems if a builder's source tree is in a directory
3354 # whose full name contains unusual characters.
3355 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3356 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3357 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3360 am__api_version='1.11'
3362 # Find a good install program. We prefer a C program (faster),
3363 # so one script is as good as another. But avoid the broken or
3364 # incompatible versions:
3365 # SysV /etc/install, /usr/sbin/install
3366 # SunOS /usr/etc/install
3367 # IRIX /sbin/install
3368 # AIX /bin/install
3369 # AmigaOS /C/install, which installs bootblocks on floppy discs
3370 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3371 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3372 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3373 # OS/2's system install, which has a completely different semantic
3374 # ./install, which can be erroneously created by make from ./install.sh.
3375 # Reject install programs that cannot install multiple files.
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3377 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3378 if test -z "$INSTALL"; then
3379 if test "${ac_cv_path_install+set}" = set; then :
3380 $as_echo_n "(cached) " >&6
3381 else
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 for as_dir in $PATH
3385 IFS=$as_save_IFS
3386 test -z "$as_dir" && as_dir=.
3387 # Account for people who put trailing slashes in PATH elements.
3388 case $as_dir/ in #((
3389 ./ | .// | /[cC]/* | \
3390 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3391 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3392 /usr/ucb/* ) ;;
3394 # OSF1 and SCO ODT 3.0 have their own names for install.
3395 # Don't use installbsd from OSF since it installs stuff as root
3396 # by default.
3397 for ac_prog in ginstall scoinst install; do
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3400 if test $ac_prog = install &&
3401 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3402 # AIX install. It has an incompatible calling convention.
3404 elif test $ac_prog = install &&
3405 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3406 # program-specific install script used by HP pwplus--don't use.
3408 else
3409 rm -rf conftest.one conftest.two conftest.dir
3410 echo one > conftest.one
3411 echo two > conftest.two
3412 mkdir conftest.dir
3413 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3414 test -s conftest.one && test -s conftest.two &&
3415 test -s conftest.dir/conftest.one &&
3416 test -s conftest.dir/conftest.two
3417 then
3418 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3419 break 3
3423 done
3424 done
3426 esac
3428 done
3429 IFS=$as_save_IFS
3431 rm -rf conftest.one conftest.two conftest.dir
3434 if test "${ac_cv_path_install+set}" = set; then
3435 INSTALL=$ac_cv_path_install
3436 else
3437 # As a last resort, use the slow shell script. Don't cache a
3438 # value for INSTALL within a source directory, because that will
3439 # break other packages using the cache if that directory is
3440 # removed, or if the value is a relative name.
3441 INSTALL=$ac_install_sh
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3445 $as_echo "$INSTALL" >&6; }
3447 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3448 # It thinks the first close brace ends the variable substitution.
3449 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3451 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3453 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3456 $as_echo_n "checking whether build environment is sane... " >&6; }
3457 # Just in case
3458 sleep 1
3459 echo timestamp > conftest.file
3460 # Reject unsafe characters in $srcdir or the absolute working directory
3461 # name. Accept space and tab only in the latter.
3462 am_lf='
3464 case `pwd` in
3465 *[\\\"\#\$\&\'\`$am_lf]*)
3466 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3467 esac
3468 case $srcdir in
3469 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3470 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3471 esac
3473 # Do `set' in a subshell so we don't clobber the current shell's
3474 # arguments. Must try -L first in case configure is actually a
3475 # symlink; some systems play weird games with the mod time of symlinks
3476 # (eg FreeBSD returns the mod time of the symlink's containing
3477 # directory).
3478 if (
3479 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3480 if test "$*" = "X"; then
3481 # -L didn't work.
3482 set X `ls -t "$srcdir/configure" conftest.file`
3484 rm -f conftest.file
3485 if test "$*" != "X $srcdir/configure conftest.file" \
3486 && test "$*" != "X conftest.file $srcdir/configure"; then
3488 # If neither matched, then we have a broken ls. This can happen
3489 # if, for instance, CONFIG_SHELL is bash and it inherits a
3490 # broken ls alias from the environment. This has actually
3491 # happened. Such a system could not be considered "sane".
3492 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3493 alias in your environment" "$LINENO" 5
3496 test "$2" = conftest.file
3498 then
3499 # Ok.
3501 else
3502 as_fn_error "newly created file is older than distributed files!
3503 Check your system clock" "$LINENO" 5
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3506 $as_echo "yes" >&6; }
3507 test "$program_prefix" != NONE &&
3508 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3509 # Use a double $ so make ignores it.
3510 test "$program_suffix" != NONE &&
3511 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3512 # Double any \ or $.
3513 # By default was `s,x,x', remove it if useless.
3514 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3515 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3517 # expand $ac_aux_dir to an absolute path
3518 am_aux_dir=`cd $ac_aux_dir && pwd`
3520 if test x"${MISSING+set}" != xset; then
3521 case $am_aux_dir in
3522 *\ * | *\ *)
3523 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3525 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3526 esac
3528 # Use eval to expand $SHELL
3529 if eval "$MISSING --run true"; then
3530 am_missing_run="$MISSING --run "
3531 else
3532 am_missing_run=
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3534 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3537 if test x"${install_sh}" != xset; then
3538 case $am_aux_dir in
3539 *\ * | *\ *)
3540 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3542 install_sh="\${SHELL} $am_aux_dir/install-sh"
3543 esac
3546 # Installed binaries are usually stripped using `strip' when the user
3547 # run `make install-strip'. However `strip' might not be the right
3548 # tool to use in cross-compilation environments, therefore Automake
3549 # will honor the `STRIP' environment variable to overrule this program.
3550 if test "$cross_compiling" != no; then
3551 if test -n "$ac_tool_prefix"; then
3552 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3553 set dummy ${ac_tool_prefix}strip; ac_word=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if test "${ac_cv_prog_STRIP+set}" = set; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 if test -n "$STRIP"; then
3560 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3561 else
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3565 IFS=$as_save_IFS
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3569 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 break 2
3573 done
3574 done
3575 IFS=$as_save_IFS
3579 STRIP=$ac_cv_prog_STRIP
3580 if test -n "$STRIP"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3582 $as_echo "$STRIP" >&6; }
3583 else
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3590 if test -z "$ac_cv_prog_STRIP"; then
3591 ac_ct_STRIP=$STRIP
3592 # Extract the first word of "strip", so it can be a program name with args.
3593 set dummy strip; ac_word=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3597 $as_echo_n "(cached) " >&6
3598 else
3599 if test -n "$ac_ct_STRIP"; then
3600 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3601 else
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3605 IFS=$as_save_IFS
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3609 ac_cv_prog_ac_ct_STRIP="strip"
3610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 break 2
3613 done
3614 done
3615 IFS=$as_save_IFS
3619 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3620 if test -n "$ac_ct_STRIP"; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3622 $as_echo "$ac_ct_STRIP" >&6; }
3623 else
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 $as_echo "no" >&6; }
3628 if test "x$ac_ct_STRIP" = x; then
3629 STRIP=":"
3630 else
3631 case $cross_compiling:$ac_tool_warned in
3632 yes:)
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3635 ac_tool_warned=yes ;;
3636 esac
3637 STRIP=$ac_ct_STRIP
3639 else
3640 STRIP="$ac_cv_prog_STRIP"
3644 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3647 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3648 if test -z "$MKDIR_P"; then
3649 if test "${ac_cv_path_mkdir+set}" = set; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3655 IFS=$as_save_IFS
3656 test -z "$as_dir" && as_dir=.
3657 for ac_prog in mkdir gmkdir; do
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3660 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3661 'mkdir (GNU coreutils) '* | \
3662 'mkdir (coreutils) '* | \
3663 'mkdir (fileutils) '4.1*)
3664 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3665 break 3;;
3666 esac
3667 done
3668 done
3669 done
3670 IFS=$as_save_IFS
3674 test -d ./--version && rmdir ./--version
3675 if test "${ac_cv_path_mkdir+set}" = set; then
3676 MKDIR_P="$ac_cv_path_mkdir -p"
3677 else
3678 # As a last resort, use the slow shell script. Don't cache a
3679 # value for MKDIR_P within a source directory, because that will
3680 # break other packages using the cache if that directory is
3681 # removed, or if the value is a relative name.
3682 MKDIR_P="$ac_install_sh -d"
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3686 $as_echo "$MKDIR_P" >&6; }
3688 mkdir_p="$MKDIR_P"
3689 case $mkdir_p in
3690 [\\/$]* | ?:[\\/]*) ;;
3691 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3692 esac
3694 for ac_prog in gawk mawk nawk awk
3696 # Extract the first word of "$ac_prog", so it can be a program name with args.
3697 set dummy $ac_prog; ac_word=$2
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699 $as_echo_n "checking for $ac_word... " >&6; }
3700 if test "${ac_cv_prog_AWK+set}" = set; then :
3701 $as_echo_n "(cached) " >&6
3702 else
3703 if test -n "$AWK"; then
3704 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3705 else
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3709 IFS=$as_save_IFS
3710 test -z "$as_dir" && as_dir=.
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3713 ac_cv_prog_AWK="$ac_prog"
3714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 break 2
3717 done
3718 done
3719 IFS=$as_save_IFS
3723 AWK=$ac_cv_prog_AWK
3724 if test -n "$AWK"; then
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3726 $as_echo "$AWK" >&6; }
3727 else
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729 $as_echo "no" >&6; }
3733 test -n "$AWK" && break
3734 done
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3737 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3738 set x ${MAKE-make}
3739 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3740 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3741 $as_echo_n "(cached) " >&6
3742 else
3743 cat >conftest.make <<\_ACEOF
3744 SHELL = /bin/sh
3745 all:
3746 @echo '@@@%%%=$(MAKE)=@@@%%%'
3747 _ACEOF
3748 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3749 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3750 *@@@%%%=?*=@@@%%%*)
3751 eval ac_cv_prog_make_${ac_make}_set=yes;;
3753 eval ac_cv_prog_make_${ac_make}_set=no;;
3754 esac
3755 rm -f conftest.make
3757 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3759 $as_echo "yes" >&6; }
3760 SET_MAKE=
3761 else
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 $as_echo "no" >&6; }
3764 SET_MAKE="MAKE=${MAKE-make}"
3767 rm -rf .tst 2>/dev/null
3768 mkdir .tst 2>/dev/null
3769 if test -d .tst; then
3770 am__leading_dot=.
3771 else
3772 am__leading_dot=_
3774 rmdir .tst 2>/dev/null
3776 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3777 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3778 # is not polluted with repeated "-I."
3779 am__isrc=' -I$(srcdir)'
3780 # test to see if srcdir already configured
3781 if test -f $srcdir/config.status; then
3782 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3786 # test whether we have cygpath
3787 if test -z "$CYGPATH_W"; then
3788 if (cygpath --version) >/dev/null 2>/dev/null; then
3789 CYGPATH_W='cygpath -w'
3790 else
3791 CYGPATH_W=echo
3796 # Define the identity of the package.
3797 PACKAGE='emacs'
3798 VERSION='24.3.50'
3801 cat >>confdefs.h <<_ACEOF
3802 #define PACKAGE "$PACKAGE"
3803 _ACEOF
3806 cat >>confdefs.h <<_ACEOF
3807 #define VERSION "$VERSION"
3808 _ACEOF
3810 # Some tools Automake needs.
3812 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3815 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3818 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3821 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3824 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3826 # We need awk for the "check" target. The system "awk" is bad on
3827 # some platforms.
3828 # Always define AMTAR for backward compatibility.
3830 AMTAR=${AMTAR-"${am_missing_run}tar"}
3832 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3841 lispdir='${datadir}/emacs/${version}/lisp'
3842 leimdir='${datadir}/emacs/${version}/leim'
3843 standardlisppath='${lispdir}:${leimdir}'
3844 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3845 '${datadir}/emacs/site-lisp'
3846 lisppath='${locallisppath}:${standardlisppath}'
3847 etcdir='${datadir}/emacs/${version}/etc'
3848 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3849 docdir='${datadir}/emacs/${version}/etc'
3850 gamedir='${localstatedir}/games/emacs'
3853 # Check whether --with-all was given.
3854 if test "${with_all+set}" = set; then :
3855 withval=$with_all; with_features=$withval
3856 else
3857 with_features=yes
3864 # Check whether --with-pop was given.
3865 if test "${with_pop+set}" = set; then :
3866 withval=$with_pop;
3867 else
3868 with_pop=$with_features
3871 if test "$with_pop" = yes; then
3872 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3877 # Check whether --with-kerberos was given.
3878 if test "${with_kerberos+set}" = set; then :
3879 withval=$with_kerberos;
3880 else
3881 with_kerberos=no
3884 if test "$with_kerberos" != no; then
3885 $as_echo "#define KERBEROS 1" >>confdefs.h
3890 # Check whether --with-kerberos5 was given.
3891 if test "${with_kerberos5+set}" = set; then :
3892 withval=$with_kerberos5;
3893 else
3894 with_kerberos5=no
3897 if test "${with_kerberos5}" != no; then
3898 if test "${with_kerberos}" = no; then
3899 with_kerberos=yes
3900 $as_echo "#define KERBEROS 1" >>confdefs.h
3904 $as_echo "#define KERBEROS5 1" >>confdefs.h
3909 # Check whether --with-hesiod was given.
3910 if test "${with_hesiod+set}" = set; then :
3911 withval=$with_hesiod;
3912 else
3913 with_hesiod=no
3916 if test "$with_hesiod" != no; then
3918 $as_echo "#define HESIOD 1" >>confdefs.h
3923 # Check whether --with-mmdf was given.
3924 if test "${with_mmdf+set}" = set; then :
3925 withval=$with_mmdf;
3926 else
3927 with_mmdf=no
3930 if test "$with_mmdf" != no; then
3932 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3937 # Check whether --with-mail-unlink was given.
3938 if test "${with_mail_unlink+set}" = set; then :
3939 withval=$with_mail_unlink;
3940 else
3941 with_mail_unlink=no
3944 if test "$with_mail_unlink" != no; then
3946 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3951 # Check whether --with-mailhost was given.
3952 if test "${with_mailhost+set}" = set; then :
3953 withval=$with_mailhost;
3954 cat >>confdefs.h <<_ACEOF
3955 #define MAILHOST "$withval"
3956 _ACEOF
3962 # Check whether --with-sound was given.
3963 if test "${with_sound+set}" = set; then :
3964 withval=$with_sound;
3965 else
3966 with_sound=$with_features
3971 # Check whether --with-x-toolkit was given.
3972 if test "${with_x_toolkit+set}" = set; then :
3973 withval=$with_x_toolkit; case "${withval}" in
3974 y | ye | yes ) val=gtk ;;
3975 n | no ) val=no ;;
3976 l | lu | luc | luci | lucid ) val=lucid ;;
3977 a | at | ath | athe | athen | athena ) val=athena ;;
3978 m | mo | mot | moti | motif ) val=motif ;;
3979 g | gt | gtk ) val=gtk ;;
3980 gtk2 ) val=gtk2 ;;
3981 gtk3 ) val=gtk3 ;;
3983 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3984 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
3985 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
3986 \`athena' and \`lucid' are synonyms." "$LINENO" 5
3988 esac
3989 with_x_toolkit=$val
3995 # Check whether --with-wide-int was given.
3996 if test "${with_wide_int+set}" = set; then :
3997 withval=$with_wide_int;
3998 else
3999 with_wide_int=no
4002 if test "$with_wide_int" = yes; then
4004 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4009 # Check whether --with-xpm was given.
4010 if test "${with_xpm+set}" = set; then :
4011 withval=$with_xpm;
4012 else
4013 with_xpm=$with_features
4017 # Check whether --with-jpeg was given.
4018 if test "${with_jpeg+set}" = set; then :
4019 withval=$with_jpeg;
4020 else
4021 with_jpeg=$with_features
4025 # Check whether --with-tiff was given.
4026 if test "${with_tiff+set}" = set; then :
4027 withval=$with_tiff;
4028 else
4029 with_tiff=$with_features
4033 # Check whether --with-gif was given.
4034 if test "${with_gif+set}" = set; then :
4035 withval=$with_gif;
4036 else
4037 with_gif=$with_features
4041 # Check whether --with-png was given.
4042 if test "${with_png+set}" = set; then :
4043 withval=$with_png;
4044 else
4045 with_png=$with_features
4049 # Check whether --with-rsvg was given.
4050 if test "${with_rsvg+set}" = set; then :
4051 withval=$with_rsvg;
4052 else
4053 with_rsvg=$with_features
4057 # Check whether --with-xml2 was given.
4058 if test "${with_xml2+set}" = set; then :
4059 withval=$with_xml2;
4060 else
4061 with_xml2=$with_features
4065 # Check whether --with-imagemagick was given.
4066 if test "${with_imagemagick+set}" = set; then :
4067 withval=$with_imagemagick;
4068 else
4069 with_imagemagick=$with_features
4074 # Check whether --with-xft was given.
4075 if test "${with_xft+set}" = set; then :
4076 withval=$with_xft;
4077 else
4078 with_xft=$with_features
4082 # Check whether --with-libotf was given.
4083 if test "${with_libotf+set}" = set; then :
4084 withval=$with_libotf;
4085 else
4086 with_libotf=$with_features
4090 # Check whether --with-m17n-flt was given.
4091 if test "${with_m17n_flt+set}" = set; then :
4092 withval=$with_m17n_flt;
4093 else
4094 with_m17n_flt=$with_features
4099 # Check whether --with-toolkit-scroll-bars was given.
4100 if test "${with_toolkit_scroll_bars+set}" = set; then :
4101 withval=$with_toolkit_scroll_bars;
4102 else
4103 with_toolkit_scroll_bars=$with_features
4107 # Check whether --with-xaw3d was given.
4108 if test "${with_xaw3d+set}" = set; then :
4109 withval=$with_xaw3d;
4110 else
4111 with_xaw3d=$with_features
4115 # Check whether --with-xim was given.
4116 if test "${with_xim+set}" = set; then :
4117 withval=$with_xim;
4118 else
4119 with_xim=$with_features
4123 # Check whether --with-ns was given.
4124 if test "${with_ns+set}" = set; then :
4125 withval=$with_ns;
4126 else
4127 with_ns=no
4131 # Check whether --with-w32 was given.
4132 if test "${with_w32+set}" = set; then :
4133 withval=$with_w32;
4134 else
4135 with_w32=no
4140 # Check whether --with-gpm was given.
4141 if test "${with_gpm+set}" = set; then :
4142 withval=$with_gpm;
4143 else
4144 with_gpm=$with_features
4148 # Check whether --with-dbus was given.
4149 if test "${with_dbus+set}" = set; then :
4150 withval=$with_dbus;
4151 else
4152 with_dbus=$with_features
4156 # Check whether --with-gconf was given.
4157 if test "${with_gconf+set}" = set; then :
4158 withval=$with_gconf;
4159 else
4160 with_gconf=$with_features
4164 # Check whether --with-gsettings was given.
4165 if test "${with_gsettings+set}" = set; then :
4166 withval=$with_gsettings;
4167 else
4168 with_gsettings=$with_features
4172 # Check whether --with-selinux was given.
4173 if test "${with_selinux+set}" = set; then :
4174 withval=$with_selinux;
4175 else
4176 with_selinux=$with_features
4180 # Check whether --with-acl was given.
4181 if test "${with_acl+set}" = set; then :
4182 withval=$with_acl;
4183 else
4184 with_acl=$with_features
4188 # Check whether --with-gnutls was given.
4189 if test "${with_gnutls+set}" = set; then :
4190 withval=$with_gnutls;
4191 else
4192 with_gnutls=$with_features
4196 # Check whether --with-inotify was given.
4197 if test "${with_inotify+set}" = set; then :
4198 withval=$with_inotify;
4199 else
4200 with_inotify=$with_features
4204 ## For the times when you want to build Emacs but don't have
4205 ## a suitable makeinfo, and can live without the manuals.
4207 # Check whether --with-makeinfo was given.
4208 if test "${with_makeinfo+set}" = set; then :
4209 withval=$with_makeinfo;
4210 else
4211 with_makeinfo=$with_features
4215 ## Makefile.in needs the cache file name.
4218 ## This is an option because I do not know if all info/man support
4219 ## compressed files, nor how to test if they do so.
4221 # Check whether --with-compress-info was given.
4222 if test "${with_compress_info+set}" = set; then :
4223 withval=$with_compress_info;
4224 else
4225 with_compress_info=$with_features
4228 if test $with_compress_info = yes; then
4229 GZIP_INFO=yes
4230 else
4231 GZIP_INFO=
4236 # Check whether --with-pkg-config-prog was given.
4237 if test "${with_pkg_config_prog+set}" = set; then :
4238 withval=$with_pkg_config_prog;
4241 if test "X${with_pkg_config_prog}" != X; then
4242 if test "${with_pkg_config_prog}" != yes; then
4243 PKG_CONFIG="${with_pkg_config_prog}"
4247 CRT_DIR=
4249 # Check whether --with-crt-dir was given.
4250 if test "${with_crt_dir+set}" = set; then :
4251 withval=$with_crt_dir;
4254 CRT_DIR="${with_crt_dir}"
4257 # Check whether --with-gameuser was given.
4258 if test "${with_gameuser+set}" = set; then :
4259 withval=$with_gameuser;
4262 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4263 && gameuser="${with_gameuser}"
4264 test "X$gameuser" = X && gameuser=games
4267 # Check whether --with-gnustep-conf was given.
4268 if test "${with_gnustep_conf+set}" = set; then :
4269 withval=$with_gnustep_conf;
4272 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4273 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4274 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4275 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4277 # Check whether --enable-ns-self-contained was given.
4278 if test "${enable_ns_self_contained+set}" = set; then :
4279 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4280 else
4281 EN_NS_SELF_CONTAINED=yes
4285 # Check whether --enable-locallisppath was given.
4286 if test "${enable_locallisppath+set}" = set; then :
4287 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4288 locallisppath=
4289 elif test "${enableval}" != "yes"; then
4290 locallisppath=${enableval}
4295 # Check whether --enable-checking was given.
4296 if test "${enable_checking+set}" = set; then :
4297 enableval=$enable_checking; ac_checking_flags="${enableval}"
4300 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4301 for check in $ac_checking_flags
4303 case $check in
4304 # these set all the flags to specific states
4305 yes) ac_enable_checking=1 ;;
4306 no) ac_enable_checking= ;
4307 ac_gc_check_stringbytes= ;
4308 ac_gc_check_string_overrun= ;
4309 ac_gc_check_string_free_list= ;
4310 ac_xmalloc_overrun= ;
4311 ac_gc_check_cons_list= ;
4312 ac_glyphs_debug= ;;
4313 all) ac_enable_checking=1 ;
4314 ac_gc_check_stringbytes=1 ;
4315 ac_gc_check_string_overrun=1 ;
4316 ac_gc_check_string_free_list=1 ;
4317 ac_xmalloc_overrun=1 ;
4318 ac_gc_check_cons_list=1 ;
4319 ac_glyphs_debug=1 ;;
4320 # these enable particular checks
4321 stringbytes) ac_gc_check_stringbytes=1 ;;
4322 stringoverrun) ac_gc_check_string_overrun=1 ;;
4323 stringfreelist) ac_gc_check_string_free_list=1 ;;
4324 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4325 conslist) ac_gc_check_cons_list=1 ;;
4326 glyphs) ac_glyphs_debug=1 ;;
4327 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4328 esac
4329 done
4330 IFS="$ac_save_IFS"
4332 if test x$ac_enable_checking != x ; then
4334 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4337 if test x$ac_gc_check_stringbytes != x ; then
4339 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4342 if test x$ac_gc_check_string_overrun != x ; then
4344 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4347 if test x$ac_gc_check_string_free_list != x ; then
4349 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4352 if test x$ac_xmalloc_overrun != x ; then
4354 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4357 if test x$ac_gc_check_cons_list != x ; then
4359 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4362 if test x$ac_glyphs_debug != x ; then
4364 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4368 # Check whether --enable-check-lisp-object-type was given.
4369 if test "${enable_check_lisp_object_type+set}" = set; then :
4370 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4372 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4379 # Check whether --enable-profiling was given.
4380 if test "${enable_profiling+set}" = set; then :
4381 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4384 if test x$ac_enable_profiling != x ; then
4385 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4386 else
4387 PROFILING_CFLAGS=
4391 # Check whether --enable-autodepend was given.
4392 if test "${enable_autodepend+set}" = set; then :
4393 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4394 else
4395 ac_enable_autodepend=yes
4399 #### Make srcdir absolute, if it isn't already. It's important to
4400 #### avoid running the file name through pwd unnecessarily, since pwd can
4401 #### give you automounter prefixes, which can go away. We do all this
4402 #### so Emacs can find its files when run uninstalled.
4403 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4404 unset CDPATH
4405 case "${srcdir}" in
4406 /* ) ;;
4408 ## We may be able to use the $PWD environment variable to make this
4409 ## absolute. But sometimes PWD is inaccurate.
4410 ## Note: we used to use $PWD at the end instead of `pwd`,
4411 ## but that tested only for a well-formed and valid PWD,
4412 ## it did not object when PWD was well-formed and valid but just wrong.
4413 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4414 then
4415 srcdir="$PWD"
4416 else
4417 srcdir=`(cd "$srcdir"; pwd)`
4420 * ) srcdir=`(cd "$srcdir"; pwd)` ;;
4421 esac
4423 ### Canonicalize the configuration name.
4425 # Make sure we can run config.sub.
4426 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4427 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4430 $as_echo_n "checking build system type... " >&6; }
4431 if test "${ac_cv_build+set}" = set; then :
4432 $as_echo_n "(cached) " >&6
4433 else
4434 ac_build_alias=$build_alias
4435 test "x$ac_build_alias" = x &&
4436 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4437 test "x$ac_build_alias" = x &&
4438 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4439 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4440 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4444 $as_echo "$ac_cv_build" >&6; }
4445 case $ac_cv_build in
4446 *-*-*) ;;
4447 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4448 esac
4449 build=$ac_cv_build
4450 ac_save_IFS=$IFS; IFS='-'
4451 set x $ac_cv_build
4452 shift
4453 build_cpu=$1
4454 build_vendor=$2
4455 shift; shift
4456 # Remember, the first character of IFS is used to create $*,
4457 # except with old shells:
4458 build_os=$*
4459 IFS=$ac_save_IFS
4460 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4464 $as_echo_n "checking host system type... " >&6; }
4465 if test "${ac_cv_host+set}" = set; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 if test "x$host_alias" = x; then
4469 ac_cv_host=$ac_cv_build
4470 else
4471 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4472 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4477 $as_echo "$ac_cv_host" >&6; }
4478 case $ac_cv_host in
4479 *-*-*) ;;
4480 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4481 esac
4482 host=$ac_cv_host
4483 ac_save_IFS=$IFS; IFS='-'
4484 set x $ac_cv_host
4485 shift
4486 host_cpu=$1
4487 host_vendor=$2
4488 shift; shift
4489 # Remember, the first character of IFS is used to create $*,
4490 # except with old shells:
4491 host_os=$*
4492 IFS=$ac_save_IFS
4493 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4496 canonical=$host
4497 configuration=${host_alias-${build_alias-$host}}
4501 ### If you add support for a new configuration, add code to this
4502 ### switch statement to recognize your configuration name and select
4503 ### the appropriate operating system file.
4505 ### You would hope that you could choose an s/*.h
4506 ### file based on the operating system portion. However, it turns out
4507 ### that each s/*.h file is pretty manufacturer-specific.
4508 ### So we basically have to have a special case for each
4509 ### configuration name.
4511 ### As far as handling version numbers on operating systems is
4512 ### concerned, make sure things will fail in a fixable way. If
4513 ### /etc/MACHINES doesn't say anything about version numbers, be
4514 ### prepared to handle anything reasonably. If version numbers
4515 ### matter, be sure /etc/MACHINES says something about it.
4517 opsys='' unported=no
4518 case "${canonical}" in
4520 ## GNU/Linux and similar ports
4521 *-*-linux* )
4522 opsys=gnu-linux
4525 ## FreeBSD ports
4526 *-*-freebsd* )
4527 opsys=freebsd
4530 ## FreeBSD kernel + glibc based userland
4531 *-*-kfreebsd*gnu* )
4532 opsys=gnu-kfreebsd
4535 ## NetBSD ports
4536 *-*-netbsd* )
4537 opsys=netbsd
4540 ## OpenBSD ports
4541 *-*-openbsd* )
4542 opsys=openbsd
4545 ## Apple Darwin / Mac OS X
4546 *-apple-darwin* )
4547 case "${canonical}" in
4548 i[3456]86-* ) ;;
4549 powerpc-* ) ;;
4550 x86_64-* ) ;;
4551 * ) unported=yes ;;
4552 esac
4553 opsys=darwin
4554 ## Use fink packages if available.
4555 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4556 ## if test -d /sw/include && test -d /sw/lib; then
4557 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4558 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4559 ## fi
4562 ## HP 9000 series 700 and 800, running HP/UX
4563 hppa*-hp-hpux10.2* )
4564 opsys=hpux10-20
4566 hppa*-hp-hpux1[1-9]* )
4567 opsys=hpux11
4568 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4571 ## IBM machines
4572 rs6000-ibm-aix4.[23]* )
4573 opsys=aix4-2
4575 powerpc-ibm-aix4.[23]* )
4576 opsys=aix4-2
4578 rs6000-ibm-aix[56]* )
4579 opsys=aix4-2
4581 powerpc-ibm-aix[56]* )
4582 opsys=aix4-2
4585 ## Silicon Graphics machines
4586 ## Iris 4D
4587 mips-sgi-irix6.5 )
4588 opsys=irix6-5
4589 # Without defining _LANGUAGE_C, things get masked out in the headers
4590 # so that, for instance, grepping for `free' in stdlib.h fails and
4591 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4592 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4595 ## Suns
4596 *-sun-solaris* \
4597 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4598 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4599 case "${canonical}" in
4600 i[3456]86-*-* ) ;;
4601 amd64-*-*|x86_64-*-*) ;;
4602 sparc* ) ;;
4603 * ) unported=yes ;;
4604 esac
4605 case "${canonical}" in
4606 *-sunos5.6* | *-solaris2.6* )
4607 opsys=sol2-6
4608 RANLIB="ar -ts"
4610 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4611 opsys=sol2-6
4612 emacs_check_sunpro_c=yes
4614 *-sunos5* | *-solaris* )
4615 opsys=sol2-10
4616 emacs_check_sunpro_c=yes
4618 esac
4619 ## Watch out for a compiler that we know will not work.
4620 case "${canonical}" in
4621 *-solaris* | *-sunos5* )
4622 if [ "x$CC" = x/usr/ucb/cc ]; then
4623 ## /usr/ucb/cc doesn't work;
4624 ## we should find some other compiler that does work.
4625 unset CC
4628 *) ;;
4629 esac
4632 ## Intel 386 machines where we don't care about the manufacturer.
4633 i[3456]86-*-* )
4634 case "${canonical}" in
4635 *-cygwin ) opsys=cygwin ;;
4636 *-darwin* ) opsys=darwin ;;
4637 *-sysv4.2uw* ) opsys=unixware ;;
4638 *-sysv5uw* ) opsys=unixware ;;
4639 *-sysv5OpenUNIX* ) opsys=unixware ;;
4640 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4641 esac
4645 unported=yes
4647 esac
4649 ### If the code above didn't choose an operating system, just choose
4650 ### an operating system based on the configuration name. You really
4651 ### only want to use this when you have no idea what the right
4652 ### operating system is; if you know what operating systems a machine
4653 ### runs, it's cleaner to make it explicit in the case statement
4654 ### above.
4655 if test x"${opsys}" = x; then
4656 case "${canonical}" in
4657 *-gnu* ) opsys=gnu ;;
4659 unported=yes
4661 esac
4666 if test $unported = yes; then
4667 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4668 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4672 #### Choose a compiler.
4674 ac_ext=c
4675 ac_cpp='$CPP $CPPFLAGS'
4676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4679 if test -n "$ac_tool_prefix"; then
4680 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4681 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683 $as_echo_n "checking for $ac_word... " >&6; }
4684 if test "${ac_cv_prog_CC+set}" = set; then :
4685 $as_echo_n "(cached) " >&6
4686 else
4687 if test -n "$CC"; then
4688 ac_cv_prog_CC="$CC" # Let the user override the test.
4689 else
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4697 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 break 2
4701 done
4702 done
4703 IFS=$as_save_IFS
4707 CC=$ac_cv_prog_CC
4708 if test -n "$CC"; then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4710 $as_echo "$CC" >&6; }
4711 else
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713 $as_echo "no" >&6; }
4718 if test -z "$ac_cv_prog_CC"; then
4719 ac_ct_CC=$CC
4720 # Extract the first word of "gcc", so it can be a program name with args.
4721 set dummy gcc; ac_word=$2
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723 $as_echo_n "checking for $ac_word... " >&6; }
4724 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4725 $as_echo_n "(cached) " >&6
4726 else
4727 if test -n "$ac_ct_CC"; then
4728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4729 else
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH
4733 IFS=$as_save_IFS
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4737 ac_cv_prog_ac_ct_CC="gcc"
4738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 break 2
4741 done
4742 done
4743 IFS=$as_save_IFS
4747 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4748 if test -n "$ac_ct_CC"; then
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4750 $as_echo "$ac_ct_CC" >&6; }
4751 else
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 $as_echo "no" >&6; }
4756 if test "x$ac_ct_CC" = x; then
4757 CC=""
4758 else
4759 case $cross_compiling:$ac_tool_warned in
4760 yes:)
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4763 ac_tool_warned=yes ;;
4764 esac
4765 CC=$ac_ct_CC
4767 else
4768 CC="$ac_cv_prog_CC"
4771 if test -z "$CC"; then
4772 if test -n "$ac_tool_prefix"; then
4773 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4774 set dummy ${ac_tool_prefix}cc; ac_word=$2
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4776 $as_echo_n "checking for $ac_word... " >&6; }
4777 if test "${ac_cv_prog_CC+set}" = set; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 if test -n "$CC"; then
4781 ac_cv_prog_CC="$CC" # Let the user override the test.
4782 else
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH
4786 IFS=$as_save_IFS
4787 test -z "$as_dir" && as_dir=.
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790 ac_cv_prog_CC="${ac_tool_prefix}cc"
4791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 break 2
4794 done
4795 done
4796 IFS=$as_save_IFS
4800 CC=$ac_cv_prog_CC
4801 if test -n "$CC"; then
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4803 $as_echo "$CC" >&6; }
4804 else
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 $as_echo "no" >&6; }
4812 if test -z "$CC"; then
4813 # Extract the first word of "cc", so it can be a program name with args.
4814 set dummy cc; ac_word=$2
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 $as_echo_n "checking for $ac_word... " >&6; }
4817 if test "${ac_cv_prog_CC+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 if test -n "$CC"; then
4821 ac_cv_prog_CC="$CC" # Let the user override the test.
4822 else
4823 ac_prog_rejected=no
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4832 ac_prog_rejected=yes
4833 continue
4835 ac_cv_prog_CC="cc"
4836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 break 2
4839 done
4840 done
4841 IFS=$as_save_IFS
4843 if test $ac_prog_rejected = yes; then
4844 # We found a bogon in the path, so make sure we never use it.
4845 set dummy $ac_cv_prog_CC
4846 shift
4847 if test $# != 0; then
4848 # We chose a different compiler from the bogus one.
4849 # However, it has the same basename, so the bogon will be chosen
4850 # first if we set CC to just the basename; use the full file name.
4851 shift
4852 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4857 CC=$ac_cv_prog_CC
4858 if test -n "$CC"; then
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4860 $as_echo "$CC" >&6; }
4861 else
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 $as_echo "no" >&6; }
4868 if test -z "$CC"; then
4869 if test -n "$ac_tool_prefix"; then
4870 for ac_prog in cl.exe
4872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4873 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4875 $as_echo_n "checking for $ac_word... " >&6; }
4876 if test "${ac_cv_prog_CC+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 if test -n "$CC"; then
4880 ac_cv_prog_CC="$CC" # Let the user override the test.
4881 else
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 for as_dir in $PATH
4885 IFS=$as_save_IFS
4886 test -z "$as_dir" && as_dir=.
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4889 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 break 2
4893 done
4894 done
4895 IFS=$as_save_IFS
4899 CC=$ac_cv_prog_CC
4900 if test -n "$CC"; then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4902 $as_echo "$CC" >&6; }
4903 else
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 $as_echo "no" >&6; }
4909 test -n "$CC" && break
4910 done
4912 if test -z "$CC"; then
4913 ac_ct_CC=$CC
4914 for ac_prog in cl.exe
4916 # Extract the first word of "$ac_prog", so it can be a program name with args.
4917 set dummy $ac_prog; ac_word=$2
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4919 $as_echo_n "checking for $ac_word... " >&6; }
4920 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4921 $as_echo_n "(cached) " >&6
4922 else
4923 if test -n "$ac_ct_CC"; then
4924 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4925 else
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4929 IFS=$as_save_IFS
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4933 ac_cv_prog_ac_ct_CC="$ac_prog"
4934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4935 break 2
4937 done
4938 done
4939 IFS=$as_save_IFS
4943 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4944 if test -n "$ac_ct_CC"; then
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4946 $as_echo "$ac_ct_CC" >&6; }
4947 else
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4949 $as_echo "no" >&6; }
4953 test -n "$ac_ct_CC" && break
4954 done
4956 if test "x$ac_ct_CC" = x; then
4957 CC=""
4958 else
4959 case $cross_compiling:$ac_tool_warned in
4960 yes:)
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4963 ac_tool_warned=yes ;;
4964 esac
4965 CC=$ac_ct_CC
4972 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4974 as_fn_error "no acceptable C compiler found in \$PATH
4975 See \`config.log' for more details." "$LINENO" 5; }
4977 # Provide some information about the compiler.
4978 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4979 set X $ac_compile
4980 ac_compiler=$2
4981 for ac_option in --version -v -V -qversion; do
4982 { { ac_try="$ac_compiler $ac_option >&5"
4983 case "(($ac_try" in
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4986 esac
4987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4988 $as_echo "$ac_try_echo"; } >&5
4989 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4990 ac_status=$?
4991 if test -s conftest.err; then
4992 sed '10a\
4993 ... rest of stderr output deleted ...
4994 10q' conftest.err >conftest.er1
4995 cat conftest.er1 >&5
4997 rm -f conftest.er1 conftest.err
4998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4999 test $ac_status = 0; }
5000 done
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5006 main ()
5010 return 0;
5012 _ACEOF
5013 ac_clean_files_save=$ac_clean_files
5014 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5015 # Try to create an executable without -o first, disregard a.out.
5016 # It will help us diagnose broken compilers, and finding out an intuition
5017 # of exeext.
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5019 $as_echo_n "checking whether the C compiler works... " >&6; }
5020 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5022 # The possible output files:
5023 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5025 ac_rmfiles=
5026 for ac_file in $ac_files
5028 case $ac_file in
5029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5030 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5031 esac
5032 done
5033 rm -f $ac_rmfiles
5035 if { { ac_try="$ac_link_default"
5036 case "(($ac_try" in
5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5039 esac
5040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5041 $as_echo "$ac_try_echo"; } >&5
5042 (eval "$ac_link_default") 2>&5
5043 ac_status=$?
5044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5045 test $ac_status = 0; }; then :
5046 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5047 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5048 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5049 # so that the user can short-circuit this test for compilers unknown to
5050 # Autoconf.
5051 for ac_file in $ac_files ''
5053 test -f "$ac_file" || continue
5054 case $ac_file in
5055 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5057 [ab].out )
5058 # We found the default executable, but exeext='' is most
5059 # certainly right.
5060 break;;
5061 *.* )
5062 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5063 then :; else
5064 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5066 # We set ac_cv_exeext here because the later test for it is not
5067 # safe: cross compilers may not add the suffix if given an `-o'
5068 # argument, so we may need to know it at that point already.
5069 # Even if this section looks crufty: it has the advantage of
5070 # actually working.
5071 break;;
5073 break;;
5074 esac
5075 done
5076 test "$ac_cv_exeext" = no && ac_cv_exeext=
5078 else
5079 ac_file=''
5081 if test -z "$ac_file"; then :
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5084 $as_echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5089 { as_fn_set_status 77
5090 as_fn_error "C compiler cannot create executables
5091 See \`config.log' for more details." "$LINENO" 5; }; }
5092 else
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5094 $as_echo "yes" >&6; }
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5097 $as_echo_n "checking for C compiler default output file name... " >&6; }
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5099 $as_echo "$ac_file" >&6; }
5100 ac_exeext=$ac_cv_exeext
5102 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5103 ac_clean_files=$ac_clean_files_save
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5105 $as_echo_n "checking for suffix of executables... " >&6; }
5106 if { { ac_try="$ac_link"
5107 case "(($ac_try" in
5108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109 *) ac_try_echo=$ac_try;;
5110 esac
5111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5112 $as_echo "$ac_try_echo"; } >&5
5113 (eval "$ac_link") 2>&5
5114 ac_status=$?
5115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5116 test $ac_status = 0; }; then :
5117 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5118 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5119 # work properly (i.e., refer to `conftest.exe'), while it won't with
5120 # `rm'.
5121 for ac_file in conftest.exe conftest conftest.*; do
5122 test -f "$ac_file" || continue
5123 case $ac_file in
5124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5125 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5126 break;;
5127 * ) break;;
5128 esac
5129 done
5130 else
5131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5133 as_fn_error "cannot compute suffix of executables: cannot compile and link
5134 See \`config.log' for more details." "$LINENO" 5; }
5136 rm -f conftest conftest$ac_cv_exeext
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5138 $as_echo "$ac_cv_exeext" >&6; }
5140 rm -f conftest.$ac_ext
5141 EXEEXT=$ac_cv_exeext
5142 ac_exeext=$EXEEXT
5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144 /* end confdefs.h. */
5145 #include <stdio.h>
5147 main ()
5149 FILE *f = fopen ("conftest.out", "w");
5150 return ferror (f) || fclose (f) != 0;
5153 return 0;
5155 _ACEOF
5156 ac_clean_files="$ac_clean_files conftest.out"
5157 # Check that the compiler produces executables we can run. If not, either
5158 # the compiler is broken, or we cross compile.
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5160 $as_echo_n "checking whether we are cross compiling... " >&6; }
5161 if test "$cross_compiling" != yes; then
5162 { { ac_try="$ac_link"
5163 case "(($ac_try" in
5164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5165 *) ac_try_echo=$ac_try;;
5166 esac
5167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5168 $as_echo "$ac_try_echo"; } >&5
5169 (eval "$ac_link") 2>&5
5170 ac_status=$?
5171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5172 test $ac_status = 0; }
5173 if { ac_try='./conftest$ac_cv_exeext'
5174 { { case "(($ac_try" in
5175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5176 *) ac_try_echo=$ac_try;;
5177 esac
5178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5179 $as_echo "$ac_try_echo"; } >&5
5180 (eval "$ac_try") 2>&5
5181 ac_status=$?
5182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5183 test $ac_status = 0; }; }; then
5184 cross_compiling=no
5185 else
5186 if test "$cross_compiling" = maybe; then
5187 cross_compiling=yes
5188 else
5189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5191 as_fn_error "cannot run C compiled programs.
5192 If you meant to cross compile, use \`--host'.
5193 See \`config.log' for more details." "$LINENO" 5; }
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5198 $as_echo "$cross_compiling" >&6; }
5200 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5201 ac_clean_files=$ac_clean_files_save
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5203 $as_echo_n "checking for suffix of object files... " >&6; }
5204 if test "${ac_cv_objext+set}" = set; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208 /* end confdefs.h. */
5211 main ()
5215 return 0;
5217 _ACEOF
5218 rm -f conftest.o conftest.obj
5219 if { { ac_try="$ac_compile"
5220 case "(($ac_try" in
5221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222 *) ac_try_echo=$ac_try;;
5223 esac
5224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5225 $as_echo "$ac_try_echo"; } >&5
5226 (eval "$ac_compile") 2>&5
5227 ac_status=$?
5228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5229 test $ac_status = 0; }; then :
5230 for ac_file in conftest.o conftest.obj conftest.*; do
5231 test -f "$ac_file" || continue;
5232 case $ac_file in
5233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5234 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5235 break;;
5236 esac
5237 done
5238 else
5239 $as_echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.$ac_ext >&5
5242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5244 as_fn_error "cannot compute suffix of object files: cannot compile
5245 See \`config.log' for more details." "$LINENO" 5; }
5247 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5250 $as_echo "$ac_cv_objext" >&6; }
5251 OBJEXT=$ac_cv_objext
5252 ac_objext=$OBJEXT
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5254 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5255 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5262 main ()
5264 #ifndef __GNUC__
5265 choke me
5266 #endif
5269 return 0;
5271 _ACEOF
5272 if ac_fn_c_try_compile "$LINENO"; then :
5273 ac_compiler_gnu=yes
5274 else
5275 ac_compiler_gnu=no
5277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5282 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5283 if test $ac_compiler_gnu = yes; then
5284 GCC=yes
5285 else
5286 GCC=
5288 ac_test_CFLAGS=${CFLAGS+set}
5289 ac_save_CFLAGS=$CFLAGS
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5291 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5292 if test "${ac_cv_prog_cc_g+set}" = set; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 ac_save_c_werror_flag=$ac_c_werror_flag
5296 ac_c_werror_flag=yes
5297 ac_cv_prog_cc_g=no
5298 CFLAGS="-g"
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h. */
5303 main ()
5307 return 0;
5309 _ACEOF
5310 if ac_fn_c_try_compile "$LINENO"; then :
5311 ac_cv_prog_cc_g=yes
5312 else
5313 CFLAGS=""
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5318 main ()
5322 return 0;
5324 _ACEOF
5325 if ac_fn_c_try_compile "$LINENO"; then :
5327 else
5328 ac_c_werror_flag=$ac_save_c_werror_flag
5329 CFLAGS="-g"
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5334 main ()
5338 return 0;
5340 _ACEOF
5341 if ac_fn_c_try_compile "$LINENO"; then :
5342 ac_cv_prog_cc_g=yes
5344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5349 ac_c_werror_flag=$ac_save_c_werror_flag
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5352 $as_echo "$ac_cv_prog_cc_g" >&6; }
5353 if test "$ac_test_CFLAGS" = set; then
5354 CFLAGS=$ac_save_CFLAGS
5355 elif test $ac_cv_prog_cc_g = yes; then
5356 if test "$GCC" = yes; then
5357 CFLAGS="-g -O2"
5358 else
5359 CFLAGS="-g"
5361 else
5362 if test "$GCC" = yes; then
5363 CFLAGS="-O2"
5364 else
5365 CFLAGS=
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5369 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5370 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 ac_cv_prog_cc_c89=no
5374 ac_save_CC=$CC
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5377 #include <stdarg.h>
5378 #include <stdio.h>
5379 #include <sys/types.h>
5380 #include <sys/stat.h>
5381 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5382 struct buf { int x; };
5383 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5384 static char *e (p, i)
5385 char **p;
5386 int i;
5388 return p[i];
5390 static char *f (char * (*g) (char **, int), char **p, ...)
5392 char *s;
5393 va_list v;
5394 va_start (v,p);
5395 s = g (p, va_arg (v,int));
5396 va_end (v);
5397 return s;
5400 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5401 function prototypes and stuff, but not '\xHH' hex character constants.
5402 These don't provoke an error unfortunately, instead are silently treated
5403 as 'x'. The following induces an error, until -std is added to get
5404 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5405 array size at least. It's necessary to write '\x00'==0 to get something
5406 that's true only with -std. */
5407 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5409 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5410 inside strings and character constants. */
5411 #define FOO(x) 'x'
5412 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5414 int test (int i, double x);
5415 struct s1 {int (*f) (int a);};
5416 struct s2 {int (*f) (double a);};
5417 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5418 int argc;
5419 char **argv;
5421 main ()
5423 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5425 return 0;
5427 _ACEOF
5428 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5429 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5431 CC="$ac_save_CC $ac_arg"
5432 if ac_fn_c_try_compile "$LINENO"; then :
5433 ac_cv_prog_cc_c89=$ac_arg
5435 rm -f core conftest.err conftest.$ac_objext
5436 test "x$ac_cv_prog_cc_c89" != "xno" && break
5437 done
5438 rm -f conftest.$ac_ext
5439 CC=$ac_save_CC
5442 # AC_CACHE_VAL
5443 case "x$ac_cv_prog_cc_c89" in
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5446 $as_echo "none needed" >&6; } ;;
5447 xno)
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5449 $as_echo "unsupported" >&6; } ;;
5451 CC="$CC $ac_cv_prog_cc_c89"
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5453 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5454 esac
5455 if test "x$ac_cv_prog_cc_c89" != xno; then :
5459 ac_ext=c
5460 ac_cpp='$CPP $CPPFLAGS'
5461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5464 DEPDIR="${am__leading_dot}deps"
5466 ac_config_commands="$ac_config_commands depfiles"
5469 am_make=${MAKE-make}
5470 cat > confinc << 'END'
5471 am__doit:
5472 @echo this is the am__doit target
5473 .PHONY: am__doit
5475 # If we don't find an include directive, just comment out the code.
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5477 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5478 am__include="#"
5479 am__quote=
5480 _am_result=none
5481 # First try GNU make style include.
5482 echo "include confinc" > confmf
5483 # Ignore all kinds of additional output from `make'.
5484 case `$am_make -s -f confmf 2> /dev/null` in #(
5485 *the\ am__doit\ target*)
5486 am__include=include
5487 am__quote=
5488 _am_result=GNU
5490 esac
5491 # Now try BSD make style include.
5492 if test "$am__include" = "#"; then
5493 echo '.include "confinc"' > confmf
5494 case `$am_make -s -f confmf 2> /dev/null` in #(
5495 *the\ am__doit\ target*)
5496 am__include=.include
5497 am__quote="\""
5498 _am_result=BSD
5500 esac
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5505 $as_echo "$_am_result" >&6; }
5506 rm -f confinc confmf
5508 # Check whether --enable-dependency-tracking was given.
5509 if test "${enable_dependency_tracking+set}" = set; then :
5510 enableval=$enable_dependency_tracking;
5513 if test "x$enable_dependency_tracking" != xno; then
5514 am_depcomp="$ac_aux_dir/depcomp"
5515 AMDEPBACKSLASH='\'
5517 if test "x$enable_dependency_tracking" != xno; then
5518 AMDEP_TRUE=
5519 AMDEP_FALSE='#'
5520 else
5521 AMDEP_TRUE='#'
5522 AMDEP_FALSE=
5527 depcc="$CC" am_compiler_list=
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5530 $as_echo_n "checking dependency style of $depcc... " >&6; }
5531 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5535 # We make a subdir and do the tests there. Otherwise we can end up
5536 # making bogus files that we don't know about and never remove. For
5537 # instance it was reported that on HP-UX the gcc test will end up
5538 # making a dummy file named `D' -- because `-MD' means `put the output
5539 # in D'.
5540 mkdir conftest.dir
5541 # Copy depcomp to subdir because otherwise we won't find it if we're
5542 # using a relative directory.
5543 cp "$am_depcomp" conftest.dir
5544 cd conftest.dir
5545 # We will build objects and dependencies in a subdirectory because
5546 # it helps to detect inapplicable dependency modes. For instance
5547 # both Tru64's cc and ICC support -MD to output dependencies as a
5548 # side effect of compilation, but ICC will put the dependencies in
5549 # the current directory while Tru64 will put them in the object
5550 # directory.
5551 mkdir sub
5553 am_cv_CC_dependencies_compiler_type=none
5554 if test "$am_compiler_list" = ""; then
5555 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5557 am__universal=false
5558 case " $depcc " in #(
5559 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5560 esac
5562 for depmode in $am_compiler_list; do
5563 # Setup a source with many dependencies, because some compilers
5564 # like to wrap large dependency lists on column 80 (with \), and
5565 # we should not choose a depcomp mode which is confused by this.
5567 # We need to recreate these files for each test, as the compiler may
5568 # overwrite some of them when testing with obscure command lines.
5569 # This happens at least with the AIX C compiler.
5570 : > sub/conftest.c
5571 for i in 1 2 3 4 5 6; do
5572 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5573 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5574 # Solaris 8's {/usr,}/bin/sh.
5575 touch sub/conftst$i.h
5576 done
5577 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5579 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5580 # mode. It turns out that the SunPro C++ compiler does not properly
5581 # handle `-M -o', and we need to detect this. Also, some Intel
5582 # versions had trouble with output in subdirs
5583 am__obj=sub/conftest.${OBJEXT-o}
5584 am__minus_obj="-o $am__obj"
5585 case $depmode in
5586 gcc)
5587 # This depmode causes a compiler race in universal mode.
5588 test "$am__universal" = false || continue
5590 nosideeffect)
5591 # after this tag, mechanisms are not by side-effect, so they'll
5592 # only be used when explicitly requested
5593 if test "x$enable_dependency_tracking" = xyes; then
5594 continue
5595 else
5596 break
5599 msvisualcpp | msvcmsys)
5600 # This compiler won't grok `-c -o', but also, the minuso test has
5601 # not run yet. These depmodes are late enough in the game, and
5602 # so weak that their functioning should not be impacted.
5603 am__obj=conftest.${OBJEXT-o}
5604 am__minus_obj=
5606 none) break ;;
5607 esac
5608 if depmode=$depmode \
5609 source=sub/conftest.c object=$am__obj \
5610 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5611 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5612 >/dev/null 2>conftest.err &&
5613 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5614 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5615 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5616 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5617 # icc doesn't choke on unknown options, it will just issue warnings
5618 # or remarks (even with -Werror). So we grep stderr for any message
5619 # that says an option was ignored or not supported.
5620 # When given -MP, icc 7.0 and 7.1 complain thusly:
5621 # icc: Command line warning: ignoring option '-M'; no argument required
5622 # The diagnosis changed in icc 8.0:
5623 # icc: Command line remark: option '-MP' not supported
5624 if (grep 'ignoring option' conftest.err ||
5625 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5626 am_cv_CC_dependencies_compiler_type=$depmode
5627 break
5630 done
5632 cd ..
5633 rm -rf conftest.dir
5634 else
5635 am_cv_CC_dependencies_compiler_type=none
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5640 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5641 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5644 test "x$enable_dependency_tracking" != xno \
5645 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5646 am__fastdepCC_TRUE=
5647 am__fastdepCC_FALSE='#'
5648 else
5649 am__fastdepCC_TRUE='#'
5650 am__fastdepCC_FALSE=
5654 if test "x$CC" != xcc; then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5656 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5657 else
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5659 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5661 set dummy $CC; ac_cc=`$as_echo "$2" |
5662 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5663 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5664 $as_echo_n "(cached) " >&6
5665 else
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5670 main ()
5674 return 0;
5676 _ACEOF
5677 # Make sure it works both with $CC and with simple cc.
5678 # We do the test twice because some compilers refuse to overwrite an
5679 # existing .o file with -o, though they will create one.
5680 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5681 rm -f conftest2.*
5682 if { { case "(($ac_try" in
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5685 esac
5686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5687 $as_echo "$ac_try_echo"; } >&5
5688 (eval "$ac_try") 2>&5
5689 ac_status=$?
5690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5691 test $ac_status = 0; } &&
5692 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695 esac
5696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5697 $as_echo "$ac_try_echo"; } >&5
5698 (eval "$ac_try") 2>&5
5699 ac_status=$?
5700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5701 test $ac_status = 0; };
5702 then
5703 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5704 if test "x$CC" != xcc; then
5705 # Test first that cc exists at all.
5706 if { ac_try='cc -c conftest.$ac_ext >&5'
5707 { { case "(($ac_try" in
5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709 *) ac_try_echo=$ac_try;;
5710 esac
5711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5712 $as_echo "$ac_try_echo"; } >&5
5713 (eval "$ac_try") 2>&5
5714 ac_status=$?
5715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5716 test $ac_status = 0; }; }; then
5717 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5718 rm -f conftest2.*
5719 if { { case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722 esac
5723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5724 $as_echo "$ac_try_echo"; } >&5
5725 (eval "$ac_try") 2>&5
5726 ac_status=$?
5727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5728 test $ac_status = 0; } &&
5729 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731 *) ac_try_echo=$ac_try;;
5732 esac
5733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5734 $as_echo "$ac_try_echo"; } >&5
5735 (eval "$ac_try") 2>&5
5736 ac_status=$?
5737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5738 test $ac_status = 0; };
5739 then
5740 # cc works too.
5742 else
5743 # cc exists but doesn't like -o.
5744 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5748 else
5749 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5751 rm -f core conftest*
5754 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5756 $as_echo "yes" >&6; }
5757 else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5761 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5765 # FIXME: we rely on the cache variable name because
5766 # there is no other way.
5767 set dummy $CC
5768 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5769 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5770 if test "$am_t" != yes; then
5771 # Losing compiler, so override with the script.
5772 # FIXME: It is wrong to rewrite CC.
5773 # But if we don't then we get into trouble of one sort or another.
5774 # A longer-term fix would be to have automake use am__CC in this case,
5775 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5776 CC="$am_aux_dir/compile $CC"
5781 if test x$GCC = xyes; then
5782 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5783 else
5784 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5787 # Avoid gnulib's tests for O_NOATIME and O_NOFOLLOW, as we don't use them.
5789 # Avoid gnulib's threadlib module, as we do threads our own way.
5792 # Initialize gnulib right after choosing the compiler.
5794 ac_ext=c
5795 ac_cpp='$CPP $CPPFLAGS'
5796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5800 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5801 # On Suns, sometimes $CPP names a directory.
5802 if test -n "$CPP" && test -d "$CPP"; then
5803 CPP=
5805 if test -z "$CPP"; then
5806 if test "${ac_cv_prog_CPP+set}" = set; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 # Double quotes because CPP needs to be expanded
5810 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5812 ac_preproc_ok=false
5813 for ac_c_preproc_warn_flag in '' yes
5815 # Use a header file that comes with gcc, so configuring glibc
5816 # with a fresh cross-compiler works.
5817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5818 # <limits.h> exists even on freestanding compilers.
5819 # On the NeXT, cc -E runs the code through the compiler's parser,
5820 # not just through cpp. "Syntax error" is here to catch this case.
5821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822 /* end confdefs.h. */
5823 #ifdef __STDC__
5824 # include <limits.h>
5825 #else
5826 # include <assert.h>
5827 #endif
5828 Syntax error
5829 _ACEOF
5830 if ac_fn_c_try_cpp "$LINENO"; then :
5832 else
5833 # Broken: fails on valid input.
5834 continue
5836 rm -f conftest.err conftest.$ac_ext
5838 # OK, works on sane cases. Now check whether nonexistent headers
5839 # can be detected and how.
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 #include <ac_nonexistent.h>
5843 _ACEOF
5844 if ac_fn_c_try_cpp "$LINENO"; then :
5845 # Broken: success on invalid input.
5846 continue
5847 else
5848 # Passes both tests.
5849 ac_preproc_ok=:
5850 break
5852 rm -f conftest.err conftest.$ac_ext
5854 done
5855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5856 rm -f conftest.err conftest.$ac_ext
5857 if $ac_preproc_ok; then :
5858 break
5861 done
5862 ac_cv_prog_CPP=$CPP
5865 CPP=$ac_cv_prog_CPP
5866 else
5867 ac_cv_prog_CPP=$CPP
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5870 $as_echo "$CPP" >&6; }
5871 ac_preproc_ok=false
5872 for ac_c_preproc_warn_flag in '' yes
5874 # Use a header file that comes with gcc, so configuring glibc
5875 # with a fresh cross-compiler works.
5876 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5877 # <limits.h> exists even on freestanding compilers.
5878 # On the NeXT, cc -E runs the code through the compiler's parser,
5879 # not just through cpp. "Syntax error" is here to catch this case.
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h. */
5882 #ifdef __STDC__
5883 # include <limits.h>
5884 #else
5885 # include <assert.h>
5886 #endif
5887 Syntax error
5888 _ACEOF
5889 if ac_fn_c_try_cpp "$LINENO"; then :
5891 else
5892 # Broken: fails on valid input.
5893 continue
5895 rm -f conftest.err conftest.$ac_ext
5897 # OK, works on sane cases. Now check whether nonexistent headers
5898 # can be detected and how.
5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900 /* end confdefs.h. */
5901 #include <ac_nonexistent.h>
5902 _ACEOF
5903 if ac_fn_c_try_cpp "$LINENO"; then :
5904 # Broken: success on invalid input.
5905 continue
5906 else
5907 # Passes both tests.
5908 ac_preproc_ok=:
5909 break
5911 rm -f conftest.err conftest.$ac_ext
5913 done
5914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5915 rm -f conftest.err conftest.$ac_ext
5916 if $ac_preproc_ok; then :
5918 else
5919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5921 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5922 See \`config.log' for more details." "$LINENO" 5; }
5925 ac_ext=c
5926 ac_cpp='$CPP $CPPFLAGS'
5927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5933 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5934 if test "${ac_cv_path_GREP+set}" = set; then :
5935 $as_echo_n "(cached) " >&6
5936 else
5937 if test -z "$GREP"; then
5938 ac_path_GREP_found=false
5939 # Loop through the user's path and test for each of PROGNAME-LIST
5940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5943 IFS=$as_save_IFS
5944 test -z "$as_dir" && as_dir=.
5945 for ac_prog in grep ggrep; do
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5948 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5949 # Check for GNU ac_path_GREP and select it if it is found.
5950 # Check for GNU $ac_path_GREP
5951 case `"$ac_path_GREP" --version 2>&1` in
5952 *GNU*)
5953 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5955 ac_count=0
5956 $as_echo_n 0123456789 >"conftest.in"
5957 while :
5959 cat "conftest.in" "conftest.in" >"conftest.tmp"
5960 mv "conftest.tmp" "conftest.in"
5961 cp "conftest.in" "conftest.nl"
5962 $as_echo 'GREP' >> "conftest.nl"
5963 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5964 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5965 as_fn_arith $ac_count + 1 && ac_count=$as_val
5966 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5967 # Best one so far, save it but keep looking for a better one
5968 ac_cv_path_GREP="$ac_path_GREP"
5969 ac_path_GREP_max=$ac_count
5971 # 10*(2^10) chars as input seems more than enough
5972 test $ac_count -gt 10 && break
5973 done
5974 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5975 esac
5977 $ac_path_GREP_found && break 3
5978 done
5979 done
5980 done
5981 IFS=$as_save_IFS
5982 if test -z "$ac_cv_path_GREP"; then
5983 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5985 else
5986 ac_cv_path_GREP=$GREP
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5991 $as_echo "$ac_cv_path_GREP" >&6; }
5992 GREP="$ac_cv_path_GREP"
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5996 $as_echo_n "checking for egrep... " >&6; }
5997 if test "${ac_cv_path_EGREP+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6001 then ac_cv_path_EGREP="$GREP -E"
6002 else
6003 if test -z "$EGREP"; then
6004 ac_path_EGREP_found=false
6005 # Loop through the user's path and test for each of PROGNAME-LIST
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6009 IFS=$as_save_IFS
6010 test -z "$as_dir" && as_dir=.
6011 for ac_prog in egrep; do
6012 for ac_exec_ext in '' $ac_executable_extensions; do
6013 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6014 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6015 # Check for GNU ac_path_EGREP and select it if it is found.
6016 # Check for GNU $ac_path_EGREP
6017 case `"$ac_path_EGREP" --version 2>&1` in
6018 *GNU*)
6019 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6021 ac_count=0
6022 $as_echo_n 0123456789 >"conftest.in"
6023 while :
6025 cat "conftest.in" "conftest.in" >"conftest.tmp"
6026 mv "conftest.tmp" "conftest.in"
6027 cp "conftest.in" "conftest.nl"
6028 $as_echo 'EGREP' >> "conftest.nl"
6029 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6031 as_fn_arith $ac_count + 1 && ac_count=$as_val
6032 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6033 # Best one so far, save it but keep looking for a better one
6034 ac_cv_path_EGREP="$ac_path_EGREP"
6035 ac_path_EGREP_max=$ac_count
6037 # 10*(2^10) chars as input seems more than enough
6038 test $ac_count -gt 10 && break
6039 done
6040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6041 esac
6043 $ac_path_EGREP_found && break 3
6044 done
6045 done
6046 done
6047 IFS=$as_save_IFS
6048 if test -z "$ac_cv_path_EGREP"; then
6049 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6051 else
6052 ac_cv_path_EGREP=$EGREP
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6058 $as_echo "$ac_cv_path_EGREP" >&6; }
6059 EGREP="$ac_cv_path_EGREP"
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6065 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6066 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6067 $as_echo_n "(cached) " >&6
6068 else
6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6073 #ifdef __ACK__
6074 Amsterdam
6075 #endif
6077 _ACEOF
6078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6079 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6080 gl_cv_c_amsterdam_compiler=yes
6081 else
6082 gl_cv_c_amsterdam_compiler=no
6084 rm -f conftest*
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6089 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6090 if test -z "$AR"; then
6091 if test $gl_cv_c_amsterdam_compiler = yes; then
6092 AR='cc -c.a'
6093 if test -z "$ARFLAGS"; then
6094 ARFLAGS='-o'
6096 else
6097 if test -n "$ac_tool_prefix"; then
6098 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6099 set dummy ${ac_tool_prefix}ar; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if test "${ac_cv_prog_AR+set}" = set; then :
6103 $as_echo_n "(cached) " >&6
6104 else
6105 if test -n "$AR"; then
6106 ac_cv_prog_AR="$AR" # Let the user override the test.
6107 else
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6115 ac_cv_prog_AR="${ac_tool_prefix}ar"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 break 2
6119 done
6120 done
6121 IFS=$as_save_IFS
6125 AR=$ac_cv_prog_AR
6126 if test -n "$AR"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6128 $as_echo "$AR" >&6; }
6129 else
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6136 if test -z "$ac_cv_prog_AR"; then
6137 ac_ct_AR=$AR
6138 # Extract the first word of "ar", so it can be a program name with args.
6139 set dummy ar; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 if test -n "$ac_ct_AR"; then
6146 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6147 else
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155 ac_cv_prog_ac_ct_AR="ar"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 break 2
6159 done
6160 done
6161 IFS=$as_save_IFS
6165 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6166 if test -n "$ac_ct_AR"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6168 $as_echo "$ac_ct_AR" >&6; }
6169 else
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6174 if test "x$ac_ct_AR" = x; then
6175 AR="ar"
6176 else
6177 case $cross_compiling:$ac_tool_warned in
6178 yes:)
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6181 ac_tool_warned=yes ;;
6182 esac
6183 AR=$ac_ct_AR
6185 else
6186 AR="$ac_cv_prog_AR"
6189 if test -z "$ARFLAGS"; then
6190 ARFLAGS='cru'
6193 else
6194 if test -z "$ARFLAGS"; then
6195 ARFLAGS='cru'
6200 if test -z "$RANLIB"; then
6201 if test $gl_cv_c_amsterdam_compiler = yes; then
6202 RANLIB=':'
6203 else
6204 if test -n "$ac_tool_prefix"; then
6205 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6206 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6208 $as_echo_n "checking for $ac_word... " >&6; }
6209 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6210 $as_echo_n "(cached) " >&6
6211 else
6212 if test -n "$RANLIB"; then
6213 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6214 else
6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 for as_dir in $PATH
6218 IFS=$as_save_IFS
6219 test -z "$as_dir" && as_dir=.
6220 for ac_exec_ext in '' $ac_executable_extensions; do
6221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6222 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6224 break 2
6226 done
6227 done
6228 IFS=$as_save_IFS
6232 RANLIB=$ac_cv_prog_RANLIB
6233 if test -n "$RANLIB"; then
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6235 $as_echo "$RANLIB" >&6; }
6236 else
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6238 $as_echo "no" >&6; }
6243 if test -z "$ac_cv_prog_RANLIB"; then
6244 ac_ct_RANLIB=$RANLIB
6245 # Extract the first word of "ranlib", so it can be a program name with args.
6246 set dummy ranlib; ac_word=$2
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6248 $as_echo_n "checking for $ac_word... " >&6; }
6249 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6252 if test -n "$ac_ct_RANLIB"; then
6253 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6254 else
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262 ac_cv_prog_ac_ct_RANLIB="ranlib"
6263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 break 2
6266 done
6267 done
6268 IFS=$as_save_IFS
6272 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6273 if test -n "$ac_ct_RANLIB"; then
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6275 $as_echo "$ac_ct_RANLIB" >&6; }
6276 else
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278 $as_echo "no" >&6; }
6281 if test "x$ac_ct_RANLIB" = x; then
6282 RANLIB=":"
6283 else
6284 case $cross_compiling:$ac_tool_warned in
6285 yes:)
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6288 ac_tool_warned=yes ;;
6289 esac
6290 RANLIB=$ac_ct_RANLIB
6292 else
6293 RANLIB="$ac_cv_prog_RANLIB"
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6301 $as_echo_n "checking for ANSI C header files... " >&6; }
6302 if test "${ac_cv_header_stdc+set}" = set; then :
6303 $as_echo_n "(cached) " >&6
6304 else
6305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6306 /* end confdefs.h. */
6307 #include <stdlib.h>
6308 #include <stdarg.h>
6309 #include <string.h>
6310 #include <float.h>
6313 main ()
6317 return 0;
6319 _ACEOF
6320 if ac_fn_c_try_compile "$LINENO"; then :
6321 ac_cv_header_stdc=yes
6322 else
6323 ac_cv_header_stdc=no
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327 if test $ac_cv_header_stdc = yes; then
6328 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h. */
6331 #include <string.h>
6333 _ACEOF
6334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6335 $EGREP "memchr" >/dev/null 2>&1; then :
6337 else
6338 ac_cv_header_stdc=no
6340 rm -f conftest*
6344 if test $ac_cv_header_stdc = yes; then
6345 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6348 #include <stdlib.h>
6350 _ACEOF
6351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6352 $EGREP "free" >/dev/null 2>&1; then :
6354 else
6355 ac_cv_header_stdc=no
6357 rm -f conftest*
6361 if test $ac_cv_header_stdc = yes; then
6362 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6363 if test "$cross_compiling" = yes; then :
6365 else
6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6368 #include <ctype.h>
6369 #include <stdlib.h>
6370 #if ((' ' & 0x0FF) == 0x020)
6371 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6372 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6373 #else
6374 # define ISLOWER(c) \
6375 (('a' <= (c) && (c) <= 'i') \
6376 || ('j' <= (c) && (c) <= 'r') \
6377 || ('s' <= (c) && (c) <= 'z'))
6378 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6379 #endif
6381 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6383 main ()
6385 int i;
6386 for (i = 0; i < 256; i++)
6387 if (XOR (islower (i), ISLOWER (i))
6388 || toupper (i) != TOUPPER (i))
6389 return 2;
6390 return 0;
6392 _ACEOF
6393 if ac_fn_c_try_run "$LINENO"; then :
6395 else
6396 ac_cv_header_stdc=no
6398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6399 conftest.$ac_objext conftest.beam conftest.$ac_ext
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6405 $as_echo "$ac_cv_header_stdc" >&6; }
6406 if test $ac_cv_header_stdc = yes; then
6408 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6412 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6413 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6414 inttypes.h stdint.h unistd.h
6415 do :
6416 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6417 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6419 eval as_val=\$$as_ac_Header
6420 if test "x$as_val" = x""yes; then :
6421 cat >>confdefs.h <<_ACEOF
6422 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6423 _ACEOF
6427 done
6433 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6434 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6435 MINIX=yes
6436 else
6437 MINIX=
6441 if test "$MINIX" = yes; then
6443 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6446 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6449 $as_echo "#define _MINIX 1" >>confdefs.h
6453 case "$host_os" in
6454 hpux*)
6456 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6459 esac
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6463 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6464 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6470 # define __EXTENSIONS__ 1
6471 $ac_includes_default
6473 main ()
6477 return 0;
6479 _ACEOF
6480 if ac_fn_c_try_compile "$LINENO"; then :
6481 ac_cv_safe_to_define___extensions__=yes
6482 else
6483 ac_cv_safe_to_define___extensions__=no
6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6488 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6489 test $ac_cv_safe_to_define___extensions__ = yes &&
6490 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6492 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6494 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6496 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6498 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6500 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6509 # Check whether --enable-largefile was given.
6510 if test "${enable_largefile+set}" = set; then :
6511 enableval=$enable_largefile;
6514 if test "$enable_largefile" != no; then
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6517 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6518 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 ac_cv_sys_largefile_CC=no
6522 if test "$GCC" != yes; then
6523 ac_save_CC=$CC
6524 while :; do
6525 # IRIX 6.2 and later do not support large files by default,
6526 # so use the C compiler's -n32 option if that helps.
6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6529 #include <sys/types.h>
6530 /* Check that off_t can represent 2**63 - 1 correctly.
6531 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6532 since some C++ compilers masquerading as C compilers
6533 incorrectly reject 9223372036854775807. */
6534 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6536 && LARGE_OFF_T % 2147483647 == 1)
6537 ? 1 : -1];
6539 main ()
6543 return 0;
6545 _ACEOF
6546 if ac_fn_c_try_compile "$LINENO"; then :
6547 break
6549 rm -f core conftest.err conftest.$ac_objext
6550 CC="$CC -n32"
6551 if ac_fn_c_try_compile "$LINENO"; then :
6552 ac_cv_sys_largefile_CC=' -n32'; break
6554 rm -f core conftest.err conftest.$ac_objext
6555 break
6556 done
6557 CC=$ac_save_CC
6558 rm -f conftest.$ac_ext
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6562 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6563 if test "$ac_cv_sys_largefile_CC" != no; then
6564 CC=$CC$ac_cv_sys_largefile_CC
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6568 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6569 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 while :; do
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6575 #include <sys/types.h>
6576 /* Check that off_t can represent 2**63 - 1 correctly.
6577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6578 since some C++ compilers masquerading as C compilers
6579 incorrectly reject 9223372036854775807. */
6580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6582 && LARGE_OFF_T % 2147483647 == 1)
6583 ? 1 : -1];
6585 main ()
6589 return 0;
6591 _ACEOF
6592 if ac_fn_c_try_compile "$LINENO"; then :
6593 ac_cv_sys_file_offset_bits=no; break
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6598 #define _FILE_OFFSET_BITS 64
6599 #include <sys/types.h>
6600 /* Check that off_t can represent 2**63 - 1 correctly.
6601 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6602 since some C++ compilers masquerading as C compilers
6603 incorrectly reject 9223372036854775807. */
6604 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6605 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6606 && LARGE_OFF_T % 2147483647 == 1)
6607 ? 1 : -1];
6609 main ()
6613 return 0;
6615 _ACEOF
6616 if ac_fn_c_try_compile "$LINENO"; then :
6617 ac_cv_sys_file_offset_bits=64; break
6619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620 ac_cv_sys_file_offset_bits=unknown
6621 break
6622 done
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6625 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6626 case $ac_cv_sys_file_offset_bits in #(
6627 no | unknown) ;;
6629 cat >>confdefs.h <<_ACEOF
6630 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6631 _ACEOF
6633 esac
6634 rm -rf conftest*
6635 if test $ac_cv_sys_file_offset_bits = unknown; then
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6637 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6638 if test "${ac_cv_sys_large_files+set}" = set; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641 while :; do
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6644 #include <sys/types.h>
6645 /* Check that off_t can represent 2**63 - 1 correctly.
6646 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6647 since some C++ compilers masquerading as C compilers
6648 incorrectly reject 9223372036854775807. */
6649 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6650 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6651 && LARGE_OFF_T % 2147483647 == 1)
6652 ? 1 : -1];
6654 main ()
6658 return 0;
6660 _ACEOF
6661 if ac_fn_c_try_compile "$LINENO"; then :
6662 ac_cv_sys_large_files=no; break
6664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666 /* end confdefs.h. */
6667 #define _LARGE_FILES 1
6668 #include <sys/types.h>
6669 /* Check that off_t can represent 2**63 - 1 correctly.
6670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6671 since some C++ compilers masquerading as C compilers
6672 incorrectly reject 9223372036854775807. */
6673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6675 && LARGE_OFF_T % 2147483647 == 1)
6676 ? 1 : -1];
6678 main ()
6682 return 0;
6684 _ACEOF
6685 if ac_fn_c_try_compile "$LINENO"; then :
6686 ac_cv_sys_large_files=1; break
6688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6689 ac_cv_sys_large_files=unknown
6690 break
6691 done
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6694 $as_echo "$ac_cv_sys_large_files" >&6; }
6695 case $ac_cv_sys_large_files in #(
6696 no | unknown) ;;
6698 cat >>confdefs.h <<_ACEOF
6699 #define _LARGE_FILES $ac_cv_sys_large_files
6700 _ACEOF
6702 esac
6703 rm -rf conftest*
6709 case $ac_cv_prog_cc_stdc in #(
6710 no) :
6711 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6712 *) :
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6714 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6715 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6716 $as_echo_n "(cached) " >&6
6717 else
6718 ac_cv_prog_cc_c99=no
6719 ac_save_CC=$CC
6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721 /* end confdefs.h. */
6722 #include <stdarg.h>
6723 #include <stdbool.h>
6724 #include <stdlib.h>
6725 #include <wchar.h>
6726 #include <stdio.h>
6728 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6729 #define debug(...) fprintf (stderr, __VA_ARGS__)
6730 #define showlist(...) puts (#__VA_ARGS__)
6731 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6732 static void
6733 test_varargs_macros (void)
6735 int x = 1234;
6736 int y = 5678;
6737 debug ("Flag");
6738 debug ("X = %d\n", x);
6739 showlist (The first, second, and third items.);
6740 report (x>y, "x is %d but y is %d", x, y);
6743 // Check long long types.
6744 #define BIG64 18446744073709551615ull
6745 #define BIG32 4294967295ul
6746 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6747 #if !BIG_OK
6748 your preprocessor is broken;
6749 #endif
6750 #if BIG_OK
6751 #else
6752 your preprocessor is broken;
6753 #endif
6754 static long long int bignum = -9223372036854775807LL;
6755 static unsigned long long int ubignum = BIG64;
6757 struct incomplete_array
6759 int datasize;
6760 double data[];
6763 struct named_init {
6764 int number;
6765 const wchar_t *name;
6766 double average;
6769 typedef const char *ccp;
6771 static inline int
6772 test_restrict (ccp restrict text)
6774 // See if C++-style comments work.
6775 // Iterate through items via the restricted pointer.
6776 // Also check for declarations in for loops.
6777 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6778 continue;
6779 return 0;
6782 // Check varargs and va_copy.
6783 static void
6784 test_varargs (const char *format, ...)
6786 va_list args;
6787 va_start (args, format);
6788 va_list args_copy;
6789 va_copy (args_copy, args);
6791 const char *str;
6792 int number;
6793 float fnumber;
6795 while (*format)
6797 switch (*format++)
6799 case 's': // string
6800 str = va_arg (args_copy, const char *);
6801 break;
6802 case 'd': // int
6803 number = va_arg (args_copy, int);
6804 break;
6805 case 'f': // float
6806 fnumber = va_arg (args_copy, double);
6807 break;
6808 default:
6809 break;
6812 va_end (args_copy);
6813 va_end (args);
6817 main ()
6820 // Check bool.
6821 _Bool success = false;
6823 // Check restrict.
6824 if (test_restrict ("String literal") == 0)
6825 success = true;
6826 char *restrict newvar = "Another string";
6828 // Check varargs.
6829 test_varargs ("s, d' f .", "string", 65, 34.234);
6830 test_varargs_macros ();
6832 // Check flexible array members.
6833 struct incomplete_array *ia =
6834 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6835 ia->datasize = 10;
6836 for (int i = 0; i < ia->datasize; ++i)
6837 ia->data[i] = i * 1.234;
6839 // Check named initializers.
6840 struct named_init ni = {
6841 .number = 34,
6842 .name = L"Test wide string",
6843 .average = 543.34343,
6846 ni.number = 58;
6848 int dynamic_array[ni.number];
6849 dynamic_array[ni.number - 1] = 543;
6851 // work around unused variable warnings
6852 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6853 || dynamic_array[ni.number - 1] != 543);
6856 return 0;
6858 _ACEOF
6859 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6861 CC="$ac_save_CC $ac_arg"
6862 if ac_fn_c_try_compile "$LINENO"; then :
6863 ac_cv_prog_cc_c99=$ac_arg
6865 rm -f core conftest.err conftest.$ac_objext
6866 test "x$ac_cv_prog_cc_c99" != "xno" && break
6867 done
6868 rm -f conftest.$ac_ext
6869 CC=$ac_save_CC
6872 # AC_CACHE_VAL
6873 case "x$ac_cv_prog_cc_c99" in
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6876 $as_echo "none needed" >&6; } ;;
6877 xno)
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6879 $as_echo "unsupported" >&6; } ;;
6881 CC="$CC $ac_cv_prog_cc_c99"
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6883 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6884 esac
6885 if test "x$ac_cv_prog_cc_c99" != xno; then :
6886 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6887 else
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6889 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6890 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6893 ac_cv_prog_cc_c89=no
6894 ac_save_CC=$CC
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6897 #include <stdarg.h>
6898 #include <stdio.h>
6899 #include <sys/types.h>
6900 #include <sys/stat.h>
6901 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6902 struct buf { int x; };
6903 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6904 static char *e (p, i)
6905 char **p;
6906 int i;
6908 return p[i];
6910 static char *f (char * (*g) (char **, int), char **p, ...)
6912 char *s;
6913 va_list v;
6914 va_start (v,p);
6915 s = g (p, va_arg (v,int));
6916 va_end (v);
6917 return s;
6920 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6921 function prototypes and stuff, but not '\xHH' hex character constants.
6922 These don't provoke an error unfortunately, instead are silently treated
6923 as 'x'. The following induces an error, until -std is added to get
6924 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6925 array size at least. It's necessary to write '\x00'==0 to get something
6926 that's true only with -std. */
6927 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6929 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6930 inside strings and character constants. */
6931 #define FOO(x) 'x'
6932 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6934 int test (int i, double x);
6935 struct s1 {int (*f) (int a);};
6936 struct s2 {int (*f) (double a);};
6937 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6938 int argc;
6939 char **argv;
6941 main ()
6943 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6945 return 0;
6947 _ACEOF
6948 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6949 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6951 CC="$ac_save_CC $ac_arg"
6952 if ac_fn_c_try_compile "$LINENO"; then :
6953 ac_cv_prog_cc_c89=$ac_arg
6955 rm -f core conftest.err conftest.$ac_objext
6956 test "x$ac_cv_prog_cc_c89" != "xno" && break
6957 done
6958 rm -f conftest.$ac_ext
6959 CC=$ac_save_CC
6962 # AC_CACHE_VAL
6963 case "x$ac_cv_prog_cc_c89" in
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6966 $as_echo "none needed" >&6; } ;;
6967 xno)
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6969 $as_echo "unsupported" >&6; } ;;
6971 CC="$CC $ac_cv_prog_cc_c89"
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6973 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6974 esac
6975 if test "x$ac_cv_prog_cc_c89" != xno; then :
6976 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6977 else
6978 ac_cv_prog_cc_stdc=no
6983 esac
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6985 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6986 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6987 $as_echo_n "(cached) " >&6
6990 case $ac_cv_prog_cc_stdc in #(
6991 no) :
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6993 $as_echo "unsupported" >&6; } ;; #(
6994 '') :
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6996 $as_echo "none needed" >&6; } ;; #(
6997 *) :
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6999 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7000 esac
7004 # Code from module alloca-opt:
7005 # Code from module allocator:
7006 # Code from module c-ctype:
7007 # Code from module c-strcase:
7008 # Code from module careadlinkat:
7009 # Code from module clock-time:
7010 # Code from module close-stream:
7011 # Code from module crypto/md5:
7012 # Code from module crypto/sha1:
7013 # Code from module crypto/sha256:
7014 # Code from module crypto/sha512:
7015 # Code from module dosname:
7016 # Code from module dtoastr:
7017 # Code from module dtotimespec:
7018 # Code from module dup2:
7019 # Code from module environ:
7020 # Code from module euidaccess:
7021 # Code from module execinfo:
7022 # Code from module extensions:
7024 # Code from module extern-inline:
7025 # Code from module faccessat:
7026 # Code from module fcntl-h:
7027 # Code from module filemode:
7028 # Code from module fpending:
7029 # Code from module getgroups:
7030 # Code from module getloadavg:
7031 # Code from module getopt-gnu:
7032 # Code from module getopt-posix:
7033 # Code from module gettext-h:
7034 # Code from module gettime:
7035 # Code from module gettimeofday:
7036 # Code from module group-member:
7037 # Code from module ignore-value:
7038 # Code from module include_next:
7039 # Code from module intprops:
7040 # Code from module inttypes-incomplete:
7041 # Code from module largefile:
7043 # Code from module lstat:
7044 # Code from module manywarnings:
7045 # Code from module mktime:
7046 # Code from module multiarch:
7047 # Code from module nocrash:
7048 # Code from module pathmax:
7049 # Code from module pselect:
7050 # Code from module pthread_sigmask:
7051 # Code from module putenv:
7052 # Code from module readlink:
7053 # Code from module root-uid:
7054 # Code from module sig2str:
7055 # Code from module signal-h:
7056 # Code from module snippet/_Noreturn:
7057 # Code from module snippet/arg-nonnull:
7058 # Code from module snippet/c++defs:
7059 # Code from module snippet/warn-on-use:
7060 # Code from module socklen:
7061 # Code from module ssize_t:
7062 # Code from module stat:
7063 # Code from module stat-time:
7064 # Code from module stdalign:
7065 # Code from module stdarg:
7069 # Code from module stdbool:
7070 # Code from module stddef:
7071 # Code from module stdint:
7072 # Code from module stdio:
7073 # Code from module stdlib:
7074 # Code from module strftime:
7075 # Code from module strtoimax:
7076 # Code from module strtoll:
7077 # Code from module strtoull:
7078 # Code from module strtoumax:
7079 # Code from module symlink:
7080 # Code from module sys_select:
7081 # Code from module sys_stat:
7082 # Code from module sys_time:
7083 # Code from module time:
7084 # Code from module time_r:
7085 # Code from module timer-time:
7086 # Code from module timespec:
7087 # Code from module timespec-add:
7088 # Code from module timespec-sub:
7089 # Code from module u64:
7090 # Code from module unistd:
7091 # Code from module unsetenv:
7092 # Code from module utimens:
7093 # Code from module verify:
7094 # Code from module warnings:
7095 # Code from module xalloc-oversized:
7098 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7099 # if -g3 works and the user does not specify CFLAGS.
7100 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7101 if test "$ac_test_CFLAGS" != set; then
7102 case $CFLAGS in
7103 '-g')
7104 emacs_g3_CFLAGS='-g3';;
7105 '-g -O2')
7106 emacs_g3_CFLAGS='-g3 -O2';;
7108 emacs_g3_CFLAGS='';;
7109 esac
7110 if test -n "$emacs_g3_CFLAGS"; then
7111 emacs_save_CFLAGS=$CFLAGS
7112 CFLAGS=$emacs_g3_CFLAGS
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7114 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7115 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7116 $as_echo_n "(cached) " >&6
7117 else
7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7122 main ()
7126 return 0;
7128 _ACEOF
7129 if ac_fn_c_try_link "$LINENO"; then :
7130 emacs_cv_prog_cc_g3=yes
7131 else
7132 emacs_cv_prog_cc_g3=no
7134 rm -f core conftest.err conftest.$ac_objext \
7135 conftest$ac_exeext conftest.$ac_ext
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7138 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7139 if test $emacs_cv_prog_cc_g3 = yes; then
7140 CFLAGS=$emacs_g3_CFLAGS
7141 else
7142 CFLAGS=$emacs_save_CFLAGS
7147 # Check whether --enable-gcc-warnings was given.
7148 if test "${enable_gcc_warnings+set}" = set; then :
7149 enableval=$enable_gcc_warnings; case $enableval in
7150 yes|no) ;;
7151 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7152 esac
7153 gl_gcc_warnings=$enableval
7154 else
7155 gl_gcc_warnings=no
7160 # Check whether --enable-link-time-optimization was given.
7161 if test "${enable_link_time_optimization+set}" = set; then :
7162 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7164 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7165 ac_lto_supported=no
7166 if test x$GCC = xyes; then
7167 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7168 if test x$CPUS != x; then
7169 LTO="-flto=$CPUS"
7170 else
7171 LTO="-flto"
7173 old_CFLAGS=$CFLAGS
7174 CFLAGS="$CFLAGS $LTO"
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7179 main ()
7183 return 0;
7185 _ACEOF
7186 if ac_fn_c_try_compile "$LINENO"; then :
7187 ac_lto_supported=yes
7188 else
7189 ac_lto_supported=no
7191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7192 CFLAGS="$old_CFLAGS"
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7195 $as_echo "$ac_lto_supported" >&6; }
7196 if test "$ac_lto_supported" = "yes"; then
7197 CFLAGS="$CFLAGS $LTO"
7203 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7204 # ------------------------------------------------
7205 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7206 # Otherwise, run RUN-IF-NOT-FOUND.
7209 # When compiling with GCC, prefer -isystem to -I when including system
7210 # include files, to avoid generating useless diagnostics for the files.
7211 if test "$gl_gcc_warnings" != yes; then
7212 isystem='-I'
7213 else
7214 isystem='-isystem '
7216 # This, $nw, is the list of warnings we disable.
7219 case $with_x_toolkit in
7220 lucid | athena | motif)
7221 # Old toolkits mishandle 'const'.
7222 nw="$nw -Wwrite-strings"
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7226 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7227 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7228 $as_echo_n "(cached) " >&6
7229 else
7231 gl_save_compiler_FLAGS="$CFLAGS"
7232 as_fn_append CFLAGS " -Werror"
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7237 main ()
7241 return 0;
7243 _ACEOF
7244 if ac_fn_c_try_compile "$LINENO"; then :
7245 gl_cv_warn_c__Werror=yes
7246 else
7247 gl_cv_warn_c__Werror=no
7249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7250 CFLAGS="$gl_save_compiler_FLAGS"
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7254 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7255 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7256 as_fn_append WERROR_CFLAGS " -Werror"
7261 esac
7264 nw="$nw -Waggregate-return" # anachronistic
7265 nw="$nw -Wlong-long" # C90 is anachronistic
7266 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7267 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7268 nw="$nw -Wtraditional" # Warns on #elif which we use often
7269 nw="$nw -Wcast-qual" # Too many warnings for now
7270 nw="$nw -Wconversion" # Too many warnings for now
7271 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7272 nw="$nw -Wsign-conversion" # Too many warnings for now
7273 nw="$nw -Woverlength-strings" # Not a problem these days
7274 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7275 nw="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7276 nw="$nw -Wpadded" # Our structs are not padded
7277 nw="$nw -Wredundant-decls" # we regularly (re)declare functions
7278 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7279 nw="$nw -Wformat-nonliteral" # we do this a lot
7280 nw="$nw -Wvla" # warnings in gettext.h
7281 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7282 nw="$nw -Wswitch-enum" # Too many warnings for now
7283 nw="$nw -Wswitch-default" # Too many warnings for now
7284 nw="$nw -Wfloat-equal" # warns about high-quality code
7285 nw="$nw -Winline" # OK to ignore 'inline'
7286 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7287 nw="$nw -Wstrict-overflow" # OK to optimize assuming that
7288 # signed overflow has undefined behavior
7289 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7290 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7292 # Emacs doesn't care about shadowing; see
7293 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7294 nw="$nw -Wshadow"
7296 # Emacs's use of alloca inhibits protecting the stack.
7297 nw="$nw -Wstack-protector"
7299 # The following line should be removable at some point.
7300 nw="$nw -Wsuggest-attribute=pure"
7304 if test -n "$GCC"; then
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7307 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7308 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7309 $as_echo_n "(cached) " >&6
7310 else
7312 gl_save_CFLAGS="$CFLAGS"
7313 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7318 main ()
7322 return 0;
7324 _ACEOF
7325 if ac_fn_c_try_compile "$LINENO"; then :
7326 gl_cv_cc_nomfi_supported=yes
7327 else
7328 gl_cv_cc_nomfi_supported=no
7330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7331 CFLAGS="$gl_save_CFLAGS"
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7335 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7337 if test "$gl_cv_cc_nomfi_supported" = yes; then
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7339 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7340 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7341 $as_echo_n "(cached) " >&6
7342 else
7344 gl_save_CFLAGS="$CFLAGS"
7345 CFLAGS="$CFLAGS -W -Werror"
7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7348 void f (void)
7350 typedef struct { int a; int b; } s_t;
7351 s_t s1 = { 0, };
7355 main ()
7359 return 0;
7361 _ACEOF
7362 if ac_fn_c_try_compile "$LINENO"; then :
7363 gl_cv_cc_nomfi_needed=no
7364 else
7365 gl_cv_cc_nomfi_needed=yes
7367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7368 CFLAGS="$gl_save_CFLAGS"
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7373 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7377 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7378 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7379 $as_echo_n "(cached) " >&6
7380 else
7382 gl_save_CFLAGS="$CFLAGS"
7383 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7388 main ()
7392 return 0;
7394 _ACEOF
7395 if ac_fn_c_try_compile "$LINENO"; then :
7396 gl_cv_cc_uninitialized_supported=yes
7397 else
7398 gl_cv_cc_uninitialized_supported=no
7400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7401 CFLAGS="$gl_save_CFLAGS"
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7405 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7409 # List all gcc warning categories.
7410 gl_manywarn_set=
7411 for gl_manywarn_item in \
7412 -W \
7413 -Wabi \
7414 -Waddress \
7415 -Wall \
7416 -Warray-bounds \
7417 -Wattributes \
7418 -Wbad-function-cast \
7419 -Wbuiltin-macro-redefined \
7420 -Wcast-align \
7421 -Wchar-subscripts \
7422 -Wclobbered \
7423 -Wcomment \
7424 -Wcomments \
7425 -Wcoverage-mismatch \
7426 -Wcpp \
7427 -Wdeprecated \
7428 -Wdeprecated-declarations \
7429 -Wdisabled-optimization \
7430 -Wdiv-by-zero \
7431 -Wdouble-promotion \
7432 -Wempty-body \
7433 -Wendif-labels \
7434 -Wenum-compare \
7435 -Wextra \
7436 -Wformat-contains-nul \
7437 -Wformat-extra-args \
7438 -Wformat-nonliteral \
7439 -Wformat-security \
7440 -Wformat-y2k \
7441 -Wformat-zero-length \
7442 -Wformat=2 \
7443 -Wfree-nonheap-object \
7444 -Wignored-qualifiers \
7445 -Wimplicit \
7446 -Wimplicit-function-declaration \
7447 -Wimplicit-int \
7448 -Winit-self \
7449 -Winline \
7450 -Wint-to-pointer-cast \
7451 -Winvalid-memory-model \
7452 -Winvalid-pch \
7453 -Wjump-misses-init \
7454 -Wlogical-op \
7455 -Wmain \
7456 -Wmaybe-uninitialized \
7457 -Wmissing-braces \
7458 -Wmissing-declarations \
7459 -Wmissing-field-initializers \
7460 -Wmissing-format-attribute \
7461 -Wmissing-include-dirs \
7462 -Wmissing-noreturn \
7463 -Wmissing-parameter-type \
7464 -Wmissing-prototypes \
7465 -Wmudflap \
7466 -Wmultichar \
7467 -Wnarrowing \
7468 -Wnested-externs \
7469 -Wnonnull \
7470 -Wnormalized=nfc \
7471 -Wold-style-declaration \
7472 -Wold-style-definition \
7473 -Woverflow \
7474 -Woverlength-strings \
7475 -Woverride-init \
7476 -Wpacked \
7477 -Wpacked-bitfield-compat \
7478 -Wparentheses \
7479 -Wpointer-arith \
7480 -Wpointer-sign \
7481 -Wpointer-to-int-cast \
7482 -Wpragmas \
7483 -Wreturn-type \
7484 -Wsequence-point \
7485 -Wshadow \
7486 -Wsizeof-pointer-memaccess \
7487 -Wstack-protector \
7488 -Wstrict-aliasing \
7489 -Wstrict-overflow \
7490 -Wstrict-prototypes \
7491 -Wsuggest-attribute=const \
7492 -Wsuggest-attribute=format \
7493 -Wsuggest-attribute=noreturn \
7494 -Wsuggest-attribute=pure \
7495 -Wswitch \
7496 -Wswitch-default \
7497 -Wsync-nand \
7498 -Wsystem-headers \
7499 -Wtrampolines \
7500 -Wtrigraphs \
7501 -Wtype-limits \
7502 -Wuninitialized \
7503 -Wunknown-pragmas \
7504 -Wunreachable-code \
7505 -Wunsafe-loop-optimizations \
7506 -Wunused \
7507 -Wunused-but-set-parameter \
7508 -Wunused-but-set-variable \
7509 -Wunused-function \
7510 -Wunused-label \
7511 -Wunused-local-typedefs \
7512 -Wunused-macros \
7513 -Wunused-parameter \
7514 -Wunused-result \
7515 -Wunused-value \
7516 -Wunused-variable \
7517 -Wvarargs \
7518 -Wvariadic-macros \
7519 -Wvector-operation-performance \
7520 -Wvla \
7521 -Wvolatile-register-var \
7522 -Wwrite-strings \
7524 ; do
7525 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7526 done
7528 # Disable specific options as needed.
7529 if test "$gl_cv_cc_nomfi_needed" = yes; then
7530 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7533 if test "$gl_cv_cc_uninitialized_supported" = no; then
7534 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
7537 ws=$gl_manywarn_set
7540 gl_warn_set=
7541 set x $ws; shift
7542 for gl_warn_item
7544 case " $nw " in
7545 *" $gl_warn_item "*)
7548 gl_warn_set="$gl_warn_set $gl_warn_item"
7550 esac
7551 done
7552 ws=$gl_warn_set
7554 for w in $ws; do
7555 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7557 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7558 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7562 gl_save_compiler_FLAGS="$CFLAGS"
7563 as_fn_append CFLAGS " $w"
7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7568 main ()
7572 return 0;
7574 _ACEOF
7575 if ac_fn_c_try_compile "$LINENO"; then :
7576 eval "$as_gl_Warn=yes"
7577 else
7578 eval "$as_gl_Warn=no"
7580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581 CFLAGS="$gl_save_compiler_FLAGS"
7584 eval ac_res=\$$as_gl_Warn
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7586 $as_echo "$ac_res" >&6; }
7587 eval as_val=\$$as_gl_Warn
7588 if test "x$as_val" = x""yes; then :
7589 as_fn_append WARN_CFLAGS " $w"
7593 done
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7595 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7596 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7597 $as_echo_n "(cached) " >&6
7598 else
7600 gl_save_compiler_FLAGS="$CFLAGS"
7601 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7606 main ()
7610 return 0;
7612 _ACEOF
7613 if ac_fn_c_try_compile "$LINENO"; then :
7614 gl_cv_warn_c__Wno_missing_field_initializers=yes
7615 else
7616 gl_cv_warn_c__Wno_missing_field_initializers=no
7618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7619 CFLAGS="$gl_save_compiler_FLAGS"
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7623 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7624 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7625 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7628 # We need this one
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7630 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7631 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7635 gl_save_compiler_FLAGS="$CFLAGS"
7636 as_fn_append CFLAGS " -Wno-sign-compare"
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7641 main ()
7645 return 0;
7647 _ACEOF
7648 if ac_fn_c_try_compile "$LINENO"; then :
7649 gl_cv_warn_c__Wno_sign_compare=yes
7650 else
7651 gl_cv_warn_c__Wno_sign_compare=no
7653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654 CFLAGS="$gl_save_compiler_FLAGS"
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7658 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7659 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7660 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7663 # Too many warnings for now
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7665 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7666 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7667 $as_echo_n "(cached) " >&6
7668 else
7670 gl_save_compiler_FLAGS="$CFLAGS"
7671 as_fn_append CFLAGS " -Wno-type-limits"
7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h. */
7676 main ()
7680 return 0;
7682 _ACEOF
7683 if ac_fn_c_try_compile "$LINENO"; then :
7684 gl_cv_warn_c__Wno_type_limits=yes
7685 else
7686 gl_cv_warn_c__Wno_type_limits=no
7688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7689 CFLAGS="$gl_save_compiler_FLAGS"
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7693 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7694 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7695 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7698 # Too many warnings for now
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7700 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7701 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7705 gl_save_compiler_FLAGS="$CFLAGS"
7706 as_fn_append CFLAGS " -Wno-switch"
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7711 main ()
7715 return 0;
7717 _ACEOF
7718 if ac_fn_c_try_compile "$LINENO"; then :
7719 gl_cv_warn_c__Wno_switch=yes
7720 else
7721 gl_cv_warn_c__Wno_switch=no
7723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7724 CFLAGS="$gl_save_compiler_FLAGS"
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7728 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7729 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7730 as_fn_append WARN_CFLAGS " -Wno-switch"
7733 # Too many warnings for now
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7735 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7736 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7737 $as_echo_n "(cached) " >&6
7738 else
7740 gl_save_compiler_FLAGS="$CFLAGS"
7741 as_fn_append CFLAGS " -Wno-unused-parameter"
7742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h. */
7746 main ()
7750 return 0;
7752 _ACEOF
7753 if ac_fn_c_try_compile "$LINENO"; then :
7754 gl_cv_warn_c__Wno_unused_parameter=yes
7755 else
7756 gl_cv_warn_c__Wno_unused_parameter=no
7758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7759 CFLAGS="$gl_save_compiler_FLAGS"
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7763 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7764 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7765 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7768 # Too many warnings for now
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7770 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7771 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7772 $as_echo_n "(cached) " >&6
7773 else
7775 gl_save_compiler_FLAGS="$CFLAGS"
7776 as_fn_append CFLAGS " -Wno-format-nonliteral"
7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7781 main ()
7785 return 0;
7787 _ACEOF
7788 if ac_fn_c_try_compile "$LINENO"; then :
7789 gl_cv_warn_c__Wno_format_nonliteral=yes
7790 else
7791 gl_cv_warn_c__Wno_format_nonliteral=no
7793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794 CFLAGS="$gl_save_compiler_FLAGS"
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7798 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7799 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7800 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7805 # In spite of excluding -Wlogical-op above, it is enabled, as of
7806 # gcc 4.5.0 20090517.
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7808 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7809 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7813 gl_save_compiler_FLAGS="$CFLAGS"
7814 as_fn_append CFLAGS " -Wno-logical-op"
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7819 main ()
7823 return 0;
7825 _ACEOF
7826 if ac_fn_c_try_compile "$LINENO"; then :
7827 gl_cv_warn_c__Wno_logical_op=yes
7828 else
7829 gl_cv_warn_c__Wno_logical_op=no
7831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832 CFLAGS="$gl_save_compiler_FLAGS"
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7836 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7837 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7838 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7844 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7845 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7849 gl_save_compiler_FLAGS="$CFLAGS"
7850 as_fn_append CFLAGS " -fdiagnostics-show-option"
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7855 main ()
7859 return 0;
7861 _ACEOF
7862 if ac_fn_c_try_compile "$LINENO"; then :
7863 gl_cv_warn_c__fdiagnostics_show_option=yes
7864 else
7865 gl_cv_warn_c__fdiagnostics_show_option=no
7867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868 CFLAGS="$gl_save_compiler_FLAGS"
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7872 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7873 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7874 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7879 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7880 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7884 gl_save_compiler_FLAGS="$CFLAGS"
7885 as_fn_append CFLAGS " -funit-at-a-time"
7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h. */
7890 main ()
7894 return 0;
7896 _ACEOF
7897 if ac_fn_c_try_compile "$LINENO"; then :
7898 gl_cv_warn_c__funit_at_a_time=yes
7899 else
7900 gl_cv_warn_c__funit_at_a_time=no
7902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903 CFLAGS="$gl_save_compiler_FLAGS"
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7907 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7908 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7909 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7915 $as_echo "#define lint 1" >>confdefs.h
7919 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7922 # We use a slightly smaller set of warning options for lib/.
7923 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7925 nw="$nw -Wunused-macros"
7928 gl_warn_set=
7929 set x $WARN_CFLAGS; shift
7930 for gl_warn_item
7932 case " $nw " in
7933 *" $gl_warn_item "*)
7936 gl_warn_set="$gl_warn_set $gl_warn_item"
7938 esac
7939 done
7940 GNULIB_WARN_CFLAGS=$gl_warn_set
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7948 $as_echo_n "checking whether ln -s works... " >&6; }
7949 LN_S=$as_ln_s
7950 if test "$LN_S" = "ln -s"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7952 $as_echo "yes" >&6; }
7953 else
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7955 $as_echo "no, using $LN_S" >&6; }
7959 # Extract the first word of "install-info", so it can be a program name with args.
7960 set dummy install-info; ac_word=$2
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962 $as_echo_n "checking for $ac_word... " >&6; }
7963 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7964 $as_echo_n "(cached) " >&6
7965 else
7966 case $INSTALL_INFO in
7967 [\\/]* | ?:[\\/]*)
7968 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7974 IFS=$as_save_IFS
7975 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7978 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 break 2
7982 done
7983 done
7984 IFS=$as_save_IFS
7986 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7988 esac
7990 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7991 if test -n "$INSTALL_INFO"; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7993 $as_echo "$INSTALL_INFO" >&6; }
7994 else
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
8000 # Extract the first word of "gzip", so it can be a program name with args.
8001 set dummy gzip; ac_word=$2
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8003 $as_echo_n "checking for $ac_word... " >&6; }
8004 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8005 $as_echo_n "(cached) " >&6
8006 else
8007 case $GZIP_PROG in
8008 [\\/]* | ?:[\\/]*)
8009 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 for as_dir in $PATH
8015 IFS=$as_save_IFS
8016 test -z "$as_dir" && as_dir=.
8017 for ac_exec_ext in '' $ac_executable_extensions; do
8018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8019 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8021 break 2
8023 done
8024 done
8025 IFS=$as_save_IFS
8028 esac
8030 GZIP_PROG=$ac_cv_path_GZIP_PROG
8031 if test -n "$GZIP_PROG"; then
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8033 $as_echo "$GZIP_PROG" >&6; }
8034 else
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036 $as_echo "no" >&6; }
8041 if test $opsys = gnu-linux; then
8042 # Extract the first word of "paxctl", so it can be a program name with args.
8043 set dummy paxctl; ac_word=$2
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8045 $as_echo_n "checking for $ac_word... " >&6; }
8046 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8047 $as_echo_n "(cached) " >&6
8048 else
8049 case $PAXCTL in
8050 [\\/]* | ?:[\\/]*)
8051 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
8054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
8057 IFS=$as_save_IFS
8058 test -z "$as_dir" && as_dir=.
8059 for ac_exec_ext in '' $ac_executable_extensions; do
8060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8061 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
8062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 break 2
8065 done
8066 done
8067 IFS=$as_save_IFS
8070 esac
8072 PAXCTL=$ac_cv_path_PAXCTL
8073 if test -n "$PAXCTL"; then
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8075 $as_echo "$PAXCTL" >&6; }
8076 else
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078 $as_echo "no" >&6; }
8082 if test "X$PAXCTL" != X; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8084 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8089 main ()
8093 return 0;
8095 _ACEOF
8096 if ac_fn_c_try_link "$LINENO"; then :
8097 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8098 $as_echo "yes" >&6; }
8099 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }; PAXCTL=""; fi
8102 rm -f core conftest.err conftest.$ac_objext \
8103 conftest$ac_exeext conftest.$ac_ext
8107 ## Need makeinfo >= 4.7 (?) to build the manuals.
8108 # Extract the first word of "makeinfo", so it can be a program name with args.
8109 set dummy makeinfo; ac_word=$2
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8111 $as_echo_n "checking for $ac_word... " >&6; }
8112 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8113 $as_echo_n "(cached) " >&6
8114 else
8115 case $MAKEINFO in
8116 [\\/]* | ?:[\\/]*)
8117 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121 for as_dir in $PATH
8123 IFS=$as_save_IFS
8124 test -z "$as_dir" && as_dir=.
8125 for ac_exec_ext in '' $ac_executable_extensions; do
8126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8127 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8129 break 2
8131 done
8132 done
8133 IFS=$as_save_IFS
8135 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8137 esac
8139 MAKEINFO=$ac_cv_path_MAKEINFO
8140 if test -n "$MAKEINFO"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8142 $as_echo "$MAKEINFO" >&6; }
8143 else
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8149 if test "$MAKEINFO" != "no"; then
8150 case `
8151 $MAKEINFO --version 2> /dev/null |
8152 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8153 ` in
8154 '') MAKEINFO=no;;
8155 esac
8158 ## Makeinfo is unusual. For a released Emacs, the manuals are
8159 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8160 ## therefore in the category of "special tools" not normally required, which
8161 ## configure does not have to check for (eg autoconf itself).
8162 ## In a Bazaar checkout on the other hand, the manuals are not included.
8163 ## So makeinfo is a requirement to build from Bazaar, and configure
8164 ## should test for it as it does for any other build requirement.
8165 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8166 ## with pre-built manuals, from a Bazaar checkout.
8167 HAVE_MAKEINFO=yes
8169 if test "$MAKEINFO" = "no"; then
8170 MAKEINFO=makeinfo
8171 if test "x${with_makeinfo}" = "xno"; then
8172 HAVE_MAKEINFO=no
8173 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8174 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8175 source tree does not seem to have pre-built manuals in the \`info' directory.
8176 Either install a suitable version of makeinfo, or re-run configure
8177 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8182 INFO_EXT=.info
8183 INFO_OPTS=--no-split
8188 if test x$GCC = xyes; then
8189 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8190 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8191 else
8192 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8193 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8197 late_LDFLAGS=$LDFLAGS
8198 if test x$GCC = xyes; then
8199 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8200 else
8201 LDFLAGS="$LDFLAGS -znocombreloc"
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8205 $as_echo_n "checking for -znocombreloc... " >&6; }
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8210 main ()
8214 return 0;
8216 _ACEOF
8217 if ac_fn_c_try_link "$LINENO"; then :
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8219 $as_echo "yes" >&6; }
8220 else
8221 LDFLAGS=$late_LDFLAGS
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223 $as_echo "no" >&6; }
8225 rm -f core conftest.err conftest.$ac_objext \
8226 conftest$ac_exeext conftest.$ac_ext
8229 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8230 case "$opsys" in
8231 your-opsys-here) CANNOT_DUMP=yes ;;
8232 esac
8234 test "$CANNOT_DUMP" = "yes" && \
8236 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8242 UNEXEC_OBJ=unexelf.o
8243 case "$opsys" in
8244 # MSDOS uses unexcoff.o
8245 # MSWindows uses unexw32.o
8246 aix4-2)
8247 UNEXEC_OBJ=unexaix.o
8249 cygwin)
8250 UNEXEC_OBJ=unexcw.o
8252 darwin)
8253 UNEXEC_OBJ=unexmacosx.o
8255 hpux10-20 | hpux11)
8256 UNEXEC_OBJ=unexhp9k800.o
8258 sol2-10)
8259 # Use the Solaris dldump() function, called from unexsol.c, to dump
8260 # emacs, instead of the generic ELF dump code found in unexelf.c.
8261 # The resulting binary has a complete symbol table, and is better
8262 # for debugging and other observability tools (debuggers, pstack, etc).
8264 # If you encounter a problem using dldump(), please consider sending
8265 # a message to the OpenSolaris tools-linking mailing list:
8266 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8268 # It is likely that dldump() works with older Solaris too, but this has
8269 # not been tested, so for now this change is for Solaris 10 or newer.
8270 UNEXEC_OBJ=unexsol.o
8272 esac
8274 LD_SWITCH_SYSTEM=
8275 case "$opsys" in
8276 freebsd)
8277 ## Let `ld' find image libs and similar things in /usr/local/lib.
8278 ## The system compiler, GCC, has apparently been modified to not
8279 ## look there, contrary to what a stock GCC would do.
8280 ### It's not our place to do this. See bug#10313#17.
8281 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8285 gnu-linux)
8286 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8287 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8290 netbsd)
8291 ### It's not our place to do this. See bug#10313#17.
8292 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8296 openbsd)
8297 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8298 ## otherwise Emacs dumps core on elf systems.
8299 LD_SWITCH_SYSTEM="-Z"
8301 esac
8304 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8306 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8307 ## which has not been defined yet. When this was handled with cpp,
8308 ## it was expanded to null when configure sourced the s/*.h file.
8309 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8310 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8311 ## (or somesuch), but because it is supposed to go at the _front_
8312 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8313 ## Compare with the gnu-linux case below, which added to the end
8314 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8315 ## LD_SWITCH_SYSTEM_TEMACS.
8316 case "$opsys" in
8317 netbsd|openbsd)
8318 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8319 esac
8322 C_SWITCH_MACHINE=
8323 case $canonical in
8324 alpha*)
8325 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8326 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8330 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8331 ## With ELF, make sure that all common symbols get allocated to in the
8332 ## data section. Otherwise, the dump of temacs may miss variables in
8333 ## the shared library that have been initialized. For example, with
8334 ## GNU libc, __malloc_initialized would normally be resolved to the
8335 ## shared library's .bss section, which is fatal.
8336 if test "x$GCC" = "xyes"; then
8337 C_SWITCH_MACHINE="-fno-common"
8338 else
8339 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8341 else
8342 UNEXEC_OBJ=unexalpha.o
8345 esac
8350 C_SWITCH_SYSTEM=
8351 ## Some programs in src produce warnings saying certain subprograms
8352 ## are too complex and need a MAXMEM value greater than 2000 for
8353 ## additional optimization. --nils@exp-math.uni-essen.de
8354 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8355 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8356 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8357 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8361 LIBS_SYSTEM=
8362 case "$opsys" in
8363 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8364 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8366 freebsd) LIBS_SYSTEM="-lutil" ;;
8368 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8370 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8372 ## Motif needs -lgen.
8373 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8374 esac
8378 ### Make sure subsequent tests use flags consistent with the build flags.
8380 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8381 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8382 else
8383 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8386 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8388 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8392 LIB_MATH=-lm
8393 LIB_STANDARD=
8394 START_FILES=
8395 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8397 case $opsys in
8398 cygwin )
8399 LIB_MATH=
8400 START_FILES='pre-crt0.o'
8402 darwin )
8403 ## Adding -lm confuses the dynamic linker, so omit it.
8404 LIB_MATH=
8405 START_FILES='pre-crt0.o'
8407 freebsd )
8408 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8409 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8410 SYSTEM_TYPE=berkeley-unix
8412 gnu-linux | gnu-kfreebsd )
8413 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8414 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8416 hpux10-20 | hpux11 )
8417 LIB_STANDARD=-lc
8418 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8420 netbsd | openbsd )
8421 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8422 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8423 SYSTEM_TYPE=berkeley-unix
8426 sol2* | unixware )
8427 SYSTEM_TYPE=usg-unix-v
8430 esac
8435 cat >>confdefs.h <<_ACEOF
8436 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8437 _ACEOF
8440 crt_files=
8442 for file in x $LIB_STANDARD $START_FILES; do
8443 case "$file" in
8444 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8445 esac
8446 done
8448 if test "x$crt_files" != x; then
8450 ## If user specified a crt-dir, use that unconditionally.
8451 crt_gcc=no
8453 if test "X$CRT_DIR" = "X"; then
8455 CRT_DIR=/usr/lib # default
8457 case "$canonical" in
8458 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8459 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8460 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8461 ## For anything else (eg /usr/lib32), it is up the user to specify
8462 ## the location (bug#5655).
8463 ## Test for crtn.o, not just the directory, because sometimes the
8464 ## directory exists but does not have the relevant files (bug#1287).
8465 ## FIXME better to test for binary compatibility somehow.
8466 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8469 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8470 esac
8472 case "$opsys" in
8473 hpux10-20) CRT_DIR=/lib ;;
8474 esac
8476 test "x${GCC}" = xyes && crt_gcc=yes
8478 fi # CRT_DIR = ""
8480 crt_missing=
8482 for file in $crt_files; do
8484 ## If we're using gcc, try to determine it automatically by asking
8485 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8486 ## system-dependent default from above.]
8487 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8489 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8490 case "$crt_file" in
8491 */*)
8492 CRT_DIR=`$as_dirname -- "$crt_file" ||
8493 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8494 X"$crt_file" : 'X\(//\)[^/]' \| \
8495 X"$crt_file" : 'X\(//\)$' \| \
8496 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8497 $as_echo X"$crt_file" |
8498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8499 s//\1/
8502 /^X\(\/\/\)[^/].*/{
8503 s//\1/
8506 /^X\(\/\/\)$/{
8507 s//\1/
8510 /^X\(\/\).*/{
8511 s//\1/
8514 s/.*/./; q'`
8516 esac
8519 crt_gcc=no
8521 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8522 done # $crt_files
8524 test "x$crt_missing" = x || \
8525 as_fn_error "Required file(s) not found:$crt_missing
8526 Try using the --with-crt-dir option." "$LINENO" 5
8528 fi # crt_files != ""
8532 case $opsys in
8533 netbsd | openbsd )
8534 if test -f $CRT_DIR/crti.o; then
8536 test -f $CRT_DIR/crtn.o || \
8537 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8539 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8540 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8543 esac
8546 pre_PKG_CONFIG_CFLAGS=$CFLAGS
8547 pre_PKG_CONFIG_LIBS=$LIBS
8549 # Extract the first word of "pkg-config", so it can be a program name with args.
8550 set dummy pkg-config; ac_word=$2
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8552 $as_echo_n "checking for $ac_word... " >&6; }
8553 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8554 $as_echo_n "(cached) " >&6
8555 else
8556 case $PKG_CONFIG in
8557 [\\/]* | ?:[\\/]*)
8558 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8562 for as_dir in $PATH
8564 IFS=$as_save_IFS
8565 test -z "$as_dir" && as_dir=.
8566 for ac_exec_ext in '' $ac_executable_extensions; do
8567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8568 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8570 break 2
8572 done
8573 done
8574 IFS=$as_save_IFS
8576 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8578 esac
8580 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8581 if test -n "$PKG_CONFIG"; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8583 $as_echo "$PKG_CONFIG" >&6; }
8584 else
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586 $as_echo "no" >&6; }
8594 if test "${with_sound}" != "no"; then
8595 # Sound support for GNU/Linux and the free BSDs.
8596 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8597 do :
8598 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8599 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8600 eval as_val=\$$as_ac_Header
8601 if test "x$as_val" = x""yes; then :
8602 cat >>confdefs.h <<_ACEOF
8603 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8604 _ACEOF
8605 have_sound_header=yes
8608 done
8610 # Emulation library used on NetBSD.
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8612 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8613 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8614 $as_echo_n "(cached) " >&6
8615 else
8616 ac_check_lib_save_LIBS=$LIBS
8617 LIBS="-lossaudio $LIBS"
8618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h. */
8621 /* Override any GCC internal prototype to avoid an error.
8622 Use char because int might match the return type of a GCC
8623 builtin and then its argument prototype would still apply. */
8624 #ifdef __cplusplus
8625 extern "C"
8626 #endif
8627 char _oss_ioctl ();
8629 main ()
8631 return _oss_ioctl ();
8633 return 0;
8635 _ACEOF
8636 if ac_fn_c_try_link "$LINENO"; then :
8637 ac_cv_lib_ossaudio__oss_ioctl=yes
8638 else
8639 ac_cv_lib_ossaudio__oss_ioctl=no
8641 rm -f core conftest.err conftest.$ac_objext \
8642 conftest$ac_exeext conftest.$ac_ext
8643 LIBS=$ac_check_lib_save_LIBS
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8646 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8647 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8648 LIBSOUND=-lossaudio
8649 else
8650 LIBSOUND=
8655 ALSA_REQUIRED=1.0.0
8656 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8658 succeeded=no
8660 if test "$PKG_CONFIG" = "no" ; then
8661 HAVE_ALSA=no
8662 else
8663 PKG_CONFIG_MIN_VERSION=0.9.0
8664 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8666 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8668 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
8669 ALSA_CFLAGS=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
8670 ALSA_LIBS=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
8671 edit_cflags="
8672 s,///*,/,g
8673 s/^/ /
8674 s/ -I/ $isystem/g
8675 s/^ //
8677 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8678 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8680 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8681 succeeded=yes
8682 else
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8684 $as_echo "no" >&6; }
8685 ALSA_CFLAGS=""
8686 ALSA_LIBS=""
8687 ## If we have a custom action on failure, don't print errors, but
8688 ## do set a variable so people can do so. Do it in a subshell
8689 ## to capture any diagnostics in invoking pkg-config.
8690 ALSA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
8696 else
8697 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8698 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8702 if test $succeeded = yes; then
8703 HAVE_ALSA=yes
8704 else
8705 HAVE_ALSA=no
8708 if test $HAVE_ALSA = yes; then
8709 SAVE_CFLAGS="$CFLAGS"
8710 SAVE_LIBS="$LIBS"
8711 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8712 LIBS="$ALSA_LIBS $LIBS"
8713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8714 /* end confdefs.h. */
8715 #include <asoundlib.h>
8717 main ()
8719 snd_lib_error_set_handler (0);
8721 return 0;
8723 _ACEOF
8724 if ac_fn_c_try_compile "$LINENO"; then :
8725 emacs_alsa_normal=yes
8726 else
8727 emacs_alsa_normal=no
8729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8730 if test "$emacs_alsa_normal" != yes; then
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8733 #include <alsa/asoundlib.h>
8735 main ()
8737 snd_lib_error_set_handler (0);
8739 return 0;
8741 _ACEOF
8742 if ac_fn_c_try_compile "$LINENO"; then :
8743 emacs_alsa_subdir=yes
8744 else
8745 emacs_alsa_subdir=no
8747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8748 if test "$emacs_alsa_subdir" != yes; then
8749 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8751 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8754 CFLAGS="$SAVE_CFLAGS"
8755 LIBS="$SAVE_LIBS"
8756 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8757 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8759 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8763 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8764 case "$opsys" in
8765 gnu-linux|freebsd|netbsd)
8767 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8770 esac
8779 for ac_header in $ac_header_list
8780 do :
8781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8782 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8784 eval as_val=\$$as_ac_Header
8785 if test "x$as_val" = x""yes; then :
8786 cat >>confdefs.h <<_ACEOF
8787 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8788 _ACEOF
8792 done
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8817 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h. */
8820 #include <sys/personality.h>
8822 main ()
8824 personality (PER_LINUX32)
8826 return 0;
8828 _ACEOF
8829 if ac_fn_c_try_compile "$LINENO"; then :
8830 emacs_cv_personality_linux32=yes
8831 else
8832 emacs_cv_personality_linux32=no
8834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8836 $as_echo "$emacs_cv_personality_linux32" >&6; }
8838 if test $emacs_cv_personality_linux32 = yes; then
8840 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8844 for ac_header in term.h
8845 do :
8846 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8847 if test "x$ac_cv_header_term_h" = x""yes; then :
8848 cat >>confdefs.h <<_ACEOF
8849 #define HAVE_TERM_H 1
8850 _ACEOF
8854 done
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8857 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8858 if test "${ac_cv_header_time+set}" = set; then :
8859 $as_echo_n "(cached) " >&6
8860 else
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8863 #include <sys/types.h>
8864 #include <sys/time.h>
8865 #include <time.h>
8868 main ()
8870 if ((struct tm *) 0)
8871 return 0;
8873 return 0;
8875 _ACEOF
8876 if ac_fn_c_try_compile "$LINENO"; then :
8877 ac_cv_header_time=yes
8878 else
8879 ac_cv_header_time=no
8881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8884 $as_echo "$ac_cv_header_time" >&6; }
8885 if test $ac_cv_header_time = yes; then
8887 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8891 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
8894 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8895 ac_have_decl=1
8896 else
8897 ac_have_decl=0
8900 cat >>confdefs.h <<_ACEOF
8901 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8902 _ACEOF
8904 if test $ac_cv_have_decl_sys_siglist != yes; then
8905 # For Tru64, at least:
8906 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
8909 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8910 ac_have_decl=1
8911 else
8912 ac_have_decl=0
8915 cat >>confdefs.h <<_ACEOF
8916 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8917 _ACEOF
8919 if test $ac_cv_have_decl___sys_siglist = yes; then
8921 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8926 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8927 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8928 $as_echo_n "(cached) " >&6
8929 else
8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8932 #include <sys/types.h>
8933 #include <sys/wait.h>
8934 #ifndef WEXITSTATUS
8935 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8936 #endif
8937 #ifndef WIFEXITED
8938 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8939 #endif
8942 main ()
8944 int s;
8945 wait (&s);
8946 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8948 return 0;
8950 _ACEOF
8951 if ac_fn_c_try_compile "$LINENO"; then :
8952 ac_cv_header_sys_wait_h=yes
8953 else
8954 ac_cv_header_sys_wait_h=no
8956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8959 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8960 if test $ac_cv_header_sys_wait_h = yes; then
8962 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8968 $as_echo_n "checking for speed_t... " >&6; }
8969 if test "${emacs_cv_speed_t+set}" = set; then :
8970 $as_echo_n "(cached) " >&6
8971 else
8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973 /* end confdefs.h. */
8974 #include <termios.h>
8976 main ()
8978 speed_t x = 1;
8980 return 0;
8982 _ACEOF
8983 if ac_fn_c_try_compile "$LINENO"; then :
8984 emacs_cv_speed_t=yes
8985 else
8986 emacs_cv_speed_t=no
8988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8991 $as_echo "$emacs_cv_speed_t" >&6; }
8992 if test $emacs_cv_speed_t = yes; then
8994 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
9001 for ac_header in net/if.h
9002 do :
9003 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9004 #if HAVE_SYS_SOCKET_H
9005 #include <sys/socket.h>
9006 #endif
9008 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9009 cat >>confdefs.h <<_ACEOF
9010 #define HAVE_NET_IF_H 1
9011 _ACEOF
9015 done
9017 for ac_header in ifaddrs.h
9018 do :
9019 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9020 #if HAVE_SYS_SOCKET_H
9021 #include <sys/socket.h>
9022 #endif
9024 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9025 cat >>confdefs.h <<_ACEOF
9026 #define HAVE_IFADDRS_H 1
9027 _ACEOF
9031 done
9033 for ac_header in net/if_dl.h
9034 do :
9035 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9036 #if HAVE_SYS_SOCKET_H
9037 #include <sys/socket.h>
9038 #endif
9040 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9041 cat >>confdefs.h <<_ACEOF
9042 #define HAVE_NET_IF_DL_H 1
9043 _ACEOF
9047 done
9050 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9051 #if HAVE_SYS_SOCKET_H
9052 #include <sys/socket.h>
9053 #endif
9054 #if HAVE_NET_IF_H
9055 #include <net/if.h>
9056 #endif
9058 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9060 cat >>confdefs.h <<_ACEOF
9061 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9062 _ACEOF
9066 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9067 #if HAVE_SYS_SOCKET_H
9068 #include <sys/socket.h>
9069 #endif
9070 #if HAVE_NET_IF_H
9071 #include <net/if.h>
9072 #endif
9074 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9076 cat >>confdefs.h <<_ACEOF
9077 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9078 _ACEOF
9082 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9083 #if HAVE_SYS_SOCKET_H
9084 #include <sys/socket.h>
9085 #endif
9086 #if HAVE_NET_IF_H
9087 #include <net/if.h>
9088 #endif
9090 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9092 cat >>confdefs.h <<_ACEOF
9093 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9094 _ACEOF
9098 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9099 #if HAVE_SYS_SOCKET_H
9100 #include <sys/socket.h>
9101 #endif
9102 #if HAVE_NET_IF_H
9103 #include <net/if.h>
9104 #endif
9106 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9108 cat >>confdefs.h <<_ACEOF
9109 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9110 _ACEOF
9114 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9115 #if HAVE_SYS_SOCKET_H
9116 #include <sys/socket.h>
9117 #endif
9118 #if HAVE_NET_IF_H
9119 #include <net/if.h>
9120 #endif
9122 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9124 cat >>confdefs.h <<_ACEOF
9125 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9126 _ACEOF
9130 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9131 #if HAVE_SYS_SOCKET_H
9132 #include <sys/socket.h>
9133 #endif
9134 #if HAVE_NET_IF_H
9135 #include <net/if.h>
9136 #endif
9138 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9140 cat >>confdefs.h <<_ACEOF
9141 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9142 _ACEOF
9150 DEPFLAGS=
9151 MKDEPDIR=":"
9152 deps_frag=deps.mk
9153 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9155 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9156 HAVE_GNU_MAKE=no
9157 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9158 if test "x$testval" != x; then
9159 HAVE_GNU_MAKE=yes
9160 else
9161 ac_enable_autodepend=no
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9164 $as_echo "$HAVE_GNU_MAKE" >&6; }
9165 if test $HAVE_GNU_MAKE = yes; then
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9167 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9168 SAVE_CFLAGS="$CFLAGS"
9169 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9171 /* end confdefs.h. */
9174 main ()
9178 return 0;
9180 _ACEOF
9181 if ac_fn_c_try_compile "$LINENO"; then :
9183 else
9184 ac_enable_autodepend=no
9186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9187 CFLAGS="$SAVE_CFLAGS"
9188 test -f deps.d || ac_enable_autodepend=no
9189 rm -rf deps.d
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9191 $as_echo "$ac_enable_autodepend" >&6; }
9193 if test $ac_enable_autodepend = yes; then
9194 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9195 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9196 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9197 deps_frag=autodeps.mk
9200 deps_frag=$srcdir/src/$deps_frag
9206 lisp_frag=$srcdir/src/lisp.mk
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9211 $as_echo_n "checking for long file names... " >&6; }
9212 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9213 $as_echo_n "(cached) " >&6
9214 else
9215 ac_cv_sys_long_file_names=yes
9216 # Test for long file names in all the places we know might matter:
9217 # . the current directory, where building will happen
9218 # $prefix/lib where we will be installing things
9219 # $exec_prefix/lib likewise
9220 # $TMPDIR if set, where it might want to write temporary files
9221 # /tmp where it might want to write temporary files
9222 # /var/tmp likewise
9223 # /usr/tmp likewise
9224 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9225 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9226 # in the usual case where exec_prefix is '${prefix}'.
9227 case $ac_dir in #(
9228 . | /* | ?:[\\/]*) ;; #(
9229 *) continue;;
9230 esac
9231 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9232 ac_xdir=$ac_dir/cf$$
9233 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9234 ac_tf1=$ac_xdir/conftest9012345
9235 ac_tf2=$ac_xdir/conftest9012346
9236 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9237 ac_cv_sys_long_file_names=no
9238 rm -f -r "$ac_xdir" 2>/dev/null
9239 test $ac_cv_sys_long_file_names = no && break
9240 done
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9243 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9244 if test $ac_cv_sys_long_file_names = yes; then
9246 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9251 #### Choose a window system.
9253 ## We leave window_system equal to none if
9254 ## we end up building without one. Any new window system should
9255 ## set window_system to an appropriate value and add objects to
9256 ## window-system-specific substs.
9258 window_system=none
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9260 $as_echo_n "checking for X... " >&6; }
9263 # Check whether --with-x was given.
9264 if test "${with_x+set}" = set; then :
9265 withval=$with_x;
9268 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9269 if test "x$with_x" = xno; then
9270 # The user explicitly disabled X.
9271 have_x=disabled
9272 else
9273 case $x_includes,$x_libraries in #(
9274 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9275 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9276 $as_echo_n "(cached) " >&6
9277 else
9278 # One or both of the vars are not set, and there is no cached value.
9279 ac_x_includes=no ac_x_libraries=no
9280 rm -f -r conftest.dir
9281 if mkdir conftest.dir; then
9282 cd conftest.dir
9283 cat >Imakefile <<'_ACEOF'
9284 incroot:
9285 @echo incroot='${INCROOT}'
9286 usrlibdir:
9287 @echo usrlibdir='${USRLIBDIR}'
9288 libdir:
9289 @echo libdir='${LIBDIR}'
9290 _ACEOF
9291 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9292 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9293 for ac_var in incroot usrlibdir libdir; do
9294 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9295 done
9296 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9297 for ac_extension in a so sl dylib la dll; do
9298 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9299 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9300 ac_im_usrlibdir=$ac_im_libdir; break
9302 done
9303 # Screen out bogus values from the imake configuration. They are
9304 # bogus both because they are the default anyway, and because
9305 # using them would break gcc on systems where it needs fixed includes.
9306 case $ac_im_incroot in
9307 /usr/include) ac_x_includes= ;;
9308 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9309 esac
9310 case $ac_im_usrlibdir in
9311 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9312 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9313 esac
9315 cd ..
9316 rm -f -r conftest.dir
9319 # Standard set of common directories for X headers.
9320 # Check X11 before X11Rn because it is often a symlink to the current release.
9321 ac_x_header_dirs='
9322 /usr/X11/include
9323 /usr/X11R7/include
9324 /usr/X11R6/include
9325 /usr/X11R5/include
9326 /usr/X11R4/include
9328 /usr/include/X11
9329 /usr/include/X11R7
9330 /usr/include/X11R6
9331 /usr/include/X11R5
9332 /usr/include/X11R4
9334 /usr/local/X11/include
9335 /usr/local/X11R7/include
9336 /usr/local/X11R6/include
9337 /usr/local/X11R5/include
9338 /usr/local/X11R4/include
9340 /usr/local/include/X11
9341 /usr/local/include/X11R7
9342 /usr/local/include/X11R6
9343 /usr/local/include/X11R5
9344 /usr/local/include/X11R4
9346 /usr/X386/include
9347 /usr/x386/include
9348 /usr/XFree86/include/X11
9350 /usr/include
9351 /usr/local/include
9352 /usr/unsupported/include
9353 /usr/athena/include
9354 /usr/local/x11r5/include
9355 /usr/lpp/Xamples/include
9357 /usr/openwin/include
9358 /usr/openwin/share/include'
9360 if test "$ac_x_includes" = no; then
9361 # Guess where to find include files, by looking for Xlib.h.
9362 # First, try using that file with no special directory specified.
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9365 #include <X11/Xlib.h>
9366 _ACEOF
9367 if ac_fn_c_try_cpp "$LINENO"; then :
9368 # We can compile using X headers with no special include directory.
9369 ac_x_includes=
9370 else
9371 for ac_dir in $ac_x_header_dirs; do
9372 if test -r "$ac_dir/X11/Xlib.h"; then
9373 ac_x_includes=$ac_dir
9374 break
9376 done
9378 rm -f conftest.err conftest.$ac_ext
9379 fi # $ac_x_includes = no
9381 if test "$ac_x_libraries" = no; then
9382 # Check for the libraries.
9383 # See if we find them without any special options.
9384 # Don't add to $LIBS permanently.
9385 ac_save_LIBS=$LIBS
9386 LIBS="-lX11 $LIBS"
9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9389 #include <X11/Xlib.h>
9391 main ()
9393 XrmInitialize ()
9395 return 0;
9397 _ACEOF
9398 if ac_fn_c_try_link "$LINENO"; then :
9399 LIBS=$ac_save_LIBS
9400 # We can link X programs with no special library path.
9401 ac_x_libraries=
9402 else
9403 LIBS=$ac_save_LIBS
9404 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9406 # Don't even attempt the hair of trying to link an X program!
9407 for ac_extension in a so sl dylib la dll; do
9408 if test -r "$ac_dir/libX11.$ac_extension"; then
9409 ac_x_libraries=$ac_dir
9410 break 2
9412 done
9413 done
9415 rm -f core conftest.err conftest.$ac_objext \
9416 conftest$ac_exeext conftest.$ac_ext
9417 fi # $ac_x_libraries = no
9419 case $ac_x_includes,$ac_x_libraries in #(
9420 no,* | *,no | *\'*)
9421 # Didn't find X, or a directory has "'" in its name.
9422 ac_cv_have_x="have_x=no";; #(
9424 # Record where we found X for the cache.
9425 ac_cv_have_x="have_x=yes\
9426 ac_x_includes='$ac_x_includes'\
9427 ac_x_libraries='$ac_x_libraries'"
9428 esac
9430 ;; #(
9431 *) have_x=yes;;
9432 esac
9433 eval "$ac_cv_have_x"
9434 fi # $with_x != no
9436 if test "$have_x" != yes; then
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9438 $as_echo "$have_x" >&6; }
9439 no_x=yes
9440 else
9441 # If each of the values was on the command line, it overrides each guess.
9442 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9443 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9444 # Update the cache value to reflect the command line values.
9445 ac_cv_have_x="have_x=yes\
9446 ac_x_includes='$x_includes'\
9447 ac_x_libraries='$x_libraries'"
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9449 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9452 if test "$no_x" != yes; then
9453 window_system=x11
9456 LD_SWITCH_X_SITE_RPATH=
9457 if test "${x_libraries}" != NONE; then
9458 if test -n "${x_libraries}"; then
9459 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9460 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9462 x_default_search_path=""
9463 x_search_path=${x_libraries}
9464 if test -z "${x_search_path}"; then
9465 x_search_path=/usr/lib
9467 for x_library in `echo ${x_search_path}: | \
9468 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9469 x_search_path="\
9470 ${x_library}/X11/%L/%T/%N%C%S:\
9471 ${x_library}/X11/%l/%T/%N%C%S:\
9472 ${x_library}/X11/%T/%N%C%S:\
9473 ${x_library}/X11/%L/%T/%N%S:\
9474 ${x_library}/X11/%l/%T/%N%S:\
9475 ${x_library}/X11/%T/%N%S"
9476 if test x"${x_default_search_path}" = x; then
9477 x_default_search_path=${x_search_path}
9478 else
9479 x_default_search_path="${x_search_path}:${x_default_search_path}"
9481 done
9485 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9486 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9489 if test x"${x_includes}" = x; then
9490 bitmapdir=/usr/include/X11/bitmaps
9491 else
9492 # accumulate include directories that have X11 bitmap subdirectories
9493 bmd_acc="dummyval"
9494 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9495 if test -d "${bmd}/X11/bitmaps"; then
9496 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9498 if test -d "${bmd}/bitmaps"; then
9499 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9501 done
9502 if test ${bmd_acc} != "dummyval"; then
9503 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9507 HAVE_NS=no
9508 NS_IMPL_COCOA=no
9509 NS_IMPL_GNUSTEP=no
9510 tmp_CPPFLAGS="$CPPFLAGS"
9511 tmp_CFLAGS="$CFLAGS"
9512 CPPFLAGS="$CPPFLAGS -x objective-c"
9513 CFLAGS="$CFLAGS -x objective-c"
9514 TEMACS_LDFLAGS2="\${LDFLAGS}"
9515 GNU_OBJC_CFLAGS=
9516 if test "${with_ns}" != no; then
9517 if test "${opsys}" = darwin; then
9518 NS_IMPL_COCOA=yes
9519 ns_appdir=`pwd`/nextstep/Emacs.app
9520 ns_appbindir=${ns_appdir}/Contents/MacOS
9521 ns_appresdir=${ns_appdir}/Contents/Resources
9522 ns_appsrc=Cocoa/Emacs.base
9523 elif test -f $GNUSTEP_CONFIG_FILE; then
9524 NS_IMPL_GNUSTEP=yes
9525 ns_appdir=`pwd`/nextstep/Emacs.app
9526 ns_appbindir=${ns_appdir}
9527 ns_appresdir=${ns_appdir}/Resources
9528 ns_appsrc=GNUstep/Emacs.base
9529 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9530 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9531 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9532 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9533 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9534 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9535 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9536 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9537 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9538 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9539 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9540 LIB_STANDARD=
9541 START_FILES=
9542 TEMACS_LDFLAGS2=
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9544 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9545 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9546 $as_echo_n "(cached) " >&6
9547 else
9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549 /* end confdefs.h. */
9550 #include <GNUstepBase/GSConfig.h>
9552 main ()
9554 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9556 #else
9557 fail;
9558 #endif
9560 return 0;
9562 _ACEOF
9563 if ac_fn_c_try_compile "$LINENO"; then :
9564 emacs_cv_objc_exceptions=yes
9565 else
9566 emacs_cv_objc_exceptions=no
9568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9571 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9572 if test $emacs_cv_objc_exceptions = yes; then
9574 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9576 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9580 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9582 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9583 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9584 HAVE_NS=yes
9585 else
9586 as_fn_error "\`--with-ns' was specified, but the include
9587 files are missing or cannot be compiled." "$LINENO" 5
9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h. */
9594 #include <AppKit/AppKit.h>
9596 main ()
9599 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9600 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9601 ; /* OK */
9602 #else
9603 #error "OSX 10.4 or newer required"
9604 #endif
9605 #endif
9608 return 0;
9610 _ACEOF
9611 if ac_fn_c_try_compile "$LINENO"; then :
9612 ns_osx_have_104=yes
9613 else
9614 ns_osx_have_104=no
9616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618 /* end confdefs.h. */
9619 #include <Foundation/NSObjCRuntime.h>
9621 main ()
9623 NSInteger i;
9625 return 0;
9627 _ACEOF
9628 if ac_fn_c_try_compile "$LINENO"; then :
9629 ns_have_nsinteger=yes
9630 else
9631 ns_have_nsinteger=no
9633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9634 if test $ns_osx_have_104 = no; then
9635 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
9637 if test $ns_have_nsinteger = yes; then
9639 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9646 INSTALL_ARCH_INDEP_EXTRA=install-etc
9647 ns_self_contained=no
9648 NS_OBJ=
9649 NS_OBJC_OBJ=
9650 if test "${HAVE_NS}" = yes; then
9651 if test "$with_toolkit_scroll_bars" = "no"; then
9652 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9655 window_system=nextstep
9656 # set up packaging dirs
9657 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9658 ns_self_contained=yes
9659 prefix=${ns_appresdir}
9660 exec_prefix=${ns_appbindir}
9661 libexecdir="\${ns_appbindir}/libexec"
9662 archlibdir="\${ns_appbindir}/libexec"
9663 docdir="\${ns_appresdir}/etc"
9664 etcdir="\${ns_appresdir}/etc"
9665 infodir="\${ns_appresdir}/info"
9666 mandir="\${ns_appresdir}/man"
9667 lispdir="\${ns_appresdir}/lisp"
9668 leimdir="\${ns_appresdir}/leim"
9669 INSTALL_ARCH_INDEP_EXTRA=
9671 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9673 CFLAGS="$tmp_CFLAGS"
9674 CPPFLAGS="$tmp_CPPFLAGS"
9681 HAVE_W32=no
9682 W32_OBJ=
9683 W32_LIBS=
9684 W32_RES=
9685 W32_RES_LINK=
9686 if test "${with_w32}" != no; then
9687 if test "${opsys}" != "cygwin"; then
9688 as_fn_error "Using w32 with an autotools build is only supported for Cygwin." "$LINENO" 5
9690 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9691 if test "x$ac_cv_header_windows_h" = x""yes; then :
9692 HAVE_W32=yes
9693 else
9694 as_fn_error "\`--with-w32' was specified, but windows.h
9695 cannot be found." "$LINENO" 5
9700 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
9702 if test -n "$ac_tool_prefix"; then
9703 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9704 set dummy ${ac_tool_prefix}windres; ac_word=$2
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9706 $as_echo_n "checking for $ac_word... " >&6; }
9707 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9708 $as_echo_n "(cached) " >&6
9709 else
9710 if test -n "$WINDRES"; then
9711 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9712 else
9713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9714 for as_dir in $PATH
9716 IFS=$as_save_IFS
9717 test -z "$as_dir" && as_dir=.
9718 for ac_exec_ext in '' $ac_executable_extensions; do
9719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9720 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9722 break 2
9724 done
9725 done
9726 IFS=$as_save_IFS
9730 WINDRES=$ac_cv_prog_WINDRES
9731 if test -n "$WINDRES"; then
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9733 $as_echo "$WINDRES" >&6; }
9734 else
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9736 $as_echo "no" >&6; }
9741 if test -z "$ac_cv_prog_WINDRES"; then
9742 ac_ct_WINDRES=$WINDRES
9743 # Extract the first word of "windres", so it can be a program name with args.
9744 set dummy windres; ac_word=$2
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9746 $as_echo_n "checking for $ac_word... " >&6; }
9747 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
9748 $as_echo_n "(cached) " >&6
9749 else
9750 if test -n "$ac_ct_WINDRES"; then
9751 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9752 else
9753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9754 for as_dir in $PATH
9756 IFS=$as_save_IFS
9757 test -z "$as_dir" && as_dir=.
9758 for ac_exec_ext in '' $ac_executable_extensions; do
9759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9760 ac_cv_prog_ac_ct_WINDRES="windres"
9761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9762 break 2
9764 done
9765 done
9766 IFS=$as_save_IFS
9770 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9771 if test -n "$ac_ct_WINDRES"; then
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9773 $as_echo "$ac_ct_WINDRES" >&6; }
9774 else
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9776 $as_echo "no" >&6; }
9779 if test "x$ac_ct_WINDRES" = x; then
9780 WINDRES="as_fn_error "No resource compiler found." "$LINENO" 5"
9781 else
9782 case $cross_compiling:$ac_tool_warned in
9783 yes:)
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9786 ac_tool_warned=yes ;;
9787 esac
9788 WINDRES=$ac_ct_WINDRES
9790 else
9791 WINDRES="$ac_cv_prog_WINDRES"
9794 W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
9795 W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
9796 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
9797 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
9798 W32_RES="emacs.res"
9799 # Tell the linker that emacs.res is an object (which we compile from
9800 # the rc file), not a linker script.
9801 W32_RES_LINK="-Wl,-bpe-i386 -Wl,emacs.res"
9808 if test "${HAVE_W32}" = "yes"; then
9809 window_system=w32
9810 with_xft=no
9813 ## $window_system is now set to the window system we will
9814 ## ultimately use.
9816 term_header=
9817 HAVE_X_WINDOWS=no
9818 HAVE_X11=no
9819 USE_X_TOOLKIT=none
9821 case "${window_system}" in
9822 x11 )
9823 HAVE_X_WINDOWS=yes
9824 HAVE_X11=yes
9825 term_header=xterm.h
9826 case "${with_x_toolkit}" in
9827 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9828 motif ) USE_X_TOOLKIT=MOTIF ;;
9829 gtk ) with_gtk=yes
9830 term_header=gtkutil.h
9831 USE_X_TOOLKIT=none ;;
9832 gtk2 ) with_gtk2=yes
9833 term_header=gtkutil.h
9834 USE_X_TOOLKIT=none ;;
9835 gtk3 ) with_gtk3=yes
9836 term_header=gtkutil.h
9837 USE_X_TOOLKIT=none ;;
9838 no ) USE_X_TOOLKIT=none ;;
9839 * ) USE_X_TOOLKIT=maybe ;;
9840 esac
9842 nextstep )
9843 term_header=nsterm.h
9845 w32 )
9846 term_header=w32term.h
9848 esac
9850 if test -n "${term_header}"; then
9852 cat >>confdefs.h <<_ACEOF
9853 #define TERM_HEADER "${term_header}"
9854 _ACEOF
9858 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9859 # Extract the first word of "X", so it can be a program name with args.
9860 set dummy X; ac_word=$2
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9862 $as_echo_n "checking for $ac_word... " >&6; }
9863 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9864 $as_echo_n "(cached) " >&6
9865 else
9866 if test -n "$HAVE_XSERVER"; then
9867 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9868 else
9869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9870 for as_dir in $PATH
9872 IFS=$as_save_IFS
9873 test -z "$as_dir" && as_dir=.
9874 for ac_exec_ext in '' $ac_executable_extensions; do
9875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9876 ac_cv_prog_HAVE_XSERVER="true"
9877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9878 break 2
9880 done
9881 done
9882 IFS=$as_save_IFS
9884 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9887 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9888 if test -n "$HAVE_XSERVER"; then
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9890 $as_echo "$HAVE_XSERVER" >&6; }
9891 else
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9893 $as_echo "no" >&6; }
9897 if test "$HAVE_XSERVER" = true ||
9898 test -n "$DISPLAY" ||
9899 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9900 as_fn_error "You seem to be running X, but no X development libraries
9901 were found. You should install the relevant development files for X
9902 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9903 sure you have development files for image handling, i.e.
9904 tiff, gif, jpeg, png and xpm.
9905 If you are sure you want Emacs compiled without X window support, pass
9906 --without-x
9907 to configure." "$LINENO" 5
9911 ### If we're using X11, we should use the X menu package.
9912 HAVE_MENUS=no
9913 case ${HAVE_X11} in
9914 yes ) HAVE_MENUS=yes ;;
9915 esac
9917 # Does the opsystem file prohibit the use of the GNU malloc?
9918 # Assume not, until told otherwise.
9919 GNU_MALLOC=yes
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9922 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9923 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9924 $as_echo_n "(cached) " >&6
9925 else
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9928 #include <malloc.h>
9929 static void hook (void) {}
9931 main ()
9933 malloc_set_state (malloc_get_state ());
9934 __after_morecore_hook = hook;
9935 __malloc_initialize_hook = hook;
9937 return 0;
9939 _ACEOF
9940 if ac_fn_c_try_link "$LINENO"; then :
9941 emacs_cv_var_doug_lea_malloc=yes
9942 else
9943 emacs_cv_var_doug_lea_malloc=no
9945 rm -f core conftest.err conftest.$ac_objext \
9946 conftest$ac_exeext conftest.$ac_ext
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9949 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9950 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
9953 system_malloc=no
9954 case "$opsys" in
9955 ## darwin ld insists on the use of malloc routines in the System framework.
9956 darwin|sol2-10) system_malloc=yes ;;
9957 esac
9959 if test "${system_malloc}" = "yes"; then
9961 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9963 GNU_MALLOC=no
9964 GNU_MALLOC_reason="
9965 (The GNU allocators don't work with this system configuration.)"
9966 GMALLOC_OBJ=
9967 VMLIMIT_OBJ=
9968 else
9969 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9970 VMLIMIT_OBJ=vm-limit.o
9975 if test "$doug_lea_malloc" = "yes" ; then
9976 if test "$GNU_MALLOC" = yes ; then
9977 GNU_MALLOC_reason="
9978 (Using Doug Lea's new malloc from the GNU C Library.)"
9981 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9984 ## Use mmap directly for allocating larger buffers.
9985 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9986 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9987 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9988 case "$opsys" in
9989 gnu*) REL_ALLOC=no ;;
9990 esac
9993 if test x"${REL_ALLOC}" = x; then
9994 REL_ALLOC=${GNU_MALLOC}
9997 use_mmap_for_buffers=no
9998 case "$opsys" in
9999 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10000 esac
10009 for ac_func in getpagesize
10010 do :
10011 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10012 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10013 cat >>confdefs.h <<_ACEOF
10014 #define HAVE_GETPAGESIZE 1
10015 _ACEOF
10018 done
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10021 $as_echo_n "checking for working mmap... " >&6; }
10022 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10023 $as_echo_n "(cached) " >&6
10024 else
10025 if test "$cross_compiling" = yes; then :
10026 ac_cv_func_mmap_fixed_mapped=no
10027 else
10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029 /* end confdefs.h. */
10030 $ac_includes_default
10031 /* malloc might have been renamed as rpl_malloc. */
10032 #undef malloc
10034 /* Thanks to Mike Haertel and Jim Avera for this test.
10035 Here is a matrix of mmap possibilities:
10036 mmap private not fixed
10037 mmap private fixed at somewhere currently unmapped
10038 mmap private fixed at somewhere already mapped
10039 mmap shared not fixed
10040 mmap shared fixed at somewhere currently unmapped
10041 mmap shared fixed at somewhere already mapped
10042 For private mappings, we should verify that changes cannot be read()
10043 back from the file, nor mmap's back from the file at a different
10044 address. (There have been systems where private was not correctly
10045 implemented like the infamous i386 svr4.0, and systems where the
10046 VM page cache was not coherent with the file system buffer cache
10047 like early versions of FreeBSD and possibly contemporary NetBSD.)
10048 For shared mappings, we should conversely verify that changes get
10049 propagated back to all the places they're supposed to be.
10051 Grep wants private fixed already mapped.
10052 The main things grep needs to know about mmap are:
10053 * does it exist and is it safe to write into the mmap'd area
10054 * how to use it (BSD variants) */
10056 #include <fcntl.h>
10057 #include <sys/mman.h>
10059 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10060 char *malloc ();
10061 #endif
10063 /* This mess was copied from the GNU getpagesize.h. */
10064 #ifndef HAVE_GETPAGESIZE
10065 # ifdef _SC_PAGESIZE
10066 # define getpagesize() sysconf(_SC_PAGESIZE)
10067 # else /* no _SC_PAGESIZE */
10068 # ifdef HAVE_SYS_PARAM_H
10069 # include <sys/param.h>
10070 # ifdef EXEC_PAGESIZE
10071 # define getpagesize() EXEC_PAGESIZE
10072 # else /* no EXEC_PAGESIZE */
10073 # ifdef NBPG
10074 # define getpagesize() NBPG * CLSIZE
10075 # ifndef CLSIZE
10076 # define CLSIZE 1
10077 # endif /* no CLSIZE */
10078 # else /* no NBPG */
10079 # ifdef NBPC
10080 # define getpagesize() NBPC
10081 # else /* no NBPC */
10082 # ifdef PAGESIZE
10083 # define getpagesize() PAGESIZE
10084 # endif /* PAGESIZE */
10085 # endif /* no NBPC */
10086 # endif /* no NBPG */
10087 # endif /* no EXEC_PAGESIZE */
10088 # else /* no HAVE_SYS_PARAM_H */
10089 # define getpagesize() 8192 /* punt totally */
10090 # endif /* no HAVE_SYS_PARAM_H */
10091 # endif /* no _SC_PAGESIZE */
10093 #endif /* no HAVE_GETPAGESIZE */
10096 main ()
10098 char *data, *data2, *data3;
10099 const char *cdata2;
10100 int i, pagesize;
10101 int fd, fd2;
10103 pagesize = getpagesize ();
10105 /* First, make a file with some known garbage in it. */
10106 data = (char *) malloc (pagesize);
10107 if (!data)
10108 return 1;
10109 for (i = 0; i < pagesize; ++i)
10110 *(data + i) = rand ();
10111 umask (0);
10112 fd = creat ("conftest.mmap", 0600);
10113 if (fd < 0)
10114 return 2;
10115 if (write (fd, data, pagesize) != pagesize)
10116 return 3;
10117 close (fd);
10119 /* Next, check that the tail of a page is zero-filled. File must have
10120 non-zero length, otherwise we risk SIGBUS for entire page. */
10121 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10122 if (fd2 < 0)
10123 return 4;
10124 cdata2 = "";
10125 if (write (fd2, cdata2, 1) != 1)
10126 return 5;
10127 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10128 if (data2 == MAP_FAILED)
10129 return 6;
10130 for (i = 0; i < pagesize; ++i)
10131 if (*(data2 + i))
10132 return 7;
10133 close (fd2);
10134 if (munmap (data2, pagesize))
10135 return 8;
10137 /* Next, try to mmap the file at a fixed address which already has
10138 something else allocated at it. If we can, also make sure that
10139 we see the same garbage. */
10140 fd = open ("conftest.mmap", O_RDWR);
10141 if (fd < 0)
10142 return 9;
10143 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10144 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10145 return 10;
10146 for (i = 0; i < pagesize; ++i)
10147 if (*(data + i) != *(data2 + i))
10148 return 11;
10150 /* Finally, make sure that changes to the mapped area do not
10151 percolate back to the file as seen by read(). (This is a bug on
10152 some variants of i386 svr4.0.) */
10153 for (i = 0; i < pagesize; ++i)
10154 *(data2 + i) = *(data2 + i) + 1;
10155 data3 = (char *) malloc (pagesize);
10156 if (!data3)
10157 return 12;
10158 if (read (fd, data3, pagesize) != pagesize)
10159 return 13;
10160 for (i = 0; i < pagesize; ++i)
10161 if (*(data + i) != *(data3 + i))
10162 return 14;
10163 close (fd);
10164 return 0;
10166 _ACEOF
10167 if ac_fn_c_try_run "$LINENO"; then :
10168 ac_cv_func_mmap_fixed_mapped=yes
10169 else
10170 ac_cv_func_mmap_fixed_mapped=no
10172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10173 conftest.$ac_objext conftest.beam conftest.$ac_ext
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10178 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10179 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10181 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10184 rm -f conftest.mmap conftest.txt
10186 if test $use_mmap_for_buffers = yes; then
10188 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10190 REL_ALLOC=no
10193 LIBS="$LIBS_SYSTEM $LIBS"
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10196 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10197 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10198 $as_echo_n "(cached) " >&6
10199 else
10200 ac_check_lib_save_LIBS=$LIBS
10201 LIBS="-ldnet $LIBS"
10202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h. */
10205 /* Override any GCC internal prototype to avoid an error.
10206 Use char because int might match the return type of a GCC
10207 builtin and then its argument prototype would still apply. */
10208 #ifdef __cplusplus
10209 extern "C"
10210 #endif
10211 char dnet_ntoa ();
10213 main ()
10215 return dnet_ntoa ();
10217 return 0;
10219 _ACEOF
10220 if ac_fn_c_try_link "$LINENO"; then :
10221 ac_cv_lib_dnet_dnet_ntoa=yes
10222 else
10223 ac_cv_lib_dnet_dnet_ntoa=no
10225 rm -f core conftest.err conftest.$ac_objext \
10226 conftest$ac_exeext conftest.$ac_ext
10227 LIBS=$ac_check_lib_save_LIBS
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10230 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10231 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10232 cat >>confdefs.h <<_ACEOF
10233 #define HAVE_LIBDNET 1
10234 _ACEOF
10236 LIBS="-ldnet $LIBS"
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10242 $as_echo_n "checking for main in -lXbsd... " >&6; }
10243 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10244 $as_echo_n "(cached) " >&6
10245 else
10246 ac_check_lib_save_LIBS=$LIBS
10247 LIBS="-lXbsd $LIBS"
10248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h. */
10253 main ()
10255 return main ();
10257 return 0;
10259 _ACEOF
10260 if ac_fn_c_try_link "$LINENO"; then :
10261 ac_cv_lib_Xbsd_main=yes
10262 else
10263 ac_cv_lib_Xbsd_main=no
10265 rm -f core conftest.err conftest.$ac_objext \
10266 conftest$ac_exeext conftest.$ac_ext
10267 LIBS=$ac_check_lib_save_LIBS
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10270 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10271 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10272 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10276 LIB_PTHREAD=
10280 if test "$ac_cv_header_pthread_h"; then
10281 if test "$GMALLOC_OBJ" = gmalloc.o; then
10282 emacs_pthread_function=pthread_atfork
10283 else
10284 emacs_pthread_function=pthread_self
10286 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10288 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10289 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10290 $as_echo_n "(cached) " >&6
10291 else
10292 ac_check_lib_save_LIBS=$LIBS
10293 LIBS="-lpthread $LIBS"
10294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10295 /* end confdefs.h. */
10297 /* Override any GCC internal prototype to avoid an error.
10298 Use char because int might match the return type of a GCC
10299 builtin and then its argument prototype would still apply. */
10300 #ifdef __cplusplus
10301 extern "C"
10302 #endif
10303 char $emacs_pthread_function ();
10305 main ()
10307 return $emacs_pthread_function ();
10309 return 0;
10311 _ACEOF
10312 if ac_fn_c_try_link "$LINENO"; then :
10313 eval "$as_ac_Lib=yes"
10314 else
10315 eval "$as_ac_Lib=no"
10317 rm -f core conftest.err conftest.$ac_objext \
10318 conftest$ac_exeext conftest.$ac_ext
10319 LIBS=$ac_check_lib_save_LIBS
10321 eval ac_res=\$$as_ac_Lib
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10323 $as_echo "$ac_res" >&6; }
10324 eval as_val=\$$as_ac_Lib
10325 if test "x$as_val" = x""yes; then :
10326 HAVE_PTHREAD=yes
10330 if test "$HAVE_PTHREAD" = yes; then
10331 case "${canonical}" in
10332 *-hpux*) ;;
10333 *) LIB_PTHREAD="-lpthread"
10334 LIBS="$LIB_PTHREAD $LIBS" ;;
10335 esac
10337 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10343 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10344 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10345 $as_echo_n "(cached) " >&6
10346 else
10347 ac_check_lib_save_LIBS=$LIBS
10348 LIBS="-lpthreads $LIBS"
10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350 /* end confdefs.h. */
10352 /* Override any GCC internal prototype to avoid an error.
10353 Use char because int might match the return type of a GCC
10354 builtin and then its argument prototype would still apply. */
10355 #ifdef __cplusplus
10356 extern "C"
10357 #endif
10358 char cma_open ();
10360 main ()
10362 return cma_open ();
10364 return 0;
10366 _ACEOF
10367 if ac_fn_c_try_link "$LINENO"; then :
10368 ac_cv_lib_pthreads_cma_open=yes
10369 else
10370 ac_cv_lib_pthreads_cma_open=no
10372 rm -f core conftest.err conftest.$ac_objext \
10373 conftest$ac_exeext conftest.$ac_ext
10374 LIBS=$ac_check_lib_save_LIBS
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10377 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10378 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10379 cat >>confdefs.h <<_ACEOF
10380 #define HAVE_LIBPTHREADS 1
10381 _ACEOF
10383 LIBS="-lpthreads $LIBS"
10388 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10389 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10390 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10391 ## added to LIBS in configure would never contain the pthreads part,
10392 ## but the value used in Makefiles might. FIXME?
10394 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10395 ## be harmless on older versions of X where it happens to exist.
10396 test "$opsys" = "aix4-2" && \
10397 test $ac_cv_lib_pthreads_cma_open = yes && \
10398 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10401 case ${host_os} in
10402 aix*)
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10404 $as_echo_n "checking for -bbigtoc option... " >&6; }
10405 if test "${gdb_cv_bigtoc+set}" = set; then :
10406 $as_echo_n "(cached) " >&6
10407 else
10409 case $GCC in
10410 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10411 *) gdb_cv_bigtoc=-bbigtoc ;;
10412 esac
10414 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h. */
10419 main ()
10421 int i;
10423 return 0;
10425 _ACEOF
10426 if ac_fn_c_try_link "$LINENO"; then :
10428 else
10429 gdb_cv_bigtoc=
10431 rm -f core conftest.err conftest.$ac_objext \
10432 conftest$ac_exeext conftest.$ac_ext
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10436 $as_echo "$gdb_cv_bigtoc" >&6; }
10438 esac
10440 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10441 # used for the tests that follow. We set them back to REAL_CFLAGS and
10442 # REAL_CPPFLAGS later on.
10444 REAL_CFLAGS="$CFLAGS"
10445 REAL_CPPFLAGS="$CPPFLAGS"
10447 if test "${HAVE_X11}" = "yes"; then
10448 DEFS="$C_SWITCH_X_SITE $DEFS"
10449 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10450 LIBS="-lX11 $LIBS"
10451 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10452 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10454 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10455 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10456 # but it's more convenient here to set LD_RUN_PATH since this
10457 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10458 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10459 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10460 export LD_RUN_PATH
10463 if test "${opsys}" = "gnu-linux"; then
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10465 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10467 /* end confdefs.h. */
10470 main ()
10472 XOpenDisplay ("foo");
10474 return 0;
10476 _ACEOF
10477 if ac_fn_c_try_link "$LINENO"; then :
10478 xgnu_linux_first_failure=no
10479 else
10480 xgnu_linux_first_failure=yes
10482 rm -f core conftest.err conftest.$ac_objext \
10483 conftest$ac_exeext conftest.$ac_ext
10484 if test "${xgnu_linux_first_failure}" = "yes"; then
10485 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10486 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10487 OLD_CPPFLAGS="$CPPFLAGS"
10488 OLD_LIBS="$LIBS"
10489 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10490 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10491 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10492 LIBS="$LIBS -b i486-linuxaout"
10493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494 /* end confdefs.h. */
10497 main ()
10499 XOpenDisplay ("foo");
10501 return 0;
10503 _ACEOF
10504 if ac_fn_c_try_link "$LINENO"; then :
10505 xgnu_linux_second_failure=no
10506 else
10507 xgnu_linux_second_failure=yes
10509 rm -f core conftest.err conftest.$ac_objext \
10510 conftest$ac_exeext conftest.$ac_ext
10511 if test "${xgnu_linux_second_failure}" = "yes"; then
10512 # If we get the same failure with -b, there is no use adding -b.
10513 # So take it out. This plays safe.
10514 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10515 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10516 CPPFLAGS="$OLD_CPPFLAGS"
10517 LIBS="$OLD_LIBS"
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519 $as_echo "no" >&6; }
10520 else
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10522 $as_echo "yes" >&6; }
10524 else
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10526 $as_echo "no" >&6; }
10530 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10531 # header files included from there.
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10533 $as_echo_n "checking for Xkb... " >&6; }
10534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10535 /* end confdefs.h. */
10536 #include <X11/Xlib.h>
10537 #include <X11/XKBlib.h>
10539 main ()
10541 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10543 return 0;
10545 _ACEOF
10546 if ac_fn_c_try_link "$LINENO"; then :
10547 emacs_xkb=yes
10548 else
10549 emacs_xkb=no
10551 rm -f core conftest.err conftest.$ac_objext \
10552 conftest$ac_exeext conftest.$ac_ext
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10554 $as_echo "$emacs_xkb" >&6; }
10555 if test $emacs_xkb = yes; then
10557 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10561 for ac_func in XrmSetDatabase XScreenResourceString \
10562 XScreenNumberOfScreen
10563 do :
10564 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10565 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10566 eval as_val=\$$as_ac_var
10567 if test "x$as_val" = x""yes; then :
10568 cat >>confdefs.h <<_ACEOF
10569 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10570 _ACEOF
10573 done
10577 if test "${window_system}" = "x11"; then
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10579 $as_echo_n "checking X11 version 6... " >&6; }
10580 if test "${emacs_cv_x11_version_6+set}" = set; then :
10581 $as_echo_n "(cached) " >&6
10582 else
10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10585 #include <X11/Xlib.h>
10587 main ()
10589 #if XlibSpecificationRelease < 6
10590 fail;
10591 #endif
10594 return 0;
10596 _ACEOF
10597 if ac_fn_c_try_link "$LINENO"; then :
10598 emacs_cv_x11_version_6=yes
10599 else
10600 emacs_cv_x11_version_6=no
10602 rm -f core conftest.err conftest.$ac_objext \
10603 conftest$ac_exeext conftest.$ac_ext
10606 if test $emacs_cv_x11_version_6 = yes; then
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10608 $as_echo "6 or newer" >&6; }
10610 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10613 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10615 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10616 ## XIM support.
10617 case "$opsys" in
10618 sol2-*) : ;;
10620 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10623 esac
10624 else
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10626 $as_echo "before 6" >&6; }
10631 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10632 HAVE_RSVG=no
10633 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10634 if test "${with_rsvg}" != "no"; then
10635 RSVG_REQUIRED=2.11.0
10636 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10639 succeeded=no
10641 if test "$PKG_CONFIG" = "no" ; then
10643 else
10644 PKG_CONFIG_MIN_VERSION=0.9.0
10645 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10647 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10649 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
10650 RSVG_CFLAGS=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
10651 RSVG_LIBS=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
10652 edit_cflags="
10653 s,///*,/,g
10654 s/^/ /
10655 s/ -I/ $isystem/g
10656 s/^ //
10658 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10659 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10661 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10662 succeeded=yes
10663 else
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10665 $as_echo "no" >&6; }
10666 RSVG_CFLAGS=""
10667 RSVG_LIBS=""
10668 ## If we have a custom action on failure, don't print errors, but
10669 ## do set a variable so people can do so. Do it in a subshell
10670 ## to capture any diagnostics in invoking pkg-config.
10671 RSVG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
10677 else
10678 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10679 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10683 if test $succeeded = yes; then
10684 HAVE_RSVG=yes
10685 else
10692 if test $HAVE_RSVG = yes; then
10694 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10696 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10697 LIBS="$RSVG_LIBS $LIBS"
10702 HAVE_IMAGEMAGICK=no
10703 if test "${HAVE_X11}" = "yes"; then
10704 if test "${with_imagemagick}" != "no"; then
10705 ## 6.2.8 is the earliest version known to work, but earlier versions
10706 ## might work - let us know if you find one.
10707 ## 6.0.7 does not work. See bug#7955.
10708 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10710 succeeded=no
10712 if test "$PKG_CONFIG" = "no" ; then
10714 else
10715 PKG_CONFIG_MIN_VERSION=0.9.0
10716 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10718 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10720 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10721 IMAGEMAGICK_CFLAGS=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10722 IMAGEMAGICK_LIBS=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10723 edit_cflags="
10724 s,///*,/,g
10725 s/^/ /
10726 s/ -I/ $isystem/g
10727 s/^ //
10729 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10730 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10732 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10733 succeeded=yes
10734 else
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10736 $as_echo "no" >&6; }
10737 IMAGEMAGICK_CFLAGS=""
10738 IMAGEMAGICK_LIBS=""
10739 ## If we have a custom action on failure, don't print errors, but
10740 ## do set a variable so people can do so. Do it in a subshell
10741 ## to capture any diagnostics in invoking pkg-config.
10742 IMAGEMAGICK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10748 else
10749 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10750 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10754 if test $succeeded = yes; then
10755 HAVE_IMAGEMAGICK=yes
10756 else
10763 if test $HAVE_IMAGEMAGICK = yes; then
10765 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10767 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10768 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10769 for ac_func in MagickExportImagePixels MagickMergeImageLayers
10770 do :
10771 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10772 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10773 eval as_val=\$$as_ac_var
10774 if test "x$as_val" = x""yes; then :
10775 cat >>confdefs.h <<_ACEOF
10776 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10777 _ACEOF
10780 done
10787 HAVE_GTK=no
10788 GTK_OBJ=
10789 check_gtk2=no
10790 gtk3_pkg_errors=
10791 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10792 GLIB_REQUIRED=2.28
10793 GTK_REQUIRED=3.0
10794 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10797 succeeded=no
10799 if test "$PKG_CONFIG" = "no" ; then
10800 pkg_check_gtk=no
10801 else
10802 PKG_CONFIG_MIN_VERSION=0.9.0
10803 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10805 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10807 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
10808 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
10809 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
10810 edit_cflags="
10811 s,///*,/,g
10812 s/^/ /
10813 s/ -I/ $isystem/g
10814 s/^ //
10816 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10817 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10819 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10820 succeeded=yes
10821 else
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823 $as_echo "no" >&6; }
10824 GTK_CFLAGS=""
10825 GTK_LIBS=""
10826 ## If we have a custom action on failure, don't print errors, but
10827 ## do set a variable so people can do so. Do it in a subshell
10828 ## to capture any diagnostics in invoking pkg-config.
10829 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
10835 else
10836 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10837 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10841 if test $succeeded = yes; then
10842 pkg_check_gtk=yes
10843 else
10844 pkg_check_gtk=no
10847 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10848 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10850 if test "$pkg_check_gtk" = "yes"; then
10852 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10854 GTK_OBJ=emacsgtkfixed.o
10855 term_header=gtkutil.h
10856 USE_GTK_TOOLKIT="GTK3"
10857 else
10858 check_gtk2=yes
10859 gtk3_pkg_errors="$GTK_PKG_ERRORS "
10863 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
10864 GLIB_REQUIRED=2.10
10865 GTK_REQUIRED=2.10
10866 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10869 succeeded=no
10871 if test "$PKG_CONFIG" = "no" ; then
10872 pkg_check_gtk=no
10873 else
10874 PKG_CONFIG_MIN_VERSION=0.9.0
10875 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10877 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10879 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
10880 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
10881 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
10882 edit_cflags="
10883 s,///*,/,g
10884 s/^/ /
10885 s/ -I/ $isystem/g
10886 s/^ //
10888 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10889 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10891 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10892 succeeded=yes
10893 else
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10895 $as_echo "no" >&6; }
10896 GTK_CFLAGS=""
10897 GTK_LIBS=""
10898 ## If we have a custom action on failure, don't print errors, but
10899 ## do set a variable so people can do so. Do it in a subshell
10900 ## to capture any diagnostics in invoking pkg-config.
10901 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
10907 else
10908 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10909 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10913 if test $succeeded = yes; then
10914 pkg_check_gtk=yes
10915 else
10916 pkg_check_gtk=no
10919 if test "$pkg_check_gtk" = "no" &&
10920 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
10921 then
10922 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
10924 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
10927 if test x"$pkg_check_gtk" = xyes; then
10931 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10932 CFLAGS="$CFLAGS $GTK_CFLAGS"
10933 LIBS="$GTK_LIBS $LIBS"
10934 GTK_COMPILES=no
10935 for ac_func in gtk_main
10936 do :
10937 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10938 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10939 cat >>confdefs.h <<_ACEOF
10940 #define HAVE_GTK_MAIN 1
10941 _ACEOF
10942 GTK_COMPILES=yes
10944 done
10946 if test "${GTK_COMPILES}" != "yes"; then
10947 if test "$USE_X_TOOLKIT" != "maybe"; then
10948 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10950 else
10951 HAVE_GTK=yes
10953 $as_echo "#define USE_GTK 1" >>confdefs.h
10955 GTK_OBJ="gtkutil.o $GTK_OBJ"
10956 USE_X_TOOLKIT=none
10957 if "$PKG_CONFIG" --atleast-version=2.10 gtk+-2.0; then
10959 else
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10961 closing open displays. This is no problem if you just use
10962 one display, but if you use more than one and close one of them
10963 Emacs may crash." >&5
10964 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10965 closing open displays. This is no problem if you just use
10966 one display, but if you use more than one and close one of them
10967 Emacs may crash." >&2;}
10968 sleep 3
10976 if test "${HAVE_GTK}" = "yes"; then
10978 if test "$with_toolkit_scroll_bars" != no; then
10979 with_toolkit_scroll_bars=yes
10982 HAVE_GTK_FILE_SELECTION=no
10983 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10984 #include <gtk/gtk.h>
10986 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10987 HAVE_GTK_FILE_SELECTION=yes
10988 else
10989 HAVE_GTK_FILE_SELECTION=no
10992 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10993 for ac_func in gtk_file_selection_new
10994 do :
10995 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10996 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10997 cat >>confdefs.h <<_ACEOF
10998 #define HAVE_GTK_FILE_SELECTION_NEW 1
10999 _ACEOF
11002 done
11007 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11008 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11009 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11010 gtk_orientable_set_orientation \
11011 gtk_window_set_has_resize_grip
11012 do :
11013 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11014 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11015 eval as_val=\$$as_ac_var
11016 if test "x$as_val" = x""yes; then :
11017 cat >>confdefs.h <<_ACEOF
11018 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11019 _ACEOF
11022 done
11025 term_header=gtkutil.h
11028 HAVE_DBUS=no
11029 DBUS_OBJ=
11030 if test "${with_dbus}" = "yes"; then
11032 succeeded=no
11034 if test "$PKG_CONFIG" = "no" ; then
11035 HAVE_DBUS=no
11036 else
11037 PKG_CONFIG_MIN_VERSION=0.9.0
11038 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11040 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11042 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11043 DBUS_CFLAGS=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11044 DBUS_LIBS=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11045 edit_cflags="
11046 s,///*,/,g
11047 s/^/ /
11048 s/ -I/ $isystem/g
11049 s/^ //
11051 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11052 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11054 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11055 succeeded=yes
11056 else
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11058 $as_echo "no" >&6; }
11059 DBUS_CFLAGS=""
11060 DBUS_LIBS=""
11061 ## If we have a custom action on failure, don't print errors, but
11062 ## do set a variable so people can do so. Do it in a subshell
11063 ## to capture any diagnostics in invoking pkg-config.
11064 DBUS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11070 else
11071 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11072 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11076 if test $succeeded = yes; then
11077 HAVE_DBUS=yes
11078 else
11079 HAVE_DBUS=no
11082 if test "$HAVE_DBUS" = yes; then
11083 LIBS="$LIBS $DBUS_LIBS"
11085 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11087 for ac_func in dbus_watch_get_unix_fd \
11088 dbus_type_is_valid \
11089 dbus_validate_bus_name \
11090 dbus_validate_path \
11091 dbus_validate_interface \
11092 dbus_validate_member
11093 do :
11094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11095 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11096 eval as_val=\$$as_ac_var
11097 if test "x$as_val" = x""yes; then :
11098 cat >>confdefs.h <<_ACEOF
11099 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11100 _ACEOF
11103 done
11105 DBUS_OBJ=dbusbind.o
11110 HAVE_GSETTINGS=no
11111 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11113 succeeded=no
11115 if test "$PKG_CONFIG" = "no" ; then
11116 HAVE_GSETTINGS=no
11117 else
11118 PKG_CONFIG_MIN_VERSION=0.9.0
11119 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11121 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11123 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11124 GSETTINGS_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11125 GSETTINGS_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11126 edit_cflags="
11127 s,///*,/,g
11128 s/^/ /
11129 s/ -I/ $isystem/g
11130 s/^ //
11132 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11133 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11135 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11136 succeeded=yes
11137 else
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139 $as_echo "no" >&6; }
11140 GSETTINGS_CFLAGS=""
11141 GSETTINGS_LIBS=""
11142 ## If we have a custom action on failure, don't print errors, but
11143 ## do set a variable so people can do so. Do it in a subshell
11144 ## to capture any diagnostics in invoking pkg-config.
11145 GSETTINGS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11151 else
11152 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11153 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11157 if test $succeeded = yes; then
11158 HAVE_GSETTINGS=yes
11159 else
11160 HAVE_GSETTINGS=no
11163 if test "$HAVE_GSETTINGS" = "yes"; then
11165 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11167 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11168 SETTINGS_LIBS="$GSETTINGS_LIBS"
11172 HAVE_GCONF=no
11173 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11175 succeeded=no
11177 if test "$PKG_CONFIG" = "no" ; then
11178 HAVE_GCONF=no
11179 else
11180 PKG_CONFIG_MIN_VERSION=0.9.0
11181 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11183 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11185 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11186 GCONF_CFLAGS=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11187 GCONF_LIBS=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11188 edit_cflags="
11189 s,///*,/,g
11190 s/^/ /
11191 s/ -I/ $isystem/g
11192 s/^ //
11194 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11195 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11197 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11198 succeeded=yes
11199 else
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201 $as_echo "no" >&6; }
11202 GCONF_CFLAGS=""
11203 GCONF_LIBS=""
11204 ## If we have a custom action on failure, don't print errors, but
11205 ## do set a variable so people can do so. Do it in a subshell
11206 ## to capture any diagnostics in invoking pkg-config.
11207 GCONF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11213 else
11214 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11215 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11219 if test $succeeded = yes; then
11220 HAVE_GCONF=yes
11221 else
11222 HAVE_GCONF=no
11225 if test "$HAVE_GCONF" = yes; then
11227 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11229 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11230 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11234 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11236 succeeded=no
11238 if test "$PKG_CONFIG" = "no" ; then
11239 HAVE_GOBJECT=no
11240 else
11241 PKG_CONFIG_MIN_VERSION=0.9.0
11242 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11244 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11246 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11247 GOBJECT_CFLAGS=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11248 GOBJECT_LIBS=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11249 edit_cflags="
11250 s,///*,/,g
11251 s/^/ /
11252 s/ -I/ $isystem/g
11253 s/^ //
11255 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11256 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11258 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11259 succeeded=yes
11260 else
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262 $as_echo "no" >&6; }
11263 GOBJECT_CFLAGS=""
11264 GOBJECT_LIBS=""
11265 ## If we have a custom action on failure, don't print errors, but
11266 ## do set a variable so people can do so. Do it in a subshell
11267 ## to capture any diagnostics in invoking pkg-config.
11268 GOBJECT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11274 else
11275 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11276 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11280 if test $succeeded = yes; then
11281 HAVE_GOBJECT=yes
11282 else
11283 HAVE_GOBJECT=no
11286 if test "$HAVE_GOBJECT" = "yes"; then
11287 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11288 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
11290 SAVE_CFLAGS="$CFLAGS"
11291 SAVE_LIBS="$LIBS"
11292 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11293 LIBS="$SETTINGS_LIBS $LIBS"
11294 for ac_func in g_type_init
11295 do :
11296 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11297 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11298 cat >>confdefs.h <<_ACEOF
11299 #define HAVE_G_TYPE_INIT 1
11300 _ACEOF
11303 done
11305 CFLAGS="$SAVE_CFLAGS"
11306 LIBS="$SAVE_LIBS"
11312 HAVE_LIBSELINUX=no
11313 LIBSELINUX_LIBS=
11314 if test "${with_selinux}" = "yes"; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11316 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11317 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11318 $as_echo_n "(cached) " >&6
11319 else
11320 ac_check_lib_save_LIBS=$LIBS
11321 LIBS="-lselinux $LIBS"
11322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11323 /* end confdefs.h. */
11325 /* Override any GCC internal prototype to avoid an error.
11326 Use char because int might match the return type of a GCC
11327 builtin and then its argument prototype would still apply. */
11328 #ifdef __cplusplus
11329 extern "C"
11330 #endif
11331 char lgetfilecon ();
11333 main ()
11335 return lgetfilecon ();
11337 return 0;
11339 _ACEOF
11340 if ac_fn_c_try_link "$LINENO"; then :
11341 ac_cv_lib_selinux_lgetfilecon=yes
11342 else
11343 ac_cv_lib_selinux_lgetfilecon=no
11345 rm -f core conftest.err conftest.$ac_objext \
11346 conftest$ac_exeext conftest.$ac_ext
11347 LIBS=$ac_check_lib_save_LIBS
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11350 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11351 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11352 HAVE_LIBSELINUX=yes
11353 else
11354 HAVE_LIBSELINUX=no
11357 if test "$HAVE_LIBSELINUX" = yes; then
11359 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11361 LIBSELINUX_LIBS=-lselinux
11366 HAVE_GNUTLS=no
11367 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11368 if test "${with_gnutls}" = "yes" ; then
11370 succeeded=no
11372 if test "$PKG_CONFIG" = "no" ; then
11373 HAVE_GNUTLS=no
11374 else
11375 PKG_CONFIG_MIN_VERSION=0.9.0
11376 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11378 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11380 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
11381 LIBGNUTLS_CFLAGS=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
11382 LIBGNUTLS_LIBS=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
11383 edit_cflags="
11384 s,///*,/,g
11385 s/^/ /
11386 s/ -I/ $isystem/g
11387 s/^ //
11389 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11390 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11392 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11393 succeeded=yes
11394 else
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396 $as_echo "no" >&6; }
11397 LIBGNUTLS_CFLAGS=""
11398 LIBGNUTLS_LIBS=""
11399 ## If we have a custom action on failure, don't print errors, but
11400 ## do set a variable so people can do so. Do it in a subshell
11401 ## to capture any diagnostics in invoking pkg-config.
11402 LIBGNUTLS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
11408 else
11409 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11410 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11414 if test $succeeded = yes; then
11415 HAVE_GNUTLS=yes
11416 else
11417 HAVE_GNUTLS=no
11420 if test "${HAVE_GNUTLS}" = "yes"; then
11422 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11426 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11427 LIBS="$LIBGNUTLS_LIBS $LIBS"
11428 for ac_func in gnutls_certificate_set_verify_function
11429 do :
11430 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11431 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11432 cat >>confdefs.h <<_ACEOF
11433 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11434 _ACEOF
11435 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11437 done
11440 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11442 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11450 if test "${with_inotify}" = "yes"; then
11451 for ac_header in sys/inotify.h
11452 do :
11453 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
11454 if test "x$ac_cv_header_sys_inotify_h" = x""yes; then :
11455 cat >>confdefs.h <<_ACEOF
11456 #define HAVE_SYS_INOTIFY_H 1
11457 _ACEOF
11461 done
11463 if test "$ac_cv_header_sys_inotify_h" = yes ; then
11464 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
11465 if test "x$ac_cv_func_inotify_init1" = x""yes; then :
11471 if test "$ac_cv_func_inotify_init1" = yes; then
11473 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
11477 HAVE_POSIX_ACL=no
11478 LIBACL_LIBS=
11479 if test "${with_acl}" = "yes"; then
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_set_file in -lacl" >&5
11481 $as_echo_n "checking for acl_set_file in -lacl... " >&6; }
11482 if test "${ac_cv_lib_acl_acl_set_file+set}" = set; then :
11483 $as_echo_n "(cached) " >&6
11484 else
11485 ac_check_lib_save_LIBS=$LIBS
11486 LIBS="-lacl $LIBS"
11487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11488 /* end confdefs.h. */
11490 /* Override any GCC internal prototype to avoid an error.
11491 Use char because int might match the return type of a GCC
11492 builtin and then its argument prototype would still apply. */
11493 #ifdef __cplusplus
11494 extern "C"
11495 #endif
11496 char acl_set_file ();
11498 main ()
11500 return acl_set_file ();
11502 return 0;
11504 _ACEOF
11505 if ac_fn_c_try_link "$LINENO"; then :
11506 ac_cv_lib_acl_acl_set_file=yes
11507 else
11508 ac_cv_lib_acl_acl_set_file=no
11510 rm -f core conftest.err conftest.$ac_objext \
11511 conftest$ac_exeext conftest.$ac_ext
11512 LIBS=$ac_check_lib_save_LIBS
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_set_file" >&5
11515 $as_echo "$ac_cv_lib_acl_acl_set_file" >&6; }
11516 if test "x$ac_cv_lib_acl_acl_set_file" = x""yes; then :
11517 HAVE_POSIX_ACL=yes
11518 else
11519 HAVE_POSIX_ACL=no
11522 if test "$HAVE_POSIX_ACL" = yes; then
11524 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11526 LIBACL_LIBS=-lacl
11527 else
11528 ac_fn_c_check_func "$LINENO" "acl_set_file" "ac_cv_func_acl_set_file"
11529 if test "x$ac_cv_func_acl_set_file" = x""yes; then :
11530 HAVE_POSIX_ACL=yes
11531 else
11532 HAVE_POSIX_ACL=no
11535 if test "$HAVE_POSIX_ACL" = yes; then
11537 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11544 HAVE_XAW3D=no
11545 LUCID_LIBW=
11546 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11547 if test "$with_xaw3d" != no; then
11548 if test "${emacs_cv_xaw3d+set}" = set; then :
11549 $as_echo_n "(cached) " >&6
11550 else
11551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11552 /* end confdefs.h. */
11554 #include <X11/Intrinsic.h>
11555 #include <X11/Xaw3d/Simple.h>
11557 main ()
11561 return 0;
11563 _ACEOF
11564 if ac_fn_c_try_link "$LINENO"; then :
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11566 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11567 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11568 $as_echo_n "(cached) " >&6
11569 else
11570 ac_check_lib_save_LIBS=$LIBS
11571 LIBS="-lXaw3d $LIBS"
11572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h. */
11575 /* Override any GCC internal prototype to avoid an error.
11576 Use char because int might match the return type of a GCC
11577 builtin and then its argument prototype would still apply. */
11578 #ifdef __cplusplus
11579 extern "C"
11580 #endif
11581 char XawScrollbarSetThumb ();
11583 main ()
11585 return XawScrollbarSetThumb ();
11587 return 0;
11589 _ACEOF
11590 if ac_fn_c_try_link "$LINENO"; then :
11591 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11592 else
11593 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11595 rm -f core conftest.err conftest.$ac_objext \
11596 conftest$ac_exeext conftest.$ac_ext
11597 LIBS=$ac_check_lib_save_LIBS
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11600 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11601 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11602 emacs_cv_xaw3d=yes
11603 else
11604 emacs_cv_xaw3d=no
11607 else
11608 emacs_cv_xaw3d=no
11610 rm -f core conftest.err conftest.$ac_objext \
11611 conftest$ac_exeext conftest.$ac_ext
11614 else
11615 emacs_cv_xaw3d=no
11617 if test $emacs_cv_xaw3d = yes; then
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11619 $as_echo_n "checking for xaw3d... " >&6; }
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11621 $as_echo "yes; using Lucid toolkit" >&6; }
11622 USE_X_TOOLKIT=LUCID
11623 HAVE_XAW3D=yes
11624 LUCID_LIBW=-lXaw3d
11626 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11628 else
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11630 $as_echo_n "checking for xaw3d... " >&6; }
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11632 $as_echo "no" >&6; }
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11634 $as_echo_n "checking for libXaw... " >&6; }
11635 if test "${emacs_cv_xaw+set}" = set; then :
11636 $as_echo_n "(cached) " >&6
11637 else
11638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639 /* end confdefs.h. */
11641 #include <X11/Intrinsic.h>
11642 #include <X11/Xaw/Simple.h>
11644 main ()
11648 return 0;
11650 _ACEOF
11651 if ac_fn_c_try_link "$LINENO"; then :
11652 emacs_cv_xaw=yes
11653 else
11654 emacs_cv_xaw=no
11656 rm -f core conftest.err conftest.$ac_objext \
11657 conftest$ac_exeext conftest.$ac_ext
11660 if test $emacs_cv_xaw = yes; then
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11662 $as_echo "yes; using Lucid toolkit" >&6; }
11663 USE_X_TOOLKIT=LUCID
11664 LUCID_LIBW=-lXaw
11665 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11666 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11667 else
11668 as_fn_error "No X toolkit could be found.
11669 If you are sure you want Emacs compiled without an X toolkit, pass
11670 --with-x-toolkit=no
11671 to configure. Otherwise, install the development libraries for the toolkit
11672 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11677 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11679 LIBXTR6=
11680 if test "${USE_X_TOOLKIT}" != "none"; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11682 $as_echo_n "checking X11 toolkit version... " >&6; }
11683 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11684 $as_echo_n "(cached) " >&6
11685 else
11686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11687 /* end confdefs.h. */
11688 #include <X11/Intrinsic.h>
11690 main ()
11692 #if XtSpecificationRelease < 6
11693 fail;
11694 #endif
11697 return 0;
11699 _ACEOF
11700 if ac_fn_c_try_link "$LINENO"; then :
11701 emacs_cv_x11_toolkit_version_6=yes
11702 else
11703 emacs_cv_x11_toolkit_version_6=no
11705 rm -f core conftest.err conftest.$ac_objext \
11706 conftest$ac_exeext conftest.$ac_ext
11709 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11710 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11712 $as_echo "6 or newer" >&6; }
11714 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11716 LIBXTR6="-lSM -lICE"
11717 case "$opsys" in
11718 ## Use libw.a along with X11R6 Xt.
11719 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11720 esac
11721 else
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11723 $as_echo "before 6" >&6; }
11726 OLDLIBS="$LIBS"
11727 if test x$HAVE_X11XTR6 = xyes; then
11728 LIBS="-lXt -lSM -lICE $LIBS"
11729 else
11730 LIBS="-lXt $LIBS"
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11733 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11734 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11735 $as_echo_n "(cached) " >&6
11736 else
11737 ac_check_lib_save_LIBS=$LIBS
11738 LIBS="-lXmu $LIBS"
11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740 /* end confdefs.h. */
11742 /* Override any GCC internal prototype to avoid an error.
11743 Use char because int might match the return type of a GCC
11744 builtin and then its argument prototype would still apply. */
11745 #ifdef __cplusplus
11746 extern "C"
11747 #endif
11748 char XmuConvertStandardSelection ();
11750 main ()
11752 return XmuConvertStandardSelection ();
11754 return 0;
11756 _ACEOF
11757 if ac_fn_c_try_link "$LINENO"; then :
11758 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11759 else
11760 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11762 rm -f core conftest.err conftest.$ac_objext \
11763 conftest$ac_exeext conftest.$ac_ext
11764 LIBS=$ac_check_lib_save_LIBS
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11767 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11768 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11769 cat >>confdefs.h <<_ACEOF
11770 #define HAVE_LIBXMU 1
11771 _ACEOF
11773 LIBS="-lXmu $LIBS"
11777 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11781 LIBXMU=-lXmu
11782 case $opsys in
11783 ## These systems don't supply Xmu.
11784 hpux* | aix4-2 )
11785 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11787 esac
11790 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11791 if test "${HAVE_X11}" = "yes"; then
11792 if test "${USE_X_TOOLKIT}" != "none"; then
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11794 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11795 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11796 $as_echo_n "(cached) " >&6
11797 else
11798 ac_check_lib_save_LIBS=$LIBS
11799 LIBS="-lXext $LIBS"
11800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11801 /* end confdefs.h. */
11803 /* Override any GCC internal prototype to avoid an error.
11804 Use char because int might match the return type of a GCC
11805 builtin and then its argument prototype would still apply. */
11806 #ifdef __cplusplus
11807 extern "C"
11808 #endif
11809 char XShapeQueryExtension ();
11811 main ()
11813 return XShapeQueryExtension ();
11815 return 0;
11817 _ACEOF
11818 if ac_fn_c_try_link "$LINENO"; then :
11819 ac_cv_lib_Xext_XShapeQueryExtension=yes
11820 else
11821 ac_cv_lib_Xext_XShapeQueryExtension=no
11823 rm -f core conftest.err conftest.$ac_objext \
11824 conftest$ac_exeext conftest.$ac_ext
11825 LIBS=$ac_check_lib_save_LIBS
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11828 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11829 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11830 cat >>confdefs.h <<_ACEOF
11831 #define HAVE_LIBXEXT 1
11832 _ACEOF
11834 LIBS="-lXext $LIBS"
11841 LIBXP=
11842 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11843 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11844 if test -d /usr/include/openmotif; then
11845 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
11846 emacs_cv_openmotif=yes
11847 case "$canonical" in
11848 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
11849 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
11852 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
11853 esac
11854 else
11855 emacs_cv_openmotif=no
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11858 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11859 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11860 $as_echo_n "(cached) " >&6
11861 else
11862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11863 /* end confdefs.h. */
11864 #include <Xm/Xm.h>
11866 main ()
11868 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11869 int x = 5;
11870 #else
11871 Motif version prior to 2.1.
11872 #endif
11874 return 0;
11876 _ACEOF
11877 if ac_fn_c_try_compile "$LINENO"; then :
11878 emacs_cv_motif_version_2_1=yes
11879 else
11880 emacs_cv_motif_version_2_1=no
11882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11885 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11886 if test $emacs_cv_motif_version_2_1 = yes; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11888 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11889 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11890 $as_echo_n "(cached) " >&6
11891 else
11892 ac_check_lib_save_LIBS=$LIBS
11893 LIBS="-lXp $LIBS"
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11897 /* Override any GCC internal prototype to avoid an error.
11898 Use char because int might match the return type of a GCC
11899 builtin and then its argument prototype would still apply. */
11900 #ifdef __cplusplus
11901 extern "C"
11902 #endif
11903 char XpCreateContext ();
11905 main ()
11907 return XpCreateContext ();
11909 return 0;
11911 _ACEOF
11912 if ac_fn_c_try_link "$LINENO"; then :
11913 ac_cv_lib_Xp_XpCreateContext=yes
11914 else
11915 ac_cv_lib_Xp_XpCreateContext=no
11917 rm -f core conftest.err conftest.$ac_objext \
11918 conftest$ac_exeext conftest.$ac_ext
11919 LIBS=$ac_check_lib_save_LIBS
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11922 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11923 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11924 LIBXP=-lXp
11927 if test x$emacs_cv_openmotif = xyes; then
11928 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
11930 else
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11932 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11933 if test "${emacs_cv_lesstif+set}" = set; then :
11934 $as_echo_n "(cached) " >&6
11935 else
11936 # We put this in CFLAGS temporarily to precede other -I options
11937 # that might be in CFLAGS temporarily.
11938 # We put this in CPPFLAGS where it precedes the other -I options.
11939 OLD_CPPFLAGS=$CPPFLAGS
11940 OLD_CFLAGS=$CFLAGS
11941 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11942 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944 /* end confdefs.h. */
11945 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11947 main ()
11949 int x = 5;
11951 return 0;
11953 _ACEOF
11954 if ac_fn_c_try_compile "$LINENO"; then :
11955 emacs_cv_lesstif=yes
11956 else
11957 emacs_cv_lesstif=no
11959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11962 $as_echo "$emacs_cv_lesstif" >&6; }
11963 if test $emacs_cv_lesstif = yes; then
11964 # Make sure this -I option remains in CPPFLAGS after it is set
11965 # back to REAL_CPPFLAGS.
11966 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11967 # have those other -I options anyway. Ultimately, having this
11968 # directory ultimately in CPPFLAGS will be enough.
11969 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11970 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11971 else
11972 CFLAGS=$OLD_CFLAGS
11973 CPPFLAGS=$OLD_CPPFLAGS
11976 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11977 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
11979 else
11980 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
11987 USE_TOOLKIT_SCROLL_BARS=no
11988 if test "${with_toolkit_scroll_bars}" != "no"; then
11989 if test "${USE_X_TOOLKIT}" != "none"; then
11990 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11991 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11993 HAVE_XAW3D=no
11994 USE_TOOLKIT_SCROLL_BARS=yes
11995 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
11996 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11998 USE_TOOLKIT_SCROLL_BARS=yes
12000 elif test "${HAVE_GTK}" = "yes"; then
12001 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12003 USE_TOOLKIT_SCROLL_BARS=yes
12004 elif test "${HAVE_NS}" = "yes"; then
12005 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12007 USE_TOOLKIT_SCROLL_BARS=yes
12008 elif test "${HAVE_W32}" = "yes"; then
12009 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12011 USE_TOOLKIT_SCROLL_BARS=yes
12015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12016 /* end confdefs.h. */
12018 #include <X11/Xlib.h>
12019 #include <X11/Xresource.h>
12021 main ()
12023 XIMProc callback;
12025 return 0;
12027 _ACEOF
12028 if ac_fn_c_try_compile "$LINENO"; then :
12029 HAVE_XIM=yes
12031 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12033 else
12034 HAVE_XIM=no
12036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12039 if test "${with_xim}" != "no"; then
12041 $as_echo "#define USE_XIM 1" >>confdefs.h
12046 if test "${HAVE_XIM}" != "no"; then
12047 late_CFLAGS=$CFLAGS
12048 if test "$GCC" = yes; then
12049 CFLAGS="$CFLAGS --pedantic-errors"
12051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h. */
12054 #include <X11/Xlib.h>
12055 #include <X11/Xresource.h>
12057 main ()
12059 Display *display;
12060 XrmDatabase db;
12061 char *res_name;
12062 char *res_class;
12063 XIMProc callback;
12064 XPointer *client_data;
12065 #ifndef __GNUC__
12066 /* If we're not using GCC, it's probably not XFree86, and this is
12067 probably right, but we can't use something like --pedantic-errors. */
12068 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12069 char*, XIMProc, XPointer*);
12070 #endif
12071 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12072 client_data);
12074 return 0;
12076 _ACEOF
12077 if ac_fn_c_try_compile "$LINENO"; then :
12078 emacs_cv_arg6_star=yes
12080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12081 if test "$emacs_cv_arg6_star" = yes; then
12082 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12084 else
12085 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12088 CFLAGS=$late_CFLAGS
12091 ### Start of font-backend (under any platform) section.
12092 # (nothing here yet -- this is a placeholder)
12093 ### End of font-backend (under any platform) section.
12095 ### Start of font-backend (under X11) section.
12096 if test "${HAVE_X11}" = "yes"; then
12098 succeeded=no
12100 if test "$PKG_CONFIG" = "no" ; then
12101 HAVE_FC=no
12102 else
12103 PKG_CONFIG_MIN_VERSION=0.9.0
12104 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12106 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12108 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12109 FONTCONFIG_CFLAGS=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12110 FONTCONFIG_LIBS=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12111 edit_cflags="
12112 s,///*,/,g
12113 s/^/ /
12114 s/ -I/ $isystem/g
12115 s/^ //
12117 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12118 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12120 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12121 succeeded=yes
12122 else
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124 $as_echo "no" >&6; }
12125 FONTCONFIG_CFLAGS=""
12126 FONTCONFIG_LIBS=""
12127 ## If we have a custom action on failure, don't print errors, but
12128 ## do set a variable so people can do so. Do it in a subshell
12129 ## to capture any diagnostics in invoking pkg-config.
12130 FONTCONFIG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12136 else
12137 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12138 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12142 if test $succeeded = yes; then
12143 HAVE_FC=yes
12144 else
12145 HAVE_FC=no
12149 ## Use -lXft if available, unless `--with-xft=no'.
12150 HAVE_XFT=maybe
12151 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12152 with_xft="no";
12154 if test "x${with_xft}" != "xno"; then
12157 succeeded=no
12159 if test "$PKG_CONFIG" = "no" ; then
12160 HAVE_XFT=no
12161 else
12162 PKG_CONFIG_MIN_VERSION=0.9.0
12163 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12165 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12167 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12168 XFT_CFLAGS=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12169 XFT_LIBS=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12170 edit_cflags="
12171 s,///*,/,g
12172 s/^/ /
12173 s/ -I/ $isystem/g
12174 s/^ //
12176 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12177 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12179 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12180 succeeded=yes
12181 else
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183 $as_echo "no" >&6; }
12184 XFT_CFLAGS=""
12185 XFT_LIBS=""
12186 ## If we have a custom action on failure, don't print errors, but
12187 ## do set a variable so people can do so. Do it in a subshell
12188 ## to capture any diagnostics in invoking pkg-config.
12189 XFT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12195 else
12196 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12197 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12201 if test $succeeded = yes; then
12203 else
12204 HAVE_XFT=no
12207 ## Because xftfont.c uses XRenderQueryExtension, we also
12208 ## need to link to -lXrender.
12209 HAVE_XRENDER=no
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12211 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12212 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12213 $as_echo_n "(cached) " >&6
12214 else
12215 ac_check_lib_save_LIBS=$LIBS
12216 LIBS="-lXrender $LIBS"
12217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12218 /* end confdefs.h. */
12220 /* Override any GCC internal prototype to avoid an error.
12221 Use char because int might match the return type of a GCC
12222 builtin and then its argument prototype would still apply. */
12223 #ifdef __cplusplus
12224 extern "C"
12225 #endif
12226 char XRenderQueryExtension ();
12228 main ()
12230 return XRenderQueryExtension ();
12232 return 0;
12234 _ACEOF
12235 if ac_fn_c_try_link "$LINENO"; then :
12236 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12237 else
12238 ac_cv_lib_Xrender_XRenderQueryExtension=no
12240 rm -f core conftest.err conftest.$ac_objext \
12241 conftest$ac_exeext conftest.$ac_ext
12242 LIBS=$ac_check_lib_save_LIBS
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12245 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12246 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12247 HAVE_XRENDER=yes
12250 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12251 OLD_CPPFLAGS="$CPPFLAGS"
12252 OLD_CFLAGS="$CFLAGS"
12253 OLD_LIBS="$LIBS"
12254 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12255 CFLAGS="$CFLAGS $XFT_CFLAGS"
12256 XFT_LIBS="-lXrender $XFT_LIBS"
12257 LIBS="$XFT_LIBS $LIBS"
12258 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12259 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12261 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12262 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12263 $as_echo_n "(cached) " >&6
12264 else
12265 ac_check_lib_save_LIBS=$LIBS
12266 LIBS="-lXft $XFT_LIBS $LIBS"
12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h. */
12270 /* Override any GCC internal prototype to avoid an error.
12271 Use char because int might match the return type of a GCC
12272 builtin and then its argument prototype would still apply. */
12273 #ifdef __cplusplus
12274 extern "C"
12275 #endif
12276 char XftFontOpen ();
12278 main ()
12280 return XftFontOpen ();
12282 return 0;
12284 _ACEOF
12285 if ac_fn_c_try_link "$LINENO"; then :
12286 ac_cv_lib_Xft_XftFontOpen=yes
12287 else
12288 ac_cv_lib_Xft_XftFontOpen=no
12290 rm -f core conftest.err conftest.$ac_objext \
12291 conftest$ac_exeext conftest.$ac_ext
12292 LIBS=$ac_check_lib_save_LIBS
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12295 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12296 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12297 HAVE_XFT=yes
12304 if test "${HAVE_XFT}" = "yes"; then
12306 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12309 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12310 else
12311 CPPFLAGS="$OLD_CPPFLAGS"
12312 CFLAGS="$OLD_CFLAGS"
12313 LIBS="$OLD_LIBS"
12314 fi # "${HAVE_XFT}" = "yes"
12315 fi # "$HAVE_XFT" != no
12316 fi # "x${with_xft}" != "xno"
12318 ## We used to allow building with FreeType and without Xft.
12319 ## However, the ftx font backend driver is not in good shape.
12320 if test "$HAVE_XFT" != "yes"; then
12321 HAVE_XFT=no
12322 HAVE_FREETYPE=no
12323 else
12325 succeeded=no
12327 if test "$PKG_CONFIG" = "no" ; then
12328 HAVE_FREETYPE=no
12329 else
12330 PKG_CONFIG_MIN_VERSION=0.9.0
12331 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12333 $as_echo_n "checking for freetype2... " >&6; }
12335 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
12336 FREETYPE_CFLAGS=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
12337 FREETYPE_LIBS=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
12338 edit_cflags="
12339 s,///*,/,g
12340 s/^/ /
12341 s/ -I/ $isystem/g
12342 s/^ //
12344 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12345 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12347 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12348 succeeded=yes
12349 else
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351 $as_echo "no" >&6; }
12352 FREETYPE_CFLAGS=""
12353 FREETYPE_LIBS=""
12354 ## If we have a custom action on failure, don't print errors, but
12355 ## do set a variable so people can do so. Do it in a subshell
12356 ## to capture any diagnostics in invoking pkg-config.
12357 FREETYPE_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
12363 else
12364 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12365 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12369 if test $succeeded = yes; then
12370 HAVE_FREETYPE=yes
12371 else
12372 HAVE_FREETYPE=no
12376 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12379 HAVE_LIBOTF=no
12380 if test "${HAVE_FREETYPE}" = "yes"; then
12382 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12384 if test "${with_libotf}" != "no"; then
12386 succeeded=no
12388 if test "$PKG_CONFIG" = "no" ; then
12389 HAVE_LIBOTF=no
12390 else
12391 PKG_CONFIG_MIN_VERSION=0.9.0
12392 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12394 $as_echo_n "checking for libotf... " >&6; }
12396 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
12397 LIBOTF_CFLAGS=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
12398 LIBOTF_LIBS=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
12399 edit_cflags="
12400 s,///*,/,g
12401 s/^/ /
12402 s/ -I/ $isystem/g
12403 s/^ //
12405 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12406 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12408 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12409 succeeded=yes
12410 else
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12412 $as_echo "no" >&6; }
12413 LIBOTF_CFLAGS=""
12414 LIBOTF_LIBS=""
12415 ## If we have a custom action on failure, don't print errors, but
12416 ## do set a variable so people can do so. Do it in a subshell
12417 ## to capture any diagnostics in invoking pkg-config.
12418 LIBOTF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
12424 else
12425 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12426 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12430 if test $succeeded = yes; then
12431 HAVE_LIBOTF=yes
12432 else
12433 HAVE_LIBOTF=no
12436 if test "$HAVE_LIBOTF" = "yes"; then
12438 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12441 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12442 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12443 $as_echo_n "(cached) " >&6
12444 else
12445 ac_check_lib_save_LIBS=$LIBS
12446 LIBS="-lotf $LIBS"
12447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448 /* end confdefs.h. */
12450 /* Override any GCC internal prototype to avoid an error.
12451 Use char because int might match the return type of a GCC
12452 builtin and then its argument prototype would still apply. */
12453 #ifdef __cplusplus
12454 extern "C"
12455 #endif
12456 char OTF_get_variation_glyphs ();
12458 main ()
12460 return OTF_get_variation_glyphs ();
12462 return 0;
12464 _ACEOF
12465 if ac_fn_c_try_link "$LINENO"; then :
12466 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12467 else
12468 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12470 rm -f core conftest.err conftest.$ac_objext \
12471 conftest$ac_exeext conftest.$ac_ext
12472 LIBS=$ac_check_lib_save_LIBS
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12475 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12476 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12477 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12478 else
12479 HAVE_OTF_GET_VARIATION_GLYPHS=no
12482 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12484 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12491 HAVE_M17N_FLT=no
12492 if test "${HAVE_LIBOTF}" = yes; then
12493 if test "${with_m17n_flt}" != "no"; then
12495 succeeded=no
12497 if test "$PKG_CONFIG" = "no" ; then
12498 HAVE_M17N_FLT=no
12499 else
12500 PKG_CONFIG_MIN_VERSION=0.9.0
12501 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12503 $as_echo_n "checking for m17n-flt... " >&6; }
12505 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
12506 M17N_FLT_CFLAGS=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
12507 M17N_FLT_LIBS=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
12508 edit_cflags="
12509 s,///*,/,g
12510 s/^/ /
12511 s/ -I/ $isystem/g
12512 s/^ //
12514 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12515 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12517 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12518 succeeded=yes
12519 else
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12521 $as_echo "no" >&6; }
12522 M17N_FLT_CFLAGS=""
12523 M17N_FLT_LIBS=""
12524 ## If we have a custom action on failure, don't print errors, but
12525 ## do set a variable so people can do so. Do it in a subshell
12526 ## to capture any diagnostics in invoking pkg-config.
12527 M17N_FLT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
12533 else
12534 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12535 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12539 if test $succeeded = yes; then
12540 HAVE_M17N_FLT=yes
12541 else
12542 HAVE_M17N_FLT=no
12545 if test "$HAVE_M17N_FLT" = "yes"; then
12547 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12552 else
12553 HAVE_XFT=no
12554 HAVE_FREETYPE=no
12555 HAVE_LIBOTF=no
12556 HAVE_M17N_FLT=no
12559 ### End of font-backend (under X11) section.
12570 ### Use -lXpm if available, unless `--with-xpm=no'.
12571 HAVE_XPM=no
12572 LIBXPM=
12574 if test "${HAVE_W32}" = "yes"; then
12575 if test "${with_xpm}" != "no"; then
12576 SAVE_CPPFLAGS="$CPPFLAGS"
12577 SAVE_LDFLAGS="$LDFLAGS"
12578 CPPFLAGS="$CPPFLAGS -I/usr/include/noX"
12579 LDFLAGS="$LDFLAGS -L/usr/lib/noX"
12580 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12581 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
12583 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
12584 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
12585 $as_echo_n "(cached) " >&6
12586 else
12587 ac_check_lib_save_LIBS=$LIBS
12588 LIBS="-lXpm $LIBS"
12589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12590 /* end confdefs.h. */
12592 /* Override any GCC internal prototype to avoid an error.
12593 Use char because int might match the return type of a GCC
12594 builtin and then its argument prototype would still apply. */
12595 #ifdef __cplusplus
12596 extern "C"
12597 #endif
12598 char XpmReadFileToImage ();
12600 main ()
12602 return XpmReadFileToImage ();
12604 return 0;
12606 _ACEOF
12607 if ac_fn_c_try_link "$LINENO"; then :
12608 ac_cv_lib_Xpm_XpmReadFileToImage=yes
12609 else
12610 ac_cv_lib_Xpm_XpmReadFileToImage=no
12612 rm -f core conftest.err conftest.$ac_objext \
12613 conftest$ac_exeext conftest.$ac_ext
12614 LIBS=$ac_check_lib_save_LIBS
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
12617 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
12618 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then :
12619 HAVE_XPM=yes
12625 if test "${HAVE_XPM}" = "yes"; then
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12627 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12629 /* end confdefs.h. */
12630 #include "X11/xpm.h"
12631 #ifndef XpmReturnAllocPixels
12632 no_return_alloc_pixels
12633 #endif
12635 _ACEOF
12636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12637 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12638 HAVE_XPM=no
12639 else
12640 HAVE_XPM=yes
12642 rm -f conftest*
12645 if test "${HAVE_XPM}" = "yes"; then
12646 REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX"
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12648 $as_echo "yes" >&6; }
12649 else
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12651 $as_echo "no" >&6; }
12652 CPPFLAGS="$SAVE_CPPFLAGS"
12653 LDFLAGS="$SAVE_LDFLAGS"
12658 if test "${HAVE_XPM}" = "yes"; then
12660 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12662 LIBXPM=-lXpm
12666 if test "${HAVE_X11}" = "yes"; then
12667 if test "${with_xpm}" != "no"; then
12668 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12669 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12671 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12672 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12673 $as_echo_n "(cached) " >&6
12674 else
12675 ac_check_lib_save_LIBS=$LIBS
12676 LIBS="-lXpm -lX11 $LIBS"
12677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12678 /* end confdefs.h. */
12680 /* Override any GCC internal prototype to avoid an error.
12681 Use char because int might match the return type of a GCC
12682 builtin and then its argument prototype would still apply. */
12683 #ifdef __cplusplus
12684 extern "C"
12685 #endif
12686 char XpmReadFileToPixmap ();
12688 main ()
12690 return XpmReadFileToPixmap ();
12692 return 0;
12694 _ACEOF
12695 if ac_fn_c_try_link "$LINENO"; then :
12696 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12697 else
12698 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12700 rm -f core conftest.err conftest.$ac_objext \
12701 conftest$ac_exeext conftest.$ac_ext
12702 LIBS=$ac_check_lib_save_LIBS
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12705 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12706 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12707 HAVE_XPM=yes
12713 if test "${HAVE_XPM}" = "yes"; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12715 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12717 /* end confdefs.h. */
12718 #include "X11/xpm.h"
12719 #ifndef XpmReturnAllocPixels
12720 no_return_alloc_pixels
12721 #endif
12723 _ACEOF
12724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12725 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12726 HAVE_XPM=no
12727 else
12728 HAVE_XPM=yes
12730 rm -f conftest*
12733 if test "${HAVE_XPM}" = "yes"; then
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12735 $as_echo "yes" >&6; }
12736 else
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12738 $as_echo "no" >&6; }
12743 if test "${HAVE_XPM}" = "yes"; then
12745 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12747 LIBXPM=-lXpm
12753 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12754 HAVE_JPEG=no
12755 LIBJPEG=
12756 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12757 if test "${with_jpeg}" != "no"; then
12758 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12759 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12761 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12762 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12763 $as_echo_n "(cached) " >&6
12764 else
12765 ac_check_lib_save_LIBS=$LIBS
12766 LIBS="-ljpeg $LIBS"
12767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h. */
12770 /* Override any GCC internal prototype to avoid an error.
12771 Use char because int might match the return type of a GCC
12772 builtin and then its argument prototype would still apply. */
12773 #ifdef __cplusplus
12774 extern "C"
12775 #endif
12776 char jpeg_destroy_compress ();
12778 main ()
12780 return jpeg_destroy_compress ();
12782 return 0;
12784 _ACEOF
12785 if ac_fn_c_try_link "$LINENO"; then :
12786 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12787 else
12788 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12790 rm -f core conftest.err conftest.$ac_objext \
12791 conftest$ac_exeext conftest.$ac_ext
12792 LIBS=$ac_check_lib_save_LIBS
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12795 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12796 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12797 HAVE_JPEG=yes
12805 if test "${HAVE_JPEG}" = "yes"; then
12806 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h. */
12810 #include <jpeglib.h>
12811 version=JPEG_LIB_VERSION
12813 _ACEOF
12814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12815 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12816 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12818 else
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12820 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12821 HAVE_JPEG=no
12823 rm -f conftest*
12826 if test "${HAVE_JPEG}" = "yes"; then
12827 LIBJPEG=-ljpeg
12832 ### Use -lpng if available, unless `--with-png=no'.
12833 HAVE_PNG=no
12834 LIBPNG=
12835 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12836 if test "${with_png}" != "no"; then
12837 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12838 # in /usr/include/libpng.
12839 for ac_header in png.h libpng/png.h
12840 do :
12841 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12842 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12843 eval as_val=\$$as_ac_Header
12844 if test "x$as_val" = x""yes; then :
12845 cat >>confdefs.h <<_ACEOF
12846 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12847 _ACEOF
12848 break
12851 done
12853 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12855 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12856 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12857 $as_echo_n "(cached) " >&6
12858 else
12859 ac_check_lib_save_LIBS=$LIBS
12860 LIBS="-lpng -lz -lm $LIBS"
12861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12862 /* end confdefs.h. */
12864 /* Override any GCC internal prototype to avoid an error.
12865 Use char because int might match the return type of a GCC
12866 builtin and then its argument prototype would still apply. */
12867 #ifdef __cplusplus
12868 extern "C"
12869 #endif
12870 char png_get_channels ();
12872 main ()
12874 return png_get_channels ();
12876 return 0;
12878 _ACEOF
12879 if ac_fn_c_try_link "$LINENO"; then :
12880 ac_cv_lib_png_png_get_channels=yes
12881 else
12882 ac_cv_lib_png_png_get_channels=no
12884 rm -f core conftest.err conftest.$ac_objext \
12885 conftest$ac_exeext conftest.$ac_ext
12886 LIBS=$ac_check_lib_save_LIBS
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12889 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12890 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12891 HAVE_PNG=yes
12897 if test "${HAVE_PNG}" = "yes"; then
12899 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12901 LIBPNG="-lpng -lz -lm"
12903 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
12904 # include <libpng/png.h>
12905 #else
12906 # include <png.h>
12907 #endif
12910 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
12912 else
12914 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
12922 ### Use -ltiff if available, unless `--with-tiff=no'.
12923 HAVE_TIFF=no
12924 LIBTIFF=
12925 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12926 if test "${with_tiff}" != "no"; then
12927 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12928 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12929 tifflibs="-lz -lm"
12930 # At least one tiff package requires the jpeg library.
12931 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12933 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12934 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12935 $as_echo_n "(cached) " >&6
12936 else
12937 ac_check_lib_save_LIBS=$LIBS
12938 LIBS="-ltiff $tifflibs $LIBS"
12939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940 /* end confdefs.h. */
12942 /* Override any GCC internal prototype to avoid an error.
12943 Use char because int might match the return type of a GCC
12944 builtin and then its argument prototype would still apply. */
12945 #ifdef __cplusplus
12946 extern "C"
12947 #endif
12948 char TIFFGetVersion ();
12950 main ()
12952 return TIFFGetVersion ();
12954 return 0;
12956 _ACEOF
12957 if ac_fn_c_try_link "$LINENO"; then :
12958 ac_cv_lib_tiff_TIFFGetVersion=yes
12959 else
12960 ac_cv_lib_tiff_TIFFGetVersion=no
12962 rm -f core conftest.err conftest.$ac_objext \
12963 conftest$ac_exeext conftest.$ac_ext
12964 LIBS=$ac_check_lib_save_LIBS
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12967 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12968 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12969 HAVE_TIFF=yes
12977 if test "${HAVE_TIFF}" = "yes"; then
12979 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12981 LIBTIFF=-ltiff
12986 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12987 HAVE_GIF=no
12988 LIBGIF=
12989 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
12990 || test "${HAVE_W32}" = "yes"; then
12991 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12992 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12993 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12994 # Earlier versions can crash Emacs.
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12996 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12997 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12998 $as_echo_n "(cached) " >&6
12999 else
13000 ac_check_lib_save_LIBS=$LIBS
13001 LIBS="-lgif $LIBS"
13002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13003 /* end confdefs.h. */
13005 /* Override any GCC internal prototype to avoid an error.
13006 Use char because int might match the return type of a GCC
13007 builtin and then its argument prototype would still apply. */
13008 #ifdef __cplusplus
13009 extern "C"
13010 #endif
13011 char EGifPutExtensionLast ();
13013 main ()
13015 return EGifPutExtensionLast ();
13017 return 0;
13019 _ACEOF
13020 if ac_fn_c_try_link "$LINENO"; then :
13021 ac_cv_lib_gif_EGifPutExtensionLast=yes
13022 else
13023 ac_cv_lib_gif_EGifPutExtensionLast=no
13025 rm -f core conftest.err conftest.$ac_objext \
13026 conftest$ac_exeext conftest.$ac_ext
13027 LIBS=$ac_check_lib_save_LIBS
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13030 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13031 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13032 HAVE_GIF=yes
13033 else
13034 HAVE_GIF=maybe
13041 if test "$HAVE_GIF" = yes; then
13042 LIBGIF=-lgif
13043 elif test "$HAVE_GIF" = maybe; then
13044 # If gif_lib.h but no libgif, try libungif.
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13046 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13047 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13048 $as_echo_n "(cached) " >&6
13049 else
13050 ac_check_lib_save_LIBS=$LIBS
13051 LIBS="-lungif $LIBS"
13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13053 /* end confdefs.h. */
13055 /* Override any GCC internal prototype to avoid an error.
13056 Use char because int might match the return type of a GCC
13057 builtin and then its argument prototype would still apply. */
13058 #ifdef __cplusplus
13059 extern "C"
13060 #endif
13061 char EGifPutExtensionLast ();
13063 main ()
13065 return EGifPutExtensionLast ();
13067 return 0;
13069 _ACEOF
13070 if ac_fn_c_try_link "$LINENO"; then :
13071 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13072 else
13073 ac_cv_lib_ungif_EGifPutExtensionLast=no
13075 rm -f core conftest.err conftest.$ac_objext \
13076 conftest$ac_exeext conftest.$ac_ext
13077 LIBS=$ac_check_lib_save_LIBS
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13080 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13081 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13082 HAVE_GIF=yes
13083 else
13084 HAVE_GIF=no
13087 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13090 if test "${HAVE_GIF}" = "yes"; then
13092 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13098 if test "${HAVE_X11}" = "yes"; then
13099 MISSING=""
13100 WITH_NO=""
13101 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13102 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13103 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13104 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13105 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13106 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13107 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13108 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13109 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13110 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13112 if test "X${MISSING}" != X; then
13113 as_fn_error "The following required libraries were not found:
13114 $MISSING
13115 Maybe some development libraries/packages are missing?
13116 If you don't want to link with them give
13117 $WITH_NO
13118 as options to configure" "$LINENO" 5
13122 ### Use -lgpm if available, unless `--with-gpm=no'.
13123 HAVE_GPM=no
13124 LIBGPM=
13125 if test "${with_gpm}" != "no"; then
13126 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13127 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13129 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13130 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13131 $as_echo_n "(cached) " >&6
13132 else
13133 ac_check_lib_save_LIBS=$LIBS
13134 LIBS="-lgpm $LIBS"
13135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h. */
13138 /* Override any GCC internal prototype to avoid an error.
13139 Use char because int might match the return type of a GCC
13140 builtin and then its argument prototype would still apply. */
13141 #ifdef __cplusplus
13142 extern "C"
13143 #endif
13144 char Gpm_Open ();
13146 main ()
13148 return Gpm_Open ();
13150 return 0;
13152 _ACEOF
13153 if ac_fn_c_try_link "$LINENO"; then :
13154 ac_cv_lib_gpm_Gpm_Open=yes
13155 else
13156 ac_cv_lib_gpm_Gpm_Open=no
13158 rm -f core conftest.err conftest.$ac_objext \
13159 conftest$ac_exeext conftest.$ac_ext
13160 LIBS=$ac_check_lib_save_LIBS
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13163 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13164 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13165 HAVE_GPM=yes
13172 if test "${HAVE_GPM}" = "yes"; then
13174 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13176 LIBGPM=-lgpm
13185 GNUSTEP_CFLAGS=
13186 ### Use NeXTstep API to implement GUI.
13187 if test "${HAVE_NS}" = "yes"; then
13189 $as_echo "#define HAVE_NS 1" >>confdefs.h
13191 if test "${NS_IMPL_COCOA}" = "yes"; then
13193 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13196 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13198 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13200 # See also .m.o rule in Makefile.in */
13201 # FIXME: are all these flags really needed? Document here why. */
13202 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13203 ## Extra CFLAGS applied to src/*.m files.
13204 GNU_OBJC_CFLAGS="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
13206 # We also have mouse menus.
13207 HAVE_MENUS=yes
13208 OTHER_FILES=ns-app
13211 if test "${HAVE_W32}" = "yes"; then
13212 HAVE_MENUS=yes
13215 ### Use session management (-lSM -lICE) if available
13216 HAVE_X_SM=no
13217 LIBXSM=
13218 if test "${HAVE_X11}" = "yes"; then
13219 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13220 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13222 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13223 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13224 $as_echo_n "(cached) " >&6
13225 else
13226 ac_check_lib_save_LIBS=$LIBS
13227 LIBS="-lSM -lICE $LIBS"
13228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229 /* end confdefs.h. */
13231 /* Override any GCC internal prototype to avoid an error.
13232 Use char because int might match the return type of a GCC
13233 builtin and then its argument prototype would still apply. */
13234 #ifdef __cplusplus
13235 extern "C"
13236 #endif
13237 char SmcOpenConnection ();
13239 main ()
13241 return SmcOpenConnection ();
13243 return 0;
13245 _ACEOF
13246 if ac_fn_c_try_link "$LINENO"; then :
13247 ac_cv_lib_SM_SmcOpenConnection=yes
13248 else
13249 ac_cv_lib_SM_SmcOpenConnection=no
13251 rm -f core conftest.err conftest.$ac_objext \
13252 conftest$ac_exeext conftest.$ac_ext
13253 LIBS=$ac_check_lib_save_LIBS
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13256 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13257 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13258 HAVE_X_SM=yes
13265 if test "${HAVE_X_SM}" = "yes"; then
13267 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13269 LIBXSM="-lSM -lICE"
13270 case "$LIBS" in
13271 *-lSM*) ;;
13272 *) LIBS="$LIBXSM $LIBS" ;;
13273 esac
13278 ### Use libxml (-lxml2) if available
13279 HAVE_LIBXML2=no
13280 if test "${with_xml2}" != "no"; then
13281 ### I'm not sure what the version number should be, so I just guessed.
13283 succeeded=no
13285 if test "$PKG_CONFIG" = "no" ; then
13286 HAVE_LIBXML2=no
13287 else
13288 PKG_CONFIG_MIN_VERSION=0.9.0
13289 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13291 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13293 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13294 LIBXML2_CFLAGS=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13295 LIBXML2_LIBS=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13296 edit_cflags="
13297 s,///*,/,g
13298 s/^/ /
13299 s/ -I/ $isystem/g
13300 s/^ //
13302 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13303 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13305 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13306 succeeded=yes
13307 else
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309 $as_echo "no" >&6; }
13310 LIBXML2_CFLAGS=""
13311 LIBXML2_LIBS=""
13312 ## If we have a custom action on failure, don't print errors, but
13313 ## do set a variable so people can do so. Do it in a subshell
13314 ## to capture any diagnostics in invoking pkg-config.
13315 LIBXML2_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
13321 else
13322 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13323 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13327 if test $succeeded = yes; then
13328 HAVE_LIBXML2=yes
13329 else
13330 HAVE_LIBXML2=no
13333 if test "${HAVE_LIBXML2}" = "yes"; then
13334 LIBS="$LIBXML2_LIBS $LIBS"
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13336 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13337 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13338 $as_echo_n "(cached) " >&6
13339 else
13340 ac_check_lib_save_LIBS=$LIBS
13341 LIBS="-lxml2 $LIBS"
13342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343 /* end confdefs.h. */
13345 /* Override any GCC internal prototype to avoid an error.
13346 Use char because int might match the return type of a GCC
13347 builtin and then its argument prototype would still apply. */
13348 #ifdef __cplusplus
13349 extern "C"
13350 #endif
13351 char htmlReadMemory ();
13353 main ()
13355 return htmlReadMemory ();
13357 return 0;
13359 _ACEOF
13360 if ac_fn_c_try_link "$LINENO"; then :
13361 ac_cv_lib_xml2_htmlReadMemory=yes
13362 else
13363 ac_cv_lib_xml2_htmlReadMemory=no
13365 rm -f core conftest.err conftest.$ac_objext \
13366 conftest$ac_exeext conftest.$ac_ext
13367 LIBS=$ac_check_lib_save_LIBS
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13370 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13371 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13372 HAVE_LIBXML2=yes
13373 else
13374 HAVE_LIBXML2=no
13377 if test "${HAVE_LIBXML2}" = "yes"; then
13379 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13381 else
13382 LIBXML2_LIBS=""
13383 LIBXML2_CFLAGS=""
13390 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13392 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13393 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13394 $as_echo_n "(cached) " >&6
13395 else
13396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397 /* end confdefs.h. */
13398 #include <netdb.h>
13400 main ()
13402 return h_errno;
13404 return 0;
13406 _ACEOF
13407 if ac_fn_c_try_link "$LINENO"; then :
13408 emacs_cv_netdb_declares_h_errno=yes
13409 else
13410 emacs_cv_netdb_declares_h_errno=no
13412 rm -f core conftest.err conftest.$ac_objext \
13413 conftest$ac_exeext conftest.$ac_ext
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13416 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13417 if test $emacs_cv_netdb_declares_h_errno = yes; then
13419 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13423 # sqrt and other floating-point functions such as fmod and frexp
13424 # are found in -lm on most systems.
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13426 $as_echo_n "checking for sqrt in -lm... " >&6; }
13427 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13428 $as_echo_n "(cached) " >&6
13429 else
13430 ac_check_lib_save_LIBS=$LIBS
13431 LIBS="-lm $LIBS"
13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h. */
13435 /* Override any GCC internal prototype to avoid an error.
13436 Use char because int might match the return type of a GCC
13437 builtin and then its argument prototype would still apply. */
13438 #ifdef __cplusplus
13439 extern "C"
13440 #endif
13441 char sqrt ();
13443 main ()
13445 return sqrt ();
13447 return 0;
13449 _ACEOF
13450 if ac_fn_c_try_link "$LINENO"; then :
13451 ac_cv_lib_m_sqrt=yes
13452 else
13453 ac_cv_lib_m_sqrt=no
13455 rm -f core conftest.err conftest.$ac_objext \
13456 conftest$ac_exeext conftest.$ac_ext
13457 LIBS=$ac_check_lib_save_LIBS
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13460 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13461 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13462 cat >>confdefs.h <<_ACEOF
13463 #define HAVE_LIBM 1
13464 _ACEOF
13466 LIBS="-lm $LIBS"
13471 # Check for mail-locking functions in a "mail" library. Probably this should
13472 # have the same check as for liblockfile below.
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13474 $as_echo_n "checking for maillock in -lmail... " >&6; }
13475 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13476 $as_echo_n "(cached) " >&6
13477 else
13478 ac_check_lib_save_LIBS=$LIBS
13479 LIBS="-lmail $LIBS"
13480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13481 /* end confdefs.h. */
13483 /* Override any GCC internal prototype to avoid an error.
13484 Use char because int might match the return type of a GCC
13485 builtin and then its argument prototype would still apply. */
13486 #ifdef __cplusplus
13487 extern "C"
13488 #endif
13489 char maillock ();
13491 main ()
13493 return maillock ();
13495 return 0;
13497 _ACEOF
13498 if ac_fn_c_try_link "$LINENO"; then :
13499 ac_cv_lib_mail_maillock=yes
13500 else
13501 ac_cv_lib_mail_maillock=no
13503 rm -f core conftest.err conftest.$ac_objext \
13504 conftest$ac_exeext conftest.$ac_ext
13505 LIBS=$ac_check_lib_save_LIBS
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13508 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13509 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13510 have_mail=yes
13511 else
13512 have_mail=no
13515 if test $have_mail = yes; then
13516 LIBS_MAIL=-lmail
13517 LIBS="$LIBS_MAIL $LIBS"
13519 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13521 else
13522 LIBS_MAIL=
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13525 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13526 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13527 $as_echo_n "(cached) " >&6
13528 else
13529 ac_check_lib_save_LIBS=$LIBS
13530 LIBS="-llockfile $LIBS"
13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532 /* end confdefs.h. */
13534 /* Override any GCC internal prototype to avoid an error.
13535 Use char because int might match the return type of a GCC
13536 builtin and then its argument prototype would still apply. */
13537 #ifdef __cplusplus
13538 extern "C"
13539 #endif
13540 char maillock ();
13542 main ()
13544 return maillock ();
13546 return 0;
13548 _ACEOF
13549 if ac_fn_c_try_link "$LINENO"; then :
13550 ac_cv_lib_lockfile_maillock=yes
13551 else
13552 ac_cv_lib_lockfile_maillock=no
13554 rm -f core conftest.err conftest.$ac_objext \
13555 conftest$ac_exeext conftest.$ac_ext
13556 LIBS=$ac_check_lib_save_LIBS
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13559 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13560 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13561 have_lockfile=yes
13562 else
13563 have_lockfile=no
13566 if test $have_lockfile = yes; then
13567 LIBS_MAIL=-llockfile
13568 LIBS="$LIBS_MAIL $LIBS"
13570 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13572 else
13573 # If we have the shared liblockfile, assume we must use it for mail
13574 # locking (e.g. Debian). If we couldn't link against liblockfile
13575 # (no liblockfile.a installed), ensure that we don't need to.
13576 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13577 set dummy liblockfile.so; ac_word=$2
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13579 $as_echo_n "checking for $ac_word... " >&6; }
13580 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13581 $as_echo_n "(cached) " >&6
13582 else
13583 if test -n "$liblockfile"; then
13584 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13585 else
13586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13587 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13588 for as_dir in $as_dummy
13590 IFS=$as_save_IFS
13591 test -z "$as_dir" && as_dir=.
13592 for ac_exec_ext in '' $ac_executable_extensions; do
13593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13594 ac_cv_prog_liblockfile="yes"
13595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13596 break 2
13598 done
13599 done
13600 IFS=$as_save_IFS
13602 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13605 liblockfile=$ac_cv_prog_liblockfile
13606 if test -n "$liblockfile"; then
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13608 $as_echo "$liblockfile" >&6; }
13609 else
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13611 $as_echo "no" >&6; }
13615 if test $ac_cv_prog_liblockfile = yes; then
13616 as_fn_error "Shared liblockfile found but can't link against it.
13617 This probably means that movemail could lose mail.
13618 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13626 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13627 ## interlock access to the mail spool. The alternative is a lock file named
13628 ## /usr/spool/mail/$USER.lock.
13629 mail_lock=no
13630 case "$opsys" in
13631 aix4-2) mail_lock="lockf" ;;
13633 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13635 ## On GNU/Linux systems, both methods are used by various mail programs.
13636 ## I assume most people are using newer mailers that have heard of flock.
13637 ## Change this if you need to.
13638 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13639 ## configure gets the right answers, and that means *NOT* using flock.
13640 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13641 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13642 ## Debian maintainer hasn't provided a clean fix for Emacs.
13643 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13644 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13645 ## correct logic. -- fx
13646 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13647 ## liblockfile is a Free Software replacement for libmail, used on
13648 ## Debian systems and elsewhere. -rfr.
13649 gnu-*)
13650 mail_lock="flock"
13651 if test $have_mail = yes || test $have_lockfile = yes; then
13652 test $ac_cv_header_maillock_h = yes && mail_lock=no
13655 esac
13657 BLESSMAIL_TARGET=
13658 case "$mail_lock" in
13659 flock)
13660 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13663 lockf)
13664 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13667 *) BLESSMAIL_TARGET="need-blessmail" ;;
13668 esac
13672 for ac_func in gethostname \
13673 getrusage get_current_dir_name \
13674 lrand48 \
13675 select getpagesize setlocale \
13676 utimes getrlimit setrlimit shutdown getaddrinfo \
13677 strsignal setitimer \
13678 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13679 gai_strerror mkstemp getline getdelim fsync sync \
13680 difftime posix_memalign \
13681 getpwent endpwent getgrent endgrent \
13682 touchlock \
13683 cfmakeraw cfsetspeed copysign __executable_start
13684 do :
13685 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13686 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13687 eval as_val=\$$as_ac_var
13688 if test "x$as_val" = x""yes; then :
13689 cat >>confdefs.h <<_ACEOF
13690 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13691 _ACEOF
13694 done
13697 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13698 ## has a broken `rint' in some library versions including math library
13699 ## version number A.09.05.
13700 ## You can fix the math library by installing patch number PHSS_4630.
13701 ## But we can fix it more reliably for Emacs by just not using rint.
13702 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13703 case $opsys in
13704 hpux*) : ;;
13705 *) for ac_func in random rint
13706 do :
13707 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13708 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13709 eval as_val=\$$as_ac_var
13710 if test "x$as_val" = x""yes; then :
13711 cat >>confdefs.h <<_ACEOF
13712 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13713 _ACEOF
13716 done
13718 esac
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13721 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13722 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13723 $as_echo_n "(cached) " >&6
13724 else
13725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13726 /* end confdefs.h. */
13729 main ()
13731 __builtin_unwind_init ();
13733 return 0;
13735 _ACEOF
13736 if ac_fn_c_try_link "$LINENO"; then :
13737 emacs_cv_func___builtin_unwind_init=yes
13738 else
13739 emacs_cv_func___builtin_unwind_init=no
13741 rm -f core conftest.err conftest.$ac_objext \
13742 conftest$ac_exeext conftest.$ac_ext
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13745 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13746 if test $emacs_cv_func___builtin_unwind_init = yes; then
13748 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13757 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13758 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13759 $as_echo_n "(cached) " >&6
13760 else
13761 while :; do
13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h. */
13764 #include <sys/types.h> /* for off_t */
13765 #include <stdio.h>
13767 main ()
13769 int (*fp) (FILE *, off_t, int) = fseeko;
13770 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13772 return 0;
13774 _ACEOF
13775 if ac_fn_c_try_link "$LINENO"; then :
13776 ac_cv_sys_largefile_source=no; break
13778 rm -f core conftest.err conftest.$ac_objext \
13779 conftest$ac_exeext conftest.$ac_ext
13780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13781 /* end confdefs.h. */
13782 #define _LARGEFILE_SOURCE 1
13783 #include <sys/types.h> /* for off_t */
13784 #include <stdio.h>
13786 main ()
13788 int (*fp) (FILE *, off_t, int) = fseeko;
13789 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13791 return 0;
13793 _ACEOF
13794 if ac_fn_c_try_link "$LINENO"; then :
13795 ac_cv_sys_largefile_source=1; break
13797 rm -f core conftest.err conftest.$ac_objext \
13798 conftest$ac_exeext conftest.$ac_ext
13799 ac_cv_sys_largefile_source=unknown
13800 break
13801 done
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13804 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13805 case $ac_cv_sys_largefile_source in #(
13806 no | unknown) ;;
13808 cat >>confdefs.h <<_ACEOF
13809 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13810 _ACEOF
13812 esac
13813 rm -rf conftest*
13815 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13816 # in glibc 2.1.3, but that breaks too many other things.
13817 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13818 if test $ac_cv_sys_largefile_source != unknown; then
13820 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13825 # UNIX98 PTYs.
13826 for ac_func in grantpt
13827 do :
13828 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13829 if test "x$ac_cv_func_grantpt" = x""yes; then :
13830 cat >>confdefs.h <<_ACEOF
13831 #define HAVE_GRANTPT 1
13832 _ACEOF
13835 done
13838 # PTY-related GNU extensions.
13839 for ac_func in getpt posix_openpt
13840 do :
13841 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13842 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13843 eval as_val=\$$as_ac_var
13844 if test "x$as_val" = x""yes; then :
13845 cat >>confdefs.h <<_ACEOF
13846 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13847 _ACEOF
13850 done
13853 # Check this now, so that we will NOT find the above functions in ncurses.
13854 # That is because we have not set up to link ncurses in lib-src.
13855 # It's better to believe a function is not available
13856 # than to expect to find it in ncurses.
13857 # Also we need tputs and friends to be able to build at all.
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13859 $as_echo_n "checking for library containing tputs... " >&6; }
13860 # Run a test program that contains a call to tputs, a call that is
13861 # never executed. This tests whether a pre-'main' dynamic linker
13862 # works with the library. It's too much trouble to actually call
13863 # tputs in the test program, due to portability hassles. When
13864 # cross-compiling, assume the test program will run if it links.
13866 # Maybe curses should be tried earlier?
13867 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13868 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
13869 OLIBS=$LIBS
13870 if test -z "$tputs_library"; then
13871 LIBS_TERMCAP=
13872 msg='none required'
13873 else
13874 LIBS_TERMCAP=-l$tputs_library
13875 msg=$LIBS_TERMCAP
13876 LIBS="$LIBS_TERMCAP $LIBS"
13878 if test "$cross_compiling" = yes; then :
13879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880 /* end confdefs.h. */
13882 extern void tputs (const char *, int, int (*)(int));
13883 int main (int argc, char **argv)
13885 if (argc == 10000)
13886 tputs (argv[0], 0, 0);
13887 return 0;
13890 _ACEOF
13891 if ac_fn_c_try_link "$LINENO"; then :
13893 else
13894 msg=no
13896 rm -f core conftest.err conftest.$ac_objext \
13897 conftest$ac_exeext conftest.$ac_ext
13898 else
13899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900 /* end confdefs.h. */
13902 extern void tputs (const char *, int, int (*)(int));
13903 int main (int argc, char **argv)
13905 if (argc == 10000)
13906 tputs (argv[0], 0, 0);
13907 return 0;
13910 _ACEOF
13911 if ac_fn_c_try_run "$LINENO"; then :
13913 else
13914 msg=no
13916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13917 conftest.$ac_objext conftest.beam conftest.$ac_ext
13920 LIBS=$OLIBS
13921 if test "X$msg" != Xno; then
13922 break
13924 done
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13926 $as_echo "$msg" >&6; }
13927 if test "X$msg" = Xno; then
13928 as_fn_error "The required function \`tputs' was not found in any library.
13929 The following libraries were tried (in order):
13930 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13931 Please try installing whichever of these libraries is most appropriate
13932 for your system, together with its header files.
13933 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13936 ## Use termcap instead of terminfo?
13937 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13938 TERMINFO=yes
13939 ## FIXME? In the cases below where we unconditionally set
13940 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13941 ## if that was found above to have tputs.
13942 ## Should we use the gnu* logic everywhere?
13943 case "$opsys" in
13944 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13945 ## The ncurses library has been moved out of the System framework in
13946 ## Mac OS X 10.2. So if configure detects it, set the command-line
13947 ## option to use it.
13948 darwin) LIBS_TERMCAP="-lncurses" ;;
13950 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
13952 freebsd)
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13954 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13955 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13956 $as_echo_n "(cached) " >&6
13957 else
13958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h. */
13960 #include <osreldate.h>
13962 main ()
13964 #if __FreeBSD_version < 400000
13965 fail;
13966 #endif
13969 return 0;
13971 _ACEOF
13972 if ac_fn_c_try_link "$LINENO"; then :
13973 emacs_cv_freebsd_terminfo=yes
13974 else
13975 emacs_cv_freebsd_terminfo=no
13977 rm -f core conftest.err conftest.$ac_objext \
13978 conftest$ac_exeext conftest.$ac_ext
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13983 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13985 if test $emacs_cv_freebsd_terminfo = yes; then
13986 LIBS_TERMCAP="-lncurses"
13987 else
13988 TERMINFO=no
13989 LIBS_TERMCAP="-ltermcap"
13993 netbsd)
13994 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13995 TERMINFO=no
13996 LIBS_TERMCAP="-ltermcap"
14000 openbsd) LIBS_TERMCAP="-lncurses" ;;
14002 ## hpux: Make sure we get select from libc rather than from libcurses
14003 ## because libcurses on HPUX 10.10 has a broken version of select.
14004 ## We used to use -lc -lcurses, but this may be cleaner.
14005 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
14006 # set that way, now it uses the default). Isn't this a contradiction?
14007 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14009 esac
14011 TERMCAP_OBJ=tparam.o
14012 if test $TERMINFO = yes; then
14014 $as_echo "#define TERMINFO 1" >>confdefs.h
14016 TERMCAP_OBJ=terminfo.o
14022 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14023 # On Darwin, res_init appears not to be useful: see bug#562 and
14024 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
14025 resolv=no
14027 if test $opsys != darwin; then
14029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14030 /* end confdefs.h. */
14031 #include <netinet/in.h>
14032 #include <arpa/nameser.h>
14033 #include <resolv.h>
14035 main ()
14037 return res_init();
14039 return 0;
14041 _ACEOF
14042 if ac_fn_c_try_link "$LINENO"; then :
14043 have_res_init=yes
14044 else
14045 have_res_init=no
14047 rm -f core conftest.err conftest.$ac_objext \
14048 conftest$ac_exeext conftest.$ac_ext
14049 if test "$have_res_init" = no; then
14050 OLIBS="$LIBS"
14051 LIBS="$LIBS -lresolv"
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14053 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14055 /* end confdefs.h. */
14056 #include <netinet/in.h>
14057 #include <arpa/nameser.h>
14058 #include <resolv.h>
14060 main ()
14062 return res_init();
14064 return 0;
14066 _ACEOF
14067 if ac_fn_c_try_link "$LINENO"; then :
14068 have_res_init=yes
14069 else
14070 have_res_init=no
14072 rm -f core conftest.err conftest.$ac_objext \
14073 conftest$ac_exeext conftest.$ac_ext
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14075 $as_echo "$have_res_init" >&6; }
14076 if test "$have_res_init" = yes ; then
14077 resolv=yes
14079 LIBS="$OLIBS"
14082 if test "$have_res_init" = yes; then
14084 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14088 # Do we need the Hesiod library to provide the support routines?
14089 LIBHESIOD=
14090 if test "$with_hesiod" != no ; then
14091 # Don't set $LIBS here -- see comments above. FIXME which comments?
14092 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14093 if test "x$ac_cv_func_res_send" = x""yes; then :
14095 else
14096 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14097 if test "x$ac_cv_func___res_send" = x""yes; then :
14099 else
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14101 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14102 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14103 $as_echo_n "(cached) " >&6
14104 else
14105 ac_check_lib_save_LIBS=$LIBS
14106 LIBS="-lresolv $LIBS"
14107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108 /* end confdefs.h. */
14110 /* Override any GCC internal prototype to avoid an error.
14111 Use char because int might match the return type of a GCC
14112 builtin and then its argument prototype would still apply. */
14113 #ifdef __cplusplus
14114 extern "C"
14115 #endif
14116 char res_send ();
14118 main ()
14120 return res_send ();
14122 return 0;
14124 _ACEOF
14125 if ac_fn_c_try_link "$LINENO"; then :
14126 ac_cv_lib_resolv_res_send=yes
14127 else
14128 ac_cv_lib_resolv_res_send=no
14130 rm -f core conftest.err conftest.$ac_objext \
14131 conftest$ac_exeext conftest.$ac_ext
14132 LIBS=$ac_check_lib_save_LIBS
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14135 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14136 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
14137 resolv=yes
14138 else
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14140 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14141 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14142 $as_echo_n "(cached) " >&6
14143 else
14144 ac_check_lib_save_LIBS=$LIBS
14145 LIBS="-lresolv $LIBS"
14146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14149 /* Override any GCC internal prototype to avoid an error.
14150 Use char because int might match the return type of a GCC
14151 builtin and then its argument prototype would still apply. */
14152 #ifdef __cplusplus
14153 extern "C"
14154 #endif
14155 char __res_send ();
14157 main ()
14159 return __res_send ();
14161 return 0;
14163 _ACEOF
14164 if ac_fn_c_try_link "$LINENO"; then :
14165 ac_cv_lib_resolv___res_send=yes
14166 else
14167 ac_cv_lib_resolv___res_send=no
14169 rm -f core conftest.err conftest.$ac_objext \
14170 conftest$ac_exeext conftest.$ac_ext
14171 LIBS=$ac_check_lib_save_LIBS
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14174 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14175 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14176 resolv=yes
14185 if test "$resolv" = yes ; then
14186 RESOLVLIB=-lresolv
14187 else
14188 RESOLVLIB=
14190 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14191 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14193 else
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14195 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14196 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14197 $as_echo_n "(cached) " >&6
14198 else
14199 ac_check_lib_save_LIBS=$LIBS
14200 LIBS="-lhesiod $RESOLVLIB $LIBS"
14201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14202 /* end confdefs.h. */
14204 /* Override any GCC internal prototype to avoid an error.
14205 Use char because int might match the return type of a GCC
14206 builtin and then its argument prototype would still apply. */
14207 #ifdef __cplusplus
14208 extern "C"
14209 #endif
14210 char hes_getmailhost ();
14212 main ()
14214 return hes_getmailhost ();
14216 return 0;
14218 _ACEOF
14219 if ac_fn_c_try_link "$LINENO"; then :
14220 ac_cv_lib_hesiod_hes_getmailhost=yes
14221 else
14222 ac_cv_lib_hesiod_hes_getmailhost=no
14224 rm -f core conftest.err conftest.$ac_objext \
14225 conftest$ac_exeext conftest.$ac_ext
14226 LIBS=$ac_check_lib_save_LIBS
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14229 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14230 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14231 hesiod=yes
14232 else
14239 if test x"$hesiod" = xyes; then
14241 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14243 LIBHESIOD=-lhesiod
14248 # Do we need libresolv (due to res_init or Hesiod)?
14249 if test "$resolv" = yes && test $opsys != darwin; then
14251 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14253 LIBRESOLV=-lresolv
14254 else
14255 LIBRESOLV=
14259 # These tell us which Kerberos-related libraries to use.
14260 COM_ERRLIB=
14261 CRYPTOLIB=
14262 KRB5LIB=
14263 DESLIB=
14264 KRB4LIB=
14266 if test "${with_kerberos}" != no; then
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14268 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14269 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14270 $as_echo_n "(cached) " >&6
14271 else
14272 ac_check_lib_save_LIBS=$LIBS
14273 LIBS="-lcom_err $LIBS"
14274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14275 /* end confdefs.h. */
14277 /* Override any GCC internal prototype to avoid an error.
14278 Use char because int might match the return type of a GCC
14279 builtin and then its argument prototype would still apply. */
14280 #ifdef __cplusplus
14281 extern "C"
14282 #endif
14283 char com_err ();
14285 main ()
14287 return com_err ();
14289 return 0;
14291 _ACEOF
14292 if ac_fn_c_try_link "$LINENO"; then :
14293 ac_cv_lib_com_err_com_err=yes
14294 else
14295 ac_cv_lib_com_err_com_err=no
14297 rm -f core conftest.err conftest.$ac_objext \
14298 conftest$ac_exeext conftest.$ac_ext
14299 LIBS=$ac_check_lib_save_LIBS
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14302 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14303 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14304 have_com_err=yes
14305 else
14306 have_com_err=no
14309 if test $have_com_err = yes; then
14310 COM_ERRLIB=-lcom_err
14311 LIBS="$COM_ERRLIB $LIBS"
14313 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14317 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14318 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14319 $as_echo_n "(cached) " >&6
14320 else
14321 ac_check_lib_save_LIBS=$LIBS
14322 LIBS="-lcrypto $LIBS"
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14326 /* Override any GCC internal prototype to avoid an error.
14327 Use char because int might match the return type of a GCC
14328 builtin and then its argument prototype would still apply. */
14329 #ifdef __cplusplus
14330 extern "C"
14331 #endif
14332 char mit_des_cbc_encrypt ();
14334 main ()
14336 return mit_des_cbc_encrypt ();
14338 return 0;
14340 _ACEOF
14341 if ac_fn_c_try_link "$LINENO"; then :
14342 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14343 else
14344 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14346 rm -f core conftest.err conftest.$ac_objext \
14347 conftest$ac_exeext conftest.$ac_ext
14348 LIBS=$ac_check_lib_save_LIBS
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14351 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14352 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14353 have_crypto=yes
14354 else
14355 have_crypto=no
14358 if test $have_crypto = yes; then
14359 CRYPTOLIB=-lcrypto
14360 LIBS="$CRYPTOLIB $LIBS"
14362 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14366 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14367 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14368 $as_echo_n "(cached) " >&6
14369 else
14370 ac_check_lib_save_LIBS=$LIBS
14371 LIBS="-lk5crypto $LIBS"
14372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14373 /* end confdefs.h. */
14375 /* Override any GCC internal prototype to avoid an error.
14376 Use char because int might match the return type of a GCC
14377 builtin and then its argument prototype would still apply. */
14378 #ifdef __cplusplus
14379 extern "C"
14380 #endif
14381 char mit_des_cbc_encrypt ();
14383 main ()
14385 return mit_des_cbc_encrypt ();
14387 return 0;
14389 _ACEOF
14390 if ac_fn_c_try_link "$LINENO"; then :
14391 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14392 else
14393 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14395 rm -f core conftest.err conftest.$ac_objext \
14396 conftest$ac_exeext conftest.$ac_ext
14397 LIBS=$ac_check_lib_save_LIBS
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14400 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14401 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14402 have_k5crypto=yes
14403 else
14404 have_k5crypto=no
14407 if test $have_k5crypto = yes; then
14408 CRYPTOLIB=-lk5crypto
14409 LIBS="$CRYPTOLIB $LIBS"
14411 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14415 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14416 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14417 $as_echo_n "(cached) " >&6
14418 else
14419 ac_check_lib_save_LIBS=$LIBS
14420 LIBS="-lkrb5 $LIBS"
14421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14422 /* end confdefs.h. */
14424 /* Override any GCC internal prototype to avoid an error.
14425 Use char because int might match the return type of a GCC
14426 builtin and then its argument prototype would still apply. */
14427 #ifdef __cplusplus
14428 extern "C"
14429 #endif
14430 char krb5_init_context ();
14432 main ()
14434 return krb5_init_context ();
14436 return 0;
14438 _ACEOF
14439 if ac_fn_c_try_link "$LINENO"; then :
14440 ac_cv_lib_krb5_krb5_init_context=yes
14441 else
14442 ac_cv_lib_krb5_krb5_init_context=no
14444 rm -f core conftest.err conftest.$ac_objext \
14445 conftest$ac_exeext conftest.$ac_ext
14446 LIBS=$ac_check_lib_save_LIBS
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14449 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14450 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14451 have_krb5=yes
14452 else
14453 have_krb5=no
14456 if test $have_krb5=yes; then
14457 KRB5LIB=-lkrb5
14458 LIBS="$KRB5LIB $LIBS"
14460 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14463 if test "${with_kerberos5}" = no; then
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14465 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14466 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14467 $as_echo_n "(cached) " >&6
14468 else
14469 ac_check_lib_save_LIBS=$LIBS
14470 LIBS="-ldes425 $LIBS"
14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472 /* end confdefs.h. */
14474 /* Override any GCC internal prototype to avoid an error.
14475 Use char because int might match the return type of a GCC
14476 builtin and then its argument prototype would still apply. */
14477 #ifdef __cplusplus
14478 extern "C"
14479 #endif
14480 char des_cbc_encrypt ();
14482 main ()
14484 return des_cbc_encrypt ();
14486 return 0;
14488 _ACEOF
14489 if ac_fn_c_try_link "$LINENO"; then :
14490 ac_cv_lib_des425_des_cbc_encrypt=yes
14491 else
14492 ac_cv_lib_des425_des_cbc_encrypt=no
14494 rm -f core conftest.err conftest.$ac_objext \
14495 conftest$ac_exeext conftest.$ac_ext
14496 LIBS=$ac_check_lib_save_LIBS
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14499 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14500 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14501 have_des425=yes
14502 else
14503 have_des425=no
14506 if test $have_des425 = yes; then
14507 DESLIB=-ldes425
14508 LIBS="$DESLIB $LIBS"
14510 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14512 else
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14514 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14515 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14516 $as_echo_n "(cached) " >&6
14517 else
14518 ac_check_lib_save_LIBS=$LIBS
14519 LIBS="-ldes $LIBS"
14520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14521 /* end confdefs.h. */
14523 /* Override any GCC internal prototype to avoid an error.
14524 Use char because int might match the return type of a GCC
14525 builtin and then its argument prototype would still apply. */
14526 #ifdef __cplusplus
14527 extern "C"
14528 #endif
14529 char des_cbc_encrypt ();
14531 main ()
14533 return des_cbc_encrypt ();
14535 return 0;
14537 _ACEOF
14538 if ac_fn_c_try_link "$LINENO"; then :
14539 ac_cv_lib_des_des_cbc_encrypt=yes
14540 else
14541 ac_cv_lib_des_des_cbc_encrypt=no
14543 rm -f core conftest.err conftest.$ac_objext \
14544 conftest$ac_exeext conftest.$ac_ext
14545 LIBS=$ac_check_lib_save_LIBS
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14548 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14549 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14550 have_des=yes
14551 else
14552 have_des=no
14555 if test $have_des = yes; then
14556 DESLIB=-ldes
14557 LIBS="$DESLIB $LIBS"
14559 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14564 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14565 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14566 $as_echo_n "(cached) " >&6
14567 else
14568 ac_check_lib_save_LIBS=$LIBS
14569 LIBS="-lkrb4 $LIBS"
14570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14571 /* end confdefs.h. */
14573 /* Override any GCC internal prototype to avoid an error.
14574 Use char because int might match the return type of a GCC
14575 builtin and then its argument prototype would still apply. */
14576 #ifdef __cplusplus
14577 extern "C"
14578 #endif
14579 char krb_get_cred ();
14581 main ()
14583 return krb_get_cred ();
14585 return 0;
14587 _ACEOF
14588 if ac_fn_c_try_link "$LINENO"; then :
14589 ac_cv_lib_krb4_krb_get_cred=yes
14590 else
14591 ac_cv_lib_krb4_krb_get_cred=no
14593 rm -f core conftest.err conftest.$ac_objext \
14594 conftest$ac_exeext conftest.$ac_ext
14595 LIBS=$ac_check_lib_save_LIBS
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14598 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14599 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14600 have_krb4=yes
14601 else
14602 have_krb4=no
14605 if test $have_krb4 = yes; then
14606 KRB4LIB=-lkrb4
14607 LIBS="$KRB4LIB $LIBS"
14609 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14611 else
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14613 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14614 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14615 $as_echo_n "(cached) " >&6
14616 else
14617 ac_check_lib_save_LIBS=$LIBS
14618 LIBS="-lkrb $LIBS"
14619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14620 /* end confdefs.h. */
14622 /* Override any GCC internal prototype to avoid an error.
14623 Use char because int might match the return type of a GCC
14624 builtin and then its argument prototype would still apply. */
14625 #ifdef __cplusplus
14626 extern "C"
14627 #endif
14628 char krb_get_cred ();
14630 main ()
14632 return krb_get_cred ();
14634 return 0;
14636 _ACEOF
14637 if ac_fn_c_try_link "$LINENO"; then :
14638 ac_cv_lib_krb_krb_get_cred=yes
14639 else
14640 ac_cv_lib_krb_krb_get_cred=no
14642 rm -f core conftest.err conftest.$ac_objext \
14643 conftest$ac_exeext conftest.$ac_ext
14644 LIBS=$ac_check_lib_save_LIBS
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14647 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14648 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14649 have_krb=yes
14650 else
14651 have_krb=no
14654 if test $have_krb = yes; then
14655 KRB4LIB=-lkrb
14656 LIBS="$KRB4LIB $LIBS"
14658 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14664 if test "${with_kerberos5}" != no; then
14665 for ac_header in krb5.h
14666 do :
14667 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14668 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14669 cat >>confdefs.h <<_ACEOF
14670 #define HAVE_KRB5_H 1
14671 _ACEOF
14672 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14674 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14676 cat >>confdefs.h <<_ACEOF
14677 #define HAVE_KRB5_ERROR_TEXT 1
14678 _ACEOF
14682 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14684 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14686 cat >>confdefs.h <<_ACEOF
14687 #define HAVE_KRB5_ERROR_E_TEXT 1
14688 _ACEOF
14695 done
14697 else
14698 for ac_header in des.h
14699 do :
14700 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14701 if test "x$ac_cv_header_des_h" = x""yes; then :
14702 cat >>confdefs.h <<_ACEOF
14703 #define HAVE_DES_H 1
14704 _ACEOF
14706 else
14707 for ac_header in kerberosIV/des.h
14708 do :
14709 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14710 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14711 cat >>confdefs.h <<_ACEOF
14712 #define HAVE_KERBEROSIV_DES_H 1
14713 _ACEOF
14715 else
14716 for ac_header in kerberos/des.h
14717 do :
14718 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14719 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14720 cat >>confdefs.h <<_ACEOF
14721 #define HAVE_KERBEROS_DES_H 1
14722 _ACEOF
14726 done
14730 done
14734 done
14736 for ac_header in krb.h
14737 do :
14738 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14739 if test "x$ac_cv_header_krb_h" = x""yes; then :
14740 cat >>confdefs.h <<_ACEOF
14741 #define HAVE_KRB_H 1
14742 _ACEOF
14744 else
14745 for ac_header in kerberosIV/krb.h
14746 do :
14747 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14748 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14749 cat >>confdefs.h <<_ACEOF
14750 #define HAVE_KERBEROSIV_KRB_H 1
14751 _ACEOF
14753 else
14754 for ac_header in kerberos/krb.h
14755 do :
14756 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14757 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14758 cat >>confdefs.h <<_ACEOF
14759 #define HAVE_KERBEROS_KRB_H 1
14760 _ACEOF
14764 done
14768 done
14772 done
14775 for ac_header in com_err.h
14776 do :
14777 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14778 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14779 cat >>confdefs.h <<_ACEOF
14780 #define HAVE_COM_ERR_H 1
14781 _ACEOF
14785 done
14798 for ac_func in $ac_func_list
14799 do :
14800 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14801 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14802 eval as_val=\$$as_ac_var
14803 if test "x$as_val" = x""yes; then :
14804 cat >>confdefs.h <<_ACEOF
14805 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14806 _ACEOF
14809 done
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14815 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14816 if test "${emacs_cv_localtime_cache+set}" = set; then :
14817 $as_echo_n "(cached) " >&6
14818 else
14819 if test x$ac_cv_func_tzset = xyes; then
14820 if test "$cross_compiling" = yes; then :
14821 # If we have tzset, assume the worst when cross-compiling.
14822 emacs_cv_localtime_cache=yes
14823 else
14824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14825 /* end confdefs.h. */
14826 #include <time.h>
14827 char TZ_GMT0[] = "TZ=GMT0";
14828 char TZ_PST8[] = "TZ=PST8";
14829 main()
14831 time_t now = time ((time_t *) 0);
14832 int hour_GMT0, hour_unset;
14833 if (putenv (TZ_GMT0) != 0)
14834 exit (1);
14835 hour_GMT0 = localtime (&now)->tm_hour;
14836 unsetenv("TZ");
14837 hour_unset = localtime (&now)->tm_hour;
14838 if (putenv (TZ_PST8) != 0)
14839 exit (1);
14840 if (localtime (&now)->tm_hour == hour_GMT0)
14841 exit (1);
14842 unsetenv("TZ");
14843 if (localtime (&now)->tm_hour != hour_unset)
14844 exit (1);
14845 exit (0);
14847 _ACEOF
14848 if ac_fn_c_try_run "$LINENO"; then :
14849 emacs_cv_localtime_cache=no
14850 else
14851 emacs_cv_localtime_cache=yes
14853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14854 conftest.$ac_objext conftest.beam conftest.$ac_ext
14857 else
14858 # If we lack tzset, report that localtime does not cache TZ,
14859 # since we can't invalidate the cache if we don't have tzset.
14860 emacs_cv_localtime_cache=no
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14864 $as_echo "$emacs_cv_localtime_cache" >&6; }
14865 if test $emacs_cv_localtime_cache = yes; then
14867 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14871 ok_so_far=yes
14872 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14873 if test "x$ac_cv_func_socket" = x""yes; then :
14875 else
14876 ok_so_far=no
14879 if test $ok_so_far = yes; then
14880 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14881 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14883 else
14884 ok_so_far=no
14889 if test $ok_so_far = yes; then
14890 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14891 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14893 else
14894 ok_so_far=no
14899 if test $ok_so_far = yes; then
14901 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14905 if test -f /usr/lpp/X11/bin/smt.exp; then
14907 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14912 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14913 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14915 $as_echo "yes" >&6; }
14917 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14919 else
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14921 $as_echo "no" >&6; }
14924 case $canonical in
14925 *-solaris2.4 | *-solaris2.4.*)
14926 : ${ac_cv_func_vfork_works=no};;
14927 esac
14929 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14930 if test "x$ac_cv_type_pid_t" = x""yes; then :
14932 else
14934 cat >>confdefs.h <<_ACEOF
14935 #define pid_t int
14936 _ACEOF
14940 for ac_header in vfork.h
14941 do :
14942 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14943 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14944 cat >>confdefs.h <<_ACEOF
14945 #define HAVE_VFORK_H 1
14946 _ACEOF
14950 done
14952 for ac_func in fork vfork
14953 do :
14954 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14955 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14956 eval as_val=\$$as_ac_var
14957 if test "x$as_val" = x""yes; then :
14958 cat >>confdefs.h <<_ACEOF
14959 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14960 _ACEOF
14963 done
14965 if test "x$ac_cv_func_fork" = xyes; then
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14967 $as_echo_n "checking for working fork... " >&6; }
14968 if test "${ac_cv_func_fork_works+set}" = set; then :
14969 $as_echo_n "(cached) " >&6
14970 else
14971 if test "$cross_compiling" = yes; then :
14972 ac_cv_func_fork_works=cross
14973 else
14974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14975 /* end confdefs.h. */
14976 $ac_includes_default
14978 main ()
14981 /* By Ruediger Kuhlmann. */
14982 return fork () < 0;
14985 return 0;
14987 _ACEOF
14988 if ac_fn_c_try_run "$LINENO"; then :
14989 ac_cv_func_fork_works=yes
14990 else
14991 ac_cv_func_fork_works=no
14993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14994 conftest.$ac_objext conftest.beam conftest.$ac_ext
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14999 $as_echo "$ac_cv_func_fork_works" >&6; }
15001 else
15002 ac_cv_func_fork_works=$ac_cv_func_fork
15004 if test "x$ac_cv_func_fork_works" = xcross; then
15005 case $host in
15006 *-*-amigaos* | *-*-msdosdjgpp*)
15007 # Override, as these systems have only a dummy fork() stub
15008 ac_cv_func_fork_works=no
15011 ac_cv_func_fork_works=yes
15013 esac
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15015 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15017 ac_cv_func_vfork_works=$ac_cv_func_vfork
15018 if test "x$ac_cv_func_vfork" = xyes; then
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15020 $as_echo_n "checking for working vfork... " >&6; }
15021 if test "${ac_cv_func_vfork_works+set}" = set; then :
15022 $as_echo_n "(cached) " >&6
15023 else
15024 if test "$cross_compiling" = yes; then :
15025 ac_cv_func_vfork_works=cross
15026 else
15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h. */
15029 /* Thanks to Paul Eggert for this test. */
15030 $ac_includes_default
15031 #include <sys/wait.h>
15032 #ifdef HAVE_VFORK_H
15033 # include <vfork.h>
15034 #endif
15035 /* On some sparc systems, changes by the child to local and incoming
15036 argument registers are propagated back to the parent. The compiler
15037 is told about this with #include <vfork.h>, but some compilers
15038 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15039 static variable whose address is put into a register that is
15040 clobbered by the vfork. */
15041 static void
15042 #ifdef __cplusplus
15043 sparc_address_test (int arg)
15044 # else
15045 sparc_address_test (arg) int arg;
15046 #endif
15048 static pid_t child;
15049 if (!child) {
15050 child = vfork ();
15051 if (child < 0) {
15052 perror ("vfork");
15053 _exit(2);
15055 if (!child) {
15056 arg = getpid();
15057 write(-1, "", 0);
15058 _exit (arg);
15064 main ()
15066 pid_t parent = getpid ();
15067 pid_t child;
15069 sparc_address_test (0);
15071 child = vfork ();
15073 if (child == 0) {
15074 /* Here is another test for sparc vfork register problems. This
15075 test uses lots of local variables, at least as many local
15076 variables as main has allocated so far including compiler
15077 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15078 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15079 reuse the register of parent for one of the local variables,
15080 since it will think that parent can't possibly be used any more
15081 in this routine. Assigning to the local variable will thus
15082 munge parent in the parent process. */
15083 pid_t
15084 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15085 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15086 /* Convince the compiler that p..p7 are live; otherwise, it might
15087 use the same hardware register for all 8 local variables. */
15088 if (p != p1 || p != p2 || p != p3 || p != p4
15089 || p != p5 || p != p6 || p != p7)
15090 _exit(1);
15092 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15093 from child file descriptors. If the child closes a descriptor
15094 before it execs or exits, this munges the parent's descriptor
15095 as well. Test for this by closing stdout in the child. */
15096 _exit(close(fileno(stdout)) != 0);
15097 } else {
15098 int status;
15099 struct stat st;
15101 while (wait(&status) != child)
15103 return (
15104 /* Was there some problem with vforking? */
15105 child < 0
15107 /* Did the child fail? (This shouldn't happen.) */
15108 || status
15110 /* Did the vfork/compiler bug occur? */
15111 || parent != getpid()
15113 /* Did the file descriptor bug occur? */
15114 || fstat(fileno(stdout), &st) != 0
15118 _ACEOF
15119 if ac_fn_c_try_run "$LINENO"; then :
15120 ac_cv_func_vfork_works=yes
15121 else
15122 ac_cv_func_vfork_works=no
15124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15125 conftest.$ac_objext conftest.beam conftest.$ac_ext
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15130 $as_echo "$ac_cv_func_vfork_works" >&6; }
15133 if test "x$ac_cv_func_fork_works" = xcross; then
15134 ac_cv_func_vfork_works=$ac_cv_func_vfork
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15136 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15139 if test "x$ac_cv_func_vfork_works" = xyes; then
15141 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15143 else
15145 $as_echo "#define vfork fork" >>confdefs.h
15148 if test "x$ac_cv_func_fork_works" = xyes; then
15150 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15155 for ac_func in snprintf
15156 do :
15157 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15158 if test "x$ac_cv_func_snprintf" = x""yes; then :
15159 cat >>confdefs.h <<_ACEOF
15160 #define HAVE_SNPRINTF 1
15161 _ACEOF
15164 done
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15168 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15169 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15170 $as_echo_n "(cached) " >&6
15171 else
15172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15173 /* end confdefs.h. */
15174 #include <langinfo.h>
15176 main ()
15178 char* cs = nl_langinfo(CODESET);
15180 return 0;
15182 _ACEOF
15183 if ac_fn_c_try_link "$LINENO"; then :
15184 emacs_cv_langinfo_codeset=yes
15185 else
15186 emacs_cv_langinfo_codeset=no
15188 rm -f core conftest.err conftest.$ac_objext \
15189 conftest$ac_exeext conftest.$ac_ext
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15193 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15194 if test $emacs_cv_langinfo_codeset = yes; then
15196 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15201 $as_echo_n "checking for mbstate_t... " >&6; }
15202 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15203 $as_echo_n "(cached) " >&6
15204 else
15205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206 /* end confdefs.h. */
15207 $ac_includes_default
15208 # include <wchar.h>
15210 main ()
15212 mbstate_t x; return sizeof x;
15214 return 0;
15216 _ACEOF
15217 if ac_fn_c_try_compile "$LINENO"; then :
15218 ac_cv_type_mbstate_t=yes
15219 else
15220 ac_cv_type_mbstate_t=no
15222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15225 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15226 if test $ac_cv_type_mbstate_t = yes; then
15228 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15230 else
15232 $as_echo "#define mbstate_t int" >>confdefs.h
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15237 $as_echo_n "checking for C restricted array declarations... " >&6; }
15238 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15239 $as_echo_n "(cached) " >&6
15240 else
15241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15242 /* end confdefs.h. */
15243 void fred (int x[__restrict]);
15245 main ()
15249 return 0;
15251 _ACEOF
15252 if ac_fn_c_try_compile "$LINENO"; then :
15253 emacs_cv_c_restrict_arr=yes
15254 else
15255 emacs_cv_c_restrict_arr=no
15257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15260 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15261 if test "$emacs_cv_c_restrict_arr" = yes; then
15263 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15269 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
15273 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
15276 ## Note: PTYs are broken on darwin <6. Use at your own risk.
15278 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
15282 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
15288 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
15292 $as_echo "#define SEPCHAR ':'" >>confdefs.h
15296 $as_echo "#define subprocesses 1" >>confdefs.h
15300 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
15305 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
15311 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
15315 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
15319 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
15325 case $opsys in
15326 aix4-2)
15327 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
15328 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15333 hpux*)
15334 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15337 esac
15340 case $opsys in
15341 irix6-5 | sol2* | unixware )
15343 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
15346 esac
15348 emacs_broken_SIGIO=no
15350 case $opsys in
15351 hpux* | irix6-5 | openbsd | sol2* | unixware )
15352 emacs_broken_SIGIO=yes
15355 aix4-2)
15357 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
15361 freebsd)
15363 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
15366 esac
15368 case $opsys in
15369 gnu-* | sol2-10 )
15371 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
15374 esac
15376 case $opsys in
15377 darwin | freebsd | netbsd | openbsd )
15379 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
15382 esac
15384 case $opsys in
15385 netbsd | openbsd) sound_device="/dev/audio" ;;
15386 *) sound_device="/dev/dsp" ;;
15387 esac
15390 cat >>confdefs.h <<_ACEOF
15391 #define DEFAULT_SOUND_DEVICE "$sound_device"
15392 _ACEOF
15396 case $opsys in
15397 darwin | gnu-linux | gnu-kfreebsd )
15399 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15402 esac
15405 case $opsys in
15406 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
15408 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15411 esac
15420 case $opsys in
15421 aix4-2 )
15422 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15424 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15426 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15430 cygwin )
15431 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15433 $as_echo "#define PTY_OPEN do { int dummy; sigset_t blocked, procmask; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, &procmask); if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) fd = -1; pthread_sigmask (SIG_SETMASK, &procmask, 0); if (fd >= 0) emacs_close (dummy); } while (0)" >>confdefs.h
15435 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15437 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15441 darwin )
15442 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15444 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15446 $as_echo "#define PTY_OPEN do { int slave; if (openpty (&fd, &slave, pty_name, NULL, NULL) == -1) fd = -1; else emacs_close (slave); } while (0)" >>confdefs.h
15448 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15450 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15454 gnu | openbsd )
15455 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15459 gnu-linux | gnu-kfreebsd | freebsd | netbsd )
15460 if test "x$ac_cv_func_grantpt" = xyes; then
15462 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15464 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15466 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptyname = 0; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); if (grantpt (fd) != -1 && unlockpt (fd) != -1) ptyname = ptsname(fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (!ptyname) { close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15468 if test "x$ac_cv_func_posix_openpt" = xyes; then
15469 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15471 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15473 elif test "x$ac_cv_func_getpt" = xyes; then
15474 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15476 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15478 else
15479 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15482 else
15483 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15488 hpux*)
15489 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15491 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15493 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15497 irix6-5 )
15498 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15500 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15502 $as_echo "#define PTY_OPEN { struct sigaction ocstat, cstat; struct stat stb; char * name; sigemptyset(&cstat.sa_mask); cstat.sa_handler = SIG_DFL; cstat.sa_flags = 0; sigaction(SIGCHLD, &cstat, &ocstat); name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); sigaction(SIGCHLD, &ocstat, (struct sigaction *)0); if (name == 0) return -1; if (fd < 0) return -1; if (fstat (fd, &stb) < 0) return -1; strcpy (pty_name, name); }" >>confdefs.h
15504 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15506 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15510 sol2* )
15511 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1 || unlockpt (fd) == -1 || !(ptyname = ptsname (fd))) { emacs_close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15515 unixware )
15516 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1) fatal(\"could not grant slave pty\"); if (unlockpt(fd) == -1) fatal(\"could not unlock slave pty\"); if (!(ptyname = ptsname(fd))) fatal (\"could not enable slave pty\"); snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15519 esac
15522 case $opsys in
15523 sol2* | unixware )
15524 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15526 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15529 $as_echo "#define SETUP_SLAVE_PTY if (ioctl (xforkin, I_PUSH, \"ptem\") == -1) fatal (\"ioctl I_PUSH ptem\"); if (ioctl (xforkin, I_PUSH, \"ldterm\") == -1) fatal (\"ioctl I_PUSH ldterm\"); if (ioctl (xforkin, I_PUSH, \"ttcompat\") == -1) fatal (\"ioctl I_PUSH ttcompat\");" >>confdefs.h
15532 esac
15537 case $opsys in
15538 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd | darwin )
15539 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15543 gnu-linux | gnu-kfreebsd )
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15546 $as_echo_n "checking for signals via characters... " >&6; }
15547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548 /* end confdefs.h. */
15550 #include <linux/version.h>
15551 #if LINUX_VERSION_CODE < 0x20400
15552 # error "Linux version too old"
15553 #endif
15556 main ()
15560 return 0;
15562 _ACEOF
15563 if ac_fn_c_try_cpp "$LINENO"; then :
15564 emacs_signals_via_chars=yes
15565 else
15566 emacs_signals_via_chars=no
15568 rm -f conftest.err conftest.$ac_ext
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15571 $as_echo "$emacs_signals_via_chars" >&6; }
15572 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15575 esac
15581 case $opsys in
15582 gnu)
15583 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15587 hpux*)
15588 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15590 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15593 irix6-5)
15594 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15596 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15599 esac
15604 case $opsys in
15605 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15608 gnu | freebsd | netbsd | openbsd )
15610 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15612 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15616 gnu-linux | gnu-kfreebsd )
15617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15618 /* end confdefs.h. */
15620 #ifndef __ia64__
15621 # error "not ia64"
15622 #endif
15625 main ()
15629 return 0;
15631 _ACEOF
15632 if ac_fn_c_try_cpp "$LINENO"; then :
15634 $as_echo "#define GC_MARK_SECONDARY_STACK() do { extern void *__libc_ia64_register_backing_store_base; __builtin_ia64_flushrs (); mark_memory (__libc_ia64_register_backing_store_base, __builtin_ia64_bsp ());} while (0)" >>confdefs.h
15637 rm -f conftest.err conftest.$ac_ext
15640 hpux*)
15642 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15645 esac
15653 case $opsys in
15654 aix4-2 | hpux* | unixware)
15655 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15659 gnu-linux | gnu-kfreebsd )
15660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15661 /* end confdefs.h. */
15663 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15664 || defined __alpha__ || defined __mips__ || defined __s390__ \
15665 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15666 || defined __ia64__ || defined __sh__
15667 /* ok */
15668 #else
15669 # error "setjmp not known to work on this arch"
15670 #endif
15673 main ()
15677 return 0;
15679 _ACEOF
15680 if ac_fn_c_try_cpp "$LINENO"; then :
15681 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15683 else
15684 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15687 rm -f conftest.err conftest.$ac_ext
15689 esac
15692 if test x$GCC = xyes; then
15693 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15695 else
15696 case $opsys in
15697 freebsd | netbsd | openbsd | irix6-5 | sol2* )
15698 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15701 esac
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15704 $as_echo_n "checking for _setjmp... " >&6; }
15705 if test "${emacs_cv_func__setjmp+set}" = set; then :
15706 $as_echo_n "(cached) " >&6
15707 else
15708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15709 /* end confdefs.h. */
15710 #include <setjmp.h>
15713 main ()
15715 jmp_buf j;
15716 if (! _setjmp (j))
15717 _longjmp (j, 1);
15719 return 0;
15721 _ACEOF
15722 if ac_fn_c_try_link "$LINENO"; then :
15723 emacs_cv_func__setjmp=yes
15724 else
15725 emacs_cv_func__setjmp=no
15727 rm -f core conftest.err conftest.$ac_objext \
15728 conftest$ac_exeext conftest.$ac_ext
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15731 $as_echo "$emacs_cv_func__setjmp" >&6; }
15732 if test $emacs_cv_func__setjmp = yes; then
15734 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15736 else
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15738 $as_echo_n "checking for sigsetjmp... " >&6; }
15739 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15740 $as_echo_n "(cached) " >&6
15741 else
15742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15743 /* end confdefs.h. */
15744 #include <setjmp.h>
15747 main ()
15749 sigjmp_buf j;
15750 if (! sigsetjmp (j, 1))
15751 siglongjmp (j, 1);
15753 return 0;
15755 _ACEOF
15756 if ac_fn_c_try_link "$LINENO"; then :
15757 emacs_cv_func_sigsetjmp=yes
15758 else
15759 emacs_cv_func_sigsetjmp=no
15761 rm -f core conftest.err conftest.$ac_objext \
15762 conftest$ac_exeext conftest.$ac_ext
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15765 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15766 if test $emacs_cv_func_sigsetjmp = yes; then
15768 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15773 case $opsys in
15774 sol2* | unixware )
15776 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15779 esac
15782 case $opsys in
15783 hpux* | sol2* )
15785 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15788 esac
15798 case $opsys in
15799 aix4-2)
15800 $as_echo "#define USG /**/" >>confdefs.h
15802 $as_echo "#define USG5 /**/" >>confdefs.h
15804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15805 /* end confdefs.h. */
15807 #ifndef _AIX
15808 # error "_AIX not defined"
15809 #endif
15812 main ()
15816 return 0;
15818 _ACEOF
15819 if ac_fn_c_try_cpp "$LINENO"; then :
15821 else
15823 $as_echo "#define _AIX /**/" >>confdefs.h
15826 rm -f conftest.err conftest.$ac_ext
15829 cygwin)
15831 $as_echo "#define CYGWIN 1" >>confdefs.h
15835 darwin)
15836 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15839 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15843 freebsd)
15845 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15849 gnu | netbsd | openbsd )
15850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15851 /* end confdefs.h. */
15853 #ifndef BSD_SYSTEM
15854 # error "BSD_SYSTEM not defined"
15855 #endif
15858 main ()
15862 return 0;
15864 _ACEOF
15865 if ac_fn_c_try_cpp "$LINENO"; then :
15867 else
15868 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15871 rm -f conftest.err conftest.$ac_ext
15874 gnu-linux | gnu-kfreebsd )
15875 $as_echo "#define USG /**/" >>confdefs.h
15878 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15882 hpux*)
15883 $as_echo "#define USG /**/" >>confdefs.h
15885 $as_echo "#define USG5 /**/" >>confdefs.h
15888 $as_echo "#define HPUX /**/" >>confdefs.h
15892 irix6-5)
15893 $as_echo "#define USG /**/" >>confdefs.h
15895 $as_echo "#define USG5 /**/" >>confdefs.h
15897 $as_echo "#define USG5_4 /**/" >>confdefs.h
15900 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15904 sol2*)
15905 $as_echo "#define USG /**/" >>confdefs.h
15907 $as_echo "#define USG5 /**/" >>confdefs.h
15909 $as_echo "#define USG5_4 /**/" >>confdefs.h
15912 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15916 unixware)
15917 $as_echo "#define USG /**/" >>confdefs.h
15919 $as_echo "#define USG5 /**/" >>confdefs.h
15921 $as_echo "#define USG5_4 /**/" >>confdefs.h
15924 esac
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
15927 $as_echo_n "checking for usable FIONREAD... " >&6; }
15928 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
15929 $as_echo_n "(cached) " >&6
15930 else
15931 case $opsys in
15932 aix4-2)
15933 emacs_cv_usable_FIONREAD=no
15937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15938 /* end confdefs.h. */
15939 #include <sys/types.h>
15940 #include <sys/ioctl.h>
15941 #ifdef USG5_4
15942 # include <sys/filio.h>
15943 #endif
15946 main ()
15948 int foo = ioctl (0, FIONREAD, &foo);
15950 return 0;
15952 _ACEOF
15953 if ac_fn_c_try_compile "$LINENO"; then :
15954 emacs_cv_usable_FIONREAD=yes
15955 else
15956 emacs_cv_usable_FIONREAD=no
15958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15960 esac
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
15963 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
15964 if test $emacs_cv_usable_FIONREAD = yes; then
15966 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
15969 if test $emacs_broken_SIGIO = no; then
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
15971 $as_echo_n "checking for usable SIGIO... " >&6; }
15972 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
15973 $as_echo_n "(cached) " >&6
15974 else
15975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976 /* end confdefs.h. */
15977 #include <fcntl.h>
15978 #include <signal.h>
15981 main ()
15983 int foo = SIGIO | F_SETFL | FASYNC;
15985 return 0;
15987 _ACEOF
15988 if ac_fn_c_try_compile "$LINENO"; then :
15989 emacs_cv_usable_SIGIO=yes
15990 else
15991 emacs_cv_usable_SIGIO=no
15993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
15996 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
15997 if test $emacs_cv_usable_SIGIO = yes; then
15999 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
16006 case $opsys in
16007 cygwin)
16009 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
16013 hpux11)
16015 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
16019 irix6-5)
16021 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
16025 sol2-10)
16027 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
16030 esac
16032 # Set up the CFLAGS for real compilation, so we can substitute it.
16033 CFLAGS="$REAL_CFLAGS"
16034 CPPFLAGS="$REAL_CPPFLAGS"
16036 ## Hack to detect a buggy GCC version.
16037 if test "x$GCC" = xyes \
16038 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16039 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
16040 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
16041 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16044 version=$PACKAGE_VERSION
16046 copyright="Copyright (C) 2012 Free Software Foundation, Inc."
16048 cat >>confdefs.h <<_ACEOF
16049 #define COPYRIGHT "$copyright"
16050 _ACEOF
16054 ### Specify what sort of things we'll be editing into Makefile and config.h.
16055 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16058 ## Unused?
16081 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16082 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16083 ## end of LIBX_BASE, but nothing ever set it.
16088 ## Used in lwlib/Makefile.in.
16097 if test -n "${term_header}"; then
16099 cat >>confdefs.h <<_ACEOF
16100 #define TERM_HEADER "${term_header}"
16101 _ACEOF
16106 cat >>confdefs.h <<_ACEOF
16107 #define EMACS_CONFIGURATION "${canonical}"
16108 _ACEOF
16110 emacs_config_options=`echo "$emacs_config_options" | sed -e "s/\"/'/g"`
16112 cat >>confdefs.h <<_ACEOF
16113 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
16114 _ACEOF
16118 XMENU_OBJ=
16119 XOBJ=
16120 FONT_OBJ=
16121 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16123 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16125 XMENU_OBJ=xmenu.o
16126 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
16127 FONT_OBJ=xfont.o
16128 if test "$HAVE_XFT" = "yes"; then
16129 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16130 elif test "$HAVE_FREETYPE" = "yes"; then
16131 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
16139 WIDGET_OBJ=
16140 MOTIF_LIBW=
16141 if test "${USE_X_TOOLKIT}" != "none" ; then
16142 WIDGET_OBJ=widget.o
16144 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16146 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16148 $as_echo "#define USE_LUCID 1" >>confdefs.h
16150 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16152 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16154 MOTIF_LIBW=-lXm
16155 case "$opsys" in
16156 gnu-linux)
16157 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16158 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
16161 unixware)
16162 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16163 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16164 MOTIF_LIBW="MOTIF_LIBW -lXimp"
16167 aix4-2)
16168 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16169 MOTIF_LIBW="$MOTIF_LIBW -li18n"
16171 esac
16172 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
16177 TOOLKIT_LIBW=
16178 case "$USE_X_TOOLKIT" in
16179 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16180 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16181 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16182 esac
16185 if test "$USE_X_TOOLKIT" = "none"; then
16186 LIBXT_OTHER="\$(LIBXSM)"
16187 OLDXMENU_TARGET="really-oldXMenu"
16188 else
16189 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16190 OLDXMENU_TARGET="really-lwlib"
16194 ## The X Menu stuff is present in the X10 distribution, but missing
16195 ## from X11. If we have X10, just use the installed library;
16196 ## otherwise, use our own copy.
16197 if test "${HAVE_X11}" = "yes" ; then
16199 $as_echo "#define HAVE_X11 1" >>confdefs.h
16202 if test "$USE_X_TOOLKIT" = "none"; then
16203 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16204 else
16205 OLDXMENU="\${lwlibdir}/liblw.a"
16207 LIBXMENU="\$(OLDXMENU)"
16208 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16209 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16210 else
16211 ## For a syntactically valid Makefile; not actually used for anything.
16212 ## See comments in src/Makefile.in.
16213 OLDXMENU=nothing
16214 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16215 if test "${HAVE_X_WINDOWS}" = "yes"; then
16216 LIBXMENU="-lXMenu"
16217 else
16218 LIBXMENU=
16220 LIBX_OTHER=
16221 OLDXMENU_DEPS=
16224 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16225 OLDXMENU_TARGET=
16226 OLDXMENU=nothing
16227 LIBXMENU=
16228 OLDXMENU_DEPS=
16237 if test "${HAVE_MENUS}" = "yes" ; then
16239 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16243 if test "${GNU_MALLOC}" = "yes" ; then
16245 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16249 RALLOC_OBJ=
16250 if test "${REL_ALLOC}" = "yes" ; then
16252 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16255 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16259 if test "$opsys" = "cygwin"; then
16260 CYGWIN_OBJ="sheap.o cygw32.o"
16261 ## Cygwin differs because of its unexec().
16262 PRE_ALLOC_OBJ=
16263 POST_ALLOC_OBJ=lastfile.o
16264 else
16265 CYGWIN_OBJ=
16266 PRE_ALLOC_OBJ=lastfile.o
16267 POST_ALLOC_OBJ=
16273 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16274 # it temporarily reverts them to their pre-pkg-config values,
16275 # because gnulib needs to work with both src (which uses the
16276 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16277 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16278 # and it therefore needs to run in an environment where LIBS does not
16279 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16280 # for some package unrelated to lib-src.
16281 SAVE_CFLAGS=$CFLAGS
16282 SAVE_LIBS=$LIBS
16283 CFLAGS=$pre_PKG_CONFIG_CFLAGS
16284 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16296 LIBC_FATAL_STDERR_=1
16297 export LIBC_FATAL_STDERR_
16299 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16300 # for constant arguments. Useless!
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16302 $as_echo_n "checking for working alloca.h... " >&6; }
16303 if test "${ac_cv_working_alloca_h+set}" = set; then :
16304 $as_echo_n "(cached) " >&6
16305 else
16306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16307 /* end confdefs.h. */
16308 #include <alloca.h>
16310 main ()
16312 char *p = (char *) alloca (2 * sizeof (int));
16313 if (p) return 0;
16315 return 0;
16317 _ACEOF
16318 if ac_fn_c_try_link "$LINENO"; then :
16319 ac_cv_working_alloca_h=yes
16320 else
16321 ac_cv_working_alloca_h=no
16323 rm -f core conftest.err conftest.$ac_objext \
16324 conftest$ac_exeext conftest.$ac_ext
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16327 $as_echo "$ac_cv_working_alloca_h" >&6; }
16328 if test $ac_cv_working_alloca_h = yes; then
16330 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16335 $as_echo_n "checking for alloca... " >&6; }
16336 if test "${ac_cv_func_alloca_works+set}" = set; then :
16337 $as_echo_n "(cached) " >&6
16338 else
16339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340 /* end confdefs.h. */
16341 #ifdef __GNUC__
16342 # define alloca __builtin_alloca
16343 #else
16344 # ifdef _MSC_VER
16345 # include <malloc.h>
16346 # define alloca _alloca
16347 # else
16348 # ifdef HAVE_ALLOCA_H
16349 # include <alloca.h>
16350 # else
16351 # ifdef _AIX
16352 #pragma alloca
16353 # else
16354 # ifndef alloca /* predefined by HP cc +Olibcalls */
16355 char *alloca ();
16356 # endif
16357 # endif
16358 # endif
16359 # endif
16360 #endif
16363 main ()
16365 char *p = (char *) alloca (1);
16366 if (p) return 0;
16368 return 0;
16370 _ACEOF
16371 if ac_fn_c_try_link "$LINENO"; then :
16372 ac_cv_func_alloca_works=yes
16373 else
16374 ac_cv_func_alloca_works=no
16376 rm -f core conftest.err conftest.$ac_objext \
16377 conftest$ac_exeext conftest.$ac_ext
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16380 $as_echo "$ac_cv_func_alloca_works" >&6; }
16382 if test $ac_cv_func_alloca_works = yes; then
16384 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16386 else
16387 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16388 # that cause trouble. Some versions do not even contain alloca or
16389 # contain a buggy version. If you still want to use their alloca,
16390 # use ar to extract alloca.o from them instead of compiling alloca.c.
16396 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16398 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16402 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16403 if test "${ac_cv_os_cray+set}" = set; then :
16404 $as_echo_n "(cached) " >&6
16405 else
16406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16407 /* end confdefs.h. */
16408 #if defined CRAY && ! defined CRAY2
16409 webecray
16410 #else
16411 wenotbecray
16412 #endif
16414 _ACEOF
16415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16416 $EGREP "webecray" >/dev/null 2>&1; then :
16417 ac_cv_os_cray=yes
16418 else
16419 ac_cv_os_cray=no
16421 rm -f conftest*
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16425 $as_echo "$ac_cv_os_cray" >&6; }
16426 if test $ac_cv_os_cray = yes; then
16427 for ac_func in _getb67 GETB67 getb67; do
16428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16429 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16430 eval as_val=\$$as_ac_var
16431 if test "x$as_val" = x""yes; then :
16433 cat >>confdefs.h <<_ACEOF
16434 #define CRAY_STACKSEG_END $ac_func
16435 _ACEOF
16437 break
16440 done
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16444 $as_echo_n "checking stack direction for C alloca... " >&6; }
16445 if test "${ac_cv_c_stack_direction+set}" = set; then :
16446 $as_echo_n "(cached) " >&6
16447 else
16448 if test "$cross_compiling" = yes; then :
16449 ac_cv_c_stack_direction=0
16450 else
16451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16452 /* end confdefs.h. */
16453 $ac_includes_default
16455 find_stack_direction (int *addr, int depth)
16457 int dir, dummy = 0;
16458 if (! addr)
16459 addr = &dummy;
16460 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16461 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16462 return dir + dummy;
16466 main (int argc, char **argv)
16468 return find_stack_direction (0, argc + !argv + 20) < 0;
16470 _ACEOF
16471 if ac_fn_c_try_run "$LINENO"; then :
16472 ac_cv_c_stack_direction=1
16473 else
16474 ac_cv_c_stack_direction=-1
16476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16477 conftest.$ac_objext conftest.beam conftest.$ac_ext
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16482 $as_echo "$ac_cv_c_stack_direction" >&6; }
16483 cat >>confdefs.h <<_ACEOF
16484 #define STACK_DIRECTION $ac_cv_c_stack_direction
16485 _ACEOF
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16494 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16495 if test "${ac_cv_c_bigendian+set}" = set; then :
16496 $as_echo_n "(cached) " >&6
16497 else
16498 ac_cv_c_bigendian=unknown
16499 # See if we're dealing with a universal compiler.
16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501 /* end confdefs.h. */
16502 #ifndef __APPLE_CC__
16503 not a universal capable compiler
16504 #endif
16505 typedef int dummy;
16507 _ACEOF
16508 if ac_fn_c_try_compile "$LINENO"; then :
16510 # Check for potential -arch flags. It is not universal unless
16511 # there are at least two -arch flags with different values.
16512 ac_arch=
16513 ac_prev=
16514 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16515 if test -n "$ac_prev"; then
16516 case $ac_word in
16517 i?86 | x86_64 | ppc | ppc64)
16518 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16519 ac_arch=$ac_word
16520 else
16521 ac_cv_c_bigendian=universal
16522 break
16525 esac
16526 ac_prev=
16527 elif test "x$ac_word" = "x-arch"; then
16528 ac_prev=arch
16530 done
16532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16533 if test $ac_cv_c_bigendian = unknown; then
16534 # See if sys/param.h defines the BYTE_ORDER macro.
16535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16536 /* end confdefs.h. */
16537 #include <sys/types.h>
16538 #include <sys/param.h>
16541 main ()
16543 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16544 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16545 && LITTLE_ENDIAN)
16546 bogus endian macros
16547 #endif
16550 return 0;
16552 _ACEOF
16553 if ac_fn_c_try_compile "$LINENO"; then :
16554 # It does; now see whether it defined to BIG_ENDIAN or not.
16555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16556 /* end confdefs.h. */
16557 #include <sys/types.h>
16558 #include <sys/param.h>
16561 main ()
16563 #if BYTE_ORDER != BIG_ENDIAN
16564 not big endian
16565 #endif
16568 return 0;
16570 _ACEOF
16571 if ac_fn_c_try_compile "$LINENO"; then :
16572 ac_cv_c_bigendian=yes
16573 else
16574 ac_cv_c_bigendian=no
16576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16580 if test $ac_cv_c_bigendian = unknown; then
16581 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16583 /* end confdefs.h. */
16584 #include <limits.h>
16587 main ()
16589 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16590 bogus endian macros
16591 #endif
16594 return 0;
16596 _ACEOF
16597 if ac_fn_c_try_compile "$LINENO"; then :
16598 # It does; now see whether it defined to _BIG_ENDIAN or not.
16599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16600 /* end confdefs.h. */
16601 #include <limits.h>
16604 main ()
16606 #ifndef _BIG_ENDIAN
16607 not big endian
16608 #endif
16611 return 0;
16613 _ACEOF
16614 if ac_fn_c_try_compile "$LINENO"; then :
16615 ac_cv_c_bigendian=yes
16616 else
16617 ac_cv_c_bigendian=no
16619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16623 if test $ac_cv_c_bigendian = unknown; then
16624 # Compile a test program.
16625 if test "$cross_compiling" = yes; then :
16626 # Try to guess by grepping values from an object file.
16627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16628 /* end confdefs.h. */
16629 short int ascii_mm[] =
16630 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16631 short int ascii_ii[] =
16632 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16633 int use_ascii (int i) {
16634 return ascii_mm[i] + ascii_ii[i];
16636 short int ebcdic_ii[] =
16637 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16638 short int ebcdic_mm[] =
16639 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16640 int use_ebcdic (int i) {
16641 return ebcdic_mm[i] + ebcdic_ii[i];
16643 extern int foo;
16646 main ()
16648 return use_ascii (foo) == use_ebcdic (foo);
16650 return 0;
16652 _ACEOF
16653 if ac_fn_c_try_compile "$LINENO"; then :
16654 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16655 ac_cv_c_bigendian=yes
16657 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16658 if test "$ac_cv_c_bigendian" = unknown; then
16659 ac_cv_c_bigendian=no
16660 else
16661 # finding both strings is unlikely to happen, but who knows?
16662 ac_cv_c_bigendian=unknown
16666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16667 else
16668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16669 /* end confdefs.h. */
16670 $ac_includes_default
16672 main ()
16675 /* Are we little or big endian? From Harbison&Steele. */
16676 union
16678 long int l;
16679 char c[sizeof (long int)];
16680 } u;
16681 u.l = 1;
16682 return u.c[sizeof (long int) - 1] == 1;
16685 return 0;
16687 _ACEOF
16688 if ac_fn_c_try_run "$LINENO"; then :
16689 ac_cv_c_bigendian=no
16690 else
16691 ac_cv_c_bigendian=yes
16693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16694 conftest.$ac_objext conftest.beam conftest.$ac_ext
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16700 $as_echo "$ac_cv_c_bigendian" >&6; }
16701 case $ac_cv_c_bigendian in #(
16702 yes)
16703 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16704 ;; #(
16706 ;; #(
16707 universal)
16709 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16711 ;; #(
16713 as_fn_error "unknown endianness
16714 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16715 esac
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16720 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16721 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16722 $as_echo_n "(cached) " >&6
16723 else
16724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16725 /* end confdefs.h. */
16726 /* On HP-UX before 11.23, strtold returns a struct instead of
16727 long double. Reject implementations like that, by requiring
16728 compatibility with the C99 prototype. */
16729 #include <stdlib.h>
16730 static long double (*p) (char const *, char **) = strtold;
16731 static long double
16732 test (char const *nptr, char **endptr)
16734 long double r;
16735 r = strtold (nptr, endptr);
16736 return r;
16739 main ()
16741 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16743 return 0;
16745 _ACEOF
16746 if ac_fn_c_try_link "$LINENO"; then :
16747 gl_cv_func_c99_strtold=yes
16748 else
16749 gl_cv_func_c99_strtold=no
16751 rm -f core conftest.err conftest.$ac_objext \
16752 conftest$ac_exeext conftest.$ac_ext
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16755 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16756 if test $gl_cv_func_c99_strtold = yes; then
16758 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16763 GNULIB_CHDIR=0;
16764 GNULIB_CHOWN=0;
16765 GNULIB_CLOSE=0;
16766 GNULIB_DUP=0;
16767 GNULIB_DUP2=0;
16768 GNULIB_DUP3=0;
16769 GNULIB_ENVIRON=0;
16770 GNULIB_EUIDACCESS=0;
16771 GNULIB_FACCESSAT=0;
16772 GNULIB_FCHDIR=0;
16773 GNULIB_FCHOWNAT=0;
16774 GNULIB_FDATASYNC=0;
16775 GNULIB_FSYNC=0;
16776 GNULIB_FTRUNCATE=0;
16777 GNULIB_GETCWD=0;
16778 GNULIB_GETDOMAINNAME=0;
16779 GNULIB_GETDTABLESIZE=0;
16780 GNULIB_GETGROUPS=0;
16781 GNULIB_GETHOSTNAME=0;
16782 GNULIB_GETLOGIN=0;
16783 GNULIB_GETLOGIN_R=0;
16784 GNULIB_GETPAGESIZE=0;
16785 GNULIB_GETUSERSHELL=0;
16786 GNULIB_GROUP_MEMBER=0;
16787 GNULIB_ISATTY=0;
16788 GNULIB_LCHOWN=0;
16789 GNULIB_LINK=0;
16790 GNULIB_LINKAT=0;
16791 GNULIB_LSEEK=0;
16792 GNULIB_PIPE=0;
16793 GNULIB_PIPE2=0;
16794 GNULIB_PREAD=0;
16795 GNULIB_PWRITE=0;
16796 GNULIB_READ=0;
16797 GNULIB_READLINK=0;
16798 GNULIB_READLINKAT=0;
16799 GNULIB_RMDIR=0;
16800 GNULIB_SETHOSTNAME=0;
16801 GNULIB_SLEEP=0;
16802 GNULIB_SYMLINK=0;
16803 GNULIB_SYMLINKAT=0;
16804 GNULIB_TTYNAME_R=0;
16805 GNULIB_UNISTD_H_NONBLOCKING=0;
16806 GNULIB_UNISTD_H_SIGPIPE=0;
16807 GNULIB_UNLINK=0;
16808 GNULIB_UNLINKAT=0;
16809 GNULIB_USLEEP=0;
16810 GNULIB_WRITE=0;
16811 HAVE_CHOWN=1;
16812 HAVE_DUP2=1;
16813 HAVE_DUP3=1;
16814 HAVE_EUIDACCESS=1;
16815 HAVE_FACCESSAT=1;
16816 HAVE_FCHDIR=1;
16817 HAVE_FCHOWNAT=1;
16818 HAVE_FDATASYNC=1;
16819 HAVE_FSYNC=1;
16820 HAVE_FTRUNCATE=1;
16821 HAVE_GETDTABLESIZE=1;
16822 HAVE_GETGROUPS=1;
16823 HAVE_GETHOSTNAME=1;
16824 HAVE_GETLOGIN=1;
16825 HAVE_GETPAGESIZE=1;
16826 HAVE_GROUP_MEMBER=1;
16827 HAVE_LCHOWN=1;
16828 HAVE_LINK=1;
16829 HAVE_LINKAT=1;
16830 HAVE_PIPE=1;
16831 HAVE_PIPE2=1;
16832 HAVE_PREAD=1;
16833 HAVE_PWRITE=1;
16834 HAVE_READLINK=1;
16835 HAVE_READLINKAT=1;
16836 HAVE_SETHOSTNAME=1;
16837 HAVE_SLEEP=1;
16838 HAVE_SYMLINK=1;
16839 HAVE_SYMLINKAT=1;
16840 HAVE_UNLINKAT=1;
16841 HAVE_USLEEP=1;
16842 HAVE_DECL_ENVIRON=1;
16843 HAVE_DECL_FCHDIR=1;
16844 HAVE_DECL_FDATASYNC=1;
16845 HAVE_DECL_GETDOMAINNAME=1;
16846 HAVE_DECL_GETLOGIN_R=1;
16847 HAVE_DECL_GETPAGESIZE=1;
16848 HAVE_DECL_GETUSERSHELL=1;
16849 HAVE_DECL_SETHOSTNAME=1;
16850 HAVE_DECL_TTYNAME_R=1;
16851 HAVE_OS_H=0;
16852 HAVE_SYS_PARAM_H=0;
16853 REPLACE_CHOWN=0;
16854 REPLACE_CLOSE=0;
16855 REPLACE_DUP=0;
16856 REPLACE_DUP2=0;
16857 REPLACE_FCHOWNAT=0;
16858 REPLACE_FTRUNCATE=0;
16859 REPLACE_GETCWD=0;
16860 REPLACE_GETDOMAINNAME=0;
16861 REPLACE_GETLOGIN_R=0;
16862 REPLACE_GETGROUPS=0;
16863 REPLACE_GETPAGESIZE=0;
16864 REPLACE_ISATTY=0;
16865 REPLACE_LCHOWN=0;
16866 REPLACE_LINK=0;
16867 REPLACE_LINKAT=0;
16868 REPLACE_LSEEK=0;
16869 REPLACE_PREAD=0;
16870 REPLACE_PWRITE=0;
16871 REPLACE_READ=0;
16872 REPLACE_READLINK=0;
16873 REPLACE_RMDIR=0;
16874 REPLACE_SLEEP=0;
16875 REPLACE_SYMLINK=0;
16876 REPLACE_TTYNAME_R=0;
16877 REPLACE_UNLINK=0;
16878 REPLACE_UNLINKAT=0;
16879 REPLACE_USLEEP=0;
16880 REPLACE_WRITE=0;
16881 UNISTD_H_HAVE_WINSOCK2_H=0;
16882 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16893 $as_echo_n "checking if environ is properly declared... " >&6; }
16894 if test "${gt_cv_var_environ_declaration+set}" = set; then :
16895 $as_echo_n "(cached) " >&6
16896 else
16898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16899 /* end confdefs.h. */
16900 #if HAVE_UNISTD_H
16901 #include <unistd.h>
16902 #endif
16903 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16904 #include <stdlib.h>
16906 extern struct { int foo; } environ;
16908 main ()
16910 environ.foo = 1;
16912 return 0;
16914 _ACEOF
16915 if ac_fn_c_try_compile "$LINENO"; then :
16916 gt_cv_var_environ_declaration=no
16917 else
16918 gt_cv_var_environ_declaration=yes
16920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16924 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16925 if test $gt_cv_var_environ_declaration = yes; then
16927 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16932 if test $gt_cv_var_environ_declaration != yes; then
16933 HAVE_DECL_ENVIRON=0
16944 GNULIB_FCNTL=0;
16945 GNULIB_NONBLOCKING=0;
16946 GNULIB_OPEN=0;
16947 GNULIB_OPENAT=0;
16948 HAVE_FCNTL=1;
16949 HAVE_OPENAT=1;
16950 REPLACE_FCNTL=0;
16951 REPLACE_OPEN=0;
16952 REPLACE_OPENAT=0;
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16958 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16959 if test "${gl_cv_have_include_next+set}" = set; then :
16960 $as_echo_n "(cached) " >&6
16961 else
16962 rm -rf conftestd1a conftestd1b conftestd2
16963 mkdir conftestd1a conftestd1b conftestd2
16964 cat <<EOF > conftestd1a/conftest.h
16965 #define DEFINED_IN_CONFTESTD1
16966 #include_next <conftest.h>
16967 #ifdef DEFINED_IN_CONFTESTD2
16968 int foo;
16969 #else
16970 #error "include_next doesn't work"
16971 #endif
16973 cat <<EOF > conftestd1b/conftest.h
16974 #define DEFINED_IN_CONFTESTD1
16975 #include <stdio.h>
16976 #include_next <conftest.h>
16977 #ifdef DEFINED_IN_CONFTESTD2
16978 int foo;
16979 #else
16980 #error "include_next doesn't work"
16981 #endif
16983 cat <<EOF > conftestd2/conftest.h
16984 #ifndef DEFINED_IN_CONFTESTD1
16985 #error "include_next test doesn't work"
16986 #endif
16987 #define DEFINED_IN_CONFTESTD2
16989 gl_save_CPPFLAGS="$CPPFLAGS"
16990 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16992 /* end confdefs.h. */
16993 #include <conftest.h>
16994 _ACEOF
16995 if ac_fn_c_try_compile "$LINENO"; then :
16996 gl_cv_have_include_next=yes
16997 else
16998 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17000 /* end confdefs.h. */
17001 #include <conftest.h>
17002 _ACEOF
17003 if ac_fn_c_try_compile "$LINENO"; then :
17004 gl_cv_have_include_next=buggy
17005 else
17006 gl_cv_have_include_next=no
17008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17012 CPPFLAGS="$gl_save_CPPFLAGS"
17013 rm -rf conftestd1a conftestd1b conftestd2
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17017 $as_echo "$gl_cv_have_include_next" >&6; }
17018 PRAGMA_SYSTEM_HEADER=
17019 if test $gl_cv_have_include_next = yes; then
17020 INCLUDE_NEXT=include_next
17021 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17022 if test -n "$GCC"; then
17023 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17025 else
17026 if test $gl_cv_have_include_next = buggy; then
17027 INCLUDE_NEXT=include
17028 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17029 else
17030 INCLUDE_NEXT=include
17031 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17038 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17039 if test "${gl_cv_pragma_columns+set}" = set; then :
17040 $as_echo_n "(cached) " >&6
17041 else
17042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17043 /* end confdefs.h. */
17045 #ifdef __TANDEM
17046 choke me
17047 #endif
17049 _ACEOF
17050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17051 $EGREP "choke me" >/dev/null 2>&1; then :
17052 gl_cv_pragma_columns=yes
17053 else
17054 gl_cv_pragma_columns=no
17056 rm -f conftest*
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17061 $as_echo "$gl_cv_pragma_columns" >&6; }
17062 if test $gl_cv_pragma_columns = yes; then
17063 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17064 else
17065 PRAGMA_COLUMNS=
17069 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17070 if test "x$ac_cv_type_mode_t" = x""yes; then :
17072 else
17074 cat >>confdefs.h <<_ACEOF
17075 #define mode_t int
17076 _ACEOF
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
17081 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
17082 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
17083 $as_echo_n "(cached) " >&6
17084 else
17085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17086 /* end confdefs.h. */
17088 #include <sys/types.h>
17089 #include <sys/stat.h>
17091 main ()
17093 struct stat s; s.st_dm_mode;
17095 return 0;
17097 _ACEOF
17098 if ac_fn_c_try_compile "$LINENO"; then :
17099 ac_cv_struct_st_dm_mode=yes
17100 else
17101 ac_cv_struct_st_dm_mode=no
17103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
17106 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
17108 if test $ac_cv_struct_st_dm_mode = yes; then
17110 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
17115 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
17116 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
17117 ac_have_decl=1
17118 else
17119 ac_have_decl=0
17122 cat >>confdefs.h <<_ACEOF
17123 #define HAVE_DECL_STRMODE $ac_have_decl
17124 _ACEOF
17131 GNULIB__EXIT=0;
17132 GNULIB_ATOLL=0;
17133 GNULIB_CALLOC_POSIX=0;
17134 GNULIB_CANONICALIZE_FILE_NAME=0;
17135 GNULIB_GETLOADAVG=0;
17136 GNULIB_GETSUBOPT=0;
17137 GNULIB_GRANTPT=0;
17138 GNULIB_MALLOC_POSIX=0;
17139 GNULIB_MBTOWC=0;
17140 GNULIB_MKDTEMP=0;
17141 GNULIB_MKOSTEMP=0;
17142 GNULIB_MKOSTEMPS=0;
17143 GNULIB_MKSTEMP=0;
17144 GNULIB_MKSTEMPS=0;
17145 GNULIB_POSIX_OPENPT=0;
17146 GNULIB_PTSNAME=0;
17147 GNULIB_PTSNAME_R=0;
17148 GNULIB_PUTENV=0;
17149 GNULIB_RANDOM=0;
17150 GNULIB_RANDOM_R=0;
17151 GNULIB_REALLOC_POSIX=0;
17152 GNULIB_REALPATH=0;
17153 GNULIB_RPMATCH=0;
17154 GNULIB_SETENV=0;
17155 GNULIB_STRTOD=0;
17156 GNULIB_STRTOLL=0;
17157 GNULIB_STRTOULL=0;
17158 GNULIB_SYSTEM_POSIX=0;
17159 GNULIB_UNLOCKPT=0;
17160 GNULIB_UNSETENV=0;
17161 GNULIB_WCTOMB=0;
17162 HAVE__EXIT=1;
17163 HAVE_ATOLL=1;
17164 HAVE_CANONICALIZE_FILE_NAME=1;
17165 HAVE_DECL_GETLOADAVG=1;
17166 HAVE_GETSUBOPT=1;
17167 HAVE_GRANTPT=1;
17168 HAVE_MKDTEMP=1;
17169 HAVE_MKOSTEMP=1;
17170 HAVE_MKOSTEMPS=1;
17171 HAVE_MKSTEMP=1;
17172 HAVE_MKSTEMPS=1;
17173 HAVE_POSIX_OPENPT=1;
17174 HAVE_PTSNAME=1;
17175 HAVE_PTSNAME_R=1;
17176 HAVE_RANDOM=1;
17177 HAVE_RANDOM_H=1;
17178 HAVE_RANDOM_R=1;
17179 HAVE_REALPATH=1;
17180 HAVE_RPMATCH=1;
17181 HAVE_SETENV=1;
17182 HAVE_DECL_SETENV=1;
17183 HAVE_STRTOD=1;
17184 HAVE_STRTOLL=1;
17185 HAVE_STRTOULL=1;
17186 HAVE_STRUCT_RANDOM_DATA=1;
17187 HAVE_SYS_LOADAVG_H=0;
17188 HAVE_UNLOCKPT=1;
17189 HAVE_DECL_UNSETENV=1;
17190 REPLACE_CALLOC=0;
17191 REPLACE_CANONICALIZE_FILE_NAME=0;
17192 REPLACE_MALLOC=0;
17193 REPLACE_MBTOWC=0;
17194 REPLACE_MKSTEMP=0;
17195 REPLACE_PTSNAME=0;
17196 REPLACE_PTSNAME_R=0;
17197 REPLACE_PUTENV=0;
17198 REPLACE_RANDOM_R=0;
17199 REPLACE_REALLOC=0;
17200 REPLACE_REALPATH=0;
17201 REPLACE_SETENV=0;
17202 REPLACE_STRTOD=0;
17203 REPLACE_UNSETENV=0;
17204 REPLACE_WCTOMB=0;
17221 if test $gl_cv_have_include_next = yes; then
17222 gl_cv_next_getopt_h='<'getopt.h'>'
17223 else
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17225 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17226 if test "${gl_cv_next_getopt_h+set}" = set; then :
17227 $as_echo_n "(cached) " >&6
17228 else
17230 if test $ac_cv_header_getopt_h = yes; then
17233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17234 /* end confdefs.h. */
17235 #include <getopt.h>
17237 _ACEOF
17238 case "$host_os" in
17239 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17240 *) gl_absname_cpp="$ac_cpp" ;;
17241 esac
17243 case "$host_os" in
17244 mingw*)
17245 gl_dirsep_regex='[/\\]'
17248 gl_dirsep_regex='\/'
17250 esac
17251 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17253 gl_header_literal_regex=`echo 'getopt.h' \
17254 | sed -e "$gl_make_literal_regex_sed"`
17255 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17256 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17257 s|^/[^/]|//&|
17261 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17262 sed -n "$gl_absolute_header_sed"`'"'
17263 else
17264 gl_cv_next_getopt_h='<'getopt.h'>'
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17270 $as_echo "$gl_cv_next_getopt_h" >&6; }
17272 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17274 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17275 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17276 gl_next_as_first_directive='<'getopt.h'>'
17277 else
17278 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17279 gl_next_as_first_directive=$gl_cv_next_getopt_h
17281 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17286 if test $ac_cv_header_getopt_h = yes; then
17287 HAVE_GETOPT_H=1
17288 else
17289 HAVE_GETOPT_H=0
17293 gl_replace_getopt=
17295 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17296 for ac_header in getopt.h
17297 do :
17298 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17299 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17300 cat >>confdefs.h <<_ACEOF
17301 #define HAVE_GETOPT_H 1
17302 _ACEOF
17304 else
17305 gl_replace_getopt=yes
17308 done
17312 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17313 for ac_func in getopt_long_only
17314 do :
17315 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17316 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17317 cat >>confdefs.h <<_ACEOF
17318 #define HAVE_GETOPT_LONG_ONLY 1
17319 _ACEOF
17321 else
17322 gl_replace_getopt=yes
17324 done
17328 if test -z "$gl_replace_getopt"; then
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17330 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17331 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17332 $as_echo_n "(cached) " >&6
17333 else
17335 if test $cross_compiling = no; then
17336 if test "$cross_compiling" = yes; then :
17337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17339 as_fn_error "cannot run test program while cross compiling
17340 See \`config.log' for more details." "$LINENO" 5; }
17341 else
17342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17343 /* end confdefs.h. */
17345 #include <unistd.h>
17346 #include <stdlib.h>
17347 #include <string.h>
17350 main ()
17352 static char program[] = "program";
17353 static char a[] = "-a";
17354 static char foo[] = "foo";
17355 static char bar[] = "bar";
17356 char *argv[] = { program, a, foo, bar, NULL };
17357 int c;
17359 c = getopt (4, argv, "ab");
17360 if (!(c == 'a'))
17361 return 1;
17362 c = getopt (4, argv, "ab");
17363 if (!(c == -1))
17364 return 2;
17365 if (!(optind == 2))
17366 return 3;
17367 return 0;
17370 _ACEOF
17371 if ac_fn_c_try_run "$LINENO"; then :
17372 gl_cv_func_getopt_posix=maybe
17373 else
17374 gl_cv_func_getopt_posix=no
17376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17377 conftest.$ac_objext conftest.beam conftest.$ac_ext
17380 if test $gl_cv_func_getopt_posix = maybe; then
17381 if test "$cross_compiling" = yes; then :
17382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17384 as_fn_error "cannot run test program while cross compiling
17385 See \`config.log' for more details." "$LINENO" 5; }
17386 else
17387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17388 /* end confdefs.h. */
17390 #include <unistd.h>
17391 #include <stdlib.h>
17392 #include <string.h>
17395 main ()
17397 static char program[] = "program";
17398 static char donald[] = "donald";
17399 static char p[] = "-p";
17400 static char billy[] = "billy";
17401 static char duck[] = "duck";
17402 static char a[] = "-a";
17403 static char bar[] = "bar";
17404 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17405 int c;
17407 c = getopt (7, argv, "+abp:q:");
17408 if (!(c == -1))
17409 return 4;
17410 if (!(strcmp (argv[0], "program") == 0))
17411 return 5;
17412 if (!(strcmp (argv[1], "donald") == 0))
17413 return 6;
17414 if (!(strcmp (argv[2], "-p") == 0))
17415 return 7;
17416 if (!(strcmp (argv[3], "billy") == 0))
17417 return 8;
17418 if (!(strcmp (argv[4], "duck") == 0))
17419 return 9;
17420 if (!(strcmp (argv[5], "-a") == 0))
17421 return 10;
17422 if (!(strcmp (argv[6], "bar") == 0))
17423 return 11;
17424 if (!(optind == 1))
17425 return 12;
17426 return 0;
17429 _ACEOF
17430 if ac_fn_c_try_run "$LINENO"; then :
17431 gl_cv_func_getopt_posix=maybe
17432 else
17433 gl_cv_func_getopt_posix=no
17435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17436 conftest.$ac_objext conftest.beam conftest.$ac_ext
17440 if test $gl_cv_func_getopt_posix = maybe; then
17441 if test "$cross_compiling" = yes; then :
17442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17444 as_fn_error "cannot run test program while cross compiling
17445 See \`config.log' for more details." "$LINENO" 5; }
17446 else
17447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17448 /* end confdefs.h. */
17450 #include <unistd.h>
17451 #include <stdlib.h>
17452 #include <string.h>
17455 main ()
17457 static char program[] = "program";
17458 static char ab[] = "-ab";
17459 char *argv[3] = { program, ab, NULL };
17460 if (getopt (2, argv, "ab:") != 'a')
17461 return 13;
17462 if (getopt (2, argv, "ab:") != '?')
17463 return 14;
17464 if (optopt != 'b')
17465 return 15;
17466 if (optind != 2)
17467 return 16;
17468 return 0;
17471 _ACEOF
17472 if ac_fn_c_try_run "$LINENO"; then :
17473 gl_cv_func_getopt_posix=yes
17474 else
17475 gl_cv_func_getopt_posix=no
17477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17478 conftest.$ac_objext conftest.beam conftest.$ac_ext
17482 else
17483 case "$host_os" in
17484 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
17485 *) gl_cv_func_getopt_posix="guessing yes";;
17486 esac
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17491 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17492 case "$gl_cv_func_getopt_posix" in
17493 *no) gl_replace_getopt=yes ;;
17494 esac
17497 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17499 $as_echo_n "checking for working GNU getopt function... " >&6; }
17500 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17501 $as_echo_n "(cached) " >&6
17502 else
17503 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17504 # optstring is necessary for programs like m4 that have POSIX-mandated
17505 # semantics for supporting options interspersed with files.
17506 # Also, since getopt_long is a GNU extension, we require optind=0.
17507 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17508 # so take care to revert to the correct (non-)export state.
17509 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17510 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17511 xx) gl_had_POSIXLY_CORRECT=exported ;;
17512 x) gl_had_POSIXLY_CORRECT=yes ;;
17513 *) gl_had_POSIXLY_CORRECT= ;;
17514 esac
17515 POSIXLY_CORRECT=1
17516 export POSIXLY_CORRECT
17517 if test "$cross_compiling" = yes; then :
17518 gl_cv_func_getopt_gnu="guessing no"
17520 else
17521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17522 /* end confdefs.h. */
17523 #include <getopt.h>
17524 #include <stddef.h>
17525 #include <string.h>
17527 #include <stdlib.h>
17528 #if defined __MACH__ && defined __APPLE__
17529 /* Avoid a crash on Mac OS X. */
17530 #include <mach/mach.h>
17531 #include <mach/mach_error.h>
17532 #include <mach/thread_status.h>
17533 #include <mach/exception.h>
17534 #include <mach/task.h>
17535 #include <pthread.h>
17536 /* The exception port on which our thread listens. */
17537 static mach_port_t our_exception_port;
17538 /* The main function of the thread listening for exceptions of type
17539 EXC_BAD_ACCESS. */
17540 static void *
17541 mach_exception_thread (void *arg)
17543 /* Buffer for a message to be received. */
17544 struct {
17545 mach_msg_header_t head;
17546 mach_msg_body_t msgh_body;
17547 char data[1024];
17548 } msg;
17549 mach_msg_return_t retval;
17550 /* Wait for a message on the exception port. */
17551 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17552 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17553 if (retval != MACH_MSG_SUCCESS)
17554 abort ();
17555 exit (1);
17557 static void
17558 nocrash_init (void)
17560 mach_port_t self = mach_task_self ();
17561 /* Allocate a port on which the thread shall listen for exceptions. */
17562 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17563 == KERN_SUCCESS) {
17564 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17565 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17566 MACH_MSG_TYPE_MAKE_SEND)
17567 == KERN_SUCCESS) {
17568 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17569 for us. */
17570 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17571 /* Create the thread listening on the exception port. */
17572 pthread_attr_t attr;
17573 pthread_t thread;
17574 if (pthread_attr_init (&attr) == 0
17575 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17576 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17577 pthread_attr_destroy (&attr);
17578 /* Replace the exception port info for these exceptions with our own.
17579 Note that we replace the exception port for the entire task, not only
17580 for a particular thread. This has the effect that when our exception
17581 port gets the message, the thread specific exception port has already
17582 been asked, and we don't need to bother about it.
17583 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17584 task_set_exception_ports (self, mask, our_exception_port,
17585 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17590 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17591 /* Avoid a crash on native Windows. */
17592 #define WIN32_LEAN_AND_MEAN
17593 #include <windows.h>
17594 #include <winerror.h>
17595 static LONG WINAPI
17596 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17598 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17600 case EXCEPTION_ACCESS_VIOLATION:
17601 case EXCEPTION_IN_PAGE_ERROR:
17602 case EXCEPTION_STACK_OVERFLOW:
17603 case EXCEPTION_GUARD_PAGE:
17604 case EXCEPTION_PRIV_INSTRUCTION:
17605 case EXCEPTION_ILLEGAL_INSTRUCTION:
17606 case EXCEPTION_DATATYPE_MISALIGNMENT:
17607 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17608 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17609 exit (1);
17611 return EXCEPTION_CONTINUE_SEARCH;
17613 static void
17614 nocrash_init (void)
17616 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17618 #else
17619 /* Avoid a crash on POSIX systems. */
17620 #include <signal.h>
17621 /* A POSIX signal handler. */
17622 static void
17623 exception_handler (int sig)
17625 exit (1);
17627 static void
17628 nocrash_init (void)
17630 #ifdef SIGSEGV
17631 signal (SIGSEGV, exception_handler);
17632 #endif
17633 #ifdef SIGBUS
17634 signal (SIGBUS, exception_handler);
17635 #endif
17637 #endif
17641 main ()
17644 int result = 0;
17646 nocrash_init();
17648 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17649 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17650 OSF/1 5.1, Solaris 10. */
17652 static char conftest[] = "conftest";
17653 static char plus[] = "-+";
17654 char *argv[3] = { conftest, plus, NULL };
17655 opterr = 0;
17656 if (getopt (2, argv, "+a") != '?')
17657 result |= 1;
17659 /* This code succeeds on glibc 2.8, mingw,
17660 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17661 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17663 static char program[] = "program";
17664 static char p[] = "-p";
17665 static char foo[] = "foo";
17666 static char bar[] = "bar";
17667 char *argv[] = { program, p, foo, bar, NULL };
17669 optind = 1;
17670 if (getopt (4, argv, "p::") != 'p')
17671 result |= 2;
17672 else if (optarg != NULL)
17673 result |= 4;
17674 else if (getopt (4, argv, "p::") != -1)
17675 result |= 6;
17676 else if (optind != 2)
17677 result |= 8;
17679 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17681 static char program[] = "program";
17682 static char foo[] = "foo";
17683 static char p[] = "-p";
17684 char *argv[] = { program, foo, p, NULL };
17685 optind = 0;
17686 if (getopt (3, argv, "-p") != 1)
17687 result |= 16;
17688 else if (getopt (3, argv, "-p") != 'p')
17689 result |= 16;
17691 /* This code fails on glibc 2.11. */
17693 static char program[] = "program";
17694 static char b[] = "-b";
17695 static char a[] = "-a";
17696 char *argv[] = { program, b, a, NULL };
17697 optind = opterr = 0;
17698 if (getopt (3, argv, "+:a:b") != 'b')
17699 result |= 32;
17700 else if (getopt (3, argv, "+:a:b") != ':')
17701 result |= 32;
17703 /* This code dumps core on glibc 2.14. */
17705 static char program[] = "program";
17706 static char w[] = "-W";
17707 static char dummy[] = "dummy";
17708 char *argv[] = { program, w, dummy, NULL };
17709 optind = opterr = 1;
17710 if (getopt (3, argv, "W;") != 'W')
17711 result |= 64;
17713 return result;
17716 return 0;
17718 _ACEOF
17719 if ac_fn_c_try_run "$LINENO"; then :
17720 gl_cv_func_getopt_gnu=yes
17721 else
17722 gl_cv_func_getopt_gnu=no
17724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17725 conftest.$ac_objext conftest.beam conftest.$ac_ext
17728 case $gl_had_POSIXLY_CORRECT in
17729 exported) ;;
17730 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17731 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17732 esac
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17736 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17737 if test "$gl_cv_func_getopt_gnu" != yes; then
17738 gl_replace_getopt=yes
17739 else
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17741 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17742 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17743 $as_echo_n "(cached) " >&6
17744 else
17745 if test "$cross_compiling" = yes; then :
17746 case "$host_os" in
17747 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
17748 *) gl_cv_func_getopt_long_gnu="guessing yes";;
17749 esac
17751 else
17752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17753 /* end confdefs.h. */
17754 #include <getopt.h>
17755 #include <stddef.h>
17756 #include <string.h>
17759 main ()
17761 static const struct option long_options[] =
17763 { "xtremely-",no_argument, NULL, 1003 },
17764 { "xtra", no_argument, NULL, 1001 },
17765 { "xtreme", no_argument, NULL, 1002 },
17766 { "xtremely", no_argument, NULL, 1003 },
17767 { NULL, 0, NULL, 0 }
17769 /* This code fails on OpenBSD 5.0. */
17771 static char program[] = "program";
17772 static char xtremel[] = "--xtremel";
17773 char *argv[] = { program, xtremel, NULL };
17774 int option_index;
17775 optind = 1; opterr = 0;
17776 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17777 return 1;
17779 return 0;
17782 return 0;
17784 _ACEOF
17785 if ac_fn_c_try_run "$LINENO"; then :
17786 gl_cv_func_getopt_long_gnu=yes
17787 else
17788 gl_cv_func_getopt_long_gnu=no
17790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17791 conftest.$ac_objext conftest.beam conftest.$ac_ext
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
17797 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
17798 case "$gl_cv_func_getopt_long_gnu" in
17799 *yes) ;;
17800 *) gl_replace_getopt=yes ;;
17801 esac
17810 REPLACE_GETOPT=0
17811 if test -n "$gl_replace_getopt"; then
17812 REPLACE_GETOPT=1
17815 if test $REPLACE_GETOPT = 1; then
17817 GETOPT_H=getopt.h
17819 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17825 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17826 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17827 ac_have_decl=1
17828 else
17829 ac_have_decl=0
17832 cat >>confdefs.h <<_ACEOF
17833 #define HAVE_DECL_GETENV $ac_have_decl
17834 _ACEOF
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17842 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17843 if test "${ac_cv_c_restrict+set}" = set; then :
17844 $as_echo_n "(cached) " >&6
17845 else
17846 ac_cv_c_restrict=no
17847 # The order here caters to the fact that C++ does not require restrict.
17848 for ac_kw in __restrict __restrict__ _Restrict restrict; do
17849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17850 /* end confdefs.h. */
17851 typedef int * int_ptr;
17852 int foo (int_ptr $ac_kw ip) {
17853 return ip[0];
17856 main ()
17858 int s[1];
17859 int * $ac_kw t = s;
17860 t[0] = 0;
17861 return foo(t)
17863 return 0;
17865 _ACEOF
17866 if ac_fn_c_try_compile "$LINENO"; then :
17867 ac_cv_c_restrict=$ac_kw
17869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17870 test "$ac_cv_c_restrict" != no && break
17871 done
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17875 $as_echo "$ac_cv_c_restrict" >&6; }
17877 case $ac_cv_c_restrict in
17878 restrict) ;;
17879 no) $as_echo "#define restrict /**/" >>confdefs.h
17881 *) cat >>confdefs.h <<_ACEOF
17882 #define restrict $ac_cv_c_restrict
17883 _ACEOF
17885 esac
17888 GNULIB_GETTIMEOFDAY=0;
17889 HAVE_GETTIMEOFDAY=1;
17890 HAVE_STRUCT_TIMEVAL=1;
17891 HAVE_SYS_TIME_H=1;
17892 REPLACE_GETTIMEOFDAY=0;
17893 REPLACE_STRUCT_TIMEVAL=0;
17910 if test $gl_cv_have_include_next = yes; then
17911 gl_cv_next_sys_time_h='<'sys/time.h'>'
17912 else
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17914 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17915 if test "${gl_cv_next_sys_time_h+set}" = set; then :
17916 $as_echo_n "(cached) " >&6
17917 else
17919 if test $ac_cv_header_sys_time_h = yes; then
17922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17923 /* end confdefs.h. */
17924 #include <sys/time.h>
17926 _ACEOF
17927 case "$host_os" in
17928 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17929 *) gl_absname_cpp="$ac_cpp" ;;
17930 esac
17932 case "$host_os" in
17933 mingw*)
17934 gl_dirsep_regex='[/\\]'
17937 gl_dirsep_regex='\/'
17939 esac
17940 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17942 gl_header_literal_regex=`echo 'sys/time.h' \
17943 | sed -e "$gl_make_literal_regex_sed"`
17944 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17945 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17946 s|^/[^/]|//&|
17950 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17951 sed -n "$gl_absolute_header_sed"`'"'
17952 else
17953 gl_cv_next_sys_time_h='<'sys/time.h'>'
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17959 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17961 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
17963 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17964 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17965 gl_next_as_first_directive='<'sys/time.h'>'
17966 else
17967 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17968 gl_next_as_first_directive=$gl_cv_next_sys_time_h
17970 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
17976 if test $ac_cv_header_sys_time_h != yes; then
17977 HAVE_SYS_TIME_H=0
17984 if test $ac_cv_header_sys_socket_h != yes; then
17985 for ac_header in winsock2.h
17986 do :
17987 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17988 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
17989 cat >>confdefs.h <<_ACEOF
17990 #define HAVE_WINSOCK2_H 1
17991 _ACEOF
17995 done
17998 if test "$ac_cv_header_winsock2_h" = yes; then
17999 HAVE_WINSOCK2_H=1
18000 UNISTD_H_HAVE_WINSOCK2_H=1
18001 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18002 else
18003 HAVE_WINSOCK2_H=0
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
18008 $as_echo_n "checking for struct timeval... " >&6; }
18009 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
18010 $as_echo_n "(cached) " >&6
18011 else
18012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18013 /* end confdefs.h. */
18014 #if HAVE_SYS_TIME_H
18015 #include <sys/time.h>
18016 #endif
18017 #include <time.h>
18018 #if HAVE_WINSOCK2_H
18019 # include <winsock2.h>
18020 #endif
18023 main ()
18025 static struct timeval x; x.tv_sec = x.tv_usec;
18027 return 0;
18029 _ACEOF
18030 if ac_fn_c_try_compile "$LINENO"; then :
18031 gl_cv_sys_struct_timeval=yes
18032 else
18033 gl_cv_sys_struct_timeval=no
18035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
18039 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
18040 if test $gl_cv_sys_struct_timeval != yes; then
18041 HAVE_STRUCT_TIMEVAL=0
18042 else
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
18044 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
18045 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
18046 $as_echo_n "(cached) " >&6
18047 else
18048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18049 /* end confdefs.h. */
18050 #if HAVE_SYS_TIME_H
18051 #include <sys/time.h>
18052 #endif
18053 #include <time.h>
18054 #if HAVE_WINSOCK2_H
18055 # include <winsock2.h>
18056 #endif
18059 main ()
18061 static struct timeval x;
18062 typedef int verify_tv_sec_type[
18063 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
18067 return 0;
18069 _ACEOF
18070 if ac_fn_c_try_compile "$LINENO"; then :
18071 gl_cv_sys_struct_timeval_tv_sec=yes
18072 else
18073 gl_cv_sys_struct_timeval_tv_sec=no
18075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
18079 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
18080 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
18081 REPLACE_STRUCT_TIMEVAL=1
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18092 $as_echo_n "checking for unsigned long long int... " >&6; }
18093 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
18094 $as_echo_n "(cached) " >&6
18095 else
18096 ac_cv_type_unsigned_long_long_int=yes
18097 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18099 /* end confdefs.h. */
18101 /* For now, do not test the preprocessor; as of 2007 there are too many
18102 implementations with broken preprocessors. Perhaps this can
18103 be revisited in 2012. In the meantime, code should not expect
18104 #if to work with literals wider than 32 bits. */
18105 /* Test literals. */
18106 long long int ll = 9223372036854775807ll;
18107 long long int nll = -9223372036854775807LL;
18108 unsigned long long int ull = 18446744073709551615ULL;
18109 /* Test constant expressions. */
18110 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18111 ? 1 : -1)];
18112 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18113 ? 1 : -1)];
18114 int i = 63;
18116 main ()
18118 /* Test availability of runtime routines for shift and division. */
18119 long long int llmax = 9223372036854775807ll;
18120 unsigned long long int ullmax = 18446744073709551615ull;
18121 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18122 | (llmax / ll) | (llmax % ll)
18123 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18124 | (ullmax / ull) | (ullmax % ull));
18126 return 0;
18129 _ACEOF
18130 if ac_fn_c_try_link "$LINENO"; then :
18132 else
18133 ac_cv_type_unsigned_long_long_int=no
18135 rm -f core conftest.err conftest.$ac_objext \
18136 conftest$ac_exeext conftest.$ac_ext
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18140 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18141 if test $ac_cv_type_unsigned_long_long_int = yes; then
18143 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18150 $as_echo_n "checking for long long int... " >&6; }
18151 if test "${ac_cv_type_long_long_int+set}" = set; then :
18152 $as_echo_n "(cached) " >&6
18153 else
18154 ac_cv_type_long_long_int=yes
18155 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18156 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18157 if test $ac_cv_type_long_long_int = yes; then
18158 if test "$cross_compiling" = yes; then :
18160 else
18161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18162 /* end confdefs.h. */
18163 #include <limits.h>
18164 #ifndef LLONG_MAX
18165 # define HALF \
18166 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18167 # define LLONG_MAX (HALF - 1 + HALF)
18168 #endif
18170 main ()
18172 long long int n = 1;
18173 int i;
18174 for (i = 0; ; i++)
18176 long long int m = n << i;
18177 if (m >> i != n)
18178 return 1;
18179 if (LLONG_MAX / 2 < m)
18180 break;
18182 return 0;
18184 return 0;
18186 _ACEOF
18187 if ac_fn_c_try_run "$LINENO"; then :
18189 else
18190 ac_cv_type_long_long_int=no
18192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18193 conftest.$ac_objext conftest.beam conftest.$ac_ext
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18200 $as_echo "$ac_cv_type_long_long_int" >&6; }
18201 if test $ac_cv_type_long_long_int = yes; then
18203 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18212 gl_cv_c_multiarch=no
18213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18214 /* end confdefs.h. */
18215 #ifndef __APPLE_CC__
18216 not a universal capable compiler
18217 #endif
18218 typedef int dummy;
18220 _ACEOF
18221 if ac_fn_c_try_compile "$LINENO"; then :
18223 arch=
18224 prev=
18225 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18226 if test -n "$prev"; then
18227 case $word in
18228 i?86 | x86_64 | ppc | ppc64)
18229 if test -z "$arch" || test "$arch" = "$word"; then
18230 arch="$word"
18231 else
18232 gl_cv_c_multiarch=yes
18235 esac
18236 prev=
18237 else
18238 if test "x$word" = "x-arch"; then
18239 prev=arch
18242 done
18245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18246 if test $gl_cv_c_multiarch = yes; then
18247 APPLE_UNIVERSAL_BUILD=1
18248 else
18249 APPLE_UNIVERSAL_BUILD=0
18256 if test $ac_cv_type_long_long_int = yes; then
18257 HAVE_LONG_LONG_INT=1
18258 else
18259 HAVE_LONG_LONG_INT=0
18263 if test $ac_cv_type_unsigned_long_long_int = yes; then
18264 HAVE_UNSIGNED_LONG_LONG_INT=1
18265 else
18266 HAVE_UNSIGNED_LONG_LONG_INT=0
18271 if test $ac_cv_header_wchar_h = yes; then
18272 HAVE_WCHAR_H=1
18273 else
18274 HAVE_WCHAR_H=0
18278 if test $ac_cv_header_inttypes_h = yes; then
18279 HAVE_INTTYPES_H=1
18280 else
18281 HAVE_INTTYPES_H=0
18285 if test $ac_cv_header_sys_types_h = yes; then
18286 HAVE_SYS_TYPES_H=1
18287 else
18288 HAVE_SYS_TYPES_H=0
18301 if test $gl_cv_have_include_next = yes; then
18302 gl_cv_next_stdint_h='<'stdint.h'>'
18303 else
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18305 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18306 if test "${gl_cv_next_stdint_h+set}" = set; then :
18307 $as_echo_n "(cached) " >&6
18308 else
18310 if test $ac_cv_header_stdint_h = yes; then
18313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18314 /* end confdefs.h. */
18315 #include <stdint.h>
18317 _ACEOF
18318 case "$host_os" in
18319 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18320 *) gl_absname_cpp="$ac_cpp" ;;
18321 esac
18323 case "$host_os" in
18324 mingw*)
18325 gl_dirsep_regex='[/\\]'
18328 gl_dirsep_regex='\/'
18330 esac
18331 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18333 gl_header_literal_regex=`echo 'stdint.h' \
18334 | sed -e "$gl_make_literal_regex_sed"`
18335 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18336 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18337 s|^/[^/]|//&|
18341 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18342 sed -n "$gl_absolute_header_sed"`'"'
18343 else
18344 gl_cv_next_stdint_h='<'stdint.h'>'
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18350 $as_echo "$gl_cv_next_stdint_h" >&6; }
18352 NEXT_STDINT_H=$gl_cv_next_stdint_h
18354 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18355 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18356 gl_next_as_first_directive='<'stdint.h'>'
18357 else
18358 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18359 gl_next_as_first_directive=$gl_cv_next_stdint_h
18361 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18366 if test $ac_cv_header_stdint_h = yes; then
18367 HAVE_STDINT_H=1
18368 else
18369 HAVE_STDINT_H=0
18373 if test $ac_cv_header_stdint_h = yes; then
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18375 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18376 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18377 $as_echo_n "(cached) " >&6
18378 else
18379 gl_cv_header_working_stdint_h=no
18380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18381 /* end confdefs.h. */
18384 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18385 #include <stdint.h>
18386 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18387 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18388 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18389 #endif
18392 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18393 included before <wchar.h>. */
18394 #include <stddef.h>
18395 #include <signal.h>
18396 #if HAVE_WCHAR_H
18397 # include <stdio.h>
18398 # include <time.h>
18399 # include <wchar.h>
18400 #endif
18403 #ifdef INT8_MAX
18404 int8_t a1 = INT8_MAX;
18405 int8_t a1min = INT8_MIN;
18406 #endif
18407 #ifdef INT16_MAX
18408 int16_t a2 = INT16_MAX;
18409 int16_t a2min = INT16_MIN;
18410 #endif
18411 #ifdef INT32_MAX
18412 int32_t a3 = INT32_MAX;
18413 int32_t a3min = INT32_MIN;
18414 #endif
18415 #ifdef INT64_MAX
18416 int64_t a4 = INT64_MAX;
18417 int64_t a4min = INT64_MIN;
18418 #endif
18419 #ifdef UINT8_MAX
18420 uint8_t b1 = UINT8_MAX;
18421 #else
18422 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18423 #endif
18424 #ifdef UINT16_MAX
18425 uint16_t b2 = UINT16_MAX;
18426 #endif
18427 #ifdef UINT32_MAX
18428 uint32_t b3 = UINT32_MAX;
18429 #endif
18430 #ifdef UINT64_MAX
18431 uint64_t b4 = UINT64_MAX;
18432 #endif
18433 int_least8_t c1 = INT8_C (0x7f);
18434 int_least8_t c1max = INT_LEAST8_MAX;
18435 int_least8_t c1min = INT_LEAST8_MIN;
18436 int_least16_t c2 = INT16_C (0x7fff);
18437 int_least16_t c2max = INT_LEAST16_MAX;
18438 int_least16_t c2min = INT_LEAST16_MIN;
18439 int_least32_t c3 = INT32_C (0x7fffffff);
18440 int_least32_t c3max = INT_LEAST32_MAX;
18441 int_least32_t c3min = INT_LEAST32_MIN;
18442 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18443 int_least64_t c4max = INT_LEAST64_MAX;
18444 int_least64_t c4min = INT_LEAST64_MIN;
18445 uint_least8_t d1 = UINT8_C (0xff);
18446 uint_least8_t d1max = UINT_LEAST8_MAX;
18447 uint_least16_t d2 = UINT16_C (0xffff);
18448 uint_least16_t d2max = UINT_LEAST16_MAX;
18449 uint_least32_t d3 = UINT32_C (0xffffffff);
18450 uint_least32_t d3max = UINT_LEAST32_MAX;
18451 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18452 uint_least64_t d4max = UINT_LEAST64_MAX;
18453 int_fast8_t e1 = INT_FAST8_MAX;
18454 int_fast8_t e1min = INT_FAST8_MIN;
18455 int_fast16_t e2 = INT_FAST16_MAX;
18456 int_fast16_t e2min = INT_FAST16_MIN;
18457 int_fast32_t e3 = INT_FAST32_MAX;
18458 int_fast32_t e3min = INT_FAST32_MIN;
18459 int_fast64_t e4 = INT_FAST64_MAX;
18460 int_fast64_t e4min = INT_FAST64_MIN;
18461 uint_fast8_t f1 = UINT_FAST8_MAX;
18462 uint_fast16_t f2 = UINT_FAST16_MAX;
18463 uint_fast32_t f3 = UINT_FAST32_MAX;
18464 uint_fast64_t f4 = UINT_FAST64_MAX;
18465 #ifdef INTPTR_MAX
18466 intptr_t g = INTPTR_MAX;
18467 intptr_t gmin = INTPTR_MIN;
18468 #endif
18469 #ifdef UINTPTR_MAX
18470 uintptr_t h = UINTPTR_MAX;
18471 #endif
18472 intmax_t i = INTMAX_MAX;
18473 uintmax_t j = UINTMAX_MAX;
18475 #include <limits.h> /* for CHAR_BIT */
18476 #define TYPE_MINIMUM(t) \
18477 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18478 #define TYPE_MAXIMUM(t) \
18479 ((t) ((t) 0 < (t) -1 \
18480 ? (t) -1 \
18481 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18482 struct s {
18483 int check_PTRDIFF:
18484 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18485 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18486 ? 1 : -1;
18487 /* Detect bug in FreeBSD 6.0 / ia64. */
18488 int check_SIG_ATOMIC:
18489 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18490 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18491 ? 1 : -1;
18492 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18493 int check_WCHAR:
18494 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18495 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18496 ? 1 : -1;
18497 /* Detect bug in mingw. */
18498 int check_WINT:
18499 WINT_MIN == TYPE_MINIMUM (wint_t)
18500 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18501 ? 1 : -1;
18503 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18504 int check_UINT8_C:
18505 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18506 int check_UINT16_C:
18507 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18509 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18510 #ifdef UINT8_MAX
18511 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18512 #endif
18513 #ifdef UINT16_MAX
18514 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18515 #endif
18516 #ifdef UINT32_MAX
18517 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18518 #endif
18519 #ifdef UINT64_MAX
18520 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18521 #endif
18522 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18523 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18524 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18525 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18526 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18527 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18528 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18529 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18530 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18531 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18532 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18536 main ()
18540 return 0;
18542 _ACEOF
18543 if ac_fn_c_try_compile "$LINENO"; then :
18544 if test "$cross_compiling" = yes; then :
18545 gl_cv_header_working_stdint_h=yes
18547 else
18548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18549 /* end confdefs.h. */
18552 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18553 #include <stdint.h>
18556 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18557 included before <wchar.h>. */
18558 #include <stddef.h>
18559 #include <signal.h>
18560 #if HAVE_WCHAR_H
18561 # include <stdio.h>
18562 # include <time.h>
18563 # include <wchar.h>
18564 #endif
18567 #include <stdio.h>
18568 #include <string.h>
18569 #define MVAL(macro) MVAL1(macro)
18570 #define MVAL1(expression) #expression
18571 static const char *macro_values[] =
18573 #ifdef INT8_MAX
18574 MVAL (INT8_MAX),
18575 #endif
18576 #ifdef INT16_MAX
18577 MVAL (INT16_MAX),
18578 #endif
18579 #ifdef INT32_MAX
18580 MVAL (INT32_MAX),
18581 #endif
18582 #ifdef INT64_MAX
18583 MVAL (INT64_MAX),
18584 #endif
18585 #ifdef UINT8_MAX
18586 MVAL (UINT8_MAX),
18587 #endif
18588 #ifdef UINT16_MAX
18589 MVAL (UINT16_MAX),
18590 #endif
18591 #ifdef UINT32_MAX
18592 MVAL (UINT32_MAX),
18593 #endif
18594 #ifdef UINT64_MAX
18595 MVAL (UINT64_MAX),
18596 #endif
18597 NULL
18601 main ()
18604 const char **mv;
18605 for (mv = macro_values; *mv != NULL; mv++)
18607 const char *value = *mv;
18608 /* Test whether it looks like a cast expression. */
18609 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18610 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18611 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18612 || strncmp (value, "((int)"/*)*/, 6) == 0
18613 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18614 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18615 return mv - macro_values + 1;
18617 return 0;
18620 return 0;
18622 _ACEOF
18623 if ac_fn_c_try_run "$LINENO"; then :
18624 gl_cv_header_working_stdint_h=yes
18626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18627 conftest.$ac_objext conftest.beam conftest.$ac_ext
18632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18636 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18638 if test "$gl_cv_header_working_stdint_h" = yes; then
18639 STDINT_H=
18640 else
18641 for ac_header in sys/inttypes.h sys/bitypes.h
18642 do :
18643 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18644 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18645 eval as_val=\$$as_ac_Header
18646 if test "x$as_val" = x""yes; then :
18647 cat >>confdefs.h <<_ACEOF
18648 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18649 _ACEOF
18653 done
18655 if test $ac_cv_header_sys_inttypes_h = yes; then
18656 HAVE_SYS_INTTYPES_H=1
18657 else
18658 HAVE_SYS_INTTYPES_H=0
18661 if test $ac_cv_header_sys_bitypes_h = yes; then
18662 HAVE_SYS_BITYPES_H=1
18663 else
18664 HAVE_SYS_BITYPES_H=0
18670 if test $APPLE_UNIVERSAL_BUILD = 0; then
18673 for gltype in ptrdiff_t size_t ; do
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18675 $as_echo_n "checking for bit size of $gltype... " >&6; }
18676 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18677 $as_echo_n "(cached) " >&6
18678 else
18679 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18680 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18681 included before <wchar.h>. */
18682 #include <stddef.h>
18683 #include <signal.h>
18684 #if HAVE_WCHAR_H
18685 # include <stdio.h>
18686 # include <time.h>
18687 # include <wchar.h>
18688 #endif
18690 #include <limits.h>"; then :
18692 else
18693 result=unknown
18696 eval gl_cv_bitsizeof_${gltype}=\$result
18699 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18701 $as_echo "$ac_res" >&6; }
18702 eval result=\$gl_cv_bitsizeof_${gltype}
18703 if test $result = unknown; then
18704 result=0
18706 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18707 cat >>confdefs.h <<_ACEOF
18708 #define BITSIZEOF_${GLTYPE} $result
18709 _ACEOF
18711 eval BITSIZEOF_${GLTYPE}=\$result
18712 done
18718 for gltype in sig_atomic_t wchar_t wint_t ; do
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18720 $as_echo_n "checking for bit size of $gltype... " >&6; }
18721 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18722 $as_echo_n "(cached) " >&6
18723 else
18724 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18725 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18726 included before <wchar.h>. */
18727 #include <stddef.h>
18728 #include <signal.h>
18729 #if HAVE_WCHAR_H
18730 # include <stdio.h>
18731 # include <time.h>
18732 # include <wchar.h>
18733 #endif
18735 #include <limits.h>"; then :
18737 else
18738 result=unknown
18741 eval gl_cv_bitsizeof_${gltype}=\$result
18744 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18746 $as_echo "$ac_res" >&6; }
18747 eval result=\$gl_cv_bitsizeof_${gltype}
18748 if test $result = unknown; then
18749 result=0
18751 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18752 cat >>confdefs.h <<_ACEOF
18753 #define BITSIZEOF_${GLTYPE} $result
18754 _ACEOF
18756 eval BITSIZEOF_${GLTYPE}=\$result
18757 done
18762 for gltype in sig_atomic_t wchar_t wint_t ; do
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18764 $as_echo_n "checking whether $gltype is signed... " >&6; }
18765 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18766 $as_echo_n "(cached) " >&6
18767 else
18768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18769 /* end confdefs.h. */
18771 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18772 included before <wchar.h>. */
18773 #include <stddef.h>
18774 #include <signal.h>
18775 #if HAVE_WCHAR_H
18776 # include <stdio.h>
18777 # include <time.h>
18778 # include <wchar.h>
18779 #endif
18781 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18783 main ()
18787 return 0;
18789 _ACEOF
18790 if ac_fn_c_try_compile "$LINENO"; then :
18791 result=yes
18792 else
18793 result=no
18795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18796 eval gl_cv_type_${gltype}_signed=\$result
18799 eval ac_res=\$gl_cv_type_${gltype}_signed
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18801 $as_echo "$ac_res" >&6; }
18802 eval result=\$gl_cv_type_${gltype}_signed
18803 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18804 if test "$result" = yes; then
18805 cat >>confdefs.h <<_ACEOF
18806 #define HAVE_SIGNED_${GLTYPE} 1
18807 _ACEOF
18809 eval HAVE_SIGNED_${GLTYPE}=1
18810 else
18811 eval HAVE_SIGNED_${GLTYPE}=0
18813 done
18816 gl_cv_type_ptrdiff_t_signed=yes
18817 gl_cv_type_size_t_signed=no
18818 if test $APPLE_UNIVERSAL_BUILD = 0; then
18821 for gltype in ptrdiff_t size_t ; do
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18823 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18824 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18825 $as_echo_n "(cached) " >&6
18826 else
18827 eval gl_cv_type_${gltype}_suffix=no
18828 eval result=\$gl_cv_type_${gltype}_signed
18829 if test "$result" = yes; then
18830 glsufu=
18831 else
18832 glsufu=u
18834 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18835 case $glsuf in
18836 '') gltype1='int';;
18837 l) gltype1='long int';;
18838 ll) gltype1='long long int';;
18839 i64) gltype1='__int64';;
18840 u) gltype1='unsigned int';;
18841 ul) gltype1='unsigned long int';;
18842 ull) gltype1='unsigned long long int';;
18843 ui64)gltype1='unsigned __int64';;
18844 esac
18845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18846 /* end confdefs.h. */
18848 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18849 included before <wchar.h>. */
18850 #include <stddef.h>
18851 #include <signal.h>
18852 #if HAVE_WCHAR_H
18853 # include <stdio.h>
18854 # include <time.h>
18855 # include <wchar.h>
18856 #endif
18858 extern $gltype foo;
18859 extern $gltype1 foo;
18861 main ()
18865 return 0;
18867 _ACEOF
18868 if ac_fn_c_try_compile "$LINENO"; then :
18869 eval gl_cv_type_${gltype}_suffix=\$glsuf
18871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18872 eval result=\$gl_cv_type_${gltype}_suffix
18873 test "$result" != no && break
18874 done
18876 eval ac_res=\$gl_cv_type_${gltype}_suffix
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18878 $as_echo "$ac_res" >&6; }
18879 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18880 eval result=\$gl_cv_type_${gltype}_suffix
18881 test "$result" = no && result=
18882 eval ${GLTYPE}_SUFFIX=\$result
18883 cat >>confdefs.h <<_ACEOF
18884 #define ${GLTYPE}_SUFFIX $result
18885 _ACEOF
18887 done
18893 for gltype in sig_atomic_t wchar_t wint_t ; do
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18895 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18896 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18897 $as_echo_n "(cached) " >&6
18898 else
18899 eval gl_cv_type_${gltype}_suffix=no
18900 eval result=\$gl_cv_type_${gltype}_signed
18901 if test "$result" = yes; then
18902 glsufu=
18903 else
18904 glsufu=u
18906 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18907 case $glsuf in
18908 '') gltype1='int';;
18909 l) gltype1='long int';;
18910 ll) gltype1='long long int';;
18911 i64) gltype1='__int64';;
18912 u) gltype1='unsigned int';;
18913 ul) gltype1='unsigned long int';;
18914 ull) gltype1='unsigned long long int';;
18915 ui64)gltype1='unsigned __int64';;
18916 esac
18917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18918 /* end confdefs.h. */
18920 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18921 included before <wchar.h>. */
18922 #include <stddef.h>
18923 #include <signal.h>
18924 #if HAVE_WCHAR_H
18925 # include <stdio.h>
18926 # include <time.h>
18927 # include <wchar.h>
18928 #endif
18930 extern $gltype foo;
18931 extern $gltype1 foo;
18933 main ()
18937 return 0;
18939 _ACEOF
18940 if ac_fn_c_try_compile "$LINENO"; then :
18941 eval gl_cv_type_${gltype}_suffix=\$glsuf
18943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18944 eval result=\$gl_cv_type_${gltype}_suffix
18945 test "$result" != no && break
18946 done
18948 eval ac_res=\$gl_cv_type_${gltype}_suffix
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18950 $as_echo "$ac_res" >&6; }
18951 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18952 eval result=\$gl_cv_type_${gltype}_suffix
18953 test "$result" = no && result=
18954 eval ${GLTYPE}_SUFFIX=\$result
18955 cat >>confdefs.h <<_ACEOF
18956 #define ${GLTYPE}_SUFFIX $result
18957 _ACEOF
18959 done
18963 if test $BITSIZEOF_WINT_T -lt 32; then
18964 BITSIZEOF_WINT_T=32
18967 STDINT_H=stdint.h
18970 if test -n "$STDINT_H"; then
18971 GL_GENERATE_STDINT_H_TRUE=
18972 GL_GENERATE_STDINT_H_FALSE='#'
18973 else
18974 GL_GENERATE_STDINT_H_TRUE='#'
18975 GL_GENERATE_STDINT_H_FALSE=
18982 GNULIB_IMAXABS=0;
18983 GNULIB_IMAXDIV=0;
18984 GNULIB_STRTOIMAX=0;
18985 GNULIB_STRTOUMAX=0;
18986 HAVE_DECL_IMAXABS=1;
18987 HAVE_DECL_IMAXDIV=1;
18988 HAVE_DECL_STRTOIMAX=1;
18989 HAVE_DECL_STRTOUMAX=1;
18990 REPLACE_STRTOIMAX=0;
18991 INT32_MAX_LT_INTMAX_MAX=1;
18992 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18993 PRI_MACROS_BROKEN=0;
18994 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18995 UINT32_MAX_LT_UINTMAX_MAX=1;
18996 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
19012 if test $gl_cv_have_include_next = yes; then
19013 gl_cv_next_inttypes_h='<'inttypes.h'>'
19014 else
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
19016 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
19017 if test "${gl_cv_next_inttypes_h+set}" = set; then :
19018 $as_echo_n "(cached) " >&6
19019 else
19021 if test $ac_cv_header_inttypes_h = yes; then
19024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19025 /* end confdefs.h. */
19026 #include <inttypes.h>
19028 _ACEOF
19029 case "$host_os" in
19030 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19031 *) gl_absname_cpp="$ac_cpp" ;;
19032 esac
19034 case "$host_os" in
19035 mingw*)
19036 gl_dirsep_regex='[/\\]'
19039 gl_dirsep_regex='\/'
19041 esac
19042 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19044 gl_header_literal_regex=`echo 'inttypes.h' \
19045 | sed -e "$gl_make_literal_regex_sed"`
19046 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19047 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19048 s|^/[^/]|//&|
19052 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19053 sed -n "$gl_absolute_header_sed"`'"'
19054 else
19055 gl_cv_next_inttypes_h='<'inttypes.h'>'
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
19061 $as_echo "$gl_cv_next_inttypes_h" >&6; }
19063 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
19065 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19066 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19067 gl_next_as_first_directive='<'inttypes.h'>'
19068 else
19069 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19070 gl_next_as_first_directive=$gl_cv_next_inttypes_h
19072 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
19084 case "$host_os" in
19085 mingw*)
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
19087 $as_echo_n "checking for 64-bit off_t... " >&6; }
19088 if test "${gl_cv_type_off_t_64+set}" = set; then :
19089 $as_echo_n "(cached) " >&6
19090 else
19091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19092 /* end confdefs.h. */
19093 #include <sys/types.h>
19094 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
19097 main ()
19101 return 0;
19103 _ACEOF
19104 if ac_fn_c_try_compile "$LINENO"; then :
19105 gl_cv_type_off_t_64=yes
19106 else
19107 gl_cv_type_off_t_64=no
19109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
19113 $as_echo "$gl_cv_type_off_t_64" >&6; }
19114 if test $gl_cv_type_off_t_64 = no; then
19115 WINDOWS_64_BIT_OFF_T=1
19116 else
19117 WINDOWS_64_BIT_OFF_T=0
19119 WINDOWS_64_BIT_ST_SIZE=1
19122 WINDOWS_64_BIT_OFF_T=0
19123 WINDOWS_64_BIT_ST_SIZE=0
19125 esac
19128 GNULIB_FCHMODAT=0;
19129 GNULIB_FSTAT=0;
19130 GNULIB_FSTATAT=0;
19131 GNULIB_FUTIMENS=0;
19132 GNULIB_LCHMOD=0;
19133 GNULIB_LSTAT=0;
19134 GNULIB_MKDIRAT=0;
19135 GNULIB_MKFIFO=0;
19136 GNULIB_MKFIFOAT=0;
19137 GNULIB_MKNOD=0;
19138 GNULIB_MKNODAT=0;
19139 GNULIB_STAT=0;
19140 GNULIB_UTIMENSAT=0;
19141 HAVE_FCHMODAT=1;
19142 HAVE_FSTATAT=1;
19143 HAVE_FUTIMENS=1;
19144 HAVE_LCHMOD=1;
19145 HAVE_LSTAT=1;
19146 HAVE_MKDIRAT=1;
19147 HAVE_MKFIFO=1;
19148 HAVE_MKFIFOAT=1;
19149 HAVE_MKNOD=1;
19150 HAVE_MKNODAT=1;
19151 HAVE_UTIMENSAT=1;
19152 REPLACE_FSTAT=0;
19153 REPLACE_FSTATAT=0;
19154 REPLACE_FUTIMENS=0;
19155 REPLACE_LSTAT=0;
19156 REPLACE_MKDIR=0;
19157 REPLACE_MKFIFO=0;
19158 REPLACE_MKNOD=0;
19159 REPLACE_STAT=0;
19160 REPLACE_UTIMENSAT=0;
19165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19166 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19167 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
19168 $as_echo_n "(cached) " >&6
19169 else
19170 rm -f conftest.sym conftest.file
19171 echo >conftest.file
19172 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19173 if test "$cross_compiling" = yes; then :
19174 case "$host_os" in
19175 # Guess yes on glibc systems.
19176 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19177 # If we don't know, assume the worst.
19178 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
19179 esac
19181 else
19182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19183 /* end confdefs.h. */
19184 $ac_includes_default
19186 main ()
19188 struct stat sbuf;
19189 /* Linux will dereference the symlink and fail, as required by
19190 POSIX. That is better in the sense that it means we will not
19191 have to compile and use the lstat wrapper. */
19192 return lstat ("conftest.sym/", &sbuf) == 0;
19195 return 0;
19197 _ACEOF
19198 if ac_fn_c_try_run "$LINENO"; then :
19199 gl_cv_func_lstat_dereferences_slashed_symlink=yes
19200 else
19201 gl_cv_func_lstat_dereferences_slashed_symlink=no
19203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19204 conftest.$ac_objext conftest.beam conftest.$ac_ext
19207 else
19208 # If the 'ln -s' command failed, then we probably don't even
19209 # have an lstat function.
19210 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
19212 rm -f conftest.sym conftest.file
19215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19216 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19217 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19218 *yes)
19220 cat >>confdefs.h <<_ACEOF
19221 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19222 _ACEOF
19225 esac
19228 GNULIB_MKTIME=0;
19229 GNULIB_NANOSLEEP=0;
19230 GNULIB_STRPTIME=0;
19231 GNULIB_TIMEGM=0;
19232 GNULIB_TIME_R=0;
19233 HAVE_DECL_LOCALTIME_R=1;
19234 HAVE_NANOSLEEP=1;
19235 HAVE_STRPTIME=1;
19236 HAVE_TIMEGM=1;
19237 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19238 REPLACE_MKTIME=GNULIB_PORTCHECK;
19239 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19240 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19245 GNULIB_PSELECT=0;
19246 GNULIB_SELECT=0;
19247 HAVE_PSELECT=1;
19248 REPLACE_PSELECT=0;
19249 REPLACE_SELECT=0;
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19257 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19258 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19259 $as_echo_n "(cached) " >&6
19260 else
19262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19263 /* end confdefs.h. */
19264 #include <sys/select.h>
19266 main ()
19268 struct timeval b;
19270 return 0;
19272 _ACEOF
19273 if ac_fn_c_try_compile "$LINENO"; then :
19274 gl_cv_header_sys_select_h_selfcontained=yes
19275 else
19276 gl_cv_header_sys_select_h_selfcontained=no
19278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19279 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19281 /* end confdefs.h. */
19282 #include <sys/select.h>
19284 main ()
19286 int memset; int bzero;
19288 return 0;
19291 _ACEOF
19292 if ac_fn_c_try_compile "$LINENO"; then :
19293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19294 /* end confdefs.h. */
19295 #include <sys/select.h>
19297 main ()
19300 #undef memset
19301 #define memset nonexistent_memset
19302 extern
19303 #ifdef __cplusplus
19305 #endif
19306 void *memset (void *, int, unsigned long);
19307 #undef bzero
19308 #define bzero nonexistent_bzero
19309 extern
19310 #ifdef __cplusplus
19312 #endif
19313 void bzero (void *, unsigned long);
19314 fd_set fds;
19315 FD_ZERO (&fds);
19318 return 0;
19321 _ACEOF
19322 if ac_fn_c_try_link "$LINENO"; then :
19324 else
19325 gl_cv_header_sys_select_h_selfcontained=no
19327 rm -f core conftest.err conftest.$ac_objext \
19328 conftest$ac_exeext conftest.$ac_ext
19331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19336 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19346 if test $gl_cv_have_include_next = yes; then
19347 gl_cv_next_sys_select_h='<'sys/select.h'>'
19348 else
19349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19350 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19351 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19352 $as_echo_n "(cached) " >&6
19353 else
19355 if test $ac_cv_header_sys_select_h = yes; then
19358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19359 /* end confdefs.h. */
19360 #include <sys/select.h>
19362 _ACEOF
19363 case "$host_os" in
19364 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19365 *) gl_absname_cpp="$ac_cpp" ;;
19366 esac
19368 case "$host_os" in
19369 mingw*)
19370 gl_dirsep_regex='[/\\]'
19373 gl_dirsep_regex='\/'
19375 esac
19376 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19378 gl_header_literal_regex=`echo 'sys/select.h' \
19379 | sed -e "$gl_make_literal_regex_sed"`
19380 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19381 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19382 s|^/[^/]|//&|
19386 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19387 sed -n "$gl_absolute_header_sed"`'"'
19388 else
19389 gl_cv_next_sys_select_h='<'sys/select.h'>'
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19395 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19397 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
19399 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19400 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19401 gl_next_as_first_directive='<'sys/select.h'>'
19402 else
19403 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19404 gl_next_as_first_directive=$gl_cv_next_sys_select_h
19406 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
19411 if test $ac_cv_header_sys_select_h = yes; then
19412 HAVE_SYS_SELECT_H=1
19413 else
19414 HAVE_SYS_SELECT_H=0
19421 if test $ac_cv_header_sys_socket_h != yes; then
19422 for ac_header in winsock2.h
19423 do :
19424 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19425 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19426 cat >>confdefs.h <<_ACEOF
19427 #define HAVE_WINSOCK2_H 1
19428 _ACEOF
19432 done
19435 if test "$ac_cv_header_winsock2_h" = yes; then
19436 HAVE_WINSOCK2_H=1
19437 UNISTD_H_HAVE_WINSOCK2_H=1
19438 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19439 else
19440 HAVE_WINSOCK2_H=0
19450 GNULIB_PTHREAD_SIGMASK=0;
19451 GNULIB_RAISE=0;
19452 GNULIB_SIGNAL_H_SIGPIPE=0;
19453 GNULIB_SIGPROCMASK=0;
19454 GNULIB_SIGACTION=0;
19455 HAVE_POSIX_SIGNALBLOCKING=1;
19456 HAVE_PTHREAD_SIGMASK=1;
19457 HAVE_RAISE=1;
19458 HAVE_SIGSET_T=1;
19459 HAVE_SIGINFO_T=1;
19460 HAVE_SIGACTION=1;
19461 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19463 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19465 HAVE_SIGHANDLER_T=1;
19466 REPLACE_PTHREAD_SIGMASK=0;
19467 REPLACE_RAISE=0;
19475 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19476 #include <signal.h>
19477 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19478 #include <sys/types.h>
19481 if test "x$ac_cv_type_sigset_t" = x""yes; then :
19483 cat >>confdefs.h <<_ACEOF
19484 #define HAVE_SIGSET_T 1
19485 _ACEOF
19487 gl_cv_type_sigset_t=yes
19488 else
19489 gl_cv_type_sigset_t=no
19492 if test $gl_cv_type_sigset_t != yes; then
19493 HAVE_SIGSET_T=0
19498 if test $ac_cv_header_sys_socket_h = no; then
19499 for ac_header in ws2tcpip.h
19500 do :
19501 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19502 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
19503 cat >>confdefs.h <<_ACEOF
19504 #define HAVE_WS2TCPIP_H 1
19505 _ACEOF
19509 done
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19514 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19515 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19516 $as_echo_n "(cached) " >&6
19517 else
19518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19519 /* end confdefs.h. */
19521 #include <stdbool.h>
19522 #ifndef bool
19523 "error: bool is not defined"
19524 #endif
19525 #ifndef false
19526 "error: false is not defined"
19527 #endif
19528 #if false
19529 "error: false is not 0"
19530 #endif
19531 #ifndef true
19532 "error: true is not defined"
19533 #endif
19534 #if true != 1
19535 "error: true is not 1"
19536 #endif
19537 #ifndef __bool_true_false_are_defined
19538 "error: __bool_true_false_are_defined is not defined"
19539 #endif
19541 struct s { _Bool s: 1; _Bool t; } s;
19543 char a[true == 1 ? 1 : -1];
19544 char b[false == 0 ? 1 : -1];
19545 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19546 char d[(bool) 0.5 == true ? 1 : -1];
19547 /* See body of main program for 'e'. */
19548 char f[(_Bool) 0.0 == false ? 1 : -1];
19549 char g[true];
19550 char h[sizeof (_Bool)];
19551 char i[sizeof s.t];
19552 enum { j = false, k = true, l = false * true, m = true * 256 };
19553 /* The following fails for
19554 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19555 _Bool n[m];
19556 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19557 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19558 /* Catch a bug in an HP-UX C compiler. See
19559 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19560 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19562 _Bool q = true;
19563 _Bool *pq = &q;
19566 main ()
19569 bool e = &s;
19570 *pq |= q;
19571 *pq |= ! q;
19572 /* Refer to every declared value, to avoid compiler optimizations. */
19573 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19574 + !m + !n + !o + !p + !q + !pq);
19577 return 0;
19579 _ACEOF
19580 if ac_fn_c_try_compile "$LINENO"; then :
19581 ac_cv_header_stdbool_h=yes
19582 else
19583 ac_cv_header_stdbool_h=no
19585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19588 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19589 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19590 if test "x$ac_cv_type__Bool" = x""yes; then :
19592 cat >>confdefs.h <<_ACEOF
19593 #define HAVE__BOOL 1
19594 _ACEOF
19601 REPLACE_NULL=0;
19602 HAVE_WCHAR_T=1;
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19606 $as_echo_n "checking for wchar_t... " >&6; }
19607 if test "${gt_cv_c_wchar_t+set}" = set; then :
19608 $as_echo_n "(cached) " >&6
19609 else
19610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19611 /* end confdefs.h. */
19612 #include <stddef.h>
19613 wchar_t foo = (wchar_t)'\0';
19615 main ()
19619 return 0;
19621 _ACEOF
19622 if ac_fn_c_try_compile "$LINENO"; then :
19623 gt_cv_c_wchar_t=yes
19624 else
19625 gt_cv_c_wchar_t=no
19627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19630 $as_echo "$gt_cv_c_wchar_t" >&6; }
19631 if test $gt_cv_c_wchar_t = yes; then
19633 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19638 GNULIB_DPRINTF=0;
19639 GNULIB_FCLOSE=0;
19640 GNULIB_FDOPEN=0;
19641 GNULIB_FFLUSH=0;
19642 GNULIB_FGETC=0;
19643 GNULIB_FGETS=0;
19644 GNULIB_FOPEN=0;
19645 GNULIB_FPRINTF=0;
19646 GNULIB_FPRINTF_POSIX=0;
19647 GNULIB_FPURGE=0;
19648 GNULIB_FPUTC=0;
19649 GNULIB_FPUTS=0;
19650 GNULIB_FREAD=0;
19651 GNULIB_FREOPEN=0;
19652 GNULIB_FSCANF=0;
19653 GNULIB_FSEEK=0;
19654 GNULIB_FSEEKO=0;
19655 GNULIB_FTELL=0;
19656 GNULIB_FTELLO=0;
19657 GNULIB_FWRITE=0;
19658 GNULIB_GETC=0;
19659 GNULIB_GETCHAR=0;
19660 GNULIB_GETDELIM=0;
19661 GNULIB_GETLINE=0;
19662 GNULIB_OBSTACK_PRINTF=0;
19663 GNULIB_OBSTACK_PRINTF_POSIX=0;
19664 GNULIB_PCLOSE=0;
19665 GNULIB_PERROR=0;
19666 GNULIB_POPEN=0;
19667 GNULIB_PRINTF=0;
19668 GNULIB_PRINTF_POSIX=0;
19669 GNULIB_PUTC=0;
19670 GNULIB_PUTCHAR=0;
19671 GNULIB_PUTS=0;
19672 GNULIB_REMOVE=0;
19673 GNULIB_RENAME=0;
19674 GNULIB_RENAMEAT=0;
19675 GNULIB_SCANF=0;
19676 GNULIB_SNPRINTF=0;
19677 GNULIB_SPRINTF_POSIX=0;
19678 GNULIB_STDIO_H_NONBLOCKING=0;
19679 GNULIB_STDIO_H_SIGPIPE=0;
19680 GNULIB_TMPFILE=0;
19681 GNULIB_VASPRINTF=0;
19682 GNULIB_VFSCANF=0;
19683 GNULIB_VSCANF=0;
19684 GNULIB_VDPRINTF=0;
19685 GNULIB_VFPRINTF=0;
19686 GNULIB_VFPRINTF_POSIX=0;
19687 GNULIB_VPRINTF=0;
19688 GNULIB_VPRINTF_POSIX=0;
19689 GNULIB_VSNPRINTF=0;
19690 GNULIB_VSPRINTF_POSIX=0;
19691 HAVE_DECL_FPURGE=1;
19692 HAVE_DECL_FSEEKO=1;
19693 HAVE_DECL_FTELLO=1;
19694 HAVE_DECL_GETDELIM=1;
19695 HAVE_DECL_GETLINE=1;
19696 HAVE_DECL_OBSTACK_PRINTF=1;
19697 HAVE_DECL_SNPRINTF=1;
19698 HAVE_DECL_VSNPRINTF=1;
19699 HAVE_DPRINTF=1;
19700 HAVE_FSEEKO=1;
19701 HAVE_FTELLO=1;
19702 HAVE_PCLOSE=1;
19703 HAVE_POPEN=1;
19704 HAVE_RENAMEAT=1;
19705 HAVE_VASPRINTF=1;
19706 HAVE_VDPRINTF=1;
19707 REPLACE_DPRINTF=0;
19708 REPLACE_FCLOSE=0;
19709 REPLACE_FDOPEN=0;
19710 REPLACE_FFLUSH=0;
19711 REPLACE_FOPEN=0;
19712 REPLACE_FPRINTF=0;
19713 REPLACE_FPURGE=0;
19714 REPLACE_FREOPEN=0;
19715 REPLACE_FSEEK=0;
19716 REPLACE_FSEEKO=0;
19717 REPLACE_FTELL=0;
19718 REPLACE_FTELLO=0;
19719 REPLACE_GETDELIM=0;
19720 REPLACE_GETLINE=0;
19721 REPLACE_OBSTACK_PRINTF=0;
19722 REPLACE_PERROR=0;
19723 REPLACE_POPEN=0;
19724 REPLACE_PRINTF=0;
19725 REPLACE_REMOVE=0;
19726 REPLACE_RENAME=0;
19727 REPLACE_RENAMEAT=0;
19728 REPLACE_SNPRINTF=0;
19729 REPLACE_SPRINTF=0;
19730 REPLACE_STDIO_READ_FUNCS=0;
19731 REPLACE_STDIO_WRITE_FUNCS=0;
19732 REPLACE_TMPFILE=0;
19733 REPLACE_VASPRINTF=0;
19734 REPLACE_VDPRINTF=0;
19735 REPLACE_VFPRINTF=0;
19736 REPLACE_VPRINTF=0;
19737 REPLACE_VSNPRINTF=0;
19738 REPLACE_VSPRINTF=0;
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19741 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19742 if test "${ac_cv_struct_tm+set}" = set; then :
19743 $as_echo_n "(cached) " >&6
19744 else
19745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19746 /* end confdefs.h. */
19747 #include <sys/types.h>
19748 #include <time.h>
19751 main ()
19753 struct tm tm;
19754 int *p = &tm.tm_sec;
19755 return !p;
19757 return 0;
19759 _ACEOF
19760 if ac_fn_c_try_compile "$LINENO"; then :
19761 ac_cv_struct_tm=time.h
19762 else
19763 ac_cv_struct_tm=sys/time.h
19765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19768 $as_echo "$ac_cv_struct_tm" >&6; }
19769 if test $ac_cv_struct_tm = sys/time.h; then
19771 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19775 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19776 #include <$ac_cv_struct_tm>
19779 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
19781 cat >>confdefs.h <<_ACEOF
19782 #define HAVE_STRUCT_TM_TM_ZONE 1
19783 _ACEOF
19788 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19790 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19792 else
19793 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19795 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
19796 ac_have_decl=1
19797 else
19798 ac_have_decl=0
19801 cat >>confdefs.h <<_ACEOF
19802 #define HAVE_DECL_TZNAME $ac_have_decl
19803 _ACEOF
19805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19806 $as_echo_n "checking for tzname... " >&6; }
19807 if test "${ac_cv_var_tzname+set}" = set; then :
19808 $as_echo_n "(cached) " >&6
19809 else
19810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19811 /* end confdefs.h. */
19812 #include <time.h>
19813 #if !HAVE_DECL_TZNAME
19814 extern char *tzname[];
19815 #endif
19818 main ()
19820 return tzname[0][0];
19822 return 0;
19824 _ACEOF
19825 if ac_fn_c_try_link "$LINENO"; then :
19826 ac_cv_var_tzname=yes
19827 else
19828 ac_cv_var_tzname=no
19830 rm -f core conftest.err conftest.$ac_objext \
19831 conftest$ac_exeext conftest.$ac_ext
19833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19834 $as_echo "$ac_cv_var_tzname" >&6; }
19835 if test $ac_cv_var_tzname = yes; then
19837 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19843 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19845 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
19847 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19854 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19855 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
19856 ac_have_decl=1
19857 else
19858 ac_have_decl=0
19861 cat >>confdefs.h <<_ACEOF
19862 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19863 _ACEOF
19867 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19868 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
19869 ac_have_decl=1
19870 else
19871 ac_have_decl=0
19874 cat >>confdefs.h <<_ACEOF
19875 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19876 _ACEOF
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19881 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19882 if test "${ac_cv_header_stat_broken+set}" = set; then :
19883 $as_echo_n "(cached) " >&6
19884 else
19885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19886 /* end confdefs.h. */
19887 #include <sys/types.h>
19888 #include <sys/stat.h>
19890 #if defined S_ISBLK && defined S_IFDIR
19891 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19892 #endif
19894 #if defined S_ISBLK && defined S_IFCHR
19895 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19896 #endif
19898 #if defined S_ISLNK && defined S_IFREG
19899 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19900 #endif
19902 #if defined S_ISSOCK && defined S_IFREG
19903 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19904 #endif
19906 _ACEOF
19907 if ac_fn_c_try_compile "$LINENO"; then :
19908 ac_cv_header_stat_broken=no
19909 else
19910 ac_cv_header_stat_broken=yes
19912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19915 $as_echo "$ac_cv_header_stat_broken" >&6; }
19916 if test $ac_cv_header_stat_broken = yes; then
19918 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19927 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19928 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19929 $as_echo_n "(cached) " >&6
19930 else
19931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19932 /* end confdefs.h. */
19933 #include <time.h>
19936 main ()
19938 static struct timespec x; x.tv_sec = x.tv_nsec;
19940 return 0;
19942 _ACEOF
19943 if ac_fn_c_try_compile "$LINENO"; then :
19944 gl_cv_sys_struct_timespec_in_time_h=yes
19945 else
19946 gl_cv_sys_struct_timespec_in_time_h=no
19948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19951 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19953 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19954 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19955 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19956 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19957 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19958 else
19959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19960 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19961 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19962 $as_echo_n "(cached) " >&6
19963 else
19964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19965 /* end confdefs.h. */
19966 #include <sys/time.h>
19969 main ()
19971 static struct timespec x; x.tv_sec = x.tv_nsec;
19973 return 0;
19975 _ACEOF
19976 if ac_fn_c_try_compile "$LINENO"; then :
19977 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19978 else
19979 gl_cv_sys_struct_timespec_in_sys_time_h=no
19981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19984 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19985 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19986 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19987 else
19988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19989 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19990 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19991 $as_echo_n "(cached) " >&6
19992 else
19993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19994 /* end confdefs.h. */
19995 #include <pthread.h>
19998 main ()
20000 static struct timespec x; x.tv_sec = x.tv_nsec;
20002 return 0;
20004 _ACEOF
20005 if ac_fn_c_try_compile "$LINENO"; then :
20006 gl_cv_sys_struct_timespec_in_pthread_h=yes
20007 else
20008 gl_cv_sys_struct_timespec_in_pthread_h=no
20010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
20013 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
20014 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
20015 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
20034 if test $gl_cv_have_include_next = yes; then
20035 gl_cv_next_time_h='<'time.h'>'
20036 else
20037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
20038 $as_echo_n "checking absolute name of <time.h>... " >&6; }
20039 if test "${gl_cv_next_time_h+set}" = set; then :
20040 $as_echo_n "(cached) " >&6
20041 else
20043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20044 /* end confdefs.h. */
20045 #include <time.h>
20047 _ACEOF
20048 case "$host_os" in
20049 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20050 *) gl_absname_cpp="$ac_cpp" ;;
20051 esac
20053 case "$host_os" in
20054 mingw*)
20055 gl_dirsep_regex='[/\\]'
20058 gl_dirsep_regex='\/'
20060 esac
20061 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20063 gl_header_literal_regex=`echo 'time.h' \
20064 | sed -e "$gl_make_literal_regex_sed"`
20065 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20066 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20067 s|^/[^/]|//&|
20071 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20072 sed -n "$gl_absolute_header_sed"`'"'
20076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
20077 $as_echo "$gl_cv_next_time_h" >&6; }
20079 NEXT_TIME_H=$gl_cv_next_time_h
20081 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20082 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20083 gl_next_as_first_directive='<'time.h'>'
20084 else
20085 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20086 gl_next_as_first_directive=$gl_cv_next_time_h
20088 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
20103 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
20104 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then :
20105 ac_have_decl=1
20106 else
20107 ac_have_decl=0
20110 cat >>confdefs.h <<_ACEOF
20111 #define HAVE_DECL_UNSETENV $ac_have_decl
20112 _ACEOF
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
20116 $as_echo_n "checking whether the utimes function works... " >&6; }
20117 if test "${gl_cv_func_working_utimes+set}" = set; then :
20118 $as_echo_n "(cached) " >&6
20119 else
20121 if test "$cross_compiling" = yes; then :
20122 gl_cv_func_working_utimes=no
20123 else
20124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20125 /* end confdefs.h. */
20127 #include <sys/types.h>
20128 #include <sys/stat.h>
20129 #include <fcntl.h>
20130 #include <sys/time.h>
20131 #include <time.h>
20132 #include <unistd.h>
20133 #include <stdlib.h>
20134 #include <stdio.h>
20135 #include <utime.h>
20137 static int
20138 inorder (time_t a, time_t b, time_t c)
20140 return a <= b && b <= c;
20144 main ()
20146 int result = 0;
20147 char const *file = "conftest.utimes";
20148 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
20150 /* Test whether utimes() essentially works. */
20152 struct stat sbuf;
20153 FILE *f = fopen (file, "w");
20154 if (f == NULL)
20155 result |= 1;
20156 else if (fclose (f) != 0)
20157 result |= 1;
20158 else if (utimes (file, timeval) != 0)
20159 result |= 2;
20160 else if (lstat (file, &sbuf) != 0)
20161 result |= 1;
20162 else if (!(sbuf.st_atime == timeval[0].tv_sec
20163 && sbuf.st_mtime == timeval[1].tv_sec))
20164 result |= 4;
20165 if (unlink (file) != 0)
20166 result |= 1;
20169 /* Test whether utimes() with a NULL argument sets the file's timestamp
20170 to the current time. Use 'fstat' as well as 'time' to
20171 determine the "current" time, to accommodate NFS file systems
20172 if there is a time skew between the host and the NFS server. */
20174 int fd = open (file, O_WRONLY|O_CREAT, 0644);
20175 if (fd < 0)
20176 result |= 1;
20177 else
20179 time_t t0, t2;
20180 struct stat st0, st1, st2;
20181 if (time (&t0) == (time_t) -1)
20182 result |= 1;
20183 else if (fstat (fd, &st0) != 0)
20184 result |= 1;
20185 else if (utimes (file, timeval) != 0)
20186 result |= 2;
20187 else if (utimes (file, NULL) != 0)
20188 result |= 8;
20189 else if (fstat (fd, &st1) != 0)
20190 result |= 1;
20191 else if (write (fd, "\n", 1) != 1)
20192 result |= 1;
20193 else if (fstat (fd, &st2) != 0)
20194 result |= 1;
20195 else if (time (&t2) == (time_t) -1)
20196 result |= 1;
20197 else
20199 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
20200 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
20201 if (! (st1.st_atime == st1.st_mtime))
20202 result |= 16;
20203 if (! (m_ok_POSIX || m_ok_NFS))
20204 result |= 32;
20206 if (close (fd) != 0)
20207 result |= 1;
20209 if (unlink (file) != 0)
20210 result |= 1;
20213 /* Test whether utimes() with a NULL argument works on read-only files. */
20215 int fd = open (file, O_WRONLY|O_CREAT, 0444);
20216 if (fd < 0)
20217 result |= 1;
20218 else if (close (fd) != 0)
20219 result |= 1;
20220 else if (utimes (file, NULL) != 0)
20221 result |= 64;
20222 if (unlink (file) != 0)
20223 result |= 1;
20226 return result;
20229 _ACEOF
20230 if ac_fn_c_try_run "$LINENO"; then :
20231 gl_cv_func_working_utimes=yes
20232 else
20233 gl_cv_func_working_utimes=no
20235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20236 conftest.$ac_objext conftest.beam conftest.$ac_ext
20240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20241 $as_echo "$gl_cv_func_working_utimes" >&6; }
20243 if test $gl_cv_func_working_utimes = yes; then
20245 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20254 $as_echo_n "checking for struct utimbuf... " >&6; }
20255 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20256 $as_echo_n "(cached) " >&6
20257 else
20258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20259 /* end confdefs.h. */
20260 #if HAVE_SYS_TIME_H
20261 #include <sys/time.h>
20262 #endif
20263 #include <time.h>
20264 #ifdef HAVE_UTIME_H
20265 #include <utime.h>
20266 #endif
20269 main ()
20271 static struct utimbuf x; x.actime = x.modtime;
20273 return 0;
20275 _ACEOF
20276 if ac_fn_c_try_compile "$LINENO"; then :
20277 gl_cv_sys_struct_utimbuf=yes
20278 else
20279 gl_cv_sys_struct_utimbuf=no
20281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20284 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20286 if test $gl_cv_sys_struct_utimbuf = yes; then
20288 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20303 $as_echo_n "checking type of array argument to getgroups... " >&6; }
20304 if test "${ac_cv_type_getgroups+set}" = set; then :
20305 $as_echo_n "(cached) " >&6
20306 else
20307 if test "$cross_compiling" = yes; then :
20308 ac_cv_type_getgroups=cross
20309 else
20310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20311 /* end confdefs.h. */
20312 /* Thanks to Mike Rendell for this test. */
20313 $ac_includes_default
20314 #define NGID 256
20315 #undef MAX
20316 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20319 main ()
20321 gid_t gidset[NGID];
20322 int i, n;
20323 union { gid_t gval; long int lval; } val;
20325 val.lval = -1;
20326 for (i = 0; i < NGID; i++)
20327 gidset[i] = val.gval;
20328 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20329 gidset);
20330 /* Exit non-zero if getgroups seems to require an array of ints. This
20331 happens when gid_t is short int but getgroups modifies an array
20332 of ints. */
20333 return n > 0 && gidset[n] != val.gval;
20335 _ACEOF
20336 if ac_fn_c_try_run "$LINENO"; then :
20337 ac_cv_type_getgroups=gid_t
20338 else
20339 ac_cv_type_getgroups=int
20341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20342 conftest.$ac_objext conftest.beam conftest.$ac_ext
20345 if test $ac_cv_type_getgroups = cross; then
20346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20347 /* end confdefs.h. */
20348 #include <unistd.h>
20350 _ACEOF
20351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20352 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
20353 ac_cv_type_getgroups=gid_t
20354 else
20355 ac_cv_type_getgroups=int
20357 rm -f conftest*
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20362 $as_echo "$ac_cv_type_getgroups" >&6; }
20364 cat >>confdefs.h <<_ACEOF
20365 #define GETGROUPS_T $ac_cv_type_getgroups
20366 _ACEOF
20371 if false; then
20372 GL_COND_LIBTOOL_TRUE=
20373 GL_COND_LIBTOOL_FALSE='#'
20374 else
20375 GL_COND_LIBTOOL_TRUE='#'
20376 GL_COND_LIBTOOL_FALSE=
20379 gl_cond_libtool=false
20380 gl_libdeps=
20381 gl_ltlibdeps=
20382 gl_m4_base='m4'
20392 gl_source_base='lib'
20395 if test $ac_cv_func_alloca_works = no; then
20399 # Define an additional variable used in the Makefile substitution.
20400 if test $ac_cv_working_alloca_h = yes; then
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20402 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20403 if test "${gl_cv_rpl_alloca+set}" = set; then :
20404 $as_echo_n "(cached) " >&6
20405 else
20407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20408 /* end confdefs.h. */
20410 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20411 Need own alloca
20412 #endif
20414 _ACEOF
20415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20416 $EGREP "Need own alloca" >/dev/null 2>&1; then :
20417 gl_cv_rpl_alloca=yes
20418 else
20419 gl_cv_rpl_alloca=no
20421 rm -f conftest*
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20426 $as_echo "$gl_cv_rpl_alloca" >&6; }
20427 if test $gl_cv_rpl_alloca = yes; then
20429 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20431 ALLOCA_H=alloca.h
20432 else
20433 ALLOCA_H=
20435 else
20436 ALLOCA_H=alloca.h
20439 if test -n "$ALLOCA_H"; then
20440 GL_GENERATE_ALLOCA_H_TRUE=
20441 GL_GENERATE_ALLOCA_H_FALSE='#'
20442 else
20443 GL_GENERATE_ALLOCA_H_TRUE='#'
20444 GL_GENERATE_ALLOCA_H_FALSE=
20452 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20453 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20455 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20456 # programs in the package would end up linked with that potentially-shared
20457 # library, inducing unnecessary run-time overhead.
20458 LIB_CLOCK_GETTIME=
20460 gl_saved_libs=$LIBS
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20462 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20463 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20464 $as_echo_n "(cached) " >&6
20465 else
20466 ac_func_search_save_LIBS=$LIBS
20467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20468 /* end confdefs.h. */
20470 /* Override any GCC internal prototype to avoid an error.
20471 Use char because int might match the return type of a GCC
20472 builtin and then its argument prototype would still apply. */
20473 #ifdef __cplusplus
20474 extern "C"
20475 #endif
20476 char clock_gettime ();
20478 main ()
20480 return clock_gettime ();
20482 return 0;
20484 _ACEOF
20485 for ac_lib in '' rt posix4; do
20486 if test -z "$ac_lib"; then
20487 ac_res="none required"
20488 else
20489 ac_res=-l$ac_lib
20490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20492 if ac_fn_c_try_link "$LINENO"; then :
20493 ac_cv_search_clock_gettime=$ac_res
20495 rm -f core conftest.err conftest.$ac_objext \
20496 conftest$ac_exeext
20497 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20498 break
20500 done
20501 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20503 else
20504 ac_cv_search_clock_gettime=no
20506 rm conftest.$ac_ext
20507 LIBS=$ac_func_search_save_LIBS
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20510 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20511 ac_res=$ac_cv_search_clock_gettime
20512 if test "$ac_res" != no; then :
20513 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20514 test "$ac_cv_search_clock_gettime" = "none required" ||
20515 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
20518 for ac_func in clock_gettime clock_settime
20519 do :
20520 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20521 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20522 eval as_val=\$$as_ac_var
20523 if test "x$as_val" = x""yes; then :
20524 cat >>confdefs.h <<_ACEOF
20525 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20526 _ACEOF
20529 done
20531 LIBS=$gl_saved_libs
20538 cat >>confdefs.h <<_ACEOF
20539 #define GNULIB_CLOSE_STREAM 1
20540 _ACEOF
20563 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20566 if test $HAVE_DUP2 = 1; then
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20568 $as_echo_n "checking whether dup2 works... " >&6; }
20569 if test "${gl_cv_func_dup2_works+set}" = set; then :
20570 $as_echo_n "(cached) " >&6
20571 else
20572 if test "$cross_compiling" = yes; then :
20573 case "$host_os" in
20574 mingw*) # on this platform, dup2 always returns 0 for success
20575 gl_cv_func_dup2_works="guessing no" ;;
20576 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
20577 gl_cv_func_dup2_works="guessing no" ;;
20578 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20579 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20580 gl_cv_func_dup2_works="guessing no" ;;
20581 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20582 gl_cv_func_dup2_works="guessing no" ;;
20583 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20584 gl_cv_func_dup2_works="guessing no" ;;
20585 *) gl_cv_func_dup2_works="guessing yes" ;;
20586 esac
20587 else
20588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20589 /* end confdefs.h. */
20591 #include <unistd.h>
20592 #include <fcntl.h>
20593 #include <errno.h>
20595 main ()
20597 int result = 0;
20598 #ifdef FD_CLOEXEC
20599 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20600 result |= 1;
20601 #endif
20602 if (dup2 (1, 1) == 0)
20603 result |= 2;
20604 #ifdef FD_CLOEXEC
20605 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20606 result |= 4;
20607 #endif
20608 close (0);
20609 if (dup2 (0, 0) != -1)
20610 result |= 8;
20611 /* Many gnulib modules require POSIX conformance of EBADF. */
20612 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20613 result |= 16;
20614 return result;
20617 return 0;
20620 _ACEOF
20621 if ac_fn_c_try_run "$LINENO"; then :
20622 gl_cv_func_dup2_works=yes
20623 else
20624 gl_cv_func_dup2_works=no
20626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20627 conftest.$ac_objext conftest.beam conftest.$ac_ext
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20633 $as_echo "$gl_cv_func_dup2_works" >&6; }
20634 case "$gl_cv_func_dup2_works" in
20635 *yes) ;;
20637 REPLACE_DUP2=1
20639 esac
20643 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
20652 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
20661 GNULIB_DUP2=1
20673 GNULIB_ENVIRON=1
20682 LIB_EXECINFO=''
20683 EXECINFO_H='execinfo.h'
20685 if test $ac_cv_header_execinfo_h = yes; then
20686 gl_saved_libs=$LIBS
20687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
20688 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
20689 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20690 $as_echo_n "(cached) " >&6
20691 else
20692 ac_func_search_save_LIBS=$LIBS
20693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20694 /* end confdefs.h. */
20696 /* Override any GCC internal prototype to avoid an error.
20697 Use char because int might match the return type of a GCC
20698 builtin and then its argument prototype would still apply. */
20699 #ifdef __cplusplus
20700 extern "C"
20701 #endif
20702 char backtrace_symbols_fd ();
20704 main ()
20706 return backtrace_symbols_fd ();
20708 return 0;
20710 _ACEOF
20711 for ac_lib in '' execinfo; do
20712 if test -z "$ac_lib"; then
20713 ac_res="none required"
20714 else
20715 ac_res=-l$ac_lib
20716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20718 if ac_fn_c_try_link "$LINENO"; then :
20719 ac_cv_search_backtrace_symbols_fd=$ac_res
20721 rm -f core conftest.err conftest.$ac_objext \
20722 conftest$ac_exeext
20723 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20724 break
20726 done
20727 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20729 else
20730 ac_cv_search_backtrace_symbols_fd=no
20732 rm conftest.$ac_ext
20733 LIBS=$ac_func_search_save_LIBS
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
20736 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
20737 ac_res=$ac_cv_search_backtrace_symbols_fd
20738 if test "$ac_res" != no; then :
20739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20740 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
20741 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
20744 LIBS=$gl_saved_libs
20745 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
20748 if test -n "$EXECINFO_H"; then
20757 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
20763 if test -n "$EXECINFO_H"; then
20764 GL_GENERATE_EXECINFO_H_TRUE=
20765 GL_GENERATE_EXECINFO_H_FALSE='#'
20766 else
20767 GL_GENERATE_EXECINFO_H_TRUE='#'
20768 GL_GENERATE_EXECINFO_H_FALSE=
20779 if test $ac_cv_func_faccessat = no; then
20780 HAVE_FACCESSAT=0
20783 if test $HAVE_FACCESSAT = 0; then
20792 gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext"
20795 for ac_func in access
20796 do :
20797 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
20798 if test "x$ac_cv_func_access" = x""yes; then :
20799 cat >>confdefs.h <<_ACEOF
20800 #define HAVE_ACCESS 1
20801 _ACEOF
20804 done
20810 cat >>confdefs.h <<_ACEOF
20811 #define GNULIB_FACCESSAT 1
20812 _ACEOF
20820 GNULIB_FACCESSAT=1
20837 if test $gl_cv_have_include_next = yes; then
20838 gl_cv_next_fcntl_h='<'fcntl.h'>'
20839 else
20840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
20841 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
20842 if test "${gl_cv_next_fcntl_h+set}" = set; then :
20843 $as_echo_n "(cached) " >&6
20844 else
20846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20847 /* end confdefs.h. */
20848 #include <fcntl.h>
20850 _ACEOF
20851 case "$host_os" in
20852 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20853 *) gl_absname_cpp="$ac_cpp" ;;
20854 esac
20856 case "$host_os" in
20857 mingw*)
20858 gl_dirsep_regex='[/\\]'
20861 gl_dirsep_regex='\/'
20863 esac
20864 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20866 gl_header_literal_regex=`echo 'fcntl.h' \
20867 | sed -e "$gl_make_literal_regex_sed"`
20868 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20869 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20870 s|^/[^/]|//&|
20874 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20875 sed -n "$gl_absolute_header_sed"`'"'
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
20880 $as_echo "$gl_cv_next_fcntl_h" >&6; }
20882 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
20884 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20885 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20886 gl_next_as_first_directive='<'fcntl.h'>'
20887 else
20888 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20889 gl_next_as_first_directive=$gl_cv_next_fcntl_h
20891 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
20910 fp_headers='
20911 # include <stdio.h>
20912 # if HAVE_STDIO_EXT_H
20913 # include <stdio_ext.h>
20914 # endif
20916 ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
20918 if test "x$ac_cv_have_decl___fpending" = x""yes; then :
20919 ac_have_decl=1
20920 else
20921 ac_have_decl=0
20924 cat >>confdefs.h <<_ACEOF
20925 #define HAVE_DECL___FPENDING $ac_have_decl
20926 _ACEOF
20929 if test $ac_cv_func___fpending = no; then
20938 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
20942 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
20943 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
20944 $as_echo_n "(cached) " >&6
20945 else
20947 for ac_expr in \
20949 '# glibc2' \
20950 'fp->_IO_write_ptr - fp->_IO_write_base' \
20952 '# traditional Unix' \
20953 'fp->_ptr - fp->_base' \
20955 '# BSD' \
20956 'fp->_p - fp->_bf._base' \
20958 '# SCO, Unixware' \
20959 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
20961 '# QNX' \
20962 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
20964 '# old glibc?' \
20965 'fp->__bufp - fp->__buffer' \
20967 '# old glibc iostream?' \
20968 'fp->_pptr - fp->_pbase' \
20970 '# emx+gcc' \
20971 'fp->_ptr - fp->_buffer' \
20973 '# Minix' \
20974 'fp->_ptr - fp->_buf' \
20976 '# Plan9' \
20977 'fp->wp - fp->buf' \
20979 '# VMS' \
20980 '(*fp)->_ptr - (*fp)->_base' \
20982 '# e.g., DGUX R4.11; the info is not available' \
20984 ; do
20986 # Skip each embedded comment.
20987 case "$ac_expr" in '#'*) continue;; esac
20989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20990 /* end confdefs.h. */
20991 #include <stdio.h>
20993 main ()
20995 FILE *fp = stdin; (void) ($ac_expr);
20997 return 0;
20999 _ACEOF
21000 if ac_fn_c_try_compile "$LINENO"; then :
21001 fp_done=yes
21004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21005 test "$fp_done" = yes && break
21006 done
21008 ac_cv_sys_pending_output_n_bytes=$ac_expr
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
21013 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
21015 cat >>confdefs.h <<_ACEOF
21016 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
21017 _ACEOF
21023 # Persuade glibc <stdlib.h> to declare getloadavg().
21026 gl_save_LIBS=$LIBS
21028 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
21029 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
21030 HAVE_GETLOADAVG=1
21031 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
21032 if test "x$ac_cv_func_getloadavg" = x""yes; then :
21034 else
21035 gl_func_getloadavg_done=no
21037 # Some systems with -lutil have (and need) -lkvm as well, some do not.
21038 # On Solaris, -lkvm requires nlist from -lelf, so check that first
21039 # to get the right answer into the cache.
21040 # For kstat on solaris, we need to test for libelf and libkvm to force the
21041 # definition of SVR4 below.
21042 if test $gl_func_getloadavg_done = no; then
21043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
21044 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
21045 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
21046 $as_echo_n "(cached) " >&6
21047 else
21048 ac_check_lib_save_LIBS=$LIBS
21049 LIBS="-lelf $LIBS"
21050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21051 /* end confdefs.h. */
21053 /* Override any GCC internal prototype to avoid an error.
21054 Use char because int might match the return type of a GCC
21055 builtin and then its argument prototype would still apply. */
21056 #ifdef __cplusplus
21057 extern "C"
21058 #endif
21059 char elf_begin ();
21061 main ()
21063 return elf_begin ();
21065 return 0;
21067 _ACEOF
21068 if ac_fn_c_try_link "$LINENO"; then :
21069 ac_cv_lib_elf_elf_begin=yes
21070 else
21071 ac_cv_lib_elf_elf_begin=no
21073 rm -f core conftest.err conftest.$ac_objext \
21074 conftest$ac_exeext conftest.$ac_ext
21075 LIBS=$ac_check_lib_save_LIBS
21077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
21078 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
21079 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
21080 LIBS="-lelf $LIBS"
21083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
21084 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
21085 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
21086 $as_echo_n "(cached) " >&6
21087 else
21088 ac_check_lib_save_LIBS=$LIBS
21089 LIBS="-lkvm $LIBS"
21090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21091 /* end confdefs.h. */
21093 /* Override any GCC internal prototype to avoid an error.
21094 Use char because int might match the return type of a GCC
21095 builtin and then its argument prototype would still apply. */
21096 #ifdef __cplusplus
21097 extern "C"
21098 #endif
21099 char kvm_open ();
21101 main ()
21103 return kvm_open ();
21105 return 0;
21107 _ACEOF
21108 if ac_fn_c_try_link "$LINENO"; then :
21109 ac_cv_lib_kvm_kvm_open=yes
21110 else
21111 ac_cv_lib_kvm_kvm_open=no
21113 rm -f core conftest.err conftest.$ac_objext \
21114 conftest$ac_exeext conftest.$ac_ext
21115 LIBS=$ac_check_lib_save_LIBS
21117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
21118 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
21119 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
21120 LIBS="-lkvm $LIBS"
21123 # Check for the 4.4BSD definition of getloadavg.
21124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
21125 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
21126 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
21127 $as_echo_n "(cached) " >&6
21128 else
21129 ac_check_lib_save_LIBS=$LIBS
21130 LIBS="-lutil $LIBS"
21131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21132 /* end confdefs.h. */
21134 /* Override any GCC internal prototype to avoid an error.
21135 Use char because int might match the return type of a GCC
21136 builtin and then its argument prototype would still apply. */
21137 #ifdef __cplusplus
21138 extern "C"
21139 #endif
21140 char getloadavg ();
21142 main ()
21144 return getloadavg ();
21146 return 0;
21148 _ACEOF
21149 if ac_fn_c_try_link "$LINENO"; then :
21150 ac_cv_lib_util_getloadavg=yes
21151 else
21152 ac_cv_lib_util_getloadavg=no
21154 rm -f core conftest.err conftest.$ac_objext \
21155 conftest$ac_exeext conftest.$ac_ext
21156 LIBS=$ac_check_lib_save_LIBS
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
21159 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
21160 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
21161 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
21166 if test $gl_func_getloadavg_done = no; then
21167 # There is a commonly available library for RS/6000 AIX.
21168 # Since it is not a standard part of AIX, it might be installed locally.
21169 gl_getloadavg_LIBS=$LIBS
21170 LIBS="-L/usr/local/lib $LIBS"
21171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
21172 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
21173 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
21174 $as_echo_n "(cached) " >&6
21175 else
21176 ac_check_lib_save_LIBS=$LIBS
21177 LIBS="-lgetloadavg $LIBS"
21178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21179 /* end confdefs.h. */
21181 /* Override any GCC internal prototype to avoid an error.
21182 Use char because int might match the return type of a GCC
21183 builtin and then its argument prototype would still apply. */
21184 #ifdef __cplusplus
21185 extern "C"
21186 #endif
21187 char getloadavg ();
21189 main ()
21191 return getloadavg ();
21193 return 0;
21195 _ACEOF
21196 if ac_fn_c_try_link "$LINENO"; then :
21197 ac_cv_lib_getloadavg_getloadavg=yes
21198 else
21199 ac_cv_lib_getloadavg_getloadavg=no
21201 rm -f core conftest.err conftest.$ac_objext \
21202 conftest$ac_exeext conftest.$ac_ext
21203 LIBS=$ac_check_lib_save_LIBS
21205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
21206 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
21207 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
21208 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
21209 else
21210 LIBS=$gl_getloadavg_LIBS
21215 # Set up the replacement function if necessary.
21216 if test $gl_func_getloadavg_done = no; then
21217 HAVE_GETLOADAVG=0
21219 # Solaris has libkstat which does not require root.
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
21221 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
21222 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
21223 $as_echo_n "(cached) " >&6
21224 else
21225 ac_check_lib_save_LIBS=$LIBS
21226 LIBS="-lkstat $LIBS"
21227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21228 /* end confdefs.h. */
21230 /* Override any GCC internal prototype to avoid an error.
21231 Use char because int might match the return type of a GCC
21232 builtin and then its argument prototype would still apply. */
21233 #ifdef __cplusplus
21234 extern "C"
21235 #endif
21236 char kstat_open ();
21238 main ()
21240 return kstat_open ();
21242 return 0;
21244 _ACEOF
21245 if ac_fn_c_try_link "$LINENO"; then :
21246 ac_cv_lib_kstat_kstat_open=yes
21247 else
21248 ac_cv_lib_kstat_kstat_open=no
21250 rm -f core conftest.err conftest.$ac_objext \
21251 conftest$ac_exeext conftest.$ac_ext
21252 LIBS=$ac_check_lib_save_LIBS
21254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
21255 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
21256 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
21257 cat >>confdefs.h <<_ACEOF
21258 #define HAVE_LIBKSTAT 1
21259 _ACEOF
21261 LIBS="-lkstat $LIBS"
21265 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
21267 # AIX has libperfstat which does not require root
21268 if test $gl_func_getloadavg_done = no; then
21269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
21270 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
21271 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
21272 $as_echo_n "(cached) " >&6
21273 else
21274 ac_check_lib_save_LIBS=$LIBS
21275 LIBS="-lperfstat $LIBS"
21276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21277 /* end confdefs.h. */
21279 /* Override any GCC internal prototype to avoid an error.
21280 Use char because int might match the return type of a GCC
21281 builtin and then its argument prototype would still apply. */
21282 #ifdef __cplusplus
21283 extern "C"
21284 #endif
21285 char perfstat_cpu_total ();
21287 main ()
21289 return perfstat_cpu_total ();
21291 return 0;
21293 _ACEOF
21294 if ac_fn_c_try_link "$LINENO"; then :
21295 ac_cv_lib_perfstat_perfstat_cpu_total=yes
21296 else
21297 ac_cv_lib_perfstat_perfstat_cpu_total=no
21299 rm -f core conftest.err conftest.$ac_objext \
21300 conftest$ac_exeext conftest.$ac_ext
21301 LIBS=$ac_check_lib_save_LIBS
21303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
21304 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
21305 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
21306 cat >>confdefs.h <<_ACEOF
21307 #define HAVE_LIBPERFSTAT 1
21308 _ACEOF
21310 LIBS="-lperfstat $LIBS"
21314 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
21317 if test $gl_func_getloadavg_done = no; then
21318 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
21319 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
21320 gl_func_getloadavg_done=yes
21322 $as_echo "#define DGUX 1" >>confdefs.h
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
21325 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
21326 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
21327 $as_echo_n "(cached) " >&6
21328 else
21329 ac_check_lib_save_LIBS=$LIBS
21330 LIBS="-ldgc $LIBS"
21331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21332 /* end confdefs.h. */
21334 /* Override any GCC internal prototype to avoid an error.
21335 Use char because int might match the return type of a GCC
21336 builtin and then its argument prototype would still apply. */
21337 #ifdef __cplusplus
21338 extern "C"
21339 #endif
21340 char dg_sys_info ();
21342 main ()
21344 return dg_sys_info ();
21346 return 0;
21348 _ACEOF
21349 if ac_fn_c_try_link "$LINENO"; then :
21350 ac_cv_lib_dgc_dg_sys_info=yes
21351 else
21352 ac_cv_lib_dgc_dg_sys_info=no
21354 rm -f core conftest.err conftest.$ac_objext \
21355 conftest$ac_exeext conftest.$ac_ext
21356 LIBS=$ac_check_lib_save_LIBS
21358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
21359 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
21360 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
21361 cat >>confdefs.h <<_ACEOF
21362 #define HAVE_LIBDGC 1
21363 _ACEOF
21365 LIBS="-ldgc $LIBS"
21377 if test "x$gl_save_LIBS" = x; then
21378 GETLOADAVG_LIBS=$LIBS
21379 else
21380 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
21382 LIBS=$gl_save_LIBS
21385 # Test whether the system declares getloadavg. Solaris has the function
21386 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
21387 for ac_header in sys/loadavg.h
21388 do :
21389 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
21390 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
21391 cat >>confdefs.h <<_ACEOF
21392 #define HAVE_SYS_LOADAVG_H 1
21393 _ACEOF
21397 done
21399 if test $ac_cv_header_sys_loadavg_h = yes; then
21400 HAVE_SYS_LOADAVG_H=1
21401 else
21402 HAVE_SYS_LOADAVG_H=0
21404 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
21405 # include <sys/loadavg.h>
21406 #endif
21407 #include <stdlib.h>
21409 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
21411 else
21412 HAVE_DECL_GETLOADAVG=0
21416 if test $HAVE_GETLOADAVG = 0; then
21425 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
21428 # Figure out what our getloadavg.c needs.
21432 # On HPUX9, an unprivileged user can get load averages this way.
21433 if test $gl_func_getloadavg_done = no; then
21434 for ac_func in pstat_getdynamic
21435 do :
21436 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
21437 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
21438 cat >>confdefs.h <<_ACEOF
21439 #define HAVE_PSTAT_GETDYNAMIC 1
21440 _ACEOF
21441 gl_func_getloadavg_done=yes
21443 done
21447 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
21448 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
21449 # Irix 4.0.5F has the header but not the library.
21450 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
21451 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
21452 gl_func_getloadavg_done=yes
21454 $as_echo "#define SVR4 1" >>confdefs.h
21458 if test $gl_func_getloadavg_done = no; then
21459 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
21460 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
21461 gl_func_getloadavg_done=yes
21463 $as_echo "#define UMAX 1" >>confdefs.h
21466 $as_echo "#define UMAX4_3 1" >>confdefs.h
21473 if test $gl_func_getloadavg_done = no; then
21474 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
21475 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
21476 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
21483 if test $gl_func_getloadavg_done = no; then
21484 for ac_header in mach/mach.h
21485 do :
21486 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
21487 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
21488 cat >>confdefs.h <<_ACEOF
21489 #define HAVE_MACH_MACH_H 1
21490 _ACEOF
21494 done
21498 for ac_header in nlist.h
21499 do :
21500 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
21501 if test "x$ac_cv_header_nlist_h" = x""yes; then :
21502 cat >>confdefs.h <<_ACEOF
21503 #define HAVE_NLIST_H 1
21504 _ACEOF
21505 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
21507 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
21509 cat >>confdefs.h <<_ACEOF
21510 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
21511 _ACEOF
21516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21517 /* end confdefs.h. */
21518 #include <nlist.h>
21520 main ()
21522 struct nlist x;
21523 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
21524 x.n_un.n_name = "";
21525 #else
21526 x.n_name = "";
21527 #endif
21529 return 0;
21531 _ACEOF
21532 if ac_fn_c_try_link "$LINENO"; then :
21534 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
21537 rm -f core conftest.err conftest.$ac_objext \
21538 conftest$ac_exeext conftest.$ac_ext
21542 done
21550 GNULIB_GETLOADAVG=1
21561 if test $REPLACE_GETOPT = 1; then
21570 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21580 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21585 GNULIB_GL_UNISTD_H_GETOPT=1
21594 REPLACE_GETOPT=0
21595 if test -n "$gl_replace_getopt"; then
21596 REPLACE_GETOPT=1
21599 if test $REPLACE_GETOPT = 1; then
21601 GETOPT_H=getopt.h
21603 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
21609 if test $REPLACE_GETOPT = 1; then
21618 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21628 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21633 GNULIB_GL_UNISTD_H_GETOPT=1
21647 gl_gettimeofday_timezone=void
21648 if test $ac_cv_func_gettimeofday != yes; then
21649 HAVE_GETTIMEOFDAY=0
21650 else
21654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21655 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21656 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
21657 $as_echo_n "(cached) " >&6
21658 else
21659 if test "$cross_compiling" = yes; then :
21660 # When cross-compiling:
21661 case "$host_os" in
21662 # Guess all is fine on glibc systems.
21663 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
21664 # If we don't know, assume the worst.
21665 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
21666 esac
21668 else
21669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21670 /* end confdefs.h. */
21671 #include <string.h>
21672 #include <sys/time.h>
21673 #include <time.h>
21674 #include <stdlib.h>
21677 main ()
21680 time_t t = 0;
21681 struct tm *lt;
21682 struct tm saved_lt;
21683 struct timeval tv;
21684 lt = localtime (&t);
21685 saved_lt = *lt;
21686 gettimeofday (&tv, NULL);
21687 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21690 return 0;
21692 _ACEOF
21693 if ac_fn_c_try_run "$LINENO"; then :
21694 gl_cv_func_gettimeofday_clobber=no
21695 else
21696 gl_cv_func_gettimeofday_clobber=yes
21698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21699 conftest.$ac_objext conftest.beam conftest.$ac_ext
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21704 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21706 case "$gl_cv_func_gettimeofday_clobber" in
21707 *yes)
21708 REPLACE_GETTIMEOFDAY=1
21711 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
21714 $as_echo "#define localtime rpl_localtime" >>confdefs.h
21718 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21721 esac
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21724 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21725 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
21726 $as_echo_n "(cached) " >&6
21727 else
21728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21729 /* end confdefs.h. */
21730 #include <sys/time.h>
21731 struct timeval c;
21732 int gettimeofday (struct timeval *restrict, void *restrict);
21735 main ()
21737 /* glibc uses struct timezone * rather than the POSIX void *
21738 if _GNU_SOURCE is defined. However, since the only portable
21739 use of gettimeofday uses NULL as the second parameter, and
21740 since the glibc definition is actually more typesafe, it is
21741 not worth wrapping this to get a compliant signature. */
21742 int (*f) (struct timeval *restrict, void *restrict)
21743 = gettimeofday;
21744 int x = f (&c, 0);
21745 return !(x | c.tv_sec | c.tv_usec);
21748 return 0;
21750 _ACEOF
21751 if ac_fn_c_try_compile "$LINENO"; then :
21752 gl_cv_func_gettimeofday_posix_signature=yes
21753 else
21754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21755 /* end confdefs.h. */
21756 #include <sys/time.h>
21757 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21760 main ()
21764 return 0;
21766 _ACEOF
21767 if ac_fn_c_try_compile "$LINENO"; then :
21768 gl_cv_func_gettimeofday_posix_signature=almost
21769 else
21770 gl_cv_func_gettimeofday_posix_signature=no
21772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21777 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21778 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
21779 gl_gettimeofday_timezone='struct timezone'
21780 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21781 REPLACE_GETTIMEOFDAY=1
21783 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21784 REPLACE_GETTIMEOFDAY=1
21789 cat >>confdefs.h <<_ACEOF
21790 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21791 _ACEOF
21794 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
21803 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21806 for ac_header in sys/timeb.h
21807 do :
21808 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
21809 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
21810 cat >>confdefs.h <<_ACEOF
21811 #define HAVE_SYS_TIMEB_H 1
21812 _ACEOF
21816 done
21818 for ac_func in _ftime
21819 do :
21820 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
21821 if test "x$ac_cv_func__ftime" = x""yes; then :
21822 cat >>confdefs.h <<_ACEOF
21823 #define HAVE__FTIME 1
21824 _ACEOF
21827 done
21836 GNULIB_GETTIMEOFDAY=1
21847 if test $ac_cv_func_lstat = yes; then
21849 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21850 *no)
21851 REPLACE_LSTAT=1
21853 esac
21854 else
21855 HAVE_LSTAT=0
21858 if test $REPLACE_LSTAT = 1; then
21867 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
21876 GNULIB_LSTAT=1
21888 if test $APPLE_UNIVERSAL_BUILD = 1; then
21889 # A universal build on Apple Mac OS X platforms.
21890 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
21891 # But we need a configuration result that is valid in both modes.
21892 gl_cv_func_working_mktime=no
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
21895 $as_echo_n "checking for working mktime... " >&6; }
21896 if test "${gl_cv_func_working_mktime+set}" = set; then :
21897 $as_echo_n "(cached) " >&6
21898 else
21899 if test "$cross_compiling" = yes; then :
21900 gl_cv_func_working_mktime=no
21901 else
21902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21903 /* end confdefs.h. */
21904 /* Test program from Paul Eggert and Tony Leneis. */
21905 #include <limits.h>
21906 #include <stdlib.h>
21907 #include <time.h>
21909 #ifdef HAVE_UNISTD_H
21910 # include <unistd.h>
21911 #endif
21913 #ifndef HAVE_ALARM
21914 # define alarm(X) /* empty */
21915 #endif
21917 /* Work around redefinition to rpl_putenv by other config tests. */
21918 #undef putenv
21920 static time_t time_t_max;
21921 static time_t time_t_min;
21923 /* Values we'll use to set the TZ environment variable. */
21924 static char *tz_strings[] = {
21925 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21926 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21928 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21930 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21931 Based on a problem report from Andreas Jaeger. */
21932 static int
21933 spring_forward_gap ()
21935 /* glibc (up to about 1998-10-07) failed this test. */
21936 struct tm tm;
21938 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21939 instead of "TZ=America/Vancouver" in order to detect the bug even
21940 on systems that don't support the Olson extension, or don't have the
21941 full zoneinfo tables installed. */
21942 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21944 tm.tm_year = 98;
21945 tm.tm_mon = 3;
21946 tm.tm_mday = 5;
21947 tm.tm_hour = 2;
21948 tm.tm_min = 0;
21949 tm.tm_sec = 0;
21950 tm.tm_isdst = -1;
21951 return mktime (&tm) != (time_t) -1;
21954 static int
21955 mktime_test1 (time_t now)
21957 struct tm *lt;
21958 return ! (lt = localtime (&now)) || mktime (lt) == now;
21961 static int
21962 mktime_test (time_t now)
21964 return (mktime_test1 (now)
21965 && mktime_test1 ((time_t) (time_t_max - now))
21966 && mktime_test1 ((time_t) (time_t_min + now)));
21969 static int
21970 irix_6_4_bug ()
21972 /* Based on code from Ariel Faigon. */
21973 struct tm tm;
21974 tm.tm_year = 96;
21975 tm.tm_mon = 3;
21976 tm.tm_mday = 0;
21977 tm.tm_hour = 0;
21978 tm.tm_min = 0;
21979 tm.tm_sec = 0;
21980 tm.tm_isdst = -1;
21981 mktime (&tm);
21982 return tm.tm_mon == 2 && tm.tm_mday == 31;
21985 static int
21986 bigtime_test (int j)
21988 struct tm tm;
21989 time_t now;
21990 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21991 now = mktime (&tm);
21992 if (now != (time_t) -1)
21994 struct tm *lt = localtime (&now);
21995 if (! (lt
21996 && lt->tm_year == tm.tm_year
21997 && lt->tm_mon == tm.tm_mon
21998 && lt->tm_mday == tm.tm_mday
21999 && lt->tm_hour == tm.tm_hour
22000 && lt->tm_min == tm.tm_min
22001 && lt->tm_sec == tm.tm_sec
22002 && lt->tm_yday == tm.tm_yday
22003 && lt->tm_wday == tm.tm_wday
22004 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
22005 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
22006 return 0;
22008 return 1;
22011 static int
22012 year_2050_test ()
22014 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
22015 ignoring leap seconds. */
22016 unsigned long int answer = 2527315200UL;
22018 struct tm tm;
22019 time_t t;
22020 tm.tm_year = 2050 - 1900;
22021 tm.tm_mon = 2 - 1;
22022 tm.tm_mday = 1;
22023 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
22024 tm.tm_isdst = -1;
22026 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22027 instead of "TZ=America/Vancouver" in order to detect the bug even
22028 on systems that don't support the Olson extension, or don't have the
22029 full zoneinfo tables installed. */
22030 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22032 t = mktime (&tm);
22034 /* Check that the result is either a failure, or close enough
22035 to the correct answer that we can assume the discrepancy is
22036 due to leap seconds. */
22037 return (t == (time_t) -1
22038 || (0 < t && answer - 120 <= t && t <= answer + 120));
22042 main ()
22044 int result = 0;
22045 time_t t, delta;
22046 int i, j;
22047 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
22048 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
22050 /* This test makes some buggy mktime implementations loop.
22051 Give up after 60 seconds; a mktime slower than that
22052 isn't worth using anyway. */
22053 alarm (60);
22055 time_t_max = (! time_t_signed
22056 ? (time_t) -1
22057 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
22058 * 2 + 1));
22059 time_t_min = (! time_t_signed
22060 ? (time_t) 0
22061 : time_t_signed_magnitude
22062 ? ~ (time_t) 0
22063 : ~ time_t_max);
22065 delta = time_t_max / 997; /* a suitable prime number */
22066 for (i = 0; i < N_STRINGS; i++)
22068 if (tz_strings[i])
22069 putenv (tz_strings[i]);
22071 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
22072 if (! mktime_test (t))
22073 result |= 1;
22074 if ((result & 2) == 0
22075 && ! (mktime_test ((time_t) 1)
22076 && mktime_test ((time_t) (60 * 60))
22077 && mktime_test ((time_t) (60 * 60 * 24))))
22078 result |= 2;
22080 for (j = 1; (result & 4) == 0; j <<= 1)
22082 if (! bigtime_test (j))
22083 result |= 4;
22084 if (INT_MAX / 2 < j)
22085 break;
22087 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
22088 result |= 8;
22090 if (! irix_6_4_bug ())
22091 result |= 16;
22092 if (! spring_forward_gap ())
22093 result |= 32;
22094 if (! year_2050_test ())
22095 result |= 64;
22096 return result;
22098 _ACEOF
22099 if ac_fn_c_try_run "$LINENO"; then :
22100 gl_cv_func_working_mktime=yes
22101 else
22102 gl_cv_func_working_mktime=no
22104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22105 conftest.$ac_objext conftest.beam conftest.$ac_ext
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
22111 $as_echo "$gl_cv_func_working_mktime" >&6; }
22113 if test $gl_cv_func_working_mktime = no; then
22114 REPLACE_MKTIME=1
22115 else
22116 REPLACE_MKTIME=0
22119 if test $REPLACE_MKTIME = 1; then
22128 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
22137 GNULIB_MKTIME=1
22149 if test $ac_cv_func_pselect = yes; then
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
22151 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
22152 if test "${gl_cv_sig_pselect+set}" = set; then :
22153 $as_echo_n "(cached) " >&6
22154 else
22155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22156 /* end confdefs.h. */
22157 #include <sys/select.h>
22160 main ()
22162 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
22163 struct timespec const *restrict,
22164 sigset_t const *restrict) = pselect;
22165 return !p;
22167 return 0;
22169 _ACEOF
22170 if ac_fn_c_try_link "$LINENO"; then :
22171 gl_cv_sig_pselect=yes
22172 else
22173 gl_cv_sig_pselect=no
22175 rm -f core conftest.err conftest.$ac_objext \
22176 conftest$ac_exeext conftest.$ac_ext
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
22179 $as_echo "$gl_cv_sig_pselect" >&6; }
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
22182 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
22183 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
22184 $as_echo_n "(cached) " >&6
22185 else
22187 if test "$cross_compiling" = yes; then :
22189 case "$host_os" in
22190 # Guess yes on glibc systems.
22191 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
22192 # If we don't know, assume the worst.
22193 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
22194 esac
22196 else
22197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22198 /* end confdefs.h. */
22200 #include <sys/types.h>
22201 #include <sys/time.h>
22202 #if HAVE_SYS_SELECT_H
22203 # include <sys/select.h>
22204 #endif
22205 #include <unistd.h>
22206 #include <errno.h>
22209 main ()
22212 fd_set set;
22213 dup2(0, 16);
22214 FD_ZERO(&set);
22215 FD_SET(16, &set);
22216 close(16);
22217 struct timespec timeout;
22218 timeout.tv_sec = 0;
22219 timeout.tv_nsec = 5000;
22220 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
22223 return 0;
22225 _ACEOF
22226 if ac_fn_c_try_run "$LINENO"; then :
22227 gl_cv_func_pselect_detects_ebadf=yes
22228 else
22229 gl_cv_func_pselect_detects_ebadf=no
22231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22232 conftest.$ac_objext conftest.beam conftest.$ac_ext
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
22238 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
22239 case $gl_cv_func_pselect_detects_ebadf in
22240 *yes) ;;
22241 *) REPLACE_PSELECT=1 ;;
22242 esac
22245 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
22246 REPLACE_PSELECT=1
22249 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
22258 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
22266 GNULIB_PSELECT=1
22276 LIB_PTHREAD_SIGMASK=
22281 if test "$gl_threads_api" = posix; then
22282 if test $ac_cv_func_pthread_sigmask = yes; then
22284 else
22285 if test -n "$LIBMULTITHREAD"; then
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
22287 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
22288 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
22289 $as_echo_n "(cached) " >&6
22290 else
22291 gl_save_LIBS="$LIBS"
22292 LIBS="$LIBS $LIBMULTITHREAD"
22293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22294 /* end confdefs.h. */
22295 #include <pthread.h>
22296 #include <signal.h>
22299 main ()
22301 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
22303 return 0;
22306 _ACEOF
22307 if ac_fn_c_try_link "$LINENO"; then :
22308 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
22309 else
22310 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
22312 rm -f core conftest.err conftest.$ac_objext \
22313 conftest$ac_exeext conftest.$ac_ext
22314 LIBS="$gl_save_LIBS"
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
22318 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
22319 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
22320 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
22321 else
22322 HAVE_PTHREAD_SIGMASK=0
22324 else
22325 HAVE_PTHREAD_SIGMASK=0
22328 else
22329 if test $ac_cv_func_pthread_sigmask = yes; then
22330 REPLACE_PTHREAD_SIGMASK=1
22331 else
22332 HAVE_PTHREAD_SIGMASK=0
22339 if test $HAVE_PTHREAD_SIGMASK = 1; then
22342 if test -z "$LIB_PTHREAD_SIGMASK"; then
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
22344 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
22345 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
22346 $as_echo_n "(cached) " >&6
22347 else
22349 if test "$cross_compiling" = yes; then :
22351 case "$host_os" in
22352 freebsd* | hpux* | solaris | solaris2.[2-9]*)
22353 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
22355 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
22356 esac
22358 else
22359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22360 /* end confdefs.h. */
22362 #include <pthread.h>
22363 #include <signal.h>
22364 #include <stddef.h>
22365 int main ()
22367 sigset_t set;
22368 sigemptyset (&set);
22369 return pthread_sigmask (1729, &set, NULL) != 0;
22371 _ACEOF
22372 if ac_fn_c_try_run "$LINENO"; then :
22373 gl_cv_func_pthread_sigmask_in_libc_works=no
22374 else
22375 gl_cv_func_pthread_sigmask_in_libc_works=yes
22377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22378 conftest.$ac_objext conftest.beam conftest.$ac_ext
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
22384 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
22385 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
22386 *no)
22387 REPLACE_PTHREAD_SIGMASK=1
22389 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
22392 esac
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
22396 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
22397 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
22398 $as_echo_n "(cached) " >&6
22399 else
22401 gl_save_LIBS="$LIBS"
22402 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
22403 if test "$cross_compiling" = yes; then :
22404 case "$host_os" in
22405 cygwin*)
22406 gl_cv_func_pthread_sigmask_return_works="guessing no";;
22408 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
22409 esac
22411 else
22412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22413 /* end confdefs.h. */
22415 #include <pthread.h>
22416 #include <signal.h>
22417 #include <stddef.h>
22418 int main ()
22420 sigset_t set;
22421 sigemptyset (&set);
22422 if (pthread_sigmask (1729, &set, NULL) == -1)
22423 return 1;
22424 return 0;
22426 _ACEOF
22427 if ac_fn_c_try_run "$LINENO"; then :
22428 gl_cv_func_pthread_sigmask_return_works=yes
22429 else
22430 gl_cv_func_pthread_sigmask_return_works=no
22432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22433 conftest.$ac_objext conftest.beam conftest.$ac_ext
22436 LIBS="$gl_save_LIBS"
22439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
22440 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
22441 case "$gl_cv_func_pthread_sigmask_return_works" in
22442 *no)
22443 REPLACE_PTHREAD_SIGMASK=1
22445 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
22448 esac
22450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
22451 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
22452 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
22453 $as_echo_n "(cached) " >&6
22454 else
22456 case "$host_os" in
22457 irix*)
22458 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
22460 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
22461 esac
22462 gl_save_LIBS="$LIBS"
22463 LIBS="$LIBS $LIBMULTITHREAD"
22464 if test "$cross_compiling" = yes; then :
22466 else
22467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22468 /* end confdefs.h. */
22470 #include <pthread.h>
22471 #include <signal.h>
22472 #include <stdio.h>
22473 #include <stdlib.h>
22474 #include <unistd.h>
22475 static volatile int sigint_occurred;
22476 static void
22477 sigint_handler (int sig)
22479 sigint_occurred++;
22481 int main ()
22483 sigset_t set;
22484 int pid = getpid ();
22485 char command[80];
22486 signal (SIGINT, sigint_handler);
22487 sigemptyset (&set);
22488 sigaddset (&set, SIGINT);
22489 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
22490 return 1;
22491 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
22492 if (!(system (command) == 0))
22493 return 2;
22494 sleep (2);
22495 if (!(sigint_occurred == 0))
22496 return 3;
22497 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
22498 return 4;
22499 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
22500 return 5;
22501 return 0;
22503 _ACEOF
22504 if ac_fn_c_try_run "$LINENO"; then :
22506 else
22507 gl_cv_func_pthread_sigmask_unblock_works=no
22509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22510 conftest.$ac_objext conftest.beam conftest.$ac_ext
22513 LIBS="$gl_save_LIBS"
22516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
22517 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
22518 case "$gl_cv_func_pthread_sigmask_unblock_works" in
22519 *no)
22520 REPLACE_PTHREAD_SIGMASK=1
22522 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
22525 esac
22528 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
22537 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
22540 if test $HAVE_PTHREAD_SIGMASK = 1; then
22542 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
22552 GNULIB_PTHREAD_SIGMASK=1
22560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
22561 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
22562 if test "${gl_cv_func_svid_putenv+set}" = set; then :
22563 $as_echo_n "(cached) " >&6
22564 else
22565 if test "$cross_compiling" = yes; then :
22566 case "$host_os" in
22567 # Guess yes on glibc systems.
22568 *-gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
22569 # If we don't know, assume the worst.
22570 *) gl_cv_func_svid_putenv="guessing no" ;;
22571 esac
22573 else
22574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22575 /* end confdefs.h. */
22576 $ac_includes_default
22578 main ()
22581 /* Put it in env. */
22582 if (putenv ("CONFTEST_putenv=val"))
22583 return 1;
22585 /* Try to remove it. */
22586 if (putenv ("CONFTEST_putenv"))
22587 return 2;
22589 /* Make sure it was deleted. */
22590 if (getenv ("CONFTEST_putenv") != 0)
22591 return 3;
22593 return 0;
22596 return 0;
22598 _ACEOF
22599 if ac_fn_c_try_run "$LINENO"; then :
22600 gl_cv_func_svid_putenv=yes
22601 else
22602 gl_cv_func_svid_putenv=no
22604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22605 conftest.$ac_objext conftest.beam conftest.$ac_ext
22610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
22611 $as_echo "$gl_cv_func_svid_putenv" >&6; }
22612 case "$gl_cv_func_svid_putenv" in
22613 *yes) ;;
22615 REPLACE_PUTENV=1
22617 esac
22619 if test $REPLACE_PUTENV = 1; then
22628 gl_LIBOBJS="$gl_LIBOBJS putenv.$ac_objext"
22636 GNULIB_PUTENV=1
22645 if test $ac_cv_func_readlink = no; then
22646 HAVE_READLINK=0
22647 else
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
22649 $as_echo_n "checking whether readlink signature is correct... " >&6; }
22650 if test "${gl_cv_decl_readlink_works+set}" = set; then :
22651 $as_echo_n "(cached) " >&6
22652 else
22653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22654 /* end confdefs.h. */
22655 #include <unistd.h>
22656 /* Cause compilation failure if original declaration has wrong type. */
22657 ssize_t readlink (const char *, char *, size_t);
22659 main ()
22663 return 0;
22665 _ACEOF
22666 if ac_fn_c_try_compile "$LINENO"; then :
22667 gl_cv_decl_readlink_works=yes
22668 else
22669 gl_cv_decl_readlink_works=no
22671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
22674 $as_echo "$gl_cv_decl_readlink_works" >&6; }
22675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
22676 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
22677 if test "${gl_cv_func_readlink_works+set}" = set; then :
22678 $as_echo_n "(cached) " >&6
22679 else
22680 # We have readlink, so assume ln -s works.
22681 ln -s conftest.no-such conftest.link
22682 ln -s conftest.link conftest.lnk2
22683 if test "$cross_compiling" = yes; then :
22684 case "$host_os" in
22685 # Guess yes on glibc systems.
22686 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
22687 # If we don't know, assume the worst.
22688 *) gl_cv_func_readlink_works="guessing no" ;;
22689 esac
22691 else
22692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22693 /* end confdefs.h. */
22694 #include <unistd.h>
22697 main ()
22699 char buf[20];
22700 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
22702 return 0;
22704 _ACEOF
22705 if ac_fn_c_try_run "$LINENO"; then :
22706 gl_cv_func_readlink_works=yes
22707 else
22708 gl_cv_func_readlink_works=no
22710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22711 conftest.$ac_objext conftest.beam conftest.$ac_ext
22714 rm -f conftest.link conftest.lnk2
22716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
22717 $as_echo "$gl_cv_func_readlink_works" >&6; }
22718 case "$gl_cv_func_readlink_works" in
22719 *yes)
22720 if test "$gl_cv_decl_readlink_works" != yes; then
22721 REPLACE_READLINK=1
22726 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
22728 REPLACE_READLINK=1
22730 esac
22733 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22742 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
22753 GNULIB_READLINK=1
22760 for ac_func in sig2str
22761 do :
22762 ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
22763 if test "x$ac_cv_func_sig2str" = x""yes; then :
22764 cat >>confdefs.h <<_ACEOF
22765 #define HAVE_SIG2STR 1
22766 _ACEOF
22769 done
22772 if test $ac_cv_func_sig2str = no; then
22781 gl_LIBOBJS="$gl_LIBOBJS sig2str.$ac_objext"
22798 if test $gl_cv_have_include_next = yes; then
22799 gl_cv_next_signal_h='<'signal.h'>'
22800 else
22801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22802 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22803 if test "${gl_cv_next_signal_h+set}" = set; then :
22804 $as_echo_n "(cached) " >&6
22805 else
22807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22808 /* end confdefs.h. */
22809 #include <signal.h>
22811 _ACEOF
22812 case "$host_os" in
22813 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22814 *) gl_absname_cpp="$ac_cpp" ;;
22815 esac
22817 case "$host_os" in
22818 mingw*)
22819 gl_dirsep_regex='[/\\]'
22822 gl_dirsep_regex='\/'
22824 esac
22825 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22827 gl_header_literal_regex=`echo 'signal.h' \
22828 | sed -e "$gl_make_literal_regex_sed"`
22829 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22830 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22831 s|^/[^/]|//&|
22835 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22836 sed -n "$gl_absolute_header_sed"`'"'
22840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22841 $as_echo "$gl_cv_next_signal_h" >&6; }
22843 NEXT_SIGNAL_H=$gl_cv_next_signal_h
22845 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22846 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22847 gl_next_as_first_directive='<'signal.h'>'
22848 else
22849 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22850 gl_next_as_first_directive=$gl_cv_next_signal_h
22852 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
22858 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22859 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22860 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22861 #include <signal.h>
22864 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
22866 else
22867 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
22876 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22877 #include <signal.h>
22880 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
22882 else
22883 HAVE_SIGHANDLER_T=0
22889 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
22890 /* <sys/types.h> is not needed according to POSIX, but the
22891 <sys/socket.h> in i386-unknown-freebsd4.10 and
22892 powerpc-apple-darwin5.5 required it. */
22893 #include <sys/types.h>
22894 #if HAVE_SYS_SOCKET_H
22895 # include <sys/socket.h>
22896 #elif HAVE_WS2TCPIP_H
22897 # include <ws2tcpip.h>
22898 #endif
22901 if test "x$ac_cv_type_socklen_t" = x""yes; then :
22903 else
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
22905 $as_echo_n "checking for socklen_t equivalent... " >&6; }
22906 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
22907 $as_echo_n "(cached) " >&6
22908 else
22909 # Systems have either "struct sockaddr *" or
22910 # "void *" as the second argument to getpeername
22911 gl_cv_socklen_t_equiv=
22912 for arg2 in "struct sockaddr" void; do
22913 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
22914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22915 /* end confdefs.h. */
22916 #include <sys/types.h>
22917 #include <sys/socket.h>
22919 int getpeername (int, $arg2 *, $t *);
22921 main ()
22923 $t len;
22924 getpeername (0, 0, &len);
22926 return 0;
22928 _ACEOF
22929 if ac_fn_c_try_compile "$LINENO"; then :
22930 gl_cv_socklen_t_equiv="$t"
22932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22933 test "$gl_cv_socklen_t_equiv" != "" && break
22934 done
22935 test "$gl_cv_socklen_t_equiv" != "" && break
22936 done
22940 if test "$gl_cv_socklen_t_equiv" = ""; then
22941 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
22944 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
22946 cat >>confdefs.h <<_ACEOF
22947 #define socklen_t $gl_cv_socklen_t_equiv
22948 _ACEOF
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22954 $as_echo_n "checking for ssize_t... " >&6; }
22955 if test "${gt_cv_ssize_t+set}" = set; then :
22956 $as_echo_n "(cached) " >&6
22957 else
22958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22959 /* end confdefs.h. */
22960 #include <sys/types.h>
22962 main ()
22964 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22965 return !x;
22967 return 0;
22969 _ACEOF
22970 if ac_fn_c_try_compile "$LINENO"; then :
22971 gt_cv_ssize_t=yes
22972 else
22973 gt_cv_ssize_t=no
22975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22978 $as_echo "$gt_cv_ssize_t" >&6; }
22979 if test $gt_cv_ssize_t = no; then
22981 $as_echo "#define ssize_t int" >>confdefs.h
22989 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
22990 #include <sys/stat.h>
22992 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
22994 cat >>confdefs.h <<_ACEOF
22995 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22996 _ACEOF
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
22999 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
23000 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
23001 $as_echo_n "(cached) " >&6
23002 else
23003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23004 /* end confdefs.h. */
23006 #include <sys/types.h>
23007 #include <sys/stat.h>
23008 #if HAVE_SYS_TIME_H
23009 # include <sys/time.h>
23010 #endif
23011 #include <time.h>
23012 struct timespec ts;
23013 struct stat st;
23016 main ()
23019 st.st_atim = ts;
23022 return 0;
23024 _ACEOF
23025 if ac_fn_c_try_compile "$LINENO"; then :
23026 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
23027 else
23028 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
23030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
23033 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
23034 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
23036 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
23039 else
23040 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
23041 #include <sys/stat.h>
23043 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
23045 cat >>confdefs.h <<_ACEOF
23046 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
23047 _ACEOF
23050 else
23051 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
23052 #include <sys/stat.h>
23054 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
23056 cat >>confdefs.h <<_ACEOF
23057 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
23058 _ACEOF
23061 else
23062 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
23063 #include <sys/stat.h>
23065 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
23067 cat >>confdefs.h <<_ACEOF
23068 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
23069 _ACEOF
23084 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
23085 #include <sys/stat.h>
23087 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
23089 cat >>confdefs.h <<_ACEOF
23090 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
23091 _ACEOF
23094 else
23095 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
23096 #include <sys/stat.h>
23098 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
23100 cat >>confdefs.h <<_ACEOF
23101 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
23102 _ACEOF
23105 else
23106 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
23107 #include <sys/stat.h>
23109 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
23111 cat >>confdefs.h <<_ACEOF
23112 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
23113 _ACEOF
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
23125 $as_echo_n "checking for working stdalign.h... " >&6; }
23126 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
23127 $as_echo_n "(cached) " >&6
23128 else
23129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23130 /* end confdefs.h. */
23131 #include <stdalign.h>
23132 #include <stddef.h>
23134 /* Test that alignof yields a result consistent with offsetof.
23135 This catches GCC bug 52023
23136 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
23137 #ifdef __cplusplus
23138 template <class t> struct alignof_helper { char a; t b; };
23139 # define ao(type) offsetof (alignof_helper<type>, b)
23140 #else
23141 # define ao(type) offsetof (struct { char a; type b; }, b)
23142 #endif
23143 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
23144 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
23145 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
23147 /* Test _Alignas only on platforms where gnulib can help. */
23148 #if \
23149 (__GNUC__ || __IBMC__ || __IBMCPP__ \
23150 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
23151 int alignas (8) alignas_int = 1;
23152 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
23153 #endif
23156 main ()
23160 return 0;
23162 _ACEOF
23163 if ac_fn_c_try_compile "$LINENO"; then :
23164 gl_cv_header_working_stdalign_h=yes
23165 else
23166 gl_cv_header_working_stdalign_h=no
23168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
23171 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
23173 if test $gl_cv_header_working_stdalign_h = yes; then
23174 STDALIGN_H=''
23175 else
23176 STDALIGN_H='stdalign.h'
23180 if test -n "$STDALIGN_H"; then
23181 GL_GENERATE_STDALIGN_H_TRUE=
23182 GL_GENERATE_STDALIGN_H_FALSE='#'
23183 else
23184 GL_GENERATE_STDALIGN_H_TRUE='#'
23185 GL_GENERATE_STDALIGN_H_FALSE=
23190 STDARG_H=''
23191 NEXT_STDARG_H='<stdarg.h>'
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
23193 $as_echo_n "checking for va_copy... " >&6; }
23194 if test "${gl_cv_func_va_copy+set}" = set; then :
23195 $as_echo_n "(cached) " >&6
23196 else
23198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23199 /* end confdefs.h. */
23200 #include <stdarg.h>
23202 main ()
23205 #ifndef va_copy
23206 void (*func) (va_list, va_list) = va_copy;
23207 #endif
23210 return 0;
23212 _ACEOF
23213 if ac_fn_c_try_compile "$LINENO"; then :
23214 gl_cv_func_va_copy=yes
23215 else
23216 gl_cv_func_va_copy=no
23218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
23222 $as_echo "$gl_cv_func_va_copy" >&6; }
23223 if test $gl_cv_func_va_copy = no; then
23224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23225 /* end confdefs.h. */
23226 #if defined _AIX && !defined __GNUC__
23227 AIX vaccine
23228 #endif
23230 _ACEOF
23231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23232 $EGREP "vaccine" >/dev/null 2>&1; then :
23233 gl_aixcc=yes
23234 else
23235 gl_aixcc=no
23237 rm -f conftest*
23239 if test $gl_aixcc = yes; then
23240 STDARG_H=stdarg.h
23249 if test $gl_cv_have_include_next = yes; then
23250 gl_cv_next_stdarg_h='<'stdarg.h'>'
23251 else
23252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
23253 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
23254 if test "${gl_cv_next_stdarg_h+set}" = set; then :
23255 $as_echo_n "(cached) " >&6
23256 else
23258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23259 /* end confdefs.h. */
23260 #include <stdarg.h>
23262 _ACEOF
23263 case "$host_os" in
23264 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23265 *) gl_absname_cpp="$ac_cpp" ;;
23266 esac
23268 case "$host_os" in
23269 mingw*)
23270 gl_dirsep_regex='[/\\]'
23273 gl_dirsep_regex='\/'
23275 esac
23276 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23278 gl_header_literal_regex=`echo 'stdarg.h' \
23279 | sed -e "$gl_make_literal_regex_sed"`
23280 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23281 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23282 s|^/[^/]|//&|
23286 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23287 sed -n "$gl_absolute_header_sed"`'"'
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
23292 $as_echo "$gl_cv_next_stdarg_h" >&6; }
23294 NEXT_STDARG_H=$gl_cv_next_stdarg_h
23296 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23297 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23298 gl_next_as_first_directive='<'stdarg.h'>'
23299 else
23300 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23301 gl_next_as_first_directive=$gl_cv_next_stdarg_h
23303 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
23308 if test "$gl_cv_next_stdarg_h" = '""'; then
23309 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
23310 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
23312 else
23314 saved_as_echo_n="$as_echo_n"
23315 as_echo_n=':'
23316 if test "${gl_cv_func___va_copy+set}" = set; then :
23317 $as_echo_n "(cached) " >&6
23318 else
23320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23321 /* end confdefs.h. */
23322 #include <stdarg.h>
23324 main ()
23327 #ifndef __va_copy
23328 error, bail out
23329 #endif
23332 return 0;
23334 _ACEOF
23335 if ac_fn_c_try_compile "$LINENO"; then :
23336 gl_cv_func___va_copy=yes
23337 else
23338 gl_cv_func___va_copy=no
23340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23343 as_echo_n="$saved_as_echo_n"
23345 if test $gl_cv_func___va_copy = yes; then
23347 $as_echo "#define va_copy __va_copy" >>confdefs.h
23349 else
23352 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
23358 if test -n "$STDARG_H"; then
23359 GL_GENERATE_STDARG_H_TRUE=
23360 GL_GENERATE_STDARG_H_FALSE='#'
23361 else
23362 GL_GENERATE_STDARG_H_TRUE='#'
23363 GL_GENERATE_STDARG_H_FALSE=
23371 # Define two additional variables used in the Makefile substitution.
23373 if test "$ac_cv_header_stdbool_h" = yes; then
23374 STDBOOL_H=''
23375 else
23376 STDBOOL_H='stdbool.h'
23379 if test -n "$STDBOOL_H"; then
23380 GL_GENERATE_STDBOOL_H_TRUE=
23381 GL_GENERATE_STDBOOL_H_FALSE='#'
23382 else
23383 GL_GENERATE_STDBOOL_H_TRUE='#'
23384 GL_GENERATE_STDBOOL_H_FALSE=
23388 if test "$ac_cv_type__Bool" = yes; then
23389 HAVE__BOOL=1
23390 else
23391 HAVE__BOOL=0
23398 STDDEF_H=
23399 if test $gt_cv_c_wchar_t = no; then
23400 HAVE_WCHAR_T=0
23401 STDDEF_H=stddef.h
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23404 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23405 if test "${gl_cv_decl_null_works+set}" = set; then :
23406 $as_echo_n "(cached) " >&6
23407 else
23408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23409 /* end confdefs.h. */
23410 #include <stddef.h>
23411 int test[2 * (sizeof NULL == sizeof (void *)) -1];
23414 main ()
23418 return 0;
23420 _ACEOF
23421 if ac_fn_c_try_compile "$LINENO"; then :
23422 gl_cv_decl_null_works=yes
23423 else
23424 gl_cv_decl_null_works=no
23426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23429 $as_echo "$gl_cv_decl_null_works" >&6; }
23430 if test $gl_cv_decl_null_works = no; then
23431 REPLACE_NULL=1
23432 STDDEF_H=stddef.h
23435 if test -n "$STDDEF_H"; then
23436 GL_GENERATE_STDDEF_H_TRUE=
23437 GL_GENERATE_STDDEF_H_FALSE='#'
23438 else
23439 GL_GENERATE_STDDEF_H_TRUE='#'
23440 GL_GENERATE_STDDEF_H_FALSE=
23443 if test -n "$STDDEF_H"; then
23452 if test $gl_cv_have_include_next = yes; then
23453 gl_cv_next_stddef_h='<'stddef.h'>'
23454 else
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23456 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23457 if test "${gl_cv_next_stddef_h+set}" = set; then :
23458 $as_echo_n "(cached) " >&6
23459 else
23461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23462 /* end confdefs.h. */
23463 #include <stddef.h>
23465 _ACEOF
23466 case "$host_os" in
23467 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23468 *) gl_absname_cpp="$ac_cpp" ;;
23469 esac
23471 case "$host_os" in
23472 mingw*)
23473 gl_dirsep_regex='[/\\]'
23476 gl_dirsep_regex='\/'
23478 esac
23479 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23481 gl_header_literal_regex=`echo 'stddef.h' \
23482 | sed -e "$gl_make_literal_regex_sed"`
23483 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23484 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23485 s|^/[^/]|//&|
23489 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23490 sed -n "$gl_absolute_header_sed"`'"'
23494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23495 $as_echo "$gl_cv_next_stddef_h" >&6; }
23497 NEXT_STDDEF_H=$gl_cv_next_stddef_h
23499 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23500 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23501 gl_next_as_first_directive='<'stddef.h'>'
23502 else
23503 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23504 gl_next_as_first_directive=$gl_cv_next_stddef_h
23506 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
23524 if test $gl_cv_have_include_next = yes; then
23525 gl_cv_next_stdio_h='<'stdio.h'>'
23526 else
23527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
23528 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23529 if test "${gl_cv_next_stdio_h+set}" = set; then :
23530 $as_echo_n "(cached) " >&6
23531 else
23533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23534 /* end confdefs.h. */
23535 #include <stdio.h>
23537 _ACEOF
23538 case "$host_os" in
23539 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23540 *) gl_absname_cpp="$ac_cpp" ;;
23541 esac
23543 case "$host_os" in
23544 mingw*)
23545 gl_dirsep_regex='[/\\]'
23548 gl_dirsep_regex='\/'
23550 esac
23551 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23553 gl_header_literal_regex=`echo 'stdio.h' \
23554 | sed -e "$gl_make_literal_regex_sed"`
23555 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23556 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23557 s|^/[^/]|//&|
23561 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23562 sed -n "$gl_absolute_header_sed"`'"'
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
23567 $as_echo "$gl_cv_next_stdio_h" >&6; }
23569 NEXT_STDIO_H=$gl_cv_next_stdio_h
23571 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23572 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23573 gl_next_as_first_directive='<'stdio.h'>'
23574 else
23575 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23576 gl_next_as_first_directive=$gl_cv_next_stdio_h
23578 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
23584 GNULIB_FSCANF=1
23587 cat >>confdefs.h <<_ACEOF
23588 #define GNULIB_FSCANF 1
23589 _ACEOF
23592 GNULIB_SCANF=1
23595 cat >>confdefs.h <<_ACEOF
23596 #define GNULIB_SCANF 1
23597 _ACEOF
23600 GNULIB_FGETC=1
23601 GNULIB_GETC=1
23602 GNULIB_GETCHAR=1
23603 GNULIB_FGETS=1
23604 GNULIB_FREAD=1
23607 GNULIB_FPRINTF=1
23608 GNULIB_PRINTF=1
23609 GNULIB_VFPRINTF=1
23610 GNULIB_VPRINTF=1
23611 GNULIB_FPUTC=1
23612 GNULIB_PUTC=1
23613 GNULIB_PUTCHAR=1
23614 GNULIB_FPUTS=1
23615 GNULIB_PUTS=1
23616 GNULIB_FWRITE=1
23632 if test $gl_cv_have_include_next = yes; then
23633 gl_cv_next_stdlib_h='<'stdlib.h'>'
23634 else
23635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
23636 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
23637 if test "${gl_cv_next_stdlib_h+set}" = set; then :
23638 $as_echo_n "(cached) " >&6
23639 else
23641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23642 /* end confdefs.h. */
23643 #include <stdlib.h>
23645 _ACEOF
23646 case "$host_os" in
23647 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23648 *) gl_absname_cpp="$ac_cpp" ;;
23649 esac
23651 case "$host_os" in
23652 mingw*)
23653 gl_dirsep_regex='[/\\]'
23656 gl_dirsep_regex='\/'
23658 esac
23659 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23661 gl_header_literal_regex=`echo 'stdlib.h' \
23662 | sed -e "$gl_make_literal_regex_sed"`
23663 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23664 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23665 s|^/[^/]|//&|
23669 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23670 sed -n "$gl_absolute_header_sed"`'"'
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
23675 $as_echo "$gl_cv_next_stdlib_h" >&6; }
23677 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
23679 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23680 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23681 gl_next_as_first_directive='<'stdlib.h'>'
23682 else
23683 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23684 gl_next_as_first_directive=$gl_cv_next_stdlib_h
23686 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
23696 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
23704 $as_echo "#define my_strftime nstrftime" >>confdefs.h
23713 if test "$ac_cv_have_decl_strtoimax" != yes; then
23714 HAVE_DECL_STRTOIMAX=0
23717 if test $ac_cv_func_strtoimax = yes; then
23718 HAVE_STRTOIMAX=1
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
23720 $as_echo_n "checking whether strtoimax works... " >&6; }
23721 if test "${gl_cv_func_strtoimax+set}" = set; then :
23722 $as_echo_n "(cached) " >&6
23723 else
23724 if test "$cross_compiling" = yes; then :
23725 case "$host_os" in
23726 # Guess no on AIX 5.
23727 aix5*) gl_cv_func_strtoimax="guessing no" ;;
23728 # Guess yes otherwise.
23729 *) gl_cv_func_strtoimax="guessing yes" ;;
23730 esac
23732 else
23733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23734 /* end confdefs.h. */
23736 #include <errno.h>
23737 #include <string.h>
23738 #include <inttypes.h>
23739 int main ()
23741 if (sizeof (intmax_t) > sizeof (int))
23743 const char *s = "4294967295";
23744 char *p;
23745 intmax_t res;
23746 errno = 0;
23747 res = strtoimax (s, &p, 10);
23748 if (p != s + strlen (s))
23749 return 1;
23750 if (errno != 0)
23751 return 2;
23752 if (res != (intmax_t) 65535 * (intmax_t) 65537)
23753 return 3;
23755 else
23757 const char *s = "2147483647";
23758 char *p;
23759 intmax_t res;
23760 errno = 0;
23761 res = strtoimax (s, &p, 10);
23762 if (p != s + strlen (s))
23763 return 1;
23764 if (errno != 0)
23765 return 2;
23766 if (res != 2147483647)
23767 return 3;
23769 return 0;
23772 _ACEOF
23773 if ac_fn_c_try_run "$LINENO"; then :
23774 gl_cv_func_strtoimax=yes
23775 else
23776 gl_cv_func_strtoimax=no
23778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23779 conftest.$ac_objext conftest.beam conftest.$ac_ext
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
23785 $as_echo "$gl_cv_func_strtoimax" >&6; }
23786 case "$gl_cv_func_strtoimax" in
23787 *no) REPLACE_STRTOIMAX=1 ;;
23788 esac
23789 else
23790 HAVE_STRTOIMAX=0
23793 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
23802 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
23805 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
23806 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
23807 ac_have_decl=1
23808 else
23809 ac_have_decl=0
23812 cat >>confdefs.h <<_ACEOF
23813 #define HAVE_DECL_STRTOLL $ac_have_decl
23814 _ACEOF
23824 GNULIB_STRTOIMAX=1
23834 if test "$ac_cv_have_decl_strtoumax" != yes; then
23835 HAVE_DECL_STRTOUMAX=0
23838 if test $ac_cv_func_strtoumax = no; then
23847 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
23850 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
23851 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
23852 ac_have_decl=1
23853 else
23854 ac_have_decl=0
23857 cat >>confdefs.h <<_ACEOF
23858 #define HAVE_DECL_STRTOULL $ac_have_decl
23859 _ACEOF
23869 GNULIB_STRTOUMAX=1
23877 if test $ac_cv_func_symlink = no; then
23878 HAVE_SYMLINK=0
23879 else
23880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
23881 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
23882 if test "${gl_cv_func_symlink_works+set}" = set; then :
23883 $as_echo_n "(cached) " >&6
23884 else
23885 if test "$cross_compiling" = yes; then :
23886 case "$host_os" in
23887 # Guess yes on glibc systems.
23888 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
23889 # If we don't know, assume the worst.
23890 *) gl_cv_func_symlink_works="guessing no" ;;
23891 esac
23893 else
23894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23895 /* end confdefs.h. */
23896 #include <unistd.h>
23899 main ()
23901 int result = 0;
23902 if (!symlink ("a", "conftest.link/"))
23903 result |= 1;
23904 if (symlink ("conftest.f", "conftest.lnk2"))
23905 result |= 2;
23906 else if (!symlink ("a", "conftest.lnk2/"))
23907 result |= 4;
23908 return result;
23911 return 0;
23913 _ACEOF
23914 if ac_fn_c_try_run "$LINENO"; then :
23915 gl_cv_func_symlink_works=yes
23916 else
23917 gl_cv_func_symlink_works=no
23919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23920 conftest.$ac_objext conftest.beam conftest.$ac_ext
23923 rm -f conftest.f conftest.link conftest.lnk2
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
23926 $as_echo "$gl_cv_func_symlink_works" >&6; }
23927 case "$gl_cv_func_symlink_works" in
23928 *yes) ;;
23930 REPLACE_SYMLINK=1
23932 esac
23935 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
23944 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
23952 GNULIB_SYMLINK=1
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23962 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23963 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
23964 $as_echo_n "(cached) " >&6
23965 else
23967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23968 /* end confdefs.h. */
23969 #include <sys/select.h>
23971 main ()
23973 struct timeval b;
23975 return 0;
23977 _ACEOF
23978 if ac_fn_c_try_compile "$LINENO"; then :
23979 gl_cv_header_sys_select_h_selfcontained=yes
23980 else
23981 gl_cv_header_sys_select_h_selfcontained=no
23983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23984 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23986 /* end confdefs.h. */
23987 #include <sys/select.h>
23989 main ()
23991 int memset; int bzero;
23993 return 0;
23996 _ACEOF
23997 if ac_fn_c_try_compile "$LINENO"; then :
23998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23999 /* end confdefs.h. */
24000 #include <sys/select.h>
24002 main ()
24005 #undef memset
24006 #define memset nonexistent_memset
24007 extern
24008 #ifdef __cplusplus
24010 #endif
24011 void *memset (void *, int, unsigned long);
24012 #undef bzero
24013 #define bzero nonexistent_bzero
24014 extern
24015 #ifdef __cplusplus
24017 #endif
24018 void bzero (void *, unsigned long);
24019 fd_set fds;
24020 FD_ZERO (&fds);
24023 return 0;
24026 _ACEOF
24027 if ac_fn_c_try_link "$LINENO"; then :
24029 else
24030 gl_cv_header_sys_select_h_selfcontained=no
24032 rm -f core conftest.err conftest.$ac_objext \
24033 conftest$ac_exeext conftest.$ac_ext
24036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
24041 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
24051 if test $gl_cv_have_include_next = yes; then
24052 gl_cv_next_sys_select_h='<'sys/select.h'>'
24053 else
24054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
24055 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
24056 if test "${gl_cv_next_sys_select_h+set}" = set; then :
24057 $as_echo_n "(cached) " >&6
24058 else
24060 if test $ac_cv_header_sys_select_h = yes; then
24063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24064 /* end confdefs.h. */
24065 #include <sys/select.h>
24067 _ACEOF
24068 case "$host_os" in
24069 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24070 *) gl_absname_cpp="$ac_cpp" ;;
24071 esac
24073 case "$host_os" in
24074 mingw*)
24075 gl_dirsep_regex='[/\\]'
24078 gl_dirsep_regex='\/'
24080 esac
24081 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24083 gl_header_literal_regex=`echo 'sys/select.h' \
24084 | sed -e "$gl_make_literal_regex_sed"`
24085 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24086 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24087 s|^/[^/]|//&|
24091 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24092 sed -n "$gl_absolute_header_sed"`'"'
24093 else
24094 gl_cv_next_sys_select_h='<'sys/select.h'>'
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
24100 $as_echo "$gl_cv_next_sys_select_h" >&6; }
24102 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
24104 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24105 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24106 gl_next_as_first_directive='<'sys/select.h'>'
24107 else
24108 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24109 gl_next_as_first_directive=$gl_cv_next_sys_select_h
24111 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
24116 if test $ac_cv_header_sys_select_h = yes; then
24117 HAVE_SYS_SELECT_H=1
24118 else
24119 HAVE_SYS_SELECT_H=0
24126 if test $ac_cv_header_sys_socket_h != yes; then
24127 for ac_header in winsock2.h
24128 do :
24129 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24130 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
24131 cat >>confdefs.h <<_ACEOF
24132 #define HAVE_WINSOCK2_H 1
24133 _ACEOF
24137 done
24140 if test "$ac_cv_header_winsock2_h" = yes; then
24141 HAVE_WINSOCK2_H=1
24142 UNISTD_H_HAVE_WINSOCK2_H=1
24143 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
24144 else
24145 HAVE_WINSOCK2_H=0
24167 if test $gl_cv_have_include_next = yes; then
24168 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24169 else
24170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24171 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24172 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
24173 $as_echo_n "(cached) " >&6
24174 else
24176 if test $ac_cv_header_sys_stat_h = yes; then
24179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24180 /* end confdefs.h. */
24181 #include <sys/stat.h>
24183 _ACEOF
24184 case "$host_os" in
24185 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24186 *) gl_absname_cpp="$ac_cpp" ;;
24187 esac
24189 case "$host_os" in
24190 mingw*)
24191 gl_dirsep_regex='[/\\]'
24194 gl_dirsep_regex='\/'
24196 esac
24197 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24199 gl_header_literal_regex=`echo 'sys/stat.h' \
24200 | sed -e "$gl_make_literal_regex_sed"`
24201 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24202 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24203 s|^/[^/]|//&|
24207 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24208 sed -n "$gl_absolute_header_sed"`'"'
24209 else
24210 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24216 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24218 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
24220 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24221 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24222 gl_next_as_first_directive='<'sys/stat.h'>'
24223 else
24224 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24225 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
24227 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
24239 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
24241 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
24245 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24246 #include <sys/stat.h>
24248 if test "x$ac_cv_type_nlink_t" = x""yes; then :
24250 else
24252 $as_echo "#define nlink_t int" >>confdefs.h
24273 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
24275 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
24276 ac_have_decl=1
24277 else
24278 ac_have_decl=0
24281 cat >>confdefs.h <<_ACEOF
24282 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
24283 _ACEOF
24285 if test $ac_cv_have_decl_localtime_r = no; then
24286 HAVE_DECL_LOCALTIME_R=0
24290 if test $ac_cv_func_localtime_r = yes; then
24291 HAVE_LOCALTIME_R=1
24292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
24293 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
24294 if test "${gl_cv_time_r_posix+set}" = set; then :
24295 $as_echo_n "(cached) " >&6
24296 else
24297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24298 /* end confdefs.h. */
24299 #include <time.h>
24301 main ()
24303 /* We don't need to append 'restrict's to the argument types,
24304 even though the POSIX signature has the 'restrict's,
24305 since C99 says they can't affect type compatibility. */
24306 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
24307 if (ptr) return 0;
24308 /* Check the return type is a pointer.
24309 On HP-UX 10 it is 'int'. */
24310 *localtime_r (0, 0);
24312 return 0;
24315 _ACEOF
24316 if ac_fn_c_try_compile "$LINENO"; then :
24317 gl_cv_time_r_posix=yes
24318 else
24319 gl_cv_time_r_posix=no
24321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
24325 $as_echo "$gl_cv_time_r_posix" >&6; }
24326 if test $gl_cv_time_r_posix = yes; then
24327 REPLACE_LOCALTIME_R=0
24328 else
24329 REPLACE_LOCALTIME_R=1
24331 else
24332 HAVE_LOCALTIME_R=0
24335 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
24344 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
24355 GNULIB_TIME_R=1
24366 LIB_TIMER_TIME=
24368 gl_saved_libs=$LIBS
24369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
24370 $as_echo_n "checking for library containing timer_settime... " >&6; }
24371 if test "${ac_cv_search_timer_settime+set}" = set; then :
24372 $as_echo_n "(cached) " >&6
24373 else
24374 ac_func_search_save_LIBS=$LIBS
24375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24376 /* end confdefs.h. */
24378 /* Override any GCC internal prototype to avoid an error.
24379 Use char because int might match the return type of a GCC
24380 builtin and then its argument prototype would still apply. */
24381 #ifdef __cplusplus
24382 extern "C"
24383 #endif
24384 char timer_settime ();
24386 main ()
24388 return timer_settime ();
24390 return 0;
24392 _ACEOF
24393 for ac_lib in '' rt posix4; do
24394 if test -z "$ac_lib"; then
24395 ac_res="none required"
24396 else
24397 ac_res=-l$ac_lib
24398 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24400 if ac_fn_c_try_link "$LINENO"; then :
24401 ac_cv_search_timer_settime=$ac_res
24403 rm -f core conftest.err conftest.$ac_objext \
24404 conftest$ac_exeext
24405 if test "${ac_cv_search_timer_settime+set}" = set; then :
24406 break
24408 done
24409 if test "${ac_cv_search_timer_settime+set}" = set; then :
24411 else
24412 ac_cv_search_timer_settime=no
24414 rm conftest.$ac_ext
24415 LIBS=$ac_func_search_save_LIBS
24417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
24418 $as_echo "$ac_cv_search_timer_settime" >&6; }
24419 ac_res=$ac_cv_search_timer_settime
24420 if test "$ac_res" != no; then :
24421 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24422 test "$ac_cv_search_timer_settime" = "none required" ||
24423 LIB_TIMER_TIME=$ac_cv_search_timer_settime
24426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24427 /* end confdefs.h. */
24429 #include <features.h>
24430 #ifdef __GNU_LIBRARY__
24431 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
24432 && !defined __UCLIBC__
24433 Thread emulation available
24434 #endif
24435 #endif
24437 _ACEOF
24438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24439 $EGREP "Thread" >/dev/null 2>&1; then :
24440 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
24442 rm -f conftest*
24444 for ac_func in timer_settime
24445 do :
24446 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
24447 if test "x$ac_cv_func_timer_settime" = x""yes; then :
24448 cat >>confdefs.h <<_ACEOF
24449 #define HAVE_TIMER_SETTIME 1
24450 _ACEOF
24453 done
24455 LIBS=$gl_saved_libs
24470 if test $gl_cv_have_include_next = yes; then
24471 gl_cv_next_unistd_h='<'unistd.h'>'
24472 else
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24474 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24475 if test "${gl_cv_next_unistd_h+set}" = set; then :
24476 $as_echo_n "(cached) " >&6
24477 else
24479 if test $ac_cv_header_unistd_h = yes; then
24482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24483 /* end confdefs.h. */
24484 #include <unistd.h>
24486 _ACEOF
24487 case "$host_os" in
24488 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24489 *) gl_absname_cpp="$ac_cpp" ;;
24490 esac
24492 case "$host_os" in
24493 mingw*)
24494 gl_dirsep_regex='[/\\]'
24497 gl_dirsep_regex='\/'
24499 esac
24500 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24502 gl_header_literal_regex=`echo 'unistd.h' \
24503 | sed -e "$gl_make_literal_regex_sed"`
24504 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24505 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24506 s|^/[^/]|//&|
24510 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24511 sed -n "$gl_absolute_header_sed"`'"'
24512 else
24513 gl_cv_next_unistd_h='<'unistd.h'>'
24518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
24519 $as_echo "$gl_cv_next_unistd_h" >&6; }
24521 NEXT_UNISTD_H=$gl_cv_next_unistd_h
24523 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24524 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24525 gl_next_as_first_directive='<'unistd.h'>'
24526 else
24527 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24528 gl_next_as_first_directive=$gl_cv_next_unistd_h
24530 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
24535 if test $ac_cv_header_unistd_h = yes; then
24536 HAVE_UNISTD_H=1
24537 else
24538 HAVE_UNISTD_H=0
24551 if test $ac_cv_have_decl_unsetenv = no; then
24552 HAVE_DECL_UNSETENV=0
24554 for ac_func in unsetenv
24555 do :
24556 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
24557 if test "x$ac_cv_func_unsetenv" = x""yes; then :
24558 cat >>confdefs.h <<_ACEOF
24559 #define HAVE_UNSETENV 1
24560 _ACEOF
24563 done
24565 if test $ac_cv_func_unsetenv = no; then
24566 HAVE_UNSETENV=0
24567 else
24568 HAVE_UNSETENV=1
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
24570 $as_echo_n "checking for unsetenv() return type... " >&6; }
24571 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
24572 $as_echo_n "(cached) " >&6
24573 else
24574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24575 /* end confdefs.h. */
24577 #undef _BSD
24578 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
24579 #include <stdlib.h>
24580 extern
24581 #ifdef __cplusplus
24583 #endif
24584 int unsetenv (const char *name);
24587 main ()
24591 return 0;
24593 _ACEOF
24594 if ac_fn_c_try_compile "$LINENO"; then :
24595 gt_cv_func_unsetenv_ret='int'
24596 else
24597 gt_cv_func_unsetenv_ret='void'
24599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
24602 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
24603 if test $gt_cv_func_unsetenv_ret = 'void'; then
24605 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
24607 REPLACE_UNSETENV=1
24610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
24611 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
24612 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
24613 $as_echo_n "(cached) " >&6
24614 else
24615 if test "$cross_compiling" = yes; then :
24616 case "$host_os" in
24617 # Guess yes on glibc systems.
24618 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
24619 # If we don't know, assume the worst.
24620 *) gl_cv_func_unsetenv_works="guessing no" ;;
24621 esac
24623 else
24624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24625 /* end confdefs.h. */
24627 #include <stdlib.h>
24628 #include <errno.h>
24629 extern char **environ;
24632 main ()
24635 char entry1[] = "a=1";
24636 char entry2[] = "b=2";
24637 char *env[] = { entry1, entry2, NULL };
24638 if (putenv ((char *) "a=1")) return 1;
24639 if (putenv (entry2)) return 2;
24640 entry2[0] = 'a';
24641 unsetenv ("a");
24642 if (getenv ("a")) return 3;
24643 if (!unsetenv ("") || errno != EINVAL) return 4;
24644 entry2[0] = 'b';
24645 environ = env;
24646 if (!getenv ("a")) return 5;
24647 entry2[0] = 'a';
24648 unsetenv ("a");
24649 if (getenv ("a")) return 6;
24652 return 0;
24654 _ACEOF
24655 if ac_fn_c_try_run "$LINENO"; then :
24656 gl_cv_func_unsetenv_works=yes
24657 else
24658 gl_cv_func_unsetenv_works=no
24660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24661 conftest.$ac_objext conftest.beam conftest.$ac_ext
24665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
24666 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
24667 case "$gl_cv_func_unsetenv_works" in
24668 *yes) ;;
24670 REPLACE_UNSETENV=1
24672 esac
24675 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
24684 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
24696 GNULIB_UNSETENV=1
24708 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
24710 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
24711 if test "${gl_cv_func_futimesat_works+set}" = set; then :
24712 $as_echo_n "(cached) " >&6
24713 else
24714 touch conftest.file
24715 if test "$cross_compiling" = yes; then :
24716 case "$host_os" in
24717 # Guess yes on glibc systems.
24718 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
24719 # If we don't know, assume the worst.
24720 *) gl_cv_func_futimesat_works="guessing no" ;;
24721 esac
24723 else
24724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24725 /* end confdefs.h. */
24727 #include <stddef.h>
24728 #include <sys/times.h>
24729 #include <fcntl.h>
24732 main ()
24734 int fd = open ("conftest.file", O_RDWR);
24735 if (fd < 0) return 1;
24736 if (futimesat (fd, NULL, NULL)) return 2;
24739 return 0;
24741 _ACEOF
24742 if ac_fn_c_try_run "$LINENO"; then :
24743 gl_cv_func_futimesat_works=yes
24744 else
24745 gl_cv_func_futimesat_works=no
24747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24748 conftest.$ac_objext conftest.beam conftest.$ac_ext
24751 rm -f conftest.file
24753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
24754 $as_echo "$gl_cv_func_futimesat_works" >&6; }
24755 case "$gl_cv_func_futimesat_works" in
24756 *yes) ;;
24759 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
24762 esac
24765 gl_gnulib_enabled_dosname=false
24766 gl_gnulib_enabled_euidaccess=false
24767 gl_gnulib_enabled_getgroups=false
24768 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
24769 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false
24770 gl_gnulib_enabled_pathmax=false
24771 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false
24772 gl_gnulib_enabled_stat=false
24773 gl_gnulib_enabled_strtoll=false
24774 gl_gnulib_enabled_strtoull=false
24775 gl_gnulib_enabled_verify=false
24776 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false
24777 func_gl_gnulib_m4code_dosname ()
24779 if ! $gl_gnulib_enabled_dosname; then
24780 gl_gnulib_enabled_dosname=true
24783 func_gl_gnulib_m4code_euidaccess ()
24785 if ! $gl_gnulib_enabled_euidaccess; then
24791 for ac_func in euidaccess
24792 do :
24793 ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
24794 if test "x$ac_cv_func_euidaccess" = x""yes; then :
24795 cat >>confdefs.h <<_ACEOF
24796 #define HAVE_EUIDACCESS 1
24797 _ACEOF
24800 done
24802 if test $ac_cv_func_euidaccess = no; then
24803 HAVE_EUIDACCESS=0
24806 if test $HAVE_EUIDACCESS = 0; then
24815 gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
24819 for ac_header in libgen.h
24820 do :
24821 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
24822 if test "x$ac_cv_header_libgen_h" = x""yes; then :
24823 cat >>confdefs.h <<_ACEOF
24824 #define HAVE_LIBGEN_H 1
24825 _ACEOF
24829 done
24832 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
24833 if test "x$ac_cv_func_getgroups" = x""yes; then :
24838 # If we don't yet have getgroups, see if it's in -lbsd.
24839 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24840 ac_save_LIBS=$LIBS
24841 if test $ac_cv_func_getgroups = no; then
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
24843 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
24844 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
24845 $as_echo_n "(cached) " >&6
24846 else
24847 ac_check_lib_save_LIBS=$LIBS
24848 LIBS="-lbsd $LIBS"
24849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24850 /* end confdefs.h. */
24852 /* Override any GCC internal prototype to avoid an error.
24853 Use char because int might match the return type of a GCC
24854 builtin and then its argument prototype would still apply. */
24855 #ifdef __cplusplus
24856 extern "C"
24857 #endif
24858 char getgroups ();
24860 main ()
24862 return getgroups ();
24864 return 0;
24866 _ACEOF
24867 if ac_fn_c_try_link "$LINENO"; then :
24868 ac_cv_lib_bsd_getgroups=yes
24869 else
24870 ac_cv_lib_bsd_getgroups=no
24872 rm -f core conftest.err conftest.$ac_objext \
24873 conftest$ac_exeext conftest.$ac_ext
24874 LIBS=$ac_check_lib_save_LIBS
24876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
24877 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
24878 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
24879 GETGROUPS_LIB=-lbsd
24884 # Run the program to test the functionality of the system-supplied
24885 # getgroups function only if there is such a function.
24886 if test $ac_cv_func_getgroups = yes; then
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
24888 $as_echo_n "checking for working getgroups... " >&6; }
24889 if test "${ac_cv_func_getgroups_works+set}" = set; then :
24890 $as_echo_n "(cached) " >&6
24891 else
24892 if test "$cross_compiling" = yes; then :
24893 case "$host_os" in # ((
24894 # Guess yes on glibc systems.
24895 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
24896 # If we don't know, assume the worst.
24897 *) ac_cv_func_getgroups_works="guessing no" ;;
24898 esac
24900 else
24901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24902 /* end confdefs.h. */
24903 $ac_includes_default
24905 main ()
24907 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
24908 return getgroups (0, 0) == -1;
24910 return 0;
24913 _ACEOF
24914 if ac_fn_c_try_run "$LINENO"; then :
24915 ac_cv_func_getgroups_works=yes
24916 else
24917 ac_cv_func_getgroups_works=no
24919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24920 conftest.$ac_objext conftest.beam conftest.$ac_ext
24925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
24926 $as_echo "$ac_cv_func_getgroups_works" >&6; }
24927 else
24928 ac_cv_func_getgroups_works=no
24930 case "$ac_cv_func_getgroups_works" in
24931 *yes)
24933 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
24936 esac
24937 LIBS=$ac_save_LIBS
24940 # Solaris 9 and 10 need -lgen to get the eaccess function.
24941 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
24942 # programs in the package would end up linked with that potentially-shared
24943 # library, inducing unnecessary run-time overhead.
24944 LIB_EACCESS=
24946 gl_saved_libs=$LIBS
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
24948 $as_echo_n "checking for library containing eaccess... " >&6; }
24949 if test "${ac_cv_search_eaccess+set}" = set; then :
24950 $as_echo_n "(cached) " >&6
24951 else
24952 ac_func_search_save_LIBS=$LIBS
24953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24954 /* end confdefs.h. */
24956 /* Override any GCC internal prototype to avoid an error.
24957 Use char because int might match the return type of a GCC
24958 builtin and then its argument prototype would still apply. */
24959 #ifdef __cplusplus
24960 extern "C"
24961 #endif
24962 char eaccess ();
24964 main ()
24966 return eaccess ();
24968 return 0;
24970 _ACEOF
24971 for ac_lib in '' gen; do
24972 if test -z "$ac_lib"; then
24973 ac_res="none required"
24974 else
24975 ac_res=-l$ac_lib
24976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24978 if ac_fn_c_try_link "$LINENO"; then :
24979 ac_cv_search_eaccess=$ac_res
24981 rm -f core conftest.err conftest.$ac_objext \
24982 conftest$ac_exeext
24983 if test "${ac_cv_search_eaccess+set}" = set; then :
24984 break
24986 done
24987 if test "${ac_cv_search_eaccess+set}" = set; then :
24989 else
24990 ac_cv_search_eaccess=no
24992 rm conftest.$ac_ext
24993 LIBS=$ac_func_search_save_LIBS
24995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
24996 $as_echo "$ac_cv_search_eaccess" >&6; }
24997 ac_res=$ac_cv_search_eaccess
24998 if test "$ac_res" != no; then :
24999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25000 test "$ac_cv_search_eaccess" = "none required" ||
25001 LIB_EACCESS=$ac_cv_search_eaccess
25004 for ac_func in eaccess
25005 do :
25006 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
25007 if test "x$ac_cv_func_eaccess" = x""yes; then :
25008 cat >>confdefs.h <<_ACEOF
25009 #define HAVE_EACCESS 1
25010 _ACEOF
25013 done
25015 LIBS=$gl_saved_libs
25023 GNULIB_EUIDACCESS=1
25029 gl_gnulib_enabled_euidaccess=true
25030 if test $HAVE_EUIDACCESS = 0; then
25031 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
25033 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
25034 if test $HAVE_EUIDACCESS = 0; then
25035 func_gl_gnulib_m4code_stat
25039 func_gl_gnulib_m4code_getgroups ()
25041 if ! $gl_gnulib_enabled_getgroups; then
25047 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
25048 if test "x$ac_cv_func_getgroups" = x""yes; then :
25053 # If we don't yet have getgroups, see if it's in -lbsd.
25054 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25055 ac_save_LIBS=$LIBS
25056 if test $ac_cv_func_getgroups = no; then
25057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
25058 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
25059 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
25060 $as_echo_n "(cached) " >&6
25061 else
25062 ac_check_lib_save_LIBS=$LIBS
25063 LIBS="-lbsd $LIBS"
25064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25065 /* end confdefs.h. */
25067 /* Override any GCC internal prototype to avoid an error.
25068 Use char because int might match the return type of a GCC
25069 builtin and then its argument prototype would still apply. */
25070 #ifdef __cplusplus
25071 extern "C"
25072 #endif
25073 char getgroups ();
25075 main ()
25077 return getgroups ();
25079 return 0;
25081 _ACEOF
25082 if ac_fn_c_try_link "$LINENO"; then :
25083 ac_cv_lib_bsd_getgroups=yes
25084 else
25085 ac_cv_lib_bsd_getgroups=no
25087 rm -f core conftest.err conftest.$ac_objext \
25088 conftest$ac_exeext conftest.$ac_ext
25089 LIBS=$ac_check_lib_save_LIBS
25091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
25092 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
25093 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
25094 GETGROUPS_LIB=-lbsd
25099 # Run the program to test the functionality of the system-supplied
25100 # getgroups function only if there is such a function.
25101 if test $ac_cv_func_getgroups = yes; then
25102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
25103 $as_echo_n "checking for working getgroups... " >&6; }
25104 if test "${ac_cv_func_getgroups_works+set}" = set; then :
25105 $as_echo_n "(cached) " >&6
25106 else
25107 if test "$cross_compiling" = yes; then :
25108 case "$host_os" in # ((
25109 # Guess yes on glibc systems.
25110 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
25111 # If we don't know, assume the worst.
25112 *) ac_cv_func_getgroups_works="guessing no" ;;
25113 esac
25115 else
25116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25117 /* end confdefs.h. */
25118 $ac_includes_default
25120 main ()
25122 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25123 return getgroups (0, 0) == -1;
25125 return 0;
25128 _ACEOF
25129 if ac_fn_c_try_run "$LINENO"; then :
25130 ac_cv_func_getgroups_works=yes
25131 else
25132 ac_cv_func_getgroups_works=no
25134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25135 conftest.$ac_objext conftest.beam conftest.$ac_ext
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
25141 $as_echo "$ac_cv_func_getgroups_works" >&6; }
25142 else
25143 ac_cv_func_getgroups_works=no
25145 case "$ac_cv_func_getgroups_works" in
25146 *yes)
25148 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
25151 esac
25152 LIBS=$ac_save_LIBS
25154 if test $ac_cv_func_getgroups != yes; then
25155 HAVE_GETGROUPS=0
25156 else
25157 if test "$ac_cv_type_getgroups" != gid_t \
25158 || { case "$ac_cv_func_getgroups_works" in
25159 *yes) false;;
25160 *) true;;
25161 esac
25162 }; then
25163 REPLACE_GETGROUPS=1
25165 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
25167 else
25168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
25169 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
25170 if test "${gl_cv_func_getgroups_works+set}" = set; then :
25171 $as_echo_n "(cached) " >&6
25172 else
25173 if test "$cross_compiling" = yes; then :
25174 case "$host_os" in
25175 # Guess yes on glibc systems.
25176 *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
25177 # If we don't know, assume the worst.
25178 *) gl_cv_func_getgroups_works="guessing no" ;;
25179 esac
25181 else
25182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25183 /* end confdefs.h. */
25184 $ac_includes_default
25186 main ()
25188 int size = getgroups (0, 0);
25189 gid_t *list = malloc (size * sizeof *list);
25190 return getgroups (-1, list) != -1;
25192 return 0;
25194 _ACEOF
25195 if ac_fn_c_try_run "$LINENO"; then :
25196 gl_cv_func_getgroups_works=yes
25197 else
25198 gl_cv_func_getgroups_works=no
25200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25201 conftest.$ac_objext conftest.beam conftest.$ac_ext
25205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
25206 $as_echo "$gl_cv_func_getgroups_works" >&6; }
25207 case "$gl_cv_func_getgroups_works" in
25208 *yes) ;;
25209 *) REPLACE_GETGROUPS=1 ;;
25210 esac
25213 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
25215 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
25224 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
25232 GNULIB_GETGROUPS=1
25238 gl_gnulib_enabled_getgroups=true
25241 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
25243 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
25246 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
25249 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 ()
25251 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
25257 ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
25258 if test "x$ac_cv_func_group_member" = x""yes; then :
25260 else
25262 HAVE_GROUP_MEMBER=0
25267 if test $HAVE_GROUP_MEMBER = 0; then
25276 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
25287 GNULIB_GROUP_MEMBER=1
25293 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true
25294 if test $HAVE_GROUP_MEMBER = 0; then
25295 func_gl_gnulib_m4code_getgroups
25297 if test $HAVE_GROUP_MEMBER = 0; then
25298 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
25302 func_gl_gnulib_m4code_pathmax ()
25304 if ! $gl_gnulib_enabled_pathmax; then
25308 gl_gnulib_enabled_pathmax=true
25311 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c ()
25313 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
25314 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true
25317 func_gl_gnulib_m4code_stat ()
25319 if ! $gl_gnulib_enabled_stat; then
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
25324 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
25325 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
25326 $as_echo_n "(cached) " >&6
25327 else
25328 if test "$cross_compiling" = yes; then :
25329 case $host_os in
25330 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
25331 *) gl_cv_func_stat_dir_slash="guessing yes";;
25332 esac
25333 else
25334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25335 /* end confdefs.h. */
25336 #include <sys/stat.h>
25339 main ()
25341 struct stat st; return stat (".", &st) != stat ("./", &st);
25343 return 0;
25345 _ACEOF
25346 if ac_fn_c_try_run "$LINENO"; then :
25347 gl_cv_func_stat_dir_slash=yes
25348 else
25349 gl_cv_func_stat_dir_slash=no
25351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25352 conftest.$ac_objext conftest.beam conftest.$ac_ext
25356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
25357 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
25359 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
25360 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
25361 $as_echo_n "(cached) " >&6
25362 else
25363 touch conftest.tmp
25364 # Assume that if we have lstat, we can also check symlinks.
25365 if test $ac_cv_func_lstat = yes; then
25366 ln -s conftest.tmp conftest.lnk
25368 if test "$cross_compiling" = yes; then :
25369 case "$host_os" in
25370 # Guess yes on glibc systems.
25371 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
25372 # If we don't know, assume the worst.
25373 *) gl_cv_func_stat_file_slash="guessing no" ;;
25374 esac
25376 else
25377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25378 /* end confdefs.h. */
25379 #include <sys/stat.h>
25382 main ()
25384 int result = 0;
25385 struct stat st;
25386 if (!stat ("conftest.tmp/", &st))
25387 result |= 1;
25388 #if HAVE_LSTAT
25389 if (!stat ("conftest.lnk/", &st))
25390 result |= 2;
25391 #endif
25392 return result;
25395 return 0;
25397 _ACEOF
25398 if ac_fn_c_try_run "$LINENO"; then :
25399 gl_cv_func_stat_file_slash=yes
25400 else
25401 gl_cv_func_stat_file_slash=no
25403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25404 conftest.$ac_objext conftest.beam conftest.$ac_ext
25407 rm -f conftest.tmp conftest.lnk
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
25410 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
25411 case $gl_cv_func_stat_dir_slash in
25412 *no) REPLACE_STAT=1
25414 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
25416 esac
25417 case $gl_cv_func_stat_file_slash in
25418 *no) REPLACE_STAT=1
25420 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
25422 esac
25424 if test $REPLACE_STAT = 1; then
25433 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
25442 GNULIB_STAT=1
25448 gl_gnulib_enabled_stat=true
25449 if test $REPLACE_STAT = 1; then
25450 func_gl_gnulib_m4code_dosname
25452 if test $REPLACE_STAT = 1; then
25453 func_gl_gnulib_m4code_pathmax
25455 if test $REPLACE_STAT = 1; then
25456 func_gl_gnulib_m4code_verify
25460 func_gl_gnulib_m4code_strtoll ()
25462 if ! $gl_gnulib_enabled_strtoll; then
25466 if test "$ac_cv_type_long_long_int" = yes; then
25467 for ac_func in strtoll
25468 do :
25469 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
25470 if test "x$ac_cv_func_strtoll" = x""yes; then :
25471 cat >>confdefs.h <<_ACEOF
25472 #define HAVE_STRTOLL 1
25473 _ACEOF
25476 done
25478 if test $ac_cv_func_strtoll = no; then
25479 HAVE_STRTOLL=0
25483 if test $HAVE_STRTOLL = 0; then
25492 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
25503 GNULIB_STRTOLL=1
25509 gl_gnulib_enabled_strtoll=true
25512 func_gl_gnulib_m4code_strtoull ()
25514 if ! $gl_gnulib_enabled_strtoull; then
25518 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
25519 for ac_func in strtoull
25520 do :
25521 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
25522 if test "x$ac_cv_func_strtoull" = x""yes; then :
25523 cat >>confdefs.h <<_ACEOF
25524 #define HAVE_STRTOULL 1
25525 _ACEOF
25528 done
25530 if test $ac_cv_func_strtoull = no; then
25531 HAVE_STRTOULL=0
25535 if test $HAVE_STRTOULL = 0; then
25544 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
25555 GNULIB_STRTOULL=1
25561 gl_gnulib_enabled_strtoull=true
25564 func_gl_gnulib_m4code_verify ()
25566 if ! $gl_gnulib_enabled_verify; then
25567 gl_gnulib_enabled_verify=true
25570 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec ()
25572 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
25573 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true
25576 if test $HAVE_FACCESSAT = 0; then
25577 func_gl_gnulib_m4code_dosname
25579 if test $HAVE_FACCESSAT = 0; then
25580 func_gl_gnulib_m4code_euidaccess
25582 if test $REPLACE_GETOPT = 1; then
25583 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
25585 if test $REPLACE_LSTAT = 1; then
25586 func_gl_gnulib_m4code_dosname
25588 if test $REPLACE_LSTAT = 1; then
25589 func_gl_gnulib_m4code_stat
25591 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
25592 func_gl_gnulib_m4code_stat
25594 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
25595 func_gl_gnulib_m4code_strtoll
25597 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
25598 func_gl_gnulib_m4code_verify
25600 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
25601 func_gl_gnulib_m4code_strtoull
25603 if test $ac_cv_func_strtoumax = no; then
25604 func_gl_gnulib_m4code_verify
25607 if $gl_gnulib_enabled_dosname; then
25608 gl_GNULIB_ENABLED_dosname_TRUE=
25609 gl_GNULIB_ENABLED_dosname_FALSE='#'
25610 else
25611 gl_GNULIB_ENABLED_dosname_TRUE='#'
25612 gl_GNULIB_ENABLED_dosname_FALSE=
25615 if $gl_gnulib_enabled_euidaccess; then
25616 gl_GNULIB_ENABLED_euidaccess_TRUE=
25617 gl_GNULIB_ENABLED_euidaccess_FALSE='#'
25618 else
25619 gl_GNULIB_ENABLED_euidaccess_TRUE='#'
25620 gl_GNULIB_ENABLED_euidaccess_FALSE=
25623 if $gl_gnulib_enabled_getgroups; then
25624 gl_GNULIB_ENABLED_getgroups_TRUE=
25625 gl_GNULIB_ENABLED_getgroups_FALSE='#'
25626 else
25627 gl_GNULIB_ENABLED_getgroups_TRUE='#'
25628 gl_GNULIB_ENABLED_getgroups_FALSE=
25631 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
25632 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
25633 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
25634 else
25635 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
25636 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
25639 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
25640 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE=
25641 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE='#'
25642 else
25643 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE='#'
25644 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE=
25647 if $gl_gnulib_enabled_pathmax; then
25648 gl_GNULIB_ENABLED_pathmax_TRUE=
25649 gl_GNULIB_ENABLED_pathmax_FALSE='#'
25650 else
25651 gl_GNULIB_ENABLED_pathmax_TRUE='#'
25652 gl_GNULIB_ENABLED_pathmax_FALSE=
25655 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
25656 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE=
25657 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE='#'
25658 else
25659 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE='#'
25660 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE=
25663 if $gl_gnulib_enabled_stat; then
25664 gl_GNULIB_ENABLED_stat_TRUE=
25665 gl_GNULIB_ENABLED_stat_FALSE='#'
25666 else
25667 gl_GNULIB_ENABLED_stat_TRUE='#'
25668 gl_GNULIB_ENABLED_stat_FALSE=
25671 if $gl_gnulib_enabled_strtoll; then
25672 gl_GNULIB_ENABLED_strtoll_TRUE=
25673 gl_GNULIB_ENABLED_strtoll_FALSE='#'
25674 else
25675 gl_GNULIB_ENABLED_strtoll_TRUE='#'
25676 gl_GNULIB_ENABLED_strtoll_FALSE=
25679 if $gl_gnulib_enabled_strtoull; then
25680 gl_GNULIB_ENABLED_strtoull_TRUE=
25681 gl_GNULIB_ENABLED_strtoull_FALSE='#'
25682 else
25683 gl_GNULIB_ENABLED_strtoull_TRUE='#'
25684 gl_GNULIB_ENABLED_strtoull_FALSE=
25687 if $gl_gnulib_enabled_verify; then
25688 gl_GNULIB_ENABLED_verify_TRUE=
25689 gl_GNULIB_ENABLED_verify_FALSE='#'
25690 else
25691 gl_GNULIB_ENABLED_verify_TRUE='#'
25692 gl_GNULIB_ENABLED_verify_FALSE=
25695 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
25696 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE=
25697 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#'
25698 else
25699 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#'
25700 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE=
25703 # End of code from modules
25713 gltests_libdeps=
25714 gltests_ltlibdeps=
25724 gl_source_base='tests'
25725 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
25727 gl_module_indicator_condition=$gltests_WITNESS
25738 LIBGNU_LIBDEPS="$gl_libdeps"
25740 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
25743 CFLAGS=$SAVE_CFLAGS
25744 LIBS=$SAVE_LIBS
25746 case "$opsys" in
25747 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
25749 darwin)
25750 ## The -headerpad option tells ld (see man page) to leave room at the
25751 ## end of the header for adding load commands. Needed for dumping.
25752 ## 0x690 is the total size of 30 segment load commands (at 56
25753 ## each); under Cocoa 31 commands are required.
25754 if test "$HAVE_NS" = "yes"; then
25755 libs_nsgui="-framework AppKit"
25756 headerpad_extra=6C8
25757 else
25758 libs_nsgui=
25759 headerpad_extra=690
25761 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
25763 ## This is here because src/Makefile.in did some extra fiddling around
25764 ## with LD_SWITCH_SYSTEM. The cpp logic was:
25765 ## #ifndef LD_SWITCH_SYSTEM
25766 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
25767 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
25768 ## not using gcc, darwin.
25769 ## Because this was done in src/Makefile.in, the resulting part of
25770 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
25771 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
25772 ## rather than LD_SWITCH_SYSTEM.
25773 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
25774 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
25777 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
25778 ## find X at run-time.
25779 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
25780 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
25781 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
25782 ## had different values in configure (in ac_link) and src/Makefile.in.
25783 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
25784 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
25786 *) LD_SWITCH_SYSTEM_TEMACS= ;;
25787 esac
25789 if test "$NS_IMPL_GNUSTEP" = "yes"; then
25790 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
25796 LD_FIRSTFLAG=
25797 ORDINARY_LINK=
25798 case "$opsys" in
25799 ## gnu: GNU needs its own crt0.
25800 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
25802 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
25803 ## library search parth, i.e. it won't search /usr/lib for libc and
25804 ## friends. Using -nostartfiles instead avoids this problem, and
25805 ## will also work on earlier NetBSD releases.
25806 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
25808 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
25809 ## MkLinux/LinuxPPC needs this.
25810 ## s390x-* only supports opsys = gnu-linux so it can be added here.
25811 gnu-*)
25812 case "$canonical" in
25813 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
25814 esac
25816 esac
25819 if test "x$ORDINARY_LINK" = "xyes"; then
25821 LD_FIRSTFLAG=""
25823 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
25826 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
25827 ## freebsd, gnu-* not on powerpc*|s390x*.
25828 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
25830 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
25831 ## places that are difficult to figure out at make time. Fortunately,
25832 ## these same versions allow you to pass arbitrary flags on to the
25833 ## linker, so there is no reason not to use it as a linker.
25835 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
25836 ## searching for libraries in its internal directories, so we have to
25837 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
25838 LD_FIRSTFLAG="-nostdlib"
25841 ## FIXME? What setting of EDIT_LDFLAGS should this have?
25842 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
25847 ## FIXME? The logic here is not precisely the same as that above.
25848 ## There is no check here for a pre-defined LD_FIRSTFLAG.
25849 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
25850 LIB_GCC=
25851 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
25853 case "$opsys" in
25854 freebsd|netbsd|openbsd) LIB_GCC= ;;
25856 gnu-*)
25857 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
25858 ## build on ARM EABI under GNU/Linux. (Bug#5518)
25859 case $host_cpu in
25860 arm*)
25861 LIB_GCC="-lgcc_s"
25864 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
25865 ## immediately undefine it again and redefine it to empty.
25866 ## Was the C_SWITCH_X_SITE part really necessary?
25867 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
25868 LIB_GCC=
25870 esac
25873 ## Ask GCC where to find libgcc.a.
25874 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
25875 esac
25878 ## Common for all window systems
25879 if test "$window_system" != "none"; then
25881 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
25883 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
25890 #### Report on what we decided to do.
25891 #### Report GTK as a toolkit, even if it doesn't use Xt.
25892 #### It makes printing result more understandable as using GTK sets
25893 #### toolkit_scroll_bars to yes by default.
25894 if test "${HAVE_GTK}" = "yes"; then
25895 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
25898 echo "
25899 Configured for \`${canonical}'.
25901 Where should the build process find the source code? ${srcdir}
25902 What compiler should emacs be built with? ${CC} ${CFLAGS}
25903 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25904 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25905 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25906 What window system should Emacs use? ${window_system}
25907 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25909 if test -n "${x_includes}"; then
25910 echo " Where do we find X Windows header files? ${x_includes}"
25911 else
25912 echo " Where do we find X Windows header files? Standard dirs"
25914 if test -n "${x_libraries}"; then
25915 echo " Where do we find X Windows libraries? ${x_libraries}"
25916 else
25917 echo " Where do we find X Windows libraries? Standard dirs"
25920 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25921 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25922 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25923 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25924 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
25925 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25926 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25927 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
25929 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25930 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25931 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
25932 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
25933 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
25934 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
25935 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
25937 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25938 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25939 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25940 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25942 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25943 echo
25945 if test -n "${EMACSDATA}"; then
25946 echo " Environment variable EMACSDATA set to: $EMACSDATA"
25948 if test -n "${EMACSDOC}"; then
25949 echo " Environment variable EMACSDOC set to: $EMACSDOC"
25952 echo
25954 if test "$HAVE_NS" = "yes"; then
25955 echo
25956 echo "You must run \"${MAKE-make} install\" in order to test the built application.
25957 The installed application will go to nextstep/Emacs.app and can be
25958 run or moved from there."
25959 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25960 echo "The application will be fully self-contained."
25961 else
25962 echo "The lisp resources for the application will be installed under ${prefix}.
25963 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
25964 to run if these resources are not installed."
25966 echo
25969 if test "${opsys}" = "cygwin"; then
25970 case `uname -r` in
25971 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
25972 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
25973 echo
25975 esac
25978 # Remove any trailing slashes in these variables.
25979 test "${prefix}" != NONE &&
25980 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25981 test "${exec_prefix}" != NONE &&
25982 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25984 if test "$HAVE_NS" = "yes"; then
25985 if test "$NS_IMPL_GNUSTEP" = yes; then
25986 ac_config_files="$ac_config_files nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:nextstep/templates/Info-gnustep.plist.in nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in"
25988 else
25989 ac_config_files="$ac_config_files nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:nextstep/templates/InfoPlist.strings.in"
25994 SUBDIR_MAKEFILES="lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile nextstep/Makefile"
25996 ac_config_files="$ac_config_files Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile nextstep/Makefile"
25999 opt_makefile=test/automated/Makefile
26001 if test -f "$srcdir/$opt_makefile.in"; then
26002 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
26003 ac_config_files="$ac_config_files test/automated/Makefile"
26008 opt_makefile=admin/unidata/Makefile
26010 if test -f "$srcdir/$opt_makefile.in"; then
26011 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
26012 ac_config_files="$ac_config_files admin/unidata/Makefile"
26017 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
26021 ac_config_commands="$ac_config_commands mkdirs"
26024 ac_config_commands="$ac_config_commands epaths"
26027 ac_config_commands="$ac_config_commands gdbinit"
26030 cat >confcache <<\_ACEOF
26031 # This file is a shell script that caches the results of configure
26032 # tests run on this system so they can be shared between configure
26033 # scripts and configure runs, see configure's option --config-cache.
26034 # It is not useful on other systems. If it contains results you don't
26035 # want to keep, you may remove or edit it.
26037 # config.status only pays attention to the cache file if you give it
26038 # the --recheck option to rerun configure.
26040 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26041 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26042 # following values.
26044 _ACEOF
26046 # The following way of writing the cache mishandles newlines in values,
26047 # but we know of no workaround that is simple, portable, and efficient.
26048 # So, we kill variables containing newlines.
26049 # Ultrix sh set writes to stderr and can't be redirected directly,
26050 # and sets the high bit in the cache file unless we assign to the vars.
26052 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26053 eval ac_val=\$$ac_var
26054 case $ac_val in #(
26055 *${as_nl}*)
26056 case $ac_var in #(
26057 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26058 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26059 esac
26060 case $ac_var in #(
26061 _ | IFS | as_nl) ;; #(
26062 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26063 *) { eval $ac_var=; unset $ac_var;} ;;
26064 esac ;;
26065 esac
26066 done
26068 (set) 2>&1 |
26069 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26070 *${as_nl}ac_space=\ *)
26071 # `set' does not quote correctly, so add quotes: double-quote
26072 # substitution turns \\\\ into \\, and sed turns \\ into \.
26073 sed -n \
26074 "s/'/'\\\\''/g;
26075 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26076 ;; #(
26078 # `set' quotes correctly as required by POSIX, so do not add quotes.
26079 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26081 esac |
26082 sort
26084 sed '
26085 /^ac_cv_env_/b end
26086 t clear
26087 :clear
26088 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26089 t end
26090 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26091 :end' >>confcache
26092 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26093 if test -w "$cache_file"; then
26094 test "x$cache_file" != "x/dev/null" &&
26095 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26096 $as_echo "$as_me: updating cache $cache_file" >&6;}
26097 cat confcache >$cache_file
26098 else
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26100 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26103 rm -f confcache
26105 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26106 # Let make expand exec_prefix.
26107 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26109 DEFS=-DHAVE_CONFIG_H
26111 ac_libobjs=
26112 ac_ltlibobjs=
26113 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26114 # 1. Remove the extension, and $U if already installed.
26115 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26116 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26117 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26118 # will be set to the directory where LIBOBJS objects are built.
26119 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26120 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26121 done
26122 LIBOBJS=$ac_libobjs
26124 LTLIBOBJS=$ac_ltlibobjs
26127 if test -n "$EXEEXT"; then
26128 am__EXEEXT_TRUE=
26129 am__EXEEXT_FALSE='#'
26130 else
26131 am__EXEEXT_TRUE='#'
26132 am__EXEEXT_FALSE=
26135 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26136 as_fn_error "conditional \"AMDEP\" was never defined.
26137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26139 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26140 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26143 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
26144 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
26145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26147 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
26148 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
26149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26152 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
26153 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
26154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26156 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
26157 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
26158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26160 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
26161 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
26162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26164 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
26165 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
26166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26168 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
26169 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
26170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26172 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
26173 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
26174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26176 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
26177 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
26178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26180 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
26181 as_fn_error "conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
26182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26184 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
26185 as_fn_error "conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
26186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26188 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
26189 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
26190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26192 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
26193 as_fn_error "conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
26194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26196 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
26197 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
26198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26200 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
26201 as_fn_error "conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
26202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26204 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
26205 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
26206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26208 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
26209 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
26210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26212 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
26213 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
26214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26216 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
26217 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
26218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26220 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
26221 as_fn_error "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
26222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26225 gl_libobjs=
26226 gl_ltlibobjs=
26227 if test -n "$gl_LIBOBJS"; then
26228 # Remove the extension.
26229 sed_drop_objext='s/\.o$//;s/\.obj$//'
26230 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
26231 gl_libobjs="$gl_libobjs $i.$ac_objext"
26232 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
26233 done
26235 gl_LIBOBJS=$gl_libobjs
26237 gl_LTLIBOBJS=$gl_ltlibobjs
26241 gltests_libobjs=
26242 gltests_ltlibobjs=
26243 if test -n "$gltests_LIBOBJS"; then
26244 # Remove the extension.
26245 sed_drop_objext='s/\.o$//;s/\.obj$//'
26246 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
26247 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
26248 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
26249 done
26251 gltests_LIBOBJS=$gltests_libobjs
26253 gltests_LTLIBOBJS=$gltests_ltlibobjs
26257 : ${CONFIG_STATUS=./config.status}
26258 ac_write_fail=0
26259 ac_clean_files_save=$ac_clean_files
26260 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26261 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26262 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26263 as_write_fail=0
26264 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26265 #! $SHELL
26266 # Generated by $as_me.
26267 # Run this file to recreate the current configuration.
26268 # Compiler output produced by configure, useful for debugging
26269 # configure, is in config.log if it exists.
26271 debug=false
26272 ac_cs_recheck=false
26273 ac_cs_silent=false
26275 SHELL=\${CONFIG_SHELL-$SHELL}
26276 export SHELL
26277 _ASEOF
26278 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26279 ## -------------------- ##
26280 ## M4sh Initialization. ##
26281 ## -------------------- ##
26283 # Be more Bourne compatible
26284 DUALCASE=1; export DUALCASE # for MKS sh
26285 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26286 emulate sh
26287 NULLCMD=:
26288 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26289 # is contrary to our usage. Disable this feature.
26290 alias -g '${1+"$@"}'='"$@"'
26291 setopt NO_GLOB_SUBST
26292 else
26293 case `(set -o) 2>/dev/null` in #(
26294 *posix*) :
26295 set -o posix ;; #(
26296 *) :
26298 esac
26302 as_nl='
26304 export as_nl
26305 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26306 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26307 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26308 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26309 # Prefer a ksh shell builtin over an external printf program on Solaris,
26310 # but without wasting forks for bash or zsh.
26311 if test -z "$BASH_VERSION$ZSH_VERSION" \
26312 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26313 as_echo='print -r --'
26314 as_echo_n='print -rn --'
26315 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26316 as_echo='printf %s\n'
26317 as_echo_n='printf %s'
26318 else
26319 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26320 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26321 as_echo_n='/usr/ucb/echo -n'
26322 else
26323 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26324 as_echo_n_body='eval
26325 arg=$1;
26326 case $arg in #(
26327 *"$as_nl"*)
26328 expr "X$arg" : "X\\(.*\\)$as_nl";
26329 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26330 esac;
26331 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26333 export as_echo_n_body
26334 as_echo_n='sh -c $as_echo_n_body as_echo'
26336 export as_echo_body
26337 as_echo='sh -c $as_echo_body as_echo'
26340 # The user is always right.
26341 if test "${PATH_SEPARATOR+set}" != set; then
26342 PATH_SEPARATOR=:
26343 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26344 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26345 PATH_SEPARATOR=';'
26350 # IFS
26351 # We need space, tab and new line, in precisely that order. Quoting is
26352 # there to prevent editors from complaining about space-tab.
26353 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26354 # splitting by setting IFS to empty value.)
26355 IFS=" "" $as_nl"
26357 # Find who we are. Look in the path if we contain no directory separator.
26358 case $0 in #((
26359 *[\\/]* ) as_myself=$0 ;;
26360 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26361 for as_dir in $PATH
26363 IFS=$as_save_IFS
26364 test -z "$as_dir" && as_dir=.
26365 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26366 done
26367 IFS=$as_save_IFS
26370 esac
26371 # We did not find ourselves, most probably we were run as `sh COMMAND'
26372 # in which case we are not to be found in the path.
26373 if test "x$as_myself" = x; then
26374 as_myself=$0
26376 if test ! -f "$as_myself"; then
26377 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26378 exit 1
26381 # Unset variables that we do not need and which cause bugs (e.g. in
26382 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26383 # suppresses any "Segmentation fault" message there. '((' could
26384 # trigger a bug in pdksh 5.2.14.
26385 for as_var in BASH_ENV ENV MAIL MAILPATH
26386 do eval test x\${$as_var+set} = xset \
26387 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26388 done
26389 PS1='$ '
26390 PS2='> '
26391 PS4='+ '
26393 # NLS nuisances.
26394 LC_ALL=C
26395 export LC_ALL
26396 LANGUAGE=C
26397 export LANGUAGE
26399 # CDPATH.
26400 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26403 # as_fn_error ERROR [LINENO LOG_FD]
26404 # ---------------------------------
26405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26407 # script with status $?, using 1 if that was 0.
26408 as_fn_error ()
26410 as_status=$?; test $as_status -eq 0 && as_status=1
26411 if test "$3"; then
26412 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26415 $as_echo "$as_me: error: $1" >&2
26416 as_fn_exit $as_status
26417 } # as_fn_error
26420 # as_fn_set_status STATUS
26421 # -----------------------
26422 # Set $? to STATUS, without forking.
26423 as_fn_set_status ()
26425 return $1
26426 } # as_fn_set_status
26428 # as_fn_exit STATUS
26429 # -----------------
26430 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26431 as_fn_exit ()
26433 set +e
26434 as_fn_set_status $1
26435 exit $1
26436 } # as_fn_exit
26438 # as_fn_unset VAR
26439 # ---------------
26440 # Portably unset VAR.
26441 as_fn_unset ()
26443 { eval $1=; unset $1;}
26445 as_unset=as_fn_unset
26446 # as_fn_append VAR VALUE
26447 # ----------------------
26448 # Append the text in VALUE to the end of the definition contained in VAR. Take
26449 # advantage of any shell optimizations that allow amortized linear growth over
26450 # repeated appends, instead of the typical quadratic growth present in naive
26451 # implementations.
26452 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26453 eval 'as_fn_append ()
26455 eval $1+=\$2
26457 else
26458 as_fn_append ()
26460 eval $1=\$$1\$2
26462 fi # as_fn_append
26464 # as_fn_arith ARG...
26465 # ------------------
26466 # Perform arithmetic evaluation on the ARGs, and store the result in the
26467 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26468 # must be portable across $(()) and expr.
26469 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26470 eval 'as_fn_arith ()
26472 as_val=$(( $* ))
26474 else
26475 as_fn_arith ()
26477 as_val=`expr "$@" || test $? -eq 1`
26479 fi # as_fn_arith
26482 if expr a : '\(a\)' >/dev/null 2>&1 &&
26483 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26484 as_expr=expr
26485 else
26486 as_expr=false
26489 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26490 as_basename=basename
26491 else
26492 as_basename=false
26495 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26496 as_dirname=dirname
26497 else
26498 as_dirname=false
26501 as_me=`$as_basename -- "$0" ||
26502 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26503 X"$0" : 'X\(//\)$' \| \
26504 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26505 $as_echo X/"$0" |
26506 sed '/^.*\/\([^/][^/]*\)\/*$/{
26507 s//\1/
26510 /^X\/\(\/\/\)$/{
26511 s//\1/
26514 /^X\/\(\/\).*/{
26515 s//\1/
26518 s/.*/./; q'`
26520 # Avoid depending upon Character Ranges.
26521 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26522 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26523 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26524 as_cr_digits='0123456789'
26525 as_cr_alnum=$as_cr_Letters$as_cr_digits
26527 ECHO_C= ECHO_N= ECHO_T=
26528 case `echo -n x` in #(((((
26529 -n*)
26530 case `echo 'xy\c'` in
26531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26532 xy) ECHO_C='\c';;
26533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26534 ECHO_T=' ';;
26535 esac;;
26537 ECHO_N='-n';;
26538 esac
26540 rm -f conf$$ conf$$.exe conf$$.file
26541 if test -d conf$$.dir; then
26542 rm -f conf$$.dir/conf$$.file
26543 else
26544 rm -f conf$$.dir
26545 mkdir conf$$.dir 2>/dev/null
26547 if (echo >conf$$.file) 2>/dev/null; then
26548 if ln -s conf$$.file conf$$ 2>/dev/null; then
26549 as_ln_s='ln -s'
26550 # ... but there are two gotchas:
26551 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26552 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26553 # In both cases, we have to default to `cp -p'.
26554 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26555 as_ln_s='cp -p'
26556 elif ln conf$$.file conf$$ 2>/dev/null; then
26557 as_ln_s=ln
26558 else
26559 as_ln_s='cp -p'
26561 else
26562 as_ln_s='cp -p'
26564 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26565 rmdir conf$$.dir 2>/dev/null
26568 # as_fn_mkdir_p
26569 # -------------
26570 # Create "$as_dir" as a directory, including parents if necessary.
26571 as_fn_mkdir_p ()
26574 case $as_dir in #(
26575 -*) as_dir=./$as_dir;;
26576 esac
26577 test -d "$as_dir" || eval $as_mkdir_p || {
26578 as_dirs=
26579 while :; do
26580 case $as_dir in #(
26581 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26582 *) as_qdir=$as_dir;;
26583 esac
26584 as_dirs="'$as_qdir' $as_dirs"
26585 as_dir=`$as_dirname -- "$as_dir" ||
26586 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26587 X"$as_dir" : 'X\(//\)[^/]' \| \
26588 X"$as_dir" : 'X\(//\)$' \| \
26589 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26590 $as_echo X"$as_dir" |
26591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26592 s//\1/
26595 /^X\(\/\/\)[^/].*/{
26596 s//\1/
26599 /^X\(\/\/\)$/{
26600 s//\1/
26603 /^X\(\/\).*/{
26604 s//\1/
26607 s/.*/./; q'`
26608 test -d "$as_dir" && break
26609 done
26610 test -z "$as_dirs" || eval "mkdir $as_dirs"
26611 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26614 } # as_fn_mkdir_p
26615 if mkdir -p . 2>/dev/null; then
26616 as_mkdir_p='mkdir -p "$as_dir"'
26617 else
26618 test -d ./-p && rmdir ./-p
26619 as_mkdir_p=false
26622 if test -x / >/dev/null 2>&1; then
26623 as_test_x='test -x'
26624 else
26625 if ls -dL / >/dev/null 2>&1; then
26626 as_ls_L_option=L
26627 else
26628 as_ls_L_option=
26630 as_test_x='
26631 eval sh -c '\''
26632 if test -d "$1"; then
26633 test -d "$1/.";
26634 else
26635 case $1 in #(
26636 -*)set "./$1";;
26637 esac;
26638 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26639 ???[sx]*):;;*)false;;esac;fi
26640 '\'' sh
26643 as_executable_p=$as_test_x
26645 # Sed expression to map a string onto a valid CPP name.
26646 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26648 # Sed expression to map a string onto a valid variable name.
26649 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26652 exec 6>&1
26653 ## ----------------------------------- ##
26654 ## Main body of $CONFIG_STATUS script. ##
26655 ## ----------------------------------- ##
26656 _ASEOF
26657 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26660 # Save the log message, to keep $0 and so on meaningful, and to
26661 # report actual input values of CONFIG_FILES etc. instead of their
26662 # values after options handling.
26663 ac_log="
26664 This file was extended by emacs $as_me 24.3.50, which was
26665 generated by GNU Autoconf 2.65. Invocation command line was
26667 CONFIG_FILES = $CONFIG_FILES
26668 CONFIG_HEADERS = $CONFIG_HEADERS
26669 CONFIG_LINKS = $CONFIG_LINKS
26670 CONFIG_COMMANDS = $CONFIG_COMMANDS
26671 $ $0 $@
26673 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26676 _ACEOF
26678 case $ac_config_files in *"
26679 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26680 esac
26682 case $ac_config_headers in *"
26683 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26684 esac
26687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26688 # Files that config.status was made for.
26689 config_files="$ac_config_files"
26690 config_headers="$ac_config_headers"
26691 config_commands="$ac_config_commands"
26693 _ACEOF
26695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26696 ac_cs_usage="\
26697 \`$as_me' instantiates files and other configuration actions
26698 from templates according to the current configuration. Unless the files
26699 and actions are specified as TAGs, all are instantiated by default.
26701 Usage: $0 [OPTION]... [TAG]...
26703 -h, --help print this help, then exit
26704 -V, --version print version number and configuration settings, then exit
26705 --config print configuration, then exit
26706 -q, --quiet, --silent
26707 do not print progress messages
26708 -d, --debug don't remove temporary files
26709 --recheck update $as_me by reconfiguring in the same conditions
26710 --file=FILE[:TEMPLATE]
26711 instantiate the configuration file FILE
26712 --header=FILE[:TEMPLATE]
26713 instantiate the configuration header FILE
26715 Configuration files:
26716 $config_files
26718 Configuration headers:
26719 $config_headers
26721 Configuration commands:
26722 $config_commands
26724 Report bugs to the package provider."
26726 _ACEOF
26727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26728 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26729 ac_cs_version="\\
26730 emacs config.status 24.3.50
26731 configured by $0, generated by GNU Autoconf 2.65,
26732 with options \\"\$ac_cs_config\\"
26734 Copyright (C) 2009 Free Software Foundation, Inc.
26735 This config.status script is free software; the Free Software Foundation
26736 gives unlimited permission to copy, distribute and modify it."
26738 ac_pwd='$ac_pwd'
26739 srcdir='$srcdir'
26740 INSTALL='$INSTALL'
26741 MKDIR_P='$MKDIR_P'
26742 AWK='$AWK'
26743 test -n "\$AWK" || AWK=awk
26744 _ACEOF
26746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26747 # The default lists apply if the user does not specify any file.
26748 ac_need_defaults=:
26749 while test $# != 0
26751 case $1 in
26752 --*=*)
26753 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26754 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26755 ac_shift=:
26758 ac_option=$1
26759 ac_optarg=$2
26760 ac_shift=shift
26762 esac
26764 case $ac_option in
26765 # Handling of the options.
26766 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26767 ac_cs_recheck=: ;;
26768 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26769 $as_echo "$ac_cs_version"; exit ;;
26770 --config | --confi | --conf | --con | --co | --c )
26771 $as_echo "$ac_cs_config"; exit ;;
26772 --debug | --debu | --deb | --de | --d | -d )
26773 debug=: ;;
26774 --file | --fil | --fi | --f )
26775 $ac_shift
26776 case $ac_optarg in
26777 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26778 esac
26779 as_fn_append CONFIG_FILES " '$ac_optarg'"
26780 ac_need_defaults=false;;
26781 --header | --heade | --head | --hea )
26782 $ac_shift
26783 case $ac_optarg in
26784 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26785 esac
26786 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26787 ac_need_defaults=false;;
26788 --he | --h)
26789 # Conflict between --help and --header
26790 as_fn_error "ambiguous option: \`$1'
26791 Try \`$0 --help' for more information.";;
26792 --help | --hel | -h )
26793 $as_echo "$ac_cs_usage"; exit ;;
26794 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26795 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26796 ac_cs_silent=: ;;
26798 # This is an error.
26799 -*) as_fn_error "unrecognized option: \`$1'
26800 Try \`$0 --help' for more information." ;;
26802 *) as_fn_append ac_config_targets " $1"
26803 ac_need_defaults=false ;;
26805 esac
26806 shift
26807 done
26809 ac_configure_extra_args=
26811 if $ac_cs_silent; then
26812 exec 6>/dev/null
26813 ac_configure_extra_args="$ac_configure_extra_args --silent"
26816 _ACEOF
26817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26818 if \$ac_cs_recheck; then
26819 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26820 shift
26821 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26822 CONFIG_SHELL='$SHELL'
26823 export CONFIG_SHELL
26824 exec "\$@"
26827 _ACEOF
26828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26829 exec 5>>config.log
26831 echo
26832 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26833 ## Running $as_me. ##
26834 _ASBOX
26835 $as_echo "$ac_log"
26836 } >&5
26838 _ACEOF
26839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26841 # INIT-COMMANDS
26843 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26844 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
26846 _ACEOF
26848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26850 # Handling of arguments.
26851 for ac_config_target in $ac_config_targets
26853 case $ac_config_target in
26854 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26855 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26856 "nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:nextstep/templates/Info-gnustep.plist.in" ;;
26857 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
26858 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
26859 "nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:nextstep/templates/InfoPlist.strings.in" ;;
26860 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26861 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26862 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
26863 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26864 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26865 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26866 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26867 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26868 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26869 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26870 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26871 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26872 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
26873 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
26874 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
26875 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
26876 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
26877 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
26879 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26880 esac
26881 done
26884 # If the user did not use the arguments to specify the items to instantiate,
26885 # then the envvar interface is used. Set only those that are not.
26886 # We use the long form for the default assignment because of an extremely
26887 # bizarre bug on SunOS 4.1.3.
26888 if $ac_need_defaults; then
26889 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26890 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26891 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26894 # Have a temporary directory for convenience. Make it in the build tree
26895 # simply because there is no reason against having it here, and in addition,
26896 # creating and moving files from /tmp can sometimes cause problems.
26897 # Hook for its removal unless debugging.
26898 # Note that there is a small window in which the directory will not be cleaned:
26899 # after its creation but before its name has been assigned to `$tmp'.
26900 $debug ||
26902 tmp=
26903 trap 'exit_status=$?
26904 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26906 trap 'as_fn_exit 1' 1 2 13 15
26908 # Create a (secure) tmp directory for tmp files.
26911 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26912 test -n "$tmp" && test -d "$tmp"
26913 } ||
26915 tmp=./conf$$-$RANDOM
26916 (umask 077 && mkdir "$tmp")
26917 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26919 # Set up the scripts for CONFIG_FILES section.
26920 # No need to generate them if there are no CONFIG_FILES.
26921 # This happens for instance with `./config.status config.h'.
26922 if test -n "$CONFIG_FILES"; then
26924 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26925 ac_cs_awk_getline=:
26926 ac_cs_awk_pipe_init=
26927 ac_cs_awk_read_file='
26928 while ((getline aline < (F[key])) > 0)
26929 print(aline)
26930 close(F[key])'
26931 ac_cs_awk_pipe_fini=
26932 else
26933 ac_cs_awk_getline=false
26934 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26935 ac_cs_awk_read_file='
26936 print "|#_!!_#|"
26937 print "cat " F[key] " &&"
26938 '$ac_cs_awk_pipe_init
26939 # The final `:' finishes the AND list.
26940 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26942 ac_cr=`echo X | tr X '\015'`
26943 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26944 # But we know of no other shell where ac_cr would be empty at this
26945 # point, so we can use a bashism as a fallback.
26946 if test "x$ac_cr" = x; then
26947 eval ac_cr=\$\'\\r\'
26949 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26950 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26951 ac_cs_awk_cr='\r'
26952 else
26953 ac_cs_awk_cr=$ac_cr
26956 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26957 _ACEOF
26959 # Create commands to substitute file output variables.
26961 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26962 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26963 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26964 echo "_ACAWK" &&
26965 echo "_ACEOF"
26966 } >conf$$files.sh &&
26967 . ./conf$$files.sh ||
26968 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26969 rm -f conf$$files.sh
26972 echo "cat >conf$$subs.awk <<_ACEOF" &&
26973 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26974 echo "_ACEOF"
26975 } >conf$$subs.sh ||
26976 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26977 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26978 ac_delim='%!_!# '
26979 for ac_last_try in false false false false false :; do
26980 . ./conf$$subs.sh ||
26981 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26983 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26984 if test $ac_delim_n = $ac_delim_num; then
26985 break
26986 elif $ac_last_try; then
26987 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26988 else
26989 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26991 done
26992 rm -f conf$$subs.sh
26994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26995 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26996 _ACEOF
26997 sed -n '
26999 s/^/S["/; s/!.*/"]=/
27002 s/^[^!]*!//
27003 :repl
27004 t repl
27005 s/'"$ac_delim"'$//
27006 t delim
27009 s/\(.\{148\}\)..*/\1/
27010 t more1
27011 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27014 b repl
27015 :more1
27016 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27019 s/.\{148\}//
27020 t nl
27021 :delim
27023 s/\(.\{148\}\)..*/\1/
27024 t more2
27025 s/["\\]/\\&/g; s/^/"/; s/$/"/
27028 :more2
27029 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27032 s/.\{148\}//
27033 t delim
27034 ' <conf$$subs.awk | sed '
27035 /^[^""]/{
27037 s/\n//
27039 ' >>$CONFIG_STATUS || ac_write_fail=1
27040 rm -f conf$$subs.awk
27041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27042 _ACAWK
27043 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27044 for (key in S) S_is_set[key] = 1
27045 FS = "\a"
27046 \$ac_cs_awk_pipe_init
27049 line = $ 0
27050 nfields = split(line, field, "@")
27051 substed = 0
27052 len = length(field[1])
27053 for (i = 2; i < nfields; i++) {
27054 key = field[i]
27055 keylen = length(key)
27056 if (S_is_set[key]) {
27057 value = S[key]
27058 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27059 len += length(value) + length(field[++i])
27060 substed = 1
27061 } else
27062 len += 1 + keylen
27064 if (nfields == 3 && !substed) {
27065 key = field[2]
27066 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27067 \$ac_cs_awk_read_file
27068 next
27071 print line
27073 \$ac_cs_awk_pipe_fini
27074 _ACAWK
27075 _ACEOF
27076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27077 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27078 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27079 else
27081 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27082 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27083 _ACEOF
27085 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27086 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27087 # trailing colons and then remove the whole line if VPATH becomes empty
27088 # (actually we leave an empty line to preserve line numbers).
27089 if test "x$srcdir" = x.; then
27090 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27091 s/:*\$(srcdir):*/:/
27092 s/:*\${srcdir}:*/:/
27093 s/:*@srcdir@:*/:/
27094 s/^\([^=]*=[ ]*\):*/\1/
27095 s/:*$//
27096 s/^[^=]*=[ ]*$//
27100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27101 fi # test -n "$CONFIG_FILES"
27103 # Set up the scripts for CONFIG_HEADERS section.
27104 # No need to generate them if there are no CONFIG_HEADERS.
27105 # This happens for instance with `./config.status Makefile'.
27106 if test -n "$CONFIG_HEADERS"; then
27107 cat >"$tmp/defines.awk" <<\_ACAWK ||
27108 BEGIN {
27109 _ACEOF
27111 # Transform confdefs.h into an awk script `defines.awk', embedded as
27112 # here-document in config.status, that substitutes the proper values into
27113 # config.h.in to produce config.h.
27115 # Create a delimiter string that does not exist in confdefs.h, to ease
27116 # handling of long lines.
27117 ac_delim='%!_!# '
27118 for ac_last_try in false false :; do
27119 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27120 if test -z "$ac_t"; then
27121 break
27122 elif $ac_last_try; then
27123 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27124 else
27125 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27127 done
27129 # For the awk script, D is an array of macro values keyed by name,
27130 # likewise P contains macro parameters if any. Preserve backslash
27131 # newline sequences.
27133 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27134 sed -n '
27135 s/.\{148\}/&'"$ac_delim"'/g
27136 t rset
27137 :rset
27138 s/^[ ]*#[ ]*define[ ][ ]*/ /
27139 t def
27141 :def
27142 s/\\$//
27143 t bsnl
27144 s/["\\]/\\&/g
27145 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27146 D["\1"]=" \3"/p
27147 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27149 :bsnl
27150 s/["\\]/\\&/g
27151 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27152 D["\1"]=" \3\\\\\\n"\\/p
27153 t cont
27154 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27155 t cont
27157 :cont
27159 s/.\{148\}/&'"$ac_delim"'/g
27160 t clear
27161 :clear
27162 s/\\$//
27163 t bsnlc
27164 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27166 :bsnlc
27167 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27168 b cont
27169 ' <confdefs.h | sed '
27170 s/'"$ac_delim"'/"\\\
27171 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27174 for (key in D) D_is_set[key] = 1
27175 FS = "\a"
27177 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27178 line = \$ 0
27179 split(line, arg, " ")
27180 if (arg[1] == "#") {
27181 defundef = arg[2]
27182 mac1 = arg[3]
27183 } else {
27184 defundef = substr(arg[1], 2)
27185 mac1 = arg[2]
27187 split(mac1, mac2, "(") #)
27188 macro = mac2[1]
27189 prefix = substr(line, 1, index(line, defundef) - 1)
27190 if (D_is_set[macro]) {
27191 # Preserve the white space surrounding the "#".
27192 print prefix "define", macro P[macro] D[macro]
27193 next
27194 } else {
27195 # Replace #undef with comments. This is necessary, for example,
27196 # in the case of _POSIX_SOURCE, which is predefined and required
27197 # on some systems where configure will not decide to define it.
27198 if (defundef == "undef") {
27199 print "/*", prefix defundef, macro, "*/"
27200 next
27204 { print }
27205 _ACAWK
27206 _ACEOF
27207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27208 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27209 fi # test -n "$CONFIG_HEADERS"
27212 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27213 shift
27214 for ac_tag
27216 case $ac_tag in
27217 :[FHLC]) ac_mode=$ac_tag; continue;;
27218 esac
27219 case $ac_mode$ac_tag in
27220 :[FHL]*:*);;
27221 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27222 :[FH]-) ac_tag=-:-;;
27223 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27224 esac
27225 ac_save_IFS=$IFS
27226 IFS=:
27227 set x $ac_tag
27228 IFS=$ac_save_IFS
27229 shift
27230 ac_file=$1
27231 shift
27233 case $ac_mode in
27234 :L) ac_source=$1;;
27235 :[FH])
27236 ac_file_inputs=
27237 for ac_f
27239 case $ac_f in
27240 -) ac_f="$tmp/stdin";;
27241 *) # Look for the file first in the build tree, then in the source tree
27242 # (if the path is not absolute). The absolute path cannot be DOS-style,
27243 # because $ac_f cannot contain `:'.
27244 test -f "$ac_f" ||
27245 case $ac_f in
27246 [\\/$]*) false;;
27247 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27248 esac ||
27249 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27250 esac
27251 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27252 as_fn_append ac_file_inputs " '$ac_f'"
27253 done
27255 # Let's still pretend it is `configure' which instantiates (i.e., don't
27256 # use $as_me), people would be surprised to read:
27257 # /* config.h. Generated by config.status. */
27258 configure_input='Generated from '`
27259 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27260 `' by configure.'
27261 if test x"$ac_file" != x-; then
27262 configure_input="$ac_file. $configure_input"
27263 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27264 $as_echo "$as_me: creating $ac_file" >&6;}
27266 # Neutralize special characters interpreted by sed in replacement strings.
27267 case $configure_input in #(
27268 *\&* | *\|* | *\\* )
27269 ac_sed_conf_input=`$as_echo "$configure_input" |
27270 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27271 *) ac_sed_conf_input=$configure_input;;
27272 esac
27274 case $ac_tag in
27275 *:-:* | *:-) cat >"$tmp/stdin" \
27276 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27277 esac
27279 esac
27281 ac_dir=`$as_dirname -- "$ac_file" ||
27282 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27283 X"$ac_file" : 'X\(//\)[^/]' \| \
27284 X"$ac_file" : 'X\(//\)$' \| \
27285 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27286 $as_echo X"$ac_file" |
27287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27288 s//\1/
27291 /^X\(\/\/\)[^/].*/{
27292 s//\1/
27295 /^X\(\/\/\)$/{
27296 s//\1/
27299 /^X\(\/\).*/{
27300 s//\1/
27303 s/.*/./; q'`
27304 as_dir="$ac_dir"; as_fn_mkdir_p
27305 ac_builddir=.
27307 case "$ac_dir" in
27308 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27310 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27311 # A ".." for each directory in $ac_dir_suffix.
27312 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27313 case $ac_top_builddir_sub in
27314 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27315 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27316 esac ;;
27317 esac
27318 ac_abs_top_builddir=$ac_pwd
27319 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27320 # for backward compatibility:
27321 ac_top_builddir=$ac_top_build_prefix
27323 case $srcdir in
27324 .) # We are building in place.
27325 ac_srcdir=.
27326 ac_top_srcdir=$ac_top_builddir_sub
27327 ac_abs_top_srcdir=$ac_pwd ;;
27328 [\\/]* | ?:[\\/]* ) # Absolute name.
27329 ac_srcdir=$srcdir$ac_dir_suffix;
27330 ac_top_srcdir=$srcdir
27331 ac_abs_top_srcdir=$srcdir ;;
27332 *) # Relative name.
27333 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27334 ac_top_srcdir=$ac_top_build_prefix$srcdir
27335 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27336 esac
27337 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27340 case $ac_mode in
27343 # CONFIG_FILE
27346 case $INSTALL in
27347 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27348 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27349 esac
27350 ac_MKDIR_P=$MKDIR_P
27351 case $MKDIR_P in
27352 [\\/$]* | ?:[\\/]* ) ;;
27353 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27354 esac
27355 _ACEOF
27357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27358 # If the template does not know about datarootdir, expand it.
27359 # FIXME: This hack should be removed a few years after 2.60.
27360 ac_datarootdir_hack=; ac_datarootdir_seen=
27361 ac_sed_dataroot='
27362 /datarootdir/ {
27366 /@datadir@/p
27367 /@docdir@/p
27368 /@infodir@/p
27369 /@localedir@/p
27370 /@mandir@/p'
27371 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27372 *datarootdir*) ac_datarootdir_seen=yes;;
27373 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27375 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27376 _ACEOF
27377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27378 ac_datarootdir_hack='
27379 s&@datadir@&$datadir&g
27380 s&@docdir@&$docdir&g
27381 s&@infodir@&$infodir&g
27382 s&@localedir@&$localedir&g
27383 s&@mandir@&$mandir&g
27384 s&\\\${datarootdir}&$datarootdir&g' ;;
27385 esac
27386 _ACEOF
27388 # Neutralize VPATH when `$srcdir' = `.'.
27389 # Shell code in configure.ac might set extrasub.
27390 # FIXME: do we really want to maintain this feature?
27391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27392 ac_sed_extra="$ac_vpsub
27393 $extrasub
27394 _ACEOF
27395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27397 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27398 s|@configure_input@|$ac_sed_conf_input|;t t
27399 s&@top_builddir@&$ac_top_builddir_sub&;t t
27400 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27401 s&@srcdir@&$ac_srcdir&;t t
27402 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27403 s&@top_srcdir@&$ac_top_srcdir&;t t
27404 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27405 s&@builddir@&$ac_builddir&;t t
27406 s&@abs_builddir@&$ac_abs_builddir&;t t
27407 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27408 s&@INSTALL@&$ac_INSTALL&;t t
27409 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27410 $ac_datarootdir_hack
27412 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27413 if $ac_cs_awk_getline; then
27414 $AWK -f "$tmp/subs.awk"
27415 else
27416 $AWK -f "$tmp/subs.awk" | $SHELL
27417 fi >$tmp/out \
27418 || as_fn_error "could not create $ac_file" "$LINENO" 5
27420 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27421 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27422 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27424 which seems to be undefined. Please make sure it is defined." >&5
27425 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27426 which seems to be undefined. Please make sure it is defined." >&2;}
27428 rm -f "$tmp/stdin"
27429 case $ac_file in
27430 -) cat "$tmp/out" && rm -f "$tmp/out";;
27431 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27432 esac \
27433 || as_fn_error "could not create $ac_file" "$LINENO" 5
27437 # CONFIG_HEADER
27439 if test x"$ac_file" != x-; then
27441 $as_echo "/* $configure_input */" \
27442 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27443 } >"$tmp/config.h" \
27444 || as_fn_error "could not create $ac_file" "$LINENO" 5
27445 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27446 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27447 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27448 else
27449 rm -f "$ac_file"
27450 mv "$tmp/config.h" "$ac_file" \
27451 || as_fn_error "could not create $ac_file" "$LINENO" 5
27453 else
27454 $as_echo "/* $configure_input */" \
27455 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27456 || as_fn_error "could not create -" "$LINENO" 5
27458 # Compute "$ac_file"'s index in $config_headers.
27459 _am_arg="$ac_file"
27460 _am_stamp_count=1
27461 for _am_header in $config_headers :; do
27462 case $_am_header in
27463 $_am_arg | $_am_arg:* )
27464 break ;;
27466 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27467 esac
27468 done
27469 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27470 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27471 X"$_am_arg" : 'X\(//\)[^/]' \| \
27472 X"$_am_arg" : 'X\(//\)$' \| \
27473 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27474 $as_echo X"$_am_arg" |
27475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27476 s//\1/
27479 /^X\(\/\/\)[^/].*/{
27480 s//\1/
27483 /^X\(\/\/\)$/{
27484 s//\1/
27487 /^X\(\/\).*/{
27488 s//\1/
27491 s/.*/./; q'`/stamp-h$_am_stamp_count
27494 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27495 $as_echo "$as_me: executing $ac_file commands" >&6;}
27497 esac
27500 case $ac_file$ac_mode in
27501 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27502 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27503 # are listed without --file. Let's play safe and only enable the eval
27504 # if we detect the quoting.
27505 case $CONFIG_FILES in
27506 *\'*) eval set x "$CONFIG_FILES" ;;
27507 *) set x $CONFIG_FILES ;;
27508 esac
27509 shift
27510 for mf
27512 # Strip MF so we end up with the name of the file.
27513 mf=`echo "$mf" | sed -e 's/:.*$//'`
27514 # Check whether this is an Automake generated Makefile or not.
27515 # We used to match only the files named `Makefile.in', but
27516 # some people rename them; so instead we look at the file content.
27517 # Grep'ing the first line is not enough: some people post-process
27518 # each Makefile.in and add a new line on top of each file to say so.
27519 # Grep'ing the whole file is not good either: AIX grep has a line
27520 # limit of 2048, but all sed's we know have understand at least 4000.
27521 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27522 dirpart=`$as_dirname -- "$mf" ||
27523 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27524 X"$mf" : 'X\(//\)[^/]' \| \
27525 X"$mf" : 'X\(//\)$' \| \
27526 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27527 $as_echo X"$mf" |
27528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27529 s//\1/
27532 /^X\(\/\/\)[^/].*/{
27533 s//\1/
27536 /^X\(\/\/\)$/{
27537 s//\1/
27540 /^X\(\/\).*/{
27541 s//\1/
27544 s/.*/./; q'`
27545 else
27546 continue
27548 # Extract the definition of DEPDIR, am__include, and am__quote
27549 # from the Makefile without running `make'.
27550 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27551 test -z "$DEPDIR" && continue
27552 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27553 test -z "am__include" && continue
27554 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27555 # When using ansi2knr, U may be empty or an underscore; expand it
27556 U=`sed -n 's/^U = //p' < "$mf"`
27557 # Find all dependency output files, they are included files with
27558 # $(DEPDIR) in their names. We invoke sed twice because it is the
27559 # simplest approach to changing $(DEPDIR) to its actual value in the
27560 # expansion.
27561 for file in `sed -n "
27562 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27563 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27564 # Make sure the directory exists.
27565 test -f "$dirpart/$file" && continue
27566 fdir=`$as_dirname -- "$file" ||
27567 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27568 X"$file" : 'X\(//\)[^/]' \| \
27569 X"$file" : 'X\(//\)$' \| \
27570 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27571 $as_echo X"$file" |
27572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27573 s//\1/
27576 /^X\(\/\/\)[^/].*/{
27577 s//\1/
27580 /^X\(\/\/\)$/{
27581 s//\1/
27584 /^X\(\/\).*/{
27585 s//\1/
27588 s/.*/./; q'`
27589 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27590 # echo "creating $dirpart/$file"
27591 echo '# dummy' > "$dirpart/$file"
27592 done
27593 done
27596 "mkdirs":C)
27597 for dir in etc lisp ; do
27598 test -d ${dir} || mkdir ${dir}
27599 done
27601 "epaths":C)
27602 echo creating src/epaths.h
27603 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
27605 "gdbinit":C)
27606 if test ! -f src/.gdbinit && test -f "$srcdir/src/.gdbinit"; then
27607 echo creating src/.gdbinit
27608 echo "source $srcdir/src/.gdbinit" > src/.gdbinit
27612 esac
27613 done # for ac_tag
27616 as_fn_exit 0
27617 _ACEOF
27618 ac_clean_files=$ac_clean_files_save
27620 test $ac_write_fail = 0 ||
27621 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27624 # configure is writing to config.log, and then calls config.status.
27625 # config.status does its own redirection, appending to config.log.
27626 # Unfortunately, on DOS this fails, as config.log is still kept open
27627 # by configure, so config.status won't be able to write to it; its
27628 # output is simply discarded. So we exec the FD to /dev/null,
27629 # effectively closing config.log, so it can be properly (re)opened and
27630 # appended to by config.status. When coming back to configure, we
27631 # need to make the FD available again.
27632 if test "$no_create" != yes; then
27633 ac_cs_success=:
27634 ac_config_status_args=
27635 test "$silent" = yes &&
27636 ac_config_status_args="$ac_config_status_args --quiet"
27637 exec 5>/dev/null
27638 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27639 exec 5>>config.log
27640 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27641 # would make configure fail if this is the last instruction.
27642 $ac_cs_success || as_fn_exit $?
27644 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27646 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}