Auto-commit of generated files.
[emacs.git] / autogen / configure
blob8226d489f7260ec3277e99950f992c9f96219c2c
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_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
629 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
630 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
631 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
632 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
633 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
634 gl_GNULIB_ENABLED_getgroups_FALSE
635 gl_GNULIB_ENABLED_getgroups_TRUE
636 gl_GNULIB_ENABLED_euidaccess_FALSE
637 gl_GNULIB_ENABLED_euidaccess_TRUE
638 gl_GNULIB_ENABLED_dosname_FALSE
639 gl_GNULIB_ENABLED_dosname_TRUE
640 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
641 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
642 LTLIBINTL
643 LIBINTL
644 LIB_EACCESS
645 WINDOWS_64_BIT_OFF_T
646 HAVE_UNISTD_H
647 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
648 NEXT_UNISTD_H
649 LIB_TIMER_TIME
650 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
651 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
652 TIME_H_DEFINES_STRUCT_TIMESPEC
653 NEXT_AS_FIRST_DIRECTIVE_TIME_H
654 NEXT_TIME_H
655 WINDOWS_64_BIT_ST_SIZE
656 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
657 NEXT_SYS_STAT_H
658 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
659 NEXT_STDLIB_H
660 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
661 NEXT_STDIO_H
662 REPLACE_VSPRINTF
663 REPLACE_VSNPRINTF
664 REPLACE_VPRINTF
665 REPLACE_VFPRINTF
666 REPLACE_VDPRINTF
667 REPLACE_VASPRINTF
668 REPLACE_TMPFILE
669 REPLACE_STDIO_WRITE_FUNCS
670 REPLACE_STDIO_READ_FUNCS
671 REPLACE_SPRINTF
672 REPLACE_SNPRINTF
673 REPLACE_RENAMEAT
674 REPLACE_RENAME
675 REPLACE_REMOVE
676 REPLACE_PRINTF
677 REPLACE_POPEN
678 REPLACE_PERROR
679 REPLACE_OBSTACK_PRINTF
680 REPLACE_GETLINE
681 REPLACE_GETDELIM
682 REPLACE_FTELLO
683 REPLACE_FTELL
684 REPLACE_FSEEKO
685 REPLACE_FSEEK
686 REPLACE_FREOPEN
687 REPLACE_FPURGE
688 REPLACE_FPRINTF
689 REPLACE_FOPEN
690 REPLACE_FFLUSH
691 REPLACE_FDOPEN
692 REPLACE_FCLOSE
693 REPLACE_DPRINTF
694 HAVE_VDPRINTF
695 HAVE_VASPRINTF
696 HAVE_RENAMEAT
697 HAVE_POPEN
698 HAVE_PCLOSE
699 HAVE_FTELLO
700 HAVE_FSEEKO
701 HAVE_DPRINTF
702 HAVE_DECL_VSNPRINTF
703 HAVE_DECL_SNPRINTF
704 HAVE_DECL_OBSTACK_PRINTF
705 HAVE_DECL_GETLINE
706 HAVE_DECL_GETDELIM
707 HAVE_DECL_FTELLO
708 HAVE_DECL_FSEEKO
709 HAVE_DECL_FPURGE
710 GNULIB_VSPRINTF_POSIX
711 GNULIB_VSNPRINTF
712 GNULIB_VPRINTF_POSIX
713 GNULIB_VPRINTF
714 GNULIB_VFPRINTF_POSIX
715 GNULIB_VFPRINTF
716 GNULIB_VDPRINTF
717 GNULIB_VSCANF
718 GNULIB_VFSCANF
719 GNULIB_VASPRINTF
720 GNULIB_TMPFILE
721 GNULIB_STDIO_H_SIGPIPE
722 GNULIB_STDIO_H_NONBLOCKING
723 GNULIB_SPRINTF_POSIX
724 GNULIB_SNPRINTF
725 GNULIB_SCANF
726 GNULIB_RENAMEAT
727 GNULIB_RENAME
728 GNULIB_REMOVE
729 GNULIB_PUTS
730 GNULIB_PUTCHAR
731 GNULIB_PUTC
732 GNULIB_PRINTF_POSIX
733 GNULIB_PRINTF
734 GNULIB_POPEN
735 GNULIB_PERROR
736 GNULIB_PCLOSE
737 GNULIB_OBSTACK_PRINTF_POSIX
738 GNULIB_OBSTACK_PRINTF
739 GNULIB_GETLINE
740 GNULIB_GETDELIM
741 GNULIB_GETCHAR
742 GNULIB_GETC
743 GNULIB_FWRITE
744 GNULIB_FTELLO
745 GNULIB_FTELL
746 GNULIB_FSEEKO
747 GNULIB_FSEEK
748 GNULIB_FSCANF
749 GNULIB_FREOPEN
750 GNULIB_FREAD
751 GNULIB_FPUTS
752 GNULIB_FPUTC
753 GNULIB_FPURGE
754 GNULIB_FPRINTF_POSIX
755 GNULIB_FPRINTF
756 GNULIB_FOPEN
757 GNULIB_FGETS
758 GNULIB_FGETC
759 GNULIB_FFLUSH
760 GNULIB_FDOPEN
761 GNULIB_FCLOSE
762 GNULIB_DPRINTF
763 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
764 NEXT_STDDEF_H
765 GL_GENERATE_STDDEF_H_FALSE
766 GL_GENERATE_STDDEF_H_TRUE
767 STDDEF_H
768 HAVE_WCHAR_T
769 REPLACE_NULL
770 HAVE__BOOL
771 GL_GENERATE_STDBOOL_H_FALSE
772 GL_GENERATE_STDBOOL_H_TRUE
773 STDBOOL_H
774 GL_GENERATE_STDARG_H_FALSE
775 GL_GENERATE_STDARG_H_TRUE
776 STDARG_H
777 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
778 NEXT_STDARG_H
779 GL_GENERATE_STDALIGN_H_FALSE
780 GL_GENERATE_STDALIGN_H_TRUE
781 STDALIGN_H
782 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
783 NEXT_SIGNAL_H
784 LIB_PTHREAD_SIGMASK
785 REPLACE_RAISE
786 REPLACE_PTHREAD_SIGMASK
787 HAVE_SIGHANDLER_T
788 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
789 HAVE_STRUCT_SIGACTION_SA_SIGACTION
790 HAVE_SIGACTION
791 HAVE_SIGINFO_T
792 HAVE_SIGSET_T
793 HAVE_RAISE
794 HAVE_PTHREAD_SIGMASK
795 HAVE_POSIX_SIGNALBLOCKING
796 GNULIB_SIGACTION
797 GNULIB_SIGPROCMASK
798 GNULIB_SIGNAL_H_SIGPIPE
799 GNULIB_RAISE
800 GNULIB_PTHREAD_SIGMASK
801 HAVE_SYS_SELECT_H
802 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
803 NEXT_SYS_SELECT_H
804 REPLACE_SELECT
805 REPLACE_PSELECT
806 HAVE_PSELECT
807 GNULIB_SELECT
808 GNULIB_PSELECT
809 REPLACE_TIMEGM
810 REPLACE_NANOSLEEP
811 REPLACE_MKTIME
812 REPLACE_LOCALTIME_R
813 HAVE_TIMEGM
814 HAVE_STRPTIME
815 HAVE_NANOSLEEP
816 HAVE_DECL_LOCALTIME_R
817 GNULIB_TIME_R
818 GNULIB_TIMEGM
819 GNULIB_STRPTIME
820 GNULIB_NANOSLEEP
821 GNULIB_MKTIME
822 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
823 NEXT_INTTYPES_H
824 UINT64_MAX_EQ_ULONG_MAX
825 UINT32_MAX_LT_UINTMAX_MAX
826 PRIPTR_PREFIX
827 PRI_MACROS_BROKEN
828 INT64_MAX_EQ_LONG_MAX
829 INT32_MAX_LT_INTMAX_MAX
830 REPLACE_STRTOIMAX
831 HAVE_DECL_STRTOUMAX
832 HAVE_DECL_STRTOIMAX
833 HAVE_DECL_IMAXDIV
834 HAVE_DECL_IMAXABS
835 GNULIB_STRTOUMAX
836 GNULIB_STRTOIMAX
837 GNULIB_IMAXDIV
838 GNULIB_IMAXABS
839 GL_GENERATE_STDINT_H_FALSE
840 GL_GENERATE_STDINT_H_TRUE
841 STDINT_H
842 WINT_T_SUFFIX
843 WCHAR_T_SUFFIX
844 SIG_ATOMIC_T_SUFFIX
845 SIZE_T_SUFFIX
846 PTRDIFF_T_SUFFIX
847 HAVE_SIGNED_WINT_T
848 HAVE_SIGNED_WCHAR_T
849 HAVE_SIGNED_SIG_ATOMIC_T
850 BITSIZEOF_WINT_T
851 BITSIZEOF_WCHAR_T
852 BITSIZEOF_SIG_ATOMIC_T
853 BITSIZEOF_SIZE_T
854 BITSIZEOF_PTRDIFF_T
855 APPLE_UNIVERSAL_BUILD
856 HAVE_SYS_BITYPES_H
857 HAVE_SYS_INTTYPES_H
858 HAVE_STDINT_H
859 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
860 NEXT_STDINT_H
861 HAVE_SYS_TYPES_H
862 HAVE_INTTYPES_H
863 HAVE_WCHAR_H
864 HAVE_UNSIGNED_LONG_LONG_INT
865 HAVE_LONG_LONG_INT
866 HAVE_WINSOCK2_H
867 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
868 NEXT_SYS_TIME_H
869 REPLACE_STRUCT_TIMEVAL
870 REPLACE_GETTIMEOFDAY
871 HAVE_SYS_TIME_H
872 HAVE_STRUCT_TIMEVAL
873 HAVE_GETTIMEOFDAY
874 GNULIB_GETTIMEOFDAY
875 GNULIB_GL_UNISTD_H_GETOPT
876 GETOPT_H
877 HAVE_GETOPT_H
878 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
879 NEXT_GETOPT_H
880 GETLOADAVG_LIBS
881 REPLACE_WCTOMB
882 REPLACE_UNSETENV
883 REPLACE_STRTOD
884 REPLACE_SETENV
885 REPLACE_REALPATH
886 REPLACE_REALLOC
887 REPLACE_RANDOM_R
888 REPLACE_PUTENV
889 REPLACE_PTSNAME_R
890 REPLACE_PTSNAME
891 REPLACE_MKSTEMP
892 REPLACE_MBTOWC
893 REPLACE_MALLOC
894 REPLACE_CANONICALIZE_FILE_NAME
895 REPLACE_CALLOC
896 HAVE_DECL_UNSETENV
897 HAVE_UNLOCKPT
898 HAVE_SYS_LOADAVG_H
899 HAVE_STRUCT_RANDOM_DATA
900 HAVE_STRTOULL
901 HAVE_STRTOLL
902 HAVE_STRTOD
903 HAVE_DECL_SETENV
904 HAVE_SETENV
905 HAVE_SECURE_GETENV
906 HAVE_RPMATCH
907 HAVE_REALPATH
908 HAVE_RANDOM_R
909 HAVE_RANDOM_H
910 HAVE_RANDOM
911 HAVE_PTSNAME_R
912 HAVE_PTSNAME
913 HAVE_POSIX_OPENPT
914 HAVE_MKSTEMPS
915 HAVE_MKSTEMP
916 HAVE_MKOSTEMPS
917 HAVE_MKOSTEMP
918 HAVE_MKDTEMP
919 HAVE_GRANTPT
920 HAVE_GETSUBOPT
921 HAVE_DECL_GETLOADAVG
922 HAVE_CANONICALIZE_FILE_NAME
923 HAVE_ATOLL
924 HAVE__EXIT
925 GNULIB_WCTOMB
926 GNULIB_UNSETENV
927 GNULIB_UNLOCKPT
928 GNULIB_SYSTEM_POSIX
929 GNULIB_STRTOULL
930 GNULIB_STRTOLL
931 GNULIB_STRTOD
932 GNULIB_SETENV
933 GNULIB_SECURE_GETENV
934 GNULIB_RPMATCH
935 GNULIB_REALPATH
936 GNULIB_REALLOC_POSIX
937 GNULIB_RANDOM_R
938 GNULIB_RANDOM
939 GNULIB_PUTENV
940 GNULIB_PTSNAME_R
941 GNULIB_PTSNAME
942 GNULIB_POSIX_OPENPT
943 GNULIB_MKSTEMPS
944 GNULIB_MKSTEMP
945 GNULIB_MKOSTEMPS
946 GNULIB_MKOSTEMP
947 GNULIB_MKDTEMP
948 GNULIB_MBTOWC
949 GNULIB_MALLOC_POSIX
950 GNULIB_GRANTPT
951 GNULIB_GETSUBOPT
952 GNULIB_GETLOADAVG
953 GNULIB_CANONICALIZE_FILE_NAME
954 GNULIB_CALLOC_POSIX
955 GNULIB_ATOLL
956 GNULIB__EXIT
957 REPLACE_UTIMENSAT
958 REPLACE_STAT
959 REPLACE_MKNOD
960 REPLACE_MKFIFO
961 REPLACE_MKDIR
962 REPLACE_LSTAT
963 REPLACE_FUTIMENS
964 REPLACE_FSTATAT
965 REPLACE_FSTAT
966 HAVE_UTIMENSAT
967 HAVE_MKNODAT
968 HAVE_MKNOD
969 HAVE_MKFIFOAT
970 HAVE_MKFIFO
971 HAVE_MKDIRAT
972 HAVE_LSTAT
973 HAVE_LCHMOD
974 HAVE_FUTIMENS
975 HAVE_FSTATAT
976 HAVE_FCHMODAT
977 GNULIB_UTIMENSAT
978 GNULIB_STAT
979 GNULIB_MKNODAT
980 GNULIB_MKNOD
981 GNULIB_MKFIFOAT
982 GNULIB_MKFIFO
983 GNULIB_MKDIRAT
984 GNULIB_LSTAT
985 GNULIB_LCHMOD
986 GNULIB_FUTIMENS
987 GNULIB_FSTATAT
988 GNULIB_FSTAT
989 GNULIB_FCHMODAT
990 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
991 NEXT_FCNTL_H
992 REPLACE_OPENAT
993 REPLACE_OPEN
994 REPLACE_FCNTL
995 HAVE_OPENAT
996 HAVE_FCNTL
997 GNULIB_OPENAT
998 GNULIB_OPEN
999 GNULIB_NONBLOCKING
1000 GNULIB_FCNTL
1001 GL_GENERATE_EXECINFO_H_FALSE
1002 GL_GENERATE_EXECINFO_H_TRUE
1003 LIB_EXECINFO
1004 EXECINFO_H
1005 HAVE_DIRENT_H
1006 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1007 NEXT_DIRENT_H
1008 PRAGMA_COLUMNS
1009 PRAGMA_SYSTEM_HEADER
1010 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1011 INCLUDE_NEXT
1012 REPLACE_FDOPENDIR
1013 REPLACE_DIRFD
1014 REPLACE_CLOSEDIR
1015 REPLACE_OPENDIR
1016 HAVE_ALPHASORT
1017 HAVE_SCANDIR
1018 HAVE_FDOPENDIR
1019 HAVE_DECL_FDOPENDIR
1020 HAVE_DECL_DIRFD
1021 HAVE_CLOSEDIR
1022 HAVE_REWINDDIR
1023 HAVE_READDIR
1024 HAVE_OPENDIR
1025 GNULIB_ALPHASORT
1026 GNULIB_SCANDIR
1027 GNULIB_FDOPENDIR
1028 GNULIB_DIRFD
1029 GNULIB_CLOSEDIR
1030 GNULIB_REWINDDIR
1031 GNULIB_READDIR
1032 GNULIB_OPENDIR
1033 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1034 UNISTD_H_HAVE_WINSOCK2_H
1035 REPLACE_WRITE
1036 REPLACE_USLEEP
1037 REPLACE_UNLINKAT
1038 REPLACE_UNLINK
1039 REPLACE_TTYNAME_R
1040 REPLACE_SYMLINK
1041 REPLACE_SLEEP
1042 REPLACE_RMDIR
1043 REPLACE_READLINK
1044 REPLACE_READ
1045 REPLACE_PWRITE
1046 REPLACE_PREAD
1047 REPLACE_LSEEK
1048 REPLACE_LINKAT
1049 REPLACE_LINK
1050 REPLACE_LCHOWN
1051 REPLACE_ISATTY
1052 REPLACE_GETPAGESIZE
1053 REPLACE_GETGROUPS
1054 REPLACE_GETLOGIN_R
1055 REPLACE_GETDOMAINNAME
1056 REPLACE_GETCWD
1057 REPLACE_FTRUNCATE
1058 REPLACE_FCHOWNAT
1059 REPLACE_DUP2
1060 REPLACE_DUP
1061 REPLACE_CLOSE
1062 REPLACE_CHOWN
1063 HAVE_SYS_PARAM_H
1064 HAVE_OS_H
1065 HAVE_DECL_TTYNAME_R
1066 HAVE_DECL_SETHOSTNAME
1067 HAVE_DECL_GETUSERSHELL
1068 HAVE_DECL_GETPAGESIZE
1069 HAVE_DECL_GETLOGIN_R
1070 HAVE_DECL_GETDOMAINNAME
1071 HAVE_DECL_FDATASYNC
1072 HAVE_DECL_FCHDIR
1073 HAVE_DECL_ENVIRON
1074 HAVE_USLEEP
1075 HAVE_UNLINKAT
1076 HAVE_SYMLINKAT
1077 HAVE_SYMLINK
1078 HAVE_SLEEP
1079 HAVE_SETHOSTNAME
1080 HAVE_READLINKAT
1081 HAVE_READLINK
1082 HAVE_PWRITE
1083 HAVE_PREAD
1084 HAVE_PIPE2
1085 HAVE_PIPE
1086 HAVE_LINKAT
1087 HAVE_LINK
1088 HAVE_LCHOWN
1089 HAVE_GROUP_MEMBER
1090 HAVE_GETPAGESIZE
1091 HAVE_GETLOGIN
1092 HAVE_GETHOSTNAME
1093 HAVE_GETGROUPS
1094 HAVE_GETDTABLESIZE
1095 HAVE_FTRUNCATE
1096 HAVE_FSYNC
1097 HAVE_FDATASYNC
1098 HAVE_FCHOWNAT
1099 HAVE_FCHDIR
1100 HAVE_FACCESSAT
1101 HAVE_EUIDACCESS
1102 HAVE_DUP3
1103 HAVE_DUP2
1104 HAVE_CHOWN
1105 GNULIB_WRITE
1106 GNULIB_USLEEP
1107 GNULIB_UNLINKAT
1108 GNULIB_UNLINK
1109 GNULIB_UNISTD_H_SIGPIPE
1110 GNULIB_UNISTD_H_NONBLOCKING
1111 GNULIB_TTYNAME_R
1112 GNULIB_SYMLINKAT
1113 GNULIB_SYMLINK
1114 GNULIB_SLEEP
1115 GNULIB_SETHOSTNAME
1116 GNULIB_RMDIR
1117 GNULIB_READLINKAT
1118 GNULIB_READLINK
1119 GNULIB_READ
1120 GNULIB_PWRITE
1121 GNULIB_PREAD
1122 GNULIB_PIPE2
1123 GNULIB_PIPE
1124 GNULIB_LSEEK
1125 GNULIB_LINKAT
1126 GNULIB_LINK
1127 GNULIB_LCHOWN
1128 GNULIB_ISATTY
1129 GNULIB_GROUP_MEMBER
1130 GNULIB_GETUSERSHELL
1131 GNULIB_GETPAGESIZE
1132 GNULIB_GETLOGIN_R
1133 GNULIB_GETLOGIN
1134 GNULIB_GETHOSTNAME
1135 GNULIB_GETGROUPS
1136 GNULIB_GETDTABLESIZE
1137 GNULIB_GETDOMAINNAME
1138 GNULIB_GETCWD
1139 GNULIB_FTRUNCATE
1140 GNULIB_FSYNC
1141 GNULIB_FDATASYNC
1142 GNULIB_FCHOWNAT
1143 GNULIB_FCHDIR
1144 GNULIB_FACCESSAT
1145 GNULIB_EUIDACCESS
1146 GNULIB_ENVIRON
1147 GNULIB_DUP3
1148 GNULIB_DUP2
1149 GNULIB_DUP
1150 GNULIB_CLOSE
1151 GNULIB_CHOWN
1152 GNULIB_CHDIR
1153 LIB_CLOCK_GETTIME
1154 GL_GENERATE_ALLOCA_H_FALSE
1155 GL_GENERATE_ALLOCA_H_TRUE
1156 ALLOCA_H
1157 ALLOCA
1158 GL_COND_LIBTOOL_FALSE
1159 GL_COND_LIBTOOL_TRUE
1160 POST_ALLOC_OBJ
1161 PRE_ALLOC_OBJ
1162 CYGWIN_OBJ
1163 RALLOC_OBJ
1164 OLDXMENU_DEPS
1165 LIBX_OTHER
1166 LIBXMENU
1167 OLDXMENU
1168 OLDXMENU_TARGET
1169 LIBXT_OTHER
1170 TOOLKIT_LIBW
1171 WIDGET_OBJ
1172 XOBJ
1173 XMENU_OBJ
1174 FONT_OBJ
1175 OTHER_FILES
1176 GNU_OBJC_CFLAGS
1177 ns_appsrc
1178 ns_appresdir
1179 ns_appbindir
1180 ns_appdir
1181 X_TOOLKIT_TYPE
1182 GNUSTEP_CFLAGS
1183 C_SWITCH_X_SITE
1184 LD_SWITCH_X_SITE
1185 gameuser
1186 gamedir
1187 bitmapdir
1188 archlibdir
1189 etcdir
1190 x_default_search_path
1191 lisppath
1192 locallisppath
1193 standardlisppath
1194 leimdir
1195 lispdir
1196 srcdir
1197 canonical
1198 configuration
1199 version
1200 copyright
1201 KRB4LIB
1202 DESLIB
1203 KRB5LIB
1204 CRYPTOLIB
1205 COM_ERRLIB
1206 LIBRESOLV
1207 LIBHESIOD
1208 TERMCAP_OBJ
1209 LIBS_TERMCAP
1210 BLESSMAIL_TARGET
1211 LIBS_MAIL
1212 liblockfile
1213 LIBXML2_LIBS
1214 LIBXML2_CFLAGS
1215 LIBXSM
1216 LIBGPM
1217 LIBGIF
1218 LIBTIFF
1219 LIBPNG
1220 LIBJPEG
1221 LIBXPM
1222 M17N_FLT_LIBS
1223 M17N_FLT_CFLAGS
1224 LIBOTF_LIBS
1225 LIBOTF_CFLAGS
1226 FREETYPE_LIBS
1227 FREETYPE_CFLAGS
1228 XFT_LIBS
1229 XFT_CFLAGS
1230 FONTCONFIG_LIBS
1231 FONTCONFIG_CFLAGS
1232 LIBXMU
1233 LIBXTR6
1234 LIBACL_LIBS
1235 LIBGNUTLS_LIBS
1236 LIBGNUTLS_CFLAGS
1237 LIBSELINUX_LIBS
1238 SETTINGS_LIBS
1239 SETTINGS_CFLAGS
1240 GOBJECT_LIBS
1241 GOBJECT_CFLAGS
1242 GCONF_LIBS
1243 GCONF_CFLAGS
1244 GSETTINGS_LIBS
1245 GSETTINGS_CFLAGS
1246 DBUS_OBJ
1247 DBUS_LIBS
1248 DBUS_CFLAGS
1249 GTK_OBJ
1250 GTK_LIBS
1251 GTK_CFLAGS
1252 IMAGEMAGICK_LIBS
1253 IMAGEMAGICK_CFLAGS
1254 RSVG_LIBS
1255 RSVG_CFLAGS
1256 LIB_PTHREAD
1257 VMLIMIT_OBJ
1258 GMALLOC_OBJ
1259 HAVE_XSERVER
1260 W32_RES_LINK
1261 W32_RES
1262 W32_LIBS
1263 W32_OBJ
1264 WINDRES
1265 LIB_STANDARD
1266 NS_OBJC_OBJ
1267 NS_OBJ
1268 ns_self_contained
1269 INSTALL_ARCH_INDEP_EXTRA
1270 LIBS_GNUSTEP
1271 LD_SWITCH_X_SITE_RPATH
1272 XMKMF
1273 DEPFLAGS
1274 MKDEPDIR
1275 CFLAGS_SOUND
1276 ALSA_LIBS
1277 ALSA_CFLAGS
1278 LIBSOUND
1279 PKG_CONFIG
1280 CRT_DIR
1281 START_FILES
1282 LIB_MATH
1283 LIBS_SYSTEM
1284 C_SWITCH_SYSTEM
1285 UNEXEC_OBJ
1286 C_SWITCH_MACHINE
1287 LD_SWITCH_SYSTEM
1288 CANNOT_DUMP
1289 INFO_OPTS
1290 INFO_EXT
1291 HAVE_MAKEINFO
1292 PAXCTL
1293 GZIP_PROG
1294 INSTALL_INFO
1295 LN_S
1296 GNULIB_WARN_CFLAGS
1297 WARN_CFLAGS
1298 WERROR_CFLAGS
1299 RANLIB
1300 ARFLAGS
1302 EGREP
1303 GREP
1305 am__fastdepCC_FALSE
1306 am__fastdepCC_TRUE
1307 CCDEPMODE
1308 AMDEPBACKSLASH
1309 AMDEP_FALSE
1310 AMDEP_TRUE
1311 am__quote
1312 am__include
1313 DEPDIR
1314 OBJEXT
1315 EXEEXT
1316 ac_ct_CC
1317 CPPFLAGS
1318 LDFLAGS
1319 CFLAGS
1321 host_os
1322 host_vendor
1323 host_cpu
1324 host
1325 build_os
1326 build_vendor
1327 build_cpu
1328 build
1329 PROFILING_CFLAGS
1330 GZIP_INFO
1331 cache_file
1332 am__untar
1333 am__tar
1334 AMTAR
1335 am__leading_dot
1336 SET_MAKE
1338 mkdir_p
1339 MKDIR_P
1340 INSTALL_STRIP_PROGRAM
1341 STRIP
1342 install_sh
1343 MAKEINFO
1344 AUTOHEADER
1345 AUTOMAKE
1346 AUTOCONF
1347 ACLOCAL
1348 VERSION
1349 PACKAGE
1350 CYGPATH_W
1351 am__isrc
1352 INSTALL_DATA
1353 INSTALL_SCRIPT
1354 INSTALL_PROGRAM
1355 target_alias
1356 host_alias
1357 build_alias
1358 LIBS
1359 ECHO_T
1360 ECHO_N
1361 ECHO_C
1362 DEFS
1363 mandir
1364 localedir
1365 libdir
1366 psdir
1367 pdfdir
1368 dvidir
1369 htmldir
1370 infodir
1371 docdir
1372 oldincludedir
1373 includedir
1374 localstatedir
1375 sharedstatedir
1376 sysconfdir
1377 datadir
1378 datarootdir
1379 libexecdir
1380 sbindir
1381 bindir
1382 program_transform_name
1383 prefix
1384 exec_prefix
1385 PACKAGE_URL
1386 PACKAGE_BUGREPORT
1387 PACKAGE_STRING
1388 PACKAGE_VERSION
1389 PACKAGE_TARNAME
1390 PACKAGE_NAME
1391 PATH_SEPARATOR
1392 SHELL'
1393 ac_subst_files='deps_frag
1394 lisp_frag'
1395 ac_user_opts='
1396 enable_option_checking
1397 with_all
1398 with_pop
1399 with_kerberos
1400 with_kerberos5
1401 with_hesiod
1402 with_mmdf
1403 with_mail_unlink
1404 with_mailhost
1405 with_sound
1406 with_x_toolkit
1407 with_wide_int
1408 with_xpm
1409 with_jpeg
1410 with_tiff
1411 with_gif
1412 with_png
1413 with_rsvg
1414 with_xml2
1415 with_imagemagick
1416 with_xft
1417 with_libotf
1418 with_m17n_flt
1419 with_toolkit_scroll_bars
1420 with_xaw3d
1421 with_xim
1422 with_ns
1423 with_w32
1424 with_gpm
1425 with_dbus
1426 with_gconf
1427 with_gsettings
1428 with_selinux
1429 with_acl
1430 with_gnutls
1431 with_inotify
1432 with_makeinfo
1433 with_compress_info
1434 with_pkg_config_prog
1435 with_crt_dir
1436 with_gameuser
1437 with_gnustep_conf
1438 enable_ns_self_contained
1439 enable_locallisppath
1440 enable_checking
1441 enable_check_lisp_object_type
1442 enable_profiling
1443 enable_autodepend
1444 enable_gtk_deprecation_warnings
1445 enable_dependency_tracking
1446 enable_largefile
1447 enable_gcc_warnings
1448 enable_link_time_optimization
1449 with_x
1451 ac_precious_vars='build_alias
1452 host_alias
1453 target_alias
1455 CFLAGS
1456 LDFLAGS
1457 LIBS
1458 CPPFLAGS
1460 XMKMF'
1463 # Initialize some variables set by options.
1464 ac_init_help=
1465 ac_init_version=false
1466 ac_unrecognized_opts=
1467 ac_unrecognized_sep=
1468 # The variables have the same names as the options, with
1469 # dashes changed to underlines.
1470 cache_file=/dev/null
1471 exec_prefix=NONE
1472 no_create=
1473 no_recursion=
1474 prefix=NONE
1475 program_prefix=NONE
1476 program_suffix=NONE
1477 program_transform_name=s,x,x,
1478 silent=
1479 site=
1480 srcdir=
1481 verbose=
1482 x_includes=NONE
1483 x_libraries=NONE
1485 # Installation directory options.
1486 # These are left unexpanded so users can "make install exec_prefix=/foo"
1487 # and all the variables that are supposed to be based on exec_prefix
1488 # by default will actually change.
1489 # Use braces instead of parens because sh, perl, etc. also accept them.
1490 # (The list follows the same order as the GNU Coding Standards.)
1491 bindir='${exec_prefix}/bin'
1492 sbindir='${exec_prefix}/sbin'
1493 libexecdir='${exec_prefix}/libexec'
1494 datarootdir='${prefix}/share'
1495 datadir='${datarootdir}'
1496 sysconfdir='${prefix}/etc'
1497 sharedstatedir='${prefix}/com'
1498 localstatedir='${prefix}/var'
1499 includedir='${prefix}/include'
1500 oldincludedir='/usr/include'
1501 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1502 infodir='${datarootdir}/info'
1503 htmldir='${docdir}'
1504 dvidir='${docdir}'
1505 pdfdir='${docdir}'
1506 psdir='${docdir}'
1507 libdir='${exec_prefix}/lib'
1508 localedir='${datarootdir}/locale'
1509 mandir='${datarootdir}/man'
1511 ac_prev=
1512 ac_dashdash=
1513 for ac_option
1515 # If the previous option needs an argument, assign it.
1516 if test -n "$ac_prev"; then
1517 eval $ac_prev=\$ac_option
1518 ac_prev=
1519 continue
1522 case $ac_option in
1523 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1524 *) ac_optarg=yes ;;
1525 esac
1527 # Accept the important Cygnus configure options, so we can diagnose typos.
1529 case $ac_dashdash$ac_option in
1531 ac_dashdash=yes ;;
1533 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1534 ac_prev=bindir ;;
1535 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1536 bindir=$ac_optarg ;;
1538 -build | --build | --buil | --bui | --bu)
1539 ac_prev=build_alias ;;
1540 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1541 build_alias=$ac_optarg ;;
1543 -cache-file | --cache-file | --cache-fil | --cache-fi \
1544 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1545 ac_prev=cache_file ;;
1546 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1547 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1548 cache_file=$ac_optarg ;;
1550 --config-cache | -C)
1551 cache_file=config.cache ;;
1553 -datadir | --datadir | --datadi | --datad)
1554 ac_prev=datadir ;;
1555 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1556 datadir=$ac_optarg ;;
1558 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1559 | --dataroo | --dataro | --datar)
1560 ac_prev=datarootdir ;;
1561 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1562 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1563 datarootdir=$ac_optarg ;;
1565 -disable-* | --disable-*)
1566 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1567 # Reject names that are not valid shell variable names.
1568 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1569 as_fn_error "invalid feature name: $ac_useropt"
1570 ac_useropt_orig=$ac_useropt
1571 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1572 case $ac_user_opts in
1574 "enable_$ac_useropt"
1575 "*) ;;
1576 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1577 ac_unrecognized_sep=', ';;
1578 esac
1579 eval enable_$ac_useropt=no ;;
1581 -docdir | --docdir | --docdi | --doc | --do)
1582 ac_prev=docdir ;;
1583 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1584 docdir=$ac_optarg ;;
1586 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1587 ac_prev=dvidir ;;
1588 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1589 dvidir=$ac_optarg ;;
1591 -enable-* | --enable-*)
1592 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1593 # Reject names that are not valid shell variable names.
1594 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1595 as_fn_error "invalid feature name: $ac_useropt"
1596 ac_useropt_orig=$ac_useropt
1597 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1598 case $ac_user_opts in
1600 "enable_$ac_useropt"
1601 "*) ;;
1602 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1603 ac_unrecognized_sep=', ';;
1604 esac
1605 eval enable_$ac_useropt=\$ac_optarg ;;
1607 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1608 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1609 | --exec | --exe | --ex)
1610 ac_prev=exec_prefix ;;
1611 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1612 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1613 | --exec=* | --exe=* | --ex=*)
1614 exec_prefix=$ac_optarg ;;
1616 -gas | --gas | --ga | --g)
1617 # Obsolete; use --with-gas.
1618 with_gas=yes ;;
1620 -help | --help | --hel | --he | -h)
1621 ac_init_help=long ;;
1622 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1623 ac_init_help=recursive ;;
1624 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1625 ac_init_help=short ;;
1627 -host | --host | --hos | --ho)
1628 ac_prev=host_alias ;;
1629 -host=* | --host=* | --hos=* | --ho=*)
1630 host_alias=$ac_optarg ;;
1632 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1633 ac_prev=htmldir ;;
1634 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1635 | --ht=*)
1636 htmldir=$ac_optarg ;;
1638 -includedir | --includedir | --includedi | --included | --include \
1639 | --includ | --inclu | --incl | --inc)
1640 ac_prev=includedir ;;
1641 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1642 | --includ=* | --inclu=* | --incl=* | --inc=*)
1643 includedir=$ac_optarg ;;
1645 -infodir | --infodir | --infodi | --infod | --info | --inf)
1646 ac_prev=infodir ;;
1647 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1648 infodir=$ac_optarg ;;
1650 -libdir | --libdir | --libdi | --libd)
1651 ac_prev=libdir ;;
1652 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1653 libdir=$ac_optarg ;;
1655 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1656 | --libexe | --libex | --libe)
1657 ac_prev=libexecdir ;;
1658 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1659 | --libexe=* | --libex=* | --libe=*)
1660 libexecdir=$ac_optarg ;;
1662 -localedir | --localedir | --localedi | --localed | --locale)
1663 ac_prev=localedir ;;
1664 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1665 localedir=$ac_optarg ;;
1667 -localstatedir | --localstatedir | --localstatedi | --localstated \
1668 | --localstate | --localstat | --localsta | --localst | --locals)
1669 ac_prev=localstatedir ;;
1670 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1671 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1672 localstatedir=$ac_optarg ;;
1674 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1675 ac_prev=mandir ;;
1676 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1677 mandir=$ac_optarg ;;
1679 -nfp | --nfp | --nf)
1680 # Obsolete; use --without-fp.
1681 with_fp=no ;;
1683 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1684 | --no-cr | --no-c | -n)
1685 no_create=yes ;;
1687 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1688 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1689 no_recursion=yes ;;
1691 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1692 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1693 | --oldin | --oldi | --old | --ol | --o)
1694 ac_prev=oldincludedir ;;
1695 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1696 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1697 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1698 oldincludedir=$ac_optarg ;;
1700 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1701 ac_prev=prefix ;;
1702 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1703 prefix=$ac_optarg ;;
1705 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1706 | --program-pre | --program-pr | --program-p)
1707 ac_prev=program_prefix ;;
1708 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1709 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1710 program_prefix=$ac_optarg ;;
1712 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1713 | --program-suf | --program-su | --program-s)
1714 ac_prev=program_suffix ;;
1715 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1716 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1717 program_suffix=$ac_optarg ;;
1719 -program-transform-name | --program-transform-name \
1720 | --program-transform-nam | --program-transform-na \
1721 | --program-transform-n | --program-transform- \
1722 | --program-transform | --program-transfor \
1723 | --program-transfo | --program-transf \
1724 | --program-trans | --program-tran \
1725 | --progr-tra | --program-tr | --program-t)
1726 ac_prev=program_transform_name ;;
1727 -program-transform-name=* | --program-transform-name=* \
1728 | --program-transform-nam=* | --program-transform-na=* \
1729 | --program-transform-n=* | --program-transform-=* \
1730 | --program-transform=* | --program-transfor=* \
1731 | --program-transfo=* | --program-transf=* \
1732 | --program-trans=* | --program-tran=* \
1733 | --progr-tra=* | --program-tr=* | --program-t=*)
1734 program_transform_name=$ac_optarg ;;
1736 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1737 ac_prev=pdfdir ;;
1738 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1739 pdfdir=$ac_optarg ;;
1741 -psdir | --psdir | --psdi | --psd | --ps)
1742 ac_prev=psdir ;;
1743 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1744 psdir=$ac_optarg ;;
1746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747 | -silent | --silent | --silen | --sile | --sil)
1748 silent=yes ;;
1750 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1751 ac_prev=sbindir ;;
1752 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1753 | --sbi=* | --sb=*)
1754 sbindir=$ac_optarg ;;
1756 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1757 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1758 | --sharedst | --shareds | --shared | --share | --shar \
1759 | --sha | --sh)
1760 ac_prev=sharedstatedir ;;
1761 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1762 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1763 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1764 | --sha=* | --sh=*)
1765 sharedstatedir=$ac_optarg ;;
1767 -site | --site | --sit)
1768 ac_prev=site ;;
1769 -site=* | --site=* | --sit=*)
1770 site=$ac_optarg ;;
1772 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1773 ac_prev=srcdir ;;
1774 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1775 srcdir=$ac_optarg ;;
1777 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1778 | --syscon | --sysco | --sysc | --sys | --sy)
1779 ac_prev=sysconfdir ;;
1780 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1781 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1782 sysconfdir=$ac_optarg ;;
1784 -target | --target | --targe | --targ | --tar | --ta | --t)
1785 ac_prev=target_alias ;;
1786 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1787 target_alias=$ac_optarg ;;
1789 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1790 verbose=yes ;;
1792 -version | --version | --versio | --versi | --vers | -V)
1793 ac_init_version=: ;;
1795 -with-* | --with-*)
1796 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1797 # Reject names that are not valid shell variable names.
1798 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1799 as_fn_error "invalid package name: $ac_useropt"
1800 ac_useropt_orig=$ac_useropt
1801 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1802 case $ac_user_opts in
1804 "with_$ac_useropt"
1805 "*) ;;
1806 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1807 ac_unrecognized_sep=', ';;
1808 esac
1809 eval with_$ac_useropt=\$ac_optarg ;;
1811 -without-* | --without-*)
1812 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1813 # Reject names that are not valid shell variable names.
1814 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1815 as_fn_error "invalid package name: $ac_useropt"
1816 ac_useropt_orig=$ac_useropt
1817 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1818 case $ac_user_opts in
1820 "with_$ac_useropt"
1821 "*) ;;
1822 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1823 ac_unrecognized_sep=', ';;
1824 esac
1825 eval with_$ac_useropt=no ;;
1827 --x)
1828 # Obsolete; use --with-x.
1829 with_x=yes ;;
1831 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1832 | --x-incl | --x-inc | --x-in | --x-i)
1833 ac_prev=x_includes ;;
1834 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1835 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1836 x_includes=$ac_optarg ;;
1838 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1839 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1840 ac_prev=x_libraries ;;
1841 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1842 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1843 x_libraries=$ac_optarg ;;
1845 -*) as_fn_error "unrecognized option: \`$ac_option'
1846 Try \`$0 --help' for more information."
1849 *=*)
1850 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1851 # Reject names that are not valid shell variable names.
1852 case $ac_envvar in #(
1853 '' | [0-9]* | *[!_$as_cr_alnum]* )
1854 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1855 esac
1856 eval $ac_envvar=\$ac_optarg
1857 export $ac_envvar ;;
1860 # FIXME: should be removed in autoconf 3.0.
1861 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1862 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1863 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1864 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1867 esac
1868 done
1870 if test -n "$ac_prev"; then
1871 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1872 as_fn_error "missing argument to $ac_option"
1875 if test -n "$ac_unrecognized_opts"; then
1876 case $enable_option_checking in
1877 no) ;;
1878 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1879 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1880 esac
1883 # Check all directory arguments for consistency.
1884 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1885 datadir sysconfdir sharedstatedir localstatedir includedir \
1886 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1887 libdir localedir mandir
1889 eval ac_val=\$$ac_var
1890 # Remove trailing slashes.
1891 case $ac_val in
1892 */ )
1893 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1894 eval $ac_var=\$ac_val;;
1895 esac
1896 # Be sure to have absolute directory names.
1897 case $ac_val in
1898 [\\/$]* | ?:[\\/]* ) continue;;
1899 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1900 esac
1901 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1902 done
1904 # There might be people who depend on the old broken behavior: `$host'
1905 # used to hold the argument of --host etc.
1906 # FIXME: To remove some day.
1907 build=$build_alias
1908 host=$host_alias
1909 target=$target_alias
1911 # FIXME: To remove some day.
1912 if test "x$host_alias" != x; then
1913 if test "x$build_alias" = x; then
1914 cross_compiling=maybe
1915 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1916 If a cross compiler is detected then cross compile mode will be used." >&2
1917 elif test "x$build_alias" != "x$host_alias"; then
1918 cross_compiling=yes
1922 ac_tool_prefix=
1923 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1925 test "$silent" = yes && exec 6>/dev/null
1928 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1929 ac_ls_di=`ls -di .` &&
1930 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1931 as_fn_error "working directory cannot be determined"
1932 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1933 as_fn_error "pwd does not report name of working directory"
1936 # Find the source files, if location was not specified.
1937 if test -z "$srcdir"; then
1938 ac_srcdir_defaulted=yes
1939 # Try the directory containing this script, then the parent directory.
1940 ac_confdir=`$as_dirname -- "$as_myself" ||
1941 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1942 X"$as_myself" : 'X\(//\)[^/]' \| \
1943 X"$as_myself" : 'X\(//\)$' \| \
1944 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1945 $as_echo X"$as_myself" |
1946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1947 s//\1/
1950 /^X\(\/\/\)[^/].*/{
1951 s//\1/
1954 /^X\(\/\/\)$/{
1955 s//\1/
1958 /^X\(\/\).*/{
1959 s//\1/
1962 s/.*/./; q'`
1963 srcdir=$ac_confdir
1964 if test ! -r "$srcdir/$ac_unique_file"; then
1965 srcdir=..
1967 else
1968 ac_srcdir_defaulted=no
1970 if test ! -r "$srcdir/$ac_unique_file"; then
1971 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1972 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1974 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1975 ac_abs_confdir=`(
1976 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1977 pwd)`
1978 # When building in place, set srcdir=.
1979 if test "$ac_abs_confdir" = "$ac_pwd"; then
1980 srcdir=.
1982 # Remove unnecessary trailing slashes from srcdir.
1983 # Double slashes in file names in object file debugging info
1984 # mess up M-x gdb in Emacs.
1985 case $srcdir in
1986 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1987 esac
1988 for ac_var in $ac_precious_vars; do
1989 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1990 eval ac_env_${ac_var}_value=\$${ac_var}
1991 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1992 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1993 done
1996 # Report the --help message.
1998 if test "$ac_init_help" = "long"; then
1999 # Omit some internal or obsolete options to make the list less imposing.
2000 # This message is too long to be a string in the A/UX 3.1 sh.
2001 cat <<_ACEOF
2002 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2004 Usage: $0 [OPTION]... [VAR=VALUE]...
2006 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2007 VAR=VALUE. See below for descriptions of some of the useful variables.
2009 Defaults for the options are specified in brackets.
2011 Configuration:
2012 -h, --help display this help and exit
2013 --help=short display options specific to this package
2014 --help=recursive display the short help of all the included packages
2015 -V, --version display version information and exit
2016 -q, --quiet, --silent do not print \`checking...' messages
2017 --cache-file=FILE cache test results in FILE [disabled]
2018 -C, --config-cache alias for \`--cache-file=config.cache'
2019 -n, --no-create do not create output files
2020 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2022 Installation directories:
2023 --prefix=PREFIX install architecture-independent files in PREFIX
2024 [$ac_default_prefix]
2025 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2026 [PREFIX]
2028 By default, \`make install' will install all the files in
2029 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2030 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2031 for instance \`--prefix=\$HOME'.
2033 For better control, use the options below.
2035 Fine tuning of the installation directories:
2036 --bindir=DIR user executables [EPREFIX/bin]
2037 --sbindir=DIR system admin executables [EPREFIX/sbin]
2038 --libexecdir=DIR program executables [EPREFIX/libexec]
2039 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2040 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2041 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2042 --libdir=DIR object code libraries [EPREFIX/lib]
2043 --includedir=DIR C header files [PREFIX/include]
2044 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2045 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2046 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2047 --infodir=DIR info documentation [DATAROOTDIR/info]
2048 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2049 --mandir=DIR man documentation [DATAROOTDIR/man]
2050 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2051 --htmldir=DIR html documentation [DOCDIR]
2052 --dvidir=DIR dvi documentation [DOCDIR]
2053 --pdfdir=DIR pdf documentation [DOCDIR]
2054 --psdir=DIR ps documentation [DOCDIR]
2055 _ACEOF
2057 cat <<\_ACEOF
2059 Program names:
2060 --program-prefix=PREFIX prepend PREFIX to installed program names
2061 --program-suffix=SUFFIX append SUFFIX to installed program names
2062 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2064 X features:
2065 --x-includes=DIR X include files are in DIR
2066 --x-libraries=DIR X library files are in DIR
2068 System types:
2069 --build=BUILD configure for building on BUILD [guessed]
2070 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2071 _ACEOF
2074 if test -n "$ac_init_help"; then
2075 case $ac_init_help in
2076 short | recursive ) echo "Configuration of emacs 24.3.50:";;
2077 esac
2078 cat <<\_ACEOF
2080 Optional Features:
2081 --disable-option-checking ignore unrecognized --enable/--with options
2082 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2083 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2084 --disable-ns-self-contained
2085 disable self contained build under NeXTstep
2086 --enable-locallisppath=PATH
2087 directories Emacs should search for lisp files
2088 specific to this site
2089 --enable-checking[=LIST]
2090 enable expensive run-time checks. With LIST, enable
2091 only specific categories of checks. Categories are:
2092 all,yes,no. Flags are: stringbytes, stringoverrun,
2093 stringfreelist, xmallocoverrun, conslist, glyphs
2094 --enable-check-lisp-object-type
2095 enable compile time checks for the Lisp_Object data
2096 type. This is useful for development for catching
2097 certain types of bugs.
2098 --enable-profiling build emacs with low-level, gprof profiling support.
2099 Mainly useful for debugging Emacs itself. May not
2100 work on all platforms. Stops profiler.el working.
2101 --enable-autodepend automatically generate dependencies to .h-files.
2102 Requires GNU Make and Gcc. Enabled if GNU Make and
2103 Gcc is found
2104 --enable-gtk-deprecation-warnings
2105 Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0
2106 --disable-dependency-tracking speeds up one-time build
2107 --enable-dependency-tracking do not reject slow dependency extractors
2108 --disable-largefile omit support for large files
2109 --enable-gcc-warnings turn on lots of GCC warnings/errors. This is
2110 intended for developers, and may generate false
2111 alarms when used with older or non-GNU development
2112 tools.
2113 --enable-link-time-optimization
2114 build emacs with link-time optimization. This is
2115 supported only for GCC since 4.5.0.
2117 Optional Packages:
2118 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2119 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2120 --without-all omit almost all features and build small executable
2121 with minimal dependencies
2122 --without-pop don't support POP mail retrieval with movemail
2123 --with-kerberos support Kerberos-authenticated POP
2124 --with-kerberos5 support Kerberos version 5 authenticated POP
2125 --with-hesiod support Hesiod to get the POP server host
2126 --with-mmdf support MMDF mailboxes
2127 --with-mail-unlink unlink, rather than empty, mail spool after reading
2128 --with-mailhost=HOSTNAME
2129 string giving default POP mail host
2130 --without-sound don't compile with sound support
2131 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2132 gtk3, lucid or athena, motif, no)
2133 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2134 --without-xpm don't compile with XPM image support
2135 --without-jpeg don't compile with JPEG image support
2136 --without-tiff don't compile with TIFF image support
2137 --without-gif don't compile with GIF image support
2138 --without-png don't compile with PNG image support
2139 --without-rsvg don't compile with SVG image support
2140 --without-xml2 don't compile with XML parsing support
2141 --without-imagemagick don't compile with ImageMagick image support
2142 --without-xft don't use XFT for anti aliased fonts
2143 --without-libotf don't use libotf for OpenType font support
2144 --without-m17n-flt don't use m17n-flt for text shaping
2145 --without-toolkit-scroll-bars
2146 don't use Motif or Xaw3d scroll bars
2147 --without-xaw3d don't use Xaw3d
2148 --without-xim don't use X11 XIM
2149 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2150 --with-w32 use native MS Windows GUI
2151 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2152 console
2153 --without-dbus don't compile with D-Bus support
2154 --without-gconf don't compile with GConf support
2155 --without-gsettings don't compile with GSettings support
2156 --without-selinux don't compile with SELinux support
2157 --without-acl don't compile with ACL support
2158 --without-gnutls don't use -lgnutls for SSL/TLS support
2159 --without-inotify don't compile with inotify (file-watch) support
2160 --without-makeinfo don't require makeinfo for building manuals
2161 --without-compress-info don't compress the installed Info pages
2162 --with-pkg-config-prog=FILENAME
2163 file name of pkg-config for finding GTK and librsvg
2164 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2165 /usr/lib, or /usr/lib64 on some platforms.
2166 --with-gameuser=USER user for shared game score files
2167 --with-gnustep-conf=FILENAME
2168 name of GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2169 or /etc/GNUstep/GNUstep.conf
2170 --with-x use the X Window System
2172 Some influential environment variables:
2173 CC C compiler command
2174 CFLAGS C compiler flags
2175 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2176 nonstandard directory <lib dir>
2177 LIBS libraries to pass to the linker, e.g. -l<library>
2178 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2179 you have headers in a nonstandard directory <include dir>
2180 CPP C preprocessor
2181 XMKMF Path to xmkmf, Makefile generator for X Window System
2183 Use these variables to override the choices made by `configure' or to help
2184 it to find libraries and programs with nonstandard names/locations.
2186 Report bugs to the package provider.
2187 _ACEOF
2188 ac_status=$?
2191 if test "$ac_init_help" = "recursive"; then
2192 # If there are subdirs, report their specific --help.
2193 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2194 test -d "$ac_dir" ||
2195 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2196 continue
2197 ac_builddir=.
2199 case "$ac_dir" in
2200 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2202 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2203 # A ".." for each directory in $ac_dir_suffix.
2204 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2205 case $ac_top_builddir_sub in
2206 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2207 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2208 esac ;;
2209 esac
2210 ac_abs_top_builddir=$ac_pwd
2211 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2212 # for backward compatibility:
2213 ac_top_builddir=$ac_top_build_prefix
2215 case $srcdir in
2216 .) # We are building in place.
2217 ac_srcdir=.
2218 ac_top_srcdir=$ac_top_builddir_sub
2219 ac_abs_top_srcdir=$ac_pwd ;;
2220 [\\/]* | ?:[\\/]* ) # Absolute name.
2221 ac_srcdir=$srcdir$ac_dir_suffix;
2222 ac_top_srcdir=$srcdir
2223 ac_abs_top_srcdir=$srcdir ;;
2224 *) # Relative name.
2225 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2226 ac_top_srcdir=$ac_top_build_prefix$srcdir
2227 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2228 esac
2229 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2231 cd "$ac_dir" || { ac_status=$?; continue; }
2232 # Check for guested configure.
2233 if test -f "$ac_srcdir/configure.gnu"; then
2234 echo &&
2235 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2236 elif test -f "$ac_srcdir/configure"; then
2237 echo &&
2238 $SHELL "$ac_srcdir/configure" --help=recursive
2239 else
2240 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2241 fi || ac_status=$?
2242 cd "$ac_pwd" || { ac_status=$?; break; }
2243 done
2246 test -n "$ac_init_help" && exit $ac_status
2247 if $ac_init_version; then
2248 cat <<\_ACEOF
2249 emacs configure 24.3.50
2250 generated by GNU Autoconf 2.65
2252 Copyright (C) 2009 Free Software Foundation, Inc.
2253 This configure script is free software; the Free Software Foundation
2254 gives unlimited permission to copy, distribute and modify it.
2255 _ACEOF
2256 exit
2259 ## ------------------------ ##
2260 ## Autoconf initialization. ##
2261 ## ------------------------ ##
2263 # ac_fn_c_try_compile LINENO
2264 # --------------------------
2265 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2266 ac_fn_c_try_compile ()
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 rm -f conftest.$ac_objext
2270 if { { ac_try="$ac_compile"
2271 case "(($ac_try" in
2272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273 *) ac_try_echo=$ac_try;;
2274 esac
2275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2276 $as_echo "$ac_try_echo"; } >&5
2277 (eval "$ac_compile") 2>conftest.err
2278 ac_status=$?
2279 if test -s conftest.err; then
2280 grep -v '^ *+' conftest.err >conftest.er1
2281 cat conftest.er1 >&5
2282 mv -f conftest.er1 conftest.err
2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285 test $ac_status = 0; } && {
2286 test -z "$ac_c_werror_flag" ||
2287 test ! -s conftest.err
2288 } && test -s conftest.$ac_objext; then :
2289 ac_retval=0
2290 else
2291 $as_echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2294 ac_retval=1
2296 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2297 as_fn_set_status $ac_retval
2299 } # ac_fn_c_try_compile
2301 # ac_fn_c_try_cpp LINENO
2302 # ----------------------
2303 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2304 ac_fn_c_try_cpp ()
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 if { { ac_try="$ac_cpp conftest.$ac_ext"
2308 case "(($ac_try" in
2309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310 *) ac_try_echo=$ac_try;;
2311 esac
2312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2313 $as_echo "$ac_try_echo"; } >&5
2314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2315 ac_status=$?
2316 if test -s conftest.err; then
2317 grep -v '^ *+' conftest.err >conftest.er1
2318 cat conftest.er1 >&5
2319 mv -f conftest.er1 conftest.err
2321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2322 test $ac_status = 0; } >/dev/null && {
2323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2324 test ! -s conftest.err
2325 }; then :
2326 ac_retval=0
2327 else
2328 $as_echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2331 ac_retval=1
2333 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2334 as_fn_set_status $ac_retval
2336 } # ac_fn_c_try_cpp
2338 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2339 # -------------------------------------------------------
2340 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2341 # the include files in INCLUDES and setting the cache variable VAR
2342 # accordingly.
2343 ac_fn_c_check_header_mongrel ()
2345 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2346 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2348 $as_echo_n "checking for $2... " >&6; }
2349 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2350 $as_echo_n "(cached) " >&6
2352 eval ac_res=\$$3
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2354 $as_echo "$ac_res" >&6; }
2355 else
2356 # Is the header compilable?
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2358 $as_echo_n "checking $2 usability... " >&6; }
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2362 #include <$2>
2363 _ACEOF
2364 if ac_fn_c_try_compile "$LINENO"; then :
2365 ac_header_compiler=yes
2366 else
2367 ac_header_compiler=no
2369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2371 $as_echo "$ac_header_compiler" >&6; }
2373 # Is the header present?
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2375 $as_echo_n "checking $2 presence... " >&6; }
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2378 #include <$2>
2379 _ACEOF
2380 if ac_fn_c_try_cpp "$LINENO"; then :
2381 ac_header_preproc=yes
2382 else
2383 ac_header_preproc=no
2385 rm -f conftest.err conftest.$ac_ext
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2387 $as_echo "$ac_header_preproc" >&6; }
2389 # So? What about this header?
2390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2391 yes:no: )
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2393 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2395 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2397 no:yes:* )
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2399 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2401 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2403 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2405 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2407 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2409 esac
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2411 $as_echo_n "checking for $2... " >&6; }
2412 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2413 $as_echo_n "(cached) " >&6
2414 else
2415 eval "$3=\$ac_header_compiler"
2417 eval ac_res=\$$3
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2419 $as_echo "$ac_res" >&6; }
2421 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2423 } # ac_fn_c_check_header_mongrel
2425 # ac_fn_c_try_run LINENO
2426 # ----------------------
2427 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2428 # that executables *can* be run.
2429 ac_fn_c_try_run ()
2431 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432 if { { ac_try="$ac_link"
2433 case "(($ac_try" in
2434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2435 *) ac_try_echo=$ac_try;;
2436 esac
2437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2438 $as_echo "$ac_try_echo"; } >&5
2439 (eval "$ac_link") 2>&5
2440 ac_status=$?
2441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2442 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2443 { { case "(($ac_try" in
2444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445 *) ac_try_echo=$ac_try;;
2446 esac
2447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2448 $as_echo "$ac_try_echo"; } >&5
2449 (eval "$ac_try") 2>&5
2450 ac_status=$?
2451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2452 test $ac_status = 0; }; }; then :
2453 ac_retval=0
2454 else
2455 $as_echo "$as_me: program exited with status $ac_status" >&5
2456 $as_echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2459 ac_retval=$ac_status
2461 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2462 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2463 as_fn_set_status $ac_retval
2465 } # ac_fn_c_try_run
2467 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2468 # -------------------------------------------------------
2469 # Tests whether HEADER exists and can be compiled using the include files in
2470 # INCLUDES, setting the cache variable VAR accordingly.
2471 ac_fn_c_check_header_compile ()
2473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2475 $as_echo_n "checking for $2... " >&6; }
2476 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2477 $as_echo_n "(cached) " >&6
2478 else
2479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2480 /* end confdefs.h. */
2482 #include <$2>
2483 _ACEOF
2484 if ac_fn_c_try_compile "$LINENO"; then :
2485 eval "$3=yes"
2486 else
2487 eval "$3=no"
2489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491 eval ac_res=\$$3
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2493 $as_echo "$ac_res" >&6; }
2494 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2496 } # ac_fn_c_check_header_compile
2498 # ac_fn_c_try_link LINENO
2499 # -----------------------
2500 # Try to link conftest.$ac_ext, and return whether this succeeded.
2501 ac_fn_c_try_link ()
2503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2504 rm -f conftest.$ac_objext conftest$ac_exeext
2505 if { { ac_try="$ac_link"
2506 case "(($ac_try" in
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2509 esac
2510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2511 $as_echo "$ac_try_echo"; } >&5
2512 (eval "$ac_link") 2>conftest.err
2513 ac_status=$?
2514 if test -s conftest.err; then
2515 grep -v '^ *+' conftest.err >conftest.er1
2516 cat conftest.er1 >&5
2517 mv -f conftest.er1 conftest.err
2519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2520 test $ac_status = 0; } && {
2521 test -z "$ac_c_werror_flag" ||
2522 test ! -s conftest.err
2523 } && test -s conftest$ac_exeext && {
2524 test "$cross_compiling" = yes ||
2525 $as_test_x conftest$ac_exeext
2526 }; then :
2527 ac_retval=0
2528 else
2529 $as_echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2532 ac_retval=1
2534 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2535 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2536 # interfere with the next link command; also delete a directory that is
2537 # left behind by Apple's compiler. We do this before executing the actions.
2538 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2540 as_fn_set_status $ac_retval
2542 } # ac_fn_c_try_link
2544 # ac_fn_c_check_decl LINENO SYMBOL VAR
2545 # ------------------------------------
2546 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2547 ac_fn_c_check_decl ()
2549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2551 $as_echo_n "checking whether $2 is declared... " >&6; }
2552 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2553 $as_echo_n "(cached) " >&6
2554 else
2555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2559 main ()
2561 #ifndef $2
2562 (void) $2;
2563 #endif
2566 return 0;
2568 _ACEOF
2569 if ac_fn_c_try_compile "$LINENO"; then :
2570 eval "$3=yes"
2571 else
2572 eval "$3=no"
2574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2576 eval ac_res=\$$3
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2578 $as_echo "$ac_res" >&6; }
2579 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2581 } # ac_fn_c_check_decl
2583 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2584 # ----------------------------------------------
2585 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2586 ac_fn_c_check_header_preproc ()
2588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2590 $as_echo_n "checking for $2... " >&6; }
2591 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2592 $as_echo_n "(cached) " >&6
2593 else
2594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2595 /* end confdefs.h. */
2596 #include <$2>
2597 _ACEOF
2598 if ac_fn_c_try_cpp "$LINENO"; then :
2599 eval "$3=yes"
2600 else
2601 eval "$3=no"
2603 rm -f conftest.err conftest.$ac_ext
2605 eval ac_res=\$$3
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2607 $as_echo "$ac_res" >&6; }
2608 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2610 } # ac_fn_c_check_header_preproc
2612 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2613 # ----------------------------------------------------
2614 # Tries to find if the field MEMBER exists in type AGGR, after including
2615 # INCLUDES, setting cache variable VAR accordingly.
2616 ac_fn_c_check_member ()
2618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2620 $as_echo_n "checking for $2.$3... " >&6; }
2621 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2625 /* end confdefs.h. */
2628 main ()
2630 static $2 ac_aggr;
2631 if (ac_aggr.$3)
2632 return 0;
2634 return 0;
2636 _ACEOF
2637 if ac_fn_c_try_compile "$LINENO"; then :
2638 eval "$4=yes"
2639 else
2640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2641 /* end confdefs.h. */
2644 main ()
2646 static $2 ac_aggr;
2647 if (sizeof ac_aggr.$3)
2648 return 0;
2650 return 0;
2652 _ACEOF
2653 if ac_fn_c_try_compile "$LINENO"; then :
2654 eval "$4=yes"
2655 else
2656 eval "$4=no"
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662 eval ac_res=\$$4
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2664 $as_echo "$ac_res" >&6; }
2665 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2667 } # ac_fn_c_check_member
2669 # ac_fn_c_check_func LINENO FUNC VAR
2670 # ----------------------------------
2671 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2672 ac_fn_c_check_func ()
2674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2676 $as_echo_n "checking for $2... " >&6; }
2677 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2678 $as_echo_n "(cached) " >&6
2679 else
2680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681 /* end confdefs.h. */
2682 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2684 #define $2 innocuous_$2
2686 /* System header to define __stub macros and hopefully few prototypes,
2687 which can conflict with char $2 (); below.
2688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2689 <limits.h> exists even on freestanding compilers. */
2691 #ifdef __STDC__
2692 # include <limits.h>
2693 #else
2694 # include <assert.h>
2695 #endif
2697 #undef $2
2699 /* Override any GCC internal prototype to avoid an error.
2700 Use char because int might match the return type of a GCC
2701 builtin and then its argument prototype would still apply. */
2702 #ifdef __cplusplus
2703 extern "C"
2704 #endif
2705 char $2 ();
2706 /* The GNU C library defines this for functions which it implements
2707 to always fail with ENOSYS. Some functions are actually named
2708 something starting with __ and the normal name is an alias. */
2709 #if defined __stub_$2 || defined __stub___$2
2710 choke me
2711 #endif
2714 main ()
2716 return $2 ();
2718 return 0;
2720 _ACEOF
2721 if ac_fn_c_try_link "$LINENO"; then :
2722 eval "$3=yes"
2723 else
2724 eval "$3=no"
2726 rm -f core conftest.err conftest.$ac_objext \
2727 conftest$ac_exeext conftest.$ac_ext
2729 eval ac_res=\$$3
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2731 $as_echo "$ac_res" >&6; }
2732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2734 } # ac_fn_c_check_func
2736 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2737 # -------------------------------------------
2738 # Tests whether TYPE exists after having included INCLUDES, setting cache
2739 # variable VAR accordingly.
2740 ac_fn_c_check_type ()
2742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2744 $as_echo_n "checking for $2... " >&6; }
2745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 eval "$3=no"
2749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2750 /* end confdefs.h. */
2753 main ()
2755 if (sizeof ($2))
2756 return 0;
2758 return 0;
2760 _ACEOF
2761 if ac_fn_c_try_compile "$LINENO"; then :
2762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2763 /* end confdefs.h. */
2766 main ()
2768 if (sizeof (($2)))
2769 return 0;
2771 return 0;
2773 _ACEOF
2774 if ac_fn_c_try_compile "$LINENO"; then :
2776 else
2777 eval "$3=yes"
2779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2783 eval ac_res=\$$3
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2785 $as_echo "$ac_res" >&6; }
2786 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2788 } # ac_fn_c_check_type
2790 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2791 # --------------------------------------------
2792 # Tries to find the compile-time value of EXPR in a program that includes
2793 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2794 # computed
2795 ac_fn_c_compute_int ()
2797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2798 if test "$cross_compiling" = yes; then
2799 # Depending upon the size, compute the lo and hi bounds.
2800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2801 /* end confdefs.h. */
2804 main ()
2806 static int test_array [1 - 2 * !(($2) >= 0)];
2807 test_array [0] = 0
2810 return 0;
2812 _ACEOF
2813 if ac_fn_c_try_compile "$LINENO"; then :
2814 ac_lo=0 ac_mid=0
2815 while :; do
2816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h. */
2820 main ()
2822 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2823 test_array [0] = 0
2826 return 0;
2828 _ACEOF
2829 if ac_fn_c_try_compile "$LINENO"; then :
2830 ac_hi=$ac_mid; break
2831 else
2832 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2833 if test $ac_lo -le $ac_mid; then
2834 ac_lo= ac_hi=
2835 break
2837 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840 done
2841 else
2842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843 /* end confdefs.h. */
2846 main ()
2848 static int test_array [1 - 2 * !(($2) < 0)];
2849 test_array [0] = 0
2852 return 0;
2854 _ACEOF
2855 if ac_fn_c_try_compile "$LINENO"; then :
2856 ac_hi=-1 ac_mid=-1
2857 while :; do
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_lo=$ac_mid; break
2873 else
2874 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2875 if test $ac_mid -le $ac_hi; then
2876 ac_lo= ac_hi=
2877 break
2879 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2882 done
2883 else
2884 ac_lo= ac_hi=
2886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2889 # Binary search between lo and hi bounds.
2890 while test "x$ac_lo" != "x$ac_hi"; do
2891 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2893 /* end confdefs.h. */
2896 main ()
2898 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2899 test_array [0] = 0
2902 return 0;
2904 _ACEOF
2905 if ac_fn_c_try_compile "$LINENO"; then :
2906 ac_hi=$ac_mid
2907 else
2908 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911 done
2912 case $ac_lo in #((
2913 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2914 '') ac_retval=1 ;;
2915 esac
2916 else
2917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2918 /* end confdefs.h. */
2920 static long int longval () { return $2; }
2921 static unsigned long int ulongval () { return $2; }
2922 #include <stdio.h>
2923 #include <stdlib.h>
2925 main ()
2928 FILE *f = fopen ("conftest.val", "w");
2929 if (! f)
2930 return 1;
2931 if (($2) < 0)
2933 long int i = longval ();
2934 if (i != ($2))
2935 return 1;
2936 fprintf (f, "%ld", i);
2938 else
2940 unsigned long int i = ulongval ();
2941 if (i != ($2))
2942 return 1;
2943 fprintf (f, "%lu", i);
2945 /* Do not output a trailing newline, as this causes \r\n confusion
2946 on some platforms. */
2947 return ferror (f) || fclose (f) != 0;
2950 return 0;
2952 _ACEOF
2953 if ac_fn_c_try_run "$LINENO"; then :
2954 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2955 else
2956 ac_retval=1
2958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2959 conftest.$ac_objext conftest.beam conftest.$ac_ext
2960 rm -f conftest.val
2963 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2964 as_fn_set_status $ac_retval
2966 } # ac_fn_c_compute_int
2967 cat >config.log <<_ACEOF
2968 This file contains any messages produced by compilers while
2969 running configure, to aid debugging if configure makes a mistake.
2971 It was created by emacs $as_me 24.3.50, which was
2972 generated by GNU Autoconf 2.65. Invocation command line was
2974 $ $0 $@
2976 _ACEOF
2977 exec 5>>config.log
2979 cat <<_ASUNAME
2980 ## --------- ##
2981 ## Platform. ##
2982 ## --------- ##
2984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2985 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2986 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2987 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2988 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2991 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2993 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2994 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2996 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2997 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2998 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2999 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3001 _ASUNAME
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3006 IFS=$as_save_IFS
3007 test -z "$as_dir" && as_dir=.
3008 $as_echo "PATH: $as_dir"
3009 done
3010 IFS=$as_save_IFS
3012 } >&5
3014 cat >&5 <<_ACEOF
3017 ## ----------- ##
3018 ## Core tests. ##
3019 ## ----------- ##
3021 _ACEOF
3024 # Keep a trace of the command line.
3025 # Strip out --no-create and --no-recursion so they do not pile up.
3026 # Strip out --silent because we don't want to record it for future runs.
3027 # Also quote any args containing shell meta-characters.
3028 # Make two passes to allow for proper duplicate-argument suppression.
3029 ac_configure_args=
3030 ac_configure_args0=
3031 ac_configure_args1=
3032 ac_must_keep_next=false
3033 for ac_pass in 1 2
3035 for ac_arg
3037 case $ac_arg in
3038 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3040 | -silent | --silent | --silen | --sile | --sil)
3041 continue ;;
3042 *\'*)
3043 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3044 esac
3045 case $ac_pass in
3046 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3048 as_fn_append ac_configure_args1 " '$ac_arg'"
3049 if test $ac_must_keep_next = true; then
3050 ac_must_keep_next=false # Got value, back to normal.
3051 else
3052 case $ac_arg in
3053 *=* | --config-cache | -C | -disable-* | --disable-* \
3054 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3055 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3056 | -with-* | --with-* | -without-* | --without-* | --x)
3057 case "$ac_configure_args0 " in
3058 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3059 esac
3061 -* ) ac_must_keep_next=true ;;
3062 esac
3064 as_fn_append ac_configure_args " '$ac_arg'"
3066 esac
3067 done
3068 done
3069 { ac_configure_args0=; unset ac_configure_args0;}
3070 { ac_configure_args1=; unset ac_configure_args1;}
3072 # When interrupted or exit'd, cleanup temporary files, and complete
3073 # config.log. We remove comments because anyway the quotes in there
3074 # would cause problems or look ugly.
3075 # WARNING: Use '\'' to represent an apostrophe within the trap.
3076 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3077 trap 'exit_status=$?
3078 # Save into config.log some information that might help in debugging.
3080 echo
3082 cat <<\_ASBOX
3083 ## ---------------- ##
3084 ## Cache variables. ##
3085 ## ---------------- ##
3086 _ASBOX
3087 echo
3088 # The following way of writing the cache mishandles newlines in values,
3090 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3091 eval ac_val=\$$ac_var
3092 case $ac_val in #(
3093 *${as_nl}*)
3094 case $ac_var in #(
3095 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3096 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3097 esac
3098 case $ac_var in #(
3099 _ | IFS | as_nl) ;; #(
3100 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3101 *) { eval $ac_var=; unset $ac_var;} ;;
3102 esac ;;
3103 esac
3104 done
3105 (set) 2>&1 |
3106 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3107 *${as_nl}ac_space=\ *)
3108 sed -n \
3109 "s/'\''/'\''\\\\'\'''\''/g;
3110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3111 ;; #(
3113 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3115 esac |
3116 sort
3118 echo
3120 cat <<\_ASBOX
3121 ## ----------------- ##
3122 ## Output variables. ##
3123 ## ----------------- ##
3124 _ASBOX
3125 echo
3126 for ac_var in $ac_subst_vars
3128 eval ac_val=\$$ac_var
3129 case $ac_val in
3130 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3131 esac
3132 $as_echo "$ac_var='\''$ac_val'\''"
3133 done | sort
3134 echo
3136 if test -n "$ac_subst_files"; then
3137 cat <<\_ASBOX
3138 ## ------------------- ##
3139 ## File substitutions. ##
3140 ## ------------------- ##
3141 _ASBOX
3142 echo
3143 for ac_var in $ac_subst_files
3145 eval ac_val=\$$ac_var
3146 case $ac_val in
3147 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3148 esac
3149 $as_echo "$ac_var='\''$ac_val'\''"
3150 done | sort
3151 echo
3154 if test -s confdefs.h; then
3155 cat <<\_ASBOX
3156 ## ----------- ##
3157 ## confdefs.h. ##
3158 ## ----------- ##
3159 _ASBOX
3160 echo
3161 cat confdefs.h
3162 echo
3164 test "$ac_signal" != 0 &&
3165 $as_echo "$as_me: caught signal $ac_signal"
3166 $as_echo "$as_me: exit $exit_status"
3167 } >&5
3168 rm -f core *.core core.conftest.* &&
3169 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3170 exit $exit_status
3172 for ac_signal in 1 2 13 15; do
3173 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3174 done
3175 ac_signal=0
3177 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3178 rm -f -r conftest* confdefs.h
3180 $as_echo "/* confdefs.h */" > confdefs.h
3182 # Predefined preprocessor variables.
3184 cat >>confdefs.h <<_ACEOF
3185 #define PACKAGE_NAME "$PACKAGE_NAME"
3186 _ACEOF
3188 cat >>confdefs.h <<_ACEOF
3189 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3190 _ACEOF
3192 cat >>confdefs.h <<_ACEOF
3193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3194 _ACEOF
3196 cat >>confdefs.h <<_ACEOF
3197 #define PACKAGE_STRING "$PACKAGE_STRING"
3198 _ACEOF
3200 cat >>confdefs.h <<_ACEOF
3201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3202 _ACEOF
3204 cat >>confdefs.h <<_ACEOF
3205 #define PACKAGE_URL "$PACKAGE_URL"
3206 _ACEOF
3209 # Let the site file select an alternate cache file if it wants to.
3210 # Prefer an explicitly selected file to automatically selected ones.
3211 ac_site_file1=NONE
3212 ac_site_file2=NONE
3213 if test -n "$CONFIG_SITE"; then
3214 ac_site_file1=$CONFIG_SITE
3215 elif test "x$prefix" != xNONE; then
3216 ac_site_file1=$prefix/share/config.site
3217 ac_site_file2=$prefix/etc/config.site
3218 else
3219 ac_site_file1=$ac_default_prefix/share/config.site
3220 ac_site_file2=$ac_default_prefix/etc/config.site
3222 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3224 test "x$ac_site_file" = xNONE && continue
3225 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3227 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3228 sed 's/^/| /' "$ac_site_file" >&5
3229 . "$ac_site_file"
3231 done
3233 if test -r "$cache_file"; then
3234 # Some versions of bash will fail to source /dev/null (special files
3235 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3236 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3238 $as_echo "$as_me: loading cache $cache_file" >&6;}
3239 case $cache_file in
3240 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3241 *) . "./$cache_file";;
3242 esac
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3246 $as_echo "$as_me: creating cache $cache_file" >&6;}
3247 >$cache_file
3250 as_fn_append ac_header_list " linux/version.h"
3251 as_fn_append ac_header_list " sys/systeminfo.h"
3252 as_fn_append ac_header_list " coff.h"
3253 as_fn_append ac_header_list " pty.h"
3254 as_fn_append ac_header_list " sys/vlimit.h"
3255 as_fn_append ac_header_list " sys/resource.h"
3256 as_fn_append ac_header_list " sys/utsname.h"
3257 as_fn_append ac_header_list " pwd.h"
3258 as_fn_append ac_header_list " utmp.h"
3259 as_fn_append ac_header_list " util.h"
3260 as_fn_append ac_header_list " sys/socket.h"
3261 as_fn_append ac_header_list " stdlib.h"
3262 as_fn_append ac_header_list " unistd.h"
3263 as_fn_append ac_header_list " sys/param.h"
3264 as_fn_append ac_header_list " pthread.h"
3265 as_fn_append ac_header_list " malloc/malloc.h"
3266 as_fn_append ac_header_list " maillock.h"
3267 as_fn_append ac_header_list " sys/un.h"
3268 as_fn_append ac_func_list " tzset"
3269 as_fn_append ac_func_list " readlinkat"
3270 as_fn_append ac_header_list " dirent.h"
3271 as_fn_append ac_header_list " execinfo.h"
3272 as_fn_append ac_func_list " faccessat"
3273 as_fn_append ac_func_list " fdopendir"
3274 as_fn_append ac_header_list " stdio_ext.h"
3275 as_fn_append ac_func_list " __fpending"
3276 as_fn_append ac_func_list " fstatat"
3277 gl_getopt_required=GNU
3278 as_fn_append ac_header_list " getopt.h"
3279 as_fn_append ac_func_list " gettimeofday"
3280 as_fn_append ac_func_list " nanotime"
3281 as_fn_append ac_header_list " sys/time.h"
3282 as_fn_append ac_header_list " wchar.h"
3283 as_fn_append ac_header_list " stdint.h"
3284 as_fn_append ac_header_list " inttypes.h"
3285 as_fn_append ac_func_list " lstat"
3286 as_fn_append ac_func_list " alarm"
3287 as_fn_append ac_header_list " sys/select.h"
3288 as_fn_append ac_func_list " pselect"
3289 as_fn_append ac_func_list " pthread_sigmask"
3290 as_fn_append ac_func_list " readlink"
3291 as_fn_append ac_func_list " strtoimax"
3292 as_fn_append ac_func_list " strtoumax"
3293 as_fn_append ac_func_list " symlink"
3294 as_fn_append ac_header_list " sys/stat.h"
3295 as_fn_append ac_func_list " localtime_r"
3296 as_fn_append ac_header_list " utime.h"
3297 as_fn_append ac_func_list " futimes"
3298 as_fn_append ac_func_list " futimesat"
3299 as_fn_append ac_func_list " futimens"
3300 as_fn_append ac_func_list " utimensat"
3301 as_fn_append ac_func_list " lutimes"
3302 # Check that the precious variables saved in the cache have kept the same
3303 # value.
3304 ac_cache_corrupted=false
3305 for ac_var in $ac_precious_vars; do
3306 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3307 eval ac_new_set=\$ac_env_${ac_var}_set
3308 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3309 eval ac_new_val=\$ac_env_${ac_var}_value
3310 case $ac_old_set,$ac_new_set in
3311 set,)
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3313 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3314 ac_cache_corrupted=: ;;
3315 ,set)
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3317 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3318 ac_cache_corrupted=: ;;
3319 ,);;
3321 if test "x$ac_old_val" != "x$ac_new_val"; then
3322 # differences in whitespace do not lead to failure.
3323 ac_old_val_w=`echo x $ac_old_val`
3324 ac_new_val_w=`echo x $ac_new_val`
3325 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3327 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3328 ac_cache_corrupted=:
3329 else
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3331 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3332 eval $ac_var=\$ac_old_val
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3335 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3337 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3338 fi;;
3339 esac
3340 # Pass precious variables to config.status.
3341 if test "$ac_new_set" = set; then
3342 case $ac_new_val in
3343 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3344 *) ac_arg=$ac_var=$ac_new_val ;;
3345 esac
3346 case " $ac_configure_args " in
3347 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3348 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3349 esac
3351 done
3352 if $ac_cache_corrupted; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3356 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3357 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3359 ## -------------------- ##
3360 ## Main body of script. ##
3361 ## -------------------- ##
3363 ac_ext=c
3364 ac_cpp='$CPP $CPPFLAGS'
3365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3371 emacs_config_options="$@"
3372 ## Add some environment variables, if they were passed via the environment
3373 ## rather than on the command-line.
3374 for var in CFLAGS CPPFLAGS LDFLAGS; do
3375 case "$emacs_config_options" in
3376 *$var=*) continue ;;
3377 esac
3378 eval val="\$${var}"
3379 test x"$val" = x && continue
3380 emacs_config_options="${emacs_config_options}${emacs_config_options:+ }$var=$val"
3381 done
3383 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3386 ac_aux_dir=
3387 for ac_dir in build-aux "$srcdir"/build-aux; do
3388 for ac_t in install-sh install.sh shtool; do
3389 if test -f "$ac_dir/$ac_t"; then
3390 ac_aux_dir=$ac_dir
3391 ac_install_sh="$ac_aux_dir/$ac_t -c"
3392 break 2
3394 done
3395 done
3396 if test -z "$ac_aux_dir"; then
3397 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3400 # These three variables are undocumented and unsupported,
3401 # and are intended to be withdrawn in a future Autoconf release.
3402 # They can cause serious problems if a builder's source tree is in a directory
3403 # whose full name contains unusual characters.
3404 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3405 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3406 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3409 am__api_version='1.11'
3411 # Find a good install program. We prefer a C program (faster),
3412 # so one script is as good as another. But avoid the broken or
3413 # incompatible versions:
3414 # SysV /etc/install, /usr/sbin/install
3415 # SunOS /usr/etc/install
3416 # IRIX /sbin/install
3417 # AIX /bin/install
3418 # AmigaOS /C/install, which installs bootblocks on floppy discs
3419 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3420 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3421 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3422 # OS/2's system install, which has a completely different semantic
3423 # ./install, which can be erroneously created by make from ./install.sh.
3424 # Reject install programs that cannot install multiple files.
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3426 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3427 if test -z "$INSTALL"; then
3428 if test "${ac_cv_path_install+set}" = set; then :
3429 $as_echo_n "(cached) " >&6
3430 else
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3434 IFS=$as_save_IFS
3435 test -z "$as_dir" && as_dir=.
3436 # Account for people who put trailing slashes in PATH elements.
3437 case $as_dir/ in #((
3438 ./ | .// | /[cC]/* | \
3439 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3440 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3441 /usr/ucb/* ) ;;
3443 # OSF1 and SCO ODT 3.0 have their own names for install.
3444 # Don't use installbsd from OSF since it installs stuff as root
3445 # by default.
3446 for ac_prog in ginstall scoinst install; do
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3449 if test $ac_prog = install &&
3450 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3451 # AIX install. It has an incompatible calling convention.
3453 elif test $ac_prog = install &&
3454 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3455 # program-specific install script used by HP pwplus--don't use.
3457 else
3458 rm -rf conftest.one conftest.two conftest.dir
3459 echo one > conftest.one
3460 echo two > conftest.two
3461 mkdir conftest.dir
3462 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3463 test -s conftest.one && test -s conftest.two &&
3464 test -s conftest.dir/conftest.one &&
3465 test -s conftest.dir/conftest.two
3466 then
3467 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3468 break 3
3472 done
3473 done
3475 esac
3477 done
3478 IFS=$as_save_IFS
3480 rm -rf conftest.one conftest.two conftest.dir
3483 if test "${ac_cv_path_install+set}" = set; then
3484 INSTALL=$ac_cv_path_install
3485 else
3486 # As a last resort, use the slow shell script. Don't cache a
3487 # value for INSTALL within a source directory, because that will
3488 # break other packages using the cache if that directory is
3489 # removed, or if the value is a relative name.
3490 INSTALL=$ac_install_sh
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3494 $as_echo "$INSTALL" >&6; }
3496 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3497 # It thinks the first close brace ends the variable substitution.
3498 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3500 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3502 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3505 $as_echo_n "checking whether build environment is sane... " >&6; }
3506 # Just in case
3507 sleep 1
3508 echo timestamp > conftest.file
3509 # Reject unsafe characters in $srcdir or the absolute working directory
3510 # name. Accept space and tab only in the latter.
3511 am_lf='
3513 case `pwd` in
3514 *[\\\"\#\$\&\'\`$am_lf]*)
3515 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3516 esac
3517 case $srcdir in
3518 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3519 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3520 esac
3522 # Do `set' in a subshell so we don't clobber the current shell's
3523 # arguments. Must try -L first in case configure is actually a
3524 # symlink; some systems play weird games with the mod time of symlinks
3525 # (eg FreeBSD returns the mod time of the symlink's containing
3526 # directory).
3527 if (
3528 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3529 if test "$*" = "X"; then
3530 # -L didn't work.
3531 set X `ls -t "$srcdir/configure" conftest.file`
3533 rm -f conftest.file
3534 if test "$*" != "X $srcdir/configure conftest.file" \
3535 && test "$*" != "X conftest.file $srcdir/configure"; then
3537 # If neither matched, then we have a broken ls. This can happen
3538 # if, for instance, CONFIG_SHELL is bash and it inherits a
3539 # broken ls alias from the environment. This has actually
3540 # happened. Such a system could not be considered "sane".
3541 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3542 alias in your environment" "$LINENO" 5
3545 test "$2" = conftest.file
3547 then
3548 # Ok.
3550 else
3551 as_fn_error "newly created file is older than distributed files!
3552 Check your system clock" "$LINENO" 5
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3555 $as_echo "yes" >&6; }
3556 test "$program_prefix" != NONE &&
3557 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3558 # Use a double $ so make ignores it.
3559 test "$program_suffix" != NONE &&
3560 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3561 # Double any \ or $.
3562 # By default was `s,x,x', remove it if useless.
3563 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3564 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3566 # expand $ac_aux_dir to an absolute path
3567 am_aux_dir=`cd $ac_aux_dir && pwd`
3569 if test x"${MISSING+set}" != xset; then
3570 case $am_aux_dir in
3571 *\ * | *\ *)
3572 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3574 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3575 esac
3577 # Use eval to expand $SHELL
3578 if eval "$MISSING --run true"; then
3579 am_missing_run="$MISSING --run "
3580 else
3581 am_missing_run=
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3583 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3586 if test x"${install_sh}" != xset; then
3587 case $am_aux_dir in
3588 *\ * | *\ *)
3589 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3591 install_sh="\${SHELL} $am_aux_dir/install-sh"
3592 esac
3595 # Installed binaries are usually stripped using `strip' when the user
3596 # run `make install-strip'. However `strip' might not be the right
3597 # tool to use in cross-compilation environments, therefore Automake
3598 # will honor the `STRIP' environment variable to overrule this program.
3599 if test "$cross_compiling" != no; then
3600 if test -n "$ac_tool_prefix"; then
3601 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3602 set dummy ${ac_tool_prefix}strip; ac_word=$2
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 $as_echo_n "checking for $ac_word... " >&6; }
3605 if test "${ac_cv_prog_STRIP+set}" = set; then :
3606 $as_echo_n "(cached) " >&6
3607 else
3608 if test -n "$STRIP"; then
3609 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3618 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 break 2
3622 done
3623 done
3624 IFS=$as_save_IFS
3628 STRIP=$ac_cv_prog_STRIP
3629 if test -n "$STRIP"; then
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3631 $as_echo "$STRIP" >&6; }
3632 else
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3639 if test -z "$ac_cv_prog_STRIP"; then
3640 ac_ct_STRIP=$STRIP
3641 # Extract the first word of "strip", so it can be a program name with args.
3642 set dummy strip; ac_word=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3646 $as_echo_n "(cached) " >&6
3647 else
3648 if test -n "$ac_ct_STRIP"; then
3649 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3650 else
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH
3654 IFS=$as_save_IFS
3655 test -z "$as_dir" && as_dir=.
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3658 ac_cv_prog_ac_ct_STRIP="strip"
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 break 2
3662 done
3663 done
3664 IFS=$as_save_IFS
3668 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3669 if test -n "$ac_ct_STRIP"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3671 $as_echo "$ac_ct_STRIP" >&6; }
3672 else
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3677 if test "x$ac_ct_STRIP" = x; then
3678 STRIP=":"
3679 else
3680 case $cross_compiling:$ac_tool_warned in
3681 yes:)
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3684 ac_tool_warned=yes ;;
3685 esac
3686 STRIP=$ac_ct_STRIP
3688 else
3689 STRIP="$ac_cv_prog_STRIP"
3693 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3696 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3697 if test -z "$MKDIR_P"; then
3698 if test "${ac_cv_path_mkdir+set}" = set; then :
3699 $as_echo_n "(cached) " >&6
3700 else
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
3706 for ac_prog in mkdir gmkdir; do
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3709 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3710 'mkdir (GNU coreutils) '* | \
3711 'mkdir (coreutils) '* | \
3712 'mkdir (fileutils) '4.1*)
3713 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3714 break 3;;
3715 esac
3716 done
3717 done
3718 done
3719 IFS=$as_save_IFS
3723 test -d ./--version && rmdir ./--version
3724 if test "${ac_cv_path_mkdir+set}" = set; then
3725 MKDIR_P="$ac_cv_path_mkdir -p"
3726 else
3727 # As a last resort, use the slow shell script. Don't cache a
3728 # value for MKDIR_P within a source directory, because that will
3729 # break other packages using the cache if that directory is
3730 # removed, or if the value is a relative name.
3731 MKDIR_P="$ac_install_sh -d"
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3735 $as_echo "$MKDIR_P" >&6; }
3737 mkdir_p="$MKDIR_P"
3738 case $mkdir_p in
3739 [\\/$]* | ?:[\\/]*) ;;
3740 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3741 esac
3743 for ac_prog in gawk mawk nawk awk
3745 # Extract the first word of "$ac_prog", so it can be a program name with args.
3746 set dummy $ac_prog; ac_word=$2
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748 $as_echo_n "checking for $ac_word... " >&6; }
3749 if test "${ac_cv_prog_AWK+set}" = set; then :
3750 $as_echo_n "(cached) " >&6
3751 else
3752 if test -n "$AWK"; then
3753 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3754 else
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3758 IFS=$as_save_IFS
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3762 ac_cv_prog_AWK="$ac_prog"
3763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 break 2
3766 done
3767 done
3768 IFS=$as_save_IFS
3772 AWK=$ac_cv_prog_AWK
3773 if test -n "$AWK"; then
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3775 $as_echo "$AWK" >&6; }
3776 else
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3782 test -n "$AWK" && break
3783 done
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3786 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3787 set x ${MAKE-make}
3788 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3789 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3790 $as_echo_n "(cached) " >&6
3791 else
3792 cat >conftest.make <<\_ACEOF
3793 SHELL = /bin/sh
3794 all:
3795 @echo '@@@%%%=$(MAKE)=@@@%%%'
3796 _ACEOF
3797 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3798 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3799 *@@@%%%=?*=@@@%%%*)
3800 eval ac_cv_prog_make_${ac_make}_set=yes;;
3802 eval ac_cv_prog_make_${ac_make}_set=no;;
3803 esac
3804 rm -f conftest.make
3806 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3808 $as_echo "yes" >&6; }
3809 SET_MAKE=
3810 else
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3813 SET_MAKE="MAKE=${MAKE-make}"
3816 rm -rf .tst 2>/dev/null
3817 mkdir .tst 2>/dev/null
3818 if test -d .tst; then
3819 am__leading_dot=.
3820 else
3821 am__leading_dot=_
3823 rmdir .tst 2>/dev/null
3825 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3826 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3827 # is not polluted with repeated "-I."
3828 am__isrc=' -I$(srcdir)'
3829 # test to see if srcdir already configured
3830 if test -f $srcdir/config.status; then
3831 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3835 # test whether we have cygpath
3836 if test -z "$CYGPATH_W"; then
3837 if (cygpath --version) >/dev/null 2>/dev/null; then
3838 CYGPATH_W='cygpath -w'
3839 else
3840 CYGPATH_W=echo
3845 # Define the identity of the package.
3846 PACKAGE='emacs'
3847 VERSION='24.3.50'
3850 cat >>confdefs.h <<_ACEOF
3851 #define PACKAGE "$PACKAGE"
3852 _ACEOF
3855 cat >>confdefs.h <<_ACEOF
3856 #define VERSION "$VERSION"
3857 _ACEOF
3859 # Some tools Automake needs.
3861 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3864 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3867 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3870 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3873 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3875 # We need awk for the "check" target. The system "awk" is bad on
3876 # some platforms.
3877 # Always define AMTAR for backward compatibility.
3879 AMTAR=${AMTAR-"${am_missing_run}tar"}
3881 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3890 lispdir='${datadir}/emacs/${version}/lisp'
3891 leimdir='${datadir}/emacs/${version}/leim'
3892 standardlisppath='${lispdir}:${leimdir}'
3893 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3894 '${datadir}/emacs/site-lisp'
3895 lisppath='${locallisppath}:${standardlisppath}'
3896 etcdir='${datadir}/emacs/${version}/etc'
3897 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3898 docdir='${datadir}/emacs/${version}/etc'
3899 gamedir='${localstatedir}/games/emacs'
3902 # Check whether --with-all was given.
3903 if test "${with_all+set}" = set; then :
3904 withval=$with_all; with_features=$withval
3905 else
3906 with_features=yes
3913 # Check whether --with-pop was given.
3914 if test "${with_pop+set}" = set; then :
3915 withval=$with_pop;
3916 else
3917 with_pop=$with_features
3920 if test "$with_pop" = yes; then
3921 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3926 # Check whether --with-kerberos was given.
3927 if test "${with_kerberos+set}" = set; then :
3928 withval=$with_kerberos;
3929 else
3930 with_kerberos=no
3933 if test "$with_kerberos" != no; then
3934 $as_echo "#define KERBEROS 1" >>confdefs.h
3939 # Check whether --with-kerberos5 was given.
3940 if test "${with_kerberos5+set}" = set; then :
3941 withval=$with_kerberos5;
3942 else
3943 with_kerberos5=no
3946 if test "${with_kerberos5}" != no; then
3947 if test "${with_kerberos}" = no; then
3948 with_kerberos=yes
3949 $as_echo "#define KERBEROS 1" >>confdefs.h
3953 $as_echo "#define KERBEROS5 1" >>confdefs.h
3958 # Check whether --with-hesiod was given.
3959 if test "${with_hesiod+set}" = set; then :
3960 withval=$with_hesiod;
3961 else
3962 with_hesiod=no
3965 if test "$with_hesiod" != no; then
3967 $as_echo "#define HESIOD 1" >>confdefs.h
3972 # Check whether --with-mmdf was given.
3973 if test "${with_mmdf+set}" = set; then :
3974 withval=$with_mmdf;
3975 else
3976 with_mmdf=no
3979 if test "$with_mmdf" != no; then
3981 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3986 # Check whether --with-mail-unlink was given.
3987 if test "${with_mail_unlink+set}" = set; then :
3988 withval=$with_mail_unlink;
3989 else
3990 with_mail_unlink=no
3993 if test "$with_mail_unlink" != no; then
3995 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4000 # Check whether --with-mailhost was given.
4001 if test "${with_mailhost+set}" = set; then :
4002 withval=$with_mailhost;
4003 cat >>confdefs.h <<_ACEOF
4004 #define MAILHOST "$withval"
4005 _ACEOF
4011 # Check whether --with-sound was given.
4012 if test "${with_sound+set}" = set; then :
4013 withval=$with_sound;
4014 else
4015 with_sound=$with_features
4020 # Check whether --with-x-toolkit was given.
4021 if test "${with_x_toolkit+set}" = set; then :
4022 withval=$with_x_toolkit; case "${withval}" in
4023 y | ye | yes ) val=gtk ;;
4024 n | no ) val=no ;;
4025 l | lu | luc | luci | lucid ) val=lucid ;;
4026 a | at | ath | athe | athen | athena ) val=athena ;;
4027 m | mo | mot | moti | motif ) val=motif ;;
4028 g | gt | gtk ) val=gtk ;;
4029 gtk2 ) val=gtk2 ;;
4030 gtk3 ) val=gtk3 ;;
4032 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
4033 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4034 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4035 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4037 esac
4038 with_x_toolkit=$val
4044 # Check whether --with-wide-int was given.
4045 if test "${with_wide_int+set}" = set; then :
4046 withval=$with_wide_int;
4047 else
4048 with_wide_int=no
4051 if test "$with_wide_int" = yes; then
4053 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4058 # Check whether --with-xpm was given.
4059 if test "${with_xpm+set}" = set; then :
4060 withval=$with_xpm;
4061 else
4062 with_xpm=$with_features
4066 # Check whether --with-jpeg was given.
4067 if test "${with_jpeg+set}" = set; then :
4068 withval=$with_jpeg;
4069 else
4070 with_jpeg=$with_features
4074 # Check whether --with-tiff was given.
4075 if test "${with_tiff+set}" = set; then :
4076 withval=$with_tiff;
4077 else
4078 with_tiff=$with_features
4082 # Check whether --with-gif was given.
4083 if test "${with_gif+set}" = set; then :
4084 withval=$with_gif;
4085 else
4086 with_gif=$with_features
4090 # Check whether --with-png was given.
4091 if test "${with_png+set}" = set; then :
4092 withval=$with_png;
4093 else
4094 with_png=$with_features
4098 # Check whether --with-rsvg was given.
4099 if test "${with_rsvg+set}" = set; then :
4100 withval=$with_rsvg;
4101 else
4102 with_rsvg=$with_features
4106 # Check whether --with-xml2 was given.
4107 if test "${with_xml2+set}" = set; then :
4108 withval=$with_xml2;
4109 else
4110 with_xml2=$with_features
4114 # Check whether --with-imagemagick was given.
4115 if test "${with_imagemagick+set}" = set; then :
4116 withval=$with_imagemagick;
4117 else
4118 with_imagemagick=$with_features
4123 # Check whether --with-xft was given.
4124 if test "${with_xft+set}" = set; then :
4125 withval=$with_xft;
4126 else
4127 with_xft=$with_features
4131 # Check whether --with-libotf was given.
4132 if test "${with_libotf+set}" = set; then :
4133 withval=$with_libotf;
4134 else
4135 with_libotf=$with_features
4139 # Check whether --with-m17n-flt was given.
4140 if test "${with_m17n_flt+set}" = set; then :
4141 withval=$with_m17n_flt;
4142 else
4143 with_m17n_flt=$with_features
4148 # Check whether --with-toolkit-scroll-bars was given.
4149 if test "${with_toolkit_scroll_bars+set}" = set; then :
4150 withval=$with_toolkit_scroll_bars;
4151 else
4152 with_toolkit_scroll_bars=$with_features
4156 # Check whether --with-xaw3d was given.
4157 if test "${with_xaw3d+set}" = set; then :
4158 withval=$with_xaw3d;
4159 else
4160 with_xaw3d=$with_features
4164 # Check whether --with-xim was given.
4165 if test "${with_xim+set}" = set; then :
4166 withval=$with_xim;
4167 else
4168 with_xim=$with_features
4172 # Check whether --with-ns was given.
4173 if test "${with_ns+set}" = set; then :
4174 withval=$with_ns;
4175 else
4176 with_ns=no
4180 # Check whether --with-w32 was given.
4181 if test "${with_w32+set}" = set; then :
4182 withval=$with_w32;
4183 else
4184 with_w32=no
4189 # Check whether --with-gpm was given.
4190 if test "${with_gpm+set}" = set; then :
4191 withval=$with_gpm;
4192 else
4193 with_gpm=$with_features
4197 # Check whether --with-dbus was given.
4198 if test "${with_dbus+set}" = set; then :
4199 withval=$with_dbus;
4200 else
4201 with_dbus=$with_features
4205 # Check whether --with-gconf was given.
4206 if test "${with_gconf+set}" = set; then :
4207 withval=$with_gconf;
4208 else
4209 with_gconf=$with_features
4213 # Check whether --with-gsettings was given.
4214 if test "${with_gsettings+set}" = set; then :
4215 withval=$with_gsettings;
4216 else
4217 with_gsettings=$with_features
4221 # Check whether --with-selinux was given.
4222 if test "${with_selinux+set}" = set; then :
4223 withval=$with_selinux;
4224 else
4225 with_selinux=$with_features
4229 # Check whether --with-acl was given.
4230 if test "${with_acl+set}" = set; then :
4231 withval=$with_acl;
4232 else
4233 with_acl=$with_features
4237 # Check whether --with-gnutls was given.
4238 if test "${with_gnutls+set}" = set; then :
4239 withval=$with_gnutls;
4240 else
4241 with_gnutls=$with_features
4245 # Check whether --with-inotify was given.
4246 if test "${with_inotify+set}" = set; then :
4247 withval=$with_inotify;
4248 else
4249 with_inotify=$with_features
4253 ## For the times when you want to build Emacs but don't have
4254 ## a suitable makeinfo, and can live without the manuals.
4256 # Check whether --with-makeinfo was given.
4257 if test "${with_makeinfo+set}" = set; then :
4258 withval=$with_makeinfo;
4259 else
4260 with_makeinfo=$with_features
4264 ## Makefile.in needs the cache file name.
4267 ## This is an option because I do not know if all info/man support
4268 ## compressed files, nor how to test if they do so.
4270 # Check whether --with-compress-info was given.
4271 if test "${with_compress_info+set}" = set; then :
4272 withval=$with_compress_info;
4273 else
4274 with_compress_info=$with_features
4277 if test $with_compress_info = yes; then
4278 GZIP_INFO=yes
4279 else
4280 GZIP_INFO=
4285 # Check whether --with-pkg-config-prog was given.
4286 if test "${with_pkg_config_prog+set}" = set; then :
4287 withval=$with_pkg_config_prog;
4290 if test "X${with_pkg_config_prog}" != X; then
4291 if test "${with_pkg_config_prog}" != yes; then
4292 PKG_CONFIG="${with_pkg_config_prog}"
4296 CRT_DIR=
4298 # Check whether --with-crt-dir was given.
4299 if test "${with_crt_dir+set}" = set; then :
4300 withval=$with_crt_dir;
4303 CRT_DIR="${with_crt_dir}"
4306 # Check whether --with-gameuser was given.
4307 if test "${with_gameuser+set}" = set; then :
4308 withval=$with_gameuser;
4311 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4312 && gameuser="${with_gameuser}"
4313 test "X$gameuser" = X && gameuser=games
4316 # Check whether --with-gnustep-conf was given.
4317 if test "${with_gnustep_conf+set}" = set; then :
4318 withval=$with_gnustep_conf;
4321 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4322 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4323 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4324 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4326 # Check whether --enable-ns-self-contained was given.
4327 if test "${enable_ns_self_contained+set}" = set; then :
4328 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4329 else
4330 EN_NS_SELF_CONTAINED=yes
4334 # Check whether --enable-locallisppath was given.
4335 if test "${enable_locallisppath+set}" = set; then :
4336 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4337 locallisppath=
4338 elif test "${enableval}" != "yes"; then
4339 locallisppath=${enableval}
4344 # Check whether --enable-checking was given.
4345 if test "${enable_checking+set}" = set; then :
4346 enableval=$enable_checking; ac_checking_flags="${enableval}"
4349 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4350 for check in $ac_checking_flags
4352 case $check in
4353 # these set all the flags to specific states
4354 yes) ac_enable_checking=1 ;;
4355 no) ac_enable_checking= ;
4356 ac_gc_check_stringbytes= ;
4357 ac_gc_check_string_overrun= ;
4358 ac_gc_check_string_free_list= ;
4359 ac_xmalloc_overrun= ;
4360 ac_gc_check_cons_list= ;
4361 ac_glyphs_debug= ;;
4362 all) ac_enable_checking=1 ;
4363 ac_gc_check_stringbytes=1 ;
4364 ac_gc_check_string_overrun=1 ;
4365 ac_gc_check_string_free_list=1 ;
4366 ac_xmalloc_overrun=1 ;
4367 ac_gc_check_cons_list=1 ;
4368 ac_glyphs_debug=1 ;;
4369 # these enable particular checks
4370 stringbytes) ac_gc_check_stringbytes=1 ;;
4371 stringoverrun) ac_gc_check_string_overrun=1 ;;
4372 stringfreelist) ac_gc_check_string_free_list=1 ;;
4373 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4374 conslist) ac_gc_check_cons_list=1 ;;
4375 glyphs) ac_glyphs_debug=1 ;;
4376 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4377 esac
4378 done
4379 IFS="$ac_save_IFS"
4381 if test x$ac_enable_checking != x ; then
4383 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4386 if test x$ac_gc_check_stringbytes != x ; then
4388 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4391 if test x$ac_gc_check_string_overrun != x ; then
4393 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4396 if test x$ac_gc_check_string_free_list != x ; then
4398 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4401 if test x$ac_xmalloc_overrun != x ; then
4403 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4406 if test x$ac_gc_check_cons_list != x ; then
4408 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4411 if test x$ac_glyphs_debug != x ; then
4413 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4417 # Check whether --enable-check-lisp-object-type was given.
4418 if test "${enable_check_lisp_object_type+set}" = set; then :
4419 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4421 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4428 # Check whether --enable-profiling was given.
4429 if test "${enable_profiling+set}" = set; then :
4430 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4433 if test x$ac_enable_profiling != x ; then
4434 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4435 else
4436 PROFILING_CFLAGS=
4440 # Check whether --enable-autodepend was given.
4441 if test "${enable_autodepend+set}" = set; then :
4442 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4443 else
4444 ac_enable_autodepend=yes
4448 # Check whether --enable-gtk-deprecation-warnings was given.
4449 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4450 enableval=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings="${enableval}"
4454 #### Make srcdir absolute, if it isn't already. It's important to
4455 #### avoid running the file name through pwd unnecessarily, since pwd can
4456 #### give you automounter prefixes, which can go away. We do all this
4457 #### so Emacs can find its files when run uninstalled.
4458 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4459 unset CDPATH
4460 case "${srcdir}" in
4461 /* ) ;;
4463 ## We may be able to use the $PWD environment variable to make this
4464 ## absolute. But sometimes PWD is inaccurate.
4465 ## Note: we used to use $PWD at the end instead of `pwd`,
4466 ## but that tested only for a well-formed and valid PWD,
4467 ## it did not object when PWD was well-formed and valid but just wrong.
4468 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4469 then
4470 srcdir="$PWD"
4471 else
4472 srcdir=`(cd "$srcdir"; pwd)`
4475 * ) srcdir=`(cd "$srcdir"; pwd)` ;;
4476 esac
4478 ### Canonicalize the configuration name.
4480 # Make sure we can run config.sub.
4481 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4482 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4485 $as_echo_n "checking build system type... " >&6; }
4486 if test "${ac_cv_build+set}" = set; then :
4487 $as_echo_n "(cached) " >&6
4488 else
4489 ac_build_alias=$build_alias
4490 test "x$ac_build_alias" = x &&
4491 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4492 test "x$ac_build_alias" = x &&
4493 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4494 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4495 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4499 $as_echo "$ac_cv_build" >&6; }
4500 case $ac_cv_build in
4501 *-*-*) ;;
4502 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4503 esac
4504 build=$ac_cv_build
4505 ac_save_IFS=$IFS; IFS='-'
4506 set x $ac_cv_build
4507 shift
4508 build_cpu=$1
4509 build_vendor=$2
4510 shift; shift
4511 # Remember, the first character of IFS is used to create $*,
4512 # except with old shells:
4513 build_os=$*
4514 IFS=$ac_save_IFS
4515 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4519 $as_echo_n "checking host system type... " >&6; }
4520 if test "${ac_cv_host+set}" = set; then :
4521 $as_echo_n "(cached) " >&6
4522 else
4523 if test "x$host_alias" = x; then
4524 ac_cv_host=$ac_cv_build
4525 else
4526 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4527 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4532 $as_echo "$ac_cv_host" >&6; }
4533 case $ac_cv_host in
4534 *-*-*) ;;
4535 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4536 esac
4537 host=$ac_cv_host
4538 ac_save_IFS=$IFS; IFS='-'
4539 set x $ac_cv_host
4540 shift
4541 host_cpu=$1
4542 host_vendor=$2
4543 shift; shift
4544 # Remember, the first character of IFS is used to create $*,
4545 # except with old shells:
4546 host_os=$*
4547 IFS=$ac_save_IFS
4548 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4551 canonical=$host
4552 configuration=${host_alias-${build_alias-$host}}
4556 ### If you add support for a new configuration, add code to this
4557 ### switch statement to recognize your configuration name and select
4558 ### the appropriate operating system file.
4560 ### You would hope that you could choose an s/*.h
4561 ### file based on the operating system portion. However, it turns out
4562 ### that each s/*.h file is pretty manufacturer-specific.
4563 ### So we basically have to have a special case for each
4564 ### configuration name.
4566 ### As far as handling version numbers on operating systems is
4567 ### concerned, make sure things will fail in a fixable way. If
4568 ### /etc/MACHINES doesn't say anything about version numbers, be
4569 ### prepared to handle anything reasonably. If version numbers
4570 ### matter, be sure /etc/MACHINES says something about it.
4572 opsys='' unported=no
4573 case "${canonical}" in
4575 ## GNU/Linux and similar ports
4576 *-*-linux* )
4577 opsys=gnu-linux
4580 ## FreeBSD ports
4581 *-*-freebsd* )
4582 opsys=freebsd
4585 ## FreeBSD kernel + glibc based userland
4586 *-*-kfreebsd*gnu* )
4587 opsys=gnu-kfreebsd
4590 ## NetBSD ports
4591 *-*-netbsd* )
4592 opsys=netbsd
4595 ## OpenBSD ports
4596 *-*-openbsd* )
4597 opsys=openbsd
4600 ## Apple Darwin / Mac OS X
4601 *-apple-darwin* )
4602 case "${canonical}" in
4603 i[3456]86-* ) ;;
4604 powerpc-* ) ;;
4605 x86_64-* ) ;;
4606 * ) unported=yes ;;
4607 esac
4608 opsys=darwin
4609 ## Use fink packages if available.
4610 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4611 ## if test -d /sw/include && test -d /sw/lib; then
4612 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4613 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4614 ## fi
4617 ## HP 9000 series 700 and 800, running HP/UX
4618 hppa*-hp-hpux10.2* )
4619 opsys=hpux10-20
4621 hppa*-hp-hpux1[1-9]* )
4622 opsys=hpux11
4623 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4626 ## IBM machines
4627 rs6000-ibm-aix4.[23]* )
4628 opsys=aix4-2
4630 powerpc-ibm-aix4.[23]* )
4631 opsys=aix4-2
4633 rs6000-ibm-aix[56]* )
4634 opsys=aix4-2
4636 powerpc-ibm-aix[56]* )
4637 opsys=aix4-2
4640 ## Silicon Graphics machines
4641 ## Iris 4D
4642 mips-sgi-irix6.5 )
4643 opsys=irix6-5
4644 # Without defining _LANGUAGE_C, things get masked out in the headers
4645 # so that, for instance, grepping for `free' in stdlib.h fails and
4646 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4647 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4650 ## Suns
4651 *-sun-solaris* \
4652 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4653 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4654 case "${canonical}" in
4655 i[3456]86-*-* ) ;;
4656 amd64-*-*|x86_64-*-*) ;;
4657 sparc* ) ;;
4658 * ) unported=yes ;;
4659 esac
4660 case "${canonical}" in
4661 *-sunos5.6* | *-solaris2.6* )
4662 opsys=sol2-6
4663 RANLIB="ar -ts"
4665 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4666 opsys=sol2-6
4667 emacs_check_sunpro_c=yes
4669 *-sunos5* | *-solaris* )
4670 opsys=sol2-10
4671 emacs_check_sunpro_c=yes
4673 esac
4674 ## Watch out for a compiler that we know will not work.
4675 case "${canonical}" in
4676 *-solaris* | *-sunos5* )
4677 if [ "x$CC" = x/usr/ucb/cc ]; then
4678 ## /usr/ucb/cc doesn't work;
4679 ## we should find some other compiler that does work.
4680 unset CC
4683 *) ;;
4684 esac
4687 ## Intel 386 machines where we don't care about the manufacturer.
4688 i[3456]86-*-* )
4689 case "${canonical}" in
4690 *-cygwin ) opsys=cygwin ;;
4691 *-darwin* ) opsys=darwin ;;
4692 *-sysv4.2uw* ) opsys=unixware ;;
4693 *-sysv5uw* ) opsys=unixware ;;
4694 *-sysv5OpenUNIX* ) opsys=unixware ;;
4695 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4696 esac
4700 unported=yes
4702 esac
4704 ### If the code above didn't choose an operating system, just choose
4705 ### an operating system based on the configuration name. You really
4706 ### only want to use this when you have no idea what the right
4707 ### operating system is; if you know what operating systems a machine
4708 ### runs, it's cleaner to make it explicit in the case statement
4709 ### above.
4710 if test x"${opsys}" = x; then
4711 case "${canonical}" in
4712 *-gnu* ) opsys=gnu ;;
4714 unported=yes
4716 esac
4721 if test $unported = yes; then
4722 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4723 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4727 #### Choose a compiler.
4729 ac_ext=c
4730 ac_cpp='$CPP $CPPFLAGS'
4731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4734 if test -n "$ac_tool_prefix"; then
4735 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4736 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_prog_CC+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 if test -n "$CC"; then
4743 ac_cv_prog_CC="$CC" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 break 2
4756 done
4757 done
4758 IFS=$as_save_IFS
4762 CC=$ac_cv_prog_CC
4763 if test -n "$CC"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4765 $as_echo "$CC" >&6; }
4766 else
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4773 if test -z "$ac_cv_prog_CC"; then
4774 ac_ct_CC=$CC
4775 # Extract the first word of "gcc", so it can be a program name with args.
4776 set dummy gcc; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 if test -n "$ac_ct_CC"; then
4783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_ac_ct_CC="gcc"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 break 2
4796 done
4797 done
4798 IFS=$as_save_IFS
4802 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4803 if test -n "$ac_ct_CC"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4805 $as_echo "$ac_ct_CC" >&6; }
4806 else
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4811 if test "x$ac_ct_CC" = x; then
4812 CC=""
4813 else
4814 case $cross_compiling:$ac_tool_warned in
4815 yes:)
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4818 ac_tool_warned=yes ;;
4819 esac
4820 CC=$ac_ct_CC
4822 else
4823 CC="$ac_cv_prog_CC"
4826 if test -z "$CC"; then
4827 if test -n "$ac_tool_prefix"; then
4828 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4829 set dummy ${ac_tool_prefix}cc; ac_word=$2
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831 $as_echo_n "checking for $ac_word... " >&6; }
4832 if test "${ac_cv_prog_CC+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 if test -n "$CC"; then
4836 ac_cv_prog_CC="$CC" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4845 ac_cv_prog_CC="${ac_tool_prefix}cc"
4846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4849 done
4850 done
4851 IFS=$as_save_IFS
4855 CC=$ac_cv_prog_CC
4856 if test -n "$CC"; then
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4858 $as_echo "$CC" >&6; }
4859 else
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861 $as_echo "no" >&6; }
4867 if test -z "$CC"; then
4868 # Extract the first word of "cc", so it can be a program name with args.
4869 set dummy cc; ac_word=$2
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871 $as_echo_n "checking for $ac_word... " >&6; }
4872 if test "${ac_cv_prog_CC+set}" = set; then :
4873 $as_echo_n "(cached) " >&6
4874 else
4875 if test -n "$CC"; then
4876 ac_cv_prog_CC="$CC" # Let the user override the test.
4877 else
4878 ac_prog_rejected=no
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 for as_dir in $PATH
4882 IFS=$as_save_IFS
4883 test -z "$as_dir" && as_dir=.
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4886 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4887 ac_prog_rejected=yes
4888 continue
4890 ac_cv_prog_CC="cc"
4891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4892 break 2
4894 done
4895 done
4896 IFS=$as_save_IFS
4898 if test $ac_prog_rejected = yes; then
4899 # We found a bogon in the path, so make sure we never use it.
4900 set dummy $ac_cv_prog_CC
4901 shift
4902 if test $# != 0; then
4903 # We chose a different compiler from the bogus one.
4904 # However, it has the same basename, so the bogon will be chosen
4905 # first if we set CC to just the basename; use the full file name.
4906 shift
4907 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4912 CC=$ac_cv_prog_CC
4913 if test -n "$CC"; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4915 $as_echo "$CC" >&6; }
4916 else
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4923 if test -z "$CC"; then
4924 if test -n "$ac_tool_prefix"; then
4925 for ac_prog in cl.exe
4927 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4928 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930 $as_echo_n "checking for $ac_word... " >&6; }
4931 if test "${ac_cv_prog_CC+set}" = set; then :
4932 $as_echo_n "(cached) " >&6
4933 else
4934 if test -n "$CC"; then
4935 ac_cv_prog_CC="$CC" # Let the user override the test.
4936 else
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 break 2
4948 done
4949 done
4950 IFS=$as_save_IFS
4954 CC=$ac_cv_prog_CC
4955 if test -n "$CC"; then
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4957 $as_echo "$CC" >&6; }
4958 else
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960 $as_echo "no" >&6; }
4964 test -n "$CC" && break
4965 done
4967 if test -z "$CC"; then
4968 ac_ct_CC=$CC
4969 for ac_prog in cl.exe
4971 # Extract the first word of "$ac_prog", so it can be a program name with args.
4972 set dummy $ac_prog; ac_word=$2
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974 $as_echo_n "checking for $ac_word... " >&6; }
4975 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 if test -n "$ac_ct_CC"; then
4979 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4980 else
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 for as_dir in $PATH
4984 IFS=$as_save_IFS
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4988 ac_cv_prog_ac_ct_CC="$ac_prog"
4989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 break 2
4992 done
4993 done
4994 IFS=$as_save_IFS
4998 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4999 if test -n "$ac_ct_CC"; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5001 $as_echo "$ac_ct_CC" >&6; }
5002 else
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5008 test -n "$ac_ct_CC" && break
5009 done
5011 if test "x$ac_ct_CC" = x; then
5012 CC=""
5013 else
5014 case $cross_compiling:$ac_tool_warned in
5015 yes:)
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5018 ac_tool_warned=yes ;;
5019 esac
5020 CC=$ac_ct_CC
5027 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5029 as_fn_error "no acceptable C compiler found in \$PATH
5030 See \`config.log' for more details." "$LINENO" 5; }
5032 # Provide some information about the compiler.
5033 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5034 set X $ac_compile
5035 ac_compiler=$2
5036 for ac_option in --version -v -V -qversion; do
5037 { { ac_try="$ac_compiler $ac_option >&5"
5038 case "(($ac_try" in
5039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5040 *) ac_try_echo=$ac_try;;
5041 esac
5042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5043 $as_echo "$ac_try_echo"; } >&5
5044 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5045 ac_status=$?
5046 if test -s conftest.err; then
5047 sed '10a\
5048 ... rest of stderr output deleted ...
5049 10q' conftest.err >conftest.er1
5050 cat conftest.er1 >&5
5052 rm -f conftest.er1 conftest.err
5053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5054 test $ac_status = 0; }
5055 done
5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058 /* end confdefs.h. */
5061 main ()
5065 return 0;
5067 _ACEOF
5068 ac_clean_files_save=$ac_clean_files
5069 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5070 # Try to create an executable without -o first, disregard a.out.
5071 # It will help us diagnose broken compilers, and finding out an intuition
5072 # of exeext.
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5074 $as_echo_n "checking whether the C compiler works... " >&6; }
5075 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5077 # The possible output files:
5078 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5080 ac_rmfiles=
5081 for ac_file in $ac_files
5083 case $ac_file in
5084 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5085 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5086 esac
5087 done
5088 rm -f $ac_rmfiles
5090 if { { ac_try="$ac_link_default"
5091 case "(($ac_try" in
5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093 *) ac_try_echo=$ac_try;;
5094 esac
5095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5096 $as_echo "$ac_try_echo"; } >&5
5097 (eval "$ac_link_default") 2>&5
5098 ac_status=$?
5099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5100 test $ac_status = 0; }; then :
5101 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5102 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5103 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5104 # so that the user can short-circuit this test for compilers unknown to
5105 # Autoconf.
5106 for ac_file in $ac_files ''
5108 test -f "$ac_file" || continue
5109 case $ac_file in
5110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5112 [ab].out )
5113 # We found the default executable, but exeext='' is most
5114 # certainly right.
5115 break;;
5116 *.* )
5117 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5118 then :; else
5119 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5121 # We set ac_cv_exeext here because the later test for it is not
5122 # safe: cross compilers may not add the suffix if given an `-o'
5123 # argument, so we may need to know it at that point already.
5124 # Even if this section looks crufty: it has the advantage of
5125 # actually working.
5126 break;;
5128 break;;
5129 esac
5130 done
5131 test "$ac_cv_exeext" = no && ac_cv_exeext=
5133 else
5134 ac_file=''
5136 if test -z "$ac_file"; then :
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5139 $as_echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5144 { as_fn_set_status 77
5145 as_fn_error "C compiler cannot create executables
5146 See \`config.log' for more details." "$LINENO" 5; }; }
5147 else
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5149 $as_echo "yes" >&6; }
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5152 $as_echo_n "checking for C compiler default output file name... " >&6; }
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5154 $as_echo "$ac_file" >&6; }
5155 ac_exeext=$ac_cv_exeext
5157 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5158 ac_clean_files=$ac_clean_files_save
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5160 $as_echo_n "checking for suffix of executables... " >&6; }
5161 if { { ac_try="$ac_link"
5162 case "(($ac_try" in
5163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5165 esac
5166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5167 $as_echo "$ac_try_echo"; } >&5
5168 (eval "$ac_link") 2>&5
5169 ac_status=$?
5170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5171 test $ac_status = 0; }; then :
5172 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5173 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5174 # work properly (i.e., refer to `conftest.exe'), while it won't with
5175 # `rm'.
5176 for ac_file in conftest.exe conftest conftest.*; do
5177 test -f "$ac_file" || continue
5178 case $ac_file in
5179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5180 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5181 break;;
5182 * ) break;;
5183 esac
5184 done
5185 else
5186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5188 as_fn_error "cannot compute suffix of executables: cannot compile and link
5189 See \`config.log' for more details." "$LINENO" 5; }
5191 rm -f conftest conftest$ac_cv_exeext
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5193 $as_echo "$ac_cv_exeext" >&6; }
5195 rm -f conftest.$ac_ext
5196 EXEEXT=$ac_cv_exeext
5197 ac_exeext=$EXEEXT
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5200 #include <stdio.h>
5202 main ()
5204 FILE *f = fopen ("conftest.out", "w");
5205 return ferror (f) || fclose (f) != 0;
5208 return 0;
5210 _ACEOF
5211 ac_clean_files="$ac_clean_files conftest.out"
5212 # Check that the compiler produces executables we can run. If not, either
5213 # the compiler is broken, or we cross compile.
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5215 $as_echo_n "checking whether we are cross compiling... " >&6; }
5216 if test "$cross_compiling" != yes; then
5217 { { ac_try="$ac_link"
5218 case "(($ac_try" in
5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5221 esac
5222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5223 $as_echo "$ac_try_echo"; } >&5
5224 (eval "$ac_link") 2>&5
5225 ac_status=$?
5226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5227 test $ac_status = 0; }
5228 if { ac_try='./conftest$ac_cv_exeext'
5229 { { case "(($ac_try" in
5230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231 *) ac_try_echo=$ac_try;;
5232 esac
5233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5234 $as_echo "$ac_try_echo"; } >&5
5235 (eval "$ac_try") 2>&5
5236 ac_status=$?
5237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5238 test $ac_status = 0; }; }; then
5239 cross_compiling=no
5240 else
5241 if test "$cross_compiling" = maybe; then
5242 cross_compiling=yes
5243 else
5244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5246 as_fn_error "cannot run C compiled programs.
5247 If you meant to cross compile, use \`--host'.
5248 See \`config.log' for more details." "$LINENO" 5; }
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5253 $as_echo "$cross_compiling" >&6; }
5255 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5256 ac_clean_files=$ac_clean_files_save
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5258 $as_echo_n "checking for suffix of object files... " >&6; }
5259 if test "${ac_cv_objext+set}" = set; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5266 main ()
5270 return 0;
5272 _ACEOF
5273 rm -f conftest.o conftest.obj
5274 if { { ac_try="$ac_compile"
5275 case "(($ac_try" in
5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5278 esac
5279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5280 $as_echo "$ac_try_echo"; } >&5
5281 (eval "$ac_compile") 2>&5
5282 ac_status=$?
5283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5284 test $ac_status = 0; }; then :
5285 for ac_file in conftest.o conftest.obj conftest.*; do
5286 test -f "$ac_file" || continue;
5287 case $ac_file in
5288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5289 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5290 break;;
5291 esac
5292 done
5293 else
5294 $as_echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5299 as_fn_error "cannot compute suffix of object files: cannot compile
5300 See \`config.log' for more details." "$LINENO" 5; }
5302 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5305 $as_echo "$ac_cv_objext" >&6; }
5306 OBJEXT=$ac_cv_objext
5307 ac_objext=$OBJEXT
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5309 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5310 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5311 $as_echo_n "(cached) " >&6
5312 else
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5317 main ()
5319 #ifndef __GNUC__
5320 choke me
5321 #endif
5324 return 0;
5326 _ACEOF
5327 if ac_fn_c_try_compile "$LINENO"; then :
5328 ac_compiler_gnu=yes
5329 else
5330 ac_compiler_gnu=no
5332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5333 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5337 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5338 if test $ac_compiler_gnu = yes; then
5339 GCC=yes
5340 else
5341 GCC=
5343 ac_test_CFLAGS=${CFLAGS+set}
5344 ac_save_CFLAGS=$CFLAGS
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5346 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5347 if test "${ac_cv_prog_cc_g+set}" = set; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 ac_save_c_werror_flag=$ac_c_werror_flag
5351 ac_c_werror_flag=yes
5352 ac_cv_prog_cc_g=no
5353 CFLAGS="-g"
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5358 main ()
5362 return 0;
5364 _ACEOF
5365 if ac_fn_c_try_compile "$LINENO"; then :
5366 ac_cv_prog_cc_g=yes
5367 else
5368 CFLAGS=""
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5373 main ()
5377 return 0;
5379 _ACEOF
5380 if ac_fn_c_try_compile "$LINENO"; then :
5382 else
5383 ac_c_werror_flag=$ac_save_c_werror_flag
5384 CFLAGS="-g"
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5389 main ()
5393 return 0;
5395 _ACEOF
5396 if ac_fn_c_try_compile "$LINENO"; then :
5397 ac_cv_prog_cc_g=yes
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404 ac_c_werror_flag=$ac_save_c_werror_flag
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5407 $as_echo "$ac_cv_prog_cc_g" >&6; }
5408 if test "$ac_test_CFLAGS" = set; then
5409 CFLAGS=$ac_save_CFLAGS
5410 elif test $ac_cv_prog_cc_g = yes; then
5411 if test "$GCC" = yes; then
5412 CFLAGS="-g -O2"
5413 else
5414 CFLAGS="-g"
5416 else
5417 if test "$GCC" = yes; then
5418 CFLAGS="-O2"
5419 else
5420 CFLAGS=
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5424 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5425 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 ac_cv_prog_cc_c89=no
5429 ac_save_CC=$CC
5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h. */
5432 #include <stdarg.h>
5433 #include <stdio.h>
5434 #include <sys/types.h>
5435 #include <sys/stat.h>
5436 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5437 struct buf { int x; };
5438 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5439 static char *e (p, i)
5440 char **p;
5441 int i;
5443 return p[i];
5445 static char *f (char * (*g) (char **, int), char **p, ...)
5447 char *s;
5448 va_list v;
5449 va_start (v,p);
5450 s = g (p, va_arg (v,int));
5451 va_end (v);
5452 return s;
5455 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5456 function prototypes and stuff, but not '\xHH' hex character constants.
5457 These don't provoke an error unfortunately, instead are silently treated
5458 as 'x'. The following induces an error, until -std is added to get
5459 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5460 array size at least. It's necessary to write '\x00'==0 to get something
5461 that's true only with -std. */
5462 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5464 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5465 inside strings and character constants. */
5466 #define FOO(x) 'x'
5467 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5469 int test (int i, double x);
5470 struct s1 {int (*f) (int a);};
5471 struct s2 {int (*f) (double a);};
5472 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5473 int argc;
5474 char **argv;
5476 main ()
5478 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5480 return 0;
5482 _ACEOF
5483 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5484 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5486 CC="$ac_save_CC $ac_arg"
5487 if ac_fn_c_try_compile "$LINENO"; then :
5488 ac_cv_prog_cc_c89=$ac_arg
5490 rm -f core conftest.err conftest.$ac_objext
5491 test "x$ac_cv_prog_cc_c89" != "xno" && break
5492 done
5493 rm -f conftest.$ac_ext
5494 CC=$ac_save_CC
5497 # AC_CACHE_VAL
5498 case "x$ac_cv_prog_cc_c89" in
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5501 $as_echo "none needed" >&6; } ;;
5502 xno)
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5504 $as_echo "unsupported" >&6; } ;;
5506 CC="$CC $ac_cv_prog_cc_c89"
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5508 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5509 esac
5510 if test "x$ac_cv_prog_cc_c89" != xno; then :
5514 ac_ext=c
5515 ac_cpp='$CPP $CPPFLAGS'
5516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5519 DEPDIR="${am__leading_dot}deps"
5521 ac_config_commands="$ac_config_commands depfiles"
5524 am_make=${MAKE-make}
5525 cat > confinc << 'END'
5526 am__doit:
5527 @echo this is the am__doit target
5528 .PHONY: am__doit
5530 # If we don't find an include directive, just comment out the code.
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5532 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5533 am__include="#"
5534 am__quote=
5535 _am_result=none
5536 # First try GNU make style include.
5537 echo "include confinc" > confmf
5538 # Ignore all kinds of additional output from `make'.
5539 case `$am_make -s -f confmf 2> /dev/null` in #(
5540 *the\ am__doit\ target*)
5541 am__include=include
5542 am__quote=
5543 _am_result=GNU
5545 esac
5546 # Now try BSD make style include.
5547 if test "$am__include" = "#"; then
5548 echo '.include "confinc"' > confmf
5549 case `$am_make -s -f confmf 2> /dev/null` in #(
5550 *the\ am__doit\ target*)
5551 am__include=.include
5552 am__quote="\""
5553 _am_result=BSD
5555 esac
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5560 $as_echo "$_am_result" >&6; }
5561 rm -f confinc confmf
5563 # Check whether --enable-dependency-tracking was given.
5564 if test "${enable_dependency_tracking+set}" = set; then :
5565 enableval=$enable_dependency_tracking;
5568 if test "x$enable_dependency_tracking" != xno; then
5569 am_depcomp="$ac_aux_dir/depcomp"
5570 AMDEPBACKSLASH='\'
5572 if test "x$enable_dependency_tracking" != xno; then
5573 AMDEP_TRUE=
5574 AMDEP_FALSE='#'
5575 else
5576 AMDEP_TRUE='#'
5577 AMDEP_FALSE=
5582 depcc="$CC" am_compiler_list=
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5585 $as_echo_n "checking dependency style of $depcc... " >&6; }
5586 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5587 $as_echo_n "(cached) " >&6
5588 else
5589 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5590 # We make a subdir and do the tests there. Otherwise we can end up
5591 # making bogus files that we don't know about and never remove. For
5592 # instance it was reported that on HP-UX the gcc test will end up
5593 # making a dummy file named `D' -- because `-MD' means `put the output
5594 # in D'.
5595 mkdir conftest.dir
5596 # Copy depcomp to subdir because otherwise we won't find it if we're
5597 # using a relative directory.
5598 cp "$am_depcomp" conftest.dir
5599 cd conftest.dir
5600 # We will build objects and dependencies in a subdirectory because
5601 # it helps to detect inapplicable dependency modes. For instance
5602 # both Tru64's cc and ICC support -MD to output dependencies as a
5603 # side effect of compilation, but ICC will put the dependencies in
5604 # the current directory while Tru64 will put them in the object
5605 # directory.
5606 mkdir sub
5608 am_cv_CC_dependencies_compiler_type=none
5609 if test "$am_compiler_list" = ""; then
5610 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5612 am__universal=false
5613 case " $depcc " in #(
5614 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5615 esac
5617 for depmode in $am_compiler_list; do
5618 # Setup a source with many dependencies, because some compilers
5619 # like to wrap large dependency lists on column 80 (with \), and
5620 # we should not choose a depcomp mode which is confused by this.
5622 # We need to recreate these files for each test, as the compiler may
5623 # overwrite some of them when testing with obscure command lines.
5624 # This happens at least with the AIX C compiler.
5625 : > sub/conftest.c
5626 for i in 1 2 3 4 5 6; do
5627 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5628 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5629 # Solaris 8's {/usr,}/bin/sh.
5630 touch sub/conftst$i.h
5631 done
5632 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5634 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5635 # mode. It turns out that the SunPro C++ compiler does not properly
5636 # handle `-M -o', and we need to detect this. Also, some Intel
5637 # versions had trouble with output in subdirs
5638 am__obj=sub/conftest.${OBJEXT-o}
5639 am__minus_obj="-o $am__obj"
5640 case $depmode in
5641 gcc)
5642 # This depmode causes a compiler race in universal mode.
5643 test "$am__universal" = false || continue
5645 nosideeffect)
5646 # after this tag, mechanisms are not by side-effect, so they'll
5647 # only be used when explicitly requested
5648 if test "x$enable_dependency_tracking" = xyes; then
5649 continue
5650 else
5651 break
5654 msvisualcpp | msvcmsys)
5655 # This compiler won't grok `-c -o', but also, the minuso test has
5656 # not run yet. These depmodes are late enough in the game, and
5657 # so weak that their functioning should not be impacted.
5658 am__obj=conftest.${OBJEXT-o}
5659 am__minus_obj=
5661 none) break ;;
5662 esac
5663 if depmode=$depmode \
5664 source=sub/conftest.c object=$am__obj \
5665 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5666 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5667 >/dev/null 2>conftest.err &&
5668 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5669 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5670 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5671 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5672 # icc doesn't choke on unknown options, it will just issue warnings
5673 # or remarks (even with -Werror). So we grep stderr for any message
5674 # that says an option was ignored or not supported.
5675 # When given -MP, icc 7.0 and 7.1 complain thusly:
5676 # icc: Command line warning: ignoring option '-M'; no argument required
5677 # The diagnosis changed in icc 8.0:
5678 # icc: Command line remark: option '-MP' not supported
5679 if (grep 'ignoring option' conftest.err ||
5680 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5681 am_cv_CC_dependencies_compiler_type=$depmode
5682 break
5685 done
5687 cd ..
5688 rm -rf conftest.dir
5689 else
5690 am_cv_CC_dependencies_compiler_type=none
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5695 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5696 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5699 test "x$enable_dependency_tracking" != xno \
5700 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5701 am__fastdepCC_TRUE=
5702 am__fastdepCC_FALSE='#'
5703 else
5704 am__fastdepCC_TRUE='#'
5705 am__fastdepCC_FALSE=
5709 if test "x$CC" != xcc; then
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5711 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5712 else
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5714 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5716 set dummy $CC; ac_cc=`$as_echo "$2" |
5717 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5718 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5719 $as_echo_n "(cached) " >&6
5720 else
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5725 main ()
5729 return 0;
5731 _ACEOF
5732 # Make sure it works both with $CC and with simple cc.
5733 # We do the test twice because some compilers refuse to overwrite an
5734 # existing .o file with -o, though they will create one.
5735 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5736 rm -f conftest2.*
5737 if { { case "(($ac_try" in
5738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739 *) ac_try_echo=$ac_try;;
5740 esac
5741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5742 $as_echo "$ac_try_echo"; } >&5
5743 (eval "$ac_try") 2>&5
5744 ac_status=$?
5745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5746 test $ac_status = 0; } &&
5747 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5749 *) ac_try_echo=$ac_try;;
5750 esac
5751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5752 $as_echo "$ac_try_echo"; } >&5
5753 (eval "$ac_try") 2>&5
5754 ac_status=$?
5755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5756 test $ac_status = 0; };
5757 then
5758 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5759 if test "x$CC" != xcc; then
5760 # Test first that cc exists at all.
5761 if { ac_try='cc -c conftest.$ac_ext >&5'
5762 { { case "(($ac_try" in
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5765 esac
5766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5767 $as_echo "$ac_try_echo"; } >&5
5768 (eval "$ac_try") 2>&5
5769 ac_status=$?
5770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5771 test $ac_status = 0; }; }; then
5772 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5773 rm -f conftest2.*
5774 if { { case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5777 esac
5778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5779 $as_echo "$ac_try_echo"; } >&5
5780 (eval "$ac_try") 2>&5
5781 ac_status=$?
5782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5783 test $ac_status = 0; } &&
5784 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5787 esac
5788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5789 $as_echo "$ac_try_echo"; } >&5
5790 (eval "$ac_try") 2>&5
5791 ac_status=$?
5792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5793 test $ac_status = 0; };
5794 then
5795 # cc works too.
5797 else
5798 # cc exists but doesn't like -o.
5799 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5803 else
5804 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5806 rm -f core conftest*
5809 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5811 $as_echo "yes" >&6; }
5812 else
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814 $as_echo "no" >&6; }
5816 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5820 # FIXME: we rely on the cache variable name because
5821 # there is no other way.
5822 set dummy $CC
5823 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5824 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5825 if test "$am_t" != yes; then
5826 # Losing compiler, so override with the script.
5827 # FIXME: It is wrong to rewrite CC.
5828 # But if we don't then we get into trouble of one sort or another.
5829 # A longer-term fix would be to have automake use am__CC in this case,
5830 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5831 CC="$am_aux_dir/compile $CC"
5836 if test x$GCC = xyes; then
5837 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5838 else
5839 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5842 # Avoid gnulib's tests for O_NOATIME and O_NOFOLLOW, as we don't use them.
5844 # Avoid gnulib's threadlib module, as we do threads our own way.
5847 # Initialize gnulib right after choosing the compiler.
5849 ac_ext=c
5850 ac_cpp='$CPP $CPPFLAGS'
5851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5855 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5856 # On Suns, sometimes $CPP names a directory.
5857 if test -n "$CPP" && test -d "$CPP"; then
5858 CPP=
5860 if test -z "$CPP"; then
5861 if test "${ac_cv_prog_CPP+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5864 # Double quotes because CPP needs to be expanded
5865 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5867 ac_preproc_ok=false
5868 for ac_c_preproc_warn_flag in '' yes
5870 # Use a header file that comes with gcc, so configuring glibc
5871 # with a fresh cross-compiler works.
5872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5873 # <limits.h> exists even on freestanding compilers.
5874 # On the NeXT, cc -E runs the code through the compiler's parser,
5875 # not just through cpp. "Syntax error" is here to catch this case.
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5878 #ifdef __STDC__
5879 # include <limits.h>
5880 #else
5881 # include <assert.h>
5882 #endif
5883 Syntax error
5884 _ACEOF
5885 if ac_fn_c_try_cpp "$LINENO"; then :
5887 else
5888 # Broken: fails on valid input.
5889 continue
5891 rm -f conftest.err conftest.$ac_ext
5893 # OK, works on sane cases. Now check whether nonexistent headers
5894 # can be detected and how.
5895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5896 /* end confdefs.h. */
5897 #include <ac_nonexistent.h>
5898 _ACEOF
5899 if ac_fn_c_try_cpp "$LINENO"; then :
5900 # Broken: success on invalid input.
5901 continue
5902 else
5903 # Passes both tests.
5904 ac_preproc_ok=:
5905 break
5907 rm -f conftest.err conftest.$ac_ext
5909 done
5910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5911 rm -f conftest.err conftest.$ac_ext
5912 if $ac_preproc_ok; then :
5913 break
5916 done
5917 ac_cv_prog_CPP=$CPP
5920 CPP=$ac_cv_prog_CPP
5921 else
5922 ac_cv_prog_CPP=$CPP
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5925 $as_echo "$CPP" >&6; }
5926 ac_preproc_ok=false
5927 for ac_c_preproc_warn_flag in '' yes
5929 # Use a header file that comes with gcc, so configuring glibc
5930 # with a fresh cross-compiler works.
5931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5932 # <limits.h> exists even on freestanding compilers.
5933 # On the NeXT, cc -E runs the code through the compiler's parser,
5934 # not just through cpp. "Syntax error" is here to catch this case.
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5937 #ifdef __STDC__
5938 # include <limits.h>
5939 #else
5940 # include <assert.h>
5941 #endif
5942 Syntax error
5943 _ACEOF
5944 if ac_fn_c_try_cpp "$LINENO"; then :
5946 else
5947 # Broken: fails on valid input.
5948 continue
5950 rm -f conftest.err conftest.$ac_ext
5952 # OK, works on sane cases. Now check whether nonexistent headers
5953 # can be detected and how.
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5956 #include <ac_nonexistent.h>
5957 _ACEOF
5958 if ac_fn_c_try_cpp "$LINENO"; then :
5959 # Broken: success on invalid input.
5960 continue
5961 else
5962 # Passes both tests.
5963 ac_preproc_ok=:
5964 break
5966 rm -f conftest.err conftest.$ac_ext
5968 done
5969 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5970 rm -f conftest.err conftest.$ac_ext
5971 if $ac_preproc_ok; then :
5973 else
5974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5976 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5977 See \`config.log' for more details." "$LINENO" 5; }
5980 ac_ext=c
5981 ac_cpp='$CPP $CPPFLAGS'
5982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5988 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5989 if test "${ac_cv_path_GREP+set}" = set; then :
5990 $as_echo_n "(cached) " >&6
5991 else
5992 if test -z "$GREP"; then
5993 ac_path_GREP_found=false
5994 # Loop through the user's path and test for each of PROGNAME-LIST
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5998 IFS=$as_save_IFS
5999 test -z "$as_dir" && as_dir=.
6000 for ac_prog in grep ggrep; do
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6003 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6004 # Check for GNU ac_path_GREP and select it if it is found.
6005 # Check for GNU $ac_path_GREP
6006 case `"$ac_path_GREP" --version 2>&1` in
6007 *GNU*)
6008 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6010 ac_count=0
6011 $as_echo_n 0123456789 >"conftest.in"
6012 while :
6014 cat "conftest.in" "conftest.in" >"conftest.tmp"
6015 mv "conftest.tmp" "conftest.in"
6016 cp "conftest.in" "conftest.nl"
6017 $as_echo 'GREP' >> "conftest.nl"
6018 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6019 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6020 as_fn_arith $ac_count + 1 && ac_count=$as_val
6021 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6022 # Best one so far, save it but keep looking for a better one
6023 ac_cv_path_GREP="$ac_path_GREP"
6024 ac_path_GREP_max=$ac_count
6026 # 10*(2^10) chars as input seems more than enough
6027 test $ac_count -gt 10 && break
6028 done
6029 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6030 esac
6032 $ac_path_GREP_found && break 3
6033 done
6034 done
6035 done
6036 IFS=$as_save_IFS
6037 if test -z "$ac_cv_path_GREP"; then
6038 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6040 else
6041 ac_cv_path_GREP=$GREP
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6046 $as_echo "$ac_cv_path_GREP" >&6; }
6047 GREP="$ac_cv_path_GREP"
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6051 $as_echo_n "checking for egrep... " >&6; }
6052 if test "${ac_cv_path_EGREP+set}" = set; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6056 then ac_cv_path_EGREP="$GREP -E"
6057 else
6058 if test -z "$EGREP"; then
6059 ac_path_EGREP_found=false
6060 # Loop through the user's path and test for each of PROGNAME-LIST
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_prog in egrep; do
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6069 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6070 # Check for GNU ac_path_EGREP and select it if it is found.
6071 # Check for GNU $ac_path_EGREP
6072 case `"$ac_path_EGREP" --version 2>&1` in
6073 *GNU*)
6074 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6076 ac_count=0
6077 $as_echo_n 0123456789 >"conftest.in"
6078 while :
6080 cat "conftest.in" "conftest.in" >"conftest.tmp"
6081 mv "conftest.tmp" "conftest.in"
6082 cp "conftest.in" "conftest.nl"
6083 $as_echo 'EGREP' >> "conftest.nl"
6084 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6085 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6086 as_fn_arith $ac_count + 1 && ac_count=$as_val
6087 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6088 # Best one so far, save it but keep looking for a better one
6089 ac_cv_path_EGREP="$ac_path_EGREP"
6090 ac_path_EGREP_max=$ac_count
6092 # 10*(2^10) chars as input seems more than enough
6093 test $ac_count -gt 10 && break
6094 done
6095 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6096 esac
6098 $ac_path_EGREP_found && break 3
6099 done
6100 done
6101 done
6102 IFS=$as_save_IFS
6103 if test -z "$ac_cv_path_EGREP"; then
6104 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6106 else
6107 ac_cv_path_EGREP=$EGREP
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6113 $as_echo "$ac_cv_path_EGREP" >&6; }
6114 EGREP="$ac_cv_path_EGREP"
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6120 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6121 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6128 #ifdef __ACK__
6129 Amsterdam
6130 #endif
6132 _ACEOF
6133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6134 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6135 gl_cv_c_amsterdam_compiler=yes
6136 else
6137 gl_cv_c_amsterdam_compiler=no
6139 rm -f conftest*
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6144 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6145 if test -z "$AR"; then
6146 if test $gl_cv_c_amsterdam_compiler = yes; then
6147 AR='cc -c.a'
6148 if test -z "$ARFLAGS"; then
6149 ARFLAGS='-o'
6151 else
6152 if test -n "$ac_tool_prefix"; then
6153 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6154 set dummy ${ac_tool_prefix}ar; ac_word=$2
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156 $as_echo_n "checking for $ac_word... " >&6; }
6157 if test "${ac_cv_prog_AR+set}" = set; then :
6158 $as_echo_n "(cached) " >&6
6159 else
6160 if test -n "$AR"; then
6161 ac_cv_prog_AR="$AR" # Let the user override the test.
6162 else
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 for as_dir in $PATH
6166 IFS=$as_save_IFS
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6170 ac_cv_prog_AR="${ac_tool_prefix}ar"
6171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 break 2
6174 done
6175 done
6176 IFS=$as_save_IFS
6180 AR=$ac_cv_prog_AR
6181 if test -n "$AR"; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6183 $as_echo "$AR" >&6; }
6184 else
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186 $as_echo "no" >&6; }
6191 if test -z "$ac_cv_prog_AR"; then
6192 ac_ct_AR=$AR
6193 # Extract the first word of "ar", so it can be a program name with args.
6194 set dummy ar; ac_word=$2
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196 $as_echo_n "checking for $ac_word... " >&6; }
6197 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6198 $as_echo_n "(cached) " >&6
6199 else
6200 if test -n "$ac_ct_AR"; then
6201 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6202 else
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH
6206 IFS=$as_save_IFS
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6210 ac_cv_prog_ac_ct_AR="ar"
6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 break 2
6214 done
6215 done
6216 IFS=$as_save_IFS
6220 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6221 if test -n "$ac_ct_AR"; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6223 $as_echo "$ac_ct_AR" >&6; }
6224 else
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226 $as_echo "no" >&6; }
6229 if test "x$ac_ct_AR" = x; then
6230 AR="ar"
6231 else
6232 case $cross_compiling:$ac_tool_warned in
6233 yes:)
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6236 ac_tool_warned=yes ;;
6237 esac
6238 AR=$ac_ct_AR
6240 else
6241 AR="$ac_cv_prog_AR"
6244 if test -z "$ARFLAGS"; then
6245 ARFLAGS='cru'
6248 else
6249 if test -z "$ARFLAGS"; then
6250 ARFLAGS='cru'
6255 if test -z "$RANLIB"; then
6256 if test $gl_cv_c_amsterdam_compiler = yes; then
6257 RANLIB=':'
6258 else
6259 if test -n "$ac_tool_prefix"; then
6260 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6261 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263 $as_echo_n "checking for $ac_word... " >&6; }
6264 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6267 if test -n "$RANLIB"; then
6268 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6269 else
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 for as_dir in $PATH
6273 IFS=$as_save_IFS
6274 test -z "$as_dir" && as_dir=.
6275 for ac_exec_ext in '' $ac_executable_extensions; do
6276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6277 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6279 break 2
6281 done
6282 done
6283 IFS=$as_save_IFS
6287 RANLIB=$ac_cv_prog_RANLIB
6288 if test -n "$RANLIB"; then
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6290 $as_echo "$RANLIB" >&6; }
6291 else
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6298 if test -z "$ac_cv_prog_RANLIB"; then
6299 ac_ct_RANLIB=$RANLIB
6300 # Extract the first word of "ranlib", so it can be a program name with args.
6301 set dummy ranlib; ac_word=$2
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 $as_echo_n "checking for $ac_word... " >&6; }
6304 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 if test -n "$ac_ct_RANLIB"; then
6308 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6309 else
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6317 ac_cv_prog_ac_ct_RANLIB="ranlib"
6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 break 2
6321 done
6322 done
6323 IFS=$as_save_IFS
6327 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6328 if test -n "$ac_ct_RANLIB"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6330 $as_echo "$ac_ct_RANLIB" >&6; }
6331 else
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6336 if test "x$ac_ct_RANLIB" = x; then
6337 RANLIB=":"
6338 else
6339 case $cross_compiling:$ac_tool_warned in
6340 yes:)
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6343 ac_tool_warned=yes ;;
6344 esac
6345 RANLIB=$ac_ct_RANLIB
6347 else
6348 RANLIB="$ac_cv_prog_RANLIB"
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6356 $as_echo_n "checking for ANSI C header files... " >&6; }
6357 if test "${ac_cv_header_stdc+set}" = set; then :
6358 $as_echo_n "(cached) " >&6
6359 else
6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6362 #include <stdlib.h>
6363 #include <stdarg.h>
6364 #include <string.h>
6365 #include <float.h>
6368 main ()
6372 return 0;
6374 _ACEOF
6375 if ac_fn_c_try_compile "$LINENO"; then :
6376 ac_cv_header_stdc=yes
6377 else
6378 ac_cv_header_stdc=no
6380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6382 if test $ac_cv_header_stdc = yes; then
6383 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6386 #include <string.h>
6388 _ACEOF
6389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6390 $EGREP "memchr" >/dev/null 2>&1; then :
6392 else
6393 ac_cv_header_stdc=no
6395 rm -f conftest*
6399 if test $ac_cv_header_stdc = yes; then
6400 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h. */
6403 #include <stdlib.h>
6405 _ACEOF
6406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6407 $EGREP "free" >/dev/null 2>&1; then :
6409 else
6410 ac_cv_header_stdc=no
6412 rm -f conftest*
6416 if test $ac_cv_header_stdc = yes; then
6417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6418 if test "$cross_compiling" = yes; then :
6420 else
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 #include <ctype.h>
6424 #include <stdlib.h>
6425 #if ((' ' & 0x0FF) == 0x020)
6426 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6427 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6428 #else
6429 # define ISLOWER(c) \
6430 (('a' <= (c) && (c) <= 'i') \
6431 || ('j' <= (c) && (c) <= 'r') \
6432 || ('s' <= (c) && (c) <= 'z'))
6433 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6434 #endif
6436 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6438 main ()
6440 int i;
6441 for (i = 0; i < 256; i++)
6442 if (XOR (islower (i), ISLOWER (i))
6443 || toupper (i) != TOUPPER (i))
6444 return 2;
6445 return 0;
6447 _ACEOF
6448 if ac_fn_c_try_run "$LINENO"; then :
6450 else
6451 ac_cv_header_stdc=no
6453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6454 conftest.$ac_objext conftest.beam conftest.$ac_ext
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6460 $as_echo "$ac_cv_header_stdc" >&6; }
6461 if test $ac_cv_header_stdc = yes; then
6463 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6467 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6468 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6469 inttypes.h stdint.h unistd.h
6470 do :
6471 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6472 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6474 eval as_val=\$$as_ac_Header
6475 if test "x$as_val" = x""yes; then :
6476 cat >>confdefs.h <<_ACEOF
6477 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6478 _ACEOF
6482 done
6486 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6487 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6488 MINIX=yes
6489 else
6490 MINIX=
6494 if test "$MINIX" = yes; then
6496 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6499 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6502 $as_echo "#define _MINIX 1" >>confdefs.h
6505 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6511 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6512 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6513 $as_echo_n "(cached) " >&6
6514 else
6515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516 /* end confdefs.h. */
6518 # define __EXTENSIONS__ 1
6519 $ac_includes_default
6521 main ()
6525 return 0;
6527 _ACEOF
6528 if ac_fn_c_try_compile "$LINENO"; then :
6529 ac_cv_safe_to_define___extensions__=yes
6530 else
6531 ac_cv_safe_to_define___extensions__=no
6533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6536 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6537 test $ac_cv_safe_to_define___extensions__ = yes &&
6538 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6540 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6542 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6544 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6546 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6548 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6551 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6552 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6553 $as_echo_n "(cached) " >&6
6554 else
6555 ac_cv_should_define__xopen_source=no
6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h. */
6559 #include <wchar.h>
6560 mbstate_t x;
6562 main ()
6566 return 0;
6568 _ACEOF
6569 if ac_fn_c_try_compile "$LINENO"; then :
6571 else
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6575 #define _XOPEN_SOURCE 500
6576 #include <wchar.h>
6577 mbstate_t x;
6579 main ()
6583 return 0;
6585 _ACEOF
6586 if ac_fn_c_try_compile "$LINENO"; then :
6587 ac_cv_should_define__xopen_source=yes
6589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6594 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6595 test $ac_cv_should_define__xopen_source = yes &&
6596 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6605 # Check whether --enable-largefile was given.
6606 if test "${enable_largefile+set}" = set; then :
6607 enableval=$enable_largefile;
6610 if test "$enable_largefile" != no; then
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6613 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6614 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6615 $as_echo_n "(cached) " >&6
6616 else
6617 ac_cv_sys_largefile_CC=no
6618 if test "$GCC" != yes; then
6619 ac_save_CC=$CC
6620 while :; do
6621 # IRIX 6.2 and later do not support large files by default,
6622 # so use the C compiler's -n32 option if that helps.
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h. */
6625 #include <sys/types.h>
6626 /* Check that off_t can represent 2**63 - 1 correctly.
6627 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6628 since some C++ compilers masquerading as C compilers
6629 incorrectly reject 9223372036854775807. */
6630 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6631 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6632 && LARGE_OFF_T % 2147483647 == 1)
6633 ? 1 : -1];
6635 main ()
6639 return 0;
6641 _ACEOF
6642 if ac_fn_c_try_compile "$LINENO"; then :
6643 break
6645 rm -f core conftest.err conftest.$ac_objext
6646 CC="$CC -n32"
6647 if ac_fn_c_try_compile "$LINENO"; then :
6648 ac_cv_sys_largefile_CC=' -n32'; break
6650 rm -f core conftest.err conftest.$ac_objext
6651 break
6652 done
6653 CC=$ac_save_CC
6654 rm -f conftest.$ac_ext
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6658 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6659 if test "$ac_cv_sys_largefile_CC" != no; then
6660 CC=$CC$ac_cv_sys_largefile_CC
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6664 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6665 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6666 $as_echo_n "(cached) " >&6
6667 else
6668 while :; do
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6671 #include <sys/types.h>
6672 /* Check that off_t can represent 2**63 - 1 correctly.
6673 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6674 since some C++ compilers masquerading as C compilers
6675 incorrectly reject 9223372036854775807. */
6676 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6677 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6678 && LARGE_OFF_T % 2147483647 == 1)
6679 ? 1 : -1];
6681 main ()
6685 return 0;
6687 _ACEOF
6688 if ac_fn_c_try_compile "$LINENO"; then :
6689 ac_cv_sys_file_offset_bits=no; break
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6694 #define _FILE_OFFSET_BITS 64
6695 #include <sys/types.h>
6696 /* Check that off_t can represent 2**63 - 1 correctly.
6697 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6698 since some C++ compilers masquerading as C compilers
6699 incorrectly reject 9223372036854775807. */
6700 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6701 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6702 && LARGE_OFF_T % 2147483647 == 1)
6703 ? 1 : -1];
6705 main ()
6709 return 0;
6711 _ACEOF
6712 if ac_fn_c_try_compile "$LINENO"; then :
6713 ac_cv_sys_file_offset_bits=64; break
6715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716 ac_cv_sys_file_offset_bits=unknown
6717 break
6718 done
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6721 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6722 case $ac_cv_sys_file_offset_bits in #(
6723 no | unknown) ;;
6725 cat >>confdefs.h <<_ACEOF
6726 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6727 _ACEOF
6729 esac
6730 rm -rf conftest*
6731 if test $ac_cv_sys_file_offset_bits = unknown; then
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6733 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6734 if test "${ac_cv_sys_large_files+set}" = set; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 while :; do
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6740 #include <sys/types.h>
6741 /* Check that off_t can represent 2**63 - 1 correctly.
6742 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6743 since some C++ compilers masquerading as C compilers
6744 incorrectly reject 9223372036854775807. */
6745 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6746 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6747 && LARGE_OFF_T % 2147483647 == 1)
6748 ? 1 : -1];
6750 main ()
6754 return 0;
6756 _ACEOF
6757 if ac_fn_c_try_compile "$LINENO"; then :
6758 ac_cv_sys_large_files=no; break
6760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6763 #define _LARGE_FILES 1
6764 #include <sys/types.h>
6765 /* Check that off_t can represent 2**63 - 1 correctly.
6766 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6767 since some C++ compilers masquerading as C compilers
6768 incorrectly reject 9223372036854775807. */
6769 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6770 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6771 && LARGE_OFF_T % 2147483647 == 1)
6772 ? 1 : -1];
6774 main ()
6778 return 0;
6780 _ACEOF
6781 if ac_fn_c_try_compile "$LINENO"; then :
6782 ac_cv_sys_large_files=1; break
6784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785 ac_cv_sys_large_files=unknown
6786 break
6787 done
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6790 $as_echo "$ac_cv_sys_large_files" >&6; }
6791 case $ac_cv_sys_large_files in #(
6792 no | unknown) ;;
6794 cat >>confdefs.h <<_ACEOF
6795 #define _LARGE_FILES $ac_cv_sys_large_files
6796 _ACEOF
6798 esac
6799 rm -rf conftest*
6803 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6807 case $ac_cv_prog_cc_stdc in #(
6808 no) :
6809 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6810 *) :
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6812 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6813 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 ac_cv_prog_cc_c99=no
6817 ac_save_CC=$CC
6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6820 #include <stdarg.h>
6821 #include <stdbool.h>
6822 #include <stdlib.h>
6823 #include <wchar.h>
6824 #include <stdio.h>
6826 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6827 #define debug(...) fprintf (stderr, __VA_ARGS__)
6828 #define showlist(...) puts (#__VA_ARGS__)
6829 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6830 static void
6831 test_varargs_macros (void)
6833 int x = 1234;
6834 int y = 5678;
6835 debug ("Flag");
6836 debug ("X = %d\n", x);
6837 showlist (The first, second, and third items.);
6838 report (x>y, "x is %d but y is %d", x, y);
6841 // Check long long types.
6842 #define BIG64 18446744073709551615ull
6843 #define BIG32 4294967295ul
6844 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6845 #if !BIG_OK
6846 your preprocessor is broken;
6847 #endif
6848 #if BIG_OK
6849 #else
6850 your preprocessor is broken;
6851 #endif
6852 static long long int bignum = -9223372036854775807LL;
6853 static unsigned long long int ubignum = BIG64;
6855 struct incomplete_array
6857 int datasize;
6858 double data[];
6861 struct named_init {
6862 int number;
6863 const wchar_t *name;
6864 double average;
6867 typedef const char *ccp;
6869 static inline int
6870 test_restrict (ccp restrict text)
6872 // See if C++-style comments work.
6873 // Iterate through items via the restricted pointer.
6874 // Also check for declarations in for loops.
6875 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6876 continue;
6877 return 0;
6880 // Check varargs and va_copy.
6881 static void
6882 test_varargs (const char *format, ...)
6884 va_list args;
6885 va_start (args, format);
6886 va_list args_copy;
6887 va_copy (args_copy, args);
6889 const char *str;
6890 int number;
6891 float fnumber;
6893 while (*format)
6895 switch (*format++)
6897 case 's': // string
6898 str = va_arg (args_copy, const char *);
6899 break;
6900 case 'd': // int
6901 number = va_arg (args_copy, int);
6902 break;
6903 case 'f': // float
6904 fnumber = va_arg (args_copy, double);
6905 break;
6906 default:
6907 break;
6910 va_end (args_copy);
6911 va_end (args);
6915 main ()
6918 // Check bool.
6919 _Bool success = false;
6921 // Check restrict.
6922 if (test_restrict ("String literal") == 0)
6923 success = true;
6924 char *restrict newvar = "Another string";
6926 // Check varargs.
6927 test_varargs ("s, d' f .", "string", 65, 34.234);
6928 test_varargs_macros ();
6930 // Check flexible array members.
6931 struct incomplete_array *ia =
6932 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6933 ia->datasize = 10;
6934 for (int i = 0; i < ia->datasize; ++i)
6935 ia->data[i] = i * 1.234;
6937 // Check named initializers.
6938 struct named_init ni = {
6939 .number = 34,
6940 .name = L"Test wide string",
6941 .average = 543.34343,
6944 ni.number = 58;
6946 int dynamic_array[ni.number];
6947 dynamic_array[ni.number - 1] = 543;
6949 // work around unused variable warnings
6950 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6951 || dynamic_array[ni.number - 1] != 543);
6954 return 0;
6956 _ACEOF
6957 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6959 CC="$ac_save_CC $ac_arg"
6960 if ac_fn_c_try_compile "$LINENO"; then :
6961 ac_cv_prog_cc_c99=$ac_arg
6963 rm -f core conftest.err conftest.$ac_objext
6964 test "x$ac_cv_prog_cc_c99" != "xno" && break
6965 done
6966 rm -f conftest.$ac_ext
6967 CC=$ac_save_CC
6970 # AC_CACHE_VAL
6971 case "x$ac_cv_prog_cc_c99" in
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6974 $as_echo "none needed" >&6; } ;;
6975 xno)
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6977 $as_echo "unsupported" >&6; } ;;
6979 CC="$CC $ac_cv_prog_cc_c99"
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6981 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6982 esac
6983 if test "x$ac_cv_prog_cc_c99" != xno; then :
6984 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6985 else
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6987 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6988 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 ac_cv_prog_cc_c89=no
6992 ac_save_CC=$CC
6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h. */
6995 #include <stdarg.h>
6996 #include <stdio.h>
6997 #include <sys/types.h>
6998 #include <sys/stat.h>
6999 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7000 struct buf { int x; };
7001 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7002 static char *e (p, i)
7003 char **p;
7004 int i;
7006 return p[i];
7008 static char *f (char * (*g) (char **, int), char **p, ...)
7010 char *s;
7011 va_list v;
7012 va_start (v,p);
7013 s = g (p, va_arg (v,int));
7014 va_end (v);
7015 return s;
7018 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7019 function prototypes and stuff, but not '\xHH' hex character constants.
7020 These don't provoke an error unfortunately, instead are silently treated
7021 as 'x'. The following induces an error, until -std is added to get
7022 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7023 array size at least. It's necessary to write '\x00'==0 to get something
7024 that's true only with -std. */
7025 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7027 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7028 inside strings and character constants. */
7029 #define FOO(x) 'x'
7030 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7032 int test (int i, double x);
7033 struct s1 {int (*f) (int a);};
7034 struct s2 {int (*f) (double a);};
7035 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7036 int argc;
7037 char **argv;
7039 main ()
7041 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7043 return 0;
7045 _ACEOF
7046 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7047 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7049 CC="$ac_save_CC $ac_arg"
7050 if ac_fn_c_try_compile "$LINENO"; then :
7051 ac_cv_prog_cc_c89=$ac_arg
7053 rm -f core conftest.err conftest.$ac_objext
7054 test "x$ac_cv_prog_cc_c89" != "xno" && break
7055 done
7056 rm -f conftest.$ac_ext
7057 CC=$ac_save_CC
7060 # AC_CACHE_VAL
7061 case "x$ac_cv_prog_cc_c89" in
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7064 $as_echo "none needed" >&6; } ;;
7065 xno)
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7067 $as_echo "unsupported" >&6; } ;;
7069 CC="$CC $ac_cv_prog_cc_c89"
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7071 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7072 esac
7073 if test "x$ac_cv_prog_cc_c89" != xno; then :
7074 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7075 else
7076 ac_cv_prog_cc_stdc=no
7081 esac
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7083 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7084 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7085 $as_echo_n "(cached) " >&6
7088 case $ac_cv_prog_cc_stdc in #(
7089 no) :
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7091 $as_echo "unsupported" >&6; } ;; #(
7092 '') :
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7094 $as_echo "none needed" >&6; } ;; #(
7095 *) :
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7097 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7098 esac
7102 # Code from module alloca-opt:
7103 # Code from module allocator:
7104 # Code from module at-internal:
7105 # Code from module c-ctype:
7106 # Code from module c-strcase:
7107 # Code from module careadlinkat:
7108 # Code from module clock-time:
7109 # Code from module close-stream:
7110 # Code from module crypto/md5:
7111 # Code from module crypto/sha1:
7112 # Code from module crypto/sha256:
7113 # Code from module crypto/sha512:
7114 # Code from module dirent:
7115 # Code from module dosname:
7116 # Code from module dtoastr:
7117 # Code from module dtotimespec:
7118 # Code from module dup2:
7119 # Code from module environ:
7120 # Code from module euidaccess:
7121 # Code from module execinfo:
7122 # Code from module extensions:
7124 # Code from module extern-inline:
7125 # Code from module faccessat:
7126 # Code from module fcntl-h:
7127 # Code from module fdopendir:
7128 # Code from module filemode:
7129 # Code from module fpending:
7130 # Code from module fstatat:
7131 # Code from module getgroups:
7132 # Code from module getloadavg:
7133 # Code from module getopt-gnu:
7134 # Code from module getopt-posix:
7135 # Code from module gettext-h:
7136 # Code from module gettime:
7137 # Code from module gettimeofday:
7138 # Code from module group-member:
7139 # Code from module ignore-value:
7140 # Code from module include_next:
7141 # Code from module intprops:
7142 # Code from module inttypes-incomplete:
7143 # Code from module largefile:
7145 # Code from module lstat:
7146 # Code from module manywarnings:
7147 # Code from module mktime:
7148 # Code from module multiarch:
7149 # Code from module nocrash:
7150 # Code from module openat-h:
7151 # Code from module pathmax:
7152 # Code from module pselect:
7153 # Code from module pthread_sigmask:
7154 # Code from module putenv:
7155 # Code from module readlink:
7156 # Code from module readlinkat:
7157 # Code from module root-uid:
7158 # Code from module sig2str:
7159 # Code from module signal-h:
7160 # Code from module snippet/_Noreturn:
7161 # Code from module snippet/arg-nonnull:
7162 # Code from module snippet/c++defs:
7163 # Code from module snippet/warn-on-use:
7164 # Code from module socklen:
7165 # Code from module ssize_t:
7166 # Code from module stat:
7167 # Code from module stat-time:
7168 # Code from module stdalign:
7169 # Code from module stdarg:
7173 # Code from module stdbool:
7174 # Code from module stddef:
7175 # Code from module stdint:
7176 # Code from module stdio:
7177 # Code from module stdlib:
7178 # Code from module strftime:
7179 # Code from module strtoimax:
7180 # Code from module strtoll:
7181 # Code from module strtoull:
7182 # Code from module strtoumax:
7183 # Code from module symlink:
7184 # Code from module sys_select:
7185 # Code from module sys_stat:
7186 # Code from module sys_time:
7187 # Code from module time:
7188 # Code from module time_r:
7189 # Code from module timer-time:
7190 # Code from module timespec:
7191 # Code from module timespec-add:
7192 # Code from module timespec-sub:
7193 # Code from module u64:
7194 # Code from module unistd:
7195 # Code from module unsetenv:
7196 # Code from module utimens:
7197 # Code from module verify:
7198 # Code from module warnings:
7199 # Code from module xalloc-oversized:
7202 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7203 # if -g3 works and the user does not specify CFLAGS.
7204 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7205 if test "$ac_test_CFLAGS" != set; then
7206 case $CFLAGS in
7207 '-g')
7208 emacs_g3_CFLAGS='-g3';;
7209 '-g -O2')
7210 emacs_g3_CFLAGS='-g3 -O2';;
7212 emacs_g3_CFLAGS='';;
7213 esac
7214 if test -n "$emacs_g3_CFLAGS"; then
7215 emacs_save_CFLAGS=$CFLAGS
7216 CFLAGS=$emacs_g3_CFLAGS
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7218 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7219 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7220 $as_echo_n "(cached) " >&6
7221 else
7222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223 /* end confdefs.h. */
7226 main ()
7230 return 0;
7232 _ACEOF
7233 if ac_fn_c_try_link "$LINENO"; then :
7234 emacs_cv_prog_cc_g3=yes
7235 else
7236 emacs_cv_prog_cc_g3=no
7238 rm -f core conftest.err conftest.$ac_objext \
7239 conftest$ac_exeext conftest.$ac_ext
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7242 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7243 if test $emacs_cv_prog_cc_g3 = yes; then
7244 CFLAGS=$emacs_g3_CFLAGS
7245 else
7246 CFLAGS=$emacs_save_CFLAGS
7251 # Check whether --enable-gcc-warnings was given.
7252 if test "${enable_gcc_warnings+set}" = set; then :
7253 enableval=$enable_gcc_warnings; case $enableval in
7254 yes|no) ;;
7255 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7256 esac
7257 gl_gcc_warnings=$enableval
7258 else
7259 gl_gcc_warnings=no
7264 # Check whether --enable-link-time-optimization was given.
7265 if test "${enable_link_time_optimization+set}" = set; then :
7266 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7268 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7269 ac_lto_supported=no
7270 if test x$GCC = xyes; then
7271 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7272 if test x$CPUS != x; then
7273 LTO="-flto=$CPUS"
7274 else
7275 LTO="-flto"
7277 old_CFLAGS=$CFLAGS
7278 CFLAGS="$CFLAGS $LTO"
7279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h. */
7283 main ()
7287 return 0;
7289 _ACEOF
7290 if ac_fn_c_try_compile "$LINENO"; then :
7291 ac_lto_supported=yes
7292 else
7293 ac_lto_supported=no
7295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296 CFLAGS="$old_CFLAGS"
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7299 $as_echo "$ac_lto_supported" >&6; }
7300 if test "$ac_lto_supported" = "yes"; then
7301 CFLAGS="$CFLAGS $LTO"
7307 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7308 # ------------------------------------------------
7309 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7310 # Otherwise, run RUN-IF-NOT-FOUND.
7313 # When compiling with GCC, prefer -isystem to -I when including system
7314 # include files, to avoid generating useless diagnostics for the files.
7315 if test "$gl_gcc_warnings" != yes; then
7316 isystem='-I'
7317 else
7318 isystem='-isystem '
7320 # This, $nw, is the list of warnings we disable.
7323 case $with_x_toolkit in
7324 lucid | athena | motif)
7325 # Old toolkits mishandle 'const'.
7326 nw="$nw -Wwrite-strings"
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7330 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7331 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7332 $as_echo_n "(cached) " >&6
7333 else
7335 gl_save_compiler_FLAGS="$CFLAGS"
7336 as_fn_append CFLAGS " -Werror"
7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7341 main ()
7345 return 0;
7347 _ACEOF
7348 if ac_fn_c_try_compile "$LINENO"; then :
7349 gl_cv_warn_c__Werror=yes
7350 else
7351 gl_cv_warn_c__Werror=no
7353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7354 CFLAGS="$gl_save_compiler_FLAGS"
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7358 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7359 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7360 as_fn_append WERROR_CFLAGS " -Werror"
7365 esac
7368 nw="$nw -Waggregate-return" # anachronistic
7369 nw="$nw -Wlong-long" # C90 is anachronistic
7370 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7371 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7372 nw="$nw -Wtraditional" # Warns on #elif which we use often
7373 nw="$nw -Wcast-qual" # Too many warnings for now
7374 nw="$nw -Wconversion" # Too many warnings for now
7375 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7376 nw="$nw -Wsign-conversion" # Too many warnings for now
7377 nw="$nw -Woverlength-strings" # Not a problem these days
7378 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7379 nw="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7380 nw="$nw -Wpadded" # Our structs are not padded
7381 nw="$nw -Wredundant-decls" # we regularly (re)declare functions
7382 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7383 nw="$nw -Wformat-nonliteral" # we do this a lot
7384 nw="$nw -Wvla" # warnings in gettext.h
7385 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7386 nw="$nw -Wswitch-enum" # Too many warnings for now
7387 nw="$nw -Wswitch-default" # Too many warnings for now
7388 nw="$nw -Wfloat-equal" # warns about high-quality code
7389 nw="$nw -Winline" # OK to ignore 'inline'
7390 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7391 nw="$nw -Wstrict-overflow" # OK to optimize assuming that
7392 # signed overflow has undefined behavior
7393 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7394 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7396 # Emacs doesn't care about shadowing; see
7397 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7398 nw="$nw -Wshadow"
7400 # Emacs's use of alloca inhibits protecting the stack.
7401 nw="$nw -Wstack-protector"
7403 # The following line should be removable at some point.
7404 nw="$nw -Wsuggest-attribute=pure"
7408 if test -n "$GCC"; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7411 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7412 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7413 $as_echo_n "(cached) " >&6
7414 else
7416 gl_save_CFLAGS="$CFLAGS"
7417 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419 /* end confdefs.h. */
7422 main ()
7426 return 0;
7428 _ACEOF
7429 if ac_fn_c_try_compile "$LINENO"; then :
7430 gl_cv_cc_nomfi_supported=yes
7431 else
7432 gl_cv_cc_nomfi_supported=no
7434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7435 CFLAGS="$gl_save_CFLAGS"
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7439 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7441 if test "$gl_cv_cc_nomfi_supported" = yes; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7443 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7444 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7448 gl_save_CFLAGS="$CFLAGS"
7449 CFLAGS="$CFLAGS -W -Werror"
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7452 void f (void)
7454 typedef struct { int a; int b; } s_t;
7455 s_t s1 = { 0, };
7459 main ()
7463 return 0;
7465 _ACEOF
7466 if ac_fn_c_try_compile "$LINENO"; then :
7467 gl_cv_cc_nomfi_needed=no
7468 else
7469 gl_cv_cc_nomfi_needed=yes
7471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7472 CFLAGS="$gl_save_CFLAGS"
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7477 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7481 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7482 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7486 gl_save_CFLAGS="$CFLAGS"
7487 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7492 main ()
7496 return 0;
7498 _ACEOF
7499 if ac_fn_c_try_compile "$LINENO"; then :
7500 gl_cv_cc_uninitialized_supported=yes
7501 else
7502 gl_cv_cc_uninitialized_supported=no
7504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7505 CFLAGS="$gl_save_CFLAGS"
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7509 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7513 # List all gcc warning categories.
7514 gl_manywarn_set=
7515 for gl_manywarn_item in \
7516 -W \
7517 -Wabi \
7518 -Waddress \
7519 -Wall \
7520 -Warray-bounds \
7521 -Wattributes \
7522 -Wbad-function-cast \
7523 -Wbuiltin-macro-redefined \
7524 -Wcast-align \
7525 -Wchar-subscripts \
7526 -Wclobbered \
7527 -Wcomment \
7528 -Wcomments \
7529 -Wcoverage-mismatch \
7530 -Wcpp \
7531 -Wdeprecated \
7532 -Wdeprecated-declarations \
7533 -Wdisabled-optimization \
7534 -Wdiv-by-zero \
7535 -Wdouble-promotion \
7536 -Wempty-body \
7537 -Wendif-labels \
7538 -Wenum-compare \
7539 -Wextra \
7540 -Wformat-contains-nul \
7541 -Wformat-extra-args \
7542 -Wformat-nonliteral \
7543 -Wformat-security \
7544 -Wformat-y2k \
7545 -Wformat-zero-length \
7546 -Wformat=2 \
7547 -Wfree-nonheap-object \
7548 -Wignored-qualifiers \
7549 -Wimplicit \
7550 -Wimplicit-function-declaration \
7551 -Wimplicit-int \
7552 -Winit-self \
7553 -Winline \
7554 -Wint-to-pointer-cast \
7555 -Winvalid-memory-model \
7556 -Winvalid-pch \
7557 -Wjump-misses-init \
7558 -Wlogical-op \
7559 -Wmain \
7560 -Wmaybe-uninitialized \
7561 -Wmissing-braces \
7562 -Wmissing-declarations \
7563 -Wmissing-field-initializers \
7564 -Wmissing-format-attribute \
7565 -Wmissing-include-dirs \
7566 -Wmissing-noreturn \
7567 -Wmissing-parameter-type \
7568 -Wmissing-prototypes \
7569 -Wmudflap \
7570 -Wmultichar \
7571 -Wnarrowing \
7572 -Wnested-externs \
7573 -Wnonnull \
7574 -Wnormalized=nfc \
7575 -Wold-style-declaration \
7576 -Wold-style-definition \
7577 -Woverflow \
7578 -Woverlength-strings \
7579 -Woverride-init \
7580 -Wpacked \
7581 -Wpacked-bitfield-compat \
7582 -Wparentheses \
7583 -Wpointer-arith \
7584 -Wpointer-sign \
7585 -Wpointer-to-int-cast \
7586 -Wpragmas \
7587 -Wreturn-type \
7588 -Wsequence-point \
7589 -Wshadow \
7590 -Wsizeof-pointer-memaccess \
7591 -Wstack-protector \
7592 -Wstrict-aliasing \
7593 -Wstrict-overflow \
7594 -Wstrict-prototypes \
7595 -Wsuggest-attribute=const \
7596 -Wsuggest-attribute=format \
7597 -Wsuggest-attribute=noreturn \
7598 -Wsuggest-attribute=pure \
7599 -Wswitch \
7600 -Wswitch-default \
7601 -Wsync-nand \
7602 -Wsystem-headers \
7603 -Wtrampolines \
7604 -Wtrigraphs \
7605 -Wtype-limits \
7606 -Wuninitialized \
7607 -Wunknown-pragmas \
7608 -Wunreachable-code \
7609 -Wunsafe-loop-optimizations \
7610 -Wunused \
7611 -Wunused-but-set-parameter \
7612 -Wunused-but-set-variable \
7613 -Wunused-function \
7614 -Wunused-label \
7615 -Wunused-local-typedefs \
7616 -Wunused-macros \
7617 -Wunused-parameter \
7618 -Wunused-result \
7619 -Wunused-value \
7620 -Wunused-variable \
7621 -Wvarargs \
7622 -Wvariadic-macros \
7623 -Wvector-operation-performance \
7624 -Wvla \
7625 -Wvolatile-register-var \
7626 -Wwrite-strings \
7628 ; do
7629 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7630 done
7632 # Disable specific options as needed.
7633 if test "$gl_cv_cc_nomfi_needed" = yes; then
7634 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7637 if test "$gl_cv_cc_uninitialized_supported" = no; then
7638 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
7641 ws=$gl_manywarn_set
7644 gl_warn_set=
7645 set x $ws; shift
7646 for gl_warn_item
7648 case " $nw " in
7649 *" $gl_warn_item "*)
7652 gl_warn_set="$gl_warn_set $gl_warn_item"
7654 esac
7655 done
7656 ws=$gl_warn_set
7658 for w in $ws; do
7659 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7661 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7662 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7663 $as_echo_n "(cached) " >&6
7664 else
7666 gl_save_compiler_FLAGS="$CFLAGS"
7667 as_fn_append CFLAGS " $w"
7668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h. */
7672 main ()
7676 return 0;
7678 _ACEOF
7679 if ac_fn_c_try_compile "$LINENO"; then :
7680 eval "$as_gl_Warn=yes"
7681 else
7682 eval "$as_gl_Warn=no"
7684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7685 CFLAGS="$gl_save_compiler_FLAGS"
7688 eval ac_res=\$$as_gl_Warn
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7690 $as_echo "$ac_res" >&6; }
7691 eval as_val=\$$as_gl_Warn
7692 if test "x$as_val" = x""yes; then :
7693 as_fn_append WARN_CFLAGS " $w"
7697 done
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7699 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7700 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7701 $as_echo_n "(cached) " >&6
7702 else
7704 gl_save_compiler_FLAGS="$CFLAGS"
7705 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707 /* end confdefs.h. */
7710 main ()
7714 return 0;
7716 _ACEOF
7717 if ac_fn_c_try_compile "$LINENO"; then :
7718 gl_cv_warn_c__Wno_missing_field_initializers=yes
7719 else
7720 gl_cv_warn_c__Wno_missing_field_initializers=no
7722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7723 CFLAGS="$gl_save_compiler_FLAGS"
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7727 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7728 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7729 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7732 # We need this one
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7734 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7735 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7736 $as_echo_n "(cached) " >&6
7737 else
7739 gl_save_compiler_FLAGS="$CFLAGS"
7740 as_fn_append CFLAGS " -Wno-sign-compare"
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7745 main ()
7749 return 0;
7751 _ACEOF
7752 if ac_fn_c_try_compile "$LINENO"; then :
7753 gl_cv_warn_c__Wno_sign_compare=yes
7754 else
7755 gl_cv_warn_c__Wno_sign_compare=no
7757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7758 CFLAGS="$gl_save_compiler_FLAGS"
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7762 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7763 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7764 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7767 # Too many warnings for now
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7769 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7770 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7774 gl_save_compiler_FLAGS="$CFLAGS"
7775 as_fn_append CFLAGS " -Wno-type-limits"
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7780 main ()
7784 return 0;
7786 _ACEOF
7787 if ac_fn_c_try_compile "$LINENO"; then :
7788 gl_cv_warn_c__Wno_type_limits=yes
7789 else
7790 gl_cv_warn_c__Wno_type_limits=no
7792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7793 CFLAGS="$gl_save_compiler_FLAGS"
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7797 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7798 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7799 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7802 # Too many warnings for now
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7804 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7805 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7809 gl_save_compiler_FLAGS="$CFLAGS"
7810 as_fn_append CFLAGS " -Wno-switch"
7811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812 /* end confdefs.h. */
7815 main ()
7819 return 0;
7821 _ACEOF
7822 if ac_fn_c_try_compile "$LINENO"; then :
7823 gl_cv_warn_c__Wno_switch=yes
7824 else
7825 gl_cv_warn_c__Wno_switch=no
7827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7828 CFLAGS="$gl_save_compiler_FLAGS"
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7832 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7833 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7834 as_fn_append WARN_CFLAGS " -Wno-switch"
7837 # Too many warnings for now
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7839 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7840 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7841 $as_echo_n "(cached) " >&6
7842 else
7844 gl_save_compiler_FLAGS="$CFLAGS"
7845 as_fn_append CFLAGS " -Wno-unused-parameter"
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7850 main ()
7854 return 0;
7856 _ACEOF
7857 if ac_fn_c_try_compile "$LINENO"; then :
7858 gl_cv_warn_c__Wno_unused_parameter=yes
7859 else
7860 gl_cv_warn_c__Wno_unused_parameter=no
7862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7863 CFLAGS="$gl_save_compiler_FLAGS"
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7867 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7868 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7869 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7872 # Too many warnings for now
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7874 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7875 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7876 $as_echo_n "(cached) " >&6
7877 else
7879 gl_save_compiler_FLAGS="$CFLAGS"
7880 as_fn_append CFLAGS " -Wno-format-nonliteral"
7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882 /* end confdefs.h. */
7885 main ()
7889 return 0;
7891 _ACEOF
7892 if ac_fn_c_try_compile "$LINENO"; then :
7893 gl_cv_warn_c__Wno_format_nonliteral=yes
7894 else
7895 gl_cv_warn_c__Wno_format_nonliteral=no
7897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7898 CFLAGS="$gl_save_compiler_FLAGS"
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7902 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7903 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7904 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7909 # In spite of excluding -Wlogical-op above, it is enabled, as of
7910 # gcc 4.5.0 20090517.
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7912 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7913 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7917 gl_save_compiler_FLAGS="$CFLAGS"
7918 as_fn_append CFLAGS " -Wno-logical-op"
7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7923 main ()
7927 return 0;
7929 _ACEOF
7930 if ac_fn_c_try_compile "$LINENO"; then :
7931 gl_cv_warn_c__Wno_logical_op=yes
7932 else
7933 gl_cv_warn_c__Wno_logical_op=no
7935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7936 CFLAGS="$gl_save_compiler_FLAGS"
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7940 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7941 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7942 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7948 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7949 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7953 gl_save_compiler_FLAGS="$CFLAGS"
7954 as_fn_append CFLAGS " -fdiagnostics-show-option"
7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h. */
7959 main ()
7963 return 0;
7965 _ACEOF
7966 if ac_fn_c_try_compile "$LINENO"; then :
7967 gl_cv_warn_c__fdiagnostics_show_option=yes
7968 else
7969 gl_cv_warn_c__fdiagnostics_show_option=no
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7972 CFLAGS="$gl_save_compiler_FLAGS"
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7976 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7977 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7978 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7983 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7984 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7985 $as_echo_n "(cached) " >&6
7986 else
7988 gl_save_compiler_FLAGS="$CFLAGS"
7989 as_fn_append CFLAGS " -funit-at-a-time"
7990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h. */
7994 main ()
7998 return 0;
8000 _ACEOF
8001 if ac_fn_c_try_compile "$LINENO"; then :
8002 gl_cv_warn_c__funit_at_a_time=yes
8003 else
8004 gl_cv_warn_c__funit_at_a_time=no
8006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8007 CFLAGS="$gl_save_compiler_FLAGS"
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
8011 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
8012 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
8013 as_fn_append WARN_CFLAGS " -funit-at-a-time"
8019 $as_echo "#define lint 1" >>confdefs.h
8023 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8026 # We use a slightly smaller set of warning options for lib/.
8027 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8029 nw="$nw -Wunused-macros"
8032 gl_warn_set=
8033 set x $WARN_CFLAGS; shift
8034 for gl_warn_item
8036 case " $nw " in
8037 *" $gl_warn_item "*)
8040 gl_warn_set="$gl_warn_set $gl_warn_item"
8042 esac
8043 done
8044 GNULIB_WARN_CFLAGS=$gl_warn_set
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8052 $as_echo_n "checking whether ln -s works... " >&6; }
8053 LN_S=$as_ln_s
8054 if test "$LN_S" = "ln -s"; then
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8056 $as_echo "yes" >&6; }
8057 else
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8059 $as_echo "no, using $LN_S" >&6; }
8063 # Extract the first word of "install-info", so it can be a program name with args.
8064 set dummy install-info; ac_word=$2
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 $as_echo_n "checking for $ac_word... " >&6; }
8067 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 case $INSTALL_INFO in
8071 [\\/]* | ?:[\\/]*)
8072 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8082 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 break 2
8086 done
8087 done
8088 IFS=$as_save_IFS
8090 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
8092 esac
8094 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8095 if test -n "$INSTALL_INFO"; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8097 $as_echo "$INSTALL_INFO" >&6; }
8098 else
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }
8104 # Extract the first word of "gzip", so it can be a program name with args.
8105 set dummy gzip; ac_word=$2
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8107 $as_echo_n "checking for $ac_word... " >&6; }
8108 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8109 $as_echo_n "(cached) " >&6
8110 else
8111 case $GZIP_PROG in
8112 [\\/]* | ?:[\\/]*)
8113 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 for as_dir in $PATH
8119 IFS=$as_save_IFS
8120 test -z "$as_dir" && as_dir=.
8121 for ac_exec_ext in '' $ac_executable_extensions; do
8122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8123 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8125 break 2
8127 done
8128 done
8129 IFS=$as_save_IFS
8132 esac
8134 GZIP_PROG=$ac_cv_path_GZIP_PROG
8135 if test -n "$GZIP_PROG"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8137 $as_echo "$GZIP_PROG" >&6; }
8138 else
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8145 if test $opsys = gnu-linux; then
8146 # Extract the first word of "paxctl", so it can be a program name with args.
8147 set dummy paxctl; ac_word=$2
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8149 $as_echo_n "checking for $ac_word... " >&6; }
8150 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8151 $as_echo_n "(cached) " >&6
8152 else
8153 case $PAXCTL in
8154 [\\/]* | ?:[\\/]*)
8155 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
8158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
8161 IFS=$as_save_IFS
8162 test -z "$as_dir" && as_dir=.
8163 for ac_exec_ext in '' $ac_executable_extensions; do
8164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8165 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
8166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8167 break 2
8169 done
8170 done
8171 IFS=$as_save_IFS
8174 esac
8176 PAXCTL=$ac_cv_path_PAXCTL
8177 if test -n "$PAXCTL"; then
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8179 $as_echo "$PAXCTL" >&6; }
8180 else
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182 $as_echo "no" >&6; }
8186 if test "X$PAXCTL" != X; then
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8188 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8193 main ()
8197 return 0;
8199 _ACEOF
8200 if ac_fn_c_try_link "$LINENO"; then :
8201 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8202 $as_echo "yes" >&6; }
8203 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 $as_echo "no" >&6; }; PAXCTL=""; fi
8206 rm -f core conftest.err conftest.$ac_objext \
8207 conftest$ac_exeext conftest.$ac_ext
8211 ## Need makeinfo >= 4.7 (?) to build the manuals.
8212 # Extract the first word of "makeinfo", so it can be a program name with args.
8213 set dummy makeinfo; ac_word=$2
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8215 $as_echo_n "checking for $ac_word... " >&6; }
8216 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8217 $as_echo_n "(cached) " >&6
8218 else
8219 case $MAKEINFO in
8220 [\\/]* | ?:[\\/]*)
8221 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 for as_dir in $PATH
8227 IFS=$as_save_IFS
8228 test -z "$as_dir" && as_dir=.
8229 for ac_exec_ext in '' $ac_executable_extensions; do
8230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8231 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8233 break 2
8235 done
8236 done
8237 IFS=$as_save_IFS
8239 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8241 esac
8243 MAKEINFO=$ac_cv_path_MAKEINFO
8244 if test -n "$MAKEINFO"; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8246 $as_echo "$MAKEINFO" >&6; }
8247 else
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249 $as_echo "no" >&6; }
8253 if test "$MAKEINFO" != "no"; then
8254 case `
8255 $MAKEINFO --version 2> /dev/null |
8256 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8257 ` in
8258 '') MAKEINFO=no;;
8259 esac
8262 ## Makeinfo is unusual. For a released Emacs, the manuals are
8263 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8264 ## therefore in the category of "special tools" not normally required, which
8265 ## configure does not have to check for (eg autoconf itself).
8266 ## In a Bazaar checkout on the other hand, the manuals are not included.
8267 ## So makeinfo is a requirement to build from Bazaar, and configure
8268 ## should test for it as it does for any other build requirement.
8269 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8270 ## with pre-built manuals, from a Bazaar checkout.
8271 HAVE_MAKEINFO=yes
8273 if test "$MAKEINFO" = "no"; then
8274 MAKEINFO=makeinfo
8275 if test "x${with_makeinfo}" = "xno"; then
8276 HAVE_MAKEINFO=no
8277 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8278 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8279 source tree does not seem to have pre-built manuals in the \`info' directory.
8280 Either install a suitable version of makeinfo, or re-run configure
8281 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8286 INFO_EXT=.info
8287 INFO_OPTS=--no-split
8292 if test x$GCC = xyes; then
8293 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8294 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8295 else
8296 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8297 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8301 late_LDFLAGS=$LDFLAGS
8302 if test x$GCC = xyes; then
8303 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8304 else
8305 LDFLAGS="$LDFLAGS -znocombreloc"
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8309 $as_echo_n "checking for -znocombreloc... " >&6; }
8310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8311 /* end confdefs.h. */
8314 main ()
8318 return 0;
8320 _ACEOF
8321 if ac_fn_c_try_link "$LINENO"; then :
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8323 $as_echo "yes" >&6; }
8324 else
8325 LDFLAGS=$late_LDFLAGS
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8329 rm -f core conftest.err conftest.$ac_objext \
8330 conftest$ac_exeext conftest.$ac_ext
8333 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8334 case "$opsys" in
8335 your-opsys-here) CANNOT_DUMP=yes ;;
8336 esac
8338 test "$CANNOT_DUMP" = "yes" && \
8340 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8346 UNEXEC_OBJ=unexelf.o
8347 case "$opsys" in
8348 # MSDOS uses unexcoff.o
8349 # MSWindows uses unexw32.o
8350 aix4-2)
8351 UNEXEC_OBJ=unexaix.o
8353 cygwin)
8354 UNEXEC_OBJ=unexcw.o
8356 darwin)
8357 UNEXEC_OBJ=unexmacosx.o
8359 hpux10-20 | hpux11)
8360 UNEXEC_OBJ=unexhp9k800.o
8362 sol2-10)
8363 # Use the Solaris dldump() function, called from unexsol.c, to dump
8364 # emacs, instead of the generic ELF dump code found in unexelf.c.
8365 # The resulting binary has a complete symbol table, and is better
8366 # for debugging and other observability tools (debuggers, pstack, etc).
8368 # If you encounter a problem using dldump(), please consider sending
8369 # a message to the OpenSolaris tools-linking mailing list:
8370 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8372 # It is likely that dldump() works with older Solaris too, but this has
8373 # not been tested, so for now this change is for Solaris 10 or newer.
8374 UNEXEC_OBJ=unexsol.o
8376 esac
8378 LD_SWITCH_SYSTEM=
8379 case "$opsys" in
8380 freebsd)
8381 ## Let `ld' find image libs and similar things in /usr/local/lib.
8382 ## The system compiler, GCC, has apparently been modified to not
8383 ## look there, contrary to what a stock GCC would do.
8384 ### It's not our place to do this. See bug#10313#17.
8385 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8389 gnu-linux)
8390 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8391 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8394 netbsd)
8395 ### It's not our place to do this. See bug#10313#17.
8396 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8400 openbsd)
8401 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8402 ## otherwise Emacs dumps core on elf systems.
8403 LD_SWITCH_SYSTEM="-Z"
8405 esac
8408 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8410 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8411 ## which has not been defined yet. When this was handled with cpp,
8412 ## it was expanded to null when configure sourced the s/*.h file.
8413 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8414 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8415 ## (or somesuch), but because it is supposed to go at the _front_
8416 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8417 ## Compare with the gnu-linux case below, which added to the end
8418 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8419 ## LD_SWITCH_SYSTEM_TEMACS.
8420 case "$opsys" in
8421 netbsd|openbsd)
8422 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8423 esac
8426 C_SWITCH_MACHINE=
8427 case $canonical in
8428 alpha*)
8429 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8430 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8434 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8435 ## With ELF, make sure that all common symbols get allocated to in the
8436 ## data section. Otherwise, the dump of temacs may miss variables in
8437 ## the shared library that have been initialized. For example, with
8438 ## GNU libc, __malloc_initialized would normally be resolved to the
8439 ## shared library's .bss section, which is fatal.
8440 if test "x$GCC" = "xyes"; then
8441 C_SWITCH_MACHINE="-fno-common"
8442 else
8443 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8445 else
8446 UNEXEC_OBJ=unexalpha.o
8449 esac
8454 C_SWITCH_SYSTEM=
8455 ## Some programs in src produce warnings saying certain subprograms
8456 ## are too complex and need a MAXMEM value greater than 2000 for
8457 ## additional optimization. --nils@exp-math.uni-essen.de
8458 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8459 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8460 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8461 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8465 LIBS_SYSTEM=
8466 case "$opsys" in
8467 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8468 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8470 freebsd) LIBS_SYSTEM="-lutil" ;;
8472 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8474 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8476 ## Motif needs -lgen.
8477 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8478 esac
8482 ### Make sure subsequent tests use flags consistent with the build flags.
8484 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8485 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8486 else
8487 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8490 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8492 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8496 LIB_MATH=-lm
8497 LIB_STANDARD=
8498 START_FILES=
8499 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8501 case $opsys in
8502 cygwin )
8503 LIB_MATH=
8504 START_FILES='pre-crt0.o'
8506 darwin )
8507 ## Adding -lm confuses the dynamic linker, so omit it.
8508 LIB_MATH=
8509 START_FILES='pre-crt0.o'
8511 freebsd )
8512 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8513 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8514 SYSTEM_TYPE=berkeley-unix
8516 gnu-linux | gnu-kfreebsd )
8517 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8518 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8520 hpux10-20 | hpux11 )
8521 LIB_STANDARD=-lc
8522 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8524 netbsd | openbsd )
8525 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8526 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8527 SYSTEM_TYPE=berkeley-unix
8530 sol2* | unixware )
8531 SYSTEM_TYPE=usg-unix-v
8534 esac
8539 cat >>confdefs.h <<_ACEOF
8540 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8541 _ACEOF
8544 crt_files=
8546 for file in x $LIB_STANDARD $START_FILES; do
8547 case "$file" in
8548 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8549 esac
8550 done
8552 if test "x$crt_files" != x; then
8554 ## If user specified a crt-dir, use that unconditionally.
8555 crt_gcc=no
8557 if test "X$CRT_DIR" = "X"; then
8559 CRT_DIR=/usr/lib # default
8561 case "$canonical" in
8562 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8563 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8564 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8565 ## For anything else (eg /usr/lib32), it is up the user to specify
8566 ## the location (bug#5655).
8567 ## Test for crtn.o, not just the directory, because sometimes the
8568 ## directory exists but does not have the relevant files (bug#1287).
8569 ## FIXME better to test for binary compatibility somehow.
8570 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8573 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8574 esac
8576 case "$opsys" in
8577 hpux10-20) CRT_DIR=/lib ;;
8578 esac
8580 test "x${GCC}" = xyes && crt_gcc=yes
8582 fi # CRT_DIR = ""
8584 crt_missing=
8586 for file in $crt_files; do
8588 ## If we're using gcc, try to determine it automatically by asking
8589 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8590 ## system-dependent default from above.]
8591 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8593 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8594 case "$crt_file" in
8595 */*)
8596 CRT_DIR=`$as_dirname -- "$crt_file" ||
8597 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8598 X"$crt_file" : 'X\(//\)[^/]' \| \
8599 X"$crt_file" : 'X\(//\)$' \| \
8600 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8601 $as_echo X"$crt_file" |
8602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8603 s//\1/
8606 /^X\(\/\/\)[^/].*/{
8607 s//\1/
8610 /^X\(\/\/\)$/{
8611 s//\1/
8614 /^X\(\/\).*/{
8615 s//\1/
8618 s/.*/./; q'`
8620 esac
8623 crt_gcc=no
8625 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8626 done # $crt_files
8628 test "x$crt_missing" = x || \
8629 as_fn_error "Required file(s) not found:$crt_missing
8630 Try using the --with-crt-dir option." "$LINENO" 5
8632 fi # crt_files != ""
8636 case $opsys in
8637 netbsd | openbsd )
8638 if test -f $CRT_DIR/crti.o; then
8640 test -f $CRT_DIR/crtn.o || \
8641 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8643 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8644 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8647 esac
8650 pre_PKG_CONFIG_CFLAGS=$CFLAGS
8651 pre_PKG_CONFIG_LIBS=$LIBS
8653 # Extract the first word of "pkg-config", so it can be a program name with args.
8654 set dummy pkg-config; ac_word=$2
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8656 $as_echo_n "checking for $ac_word... " >&6; }
8657 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8658 $as_echo_n "(cached) " >&6
8659 else
8660 case $PKG_CONFIG in
8661 [\\/]* | ?:[\\/]*)
8662 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666 for as_dir in $PATH
8668 IFS=$as_save_IFS
8669 test -z "$as_dir" && as_dir=.
8670 for ac_exec_ext in '' $ac_executable_extensions; do
8671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8672 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8674 break 2
8676 done
8677 done
8678 IFS=$as_save_IFS
8680 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8682 esac
8684 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8685 if test -n "$PKG_CONFIG"; then
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8687 $as_echo "$PKG_CONFIG" >&6; }
8688 else
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8690 $as_echo "no" >&6; }
8698 if test "${with_sound}" != "no"; then
8699 # Sound support for GNU/Linux and the free BSDs.
8700 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8701 do :
8702 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8703 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8704 eval as_val=\$$as_ac_Header
8705 if test "x$as_val" = x""yes; then :
8706 cat >>confdefs.h <<_ACEOF
8707 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8708 _ACEOF
8709 have_sound_header=yes
8712 done
8714 # Emulation library used on NetBSD.
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8716 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8717 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8718 $as_echo_n "(cached) " >&6
8719 else
8720 ac_check_lib_save_LIBS=$LIBS
8721 LIBS="-lossaudio $LIBS"
8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723 /* end confdefs.h. */
8725 /* Override any GCC internal prototype to avoid an error.
8726 Use char because int might match the return type of a GCC
8727 builtin and then its argument prototype would still apply. */
8728 #ifdef __cplusplus
8729 extern "C"
8730 #endif
8731 char _oss_ioctl ();
8733 main ()
8735 return _oss_ioctl ();
8737 return 0;
8739 _ACEOF
8740 if ac_fn_c_try_link "$LINENO"; then :
8741 ac_cv_lib_ossaudio__oss_ioctl=yes
8742 else
8743 ac_cv_lib_ossaudio__oss_ioctl=no
8745 rm -f core conftest.err conftest.$ac_objext \
8746 conftest$ac_exeext conftest.$ac_ext
8747 LIBS=$ac_check_lib_save_LIBS
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8750 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8751 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8752 LIBSOUND=-lossaudio
8753 else
8754 LIBSOUND=
8759 ALSA_REQUIRED=1.0.0
8760 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8762 succeeded=no
8764 if test "$PKG_CONFIG" = "no" ; then
8765 HAVE_ALSA=no
8766 else
8767 PKG_CONFIG_MIN_VERSION=0.9.0
8768 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8770 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8772 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
8773 ALSA_CFLAGS=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
8774 ALSA_LIBS=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
8775 edit_cflags="
8776 s,///*,/,g
8777 s/^/ /
8778 s/ -I/ $isystem/g
8779 s/^ //
8781 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8782 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8784 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8785 succeeded=yes
8786 else
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8788 $as_echo "no" >&6; }
8789 ALSA_CFLAGS=""
8790 ALSA_LIBS=""
8791 ## If we have a custom action on failure, don't print errors, but
8792 ## do set a variable so people can do so. Do it in a subshell
8793 ## to capture any diagnostics in invoking pkg-config.
8794 ALSA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
8800 else
8801 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8802 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8806 if test $succeeded = yes; then
8807 HAVE_ALSA=yes
8808 else
8809 HAVE_ALSA=no
8812 if test $HAVE_ALSA = yes; then
8813 SAVE_CFLAGS="$CFLAGS"
8814 SAVE_LIBS="$LIBS"
8815 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8816 LIBS="$ALSA_LIBS $LIBS"
8817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8818 /* end confdefs.h. */
8819 #include <asoundlib.h>
8821 main ()
8823 snd_lib_error_set_handler (0);
8825 return 0;
8827 _ACEOF
8828 if ac_fn_c_try_compile "$LINENO"; then :
8829 emacs_alsa_normal=yes
8830 else
8831 emacs_alsa_normal=no
8833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8834 if test "$emacs_alsa_normal" != yes; then
8835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h. */
8837 #include <alsa/asoundlib.h>
8839 main ()
8841 snd_lib_error_set_handler (0);
8843 return 0;
8845 _ACEOF
8846 if ac_fn_c_try_compile "$LINENO"; then :
8847 emacs_alsa_subdir=yes
8848 else
8849 emacs_alsa_subdir=no
8851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8852 if test "$emacs_alsa_subdir" != yes; then
8853 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8855 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8858 CFLAGS="$SAVE_CFLAGS"
8859 LIBS="$SAVE_LIBS"
8860 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8861 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8863 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8867 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8868 case "$opsys" in
8869 gnu-linux|freebsd|netbsd)
8871 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8874 esac
8883 for ac_header in $ac_header_list
8884 do :
8885 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8886 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8888 eval as_val=\$$as_ac_Header
8889 if test "x$as_val" = x""yes; then :
8890 cat >>confdefs.h <<_ACEOF
8891 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8892 _ACEOF
8896 done
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8921 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8923 /* end confdefs.h. */
8924 #include <sys/personality.h>
8926 main ()
8928 personality (PER_LINUX32)
8930 return 0;
8932 _ACEOF
8933 if ac_fn_c_try_compile "$LINENO"; then :
8934 emacs_cv_personality_linux32=yes
8935 else
8936 emacs_cv_personality_linux32=no
8938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8940 $as_echo "$emacs_cv_personality_linux32" >&6; }
8942 if test $emacs_cv_personality_linux32 = yes; then
8944 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8948 for ac_header in term.h
8949 do :
8950 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8951 if test "x$ac_cv_header_term_h" = x""yes; then :
8952 cat >>confdefs.h <<_ACEOF
8953 #define HAVE_TERM_H 1
8954 _ACEOF
8958 done
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8961 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8962 if test "${ac_cv_header_time+set}" = set; then :
8963 $as_echo_n "(cached) " >&6
8964 else
8965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966 /* end confdefs.h. */
8967 #include <sys/types.h>
8968 #include <sys/time.h>
8969 #include <time.h>
8972 main ()
8974 if ((struct tm *) 0)
8975 return 0;
8977 return 0;
8979 _ACEOF
8980 if ac_fn_c_try_compile "$LINENO"; then :
8981 ac_cv_header_time=yes
8982 else
8983 ac_cv_header_time=no
8985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8988 $as_echo "$ac_cv_header_time" >&6; }
8989 if test $ac_cv_header_time = yes; then
8991 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8995 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
8998 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8999 ac_have_decl=1
9000 else
9001 ac_have_decl=0
9004 cat >>confdefs.h <<_ACEOF
9005 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9006 _ACEOF
9008 if test $ac_cv_have_decl_sys_siglist != yes; then
9009 # For Tru64, at least:
9010 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9013 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
9014 ac_have_decl=1
9015 else
9016 ac_have_decl=0
9019 cat >>confdefs.h <<_ACEOF
9020 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9021 _ACEOF
9023 if test $ac_cv_have_decl___sys_siglist = yes; then
9025 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9030 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9031 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9032 $as_echo_n "(cached) " >&6
9033 else
9034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035 /* end confdefs.h. */
9036 #include <sys/types.h>
9037 #include <sys/wait.h>
9038 #ifndef WEXITSTATUS
9039 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9040 #endif
9041 #ifndef WIFEXITED
9042 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9043 #endif
9046 main ()
9048 int s;
9049 wait (&s);
9050 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9052 return 0;
9054 _ACEOF
9055 if ac_fn_c_try_compile "$LINENO"; then :
9056 ac_cv_header_sys_wait_h=yes
9057 else
9058 ac_cv_header_sys_wait_h=no
9060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9063 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9064 if test $ac_cv_header_sys_wait_h = yes; then
9066 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
9072 $as_echo_n "checking for speed_t... " >&6; }
9073 if test "${emacs_cv_speed_t+set}" = set; then :
9074 $as_echo_n "(cached) " >&6
9075 else
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9078 #include <termios.h>
9080 main ()
9082 speed_t x = 1;
9084 return 0;
9086 _ACEOF
9087 if ac_fn_c_try_compile "$LINENO"; then :
9088 emacs_cv_speed_t=yes
9089 else
9090 emacs_cv_speed_t=no
9092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
9095 $as_echo "$emacs_cv_speed_t" >&6; }
9096 if test $emacs_cv_speed_t = yes; then
9098 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
9105 for ac_header in net/if.h
9106 do :
9107 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9108 #if HAVE_SYS_SOCKET_H
9109 #include <sys/socket.h>
9110 #endif
9112 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9113 cat >>confdefs.h <<_ACEOF
9114 #define HAVE_NET_IF_H 1
9115 _ACEOF
9119 done
9121 for ac_header in ifaddrs.h
9122 do :
9123 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9124 #if HAVE_SYS_SOCKET_H
9125 #include <sys/socket.h>
9126 #endif
9128 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9129 cat >>confdefs.h <<_ACEOF
9130 #define HAVE_IFADDRS_H 1
9131 _ACEOF
9135 done
9137 for ac_header in net/if_dl.h
9138 do :
9139 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9140 #if HAVE_SYS_SOCKET_H
9141 #include <sys/socket.h>
9142 #endif
9144 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9145 cat >>confdefs.h <<_ACEOF
9146 #define HAVE_NET_IF_DL_H 1
9147 _ACEOF
9151 done
9154 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9155 #if HAVE_SYS_SOCKET_H
9156 #include <sys/socket.h>
9157 #endif
9158 #if HAVE_NET_IF_H
9159 #include <net/if.h>
9160 #endif
9162 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9164 cat >>confdefs.h <<_ACEOF
9165 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9166 _ACEOF
9170 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9171 #if HAVE_SYS_SOCKET_H
9172 #include <sys/socket.h>
9173 #endif
9174 #if HAVE_NET_IF_H
9175 #include <net/if.h>
9176 #endif
9178 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9180 cat >>confdefs.h <<_ACEOF
9181 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9182 _ACEOF
9186 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9187 #if HAVE_SYS_SOCKET_H
9188 #include <sys/socket.h>
9189 #endif
9190 #if HAVE_NET_IF_H
9191 #include <net/if.h>
9192 #endif
9194 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9196 cat >>confdefs.h <<_ACEOF
9197 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9198 _ACEOF
9202 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9203 #if HAVE_SYS_SOCKET_H
9204 #include <sys/socket.h>
9205 #endif
9206 #if HAVE_NET_IF_H
9207 #include <net/if.h>
9208 #endif
9210 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9212 cat >>confdefs.h <<_ACEOF
9213 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9214 _ACEOF
9218 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9219 #if HAVE_SYS_SOCKET_H
9220 #include <sys/socket.h>
9221 #endif
9222 #if HAVE_NET_IF_H
9223 #include <net/if.h>
9224 #endif
9226 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9228 cat >>confdefs.h <<_ACEOF
9229 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9230 _ACEOF
9234 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9235 #if HAVE_SYS_SOCKET_H
9236 #include <sys/socket.h>
9237 #endif
9238 #if HAVE_NET_IF_H
9239 #include <net/if.h>
9240 #endif
9242 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9244 cat >>confdefs.h <<_ACEOF
9245 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9246 _ACEOF
9254 DEPFLAGS=
9255 MKDEPDIR=":"
9256 deps_frag=deps.mk
9257 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9259 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9260 HAVE_GNU_MAKE=no
9261 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9262 if test "x$testval" != x; then
9263 HAVE_GNU_MAKE=yes
9264 else
9265 ac_enable_autodepend=no
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9268 $as_echo "$HAVE_GNU_MAKE" >&6; }
9269 if test $HAVE_GNU_MAKE = yes; then
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9271 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9272 SAVE_CFLAGS="$CFLAGS"
9273 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9278 main ()
9282 return 0;
9284 _ACEOF
9285 if ac_fn_c_try_compile "$LINENO"; then :
9287 else
9288 ac_enable_autodepend=no
9290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9291 CFLAGS="$SAVE_CFLAGS"
9292 test -f deps.d || ac_enable_autodepend=no
9293 rm -rf deps.d
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9295 $as_echo "$ac_enable_autodepend" >&6; }
9297 if test $ac_enable_autodepend = yes; then
9298 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9299 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9300 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9301 deps_frag=autodeps.mk
9304 deps_frag=$srcdir/src/$deps_frag
9310 lisp_frag=$srcdir/src/lisp.mk
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9315 $as_echo_n "checking for long file names... " >&6; }
9316 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9317 $as_echo_n "(cached) " >&6
9318 else
9319 ac_cv_sys_long_file_names=yes
9320 # Test for long file names in all the places we know might matter:
9321 # . the current directory, where building will happen
9322 # $prefix/lib where we will be installing things
9323 # $exec_prefix/lib likewise
9324 # $TMPDIR if set, where it might want to write temporary files
9325 # /tmp where it might want to write temporary files
9326 # /var/tmp likewise
9327 # /usr/tmp likewise
9328 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9329 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9330 # in the usual case where exec_prefix is '${prefix}'.
9331 case $ac_dir in #(
9332 . | /* | ?:[\\/]*) ;; #(
9333 *) continue;;
9334 esac
9335 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9336 ac_xdir=$ac_dir/cf$$
9337 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9338 ac_tf1=$ac_xdir/conftest9012345
9339 ac_tf2=$ac_xdir/conftest9012346
9340 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9341 ac_cv_sys_long_file_names=no
9342 rm -f -r "$ac_xdir" 2>/dev/null
9343 test $ac_cv_sys_long_file_names = no && break
9344 done
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9347 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9348 if test $ac_cv_sys_long_file_names = yes; then
9350 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9355 #### Choose a window system.
9357 ## We leave window_system equal to none if
9358 ## we end up building without one. Any new window system should
9359 ## set window_system to an appropriate value and add objects to
9360 ## window-system-specific substs.
9362 window_system=none
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9364 $as_echo_n "checking for X... " >&6; }
9367 # Check whether --with-x was given.
9368 if test "${with_x+set}" = set; then :
9369 withval=$with_x;
9372 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9373 if test "x$with_x" = xno; then
9374 # The user explicitly disabled X.
9375 have_x=disabled
9376 else
9377 case $x_includes,$x_libraries in #(
9378 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9379 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9380 $as_echo_n "(cached) " >&6
9381 else
9382 # One or both of the vars are not set, and there is no cached value.
9383 ac_x_includes=no ac_x_libraries=no
9384 rm -f -r conftest.dir
9385 if mkdir conftest.dir; then
9386 cd conftest.dir
9387 cat >Imakefile <<'_ACEOF'
9388 incroot:
9389 @echo incroot='${INCROOT}'
9390 usrlibdir:
9391 @echo usrlibdir='${USRLIBDIR}'
9392 libdir:
9393 @echo libdir='${LIBDIR}'
9394 _ACEOF
9395 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9396 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9397 for ac_var in incroot usrlibdir libdir; do
9398 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9399 done
9400 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9401 for ac_extension in a so sl dylib la dll; do
9402 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9403 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9404 ac_im_usrlibdir=$ac_im_libdir; break
9406 done
9407 # Screen out bogus values from the imake configuration. They are
9408 # bogus both because they are the default anyway, and because
9409 # using them would break gcc on systems where it needs fixed includes.
9410 case $ac_im_incroot in
9411 /usr/include) ac_x_includes= ;;
9412 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9413 esac
9414 case $ac_im_usrlibdir in
9415 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9416 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9417 esac
9419 cd ..
9420 rm -f -r conftest.dir
9423 # Standard set of common directories for X headers.
9424 # Check X11 before X11Rn because it is often a symlink to the current release.
9425 ac_x_header_dirs='
9426 /usr/X11/include
9427 /usr/X11R7/include
9428 /usr/X11R6/include
9429 /usr/X11R5/include
9430 /usr/X11R4/include
9432 /usr/include/X11
9433 /usr/include/X11R7
9434 /usr/include/X11R6
9435 /usr/include/X11R5
9436 /usr/include/X11R4
9438 /usr/local/X11/include
9439 /usr/local/X11R7/include
9440 /usr/local/X11R6/include
9441 /usr/local/X11R5/include
9442 /usr/local/X11R4/include
9444 /usr/local/include/X11
9445 /usr/local/include/X11R7
9446 /usr/local/include/X11R6
9447 /usr/local/include/X11R5
9448 /usr/local/include/X11R4
9450 /usr/X386/include
9451 /usr/x386/include
9452 /usr/XFree86/include/X11
9454 /usr/include
9455 /usr/local/include
9456 /usr/unsupported/include
9457 /usr/athena/include
9458 /usr/local/x11r5/include
9459 /usr/lpp/Xamples/include
9461 /usr/openwin/include
9462 /usr/openwin/share/include'
9464 if test "$ac_x_includes" = no; then
9465 # Guess where to find include files, by looking for Xlib.h.
9466 # First, try using that file with no special directory specified.
9467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468 /* end confdefs.h. */
9469 #include <X11/Xlib.h>
9470 _ACEOF
9471 if ac_fn_c_try_cpp "$LINENO"; then :
9472 # We can compile using X headers with no special include directory.
9473 ac_x_includes=
9474 else
9475 for ac_dir in $ac_x_header_dirs; do
9476 if test -r "$ac_dir/X11/Xlib.h"; then
9477 ac_x_includes=$ac_dir
9478 break
9480 done
9482 rm -f conftest.err conftest.$ac_ext
9483 fi # $ac_x_includes = no
9485 if test "$ac_x_libraries" = no; then
9486 # Check for the libraries.
9487 # See if we find them without any special options.
9488 # Don't add to $LIBS permanently.
9489 ac_save_LIBS=$LIBS
9490 LIBS="-lX11 $LIBS"
9491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9492 /* end confdefs.h. */
9493 #include <X11/Xlib.h>
9495 main ()
9497 XrmInitialize ()
9499 return 0;
9501 _ACEOF
9502 if ac_fn_c_try_link "$LINENO"; then :
9503 LIBS=$ac_save_LIBS
9504 # We can link X programs with no special library path.
9505 ac_x_libraries=
9506 else
9507 LIBS=$ac_save_LIBS
9508 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9510 # Don't even attempt the hair of trying to link an X program!
9511 for ac_extension in a so sl dylib la dll; do
9512 if test -r "$ac_dir/libX11.$ac_extension"; then
9513 ac_x_libraries=$ac_dir
9514 break 2
9516 done
9517 done
9519 rm -f core conftest.err conftest.$ac_objext \
9520 conftest$ac_exeext conftest.$ac_ext
9521 fi # $ac_x_libraries = no
9523 case $ac_x_includes,$ac_x_libraries in #(
9524 no,* | *,no | *\'*)
9525 # Didn't find X, or a directory has "'" in its name.
9526 ac_cv_have_x="have_x=no";; #(
9528 # Record where we found X for the cache.
9529 ac_cv_have_x="have_x=yes\
9530 ac_x_includes='$ac_x_includes'\
9531 ac_x_libraries='$ac_x_libraries'"
9532 esac
9534 ;; #(
9535 *) have_x=yes;;
9536 esac
9537 eval "$ac_cv_have_x"
9538 fi # $with_x != no
9540 if test "$have_x" != yes; then
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9542 $as_echo "$have_x" >&6; }
9543 no_x=yes
9544 else
9545 # If each of the values was on the command line, it overrides each guess.
9546 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9547 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9548 # Update the cache value to reflect the command line values.
9549 ac_cv_have_x="have_x=yes\
9550 ac_x_includes='$x_includes'\
9551 ac_x_libraries='$x_libraries'"
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9553 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9556 if test "$no_x" != yes; then
9557 window_system=x11
9560 LD_SWITCH_X_SITE_RPATH=
9561 if test "${x_libraries}" != NONE; then
9562 if test -n "${x_libraries}"; then
9563 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9564 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9566 x_default_search_path=""
9567 x_search_path=${x_libraries}
9568 if test -z "${x_search_path}"; then
9569 x_search_path=/usr/lib
9571 for x_library in `echo ${x_search_path}: | \
9572 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9573 x_search_path="\
9574 ${x_library}/X11/%L/%T/%N%C%S:\
9575 ${x_library}/X11/%l/%T/%N%C%S:\
9576 ${x_library}/X11/%T/%N%C%S:\
9577 ${x_library}/X11/%L/%T/%N%S:\
9578 ${x_library}/X11/%l/%T/%N%S:\
9579 ${x_library}/X11/%T/%N%S"
9580 if test x"${x_default_search_path}" = x; then
9581 x_default_search_path=${x_search_path}
9582 else
9583 x_default_search_path="${x_search_path}:${x_default_search_path}"
9585 done
9589 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9590 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9593 if test x"${x_includes}" = x; then
9594 bitmapdir=/usr/include/X11/bitmaps
9595 else
9596 # accumulate include directories that have X11 bitmap subdirectories
9597 bmd_acc="dummyval"
9598 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9599 if test -d "${bmd}/X11/bitmaps"; then
9600 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9602 if test -d "${bmd}/bitmaps"; then
9603 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9605 done
9606 if test ${bmd_acc} != "dummyval"; then
9607 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9611 HAVE_NS=no
9612 NS_IMPL_COCOA=no
9613 NS_IMPL_GNUSTEP=no
9614 tmp_CPPFLAGS="$CPPFLAGS"
9615 tmp_CFLAGS="$CFLAGS"
9616 CPPFLAGS="$CPPFLAGS -x objective-c"
9617 CFLAGS="$CFLAGS -x objective-c"
9618 GNU_OBJC_CFLAGS=
9619 LIBS_GNUSTEP=
9620 if test "${with_ns}" != no; then
9621 if test "${opsys}" = darwin; then
9622 NS_IMPL_COCOA=yes
9623 ns_appdir=`pwd`/nextstep/Emacs.app
9624 ns_appbindir=${ns_appdir}/Contents/MacOS
9625 ns_appresdir=${ns_appdir}/Contents/Resources
9626 ns_appsrc=Cocoa/Emacs.base
9627 elif test -f $GNUSTEP_CONFIG_FILE; then
9628 NS_IMPL_GNUSTEP=yes
9629 ns_appdir=`pwd`/nextstep/Emacs.app
9630 ns_appbindir=${ns_appdir}
9631 ns_appresdir=${ns_appdir}/Resources
9632 ns_appsrc=GNUstep/Emacs.base
9633 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9634 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9635 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9636 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9637 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9638 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9639 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9640 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9641 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9642 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9643 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9644 LIBS_GNUSTEP="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9645 LIB_STANDARD=
9646 START_FILES=
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9648 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9649 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9650 $as_echo_n "(cached) " >&6
9651 else
9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9654 #include <GNUstepBase/GSConfig.h>
9656 main ()
9658 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9660 #else
9661 fail;
9662 #endif
9664 return 0;
9666 _ACEOF
9667 if ac_fn_c_try_compile "$LINENO"; then :
9668 emacs_cv_objc_exceptions=yes
9669 else
9670 emacs_cv_objc_exceptions=no
9672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9675 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9676 if test $emacs_cv_objc_exceptions = yes; then
9678 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9680 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9684 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9686 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9687 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9688 HAVE_NS=yes
9689 else
9690 as_fn_error "\`--with-ns' was specified, but the include
9691 files are missing or cannot be compiled." "$LINENO" 5
9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9697 /* end confdefs.h. */
9698 #include <AppKit/AppKit.h>
9700 main ()
9703 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9704 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9705 ; /* OK */
9706 #else
9707 #error "OSX 10.4 or newer required"
9708 #endif
9709 #endif
9712 return 0;
9714 _ACEOF
9715 if ac_fn_c_try_compile "$LINENO"; then :
9716 ns_osx_have_104=yes
9717 else
9718 ns_osx_have_104=no
9720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h. */
9723 #include <Foundation/NSObjCRuntime.h>
9725 main ()
9727 NSInteger i;
9729 return 0;
9731 _ACEOF
9732 if ac_fn_c_try_compile "$LINENO"; then :
9733 ns_have_nsinteger=yes
9734 else
9735 ns_have_nsinteger=no
9737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9738 if test $ns_osx_have_104 = no; then
9739 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
9741 if test $ns_have_nsinteger = yes; then
9743 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9750 INSTALL_ARCH_INDEP_EXTRA=install-etc
9751 ns_self_contained=no
9752 NS_OBJ=
9753 NS_OBJC_OBJ=
9754 if test "${HAVE_NS}" = yes; then
9755 if test "$with_toolkit_scroll_bars" = "no"; then
9756 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9759 window_system=nextstep
9760 # set up packaging dirs
9761 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9762 ns_self_contained=yes
9763 prefix=${ns_appresdir}
9764 exec_prefix=${ns_appbindir}
9765 libexecdir="\${ns_appbindir}/libexec"
9766 archlibdir="\${ns_appbindir}/libexec"
9767 docdir="\${ns_appresdir}/etc"
9768 etcdir="\${ns_appresdir}/etc"
9769 infodir="\${ns_appresdir}/info"
9770 mandir="\${ns_appresdir}/man"
9771 lispdir="\${ns_appresdir}/lisp"
9772 leimdir="\${ns_appresdir}/leim"
9773 INSTALL_ARCH_INDEP_EXTRA=
9775 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9777 CFLAGS="$tmp_CFLAGS"
9778 CPPFLAGS="$tmp_CPPFLAGS"
9785 HAVE_W32=no
9786 W32_OBJ=
9787 W32_LIBS=
9788 W32_RES=
9789 W32_RES_LINK=
9790 if test "${with_w32}" != no; then
9791 if test "${opsys}" != "cygwin"; then
9792 as_fn_error "Using w32 with an autotools build is only supported for Cygwin." "$LINENO" 5
9794 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9795 if test "x$ac_cv_header_windows_h" = x""yes; then :
9796 HAVE_W32=yes
9797 else
9798 as_fn_error "\`--with-w32' was specified, but windows.h
9799 cannot be found." "$LINENO" 5
9804 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
9806 if test -n "$ac_tool_prefix"; then
9807 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9808 set dummy ${ac_tool_prefix}windres; ac_word=$2
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9810 $as_echo_n "checking for $ac_word... " >&6; }
9811 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9812 $as_echo_n "(cached) " >&6
9813 else
9814 if test -n "$WINDRES"; then
9815 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9816 else
9817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9818 for as_dir in $PATH
9820 IFS=$as_save_IFS
9821 test -z "$as_dir" && as_dir=.
9822 for ac_exec_ext in '' $ac_executable_extensions; do
9823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9824 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9826 break 2
9828 done
9829 done
9830 IFS=$as_save_IFS
9834 WINDRES=$ac_cv_prog_WINDRES
9835 if test -n "$WINDRES"; then
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9837 $as_echo "$WINDRES" >&6; }
9838 else
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9840 $as_echo "no" >&6; }
9845 if test -z "$ac_cv_prog_WINDRES"; then
9846 ac_ct_WINDRES=$WINDRES
9847 # Extract the first word of "windres", so it can be a program name with args.
9848 set dummy windres; ac_word=$2
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9850 $as_echo_n "checking for $ac_word... " >&6; }
9851 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
9852 $as_echo_n "(cached) " >&6
9853 else
9854 if test -n "$ac_ct_WINDRES"; then
9855 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9856 else
9857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9858 for as_dir in $PATH
9860 IFS=$as_save_IFS
9861 test -z "$as_dir" && as_dir=.
9862 for ac_exec_ext in '' $ac_executable_extensions; do
9863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9864 ac_cv_prog_ac_ct_WINDRES="windres"
9865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9866 break 2
9868 done
9869 done
9870 IFS=$as_save_IFS
9874 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9875 if test -n "$ac_ct_WINDRES"; then
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9877 $as_echo "$ac_ct_WINDRES" >&6; }
9878 else
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9880 $as_echo "no" >&6; }
9883 if test "x$ac_ct_WINDRES" = x; then
9884 WINDRES="as_fn_error "No resource compiler found." "$LINENO" 5"
9885 else
9886 case $cross_compiling:$ac_tool_warned in
9887 yes:)
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9890 ac_tool_warned=yes ;;
9891 esac
9892 WINDRES=$ac_ct_WINDRES
9894 else
9895 WINDRES="$ac_cv_prog_WINDRES"
9898 W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
9899 W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
9900 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
9901 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
9902 W32_RES="emacs.res"
9903 # Tell the linker that emacs.res is an object (which we compile from
9904 # the rc file), not a linker script.
9905 W32_RES_LINK="-Wl,-bpe-i386 -Wl,emacs.res"
9912 if test "${HAVE_W32}" = "yes"; then
9913 window_system=w32
9914 with_xft=no
9917 ## $window_system is now set to the window system we will
9918 ## ultimately use.
9920 term_header=
9921 HAVE_X_WINDOWS=no
9922 HAVE_X11=no
9923 USE_X_TOOLKIT=none
9925 case "${window_system}" in
9926 x11 )
9927 HAVE_X_WINDOWS=yes
9928 HAVE_X11=yes
9929 term_header=xterm.h
9930 case "${with_x_toolkit}" in
9931 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9932 motif ) USE_X_TOOLKIT=MOTIF ;;
9933 gtk ) with_gtk=yes
9934 term_header=gtkutil.h
9935 USE_X_TOOLKIT=none ;;
9936 gtk2 ) with_gtk2=yes
9937 term_header=gtkutil.h
9938 USE_X_TOOLKIT=none ;;
9939 gtk3 ) with_gtk3=yes
9940 term_header=gtkutil.h
9941 USE_X_TOOLKIT=none ;;
9942 no ) USE_X_TOOLKIT=none ;;
9943 * ) USE_X_TOOLKIT=maybe ;;
9944 esac
9946 nextstep )
9947 term_header=nsterm.h
9949 w32 )
9950 term_header=w32term.h
9952 esac
9954 if test -n "${term_header}"; then
9956 cat >>confdefs.h <<_ACEOF
9957 #define TERM_HEADER "${term_header}"
9958 _ACEOF
9962 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9963 # Extract the first word of "X", so it can be a program name with args.
9964 set dummy X; ac_word=$2
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966 $as_echo_n "checking for $ac_word... " >&6; }
9967 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9968 $as_echo_n "(cached) " >&6
9969 else
9970 if test -n "$HAVE_XSERVER"; then
9971 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9972 else
9973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974 for as_dir in $PATH
9976 IFS=$as_save_IFS
9977 test -z "$as_dir" && as_dir=.
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9980 ac_cv_prog_HAVE_XSERVER="true"
9981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9982 break 2
9984 done
9985 done
9986 IFS=$as_save_IFS
9988 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9991 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9992 if test -n "$HAVE_XSERVER"; then
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9994 $as_echo "$HAVE_XSERVER" >&6; }
9995 else
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9997 $as_echo "no" >&6; }
10001 if test "$HAVE_XSERVER" = true ||
10002 test -n "$DISPLAY" ||
10003 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10004 as_fn_error "You seem to be running X, but no X development libraries
10005 were found. You should install the relevant development files for X
10006 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10007 sure you have development files for image handling, i.e.
10008 tiff, gif, jpeg, png and xpm.
10009 If you are sure you want Emacs compiled without X window support, pass
10010 --without-x
10011 to configure." "$LINENO" 5
10015 ### If we're using X11, we should use the X menu package.
10016 HAVE_MENUS=no
10017 case ${HAVE_X11} in
10018 yes ) HAVE_MENUS=yes ;;
10019 esac
10021 # Does the opsystem file prohibit the use of the GNU malloc?
10022 # Assume not, until told otherwise.
10023 GNU_MALLOC=yes
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10026 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10027 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10028 $as_echo_n "(cached) " >&6
10029 else
10030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031 /* end confdefs.h. */
10032 #include <malloc.h>
10033 static void hook (void) {}
10035 main ()
10037 malloc_set_state (malloc_get_state ());
10038 __after_morecore_hook = hook;
10039 __malloc_initialize_hook = hook;
10041 return 0;
10043 _ACEOF
10044 if ac_fn_c_try_link "$LINENO"; then :
10045 emacs_cv_var_doug_lea_malloc=yes
10046 else
10047 emacs_cv_var_doug_lea_malloc=no
10049 rm -f core conftest.err conftest.$ac_objext \
10050 conftest$ac_exeext conftest.$ac_ext
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10053 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10054 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
10057 system_malloc=no
10058 case "$opsys" in
10059 ## darwin ld insists on the use of malloc routines in the System framework.
10060 darwin|sol2-10) system_malloc=yes ;;
10061 esac
10063 if test "${system_malloc}" = "yes"; then
10065 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10067 GNU_MALLOC=no
10068 GNU_MALLOC_reason="
10069 (The GNU allocators don't work with this system configuration.)"
10070 GMALLOC_OBJ=
10071 VMLIMIT_OBJ=
10072 else
10073 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10074 VMLIMIT_OBJ=vm-limit.o
10079 if test "$doug_lea_malloc" = "yes" ; then
10080 if test "$GNU_MALLOC" = yes ; then
10081 GNU_MALLOC_reason="
10082 (Using Doug Lea's new malloc from the GNU C Library.)"
10085 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10088 ## Use mmap directly for allocating larger buffers.
10089 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10090 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10091 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10092 case "$opsys" in
10093 gnu*) REL_ALLOC=no ;;
10094 esac
10097 if test x"${REL_ALLOC}" = x; then
10098 REL_ALLOC=${GNU_MALLOC}
10101 use_mmap_for_buffers=no
10102 case "$opsys" in
10103 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10104 esac
10113 for ac_func in getpagesize
10114 do :
10115 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10116 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10117 cat >>confdefs.h <<_ACEOF
10118 #define HAVE_GETPAGESIZE 1
10119 _ACEOF
10122 done
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10125 $as_echo_n "checking for working mmap... " >&6; }
10126 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10127 $as_echo_n "(cached) " >&6
10128 else
10129 if test "$cross_compiling" = yes; then :
10130 ac_cv_func_mmap_fixed_mapped=no
10131 else
10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h. */
10134 $ac_includes_default
10135 /* malloc might have been renamed as rpl_malloc. */
10136 #undef malloc
10138 /* Thanks to Mike Haertel and Jim Avera for this test.
10139 Here is a matrix of mmap possibilities:
10140 mmap private not fixed
10141 mmap private fixed at somewhere currently unmapped
10142 mmap private fixed at somewhere already mapped
10143 mmap shared not fixed
10144 mmap shared fixed at somewhere currently unmapped
10145 mmap shared fixed at somewhere already mapped
10146 For private mappings, we should verify that changes cannot be read()
10147 back from the file, nor mmap's back from the file at a different
10148 address. (There have been systems where private was not correctly
10149 implemented like the infamous i386 svr4.0, and systems where the
10150 VM page cache was not coherent with the file system buffer cache
10151 like early versions of FreeBSD and possibly contemporary NetBSD.)
10152 For shared mappings, we should conversely verify that changes get
10153 propagated back to all the places they're supposed to be.
10155 Grep wants private fixed already mapped.
10156 The main things grep needs to know about mmap are:
10157 * does it exist and is it safe to write into the mmap'd area
10158 * how to use it (BSD variants) */
10160 #include <fcntl.h>
10161 #include <sys/mman.h>
10163 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10164 char *malloc ();
10165 #endif
10167 /* This mess was copied from the GNU getpagesize.h. */
10168 #ifndef HAVE_GETPAGESIZE
10169 # ifdef _SC_PAGESIZE
10170 # define getpagesize() sysconf(_SC_PAGESIZE)
10171 # else /* no _SC_PAGESIZE */
10172 # ifdef HAVE_SYS_PARAM_H
10173 # include <sys/param.h>
10174 # ifdef EXEC_PAGESIZE
10175 # define getpagesize() EXEC_PAGESIZE
10176 # else /* no EXEC_PAGESIZE */
10177 # ifdef NBPG
10178 # define getpagesize() NBPG * CLSIZE
10179 # ifndef CLSIZE
10180 # define CLSIZE 1
10181 # endif /* no CLSIZE */
10182 # else /* no NBPG */
10183 # ifdef NBPC
10184 # define getpagesize() NBPC
10185 # else /* no NBPC */
10186 # ifdef PAGESIZE
10187 # define getpagesize() PAGESIZE
10188 # endif /* PAGESIZE */
10189 # endif /* no NBPC */
10190 # endif /* no NBPG */
10191 # endif /* no EXEC_PAGESIZE */
10192 # else /* no HAVE_SYS_PARAM_H */
10193 # define getpagesize() 8192 /* punt totally */
10194 # endif /* no HAVE_SYS_PARAM_H */
10195 # endif /* no _SC_PAGESIZE */
10197 #endif /* no HAVE_GETPAGESIZE */
10200 main ()
10202 char *data, *data2, *data3;
10203 const char *cdata2;
10204 int i, pagesize;
10205 int fd, fd2;
10207 pagesize = getpagesize ();
10209 /* First, make a file with some known garbage in it. */
10210 data = (char *) malloc (pagesize);
10211 if (!data)
10212 return 1;
10213 for (i = 0; i < pagesize; ++i)
10214 *(data + i) = rand ();
10215 umask (0);
10216 fd = creat ("conftest.mmap", 0600);
10217 if (fd < 0)
10218 return 2;
10219 if (write (fd, data, pagesize) != pagesize)
10220 return 3;
10221 close (fd);
10223 /* Next, check that the tail of a page is zero-filled. File must have
10224 non-zero length, otherwise we risk SIGBUS for entire page. */
10225 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10226 if (fd2 < 0)
10227 return 4;
10228 cdata2 = "";
10229 if (write (fd2, cdata2, 1) != 1)
10230 return 5;
10231 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10232 if (data2 == MAP_FAILED)
10233 return 6;
10234 for (i = 0; i < pagesize; ++i)
10235 if (*(data2 + i))
10236 return 7;
10237 close (fd2);
10238 if (munmap (data2, pagesize))
10239 return 8;
10241 /* Next, try to mmap the file at a fixed address which already has
10242 something else allocated at it. If we can, also make sure that
10243 we see the same garbage. */
10244 fd = open ("conftest.mmap", O_RDWR);
10245 if (fd < 0)
10246 return 9;
10247 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10248 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10249 return 10;
10250 for (i = 0; i < pagesize; ++i)
10251 if (*(data + i) != *(data2 + i))
10252 return 11;
10254 /* Finally, make sure that changes to the mapped area do not
10255 percolate back to the file as seen by read(). (This is a bug on
10256 some variants of i386 svr4.0.) */
10257 for (i = 0; i < pagesize; ++i)
10258 *(data2 + i) = *(data2 + i) + 1;
10259 data3 = (char *) malloc (pagesize);
10260 if (!data3)
10261 return 12;
10262 if (read (fd, data3, pagesize) != pagesize)
10263 return 13;
10264 for (i = 0; i < pagesize; ++i)
10265 if (*(data + i) != *(data3 + i))
10266 return 14;
10267 close (fd);
10268 return 0;
10270 _ACEOF
10271 if ac_fn_c_try_run "$LINENO"; then :
10272 ac_cv_func_mmap_fixed_mapped=yes
10273 else
10274 ac_cv_func_mmap_fixed_mapped=no
10276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10277 conftest.$ac_objext conftest.beam conftest.$ac_ext
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10282 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10283 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10285 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10288 rm -f conftest.mmap conftest.txt
10290 if test $use_mmap_for_buffers = yes; then
10292 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10294 REL_ALLOC=no
10297 LIBS="$LIBS_SYSTEM $LIBS"
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10300 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10301 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10302 $as_echo_n "(cached) " >&6
10303 else
10304 ac_check_lib_save_LIBS=$LIBS
10305 LIBS="-ldnet $LIBS"
10306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10307 /* end confdefs.h. */
10309 /* Override any GCC internal prototype to avoid an error.
10310 Use char because int might match the return type of a GCC
10311 builtin and then its argument prototype would still apply. */
10312 #ifdef __cplusplus
10313 extern "C"
10314 #endif
10315 char dnet_ntoa ();
10317 main ()
10319 return dnet_ntoa ();
10321 return 0;
10323 _ACEOF
10324 if ac_fn_c_try_link "$LINENO"; then :
10325 ac_cv_lib_dnet_dnet_ntoa=yes
10326 else
10327 ac_cv_lib_dnet_dnet_ntoa=no
10329 rm -f core conftest.err conftest.$ac_objext \
10330 conftest$ac_exeext conftest.$ac_ext
10331 LIBS=$ac_check_lib_save_LIBS
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10334 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10335 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10336 cat >>confdefs.h <<_ACEOF
10337 #define HAVE_LIBDNET 1
10338 _ACEOF
10340 LIBS="-ldnet $LIBS"
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10346 $as_echo_n "checking for main in -lXbsd... " >&6; }
10347 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10348 $as_echo_n "(cached) " >&6
10349 else
10350 ac_check_lib_save_LIBS=$LIBS
10351 LIBS="-lXbsd $LIBS"
10352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10353 /* end confdefs.h. */
10357 main ()
10359 return main ();
10361 return 0;
10363 _ACEOF
10364 if ac_fn_c_try_link "$LINENO"; then :
10365 ac_cv_lib_Xbsd_main=yes
10366 else
10367 ac_cv_lib_Xbsd_main=no
10369 rm -f core conftest.err conftest.$ac_objext \
10370 conftest$ac_exeext conftest.$ac_ext
10371 LIBS=$ac_check_lib_save_LIBS
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10374 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10375 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10376 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10380 LIB_PTHREAD=
10384 if test "$ac_cv_header_pthread_h"; then
10385 if test "$GMALLOC_OBJ" = gmalloc.o; then
10386 emacs_pthread_function=pthread_atfork
10387 else
10388 emacs_pthread_function=pthread_self
10390 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10392 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10393 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10394 $as_echo_n "(cached) " >&6
10395 else
10396 ac_check_lib_save_LIBS=$LIBS
10397 LIBS="-lpthread $LIBS"
10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h. */
10401 /* Override any GCC internal prototype to avoid an error.
10402 Use char because int might match the return type of a GCC
10403 builtin and then its argument prototype would still apply. */
10404 #ifdef __cplusplus
10405 extern "C"
10406 #endif
10407 char $emacs_pthread_function ();
10409 main ()
10411 return $emacs_pthread_function ();
10413 return 0;
10415 _ACEOF
10416 if ac_fn_c_try_link "$LINENO"; then :
10417 eval "$as_ac_Lib=yes"
10418 else
10419 eval "$as_ac_Lib=no"
10421 rm -f core conftest.err conftest.$ac_objext \
10422 conftest$ac_exeext conftest.$ac_ext
10423 LIBS=$ac_check_lib_save_LIBS
10425 eval ac_res=\$$as_ac_Lib
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10427 $as_echo "$ac_res" >&6; }
10428 eval as_val=\$$as_ac_Lib
10429 if test "x$as_val" = x""yes; then :
10430 HAVE_PTHREAD=yes
10434 if test "$HAVE_PTHREAD" = yes; then
10435 case "${canonical}" in
10436 *-hpux*) ;;
10437 *) LIB_PTHREAD="-lpthread"
10438 LIBS="$LIB_PTHREAD $LIBS" ;;
10439 esac
10441 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10447 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10448 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10449 $as_echo_n "(cached) " >&6
10450 else
10451 ac_check_lib_save_LIBS=$LIBS
10452 LIBS="-lpthreads $LIBS"
10453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h. */
10456 /* Override any GCC internal prototype to avoid an error.
10457 Use char because int might match the return type of a GCC
10458 builtin and then its argument prototype would still apply. */
10459 #ifdef __cplusplus
10460 extern "C"
10461 #endif
10462 char cma_open ();
10464 main ()
10466 return cma_open ();
10468 return 0;
10470 _ACEOF
10471 if ac_fn_c_try_link "$LINENO"; then :
10472 ac_cv_lib_pthreads_cma_open=yes
10473 else
10474 ac_cv_lib_pthreads_cma_open=no
10476 rm -f core conftest.err conftest.$ac_objext \
10477 conftest$ac_exeext conftest.$ac_ext
10478 LIBS=$ac_check_lib_save_LIBS
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10481 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10482 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10483 cat >>confdefs.h <<_ACEOF
10484 #define HAVE_LIBPTHREADS 1
10485 _ACEOF
10487 LIBS="-lpthreads $LIBS"
10492 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10493 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10494 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10495 ## added to LIBS in configure would never contain the pthreads part,
10496 ## but the value used in Makefiles might. FIXME?
10498 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10499 ## be harmless on older versions of X where it happens to exist.
10500 test "$opsys" = "aix4-2" && \
10501 test $ac_cv_lib_pthreads_cma_open = yes && \
10502 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10505 case ${host_os} in
10506 aix*)
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10508 $as_echo_n "checking for -bbigtoc option... " >&6; }
10509 if test "${gdb_cv_bigtoc+set}" = set; then :
10510 $as_echo_n "(cached) " >&6
10511 else
10513 case $GCC in
10514 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10515 *) gdb_cv_bigtoc=-bbigtoc ;;
10516 esac
10518 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10523 main ()
10525 int i;
10527 return 0;
10529 _ACEOF
10530 if ac_fn_c_try_link "$LINENO"; then :
10532 else
10533 gdb_cv_bigtoc=
10535 rm -f core conftest.err conftest.$ac_objext \
10536 conftest$ac_exeext conftest.$ac_ext
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10540 $as_echo "$gdb_cv_bigtoc" >&6; }
10542 esac
10544 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10545 # used for the tests that follow. We set them back to REAL_CFLAGS and
10546 # REAL_CPPFLAGS later on.
10548 REAL_CFLAGS="$CFLAGS"
10549 REAL_CPPFLAGS="$CPPFLAGS"
10551 if test "${HAVE_X11}" = "yes"; then
10552 DEFS="$C_SWITCH_X_SITE $DEFS"
10553 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10554 LIBS="-lX11 $LIBS"
10555 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10556 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10558 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10559 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10560 # but it's more convenient here to set LD_RUN_PATH since this
10561 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10562 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10563 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10564 export LD_RUN_PATH
10567 if test "${opsys}" = "gnu-linux"; then
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10569 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10571 /* end confdefs.h. */
10574 main ()
10576 XOpenDisplay ("foo");
10578 return 0;
10580 _ACEOF
10581 if ac_fn_c_try_link "$LINENO"; then :
10582 xgnu_linux_first_failure=no
10583 else
10584 xgnu_linux_first_failure=yes
10586 rm -f core conftest.err conftest.$ac_objext \
10587 conftest$ac_exeext conftest.$ac_ext
10588 if test "${xgnu_linux_first_failure}" = "yes"; then
10589 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10590 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10591 OLD_CPPFLAGS="$CPPFLAGS"
10592 OLD_LIBS="$LIBS"
10593 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10594 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10595 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10596 LIBS="$LIBS -b i486-linuxaout"
10597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10598 /* end confdefs.h. */
10601 main ()
10603 XOpenDisplay ("foo");
10605 return 0;
10607 _ACEOF
10608 if ac_fn_c_try_link "$LINENO"; then :
10609 xgnu_linux_second_failure=no
10610 else
10611 xgnu_linux_second_failure=yes
10613 rm -f core conftest.err conftest.$ac_objext \
10614 conftest$ac_exeext conftest.$ac_ext
10615 if test "${xgnu_linux_second_failure}" = "yes"; then
10616 # If we get the same failure with -b, there is no use adding -b.
10617 # So take it out. This plays safe.
10618 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10619 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10620 CPPFLAGS="$OLD_CPPFLAGS"
10621 LIBS="$OLD_LIBS"
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10623 $as_echo "no" >&6; }
10624 else
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10626 $as_echo "yes" >&6; }
10628 else
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10630 $as_echo "no" >&6; }
10634 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10635 # header files included from there.
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10637 $as_echo_n "checking for Xkb... " >&6; }
10638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h. */
10640 #include <X11/Xlib.h>
10641 #include <X11/XKBlib.h>
10643 main ()
10645 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10647 return 0;
10649 _ACEOF
10650 if ac_fn_c_try_link "$LINENO"; then :
10651 emacs_xkb=yes
10652 else
10653 emacs_xkb=no
10655 rm -f core conftest.err conftest.$ac_objext \
10656 conftest$ac_exeext conftest.$ac_ext
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10658 $as_echo "$emacs_xkb" >&6; }
10659 if test $emacs_xkb = yes; then
10661 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10665 for ac_func in XrmSetDatabase XScreenResourceString \
10666 XScreenNumberOfScreen
10667 do :
10668 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10669 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10670 eval as_val=\$$as_ac_var
10671 if test "x$as_val" = x""yes; then :
10672 cat >>confdefs.h <<_ACEOF
10673 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10674 _ACEOF
10677 done
10681 if test "${window_system}" = "x11"; then
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10683 $as_echo_n "checking X11 version 6... " >&6; }
10684 if test "${emacs_cv_x11_version_6+set}" = set; then :
10685 $as_echo_n "(cached) " >&6
10686 else
10687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10688 /* end confdefs.h. */
10689 #include <X11/Xlib.h>
10691 main ()
10693 #if XlibSpecificationRelease < 6
10694 fail;
10695 #endif
10698 return 0;
10700 _ACEOF
10701 if ac_fn_c_try_link "$LINENO"; then :
10702 emacs_cv_x11_version_6=yes
10703 else
10704 emacs_cv_x11_version_6=no
10706 rm -f core conftest.err conftest.$ac_objext \
10707 conftest$ac_exeext conftest.$ac_ext
10710 if test $emacs_cv_x11_version_6 = yes; then
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10712 $as_echo "6 or newer" >&6; }
10714 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10717 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10719 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10720 ## XIM support.
10721 case "$opsys" in
10722 sol2-*) : ;;
10724 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10727 esac
10728 else
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10730 $as_echo "before 6" >&6; }
10735 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10736 HAVE_RSVG=no
10737 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10738 if test "${with_rsvg}" != "no"; then
10739 RSVG_REQUIRED=2.11.0
10740 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10743 succeeded=no
10745 if test "$PKG_CONFIG" = "no" ; then
10747 else
10748 PKG_CONFIG_MIN_VERSION=0.9.0
10749 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10751 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10753 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
10754 RSVG_CFLAGS=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
10755 RSVG_LIBS=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
10756 edit_cflags="
10757 s,///*,/,g
10758 s/^/ /
10759 s/ -I/ $isystem/g
10760 s/^ //
10762 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10763 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10765 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10766 succeeded=yes
10767 else
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10769 $as_echo "no" >&6; }
10770 RSVG_CFLAGS=""
10771 RSVG_LIBS=""
10772 ## If we have a custom action on failure, don't print errors, but
10773 ## do set a variable so people can do so. Do it in a subshell
10774 ## to capture any diagnostics in invoking pkg-config.
10775 RSVG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
10781 else
10782 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10783 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10787 if test $succeeded = yes; then
10788 HAVE_RSVG=yes
10789 else
10796 if test $HAVE_RSVG = yes; then
10798 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10800 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10801 LIBS="$RSVG_LIBS $LIBS"
10806 HAVE_IMAGEMAGICK=no
10807 if test "${HAVE_X11}" = "yes"; then
10808 if test "${with_imagemagick}" != "no"; then
10809 ## 6.2.8 is the earliest version known to work, but earlier versions
10810 ## might work - let us know if you find one.
10811 ## 6.0.7 does not work. See bug#7955.
10812 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10814 succeeded=no
10816 if test "$PKG_CONFIG" = "no" ; then
10818 else
10819 PKG_CONFIG_MIN_VERSION=0.9.0
10820 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10822 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10824 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10825 IMAGEMAGICK_CFLAGS=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10826 IMAGEMAGICK_LIBS=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10827 edit_cflags="
10828 s,///*,/,g
10829 s/^/ /
10830 s/ -I/ $isystem/g
10831 s/^ //
10833 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10834 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10836 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10837 succeeded=yes
10838 else
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10840 $as_echo "no" >&6; }
10841 IMAGEMAGICK_CFLAGS=""
10842 IMAGEMAGICK_LIBS=""
10843 ## If we have a custom action on failure, don't print errors, but
10844 ## do set a variable so people can do so. Do it in a subshell
10845 ## to capture any diagnostics in invoking pkg-config.
10846 IMAGEMAGICK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10852 else
10853 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10854 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10858 if test $succeeded = yes; then
10859 HAVE_IMAGEMAGICK=yes
10860 else
10867 if test $HAVE_IMAGEMAGICK = yes; then
10869 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10871 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10872 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10873 for ac_func in MagickExportImagePixels MagickMergeImageLayers
10874 do :
10875 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10876 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10877 eval as_val=\$$as_ac_var
10878 if test "x$as_val" = x""yes; then :
10879 cat >>confdefs.h <<_ACEOF
10880 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10881 _ACEOF
10884 done
10891 HAVE_GTK=no
10892 GTK_OBJ=
10893 check_gtk2=no
10894 gtk3_pkg_errors=
10895 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10896 GLIB_REQUIRED=2.28
10897 GTK_REQUIRED=3.0
10898 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10901 succeeded=no
10903 if test "$PKG_CONFIG" = "no" ; then
10904 pkg_check_gtk=no
10905 else
10906 PKG_CONFIG_MIN_VERSION=0.9.0
10907 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10909 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10911 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
10912 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
10913 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
10914 edit_cflags="
10915 s,///*,/,g
10916 s/^/ /
10917 s/ -I/ $isystem/g
10918 s/^ //
10920 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10921 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10923 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10924 succeeded=yes
10925 else
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927 $as_echo "no" >&6; }
10928 GTK_CFLAGS=""
10929 GTK_LIBS=""
10930 ## If we have a custom action on failure, don't print errors, but
10931 ## do set a variable so people can do so. Do it in a subshell
10932 ## to capture any diagnostics in invoking pkg-config.
10933 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
10939 else
10940 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10941 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10945 if test $succeeded = yes; then
10946 pkg_check_gtk=yes
10947 else
10948 pkg_check_gtk=no
10951 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10952 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10954 if test "$pkg_check_gtk" = "yes"; then
10956 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10958 GTK_OBJ=emacsgtkfixed.o
10959 term_header=gtkutil.h
10960 USE_GTK_TOOLKIT="GTK3"
10961 if test "x$ac_enable_gtk_deprecation_warnings" = x; then
10962 GTK_CFLAGS="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
10964 else
10965 check_gtk2=yes
10966 gtk3_pkg_errors="$GTK_PKG_ERRORS "
10970 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
10971 GLIB_REQUIRED=2.10
10972 GTK_REQUIRED=2.10
10973 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10976 succeeded=no
10978 if test "$PKG_CONFIG" = "no" ; then
10979 pkg_check_gtk=no
10980 else
10981 PKG_CONFIG_MIN_VERSION=0.9.0
10982 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10984 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10986 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
10987 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
10988 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
10989 edit_cflags="
10990 s,///*,/,g
10991 s/^/ /
10992 s/ -I/ $isystem/g
10993 s/^ //
10995 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10996 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10998 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10999 succeeded=yes
11000 else
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11002 $as_echo "no" >&6; }
11003 GTK_CFLAGS=""
11004 GTK_LIBS=""
11005 ## If we have a custom action on failure, don't print errors, but
11006 ## do set a variable so people can do so. Do it in a subshell
11007 ## to capture any diagnostics in invoking pkg-config.
11008 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11014 else
11015 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11016 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11020 if test $succeeded = yes; then
11021 pkg_check_gtk=yes
11022 else
11023 pkg_check_gtk=no
11026 if test "$pkg_check_gtk" = "no" &&
11027 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
11028 then
11029 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11031 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
11034 if test x"$pkg_check_gtk" = xyes; then
11038 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11039 CFLAGS="$CFLAGS $GTK_CFLAGS"
11040 LIBS="$GTK_LIBS $LIBS"
11041 GTK_COMPILES=no
11042 for ac_func in gtk_main
11043 do :
11044 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11045 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11046 cat >>confdefs.h <<_ACEOF
11047 #define HAVE_GTK_MAIN 1
11048 _ACEOF
11049 GTK_COMPILES=yes
11051 done
11053 if test "${GTK_COMPILES}" != "yes"; then
11054 if test "$USE_X_TOOLKIT" != "maybe"; then
11055 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11057 else
11058 HAVE_GTK=yes
11060 $as_echo "#define USE_GTK 1" >>confdefs.h
11062 GTK_OBJ="gtkutil.o $GTK_OBJ"
11063 USE_X_TOOLKIT=none
11064 if "$PKG_CONFIG" --atleast-version=2.10 gtk+-2.0; then
11066 else
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11068 closing open displays. This is no problem if you just use
11069 one display, but if you use more than one and close one of them
11070 Emacs may crash." >&5
11071 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11072 closing open displays. This is no problem if you just use
11073 one display, but if you use more than one and close one of them
11074 Emacs may crash." >&2;}
11075 sleep 3
11083 if test "${HAVE_GTK}" = "yes"; then
11085 if test "$with_toolkit_scroll_bars" != no; then
11086 with_toolkit_scroll_bars=yes
11089 HAVE_GTK_FILE_SELECTION=no
11090 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11091 #include <gtk/gtk.h>
11093 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11094 HAVE_GTK_FILE_SELECTION=yes
11095 else
11096 HAVE_GTK_FILE_SELECTION=no
11099 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11100 for ac_func in gtk_file_selection_new
11101 do :
11102 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11103 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11104 cat >>confdefs.h <<_ACEOF
11105 #define HAVE_GTK_FILE_SELECTION_NEW 1
11106 _ACEOF
11109 done
11113 HAVE_GTK_HANDLE_BOX=no
11114 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11115 #include <gtk/gtk.h>
11117 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x""yes; then :
11118 HAVE_GTK_HANDLE_BOX=yes
11119 else
11120 HAVE_GTK_HANDLE_BOX=no
11123 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11124 for ac_func in gtk_handle_box_new
11125 do :
11126 ac_fn_c_check_func "$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11127 if test "x$ac_cv_func_gtk_handle_box_new" = x""yes; then :
11128 cat >>confdefs.h <<_ACEOF
11129 #define HAVE_GTK_HANDLE_BOX_NEW 1
11130 _ACEOF
11133 done
11137 HAVE_GTK_TEAROFF_MENU_ITEM=no
11138 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11139 #include <gtk/gtk.h>
11141 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x""yes; then :
11142 HAVE_GTK_TEAROFF_MENU_ITEM=yes
11143 else
11144 HAVE_GTK_TEAROFF_MENU_ITEM=no
11147 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11148 for ac_func in gtk_tearoff_menu_item_new
11149 do :
11150 ac_fn_c_check_func "$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11151 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x""yes; then :
11152 cat >>confdefs.h <<_ACEOF
11153 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11154 _ACEOF
11157 done
11161 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11162 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11163 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11164 gtk_orientable_set_orientation \
11165 gtk_window_set_has_resize_grip
11166 do :
11167 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11168 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11169 eval as_val=\$$as_ac_var
11170 if test "x$as_val" = x""yes; then :
11171 cat >>confdefs.h <<_ACEOF
11172 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11173 _ACEOF
11176 done
11179 term_header=gtkutil.h
11182 HAVE_DBUS=no
11183 DBUS_OBJ=
11184 if test "${with_dbus}" = "yes"; then
11186 succeeded=no
11188 if test "$PKG_CONFIG" = "no" ; then
11189 HAVE_DBUS=no
11190 else
11191 PKG_CONFIG_MIN_VERSION=0.9.0
11192 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11194 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11196 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11197 DBUS_CFLAGS=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11198 DBUS_LIBS=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11199 edit_cflags="
11200 s,///*,/,g
11201 s/^/ /
11202 s/ -I/ $isystem/g
11203 s/^ //
11205 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11206 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11208 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11209 succeeded=yes
11210 else
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212 $as_echo "no" >&6; }
11213 DBUS_CFLAGS=""
11214 DBUS_LIBS=""
11215 ## If we have a custom action on failure, don't print errors, but
11216 ## do set a variable so people can do so. Do it in a subshell
11217 ## to capture any diagnostics in invoking pkg-config.
11218 DBUS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11224 else
11225 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11226 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11230 if test $succeeded = yes; then
11231 HAVE_DBUS=yes
11232 else
11233 HAVE_DBUS=no
11236 if test "$HAVE_DBUS" = yes; then
11237 LIBS="$LIBS $DBUS_LIBS"
11239 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11241 for ac_func in dbus_watch_get_unix_fd \
11242 dbus_type_is_valid \
11243 dbus_validate_bus_name \
11244 dbus_validate_path \
11245 dbus_validate_interface \
11246 dbus_validate_member
11247 do :
11248 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11249 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11250 eval as_val=\$$as_ac_var
11251 if test "x$as_val" = x""yes; then :
11252 cat >>confdefs.h <<_ACEOF
11253 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11254 _ACEOF
11257 done
11259 DBUS_OBJ=dbusbind.o
11264 HAVE_GSETTINGS=no
11265 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11267 succeeded=no
11269 if test "$PKG_CONFIG" = "no" ; then
11270 HAVE_GSETTINGS=no
11271 else
11272 PKG_CONFIG_MIN_VERSION=0.9.0
11273 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11275 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11277 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11278 GSETTINGS_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11279 GSETTINGS_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11280 edit_cflags="
11281 s,///*,/,g
11282 s/^/ /
11283 s/ -I/ $isystem/g
11284 s/^ //
11286 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11287 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11289 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11290 succeeded=yes
11291 else
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293 $as_echo "no" >&6; }
11294 GSETTINGS_CFLAGS=""
11295 GSETTINGS_LIBS=""
11296 ## If we have a custom action on failure, don't print errors, but
11297 ## do set a variable so people can do so. Do it in a subshell
11298 ## to capture any diagnostics in invoking pkg-config.
11299 GSETTINGS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11305 else
11306 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11307 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11311 if test $succeeded = yes; then
11312 HAVE_GSETTINGS=yes
11313 else
11314 HAVE_GSETTINGS=no
11317 if test "$HAVE_GSETTINGS" = "yes"; then
11319 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11321 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11322 SETTINGS_LIBS="$GSETTINGS_LIBS"
11326 HAVE_GCONF=no
11327 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11329 succeeded=no
11331 if test "$PKG_CONFIG" = "no" ; then
11332 HAVE_GCONF=no
11333 else
11334 PKG_CONFIG_MIN_VERSION=0.9.0
11335 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11337 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11339 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11340 GCONF_CFLAGS=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11341 GCONF_LIBS=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11342 edit_cflags="
11343 s,///*,/,g
11344 s/^/ /
11345 s/ -I/ $isystem/g
11346 s/^ //
11348 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11349 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11351 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11352 succeeded=yes
11353 else
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11355 $as_echo "no" >&6; }
11356 GCONF_CFLAGS=""
11357 GCONF_LIBS=""
11358 ## If we have a custom action on failure, don't print errors, but
11359 ## do set a variable so people can do so. Do it in a subshell
11360 ## to capture any diagnostics in invoking pkg-config.
11361 GCONF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11367 else
11368 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11369 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11373 if test $succeeded = yes; then
11374 HAVE_GCONF=yes
11375 else
11376 HAVE_GCONF=no
11379 if test "$HAVE_GCONF" = yes; then
11381 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11383 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11384 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11388 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11390 succeeded=no
11392 if test "$PKG_CONFIG" = "no" ; then
11393 HAVE_GOBJECT=no
11394 else
11395 PKG_CONFIG_MIN_VERSION=0.9.0
11396 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11398 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11400 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11401 GOBJECT_CFLAGS=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11402 GOBJECT_LIBS=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11403 edit_cflags="
11404 s,///*,/,g
11405 s/^/ /
11406 s/ -I/ $isystem/g
11407 s/^ //
11409 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11410 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11412 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11413 succeeded=yes
11414 else
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416 $as_echo "no" >&6; }
11417 GOBJECT_CFLAGS=""
11418 GOBJECT_LIBS=""
11419 ## If we have a custom action on failure, don't print errors, but
11420 ## do set a variable so people can do so. Do it in a subshell
11421 ## to capture any diagnostics in invoking pkg-config.
11422 GOBJECT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11428 else
11429 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11430 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11434 if test $succeeded = yes; then
11435 HAVE_GOBJECT=yes
11436 else
11437 HAVE_GOBJECT=no
11440 if test "$HAVE_GOBJECT" = "yes"; then
11441 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11442 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
11444 SAVE_CFLAGS="$CFLAGS"
11445 SAVE_LIBS="$LIBS"
11446 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11447 LIBS="$SETTINGS_LIBS $LIBS"
11448 for ac_func in g_type_init
11449 do :
11450 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11451 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11452 cat >>confdefs.h <<_ACEOF
11453 #define HAVE_G_TYPE_INIT 1
11454 _ACEOF
11457 done
11459 CFLAGS="$SAVE_CFLAGS"
11460 LIBS="$SAVE_LIBS"
11466 HAVE_LIBSELINUX=no
11467 LIBSELINUX_LIBS=
11468 if test "${with_selinux}" = "yes"; then
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11470 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11471 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11472 $as_echo_n "(cached) " >&6
11473 else
11474 ac_check_lib_save_LIBS=$LIBS
11475 LIBS="-lselinux $LIBS"
11476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11477 /* end confdefs.h. */
11479 /* Override any GCC internal prototype to avoid an error.
11480 Use char because int might match the return type of a GCC
11481 builtin and then its argument prototype would still apply. */
11482 #ifdef __cplusplus
11483 extern "C"
11484 #endif
11485 char lgetfilecon ();
11487 main ()
11489 return lgetfilecon ();
11491 return 0;
11493 _ACEOF
11494 if ac_fn_c_try_link "$LINENO"; then :
11495 ac_cv_lib_selinux_lgetfilecon=yes
11496 else
11497 ac_cv_lib_selinux_lgetfilecon=no
11499 rm -f core conftest.err conftest.$ac_objext \
11500 conftest$ac_exeext conftest.$ac_ext
11501 LIBS=$ac_check_lib_save_LIBS
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11504 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11505 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11506 HAVE_LIBSELINUX=yes
11507 else
11508 HAVE_LIBSELINUX=no
11511 if test "$HAVE_LIBSELINUX" = yes; then
11513 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11515 LIBSELINUX_LIBS=-lselinux
11520 HAVE_GNUTLS=no
11521 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11522 if test "${with_gnutls}" = "yes" ; then
11524 succeeded=no
11526 if test "$PKG_CONFIG" = "no" ; then
11527 HAVE_GNUTLS=no
11528 else
11529 PKG_CONFIG_MIN_VERSION=0.9.0
11530 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11532 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11534 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
11535 LIBGNUTLS_CFLAGS=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
11536 LIBGNUTLS_LIBS=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
11537 edit_cflags="
11538 s,///*,/,g
11539 s/^/ /
11540 s/ -I/ $isystem/g
11541 s/^ //
11543 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11544 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11546 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11547 succeeded=yes
11548 else
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550 $as_echo "no" >&6; }
11551 LIBGNUTLS_CFLAGS=""
11552 LIBGNUTLS_LIBS=""
11553 ## If we have a custom action on failure, don't print errors, but
11554 ## do set a variable so people can do so. Do it in a subshell
11555 ## to capture any diagnostics in invoking pkg-config.
11556 LIBGNUTLS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
11562 else
11563 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11564 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11568 if test $succeeded = yes; then
11569 HAVE_GNUTLS=yes
11570 else
11571 HAVE_GNUTLS=no
11574 if test "${HAVE_GNUTLS}" = "yes"; then
11576 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11580 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11581 LIBS="$LIBGNUTLS_LIBS $LIBS"
11582 for ac_func in gnutls_certificate_set_verify_function
11583 do :
11584 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11585 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11586 cat >>confdefs.h <<_ACEOF
11587 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11588 _ACEOF
11589 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11591 done
11594 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11596 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11604 if test "${with_inotify}" = "yes"; then
11605 for ac_header in sys/inotify.h
11606 do :
11607 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
11608 if test "x$ac_cv_header_sys_inotify_h" = x""yes; then :
11609 cat >>confdefs.h <<_ACEOF
11610 #define HAVE_SYS_INOTIFY_H 1
11611 _ACEOF
11615 done
11617 if test "$ac_cv_header_sys_inotify_h" = yes ; then
11618 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
11619 if test "x$ac_cv_func_inotify_init1" = x""yes; then :
11625 if test "$ac_cv_func_inotify_init1" = yes; then
11627 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
11631 HAVE_POSIX_ACL=no
11632 LIBACL_LIBS=
11633 if test "${with_acl}" = "yes"; then
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_set_file in -lacl" >&5
11635 $as_echo_n "checking for acl_set_file in -lacl... " >&6; }
11636 if test "${ac_cv_lib_acl_acl_set_file+set}" = set; then :
11637 $as_echo_n "(cached) " >&6
11638 else
11639 ac_check_lib_save_LIBS=$LIBS
11640 LIBS="-lacl $LIBS"
11641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642 /* end confdefs.h. */
11644 /* Override any GCC internal prototype to avoid an error.
11645 Use char because int might match the return type of a GCC
11646 builtin and then its argument prototype would still apply. */
11647 #ifdef __cplusplus
11648 extern "C"
11649 #endif
11650 char acl_set_file ();
11652 main ()
11654 return acl_set_file ();
11656 return 0;
11658 _ACEOF
11659 if ac_fn_c_try_link "$LINENO"; then :
11660 ac_cv_lib_acl_acl_set_file=yes
11661 else
11662 ac_cv_lib_acl_acl_set_file=no
11664 rm -f core conftest.err conftest.$ac_objext \
11665 conftest$ac_exeext conftest.$ac_ext
11666 LIBS=$ac_check_lib_save_LIBS
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_set_file" >&5
11669 $as_echo "$ac_cv_lib_acl_acl_set_file" >&6; }
11670 if test "x$ac_cv_lib_acl_acl_set_file" = x""yes; then :
11671 HAVE_POSIX_ACL=yes
11672 else
11673 HAVE_POSIX_ACL=no
11676 if test "$HAVE_POSIX_ACL" = yes; then
11678 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11680 LIBACL_LIBS=-lacl
11681 else
11682 ac_fn_c_check_func "$LINENO" "acl_set_file" "ac_cv_func_acl_set_file"
11683 if test "x$ac_cv_func_acl_set_file" = x""yes; then :
11684 HAVE_POSIX_ACL=yes
11685 else
11686 HAVE_POSIX_ACL=no
11689 if test "$HAVE_POSIX_ACL" = yes; then
11691 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11698 HAVE_XAW3D=no
11699 LUCID_LIBW=
11700 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11701 if test "$with_xaw3d" != no; then
11702 if test "${emacs_cv_xaw3d+set}" = set; then :
11703 $as_echo_n "(cached) " >&6
11704 else
11705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11706 /* end confdefs.h. */
11708 #include <X11/Intrinsic.h>
11709 #include <X11/Xaw3d/Simple.h>
11711 main ()
11715 return 0;
11717 _ACEOF
11718 if ac_fn_c_try_link "$LINENO"; then :
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11720 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11721 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11722 $as_echo_n "(cached) " >&6
11723 else
11724 ac_check_lib_save_LIBS=$LIBS
11725 LIBS="-lXaw3d $LIBS"
11726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11727 /* end confdefs.h. */
11729 /* Override any GCC internal prototype to avoid an error.
11730 Use char because int might match the return type of a GCC
11731 builtin and then its argument prototype would still apply. */
11732 #ifdef __cplusplus
11733 extern "C"
11734 #endif
11735 char XawScrollbarSetThumb ();
11737 main ()
11739 return XawScrollbarSetThumb ();
11741 return 0;
11743 _ACEOF
11744 if ac_fn_c_try_link "$LINENO"; then :
11745 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11746 else
11747 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11749 rm -f core conftest.err conftest.$ac_objext \
11750 conftest$ac_exeext conftest.$ac_ext
11751 LIBS=$ac_check_lib_save_LIBS
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11754 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11755 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11756 emacs_cv_xaw3d=yes
11757 else
11758 emacs_cv_xaw3d=no
11761 else
11762 emacs_cv_xaw3d=no
11764 rm -f core conftest.err conftest.$ac_objext \
11765 conftest$ac_exeext conftest.$ac_ext
11768 else
11769 emacs_cv_xaw3d=no
11771 if test $emacs_cv_xaw3d = yes; then
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11773 $as_echo_n "checking for xaw3d... " >&6; }
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11775 $as_echo "yes; using Lucid toolkit" >&6; }
11776 USE_X_TOOLKIT=LUCID
11777 HAVE_XAW3D=yes
11778 LUCID_LIBW=-lXaw3d
11780 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11782 else
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11784 $as_echo_n "checking for xaw3d... " >&6; }
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786 $as_echo "no" >&6; }
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11788 $as_echo_n "checking for libXaw... " >&6; }
11789 if test "${emacs_cv_xaw+set}" = set; then :
11790 $as_echo_n "(cached) " >&6
11791 else
11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793 /* end confdefs.h. */
11795 #include <X11/Intrinsic.h>
11796 #include <X11/Xaw/Simple.h>
11798 main ()
11802 return 0;
11804 _ACEOF
11805 if ac_fn_c_try_link "$LINENO"; then :
11806 emacs_cv_xaw=yes
11807 else
11808 emacs_cv_xaw=no
11810 rm -f core conftest.err conftest.$ac_objext \
11811 conftest$ac_exeext conftest.$ac_ext
11814 if test $emacs_cv_xaw = yes; then
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11816 $as_echo "yes; using Lucid toolkit" >&6; }
11817 USE_X_TOOLKIT=LUCID
11818 LUCID_LIBW=-lXaw
11819 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11820 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11821 else
11822 as_fn_error "No X toolkit could be found.
11823 If you are sure you want Emacs compiled without an X toolkit, pass
11824 --with-x-toolkit=no
11825 to configure. Otherwise, install the development libraries for the toolkit
11826 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11831 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11833 LIBXTR6=
11834 if test "${USE_X_TOOLKIT}" != "none"; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11836 $as_echo_n "checking X11 toolkit version... " >&6; }
11837 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11838 $as_echo_n "(cached) " >&6
11839 else
11840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11841 /* end confdefs.h. */
11842 #include <X11/Intrinsic.h>
11844 main ()
11846 #if XtSpecificationRelease < 6
11847 fail;
11848 #endif
11851 return 0;
11853 _ACEOF
11854 if ac_fn_c_try_link "$LINENO"; then :
11855 emacs_cv_x11_toolkit_version_6=yes
11856 else
11857 emacs_cv_x11_toolkit_version_6=no
11859 rm -f core conftest.err conftest.$ac_objext \
11860 conftest$ac_exeext conftest.$ac_ext
11863 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11864 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11866 $as_echo "6 or newer" >&6; }
11868 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11870 LIBXTR6="-lSM -lICE"
11871 case "$opsys" in
11872 ## Use libw.a along with X11R6 Xt.
11873 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11874 esac
11875 else
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11877 $as_echo "before 6" >&6; }
11880 OLDLIBS="$LIBS"
11881 if test x$HAVE_X11XTR6 = xyes; then
11882 LIBS="-lXt -lSM -lICE $LIBS"
11883 else
11884 LIBS="-lXt $LIBS"
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11887 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11888 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11889 $as_echo_n "(cached) " >&6
11890 else
11891 ac_check_lib_save_LIBS=$LIBS
11892 LIBS="-lXmu $LIBS"
11893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11894 /* end confdefs.h. */
11896 /* Override any GCC internal prototype to avoid an error.
11897 Use char because int might match the return type of a GCC
11898 builtin and then its argument prototype would still apply. */
11899 #ifdef __cplusplus
11900 extern "C"
11901 #endif
11902 char XmuConvertStandardSelection ();
11904 main ()
11906 return XmuConvertStandardSelection ();
11908 return 0;
11910 _ACEOF
11911 if ac_fn_c_try_link "$LINENO"; then :
11912 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11913 else
11914 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11916 rm -f core conftest.err conftest.$ac_objext \
11917 conftest$ac_exeext conftest.$ac_ext
11918 LIBS=$ac_check_lib_save_LIBS
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11921 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11922 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11923 cat >>confdefs.h <<_ACEOF
11924 #define HAVE_LIBXMU 1
11925 _ACEOF
11927 LIBS="-lXmu $LIBS"
11931 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11935 LIBXMU=-lXmu
11936 case $opsys in
11937 ## These systems don't supply Xmu.
11938 hpux* | aix4-2 )
11939 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11941 esac
11944 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11945 if test "${HAVE_X11}" = "yes"; then
11946 if test "${USE_X_TOOLKIT}" != "none"; then
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11948 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11949 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11950 $as_echo_n "(cached) " >&6
11951 else
11952 ac_check_lib_save_LIBS=$LIBS
11953 LIBS="-lXext $LIBS"
11954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11957 /* Override any GCC internal prototype to avoid an error.
11958 Use char because int might match the return type of a GCC
11959 builtin and then its argument prototype would still apply. */
11960 #ifdef __cplusplus
11961 extern "C"
11962 #endif
11963 char XShapeQueryExtension ();
11965 main ()
11967 return XShapeQueryExtension ();
11969 return 0;
11971 _ACEOF
11972 if ac_fn_c_try_link "$LINENO"; then :
11973 ac_cv_lib_Xext_XShapeQueryExtension=yes
11974 else
11975 ac_cv_lib_Xext_XShapeQueryExtension=no
11977 rm -f core conftest.err conftest.$ac_objext \
11978 conftest$ac_exeext conftest.$ac_ext
11979 LIBS=$ac_check_lib_save_LIBS
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11982 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11983 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11984 cat >>confdefs.h <<_ACEOF
11985 #define HAVE_LIBXEXT 1
11986 _ACEOF
11988 LIBS="-lXext $LIBS"
11995 LIBXP=
11996 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11997 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11998 if test -d /usr/include/openmotif; then
11999 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
12000 emacs_cv_openmotif=yes
12001 case "$canonical" in
12002 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
12003 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
12006 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
12007 esac
12008 else
12009 emacs_cv_openmotif=no
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12012 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12013 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12014 $as_echo_n "(cached) " >&6
12015 else
12016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h. */
12018 #include <Xm/Xm.h>
12020 main ()
12022 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12023 int x = 5;
12024 #else
12025 Motif version prior to 2.1.
12026 #endif
12028 return 0;
12030 _ACEOF
12031 if ac_fn_c_try_compile "$LINENO"; then :
12032 emacs_cv_motif_version_2_1=yes
12033 else
12034 emacs_cv_motif_version_2_1=no
12036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12039 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12040 if test $emacs_cv_motif_version_2_1 = yes; then
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12042 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12043 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12044 $as_echo_n "(cached) " >&6
12045 else
12046 ac_check_lib_save_LIBS=$LIBS
12047 LIBS="-lXp $LIBS"
12048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12049 /* end confdefs.h. */
12051 /* Override any GCC internal prototype to avoid an error.
12052 Use char because int might match the return type of a GCC
12053 builtin and then its argument prototype would still apply. */
12054 #ifdef __cplusplus
12055 extern "C"
12056 #endif
12057 char XpCreateContext ();
12059 main ()
12061 return XpCreateContext ();
12063 return 0;
12065 _ACEOF
12066 if ac_fn_c_try_link "$LINENO"; then :
12067 ac_cv_lib_Xp_XpCreateContext=yes
12068 else
12069 ac_cv_lib_Xp_XpCreateContext=no
12071 rm -f core conftest.err conftest.$ac_objext \
12072 conftest$ac_exeext conftest.$ac_ext
12073 LIBS=$ac_check_lib_save_LIBS
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12076 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12077 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12078 LIBXP=-lXp
12081 if test x$emacs_cv_openmotif = xyes; then
12082 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
12084 else
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12086 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12087 if test "${emacs_cv_lesstif+set}" = set; then :
12088 $as_echo_n "(cached) " >&6
12089 else
12090 # We put this in CFLAGS temporarily to precede other -I options
12091 # that might be in CFLAGS temporarily.
12092 # We put this in CPPFLAGS where it precedes the other -I options.
12093 OLD_CPPFLAGS=$CPPFLAGS
12094 OLD_CFLAGS=$CFLAGS
12095 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12096 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12099 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12101 main ()
12103 int x = 5;
12105 return 0;
12107 _ACEOF
12108 if ac_fn_c_try_compile "$LINENO"; then :
12109 emacs_cv_lesstif=yes
12110 else
12111 emacs_cv_lesstif=no
12113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12116 $as_echo "$emacs_cv_lesstif" >&6; }
12117 if test $emacs_cv_lesstif = yes; then
12118 # Make sure this -I option remains in CPPFLAGS after it is set
12119 # back to REAL_CPPFLAGS.
12120 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12121 # have those other -I options anyway. Ultimately, having this
12122 # directory ultimately in CPPFLAGS will be enough.
12123 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12124 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12125 else
12126 CFLAGS=$OLD_CFLAGS
12127 CPPFLAGS=$OLD_CPPFLAGS
12130 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12131 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12133 else
12134 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12141 USE_TOOLKIT_SCROLL_BARS=no
12142 if test "${with_toolkit_scroll_bars}" != "no"; then
12143 if test "${USE_X_TOOLKIT}" != "none"; then
12144 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12145 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12147 HAVE_XAW3D=no
12148 USE_TOOLKIT_SCROLL_BARS=yes
12149 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12150 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12152 USE_TOOLKIT_SCROLL_BARS=yes
12154 elif test "${HAVE_GTK}" = "yes"; then
12155 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12157 USE_TOOLKIT_SCROLL_BARS=yes
12158 elif test "${HAVE_NS}" = "yes"; then
12159 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12161 USE_TOOLKIT_SCROLL_BARS=yes
12162 elif test "${HAVE_W32}" = "yes"; then
12163 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12165 USE_TOOLKIT_SCROLL_BARS=yes
12169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h. */
12172 #include <X11/Xlib.h>
12173 #include <X11/Xresource.h>
12175 main ()
12177 XIMProc callback;
12179 return 0;
12181 _ACEOF
12182 if ac_fn_c_try_compile "$LINENO"; then :
12183 HAVE_XIM=yes
12185 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12187 else
12188 HAVE_XIM=no
12190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12193 if test "${with_xim}" != "no"; then
12195 $as_echo "#define USE_XIM 1" >>confdefs.h
12200 if test "${HAVE_XIM}" != "no"; then
12201 late_CFLAGS=$CFLAGS
12202 if test "$GCC" = yes; then
12203 CFLAGS="$CFLAGS --pedantic-errors"
12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h. */
12208 #include <X11/Xlib.h>
12209 #include <X11/Xresource.h>
12211 main ()
12213 Display *display;
12214 XrmDatabase db;
12215 char *res_name;
12216 char *res_class;
12217 XIMProc callback;
12218 XPointer *client_data;
12219 #ifndef __GNUC__
12220 /* If we're not using GCC, it's probably not XFree86, and this is
12221 probably right, but we can't use something like --pedantic-errors. */
12222 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12223 char*, XIMProc, XPointer*);
12224 #endif
12225 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12226 client_data);
12228 return 0;
12230 _ACEOF
12231 if ac_fn_c_try_compile "$LINENO"; then :
12232 emacs_cv_arg6_star=yes
12234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12235 if test "$emacs_cv_arg6_star" = yes; then
12236 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12238 else
12239 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12242 CFLAGS=$late_CFLAGS
12245 ### Start of font-backend (under any platform) section.
12246 # (nothing here yet -- this is a placeholder)
12247 ### End of font-backend (under any platform) section.
12249 ### Start of font-backend (under X11) section.
12250 if test "${HAVE_X11}" = "yes"; then
12252 succeeded=no
12254 if test "$PKG_CONFIG" = "no" ; then
12255 HAVE_FC=no
12256 else
12257 PKG_CONFIG_MIN_VERSION=0.9.0
12258 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12260 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12262 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12263 FONTCONFIG_CFLAGS=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12264 FONTCONFIG_LIBS=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12265 edit_cflags="
12266 s,///*,/,g
12267 s/^/ /
12268 s/ -I/ $isystem/g
12269 s/^ //
12271 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12272 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12274 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12275 succeeded=yes
12276 else
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 $as_echo "no" >&6; }
12279 FONTCONFIG_CFLAGS=""
12280 FONTCONFIG_LIBS=""
12281 ## If we have a custom action on failure, don't print errors, but
12282 ## do set a variable so people can do so. Do it in a subshell
12283 ## to capture any diagnostics in invoking pkg-config.
12284 FONTCONFIG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12290 else
12291 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12292 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12296 if test $succeeded = yes; then
12297 HAVE_FC=yes
12298 else
12299 HAVE_FC=no
12303 ## Use -lXft if available, unless `--with-xft=no'.
12304 HAVE_XFT=maybe
12305 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12306 with_xft="no";
12308 if test "x${with_xft}" != "xno"; then
12311 succeeded=no
12313 if test "$PKG_CONFIG" = "no" ; then
12314 HAVE_XFT=no
12315 else
12316 PKG_CONFIG_MIN_VERSION=0.9.0
12317 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12319 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12321 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12322 XFT_CFLAGS=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12323 XFT_LIBS=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12324 edit_cflags="
12325 s,///*,/,g
12326 s/^/ /
12327 s/ -I/ $isystem/g
12328 s/^ //
12330 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12331 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12333 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12334 succeeded=yes
12335 else
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337 $as_echo "no" >&6; }
12338 XFT_CFLAGS=""
12339 XFT_LIBS=""
12340 ## If we have a custom action on failure, don't print errors, but
12341 ## do set a variable so people can do so. Do it in a subshell
12342 ## to capture any diagnostics in invoking pkg-config.
12343 XFT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12349 else
12350 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12351 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12355 if test $succeeded = yes; then
12357 else
12358 HAVE_XFT=no
12361 ## Because xftfont.c uses XRenderQueryExtension, we also
12362 ## need to link to -lXrender.
12363 HAVE_XRENDER=no
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12365 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12366 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 ac_check_lib_save_LIBS=$LIBS
12370 LIBS="-lXrender $LIBS"
12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12374 /* Override any GCC internal prototype to avoid an error.
12375 Use char because int might match the return type of a GCC
12376 builtin and then its argument prototype would still apply. */
12377 #ifdef __cplusplus
12378 extern "C"
12379 #endif
12380 char XRenderQueryExtension ();
12382 main ()
12384 return XRenderQueryExtension ();
12386 return 0;
12388 _ACEOF
12389 if ac_fn_c_try_link "$LINENO"; then :
12390 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12391 else
12392 ac_cv_lib_Xrender_XRenderQueryExtension=no
12394 rm -f core conftest.err conftest.$ac_objext \
12395 conftest$ac_exeext conftest.$ac_ext
12396 LIBS=$ac_check_lib_save_LIBS
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12399 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12400 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12401 HAVE_XRENDER=yes
12404 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12405 OLD_CPPFLAGS="$CPPFLAGS"
12406 OLD_CFLAGS="$CFLAGS"
12407 OLD_LIBS="$LIBS"
12408 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12409 CFLAGS="$CFLAGS $XFT_CFLAGS"
12410 XFT_LIBS="-lXrender $XFT_LIBS"
12411 LIBS="$XFT_LIBS $LIBS"
12412 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12413 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12415 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12416 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12417 $as_echo_n "(cached) " >&6
12418 else
12419 ac_check_lib_save_LIBS=$LIBS
12420 LIBS="-lXft $XFT_LIBS $LIBS"
12421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12422 /* end confdefs.h. */
12424 /* Override any GCC internal prototype to avoid an error.
12425 Use char because int might match the return type of a GCC
12426 builtin and then its argument prototype would still apply. */
12427 #ifdef __cplusplus
12428 extern "C"
12429 #endif
12430 char XftFontOpen ();
12432 main ()
12434 return XftFontOpen ();
12436 return 0;
12438 _ACEOF
12439 if ac_fn_c_try_link "$LINENO"; then :
12440 ac_cv_lib_Xft_XftFontOpen=yes
12441 else
12442 ac_cv_lib_Xft_XftFontOpen=no
12444 rm -f core conftest.err conftest.$ac_objext \
12445 conftest$ac_exeext conftest.$ac_ext
12446 LIBS=$ac_check_lib_save_LIBS
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12449 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12450 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12451 HAVE_XFT=yes
12458 if test "${HAVE_XFT}" = "yes"; then
12460 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12463 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12464 else
12465 CPPFLAGS="$OLD_CPPFLAGS"
12466 CFLAGS="$OLD_CFLAGS"
12467 LIBS="$OLD_LIBS"
12468 fi # "${HAVE_XFT}" = "yes"
12469 fi # "$HAVE_XFT" != no
12470 fi # "x${with_xft}" != "xno"
12472 ## We used to allow building with FreeType and without Xft.
12473 ## However, the ftx font backend driver is not in good shape.
12474 if test "$HAVE_XFT" != "yes"; then
12475 HAVE_XFT=no
12476 HAVE_FREETYPE=no
12477 else
12479 succeeded=no
12481 if test "$PKG_CONFIG" = "no" ; then
12482 HAVE_FREETYPE=no
12483 else
12484 PKG_CONFIG_MIN_VERSION=0.9.0
12485 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12487 $as_echo_n "checking for freetype2... " >&6; }
12489 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
12490 FREETYPE_CFLAGS=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
12491 FREETYPE_LIBS=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
12492 edit_cflags="
12493 s,///*,/,g
12494 s/^/ /
12495 s/ -I/ $isystem/g
12496 s/^ //
12498 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12499 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12501 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12502 succeeded=yes
12503 else
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12505 $as_echo "no" >&6; }
12506 FREETYPE_CFLAGS=""
12507 FREETYPE_LIBS=""
12508 ## If we have a custom action on failure, don't print errors, but
12509 ## do set a variable so people can do so. Do it in a subshell
12510 ## to capture any diagnostics in invoking pkg-config.
12511 FREETYPE_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
12517 else
12518 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12519 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12523 if test $succeeded = yes; then
12524 HAVE_FREETYPE=yes
12525 else
12526 HAVE_FREETYPE=no
12530 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12533 HAVE_LIBOTF=no
12534 if test "${HAVE_FREETYPE}" = "yes"; then
12536 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12538 if test "${with_libotf}" != "no"; then
12540 succeeded=no
12542 if test "$PKG_CONFIG" = "no" ; then
12543 HAVE_LIBOTF=no
12544 else
12545 PKG_CONFIG_MIN_VERSION=0.9.0
12546 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12548 $as_echo_n "checking for libotf... " >&6; }
12550 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
12551 LIBOTF_CFLAGS=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
12552 LIBOTF_LIBS=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
12553 edit_cflags="
12554 s,///*,/,g
12555 s/^/ /
12556 s/ -I/ $isystem/g
12557 s/^ //
12559 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12560 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12562 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12563 succeeded=yes
12564 else
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12566 $as_echo "no" >&6; }
12567 LIBOTF_CFLAGS=""
12568 LIBOTF_LIBS=""
12569 ## If we have a custom action on failure, don't print errors, but
12570 ## do set a variable so people can do so. Do it in a subshell
12571 ## to capture any diagnostics in invoking pkg-config.
12572 LIBOTF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
12578 else
12579 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12580 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12584 if test $succeeded = yes; then
12585 HAVE_LIBOTF=yes
12586 else
12587 HAVE_LIBOTF=no
12590 if test "$HAVE_LIBOTF" = "yes"; then
12592 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12595 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12596 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12597 $as_echo_n "(cached) " >&6
12598 else
12599 ac_check_lib_save_LIBS=$LIBS
12600 LIBS="-lotf $LIBS"
12601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602 /* end confdefs.h. */
12604 /* Override any GCC internal prototype to avoid an error.
12605 Use char because int might match the return type of a GCC
12606 builtin and then its argument prototype would still apply. */
12607 #ifdef __cplusplus
12608 extern "C"
12609 #endif
12610 char OTF_get_variation_glyphs ();
12612 main ()
12614 return OTF_get_variation_glyphs ();
12616 return 0;
12618 _ACEOF
12619 if ac_fn_c_try_link "$LINENO"; then :
12620 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12621 else
12622 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12624 rm -f core conftest.err conftest.$ac_objext \
12625 conftest$ac_exeext conftest.$ac_ext
12626 LIBS=$ac_check_lib_save_LIBS
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12629 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12630 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12631 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12632 else
12633 HAVE_OTF_GET_VARIATION_GLYPHS=no
12636 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12638 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12645 HAVE_M17N_FLT=no
12646 if test "${HAVE_LIBOTF}" = yes; then
12647 if test "${with_m17n_flt}" != "no"; then
12649 succeeded=no
12651 if test "$PKG_CONFIG" = "no" ; then
12652 HAVE_M17N_FLT=no
12653 else
12654 PKG_CONFIG_MIN_VERSION=0.9.0
12655 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12657 $as_echo_n "checking for m17n-flt... " >&6; }
12659 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
12660 M17N_FLT_CFLAGS=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
12661 M17N_FLT_LIBS=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
12662 edit_cflags="
12663 s,///*,/,g
12664 s/^/ /
12665 s/ -I/ $isystem/g
12666 s/^ //
12668 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12669 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12671 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12672 succeeded=yes
12673 else
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675 $as_echo "no" >&6; }
12676 M17N_FLT_CFLAGS=""
12677 M17N_FLT_LIBS=""
12678 ## If we have a custom action on failure, don't print errors, but
12679 ## do set a variable so people can do so. Do it in a subshell
12680 ## to capture any diagnostics in invoking pkg-config.
12681 M17N_FLT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
12687 else
12688 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12689 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12693 if test $succeeded = yes; then
12694 HAVE_M17N_FLT=yes
12695 else
12696 HAVE_M17N_FLT=no
12699 if test "$HAVE_M17N_FLT" = "yes"; then
12701 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12706 else
12707 HAVE_XFT=no
12708 HAVE_FREETYPE=no
12709 HAVE_LIBOTF=no
12710 HAVE_M17N_FLT=no
12713 ### End of font-backend (under X11) section.
12724 ### Use -lXpm if available, unless `--with-xpm=no'.
12725 HAVE_XPM=no
12726 LIBXPM=
12728 if test "${HAVE_W32}" = "yes"; then
12729 if test "${with_xpm}" != "no"; then
12730 SAVE_CPPFLAGS="$CPPFLAGS"
12731 SAVE_LDFLAGS="$LDFLAGS"
12732 CPPFLAGS="$CPPFLAGS -I/usr/include/noX"
12733 LDFLAGS="$LDFLAGS -L/usr/lib/noX"
12734 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12735 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
12737 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
12738 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
12739 $as_echo_n "(cached) " >&6
12740 else
12741 ac_check_lib_save_LIBS=$LIBS
12742 LIBS="-lXpm $LIBS"
12743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12744 /* end confdefs.h. */
12746 /* Override any GCC internal prototype to avoid an error.
12747 Use char because int might match the return type of a GCC
12748 builtin and then its argument prototype would still apply. */
12749 #ifdef __cplusplus
12750 extern "C"
12751 #endif
12752 char XpmReadFileToImage ();
12754 main ()
12756 return XpmReadFileToImage ();
12758 return 0;
12760 _ACEOF
12761 if ac_fn_c_try_link "$LINENO"; then :
12762 ac_cv_lib_Xpm_XpmReadFileToImage=yes
12763 else
12764 ac_cv_lib_Xpm_XpmReadFileToImage=no
12766 rm -f core conftest.err conftest.$ac_objext \
12767 conftest$ac_exeext conftest.$ac_ext
12768 LIBS=$ac_check_lib_save_LIBS
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
12771 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
12772 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then :
12773 HAVE_XPM=yes
12779 if test "${HAVE_XPM}" = "yes"; then
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12781 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h. */
12784 #include "X11/xpm.h"
12785 #ifndef XpmReturnAllocPixels
12786 no_return_alloc_pixels
12787 #endif
12789 _ACEOF
12790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12791 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12792 HAVE_XPM=no
12793 else
12794 HAVE_XPM=yes
12796 rm -f conftest*
12799 if test "${HAVE_XPM}" = "yes"; then
12800 REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX"
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12802 $as_echo "yes" >&6; }
12803 else
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805 $as_echo "no" >&6; }
12806 CPPFLAGS="$SAVE_CPPFLAGS"
12807 LDFLAGS="$SAVE_LDFLAGS"
12812 if test "${HAVE_XPM}" = "yes"; then
12814 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12816 LIBXPM=-lXpm
12820 if test "${HAVE_X11}" = "yes"; then
12821 if test "${with_xpm}" != "no"; then
12822 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12823 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12825 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12826 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12827 $as_echo_n "(cached) " >&6
12828 else
12829 ac_check_lib_save_LIBS=$LIBS
12830 LIBS="-lXpm -lX11 $LIBS"
12831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832 /* end confdefs.h. */
12834 /* Override any GCC internal prototype to avoid an error.
12835 Use char because int might match the return type of a GCC
12836 builtin and then its argument prototype would still apply. */
12837 #ifdef __cplusplus
12838 extern "C"
12839 #endif
12840 char XpmReadFileToPixmap ();
12842 main ()
12844 return XpmReadFileToPixmap ();
12846 return 0;
12848 _ACEOF
12849 if ac_fn_c_try_link "$LINENO"; then :
12850 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12851 else
12852 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12854 rm -f core conftest.err conftest.$ac_objext \
12855 conftest$ac_exeext conftest.$ac_ext
12856 LIBS=$ac_check_lib_save_LIBS
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12859 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12860 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12861 HAVE_XPM=yes
12867 if test "${HAVE_XPM}" = "yes"; then
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12869 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12871 /* end confdefs.h. */
12872 #include "X11/xpm.h"
12873 #ifndef XpmReturnAllocPixels
12874 no_return_alloc_pixels
12875 #endif
12877 _ACEOF
12878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12879 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12880 HAVE_XPM=no
12881 else
12882 HAVE_XPM=yes
12884 rm -f conftest*
12887 if test "${HAVE_XPM}" = "yes"; then
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12889 $as_echo "yes" >&6; }
12890 else
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892 $as_echo "no" >&6; }
12897 if test "${HAVE_XPM}" = "yes"; then
12899 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12901 LIBXPM=-lXpm
12907 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12908 HAVE_JPEG=no
12909 LIBJPEG=
12910 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12911 if test "${with_jpeg}" != "no"; then
12912 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12913 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12915 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12916 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12917 $as_echo_n "(cached) " >&6
12918 else
12919 ac_check_lib_save_LIBS=$LIBS
12920 LIBS="-ljpeg $LIBS"
12921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12922 /* end confdefs.h. */
12924 /* Override any GCC internal prototype to avoid an error.
12925 Use char because int might match the return type of a GCC
12926 builtin and then its argument prototype would still apply. */
12927 #ifdef __cplusplus
12928 extern "C"
12929 #endif
12930 char jpeg_destroy_compress ();
12932 main ()
12934 return jpeg_destroy_compress ();
12936 return 0;
12938 _ACEOF
12939 if ac_fn_c_try_link "$LINENO"; then :
12940 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12941 else
12942 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12944 rm -f core conftest.err conftest.$ac_objext \
12945 conftest$ac_exeext conftest.$ac_ext
12946 LIBS=$ac_check_lib_save_LIBS
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12949 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12950 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12951 HAVE_JPEG=yes
12959 if test "${HAVE_JPEG}" = "yes"; then
12960 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12964 #include <jpeglib.h>
12965 version=JPEG_LIB_VERSION
12967 _ACEOF
12968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12969 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12970 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12972 else
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12974 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12975 HAVE_JPEG=no
12977 rm -f conftest*
12980 if test "${HAVE_JPEG}" = "yes"; then
12981 LIBJPEG=-ljpeg
12986 ### Use -lpng if available, unless `--with-png=no'.
12987 HAVE_PNG=no
12988 LIBPNG=
12989 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12990 if test "${with_png}" != "no"; then
12991 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12992 # in /usr/include/libpng.
12993 for ac_header in png.h libpng/png.h
12994 do :
12995 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12996 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12997 eval as_val=\$$as_ac_Header
12998 if test "x$as_val" = x""yes; then :
12999 cat >>confdefs.h <<_ACEOF
13000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13001 _ACEOF
13002 break
13005 done
13007 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13009 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13010 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13011 $as_echo_n "(cached) " >&6
13012 else
13013 ac_check_lib_save_LIBS=$LIBS
13014 LIBS="-lpng -lz -lm $LIBS"
13015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13016 /* end confdefs.h. */
13018 /* Override any GCC internal prototype to avoid an error.
13019 Use char because int might match the return type of a GCC
13020 builtin and then its argument prototype would still apply. */
13021 #ifdef __cplusplus
13022 extern "C"
13023 #endif
13024 char png_get_channels ();
13026 main ()
13028 return png_get_channels ();
13030 return 0;
13032 _ACEOF
13033 if ac_fn_c_try_link "$LINENO"; then :
13034 ac_cv_lib_png_png_get_channels=yes
13035 else
13036 ac_cv_lib_png_png_get_channels=no
13038 rm -f core conftest.err conftest.$ac_objext \
13039 conftest$ac_exeext conftest.$ac_ext
13040 LIBS=$ac_check_lib_save_LIBS
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13043 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13044 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13045 HAVE_PNG=yes
13051 if test "${HAVE_PNG}" = "yes"; then
13053 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13055 LIBPNG="-lpng -lz -lm"
13057 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13058 # include <libpng/png.h>
13059 #else
13060 # include <png.h>
13061 #endif
13064 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13066 else
13068 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13076 ### Use -ltiff if available, unless `--with-tiff=no'.
13077 HAVE_TIFF=no
13078 LIBTIFF=
13079 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13080 if test "${with_tiff}" != "no"; then
13081 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13082 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13083 tifflibs="-lz -lm"
13084 # At least one tiff package requires the jpeg library.
13085 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13087 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13088 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13089 $as_echo_n "(cached) " >&6
13090 else
13091 ac_check_lib_save_LIBS=$LIBS
13092 LIBS="-ltiff $tifflibs $LIBS"
13093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094 /* end confdefs.h. */
13096 /* Override any GCC internal prototype to avoid an error.
13097 Use char because int might match the return type of a GCC
13098 builtin and then its argument prototype would still apply. */
13099 #ifdef __cplusplus
13100 extern "C"
13101 #endif
13102 char TIFFGetVersion ();
13104 main ()
13106 return TIFFGetVersion ();
13108 return 0;
13110 _ACEOF
13111 if ac_fn_c_try_link "$LINENO"; then :
13112 ac_cv_lib_tiff_TIFFGetVersion=yes
13113 else
13114 ac_cv_lib_tiff_TIFFGetVersion=no
13116 rm -f core conftest.err conftest.$ac_objext \
13117 conftest$ac_exeext conftest.$ac_ext
13118 LIBS=$ac_check_lib_save_LIBS
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13121 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13122 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13123 HAVE_TIFF=yes
13131 if test "${HAVE_TIFF}" = "yes"; then
13133 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13135 LIBTIFF=-ltiff
13140 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13141 HAVE_GIF=no
13142 LIBGIF=
13143 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
13144 || test "${HAVE_W32}" = "yes"; then
13145 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13146 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13147 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13148 # Earlier versions can crash Emacs.
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13150 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13151 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13152 $as_echo_n "(cached) " >&6
13153 else
13154 ac_check_lib_save_LIBS=$LIBS
13155 LIBS="-lgif $LIBS"
13156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13157 /* end confdefs.h. */
13159 /* Override any GCC internal prototype to avoid an error.
13160 Use char because int might match the return type of a GCC
13161 builtin and then its argument prototype would still apply. */
13162 #ifdef __cplusplus
13163 extern "C"
13164 #endif
13165 char EGifPutExtensionLast ();
13167 main ()
13169 return EGifPutExtensionLast ();
13171 return 0;
13173 _ACEOF
13174 if ac_fn_c_try_link "$LINENO"; then :
13175 ac_cv_lib_gif_EGifPutExtensionLast=yes
13176 else
13177 ac_cv_lib_gif_EGifPutExtensionLast=no
13179 rm -f core conftest.err conftest.$ac_objext \
13180 conftest$ac_exeext conftest.$ac_ext
13181 LIBS=$ac_check_lib_save_LIBS
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13184 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13185 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13186 HAVE_GIF=yes
13187 else
13188 HAVE_GIF=maybe
13195 if test "$HAVE_GIF" = yes; then
13196 LIBGIF=-lgif
13197 elif test "$HAVE_GIF" = maybe; then
13198 # If gif_lib.h but no libgif, try libungif.
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13200 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13201 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13202 $as_echo_n "(cached) " >&6
13203 else
13204 ac_check_lib_save_LIBS=$LIBS
13205 LIBS="-lungif $LIBS"
13206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207 /* end confdefs.h. */
13209 /* Override any GCC internal prototype to avoid an error.
13210 Use char because int might match the return type of a GCC
13211 builtin and then its argument prototype would still apply. */
13212 #ifdef __cplusplus
13213 extern "C"
13214 #endif
13215 char EGifPutExtensionLast ();
13217 main ()
13219 return EGifPutExtensionLast ();
13221 return 0;
13223 _ACEOF
13224 if ac_fn_c_try_link "$LINENO"; then :
13225 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13226 else
13227 ac_cv_lib_ungif_EGifPutExtensionLast=no
13229 rm -f core conftest.err conftest.$ac_objext \
13230 conftest$ac_exeext conftest.$ac_ext
13231 LIBS=$ac_check_lib_save_LIBS
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13234 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13235 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13236 HAVE_GIF=yes
13237 else
13238 HAVE_GIF=no
13241 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13244 if test "${HAVE_GIF}" = "yes"; then
13246 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13252 if test "${HAVE_X11}" = "yes"; then
13253 MISSING=""
13254 WITH_NO=""
13255 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13256 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13257 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13258 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13259 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13260 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13261 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13262 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13263 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13264 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13266 if test "X${MISSING}" != X; then
13267 as_fn_error "The following required libraries were not found:
13268 $MISSING
13269 Maybe some development libraries/packages are missing?
13270 If you don't want to link with them give
13271 $WITH_NO
13272 as options to configure" "$LINENO" 5
13276 ### Use -lgpm if available, unless `--with-gpm=no'.
13277 HAVE_GPM=no
13278 LIBGPM=
13279 if test "${with_gpm}" != "no"; then
13280 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13281 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13283 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13284 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13285 $as_echo_n "(cached) " >&6
13286 else
13287 ac_check_lib_save_LIBS=$LIBS
13288 LIBS="-lgpm $LIBS"
13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h. */
13292 /* Override any GCC internal prototype to avoid an error.
13293 Use char because int might match the return type of a GCC
13294 builtin and then its argument prototype would still apply. */
13295 #ifdef __cplusplus
13296 extern "C"
13297 #endif
13298 char Gpm_Open ();
13300 main ()
13302 return Gpm_Open ();
13304 return 0;
13306 _ACEOF
13307 if ac_fn_c_try_link "$LINENO"; then :
13308 ac_cv_lib_gpm_Gpm_Open=yes
13309 else
13310 ac_cv_lib_gpm_Gpm_Open=no
13312 rm -f core conftest.err conftest.$ac_objext \
13313 conftest$ac_exeext conftest.$ac_ext
13314 LIBS=$ac_check_lib_save_LIBS
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13317 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13318 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13319 HAVE_GPM=yes
13326 if test "${HAVE_GPM}" = "yes"; then
13328 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13330 LIBGPM=-lgpm
13339 GNUSTEP_CFLAGS=
13340 ### Use NeXTstep API to implement GUI.
13341 if test "${HAVE_NS}" = "yes"; then
13343 $as_echo "#define HAVE_NS 1" >>confdefs.h
13345 if test "${NS_IMPL_COCOA}" = "yes"; then
13347 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13350 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13352 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13354 # See also .m.o rule in Makefile.in */
13355 # FIXME: are all these flags really needed? Document here why. */
13356 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13357 ## Extra CFLAGS applied to src/*.m files.
13358 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"
13360 # We also have mouse menus.
13361 HAVE_MENUS=yes
13362 OTHER_FILES=ns-app
13365 if test "${HAVE_W32}" = "yes"; then
13366 HAVE_MENUS=yes
13369 ### Use session management (-lSM -lICE) if available
13370 HAVE_X_SM=no
13371 LIBXSM=
13372 if test "${HAVE_X11}" = "yes"; then
13373 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13374 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13376 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13377 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13378 $as_echo_n "(cached) " >&6
13379 else
13380 ac_check_lib_save_LIBS=$LIBS
13381 LIBS="-lSM -lICE $LIBS"
13382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13383 /* end confdefs.h. */
13385 /* Override any GCC internal prototype to avoid an error.
13386 Use char because int might match the return type of a GCC
13387 builtin and then its argument prototype would still apply. */
13388 #ifdef __cplusplus
13389 extern "C"
13390 #endif
13391 char SmcOpenConnection ();
13393 main ()
13395 return SmcOpenConnection ();
13397 return 0;
13399 _ACEOF
13400 if ac_fn_c_try_link "$LINENO"; then :
13401 ac_cv_lib_SM_SmcOpenConnection=yes
13402 else
13403 ac_cv_lib_SM_SmcOpenConnection=no
13405 rm -f core conftest.err conftest.$ac_objext \
13406 conftest$ac_exeext conftest.$ac_ext
13407 LIBS=$ac_check_lib_save_LIBS
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13410 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13411 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13412 HAVE_X_SM=yes
13419 if test "${HAVE_X_SM}" = "yes"; then
13421 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13423 LIBXSM="-lSM -lICE"
13424 case "$LIBS" in
13425 *-lSM*) ;;
13426 *) LIBS="$LIBXSM $LIBS" ;;
13427 esac
13432 ### Use libxml (-lxml2) if available
13433 HAVE_LIBXML2=no
13434 if test "${with_xml2}" != "no"; then
13435 ### I'm not sure what the version number should be, so I just guessed.
13437 succeeded=no
13439 if test "$PKG_CONFIG" = "no" ; then
13440 HAVE_LIBXML2=no
13441 else
13442 PKG_CONFIG_MIN_VERSION=0.9.0
13443 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13445 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13447 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13448 LIBXML2_CFLAGS=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13449 LIBXML2_LIBS=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13450 edit_cflags="
13451 s,///*,/,g
13452 s/^/ /
13453 s/ -I/ $isystem/g
13454 s/^ //
13456 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13457 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13459 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13460 succeeded=yes
13461 else
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13463 $as_echo "no" >&6; }
13464 LIBXML2_CFLAGS=""
13465 LIBXML2_LIBS=""
13466 ## If we have a custom action on failure, don't print errors, but
13467 ## do set a variable so people can do so. Do it in a subshell
13468 ## to capture any diagnostics in invoking pkg-config.
13469 LIBXML2_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
13475 else
13476 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13477 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13481 if test $succeeded = yes; then
13482 HAVE_LIBXML2=yes
13483 else
13484 HAVE_LIBXML2=no
13487 if test "${HAVE_LIBXML2}" = "yes"; then
13488 LIBS="$LIBXML2_LIBS $LIBS"
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13490 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13491 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13492 $as_echo_n "(cached) " >&6
13493 else
13494 ac_check_lib_save_LIBS=$LIBS
13495 LIBS="-lxml2 $LIBS"
13496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13497 /* end confdefs.h. */
13499 /* Override any GCC internal prototype to avoid an error.
13500 Use char because int might match the return type of a GCC
13501 builtin and then its argument prototype would still apply. */
13502 #ifdef __cplusplus
13503 extern "C"
13504 #endif
13505 char htmlReadMemory ();
13507 main ()
13509 return htmlReadMemory ();
13511 return 0;
13513 _ACEOF
13514 if ac_fn_c_try_link "$LINENO"; then :
13515 ac_cv_lib_xml2_htmlReadMemory=yes
13516 else
13517 ac_cv_lib_xml2_htmlReadMemory=no
13519 rm -f core conftest.err conftest.$ac_objext \
13520 conftest$ac_exeext conftest.$ac_ext
13521 LIBS=$ac_check_lib_save_LIBS
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13524 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13525 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13526 HAVE_LIBXML2=yes
13527 else
13528 HAVE_LIBXML2=no
13531 if test "${HAVE_LIBXML2}" = "yes"; then
13533 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13535 else
13536 LIBXML2_LIBS=""
13537 LIBXML2_CFLAGS=""
13544 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13546 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13547 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13548 $as_echo_n "(cached) " >&6
13549 else
13550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13551 /* end confdefs.h. */
13552 #include <netdb.h>
13554 main ()
13556 return h_errno;
13558 return 0;
13560 _ACEOF
13561 if ac_fn_c_try_link "$LINENO"; then :
13562 emacs_cv_netdb_declares_h_errno=yes
13563 else
13564 emacs_cv_netdb_declares_h_errno=no
13566 rm -f core conftest.err conftest.$ac_objext \
13567 conftest$ac_exeext conftest.$ac_ext
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13570 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13571 if test $emacs_cv_netdb_declares_h_errno = yes; then
13573 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13577 # sqrt and other floating-point functions such as fmod and frexp
13578 # are found in -lm on most systems.
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13580 $as_echo_n "checking for sqrt in -lm... " >&6; }
13581 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13582 $as_echo_n "(cached) " >&6
13583 else
13584 ac_check_lib_save_LIBS=$LIBS
13585 LIBS="-lm $LIBS"
13586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h. */
13589 /* Override any GCC internal prototype to avoid an error.
13590 Use char because int might match the return type of a GCC
13591 builtin and then its argument prototype would still apply. */
13592 #ifdef __cplusplus
13593 extern "C"
13594 #endif
13595 char sqrt ();
13597 main ()
13599 return sqrt ();
13601 return 0;
13603 _ACEOF
13604 if ac_fn_c_try_link "$LINENO"; then :
13605 ac_cv_lib_m_sqrt=yes
13606 else
13607 ac_cv_lib_m_sqrt=no
13609 rm -f core conftest.err conftest.$ac_objext \
13610 conftest$ac_exeext conftest.$ac_ext
13611 LIBS=$ac_check_lib_save_LIBS
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13614 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13615 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13616 cat >>confdefs.h <<_ACEOF
13617 #define HAVE_LIBM 1
13618 _ACEOF
13620 LIBS="-lm $LIBS"
13625 # Check for mail-locking functions in a "mail" library. Probably this should
13626 # have the same check as for liblockfile below.
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13628 $as_echo_n "checking for maillock in -lmail... " >&6; }
13629 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13630 $as_echo_n "(cached) " >&6
13631 else
13632 ac_check_lib_save_LIBS=$LIBS
13633 LIBS="-lmail $LIBS"
13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13637 /* Override any GCC internal prototype to avoid an error.
13638 Use char because int might match the return type of a GCC
13639 builtin and then its argument prototype would still apply. */
13640 #ifdef __cplusplus
13641 extern "C"
13642 #endif
13643 char maillock ();
13645 main ()
13647 return maillock ();
13649 return 0;
13651 _ACEOF
13652 if ac_fn_c_try_link "$LINENO"; then :
13653 ac_cv_lib_mail_maillock=yes
13654 else
13655 ac_cv_lib_mail_maillock=no
13657 rm -f core conftest.err conftest.$ac_objext \
13658 conftest$ac_exeext conftest.$ac_ext
13659 LIBS=$ac_check_lib_save_LIBS
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13662 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13663 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13664 have_mail=yes
13665 else
13666 have_mail=no
13669 if test $have_mail = yes; then
13670 LIBS_MAIL=-lmail
13671 LIBS="$LIBS_MAIL $LIBS"
13673 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13675 else
13676 LIBS_MAIL=
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13679 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13680 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13681 $as_echo_n "(cached) " >&6
13682 else
13683 ac_check_lib_save_LIBS=$LIBS
13684 LIBS="-llockfile $LIBS"
13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13688 /* Override any GCC internal prototype to avoid an error.
13689 Use char because int might match the return type of a GCC
13690 builtin and then its argument prototype would still apply. */
13691 #ifdef __cplusplus
13692 extern "C"
13693 #endif
13694 char maillock ();
13696 main ()
13698 return maillock ();
13700 return 0;
13702 _ACEOF
13703 if ac_fn_c_try_link "$LINENO"; then :
13704 ac_cv_lib_lockfile_maillock=yes
13705 else
13706 ac_cv_lib_lockfile_maillock=no
13708 rm -f core conftest.err conftest.$ac_objext \
13709 conftest$ac_exeext conftest.$ac_ext
13710 LIBS=$ac_check_lib_save_LIBS
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13713 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13714 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13715 have_lockfile=yes
13716 else
13717 have_lockfile=no
13720 if test $have_lockfile = yes; then
13721 LIBS_MAIL=-llockfile
13722 LIBS="$LIBS_MAIL $LIBS"
13724 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13726 else
13727 # If we have the shared liblockfile, assume we must use it for mail
13728 # locking (e.g. Debian). If we couldn't link against liblockfile
13729 # (no liblockfile.a installed), ensure that we don't need to.
13730 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13731 set dummy liblockfile.so; ac_word=$2
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13733 $as_echo_n "checking for $ac_word... " >&6; }
13734 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13735 $as_echo_n "(cached) " >&6
13736 else
13737 if test -n "$liblockfile"; then
13738 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13739 else
13740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13741 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13742 for as_dir in $as_dummy
13744 IFS=$as_save_IFS
13745 test -z "$as_dir" && as_dir=.
13746 for ac_exec_ext in '' $ac_executable_extensions; do
13747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13748 ac_cv_prog_liblockfile="yes"
13749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13750 break 2
13752 done
13753 done
13754 IFS=$as_save_IFS
13756 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13759 liblockfile=$ac_cv_prog_liblockfile
13760 if test -n "$liblockfile"; then
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13762 $as_echo "$liblockfile" >&6; }
13763 else
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13765 $as_echo "no" >&6; }
13769 if test $ac_cv_prog_liblockfile = yes; then
13770 as_fn_error "Shared liblockfile found but can't link against it.
13771 This probably means that movemail could lose mail.
13772 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13780 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13781 ## interlock access to the mail spool. The alternative is a lock file named
13782 ## /usr/spool/mail/$USER.lock.
13783 mail_lock=no
13784 case "$opsys" in
13785 aix4-2) mail_lock="lockf" ;;
13787 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13789 ## On GNU/Linux systems, both methods are used by various mail programs.
13790 ## I assume most people are using newer mailers that have heard of flock.
13791 ## Change this if you need to.
13792 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13793 ## configure gets the right answers, and that means *NOT* using flock.
13794 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13795 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13796 ## Debian maintainer hasn't provided a clean fix for Emacs.
13797 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13798 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13799 ## correct logic. -- fx
13800 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13801 ## liblockfile is a Free Software replacement for libmail, used on
13802 ## Debian systems and elsewhere. -rfr.
13803 gnu-*)
13804 mail_lock="flock"
13805 if test $have_mail = yes || test $have_lockfile = yes; then
13806 test $ac_cv_header_maillock_h = yes && mail_lock=no
13809 esac
13811 BLESSMAIL_TARGET=
13812 case "$mail_lock" in
13813 flock)
13814 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13817 lockf)
13818 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13821 *) BLESSMAIL_TARGET="need-blessmail" ;;
13822 esac
13826 for ac_func in gethostname \
13827 getrusage get_current_dir_name \
13828 lrand48 \
13829 select getpagesize setlocale \
13830 utimes getrlimit setrlimit shutdown getaddrinfo \
13831 strsignal setitimer \
13832 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13833 gai_strerror mkstemp getline getdelim fsync sync \
13834 difftime posix_memalign \
13835 getpwent endpwent getgrent endgrent \
13836 touchlock \
13837 cfmakeraw cfsetspeed copysign __executable_start
13838 do :
13839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13840 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13841 eval as_val=\$$as_ac_var
13842 if test "x$as_val" = x""yes; then :
13843 cat >>confdefs.h <<_ACEOF
13844 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13845 _ACEOF
13848 done
13851 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13852 ## has a broken `rint' in some library versions including math library
13853 ## version number A.09.05.
13854 ## You can fix the math library by installing patch number PHSS_4630.
13855 ## But we can fix it more reliably for Emacs by just not using rint.
13856 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13857 case $opsys in
13858 hpux*) : ;;
13859 *) for ac_func in random rint
13860 do :
13861 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13862 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13863 eval as_val=\$$as_ac_var
13864 if test "x$as_val" = x""yes; then :
13865 cat >>confdefs.h <<_ACEOF
13866 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13867 _ACEOF
13870 done
13872 esac
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13875 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13876 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13877 $as_echo_n "(cached) " >&6
13878 else
13879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880 /* end confdefs.h. */
13883 main ()
13885 __builtin_unwind_init ();
13887 return 0;
13889 _ACEOF
13890 if ac_fn_c_try_link "$LINENO"; then :
13891 emacs_cv_func___builtin_unwind_init=yes
13892 else
13893 emacs_cv_func___builtin_unwind_init=no
13895 rm -f core conftest.err conftest.$ac_objext \
13896 conftest$ac_exeext conftest.$ac_ext
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13899 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13900 if test $emacs_cv_func___builtin_unwind_init = yes; then
13902 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13911 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13912 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13913 $as_echo_n "(cached) " >&6
13914 else
13915 while :; do
13916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13917 /* end confdefs.h. */
13918 #include <sys/types.h> /* for off_t */
13919 #include <stdio.h>
13921 main ()
13923 int (*fp) (FILE *, off_t, int) = fseeko;
13924 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13926 return 0;
13928 _ACEOF
13929 if ac_fn_c_try_link "$LINENO"; then :
13930 ac_cv_sys_largefile_source=no; break
13932 rm -f core conftest.err conftest.$ac_objext \
13933 conftest$ac_exeext conftest.$ac_ext
13934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13935 /* end confdefs.h. */
13936 #define _LARGEFILE_SOURCE 1
13937 #include <sys/types.h> /* for off_t */
13938 #include <stdio.h>
13940 main ()
13942 int (*fp) (FILE *, off_t, int) = fseeko;
13943 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13945 return 0;
13947 _ACEOF
13948 if ac_fn_c_try_link "$LINENO"; then :
13949 ac_cv_sys_largefile_source=1; break
13951 rm -f core conftest.err conftest.$ac_objext \
13952 conftest$ac_exeext conftest.$ac_ext
13953 ac_cv_sys_largefile_source=unknown
13954 break
13955 done
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13958 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13959 case $ac_cv_sys_largefile_source in #(
13960 no | unknown) ;;
13962 cat >>confdefs.h <<_ACEOF
13963 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13964 _ACEOF
13966 esac
13967 rm -rf conftest*
13969 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13970 # in glibc 2.1.3, but that breaks too many other things.
13971 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13972 if test $ac_cv_sys_largefile_source != unknown; then
13974 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13979 # UNIX98 PTYs.
13980 for ac_func in grantpt
13981 do :
13982 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13983 if test "x$ac_cv_func_grantpt" = x""yes; then :
13984 cat >>confdefs.h <<_ACEOF
13985 #define HAVE_GRANTPT 1
13986 _ACEOF
13989 done
13992 # PTY-related GNU extensions.
13993 for ac_func in getpt posix_openpt
13994 do :
13995 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13996 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13997 eval as_val=\$$as_ac_var
13998 if test "x$as_val" = x""yes; then :
13999 cat >>confdefs.h <<_ACEOF
14000 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14001 _ACEOF
14004 done
14007 # Check this now, so that we will NOT find the above functions in ncurses.
14008 # That is because we have not set up to link ncurses in lib-src.
14009 # It's better to believe a function is not available
14010 # than to expect to find it in ncurses.
14011 # Also we need tputs and friends to be able to build at all.
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14013 $as_echo_n "checking for library containing tputs... " >&6; }
14014 # Run a test program that contains a call to tputs, a call that is
14015 # never executed. This tests whether a pre-'main' dynamic linker
14016 # works with the library. It's too much trouble to actually call
14017 # tputs in the test program, due to portability hassles. When
14018 # cross-compiling, assume the test program will run if it links.
14020 # Maybe curses should be tried earlier?
14021 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14022 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
14023 OLIBS=$LIBS
14024 if test -z "$tputs_library"; then
14025 LIBS_TERMCAP=
14026 msg='none required'
14027 else
14028 LIBS_TERMCAP=-l$tputs_library
14029 msg=$LIBS_TERMCAP
14030 LIBS="$LIBS_TERMCAP $LIBS"
14032 if test "$cross_compiling" = yes; then :
14033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h. */
14036 extern void tputs (const char *, int, int (*)(int));
14037 int main (int argc, char **argv)
14039 if (argc == 10000)
14040 tputs (argv[0], 0, 0);
14041 return 0;
14044 _ACEOF
14045 if ac_fn_c_try_link "$LINENO"; then :
14047 else
14048 msg=no
14050 rm -f core conftest.err conftest.$ac_objext \
14051 conftest$ac_exeext conftest.$ac_ext
14052 else
14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054 /* end confdefs.h. */
14056 extern void tputs (const char *, int, int (*)(int));
14057 int main (int argc, char **argv)
14059 if (argc == 10000)
14060 tputs (argv[0], 0, 0);
14061 return 0;
14064 _ACEOF
14065 if ac_fn_c_try_run "$LINENO"; then :
14067 else
14068 msg=no
14070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14071 conftest.$ac_objext conftest.beam conftest.$ac_ext
14074 LIBS=$OLIBS
14075 if test "X$msg" != Xno; then
14076 break
14078 done
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14080 $as_echo "$msg" >&6; }
14081 if test "X$msg" = Xno; then
14082 as_fn_error "The required function \`tputs' was not found in any library.
14083 The following libraries were tried (in order):
14084 libtinfo, libncurses, libterminfo, libtermcap, libcurses
14085 Please try installing whichever of these libraries is most appropriate
14086 for your system, together with its header files.
14087 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14090 ## Use termcap instead of terminfo?
14091 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
14092 TERMINFO=yes
14093 ## FIXME? In the cases below where we unconditionally set
14094 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
14095 ## if that was found above to have tputs.
14096 ## Should we use the gnu* logic everywhere?
14097 case "$opsys" in
14098 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14099 ## The ncurses library has been moved out of the System framework in
14100 ## Mac OS X 10.2. So if configure detects it, set the command-line
14101 ## option to use it.
14102 darwin) LIBS_TERMCAP="-lncurses" ;;
14104 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
14106 freebsd)
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14108 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14109 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14110 $as_echo_n "(cached) " >&6
14111 else
14112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14113 /* end confdefs.h. */
14114 #include <osreldate.h>
14116 main ()
14118 #if __FreeBSD_version < 400000
14119 fail;
14120 #endif
14123 return 0;
14125 _ACEOF
14126 if ac_fn_c_try_link "$LINENO"; then :
14127 emacs_cv_freebsd_terminfo=yes
14128 else
14129 emacs_cv_freebsd_terminfo=no
14131 rm -f core conftest.err conftest.$ac_objext \
14132 conftest$ac_exeext conftest.$ac_ext
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14137 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14139 if test $emacs_cv_freebsd_terminfo = yes; then
14140 LIBS_TERMCAP="-lncurses"
14141 else
14142 TERMINFO=no
14143 LIBS_TERMCAP="-ltermcap"
14147 netbsd)
14148 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
14149 TERMINFO=no
14150 LIBS_TERMCAP="-ltermcap"
14154 openbsd) LIBS_TERMCAP="-lncurses" ;;
14156 ## hpux: Make sure we get select from libc rather than from libcurses
14157 ## because libcurses on HPUX 10.10 has a broken version of select.
14158 ## We used to use -lc -lcurses, but this may be cleaner.
14159 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
14160 # set that way, now it uses the default). Isn't this a contradiction?
14161 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14163 esac
14165 TERMCAP_OBJ=tparam.o
14166 if test $TERMINFO = yes; then
14168 $as_echo "#define TERMINFO 1" >>confdefs.h
14170 TERMCAP_OBJ=terminfo.o
14176 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14177 # On Darwin, res_init appears not to be useful: see bug#562 and
14178 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
14179 resolv=no
14181 if test $opsys != darwin; then
14183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14184 /* end confdefs.h. */
14185 #include <netinet/in.h>
14186 #include <arpa/nameser.h>
14187 #include <resolv.h>
14189 main ()
14191 return res_init();
14193 return 0;
14195 _ACEOF
14196 if ac_fn_c_try_link "$LINENO"; then :
14197 have_res_init=yes
14198 else
14199 have_res_init=no
14201 rm -f core conftest.err conftest.$ac_objext \
14202 conftest$ac_exeext conftest.$ac_ext
14203 if test "$have_res_init" = no; then
14204 OLIBS="$LIBS"
14205 LIBS="$LIBS -lresolv"
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14207 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h. */
14210 #include <netinet/in.h>
14211 #include <arpa/nameser.h>
14212 #include <resolv.h>
14214 main ()
14216 return res_init();
14218 return 0;
14220 _ACEOF
14221 if ac_fn_c_try_link "$LINENO"; then :
14222 have_res_init=yes
14223 else
14224 have_res_init=no
14226 rm -f core conftest.err conftest.$ac_objext \
14227 conftest$ac_exeext conftest.$ac_ext
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14229 $as_echo "$have_res_init" >&6; }
14230 if test "$have_res_init" = yes ; then
14231 resolv=yes
14233 LIBS="$OLIBS"
14236 if test "$have_res_init" = yes; then
14238 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14242 # Do we need the Hesiod library to provide the support routines?
14243 LIBHESIOD=
14244 if test "$with_hesiod" != no ; then
14245 # Don't set $LIBS here -- see comments above. FIXME which comments?
14246 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14247 if test "x$ac_cv_func_res_send" = x""yes; then :
14249 else
14250 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14251 if test "x$ac_cv_func___res_send" = x""yes; then :
14253 else
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14255 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14256 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14257 $as_echo_n "(cached) " >&6
14258 else
14259 ac_check_lib_save_LIBS=$LIBS
14260 LIBS="-lresolv $LIBS"
14261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262 /* end confdefs.h. */
14264 /* Override any GCC internal prototype to avoid an error.
14265 Use char because int might match the return type of a GCC
14266 builtin and then its argument prototype would still apply. */
14267 #ifdef __cplusplus
14268 extern "C"
14269 #endif
14270 char res_send ();
14272 main ()
14274 return res_send ();
14276 return 0;
14278 _ACEOF
14279 if ac_fn_c_try_link "$LINENO"; then :
14280 ac_cv_lib_resolv_res_send=yes
14281 else
14282 ac_cv_lib_resolv_res_send=no
14284 rm -f core conftest.err conftest.$ac_objext \
14285 conftest$ac_exeext conftest.$ac_ext
14286 LIBS=$ac_check_lib_save_LIBS
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14289 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14290 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
14291 resolv=yes
14292 else
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14294 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14295 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14296 $as_echo_n "(cached) " >&6
14297 else
14298 ac_check_lib_save_LIBS=$LIBS
14299 LIBS="-lresolv $LIBS"
14300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301 /* end confdefs.h. */
14303 /* Override any GCC internal prototype to avoid an error.
14304 Use char because int might match the return type of a GCC
14305 builtin and then its argument prototype would still apply. */
14306 #ifdef __cplusplus
14307 extern "C"
14308 #endif
14309 char __res_send ();
14311 main ()
14313 return __res_send ();
14315 return 0;
14317 _ACEOF
14318 if ac_fn_c_try_link "$LINENO"; then :
14319 ac_cv_lib_resolv___res_send=yes
14320 else
14321 ac_cv_lib_resolv___res_send=no
14323 rm -f core conftest.err conftest.$ac_objext \
14324 conftest$ac_exeext conftest.$ac_ext
14325 LIBS=$ac_check_lib_save_LIBS
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14328 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14329 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14330 resolv=yes
14339 if test "$resolv" = yes ; then
14340 RESOLVLIB=-lresolv
14341 else
14342 RESOLVLIB=
14344 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14345 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14347 else
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14349 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14350 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14351 $as_echo_n "(cached) " >&6
14352 else
14353 ac_check_lib_save_LIBS=$LIBS
14354 LIBS="-lhesiod $RESOLVLIB $LIBS"
14355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14356 /* end confdefs.h. */
14358 /* Override any GCC internal prototype to avoid an error.
14359 Use char because int might match the return type of a GCC
14360 builtin and then its argument prototype would still apply. */
14361 #ifdef __cplusplus
14362 extern "C"
14363 #endif
14364 char hes_getmailhost ();
14366 main ()
14368 return hes_getmailhost ();
14370 return 0;
14372 _ACEOF
14373 if ac_fn_c_try_link "$LINENO"; then :
14374 ac_cv_lib_hesiod_hes_getmailhost=yes
14375 else
14376 ac_cv_lib_hesiod_hes_getmailhost=no
14378 rm -f core conftest.err conftest.$ac_objext \
14379 conftest$ac_exeext conftest.$ac_ext
14380 LIBS=$ac_check_lib_save_LIBS
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14383 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14384 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14385 hesiod=yes
14386 else
14393 if test x"$hesiod" = xyes; then
14395 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14397 LIBHESIOD=-lhesiod
14402 # Do we need libresolv (due to res_init or Hesiod)?
14403 if test "$resolv" = yes && test $opsys != darwin; then
14405 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14407 LIBRESOLV=-lresolv
14408 else
14409 LIBRESOLV=
14413 # These tell us which Kerberos-related libraries to use.
14414 COM_ERRLIB=
14415 CRYPTOLIB=
14416 KRB5LIB=
14417 DESLIB=
14418 KRB4LIB=
14420 if test "${with_kerberos}" != no; then
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14422 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14423 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14424 $as_echo_n "(cached) " >&6
14425 else
14426 ac_check_lib_save_LIBS=$LIBS
14427 LIBS="-lcom_err $LIBS"
14428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429 /* end confdefs.h. */
14431 /* Override any GCC internal prototype to avoid an error.
14432 Use char because int might match the return type of a GCC
14433 builtin and then its argument prototype would still apply. */
14434 #ifdef __cplusplus
14435 extern "C"
14436 #endif
14437 char com_err ();
14439 main ()
14441 return com_err ();
14443 return 0;
14445 _ACEOF
14446 if ac_fn_c_try_link "$LINENO"; then :
14447 ac_cv_lib_com_err_com_err=yes
14448 else
14449 ac_cv_lib_com_err_com_err=no
14451 rm -f core conftest.err conftest.$ac_objext \
14452 conftest$ac_exeext conftest.$ac_ext
14453 LIBS=$ac_check_lib_save_LIBS
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14456 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14457 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14458 have_com_err=yes
14459 else
14460 have_com_err=no
14463 if test $have_com_err = yes; then
14464 COM_ERRLIB=-lcom_err
14465 LIBS="$COM_ERRLIB $LIBS"
14467 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14471 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14472 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14473 $as_echo_n "(cached) " >&6
14474 else
14475 ac_check_lib_save_LIBS=$LIBS
14476 LIBS="-lcrypto $LIBS"
14477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14478 /* end confdefs.h. */
14480 /* Override any GCC internal prototype to avoid an error.
14481 Use char because int might match the return type of a GCC
14482 builtin and then its argument prototype would still apply. */
14483 #ifdef __cplusplus
14484 extern "C"
14485 #endif
14486 char mit_des_cbc_encrypt ();
14488 main ()
14490 return mit_des_cbc_encrypt ();
14492 return 0;
14494 _ACEOF
14495 if ac_fn_c_try_link "$LINENO"; then :
14496 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14497 else
14498 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14500 rm -f core conftest.err conftest.$ac_objext \
14501 conftest$ac_exeext conftest.$ac_ext
14502 LIBS=$ac_check_lib_save_LIBS
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14505 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14506 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14507 have_crypto=yes
14508 else
14509 have_crypto=no
14512 if test $have_crypto = yes; then
14513 CRYPTOLIB=-lcrypto
14514 LIBS="$CRYPTOLIB $LIBS"
14516 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14520 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14521 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14522 $as_echo_n "(cached) " >&6
14523 else
14524 ac_check_lib_save_LIBS=$LIBS
14525 LIBS="-lk5crypto $LIBS"
14526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14527 /* end confdefs.h. */
14529 /* Override any GCC internal prototype to avoid an error.
14530 Use char because int might match the return type of a GCC
14531 builtin and then its argument prototype would still apply. */
14532 #ifdef __cplusplus
14533 extern "C"
14534 #endif
14535 char mit_des_cbc_encrypt ();
14537 main ()
14539 return mit_des_cbc_encrypt ();
14541 return 0;
14543 _ACEOF
14544 if ac_fn_c_try_link "$LINENO"; then :
14545 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14546 else
14547 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14549 rm -f core conftest.err conftest.$ac_objext \
14550 conftest$ac_exeext conftest.$ac_ext
14551 LIBS=$ac_check_lib_save_LIBS
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14554 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14555 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14556 have_k5crypto=yes
14557 else
14558 have_k5crypto=no
14561 if test $have_k5crypto = yes; then
14562 CRYPTOLIB=-lk5crypto
14563 LIBS="$CRYPTOLIB $LIBS"
14565 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14569 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14570 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14571 $as_echo_n "(cached) " >&6
14572 else
14573 ac_check_lib_save_LIBS=$LIBS
14574 LIBS="-lkrb5 $LIBS"
14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576 /* end confdefs.h. */
14578 /* Override any GCC internal prototype to avoid an error.
14579 Use char because int might match the return type of a GCC
14580 builtin and then its argument prototype would still apply. */
14581 #ifdef __cplusplus
14582 extern "C"
14583 #endif
14584 char krb5_init_context ();
14586 main ()
14588 return krb5_init_context ();
14590 return 0;
14592 _ACEOF
14593 if ac_fn_c_try_link "$LINENO"; then :
14594 ac_cv_lib_krb5_krb5_init_context=yes
14595 else
14596 ac_cv_lib_krb5_krb5_init_context=no
14598 rm -f core conftest.err conftest.$ac_objext \
14599 conftest$ac_exeext conftest.$ac_ext
14600 LIBS=$ac_check_lib_save_LIBS
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14603 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14604 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14605 have_krb5=yes
14606 else
14607 have_krb5=no
14610 if test $have_krb5=yes; then
14611 KRB5LIB=-lkrb5
14612 LIBS="$KRB5LIB $LIBS"
14614 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14617 if test "${with_kerberos5}" = no; then
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14619 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14620 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14621 $as_echo_n "(cached) " >&6
14622 else
14623 ac_check_lib_save_LIBS=$LIBS
14624 LIBS="-ldes425 $LIBS"
14625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14626 /* end confdefs.h. */
14628 /* Override any GCC internal prototype to avoid an error.
14629 Use char because int might match the return type of a GCC
14630 builtin and then its argument prototype would still apply. */
14631 #ifdef __cplusplus
14632 extern "C"
14633 #endif
14634 char des_cbc_encrypt ();
14636 main ()
14638 return des_cbc_encrypt ();
14640 return 0;
14642 _ACEOF
14643 if ac_fn_c_try_link "$LINENO"; then :
14644 ac_cv_lib_des425_des_cbc_encrypt=yes
14645 else
14646 ac_cv_lib_des425_des_cbc_encrypt=no
14648 rm -f core conftest.err conftest.$ac_objext \
14649 conftest$ac_exeext conftest.$ac_ext
14650 LIBS=$ac_check_lib_save_LIBS
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14653 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14654 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14655 have_des425=yes
14656 else
14657 have_des425=no
14660 if test $have_des425 = yes; then
14661 DESLIB=-ldes425
14662 LIBS="$DESLIB $LIBS"
14664 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14666 else
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14668 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14669 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14670 $as_echo_n "(cached) " >&6
14671 else
14672 ac_check_lib_save_LIBS=$LIBS
14673 LIBS="-ldes $LIBS"
14674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14675 /* end confdefs.h. */
14677 /* Override any GCC internal prototype to avoid an error.
14678 Use char because int might match the return type of a GCC
14679 builtin and then its argument prototype would still apply. */
14680 #ifdef __cplusplus
14681 extern "C"
14682 #endif
14683 char des_cbc_encrypt ();
14685 main ()
14687 return des_cbc_encrypt ();
14689 return 0;
14691 _ACEOF
14692 if ac_fn_c_try_link "$LINENO"; then :
14693 ac_cv_lib_des_des_cbc_encrypt=yes
14694 else
14695 ac_cv_lib_des_des_cbc_encrypt=no
14697 rm -f core conftest.err conftest.$ac_objext \
14698 conftest$ac_exeext conftest.$ac_ext
14699 LIBS=$ac_check_lib_save_LIBS
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14702 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14703 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14704 have_des=yes
14705 else
14706 have_des=no
14709 if test $have_des = yes; then
14710 DESLIB=-ldes
14711 LIBS="$DESLIB $LIBS"
14713 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14718 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14719 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14720 $as_echo_n "(cached) " >&6
14721 else
14722 ac_check_lib_save_LIBS=$LIBS
14723 LIBS="-lkrb4 $LIBS"
14724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14725 /* end confdefs.h. */
14727 /* Override any GCC internal prototype to avoid an error.
14728 Use char because int might match the return type of a GCC
14729 builtin and then its argument prototype would still apply. */
14730 #ifdef __cplusplus
14731 extern "C"
14732 #endif
14733 char krb_get_cred ();
14735 main ()
14737 return krb_get_cred ();
14739 return 0;
14741 _ACEOF
14742 if ac_fn_c_try_link "$LINENO"; then :
14743 ac_cv_lib_krb4_krb_get_cred=yes
14744 else
14745 ac_cv_lib_krb4_krb_get_cred=no
14747 rm -f core conftest.err conftest.$ac_objext \
14748 conftest$ac_exeext conftest.$ac_ext
14749 LIBS=$ac_check_lib_save_LIBS
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14752 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14753 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14754 have_krb4=yes
14755 else
14756 have_krb4=no
14759 if test $have_krb4 = yes; then
14760 KRB4LIB=-lkrb4
14761 LIBS="$KRB4LIB $LIBS"
14763 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14765 else
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14767 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14768 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14769 $as_echo_n "(cached) " >&6
14770 else
14771 ac_check_lib_save_LIBS=$LIBS
14772 LIBS="-lkrb $LIBS"
14773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h. */
14776 /* Override any GCC internal prototype to avoid an error.
14777 Use char because int might match the return type of a GCC
14778 builtin and then its argument prototype would still apply. */
14779 #ifdef __cplusplus
14780 extern "C"
14781 #endif
14782 char krb_get_cred ();
14784 main ()
14786 return krb_get_cred ();
14788 return 0;
14790 _ACEOF
14791 if ac_fn_c_try_link "$LINENO"; then :
14792 ac_cv_lib_krb_krb_get_cred=yes
14793 else
14794 ac_cv_lib_krb_krb_get_cred=no
14796 rm -f core conftest.err conftest.$ac_objext \
14797 conftest$ac_exeext conftest.$ac_ext
14798 LIBS=$ac_check_lib_save_LIBS
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14801 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14802 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14803 have_krb=yes
14804 else
14805 have_krb=no
14808 if test $have_krb = yes; then
14809 KRB4LIB=-lkrb
14810 LIBS="$KRB4LIB $LIBS"
14812 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14818 if test "${with_kerberos5}" != no; then
14819 for ac_header in krb5.h
14820 do :
14821 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14822 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14823 cat >>confdefs.h <<_ACEOF
14824 #define HAVE_KRB5_H 1
14825 _ACEOF
14826 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14828 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14830 cat >>confdefs.h <<_ACEOF
14831 #define HAVE_KRB5_ERROR_TEXT 1
14832 _ACEOF
14836 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14838 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14840 cat >>confdefs.h <<_ACEOF
14841 #define HAVE_KRB5_ERROR_E_TEXT 1
14842 _ACEOF
14849 done
14851 else
14852 for ac_header in des.h
14853 do :
14854 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14855 if test "x$ac_cv_header_des_h" = x""yes; then :
14856 cat >>confdefs.h <<_ACEOF
14857 #define HAVE_DES_H 1
14858 _ACEOF
14860 else
14861 for ac_header in kerberosIV/des.h
14862 do :
14863 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14864 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14865 cat >>confdefs.h <<_ACEOF
14866 #define HAVE_KERBEROSIV_DES_H 1
14867 _ACEOF
14869 else
14870 for ac_header in kerberos/des.h
14871 do :
14872 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14873 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14874 cat >>confdefs.h <<_ACEOF
14875 #define HAVE_KERBEROS_DES_H 1
14876 _ACEOF
14880 done
14884 done
14888 done
14890 for ac_header in krb.h
14891 do :
14892 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14893 if test "x$ac_cv_header_krb_h" = x""yes; then :
14894 cat >>confdefs.h <<_ACEOF
14895 #define HAVE_KRB_H 1
14896 _ACEOF
14898 else
14899 for ac_header in kerberosIV/krb.h
14900 do :
14901 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14902 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14903 cat >>confdefs.h <<_ACEOF
14904 #define HAVE_KERBEROSIV_KRB_H 1
14905 _ACEOF
14907 else
14908 for ac_header in kerberos/krb.h
14909 do :
14910 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14911 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14912 cat >>confdefs.h <<_ACEOF
14913 #define HAVE_KERBEROS_KRB_H 1
14914 _ACEOF
14918 done
14922 done
14926 done
14929 for ac_header in com_err.h
14930 do :
14931 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14932 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14933 cat >>confdefs.h <<_ACEOF
14934 #define HAVE_COM_ERR_H 1
14935 _ACEOF
14939 done
14952 for ac_func in $ac_func_list
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
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14969 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14970 if test "${emacs_cv_localtime_cache+set}" = set; then :
14971 $as_echo_n "(cached) " >&6
14972 else
14973 if test x$ac_cv_func_tzset = xyes; then
14974 if test "$cross_compiling" = yes; then :
14975 # If we have tzset, assume the worst when cross-compiling.
14976 emacs_cv_localtime_cache=yes
14977 else
14978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14979 /* end confdefs.h. */
14980 #include <time.h>
14981 char TZ_GMT0[] = "TZ=GMT0";
14982 char TZ_PST8[] = "TZ=PST8";
14983 main()
14985 time_t now = time ((time_t *) 0);
14986 int hour_GMT0, hour_unset;
14987 if (putenv (TZ_GMT0) != 0)
14988 exit (1);
14989 hour_GMT0 = localtime (&now)->tm_hour;
14990 unsetenv("TZ");
14991 hour_unset = localtime (&now)->tm_hour;
14992 if (putenv (TZ_PST8) != 0)
14993 exit (1);
14994 if (localtime (&now)->tm_hour == hour_GMT0)
14995 exit (1);
14996 unsetenv("TZ");
14997 if (localtime (&now)->tm_hour != hour_unset)
14998 exit (1);
14999 exit (0);
15001 _ACEOF
15002 if ac_fn_c_try_run "$LINENO"; then :
15003 emacs_cv_localtime_cache=no
15004 else
15005 emacs_cv_localtime_cache=yes
15007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15008 conftest.$ac_objext conftest.beam conftest.$ac_ext
15011 else
15012 # If we lack tzset, report that localtime does not cache TZ,
15013 # since we can't invalidate the cache if we don't have tzset.
15014 emacs_cv_localtime_cache=no
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15018 $as_echo "$emacs_cv_localtime_cache" >&6; }
15019 if test $emacs_cv_localtime_cache = yes; then
15021 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15025 ok_so_far=yes
15026 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15027 if test "x$ac_cv_func_socket" = x""yes; then :
15029 else
15030 ok_so_far=no
15033 if test $ok_so_far = yes; then
15034 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15035 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15037 else
15038 ok_so_far=no
15043 if test $ok_so_far = yes; then
15044 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15045 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15047 else
15048 ok_so_far=no
15053 if test $ok_so_far = yes; then
15055 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15059 if test -f /usr/lpp/X11/bin/smt.exp; then
15061 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15066 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15067 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15069 $as_echo "yes" >&6; }
15071 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15073 else
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15075 $as_echo "no" >&6; }
15078 case $canonical in
15079 *-solaris2.4 | *-solaris2.4.*)
15080 : ${ac_cv_func_vfork_works=no};;
15081 esac
15083 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15084 if test "x$ac_cv_type_pid_t" = x""yes; then :
15086 else
15088 cat >>confdefs.h <<_ACEOF
15089 #define pid_t int
15090 _ACEOF
15094 for ac_header in vfork.h
15095 do :
15096 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15097 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15098 cat >>confdefs.h <<_ACEOF
15099 #define HAVE_VFORK_H 1
15100 _ACEOF
15104 done
15106 for ac_func in fork vfork
15107 do :
15108 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15109 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15110 eval as_val=\$$as_ac_var
15111 if test "x$as_val" = x""yes; then :
15112 cat >>confdefs.h <<_ACEOF
15113 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15114 _ACEOF
15117 done
15119 if test "x$ac_cv_func_fork" = xyes; then
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15121 $as_echo_n "checking for working fork... " >&6; }
15122 if test "${ac_cv_func_fork_works+set}" = set; then :
15123 $as_echo_n "(cached) " >&6
15124 else
15125 if test "$cross_compiling" = yes; then :
15126 ac_cv_func_fork_works=cross
15127 else
15128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129 /* end confdefs.h. */
15130 $ac_includes_default
15132 main ()
15135 /* By Ruediger Kuhlmann. */
15136 return fork () < 0;
15139 return 0;
15141 _ACEOF
15142 if ac_fn_c_try_run "$LINENO"; then :
15143 ac_cv_func_fork_works=yes
15144 else
15145 ac_cv_func_fork_works=no
15147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15148 conftest.$ac_objext conftest.beam conftest.$ac_ext
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15153 $as_echo "$ac_cv_func_fork_works" >&6; }
15155 else
15156 ac_cv_func_fork_works=$ac_cv_func_fork
15158 if test "x$ac_cv_func_fork_works" = xcross; then
15159 case $host in
15160 *-*-amigaos* | *-*-msdosdjgpp*)
15161 # Override, as these systems have only a dummy fork() stub
15162 ac_cv_func_fork_works=no
15165 ac_cv_func_fork_works=yes
15167 esac
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15169 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15171 ac_cv_func_vfork_works=$ac_cv_func_vfork
15172 if test "x$ac_cv_func_vfork" = xyes; then
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15174 $as_echo_n "checking for working vfork... " >&6; }
15175 if test "${ac_cv_func_vfork_works+set}" = set; then :
15176 $as_echo_n "(cached) " >&6
15177 else
15178 if test "$cross_compiling" = yes; then :
15179 ac_cv_func_vfork_works=cross
15180 else
15181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15182 /* end confdefs.h. */
15183 /* Thanks to Paul Eggert for this test. */
15184 $ac_includes_default
15185 #include <sys/wait.h>
15186 #ifdef HAVE_VFORK_H
15187 # include <vfork.h>
15188 #endif
15189 /* On some sparc systems, changes by the child to local and incoming
15190 argument registers are propagated back to the parent. The compiler
15191 is told about this with #include <vfork.h>, but some compilers
15192 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15193 static variable whose address is put into a register that is
15194 clobbered by the vfork. */
15195 static void
15196 #ifdef __cplusplus
15197 sparc_address_test (int arg)
15198 # else
15199 sparc_address_test (arg) int arg;
15200 #endif
15202 static pid_t child;
15203 if (!child) {
15204 child = vfork ();
15205 if (child < 0) {
15206 perror ("vfork");
15207 _exit(2);
15209 if (!child) {
15210 arg = getpid();
15211 write(-1, "", 0);
15212 _exit (arg);
15218 main ()
15220 pid_t parent = getpid ();
15221 pid_t child;
15223 sparc_address_test (0);
15225 child = vfork ();
15227 if (child == 0) {
15228 /* Here is another test for sparc vfork register problems. This
15229 test uses lots of local variables, at least as many local
15230 variables as main has allocated so far including compiler
15231 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15232 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15233 reuse the register of parent for one of the local variables,
15234 since it will think that parent can't possibly be used any more
15235 in this routine. Assigning to the local variable will thus
15236 munge parent in the parent process. */
15237 pid_t
15238 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15239 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15240 /* Convince the compiler that p..p7 are live; otherwise, it might
15241 use the same hardware register for all 8 local variables. */
15242 if (p != p1 || p != p2 || p != p3 || p != p4
15243 || p != p5 || p != p6 || p != p7)
15244 _exit(1);
15246 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15247 from child file descriptors. If the child closes a descriptor
15248 before it execs or exits, this munges the parent's descriptor
15249 as well. Test for this by closing stdout in the child. */
15250 _exit(close(fileno(stdout)) != 0);
15251 } else {
15252 int status;
15253 struct stat st;
15255 while (wait(&status) != child)
15257 return (
15258 /* Was there some problem with vforking? */
15259 child < 0
15261 /* Did the child fail? (This shouldn't happen.) */
15262 || status
15264 /* Did the vfork/compiler bug occur? */
15265 || parent != getpid()
15267 /* Did the file descriptor bug occur? */
15268 || fstat(fileno(stdout), &st) != 0
15272 _ACEOF
15273 if ac_fn_c_try_run "$LINENO"; then :
15274 ac_cv_func_vfork_works=yes
15275 else
15276 ac_cv_func_vfork_works=no
15278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15279 conftest.$ac_objext conftest.beam conftest.$ac_ext
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15284 $as_echo "$ac_cv_func_vfork_works" >&6; }
15287 if test "x$ac_cv_func_fork_works" = xcross; then
15288 ac_cv_func_vfork_works=$ac_cv_func_vfork
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15290 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15293 if test "x$ac_cv_func_vfork_works" = xyes; then
15295 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15297 else
15299 $as_echo "#define vfork fork" >>confdefs.h
15302 if test "x$ac_cv_func_fork_works" = xyes; then
15304 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15309 for ac_func in snprintf
15310 do :
15311 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15312 if test "x$ac_cv_func_snprintf" = x""yes; then :
15313 cat >>confdefs.h <<_ACEOF
15314 #define HAVE_SNPRINTF 1
15315 _ACEOF
15318 done
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15322 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15323 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15324 $as_echo_n "(cached) " >&6
15325 else
15326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327 /* end confdefs.h. */
15328 #include <langinfo.h>
15330 main ()
15332 char* cs = nl_langinfo(CODESET);
15334 return 0;
15336 _ACEOF
15337 if ac_fn_c_try_link "$LINENO"; then :
15338 emacs_cv_langinfo_codeset=yes
15339 else
15340 emacs_cv_langinfo_codeset=no
15342 rm -f core conftest.err conftest.$ac_objext \
15343 conftest$ac_exeext conftest.$ac_ext
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15347 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15348 if test $emacs_cv_langinfo_codeset = yes; then
15350 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15355 $as_echo_n "checking for mbstate_t... " >&6; }
15356 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15357 $as_echo_n "(cached) " >&6
15358 else
15359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15360 /* end confdefs.h. */
15361 $ac_includes_default
15362 # include <wchar.h>
15364 main ()
15366 mbstate_t x; return sizeof x;
15368 return 0;
15370 _ACEOF
15371 if ac_fn_c_try_compile "$LINENO"; then :
15372 ac_cv_type_mbstate_t=yes
15373 else
15374 ac_cv_type_mbstate_t=no
15376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15379 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15380 if test $ac_cv_type_mbstate_t = yes; then
15382 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15384 else
15386 $as_echo "#define mbstate_t int" >>confdefs.h
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15391 $as_echo_n "checking for C restricted array declarations... " >&6; }
15392 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15393 $as_echo_n "(cached) " >&6
15394 else
15395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15396 /* end confdefs.h. */
15397 void fred (int x[__restrict]);
15399 main ()
15403 return 0;
15405 _ACEOF
15406 if ac_fn_c_try_compile "$LINENO"; then :
15407 emacs_cv_c_restrict_arr=yes
15408 else
15409 emacs_cv_c_restrict_arr=no
15411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15414 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15415 if test "$emacs_cv_c_restrict_arr" = yes; then
15417 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15423 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
15427 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
15430 ## Note: PTYs are broken on darwin <6. Use at your own risk.
15432 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
15436 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
15442 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
15446 $as_echo "#define SEPCHAR ':'" >>confdefs.h
15450 $as_echo "#define subprocesses 1" >>confdefs.h
15454 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
15459 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
15465 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
15469 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
15473 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
15479 case $opsys in
15480 aix4-2)
15481 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
15482 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15487 hpux*)
15488 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15491 esac
15494 case $opsys in
15495 irix6-5 | sol2* | unixware )
15497 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
15500 esac
15502 emacs_broken_SIGIO=no
15504 case $opsys in
15505 hpux* | irix6-5 | openbsd | sol2* | unixware )
15506 emacs_broken_SIGIO=yes
15509 aix4-2)
15511 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
15515 freebsd)
15517 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
15520 esac
15522 case $opsys in
15523 gnu-* | sol2-10 )
15525 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
15528 esac
15530 case $opsys in
15531 darwin | freebsd | netbsd | openbsd )
15533 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
15536 esac
15538 case $opsys in
15539 netbsd | openbsd) sound_device="/dev/audio" ;;
15540 *) sound_device="/dev/dsp" ;;
15541 esac
15544 cat >>confdefs.h <<_ACEOF
15545 #define DEFAULT_SOUND_DEVICE "$sound_device"
15546 _ACEOF
15550 case $opsys in
15551 darwin | gnu-linux | gnu-kfreebsd )
15553 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15556 esac
15559 case $opsys in
15560 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
15562 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15565 esac
15574 case $opsys in
15575 aix4-2 )
15576 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15578 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15580 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15584 cygwin )
15585 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15587 $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
15589 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15591 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15595 darwin )
15596 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15598 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15600 $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
15602 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15604 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15608 gnu | openbsd )
15609 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15613 gnu-linux | gnu-kfreebsd | freebsd | netbsd )
15614 if test "x$ac_cv_func_grantpt" = xyes; then
15616 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15618 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15620 $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
15622 if test "x$ac_cv_func_posix_openpt" = xyes; then
15623 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15625 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15627 elif test "x$ac_cv_func_getpt" = xyes; then
15628 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15630 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15632 else
15633 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15636 else
15637 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15642 hpux*)
15643 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15645 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15647 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15651 irix6-5 )
15652 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15654 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15656 $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
15658 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15660 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15664 sol2* )
15665 $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
15669 unixware )
15670 $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
15673 esac
15676 case $opsys in
15677 sol2* | unixware )
15678 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15680 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15683 $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
15686 esac
15691 case $opsys in
15692 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd | darwin )
15693 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15697 gnu-linux | gnu-kfreebsd )
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15700 $as_echo_n "checking for signals via characters... " >&6; }
15701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15702 /* end confdefs.h. */
15704 #include <linux/version.h>
15705 #if LINUX_VERSION_CODE < 0x20400
15706 # error "Linux version too old"
15707 #endif
15710 main ()
15714 return 0;
15716 _ACEOF
15717 if ac_fn_c_try_cpp "$LINENO"; then :
15718 emacs_signals_via_chars=yes
15719 else
15720 emacs_signals_via_chars=no
15722 rm -f conftest.err conftest.$ac_ext
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15725 $as_echo "$emacs_signals_via_chars" >&6; }
15726 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15729 esac
15735 case $opsys in
15736 gnu)
15737 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15741 hpux*)
15742 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15744 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15747 irix6-5)
15748 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15750 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15753 esac
15758 case $opsys in
15759 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15762 gnu | freebsd | netbsd | openbsd )
15764 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15766 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15770 gnu-linux | gnu-kfreebsd )
15771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15772 /* end confdefs.h. */
15774 #ifndef __ia64__
15775 # error "not ia64"
15776 #endif
15779 main ()
15783 return 0;
15785 _ACEOF
15786 if ac_fn_c_try_cpp "$LINENO"; then :
15788 $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
15791 rm -f conftest.err conftest.$ac_ext
15794 hpux*)
15796 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15799 esac
15805 case $opsys in
15806 gnu-linux | gnu-kfreebsd )
15807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15808 /* end confdefs.h. */
15810 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15811 || defined __alpha__ || defined __mips__ || defined __s390__ \
15812 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15813 || defined __ia64__ || defined __sh__
15814 /* ok */
15815 #else
15816 # error "setjmp not known to work on this arch"
15817 #endif
15820 main ()
15824 return 0;
15826 _ACEOF
15827 if ac_fn_c_try_cpp "$LINENO"; then :
15828 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15831 rm -f conftest.err conftest.$ac_ext
15833 esac
15836 if test x$GCC = xyes; then
15837 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15839 else
15840 case $opsys in
15841 freebsd | netbsd | openbsd | irix6-5 | sol2* )
15842 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15845 esac
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15848 $as_echo_n "checking for _setjmp... " >&6; }
15849 if test "${emacs_cv_func__setjmp+set}" = set; then :
15850 $as_echo_n "(cached) " >&6
15851 else
15852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15853 /* end confdefs.h. */
15854 #include <setjmp.h>
15857 main ()
15859 jmp_buf j;
15860 if (! _setjmp (j))
15861 _longjmp (j, 1);
15863 return 0;
15865 _ACEOF
15866 if ac_fn_c_try_link "$LINENO"; then :
15867 emacs_cv_func__setjmp=yes
15868 else
15869 emacs_cv_func__setjmp=no
15871 rm -f core conftest.err conftest.$ac_objext \
15872 conftest$ac_exeext conftest.$ac_ext
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15875 $as_echo "$emacs_cv_func__setjmp" >&6; }
15876 if test $emacs_cv_func__setjmp = yes; then
15878 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15880 else
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15882 $as_echo_n "checking for sigsetjmp... " >&6; }
15883 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15884 $as_echo_n "(cached) " >&6
15885 else
15886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887 /* end confdefs.h. */
15888 #include <setjmp.h>
15891 main ()
15893 sigjmp_buf j;
15894 if (! sigsetjmp (j, 1))
15895 siglongjmp (j, 1);
15897 return 0;
15899 _ACEOF
15900 if ac_fn_c_try_link "$LINENO"; then :
15901 emacs_cv_func_sigsetjmp=yes
15902 else
15903 emacs_cv_func_sigsetjmp=no
15905 rm -f core conftest.err conftest.$ac_objext \
15906 conftest$ac_exeext conftest.$ac_ext
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15909 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15910 if test $emacs_cv_func_sigsetjmp = yes; then
15912 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15917 case $opsys in
15918 sol2* | unixware )
15920 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15923 esac
15926 case $opsys in
15927 hpux* | sol2* )
15929 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15932 esac
15942 case $opsys in
15943 aix4-2)
15944 $as_echo "#define USG /**/" >>confdefs.h
15946 $as_echo "#define USG5 /**/" >>confdefs.h
15948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15949 /* end confdefs.h. */
15951 #ifndef _AIX
15952 # error "_AIX not defined"
15953 #endif
15956 main ()
15960 return 0;
15962 _ACEOF
15963 if ac_fn_c_try_cpp "$LINENO"; then :
15965 else
15967 $as_echo "#define _AIX /**/" >>confdefs.h
15970 rm -f conftest.err conftest.$ac_ext
15973 cygwin)
15975 $as_echo "#define CYGWIN 1" >>confdefs.h
15979 darwin)
15980 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15983 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15987 freebsd)
15989 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15993 gnu | netbsd | openbsd )
15994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15995 /* end confdefs.h. */
15997 #ifndef BSD_SYSTEM
15998 # error "BSD_SYSTEM not defined"
15999 #endif
16002 main ()
16006 return 0;
16008 _ACEOF
16009 if ac_fn_c_try_cpp "$LINENO"; then :
16011 else
16012 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
16015 rm -f conftest.err conftest.$ac_ext
16018 gnu-linux | gnu-kfreebsd )
16019 $as_echo "#define USG /**/" >>confdefs.h
16022 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
16026 hpux*)
16027 $as_echo "#define USG /**/" >>confdefs.h
16029 $as_echo "#define USG5 /**/" >>confdefs.h
16032 $as_echo "#define HPUX /**/" >>confdefs.h
16036 irix6-5)
16037 $as_echo "#define USG /**/" >>confdefs.h
16039 $as_echo "#define USG5 /**/" >>confdefs.h
16041 $as_echo "#define USG5_4 /**/" >>confdefs.h
16044 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
16048 sol2*)
16049 $as_echo "#define USG /**/" >>confdefs.h
16051 $as_echo "#define USG5 /**/" >>confdefs.h
16053 $as_echo "#define USG5_4 /**/" >>confdefs.h
16056 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
16060 unixware)
16061 $as_echo "#define USG /**/" >>confdefs.h
16063 $as_echo "#define USG5 /**/" >>confdefs.h
16065 $as_echo "#define USG5_4 /**/" >>confdefs.h
16068 esac
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
16071 $as_echo_n "checking for usable FIONREAD... " >&6; }
16072 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
16073 $as_echo_n "(cached) " >&6
16074 else
16075 case $opsys in
16076 aix4-2)
16077 emacs_cv_usable_FIONREAD=no
16081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16082 /* end confdefs.h. */
16083 #include <sys/types.h>
16084 #include <sys/ioctl.h>
16085 #ifdef USG5_4
16086 # include <sys/filio.h>
16087 #endif
16090 main ()
16092 int foo = ioctl (0, FIONREAD, &foo);
16094 return 0;
16096 _ACEOF
16097 if ac_fn_c_try_compile "$LINENO"; then :
16098 emacs_cv_usable_FIONREAD=yes
16099 else
16100 emacs_cv_usable_FIONREAD=no
16102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16104 esac
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
16107 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
16108 if test $emacs_cv_usable_FIONREAD = yes; then
16110 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
16113 if test $emacs_broken_SIGIO = no; then
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
16115 $as_echo_n "checking for usable SIGIO... " >&6; }
16116 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
16117 $as_echo_n "(cached) " >&6
16118 else
16119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16120 /* end confdefs.h. */
16121 #include <fcntl.h>
16122 #include <signal.h>
16125 main ()
16127 int foo = SIGIO | F_SETFL | FASYNC;
16129 return 0;
16131 _ACEOF
16132 if ac_fn_c_try_compile "$LINENO"; then :
16133 emacs_cv_usable_SIGIO=yes
16134 else
16135 emacs_cv_usable_SIGIO=no
16137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
16140 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
16141 if test $emacs_cv_usable_SIGIO = yes; then
16143 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
16150 case $opsys in
16151 cygwin)
16153 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
16157 hpux11)
16159 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
16163 irix6-5)
16165 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
16169 sol2-10)
16171 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
16174 esac
16176 # Set up the CFLAGS for real compilation, so we can substitute it.
16177 CFLAGS="$REAL_CFLAGS"
16178 CPPFLAGS="$REAL_CPPFLAGS"
16180 ## Hack to detect a buggy GCC version.
16181 if test "x$GCC" = xyes \
16182 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16183 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
16184 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
16185 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16188 version=$PACKAGE_VERSION
16190 copyright="Copyright (C) 2013 Free Software Foundation, Inc."
16192 cat >>confdefs.h <<_ACEOF
16193 #define COPYRIGHT "$copyright"
16194 _ACEOF
16198 ### Specify what sort of things we'll be editing into Makefile and config.h.
16199 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16202 ## Unused?
16225 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16226 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16227 ## end of LIBX_BASE, but nothing ever set it.
16232 ## Used in lwlib/Makefile.in.
16241 if test -n "${term_header}"; then
16243 cat >>confdefs.h <<_ACEOF
16244 #define TERM_HEADER "${term_header}"
16245 _ACEOF
16250 cat >>confdefs.h <<_ACEOF
16251 #define EMACS_CONFIGURATION "${canonical}"
16252 _ACEOF
16254 emacs_config_options=`echo "$emacs_config_options " | sed -e 's/--no-create //' -e 's/--no-recursion //' -e 's/ *$//' -e "s/\"/'/g"`
16256 cat >>confdefs.h <<_ACEOF
16257 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
16258 _ACEOF
16262 XMENU_OBJ=
16263 XOBJ=
16264 FONT_OBJ=
16265 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16267 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16269 XMENU_OBJ=xmenu.o
16270 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
16271 FONT_OBJ=xfont.o
16272 if test "$HAVE_XFT" = "yes"; then
16273 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16274 elif test "$HAVE_FREETYPE" = "yes"; then
16275 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
16283 WIDGET_OBJ=
16284 MOTIF_LIBW=
16285 if test "${USE_X_TOOLKIT}" != "none" ; then
16286 WIDGET_OBJ=widget.o
16288 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16290 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16292 $as_echo "#define USE_LUCID 1" >>confdefs.h
16294 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16296 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16298 MOTIF_LIBW=-lXm
16299 case "$opsys" in
16300 gnu-linux)
16301 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16302 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
16305 unixware)
16306 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16307 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16308 MOTIF_LIBW="MOTIF_LIBW -lXimp"
16311 aix4-2)
16312 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16313 MOTIF_LIBW="$MOTIF_LIBW -li18n"
16315 esac
16316 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
16321 TOOLKIT_LIBW=
16322 case "$USE_X_TOOLKIT" in
16323 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16324 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16325 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16326 esac
16329 if test "$USE_X_TOOLKIT" = "none"; then
16330 LIBXT_OTHER="\$(LIBXSM)"
16331 OLDXMENU_TARGET="really-oldXMenu"
16332 else
16333 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16334 OLDXMENU_TARGET="really-lwlib"
16338 ## The X Menu stuff is present in the X10 distribution, but missing
16339 ## from X11. If we have X10, just use the installed library;
16340 ## otherwise, use our own copy.
16341 if test "${HAVE_X11}" = "yes" ; then
16343 $as_echo "#define HAVE_X11 1" >>confdefs.h
16346 if test "$USE_X_TOOLKIT" = "none"; then
16347 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16348 else
16349 OLDXMENU="\${lwlibdir}/liblw.a"
16351 LIBXMENU="\$(OLDXMENU)"
16352 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16353 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16354 else
16355 ## For a syntactically valid Makefile; not actually used for anything.
16356 ## See comments in src/Makefile.in.
16357 OLDXMENU=nothing
16358 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16359 if test "${HAVE_X_WINDOWS}" = "yes"; then
16360 LIBXMENU="-lXMenu"
16361 else
16362 LIBXMENU=
16364 LIBX_OTHER=
16365 OLDXMENU_DEPS=
16368 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16369 OLDXMENU_TARGET=
16370 OLDXMENU=nothing
16371 LIBXMENU=
16372 OLDXMENU_DEPS=
16381 if test "${HAVE_MENUS}" = "yes" ; then
16383 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16387 if test "${GNU_MALLOC}" = "yes" ; then
16389 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16393 RALLOC_OBJ=
16394 if test "${REL_ALLOC}" = "yes" ; then
16396 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16399 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16403 if test "$opsys" = "cygwin"; then
16404 CYGWIN_OBJ="sheap.o cygw32.o"
16405 ## Cygwin differs because of its unexec().
16406 PRE_ALLOC_OBJ=
16407 POST_ALLOC_OBJ=lastfile.o
16408 else
16409 CYGWIN_OBJ=
16410 PRE_ALLOC_OBJ=lastfile.o
16411 POST_ALLOC_OBJ=
16417 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16418 # it temporarily reverts them to their pre-pkg-config values,
16419 # because gnulib needs to work with both src (which uses the
16420 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16421 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16422 # and it therefore needs to run in an environment where LIBS does not
16423 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16424 # for some package unrelated to lib-src.
16425 SAVE_CFLAGS=$CFLAGS
16426 SAVE_LIBS=$LIBS
16427 CFLAGS=$pre_PKG_CONFIG_CFLAGS
16428 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16440 LIBC_FATAL_STDERR_=1
16441 export LIBC_FATAL_STDERR_
16443 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16444 # for constant arguments. Useless!
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16446 $as_echo_n "checking for working alloca.h... " >&6; }
16447 if test "${ac_cv_working_alloca_h+set}" = set; then :
16448 $as_echo_n "(cached) " >&6
16449 else
16450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16451 /* end confdefs.h. */
16452 #include <alloca.h>
16454 main ()
16456 char *p = (char *) alloca (2 * sizeof (int));
16457 if (p) return 0;
16459 return 0;
16461 _ACEOF
16462 if ac_fn_c_try_link "$LINENO"; then :
16463 ac_cv_working_alloca_h=yes
16464 else
16465 ac_cv_working_alloca_h=no
16467 rm -f core conftest.err conftest.$ac_objext \
16468 conftest$ac_exeext conftest.$ac_ext
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16471 $as_echo "$ac_cv_working_alloca_h" >&6; }
16472 if test $ac_cv_working_alloca_h = yes; then
16474 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16479 $as_echo_n "checking for alloca... " >&6; }
16480 if test "${ac_cv_func_alloca_works+set}" = set; then :
16481 $as_echo_n "(cached) " >&6
16482 else
16483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16484 /* end confdefs.h. */
16485 #ifdef __GNUC__
16486 # define alloca __builtin_alloca
16487 #else
16488 # ifdef _MSC_VER
16489 # include <malloc.h>
16490 # define alloca _alloca
16491 # else
16492 # ifdef HAVE_ALLOCA_H
16493 # include <alloca.h>
16494 # else
16495 # ifdef _AIX
16496 #pragma alloca
16497 # else
16498 # ifndef alloca /* predefined by HP cc +Olibcalls */
16499 char *alloca ();
16500 # endif
16501 # endif
16502 # endif
16503 # endif
16504 #endif
16507 main ()
16509 char *p = (char *) alloca (1);
16510 if (p) return 0;
16512 return 0;
16514 _ACEOF
16515 if ac_fn_c_try_link "$LINENO"; then :
16516 ac_cv_func_alloca_works=yes
16517 else
16518 ac_cv_func_alloca_works=no
16520 rm -f core conftest.err conftest.$ac_objext \
16521 conftest$ac_exeext conftest.$ac_ext
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16524 $as_echo "$ac_cv_func_alloca_works" >&6; }
16526 if test $ac_cv_func_alloca_works = yes; then
16528 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16530 else
16531 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16532 # that cause trouble. Some versions do not even contain alloca or
16533 # contain a buggy version. If you still want to use their alloca,
16534 # use ar to extract alloca.o from them instead of compiling alloca.c.
16540 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16542 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16546 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16547 if test "${ac_cv_os_cray+set}" = set; then :
16548 $as_echo_n "(cached) " >&6
16549 else
16550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16551 /* end confdefs.h. */
16552 #if defined CRAY && ! defined CRAY2
16553 webecray
16554 #else
16555 wenotbecray
16556 #endif
16558 _ACEOF
16559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16560 $EGREP "webecray" >/dev/null 2>&1; then :
16561 ac_cv_os_cray=yes
16562 else
16563 ac_cv_os_cray=no
16565 rm -f conftest*
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16569 $as_echo "$ac_cv_os_cray" >&6; }
16570 if test $ac_cv_os_cray = yes; then
16571 for ac_func in _getb67 GETB67 getb67; do
16572 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16573 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16574 eval as_val=\$$as_ac_var
16575 if test "x$as_val" = x""yes; then :
16577 cat >>confdefs.h <<_ACEOF
16578 #define CRAY_STACKSEG_END $ac_func
16579 _ACEOF
16581 break
16584 done
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16588 $as_echo_n "checking stack direction for C alloca... " >&6; }
16589 if test "${ac_cv_c_stack_direction+set}" = set; then :
16590 $as_echo_n "(cached) " >&6
16591 else
16592 if test "$cross_compiling" = yes; then :
16593 ac_cv_c_stack_direction=0
16594 else
16595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16596 /* end confdefs.h. */
16597 $ac_includes_default
16599 find_stack_direction (int *addr, int depth)
16601 int dir, dummy = 0;
16602 if (! addr)
16603 addr = &dummy;
16604 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16605 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16606 return dir + dummy;
16610 main (int argc, char **argv)
16612 return find_stack_direction (0, argc + !argv + 20) < 0;
16614 _ACEOF
16615 if ac_fn_c_try_run "$LINENO"; then :
16616 ac_cv_c_stack_direction=1
16617 else
16618 ac_cv_c_stack_direction=-1
16620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16621 conftest.$ac_objext conftest.beam conftest.$ac_ext
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16626 $as_echo "$ac_cv_c_stack_direction" >&6; }
16627 cat >>confdefs.h <<_ACEOF
16628 #define STACK_DIRECTION $ac_cv_c_stack_direction
16629 _ACEOF
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16638 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16639 if test "${ac_cv_c_bigendian+set}" = set; then :
16640 $as_echo_n "(cached) " >&6
16641 else
16642 ac_cv_c_bigendian=unknown
16643 # See if we're dealing with a universal compiler.
16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16645 /* end confdefs.h. */
16646 #ifndef __APPLE_CC__
16647 not a universal capable compiler
16648 #endif
16649 typedef int dummy;
16651 _ACEOF
16652 if ac_fn_c_try_compile "$LINENO"; then :
16654 # Check for potential -arch flags. It is not universal unless
16655 # there are at least two -arch flags with different values.
16656 ac_arch=
16657 ac_prev=
16658 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16659 if test -n "$ac_prev"; then
16660 case $ac_word in
16661 i?86 | x86_64 | ppc | ppc64)
16662 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16663 ac_arch=$ac_word
16664 else
16665 ac_cv_c_bigendian=universal
16666 break
16669 esac
16670 ac_prev=
16671 elif test "x$ac_word" = "x-arch"; then
16672 ac_prev=arch
16674 done
16676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16677 if test $ac_cv_c_bigendian = unknown; then
16678 # See if sys/param.h defines the BYTE_ORDER macro.
16679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16680 /* end confdefs.h. */
16681 #include <sys/types.h>
16682 #include <sys/param.h>
16685 main ()
16687 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16688 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16689 && LITTLE_ENDIAN)
16690 bogus endian macros
16691 #endif
16694 return 0;
16696 _ACEOF
16697 if ac_fn_c_try_compile "$LINENO"; then :
16698 # It does; now see whether it defined to BIG_ENDIAN or not.
16699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16700 /* end confdefs.h. */
16701 #include <sys/types.h>
16702 #include <sys/param.h>
16705 main ()
16707 #if BYTE_ORDER != BIG_ENDIAN
16708 not big endian
16709 #endif
16712 return 0;
16714 _ACEOF
16715 if ac_fn_c_try_compile "$LINENO"; then :
16716 ac_cv_c_bigendian=yes
16717 else
16718 ac_cv_c_bigendian=no
16720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16724 if test $ac_cv_c_bigendian = unknown; then
16725 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16727 /* end confdefs.h. */
16728 #include <limits.h>
16731 main ()
16733 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16734 bogus endian macros
16735 #endif
16738 return 0;
16740 _ACEOF
16741 if ac_fn_c_try_compile "$LINENO"; then :
16742 # It does; now see whether it defined to _BIG_ENDIAN or not.
16743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16744 /* end confdefs.h. */
16745 #include <limits.h>
16748 main ()
16750 #ifndef _BIG_ENDIAN
16751 not big endian
16752 #endif
16755 return 0;
16757 _ACEOF
16758 if ac_fn_c_try_compile "$LINENO"; then :
16759 ac_cv_c_bigendian=yes
16760 else
16761 ac_cv_c_bigendian=no
16763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16767 if test $ac_cv_c_bigendian = unknown; then
16768 # Compile a test program.
16769 if test "$cross_compiling" = yes; then :
16770 # Try to guess by grepping values from an object file.
16771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16772 /* end confdefs.h. */
16773 short int ascii_mm[] =
16774 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16775 short int ascii_ii[] =
16776 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16777 int use_ascii (int i) {
16778 return ascii_mm[i] + ascii_ii[i];
16780 short int ebcdic_ii[] =
16781 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16782 short int ebcdic_mm[] =
16783 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16784 int use_ebcdic (int i) {
16785 return ebcdic_mm[i] + ebcdic_ii[i];
16787 extern int foo;
16790 main ()
16792 return use_ascii (foo) == use_ebcdic (foo);
16794 return 0;
16796 _ACEOF
16797 if ac_fn_c_try_compile "$LINENO"; then :
16798 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16799 ac_cv_c_bigendian=yes
16801 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16802 if test "$ac_cv_c_bigendian" = unknown; then
16803 ac_cv_c_bigendian=no
16804 else
16805 # finding both strings is unlikely to happen, but who knows?
16806 ac_cv_c_bigendian=unknown
16810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16811 else
16812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16813 /* end confdefs.h. */
16814 $ac_includes_default
16816 main ()
16819 /* Are we little or big endian? From Harbison&Steele. */
16820 union
16822 long int l;
16823 char c[sizeof (long int)];
16824 } u;
16825 u.l = 1;
16826 return u.c[sizeof (long int) - 1] == 1;
16829 return 0;
16831 _ACEOF
16832 if ac_fn_c_try_run "$LINENO"; then :
16833 ac_cv_c_bigendian=no
16834 else
16835 ac_cv_c_bigendian=yes
16837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16838 conftest.$ac_objext conftest.beam conftest.$ac_ext
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16844 $as_echo "$ac_cv_c_bigendian" >&6; }
16845 case $ac_cv_c_bigendian in #(
16846 yes)
16847 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16848 ;; #(
16850 ;; #(
16851 universal)
16853 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16855 ;; #(
16857 as_fn_error "unknown endianness
16858 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16859 esac
16863 GNULIB_CHDIR=0;
16864 GNULIB_CHOWN=0;
16865 GNULIB_CLOSE=0;
16866 GNULIB_DUP=0;
16867 GNULIB_DUP2=0;
16868 GNULIB_DUP3=0;
16869 GNULIB_ENVIRON=0;
16870 GNULIB_EUIDACCESS=0;
16871 GNULIB_FACCESSAT=0;
16872 GNULIB_FCHDIR=0;
16873 GNULIB_FCHOWNAT=0;
16874 GNULIB_FDATASYNC=0;
16875 GNULIB_FSYNC=0;
16876 GNULIB_FTRUNCATE=0;
16877 GNULIB_GETCWD=0;
16878 GNULIB_GETDOMAINNAME=0;
16879 GNULIB_GETDTABLESIZE=0;
16880 GNULIB_GETGROUPS=0;
16881 GNULIB_GETHOSTNAME=0;
16882 GNULIB_GETLOGIN=0;
16883 GNULIB_GETLOGIN_R=0;
16884 GNULIB_GETPAGESIZE=0;
16885 GNULIB_GETUSERSHELL=0;
16886 GNULIB_GROUP_MEMBER=0;
16887 GNULIB_ISATTY=0;
16888 GNULIB_LCHOWN=0;
16889 GNULIB_LINK=0;
16890 GNULIB_LINKAT=0;
16891 GNULIB_LSEEK=0;
16892 GNULIB_PIPE=0;
16893 GNULIB_PIPE2=0;
16894 GNULIB_PREAD=0;
16895 GNULIB_PWRITE=0;
16896 GNULIB_READ=0;
16897 GNULIB_READLINK=0;
16898 GNULIB_READLINKAT=0;
16899 GNULIB_RMDIR=0;
16900 GNULIB_SETHOSTNAME=0;
16901 GNULIB_SLEEP=0;
16902 GNULIB_SYMLINK=0;
16903 GNULIB_SYMLINKAT=0;
16904 GNULIB_TTYNAME_R=0;
16905 GNULIB_UNISTD_H_NONBLOCKING=0;
16906 GNULIB_UNISTD_H_SIGPIPE=0;
16907 GNULIB_UNLINK=0;
16908 GNULIB_UNLINKAT=0;
16909 GNULIB_USLEEP=0;
16910 GNULIB_WRITE=0;
16911 HAVE_CHOWN=1;
16912 HAVE_DUP2=1;
16913 HAVE_DUP3=1;
16914 HAVE_EUIDACCESS=1;
16915 HAVE_FACCESSAT=1;
16916 HAVE_FCHDIR=1;
16917 HAVE_FCHOWNAT=1;
16918 HAVE_FDATASYNC=1;
16919 HAVE_FSYNC=1;
16920 HAVE_FTRUNCATE=1;
16921 HAVE_GETDTABLESIZE=1;
16922 HAVE_GETGROUPS=1;
16923 HAVE_GETHOSTNAME=1;
16924 HAVE_GETLOGIN=1;
16925 HAVE_GETPAGESIZE=1;
16926 HAVE_GROUP_MEMBER=1;
16927 HAVE_LCHOWN=1;
16928 HAVE_LINK=1;
16929 HAVE_LINKAT=1;
16930 HAVE_PIPE=1;
16931 HAVE_PIPE2=1;
16932 HAVE_PREAD=1;
16933 HAVE_PWRITE=1;
16934 HAVE_READLINK=1;
16935 HAVE_READLINKAT=1;
16936 HAVE_SETHOSTNAME=1;
16937 HAVE_SLEEP=1;
16938 HAVE_SYMLINK=1;
16939 HAVE_SYMLINKAT=1;
16940 HAVE_UNLINKAT=1;
16941 HAVE_USLEEP=1;
16942 HAVE_DECL_ENVIRON=1;
16943 HAVE_DECL_FCHDIR=1;
16944 HAVE_DECL_FDATASYNC=1;
16945 HAVE_DECL_GETDOMAINNAME=1;
16946 HAVE_DECL_GETLOGIN_R=1;
16947 HAVE_DECL_GETPAGESIZE=1;
16948 HAVE_DECL_GETUSERSHELL=1;
16949 HAVE_DECL_SETHOSTNAME=1;
16950 HAVE_DECL_TTYNAME_R=1;
16951 HAVE_OS_H=0;
16952 HAVE_SYS_PARAM_H=0;
16953 REPLACE_CHOWN=0;
16954 REPLACE_CLOSE=0;
16955 REPLACE_DUP=0;
16956 REPLACE_DUP2=0;
16957 REPLACE_FCHOWNAT=0;
16958 REPLACE_FTRUNCATE=0;
16959 REPLACE_GETCWD=0;
16960 REPLACE_GETDOMAINNAME=0;
16961 REPLACE_GETLOGIN_R=0;
16962 REPLACE_GETGROUPS=0;
16963 REPLACE_GETPAGESIZE=0;
16964 REPLACE_ISATTY=0;
16965 REPLACE_LCHOWN=0;
16966 REPLACE_LINK=0;
16967 REPLACE_LINKAT=0;
16968 REPLACE_LSEEK=0;
16969 REPLACE_PREAD=0;
16970 REPLACE_PWRITE=0;
16971 REPLACE_READ=0;
16972 REPLACE_READLINK=0;
16973 REPLACE_RMDIR=0;
16974 REPLACE_SLEEP=0;
16975 REPLACE_SYMLINK=0;
16976 REPLACE_TTYNAME_R=0;
16977 REPLACE_UNLINK=0;
16978 REPLACE_UNLINKAT=0;
16979 REPLACE_USLEEP=0;
16980 REPLACE_WRITE=0;
16981 UNISTD_H_HAVE_WINSOCK2_H=0;
16982 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16986 GNULIB_OPENDIR=0;
16987 GNULIB_READDIR=0;
16988 GNULIB_REWINDDIR=0;
16989 GNULIB_CLOSEDIR=0;
16990 GNULIB_DIRFD=0;
16991 GNULIB_FDOPENDIR=0;
16992 GNULIB_SCANDIR=0;
16993 GNULIB_ALPHASORT=0;
16994 HAVE_OPENDIR=1;
16995 HAVE_READDIR=1;
16996 HAVE_REWINDDIR=1;
16997 HAVE_CLOSEDIR=1;
16998 HAVE_DECL_DIRFD=1;
16999 HAVE_DECL_FDOPENDIR=1;
17000 HAVE_FDOPENDIR=1;
17001 HAVE_SCANDIR=1;
17002 HAVE_ALPHASORT=1;
17003 REPLACE_OPENDIR=0;
17004 REPLACE_CLOSEDIR=0;
17005 REPLACE_DIRFD=0;
17006 REPLACE_FDOPENDIR=0;
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17011 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17012 if test "${gl_cv_have_include_next+set}" = set; then :
17013 $as_echo_n "(cached) " >&6
17014 else
17015 rm -rf conftestd1a conftestd1b conftestd2
17016 mkdir conftestd1a conftestd1b conftestd2
17017 cat <<EOF > conftestd1a/conftest.h
17018 #define DEFINED_IN_CONFTESTD1
17019 #include_next <conftest.h>
17020 #ifdef DEFINED_IN_CONFTESTD2
17021 int foo;
17022 #else
17023 #error "include_next doesn't work"
17024 #endif
17026 cat <<EOF > conftestd1b/conftest.h
17027 #define DEFINED_IN_CONFTESTD1
17028 #include <stdio.h>
17029 #include_next <conftest.h>
17030 #ifdef DEFINED_IN_CONFTESTD2
17031 int foo;
17032 #else
17033 #error "include_next doesn't work"
17034 #endif
17036 cat <<EOF > conftestd2/conftest.h
17037 #ifndef DEFINED_IN_CONFTESTD1
17038 #error "include_next test doesn't work"
17039 #endif
17040 #define DEFINED_IN_CONFTESTD2
17042 gl_save_CPPFLAGS="$CPPFLAGS"
17043 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17045 /* end confdefs.h. */
17046 #include <conftest.h>
17047 _ACEOF
17048 if ac_fn_c_try_compile "$LINENO"; then :
17049 gl_cv_have_include_next=yes
17050 else
17051 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17053 /* end confdefs.h. */
17054 #include <conftest.h>
17055 _ACEOF
17056 if ac_fn_c_try_compile "$LINENO"; then :
17057 gl_cv_have_include_next=buggy
17058 else
17059 gl_cv_have_include_next=no
17061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17065 CPPFLAGS="$gl_save_CPPFLAGS"
17066 rm -rf conftestd1a conftestd1b conftestd2
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17070 $as_echo "$gl_cv_have_include_next" >&6; }
17071 PRAGMA_SYSTEM_HEADER=
17072 if test $gl_cv_have_include_next = yes; then
17073 INCLUDE_NEXT=include_next
17074 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17075 if test -n "$GCC"; then
17076 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17078 else
17079 if test $gl_cv_have_include_next = buggy; then
17080 INCLUDE_NEXT=include
17081 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17082 else
17083 INCLUDE_NEXT=include
17084 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17091 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17092 if test "${gl_cv_pragma_columns+set}" = set; then :
17093 $as_echo_n "(cached) " >&6
17094 else
17095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17096 /* end confdefs.h. */
17098 #ifdef __TANDEM
17099 choke me
17100 #endif
17102 _ACEOF
17103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17104 $EGREP "choke me" >/dev/null 2>&1; then :
17105 gl_cv_pragma_columns=yes
17106 else
17107 gl_cv_pragma_columns=no
17109 rm -f conftest*
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17114 $as_echo "$gl_cv_pragma_columns" >&6; }
17115 if test $gl_cv_pragma_columns = yes; then
17116 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17117 else
17118 PRAGMA_COLUMNS=
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
17126 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
17127 if test "${gl_cv_func_c99_strtold+set}" = set; then :
17128 $as_echo_n "(cached) " >&6
17129 else
17130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17131 /* end confdefs.h. */
17132 /* On HP-UX before 11.23, strtold returns a struct instead of
17133 long double. Reject implementations like that, by requiring
17134 compatibility with the C99 prototype. */
17135 #include <stdlib.h>
17136 static long double (*p) (char const *, char **) = strtold;
17137 static long double
17138 test (char const *nptr, char **endptr)
17140 long double r;
17141 r = strtold (nptr, endptr);
17142 return r;
17145 main ()
17147 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
17149 return 0;
17151 _ACEOF
17152 if ac_fn_c_try_link "$LINENO"; then :
17153 gl_cv_func_c99_strtold=yes
17154 else
17155 gl_cv_func_c99_strtold=no
17157 rm -f core conftest.err conftest.$ac_objext \
17158 conftest$ac_exeext conftest.$ac_ext
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
17161 $as_echo "$gl_cv_func_c99_strtold" >&6; }
17162 if test $gl_cv_func_c99_strtold = yes; then
17164 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
17176 $as_echo_n "checking if environ is properly declared... " >&6; }
17177 if test "${gt_cv_var_environ_declaration+set}" = set; then :
17178 $as_echo_n "(cached) " >&6
17179 else
17181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17182 /* end confdefs.h. */
17183 #if HAVE_UNISTD_H
17184 #include <unistd.h>
17185 #endif
17186 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
17187 #include <stdlib.h>
17189 extern struct { int foo; } environ;
17191 main ()
17193 environ.foo = 1;
17195 return 0;
17197 _ACEOF
17198 if ac_fn_c_try_compile "$LINENO"; then :
17199 gt_cv_var_environ_declaration=no
17200 else
17201 gt_cv_var_environ_declaration=yes
17203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
17207 $as_echo "$gt_cv_var_environ_declaration" >&6; }
17208 if test $gt_cv_var_environ_declaration = yes; then
17210 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
17215 if test $gt_cv_var_environ_declaration != yes; then
17216 HAVE_DECL_ENVIRON=0
17227 GNULIB_FCNTL=0;
17228 GNULIB_NONBLOCKING=0;
17229 GNULIB_OPEN=0;
17230 GNULIB_OPENAT=0;
17231 HAVE_FCNTL=1;
17232 HAVE_OPENAT=1;
17233 REPLACE_FCNTL=0;
17234 REPLACE_OPEN=0;
17235 REPLACE_OPENAT=0;
17238 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17239 if test "x$ac_cv_type_mode_t" = x""yes; then :
17241 else
17243 cat >>confdefs.h <<_ACEOF
17244 #define mode_t int
17245 _ACEOF
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
17252 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
17253 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
17254 $as_echo_n "(cached) " >&6
17255 else
17256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17257 /* end confdefs.h. */
17259 #include <sys/types.h>
17260 #include <sys/stat.h>
17262 main ()
17264 struct stat s; s.st_dm_mode;
17266 return 0;
17268 _ACEOF
17269 if ac_fn_c_try_compile "$LINENO"; then :
17270 ac_cv_struct_st_dm_mode=yes
17271 else
17272 ac_cv_struct_st_dm_mode=no
17274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
17277 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
17279 if test $ac_cv_struct_st_dm_mode = yes; then
17281 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
17286 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
17287 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
17288 ac_have_decl=1
17289 else
17290 ac_have_decl=0
17293 cat >>confdefs.h <<_ACEOF
17294 #define HAVE_DECL_STRMODE $ac_have_decl
17295 _ACEOF
17302 GNULIB_FCHMODAT=0;
17303 GNULIB_FSTAT=0;
17304 GNULIB_FSTATAT=0;
17305 GNULIB_FUTIMENS=0;
17306 GNULIB_LCHMOD=0;
17307 GNULIB_LSTAT=0;
17308 GNULIB_MKDIRAT=0;
17309 GNULIB_MKFIFO=0;
17310 GNULIB_MKFIFOAT=0;
17311 GNULIB_MKNOD=0;
17312 GNULIB_MKNODAT=0;
17313 GNULIB_STAT=0;
17314 GNULIB_UTIMENSAT=0;
17315 HAVE_FCHMODAT=1;
17316 HAVE_FSTATAT=1;
17317 HAVE_FUTIMENS=1;
17318 HAVE_LCHMOD=1;
17319 HAVE_LSTAT=1;
17320 HAVE_MKDIRAT=1;
17321 HAVE_MKFIFO=1;
17322 HAVE_MKFIFOAT=1;
17323 HAVE_MKNOD=1;
17324 HAVE_MKNODAT=1;
17325 HAVE_UTIMENSAT=1;
17326 REPLACE_FSTAT=0;
17327 REPLACE_FSTATAT=0;
17328 REPLACE_FUTIMENS=0;
17329 REPLACE_LSTAT=0;
17330 REPLACE_MKDIR=0;
17331 REPLACE_MKFIFO=0;
17332 REPLACE_MKNOD=0;
17333 REPLACE_STAT=0;
17334 REPLACE_UTIMENSAT=0;
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17338 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17339 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17340 $as_echo_n "(cached) " >&6
17341 else
17342 rm -f conftest.sym conftest.file
17343 echo >conftest.file
17344 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
17345 if test "$cross_compiling" = yes; then :
17346 case "$host_os" in
17347 # Guess yes on glibc systems.
17348 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
17349 # If we don't know, assume the worst.
17350 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
17351 esac
17353 else
17354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17355 /* end confdefs.h. */
17356 $ac_includes_default
17358 main ()
17360 struct stat sbuf;
17361 /* Linux will dereference the symlink and fail, as required by
17362 POSIX. That is better in the sense that it means we will not
17363 have to compile and use the lstat wrapper. */
17364 return lstat ("conftest.sym/", &sbuf) == 0;
17367 return 0;
17369 _ACEOF
17370 if ac_fn_c_try_run "$LINENO"; then :
17371 gl_cv_func_lstat_dereferences_slashed_symlink=yes
17372 else
17373 gl_cv_func_lstat_dereferences_slashed_symlink=no
17375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17376 conftest.$ac_objext conftest.beam conftest.$ac_ext
17379 else
17380 # If the 'ln -s' command failed, then we probably don't even
17381 # have an lstat function.
17382 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
17384 rm -f conftest.sym conftest.file
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17388 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17389 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
17390 *yes)
17392 cat >>confdefs.h <<_ACEOF
17393 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17394 _ACEOF
17397 esac
17402 GNULIB__EXIT=0;
17403 GNULIB_ATOLL=0;
17404 GNULIB_CALLOC_POSIX=0;
17405 GNULIB_CANONICALIZE_FILE_NAME=0;
17406 GNULIB_GETLOADAVG=0;
17407 GNULIB_GETSUBOPT=0;
17408 GNULIB_GRANTPT=0;
17409 GNULIB_MALLOC_POSIX=0;
17410 GNULIB_MBTOWC=0;
17411 GNULIB_MKDTEMP=0;
17412 GNULIB_MKOSTEMP=0;
17413 GNULIB_MKOSTEMPS=0;
17414 GNULIB_MKSTEMP=0;
17415 GNULIB_MKSTEMPS=0;
17416 GNULIB_POSIX_OPENPT=0;
17417 GNULIB_PTSNAME=0;
17418 GNULIB_PTSNAME_R=0;
17419 GNULIB_PUTENV=0;
17420 GNULIB_RANDOM=0;
17421 GNULIB_RANDOM_R=0;
17422 GNULIB_REALLOC_POSIX=0;
17423 GNULIB_REALPATH=0;
17424 GNULIB_RPMATCH=0;
17425 GNULIB_SECURE_GETENV=0;
17426 GNULIB_SETENV=0;
17427 GNULIB_STRTOD=0;
17428 GNULIB_STRTOLL=0;
17429 GNULIB_STRTOULL=0;
17430 GNULIB_SYSTEM_POSIX=0;
17431 GNULIB_UNLOCKPT=0;
17432 GNULIB_UNSETENV=0;
17433 GNULIB_WCTOMB=0;
17434 HAVE__EXIT=1;
17435 HAVE_ATOLL=1;
17436 HAVE_CANONICALIZE_FILE_NAME=1;
17437 HAVE_DECL_GETLOADAVG=1;
17438 HAVE_GETSUBOPT=1;
17439 HAVE_GRANTPT=1;
17440 HAVE_MKDTEMP=1;
17441 HAVE_MKOSTEMP=1;
17442 HAVE_MKOSTEMPS=1;
17443 HAVE_MKSTEMP=1;
17444 HAVE_MKSTEMPS=1;
17445 HAVE_POSIX_OPENPT=1;
17446 HAVE_PTSNAME=1;
17447 HAVE_PTSNAME_R=1;
17448 HAVE_RANDOM=1;
17449 HAVE_RANDOM_H=1;
17450 HAVE_RANDOM_R=1;
17451 HAVE_REALPATH=1;
17452 HAVE_RPMATCH=1;
17453 HAVE_SECURE_GETENV=1;
17454 HAVE_SETENV=1;
17455 HAVE_DECL_SETENV=1;
17456 HAVE_STRTOD=1;
17457 HAVE_STRTOLL=1;
17458 HAVE_STRTOULL=1;
17459 HAVE_STRUCT_RANDOM_DATA=1;
17460 HAVE_SYS_LOADAVG_H=0;
17461 HAVE_UNLOCKPT=1;
17462 HAVE_DECL_UNSETENV=1;
17463 REPLACE_CALLOC=0;
17464 REPLACE_CANONICALIZE_FILE_NAME=0;
17465 REPLACE_MALLOC=0;
17466 REPLACE_MBTOWC=0;
17467 REPLACE_MKSTEMP=0;
17468 REPLACE_PTSNAME=0;
17469 REPLACE_PTSNAME_R=0;
17470 REPLACE_PUTENV=0;
17471 REPLACE_RANDOM_R=0;
17472 REPLACE_REALLOC=0;
17473 REPLACE_REALPATH=0;
17474 REPLACE_SETENV=0;
17475 REPLACE_STRTOD=0;
17476 REPLACE_UNSETENV=0;
17477 REPLACE_WCTOMB=0;
17494 if test $gl_cv_have_include_next = yes; then
17495 gl_cv_next_getopt_h='<'getopt.h'>'
17496 else
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17498 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17499 if test "${gl_cv_next_getopt_h+set}" = set; then :
17500 $as_echo_n "(cached) " >&6
17501 else
17503 if test $ac_cv_header_getopt_h = yes; then
17506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17507 /* end confdefs.h. */
17508 #include <getopt.h>
17510 _ACEOF
17511 case "$host_os" in
17512 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17513 *) gl_absname_cpp="$ac_cpp" ;;
17514 esac
17516 case "$host_os" in
17517 mingw*)
17518 gl_dirsep_regex='[/\\]'
17521 gl_dirsep_regex='\/'
17523 esac
17524 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17526 gl_header_literal_regex=`echo 'getopt.h' \
17527 | sed -e "$gl_make_literal_regex_sed"`
17528 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17529 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17530 s|^/[^/]|//&|
17534 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17535 sed -n "$gl_absolute_header_sed"`'"'
17536 else
17537 gl_cv_next_getopt_h='<'getopt.h'>'
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17543 $as_echo "$gl_cv_next_getopt_h" >&6; }
17545 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17547 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17548 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17549 gl_next_as_first_directive='<'getopt.h'>'
17550 else
17551 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17552 gl_next_as_first_directive=$gl_cv_next_getopt_h
17554 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17559 if test $ac_cv_header_getopt_h = yes; then
17560 HAVE_GETOPT_H=1
17561 else
17562 HAVE_GETOPT_H=0
17566 gl_replace_getopt=
17568 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17569 for ac_header in getopt.h
17570 do :
17571 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17572 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17573 cat >>confdefs.h <<_ACEOF
17574 #define HAVE_GETOPT_H 1
17575 _ACEOF
17577 else
17578 gl_replace_getopt=yes
17581 done
17585 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17586 for ac_func in getopt_long_only
17587 do :
17588 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17589 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17590 cat >>confdefs.h <<_ACEOF
17591 #define HAVE_GETOPT_LONG_ONLY 1
17592 _ACEOF
17594 else
17595 gl_replace_getopt=yes
17597 done
17601 if test -z "$gl_replace_getopt"; then
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17603 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17604 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17605 $as_echo_n "(cached) " >&6
17606 else
17608 if test $cross_compiling = no; then
17609 if test "$cross_compiling" = yes; then :
17610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17612 as_fn_error "cannot run test program while cross compiling
17613 See \`config.log' for more details." "$LINENO" 5; }
17614 else
17615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17616 /* end confdefs.h. */
17618 #include <unistd.h>
17619 #include <stdlib.h>
17620 #include <string.h>
17623 main ()
17625 static char program[] = "program";
17626 static char a[] = "-a";
17627 static char foo[] = "foo";
17628 static char bar[] = "bar";
17629 char *argv[] = { program, a, foo, bar, NULL };
17630 int c;
17632 c = getopt (4, argv, "ab");
17633 if (!(c == 'a'))
17634 return 1;
17635 c = getopt (4, argv, "ab");
17636 if (!(c == -1))
17637 return 2;
17638 if (!(optind == 2))
17639 return 3;
17640 return 0;
17643 _ACEOF
17644 if ac_fn_c_try_run "$LINENO"; then :
17645 gl_cv_func_getopt_posix=maybe
17646 else
17647 gl_cv_func_getopt_posix=no
17649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17650 conftest.$ac_objext conftest.beam conftest.$ac_ext
17653 if test $gl_cv_func_getopt_posix = maybe; then
17654 if test "$cross_compiling" = yes; then :
17655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17657 as_fn_error "cannot run test program while cross compiling
17658 See \`config.log' for more details." "$LINENO" 5; }
17659 else
17660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17661 /* end confdefs.h. */
17663 #include <unistd.h>
17664 #include <stdlib.h>
17665 #include <string.h>
17668 main ()
17670 static char program[] = "program";
17671 static char donald[] = "donald";
17672 static char p[] = "-p";
17673 static char billy[] = "billy";
17674 static char duck[] = "duck";
17675 static char a[] = "-a";
17676 static char bar[] = "bar";
17677 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17678 int c;
17680 c = getopt (7, argv, "+abp:q:");
17681 if (!(c == -1))
17682 return 4;
17683 if (!(strcmp (argv[0], "program") == 0))
17684 return 5;
17685 if (!(strcmp (argv[1], "donald") == 0))
17686 return 6;
17687 if (!(strcmp (argv[2], "-p") == 0))
17688 return 7;
17689 if (!(strcmp (argv[3], "billy") == 0))
17690 return 8;
17691 if (!(strcmp (argv[4], "duck") == 0))
17692 return 9;
17693 if (!(strcmp (argv[5], "-a") == 0))
17694 return 10;
17695 if (!(strcmp (argv[6], "bar") == 0))
17696 return 11;
17697 if (!(optind == 1))
17698 return 12;
17699 return 0;
17702 _ACEOF
17703 if ac_fn_c_try_run "$LINENO"; then :
17704 gl_cv_func_getopt_posix=maybe
17705 else
17706 gl_cv_func_getopt_posix=no
17708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17709 conftest.$ac_objext conftest.beam conftest.$ac_ext
17713 if test $gl_cv_func_getopt_posix = maybe; then
17714 if test "$cross_compiling" = yes; then :
17715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17717 as_fn_error "cannot run test program while cross compiling
17718 See \`config.log' for more details." "$LINENO" 5; }
17719 else
17720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721 /* end confdefs.h. */
17723 #include <unistd.h>
17724 #include <stdlib.h>
17725 #include <string.h>
17728 main ()
17730 static char program[] = "program";
17731 static char ab[] = "-ab";
17732 char *argv[3] = { program, ab, NULL };
17733 if (getopt (2, argv, "ab:") != 'a')
17734 return 13;
17735 if (getopt (2, argv, "ab:") != '?')
17736 return 14;
17737 if (optopt != 'b')
17738 return 15;
17739 if (optind != 2)
17740 return 16;
17741 return 0;
17744 _ACEOF
17745 if ac_fn_c_try_run "$LINENO"; then :
17746 gl_cv_func_getopt_posix=yes
17747 else
17748 gl_cv_func_getopt_posix=no
17750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17751 conftest.$ac_objext conftest.beam conftest.$ac_ext
17755 else
17756 case "$host_os" in
17757 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
17758 *) gl_cv_func_getopt_posix="guessing yes";;
17759 esac
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17764 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17765 case "$gl_cv_func_getopt_posix" in
17766 *no) gl_replace_getopt=yes ;;
17767 esac
17770 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17772 $as_echo_n "checking for working GNU getopt function... " >&6; }
17773 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17774 $as_echo_n "(cached) " >&6
17775 else
17776 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17777 # optstring is necessary for programs like m4 that have POSIX-mandated
17778 # semantics for supporting options interspersed with files.
17779 # Also, since getopt_long is a GNU extension, we require optind=0.
17780 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17781 # so take care to revert to the correct (non-)export state.
17782 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17783 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17784 xx) gl_had_POSIXLY_CORRECT=exported ;;
17785 x) gl_had_POSIXLY_CORRECT=yes ;;
17786 *) gl_had_POSIXLY_CORRECT= ;;
17787 esac
17788 POSIXLY_CORRECT=1
17789 export POSIXLY_CORRECT
17790 if test "$cross_compiling" = yes; then :
17791 gl_cv_func_getopt_gnu="guessing no"
17793 else
17794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17795 /* end confdefs.h. */
17796 #include <getopt.h>
17797 #include <stddef.h>
17798 #include <string.h>
17800 #include <stdlib.h>
17801 #if defined __MACH__ && defined __APPLE__
17802 /* Avoid a crash on Mac OS X. */
17803 #include <mach/mach.h>
17804 #include <mach/mach_error.h>
17805 #include <mach/thread_status.h>
17806 #include <mach/exception.h>
17807 #include <mach/task.h>
17808 #include <pthread.h>
17809 /* The exception port on which our thread listens. */
17810 static mach_port_t our_exception_port;
17811 /* The main function of the thread listening for exceptions of type
17812 EXC_BAD_ACCESS. */
17813 static void *
17814 mach_exception_thread (void *arg)
17816 /* Buffer for a message to be received. */
17817 struct {
17818 mach_msg_header_t head;
17819 mach_msg_body_t msgh_body;
17820 char data[1024];
17821 } msg;
17822 mach_msg_return_t retval;
17823 /* Wait for a message on the exception port. */
17824 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17825 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17826 if (retval != MACH_MSG_SUCCESS)
17827 abort ();
17828 exit (1);
17830 static void
17831 nocrash_init (void)
17833 mach_port_t self = mach_task_self ();
17834 /* Allocate a port on which the thread shall listen for exceptions. */
17835 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17836 == KERN_SUCCESS) {
17837 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17838 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17839 MACH_MSG_TYPE_MAKE_SEND)
17840 == KERN_SUCCESS) {
17841 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17842 for us. */
17843 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17844 /* Create the thread listening on the exception port. */
17845 pthread_attr_t attr;
17846 pthread_t thread;
17847 if (pthread_attr_init (&attr) == 0
17848 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17849 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17850 pthread_attr_destroy (&attr);
17851 /* Replace the exception port info for these exceptions with our own.
17852 Note that we replace the exception port for the entire task, not only
17853 for a particular thread. This has the effect that when our exception
17854 port gets the message, the thread specific exception port has already
17855 been asked, and we don't need to bother about it.
17856 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17857 task_set_exception_ports (self, mask, our_exception_port,
17858 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17863 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17864 /* Avoid a crash on native Windows. */
17865 #define WIN32_LEAN_AND_MEAN
17866 #include <windows.h>
17867 #include <winerror.h>
17868 static LONG WINAPI
17869 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17871 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17873 case EXCEPTION_ACCESS_VIOLATION:
17874 case EXCEPTION_IN_PAGE_ERROR:
17875 case EXCEPTION_STACK_OVERFLOW:
17876 case EXCEPTION_GUARD_PAGE:
17877 case EXCEPTION_PRIV_INSTRUCTION:
17878 case EXCEPTION_ILLEGAL_INSTRUCTION:
17879 case EXCEPTION_DATATYPE_MISALIGNMENT:
17880 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17881 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17882 exit (1);
17884 return EXCEPTION_CONTINUE_SEARCH;
17886 static void
17887 nocrash_init (void)
17889 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17891 #else
17892 /* Avoid a crash on POSIX systems. */
17893 #include <signal.h>
17894 /* A POSIX signal handler. */
17895 static void
17896 exception_handler (int sig)
17898 exit (1);
17900 static void
17901 nocrash_init (void)
17903 #ifdef SIGSEGV
17904 signal (SIGSEGV, exception_handler);
17905 #endif
17906 #ifdef SIGBUS
17907 signal (SIGBUS, exception_handler);
17908 #endif
17910 #endif
17914 main ()
17917 int result = 0;
17919 nocrash_init();
17921 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17922 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17923 OSF/1 5.1, Solaris 10. */
17925 static char conftest[] = "conftest";
17926 static char plus[] = "-+";
17927 char *argv[3] = { conftest, plus, NULL };
17928 opterr = 0;
17929 if (getopt (2, argv, "+a") != '?')
17930 result |= 1;
17932 /* This code succeeds on glibc 2.8, mingw,
17933 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17934 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17936 static char program[] = "program";
17937 static char p[] = "-p";
17938 static char foo[] = "foo";
17939 static char bar[] = "bar";
17940 char *argv[] = { program, p, foo, bar, NULL };
17942 optind = 1;
17943 if (getopt (4, argv, "p::") != 'p')
17944 result |= 2;
17945 else if (optarg != NULL)
17946 result |= 4;
17947 else if (getopt (4, argv, "p::") != -1)
17948 result |= 6;
17949 else if (optind != 2)
17950 result |= 8;
17952 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17954 static char program[] = "program";
17955 static char foo[] = "foo";
17956 static char p[] = "-p";
17957 char *argv[] = { program, foo, p, NULL };
17958 optind = 0;
17959 if (getopt (3, argv, "-p") != 1)
17960 result |= 16;
17961 else if (getopt (3, argv, "-p") != 'p')
17962 result |= 16;
17964 /* This code fails on glibc 2.11. */
17966 static char program[] = "program";
17967 static char b[] = "-b";
17968 static char a[] = "-a";
17969 char *argv[] = { program, b, a, NULL };
17970 optind = opterr = 0;
17971 if (getopt (3, argv, "+:a:b") != 'b')
17972 result |= 32;
17973 else if (getopt (3, argv, "+:a:b") != ':')
17974 result |= 32;
17976 /* This code dumps core on glibc 2.14. */
17978 static char program[] = "program";
17979 static char w[] = "-W";
17980 static char dummy[] = "dummy";
17981 char *argv[] = { program, w, dummy, NULL };
17982 optind = opterr = 1;
17983 if (getopt (3, argv, "W;") != 'W')
17984 result |= 64;
17986 return result;
17989 return 0;
17991 _ACEOF
17992 if ac_fn_c_try_run "$LINENO"; then :
17993 gl_cv_func_getopt_gnu=yes
17994 else
17995 gl_cv_func_getopt_gnu=no
17997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17998 conftest.$ac_objext conftest.beam conftest.$ac_ext
18001 case $gl_had_POSIXLY_CORRECT in
18002 exported) ;;
18003 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
18004 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
18005 esac
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
18009 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
18010 if test "$gl_cv_func_getopt_gnu" != yes; then
18011 gl_replace_getopt=yes
18012 else
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
18014 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
18015 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
18016 $as_echo_n "(cached) " >&6
18017 else
18018 if test "$cross_compiling" = yes; then :
18019 case "$host_os" in
18020 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
18021 *) gl_cv_func_getopt_long_gnu="guessing yes";;
18022 esac
18024 else
18025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18026 /* end confdefs.h. */
18027 #include <getopt.h>
18028 #include <stddef.h>
18029 #include <string.h>
18032 main ()
18034 static const struct option long_options[] =
18036 { "xtremely-",no_argument, NULL, 1003 },
18037 { "xtra", no_argument, NULL, 1001 },
18038 { "xtreme", no_argument, NULL, 1002 },
18039 { "xtremely", no_argument, NULL, 1003 },
18040 { NULL, 0, NULL, 0 }
18042 /* This code fails on OpenBSD 5.0. */
18044 static char program[] = "program";
18045 static char xtremel[] = "--xtremel";
18046 char *argv[] = { program, xtremel, NULL };
18047 int option_index;
18048 optind = 1; opterr = 0;
18049 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
18050 return 1;
18052 return 0;
18055 return 0;
18057 _ACEOF
18058 if ac_fn_c_try_run "$LINENO"; then :
18059 gl_cv_func_getopt_long_gnu=yes
18060 else
18061 gl_cv_func_getopt_long_gnu=no
18063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18064 conftest.$ac_objext conftest.beam conftest.$ac_ext
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
18070 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
18071 case "$gl_cv_func_getopt_long_gnu" in
18072 *yes) ;;
18073 *) gl_replace_getopt=yes ;;
18074 esac
18083 REPLACE_GETOPT=0
18084 if test -n "$gl_replace_getopt"; then
18085 REPLACE_GETOPT=1
18088 if test $REPLACE_GETOPT = 1; then
18090 GETOPT_H=getopt.h
18092 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
18098 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
18099 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
18100 ac_have_decl=1
18101 else
18102 ac_have_decl=0
18105 cat >>confdefs.h <<_ACEOF
18106 #define HAVE_DECL_GETENV $ac_have_decl
18107 _ACEOF
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18115 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18116 if test "${ac_cv_c_restrict+set}" = set; then :
18117 $as_echo_n "(cached) " >&6
18118 else
18119 ac_cv_c_restrict=no
18120 # The order here caters to the fact that C++ does not require restrict.
18121 for ac_kw in __restrict __restrict__ _Restrict restrict; do
18122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18123 /* end confdefs.h. */
18124 typedef int * int_ptr;
18125 int foo (int_ptr $ac_kw ip) {
18126 return ip[0];
18129 main ()
18131 int s[1];
18132 int * $ac_kw t = s;
18133 t[0] = 0;
18134 return foo(t)
18136 return 0;
18138 _ACEOF
18139 if ac_fn_c_try_compile "$LINENO"; then :
18140 ac_cv_c_restrict=$ac_kw
18142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18143 test "$ac_cv_c_restrict" != no && break
18144 done
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18148 $as_echo "$ac_cv_c_restrict" >&6; }
18150 case $ac_cv_c_restrict in
18151 restrict) ;;
18152 no) $as_echo "#define restrict /**/" >>confdefs.h
18154 *) cat >>confdefs.h <<_ACEOF
18155 #define restrict $ac_cv_c_restrict
18156 _ACEOF
18158 esac
18161 GNULIB_GETTIMEOFDAY=0;
18162 HAVE_GETTIMEOFDAY=1;
18163 HAVE_STRUCT_TIMEVAL=1;
18164 HAVE_SYS_TIME_H=1;
18165 REPLACE_GETTIMEOFDAY=0;
18166 REPLACE_STRUCT_TIMEVAL=0;
18183 if test $gl_cv_have_include_next = yes; then
18184 gl_cv_next_sys_time_h='<'sys/time.h'>'
18185 else
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
18187 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
18188 if test "${gl_cv_next_sys_time_h+set}" = set; then :
18189 $as_echo_n "(cached) " >&6
18190 else
18192 if test $ac_cv_header_sys_time_h = yes; then
18195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18196 /* end confdefs.h. */
18197 #include <sys/time.h>
18199 _ACEOF
18200 case "$host_os" in
18201 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18202 *) gl_absname_cpp="$ac_cpp" ;;
18203 esac
18205 case "$host_os" in
18206 mingw*)
18207 gl_dirsep_regex='[/\\]'
18210 gl_dirsep_regex='\/'
18212 esac
18213 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18215 gl_header_literal_regex=`echo 'sys/time.h' \
18216 | sed -e "$gl_make_literal_regex_sed"`
18217 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18218 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18219 s|^/[^/]|//&|
18223 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18224 sed -n "$gl_absolute_header_sed"`'"'
18225 else
18226 gl_cv_next_sys_time_h='<'sys/time.h'>'
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
18232 $as_echo "$gl_cv_next_sys_time_h" >&6; }
18234 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
18236 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18237 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18238 gl_next_as_first_directive='<'sys/time.h'>'
18239 else
18240 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18241 gl_next_as_first_directive=$gl_cv_next_sys_time_h
18243 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
18249 if test $ac_cv_header_sys_time_h != yes; then
18250 HAVE_SYS_TIME_H=0
18257 if test $ac_cv_header_sys_socket_h != yes; then
18258 for ac_header in winsock2.h
18259 do :
18260 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18261 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
18262 cat >>confdefs.h <<_ACEOF
18263 #define HAVE_WINSOCK2_H 1
18264 _ACEOF
18268 done
18271 if test "$ac_cv_header_winsock2_h" = yes; then
18272 HAVE_WINSOCK2_H=1
18273 UNISTD_H_HAVE_WINSOCK2_H=1
18274 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18275 else
18276 HAVE_WINSOCK2_H=0
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
18281 $as_echo_n "checking for struct timeval... " >&6; }
18282 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
18283 $as_echo_n "(cached) " >&6
18284 else
18285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18286 /* end confdefs.h. */
18287 #if HAVE_SYS_TIME_H
18288 #include <sys/time.h>
18289 #endif
18290 #include <time.h>
18291 #if HAVE_WINSOCK2_H
18292 # include <winsock2.h>
18293 #endif
18296 main ()
18298 static struct timeval x; x.tv_sec = x.tv_usec;
18300 return 0;
18302 _ACEOF
18303 if ac_fn_c_try_compile "$LINENO"; then :
18304 gl_cv_sys_struct_timeval=yes
18305 else
18306 gl_cv_sys_struct_timeval=no
18308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
18312 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
18313 if test $gl_cv_sys_struct_timeval != yes; then
18314 HAVE_STRUCT_TIMEVAL=0
18315 else
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
18317 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
18318 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
18319 $as_echo_n "(cached) " >&6
18320 else
18321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18322 /* end confdefs.h. */
18323 #if HAVE_SYS_TIME_H
18324 #include <sys/time.h>
18325 #endif
18326 #include <time.h>
18327 #if HAVE_WINSOCK2_H
18328 # include <winsock2.h>
18329 #endif
18332 main ()
18334 static struct timeval x;
18335 typedef int verify_tv_sec_type[
18336 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
18340 return 0;
18342 _ACEOF
18343 if ac_fn_c_try_compile "$LINENO"; then :
18344 gl_cv_sys_struct_timeval_tv_sec=yes
18345 else
18346 gl_cv_sys_struct_timeval_tv_sec=no
18348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
18352 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
18353 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
18354 REPLACE_STRUCT_TIMEVAL=1
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18365 $as_echo_n "checking for unsigned long long int... " >&6; }
18366 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
18367 $as_echo_n "(cached) " >&6
18368 else
18369 ac_cv_type_unsigned_long_long_int=yes
18370 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18372 /* end confdefs.h. */
18374 /* For now, do not test the preprocessor; as of 2007 there are too many
18375 implementations with broken preprocessors. Perhaps this can
18376 be revisited in 2012. In the meantime, code should not expect
18377 #if to work with literals wider than 32 bits. */
18378 /* Test literals. */
18379 long long int ll = 9223372036854775807ll;
18380 long long int nll = -9223372036854775807LL;
18381 unsigned long long int ull = 18446744073709551615ULL;
18382 /* Test constant expressions. */
18383 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18384 ? 1 : -1)];
18385 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18386 ? 1 : -1)];
18387 int i = 63;
18389 main ()
18391 /* Test availability of runtime routines for shift and division. */
18392 long long int llmax = 9223372036854775807ll;
18393 unsigned long long int ullmax = 18446744073709551615ull;
18394 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18395 | (llmax / ll) | (llmax % ll)
18396 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18397 | (ullmax / ull) | (ullmax % ull));
18399 return 0;
18402 _ACEOF
18403 if ac_fn_c_try_link "$LINENO"; then :
18405 else
18406 ac_cv_type_unsigned_long_long_int=no
18408 rm -f core conftest.err conftest.$ac_objext \
18409 conftest$ac_exeext conftest.$ac_ext
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18413 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18414 if test $ac_cv_type_unsigned_long_long_int = yes; then
18416 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18423 $as_echo_n "checking for long long int... " >&6; }
18424 if test "${ac_cv_type_long_long_int+set}" = set; then :
18425 $as_echo_n "(cached) " >&6
18426 else
18427 ac_cv_type_long_long_int=yes
18428 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18429 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18430 if test $ac_cv_type_long_long_int = yes; then
18431 if test "$cross_compiling" = yes; then :
18433 else
18434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18435 /* end confdefs.h. */
18436 #include <limits.h>
18437 #ifndef LLONG_MAX
18438 # define HALF \
18439 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18440 # define LLONG_MAX (HALF - 1 + HALF)
18441 #endif
18443 main ()
18445 long long int n = 1;
18446 int i;
18447 for (i = 0; ; i++)
18449 long long int m = n << i;
18450 if (m >> i != n)
18451 return 1;
18452 if (LLONG_MAX / 2 < m)
18453 break;
18455 return 0;
18457 return 0;
18459 _ACEOF
18460 if ac_fn_c_try_run "$LINENO"; then :
18462 else
18463 ac_cv_type_long_long_int=no
18465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18466 conftest.$ac_objext conftest.beam conftest.$ac_ext
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18473 $as_echo "$ac_cv_type_long_long_int" >&6; }
18474 if test $ac_cv_type_long_long_int = yes; then
18476 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18485 gl_cv_c_multiarch=no
18486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18487 /* end confdefs.h. */
18488 #ifndef __APPLE_CC__
18489 not a universal capable compiler
18490 #endif
18491 typedef int dummy;
18493 _ACEOF
18494 if ac_fn_c_try_compile "$LINENO"; then :
18496 arch=
18497 prev=
18498 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18499 if test -n "$prev"; then
18500 case $word in
18501 i?86 | x86_64 | ppc | ppc64)
18502 if test -z "$arch" || test "$arch" = "$word"; then
18503 arch="$word"
18504 else
18505 gl_cv_c_multiarch=yes
18508 esac
18509 prev=
18510 else
18511 if test "x$word" = "x-arch"; then
18512 prev=arch
18515 done
18518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18519 if test $gl_cv_c_multiarch = yes; then
18520 APPLE_UNIVERSAL_BUILD=1
18521 else
18522 APPLE_UNIVERSAL_BUILD=0
18529 if test $ac_cv_type_long_long_int = yes; then
18530 HAVE_LONG_LONG_INT=1
18531 else
18532 HAVE_LONG_LONG_INT=0
18536 if test $ac_cv_type_unsigned_long_long_int = yes; then
18537 HAVE_UNSIGNED_LONG_LONG_INT=1
18538 else
18539 HAVE_UNSIGNED_LONG_LONG_INT=0
18544 if test $ac_cv_header_wchar_h = yes; then
18545 HAVE_WCHAR_H=1
18546 else
18547 HAVE_WCHAR_H=0
18551 if test $ac_cv_header_inttypes_h = yes; then
18552 HAVE_INTTYPES_H=1
18553 else
18554 HAVE_INTTYPES_H=0
18558 if test $ac_cv_header_sys_types_h = yes; then
18559 HAVE_SYS_TYPES_H=1
18560 else
18561 HAVE_SYS_TYPES_H=0
18574 if test $gl_cv_have_include_next = yes; then
18575 gl_cv_next_stdint_h='<'stdint.h'>'
18576 else
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18578 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18579 if test "${gl_cv_next_stdint_h+set}" = set; then :
18580 $as_echo_n "(cached) " >&6
18581 else
18583 if test $ac_cv_header_stdint_h = yes; then
18586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18587 /* end confdefs.h. */
18588 #include <stdint.h>
18590 _ACEOF
18591 case "$host_os" in
18592 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18593 *) gl_absname_cpp="$ac_cpp" ;;
18594 esac
18596 case "$host_os" in
18597 mingw*)
18598 gl_dirsep_regex='[/\\]'
18601 gl_dirsep_regex='\/'
18603 esac
18604 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18606 gl_header_literal_regex=`echo 'stdint.h' \
18607 | sed -e "$gl_make_literal_regex_sed"`
18608 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18609 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18610 s|^/[^/]|//&|
18614 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18615 sed -n "$gl_absolute_header_sed"`'"'
18616 else
18617 gl_cv_next_stdint_h='<'stdint.h'>'
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18623 $as_echo "$gl_cv_next_stdint_h" >&6; }
18625 NEXT_STDINT_H=$gl_cv_next_stdint_h
18627 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18628 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18629 gl_next_as_first_directive='<'stdint.h'>'
18630 else
18631 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18632 gl_next_as_first_directive=$gl_cv_next_stdint_h
18634 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18639 if test $ac_cv_header_stdint_h = yes; then
18640 HAVE_STDINT_H=1
18641 else
18642 HAVE_STDINT_H=0
18646 if test $ac_cv_header_stdint_h = yes; then
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18648 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18649 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18650 $as_echo_n "(cached) " >&6
18651 else
18652 gl_cv_header_working_stdint_h=no
18653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18654 /* end confdefs.h. */
18657 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18658 #include <stdint.h>
18659 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18660 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18661 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18662 #endif
18665 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18666 included before <wchar.h>. */
18667 #include <stddef.h>
18668 #include <signal.h>
18669 #if HAVE_WCHAR_H
18670 # include <stdio.h>
18671 # include <time.h>
18672 # include <wchar.h>
18673 #endif
18676 #ifdef INT8_MAX
18677 int8_t a1 = INT8_MAX;
18678 int8_t a1min = INT8_MIN;
18679 #endif
18680 #ifdef INT16_MAX
18681 int16_t a2 = INT16_MAX;
18682 int16_t a2min = INT16_MIN;
18683 #endif
18684 #ifdef INT32_MAX
18685 int32_t a3 = INT32_MAX;
18686 int32_t a3min = INT32_MIN;
18687 #endif
18688 #ifdef INT64_MAX
18689 int64_t a4 = INT64_MAX;
18690 int64_t a4min = INT64_MIN;
18691 #endif
18692 #ifdef UINT8_MAX
18693 uint8_t b1 = UINT8_MAX;
18694 #else
18695 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18696 #endif
18697 #ifdef UINT16_MAX
18698 uint16_t b2 = UINT16_MAX;
18699 #endif
18700 #ifdef UINT32_MAX
18701 uint32_t b3 = UINT32_MAX;
18702 #endif
18703 #ifdef UINT64_MAX
18704 uint64_t b4 = UINT64_MAX;
18705 #endif
18706 int_least8_t c1 = INT8_C (0x7f);
18707 int_least8_t c1max = INT_LEAST8_MAX;
18708 int_least8_t c1min = INT_LEAST8_MIN;
18709 int_least16_t c2 = INT16_C (0x7fff);
18710 int_least16_t c2max = INT_LEAST16_MAX;
18711 int_least16_t c2min = INT_LEAST16_MIN;
18712 int_least32_t c3 = INT32_C (0x7fffffff);
18713 int_least32_t c3max = INT_LEAST32_MAX;
18714 int_least32_t c3min = INT_LEAST32_MIN;
18715 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18716 int_least64_t c4max = INT_LEAST64_MAX;
18717 int_least64_t c4min = INT_LEAST64_MIN;
18718 uint_least8_t d1 = UINT8_C (0xff);
18719 uint_least8_t d1max = UINT_LEAST8_MAX;
18720 uint_least16_t d2 = UINT16_C (0xffff);
18721 uint_least16_t d2max = UINT_LEAST16_MAX;
18722 uint_least32_t d3 = UINT32_C (0xffffffff);
18723 uint_least32_t d3max = UINT_LEAST32_MAX;
18724 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18725 uint_least64_t d4max = UINT_LEAST64_MAX;
18726 int_fast8_t e1 = INT_FAST8_MAX;
18727 int_fast8_t e1min = INT_FAST8_MIN;
18728 int_fast16_t e2 = INT_FAST16_MAX;
18729 int_fast16_t e2min = INT_FAST16_MIN;
18730 int_fast32_t e3 = INT_FAST32_MAX;
18731 int_fast32_t e3min = INT_FAST32_MIN;
18732 int_fast64_t e4 = INT_FAST64_MAX;
18733 int_fast64_t e4min = INT_FAST64_MIN;
18734 uint_fast8_t f1 = UINT_FAST8_MAX;
18735 uint_fast16_t f2 = UINT_FAST16_MAX;
18736 uint_fast32_t f3 = UINT_FAST32_MAX;
18737 uint_fast64_t f4 = UINT_FAST64_MAX;
18738 #ifdef INTPTR_MAX
18739 intptr_t g = INTPTR_MAX;
18740 intptr_t gmin = INTPTR_MIN;
18741 #endif
18742 #ifdef UINTPTR_MAX
18743 uintptr_t h = UINTPTR_MAX;
18744 #endif
18745 intmax_t i = INTMAX_MAX;
18746 uintmax_t j = UINTMAX_MAX;
18748 #include <limits.h> /* for CHAR_BIT */
18749 #define TYPE_MINIMUM(t) \
18750 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18751 #define TYPE_MAXIMUM(t) \
18752 ((t) ((t) 0 < (t) -1 \
18753 ? (t) -1 \
18754 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18755 struct s {
18756 int check_PTRDIFF:
18757 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18758 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18759 ? 1 : -1;
18760 /* Detect bug in FreeBSD 6.0 / ia64. */
18761 int check_SIG_ATOMIC:
18762 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18763 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18764 ? 1 : -1;
18765 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18766 int check_WCHAR:
18767 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18768 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18769 ? 1 : -1;
18770 /* Detect bug in mingw. */
18771 int check_WINT:
18772 WINT_MIN == TYPE_MINIMUM (wint_t)
18773 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18774 ? 1 : -1;
18776 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18777 int check_UINT8_C:
18778 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18779 int check_UINT16_C:
18780 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18782 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18783 #ifdef UINT8_MAX
18784 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18785 #endif
18786 #ifdef UINT16_MAX
18787 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18788 #endif
18789 #ifdef UINT32_MAX
18790 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18791 #endif
18792 #ifdef UINT64_MAX
18793 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18794 #endif
18795 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18796 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18797 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18798 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18799 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18800 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18801 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18802 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18803 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18804 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18805 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18809 main ()
18813 return 0;
18815 _ACEOF
18816 if ac_fn_c_try_compile "$LINENO"; then :
18817 if test "$cross_compiling" = yes; then :
18818 gl_cv_header_working_stdint_h=yes
18820 else
18821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18822 /* end confdefs.h. */
18825 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18826 #include <stdint.h>
18829 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18830 included before <wchar.h>. */
18831 #include <stddef.h>
18832 #include <signal.h>
18833 #if HAVE_WCHAR_H
18834 # include <stdio.h>
18835 # include <time.h>
18836 # include <wchar.h>
18837 #endif
18840 #include <stdio.h>
18841 #include <string.h>
18842 #define MVAL(macro) MVAL1(macro)
18843 #define MVAL1(expression) #expression
18844 static const char *macro_values[] =
18846 #ifdef INT8_MAX
18847 MVAL (INT8_MAX),
18848 #endif
18849 #ifdef INT16_MAX
18850 MVAL (INT16_MAX),
18851 #endif
18852 #ifdef INT32_MAX
18853 MVAL (INT32_MAX),
18854 #endif
18855 #ifdef INT64_MAX
18856 MVAL (INT64_MAX),
18857 #endif
18858 #ifdef UINT8_MAX
18859 MVAL (UINT8_MAX),
18860 #endif
18861 #ifdef UINT16_MAX
18862 MVAL (UINT16_MAX),
18863 #endif
18864 #ifdef UINT32_MAX
18865 MVAL (UINT32_MAX),
18866 #endif
18867 #ifdef UINT64_MAX
18868 MVAL (UINT64_MAX),
18869 #endif
18870 NULL
18874 main ()
18877 const char **mv;
18878 for (mv = macro_values; *mv != NULL; mv++)
18880 const char *value = *mv;
18881 /* Test whether it looks like a cast expression. */
18882 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18883 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18884 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18885 || strncmp (value, "((int)"/*)*/, 6) == 0
18886 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18887 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18888 return mv - macro_values + 1;
18890 return 0;
18893 return 0;
18895 _ACEOF
18896 if ac_fn_c_try_run "$LINENO"; then :
18897 gl_cv_header_working_stdint_h=yes
18899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18900 conftest.$ac_objext conftest.beam conftest.$ac_ext
18905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18909 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18911 if test "$gl_cv_header_working_stdint_h" = yes; then
18912 STDINT_H=
18913 else
18914 for ac_header in sys/inttypes.h sys/bitypes.h
18915 do :
18916 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18917 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18918 eval as_val=\$$as_ac_Header
18919 if test "x$as_val" = x""yes; then :
18920 cat >>confdefs.h <<_ACEOF
18921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18922 _ACEOF
18926 done
18928 if test $ac_cv_header_sys_inttypes_h = yes; then
18929 HAVE_SYS_INTTYPES_H=1
18930 else
18931 HAVE_SYS_INTTYPES_H=0
18934 if test $ac_cv_header_sys_bitypes_h = yes; then
18935 HAVE_SYS_BITYPES_H=1
18936 else
18937 HAVE_SYS_BITYPES_H=0
18943 if test $APPLE_UNIVERSAL_BUILD = 0; then
18946 for gltype in ptrdiff_t size_t ; do
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18948 $as_echo_n "checking for bit size of $gltype... " >&6; }
18949 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18950 $as_echo_n "(cached) " >&6
18951 else
18952 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18953 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18954 included before <wchar.h>. */
18955 #include <stddef.h>
18956 #include <signal.h>
18957 #if HAVE_WCHAR_H
18958 # include <stdio.h>
18959 # include <time.h>
18960 # include <wchar.h>
18961 #endif
18963 #include <limits.h>"; then :
18965 else
18966 result=unknown
18969 eval gl_cv_bitsizeof_${gltype}=\$result
18972 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18974 $as_echo "$ac_res" >&6; }
18975 eval result=\$gl_cv_bitsizeof_${gltype}
18976 if test $result = unknown; then
18977 result=0
18979 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18980 cat >>confdefs.h <<_ACEOF
18981 #define BITSIZEOF_${GLTYPE} $result
18982 _ACEOF
18984 eval BITSIZEOF_${GLTYPE}=\$result
18985 done
18991 for gltype in sig_atomic_t wchar_t wint_t ; do
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18993 $as_echo_n "checking for bit size of $gltype... " >&6; }
18994 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18995 $as_echo_n "(cached) " >&6
18996 else
18997 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18998 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18999 included before <wchar.h>. */
19000 #include <stddef.h>
19001 #include <signal.h>
19002 #if HAVE_WCHAR_H
19003 # include <stdio.h>
19004 # include <time.h>
19005 # include <wchar.h>
19006 #endif
19008 #include <limits.h>"; then :
19010 else
19011 result=unknown
19014 eval gl_cv_bitsizeof_${gltype}=\$result
19017 eval ac_res=\$gl_cv_bitsizeof_${gltype}
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19019 $as_echo "$ac_res" >&6; }
19020 eval result=\$gl_cv_bitsizeof_${gltype}
19021 if test $result = unknown; then
19022 result=0
19024 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19025 cat >>confdefs.h <<_ACEOF
19026 #define BITSIZEOF_${GLTYPE} $result
19027 _ACEOF
19029 eval BITSIZEOF_${GLTYPE}=\$result
19030 done
19035 for gltype in sig_atomic_t wchar_t wint_t ; do
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
19037 $as_echo_n "checking whether $gltype is signed... " >&6; }
19038 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
19039 $as_echo_n "(cached) " >&6
19040 else
19041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19042 /* end confdefs.h. */
19044 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19045 included before <wchar.h>. */
19046 #include <stddef.h>
19047 #include <signal.h>
19048 #if HAVE_WCHAR_H
19049 # include <stdio.h>
19050 # include <time.h>
19051 # include <wchar.h>
19052 #endif
19054 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
19056 main ()
19060 return 0;
19062 _ACEOF
19063 if ac_fn_c_try_compile "$LINENO"; then :
19064 result=yes
19065 else
19066 result=no
19068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19069 eval gl_cv_type_${gltype}_signed=\$result
19072 eval ac_res=\$gl_cv_type_${gltype}_signed
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19074 $as_echo "$ac_res" >&6; }
19075 eval result=\$gl_cv_type_${gltype}_signed
19076 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19077 if test "$result" = yes; then
19078 cat >>confdefs.h <<_ACEOF
19079 #define HAVE_SIGNED_${GLTYPE} 1
19080 _ACEOF
19082 eval HAVE_SIGNED_${GLTYPE}=1
19083 else
19084 eval HAVE_SIGNED_${GLTYPE}=0
19086 done
19089 gl_cv_type_ptrdiff_t_signed=yes
19090 gl_cv_type_size_t_signed=no
19091 if test $APPLE_UNIVERSAL_BUILD = 0; then
19094 for gltype in ptrdiff_t size_t ; do
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19096 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19097 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19098 $as_echo_n "(cached) " >&6
19099 else
19100 eval gl_cv_type_${gltype}_suffix=no
19101 eval result=\$gl_cv_type_${gltype}_signed
19102 if test "$result" = yes; then
19103 glsufu=
19104 else
19105 glsufu=u
19107 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19108 case $glsuf in
19109 '') gltype1='int';;
19110 l) gltype1='long int';;
19111 ll) gltype1='long long int';;
19112 i64) gltype1='__int64';;
19113 u) gltype1='unsigned int';;
19114 ul) gltype1='unsigned long int';;
19115 ull) gltype1='unsigned long long int';;
19116 ui64)gltype1='unsigned __int64';;
19117 esac
19118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19119 /* end confdefs.h. */
19121 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19122 included before <wchar.h>. */
19123 #include <stddef.h>
19124 #include <signal.h>
19125 #if HAVE_WCHAR_H
19126 # include <stdio.h>
19127 # include <time.h>
19128 # include <wchar.h>
19129 #endif
19131 extern $gltype foo;
19132 extern $gltype1 foo;
19134 main ()
19138 return 0;
19140 _ACEOF
19141 if ac_fn_c_try_compile "$LINENO"; then :
19142 eval gl_cv_type_${gltype}_suffix=\$glsuf
19144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19145 eval result=\$gl_cv_type_${gltype}_suffix
19146 test "$result" != no && break
19147 done
19149 eval ac_res=\$gl_cv_type_${gltype}_suffix
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19151 $as_echo "$ac_res" >&6; }
19152 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19153 eval result=\$gl_cv_type_${gltype}_suffix
19154 test "$result" = no && result=
19155 eval ${GLTYPE}_SUFFIX=\$result
19156 cat >>confdefs.h <<_ACEOF
19157 #define ${GLTYPE}_SUFFIX $result
19158 _ACEOF
19160 done
19166 for gltype in sig_atomic_t wchar_t wint_t ; do
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19168 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19169 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19170 $as_echo_n "(cached) " >&6
19171 else
19172 eval gl_cv_type_${gltype}_suffix=no
19173 eval result=\$gl_cv_type_${gltype}_signed
19174 if test "$result" = yes; then
19175 glsufu=
19176 else
19177 glsufu=u
19179 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19180 case $glsuf in
19181 '') gltype1='int';;
19182 l) gltype1='long int';;
19183 ll) gltype1='long long int';;
19184 i64) gltype1='__int64';;
19185 u) gltype1='unsigned int';;
19186 ul) gltype1='unsigned long int';;
19187 ull) gltype1='unsigned long long int';;
19188 ui64)gltype1='unsigned __int64';;
19189 esac
19190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19191 /* end confdefs.h. */
19193 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19194 included before <wchar.h>. */
19195 #include <stddef.h>
19196 #include <signal.h>
19197 #if HAVE_WCHAR_H
19198 # include <stdio.h>
19199 # include <time.h>
19200 # include <wchar.h>
19201 #endif
19203 extern $gltype foo;
19204 extern $gltype1 foo;
19206 main ()
19210 return 0;
19212 _ACEOF
19213 if ac_fn_c_try_compile "$LINENO"; then :
19214 eval gl_cv_type_${gltype}_suffix=\$glsuf
19216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19217 eval result=\$gl_cv_type_${gltype}_suffix
19218 test "$result" != no && break
19219 done
19221 eval ac_res=\$gl_cv_type_${gltype}_suffix
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19223 $as_echo "$ac_res" >&6; }
19224 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19225 eval result=\$gl_cv_type_${gltype}_suffix
19226 test "$result" = no && result=
19227 eval ${GLTYPE}_SUFFIX=\$result
19228 cat >>confdefs.h <<_ACEOF
19229 #define ${GLTYPE}_SUFFIX $result
19230 _ACEOF
19232 done
19236 if test $BITSIZEOF_WINT_T -lt 32; then
19237 BITSIZEOF_WINT_T=32
19240 STDINT_H=stdint.h
19243 if test -n "$STDINT_H"; then
19244 GL_GENERATE_STDINT_H_TRUE=
19245 GL_GENERATE_STDINT_H_FALSE='#'
19246 else
19247 GL_GENERATE_STDINT_H_TRUE='#'
19248 GL_GENERATE_STDINT_H_FALSE=
19255 GNULIB_IMAXABS=0;
19256 GNULIB_IMAXDIV=0;
19257 GNULIB_STRTOIMAX=0;
19258 GNULIB_STRTOUMAX=0;
19259 HAVE_DECL_IMAXABS=1;
19260 HAVE_DECL_IMAXDIV=1;
19261 HAVE_DECL_STRTOIMAX=1;
19262 HAVE_DECL_STRTOUMAX=1;
19263 REPLACE_STRTOIMAX=0;
19264 INT32_MAX_LT_INTMAX_MAX=1;
19265 INT64_MAX_EQ_LONG_MAX='defined _LP64';
19266 PRI_MACROS_BROKEN=0;
19267 PRIPTR_PREFIX=__PRIPTR_PREFIX;
19268 UINT32_MAX_LT_UINTMAX_MAX=1;
19269 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
19285 if test $gl_cv_have_include_next = yes; then
19286 gl_cv_next_inttypes_h='<'inttypes.h'>'
19287 else
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
19289 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
19290 if test "${gl_cv_next_inttypes_h+set}" = set; then :
19291 $as_echo_n "(cached) " >&6
19292 else
19294 if test $ac_cv_header_inttypes_h = yes; then
19297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19298 /* end confdefs.h. */
19299 #include <inttypes.h>
19301 _ACEOF
19302 case "$host_os" in
19303 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19304 *) gl_absname_cpp="$ac_cpp" ;;
19305 esac
19307 case "$host_os" in
19308 mingw*)
19309 gl_dirsep_regex='[/\\]'
19312 gl_dirsep_regex='\/'
19314 esac
19315 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19317 gl_header_literal_regex=`echo 'inttypes.h' \
19318 | sed -e "$gl_make_literal_regex_sed"`
19319 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19320 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19321 s|^/[^/]|//&|
19325 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19326 sed -n "$gl_absolute_header_sed"`'"'
19327 else
19328 gl_cv_next_inttypes_h='<'inttypes.h'>'
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
19334 $as_echo "$gl_cv_next_inttypes_h" >&6; }
19336 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
19338 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19339 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19340 gl_next_as_first_directive='<'inttypes.h'>'
19341 else
19342 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19343 gl_next_as_first_directive=$gl_cv_next_inttypes_h
19345 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
19357 case "$host_os" in
19358 mingw*)
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
19360 $as_echo_n "checking for 64-bit off_t... " >&6; }
19361 if test "${gl_cv_type_off_t_64+set}" = set; then :
19362 $as_echo_n "(cached) " >&6
19363 else
19364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19365 /* end confdefs.h. */
19366 #include <sys/types.h>
19367 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
19370 main ()
19374 return 0;
19376 _ACEOF
19377 if ac_fn_c_try_compile "$LINENO"; then :
19378 gl_cv_type_off_t_64=yes
19379 else
19380 gl_cv_type_off_t_64=no
19382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
19386 $as_echo "$gl_cv_type_off_t_64" >&6; }
19387 if test $gl_cv_type_off_t_64 = no; then
19388 WINDOWS_64_BIT_OFF_T=1
19389 else
19390 WINDOWS_64_BIT_OFF_T=0
19392 WINDOWS_64_BIT_ST_SIZE=1
19395 WINDOWS_64_BIT_OFF_T=0
19396 WINDOWS_64_BIT_ST_SIZE=0
19398 esac
19403 GNULIB_MKTIME=0;
19404 GNULIB_NANOSLEEP=0;
19405 GNULIB_STRPTIME=0;
19406 GNULIB_TIMEGM=0;
19407 GNULIB_TIME_R=0;
19408 HAVE_DECL_LOCALTIME_R=1;
19409 HAVE_NANOSLEEP=1;
19410 HAVE_STRPTIME=1;
19411 HAVE_TIMEGM=1;
19412 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19413 REPLACE_MKTIME=GNULIB_PORTCHECK;
19414 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19415 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19420 GNULIB_PSELECT=0;
19421 GNULIB_SELECT=0;
19422 HAVE_PSELECT=1;
19423 REPLACE_PSELECT=0;
19424 REPLACE_SELECT=0;
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19432 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19433 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19434 $as_echo_n "(cached) " >&6
19435 else
19437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19438 /* end confdefs.h. */
19439 #include <sys/select.h>
19441 main ()
19443 struct timeval b;
19445 return 0;
19447 _ACEOF
19448 if ac_fn_c_try_compile "$LINENO"; then :
19449 gl_cv_header_sys_select_h_selfcontained=yes
19450 else
19451 gl_cv_header_sys_select_h_selfcontained=no
19453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19454 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19456 /* end confdefs.h. */
19457 #include <sys/select.h>
19459 main ()
19461 int memset; int bzero;
19463 return 0;
19466 _ACEOF
19467 if ac_fn_c_try_compile "$LINENO"; then :
19468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19469 /* end confdefs.h. */
19470 #include <sys/select.h>
19472 main ()
19475 #undef memset
19476 #define memset nonexistent_memset
19477 extern
19478 #ifdef __cplusplus
19480 #endif
19481 void *memset (void *, int, unsigned long);
19482 #undef bzero
19483 #define bzero nonexistent_bzero
19484 extern
19485 #ifdef __cplusplus
19487 #endif
19488 void bzero (void *, unsigned long);
19489 fd_set fds;
19490 FD_ZERO (&fds);
19493 return 0;
19496 _ACEOF
19497 if ac_fn_c_try_link "$LINENO"; then :
19499 else
19500 gl_cv_header_sys_select_h_selfcontained=no
19502 rm -f core conftest.err conftest.$ac_objext \
19503 conftest$ac_exeext conftest.$ac_ext
19506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19511 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19521 if test $gl_cv_have_include_next = yes; then
19522 gl_cv_next_sys_select_h='<'sys/select.h'>'
19523 else
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19525 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19526 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19527 $as_echo_n "(cached) " >&6
19528 else
19530 if test $ac_cv_header_sys_select_h = yes; then
19533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19534 /* end confdefs.h. */
19535 #include <sys/select.h>
19537 _ACEOF
19538 case "$host_os" in
19539 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19540 *) gl_absname_cpp="$ac_cpp" ;;
19541 esac
19543 case "$host_os" in
19544 mingw*)
19545 gl_dirsep_regex='[/\\]'
19548 gl_dirsep_regex='\/'
19550 esac
19551 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19553 gl_header_literal_regex=`echo 'sys/select.h' \
19554 | sed -e "$gl_make_literal_regex_sed"`
19555 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19556 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19557 s|^/[^/]|//&|
19561 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19562 sed -n "$gl_absolute_header_sed"`'"'
19563 else
19564 gl_cv_next_sys_select_h='<'sys/select.h'>'
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19570 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19572 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
19574 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19575 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19576 gl_next_as_first_directive='<'sys/select.h'>'
19577 else
19578 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19579 gl_next_as_first_directive=$gl_cv_next_sys_select_h
19581 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
19586 if test $ac_cv_header_sys_select_h = yes; then
19587 HAVE_SYS_SELECT_H=1
19588 else
19589 HAVE_SYS_SELECT_H=0
19596 if test $ac_cv_header_sys_socket_h != yes; then
19597 for ac_header in winsock2.h
19598 do :
19599 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19600 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19601 cat >>confdefs.h <<_ACEOF
19602 #define HAVE_WINSOCK2_H 1
19603 _ACEOF
19607 done
19610 if test "$ac_cv_header_winsock2_h" = yes; then
19611 HAVE_WINSOCK2_H=1
19612 UNISTD_H_HAVE_WINSOCK2_H=1
19613 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19614 else
19615 HAVE_WINSOCK2_H=0
19625 GNULIB_PTHREAD_SIGMASK=0;
19626 GNULIB_RAISE=0;
19627 GNULIB_SIGNAL_H_SIGPIPE=0;
19628 GNULIB_SIGPROCMASK=0;
19629 GNULIB_SIGACTION=0;
19630 HAVE_POSIX_SIGNALBLOCKING=1;
19631 HAVE_PTHREAD_SIGMASK=1;
19632 HAVE_RAISE=1;
19633 HAVE_SIGSET_T=1;
19634 HAVE_SIGINFO_T=1;
19635 HAVE_SIGACTION=1;
19636 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19638 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19640 HAVE_SIGHANDLER_T=1;
19641 REPLACE_PTHREAD_SIGMASK=0;
19642 REPLACE_RAISE=0;
19650 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19651 #include <signal.h>
19652 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19653 #include <sys/types.h>
19656 if test "x$ac_cv_type_sigset_t" = x""yes; then :
19658 cat >>confdefs.h <<_ACEOF
19659 #define HAVE_SIGSET_T 1
19660 _ACEOF
19662 gl_cv_type_sigset_t=yes
19663 else
19664 gl_cv_type_sigset_t=no
19667 if test $gl_cv_type_sigset_t != yes; then
19668 HAVE_SIGSET_T=0
19673 if test $ac_cv_header_sys_socket_h = no; then
19674 for ac_header in ws2tcpip.h
19675 do :
19676 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19677 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
19678 cat >>confdefs.h <<_ACEOF
19679 #define HAVE_WS2TCPIP_H 1
19680 _ACEOF
19684 done
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19689 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19690 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19691 $as_echo_n "(cached) " >&6
19692 else
19693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19694 /* end confdefs.h. */
19696 #include <stdbool.h>
19697 #ifndef bool
19698 "error: bool is not defined"
19699 #endif
19700 #ifndef false
19701 "error: false is not defined"
19702 #endif
19703 #if false
19704 "error: false is not 0"
19705 #endif
19706 #ifndef true
19707 "error: true is not defined"
19708 #endif
19709 #if true != 1
19710 "error: true is not 1"
19711 #endif
19712 #ifndef __bool_true_false_are_defined
19713 "error: __bool_true_false_are_defined is not defined"
19714 #endif
19716 struct s { _Bool s: 1; _Bool t; } s;
19718 char a[true == 1 ? 1 : -1];
19719 char b[false == 0 ? 1 : -1];
19720 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19721 char d[(bool) 0.5 == true ? 1 : -1];
19722 /* See body of main program for 'e'. */
19723 char f[(_Bool) 0.0 == false ? 1 : -1];
19724 char g[true];
19725 char h[sizeof (_Bool)];
19726 char i[sizeof s.t];
19727 enum { j = false, k = true, l = false * true, m = true * 256 };
19728 /* The following fails for
19729 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19730 _Bool n[m];
19731 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19732 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19733 /* Catch a bug in an HP-UX C compiler. See
19734 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19735 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19737 _Bool q = true;
19738 _Bool *pq = &q;
19741 main ()
19744 bool e = &s;
19745 *pq |= q;
19746 *pq |= ! q;
19747 /* Refer to every declared value, to avoid compiler optimizations. */
19748 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19749 + !m + !n + !o + !p + !q + !pq);
19752 return 0;
19754 _ACEOF
19755 if ac_fn_c_try_compile "$LINENO"; then :
19756 ac_cv_header_stdbool_h=yes
19757 else
19758 ac_cv_header_stdbool_h=no
19760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19763 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19764 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19765 if test "x$ac_cv_type__Bool" = x""yes; then :
19767 cat >>confdefs.h <<_ACEOF
19768 #define HAVE__BOOL 1
19769 _ACEOF
19776 REPLACE_NULL=0;
19777 HAVE_WCHAR_T=1;
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19781 $as_echo_n "checking for wchar_t... " >&6; }
19782 if test "${gt_cv_c_wchar_t+set}" = set; then :
19783 $as_echo_n "(cached) " >&6
19784 else
19785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19786 /* end confdefs.h. */
19787 #include <stddef.h>
19788 wchar_t foo = (wchar_t)'\0';
19790 main ()
19794 return 0;
19796 _ACEOF
19797 if ac_fn_c_try_compile "$LINENO"; then :
19798 gt_cv_c_wchar_t=yes
19799 else
19800 gt_cv_c_wchar_t=no
19802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19805 $as_echo "$gt_cv_c_wchar_t" >&6; }
19806 if test $gt_cv_c_wchar_t = yes; then
19808 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19813 GNULIB_DPRINTF=0;
19814 GNULIB_FCLOSE=0;
19815 GNULIB_FDOPEN=0;
19816 GNULIB_FFLUSH=0;
19817 GNULIB_FGETC=0;
19818 GNULIB_FGETS=0;
19819 GNULIB_FOPEN=0;
19820 GNULIB_FPRINTF=0;
19821 GNULIB_FPRINTF_POSIX=0;
19822 GNULIB_FPURGE=0;
19823 GNULIB_FPUTC=0;
19824 GNULIB_FPUTS=0;
19825 GNULIB_FREAD=0;
19826 GNULIB_FREOPEN=0;
19827 GNULIB_FSCANF=0;
19828 GNULIB_FSEEK=0;
19829 GNULIB_FSEEKO=0;
19830 GNULIB_FTELL=0;
19831 GNULIB_FTELLO=0;
19832 GNULIB_FWRITE=0;
19833 GNULIB_GETC=0;
19834 GNULIB_GETCHAR=0;
19835 GNULIB_GETDELIM=0;
19836 GNULIB_GETLINE=0;
19837 GNULIB_OBSTACK_PRINTF=0;
19838 GNULIB_OBSTACK_PRINTF_POSIX=0;
19839 GNULIB_PCLOSE=0;
19840 GNULIB_PERROR=0;
19841 GNULIB_POPEN=0;
19842 GNULIB_PRINTF=0;
19843 GNULIB_PRINTF_POSIX=0;
19844 GNULIB_PUTC=0;
19845 GNULIB_PUTCHAR=0;
19846 GNULIB_PUTS=0;
19847 GNULIB_REMOVE=0;
19848 GNULIB_RENAME=0;
19849 GNULIB_RENAMEAT=0;
19850 GNULIB_SCANF=0;
19851 GNULIB_SNPRINTF=0;
19852 GNULIB_SPRINTF_POSIX=0;
19853 GNULIB_STDIO_H_NONBLOCKING=0;
19854 GNULIB_STDIO_H_SIGPIPE=0;
19855 GNULIB_TMPFILE=0;
19856 GNULIB_VASPRINTF=0;
19857 GNULIB_VFSCANF=0;
19858 GNULIB_VSCANF=0;
19859 GNULIB_VDPRINTF=0;
19860 GNULIB_VFPRINTF=0;
19861 GNULIB_VFPRINTF_POSIX=0;
19862 GNULIB_VPRINTF=0;
19863 GNULIB_VPRINTF_POSIX=0;
19864 GNULIB_VSNPRINTF=0;
19865 GNULIB_VSPRINTF_POSIX=0;
19866 HAVE_DECL_FPURGE=1;
19867 HAVE_DECL_FSEEKO=1;
19868 HAVE_DECL_FTELLO=1;
19869 HAVE_DECL_GETDELIM=1;
19870 HAVE_DECL_GETLINE=1;
19871 HAVE_DECL_OBSTACK_PRINTF=1;
19872 HAVE_DECL_SNPRINTF=1;
19873 HAVE_DECL_VSNPRINTF=1;
19874 HAVE_DPRINTF=1;
19875 HAVE_FSEEKO=1;
19876 HAVE_FTELLO=1;
19877 HAVE_PCLOSE=1;
19878 HAVE_POPEN=1;
19879 HAVE_RENAMEAT=1;
19880 HAVE_VASPRINTF=1;
19881 HAVE_VDPRINTF=1;
19882 REPLACE_DPRINTF=0;
19883 REPLACE_FCLOSE=0;
19884 REPLACE_FDOPEN=0;
19885 REPLACE_FFLUSH=0;
19886 REPLACE_FOPEN=0;
19887 REPLACE_FPRINTF=0;
19888 REPLACE_FPURGE=0;
19889 REPLACE_FREOPEN=0;
19890 REPLACE_FSEEK=0;
19891 REPLACE_FSEEKO=0;
19892 REPLACE_FTELL=0;
19893 REPLACE_FTELLO=0;
19894 REPLACE_GETDELIM=0;
19895 REPLACE_GETLINE=0;
19896 REPLACE_OBSTACK_PRINTF=0;
19897 REPLACE_PERROR=0;
19898 REPLACE_POPEN=0;
19899 REPLACE_PRINTF=0;
19900 REPLACE_REMOVE=0;
19901 REPLACE_RENAME=0;
19902 REPLACE_RENAMEAT=0;
19903 REPLACE_SNPRINTF=0;
19904 REPLACE_SPRINTF=0;
19905 REPLACE_STDIO_READ_FUNCS=0;
19906 REPLACE_STDIO_WRITE_FUNCS=0;
19907 REPLACE_TMPFILE=0;
19908 REPLACE_VASPRINTF=0;
19909 REPLACE_VDPRINTF=0;
19910 REPLACE_VFPRINTF=0;
19911 REPLACE_VPRINTF=0;
19912 REPLACE_VSNPRINTF=0;
19913 REPLACE_VSPRINTF=0;
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19916 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19917 if test "${ac_cv_struct_tm+set}" = set; then :
19918 $as_echo_n "(cached) " >&6
19919 else
19920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19921 /* end confdefs.h. */
19922 #include <sys/types.h>
19923 #include <time.h>
19926 main ()
19928 struct tm tm;
19929 int *p = &tm.tm_sec;
19930 return !p;
19932 return 0;
19934 _ACEOF
19935 if ac_fn_c_try_compile "$LINENO"; then :
19936 ac_cv_struct_tm=time.h
19937 else
19938 ac_cv_struct_tm=sys/time.h
19940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19943 $as_echo "$ac_cv_struct_tm" >&6; }
19944 if test $ac_cv_struct_tm = sys/time.h; then
19946 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19950 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19951 #include <$ac_cv_struct_tm>
19954 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
19956 cat >>confdefs.h <<_ACEOF
19957 #define HAVE_STRUCT_TM_TM_ZONE 1
19958 _ACEOF
19963 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19965 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19967 else
19968 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19970 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
19971 ac_have_decl=1
19972 else
19973 ac_have_decl=0
19976 cat >>confdefs.h <<_ACEOF
19977 #define HAVE_DECL_TZNAME $ac_have_decl
19978 _ACEOF
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19981 $as_echo_n "checking for tzname... " >&6; }
19982 if test "${ac_cv_var_tzname+set}" = set; then :
19983 $as_echo_n "(cached) " >&6
19984 else
19985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19986 /* end confdefs.h. */
19987 #include <time.h>
19988 #if !HAVE_DECL_TZNAME
19989 extern char *tzname[];
19990 #endif
19993 main ()
19995 return tzname[0][0];
19997 return 0;
19999 _ACEOF
20000 if ac_fn_c_try_link "$LINENO"; then :
20001 ac_cv_var_tzname=yes
20002 else
20003 ac_cv_var_tzname=no
20005 rm -f core conftest.err conftest.$ac_objext \
20006 conftest$ac_exeext conftest.$ac_ext
20008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
20009 $as_echo "$ac_cv_var_tzname" >&6; }
20010 if test $ac_cv_var_tzname = yes; then
20012 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
20018 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
20020 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
20022 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
20029 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
20030 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
20031 ac_have_decl=1
20032 else
20033 ac_have_decl=0
20036 cat >>confdefs.h <<_ACEOF
20037 #define HAVE_DECL_STRTOIMAX $ac_have_decl
20038 _ACEOF
20042 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
20043 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
20044 ac_have_decl=1
20045 else
20046 ac_have_decl=0
20049 cat >>confdefs.h <<_ACEOF
20050 #define HAVE_DECL_STRTOUMAX $ac_have_decl
20051 _ACEOF
20055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20056 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20057 if test "${ac_cv_header_stat_broken+set}" = set; then :
20058 $as_echo_n "(cached) " >&6
20059 else
20060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20061 /* end confdefs.h. */
20062 #include <sys/types.h>
20063 #include <sys/stat.h>
20065 #if defined S_ISBLK && defined S_IFDIR
20066 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20067 #endif
20069 #if defined S_ISBLK && defined S_IFCHR
20070 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20071 #endif
20073 #if defined S_ISLNK && defined S_IFREG
20074 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20075 #endif
20077 #if defined S_ISSOCK && defined S_IFREG
20078 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20079 #endif
20081 _ACEOF
20082 if ac_fn_c_try_compile "$LINENO"; then :
20083 ac_cv_header_stat_broken=no
20084 else
20085 ac_cv_header_stat_broken=yes
20087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20090 $as_echo "$ac_cv_header_stat_broken" >&6; }
20091 if test $ac_cv_header_stat_broken = yes; then
20093 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
20102 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
20103 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
20104 $as_echo_n "(cached) " >&6
20105 else
20106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20107 /* end confdefs.h. */
20108 #include <time.h>
20111 main ()
20113 static struct timespec x; x.tv_sec = x.tv_nsec;
20115 return 0;
20117 _ACEOF
20118 if ac_fn_c_try_compile "$LINENO"; then :
20119 gl_cv_sys_struct_timespec_in_time_h=yes
20120 else
20121 gl_cv_sys_struct_timespec_in_time_h=no
20123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
20126 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
20128 TIME_H_DEFINES_STRUCT_TIMESPEC=0
20129 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
20130 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
20131 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
20132 TIME_H_DEFINES_STRUCT_TIMESPEC=1
20133 else
20134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
20135 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
20136 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
20137 $as_echo_n "(cached) " >&6
20138 else
20139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20140 /* end confdefs.h. */
20141 #include <sys/time.h>
20144 main ()
20146 static struct timespec x; x.tv_sec = x.tv_nsec;
20148 return 0;
20150 _ACEOF
20151 if ac_fn_c_try_compile "$LINENO"; then :
20152 gl_cv_sys_struct_timespec_in_sys_time_h=yes
20153 else
20154 gl_cv_sys_struct_timespec_in_sys_time_h=no
20156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
20159 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
20160 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
20161 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
20162 else
20163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
20164 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
20165 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
20166 $as_echo_n "(cached) " >&6
20167 else
20168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20169 /* end confdefs.h. */
20170 #include <pthread.h>
20173 main ()
20175 static struct timespec x; x.tv_sec = x.tv_nsec;
20177 return 0;
20179 _ACEOF
20180 if ac_fn_c_try_compile "$LINENO"; then :
20181 gl_cv_sys_struct_timespec_in_pthread_h=yes
20182 else
20183 gl_cv_sys_struct_timespec_in_pthread_h=no
20185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
20188 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
20189 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
20190 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
20209 if test $gl_cv_have_include_next = yes; then
20210 gl_cv_next_time_h='<'time.h'>'
20211 else
20212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
20213 $as_echo_n "checking absolute name of <time.h>... " >&6; }
20214 if test "${gl_cv_next_time_h+set}" = set; then :
20215 $as_echo_n "(cached) " >&6
20216 else
20218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20219 /* end confdefs.h. */
20220 #include <time.h>
20222 _ACEOF
20223 case "$host_os" in
20224 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20225 *) gl_absname_cpp="$ac_cpp" ;;
20226 esac
20228 case "$host_os" in
20229 mingw*)
20230 gl_dirsep_regex='[/\\]'
20233 gl_dirsep_regex='\/'
20235 esac
20236 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20238 gl_header_literal_regex=`echo 'time.h' \
20239 | sed -e "$gl_make_literal_regex_sed"`
20240 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20241 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20242 s|^/[^/]|//&|
20246 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20247 sed -n "$gl_absolute_header_sed"`'"'
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
20252 $as_echo "$gl_cv_next_time_h" >&6; }
20254 NEXT_TIME_H=$gl_cv_next_time_h
20256 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20257 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20258 gl_next_as_first_directive='<'time.h'>'
20259 else
20260 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20261 gl_next_as_first_directive=$gl_cv_next_time_h
20263 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
20278 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
20279 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then :
20280 ac_have_decl=1
20281 else
20282 ac_have_decl=0
20285 cat >>confdefs.h <<_ACEOF
20286 #define HAVE_DECL_UNSETENV $ac_have_decl
20287 _ACEOF
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
20291 $as_echo_n "checking whether the utimes function works... " >&6; }
20292 if test "${gl_cv_func_working_utimes+set}" = set; then :
20293 $as_echo_n "(cached) " >&6
20294 else
20296 if test "$cross_compiling" = yes; then :
20297 gl_cv_func_working_utimes=no
20298 else
20299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20300 /* end confdefs.h. */
20302 #include <sys/types.h>
20303 #include <sys/stat.h>
20304 #include <fcntl.h>
20305 #include <sys/time.h>
20306 #include <time.h>
20307 #include <unistd.h>
20308 #include <stdlib.h>
20309 #include <stdio.h>
20310 #include <utime.h>
20312 static int
20313 inorder (time_t a, time_t b, time_t c)
20315 return a <= b && b <= c;
20319 main ()
20321 int result = 0;
20322 char const *file = "conftest.utimes";
20323 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
20325 /* Test whether utimes() essentially works. */
20327 struct stat sbuf;
20328 FILE *f = fopen (file, "w");
20329 if (f == NULL)
20330 result |= 1;
20331 else if (fclose (f) != 0)
20332 result |= 1;
20333 else if (utimes (file, timeval) != 0)
20334 result |= 2;
20335 else if (lstat (file, &sbuf) != 0)
20336 result |= 1;
20337 else if (!(sbuf.st_atime == timeval[0].tv_sec
20338 && sbuf.st_mtime == timeval[1].tv_sec))
20339 result |= 4;
20340 if (unlink (file) != 0)
20341 result |= 1;
20344 /* Test whether utimes() with a NULL argument sets the file's timestamp
20345 to the current time. Use 'fstat' as well as 'time' to
20346 determine the "current" time, to accommodate NFS file systems
20347 if there is a time skew between the host and the NFS server. */
20349 int fd = open (file, O_WRONLY|O_CREAT, 0644);
20350 if (fd < 0)
20351 result |= 1;
20352 else
20354 time_t t0, t2;
20355 struct stat st0, st1, st2;
20356 if (time (&t0) == (time_t) -1)
20357 result |= 1;
20358 else if (fstat (fd, &st0) != 0)
20359 result |= 1;
20360 else if (utimes (file, timeval) != 0)
20361 result |= 2;
20362 else if (utimes (file, NULL) != 0)
20363 result |= 8;
20364 else if (fstat (fd, &st1) != 0)
20365 result |= 1;
20366 else if (write (fd, "\n", 1) != 1)
20367 result |= 1;
20368 else if (fstat (fd, &st2) != 0)
20369 result |= 1;
20370 else if (time (&t2) == (time_t) -1)
20371 result |= 1;
20372 else
20374 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
20375 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
20376 if (! (st1.st_atime == st1.st_mtime))
20377 result |= 16;
20378 if (! (m_ok_POSIX || m_ok_NFS))
20379 result |= 32;
20381 if (close (fd) != 0)
20382 result |= 1;
20384 if (unlink (file) != 0)
20385 result |= 1;
20388 /* Test whether utimes() with a NULL argument works on read-only files. */
20390 int fd = open (file, O_WRONLY|O_CREAT, 0444);
20391 if (fd < 0)
20392 result |= 1;
20393 else if (close (fd) != 0)
20394 result |= 1;
20395 else if (utimes (file, NULL) != 0)
20396 result |= 64;
20397 if (unlink (file) != 0)
20398 result |= 1;
20401 return result;
20404 _ACEOF
20405 if ac_fn_c_try_run "$LINENO"; then :
20406 gl_cv_func_working_utimes=yes
20407 else
20408 gl_cv_func_working_utimes=no
20410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20411 conftest.$ac_objext conftest.beam conftest.$ac_ext
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20416 $as_echo "$gl_cv_func_working_utimes" >&6; }
20418 if test $gl_cv_func_working_utimes = yes; then
20420 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20429 $as_echo_n "checking for struct utimbuf... " >&6; }
20430 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20431 $as_echo_n "(cached) " >&6
20432 else
20433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20434 /* end confdefs.h. */
20435 #if HAVE_SYS_TIME_H
20436 #include <sys/time.h>
20437 #endif
20438 #include <time.h>
20439 #ifdef HAVE_UTIME_H
20440 #include <utime.h>
20441 #endif
20444 main ()
20446 static struct utimbuf x; x.actime = x.modtime;
20448 return 0;
20450 _ACEOF
20451 if ac_fn_c_try_compile "$LINENO"; then :
20452 gl_cv_sys_struct_utimbuf=yes
20453 else
20454 gl_cv_sys_struct_utimbuf=no
20456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20459 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20461 if test $gl_cv_sys_struct_utimbuf = yes; then
20463 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20478 $as_echo_n "checking type of array argument to getgroups... " >&6; }
20479 if test "${ac_cv_type_getgroups+set}" = set; then :
20480 $as_echo_n "(cached) " >&6
20481 else
20482 if test "$cross_compiling" = yes; then :
20483 ac_cv_type_getgroups=cross
20484 else
20485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20486 /* end confdefs.h. */
20487 /* Thanks to Mike Rendell for this test. */
20488 $ac_includes_default
20489 #define NGID 256
20490 #undef MAX
20491 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20494 main ()
20496 gid_t gidset[NGID];
20497 int i, n;
20498 union { gid_t gval; long int lval; } val;
20500 val.lval = -1;
20501 for (i = 0; i < NGID; i++)
20502 gidset[i] = val.gval;
20503 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20504 gidset);
20505 /* Exit non-zero if getgroups seems to require an array of ints. This
20506 happens when gid_t is short int but getgroups modifies an array
20507 of ints. */
20508 return n > 0 && gidset[n] != val.gval;
20510 _ACEOF
20511 if ac_fn_c_try_run "$LINENO"; then :
20512 ac_cv_type_getgroups=gid_t
20513 else
20514 ac_cv_type_getgroups=int
20516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20517 conftest.$ac_objext conftest.beam conftest.$ac_ext
20520 if test $ac_cv_type_getgroups = cross; then
20521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20522 /* end confdefs.h. */
20523 #include <unistd.h>
20525 _ACEOF
20526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20527 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
20528 ac_cv_type_getgroups=gid_t
20529 else
20530 ac_cv_type_getgroups=int
20532 rm -f conftest*
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20537 $as_echo "$ac_cv_type_getgroups" >&6; }
20539 cat >>confdefs.h <<_ACEOF
20540 #define GETGROUPS_T $ac_cv_type_getgroups
20541 _ACEOF
20546 if false; then
20547 GL_COND_LIBTOOL_TRUE=
20548 GL_COND_LIBTOOL_FALSE='#'
20549 else
20550 GL_COND_LIBTOOL_TRUE='#'
20551 GL_COND_LIBTOOL_FALSE=
20554 gl_cond_libtool=false
20555 gl_libdeps=
20556 gl_ltlibdeps=
20557 gl_m4_base='m4'
20567 gl_source_base='lib'
20570 if test $ac_cv_func_alloca_works = no; then
20574 # Define an additional variable used in the Makefile substitution.
20575 if test $ac_cv_working_alloca_h = yes; then
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20577 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20578 if test "${gl_cv_rpl_alloca+set}" = set; then :
20579 $as_echo_n "(cached) " >&6
20580 else
20582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20583 /* end confdefs.h. */
20585 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20586 Need own alloca
20587 #endif
20589 _ACEOF
20590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20591 $EGREP "Need own alloca" >/dev/null 2>&1; then :
20592 gl_cv_rpl_alloca=yes
20593 else
20594 gl_cv_rpl_alloca=no
20596 rm -f conftest*
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20601 $as_echo "$gl_cv_rpl_alloca" >&6; }
20602 if test $gl_cv_rpl_alloca = yes; then
20604 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20606 ALLOCA_H=alloca.h
20607 else
20608 ALLOCA_H=
20610 else
20611 ALLOCA_H=alloca.h
20614 if test -n "$ALLOCA_H"; then
20615 GL_GENERATE_ALLOCA_H_TRUE=
20616 GL_GENERATE_ALLOCA_H_FALSE='#'
20617 else
20618 GL_GENERATE_ALLOCA_H_TRUE='#'
20619 GL_GENERATE_ALLOCA_H_FALSE=
20627 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20628 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20630 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20631 # programs in the package would end up linked with that potentially-shared
20632 # library, inducing unnecessary run-time overhead.
20633 LIB_CLOCK_GETTIME=
20635 gl_saved_libs=$LIBS
20636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20637 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20638 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20639 $as_echo_n "(cached) " >&6
20640 else
20641 ac_func_search_save_LIBS=$LIBS
20642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20643 /* end confdefs.h. */
20645 /* Override any GCC internal prototype to avoid an error.
20646 Use char because int might match the return type of a GCC
20647 builtin and then its argument prototype would still apply. */
20648 #ifdef __cplusplus
20649 extern "C"
20650 #endif
20651 char clock_gettime ();
20653 main ()
20655 return clock_gettime ();
20657 return 0;
20659 _ACEOF
20660 for ac_lib in '' rt posix4; do
20661 if test -z "$ac_lib"; then
20662 ac_res="none required"
20663 else
20664 ac_res=-l$ac_lib
20665 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20667 if ac_fn_c_try_link "$LINENO"; then :
20668 ac_cv_search_clock_gettime=$ac_res
20670 rm -f core conftest.err conftest.$ac_objext \
20671 conftest$ac_exeext
20672 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20673 break
20675 done
20676 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20678 else
20679 ac_cv_search_clock_gettime=no
20681 rm conftest.$ac_ext
20682 LIBS=$ac_func_search_save_LIBS
20684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20685 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20686 ac_res=$ac_cv_search_clock_gettime
20687 if test "$ac_res" != no; then :
20688 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20689 test "$ac_cv_search_clock_gettime" = "none required" ||
20690 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
20693 for ac_func in clock_gettime clock_settime
20694 do :
20695 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20696 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20697 eval as_val=\$$as_ac_var
20698 if test "x$as_val" = x""yes; then :
20699 cat >>confdefs.h <<_ACEOF
20700 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20701 _ACEOF
20704 done
20706 LIBS=$gl_saved_libs
20713 cat >>confdefs.h <<_ACEOF
20714 #define GNULIB_CLOSE_STREAM 1
20715 _ACEOF
20744 if test $gl_cv_have_include_next = yes; then
20745 gl_cv_next_dirent_h='<'dirent.h'>'
20746 else
20747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
20748 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
20749 if test "${gl_cv_next_dirent_h+set}" = set; then :
20750 $as_echo_n "(cached) " >&6
20751 else
20753 if test $ac_cv_header_dirent_h = yes; then
20756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20757 /* end confdefs.h. */
20758 #include <dirent.h>
20760 _ACEOF
20761 case "$host_os" in
20762 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20763 *) gl_absname_cpp="$ac_cpp" ;;
20764 esac
20766 case "$host_os" in
20767 mingw*)
20768 gl_dirsep_regex='[/\\]'
20771 gl_dirsep_regex='\/'
20773 esac
20774 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20776 gl_header_literal_regex=`echo 'dirent.h' \
20777 | sed -e "$gl_make_literal_regex_sed"`
20778 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20779 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20780 s|^/[^/]|//&|
20784 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20785 sed -n "$gl_absolute_header_sed"`'"'
20786 else
20787 gl_cv_next_dirent_h='<'dirent.h'>'
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
20793 $as_echo "$gl_cv_next_dirent_h" >&6; }
20795 NEXT_DIRENT_H=$gl_cv_next_dirent_h
20797 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20798 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20799 gl_next_as_first_directive='<'dirent.h'>'
20800 else
20801 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20802 gl_next_as_first_directive=$gl_cv_next_dirent_h
20804 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
20809 if test $ac_cv_header_dirent_h = yes; then
20810 HAVE_DIRENT_H=1
20811 else
20812 HAVE_DIRENT_H=0
20824 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20827 if test $HAVE_DUP2 = 1; then
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20829 $as_echo_n "checking whether dup2 works... " >&6; }
20830 if test "${gl_cv_func_dup2_works+set}" = set; then :
20831 $as_echo_n "(cached) " >&6
20832 else
20833 if test "$cross_compiling" = yes; then :
20834 case "$host_os" in
20835 mingw*) # on this platform, dup2 always returns 0 for success
20836 gl_cv_func_dup2_works="guessing no" ;;
20837 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
20838 gl_cv_func_dup2_works="guessing no" ;;
20839 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20840 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20841 gl_cv_func_dup2_works="guessing no" ;;
20842 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20843 gl_cv_func_dup2_works="guessing no" ;;
20844 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20845 gl_cv_func_dup2_works="guessing no" ;;
20846 *) gl_cv_func_dup2_works="guessing yes" ;;
20847 esac
20848 else
20849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20850 /* end confdefs.h. */
20852 #include <unistd.h>
20853 #include <fcntl.h>
20854 #include <errno.h>
20856 main ()
20858 int result = 0;
20859 #ifdef FD_CLOEXEC
20860 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20861 result |= 1;
20862 #endif
20863 if (dup2 (1, 1) == 0)
20864 result |= 2;
20865 #ifdef FD_CLOEXEC
20866 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20867 result |= 4;
20868 #endif
20869 close (0);
20870 if (dup2 (0, 0) != -1)
20871 result |= 8;
20872 /* Many gnulib modules require POSIX conformance of EBADF. */
20873 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20874 result |= 16;
20875 /* Flush out a cygwin core dump. */
20876 if (dup2 (2, -1) != -1 || errno != EBADF)
20877 result |= 32;
20878 return result;
20881 return 0;
20884 _ACEOF
20885 if ac_fn_c_try_run "$LINENO"; then :
20886 gl_cv_func_dup2_works=yes
20887 else
20888 gl_cv_func_dup2_works=no
20890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20891 conftest.$ac_objext conftest.beam conftest.$ac_ext
20896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20897 $as_echo "$gl_cv_func_dup2_works" >&6; }
20898 case "$gl_cv_func_dup2_works" in
20899 *yes) ;;
20901 REPLACE_DUP2=1
20903 esac
20907 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
20916 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
20925 GNULIB_DUP2=1
20937 GNULIB_ENVIRON=1
20946 LIB_EXECINFO=''
20947 EXECINFO_H='execinfo.h'
20949 if test $ac_cv_header_execinfo_h = yes; then
20950 gl_saved_libs=$LIBS
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
20952 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
20953 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20954 $as_echo_n "(cached) " >&6
20955 else
20956 ac_func_search_save_LIBS=$LIBS
20957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20958 /* end confdefs.h. */
20960 /* Override any GCC internal prototype to avoid an error.
20961 Use char because int might match the return type of a GCC
20962 builtin and then its argument prototype would still apply. */
20963 #ifdef __cplusplus
20964 extern "C"
20965 #endif
20966 char backtrace_symbols_fd ();
20968 main ()
20970 return backtrace_symbols_fd ();
20972 return 0;
20974 _ACEOF
20975 for ac_lib in '' execinfo; do
20976 if test -z "$ac_lib"; then
20977 ac_res="none required"
20978 else
20979 ac_res=-l$ac_lib
20980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20982 if ac_fn_c_try_link "$LINENO"; then :
20983 ac_cv_search_backtrace_symbols_fd=$ac_res
20985 rm -f core conftest.err conftest.$ac_objext \
20986 conftest$ac_exeext
20987 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20988 break
20990 done
20991 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20993 else
20994 ac_cv_search_backtrace_symbols_fd=no
20996 rm conftest.$ac_ext
20997 LIBS=$ac_func_search_save_LIBS
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
21000 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
21001 ac_res=$ac_cv_search_backtrace_symbols_fd
21002 if test "$ac_res" != no; then :
21003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21004 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
21005 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
21008 LIBS=$gl_saved_libs
21009 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
21012 if test -n "$EXECINFO_H"; then
21021 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
21027 if test -n "$EXECINFO_H"; then
21028 GL_GENERATE_EXECINFO_H_TRUE=
21029 GL_GENERATE_EXECINFO_H_FALSE='#'
21030 else
21031 GL_GENERATE_EXECINFO_H_TRUE='#'
21032 GL_GENERATE_EXECINFO_H_FALSE=
21043 if test $ac_cv_func_faccessat = no; then
21044 HAVE_FACCESSAT=0
21047 if test $HAVE_FACCESSAT = 0; then
21056 gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext"
21059 for ac_func in access
21060 do :
21061 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
21062 if test "x$ac_cv_func_access" = x""yes; then :
21063 cat >>confdefs.h <<_ACEOF
21064 #define HAVE_ACCESS 1
21065 _ACEOF
21068 done
21074 cat >>confdefs.h <<_ACEOF
21075 #define GNULIB_FACCESSAT 1
21076 _ACEOF
21084 GNULIB_FACCESSAT=1
21101 if test $gl_cv_have_include_next = yes; then
21102 gl_cv_next_fcntl_h='<'fcntl.h'>'
21103 else
21104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
21105 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
21106 if test "${gl_cv_next_fcntl_h+set}" = set; then :
21107 $as_echo_n "(cached) " >&6
21108 else
21110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21111 /* end confdefs.h. */
21112 #include <fcntl.h>
21114 _ACEOF
21115 case "$host_os" in
21116 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21117 *) gl_absname_cpp="$ac_cpp" ;;
21118 esac
21120 case "$host_os" in
21121 mingw*)
21122 gl_dirsep_regex='[/\\]'
21125 gl_dirsep_regex='\/'
21127 esac
21128 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21130 gl_header_literal_regex=`echo 'fcntl.h' \
21131 | sed -e "$gl_make_literal_regex_sed"`
21132 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21133 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21134 s|^/[^/]|//&|
21138 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21139 sed -n "$gl_absolute_header_sed"`'"'
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
21144 $as_echo "$gl_cv_next_fcntl_h" >&6; }
21146 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
21148 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21149 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21150 gl_next_as_first_directive='<'fcntl.h'>'
21151 else
21152 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21153 gl_next_as_first_directive=$gl_cv_next_fcntl_h
21155 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
21172 ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
21173 #include <dirent.h>
21176 if test "x$ac_cv_have_decl_fdopendir" = x""yes; then :
21177 ac_have_decl=1
21178 else
21179 ac_have_decl=0
21182 cat >>confdefs.h <<_ACEOF
21183 #define HAVE_DECL_FDOPENDIR $ac_have_decl
21184 _ACEOF
21185 if test $ac_have_decl = 1; then :
21187 else
21188 HAVE_DECL_FDOPENDIR=0
21192 if test $ac_cv_func_fdopendir = no; then
21193 HAVE_FDOPENDIR=0
21194 else
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
21196 $as_echo_n "checking whether fdopendir works... " >&6; }
21197 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
21198 $as_echo_n "(cached) " >&6
21199 else
21200 if test "$cross_compiling" = yes; then :
21201 case "$host_os" in
21202 # Guess yes on glibc systems.
21203 *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
21204 # If we don't know, assume the worst.
21205 *) gl_cv_func_fdopendir_works="guessing no" ;;
21206 esac
21208 else
21209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21210 /* end confdefs.h. */
21212 #include <dirent.h>
21213 #include <fcntl.h>
21214 #include <unistd.h>
21215 #if !HAVE_DECL_FDOPENDIR
21216 extern
21217 # ifdef __cplusplus
21219 # endif
21220 DIR *fdopendir (int);
21221 #endif
21224 main ()
21226 int result = 0;
21227 int fd = open ("conftest.c", O_RDONLY);
21228 if (fd < 0) result |= 1;
21229 if (fdopendir (fd)) result |= 2;
21230 if (close (fd)) result |= 4;
21231 return result;
21233 return 0;
21235 _ACEOF
21236 if ac_fn_c_try_run "$LINENO"; then :
21237 gl_cv_func_fdopendir_works=yes
21238 else
21239 gl_cv_func_fdopendir_works=no
21241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21242 conftest.$ac_objext conftest.beam conftest.$ac_ext
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
21247 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
21248 case "$gl_cv_func_fdopendir_works" in
21249 *yes) ;;
21251 REPLACE_FDOPENDIR=1
21253 esac
21256 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
21265 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
21273 GNULIB_FDOPENDIR=1
21281 cat >>confdefs.h <<_ACEOF
21282 #define GNULIB_FDOPENDIR 1
21283 _ACEOF
21293 fp_headers='
21294 # include <stdio.h>
21295 # if HAVE_STDIO_EXT_H
21296 # include <stdio_ext.h>
21297 # endif
21299 ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
21301 if test "x$ac_cv_have_decl___fpending" = x""yes; then :
21302 ac_have_decl=1
21303 else
21304 ac_have_decl=0
21307 cat >>confdefs.h <<_ACEOF
21308 #define HAVE_DECL___FPENDING $ac_have_decl
21309 _ACEOF
21312 if test $ac_cv_func___fpending = no; then
21321 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
21325 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
21326 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
21327 $as_echo_n "(cached) " >&6
21328 else
21330 for ac_expr in \
21332 '# glibc2' \
21333 'fp->_IO_write_ptr - fp->_IO_write_base' \
21335 '# traditional Unix' \
21336 'fp->_ptr - fp->_base' \
21338 '# BSD' \
21339 'fp->_p - fp->_bf._base' \
21341 '# SCO, Unixware' \
21342 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
21344 '# QNX' \
21345 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
21347 '# old glibc?' \
21348 'fp->__bufp - fp->__buffer' \
21350 '# old glibc iostream?' \
21351 'fp->_pptr - fp->_pbase' \
21353 '# emx+gcc' \
21354 'fp->_ptr - fp->_buffer' \
21356 '# Minix' \
21357 'fp->_ptr - fp->_buf' \
21359 '# Plan9' \
21360 'fp->wp - fp->buf' \
21362 '# VMS' \
21363 '(*fp)->_ptr - (*fp)->_base' \
21365 '# e.g., DGUX R4.11; the info is not available' \
21367 ; do
21369 # Skip each embedded comment.
21370 case "$ac_expr" in '#'*) continue;; esac
21372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21373 /* end confdefs.h. */
21374 #include <stdio.h>
21376 main ()
21378 FILE *fp = stdin; (void) ($ac_expr);
21380 return 0;
21382 _ACEOF
21383 if ac_fn_c_try_compile "$LINENO"; then :
21384 fp_done=yes
21387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21388 test "$fp_done" = yes && break
21389 done
21391 ac_cv_sys_pending_output_n_bytes=$ac_expr
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
21396 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
21398 cat >>confdefs.h <<_ACEOF
21399 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
21400 _ACEOF
21410 if test $ac_cv_func_fstatat = no; then
21411 HAVE_FSTATAT=0
21412 else
21413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
21414 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
21415 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
21416 $as_echo_n "(cached) " >&6
21417 else
21418 if test "$cross_compiling" = yes; then :
21419 case "$host_os" in
21420 aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
21421 *) gl_cv_func_fstatat_zero_flag="guessing yes";;
21422 esac
21424 else
21425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21426 /* end confdefs.h. */
21428 #include <fcntl.h>
21429 #include <sys/stat.h>
21431 main (void)
21433 struct stat a;
21434 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
21437 _ACEOF
21438 if ac_fn_c_try_run "$LINENO"; then :
21439 gl_cv_func_fstatat_zero_flag=yes
21440 else
21441 gl_cv_func_fstatat_zero_flag=no
21443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21444 conftest.$ac_objext conftest.beam conftest.$ac_ext
21449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
21450 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
21452 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
21453 *yes+*yes) ;;
21454 *) REPLACE_FSTATAT=1
21455 case $gl_cv_func_fstatat_zero_flag in
21456 *yes)
21458 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
21461 esac
21463 esac
21466 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
21475 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
21483 GNULIB_FSTATAT=1
21491 # Persuade glibc <stdlib.h> to declare getloadavg().
21494 gl_save_LIBS=$LIBS
21496 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
21497 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
21498 HAVE_GETLOADAVG=1
21499 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
21500 if test "x$ac_cv_func_getloadavg" = x""yes; then :
21502 else
21503 gl_func_getloadavg_done=no
21505 # Some systems with -lutil have (and need) -lkvm as well, some do not.
21506 # On Solaris, -lkvm requires nlist from -lelf, so check that first
21507 # to get the right answer into the cache.
21508 # For kstat on solaris, we need to test for libelf and libkvm to force the
21509 # definition of SVR4 below.
21510 if test $gl_func_getloadavg_done = no; then
21511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
21512 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
21513 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
21514 $as_echo_n "(cached) " >&6
21515 else
21516 ac_check_lib_save_LIBS=$LIBS
21517 LIBS="-lelf $LIBS"
21518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21519 /* end confdefs.h. */
21521 /* Override any GCC internal prototype to avoid an error.
21522 Use char because int might match the return type of a GCC
21523 builtin and then its argument prototype would still apply. */
21524 #ifdef __cplusplus
21525 extern "C"
21526 #endif
21527 char elf_begin ();
21529 main ()
21531 return elf_begin ();
21533 return 0;
21535 _ACEOF
21536 if ac_fn_c_try_link "$LINENO"; then :
21537 ac_cv_lib_elf_elf_begin=yes
21538 else
21539 ac_cv_lib_elf_elf_begin=no
21541 rm -f core conftest.err conftest.$ac_objext \
21542 conftest$ac_exeext conftest.$ac_ext
21543 LIBS=$ac_check_lib_save_LIBS
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
21546 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
21547 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
21548 LIBS="-lelf $LIBS"
21551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
21552 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
21553 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
21554 $as_echo_n "(cached) " >&6
21555 else
21556 ac_check_lib_save_LIBS=$LIBS
21557 LIBS="-lkvm $LIBS"
21558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21559 /* end confdefs.h. */
21561 /* Override any GCC internal prototype to avoid an error.
21562 Use char because int might match the return type of a GCC
21563 builtin and then its argument prototype would still apply. */
21564 #ifdef __cplusplus
21565 extern "C"
21566 #endif
21567 char kvm_open ();
21569 main ()
21571 return kvm_open ();
21573 return 0;
21575 _ACEOF
21576 if ac_fn_c_try_link "$LINENO"; then :
21577 ac_cv_lib_kvm_kvm_open=yes
21578 else
21579 ac_cv_lib_kvm_kvm_open=no
21581 rm -f core conftest.err conftest.$ac_objext \
21582 conftest$ac_exeext conftest.$ac_ext
21583 LIBS=$ac_check_lib_save_LIBS
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
21586 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
21587 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
21588 LIBS="-lkvm $LIBS"
21591 # Check for the 4.4BSD definition of getloadavg.
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
21593 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
21594 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
21595 $as_echo_n "(cached) " >&6
21596 else
21597 ac_check_lib_save_LIBS=$LIBS
21598 LIBS="-lutil $LIBS"
21599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21600 /* end confdefs.h. */
21602 /* Override any GCC internal prototype to avoid an error.
21603 Use char because int might match the return type of a GCC
21604 builtin and then its argument prototype would still apply. */
21605 #ifdef __cplusplus
21606 extern "C"
21607 #endif
21608 char getloadavg ();
21610 main ()
21612 return getloadavg ();
21614 return 0;
21616 _ACEOF
21617 if ac_fn_c_try_link "$LINENO"; then :
21618 ac_cv_lib_util_getloadavg=yes
21619 else
21620 ac_cv_lib_util_getloadavg=no
21622 rm -f core conftest.err conftest.$ac_objext \
21623 conftest$ac_exeext conftest.$ac_ext
21624 LIBS=$ac_check_lib_save_LIBS
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
21627 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
21628 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
21629 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
21634 if test $gl_func_getloadavg_done = no; then
21635 # There is a commonly available library for RS/6000 AIX.
21636 # Since it is not a standard part of AIX, it might be installed locally.
21637 gl_getloadavg_LIBS=$LIBS
21638 LIBS="-L/usr/local/lib $LIBS"
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
21640 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
21641 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
21642 $as_echo_n "(cached) " >&6
21643 else
21644 ac_check_lib_save_LIBS=$LIBS
21645 LIBS="-lgetloadavg $LIBS"
21646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21647 /* end confdefs.h. */
21649 /* Override any GCC internal prototype to avoid an error.
21650 Use char because int might match the return type of a GCC
21651 builtin and then its argument prototype would still apply. */
21652 #ifdef __cplusplus
21653 extern "C"
21654 #endif
21655 char getloadavg ();
21657 main ()
21659 return getloadavg ();
21661 return 0;
21663 _ACEOF
21664 if ac_fn_c_try_link "$LINENO"; then :
21665 ac_cv_lib_getloadavg_getloadavg=yes
21666 else
21667 ac_cv_lib_getloadavg_getloadavg=no
21669 rm -f core conftest.err conftest.$ac_objext \
21670 conftest$ac_exeext conftest.$ac_ext
21671 LIBS=$ac_check_lib_save_LIBS
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
21674 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
21675 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
21676 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
21677 else
21678 LIBS=$gl_getloadavg_LIBS
21683 # Set up the replacement function if necessary.
21684 if test $gl_func_getloadavg_done = no; then
21685 HAVE_GETLOADAVG=0
21687 # Solaris has libkstat which does not require root.
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
21689 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
21690 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
21691 $as_echo_n "(cached) " >&6
21692 else
21693 ac_check_lib_save_LIBS=$LIBS
21694 LIBS="-lkstat $LIBS"
21695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21696 /* end confdefs.h. */
21698 /* Override any GCC internal prototype to avoid an error.
21699 Use char because int might match the return type of a GCC
21700 builtin and then its argument prototype would still apply. */
21701 #ifdef __cplusplus
21702 extern "C"
21703 #endif
21704 char kstat_open ();
21706 main ()
21708 return kstat_open ();
21710 return 0;
21712 _ACEOF
21713 if ac_fn_c_try_link "$LINENO"; then :
21714 ac_cv_lib_kstat_kstat_open=yes
21715 else
21716 ac_cv_lib_kstat_kstat_open=no
21718 rm -f core conftest.err conftest.$ac_objext \
21719 conftest$ac_exeext conftest.$ac_ext
21720 LIBS=$ac_check_lib_save_LIBS
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
21723 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
21724 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
21725 cat >>confdefs.h <<_ACEOF
21726 #define HAVE_LIBKSTAT 1
21727 _ACEOF
21729 LIBS="-lkstat $LIBS"
21733 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
21735 # AIX has libperfstat which does not require root
21736 if test $gl_func_getloadavg_done = no; then
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
21738 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
21739 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
21740 $as_echo_n "(cached) " >&6
21741 else
21742 ac_check_lib_save_LIBS=$LIBS
21743 LIBS="-lperfstat $LIBS"
21744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21745 /* end confdefs.h. */
21747 /* Override any GCC internal prototype to avoid an error.
21748 Use char because int might match the return type of a GCC
21749 builtin and then its argument prototype would still apply. */
21750 #ifdef __cplusplus
21751 extern "C"
21752 #endif
21753 char perfstat_cpu_total ();
21755 main ()
21757 return perfstat_cpu_total ();
21759 return 0;
21761 _ACEOF
21762 if ac_fn_c_try_link "$LINENO"; then :
21763 ac_cv_lib_perfstat_perfstat_cpu_total=yes
21764 else
21765 ac_cv_lib_perfstat_perfstat_cpu_total=no
21767 rm -f core conftest.err conftest.$ac_objext \
21768 conftest$ac_exeext conftest.$ac_ext
21769 LIBS=$ac_check_lib_save_LIBS
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
21772 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
21773 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
21774 cat >>confdefs.h <<_ACEOF
21775 #define HAVE_LIBPERFSTAT 1
21776 _ACEOF
21778 LIBS="-lperfstat $LIBS"
21782 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
21785 if test $gl_func_getloadavg_done = no; then
21786 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
21787 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
21788 gl_func_getloadavg_done=yes
21790 $as_echo "#define DGUX 1" >>confdefs.h
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
21793 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
21794 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
21795 $as_echo_n "(cached) " >&6
21796 else
21797 ac_check_lib_save_LIBS=$LIBS
21798 LIBS="-ldgc $LIBS"
21799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21800 /* end confdefs.h. */
21802 /* Override any GCC internal prototype to avoid an error.
21803 Use char because int might match the return type of a GCC
21804 builtin and then its argument prototype would still apply. */
21805 #ifdef __cplusplus
21806 extern "C"
21807 #endif
21808 char dg_sys_info ();
21810 main ()
21812 return dg_sys_info ();
21814 return 0;
21816 _ACEOF
21817 if ac_fn_c_try_link "$LINENO"; then :
21818 ac_cv_lib_dgc_dg_sys_info=yes
21819 else
21820 ac_cv_lib_dgc_dg_sys_info=no
21822 rm -f core conftest.err conftest.$ac_objext \
21823 conftest$ac_exeext conftest.$ac_ext
21824 LIBS=$ac_check_lib_save_LIBS
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
21827 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
21828 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
21829 cat >>confdefs.h <<_ACEOF
21830 #define HAVE_LIBDGC 1
21831 _ACEOF
21833 LIBS="-ldgc $LIBS"
21845 if test "x$gl_save_LIBS" = x; then
21846 GETLOADAVG_LIBS=$LIBS
21847 else
21848 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
21850 LIBS=$gl_save_LIBS
21853 # Test whether the system declares getloadavg. Solaris has the function
21854 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
21855 for ac_header in sys/loadavg.h
21856 do :
21857 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
21858 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
21859 cat >>confdefs.h <<_ACEOF
21860 #define HAVE_SYS_LOADAVG_H 1
21861 _ACEOF
21865 done
21867 if test $ac_cv_header_sys_loadavg_h = yes; then
21868 HAVE_SYS_LOADAVG_H=1
21869 else
21870 HAVE_SYS_LOADAVG_H=0
21872 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
21873 # include <sys/loadavg.h>
21874 #endif
21875 #include <stdlib.h>
21877 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
21879 else
21880 HAVE_DECL_GETLOADAVG=0
21884 if test $HAVE_GETLOADAVG = 0; then
21893 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
21896 # Figure out what our getloadavg.c needs.
21900 # On HPUX9, an unprivileged user can get load averages this way.
21901 if test $gl_func_getloadavg_done = no; then
21902 for ac_func in pstat_getdynamic
21903 do :
21904 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
21905 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
21906 cat >>confdefs.h <<_ACEOF
21907 #define HAVE_PSTAT_GETDYNAMIC 1
21908 _ACEOF
21909 gl_func_getloadavg_done=yes
21911 done
21915 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
21916 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
21917 # Irix 4.0.5F has the header but not the library.
21918 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
21919 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
21920 gl_func_getloadavg_done=yes
21922 $as_echo "#define SVR4 1" >>confdefs.h
21926 if test $gl_func_getloadavg_done = no; then
21927 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
21928 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
21929 gl_func_getloadavg_done=yes
21931 $as_echo "#define UMAX 1" >>confdefs.h
21934 $as_echo "#define UMAX4_3 1" >>confdefs.h
21941 if test $gl_func_getloadavg_done = no; then
21942 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
21943 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
21944 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
21951 if test $gl_func_getloadavg_done = no; then
21952 for ac_header in mach/mach.h
21953 do :
21954 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
21955 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
21956 cat >>confdefs.h <<_ACEOF
21957 #define HAVE_MACH_MACH_H 1
21958 _ACEOF
21962 done
21966 for ac_header in nlist.h
21967 do :
21968 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
21969 if test "x$ac_cv_header_nlist_h" = x""yes; then :
21970 cat >>confdefs.h <<_ACEOF
21971 #define HAVE_NLIST_H 1
21972 _ACEOF
21973 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
21975 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
21977 cat >>confdefs.h <<_ACEOF
21978 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
21979 _ACEOF
21984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21985 /* end confdefs.h. */
21986 #include <nlist.h>
21988 main ()
21990 struct nlist x;
21991 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
21992 x.n_un.n_name = "";
21993 #else
21994 x.n_name = "";
21995 #endif
21997 return 0;
21999 _ACEOF
22000 if ac_fn_c_try_link "$LINENO"; then :
22002 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
22005 rm -f core conftest.err conftest.$ac_objext \
22006 conftest$ac_exeext conftest.$ac_ext
22010 done
22018 GNULIB_GETLOADAVG=1
22029 if test $REPLACE_GETOPT = 1; then
22038 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
22048 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
22053 GNULIB_GL_UNISTD_H_GETOPT=1
22062 REPLACE_GETOPT=0
22063 if test -n "$gl_replace_getopt"; then
22064 REPLACE_GETOPT=1
22067 if test $REPLACE_GETOPT = 1; then
22069 GETOPT_H=getopt.h
22071 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
22077 if test $REPLACE_GETOPT = 1; then
22086 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
22096 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
22101 GNULIB_GL_UNISTD_H_GETOPT=1
22115 gl_gettimeofday_timezone=void
22116 if test $ac_cv_func_gettimeofday != yes; then
22117 HAVE_GETTIMEOFDAY=0
22118 else
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
22123 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
22124 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
22125 $as_echo_n "(cached) " >&6
22126 else
22127 if test "$cross_compiling" = yes; then :
22128 # When cross-compiling:
22129 case "$host_os" in
22130 # Guess all is fine on glibc systems.
22131 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
22132 # If we don't know, assume the worst.
22133 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
22134 esac
22136 else
22137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22138 /* end confdefs.h. */
22139 #include <string.h>
22140 #include <sys/time.h>
22141 #include <time.h>
22142 #include <stdlib.h>
22145 main ()
22148 time_t t = 0;
22149 struct tm *lt;
22150 struct tm saved_lt;
22151 struct timeval tv;
22152 lt = localtime (&t);
22153 saved_lt = *lt;
22154 gettimeofday (&tv, NULL);
22155 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
22158 return 0;
22160 _ACEOF
22161 if ac_fn_c_try_run "$LINENO"; then :
22162 gl_cv_func_gettimeofday_clobber=no
22163 else
22164 gl_cv_func_gettimeofday_clobber=yes
22166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22167 conftest.$ac_objext conftest.beam conftest.$ac_ext
22171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
22172 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
22174 case "$gl_cv_func_gettimeofday_clobber" in
22175 *yes)
22176 REPLACE_GETTIMEOFDAY=1
22179 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
22182 $as_echo "#define localtime rpl_localtime" >>confdefs.h
22186 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
22189 esac
22191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
22192 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
22193 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
22194 $as_echo_n "(cached) " >&6
22195 else
22196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22197 /* end confdefs.h. */
22198 #include <sys/time.h>
22199 struct timeval c;
22200 int gettimeofday (struct timeval *restrict, void *restrict);
22203 main ()
22205 /* glibc uses struct timezone * rather than the POSIX void *
22206 if _GNU_SOURCE is defined. However, since the only portable
22207 use of gettimeofday uses NULL as the second parameter, and
22208 since the glibc definition is actually more typesafe, it is
22209 not worth wrapping this to get a compliant signature. */
22210 int (*f) (struct timeval *restrict, void *restrict)
22211 = gettimeofday;
22212 int x = f (&c, 0);
22213 return !(x | c.tv_sec | c.tv_usec);
22216 return 0;
22218 _ACEOF
22219 if ac_fn_c_try_compile "$LINENO"; then :
22220 gl_cv_func_gettimeofday_posix_signature=yes
22221 else
22222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22223 /* end confdefs.h. */
22224 #include <sys/time.h>
22225 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
22228 main ()
22232 return 0;
22234 _ACEOF
22235 if ac_fn_c_try_compile "$LINENO"; then :
22236 gl_cv_func_gettimeofday_posix_signature=almost
22237 else
22238 gl_cv_func_gettimeofday_posix_signature=no
22240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
22245 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
22246 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
22247 gl_gettimeofday_timezone='struct timezone'
22248 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
22249 REPLACE_GETTIMEOFDAY=1
22251 if test $REPLACE_STRUCT_TIMEVAL = 1; then
22252 REPLACE_GETTIMEOFDAY=1
22257 cat >>confdefs.h <<_ACEOF
22258 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
22259 _ACEOF
22262 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
22271 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
22274 for ac_header in sys/timeb.h
22275 do :
22276 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
22277 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
22278 cat >>confdefs.h <<_ACEOF
22279 #define HAVE_SYS_TIMEB_H 1
22280 _ACEOF
22284 done
22286 for ac_func in _ftime
22287 do :
22288 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
22289 if test "x$ac_cv_func__ftime" = x""yes; then :
22290 cat >>confdefs.h <<_ACEOF
22291 #define HAVE__FTIME 1
22292 _ACEOF
22295 done
22304 GNULIB_GETTIMEOFDAY=1
22315 if test $ac_cv_func_lstat = yes; then
22317 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
22318 *no)
22319 REPLACE_LSTAT=1
22321 esac
22322 else
22323 HAVE_LSTAT=0
22326 if test $REPLACE_LSTAT = 1; then
22335 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
22344 GNULIB_LSTAT=1
22356 if test $APPLE_UNIVERSAL_BUILD = 1; then
22357 # A universal build on Apple Mac OS X platforms.
22358 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
22359 # But we need a configuration result that is valid in both modes.
22360 gl_cv_func_working_mktime=no
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
22363 $as_echo_n "checking for working mktime... " >&6; }
22364 if test "${gl_cv_func_working_mktime+set}" = set; then :
22365 $as_echo_n "(cached) " >&6
22366 else
22367 if test "$cross_compiling" = yes; then :
22368 gl_cv_func_working_mktime=no
22369 else
22370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22371 /* end confdefs.h. */
22372 /* Test program from Paul Eggert and Tony Leneis. */
22373 #include <limits.h>
22374 #include <stdlib.h>
22375 #include <time.h>
22377 #ifdef HAVE_UNISTD_H
22378 # include <unistd.h>
22379 #endif
22381 #ifndef HAVE_ALARM
22382 # define alarm(X) /* empty */
22383 #endif
22385 /* Work around redefinition to rpl_putenv by other config tests. */
22386 #undef putenv
22388 static time_t time_t_max;
22389 static time_t time_t_min;
22391 /* Values we'll use to set the TZ environment variable. */
22392 static char *tz_strings[] = {
22393 (char *) 0, "TZ=GMT0", "TZ=JST-9",
22394 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
22396 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
22398 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
22399 Based on a problem report from Andreas Jaeger. */
22400 static int
22401 spring_forward_gap ()
22403 /* glibc (up to about 1998-10-07) failed this test. */
22404 struct tm tm;
22406 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22407 instead of "TZ=America/Vancouver" in order to detect the bug even
22408 on systems that don't support the Olson extension, or don't have the
22409 full zoneinfo tables installed. */
22410 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22412 tm.tm_year = 98;
22413 tm.tm_mon = 3;
22414 tm.tm_mday = 5;
22415 tm.tm_hour = 2;
22416 tm.tm_min = 0;
22417 tm.tm_sec = 0;
22418 tm.tm_isdst = -1;
22419 return mktime (&tm) != (time_t) -1;
22422 static int
22423 mktime_test1 (time_t now)
22425 struct tm *lt;
22426 return ! (lt = localtime (&now)) || mktime (lt) == now;
22429 static int
22430 mktime_test (time_t now)
22432 return (mktime_test1 (now)
22433 && mktime_test1 ((time_t) (time_t_max - now))
22434 && mktime_test1 ((time_t) (time_t_min + now)));
22437 static int
22438 irix_6_4_bug ()
22440 /* Based on code from Ariel Faigon. */
22441 struct tm tm;
22442 tm.tm_year = 96;
22443 tm.tm_mon = 3;
22444 tm.tm_mday = 0;
22445 tm.tm_hour = 0;
22446 tm.tm_min = 0;
22447 tm.tm_sec = 0;
22448 tm.tm_isdst = -1;
22449 mktime (&tm);
22450 return tm.tm_mon == 2 && tm.tm_mday == 31;
22453 static int
22454 bigtime_test (int j)
22456 struct tm tm;
22457 time_t now;
22458 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
22459 now = mktime (&tm);
22460 if (now != (time_t) -1)
22462 struct tm *lt = localtime (&now);
22463 if (! (lt
22464 && lt->tm_year == tm.tm_year
22465 && lt->tm_mon == tm.tm_mon
22466 && lt->tm_mday == tm.tm_mday
22467 && lt->tm_hour == tm.tm_hour
22468 && lt->tm_min == tm.tm_min
22469 && lt->tm_sec == tm.tm_sec
22470 && lt->tm_yday == tm.tm_yday
22471 && lt->tm_wday == tm.tm_wday
22472 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
22473 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
22474 return 0;
22476 return 1;
22479 static int
22480 year_2050_test ()
22482 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
22483 ignoring leap seconds. */
22484 unsigned long int answer = 2527315200UL;
22486 struct tm tm;
22487 time_t t;
22488 tm.tm_year = 2050 - 1900;
22489 tm.tm_mon = 2 - 1;
22490 tm.tm_mday = 1;
22491 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
22492 tm.tm_isdst = -1;
22494 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22495 instead of "TZ=America/Vancouver" in order to detect the bug even
22496 on systems that don't support the Olson extension, or don't have the
22497 full zoneinfo tables installed. */
22498 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22500 t = mktime (&tm);
22502 /* Check that the result is either a failure, or close enough
22503 to the correct answer that we can assume the discrepancy is
22504 due to leap seconds. */
22505 return (t == (time_t) -1
22506 || (0 < t && answer - 120 <= t && t <= answer + 120));
22510 main ()
22512 int result = 0;
22513 time_t t, delta;
22514 int i, j;
22515 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
22516 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
22518 /* This test makes some buggy mktime implementations loop.
22519 Give up after 60 seconds; a mktime slower than that
22520 isn't worth using anyway. */
22521 alarm (60);
22523 time_t_max = (! time_t_signed
22524 ? (time_t) -1
22525 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
22526 * 2 + 1));
22527 time_t_min = (! time_t_signed
22528 ? (time_t) 0
22529 : time_t_signed_magnitude
22530 ? ~ (time_t) 0
22531 : ~ time_t_max);
22533 delta = time_t_max / 997; /* a suitable prime number */
22534 for (i = 0; i < N_STRINGS; i++)
22536 if (tz_strings[i])
22537 putenv (tz_strings[i]);
22539 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
22540 if (! mktime_test (t))
22541 result |= 1;
22542 if ((result & 2) == 0
22543 && ! (mktime_test ((time_t) 1)
22544 && mktime_test ((time_t) (60 * 60))
22545 && mktime_test ((time_t) (60 * 60 * 24))))
22546 result |= 2;
22548 for (j = 1; (result & 4) == 0; j <<= 1)
22550 if (! bigtime_test (j))
22551 result |= 4;
22552 if (INT_MAX / 2 < j)
22553 break;
22555 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
22556 result |= 8;
22558 if (! irix_6_4_bug ())
22559 result |= 16;
22560 if (! spring_forward_gap ())
22561 result |= 32;
22562 if (! year_2050_test ())
22563 result |= 64;
22564 return result;
22566 _ACEOF
22567 if ac_fn_c_try_run "$LINENO"; then :
22568 gl_cv_func_working_mktime=yes
22569 else
22570 gl_cv_func_working_mktime=no
22572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22573 conftest.$ac_objext conftest.beam conftest.$ac_ext
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
22579 $as_echo "$gl_cv_func_working_mktime" >&6; }
22581 if test $gl_cv_func_working_mktime = no; then
22582 REPLACE_MKTIME=1
22583 else
22584 REPLACE_MKTIME=0
22587 if test $REPLACE_MKTIME = 1; then
22596 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
22605 GNULIB_MKTIME=1
22617 if test $ac_cv_func_pselect = yes; then
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
22619 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
22620 if test "${gl_cv_sig_pselect+set}" = set; then :
22621 $as_echo_n "(cached) " >&6
22622 else
22623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22624 /* end confdefs.h. */
22625 #include <sys/select.h>
22628 main ()
22630 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
22631 struct timespec const *restrict,
22632 sigset_t const *restrict) = pselect;
22633 return !p;
22635 return 0;
22637 _ACEOF
22638 if ac_fn_c_try_link "$LINENO"; then :
22639 gl_cv_sig_pselect=yes
22640 else
22641 gl_cv_sig_pselect=no
22643 rm -f core conftest.err conftest.$ac_objext \
22644 conftest$ac_exeext conftest.$ac_ext
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
22647 $as_echo "$gl_cv_sig_pselect" >&6; }
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
22650 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
22651 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
22652 $as_echo_n "(cached) " >&6
22653 else
22655 if test "$cross_compiling" = yes; then :
22657 case "$host_os" in
22658 # Guess yes on glibc systems.
22659 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
22660 # If we don't know, assume the worst.
22661 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
22662 esac
22664 else
22665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22666 /* end confdefs.h. */
22668 #include <sys/types.h>
22669 #include <sys/time.h>
22670 #if HAVE_SYS_SELECT_H
22671 # include <sys/select.h>
22672 #endif
22673 #include <unistd.h>
22674 #include <errno.h>
22677 main ()
22680 fd_set set;
22681 dup2(0, 16);
22682 FD_ZERO(&set);
22683 FD_SET(16, &set);
22684 close(16);
22685 struct timespec timeout;
22686 timeout.tv_sec = 0;
22687 timeout.tv_nsec = 5000;
22688 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
22691 return 0;
22693 _ACEOF
22694 if ac_fn_c_try_run "$LINENO"; then :
22695 gl_cv_func_pselect_detects_ebadf=yes
22696 else
22697 gl_cv_func_pselect_detects_ebadf=no
22699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22700 conftest.$ac_objext conftest.beam conftest.$ac_ext
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
22706 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
22707 case $gl_cv_func_pselect_detects_ebadf in
22708 *yes) ;;
22709 *) REPLACE_PSELECT=1 ;;
22710 esac
22713 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
22714 REPLACE_PSELECT=1
22717 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
22726 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
22734 GNULIB_PSELECT=1
22744 LIB_PTHREAD_SIGMASK=
22749 if test "$gl_threads_api" = posix; then
22750 if test $ac_cv_func_pthread_sigmask = yes; then
22752 else
22753 if test -n "$LIBMULTITHREAD"; then
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
22755 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
22756 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
22757 $as_echo_n "(cached) " >&6
22758 else
22759 gl_save_LIBS="$LIBS"
22760 LIBS="$LIBS $LIBMULTITHREAD"
22761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22762 /* end confdefs.h. */
22763 #include <pthread.h>
22764 #include <signal.h>
22767 main ()
22769 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
22771 return 0;
22774 _ACEOF
22775 if ac_fn_c_try_link "$LINENO"; then :
22776 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
22777 else
22778 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
22780 rm -f core conftest.err conftest.$ac_objext \
22781 conftest$ac_exeext conftest.$ac_ext
22782 LIBS="$gl_save_LIBS"
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
22786 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
22787 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
22788 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
22789 else
22790 HAVE_PTHREAD_SIGMASK=0
22792 else
22793 HAVE_PTHREAD_SIGMASK=0
22796 else
22797 if test $ac_cv_func_pthread_sigmask = yes; then
22798 REPLACE_PTHREAD_SIGMASK=1
22799 else
22800 HAVE_PTHREAD_SIGMASK=0
22807 if test $HAVE_PTHREAD_SIGMASK = 1; then
22810 if test -z "$LIB_PTHREAD_SIGMASK"; then
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
22812 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
22813 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
22814 $as_echo_n "(cached) " >&6
22815 else
22817 if test "$cross_compiling" = yes; then :
22819 case "$host_os" in
22820 freebsd* | hpux* | solaris | solaris2.[2-9]*)
22821 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
22823 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
22824 esac
22826 else
22827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22828 /* end confdefs.h. */
22830 #include <pthread.h>
22831 #include <signal.h>
22832 #include <stddef.h>
22833 int main ()
22835 sigset_t set;
22836 sigemptyset (&set);
22837 return pthread_sigmask (1729, &set, NULL) != 0;
22839 _ACEOF
22840 if ac_fn_c_try_run "$LINENO"; then :
22841 gl_cv_func_pthread_sigmask_in_libc_works=no
22842 else
22843 gl_cv_func_pthread_sigmask_in_libc_works=yes
22845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22846 conftest.$ac_objext conftest.beam conftest.$ac_ext
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
22852 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
22853 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
22854 *no)
22855 REPLACE_PTHREAD_SIGMASK=1
22857 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
22860 esac
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
22864 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
22865 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
22866 $as_echo_n "(cached) " >&6
22867 else
22869 gl_save_LIBS="$LIBS"
22870 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
22871 if test "$cross_compiling" = yes; then :
22872 case "$host_os" in
22873 cygwin*)
22874 gl_cv_func_pthread_sigmask_return_works="guessing no";;
22876 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
22877 esac
22879 else
22880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22881 /* end confdefs.h. */
22883 #include <pthread.h>
22884 #include <signal.h>
22885 #include <stddef.h>
22886 int main ()
22888 sigset_t set;
22889 sigemptyset (&set);
22890 if (pthread_sigmask (1729, &set, NULL) == -1)
22891 return 1;
22892 return 0;
22894 _ACEOF
22895 if ac_fn_c_try_run "$LINENO"; then :
22896 gl_cv_func_pthread_sigmask_return_works=yes
22897 else
22898 gl_cv_func_pthread_sigmask_return_works=no
22900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22901 conftest.$ac_objext conftest.beam conftest.$ac_ext
22904 LIBS="$gl_save_LIBS"
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
22908 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
22909 case "$gl_cv_func_pthread_sigmask_return_works" in
22910 *no)
22911 REPLACE_PTHREAD_SIGMASK=1
22913 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
22916 esac
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
22919 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
22920 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
22921 $as_echo_n "(cached) " >&6
22922 else
22924 case "$host_os" in
22925 irix*)
22926 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
22928 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
22929 esac
22930 gl_save_LIBS="$LIBS"
22931 LIBS="$LIBS $LIBMULTITHREAD"
22932 if test "$cross_compiling" = yes; then :
22934 else
22935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22936 /* end confdefs.h. */
22938 #include <pthread.h>
22939 #include <signal.h>
22940 #include <stdio.h>
22941 #include <stdlib.h>
22942 #include <unistd.h>
22943 static volatile int sigint_occurred;
22944 static void
22945 sigint_handler (int sig)
22947 sigint_occurred++;
22949 int main ()
22951 sigset_t set;
22952 int pid = getpid ();
22953 char command[80];
22954 signal (SIGINT, sigint_handler);
22955 sigemptyset (&set);
22956 sigaddset (&set, SIGINT);
22957 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
22958 return 1;
22959 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
22960 if (!(system (command) == 0))
22961 return 2;
22962 sleep (2);
22963 if (!(sigint_occurred == 0))
22964 return 3;
22965 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
22966 return 4;
22967 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
22968 return 5;
22969 return 0;
22971 _ACEOF
22972 if ac_fn_c_try_run "$LINENO"; then :
22974 else
22975 gl_cv_func_pthread_sigmask_unblock_works=no
22977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22978 conftest.$ac_objext conftest.beam conftest.$ac_ext
22981 LIBS="$gl_save_LIBS"
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
22985 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
22986 case "$gl_cv_func_pthread_sigmask_unblock_works" in
22987 *no)
22988 REPLACE_PTHREAD_SIGMASK=1
22990 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
22993 esac
22996 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
23005 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
23008 if test $HAVE_PTHREAD_SIGMASK = 1; then
23010 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
23020 GNULIB_PTHREAD_SIGMASK=1
23028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
23029 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
23030 if test "${gl_cv_func_svid_putenv+set}" = set; then :
23031 $as_echo_n "(cached) " >&6
23032 else
23033 if test "$cross_compiling" = yes; then :
23034 case "$host_os" in
23035 # Guess yes on glibc systems.
23036 *-gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
23037 # If we don't know, assume the worst.
23038 *) gl_cv_func_svid_putenv="guessing no" ;;
23039 esac
23041 else
23042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23043 /* end confdefs.h. */
23044 $ac_includes_default
23046 main ()
23049 /* Put it in env. */
23050 if (putenv ("CONFTEST_putenv=val"))
23051 return 1;
23053 /* Try to remove it. */
23054 if (putenv ("CONFTEST_putenv"))
23055 return 2;
23057 /* Make sure it was deleted. */
23058 if (getenv ("CONFTEST_putenv") != 0)
23059 return 3;
23061 return 0;
23064 return 0;
23066 _ACEOF
23067 if ac_fn_c_try_run "$LINENO"; then :
23068 gl_cv_func_svid_putenv=yes
23069 else
23070 gl_cv_func_svid_putenv=no
23072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23073 conftest.$ac_objext conftest.beam conftest.$ac_ext
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
23079 $as_echo "$gl_cv_func_svid_putenv" >&6; }
23080 case "$gl_cv_func_svid_putenv" in
23081 *yes) ;;
23083 REPLACE_PUTENV=1
23085 esac
23087 if test $REPLACE_PUTENV = 1; then
23096 gl_LIBOBJS="$gl_LIBOBJS putenv.$ac_objext"
23104 GNULIB_PUTENV=1
23113 if test $ac_cv_func_readlink = no; then
23114 HAVE_READLINK=0
23115 else
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
23117 $as_echo_n "checking whether readlink signature is correct... " >&6; }
23118 if test "${gl_cv_decl_readlink_works+set}" = set; then :
23119 $as_echo_n "(cached) " >&6
23120 else
23121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23122 /* end confdefs.h. */
23123 #include <unistd.h>
23124 /* Cause compilation failure if original declaration has wrong type. */
23125 ssize_t readlink (const char *, char *, size_t);
23127 main ()
23131 return 0;
23133 _ACEOF
23134 if ac_fn_c_try_compile "$LINENO"; then :
23135 gl_cv_decl_readlink_works=yes
23136 else
23137 gl_cv_decl_readlink_works=no
23139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
23142 $as_echo "$gl_cv_decl_readlink_works" >&6; }
23143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
23144 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
23145 if test "${gl_cv_func_readlink_works+set}" = set; then :
23146 $as_echo_n "(cached) " >&6
23147 else
23148 # We have readlink, so assume ln -s works.
23149 ln -s conftest.no-such conftest.link
23150 ln -s conftest.link conftest.lnk2
23151 if test "$cross_compiling" = yes; then :
23152 case "$host_os" in
23153 # Guess yes on glibc systems.
23154 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
23155 # If we don't know, assume the worst.
23156 *) gl_cv_func_readlink_works="guessing no" ;;
23157 esac
23159 else
23160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23161 /* end confdefs.h. */
23162 #include <unistd.h>
23165 main ()
23167 char buf[20];
23168 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
23170 return 0;
23172 _ACEOF
23173 if ac_fn_c_try_run "$LINENO"; then :
23174 gl_cv_func_readlink_works=yes
23175 else
23176 gl_cv_func_readlink_works=no
23178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23179 conftest.$ac_objext conftest.beam conftest.$ac_ext
23182 rm -f conftest.link conftest.lnk2
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
23185 $as_echo "$gl_cv_func_readlink_works" >&6; }
23186 case "$gl_cv_func_readlink_works" in
23187 *yes)
23188 if test "$gl_cv_decl_readlink_works" != yes; then
23189 REPLACE_READLINK=1
23194 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
23196 REPLACE_READLINK=1
23198 esac
23201 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
23210 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
23221 GNULIB_READLINK=1
23231 if test $ac_cv_func_readlinkat = no; then
23232 HAVE_READLINKAT=0
23235 if test $HAVE_READLINKAT = 0; then
23244 gl_LIBOBJS="$gl_LIBOBJS readlinkat.$ac_objext"
23252 GNULIB_READLINKAT=1
23259 for ac_func in sig2str
23260 do :
23261 ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
23262 if test "x$ac_cv_func_sig2str" = x""yes; then :
23263 cat >>confdefs.h <<_ACEOF
23264 #define HAVE_SIG2STR 1
23265 _ACEOF
23268 done
23271 if test $ac_cv_func_sig2str = no; then
23280 gl_LIBOBJS="$gl_LIBOBJS sig2str.$ac_objext"
23297 if test $gl_cv_have_include_next = yes; then
23298 gl_cv_next_signal_h='<'signal.h'>'
23299 else
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
23301 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
23302 if test "${gl_cv_next_signal_h+set}" = set; then :
23303 $as_echo_n "(cached) " >&6
23304 else
23306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23307 /* end confdefs.h. */
23308 #include <signal.h>
23310 _ACEOF
23311 case "$host_os" in
23312 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23313 *) gl_absname_cpp="$ac_cpp" ;;
23314 esac
23316 case "$host_os" in
23317 mingw*)
23318 gl_dirsep_regex='[/\\]'
23321 gl_dirsep_regex='\/'
23323 esac
23324 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23326 gl_header_literal_regex=`echo 'signal.h' \
23327 | sed -e "$gl_make_literal_regex_sed"`
23328 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23329 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23330 s|^/[^/]|//&|
23334 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23335 sed -n "$gl_absolute_header_sed"`'"'
23339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
23340 $as_echo "$gl_cv_next_signal_h" >&6; }
23342 NEXT_SIGNAL_H=$gl_cv_next_signal_h
23344 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23345 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23346 gl_next_as_first_directive='<'signal.h'>'
23347 else
23348 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23349 gl_next_as_first_directive=$gl_cv_next_signal_h
23351 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
23357 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
23358 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
23359 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
23360 #include <signal.h>
23363 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
23365 else
23366 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
23375 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
23376 #include <signal.h>
23379 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
23381 else
23382 HAVE_SIGHANDLER_T=0
23388 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
23389 /* <sys/types.h> is not needed according to POSIX, but the
23390 <sys/socket.h> in i386-unknown-freebsd4.10 and
23391 powerpc-apple-darwin5.5 required it. */
23392 #include <sys/types.h>
23393 #if HAVE_SYS_SOCKET_H
23394 # include <sys/socket.h>
23395 #elif HAVE_WS2TCPIP_H
23396 # include <ws2tcpip.h>
23397 #endif
23400 if test "x$ac_cv_type_socklen_t" = x""yes; then :
23402 else
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
23404 $as_echo_n "checking for socklen_t equivalent... " >&6; }
23405 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
23406 $as_echo_n "(cached) " >&6
23407 else
23408 # Systems have either "struct sockaddr *" or
23409 # "void *" as the second argument to getpeername
23410 gl_cv_socklen_t_equiv=
23411 for arg2 in "struct sockaddr" void; do
23412 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
23413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23414 /* end confdefs.h. */
23415 #include <sys/types.h>
23416 #include <sys/socket.h>
23418 int getpeername (int, $arg2 *, $t *);
23420 main ()
23422 $t len;
23423 getpeername (0, 0, &len);
23425 return 0;
23427 _ACEOF
23428 if ac_fn_c_try_compile "$LINENO"; then :
23429 gl_cv_socklen_t_equiv="$t"
23431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23432 test "$gl_cv_socklen_t_equiv" != "" && break
23433 done
23434 test "$gl_cv_socklen_t_equiv" != "" && break
23435 done
23439 if test "$gl_cv_socklen_t_equiv" = ""; then
23440 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
23443 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
23445 cat >>confdefs.h <<_ACEOF
23446 #define socklen_t $gl_cv_socklen_t_equiv
23447 _ACEOF
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
23453 $as_echo_n "checking for ssize_t... " >&6; }
23454 if test "${gt_cv_ssize_t+set}" = set; then :
23455 $as_echo_n "(cached) " >&6
23456 else
23457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23458 /* end confdefs.h. */
23459 #include <sys/types.h>
23461 main ()
23463 int x = sizeof (ssize_t *) + sizeof (ssize_t);
23464 return !x;
23466 return 0;
23468 _ACEOF
23469 if ac_fn_c_try_compile "$LINENO"; then :
23470 gt_cv_ssize_t=yes
23471 else
23472 gt_cv_ssize_t=no
23474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
23477 $as_echo "$gt_cv_ssize_t" >&6; }
23478 if test $gt_cv_ssize_t = no; then
23480 $as_echo "#define ssize_t int" >>confdefs.h
23488 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>
23489 #include <sys/stat.h>
23491 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
23493 cat >>confdefs.h <<_ACEOF
23494 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
23495 _ACEOF
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
23498 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
23499 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
23500 $as_echo_n "(cached) " >&6
23501 else
23502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23503 /* end confdefs.h. */
23505 #include <sys/types.h>
23506 #include <sys/stat.h>
23507 #if HAVE_SYS_TIME_H
23508 # include <sys/time.h>
23509 #endif
23510 #include <time.h>
23511 struct timespec ts;
23512 struct stat st;
23515 main ()
23518 st.st_atim = ts;
23521 return 0;
23523 _ACEOF
23524 if ac_fn_c_try_compile "$LINENO"; then :
23525 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
23526 else
23527 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
23529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
23532 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
23533 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
23535 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
23538 else
23539 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>
23540 #include <sys/stat.h>
23542 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
23544 cat >>confdefs.h <<_ACEOF
23545 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
23546 _ACEOF
23549 else
23550 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
23551 #include <sys/stat.h>
23553 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
23555 cat >>confdefs.h <<_ACEOF
23556 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
23557 _ACEOF
23560 else
23561 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>
23562 #include <sys/stat.h>
23564 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
23566 cat >>confdefs.h <<_ACEOF
23567 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
23568 _ACEOF
23583 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>
23584 #include <sys/stat.h>
23586 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
23588 cat >>confdefs.h <<_ACEOF
23589 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
23590 _ACEOF
23593 else
23594 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
23595 #include <sys/stat.h>
23597 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
23599 cat >>confdefs.h <<_ACEOF
23600 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
23601 _ACEOF
23604 else
23605 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>
23606 #include <sys/stat.h>
23608 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
23610 cat >>confdefs.h <<_ACEOF
23611 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
23612 _ACEOF
23623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
23624 $as_echo_n "checking for working stdalign.h... " >&6; }
23625 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
23626 $as_echo_n "(cached) " >&6
23627 else
23628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23629 /* end confdefs.h. */
23630 #include <stdalign.h>
23631 #include <stddef.h>
23633 /* Test that alignof yields a result consistent with offsetof.
23634 This catches GCC bug 52023
23635 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
23636 #ifdef __cplusplus
23637 template <class t> struct alignof_helper { char a; t b; };
23638 # define ao(type) offsetof (alignof_helper<type>, b)
23639 #else
23640 # define ao(type) offsetof (struct { char a; type b; }, b)
23641 #endif
23642 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
23643 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
23644 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
23646 /* Test _Alignas only on platforms where gnulib can help. */
23647 #if \
23648 (__GNUC__ || __IBMC__ || __IBMCPP__ \
23649 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
23650 int alignas (8) alignas_int = 1;
23651 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
23652 #endif
23655 main ()
23659 return 0;
23661 _ACEOF
23662 if ac_fn_c_try_compile "$LINENO"; then :
23663 gl_cv_header_working_stdalign_h=yes
23664 else
23665 gl_cv_header_working_stdalign_h=no
23667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
23670 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
23672 if test $gl_cv_header_working_stdalign_h = yes; then
23673 STDALIGN_H=''
23674 else
23675 STDALIGN_H='stdalign.h'
23679 if test -n "$STDALIGN_H"; then
23680 GL_GENERATE_STDALIGN_H_TRUE=
23681 GL_GENERATE_STDALIGN_H_FALSE='#'
23682 else
23683 GL_GENERATE_STDALIGN_H_TRUE='#'
23684 GL_GENERATE_STDALIGN_H_FALSE=
23689 STDARG_H=''
23690 NEXT_STDARG_H='<stdarg.h>'
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
23692 $as_echo_n "checking for va_copy... " >&6; }
23693 if test "${gl_cv_func_va_copy+set}" = set; then :
23694 $as_echo_n "(cached) " >&6
23695 else
23697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23698 /* end confdefs.h. */
23699 #include <stdarg.h>
23701 main ()
23704 #ifndef va_copy
23705 void (*func) (va_list, va_list) = va_copy;
23706 #endif
23709 return 0;
23711 _ACEOF
23712 if ac_fn_c_try_compile "$LINENO"; then :
23713 gl_cv_func_va_copy=yes
23714 else
23715 gl_cv_func_va_copy=no
23717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
23721 $as_echo "$gl_cv_func_va_copy" >&6; }
23722 if test $gl_cv_func_va_copy = no; then
23723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23724 /* end confdefs.h. */
23725 #if defined _AIX && !defined __GNUC__
23726 AIX vaccine
23727 #endif
23729 _ACEOF
23730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23731 $EGREP "vaccine" >/dev/null 2>&1; then :
23732 gl_aixcc=yes
23733 else
23734 gl_aixcc=no
23736 rm -f conftest*
23738 if test $gl_aixcc = yes; then
23739 STDARG_H=stdarg.h
23748 if test $gl_cv_have_include_next = yes; then
23749 gl_cv_next_stdarg_h='<'stdarg.h'>'
23750 else
23751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
23752 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
23753 if test "${gl_cv_next_stdarg_h+set}" = set; then :
23754 $as_echo_n "(cached) " >&6
23755 else
23757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23758 /* end confdefs.h. */
23759 #include <stdarg.h>
23761 _ACEOF
23762 case "$host_os" in
23763 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23764 *) gl_absname_cpp="$ac_cpp" ;;
23765 esac
23767 case "$host_os" in
23768 mingw*)
23769 gl_dirsep_regex='[/\\]'
23772 gl_dirsep_regex='\/'
23774 esac
23775 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23777 gl_header_literal_regex=`echo 'stdarg.h' \
23778 | sed -e "$gl_make_literal_regex_sed"`
23779 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23780 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23781 s|^/[^/]|//&|
23785 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23786 sed -n "$gl_absolute_header_sed"`'"'
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
23791 $as_echo "$gl_cv_next_stdarg_h" >&6; }
23793 NEXT_STDARG_H=$gl_cv_next_stdarg_h
23795 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23796 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23797 gl_next_as_first_directive='<'stdarg.h'>'
23798 else
23799 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23800 gl_next_as_first_directive=$gl_cv_next_stdarg_h
23802 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
23807 if test "$gl_cv_next_stdarg_h" = '""'; then
23808 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
23809 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
23811 else
23813 saved_as_echo_n="$as_echo_n"
23814 as_echo_n=':'
23815 if test "${gl_cv_func___va_copy+set}" = set; then :
23816 $as_echo_n "(cached) " >&6
23817 else
23819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23820 /* end confdefs.h. */
23821 #include <stdarg.h>
23823 main ()
23826 #ifndef __va_copy
23827 error, bail out
23828 #endif
23831 return 0;
23833 _ACEOF
23834 if ac_fn_c_try_compile "$LINENO"; then :
23835 gl_cv_func___va_copy=yes
23836 else
23837 gl_cv_func___va_copy=no
23839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23842 as_echo_n="$saved_as_echo_n"
23844 if test $gl_cv_func___va_copy = yes; then
23846 $as_echo "#define va_copy __va_copy" >>confdefs.h
23848 else
23851 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
23857 if test -n "$STDARG_H"; then
23858 GL_GENERATE_STDARG_H_TRUE=
23859 GL_GENERATE_STDARG_H_FALSE='#'
23860 else
23861 GL_GENERATE_STDARG_H_TRUE='#'
23862 GL_GENERATE_STDARG_H_FALSE=
23870 # Define two additional variables used in the Makefile substitution.
23872 if test "$ac_cv_header_stdbool_h" = yes; then
23873 STDBOOL_H=''
23874 else
23875 STDBOOL_H='stdbool.h'
23878 if test -n "$STDBOOL_H"; then
23879 GL_GENERATE_STDBOOL_H_TRUE=
23880 GL_GENERATE_STDBOOL_H_FALSE='#'
23881 else
23882 GL_GENERATE_STDBOOL_H_TRUE='#'
23883 GL_GENERATE_STDBOOL_H_FALSE=
23887 if test "$ac_cv_type__Bool" = yes; then
23888 HAVE__BOOL=1
23889 else
23890 HAVE__BOOL=0
23897 STDDEF_H=
23898 if test $gt_cv_c_wchar_t = no; then
23899 HAVE_WCHAR_T=0
23900 STDDEF_H=stddef.h
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23903 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23904 if test "${gl_cv_decl_null_works+set}" = set; then :
23905 $as_echo_n "(cached) " >&6
23906 else
23907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23908 /* end confdefs.h. */
23909 #include <stddef.h>
23910 int test[2 * (sizeof NULL == sizeof (void *)) -1];
23913 main ()
23917 return 0;
23919 _ACEOF
23920 if ac_fn_c_try_compile "$LINENO"; then :
23921 gl_cv_decl_null_works=yes
23922 else
23923 gl_cv_decl_null_works=no
23925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23928 $as_echo "$gl_cv_decl_null_works" >&6; }
23929 if test $gl_cv_decl_null_works = no; then
23930 REPLACE_NULL=1
23931 STDDEF_H=stddef.h
23934 if test -n "$STDDEF_H"; then
23935 GL_GENERATE_STDDEF_H_TRUE=
23936 GL_GENERATE_STDDEF_H_FALSE='#'
23937 else
23938 GL_GENERATE_STDDEF_H_TRUE='#'
23939 GL_GENERATE_STDDEF_H_FALSE=
23942 if test -n "$STDDEF_H"; then
23951 if test $gl_cv_have_include_next = yes; then
23952 gl_cv_next_stddef_h='<'stddef.h'>'
23953 else
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23955 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23956 if test "${gl_cv_next_stddef_h+set}" = set; then :
23957 $as_echo_n "(cached) " >&6
23958 else
23960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23961 /* end confdefs.h. */
23962 #include <stddef.h>
23964 _ACEOF
23965 case "$host_os" in
23966 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23967 *) gl_absname_cpp="$ac_cpp" ;;
23968 esac
23970 case "$host_os" in
23971 mingw*)
23972 gl_dirsep_regex='[/\\]'
23975 gl_dirsep_regex='\/'
23977 esac
23978 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23980 gl_header_literal_regex=`echo 'stddef.h' \
23981 | sed -e "$gl_make_literal_regex_sed"`
23982 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23983 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23984 s|^/[^/]|//&|
23988 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23989 sed -n "$gl_absolute_header_sed"`'"'
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23994 $as_echo "$gl_cv_next_stddef_h" >&6; }
23996 NEXT_STDDEF_H=$gl_cv_next_stddef_h
23998 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23999 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24000 gl_next_as_first_directive='<'stddef.h'>'
24001 else
24002 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24003 gl_next_as_first_directive=$gl_cv_next_stddef_h
24005 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
24023 if test $gl_cv_have_include_next = yes; then
24024 gl_cv_next_stdio_h='<'stdio.h'>'
24025 else
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
24027 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
24028 if test "${gl_cv_next_stdio_h+set}" = set; then :
24029 $as_echo_n "(cached) " >&6
24030 else
24032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24033 /* end confdefs.h. */
24034 #include <stdio.h>
24036 _ACEOF
24037 case "$host_os" in
24038 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24039 *) gl_absname_cpp="$ac_cpp" ;;
24040 esac
24042 case "$host_os" in
24043 mingw*)
24044 gl_dirsep_regex='[/\\]'
24047 gl_dirsep_regex='\/'
24049 esac
24050 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24052 gl_header_literal_regex=`echo 'stdio.h' \
24053 | sed -e "$gl_make_literal_regex_sed"`
24054 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24055 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24056 s|^/[^/]|//&|
24060 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24061 sed -n "$gl_absolute_header_sed"`'"'
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
24066 $as_echo "$gl_cv_next_stdio_h" >&6; }
24068 NEXT_STDIO_H=$gl_cv_next_stdio_h
24070 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24071 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24072 gl_next_as_first_directive='<'stdio.h'>'
24073 else
24074 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24075 gl_next_as_first_directive=$gl_cv_next_stdio_h
24077 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
24083 GNULIB_FSCANF=1
24086 cat >>confdefs.h <<_ACEOF
24087 #define GNULIB_FSCANF 1
24088 _ACEOF
24091 GNULIB_SCANF=1
24094 cat >>confdefs.h <<_ACEOF
24095 #define GNULIB_SCANF 1
24096 _ACEOF
24099 GNULIB_FGETC=1
24100 GNULIB_GETC=1
24101 GNULIB_GETCHAR=1
24102 GNULIB_FGETS=1
24103 GNULIB_FREAD=1
24106 GNULIB_FPRINTF=1
24107 GNULIB_PRINTF=1
24108 GNULIB_VFPRINTF=1
24109 GNULIB_VPRINTF=1
24110 GNULIB_FPUTC=1
24111 GNULIB_PUTC=1
24112 GNULIB_PUTCHAR=1
24113 GNULIB_FPUTS=1
24114 GNULIB_PUTS=1
24115 GNULIB_FWRITE=1
24131 if test $gl_cv_have_include_next = yes; then
24132 gl_cv_next_stdlib_h='<'stdlib.h'>'
24133 else
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24135 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24136 if test "${gl_cv_next_stdlib_h+set}" = set; then :
24137 $as_echo_n "(cached) " >&6
24138 else
24140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24141 /* end confdefs.h. */
24142 #include <stdlib.h>
24144 _ACEOF
24145 case "$host_os" in
24146 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24147 *) gl_absname_cpp="$ac_cpp" ;;
24148 esac
24150 case "$host_os" in
24151 mingw*)
24152 gl_dirsep_regex='[/\\]'
24155 gl_dirsep_regex='\/'
24157 esac
24158 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24160 gl_header_literal_regex=`echo 'stdlib.h' \
24161 | sed -e "$gl_make_literal_regex_sed"`
24162 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24163 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24164 s|^/[^/]|//&|
24168 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24169 sed -n "$gl_absolute_header_sed"`'"'
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24174 $as_echo "$gl_cv_next_stdlib_h" >&6; }
24176 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
24178 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24179 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24180 gl_next_as_first_directive='<'stdlib.h'>'
24181 else
24182 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24183 gl_next_as_first_directive=$gl_cv_next_stdlib_h
24185 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
24195 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
24203 $as_echo "#define my_strftime nstrftime" >>confdefs.h
24212 if test "$ac_cv_have_decl_strtoimax" != yes; then
24213 HAVE_DECL_STRTOIMAX=0
24216 if test $ac_cv_func_strtoimax = yes; then
24217 HAVE_STRTOIMAX=1
24218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
24219 $as_echo_n "checking whether strtoimax works... " >&6; }
24220 if test "${gl_cv_func_strtoimax+set}" = set; then :
24221 $as_echo_n "(cached) " >&6
24222 else
24223 if test "$cross_compiling" = yes; then :
24224 case "$host_os" in
24225 # Guess no on AIX 5.
24226 aix5*) gl_cv_func_strtoimax="guessing no" ;;
24227 # Guess yes otherwise.
24228 *) gl_cv_func_strtoimax="guessing yes" ;;
24229 esac
24231 else
24232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24233 /* end confdefs.h. */
24235 #include <errno.h>
24236 #include <string.h>
24237 #include <inttypes.h>
24238 int main ()
24240 if (sizeof (intmax_t) > sizeof (int))
24242 const char *s = "4294967295";
24243 char *p;
24244 intmax_t res;
24245 errno = 0;
24246 res = strtoimax (s, &p, 10);
24247 if (p != s + strlen (s))
24248 return 1;
24249 if (errno != 0)
24250 return 2;
24251 if (res != (intmax_t) 65535 * (intmax_t) 65537)
24252 return 3;
24254 else
24256 const char *s = "2147483647";
24257 char *p;
24258 intmax_t res;
24259 errno = 0;
24260 res = strtoimax (s, &p, 10);
24261 if (p != s + strlen (s))
24262 return 1;
24263 if (errno != 0)
24264 return 2;
24265 if (res != 2147483647)
24266 return 3;
24268 return 0;
24271 _ACEOF
24272 if ac_fn_c_try_run "$LINENO"; then :
24273 gl_cv_func_strtoimax=yes
24274 else
24275 gl_cv_func_strtoimax=no
24277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24278 conftest.$ac_objext conftest.beam conftest.$ac_ext
24283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
24284 $as_echo "$gl_cv_func_strtoimax" >&6; }
24285 case "$gl_cv_func_strtoimax" in
24286 *no) REPLACE_STRTOIMAX=1 ;;
24287 esac
24288 else
24289 HAVE_STRTOIMAX=0
24292 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
24301 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
24304 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
24305 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
24306 ac_have_decl=1
24307 else
24308 ac_have_decl=0
24311 cat >>confdefs.h <<_ACEOF
24312 #define HAVE_DECL_STRTOLL $ac_have_decl
24313 _ACEOF
24323 GNULIB_STRTOIMAX=1
24333 if test "$ac_cv_have_decl_strtoumax" != yes; then
24334 HAVE_DECL_STRTOUMAX=0
24337 if test $ac_cv_func_strtoumax = no; then
24346 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
24349 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
24350 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
24351 ac_have_decl=1
24352 else
24353 ac_have_decl=0
24356 cat >>confdefs.h <<_ACEOF
24357 #define HAVE_DECL_STRTOULL $ac_have_decl
24358 _ACEOF
24368 GNULIB_STRTOUMAX=1
24376 if test $ac_cv_func_symlink = no; then
24377 HAVE_SYMLINK=0
24378 else
24379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
24380 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
24381 if test "${gl_cv_func_symlink_works+set}" = set; then :
24382 $as_echo_n "(cached) " >&6
24383 else
24384 if test "$cross_compiling" = yes; then :
24385 case "$host_os" in
24386 # Guess yes on glibc systems.
24387 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
24388 # If we don't know, assume the worst.
24389 *) gl_cv_func_symlink_works="guessing no" ;;
24390 esac
24392 else
24393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24394 /* end confdefs.h. */
24395 #include <unistd.h>
24398 main ()
24400 int result = 0;
24401 if (!symlink ("a", "conftest.link/"))
24402 result |= 1;
24403 if (symlink ("conftest.f", "conftest.lnk2"))
24404 result |= 2;
24405 else if (!symlink ("a", "conftest.lnk2/"))
24406 result |= 4;
24407 return result;
24410 return 0;
24412 _ACEOF
24413 if ac_fn_c_try_run "$LINENO"; then :
24414 gl_cv_func_symlink_works=yes
24415 else
24416 gl_cv_func_symlink_works=no
24418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24419 conftest.$ac_objext conftest.beam conftest.$ac_ext
24422 rm -f conftest.f conftest.link conftest.lnk2
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
24425 $as_echo "$gl_cv_func_symlink_works" >&6; }
24426 case "$gl_cv_func_symlink_works" in
24427 *yes) ;;
24429 REPLACE_SYMLINK=1
24431 esac
24434 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
24443 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
24451 GNULIB_SYMLINK=1
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
24461 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
24462 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
24463 $as_echo_n "(cached) " >&6
24464 else
24466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24467 /* end confdefs.h. */
24468 #include <sys/select.h>
24470 main ()
24472 struct timeval b;
24474 return 0;
24476 _ACEOF
24477 if ac_fn_c_try_compile "$LINENO"; then :
24478 gl_cv_header_sys_select_h_selfcontained=yes
24479 else
24480 gl_cv_header_sys_select_h_selfcontained=no
24482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24483 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
24484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24485 /* end confdefs.h. */
24486 #include <sys/select.h>
24488 main ()
24490 int memset; int bzero;
24492 return 0;
24495 _ACEOF
24496 if ac_fn_c_try_compile "$LINENO"; then :
24497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24498 /* end confdefs.h. */
24499 #include <sys/select.h>
24501 main ()
24504 #undef memset
24505 #define memset nonexistent_memset
24506 extern
24507 #ifdef __cplusplus
24509 #endif
24510 void *memset (void *, int, unsigned long);
24511 #undef bzero
24512 #define bzero nonexistent_bzero
24513 extern
24514 #ifdef __cplusplus
24516 #endif
24517 void bzero (void *, unsigned long);
24518 fd_set fds;
24519 FD_ZERO (&fds);
24522 return 0;
24525 _ACEOF
24526 if ac_fn_c_try_link "$LINENO"; then :
24528 else
24529 gl_cv_header_sys_select_h_selfcontained=no
24531 rm -f core conftest.err conftest.$ac_objext \
24532 conftest$ac_exeext conftest.$ac_ext
24535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
24540 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
24550 if test $gl_cv_have_include_next = yes; then
24551 gl_cv_next_sys_select_h='<'sys/select.h'>'
24552 else
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
24554 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
24555 if test "${gl_cv_next_sys_select_h+set}" = set; then :
24556 $as_echo_n "(cached) " >&6
24557 else
24559 if test $ac_cv_header_sys_select_h = yes; then
24562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24563 /* end confdefs.h. */
24564 #include <sys/select.h>
24566 _ACEOF
24567 case "$host_os" in
24568 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24569 *) gl_absname_cpp="$ac_cpp" ;;
24570 esac
24572 case "$host_os" in
24573 mingw*)
24574 gl_dirsep_regex='[/\\]'
24577 gl_dirsep_regex='\/'
24579 esac
24580 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24582 gl_header_literal_regex=`echo 'sys/select.h' \
24583 | sed -e "$gl_make_literal_regex_sed"`
24584 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24585 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24586 s|^/[^/]|//&|
24590 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24591 sed -n "$gl_absolute_header_sed"`'"'
24592 else
24593 gl_cv_next_sys_select_h='<'sys/select.h'>'
24598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
24599 $as_echo "$gl_cv_next_sys_select_h" >&6; }
24601 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
24603 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24604 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24605 gl_next_as_first_directive='<'sys/select.h'>'
24606 else
24607 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24608 gl_next_as_first_directive=$gl_cv_next_sys_select_h
24610 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
24615 if test $ac_cv_header_sys_select_h = yes; then
24616 HAVE_SYS_SELECT_H=1
24617 else
24618 HAVE_SYS_SELECT_H=0
24625 if test $ac_cv_header_sys_socket_h != yes; then
24626 for ac_header in winsock2.h
24627 do :
24628 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24629 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
24630 cat >>confdefs.h <<_ACEOF
24631 #define HAVE_WINSOCK2_H 1
24632 _ACEOF
24636 done
24639 if test "$ac_cv_header_winsock2_h" = yes; then
24640 HAVE_WINSOCK2_H=1
24641 UNISTD_H_HAVE_WINSOCK2_H=1
24642 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
24643 else
24644 HAVE_WINSOCK2_H=0
24666 if test $gl_cv_have_include_next = yes; then
24667 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24668 else
24669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24670 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24671 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
24672 $as_echo_n "(cached) " >&6
24673 else
24675 if test $ac_cv_header_sys_stat_h = yes; then
24678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24679 /* end confdefs.h. */
24680 #include <sys/stat.h>
24682 _ACEOF
24683 case "$host_os" in
24684 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24685 *) gl_absname_cpp="$ac_cpp" ;;
24686 esac
24688 case "$host_os" in
24689 mingw*)
24690 gl_dirsep_regex='[/\\]'
24693 gl_dirsep_regex='\/'
24695 esac
24696 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24698 gl_header_literal_regex=`echo 'sys/stat.h' \
24699 | sed -e "$gl_make_literal_regex_sed"`
24700 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24701 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24702 s|^/[^/]|//&|
24706 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24707 sed -n "$gl_absolute_header_sed"`'"'
24708 else
24709 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24715 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24717 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
24719 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24720 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24721 gl_next_as_first_directive='<'sys/stat.h'>'
24722 else
24723 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24724 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
24726 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
24738 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
24740 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
24744 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24745 #include <sys/stat.h>
24747 if test "x$ac_cv_type_nlink_t" = x""yes; then :
24749 else
24751 $as_echo "#define nlink_t int" >>confdefs.h
24772 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
24774 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
24775 ac_have_decl=1
24776 else
24777 ac_have_decl=0
24780 cat >>confdefs.h <<_ACEOF
24781 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
24782 _ACEOF
24784 if test $ac_cv_have_decl_localtime_r = no; then
24785 HAVE_DECL_LOCALTIME_R=0
24789 if test $ac_cv_func_localtime_r = yes; then
24790 HAVE_LOCALTIME_R=1
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
24792 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
24793 if test "${gl_cv_time_r_posix+set}" = set; then :
24794 $as_echo_n "(cached) " >&6
24795 else
24796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24797 /* end confdefs.h. */
24798 #include <time.h>
24800 main ()
24802 /* We don't need to append 'restrict's to the argument types,
24803 even though the POSIX signature has the 'restrict's,
24804 since C99 says they can't affect type compatibility. */
24805 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
24806 if (ptr) return 0;
24807 /* Check the return type is a pointer.
24808 On HP-UX 10 it is 'int'. */
24809 *localtime_r (0, 0);
24811 return 0;
24814 _ACEOF
24815 if ac_fn_c_try_compile "$LINENO"; then :
24816 gl_cv_time_r_posix=yes
24817 else
24818 gl_cv_time_r_posix=no
24820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
24824 $as_echo "$gl_cv_time_r_posix" >&6; }
24825 if test $gl_cv_time_r_posix = yes; then
24826 REPLACE_LOCALTIME_R=0
24827 else
24828 REPLACE_LOCALTIME_R=1
24830 else
24831 HAVE_LOCALTIME_R=0
24834 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
24843 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
24854 GNULIB_TIME_R=1
24865 LIB_TIMER_TIME=
24867 gl_saved_libs=$LIBS
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
24869 $as_echo_n "checking for library containing timer_settime... " >&6; }
24870 if test "${ac_cv_search_timer_settime+set}" = set; then :
24871 $as_echo_n "(cached) " >&6
24872 else
24873 ac_func_search_save_LIBS=$LIBS
24874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24875 /* end confdefs.h. */
24877 /* Override any GCC internal prototype to avoid an error.
24878 Use char because int might match the return type of a GCC
24879 builtin and then its argument prototype would still apply. */
24880 #ifdef __cplusplus
24881 extern "C"
24882 #endif
24883 char timer_settime ();
24885 main ()
24887 return timer_settime ();
24889 return 0;
24891 _ACEOF
24892 for ac_lib in '' rt posix4; do
24893 if test -z "$ac_lib"; then
24894 ac_res="none required"
24895 else
24896 ac_res=-l$ac_lib
24897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24899 if ac_fn_c_try_link "$LINENO"; then :
24900 ac_cv_search_timer_settime=$ac_res
24902 rm -f core conftest.err conftest.$ac_objext \
24903 conftest$ac_exeext
24904 if test "${ac_cv_search_timer_settime+set}" = set; then :
24905 break
24907 done
24908 if test "${ac_cv_search_timer_settime+set}" = set; then :
24910 else
24911 ac_cv_search_timer_settime=no
24913 rm conftest.$ac_ext
24914 LIBS=$ac_func_search_save_LIBS
24916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
24917 $as_echo "$ac_cv_search_timer_settime" >&6; }
24918 ac_res=$ac_cv_search_timer_settime
24919 if test "$ac_res" != no; then :
24920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24921 test "$ac_cv_search_timer_settime" = "none required" ||
24922 LIB_TIMER_TIME=$ac_cv_search_timer_settime
24925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24926 /* end confdefs.h. */
24928 #include <features.h>
24929 #ifdef __GNU_LIBRARY__
24930 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
24931 && !defined __UCLIBC__
24932 Thread emulation available
24933 #endif
24934 #endif
24936 _ACEOF
24937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24938 $EGREP "Thread" >/dev/null 2>&1; then :
24939 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
24941 rm -f conftest*
24943 for ac_func in timer_settime
24944 do :
24945 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
24946 if test "x$ac_cv_func_timer_settime" = x""yes; then :
24947 cat >>confdefs.h <<_ACEOF
24948 #define HAVE_TIMER_SETTIME 1
24949 _ACEOF
24952 done
24954 LIBS=$gl_saved_libs
24969 if test $gl_cv_have_include_next = yes; then
24970 gl_cv_next_unistd_h='<'unistd.h'>'
24971 else
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24973 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24974 if test "${gl_cv_next_unistd_h+set}" = set; then :
24975 $as_echo_n "(cached) " >&6
24976 else
24978 if test $ac_cv_header_unistd_h = yes; then
24981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24982 /* end confdefs.h. */
24983 #include <unistd.h>
24985 _ACEOF
24986 case "$host_os" in
24987 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24988 *) gl_absname_cpp="$ac_cpp" ;;
24989 esac
24991 case "$host_os" in
24992 mingw*)
24993 gl_dirsep_regex='[/\\]'
24996 gl_dirsep_regex='\/'
24998 esac
24999 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25001 gl_header_literal_regex=`echo 'unistd.h' \
25002 | sed -e "$gl_make_literal_regex_sed"`
25003 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25004 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25005 s|^/[^/]|//&|
25009 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25010 sed -n "$gl_absolute_header_sed"`'"'
25011 else
25012 gl_cv_next_unistd_h='<'unistd.h'>'
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25018 $as_echo "$gl_cv_next_unistd_h" >&6; }
25020 NEXT_UNISTD_H=$gl_cv_next_unistd_h
25022 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25023 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25024 gl_next_as_first_directive='<'unistd.h'>'
25025 else
25026 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25027 gl_next_as_first_directive=$gl_cv_next_unistd_h
25029 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
25034 if test $ac_cv_header_unistd_h = yes; then
25035 HAVE_UNISTD_H=1
25036 else
25037 HAVE_UNISTD_H=0
25050 if test $ac_cv_have_decl_unsetenv = no; then
25051 HAVE_DECL_UNSETENV=0
25053 for ac_func in unsetenv
25054 do :
25055 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
25056 if test "x$ac_cv_func_unsetenv" = x""yes; then :
25057 cat >>confdefs.h <<_ACEOF
25058 #define HAVE_UNSETENV 1
25059 _ACEOF
25062 done
25064 if test $ac_cv_func_unsetenv = no; then
25065 HAVE_UNSETENV=0
25066 else
25067 HAVE_UNSETENV=1
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
25069 $as_echo_n "checking for unsetenv() return type... " >&6; }
25070 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
25071 $as_echo_n "(cached) " >&6
25072 else
25073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25074 /* end confdefs.h. */
25076 #undef _BSD
25077 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
25078 #include <stdlib.h>
25079 extern
25080 #ifdef __cplusplus
25082 #endif
25083 int unsetenv (const char *name);
25086 main ()
25090 return 0;
25092 _ACEOF
25093 if ac_fn_c_try_compile "$LINENO"; then :
25094 gt_cv_func_unsetenv_ret='int'
25095 else
25096 gt_cv_func_unsetenv_ret='void'
25098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
25101 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
25102 if test $gt_cv_func_unsetenv_ret = 'void'; then
25104 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
25106 REPLACE_UNSETENV=1
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
25110 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
25111 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
25112 $as_echo_n "(cached) " >&6
25113 else
25114 if test "$cross_compiling" = yes; then :
25115 case "$host_os" in
25116 # Guess yes on glibc systems.
25117 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
25118 # If we don't know, assume the worst.
25119 *) gl_cv_func_unsetenv_works="guessing no" ;;
25120 esac
25122 else
25123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25124 /* end confdefs.h. */
25126 #include <stdlib.h>
25127 #include <errno.h>
25128 extern char **environ;
25131 main ()
25134 char entry1[] = "a=1";
25135 char entry2[] = "b=2";
25136 char *env[] = { entry1, entry2, NULL };
25137 if (putenv ((char *) "a=1")) return 1;
25138 if (putenv (entry2)) return 2;
25139 entry2[0] = 'a';
25140 unsetenv ("a");
25141 if (getenv ("a")) return 3;
25142 if (!unsetenv ("") || errno != EINVAL) return 4;
25143 entry2[0] = 'b';
25144 environ = env;
25145 if (!getenv ("a")) return 5;
25146 entry2[0] = 'a';
25147 unsetenv ("a");
25148 if (getenv ("a")) return 6;
25151 return 0;
25153 _ACEOF
25154 if ac_fn_c_try_run "$LINENO"; then :
25155 gl_cv_func_unsetenv_works=yes
25156 else
25157 gl_cv_func_unsetenv_works=no
25159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25160 conftest.$ac_objext conftest.beam conftest.$ac_ext
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
25165 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
25166 case "$gl_cv_func_unsetenv_works" in
25167 *yes) ;;
25169 REPLACE_UNSETENV=1
25171 esac
25174 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
25183 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
25195 GNULIB_UNSETENV=1
25207 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
25208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
25209 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
25210 if test "${gl_cv_func_futimesat_works+set}" = set; then :
25211 $as_echo_n "(cached) " >&6
25212 else
25213 touch conftest.file
25214 if test "$cross_compiling" = yes; then :
25215 case "$host_os" in
25216 # Guess yes on glibc systems.
25217 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
25218 # If we don't know, assume the worst.
25219 *) gl_cv_func_futimesat_works="guessing no" ;;
25220 esac
25222 else
25223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25224 /* end confdefs.h. */
25226 #include <stddef.h>
25227 #include <sys/times.h>
25228 #include <fcntl.h>
25231 main ()
25233 int fd = open ("conftest.file", O_RDWR);
25234 if (fd < 0) return 1;
25235 if (futimesat (fd, NULL, NULL)) return 2;
25238 return 0;
25240 _ACEOF
25241 if ac_fn_c_try_run "$LINENO"; then :
25242 gl_cv_func_futimesat_works=yes
25243 else
25244 gl_cv_func_futimesat_works=no
25246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25247 conftest.$ac_objext conftest.beam conftest.$ac_ext
25250 rm -f conftest.file
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
25253 $as_echo "$gl_cv_func_futimesat_works" >&6; }
25254 case "$gl_cv_func_futimesat_works" in
25255 *yes) ;;
25258 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
25261 esac
25264 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=false
25265 gl_gnulib_enabled_dosname=false
25266 gl_gnulib_enabled_euidaccess=false
25267 gl_gnulib_enabled_getgroups=false
25268 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
25269 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false
25270 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=false
25271 gl_gnulib_enabled_pathmax=false
25272 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false
25273 gl_gnulib_enabled_stat=false
25274 gl_gnulib_enabled_strtoll=false
25275 gl_gnulib_enabled_strtoull=false
25276 gl_gnulib_enabled_verify=false
25277 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false
25278 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b ()
25280 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
25289 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
25291 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=true
25294 func_gl_gnulib_m4code_dosname ()
25296 if ! $gl_gnulib_enabled_dosname; then
25297 gl_gnulib_enabled_dosname=true
25300 func_gl_gnulib_m4code_euidaccess ()
25302 if ! $gl_gnulib_enabled_euidaccess; then
25308 for ac_func in euidaccess
25309 do :
25310 ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
25311 if test "x$ac_cv_func_euidaccess" = x""yes; then :
25312 cat >>confdefs.h <<_ACEOF
25313 #define HAVE_EUIDACCESS 1
25314 _ACEOF
25317 done
25319 if test $ac_cv_func_euidaccess = no; then
25320 HAVE_EUIDACCESS=0
25323 if test $HAVE_EUIDACCESS = 0; then
25332 gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
25336 for ac_header in libgen.h
25337 do :
25338 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
25339 if test "x$ac_cv_header_libgen_h" = x""yes; then :
25340 cat >>confdefs.h <<_ACEOF
25341 #define HAVE_LIBGEN_H 1
25342 _ACEOF
25346 done
25349 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
25350 if test "x$ac_cv_func_getgroups" = x""yes; then :
25355 # If we don't yet have getgroups, see if it's in -lbsd.
25356 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25357 ac_save_LIBS=$LIBS
25358 if test $ac_cv_func_getgroups = no; then
25359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
25360 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
25361 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
25362 $as_echo_n "(cached) " >&6
25363 else
25364 ac_check_lib_save_LIBS=$LIBS
25365 LIBS="-lbsd $LIBS"
25366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25367 /* end confdefs.h. */
25369 /* Override any GCC internal prototype to avoid an error.
25370 Use char because int might match the return type of a GCC
25371 builtin and then its argument prototype would still apply. */
25372 #ifdef __cplusplus
25373 extern "C"
25374 #endif
25375 char getgroups ();
25377 main ()
25379 return getgroups ();
25381 return 0;
25383 _ACEOF
25384 if ac_fn_c_try_link "$LINENO"; then :
25385 ac_cv_lib_bsd_getgroups=yes
25386 else
25387 ac_cv_lib_bsd_getgroups=no
25389 rm -f core conftest.err conftest.$ac_objext \
25390 conftest$ac_exeext conftest.$ac_ext
25391 LIBS=$ac_check_lib_save_LIBS
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
25394 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
25395 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
25396 GETGROUPS_LIB=-lbsd
25401 # Run the program to test the functionality of the system-supplied
25402 # getgroups function only if there is such a function.
25403 if test $ac_cv_func_getgroups = yes; then
25404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
25405 $as_echo_n "checking for working getgroups... " >&6; }
25406 if test "${ac_cv_func_getgroups_works+set}" = set; then :
25407 $as_echo_n "(cached) " >&6
25408 else
25409 if test "$cross_compiling" = yes; then :
25410 case "$host_os" in # ((
25411 # Guess yes on glibc systems.
25412 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
25413 # If we don't know, assume the worst.
25414 *) ac_cv_func_getgroups_works="guessing no" ;;
25415 esac
25417 else
25418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25419 /* end confdefs.h. */
25420 $ac_includes_default
25422 main ()
25424 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25425 return getgroups (0, 0) == -1;
25427 return 0;
25430 _ACEOF
25431 if ac_fn_c_try_run "$LINENO"; then :
25432 ac_cv_func_getgroups_works=yes
25433 else
25434 ac_cv_func_getgroups_works=no
25436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25437 conftest.$ac_objext conftest.beam conftest.$ac_ext
25442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
25443 $as_echo "$ac_cv_func_getgroups_works" >&6; }
25444 else
25445 ac_cv_func_getgroups_works=no
25447 case "$ac_cv_func_getgroups_works" in
25448 *yes)
25450 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
25453 esac
25454 LIBS=$ac_save_LIBS
25457 # Solaris 9 and 10 need -lgen to get the eaccess function.
25458 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
25459 # programs in the package would end up linked with that potentially-shared
25460 # library, inducing unnecessary run-time overhead.
25461 LIB_EACCESS=
25463 gl_saved_libs=$LIBS
25464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
25465 $as_echo_n "checking for library containing eaccess... " >&6; }
25466 if test "${ac_cv_search_eaccess+set}" = set; then :
25467 $as_echo_n "(cached) " >&6
25468 else
25469 ac_func_search_save_LIBS=$LIBS
25470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25471 /* end confdefs.h. */
25473 /* Override any GCC internal prototype to avoid an error.
25474 Use char because int might match the return type of a GCC
25475 builtin and then its argument prototype would still apply. */
25476 #ifdef __cplusplus
25477 extern "C"
25478 #endif
25479 char eaccess ();
25481 main ()
25483 return eaccess ();
25485 return 0;
25487 _ACEOF
25488 for ac_lib in '' gen; do
25489 if test -z "$ac_lib"; then
25490 ac_res="none required"
25491 else
25492 ac_res=-l$ac_lib
25493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25495 if ac_fn_c_try_link "$LINENO"; then :
25496 ac_cv_search_eaccess=$ac_res
25498 rm -f core conftest.err conftest.$ac_objext \
25499 conftest$ac_exeext
25500 if test "${ac_cv_search_eaccess+set}" = set; then :
25501 break
25503 done
25504 if test "${ac_cv_search_eaccess+set}" = set; then :
25506 else
25507 ac_cv_search_eaccess=no
25509 rm conftest.$ac_ext
25510 LIBS=$ac_func_search_save_LIBS
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
25513 $as_echo "$ac_cv_search_eaccess" >&6; }
25514 ac_res=$ac_cv_search_eaccess
25515 if test "$ac_res" != no; then :
25516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25517 test "$ac_cv_search_eaccess" = "none required" ||
25518 LIB_EACCESS=$ac_cv_search_eaccess
25521 for ac_func in eaccess
25522 do :
25523 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
25524 if test "x$ac_cv_func_eaccess" = x""yes; then :
25525 cat >>confdefs.h <<_ACEOF
25526 #define HAVE_EACCESS 1
25527 _ACEOF
25530 done
25532 LIBS=$gl_saved_libs
25540 GNULIB_EUIDACCESS=1
25546 gl_gnulib_enabled_euidaccess=true
25547 if test $HAVE_EUIDACCESS = 0; then
25548 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
25550 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
25551 if test $HAVE_EUIDACCESS = 0; then
25552 func_gl_gnulib_m4code_stat
25556 func_gl_gnulib_m4code_getgroups ()
25558 if ! $gl_gnulib_enabled_getgroups; then
25564 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
25565 if test "x$ac_cv_func_getgroups" = x""yes; then :
25570 # If we don't yet have getgroups, see if it's in -lbsd.
25571 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25572 ac_save_LIBS=$LIBS
25573 if test $ac_cv_func_getgroups = no; then
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
25575 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
25576 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
25577 $as_echo_n "(cached) " >&6
25578 else
25579 ac_check_lib_save_LIBS=$LIBS
25580 LIBS="-lbsd $LIBS"
25581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25582 /* end confdefs.h. */
25584 /* Override any GCC internal prototype to avoid an error.
25585 Use char because int might match the return type of a GCC
25586 builtin and then its argument prototype would still apply. */
25587 #ifdef __cplusplus
25588 extern "C"
25589 #endif
25590 char getgroups ();
25592 main ()
25594 return getgroups ();
25596 return 0;
25598 _ACEOF
25599 if ac_fn_c_try_link "$LINENO"; then :
25600 ac_cv_lib_bsd_getgroups=yes
25601 else
25602 ac_cv_lib_bsd_getgroups=no
25604 rm -f core conftest.err conftest.$ac_objext \
25605 conftest$ac_exeext conftest.$ac_ext
25606 LIBS=$ac_check_lib_save_LIBS
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
25609 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
25610 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
25611 GETGROUPS_LIB=-lbsd
25616 # Run the program to test the functionality of the system-supplied
25617 # getgroups function only if there is such a function.
25618 if test $ac_cv_func_getgroups = yes; then
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
25620 $as_echo_n "checking for working getgroups... " >&6; }
25621 if test "${ac_cv_func_getgroups_works+set}" = set; then :
25622 $as_echo_n "(cached) " >&6
25623 else
25624 if test "$cross_compiling" = yes; then :
25625 case "$host_os" in # ((
25626 # Guess yes on glibc systems.
25627 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
25628 # If we don't know, assume the worst.
25629 *) ac_cv_func_getgroups_works="guessing no" ;;
25630 esac
25632 else
25633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25634 /* end confdefs.h. */
25635 $ac_includes_default
25637 main ()
25639 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25640 return getgroups (0, 0) == -1;
25642 return 0;
25645 _ACEOF
25646 if ac_fn_c_try_run "$LINENO"; then :
25647 ac_cv_func_getgroups_works=yes
25648 else
25649 ac_cv_func_getgroups_works=no
25651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25652 conftest.$ac_objext conftest.beam conftest.$ac_ext
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
25658 $as_echo "$ac_cv_func_getgroups_works" >&6; }
25659 else
25660 ac_cv_func_getgroups_works=no
25662 case "$ac_cv_func_getgroups_works" in
25663 *yes)
25665 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
25668 esac
25669 LIBS=$ac_save_LIBS
25671 if test $ac_cv_func_getgroups != yes; then
25672 HAVE_GETGROUPS=0
25673 else
25674 if test "$ac_cv_type_getgroups" != gid_t \
25675 || { case "$ac_cv_func_getgroups_works" in
25676 *yes) false;;
25677 *) true;;
25678 esac
25679 }; then
25680 REPLACE_GETGROUPS=1
25682 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
25684 else
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
25686 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
25687 if test "${gl_cv_func_getgroups_works+set}" = set; then :
25688 $as_echo_n "(cached) " >&6
25689 else
25690 if test "$cross_compiling" = yes; then :
25691 case "$host_os" in
25692 # Guess yes on glibc systems.
25693 *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
25694 # If we don't know, assume the worst.
25695 *) gl_cv_func_getgroups_works="guessing no" ;;
25696 esac
25698 else
25699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25700 /* end confdefs.h. */
25701 $ac_includes_default
25703 main ()
25705 int size = getgroups (0, 0);
25706 gid_t *list = malloc (size * sizeof *list);
25707 return getgroups (-1, list) != -1;
25709 return 0;
25711 _ACEOF
25712 if ac_fn_c_try_run "$LINENO"; then :
25713 gl_cv_func_getgroups_works=yes
25714 else
25715 gl_cv_func_getgroups_works=no
25717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25718 conftest.$ac_objext conftest.beam conftest.$ac_ext
25722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
25723 $as_echo "$gl_cv_func_getgroups_works" >&6; }
25724 case "$gl_cv_func_getgroups_works" in
25725 *yes) ;;
25726 *) REPLACE_GETGROUPS=1 ;;
25727 esac
25730 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
25732 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
25741 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
25749 GNULIB_GETGROUPS=1
25755 gl_gnulib_enabled_getgroups=true
25758 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
25760 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
25763 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
25766 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 ()
25768 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
25774 ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
25775 if test "x$ac_cv_func_group_member" = x""yes; then :
25777 else
25779 HAVE_GROUP_MEMBER=0
25784 if test $HAVE_GROUP_MEMBER = 0; then
25793 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
25804 GNULIB_GROUP_MEMBER=1
25810 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true
25811 if test $HAVE_GROUP_MEMBER = 0; then
25812 func_gl_gnulib_m4code_getgroups
25814 if test $HAVE_GROUP_MEMBER = 0; then
25815 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
25819 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7 ()
25821 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
25822 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=true
25825 func_gl_gnulib_m4code_pathmax ()
25827 if ! $gl_gnulib_enabled_pathmax; then
25831 gl_gnulib_enabled_pathmax=true
25834 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c ()
25836 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
25837 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true
25840 func_gl_gnulib_m4code_stat ()
25842 if ! $gl_gnulib_enabled_stat; then
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
25847 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
25848 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
25849 $as_echo_n "(cached) " >&6
25850 else
25851 if test "$cross_compiling" = yes; then :
25852 case $host_os in
25853 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
25854 *) gl_cv_func_stat_dir_slash="guessing yes";;
25855 esac
25856 else
25857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25858 /* end confdefs.h. */
25859 #include <sys/stat.h>
25862 main ()
25864 struct stat st; return stat (".", &st) != stat ("./", &st);
25866 return 0;
25868 _ACEOF
25869 if ac_fn_c_try_run "$LINENO"; then :
25870 gl_cv_func_stat_dir_slash=yes
25871 else
25872 gl_cv_func_stat_dir_slash=no
25874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25875 conftest.$ac_objext conftest.beam conftest.$ac_ext
25879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
25880 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
25882 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
25883 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
25884 $as_echo_n "(cached) " >&6
25885 else
25886 touch conftest.tmp
25887 # Assume that if we have lstat, we can also check symlinks.
25888 if test $ac_cv_func_lstat = yes; then
25889 ln -s conftest.tmp conftest.lnk
25891 if test "$cross_compiling" = yes; then :
25892 case "$host_os" in
25893 # Guess yes on glibc systems.
25894 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
25895 # If we don't know, assume the worst.
25896 *) gl_cv_func_stat_file_slash="guessing no" ;;
25897 esac
25899 else
25900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25901 /* end confdefs.h. */
25902 #include <sys/stat.h>
25905 main ()
25907 int result = 0;
25908 struct stat st;
25909 if (!stat ("conftest.tmp/", &st))
25910 result |= 1;
25911 #if HAVE_LSTAT
25912 if (!stat ("conftest.lnk/", &st))
25913 result |= 2;
25914 #endif
25915 return result;
25918 return 0;
25920 _ACEOF
25921 if ac_fn_c_try_run "$LINENO"; then :
25922 gl_cv_func_stat_file_slash=yes
25923 else
25924 gl_cv_func_stat_file_slash=no
25926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25927 conftest.$ac_objext conftest.beam conftest.$ac_ext
25930 rm -f conftest.tmp conftest.lnk
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
25933 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
25934 case $gl_cv_func_stat_dir_slash in
25935 *no) REPLACE_STAT=1
25937 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
25939 esac
25940 case $gl_cv_func_stat_file_slash in
25941 *no) REPLACE_STAT=1
25943 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
25945 esac
25947 if test $REPLACE_STAT = 1; then
25956 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
25965 GNULIB_STAT=1
25971 gl_gnulib_enabled_stat=true
25972 if test $REPLACE_STAT = 1; then
25973 func_gl_gnulib_m4code_dosname
25975 if test $REPLACE_STAT = 1; then
25976 func_gl_gnulib_m4code_pathmax
25978 if test $REPLACE_STAT = 1; then
25979 func_gl_gnulib_m4code_verify
25983 func_gl_gnulib_m4code_strtoll ()
25985 if ! $gl_gnulib_enabled_strtoll; then
25989 if test "$ac_cv_type_long_long_int" = yes; then
25990 for ac_func in strtoll
25991 do :
25992 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
25993 if test "x$ac_cv_func_strtoll" = x""yes; then :
25994 cat >>confdefs.h <<_ACEOF
25995 #define HAVE_STRTOLL 1
25996 _ACEOF
25999 done
26001 if test $ac_cv_func_strtoll = no; then
26002 HAVE_STRTOLL=0
26006 if test $HAVE_STRTOLL = 0; then
26015 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
26026 GNULIB_STRTOLL=1
26032 gl_gnulib_enabled_strtoll=true
26035 func_gl_gnulib_m4code_strtoull ()
26037 if ! $gl_gnulib_enabled_strtoull; then
26041 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
26042 for ac_func in strtoull
26043 do :
26044 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
26045 if test "x$ac_cv_func_strtoull" = x""yes; then :
26046 cat >>confdefs.h <<_ACEOF
26047 #define HAVE_STRTOULL 1
26048 _ACEOF
26051 done
26053 if test $ac_cv_func_strtoull = no; then
26054 HAVE_STRTOULL=0
26058 if test $HAVE_STRTOULL = 0; then
26067 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
26078 GNULIB_STRTOULL=1
26084 gl_gnulib_enabled_strtoull=true
26087 func_gl_gnulib_m4code_verify ()
26089 if ! $gl_gnulib_enabled_verify; then
26090 gl_gnulib_enabled_verify=true
26093 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec ()
26095 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
26096 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true
26099 if test $HAVE_FACCESSAT = 0; then
26100 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26102 if test $HAVE_FACCESSAT = 0; then
26103 func_gl_gnulib_m4code_dosname
26105 if test $HAVE_FACCESSAT = 0; then
26106 func_gl_gnulib_m4code_euidaccess
26108 if test $HAVE_FACCESSAT = 0; then
26109 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26111 if test $HAVE_FDOPENDIR = 0; then
26112 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26114 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
26115 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26117 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
26118 func_gl_gnulib_m4code_dosname
26120 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
26121 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26123 if test $REPLACE_GETOPT = 1; then
26124 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
26126 if test $REPLACE_LSTAT = 1; then
26127 func_gl_gnulib_m4code_dosname
26129 if test $REPLACE_LSTAT = 1; then
26130 func_gl_gnulib_m4code_stat
26132 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
26133 func_gl_gnulib_m4code_stat
26135 if test $HAVE_READLINKAT = 0; then
26136 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26138 if test $HAVE_READLINKAT = 0; then
26139 func_gl_gnulib_m4code_dosname
26141 if test $HAVE_READLINKAT = 0; then
26142 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26144 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
26145 func_gl_gnulib_m4code_strtoll
26147 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
26148 func_gl_gnulib_m4code_verify
26150 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
26151 func_gl_gnulib_m4code_strtoull
26153 if test $ac_cv_func_strtoumax = no; then
26154 func_gl_gnulib_m4code_verify
26157 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
26158 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE=
26159 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE='#'
26160 else
26161 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE='#'
26162 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE=
26165 if $gl_gnulib_enabled_dosname; then
26166 gl_GNULIB_ENABLED_dosname_TRUE=
26167 gl_GNULIB_ENABLED_dosname_FALSE='#'
26168 else
26169 gl_GNULIB_ENABLED_dosname_TRUE='#'
26170 gl_GNULIB_ENABLED_dosname_FALSE=
26173 if $gl_gnulib_enabled_euidaccess; then
26174 gl_GNULIB_ENABLED_euidaccess_TRUE=
26175 gl_GNULIB_ENABLED_euidaccess_FALSE='#'
26176 else
26177 gl_GNULIB_ENABLED_euidaccess_TRUE='#'
26178 gl_GNULIB_ENABLED_euidaccess_FALSE=
26181 if $gl_gnulib_enabled_getgroups; then
26182 gl_GNULIB_ENABLED_getgroups_TRUE=
26183 gl_GNULIB_ENABLED_getgroups_FALSE='#'
26184 else
26185 gl_GNULIB_ENABLED_getgroups_TRUE='#'
26186 gl_GNULIB_ENABLED_getgroups_FALSE=
26189 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
26190 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
26191 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
26192 else
26193 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
26194 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
26197 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
26198 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE=
26199 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE='#'
26200 else
26201 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE='#'
26202 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE=
26205 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
26206 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE=
26207 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE='#'
26208 else
26209 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE='#'
26210 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE=
26213 if $gl_gnulib_enabled_pathmax; then
26214 gl_GNULIB_ENABLED_pathmax_TRUE=
26215 gl_GNULIB_ENABLED_pathmax_FALSE='#'
26216 else
26217 gl_GNULIB_ENABLED_pathmax_TRUE='#'
26218 gl_GNULIB_ENABLED_pathmax_FALSE=
26221 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
26222 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE=
26223 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE='#'
26224 else
26225 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE='#'
26226 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE=
26229 if $gl_gnulib_enabled_stat; then
26230 gl_GNULIB_ENABLED_stat_TRUE=
26231 gl_GNULIB_ENABLED_stat_FALSE='#'
26232 else
26233 gl_GNULIB_ENABLED_stat_TRUE='#'
26234 gl_GNULIB_ENABLED_stat_FALSE=
26237 if $gl_gnulib_enabled_strtoll; then
26238 gl_GNULIB_ENABLED_strtoll_TRUE=
26239 gl_GNULIB_ENABLED_strtoll_FALSE='#'
26240 else
26241 gl_GNULIB_ENABLED_strtoll_TRUE='#'
26242 gl_GNULIB_ENABLED_strtoll_FALSE=
26245 if $gl_gnulib_enabled_strtoull; then
26246 gl_GNULIB_ENABLED_strtoull_TRUE=
26247 gl_GNULIB_ENABLED_strtoull_FALSE='#'
26248 else
26249 gl_GNULIB_ENABLED_strtoull_TRUE='#'
26250 gl_GNULIB_ENABLED_strtoull_FALSE=
26253 if $gl_gnulib_enabled_verify; then
26254 gl_GNULIB_ENABLED_verify_TRUE=
26255 gl_GNULIB_ENABLED_verify_FALSE='#'
26256 else
26257 gl_GNULIB_ENABLED_verify_TRUE='#'
26258 gl_GNULIB_ENABLED_verify_FALSE=
26261 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
26262 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE=
26263 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#'
26264 else
26265 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#'
26266 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE=
26269 # End of code from modules
26279 gltests_libdeps=
26280 gltests_ltlibdeps=
26290 gl_source_base='tests'
26291 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
26293 gl_module_indicator_condition=$gltests_WITNESS
26304 LIBGNU_LIBDEPS="$gl_libdeps"
26306 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
26309 CFLAGS=$SAVE_CFLAGS
26310 LIBS=$SAVE_LIBS
26312 case "$opsys" in
26313 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
26315 darwin)
26316 ## The -headerpad option tells ld (see man page) to leave room at the
26317 ## end of the header for adding load commands. Needed for dumping.
26318 ## 0x690 is the total size of 30 segment load commands (at 56
26319 ## each); under Cocoa 31 commands are required.
26320 if test "$HAVE_NS" = "yes"; then
26321 libs_nsgui="-framework AppKit"
26322 headerpad_extra=6C8
26323 else
26324 libs_nsgui=
26325 headerpad_extra=690
26327 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26329 ## This is here because src/Makefile.in did some extra fiddling around
26330 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26331 ## #ifndef LD_SWITCH_SYSTEM
26332 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26333 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26334 ## not using gcc, darwin.
26335 ## Because this was done in src/Makefile.in, the resulting part of
26336 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
26337 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
26338 ## rather than LD_SWITCH_SYSTEM.
26339 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26340 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
26343 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
26344 ## find X at run-time.
26345 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
26346 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
26347 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
26348 ## had different values in configure (in ac_link) and src/Makefile.in.
26349 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
26350 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
26352 *) LD_SWITCH_SYSTEM_TEMACS= ;;
26353 esac
26358 LD_FIRSTFLAG=
26359 ORDINARY_LINK=
26360 case "$opsys" in
26361 ## gnu: GNU needs its own crt0.
26362 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
26364 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
26365 ## library search parth, i.e. it won't search /usr/lib for libc and
26366 ## friends. Using -nostartfiles instead avoids this problem, and
26367 ## will also work on earlier NetBSD releases.
26368 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
26370 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
26371 ## MkLinux/LinuxPPC needs this.
26372 ## s390x-* only supports opsys = gnu-linux so it can be added here.
26373 gnu-*)
26374 case "$canonical" in
26375 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
26376 esac
26378 esac
26381 if test "x$ORDINARY_LINK" = "xyes"; then
26383 LD_FIRSTFLAG=""
26385 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
26388 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
26389 ## freebsd, gnu-* not on powerpc*|s390x*.
26390 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
26392 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
26393 ## places that are difficult to figure out at make time. Fortunately,
26394 ## these same versions allow you to pass arbitrary flags on to the
26395 ## linker, so there is no reason not to use it as a linker.
26397 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
26398 ## searching for libraries in its internal directories, so we have to
26399 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
26400 LD_FIRSTFLAG="-nostdlib"
26403 ## FIXME? What setting of EDIT_LDFLAGS should this have?
26404 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
26409 ## FIXME? The logic here is not precisely the same as that above.
26410 ## There is no check here for a pre-defined LD_FIRSTFLAG.
26411 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
26412 LIB_GCC=
26413 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
26415 case "$opsys" in
26416 freebsd|netbsd|openbsd) LIB_GCC= ;;
26418 gnu-*)
26419 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26420 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26421 case $host_cpu in
26422 arm*)
26423 LIB_GCC="-lgcc_s"
26426 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26427 ## immediately undefine it again and redefine it to empty.
26428 ## Was the C_SWITCH_X_SITE part really necessary?
26429 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
26430 LIB_GCC=
26432 esac
26435 ## Ask GCC where to find libgcc.a.
26436 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
26437 esac
26440 ## Common for all window systems
26441 if test "$window_system" != "none"; then
26443 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
26445 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
26452 #### Report on what we decided to do.
26453 #### Report GTK as a toolkit, even if it doesn't use Xt.
26454 #### It makes printing result more understandable as using GTK sets
26455 #### toolkit_scroll_bars to yes by default.
26456 if test "${HAVE_GTK}" = "yes"; then
26457 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
26460 echo "
26461 Configured for \`${canonical}'.
26463 Where should the build process find the source code? ${srcdir}
26464 What compiler should emacs be built with? ${CC} ${CFLAGS}
26465 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26466 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26467 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26468 What window system should Emacs use? ${window_system}
26469 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26471 if test -n "${x_includes}"; then
26472 echo " Where do we find X Windows header files? ${x_includes}"
26473 else
26474 echo " Where do we find X Windows header files? Standard dirs"
26476 if test -n "${x_libraries}"; then
26477 echo " Where do we find X Windows libraries? ${x_libraries}"
26478 else
26479 echo " Where do we find X Windows libraries? Standard dirs"
26482 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26483 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26484 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26485 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26486 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26487 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26488 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26489 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
26491 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26492 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26493 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26494 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
26495 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26496 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
26497 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
26499 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26500 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26501 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26502 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26504 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26505 echo
26507 if test -n "${EMACSDATA}"; then
26508 echo " Environment variable EMACSDATA set to: $EMACSDATA"
26510 if test -n "${EMACSDOC}"; then
26511 echo " Environment variable EMACSDOC set to: $EMACSDOC"
26514 echo
26516 if test "$HAVE_NS" = "yes"; then
26517 echo
26518 echo "You must run \"${MAKE-make} install\" in order to test the built application.
26519 The installed application will go to nextstep/Emacs.app and can be
26520 run or moved from there."
26521 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26522 echo "The application will be fully self-contained."
26523 else
26524 echo "The lisp resources for the application will be installed under ${prefix}.
26525 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
26526 to run if these resources are not installed."
26528 echo
26531 if test "${opsys}" = "cygwin"; then
26532 case `uname -r` in
26533 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
26534 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
26535 echo
26537 esac
26540 # Remove any trailing slashes in these variables.
26541 test "${prefix}" != NONE &&
26542 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26543 test "${exec_prefix}" != NONE &&
26544 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26546 if test "$HAVE_NS" = "yes"; then
26547 if test "$NS_IMPL_GNUSTEP" = yes; then
26548 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"
26550 else
26551 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"
26556 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"
26558 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"
26561 opt_makefile=test/automated/Makefile
26563 if test -f "$srcdir/$opt_makefile.in"; then
26564 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
26565 ac_config_files="$ac_config_files test/automated/Makefile"
26570 opt_makefile=admin/unidata/Makefile
26572 if test -f "$srcdir/$opt_makefile.in"; then
26573 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
26574 ac_config_files="$ac_config_files admin/unidata/Makefile"
26579 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
26583 ac_config_commands="$ac_config_commands mkdirs"
26586 ac_config_commands="$ac_config_commands epaths"
26589 ac_config_commands="$ac_config_commands gdbinit"
26592 cat >confcache <<\_ACEOF
26593 # This file is a shell script that caches the results of configure
26594 # tests run on this system so they can be shared between configure
26595 # scripts and configure runs, see configure's option --config-cache.
26596 # It is not useful on other systems. If it contains results you don't
26597 # want to keep, you may remove or edit it.
26599 # config.status only pays attention to the cache file if you give it
26600 # the --recheck option to rerun configure.
26602 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26603 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26604 # following values.
26606 _ACEOF
26608 # The following way of writing the cache mishandles newlines in values,
26609 # but we know of no workaround that is simple, portable, and efficient.
26610 # So, we kill variables containing newlines.
26611 # Ultrix sh set writes to stderr and can't be redirected directly,
26612 # and sets the high bit in the cache file unless we assign to the vars.
26614 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26615 eval ac_val=\$$ac_var
26616 case $ac_val in #(
26617 *${as_nl}*)
26618 case $ac_var in #(
26619 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26620 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26621 esac
26622 case $ac_var in #(
26623 _ | IFS | as_nl) ;; #(
26624 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26625 *) { eval $ac_var=; unset $ac_var;} ;;
26626 esac ;;
26627 esac
26628 done
26630 (set) 2>&1 |
26631 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26632 *${as_nl}ac_space=\ *)
26633 # `set' does not quote correctly, so add quotes: double-quote
26634 # substitution turns \\\\ into \\, and sed turns \\ into \.
26635 sed -n \
26636 "s/'/'\\\\''/g;
26637 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26638 ;; #(
26640 # `set' quotes correctly as required by POSIX, so do not add quotes.
26641 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26643 esac |
26644 sort
26646 sed '
26647 /^ac_cv_env_/b end
26648 t clear
26649 :clear
26650 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26651 t end
26652 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26653 :end' >>confcache
26654 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26655 if test -w "$cache_file"; then
26656 test "x$cache_file" != "x/dev/null" &&
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26658 $as_echo "$as_me: updating cache $cache_file" >&6;}
26659 cat confcache >$cache_file
26660 else
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26662 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26665 rm -f confcache
26667 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26668 # Let make expand exec_prefix.
26669 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26671 DEFS=-DHAVE_CONFIG_H
26673 ac_libobjs=
26674 ac_ltlibobjs=
26675 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26676 # 1. Remove the extension, and $U if already installed.
26677 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26678 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26679 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26680 # will be set to the directory where LIBOBJS objects are built.
26681 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26682 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26683 done
26684 LIBOBJS=$ac_libobjs
26686 LTLIBOBJS=$ac_ltlibobjs
26689 if test -n "$EXEEXT"; then
26690 am__EXEEXT_TRUE=
26691 am__EXEEXT_FALSE='#'
26692 else
26693 am__EXEEXT_TRUE='#'
26694 am__EXEEXT_FALSE=
26697 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26698 as_fn_error "conditional \"AMDEP\" was never defined.
26699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26701 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26702 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26705 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
26706 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
26707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26709 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
26710 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
26711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26714 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
26715 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
26716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26718 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
26719 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
26720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26722 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
26723 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
26724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26726 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
26727 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
26728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26730 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
26731 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
26732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26734 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
26735 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
26736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26738 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
26739 as_fn_error "conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
26740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26742 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
26743 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
26744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26746 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
26747 as_fn_error "conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
26748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26750 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
26751 as_fn_error "conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
26752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26754 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
26755 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
26756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26758 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
26759 as_fn_error "conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
26760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26762 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
26763 as_fn_error "conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
26764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26766 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
26767 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
26768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26770 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
26771 as_fn_error "conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
26772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26774 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
26775 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
26776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26778 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
26779 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
26780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26782 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
26783 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
26784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26786 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
26787 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
26788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26790 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
26791 as_fn_error "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
26792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26795 gl_libobjs=
26796 gl_ltlibobjs=
26797 if test -n "$gl_LIBOBJS"; then
26798 # Remove the extension.
26799 sed_drop_objext='s/\.o$//;s/\.obj$//'
26800 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
26801 gl_libobjs="$gl_libobjs $i.$ac_objext"
26802 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
26803 done
26805 gl_LIBOBJS=$gl_libobjs
26807 gl_LTLIBOBJS=$gl_ltlibobjs
26811 gltests_libobjs=
26812 gltests_ltlibobjs=
26813 if test -n "$gltests_LIBOBJS"; then
26814 # Remove the extension.
26815 sed_drop_objext='s/\.o$//;s/\.obj$//'
26816 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
26817 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
26818 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
26819 done
26821 gltests_LIBOBJS=$gltests_libobjs
26823 gltests_LTLIBOBJS=$gltests_ltlibobjs
26827 : ${CONFIG_STATUS=./config.status}
26828 ac_write_fail=0
26829 ac_clean_files_save=$ac_clean_files
26830 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26831 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26832 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26833 as_write_fail=0
26834 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26835 #! $SHELL
26836 # Generated by $as_me.
26837 # Run this file to recreate the current configuration.
26838 # Compiler output produced by configure, useful for debugging
26839 # configure, is in config.log if it exists.
26841 debug=false
26842 ac_cs_recheck=false
26843 ac_cs_silent=false
26845 SHELL=\${CONFIG_SHELL-$SHELL}
26846 export SHELL
26847 _ASEOF
26848 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26849 ## -------------------- ##
26850 ## M4sh Initialization. ##
26851 ## -------------------- ##
26853 # Be more Bourne compatible
26854 DUALCASE=1; export DUALCASE # for MKS sh
26855 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26856 emulate sh
26857 NULLCMD=:
26858 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26859 # is contrary to our usage. Disable this feature.
26860 alias -g '${1+"$@"}'='"$@"'
26861 setopt NO_GLOB_SUBST
26862 else
26863 case `(set -o) 2>/dev/null` in #(
26864 *posix*) :
26865 set -o posix ;; #(
26866 *) :
26868 esac
26872 as_nl='
26874 export as_nl
26875 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26876 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26877 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26878 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26879 # Prefer a ksh shell builtin over an external printf program on Solaris,
26880 # but without wasting forks for bash or zsh.
26881 if test -z "$BASH_VERSION$ZSH_VERSION" \
26882 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26883 as_echo='print -r --'
26884 as_echo_n='print -rn --'
26885 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26886 as_echo='printf %s\n'
26887 as_echo_n='printf %s'
26888 else
26889 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26890 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26891 as_echo_n='/usr/ucb/echo -n'
26892 else
26893 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26894 as_echo_n_body='eval
26895 arg=$1;
26896 case $arg in #(
26897 *"$as_nl"*)
26898 expr "X$arg" : "X\\(.*\\)$as_nl";
26899 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26900 esac;
26901 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26903 export as_echo_n_body
26904 as_echo_n='sh -c $as_echo_n_body as_echo'
26906 export as_echo_body
26907 as_echo='sh -c $as_echo_body as_echo'
26910 # The user is always right.
26911 if test "${PATH_SEPARATOR+set}" != set; then
26912 PATH_SEPARATOR=:
26913 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26914 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26915 PATH_SEPARATOR=';'
26920 # IFS
26921 # We need space, tab and new line, in precisely that order. Quoting is
26922 # there to prevent editors from complaining about space-tab.
26923 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26924 # splitting by setting IFS to empty value.)
26925 IFS=" "" $as_nl"
26927 # Find who we are. Look in the path if we contain no directory separator.
26928 case $0 in #((
26929 *[\\/]* ) as_myself=$0 ;;
26930 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26931 for as_dir in $PATH
26933 IFS=$as_save_IFS
26934 test -z "$as_dir" && as_dir=.
26935 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26936 done
26937 IFS=$as_save_IFS
26940 esac
26941 # We did not find ourselves, most probably we were run as `sh COMMAND'
26942 # in which case we are not to be found in the path.
26943 if test "x$as_myself" = x; then
26944 as_myself=$0
26946 if test ! -f "$as_myself"; then
26947 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26948 exit 1
26951 # Unset variables that we do not need and which cause bugs (e.g. in
26952 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26953 # suppresses any "Segmentation fault" message there. '((' could
26954 # trigger a bug in pdksh 5.2.14.
26955 for as_var in BASH_ENV ENV MAIL MAILPATH
26956 do eval test x\${$as_var+set} = xset \
26957 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26958 done
26959 PS1='$ '
26960 PS2='> '
26961 PS4='+ '
26963 # NLS nuisances.
26964 LC_ALL=C
26965 export LC_ALL
26966 LANGUAGE=C
26967 export LANGUAGE
26969 # CDPATH.
26970 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26973 # as_fn_error ERROR [LINENO LOG_FD]
26974 # ---------------------------------
26975 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26976 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26977 # script with status $?, using 1 if that was 0.
26978 as_fn_error ()
26980 as_status=$?; test $as_status -eq 0 && as_status=1
26981 if test "$3"; then
26982 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26983 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26985 $as_echo "$as_me: error: $1" >&2
26986 as_fn_exit $as_status
26987 } # as_fn_error
26990 # as_fn_set_status STATUS
26991 # -----------------------
26992 # Set $? to STATUS, without forking.
26993 as_fn_set_status ()
26995 return $1
26996 } # as_fn_set_status
26998 # as_fn_exit STATUS
26999 # -----------------
27000 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27001 as_fn_exit ()
27003 set +e
27004 as_fn_set_status $1
27005 exit $1
27006 } # as_fn_exit
27008 # as_fn_unset VAR
27009 # ---------------
27010 # Portably unset VAR.
27011 as_fn_unset ()
27013 { eval $1=; unset $1;}
27015 as_unset=as_fn_unset
27016 # as_fn_append VAR VALUE
27017 # ----------------------
27018 # Append the text in VALUE to the end of the definition contained in VAR. Take
27019 # advantage of any shell optimizations that allow amortized linear growth over
27020 # repeated appends, instead of the typical quadratic growth present in naive
27021 # implementations.
27022 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27023 eval 'as_fn_append ()
27025 eval $1+=\$2
27027 else
27028 as_fn_append ()
27030 eval $1=\$$1\$2
27032 fi # as_fn_append
27034 # as_fn_arith ARG...
27035 # ------------------
27036 # Perform arithmetic evaluation on the ARGs, and store the result in the
27037 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27038 # must be portable across $(()) and expr.
27039 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27040 eval 'as_fn_arith ()
27042 as_val=$(( $* ))
27044 else
27045 as_fn_arith ()
27047 as_val=`expr "$@" || test $? -eq 1`
27049 fi # as_fn_arith
27052 if expr a : '\(a\)' >/dev/null 2>&1 &&
27053 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27054 as_expr=expr
27055 else
27056 as_expr=false
27059 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27060 as_basename=basename
27061 else
27062 as_basename=false
27065 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27066 as_dirname=dirname
27067 else
27068 as_dirname=false
27071 as_me=`$as_basename -- "$0" ||
27072 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27073 X"$0" : 'X\(//\)$' \| \
27074 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27075 $as_echo X/"$0" |
27076 sed '/^.*\/\([^/][^/]*\)\/*$/{
27077 s//\1/
27080 /^X\/\(\/\/\)$/{
27081 s//\1/
27084 /^X\/\(\/\).*/{
27085 s//\1/
27088 s/.*/./; q'`
27090 # Avoid depending upon Character Ranges.
27091 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27092 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27093 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27094 as_cr_digits='0123456789'
27095 as_cr_alnum=$as_cr_Letters$as_cr_digits
27097 ECHO_C= ECHO_N= ECHO_T=
27098 case `echo -n x` in #(((((
27099 -n*)
27100 case `echo 'xy\c'` in
27101 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27102 xy) ECHO_C='\c';;
27103 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27104 ECHO_T=' ';;
27105 esac;;
27107 ECHO_N='-n';;
27108 esac
27110 rm -f conf$$ conf$$.exe conf$$.file
27111 if test -d conf$$.dir; then
27112 rm -f conf$$.dir/conf$$.file
27113 else
27114 rm -f conf$$.dir
27115 mkdir conf$$.dir 2>/dev/null
27117 if (echo >conf$$.file) 2>/dev/null; then
27118 if ln -s conf$$.file conf$$ 2>/dev/null; then
27119 as_ln_s='ln -s'
27120 # ... but there are two gotchas:
27121 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27122 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27123 # In both cases, we have to default to `cp -p'.
27124 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27125 as_ln_s='cp -p'
27126 elif ln conf$$.file conf$$ 2>/dev/null; then
27127 as_ln_s=ln
27128 else
27129 as_ln_s='cp -p'
27131 else
27132 as_ln_s='cp -p'
27134 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27135 rmdir conf$$.dir 2>/dev/null
27138 # as_fn_mkdir_p
27139 # -------------
27140 # Create "$as_dir" as a directory, including parents if necessary.
27141 as_fn_mkdir_p ()
27144 case $as_dir in #(
27145 -*) as_dir=./$as_dir;;
27146 esac
27147 test -d "$as_dir" || eval $as_mkdir_p || {
27148 as_dirs=
27149 while :; do
27150 case $as_dir in #(
27151 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27152 *) as_qdir=$as_dir;;
27153 esac
27154 as_dirs="'$as_qdir' $as_dirs"
27155 as_dir=`$as_dirname -- "$as_dir" ||
27156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27157 X"$as_dir" : 'X\(//\)[^/]' \| \
27158 X"$as_dir" : 'X\(//\)$' \| \
27159 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27160 $as_echo X"$as_dir" |
27161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27162 s//\1/
27165 /^X\(\/\/\)[^/].*/{
27166 s//\1/
27169 /^X\(\/\/\)$/{
27170 s//\1/
27173 /^X\(\/\).*/{
27174 s//\1/
27177 s/.*/./; q'`
27178 test -d "$as_dir" && break
27179 done
27180 test -z "$as_dirs" || eval "mkdir $as_dirs"
27181 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27184 } # as_fn_mkdir_p
27185 if mkdir -p . 2>/dev/null; then
27186 as_mkdir_p='mkdir -p "$as_dir"'
27187 else
27188 test -d ./-p && rmdir ./-p
27189 as_mkdir_p=false
27192 if test -x / >/dev/null 2>&1; then
27193 as_test_x='test -x'
27194 else
27195 if ls -dL / >/dev/null 2>&1; then
27196 as_ls_L_option=L
27197 else
27198 as_ls_L_option=
27200 as_test_x='
27201 eval sh -c '\''
27202 if test -d "$1"; then
27203 test -d "$1/.";
27204 else
27205 case $1 in #(
27206 -*)set "./$1";;
27207 esac;
27208 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27209 ???[sx]*):;;*)false;;esac;fi
27210 '\'' sh
27213 as_executable_p=$as_test_x
27215 # Sed expression to map a string onto a valid CPP name.
27216 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27218 # Sed expression to map a string onto a valid variable name.
27219 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27222 exec 6>&1
27223 ## ----------------------------------- ##
27224 ## Main body of $CONFIG_STATUS script. ##
27225 ## ----------------------------------- ##
27226 _ASEOF
27227 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27230 # Save the log message, to keep $0 and so on meaningful, and to
27231 # report actual input values of CONFIG_FILES etc. instead of their
27232 # values after options handling.
27233 ac_log="
27234 This file was extended by emacs $as_me 24.3.50, which was
27235 generated by GNU Autoconf 2.65. Invocation command line was
27237 CONFIG_FILES = $CONFIG_FILES
27238 CONFIG_HEADERS = $CONFIG_HEADERS
27239 CONFIG_LINKS = $CONFIG_LINKS
27240 CONFIG_COMMANDS = $CONFIG_COMMANDS
27241 $ $0 $@
27243 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27246 _ACEOF
27248 case $ac_config_files in *"
27249 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27250 esac
27252 case $ac_config_headers in *"
27253 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27254 esac
27257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27258 # Files that config.status was made for.
27259 config_files="$ac_config_files"
27260 config_headers="$ac_config_headers"
27261 config_commands="$ac_config_commands"
27263 _ACEOF
27265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27266 ac_cs_usage="\
27267 \`$as_me' instantiates files and other configuration actions
27268 from templates according to the current configuration. Unless the files
27269 and actions are specified as TAGs, all are instantiated by default.
27271 Usage: $0 [OPTION]... [TAG]...
27273 -h, --help print this help, then exit
27274 -V, --version print version number and configuration settings, then exit
27275 --config print configuration, then exit
27276 -q, --quiet, --silent
27277 do not print progress messages
27278 -d, --debug don't remove temporary files
27279 --recheck update $as_me by reconfiguring in the same conditions
27280 --file=FILE[:TEMPLATE]
27281 instantiate the configuration file FILE
27282 --header=FILE[:TEMPLATE]
27283 instantiate the configuration header FILE
27285 Configuration files:
27286 $config_files
27288 Configuration headers:
27289 $config_headers
27291 Configuration commands:
27292 $config_commands
27294 Report bugs to the package provider."
27296 _ACEOF
27297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27298 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27299 ac_cs_version="\\
27300 emacs config.status 24.3.50
27301 configured by $0, generated by GNU Autoconf 2.65,
27302 with options \\"\$ac_cs_config\\"
27304 Copyright (C) 2009 Free Software Foundation, Inc.
27305 This config.status script is free software; the Free Software Foundation
27306 gives unlimited permission to copy, distribute and modify it."
27308 ac_pwd='$ac_pwd'
27309 srcdir='$srcdir'
27310 INSTALL='$INSTALL'
27311 MKDIR_P='$MKDIR_P'
27312 AWK='$AWK'
27313 test -n "\$AWK" || AWK=awk
27314 _ACEOF
27316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27317 # The default lists apply if the user does not specify any file.
27318 ac_need_defaults=:
27319 while test $# != 0
27321 case $1 in
27322 --*=*)
27323 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27324 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27325 ac_shift=:
27328 ac_option=$1
27329 ac_optarg=$2
27330 ac_shift=shift
27332 esac
27334 case $ac_option in
27335 # Handling of the options.
27336 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27337 ac_cs_recheck=: ;;
27338 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27339 $as_echo "$ac_cs_version"; exit ;;
27340 --config | --confi | --conf | --con | --co | --c )
27341 $as_echo "$ac_cs_config"; exit ;;
27342 --debug | --debu | --deb | --de | --d | -d )
27343 debug=: ;;
27344 --file | --fil | --fi | --f )
27345 $ac_shift
27346 case $ac_optarg in
27347 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27348 esac
27349 as_fn_append CONFIG_FILES " '$ac_optarg'"
27350 ac_need_defaults=false;;
27351 --header | --heade | --head | --hea )
27352 $ac_shift
27353 case $ac_optarg in
27354 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27355 esac
27356 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27357 ac_need_defaults=false;;
27358 --he | --h)
27359 # Conflict between --help and --header
27360 as_fn_error "ambiguous option: \`$1'
27361 Try \`$0 --help' for more information.";;
27362 --help | --hel | -h )
27363 $as_echo "$ac_cs_usage"; exit ;;
27364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27365 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27366 ac_cs_silent=: ;;
27368 # This is an error.
27369 -*) as_fn_error "unrecognized option: \`$1'
27370 Try \`$0 --help' for more information." ;;
27372 *) as_fn_append ac_config_targets " $1"
27373 ac_need_defaults=false ;;
27375 esac
27376 shift
27377 done
27379 ac_configure_extra_args=
27381 if $ac_cs_silent; then
27382 exec 6>/dev/null
27383 ac_configure_extra_args="$ac_configure_extra_args --silent"
27386 _ACEOF
27387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27388 if \$ac_cs_recheck; then
27389 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27390 shift
27391 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27392 CONFIG_SHELL='$SHELL'
27393 export CONFIG_SHELL
27394 exec "\$@"
27397 _ACEOF
27398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27399 exec 5>>config.log
27401 echo
27402 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27403 ## Running $as_me. ##
27404 _ASBOX
27405 $as_echo "$ac_log"
27406 } >&5
27408 _ACEOF
27409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27411 # INIT-COMMANDS
27413 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27414 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
27416 _ACEOF
27418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27420 # Handling of arguments.
27421 for ac_config_target in $ac_config_targets
27423 case $ac_config_target in
27424 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27425 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27426 "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" ;;
27427 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
27428 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
27429 "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" ;;
27430 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27431 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27432 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
27433 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
27434 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
27435 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
27436 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
27437 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
27438 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27439 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
27440 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
27441 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
27442 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
27443 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
27444 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
27445 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
27446 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
27447 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
27449 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27450 esac
27451 done
27454 # If the user did not use the arguments to specify the items to instantiate,
27455 # then the envvar interface is used. Set only those that are not.
27456 # We use the long form for the default assignment because of an extremely
27457 # bizarre bug on SunOS 4.1.3.
27458 if $ac_need_defaults; then
27459 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27460 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27461 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27464 # Have a temporary directory for convenience. Make it in the build tree
27465 # simply because there is no reason against having it here, and in addition,
27466 # creating and moving files from /tmp can sometimes cause problems.
27467 # Hook for its removal unless debugging.
27468 # Note that there is a small window in which the directory will not be cleaned:
27469 # after its creation but before its name has been assigned to `$tmp'.
27470 $debug ||
27472 tmp=
27473 trap 'exit_status=$?
27474 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27476 trap 'as_fn_exit 1' 1 2 13 15
27478 # Create a (secure) tmp directory for tmp files.
27481 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27482 test -n "$tmp" && test -d "$tmp"
27483 } ||
27485 tmp=./conf$$-$RANDOM
27486 (umask 077 && mkdir "$tmp")
27487 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27489 # Set up the scripts for CONFIG_FILES section.
27490 # No need to generate them if there are no CONFIG_FILES.
27491 # This happens for instance with `./config.status config.h'.
27492 if test -n "$CONFIG_FILES"; then
27494 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27495 ac_cs_awk_getline=:
27496 ac_cs_awk_pipe_init=
27497 ac_cs_awk_read_file='
27498 while ((getline aline < (F[key])) > 0)
27499 print(aline)
27500 close(F[key])'
27501 ac_cs_awk_pipe_fini=
27502 else
27503 ac_cs_awk_getline=false
27504 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27505 ac_cs_awk_read_file='
27506 print "|#_!!_#|"
27507 print "cat " F[key] " &&"
27508 '$ac_cs_awk_pipe_init
27509 # The final `:' finishes the AND list.
27510 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27512 ac_cr=`echo X | tr X '\015'`
27513 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27514 # But we know of no other shell where ac_cr would be empty at this
27515 # point, so we can use a bashism as a fallback.
27516 if test "x$ac_cr" = x; then
27517 eval ac_cr=\$\'\\r\'
27519 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27520 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27521 ac_cs_awk_cr='\r'
27522 else
27523 ac_cs_awk_cr=$ac_cr
27526 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27527 _ACEOF
27529 # Create commands to substitute file output variables.
27531 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27532 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27533 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27534 echo "_ACAWK" &&
27535 echo "_ACEOF"
27536 } >conf$$files.sh &&
27537 . ./conf$$files.sh ||
27538 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27539 rm -f conf$$files.sh
27542 echo "cat >conf$$subs.awk <<_ACEOF" &&
27543 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27544 echo "_ACEOF"
27545 } >conf$$subs.sh ||
27546 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27547 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27548 ac_delim='%!_!# '
27549 for ac_last_try in false false false false false :; do
27550 . ./conf$$subs.sh ||
27551 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27553 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27554 if test $ac_delim_n = $ac_delim_num; then
27555 break
27556 elif $ac_last_try; then
27557 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27558 else
27559 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27561 done
27562 rm -f conf$$subs.sh
27564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27565 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27566 _ACEOF
27567 sed -n '
27569 s/^/S["/; s/!.*/"]=/
27572 s/^[^!]*!//
27573 :repl
27574 t repl
27575 s/'"$ac_delim"'$//
27576 t delim
27579 s/\(.\{148\}\)..*/\1/
27580 t more1
27581 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27584 b repl
27585 :more1
27586 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27589 s/.\{148\}//
27590 t nl
27591 :delim
27593 s/\(.\{148\}\)..*/\1/
27594 t more2
27595 s/["\\]/\\&/g; s/^/"/; s/$/"/
27598 :more2
27599 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27602 s/.\{148\}//
27603 t delim
27604 ' <conf$$subs.awk | sed '
27605 /^[^""]/{
27607 s/\n//
27609 ' >>$CONFIG_STATUS || ac_write_fail=1
27610 rm -f conf$$subs.awk
27611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27612 _ACAWK
27613 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27614 for (key in S) S_is_set[key] = 1
27615 FS = "\a"
27616 \$ac_cs_awk_pipe_init
27619 line = $ 0
27620 nfields = split(line, field, "@")
27621 substed = 0
27622 len = length(field[1])
27623 for (i = 2; i < nfields; i++) {
27624 key = field[i]
27625 keylen = length(key)
27626 if (S_is_set[key]) {
27627 value = S[key]
27628 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27629 len += length(value) + length(field[++i])
27630 substed = 1
27631 } else
27632 len += 1 + keylen
27634 if (nfields == 3 && !substed) {
27635 key = field[2]
27636 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27637 \$ac_cs_awk_read_file
27638 next
27641 print line
27643 \$ac_cs_awk_pipe_fini
27644 _ACAWK
27645 _ACEOF
27646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27647 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27648 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27649 else
27651 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27652 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27653 _ACEOF
27655 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27656 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27657 # trailing colons and then remove the whole line if VPATH becomes empty
27658 # (actually we leave an empty line to preserve line numbers).
27659 if test "x$srcdir" = x.; then
27660 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27661 s/:*\$(srcdir):*/:/
27662 s/:*\${srcdir}:*/:/
27663 s/:*@srcdir@:*/:/
27664 s/^\([^=]*=[ ]*\):*/\1/
27665 s/:*$//
27666 s/^[^=]*=[ ]*$//
27670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27671 fi # test -n "$CONFIG_FILES"
27673 # Set up the scripts for CONFIG_HEADERS section.
27674 # No need to generate them if there are no CONFIG_HEADERS.
27675 # This happens for instance with `./config.status Makefile'.
27676 if test -n "$CONFIG_HEADERS"; then
27677 cat >"$tmp/defines.awk" <<\_ACAWK ||
27678 BEGIN {
27679 _ACEOF
27681 # Transform confdefs.h into an awk script `defines.awk', embedded as
27682 # here-document in config.status, that substitutes the proper values into
27683 # config.h.in to produce config.h.
27685 # Create a delimiter string that does not exist in confdefs.h, to ease
27686 # handling of long lines.
27687 ac_delim='%!_!# '
27688 for ac_last_try in false false :; do
27689 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27690 if test -z "$ac_t"; then
27691 break
27692 elif $ac_last_try; then
27693 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27694 else
27695 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27697 done
27699 # For the awk script, D is an array of macro values keyed by name,
27700 # likewise P contains macro parameters if any. Preserve backslash
27701 # newline sequences.
27703 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27704 sed -n '
27705 s/.\{148\}/&'"$ac_delim"'/g
27706 t rset
27707 :rset
27708 s/^[ ]*#[ ]*define[ ][ ]*/ /
27709 t def
27711 :def
27712 s/\\$//
27713 t bsnl
27714 s/["\\]/\\&/g
27715 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27716 D["\1"]=" \3"/p
27717 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27719 :bsnl
27720 s/["\\]/\\&/g
27721 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27722 D["\1"]=" \3\\\\\\n"\\/p
27723 t cont
27724 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27725 t cont
27727 :cont
27729 s/.\{148\}/&'"$ac_delim"'/g
27730 t clear
27731 :clear
27732 s/\\$//
27733 t bsnlc
27734 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27736 :bsnlc
27737 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27738 b cont
27739 ' <confdefs.h | sed '
27740 s/'"$ac_delim"'/"\\\
27741 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27744 for (key in D) D_is_set[key] = 1
27745 FS = "\a"
27747 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27748 line = \$ 0
27749 split(line, arg, " ")
27750 if (arg[1] == "#") {
27751 defundef = arg[2]
27752 mac1 = arg[3]
27753 } else {
27754 defundef = substr(arg[1], 2)
27755 mac1 = arg[2]
27757 split(mac1, mac2, "(") #)
27758 macro = mac2[1]
27759 prefix = substr(line, 1, index(line, defundef) - 1)
27760 if (D_is_set[macro]) {
27761 # Preserve the white space surrounding the "#".
27762 print prefix "define", macro P[macro] D[macro]
27763 next
27764 } else {
27765 # Replace #undef with comments. This is necessary, for example,
27766 # in the case of _POSIX_SOURCE, which is predefined and required
27767 # on some systems where configure will not decide to define it.
27768 if (defundef == "undef") {
27769 print "/*", prefix defundef, macro, "*/"
27770 next
27774 { print }
27775 _ACAWK
27776 _ACEOF
27777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27778 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27779 fi # test -n "$CONFIG_HEADERS"
27782 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27783 shift
27784 for ac_tag
27786 case $ac_tag in
27787 :[FHLC]) ac_mode=$ac_tag; continue;;
27788 esac
27789 case $ac_mode$ac_tag in
27790 :[FHL]*:*);;
27791 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27792 :[FH]-) ac_tag=-:-;;
27793 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27794 esac
27795 ac_save_IFS=$IFS
27796 IFS=:
27797 set x $ac_tag
27798 IFS=$ac_save_IFS
27799 shift
27800 ac_file=$1
27801 shift
27803 case $ac_mode in
27804 :L) ac_source=$1;;
27805 :[FH])
27806 ac_file_inputs=
27807 for ac_f
27809 case $ac_f in
27810 -) ac_f="$tmp/stdin";;
27811 *) # Look for the file first in the build tree, then in the source tree
27812 # (if the path is not absolute). The absolute path cannot be DOS-style,
27813 # because $ac_f cannot contain `:'.
27814 test -f "$ac_f" ||
27815 case $ac_f in
27816 [\\/$]*) false;;
27817 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27818 esac ||
27819 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27820 esac
27821 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27822 as_fn_append ac_file_inputs " '$ac_f'"
27823 done
27825 # Let's still pretend it is `configure' which instantiates (i.e., don't
27826 # use $as_me), people would be surprised to read:
27827 # /* config.h. Generated by config.status. */
27828 configure_input='Generated from '`
27829 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27830 `' by configure.'
27831 if test x"$ac_file" != x-; then
27832 configure_input="$ac_file. $configure_input"
27833 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27834 $as_echo "$as_me: creating $ac_file" >&6;}
27836 # Neutralize special characters interpreted by sed in replacement strings.
27837 case $configure_input in #(
27838 *\&* | *\|* | *\\* )
27839 ac_sed_conf_input=`$as_echo "$configure_input" |
27840 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27841 *) ac_sed_conf_input=$configure_input;;
27842 esac
27844 case $ac_tag in
27845 *:-:* | *:-) cat >"$tmp/stdin" \
27846 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27847 esac
27849 esac
27851 ac_dir=`$as_dirname -- "$ac_file" ||
27852 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27853 X"$ac_file" : 'X\(//\)[^/]' \| \
27854 X"$ac_file" : 'X\(//\)$' \| \
27855 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27856 $as_echo X"$ac_file" |
27857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27858 s//\1/
27861 /^X\(\/\/\)[^/].*/{
27862 s//\1/
27865 /^X\(\/\/\)$/{
27866 s//\1/
27869 /^X\(\/\).*/{
27870 s//\1/
27873 s/.*/./; q'`
27874 as_dir="$ac_dir"; as_fn_mkdir_p
27875 ac_builddir=.
27877 case "$ac_dir" in
27878 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27880 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27881 # A ".." for each directory in $ac_dir_suffix.
27882 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27883 case $ac_top_builddir_sub in
27884 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27885 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27886 esac ;;
27887 esac
27888 ac_abs_top_builddir=$ac_pwd
27889 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27890 # for backward compatibility:
27891 ac_top_builddir=$ac_top_build_prefix
27893 case $srcdir in
27894 .) # We are building in place.
27895 ac_srcdir=.
27896 ac_top_srcdir=$ac_top_builddir_sub
27897 ac_abs_top_srcdir=$ac_pwd ;;
27898 [\\/]* | ?:[\\/]* ) # Absolute name.
27899 ac_srcdir=$srcdir$ac_dir_suffix;
27900 ac_top_srcdir=$srcdir
27901 ac_abs_top_srcdir=$srcdir ;;
27902 *) # Relative name.
27903 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27904 ac_top_srcdir=$ac_top_build_prefix$srcdir
27905 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27906 esac
27907 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27910 case $ac_mode in
27913 # CONFIG_FILE
27916 case $INSTALL in
27917 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27918 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27919 esac
27920 ac_MKDIR_P=$MKDIR_P
27921 case $MKDIR_P in
27922 [\\/$]* | ?:[\\/]* ) ;;
27923 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27924 esac
27925 _ACEOF
27927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27928 # If the template does not know about datarootdir, expand it.
27929 # FIXME: This hack should be removed a few years after 2.60.
27930 ac_datarootdir_hack=; ac_datarootdir_seen=
27931 ac_sed_dataroot='
27932 /datarootdir/ {
27936 /@datadir@/p
27937 /@docdir@/p
27938 /@infodir@/p
27939 /@localedir@/p
27940 /@mandir@/p'
27941 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27942 *datarootdir*) ac_datarootdir_seen=yes;;
27943 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27945 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27946 _ACEOF
27947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27948 ac_datarootdir_hack='
27949 s&@datadir@&$datadir&g
27950 s&@docdir@&$docdir&g
27951 s&@infodir@&$infodir&g
27952 s&@localedir@&$localedir&g
27953 s&@mandir@&$mandir&g
27954 s&\\\${datarootdir}&$datarootdir&g' ;;
27955 esac
27956 _ACEOF
27958 # Neutralize VPATH when `$srcdir' = `.'.
27959 # Shell code in configure.ac might set extrasub.
27960 # FIXME: do we really want to maintain this feature?
27961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27962 ac_sed_extra="$ac_vpsub
27963 $extrasub
27964 _ACEOF
27965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27967 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27968 s|@configure_input@|$ac_sed_conf_input|;t t
27969 s&@top_builddir@&$ac_top_builddir_sub&;t t
27970 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27971 s&@srcdir@&$ac_srcdir&;t t
27972 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27973 s&@top_srcdir@&$ac_top_srcdir&;t t
27974 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27975 s&@builddir@&$ac_builddir&;t t
27976 s&@abs_builddir@&$ac_abs_builddir&;t t
27977 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27978 s&@INSTALL@&$ac_INSTALL&;t t
27979 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27980 $ac_datarootdir_hack
27982 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27983 if $ac_cs_awk_getline; then
27984 $AWK -f "$tmp/subs.awk"
27985 else
27986 $AWK -f "$tmp/subs.awk" | $SHELL
27987 fi >$tmp/out \
27988 || as_fn_error "could not create $ac_file" "$LINENO" 5
27990 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27991 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27992 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27994 which seems to be undefined. Please make sure it is defined." >&5
27995 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27996 which seems to be undefined. Please make sure it is defined." >&2;}
27998 rm -f "$tmp/stdin"
27999 case $ac_file in
28000 -) cat "$tmp/out" && rm -f "$tmp/out";;
28001 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28002 esac \
28003 || as_fn_error "could not create $ac_file" "$LINENO" 5
28007 # CONFIG_HEADER
28009 if test x"$ac_file" != x-; then
28011 $as_echo "/* $configure_input */" \
28012 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28013 } >"$tmp/config.h" \
28014 || as_fn_error "could not create $ac_file" "$LINENO" 5
28015 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28016 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28017 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28018 else
28019 rm -f "$ac_file"
28020 mv "$tmp/config.h" "$ac_file" \
28021 || as_fn_error "could not create $ac_file" "$LINENO" 5
28023 else
28024 $as_echo "/* $configure_input */" \
28025 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28026 || as_fn_error "could not create -" "$LINENO" 5
28028 # Compute "$ac_file"'s index in $config_headers.
28029 _am_arg="$ac_file"
28030 _am_stamp_count=1
28031 for _am_header in $config_headers :; do
28032 case $_am_header in
28033 $_am_arg | $_am_arg:* )
28034 break ;;
28036 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28037 esac
28038 done
28039 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28040 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28041 X"$_am_arg" : 'X\(//\)[^/]' \| \
28042 X"$_am_arg" : 'X\(//\)$' \| \
28043 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28044 $as_echo X"$_am_arg" |
28045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28046 s//\1/
28049 /^X\(\/\/\)[^/].*/{
28050 s//\1/
28053 /^X\(\/\/\)$/{
28054 s//\1/
28057 /^X\(\/\).*/{
28058 s//\1/
28061 s/.*/./; q'`/stamp-h$_am_stamp_count
28064 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28065 $as_echo "$as_me: executing $ac_file commands" >&6;}
28067 esac
28070 case $ac_file$ac_mode in
28071 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28072 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28073 # are listed without --file. Let's play safe and only enable the eval
28074 # if we detect the quoting.
28075 case $CONFIG_FILES in
28076 *\'*) eval set x "$CONFIG_FILES" ;;
28077 *) set x $CONFIG_FILES ;;
28078 esac
28079 shift
28080 for mf
28082 # Strip MF so we end up with the name of the file.
28083 mf=`echo "$mf" | sed -e 's/:.*$//'`
28084 # Check whether this is an Automake generated Makefile or not.
28085 # We used to match only the files named `Makefile.in', but
28086 # some people rename them; so instead we look at the file content.
28087 # Grep'ing the first line is not enough: some people post-process
28088 # each Makefile.in and add a new line on top of each file to say so.
28089 # Grep'ing the whole file is not good either: AIX grep has a line
28090 # limit of 2048, but all sed's we know have understand at least 4000.
28091 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28092 dirpart=`$as_dirname -- "$mf" ||
28093 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28094 X"$mf" : 'X\(//\)[^/]' \| \
28095 X"$mf" : 'X\(//\)$' \| \
28096 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28097 $as_echo X"$mf" |
28098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28099 s//\1/
28102 /^X\(\/\/\)[^/].*/{
28103 s//\1/
28106 /^X\(\/\/\)$/{
28107 s//\1/
28110 /^X\(\/\).*/{
28111 s//\1/
28114 s/.*/./; q'`
28115 else
28116 continue
28118 # Extract the definition of DEPDIR, am__include, and am__quote
28119 # from the Makefile without running `make'.
28120 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28121 test -z "$DEPDIR" && continue
28122 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28123 test -z "am__include" && continue
28124 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28125 # When using ansi2knr, U may be empty or an underscore; expand it
28126 U=`sed -n 's/^U = //p' < "$mf"`
28127 # Find all dependency output files, they are included files with
28128 # $(DEPDIR) in their names. We invoke sed twice because it is the
28129 # simplest approach to changing $(DEPDIR) to its actual value in the
28130 # expansion.
28131 for file in `sed -n "
28132 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28133 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28134 # Make sure the directory exists.
28135 test -f "$dirpart/$file" && continue
28136 fdir=`$as_dirname -- "$file" ||
28137 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28138 X"$file" : 'X\(//\)[^/]' \| \
28139 X"$file" : 'X\(//\)$' \| \
28140 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28141 $as_echo X"$file" |
28142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28143 s//\1/
28146 /^X\(\/\/\)[^/].*/{
28147 s//\1/
28150 /^X\(\/\/\)$/{
28151 s//\1/
28154 /^X\(\/\).*/{
28155 s//\1/
28158 s/.*/./; q'`
28159 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28160 # echo "creating $dirpart/$file"
28161 echo '# dummy' > "$dirpart/$file"
28162 done
28163 done
28166 "mkdirs":C)
28167 for dir in etc lisp ; do
28168 test -d ${dir} || mkdir ${dir}
28169 done
28171 "epaths":C)
28172 echo creating src/epaths.h
28173 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
28175 "gdbinit":C)
28176 if test ! -f src/.gdbinit && test -f "$srcdir/src/.gdbinit"; then
28177 echo creating src/.gdbinit
28178 echo "source $srcdir/src/.gdbinit" > src/.gdbinit
28182 esac
28183 done # for ac_tag
28186 as_fn_exit 0
28187 _ACEOF
28188 ac_clean_files=$ac_clean_files_save
28190 test $ac_write_fail = 0 ||
28191 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28194 # configure is writing to config.log, and then calls config.status.
28195 # config.status does its own redirection, appending to config.log.
28196 # Unfortunately, on DOS this fails, as config.log is still kept open
28197 # by configure, so config.status won't be able to write to it; its
28198 # output is simply discarded. So we exec the FD to /dev/null,
28199 # effectively closing config.log, so it can be properly (re)opened and
28200 # appended to by config.status. When coming back to configure, we
28201 # need to make the FD available again.
28202 if test "$no_create" != yes; then
28203 ac_cs_success=:
28204 ac_config_status_args=
28205 test "$silent" = yes &&
28206 ac_config_status_args="$ac_config_status_args --quiet"
28207 exec 5>/dev/null
28208 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28209 exec 5>>config.log
28210 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28211 # would make configure fail if this is the last instruction.
28212 $ac_cs_success || as_fn_exit $?
28214 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28216 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}