Merge from emacs-24 branch
[emacs.git] / autogen / configure
blob0d9d1abdaa49f36ebea9959fb7ae835f621e7e49
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.1.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.1.50'
553 PACKAGE_STRING='emacs 24.1.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 LIB_GCC
608 LD_FIRSTFLAG
609 LD_SWITCH_SYSTEM_TEMACS
610 LIBGNU_LTLIBDEPS
611 LIBGNU_LIBDEPS
612 gltests_WITNESS
613 gl_GNULIB_ENABLED_verify_FALSE
614 gl_GNULIB_ENABLED_verify_TRUE
615 gl_GNULIB_ENABLED_strtoull_FALSE
616 gl_GNULIB_ENABLED_strtoull_TRUE
617 gl_GNULIB_ENABLED_strtoll_FALSE
618 gl_GNULIB_ENABLED_strtoll_TRUE
619 gl_GNULIB_ENABLED_stat_FALSE
620 gl_GNULIB_ENABLED_stat_TRUE
621 gl_GNULIB_ENABLED_sigprocmask_FALSE
622 gl_GNULIB_ENABLED_sigprocmask_TRUE
623 gl_GNULIB_ENABLED_pathmax_FALSE
624 gl_GNULIB_ENABLED_pathmax_TRUE
625 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
626 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
627 gl_GNULIB_ENABLED_dosname_FALSE
628 gl_GNULIB_ENABLED_dosname_TRUE
629 LTLIBINTL
630 LIBINTL
631 HAVE_UNISTD_H
632 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
633 NEXT_UNISTD_H
634 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
635 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
636 TIME_H_DEFINES_STRUCT_TIMESPEC
637 NEXT_AS_FIRST_DIRECTIVE_TIME_H
638 NEXT_TIME_H
639 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
640 NEXT_SYS_STAT_H
641 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
642 NEXT_STDLIB_H
643 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
644 NEXT_STDIO_H
645 REPLACE_VSPRINTF
646 REPLACE_VSNPRINTF
647 REPLACE_VPRINTF
648 REPLACE_VFPRINTF
649 REPLACE_VDPRINTF
650 REPLACE_VASPRINTF
651 REPLACE_TMPFILE
652 REPLACE_STDIO_WRITE_FUNCS
653 REPLACE_STDIO_READ_FUNCS
654 REPLACE_SPRINTF
655 REPLACE_SNPRINTF
656 REPLACE_RENAMEAT
657 REPLACE_RENAME
658 REPLACE_REMOVE
659 REPLACE_PRINTF
660 REPLACE_POPEN
661 REPLACE_PERROR
662 REPLACE_OBSTACK_PRINTF
663 REPLACE_GETLINE
664 REPLACE_GETDELIM
665 REPLACE_FTELLO
666 REPLACE_FTELL
667 REPLACE_FSEEKO
668 REPLACE_FSEEK
669 REPLACE_FREOPEN
670 REPLACE_FPURGE
671 REPLACE_FPRINTF
672 REPLACE_FOPEN
673 REPLACE_FFLUSH
674 REPLACE_FDOPEN
675 REPLACE_FCLOSE
676 REPLACE_DPRINTF
677 HAVE_VDPRINTF
678 HAVE_VASPRINTF
679 HAVE_RENAMEAT
680 HAVE_POPEN
681 HAVE_PCLOSE
682 HAVE_FTELLO
683 HAVE_FSEEKO
684 HAVE_DPRINTF
685 HAVE_DECL_VSNPRINTF
686 HAVE_DECL_SNPRINTF
687 HAVE_DECL_OBSTACK_PRINTF
688 HAVE_DECL_GETLINE
689 HAVE_DECL_GETDELIM
690 HAVE_DECL_FTELLO
691 HAVE_DECL_FSEEKO
692 HAVE_DECL_FPURGE
693 GNULIB_VSPRINTF_POSIX
694 GNULIB_VSNPRINTF
695 GNULIB_VPRINTF_POSIX
696 GNULIB_VPRINTF
697 GNULIB_VFPRINTF_POSIX
698 GNULIB_VFPRINTF
699 GNULIB_VDPRINTF
700 GNULIB_VSCANF
701 GNULIB_VFSCANF
702 GNULIB_VASPRINTF
703 GNULIB_TMPFILE
704 GNULIB_STDIO_H_SIGPIPE
705 GNULIB_STDIO_H_NONBLOCKING
706 GNULIB_SPRINTF_POSIX
707 GNULIB_SNPRINTF
708 GNULIB_SCANF
709 GNULIB_RENAMEAT
710 GNULIB_RENAME
711 GNULIB_REMOVE
712 GNULIB_PUTS
713 GNULIB_PUTCHAR
714 GNULIB_PUTC
715 GNULIB_PRINTF_POSIX
716 GNULIB_PRINTF
717 GNULIB_POPEN
718 GNULIB_PERROR
719 GNULIB_PCLOSE
720 GNULIB_OBSTACK_PRINTF_POSIX
721 GNULIB_OBSTACK_PRINTF
722 GNULIB_GETS
723 GNULIB_GETLINE
724 GNULIB_GETDELIM
725 GNULIB_GETCHAR
726 GNULIB_GETC
727 GNULIB_FWRITE
728 GNULIB_FTELLO
729 GNULIB_FTELL
730 GNULIB_FSEEKO
731 GNULIB_FSEEK
732 GNULIB_FSCANF
733 GNULIB_FREOPEN
734 GNULIB_FREAD
735 GNULIB_FPUTS
736 GNULIB_FPUTC
737 GNULIB_FPURGE
738 GNULIB_FPRINTF_POSIX
739 GNULIB_FPRINTF
740 GNULIB_FOPEN
741 GNULIB_FGETS
742 GNULIB_FGETC
743 GNULIB_FFLUSH
744 GNULIB_FDOPEN
745 GNULIB_FCLOSE
746 GNULIB_DPRINTF
747 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
748 NEXT_STDDEF_H
749 GL_GENERATE_STDDEF_H_FALSE
750 GL_GENERATE_STDDEF_H_TRUE
751 STDDEF_H
752 HAVE_WCHAR_T
753 REPLACE_NULL
754 HAVE__BOOL
755 GL_GENERATE_STDBOOL_H_FALSE
756 GL_GENERATE_STDBOOL_H_TRUE
757 STDBOOL_H
758 GL_GENERATE_STDARG_H_FALSE
759 GL_GENERATE_STDARG_H_TRUE
760 STDARG_H
761 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
762 NEXT_STDARG_H
763 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
764 NEXT_SIGNAL_H
765 REPLACE_RAISE
766 REPLACE_PTHREAD_SIGMASK
767 HAVE_SIGHANDLER_T
768 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
769 HAVE_STRUCT_SIGACTION_SA_SIGACTION
770 HAVE_SIGACTION
771 HAVE_SIGINFO_T
772 HAVE_SIGSET_T
773 HAVE_RAISE
774 HAVE_PTHREAD_SIGMASK
775 HAVE_POSIX_SIGNALBLOCKING
776 GNULIB_SIGACTION
777 GNULIB_SIGPROCMASK
778 GNULIB_SIGNAL_H_SIGPIPE
779 GNULIB_RAISE
780 GNULIB_PTHREAD_SIGMASK
781 LIB_PTHREAD_SIGMASK
782 REPLACE_TIMEGM
783 REPLACE_NANOSLEEP
784 REPLACE_MKTIME
785 REPLACE_LOCALTIME_R
786 HAVE_TIMEGM
787 HAVE_STRPTIME
788 HAVE_NANOSLEEP
789 HAVE_DECL_LOCALTIME_R
790 GNULIB_TIME_R
791 GNULIB_TIMEGM
792 GNULIB_STRPTIME
793 GNULIB_NANOSLEEP
794 GNULIB_MKTIME
795 REPLACE_UTIMENSAT
796 REPLACE_STAT
797 REPLACE_MKNOD
798 REPLACE_MKFIFO
799 REPLACE_MKDIR
800 REPLACE_LSTAT
801 REPLACE_FUTIMENS
802 REPLACE_FSTATAT
803 REPLACE_FSTAT
804 HAVE_UTIMENSAT
805 HAVE_MKNODAT
806 HAVE_MKNOD
807 HAVE_MKFIFOAT
808 HAVE_MKFIFO
809 HAVE_MKDIRAT
810 HAVE_LSTAT
811 HAVE_LCHMOD
812 HAVE_FUTIMENS
813 HAVE_FSTATAT
814 HAVE_FCHMODAT
815 GNULIB_UTIMENSAT
816 GNULIB_STAT
817 GNULIB_MKNODAT
818 GNULIB_MKNOD
819 GNULIB_MKFIFOAT
820 GNULIB_MKFIFO
821 GNULIB_MKDIRAT
822 GNULIB_LSTAT
823 GNULIB_LCHMOD
824 GNULIB_FUTIMENS
825 GNULIB_FSTATAT
826 GNULIB_FSTAT
827 GNULIB_FCHMODAT
828 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
829 NEXT_INTTYPES_H
830 UINT64_MAX_EQ_ULONG_MAX
831 UINT32_MAX_LT_UINTMAX_MAX
832 PRIPTR_PREFIX
833 PRI_MACROS_BROKEN
834 INT64_MAX_EQ_LONG_MAX
835 INT32_MAX_LT_INTMAX_MAX
836 HAVE_DECL_STRTOUMAX
837 HAVE_DECL_STRTOIMAX
838 HAVE_DECL_IMAXDIV
839 HAVE_DECL_IMAXABS
840 GNULIB_STRTOUMAX
841 GNULIB_STRTOIMAX
842 GNULIB_IMAXDIV
843 GNULIB_IMAXABS
844 GL_GENERATE_STDINT_H_FALSE
845 GL_GENERATE_STDINT_H_TRUE
846 STDINT_H
847 WINT_T_SUFFIX
848 WCHAR_T_SUFFIX
849 SIG_ATOMIC_T_SUFFIX
850 SIZE_T_SUFFIX
851 PTRDIFF_T_SUFFIX
852 HAVE_SIGNED_WINT_T
853 HAVE_SIGNED_WCHAR_T
854 HAVE_SIGNED_SIG_ATOMIC_T
855 BITSIZEOF_WINT_T
856 BITSIZEOF_WCHAR_T
857 BITSIZEOF_SIG_ATOMIC_T
858 BITSIZEOF_SIZE_T
859 BITSIZEOF_PTRDIFF_T
860 APPLE_UNIVERSAL_BUILD
861 HAVE_SYS_BITYPES_H
862 HAVE_SYS_INTTYPES_H
863 HAVE_STDINT_H
864 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
865 NEXT_STDINT_H
866 HAVE_SYS_TYPES_H
867 HAVE_INTTYPES_H
868 HAVE_WCHAR_H
869 HAVE_UNSIGNED_LONG_LONG_INT
870 HAVE_LONG_LONG_INT
871 GETOPT_H
872 HAVE_GETOPT_H
873 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
874 NEXT_GETOPT_H
875 PRAGMA_COLUMNS
876 PRAGMA_SYSTEM_HEADER
877 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
878 INCLUDE_NEXT
879 GETLOADAVG_LIBS
880 REPLACE_WCTOMB
881 REPLACE_UNSETENV
882 REPLACE_STRTOD
883 REPLACE_SETENV
884 REPLACE_REALPATH
885 REPLACE_REALLOC
886 REPLACE_PUTENV
887 REPLACE_MKSTEMP
888 REPLACE_MBTOWC
889 REPLACE_MALLOC
890 REPLACE_CANONICALIZE_FILE_NAME
891 REPLACE_CALLOC
892 HAVE_DECL_UNSETENV
893 HAVE_UNLOCKPT
894 HAVE_SYS_LOADAVG_H
895 HAVE_STRUCT_RANDOM_DATA
896 HAVE_STRTOULL
897 HAVE_STRTOLL
898 HAVE_STRTOD
899 HAVE_DECL_SETENV
900 HAVE_SETENV
901 HAVE_RPMATCH
902 HAVE_REALPATH
903 HAVE_RANDOM_R
904 HAVE_RANDOM_H
905 HAVE_PTSNAME
906 HAVE_MKSTEMPS
907 HAVE_MKSTEMP
908 HAVE_MKOSTEMPS
909 HAVE_MKOSTEMP
910 HAVE_MKDTEMP
911 HAVE_GRANTPT
912 HAVE_GETSUBOPT
913 HAVE_DECL_GETLOADAVG
914 HAVE_CANONICALIZE_FILE_NAME
915 HAVE_ATOLL
916 HAVE__EXIT
917 GNULIB_WCTOMB
918 GNULIB_UNSETENV
919 GNULIB_UNLOCKPT
920 GNULIB_SYSTEM_POSIX
921 GNULIB_STRTOULL
922 GNULIB_STRTOLL
923 GNULIB_STRTOD
924 GNULIB_SETENV
925 GNULIB_RPMATCH
926 GNULIB_REALPATH
927 GNULIB_REALLOC_POSIX
928 GNULIB_RANDOM_R
929 GNULIB_PUTENV
930 GNULIB_PTSNAME
931 GNULIB_MKSTEMPS
932 GNULIB_MKSTEMP
933 GNULIB_MKOSTEMPS
934 GNULIB_MKOSTEMP
935 GNULIB_MKDTEMP
936 GNULIB_MBTOWC
937 GNULIB_MALLOC_POSIX
938 GNULIB_GRANTPT
939 GNULIB_GETSUBOPT
940 GNULIB_GETLOADAVG
941 GNULIB_CANONICALIZE_FILE_NAME
942 GNULIB_CALLOC_POSIX
943 GNULIB_ATOLL
944 GNULIB__EXIT
945 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
946 UNISTD_H_HAVE_WINSOCK2_H
947 REPLACE_WRITE
948 REPLACE_USLEEP
949 REPLACE_UNLINKAT
950 REPLACE_UNLINK
951 REPLACE_TTYNAME_R
952 REPLACE_SYMLINK
953 REPLACE_SLEEP
954 REPLACE_RMDIR
955 REPLACE_READLINK
956 REPLACE_READ
957 REPLACE_PWRITE
958 REPLACE_PREAD
959 REPLACE_LSEEK
960 REPLACE_LINKAT
961 REPLACE_LINK
962 REPLACE_LCHOWN
963 REPLACE_GETPAGESIZE
964 REPLACE_GETGROUPS
965 REPLACE_GETLOGIN_R
966 REPLACE_GETDOMAINNAME
967 REPLACE_GETCWD
968 REPLACE_FCHOWNAT
969 REPLACE_DUP2
970 REPLACE_DUP
971 REPLACE_CLOSE
972 REPLACE_CHOWN
973 HAVE_SYS_PARAM_H
974 HAVE_OS_H
975 HAVE_DECL_TTYNAME_R
976 HAVE_DECL_GETUSERSHELL
977 HAVE_DECL_GETPAGESIZE
978 HAVE_DECL_GETLOGIN_R
979 HAVE_DECL_GETDOMAINNAME
980 HAVE_DECL_FDATASYNC
981 HAVE_DECL_FCHDIR
982 HAVE_DECL_ENVIRON
983 HAVE_USLEEP
984 HAVE_UNLINKAT
985 HAVE_SYMLINKAT
986 HAVE_SYMLINK
987 HAVE_SLEEP
988 HAVE_READLINKAT
989 HAVE_READLINK
990 HAVE_PWRITE
991 HAVE_PREAD
992 HAVE_PIPE2
993 HAVE_PIPE
994 HAVE_LINKAT
995 HAVE_LINK
996 HAVE_LCHOWN
997 HAVE_GROUP_MEMBER
998 HAVE_GETPAGESIZE
999 HAVE_GETLOGIN
1000 HAVE_GETHOSTNAME
1001 HAVE_GETGROUPS
1002 HAVE_GETDTABLESIZE
1003 HAVE_FTRUNCATE
1004 HAVE_FSYNC
1005 HAVE_FDATASYNC
1006 HAVE_FCHOWNAT
1007 HAVE_FCHDIR
1008 HAVE_FACCESSAT
1009 HAVE_EUIDACCESS
1010 HAVE_DUP3
1011 HAVE_DUP2
1012 HAVE_CHOWN
1013 GNULIB_WRITE
1014 GNULIB_USLEEP
1015 GNULIB_UNLINKAT
1016 GNULIB_UNLINK
1017 GNULIB_UNISTD_H_SIGPIPE
1018 GNULIB_UNISTD_H_NONBLOCKING
1019 GNULIB_UNISTD_H_GETOPT
1020 GNULIB_TTYNAME_R
1021 GNULIB_SYMLINKAT
1022 GNULIB_SYMLINK
1023 GNULIB_SLEEP
1024 GNULIB_RMDIR
1025 GNULIB_READLINKAT
1026 GNULIB_READLINK
1027 GNULIB_READ
1028 GNULIB_PWRITE
1029 GNULIB_PREAD
1030 GNULIB_PIPE2
1031 GNULIB_PIPE
1032 GNULIB_LSEEK
1033 GNULIB_LINKAT
1034 GNULIB_LINK
1035 GNULIB_LCHOWN
1036 GNULIB_GROUP_MEMBER
1037 GNULIB_GETUSERSHELL
1038 GNULIB_GETPAGESIZE
1039 GNULIB_GETLOGIN_R
1040 GNULIB_GETLOGIN
1041 GNULIB_GETHOSTNAME
1042 GNULIB_GETGROUPS
1043 GNULIB_GETDTABLESIZE
1044 GNULIB_GETDOMAINNAME
1045 GNULIB_GETCWD
1046 GNULIB_FTRUNCATE
1047 GNULIB_FSYNC
1048 GNULIB_FDATASYNC
1049 GNULIB_FCHOWNAT
1050 GNULIB_FCHDIR
1051 GNULIB_FACCESSAT
1052 GNULIB_EUIDACCESS
1053 GNULIB_ENVIRON
1054 GNULIB_DUP3
1055 GNULIB_DUP2
1056 GNULIB_DUP
1057 GNULIB_CLOSE
1058 GNULIB_CHOWN
1059 GNULIB_CHDIR
1060 GL_GENERATE_ALLOCA_H_FALSE
1061 GL_GENERATE_ALLOCA_H_TRUE
1062 ALLOCA_H
1063 ALLOCA
1064 GL_COND_LIBTOOL_FALSE
1065 GL_COND_LIBTOOL_TRUE
1066 POST_ALLOC_OBJ
1067 PRE_ALLOC_OBJ
1068 CYGWIN_OBJ
1069 RALLOC_OBJ
1070 OLDXMENU_DEPS
1071 LIBX_OTHER
1072 LIBXMENU
1073 OLDXMENU
1074 OLDXMENU_TARGET
1075 LIBXT_OTHER
1076 TOOLKIT_LIBW
1077 WIDGET_OBJ
1078 XOBJ
1079 XMENU_OBJ
1080 FONT_OBJ
1081 OTHER_FILES
1082 GNU_OBJC_CFLAGS
1083 ns_appsrc
1084 ns_appresdir
1085 ns_appbindir
1086 ns_appdir
1087 S_FILE
1088 M_FILE
1089 X_TOOLKIT_TYPE
1090 GNUSTEP_CFLAGS
1091 C_SWITCH_X_SITE
1092 LD_SWITCH_X_SITE
1093 gameuser
1094 gamedir
1095 bitmapdir
1096 archlibdir
1097 etcdir
1098 x_default_search_path
1099 lisppath
1100 locallisppath
1101 lispdir
1102 srcdir
1103 canonical
1104 configuration
1105 version
1106 KRB4LIB
1107 DESLIB
1108 KRB5LIB
1109 CRYPTOLIB
1110 COM_ERRLIB
1111 LIBRESOLV
1112 LIBHESIOD
1113 TERMCAP_OBJ
1114 LIBS_TERMCAP
1115 BLESSMAIL_TARGET
1116 LIBS_MAIL
1117 liblockfile
1118 LIBXML2_LIBS
1119 LIBXML2_CFLAGS
1120 LIBXSM
1121 LIBGPM
1122 LIBGIF
1123 LIBTIFF
1124 LIBPNG
1125 LIBJPEG
1126 LIBXPM
1127 M17N_FLT_LIBS
1128 M17N_FLT_CFLAGS
1129 LIBOTF_LIBS
1130 LIBOTF_CFLAGS
1131 FREETYPE_LIBS
1132 FREETYPE_CFLAGS
1133 XFT_LIBS
1134 XFT_CFLAGS
1135 FONTCONFIG_LIBS
1136 FONTCONFIG_CFLAGS
1137 LIBXMU
1138 LIBXTR6
1139 LIBGNUTLS_LIBS
1140 LIBGNUTLS_CFLAGS
1141 LIBSELINUX_LIBS
1142 SETTINGS_LIBS
1143 SETTINGS_CFLAGS
1144 GCONF_LIBS
1145 GCONF_CFLAGS
1146 GSETTINGS_LIBS
1147 GSETTINGS_CFLAGS
1148 DBUS_OBJ
1149 DBUS_LIBS
1150 DBUS_CFLAGS
1151 GTK_OBJ
1152 GTK_LIBS
1153 GTK_CFLAGS
1154 IMAGEMAGICK_LIBS
1155 IMAGEMAGICK_CFLAGS
1156 RSVG_LIBS
1157 RSVG_CFLAGS
1158 LIB_PTHREAD
1159 VMLIMIT_OBJ
1160 GMALLOC_OBJ
1161 HAVE_XSERVER
1162 LIB_STANDARD
1163 NS_OBJC_OBJ
1164 NS_OBJ
1165 TEMACS_LDFLAGS2
1166 LD_SWITCH_X_SITE_AUX_RPATH
1167 LD_SWITCH_X_SITE_AUX
1168 XMKMF
1169 DEPFLAGS
1170 MKDEPDIR
1171 CFLAGS_SOUND
1172 ALSA_LIBS
1173 ALSA_CFLAGS
1174 PKG_CONFIG
1175 LIBSOUND
1176 CRT_DIR
1177 START_FILES
1178 LIB_MATH
1179 LIBS_SYSTEM
1180 C_SWITCH_SYSTEM
1181 UNEXEC_OBJ
1182 C_SWITCH_MACHINE
1183 LD_SWITCH_SYSTEM
1184 CANNOT_DUMP
1185 HAVE_MAKEINFO
1186 GZIP_PROG
1187 INSTALL_INFO
1188 GNULIB_WARN_CFLAGS
1189 WARN_CFLAGS
1190 WERROR_CFLAGS
1191 RANLIB
1192 ARFLAGS
1194 EGREP
1195 GREP
1197 am__fastdepCC_FALSE
1198 am__fastdepCC_TRUE
1199 CCDEPMODE
1200 AMDEPBACKSLASH
1201 AMDEP_FALSE
1202 AMDEP_TRUE
1203 am__quote
1204 am__include
1205 DEPDIR
1206 OBJEXT
1207 EXEEXT
1208 ac_ct_CC
1209 CPPFLAGS
1210 LDFLAGS
1211 CFLAGS
1213 host_os
1214 host_vendor
1215 host_cpu
1216 host
1217 build_os
1218 build_vendor
1219 build_cpu
1220 build
1221 PROFILING_CFLAGS
1222 MAINT
1223 GZIP_INFO
1224 cache_file
1225 am__untar
1226 am__tar
1227 AMTAR
1228 am__leading_dot
1229 SET_MAKE
1231 mkdir_p
1232 MKDIR_P
1233 INSTALL_STRIP_PROGRAM
1234 STRIP
1235 install_sh
1236 MAKEINFO
1237 AUTOHEADER
1238 AUTOMAKE
1239 AUTOCONF
1240 ACLOCAL
1241 VERSION
1242 PACKAGE
1243 CYGPATH_W
1244 am__isrc
1245 INSTALL_DATA
1246 INSTALL_SCRIPT
1247 INSTALL_PROGRAM
1248 target_alias
1249 host_alias
1250 build_alias
1251 LIBS
1252 ECHO_T
1253 ECHO_N
1254 ECHO_C
1255 DEFS
1256 mandir
1257 localedir
1258 libdir
1259 psdir
1260 pdfdir
1261 dvidir
1262 htmldir
1263 infodir
1264 docdir
1265 oldincludedir
1266 includedir
1267 localstatedir
1268 sharedstatedir
1269 sysconfdir
1270 datadir
1271 datarootdir
1272 libexecdir
1273 sbindir
1274 bindir
1275 program_transform_name
1276 prefix
1277 exec_prefix
1278 PACKAGE_URL
1279 PACKAGE_BUGREPORT
1280 PACKAGE_STRING
1281 PACKAGE_VERSION
1282 PACKAGE_TARNAME
1283 PACKAGE_NAME
1284 PATH_SEPARATOR
1285 SHELL'
1286 ac_subst_files='deps_frag
1287 lisp_frag
1288 ns_frag'
1289 ac_user_opts='
1290 enable_option_checking
1291 with_pop
1292 with_kerberos
1293 with_kerberos5
1294 with_hesiod
1295 with_mmdf
1296 with_mail_unlink
1297 with_mailhost
1298 with_sound
1299 with_sync_input
1300 with_x_toolkit
1301 with_wide_int
1302 with_xpm
1303 with_jpeg
1304 with_tiff
1305 with_gif
1306 with_png
1307 with_rsvg
1308 with_xml2
1309 with_imagemagick
1310 with_xft
1311 with_libotf
1312 with_m17n_flt
1313 with_toolkit_scroll_bars
1314 with_xaw3d
1315 with_xim
1316 with_ns
1317 with_gpm
1318 with_dbus
1319 with_gconf
1320 with_gsettings
1321 with_selinux
1322 with_gnutls
1323 with_makeinfo
1324 with_compress_info
1325 with_pkg_config_prog
1326 with_crt_dir
1327 with_gameuser
1328 with_gnustep_conf
1329 enable_ns_self_contained
1330 enable_asserts
1331 enable_maintainer_mode
1332 enable_locallisppath
1333 enable_checking
1334 enable_use_lisp_union_type
1335 enable_profiling
1336 enable_autodepend
1337 enable_dependency_tracking
1338 enable_largefile
1339 enable_gcc_warnings
1340 with_x
1342 ac_precious_vars='build_alias
1343 host_alias
1344 target_alias
1346 CFLAGS
1347 LDFLAGS
1348 LIBS
1349 CPPFLAGS
1351 XMKMF'
1354 # Initialize some variables set by options.
1355 ac_init_help=
1356 ac_init_version=false
1357 ac_unrecognized_opts=
1358 ac_unrecognized_sep=
1359 # The variables have the same names as the options, with
1360 # dashes changed to underlines.
1361 cache_file=/dev/null
1362 exec_prefix=NONE
1363 no_create=
1364 no_recursion=
1365 prefix=NONE
1366 program_prefix=NONE
1367 program_suffix=NONE
1368 program_transform_name=s,x,x,
1369 silent=
1370 site=
1371 srcdir=
1372 verbose=
1373 x_includes=NONE
1374 x_libraries=NONE
1376 # Installation directory options.
1377 # These are left unexpanded so users can "make install exec_prefix=/foo"
1378 # and all the variables that are supposed to be based on exec_prefix
1379 # by default will actually change.
1380 # Use braces instead of parens because sh, perl, etc. also accept them.
1381 # (The list follows the same order as the GNU Coding Standards.)
1382 bindir='${exec_prefix}/bin'
1383 sbindir='${exec_prefix}/sbin'
1384 libexecdir='${exec_prefix}/libexec'
1385 datarootdir='${prefix}/share'
1386 datadir='${datarootdir}'
1387 sysconfdir='${prefix}/etc'
1388 sharedstatedir='${prefix}/com'
1389 localstatedir='${prefix}/var'
1390 includedir='${prefix}/include'
1391 oldincludedir='/usr/include'
1392 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1393 infodir='${datarootdir}/info'
1394 htmldir='${docdir}'
1395 dvidir='${docdir}'
1396 pdfdir='${docdir}'
1397 psdir='${docdir}'
1398 libdir='${exec_prefix}/lib'
1399 localedir='${datarootdir}/locale'
1400 mandir='${datarootdir}/man'
1402 ac_prev=
1403 ac_dashdash=
1404 for ac_option
1406 # If the previous option needs an argument, assign it.
1407 if test -n "$ac_prev"; then
1408 eval $ac_prev=\$ac_option
1409 ac_prev=
1410 continue
1413 case $ac_option in
1414 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1415 *) ac_optarg=yes ;;
1416 esac
1418 # Accept the important Cygnus configure options, so we can diagnose typos.
1420 case $ac_dashdash$ac_option in
1422 ac_dashdash=yes ;;
1424 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1425 ac_prev=bindir ;;
1426 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1427 bindir=$ac_optarg ;;
1429 -build | --build | --buil | --bui | --bu)
1430 ac_prev=build_alias ;;
1431 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1432 build_alias=$ac_optarg ;;
1434 -cache-file | --cache-file | --cache-fil | --cache-fi \
1435 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1436 ac_prev=cache_file ;;
1437 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1438 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1439 cache_file=$ac_optarg ;;
1441 --config-cache | -C)
1442 cache_file=config.cache ;;
1444 -datadir | --datadir | --datadi | --datad)
1445 ac_prev=datadir ;;
1446 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1447 datadir=$ac_optarg ;;
1449 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1450 | --dataroo | --dataro | --datar)
1451 ac_prev=datarootdir ;;
1452 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1453 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1454 datarootdir=$ac_optarg ;;
1456 -disable-* | --disable-*)
1457 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1458 # Reject names that are not valid shell variable names.
1459 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1460 as_fn_error "invalid feature name: $ac_useropt"
1461 ac_useropt_orig=$ac_useropt
1462 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1463 case $ac_user_opts in
1465 "enable_$ac_useropt"
1466 "*) ;;
1467 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1468 ac_unrecognized_sep=', ';;
1469 esac
1470 eval enable_$ac_useropt=no ;;
1472 -docdir | --docdir | --docdi | --doc | --do)
1473 ac_prev=docdir ;;
1474 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1475 docdir=$ac_optarg ;;
1477 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1478 ac_prev=dvidir ;;
1479 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1480 dvidir=$ac_optarg ;;
1482 -enable-* | --enable-*)
1483 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1484 # Reject names that are not valid shell variable names.
1485 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1486 as_fn_error "invalid feature name: $ac_useropt"
1487 ac_useropt_orig=$ac_useropt
1488 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1489 case $ac_user_opts in
1491 "enable_$ac_useropt"
1492 "*) ;;
1493 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1494 ac_unrecognized_sep=', ';;
1495 esac
1496 eval enable_$ac_useropt=\$ac_optarg ;;
1498 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1499 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1500 | --exec | --exe | --ex)
1501 ac_prev=exec_prefix ;;
1502 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1503 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1504 | --exec=* | --exe=* | --ex=*)
1505 exec_prefix=$ac_optarg ;;
1507 -gas | --gas | --ga | --g)
1508 # Obsolete; use --with-gas.
1509 with_gas=yes ;;
1511 -help | --help | --hel | --he | -h)
1512 ac_init_help=long ;;
1513 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1514 ac_init_help=recursive ;;
1515 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1516 ac_init_help=short ;;
1518 -host | --host | --hos | --ho)
1519 ac_prev=host_alias ;;
1520 -host=* | --host=* | --hos=* | --ho=*)
1521 host_alias=$ac_optarg ;;
1523 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1524 ac_prev=htmldir ;;
1525 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1526 | --ht=*)
1527 htmldir=$ac_optarg ;;
1529 -includedir | --includedir | --includedi | --included | --include \
1530 | --includ | --inclu | --incl | --inc)
1531 ac_prev=includedir ;;
1532 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1533 | --includ=* | --inclu=* | --incl=* | --inc=*)
1534 includedir=$ac_optarg ;;
1536 -infodir | --infodir | --infodi | --infod | --info | --inf)
1537 ac_prev=infodir ;;
1538 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1539 infodir=$ac_optarg ;;
1541 -libdir | --libdir | --libdi | --libd)
1542 ac_prev=libdir ;;
1543 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1544 libdir=$ac_optarg ;;
1546 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1547 | --libexe | --libex | --libe)
1548 ac_prev=libexecdir ;;
1549 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1550 | --libexe=* | --libex=* | --libe=*)
1551 libexecdir=$ac_optarg ;;
1553 -localedir | --localedir | --localedi | --localed | --locale)
1554 ac_prev=localedir ;;
1555 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1556 localedir=$ac_optarg ;;
1558 -localstatedir | --localstatedir | --localstatedi | --localstated \
1559 | --localstate | --localstat | --localsta | --localst | --locals)
1560 ac_prev=localstatedir ;;
1561 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1562 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1563 localstatedir=$ac_optarg ;;
1565 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1566 ac_prev=mandir ;;
1567 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1568 mandir=$ac_optarg ;;
1570 -nfp | --nfp | --nf)
1571 # Obsolete; use --without-fp.
1572 with_fp=no ;;
1574 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1575 | --no-cr | --no-c | -n)
1576 no_create=yes ;;
1578 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1579 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1580 no_recursion=yes ;;
1582 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1583 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1584 | --oldin | --oldi | --old | --ol | --o)
1585 ac_prev=oldincludedir ;;
1586 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1587 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1588 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1589 oldincludedir=$ac_optarg ;;
1591 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1592 ac_prev=prefix ;;
1593 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1594 prefix=$ac_optarg ;;
1596 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1597 | --program-pre | --program-pr | --program-p)
1598 ac_prev=program_prefix ;;
1599 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1600 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1601 program_prefix=$ac_optarg ;;
1603 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1604 | --program-suf | --program-su | --program-s)
1605 ac_prev=program_suffix ;;
1606 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1607 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1608 program_suffix=$ac_optarg ;;
1610 -program-transform-name | --program-transform-name \
1611 | --program-transform-nam | --program-transform-na \
1612 | --program-transform-n | --program-transform- \
1613 | --program-transform | --program-transfor \
1614 | --program-transfo | --program-transf \
1615 | --program-trans | --program-tran \
1616 | --progr-tra | --program-tr | --program-t)
1617 ac_prev=program_transform_name ;;
1618 -program-transform-name=* | --program-transform-name=* \
1619 | --program-transform-nam=* | --program-transform-na=* \
1620 | --program-transform-n=* | --program-transform-=* \
1621 | --program-transform=* | --program-transfor=* \
1622 | --program-transfo=* | --program-transf=* \
1623 | --program-trans=* | --program-tran=* \
1624 | --progr-tra=* | --program-tr=* | --program-t=*)
1625 program_transform_name=$ac_optarg ;;
1627 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1628 ac_prev=pdfdir ;;
1629 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1630 pdfdir=$ac_optarg ;;
1632 -psdir | --psdir | --psdi | --psd | --ps)
1633 ac_prev=psdir ;;
1634 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1635 psdir=$ac_optarg ;;
1637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638 | -silent | --silent | --silen | --sile | --sil)
1639 silent=yes ;;
1641 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1642 ac_prev=sbindir ;;
1643 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1644 | --sbi=* | --sb=*)
1645 sbindir=$ac_optarg ;;
1647 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1648 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1649 | --sharedst | --shareds | --shared | --share | --shar \
1650 | --sha | --sh)
1651 ac_prev=sharedstatedir ;;
1652 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1653 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1654 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1655 | --sha=* | --sh=*)
1656 sharedstatedir=$ac_optarg ;;
1658 -site | --site | --sit)
1659 ac_prev=site ;;
1660 -site=* | --site=* | --sit=*)
1661 site=$ac_optarg ;;
1663 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1664 ac_prev=srcdir ;;
1665 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1666 srcdir=$ac_optarg ;;
1668 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1669 | --syscon | --sysco | --sysc | --sys | --sy)
1670 ac_prev=sysconfdir ;;
1671 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1672 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1673 sysconfdir=$ac_optarg ;;
1675 -target | --target | --targe | --targ | --tar | --ta | --t)
1676 ac_prev=target_alias ;;
1677 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1678 target_alias=$ac_optarg ;;
1680 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1681 verbose=yes ;;
1683 -version | --version | --versio | --versi | --vers | -V)
1684 ac_init_version=: ;;
1686 -with-* | --with-*)
1687 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1688 # Reject names that are not valid shell variable names.
1689 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1690 as_fn_error "invalid package name: $ac_useropt"
1691 ac_useropt_orig=$ac_useropt
1692 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1693 case $ac_user_opts in
1695 "with_$ac_useropt"
1696 "*) ;;
1697 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1698 ac_unrecognized_sep=', ';;
1699 esac
1700 eval with_$ac_useropt=\$ac_optarg ;;
1702 -without-* | --without-*)
1703 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1704 # Reject names that are not valid shell variable names.
1705 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1706 as_fn_error "invalid package name: $ac_useropt"
1707 ac_useropt_orig=$ac_useropt
1708 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1709 case $ac_user_opts in
1711 "with_$ac_useropt"
1712 "*) ;;
1713 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1714 ac_unrecognized_sep=', ';;
1715 esac
1716 eval with_$ac_useropt=no ;;
1718 --x)
1719 # Obsolete; use --with-x.
1720 with_x=yes ;;
1722 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1723 | --x-incl | --x-inc | --x-in | --x-i)
1724 ac_prev=x_includes ;;
1725 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1726 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1727 x_includes=$ac_optarg ;;
1729 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1730 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1731 ac_prev=x_libraries ;;
1732 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1733 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1734 x_libraries=$ac_optarg ;;
1736 -*) as_fn_error "unrecognized option: \`$ac_option'
1737 Try \`$0 --help' for more information."
1740 *=*)
1741 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1742 # Reject names that are not valid shell variable names.
1743 case $ac_envvar in #(
1744 '' | [0-9]* | *[!_$as_cr_alnum]* )
1745 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1746 esac
1747 eval $ac_envvar=\$ac_optarg
1748 export $ac_envvar ;;
1751 # FIXME: should be removed in autoconf 3.0.
1752 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1753 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1754 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1755 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1758 esac
1759 done
1761 if test -n "$ac_prev"; then
1762 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1763 as_fn_error "missing argument to $ac_option"
1766 if test -n "$ac_unrecognized_opts"; then
1767 case $enable_option_checking in
1768 no) ;;
1769 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1770 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1771 esac
1774 # Check all directory arguments for consistency.
1775 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1776 datadir sysconfdir sharedstatedir localstatedir includedir \
1777 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1778 libdir localedir mandir
1780 eval ac_val=\$$ac_var
1781 # Remove trailing slashes.
1782 case $ac_val in
1783 */ )
1784 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1785 eval $ac_var=\$ac_val;;
1786 esac
1787 # Be sure to have absolute directory names.
1788 case $ac_val in
1789 [\\/$]* | ?:[\\/]* ) continue;;
1790 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1791 esac
1792 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1793 done
1795 # There might be people who depend on the old broken behavior: `$host'
1796 # used to hold the argument of --host etc.
1797 # FIXME: To remove some day.
1798 build=$build_alias
1799 host=$host_alias
1800 target=$target_alias
1802 # FIXME: To remove some day.
1803 if test "x$host_alias" != x; then
1804 if test "x$build_alias" = x; then
1805 cross_compiling=maybe
1806 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1807 If a cross compiler is detected then cross compile mode will be used." >&2
1808 elif test "x$build_alias" != "x$host_alias"; then
1809 cross_compiling=yes
1813 ac_tool_prefix=
1814 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1816 test "$silent" = yes && exec 6>/dev/null
1819 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1820 ac_ls_di=`ls -di .` &&
1821 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1822 as_fn_error "working directory cannot be determined"
1823 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1824 as_fn_error "pwd does not report name of working directory"
1827 # Find the source files, if location was not specified.
1828 if test -z "$srcdir"; then
1829 ac_srcdir_defaulted=yes
1830 # Try the directory containing this script, then the parent directory.
1831 ac_confdir=`$as_dirname -- "$as_myself" ||
1832 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1833 X"$as_myself" : 'X\(//\)[^/]' \| \
1834 X"$as_myself" : 'X\(//\)$' \| \
1835 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1836 $as_echo X"$as_myself" |
1837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1838 s//\1/
1841 /^X\(\/\/\)[^/].*/{
1842 s//\1/
1845 /^X\(\/\/\)$/{
1846 s//\1/
1849 /^X\(\/\).*/{
1850 s//\1/
1853 s/.*/./; q'`
1854 srcdir=$ac_confdir
1855 if test ! -r "$srcdir/$ac_unique_file"; then
1856 srcdir=..
1858 else
1859 ac_srcdir_defaulted=no
1861 if test ! -r "$srcdir/$ac_unique_file"; then
1862 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1863 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1865 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1866 ac_abs_confdir=`(
1867 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1868 pwd)`
1869 # When building in place, set srcdir=.
1870 if test "$ac_abs_confdir" = "$ac_pwd"; then
1871 srcdir=.
1873 # Remove unnecessary trailing slashes from srcdir.
1874 # Double slashes in file names in object file debugging info
1875 # mess up M-x gdb in Emacs.
1876 case $srcdir in
1877 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1878 esac
1879 for ac_var in $ac_precious_vars; do
1880 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1881 eval ac_env_${ac_var}_value=\$${ac_var}
1882 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1883 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1884 done
1887 # Report the --help message.
1889 if test "$ac_init_help" = "long"; then
1890 # Omit some internal or obsolete options to make the list less imposing.
1891 # This message is too long to be a string in the A/UX 3.1 sh.
1892 cat <<_ACEOF
1893 \`configure' configures emacs 24.1.50 to adapt to many kinds of systems.
1895 Usage: $0 [OPTION]... [VAR=VALUE]...
1897 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1898 VAR=VALUE. See below for descriptions of some of the useful variables.
1900 Defaults for the options are specified in brackets.
1902 Configuration:
1903 -h, --help display this help and exit
1904 --help=short display options specific to this package
1905 --help=recursive display the short help of all the included packages
1906 -V, --version display version information and exit
1907 -q, --quiet, --silent do not print \`checking...' messages
1908 --cache-file=FILE cache test results in FILE [disabled]
1909 -C, --config-cache alias for \`--cache-file=config.cache'
1910 -n, --no-create do not create output files
1911 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1913 Installation directories:
1914 --prefix=PREFIX install architecture-independent files in PREFIX
1915 [$ac_default_prefix]
1916 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1917 [PREFIX]
1919 By default, \`make install' will install all the files in
1920 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1921 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1922 for instance \`--prefix=\$HOME'.
1924 For better control, use the options below.
1926 Fine tuning of the installation directories:
1927 --bindir=DIR user executables [EPREFIX/bin]
1928 --sbindir=DIR system admin executables [EPREFIX/sbin]
1929 --libexecdir=DIR program executables [EPREFIX/libexec]
1930 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1931 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1932 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1933 --libdir=DIR object code libraries [EPREFIX/lib]
1934 --includedir=DIR C header files [PREFIX/include]
1935 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1936 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1937 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1938 --infodir=DIR info documentation [DATAROOTDIR/info]
1939 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1940 --mandir=DIR man documentation [DATAROOTDIR/man]
1941 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1942 --htmldir=DIR html documentation [DOCDIR]
1943 --dvidir=DIR dvi documentation [DOCDIR]
1944 --pdfdir=DIR pdf documentation [DOCDIR]
1945 --psdir=DIR ps documentation [DOCDIR]
1946 _ACEOF
1948 cat <<\_ACEOF
1950 Program names:
1951 --program-prefix=PREFIX prepend PREFIX to installed program names
1952 --program-suffix=SUFFIX append SUFFIX to installed program names
1953 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1955 X features:
1956 --x-includes=DIR X include files are in DIR
1957 --x-libraries=DIR X library files are in DIR
1959 System types:
1960 --build=BUILD configure for building on BUILD [guessed]
1961 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1962 _ACEOF
1965 if test -n "$ac_init_help"; then
1966 case $ac_init_help in
1967 short | recursive ) echo "Configuration of emacs 24.1.50:";;
1968 esac
1969 cat <<\_ACEOF
1971 Optional Features:
1972 --disable-option-checking ignore unrecognized --enable/--with options
1973 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1974 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1975 --disable-ns-self-contained
1976 disable self contained build under NeXTstep
1977 --enable-asserts compile code with asserts enabled
1978 --disable-maintainer-mode
1979 disable make rules and dependencies not useful (and
1980 sometimes confusing) to the casual installer
1981 --enable-locallisppath=PATH
1982 directories Emacs should search for lisp files
1983 specific to this site
1984 --enable-checking[=LIST]
1985 enable expensive run-time checks. With LIST, enable
1986 only specific categories of checks. Categories are:
1987 all,yes,no. Flags are: stringbytes, stringoverrun,
1988 stringfreelist, xmallocoverrun, conslist
1989 --enable-use-lisp-union-type
1990 use a union for the Lisp_Object data type. This is
1991 only useful for development for catching certain
1992 types of bugs.
1993 --enable-profiling build emacs with profiling support. This might not
1994 work on all platforms
1995 --enable-autodepend automatically generate dependencies to .h-files.
1996 Requires GNU Make and Gcc. Enabled if GNU Make and
1997 Gcc is found
1998 --disable-dependency-tracking speeds up one-time build
1999 --enable-dependency-tracking do not reject slow dependency extractors
2000 --disable-largefile omit support for large files
2001 --enable-gcc-warnings turn on lots of GCC warnings (for developers)
2003 Optional Packages:
2004 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2005 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2006 --without-pop don't support POP mail retrieval with movemail
2007 --with-kerberos support Kerberos-authenticated POP
2008 --with-kerberos5 support Kerberos version 5 authenticated POP
2009 --with-hesiod support Hesiod to get the POP server host
2010 --with-mmdf support MMDF mailboxes
2011 --with-mail-unlink unlink, rather than empty, mail spool after reading
2012 --with-mailhost=HOSTNAME
2013 string giving default POP mail host
2014 --without-sound don't compile with sound support
2015 --without-sync-input process async input synchronously
2016 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
2017 lucid or athena, motif, no)
2018 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2019 --without-xpm don't compile with XPM image support
2020 --without-jpeg don't compile with JPEG image support
2021 --without-tiff don't compile with TIFF image support
2022 --without-gif don't compile with GIF image support
2023 --without-png don't compile with PNG image support
2024 --without-rsvg don't compile with SVG image support
2025 --without-xml2 don't compile with XML parsing support
2026 --without-imagemagick don't compile with ImageMagick image support
2027 --without-xft don't use XFT for anti aliased fonts
2028 --without-libotf don't use libotf for OpenType font support
2029 --without-m17n-flt don't use m17n-flt for text shaping
2030 --without-toolkit-scroll-bars
2031 don't use Motif or Xaw3d scroll bars
2032 --without-xaw3d don't use Xaw3d
2033 --without-xim don't use X11 XIM
2034 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2035 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2036 console
2037 --without-dbus don't compile with D-Bus support
2038 --without-gconf don't compile with GConf support
2039 --without-gsettings don't compile with GSettings support
2040 --without-selinux don't compile with SELinux support
2041 --without-gnutls don't use -lgnutls for SSL/TLS support
2042 --without-makeinfo don't require makeinfo for building manuals
2043 --without-compress-info don't compress the installed Info pages
2044 --with-pkg-config-prog=PATH
2045 path to pkg-config for finding GTK and librsvg
2046 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2047 /usr/lib, or /usr/lib64 on some platforms.
2048 --with-gameuser=USER user for shared game score files
2049 --with-gnustep-conf=PATH
2050 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2051 or /etc/GNUstep/GNUstep.conf
2052 --with-x use the X Window System
2054 Some influential environment variables:
2055 CC C compiler command
2056 CFLAGS C compiler flags
2057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2058 nonstandard directory <lib dir>
2059 LIBS libraries to pass to the linker, e.g. -l<library>
2060 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2061 you have headers in a nonstandard directory <include dir>
2062 CPP C preprocessor
2063 XMKMF Path to xmkmf, Makefile generator for X Window System
2065 Use these variables to override the choices made by `configure' or to help
2066 it to find libraries and programs with nonstandard names/locations.
2068 Report bugs to the package provider.
2069 _ACEOF
2070 ac_status=$?
2073 if test "$ac_init_help" = "recursive"; then
2074 # If there are subdirs, report their specific --help.
2075 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2076 test -d "$ac_dir" ||
2077 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2078 continue
2079 ac_builddir=.
2081 case "$ac_dir" in
2082 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2084 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2085 # A ".." for each directory in $ac_dir_suffix.
2086 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2087 case $ac_top_builddir_sub in
2088 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2089 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2090 esac ;;
2091 esac
2092 ac_abs_top_builddir=$ac_pwd
2093 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2094 # for backward compatibility:
2095 ac_top_builddir=$ac_top_build_prefix
2097 case $srcdir in
2098 .) # We are building in place.
2099 ac_srcdir=.
2100 ac_top_srcdir=$ac_top_builddir_sub
2101 ac_abs_top_srcdir=$ac_pwd ;;
2102 [\\/]* | ?:[\\/]* ) # Absolute name.
2103 ac_srcdir=$srcdir$ac_dir_suffix;
2104 ac_top_srcdir=$srcdir
2105 ac_abs_top_srcdir=$srcdir ;;
2106 *) # Relative name.
2107 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2108 ac_top_srcdir=$ac_top_build_prefix$srcdir
2109 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2110 esac
2111 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2113 cd "$ac_dir" || { ac_status=$?; continue; }
2114 # Check for guested configure.
2115 if test -f "$ac_srcdir/configure.gnu"; then
2116 echo &&
2117 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2118 elif test -f "$ac_srcdir/configure"; then
2119 echo &&
2120 $SHELL "$ac_srcdir/configure" --help=recursive
2121 else
2122 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2123 fi || ac_status=$?
2124 cd "$ac_pwd" || { ac_status=$?; break; }
2125 done
2128 test -n "$ac_init_help" && exit $ac_status
2129 if $ac_init_version; then
2130 cat <<\_ACEOF
2131 emacs configure 24.1.50
2132 generated by GNU Autoconf 2.65
2134 Copyright (C) 2009 Free Software Foundation, Inc.
2135 This configure script is free software; the Free Software Foundation
2136 gives unlimited permission to copy, distribute and modify it.
2137 _ACEOF
2138 exit
2141 ## ------------------------ ##
2142 ## Autoconf initialization. ##
2143 ## ------------------------ ##
2145 # ac_fn_c_try_compile LINENO
2146 # --------------------------
2147 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2148 ac_fn_c_try_compile ()
2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151 rm -f conftest.$ac_objext
2152 if { { ac_try="$ac_compile"
2153 case "(($ac_try" in
2154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155 *) ac_try_echo=$ac_try;;
2156 esac
2157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2158 $as_echo "$ac_try_echo"; } >&5
2159 (eval "$ac_compile") 2>conftest.err
2160 ac_status=$?
2161 if test -s conftest.err; then
2162 grep -v '^ *+' conftest.err >conftest.er1
2163 cat conftest.er1 >&5
2164 mv -f conftest.er1 conftest.err
2166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2167 test $ac_status = 0; } && {
2168 test -z "$ac_c_werror_flag" ||
2169 test ! -s conftest.err
2170 } && test -s conftest.$ac_objext; then :
2171 ac_retval=0
2172 else
2173 $as_echo "$as_me: failed program was:" >&5
2174 sed 's/^/| /' conftest.$ac_ext >&5
2176 ac_retval=1
2178 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2179 as_fn_set_status $ac_retval
2181 } # ac_fn_c_try_compile
2183 # ac_fn_c_try_cpp LINENO
2184 # ----------------------
2185 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2186 ac_fn_c_try_cpp ()
2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189 if { { ac_try="$ac_cpp conftest.$ac_ext"
2190 case "(($ac_try" in
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2193 esac
2194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2195 $as_echo "$ac_try_echo"; } >&5
2196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2197 ac_status=$?
2198 if test -s conftest.err; then
2199 grep -v '^ *+' conftest.err >conftest.er1
2200 cat conftest.er1 >&5
2201 mv -f conftest.er1 conftest.err
2203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2204 test $ac_status = 0; } >/dev/null && {
2205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2206 test ! -s conftest.err
2207 }; then :
2208 ac_retval=0
2209 else
2210 $as_echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2213 ac_retval=1
2215 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2216 as_fn_set_status $ac_retval
2218 } # ac_fn_c_try_cpp
2220 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2221 # -------------------------------------------------------
2222 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2223 # the include files in INCLUDES and setting the cache variable VAR
2224 # accordingly.
2225 ac_fn_c_check_header_mongrel ()
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2230 $as_echo_n "checking for $2... " >&6; }
2231 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2232 $as_echo_n "(cached) " >&6
2234 eval ac_res=\$$3
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236 $as_echo "$ac_res" >&6; }
2237 else
2238 # Is the header compilable?
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2240 $as_echo_n "checking $2 usability... " >&6; }
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2244 #include <$2>
2245 _ACEOF
2246 if ac_fn_c_try_compile "$LINENO"; then :
2247 ac_header_compiler=yes
2248 else
2249 ac_header_compiler=no
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2253 $as_echo "$ac_header_compiler" >&6; }
2255 # Is the header present?
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2257 $as_echo_n "checking $2 presence... " >&6; }
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2260 #include <$2>
2261 _ACEOF
2262 if ac_fn_c_try_cpp "$LINENO"; then :
2263 ac_header_preproc=yes
2264 else
2265 ac_header_preproc=no
2267 rm -f conftest.err conftest.$ac_ext
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2269 $as_echo "$ac_header_preproc" >&6; }
2271 # So? What about this header?
2272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2273 yes:no: )
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2275 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2277 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2279 no:yes:* )
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2281 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2283 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2285 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2287 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2289 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2291 esac
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2293 $as_echo_n "checking for $2... " >&6; }
2294 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2295 $as_echo_n "(cached) " >&6
2296 else
2297 eval "$3=\$ac_header_compiler"
2299 eval ac_res=\$$3
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2301 $as_echo "$ac_res" >&6; }
2303 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2305 } # ac_fn_c_check_header_mongrel
2307 # ac_fn_c_try_run LINENO
2308 # ----------------------
2309 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2310 # that executables *can* be run.
2311 ac_fn_c_try_run ()
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 if { { ac_try="$ac_link"
2315 case "(($ac_try" in
2316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2317 *) ac_try_echo=$ac_try;;
2318 esac
2319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2320 $as_echo "$ac_try_echo"; } >&5
2321 (eval "$ac_link") 2>&5
2322 ac_status=$?
2323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2324 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2325 { { case "(($ac_try" in
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2328 esac
2329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2330 $as_echo "$ac_try_echo"; } >&5
2331 (eval "$ac_try") 2>&5
2332 ac_status=$?
2333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2334 test $ac_status = 0; }; }; then :
2335 ac_retval=0
2336 else
2337 $as_echo "$as_me: program exited with status $ac_status" >&5
2338 $as_echo "$as_me: failed program was:" >&5
2339 sed 's/^/| /' conftest.$ac_ext >&5
2341 ac_retval=$ac_status
2343 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2344 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2345 as_fn_set_status $ac_retval
2347 } # ac_fn_c_try_run
2349 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2350 # -------------------------------------------------------
2351 # Tests whether HEADER exists and can be compiled using the include files in
2352 # INCLUDES, setting the cache variable VAR accordingly.
2353 ac_fn_c_check_header_compile ()
2355 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2357 $as_echo_n "checking for $2... " >&6; }
2358 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2359 $as_echo_n "(cached) " >&6
2360 else
2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h. */
2364 #include <$2>
2365 _ACEOF
2366 if ac_fn_c_try_compile "$LINENO"; then :
2367 eval "$3=yes"
2368 else
2369 eval "$3=no"
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 eval ac_res=\$$3
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2375 $as_echo "$ac_res" >&6; }
2376 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2378 } # ac_fn_c_check_header_compile
2380 # ac_fn_c_try_link LINENO
2381 # -----------------------
2382 # Try to link conftest.$ac_ext, and return whether this succeeded.
2383 ac_fn_c_try_link ()
2385 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2386 rm -f conftest.$ac_objext conftest$ac_exeext
2387 if { { ac_try="$ac_link"
2388 case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2391 esac
2392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2393 $as_echo "$ac_try_echo"; } >&5
2394 (eval "$ac_link") 2>conftest.err
2395 ac_status=$?
2396 if test -s conftest.err; then
2397 grep -v '^ *+' conftest.err >conftest.er1
2398 cat conftest.er1 >&5
2399 mv -f conftest.er1 conftest.err
2401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2402 test $ac_status = 0; } && {
2403 test -z "$ac_c_werror_flag" ||
2404 test ! -s conftest.err
2405 } && test -s conftest$ac_exeext && {
2406 test "$cross_compiling" = yes ||
2407 $as_test_x conftest$ac_exeext
2408 }; then :
2409 ac_retval=0
2410 else
2411 $as_echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2414 ac_retval=1
2416 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2417 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2418 # interfere with the next link command; also delete a directory that is
2419 # left behind by Apple's compiler. We do this before executing the actions.
2420 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2421 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2422 as_fn_set_status $ac_retval
2424 } # ac_fn_c_try_link
2426 # ac_fn_c_check_decl LINENO SYMBOL VAR
2427 # ------------------------------------
2428 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2429 ac_fn_c_check_decl ()
2431 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2433 $as_echo_n "checking whether $2 is declared... " >&6; }
2434 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2435 $as_echo_n "(cached) " >&6
2436 else
2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438 /* end confdefs.h. */
2441 main ()
2443 #ifndef $2
2444 (void) $2;
2445 #endif
2448 return 0;
2450 _ACEOF
2451 if ac_fn_c_try_compile "$LINENO"; then :
2452 eval "$3=yes"
2453 else
2454 eval "$3=no"
2456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 eval ac_res=\$$3
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2460 $as_echo "$ac_res" >&6; }
2461 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2463 } # ac_fn_c_check_decl
2465 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2466 # ----------------------------------------------
2467 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2468 ac_fn_c_check_header_preproc ()
2470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2472 $as_echo_n "checking for $2... " >&6; }
2473 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2474 $as_echo_n "(cached) " >&6
2475 else
2476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2477 /* end confdefs.h. */
2478 #include <$2>
2479 _ACEOF
2480 if ac_fn_c_try_cpp "$LINENO"; then :
2481 eval "$3=yes"
2482 else
2483 eval "$3=no"
2485 rm -f conftest.err conftest.$ac_ext
2487 eval ac_res=\$$3
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2489 $as_echo "$ac_res" >&6; }
2490 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2492 } # ac_fn_c_check_header_preproc
2494 # ac_fn_c_check_func LINENO FUNC VAR
2495 # ----------------------------------
2496 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2497 ac_fn_c_check_func ()
2499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2501 $as_echo_n "checking for $2... " >&6; }
2502 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2506 /* end confdefs.h. */
2507 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2509 #define $2 innocuous_$2
2511 /* System header to define __stub macros and hopefully few prototypes,
2512 which can conflict with char $2 (); below.
2513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2514 <limits.h> exists even on freestanding compilers. */
2516 #ifdef __STDC__
2517 # include <limits.h>
2518 #else
2519 # include <assert.h>
2520 #endif
2522 #undef $2
2524 /* Override any GCC internal prototype to avoid an error.
2525 Use char because int might match the return type of a GCC
2526 builtin and then its argument prototype would still apply. */
2527 #ifdef __cplusplus
2528 extern "C"
2529 #endif
2530 char $2 ();
2531 /* The GNU C library defines this for functions which it implements
2532 to always fail with ENOSYS. Some functions are actually named
2533 something starting with __ and the normal name is an alias. */
2534 #if defined __stub_$2 || defined __stub___$2
2535 choke me
2536 #endif
2539 main ()
2541 return $2 ();
2543 return 0;
2545 _ACEOF
2546 if ac_fn_c_try_link "$LINENO"; then :
2547 eval "$3=yes"
2548 else
2549 eval "$3=no"
2551 rm -f core conftest.err conftest.$ac_objext \
2552 conftest$ac_exeext conftest.$ac_ext
2554 eval ac_res=\$$3
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2556 $as_echo "$ac_res" >&6; }
2557 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2559 } # ac_fn_c_check_func
2561 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2562 # ----------------------------------------------------
2563 # Tries to find if the field MEMBER exists in type AGGR, after including
2564 # INCLUDES, setting cache variable VAR accordingly.
2565 ac_fn_c_check_member ()
2567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2569 $as_echo_n "checking for $2.$3... " >&6; }
2570 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h. */
2577 main ()
2579 static $2 ac_aggr;
2580 if (ac_aggr.$3)
2581 return 0;
2583 return 0;
2585 _ACEOF
2586 if ac_fn_c_try_compile "$LINENO"; then :
2587 eval "$4=yes"
2588 else
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h. */
2593 main ()
2595 static $2 ac_aggr;
2596 if (sizeof ac_aggr.$3)
2597 return 0;
2599 return 0;
2601 _ACEOF
2602 if ac_fn_c_try_compile "$LINENO"; then :
2603 eval "$4=yes"
2604 else
2605 eval "$4=no"
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611 eval ac_res=\$$4
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2613 $as_echo "$ac_res" >&6; }
2614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2616 } # ac_fn_c_check_member
2618 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2619 # -------------------------------------------
2620 # Tests whether TYPE exists after having included INCLUDES, setting cache
2621 # variable VAR accordingly.
2622 ac_fn_c_check_type ()
2624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2626 $as_echo_n "checking for $2... " >&6; }
2627 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2628 $as_echo_n "(cached) " >&6
2629 else
2630 eval "$3=no"
2631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2632 /* end confdefs.h. */
2635 main ()
2637 if (sizeof ($2))
2638 return 0;
2640 return 0;
2642 _ACEOF
2643 if ac_fn_c_try_compile "$LINENO"; then :
2644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2645 /* end confdefs.h. */
2648 main ()
2650 if (sizeof (($2)))
2651 return 0;
2653 return 0;
2655 _ACEOF
2656 if ac_fn_c_try_compile "$LINENO"; then :
2658 else
2659 eval "$3=yes"
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2665 eval ac_res=\$$3
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2667 $as_echo "$ac_res" >&6; }
2668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2670 } # ac_fn_c_check_type
2672 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2673 # --------------------------------------------
2674 # Tries to find the compile-time value of EXPR in a program that includes
2675 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2676 # computed
2677 ac_fn_c_compute_int ()
2679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2680 if test "$cross_compiling" = yes; then
2681 # Depending upon the size, compute the lo and hi bounds.
2682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h. */
2686 main ()
2688 static int test_array [1 - 2 * !(($2) >= 0)];
2689 test_array [0] = 0
2692 return 0;
2694 _ACEOF
2695 if ac_fn_c_try_compile "$LINENO"; then :
2696 ac_lo=0 ac_mid=0
2697 while :; do
2698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2699 /* end confdefs.h. */
2702 main ()
2704 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2705 test_array [0] = 0
2708 return 0;
2710 _ACEOF
2711 if ac_fn_c_try_compile "$LINENO"; then :
2712 ac_hi=$ac_mid; break
2713 else
2714 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2715 if test $ac_lo -le $ac_mid; then
2716 ac_lo= ac_hi=
2717 break
2719 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722 done
2723 else
2724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2725 /* end confdefs.h. */
2728 main ()
2730 static int test_array [1 - 2 * !(($2) < 0)];
2731 test_array [0] = 0
2734 return 0;
2736 _ACEOF
2737 if ac_fn_c_try_compile "$LINENO"; then :
2738 ac_hi=-1 ac_mid=-1
2739 while :; do
2740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741 /* end confdefs.h. */
2744 main ()
2746 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2747 test_array [0] = 0
2750 return 0;
2752 _ACEOF
2753 if ac_fn_c_try_compile "$LINENO"; then :
2754 ac_lo=$ac_mid; break
2755 else
2756 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2757 if test $ac_mid -le $ac_hi; then
2758 ac_lo= ac_hi=
2759 break
2761 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2764 done
2765 else
2766 ac_lo= ac_hi=
2768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 # Binary search between lo and hi bounds.
2772 while test "x$ac_lo" != "x$ac_hi"; do
2773 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h. */
2778 main ()
2780 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2781 test_array [0] = 0
2784 return 0;
2786 _ACEOF
2787 if ac_fn_c_try_compile "$LINENO"; then :
2788 ac_hi=$ac_mid
2789 else
2790 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2793 done
2794 case $ac_lo in #((
2795 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2796 '') ac_retval=1 ;;
2797 esac
2798 else
2799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2800 /* end confdefs.h. */
2802 static long int longval () { return $2; }
2803 static unsigned long int ulongval () { return $2; }
2804 #include <stdio.h>
2805 #include <stdlib.h>
2807 main ()
2810 FILE *f = fopen ("conftest.val", "w");
2811 if (! f)
2812 return 1;
2813 if (($2) < 0)
2815 long int i = longval ();
2816 if (i != ($2))
2817 return 1;
2818 fprintf (f, "%ld", i);
2820 else
2822 unsigned long int i = ulongval ();
2823 if (i != ($2))
2824 return 1;
2825 fprintf (f, "%lu", i);
2827 /* Do not output a trailing newline, as this causes \r\n confusion
2828 on some platforms. */
2829 return ferror (f) || fclose (f) != 0;
2832 return 0;
2834 _ACEOF
2835 if ac_fn_c_try_run "$LINENO"; then :
2836 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2837 else
2838 ac_retval=1
2840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2841 conftest.$ac_objext conftest.beam conftest.$ac_ext
2842 rm -f conftest.val
2845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2846 as_fn_set_status $ac_retval
2848 } # ac_fn_c_compute_int
2849 cat >config.log <<_ACEOF
2850 This file contains any messages produced by compilers while
2851 running configure, to aid debugging if configure makes a mistake.
2853 It was created by emacs $as_me 24.1.50, which was
2854 generated by GNU Autoconf 2.65. Invocation command line was
2856 $ $0 $@
2858 _ACEOF
2859 exec 5>>config.log
2861 cat <<_ASUNAME
2862 ## --------- ##
2863 ## Platform. ##
2864 ## --------- ##
2866 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2867 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2868 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2869 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2870 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2872 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2873 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2875 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2876 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2877 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2878 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2879 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2880 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2881 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2883 _ASUNAME
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 $as_echo "PATH: $as_dir"
2891 done
2892 IFS=$as_save_IFS
2894 } >&5
2896 cat >&5 <<_ACEOF
2899 ## ----------- ##
2900 ## Core tests. ##
2901 ## ----------- ##
2903 _ACEOF
2906 # Keep a trace of the command line.
2907 # Strip out --no-create and --no-recursion so they do not pile up.
2908 # Strip out --silent because we don't want to record it for future runs.
2909 # Also quote any args containing shell meta-characters.
2910 # Make two passes to allow for proper duplicate-argument suppression.
2911 ac_configure_args=
2912 ac_configure_args0=
2913 ac_configure_args1=
2914 ac_must_keep_next=false
2915 for ac_pass in 1 2
2917 for ac_arg
2919 case $ac_arg in
2920 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2921 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2922 | -silent | --silent | --silen | --sile | --sil)
2923 continue ;;
2924 *\'*)
2925 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2926 esac
2927 case $ac_pass in
2928 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2930 as_fn_append ac_configure_args1 " '$ac_arg'"
2931 if test $ac_must_keep_next = true; then
2932 ac_must_keep_next=false # Got value, back to normal.
2933 else
2934 case $ac_arg in
2935 *=* | --config-cache | -C | -disable-* | --disable-* \
2936 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2937 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2938 | -with-* | --with-* | -without-* | --without-* | --x)
2939 case "$ac_configure_args0 " in
2940 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2941 esac
2943 -* ) ac_must_keep_next=true ;;
2944 esac
2946 as_fn_append ac_configure_args " '$ac_arg'"
2948 esac
2949 done
2950 done
2951 { ac_configure_args0=; unset ac_configure_args0;}
2952 { ac_configure_args1=; unset ac_configure_args1;}
2954 # When interrupted or exit'd, cleanup temporary files, and complete
2955 # config.log. We remove comments because anyway the quotes in there
2956 # would cause problems or look ugly.
2957 # WARNING: Use '\'' to represent an apostrophe within the trap.
2958 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2959 trap 'exit_status=$?
2960 # Save into config.log some information that might help in debugging.
2962 echo
2964 cat <<\_ASBOX
2965 ## ---------------- ##
2966 ## Cache variables. ##
2967 ## ---------------- ##
2968 _ASBOX
2969 echo
2970 # The following way of writing the cache mishandles newlines in values,
2972 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2973 eval ac_val=\$$ac_var
2974 case $ac_val in #(
2975 *${as_nl}*)
2976 case $ac_var in #(
2977 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2978 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2979 esac
2980 case $ac_var in #(
2981 _ | IFS | as_nl) ;; #(
2982 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2983 *) { eval $ac_var=; unset $ac_var;} ;;
2984 esac ;;
2985 esac
2986 done
2987 (set) 2>&1 |
2988 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2989 *${as_nl}ac_space=\ *)
2990 sed -n \
2991 "s/'\''/'\''\\\\'\'''\''/g;
2992 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2993 ;; #(
2995 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2997 esac |
2998 sort
3000 echo
3002 cat <<\_ASBOX
3003 ## ----------------- ##
3004 ## Output variables. ##
3005 ## ----------------- ##
3006 _ASBOX
3007 echo
3008 for ac_var in $ac_subst_vars
3010 eval ac_val=\$$ac_var
3011 case $ac_val in
3012 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3013 esac
3014 $as_echo "$ac_var='\''$ac_val'\''"
3015 done | sort
3016 echo
3018 if test -n "$ac_subst_files"; then
3019 cat <<\_ASBOX
3020 ## ------------------- ##
3021 ## File substitutions. ##
3022 ## ------------------- ##
3023 _ASBOX
3024 echo
3025 for ac_var in $ac_subst_files
3027 eval ac_val=\$$ac_var
3028 case $ac_val in
3029 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3030 esac
3031 $as_echo "$ac_var='\''$ac_val'\''"
3032 done | sort
3033 echo
3036 if test -s confdefs.h; then
3037 cat <<\_ASBOX
3038 ## ----------- ##
3039 ## confdefs.h. ##
3040 ## ----------- ##
3041 _ASBOX
3042 echo
3043 cat confdefs.h
3044 echo
3046 test "$ac_signal" != 0 &&
3047 $as_echo "$as_me: caught signal $ac_signal"
3048 $as_echo "$as_me: exit $exit_status"
3049 } >&5
3050 rm -f core *.core core.conftest.* &&
3051 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3052 exit $exit_status
3054 for ac_signal in 1 2 13 15; do
3055 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3056 done
3057 ac_signal=0
3059 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3060 rm -f -r conftest* confdefs.h
3062 $as_echo "/* confdefs.h */" > confdefs.h
3064 # Predefined preprocessor variables.
3066 cat >>confdefs.h <<_ACEOF
3067 #define PACKAGE_NAME "$PACKAGE_NAME"
3068 _ACEOF
3070 cat >>confdefs.h <<_ACEOF
3071 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3072 _ACEOF
3074 cat >>confdefs.h <<_ACEOF
3075 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3076 _ACEOF
3078 cat >>confdefs.h <<_ACEOF
3079 #define PACKAGE_STRING "$PACKAGE_STRING"
3080 _ACEOF
3082 cat >>confdefs.h <<_ACEOF
3083 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3084 _ACEOF
3086 cat >>confdefs.h <<_ACEOF
3087 #define PACKAGE_URL "$PACKAGE_URL"
3088 _ACEOF
3091 # Let the site file select an alternate cache file if it wants to.
3092 # Prefer an explicitly selected file to automatically selected ones.
3093 ac_site_file1=NONE
3094 ac_site_file2=NONE
3095 if test -n "$CONFIG_SITE"; then
3096 ac_site_file1=$CONFIG_SITE
3097 elif test "x$prefix" != xNONE; then
3098 ac_site_file1=$prefix/share/config.site
3099 ac_site_file2=$prefix/etc/config.site
3100 else
3101 ac_site_file1=$ac_default_prefix/share/config.site
3102 ac_site_file2=$ac_default_prefix/etc/config.site
3104 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3106 test "x$ac_site_file" = xNONE && continue
3107 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3109 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3110 sed 's/^/| /' "$ac_site_file" >&5
3111 . "$ac_site_file"
3113 done
3115 if test -r "$cache_file"; then
3116 # Some versions of bash will fail to source /dev/null (special files
3117 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3118 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3120 $as_echo "$as_me: loading cache $cache_file" >&6;}
3121 case $cache_file in
3122 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3123 *) . "./$cache_file";;
3124 esac
3126 else
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3128 $as_echo "$as_me: creating cache $cache_file" >&6;}
3129 >$cache_file
3132 as_fn_append ac_header_list " stdlib.h"
3133 as_fn_append ac_header_list " unistd.h"
3134 as_fn_append ac_header_list " sys/param.h"
3135 as_fn_append ac_func_list " readlinkat"
3136 gl_getopt_required=GNU
3137 as_fn_append ac_header_list " getopt.h"
3138 as_fn_append ac_header_list " wchar.h"
3139 as_fn_append ac_header_list " stdint.h"
3140 as_fn_append ac_header_list " inttypes.h"
3141 as_fn_append ac_func_list " lstat"
3142 as_fn_append ac_func_list " alarm"
3143 as_fn_append ac_func_list " pthread_sigmask"
3144 as_fn_append ac_func_list " readlink"
3145 as_fn_append ac_header_list " sys/socket.h"
3146 as_fn_append ac_func_list " tzset"
3147 as_fn_append ac_func_list " strtoimax"
3148 as_fn_append ac_func_list " strtoumax"
3149 as_fn_append ac_func_list " symlink"
3150 as_fn_append ac_header_list " sys/stat.h"
3151 as_fn_append ac_header_list " sys/time.h"
3152 as_fn_append ac_func_list " localtime_r"
3153 # Check that the precious variables saved in the cache have kept the same
3154 # value.
3155 ac_cache_corrupted=false
3156 for ac_var in $ac_precious_vars; do
3157 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3158 eval ac_new_set=\$ac_env_${ac_var}_set
3159 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3160 eval ac_new_val=\$ac_env_${ac_var}_value
3161 case $ac_old_set,$ac_new_set in
3162 set,)
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3164 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3165 ac_cache_corrupted=: ;;
3166 ,set)
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3168 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3169 ac_cache_corrupted=: ;;
3170 ,);;
3172 if test "x$ac_old_val" != "x$ac_new_val"; then
3173 # differences in whitespace do not lead to failure.
3174 ac_old_val_w=`echo x $ac_old_val`
3175 ac_new_val_w=`echo x $ac_new_val`
3176 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3178 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3179 ac_cache_corrupted=:
3180 else
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3182 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3183 eval $ac_var=\$ac_old_val
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3186 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3188 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3189 fi;;
3190 esac
3191 # Pass precious variables to config.status.
3192 if test "$ac_new_set" = set; then
3193 case $ac_new_val in
3194 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3195 *) ac_arg=$ac_var=$ac_new_val ;;
3196 esac
3197 case " $ac_configure_args " in
3198 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3199 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3200 esac
3202 done
3203 if $ac_cache_corrupted; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3207 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3208 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3210 ## -------------------- ##
3211 ## Main body of script. ##
3212 ## -------------------- ##
3214 ac_ext=c
3215 ac_cpp='$CPP $CPPFLAGS'
3216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3224 ac_aux_dir=
3225 for ac_dir in build-aux "$srcdir"/build-aux; do
3226 for ac_t in install-sh install.sh shtool; do
3227 if test -f "$ac_dir/$ac_t"; then
3228 ac_aux_dir=$ac_dir
3229 ac_install_sh="$ac_aux_dir/$ac_t -c"
3230 break 2
3232 done
3233 done
3234 if test -z "$ac_aux_dir"; then
3235 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3238 # These three variables are undocumented and unsupported,
3239 # and are intended to be withdrawn in a future Autoconf release.
3240 # They can cause serious problems if a builder's source tree is in a directory
3241 # whose full name contains unusual characters.
3242 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3243 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3244 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3247 am__api_version='1.11'
3249 # Find a good install program. We prefer a C program (faster),
3250 # so one script is as good as another. But avoid the broken or
3251 # incompatible versions:
3252 # SysV /etc/install, /usr/sbin/install
3253 # SunOS /usr/etc/install
3254 # IRIX /sbin/install
3255 # AIX /bin/install
3256 # AmigaOS /C/install, which installs bootblocks on floppy discs
3257 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3258 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3259 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3260 # OS/2's system install, which has a completely different semantic
3261 # ./install, which can be erroneously created by make from ./install.sh.
3262 # Reject install programs that cannot install multiple files.
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3264 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3265 if test -z "$INSTALL"; then
3266 if test "${ac_cv_path_install+set}" = set; then :
3267 $as_echo_n "(cached) " >&6
3268 else
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 for as_dir in $PATH
3272 IFS=$as_save_IFS
3273 test -z "$as_dir" && as_dir=.
3274 # Account for people who put trailing slashes in PATH elements.
3275 case $as_dir/ in #((
3276 ./ | .// | /[cC]/* | \
3277 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3278 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3279 /usr/ucb/* ) ;;
3281 # OSF1 and SCO ODT 3.0 have their own names for install.
3282 # Don't use installbsd from OSF since it installs stuff as root
3283 # by default.
3284 for ac_prog in ginstall scoinst install; do
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3287 if test $ac_prog = install &&
3288 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3289 # AIX install. It has an incompatible calling convention.
3291 elif test $ac_prog = install &&
3292 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3293 # program-specific install script used by HP pwplus--don't use.
3295 else
3296 rm -rf conftest.one conftest.two conftest.dir
3297 echo one > conftest.one
3298 echo two > conftest.two
3299 mkdir conftest.dir
3300 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3301 test -s conftest.one && test -s conftest.two &&
3302 test -s conftest.dir/conftest.one &&
3303 test -s conftest.dir/conftest.two
3304 then
3305 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3306 break 3
3310 done
3311 done
3313 esac
3315 done
3316 IFS=$as_save_IFS
3318 rm -rf conftest.one conftest.two conftest.dir
3321 if test "${ac_cv_path_install+set}" = set; then
3322 INSTALL=$ac_cv_path_install
3323 else
3324 # As a last resort, use the slow shell script. Don't cache a
3325 # value for INSTALL within a source directory, because that will
3326 # break other packages using the cache if that directory is
3327 # removed, or if the value is a relative name.
3328 INSTALL=$ac_install_sh
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3332 $as_echo "$INSTALL" >&6; }
3334 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3335 # It thinks the first close brace ends the variable substitution.
3336 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3338 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3340 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3343 $as_echo_n "checking whether build environment is sane... " >&6; }
3344 # Just in case
3345 sleep 1
3346 echo timestamp > conftest.file
3347 # Reject unsafe characters in $srcdir or the absolute working directory
3348 # name. Accept space and tab only in the latter.
3349 am_lf='
3351 case `pwd` in
3352 *[\\\"\#\$\&\'\`$am_lf]*)
3353 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3354 esac
3355 case $srcdir in
3356 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3357 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3358 esac
3360 # Do `set' in a subshell so we don't clobber the current shell's
3361 # arguments. Must try -L first in case configure is actually a
3362 # symlink; some systems play weird games with the mod time of symlinks
3363 # (eg FreeBSD returns the mod time of the symlink's containing
3364 # directory).
3365 if (
3366 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3367 if test "$*" = "X"; then
3368 # -L didn't work.
3369 set X `ls -t "$srcdir/configure" conftest.file`
3371 rm -f conftest.file
3372 if test "$*" != "X $srcdir/configure conftest.file" \
3373 && test "$*" != "X conftest.file $srcdir/configure"; then
3375 # If neither matched, then we have a broken ls. This can happen
3376 # if, for instance, CONFIG_SHELL is bash and it inherits a
3377 # broken ls alias from the environment. This has actually
3378 # happened. Such a system could not be considered "sane".
3379 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3380 alias in your environment" "$LINENO" 5
3383 test "$2" = conftest.file
3385 then
3386 # Ok.
3388 else
3389 as_fn_error "newly created file is older than distributed files!
3390 Check your system clock" "$LINENO" 5
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3393 $as_echo "yes" >&6; }
3394 test "$program_prefix" != NONE &&
3395 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3396 # Use a double $ so make ignores it.
3397 test "$program_suffix" != NONE &&
3398 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3399 # Double any \ or $.
3400 # By default was `s,x,x', remove it if useless.
3401 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3402 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3404 # expand $ac_aux_dir to an absolute path
3405 am_aux_dir=`cd $ac_aux_dir && pwd`
3407 if test x"${MISSING+set}" != xset; then
3408 case $am_aux_dir in
3409 *\ * | *\ *)
3410 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3412 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3413 esac
3415 # Use eval to expand $SHELL
3416 if eval "$MISSING --run true"; then
3417 am_missing_run="$MISSING --run "
3418 else
3419 am_missing_run=
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3421 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3424 if test x"${install_sh}" != xset; then
3425 case $am_aux_dir in
3426 *\ * | *\ *)
3427 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3429 install_sh="\${SHELL} $am_aux_dir/install-sh"
3430 esac
3433 # Installed binaries are usually stripped using `strip' when the user
3434 # run `make install-strip'. However `strip' might not be the right
3435 # tool to use in cross-compilation environments, therefore Automake
3436 # will honor the `STRIP' environment variable to overrule this program.
3437 if test "$cross_compiling" != no; then
3438 if test -n "$ac_tool_prefix"; then
3439 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3440 set dummy ${ac_tool_prefix}strip; ac_word=$2
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3442 $as_echo_n "checking for $ac_word... " >&6; }
3443 if test "${ac_cv_prog_STRIP+set}" = set; then :
3444 $as_echo_n "(cached) " >&6
3445 else
3446 if test -n "$STRIP"; then
3447 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3448 else
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 for as_dir in $PATH
3452 IFS=$as_save_IFS
3453 test -z "$as_dir" && as_dir=.
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3456 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 break 2
3460 done
3461 done
3462 IFS=$as_save_IFS
3466 STRIP=$ac_cv_prog_STRIP
3467 if test -n "$STRIP"; then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3469 $as_echo "$STRIP" >&6; }
3470 else
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3477 if test -z "$ac_cv_prog_STRIP"; then
3478 ac_ct_STRIP=$STRIP
3479 # Extract the first word of "strip", so it can be a program name with args.
3480 set dummy strip; ac_word=$2
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 $as_echo_n "checking for $ac_word... " >&6; }
3483 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3484 $as_echo_n "(cached) " >&6
3485 else
3486 if test -n "$ac_ct_STRIP"; then
3487 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3488 else
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3492 IFS=$as_save_IFS
3493 test -z "$as_dir" && as_dir=.
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496 ac_cv_prog_ac_ct_STRIP="strip"
3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 break 2
3500 done
3501 done
3502 IFS=$as_save_IFS
3506 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3507 if test -n "$ac_ct_STRIP"; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3509 $as_echo "$ac_ct_STRIP" >&6; }
3510 else
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3515 if test "x$ac_ct_STRIP" = x; then
3516 STRIP=":"
3517 else
3518 case $cross_compiling:$ac_tool_warned in
3519 yes:)
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3522 ac_tool_warned=yes ;;
3523 esac
3524 STRIP=$ac_ct_STRIP
3526 else
3527 STRIP="$ac_cv_prog_STRIP"
3531 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3534 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3535 if test -z "$MKDIR_P"; then
3536 if test "${ac_cv_path_mkdir+set}" = set; then :
3537 $as_echo_n "(cached) " >&6
3538 else
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3542 IFS=$as_save_IFS
3543 test -z "$as_dir" && as_dir=.
3544 for ac_prog in mkdir gmkdir; do
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3547 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3548 'mkdir (GNU coreutils) '* | \
3549 'mkdir (coreutils) '* | \
3550 'mkdir (fileutils) '4.1*)
3551 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3552 break 3;;
3553 esac
3554 done
3555 done
3556 done
3557 IFS=$as_save_IFS
3561 test -d ./--version && rmdir ./--version
3562 if test "${ac_cv_path_mkdir+set}" = set; then
3563 MKDIR_P="$ac_cv_path_mkdir -p"
3564 else
3565 # As a last resort, use the slow shell script. Don't cache a
3566 # value for MKDIR_P within a source directory, because that will
3567 # break other packages using the cache if that directory is
3568 # removed, or if the value is a relative name.
3569 MKDIR_P="$ac_install_sh -d"
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3573 $as_echo "$MKDIR_P" >&6; }
3576 mkdir_p="$MKDIR_P"
3577 case $mkdir_p in
3578 [\\/$]* | ?:[\\/]*) ;;
3579 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3580 esac
3582 for ac_prog in gawk mawk nawk awk
3584 # Extract the first word of "$ac_prog", so it can be a program name with args.
3585 set dummy $ac_prog; ac_word=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if test "${ac_cv_prog_AWK+set}" = set; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 if test -n "$AWK"; then
3592 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 ac_cv_prog_AWK="$ac_prog"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 break 2
3605 done
3606 done
3607 IFS=$as_save_IFS
3611 AWK=$ac_cv_prog_AWK
3612 if test -n "$AWK"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3614 $as_echo "$AWK" >&6; }
3615 else
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3621 test -n "$AWK" && break
3622 done
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3625 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3626 set x ${MAKE-make}
3627 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3628 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 cat >conftest.make <<\_ACEOF
3632 SHELL = /bin/sh
3633 all:
3634 @echo '@@@%%%=$(MAKE)=@@@%%%'
3635 _ACEOF
3636 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3637 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3638 *@@@%%%=?*=@@@%%%*)
3639 eval ac_cv_prog_make_${ac_make}_set=yes;;
3641 eval ac_cv_prog_make_${ac_make}_set=no;;
3642 esac
3643 rm -f conftest.make
3645 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3647 $as_echo "yes" >&6; }
3648 SET_MAKE=
3649 else
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 $as_echo "no" >&6; }
3652 SET_MAKE="MAKE=${MAKE-make}"
3655 rm -rf .tst 2>/dev/null
3656 mkdir .tst 2>/dev/null
3657 if test -d .tst; then
3658 am__leading_dot=.
3659 else
3660 am__leading_dot=_
3662 rmdir .tst 2>/dev/null
3664 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3665 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3666 # is not polluted with repeated "-I."
3667 am__isrc=' -I$(srcdir)'
3668 # test to see if srcdir already configured
3669 if test -f $srcdir/config.status; then
3670 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3674 # test whether we have cygpath
3675 if test -z "$CYGPATH_W"; then
3676 if (cygpath --version) >/dev/null 2>/dev/null; then
3677 CYGPATH_W='cygpath -w'
3678 else
3679 CYGPATH_W=echo
3684 # Define the identity of the package.
3685 PACKAGE='emacs'
3686 VERSION='24.1.50'
3689 cat >>confdefs.h <<_ACEOF
3690 #define PACKAGE "$PACKAGE"
3691 _ACEOF
3694 cat >>confdefs.h <<_ACEOF
3695 #define VERSION "$VERSION"
3696 _ACEOF
3698 # Some tools Automake needs.
3700 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3703 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3706 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3709 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3712 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3714 # We need awk for the "check" target. The system "awk" is bad on
3715 # some platforms.
3716 # Always define AMTAR for backward compatibility.
3718 AMTAR=${AMTAR-"${am_missing_run}tar"}
3720 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3729 lispdir='${datadir}/emacs/${version}/lisp'
3730 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3731 '${datadir}/emacs/site-lisp'
3732 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3733 etcdir='${datadir}/emacs/${version}/etc'
3734 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3735 docdir='${datadir}/emacs/${version}/etc'
3736 gamedir='${localstatedir}/games/emacs'
3741 # Check whether --with-pop was given.
3742 if test "${with_pop+set}" = set; then :
3743 withval=$with_pop;
3744 else
3745 with_pop=yes
3748 if test "$with_pop" = yes; then
3749 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3754 # Check whether --with-kerberos was given.
3755 if test "${with_kerberos+set}" = set; then :
3756 withval=$with_kerberos;
3757 else
3758 with_kerberos=no
3761 if test "$with_kerberos" != no; then
3762 $as_echo "#define KERBEROS 1" >>confdefs.h
3767 # Check whether --with-kerberos5 was given.
3768 if test "${with_kerberos5+set}" = set; then :
3769 withval=$with_kerberos5;
3770 else
3771 with_kerberos5=no
3774 if test "${with_kerberos5}" != no; then
3775 if test "${with_kerberos}" = no; then
3776 with_kerberos=yes
3777 $as_echo "#define KERBEROS 1" >>confdefs.h
3781 $as_echo "#define KERBEROS5 1" >>confdefs.h
3786 # Check whether --with-hesiod was given.
3787 if test "${with_hesiod+set}" = set; then :
3788 withval=$with_hesiod;
3789 else
3790 with_hesiod=no
3793 if test "$with_hesiod" != no; then
3795 $as_echo "#define HESIOD 1" >>confdefs.h
3800 # Check whether --with-mmdf was given.
3801 if test "${with_mmdf+set}" = set; then :
3802 withval=$with_mmdf;
3803 else
3804 with_mmdf=no
3807 if test "$with_mmdf" != no; then
3809 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3814 # Check whether --with-mail-unlink was given.
3815 if test "${with_mail_unlink+set}" = set; then :
3816 withval=$with_mail_unlink;
3817 else
3818 with_mail_unlink=no
3821 if test "$with_mail_unlink" != no; then
3823 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3828 # Check whether --with-mailhost was given.
3829 if test "${with_mailhost+set}" = set; then :
3830 withval=$with_mailhost;
3831 cat >>confdefs.h <<_ACEOF
3832 #define MAILHOST "$withval"
3833 _ACEOF
3839 # Check whether --with-sound was given.
3840 if test "${with_sound+set}" = set; then :
3841 withval=$with_sound;
3842 else
3843 with_sound=yes
3848 # Check whether --with-sync-input was given.
3849 if test "${with_sync_input+set}" = set; then :
3850 withval=$with_sync_input;
3851 else
3852 with_sync_input=yes
3855 if test "$with_sync_input" = yes; then
3857 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3862 # Check whether --with-x-toolkit was given.
3863 if test "${with_x_toolkit+set}" = set; then :
3864 withval=$with_x_toolkit; case "${withval}" in
3865 y | ye | yes ) val=gtk ;;
3866 n | no ) val=no ;;
3867 l | lu | luc | luci | lucid ) val=lucid ;;
3868 a | at | ath | athe | athen | athena ) val=athena ;;
3869 m | mo | mot | moti | motif ) val=motif ;;
3870 g | gt | gtk ) val=gtk ;;
3871 gtk3 ) val=gtk3 ;;
3873 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3874 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3875 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3877 esac
3878 with_x_toolkit=$val
3884 # Check whether --with-wide-int was given.
3885 if test "${with_wide_int+set}" = set; then :
3886 withval=$with_wide_int;
3887 else
3888 with_wide_int=no
3891 if test "$with_wide_int" = yes; then
3893 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3898 # Check whether --with-xpm was given.
3899 if test "${with_xpm+set}" = set; then :
3900 withval=$with_xpm;
3901 else
3902 with_xpm=yes
3906 # Check whether --with-jpeg was given.
3907 if test "${with_jpeg+set}" = set; then :
3908 withval=$with_jpeg;
3909 else
3910 with_jpeg=yes
3914 # Check whether --with-tiff was given.
3915 if test "${with_tiff+set}" = set; then :
3916 withval=$with_tiff;
3917 else
3918 with_tiff=yes
3922 # Check whether --with-gif was given.
3923 if test "${with_gif+set}" = set; then :
3924 withval=$with_gif;
3925 else
3926 with_gif=yes
3930 # Check whether --with-png was given.
3931 if test "${with_png+set}" = set; then :
3932 withval=$with_png;
3933 else
3934 with_png=yes
3938 # Check whether --with-rsvg was given.
3939 if test "${with_rsvg+set}" = set; then :
3940 withval=$with_rsvg;
3941 else
3942 with_rsvg=yes
3946 # Check whether --with-xml2 was given.
3947 if test "${with_xml2+set}" = set; then :
3948 withval=$with_xml2;
3949 else
3950 with_xml2=yes
3954 # Check whether --with-imagemagick was given.
3955 if test "${with_imagemagick+set}" = set; then :
3956 withval=$with_imagemagick;
3957 else
3958 with_imagemagick=yes
3963 # Check whether --with-xft was given.
3964 if test "${with_xft+set}" = set; then :
3965 withval=$with_xft;
3966 else
3967 with_xft=yes
3971 # Check whether --with-libotf was given.
3972 if test "${with_libotf+set}" = set; then :
3973 withval=$with_libotf;
3974 else
3975 with_libotf=yes
3979 # Check whether --with-m17n-flt was given.
3980 if test "${with_m17n_flt+set}" = set; then :
3981 withval=$with_m17n_flt;
3982 else
3983 with_m17n_flt=yes
3988 # Check whether --with-toolkit-scroll-bars was given.
3989 if test "${with_toolkit_scroll_bars+set}" = set; then :
3990 withval=$with_toolkit_scroll_bars;
3991 else
3992 with_toolkit_scroll_bars=yes
3996 # Check whether --with-xaw3d was given.
3997 if test "${with_xaw3d+set}" = set; then :
3998 withval=$with_xaw3d;
3999 else
4000 with_xaw3d=yes
4004 # Check whether --with-xim was given.
4005 if test "${with_xim+set}" = set; then :
4006 withval=$with_xim;
4007 else
4008 with_xim=yes
4012 # Check whether --with-ns was given.
4013 if test "${with_ns+set}" = set; then :
4014 withval=$with_ns;
4015 else
4016 with_ns=no
4021 # Check whether --with-gpm was given.
4022 if test "${with_gpm+set}" = set; then :
4023 withval=$with_gpm;
4024 else
4025 with_gpm=yes
4029 # Check whether --with-dbus was given.
4030 if test "${with_dbus+set}" = set; then :
4031 withval=$with_dbus;
4032 else
4033 with_dbus=yes
4037 # Check whether --with-gconf was given.
4038 if test "${with_gconf+set}" = set; then :
4039 withval=$with_gconf;
4040 else
4041 with_gconf=yes
4045 # Check whether --with-gsettings was given.
4046 if test "${with_gsettings+set}" = set; then :
4047 withval=$with_gsettings;
4048 else
4049 with_gsettings=yes
4053 # Check whether --with-selinux was given.
4054 if test "${with_selinux+set}" = set; then :
4055 withval=$with_selinux;
4056 else
4057 with_selinux=yes
4061 # Check whether --with-gnutls was given.
4062 if test "${with_gnutls+set}" = set; then :
4063 withval=$with_gnutls;
4064 else
4065 with_gnutls=yes
4069 ## For the times when you want to build Emacs but don't have
4070 ## a suitable makeinfo, and can live without the manuals.
4072 # Check whether --with-makeinfo was given.
4073 if test "${with_makeinfo+set}" = set; then :
4074 withval=$with_makeinfo;
4075 else
4076 with_makeinfo=yes
4080 ## Makefile.in needs the cache file name.
4083 ## This is an option because I do not know if all info/man support
4084 ## compressed files, nor how to test if they do so.
4086 # Check whether --with-compress-info was given.
4087 if test "${with_compress_info+set}" = set; then :
4088 withval=$with_compress_info;
4089 else
4090 with_compress_info=yes
4093 if test $with_compress_info = yes; then
4094 GZIP_INFO=yes
4095 else
4096 GZIP_INFO=
4101 # Check whether --with-pkg-config-prog was given.
4102 if test "${with_pkg_config_prog+set}" = set; then :
4103 withval=$with_pkg_config_prog;
4106 if test "X${with_pkg_config_prog}" != X; then
4107 if test "${with_pkg_config_prog}" != yes; then
4108 PKG_CONFIG="${with_pkg_config_prog}"
4112 CRT_DIR=
4114 # Check whether --with-crt-dir was given.
4115 if test "${with_crt_dir+set}" = set; then :
4116 withval=$with_crt_dir;
4119 CRT_DIR="${with_crt_dir}"
4122 # Check whether --with-gameuser was given.
4123 if test "${with_gameuser+set}" = set; then :
4124 withval=$with_gameuser;
4127 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4128 && gameuser="${with_gameuser}"
4129 test "X$gameuser" = X && gameuser=games
4132 # Check whether --with-gnustep-conf was given.
4133 if test "${with_gnustep_conf+set}" = set; then :
4134 withval=$with_gnustep_conf;
4137 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4138 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4139 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4140 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4142 # Check whether --enable-ns-self-contained was given.
4143 if test "${enable_ns_self_contained+set}" = set; then :
4144 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4145 else
4146 EN_NS_SELF_CONTAINED=yes
4150 # Check whether --enable-asserts was given.
4151 if test "${enable_asserts+set}" = set; then :
4152 enableval=$enable_asserts; USE_XASSERTS=$enableval
4153 else
4154 USE_XASSERTS=no
4158 # Check whether --enable-maintainer-mode was given.
4159 if test "${enable_maintainer_mode+set}" = set; then :
4160 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4161 else
4162 USE_MAINTAINER_MODE=yes
4165 if test $USE_MAINTAINER_MODE = yes; then
4166 MAINT=
4167 else
4168 MAINT=#
4172 # Check whether --enable-locallisppath was given.
4173 if test "${enable_locallisppath+set}" = set; then :
4174 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4175 locallisppath=
4176 elif test "${enableval}" != "yes"; then
4177 locallisppath=${enableval}
4182 # Check whether --enable-checking was given.
4183 if test "${enable_checking+set}" = set; then :
4184 enableval=$enable_checking; ac_checking_flags="${enableval}"
4187 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4188 for check in $ac_checking_flags
4190 case $check in
4191 # these set all the flags to specific states
4192 yes) ac_enable_checking=1 ;;
4193 no) ac_enable_checking= ;
4194 ac_gc_check_stringbytes= ;
4195 ac_gc_check_string_overrun= ;
4196 ac_gc_check_string_free_list= ;
4197 ac_xmalloc_overrun= ;
4198 ac_gc_check_cons_list= ;;
4199 all) ac_enable_checking=1 ;
4200 ac_gc_check_stringbytes=1 ;
4201 ac_gc_check_string_overrun=1 ;
4202 ac_gc_check_string_free_list=1 ;
4203 ac_xmalloc_overrun=1 ;
4204 ac_gc_check_cons_list=1 ;;
4205 # these enable particular checks
4206 stringbytes) ac_gc_check_stringbytes=1 ;;
4207 stringoverrun) ac_gc_check_string_overrun=1 ;;
4208 stringfreelist) ac_gc_check_string_free_list=1 ;;
4209 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4210 conslist) ac_gc_check_cons_list=1 ;;
4211 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4212 esac
4213 done
4214 IFS="$ac_save_IFS"
4216 if test x$ac_enable_checking != x ; then
4218 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4221 if test x$ac_gc_check_stringbytes != x ; then
4223 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4226 if test x$ac_gc_check_string_overrun != x ; then
4228 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4231 if test x$ac_gc_check_string_free_list != x ; then
4233 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4236 if test x$ac_xmalloc_overrun != x ; then
4238 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4241 if test x$ac_gc_check_cons_list != x ; then
4243 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4247 # Check whether --enable-use-lisp-union-type was given.
4248 if test "${enable_use_lisp_union_type+set}" = set; then :
4249 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4251 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4258 # Check whether --enable-profiling was given.
4259 if test "${enable_profiling+set}" = set; then :
4260 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4263 if test x$ac_enable_profiling != x ; then
4264 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4265 else
4266 PROFILING_CFLAGS=
4270 # Check whether --enable-autodepend was given.
4271 if test "${enable_autodepend+set}" = set; then :
4272 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4273 else
4274 ac_enable_autodepend=yes
4278 #### Make srcdir absolute, if it isn't already. It's important to
4279 #### avoid running the path through pwd unnecessarily, since pwd can
4280 #### give you automounter prefixes, which can go away. We do all this
4281 #### so Emacs can find its files when run uninstalled.
4282 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4283 unset CDPATH
4284 case "${srcdir}" in
4285 /* ) ;;
4287 ## We may be able to use the $PWD environment variable to make this
4288 ## absolute. But sometimes PWD is inaccurate.
4289 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4290 ## but that tested only for a well-formed and valid PWD,
4291 ## it did not object when PWD was well-formed and valid but just wrong.
4292 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4293 then
4294 srcdir="$PWD"
4295 else
4296 srcdir="`(cd ${srcdir}; pwd)`"
4299 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4300 esac
4302 #### Given the configuration name, set machfile and opsysfile to the
4303 #### names of the m/*.h and s/*.h files we should use.
4305 ### Canonicalize the configuration name.
4307 # Make sure we can run config.sub.
4308 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4309 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4312 $as_echo_n "checking build system type... " >&6; }
4313 if test "${ac_cv_build+set}" = set; then :
4314 $as_echo_n "(cached) " >&6
4315 else
4316 ac_build_alias=$build_alias
4317 test "x$ac_build_alias" = x &&
4318 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4319 test "x$ac_build_alias" = x &&
4320 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4321 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4322 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4326 $as_echo "$ac_cv_build" >&6; }
4327 case $ac_cv_build in
4328 *-*-*) ;;
4329 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4330 esac
4331 build=$ac_cv_build
4332 ac_save_IFS=$IFS; IFS='-'
4333 set x $ac_cv_build
4334 shift
4335 build_cpu=$1
4336 build_vendor=$2
4337 shift; shift
4338 # Remember, the first character of IFS is used to create $*,
4339 # except with old shells:
4340 build_os=$*
4341 IFS=$ac_save_IFS
4342 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4346 $as_echo_n "checking host system type... " >&6; }
4347 if test "${ac_cv_host+set}" = set; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 if test "x$host_alias" = x; then
4351 ac_cv_host=$ac_cv_build
4352 else
4353 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4354 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4359 $as_echo "$ac_cv_host" >&6; }
4360 case $ac_cv_host in
4361 *-*-*) ;;
4362 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4363 esac
4364 host=$ac_cv_host
4365 ac_save_IFS=$IFS; IFS='-'
4366 set x $ac_cv_host
4367 shift
4368 host_cpu=$1
4369 host_vendor=$2
4370 shift; shift
4371 # Remember, the first character of IFS is used to create $*,
4372 # except with old shells:
4373 host_os=$*
4374 IFS=$ac_save_IFS
4375 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4378 canonical=$host
4379 configuration=${host_alias-${build_alias-$host}}
4383 ### If you add support for a new configuration, add code to this
4384 ### switch statement to recognize your configuration name and select
4385 ### the appropriate operating system and machine description files.
4387 ### You would hope that you could choose an m/*.h file pretty much
4388 ### based on the machine portion of the configuration name, and an s/*.h
4389 ### file based on the operating system portion. However, it turns out
4390 ### that each m/*.h file is pretty manufacturer-specific - for
4391 ### example mips.h is MIPS
4392 ### So we basically have to have a special case for each
4393 ### configuration name.
4395 ### As far as handling version numbers on operating systems is
4396 ### concerned, make sure things will fail in a fixable way. If
4397 ### /etc/MACHINES doesn't say anything about version numbers, be
4398 ### prepared to handle anything reasonably. If version numbers
4399 ### matter, be sure /etc/MACHINES says something about it.
4401 machine='' opsys='' unported=no
4402 case "${canonical}" in
4404 ## GNU/Linux and similar ports
4405 *-*-linux* )
4406 opsys=gnu-linux
4407 case ${canonical} in
4408 alpha*) machine=alpha ;;
4409 s390x-*) machine=ibms390x ;;
4410 powerpc*) machine=macppc ;;
4411 sparc*) machine=sparc ;;
4412 ia64*) machine=ia64 ;;
4413 m68k*) machine=m68k ;;
4414 x86_64*) machine=amdx86-64 ;;
4415 esac
4418 ## FreeBSD ports
4419 *-*-freebsd* )
4420 opsys=freebsd
4421 case "${canonical}" in
4422 alpha*) machine=alpha ;;
4423 amd64-*|x86_64-*) machine=amdx86-64 ;;
4424 ia64-*) machine=ia64 ;;
4425 i[3456]86-*) machine=intel386 ;;
4426 powerpc-*) machine=macppc ;;
4427 sparc-*) machine=sparc ;;
4428 sparc64-*) machine=sparc ;;
4429 esac
4432 ## FreeBSD kernel + glibc based userland
4433 *-*-kfreebsd*gnu* )
4434 opsys=gnu-kfreebsd
4435 case "${canonical}" in
4436 alpha*) machine=alpha ;;
4437 amd64-*|x86_64-*) machine=amdx86-64 ;;
4438 ia64-*) machine=ia64 ;;
4439 i[3456]86-*) machine=intel386 ;;
4440 powerpc-*) machine=macppc ;;
4441 sparc-*) machine=sparc ;;
4442 sparc64-*) machine=sparc ;;
4443 esac
4446 ## NetBSD ports
4447 *-*-netbsd* )
4448 opsys=netbsd
4449 case "${canonical}" in
4450 alpha*) machine=alpha ;;
4451 x86_64-*) machine=amdx86-64 ;;
4452 i[3456]86-*) machine=intel386 ;;
4453 m68k-*) machine=m68k ;;
4454 powerpc-*) machine=macppc ;;
4455 sparc*-) machine=sparc ;;
4456 vax-*) machine=vax ;;
4457 esac
4460 ## OpenBSD ports
4461 *-*-openbsd* )
4462 opsys=openbsd
4463 case "${canonical}" in
4464 alpha*) machine=alpha ;;
4465 x86_64-*) machine=amdx86-64 ;;
4466 i386-*) machine=intel386 ;;
4467 powerpc-*) machine=macppc ;;
4468 sparc*) machine=sparc ;;
4469 vax-*) machine=vax ;;
4470 esac
4473 ## Apple Darwin / Mac OS X
4474 *-apple-darwin* )
4475 case "${canonical}" in
4476 i[3456]86-* ) machine=intel386 ;;
4477 powerpc-* ) machine=macppc ;;
4478 x86_64-* ) machine=amdx86-64 ;;
4479 * ) unported=yes ;;
4480 esac
4481 opsys=darwin
4482 # Define CPP as follows to make autoconf work correctly.
4483 CPP="${CC-cc} -E -no-cpp-precomp"
4484 # Use fink packages if available.
4485 if test -d /sw/include && test -d /sw/lib; then
4486 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4487 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4488 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4492 ## HP 9000 series 700 and 800, running HP/UX
4493 hppa*-hp-hpux10.2* )
4494 opsys=hpux10-20
4496 hppa*-hp-hpux1[1-9]* )
4497 opsys=hpux11
4498 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4501 ## IBM machines
4502 rs6000-ibm-aix4.[23]* )
4503 machine=ibmrs6000 opsys=aix4-2
4505 powerpc-ibm-aix4.[23]* )
4506 machine=ibmrs6000 opsys=aix4-2
4508 rs6000-ibm-aix[56]* )
4509 machine=ibmrs6000 opsys=aix4-2
4511 powerpc-ibm-aix[56]* )
4512 machine=ibmrs6000 opsys=aix4-2
4515 ## Silicon Graphics machines
4516 ## Iris 4D
4517 mips-sgi-irix6.5 )
4518 opsys=irix6-5
4519 # Without defining _LANGUAGE_C, things get masked out in the headers
4520 # so that, for instance, grepping for `free' in stdlib.h fails and
4521 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4522 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4523 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4526 ## Suns
4527 *-sun-solaris* \
4528 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4529 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4530 case "${canonical}" in
4531 i[3456]86-*-* ) machine=intel386 ;;
4532 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4533 sparc* ) machine=sparc ;;
4534 * ) unported=yes ;;
4535 esac
4536 case "${canonical}" in
4537 *-sunos5.6* | *-solaris2.6* )
4538 opsys=sol2-6
4539 NON_GNU_CPP=/usr/ccs/lib/cpp
4540 RANLIB="ar -ts"
4542 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4543 opsys=sol2-6
4544 emacs_check_sunpro_c=yes
4545 NON_GNU_CPP=/usr/ccs/lib/cpp
4547 *-sunos5* | *-solaris* )
4548 opsys=sol2-10
4549 emacs_check_sunpro_c=yes
4550 NON_GNU_CPP=/usr/ccs/lib/cpp
4552 esac
4553 ## Watch out for a compiler that we know will not work.
4554 case "${canonical}" in
4555 *-solaris* | *-sunos5* )
4556 if [ "x$CC" = x/usr/ucb/cc ]; then
4557 ## /usr/ucb/cc doesn't work;
4558 ## we should find some other compiler that does work.
4559 unset CC
4562 *) ;;
4563 esac
4566 ## Intel 386 machines where we don't care about the manufacturer.
4567 i[3456]86-*-* )
4568 machine=intel386
4569 case "${canonical}" in
4570 *-cygwin ) opsys=cygwin ;;
4571 *-darwin* ) opsys=darwin
4572 CPP="${CC-cc} -E -no-cpp-precomp"
4574 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4575 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4576 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4577 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4578 esac
4582 unported=yes
4584 esac
4586 ### If the code above didn't choose an operating system, just choose
4587 ### an operating system based on the configuration name. You really
4588 ### only want to use this when you have no idea what the right
4589 ### operating system is; if you know what operating systems a machine
4590 ### runs, it's cleaner to make it explicit in the case statement
4591 ### above.
4592 if test x"${opsys}" = x; then
4593 case "${canonical}" in
4594 *-gnu* ) opsys=gnu ;;
4596 unported=yes
4598 esac
4603 if test $unported = yes; then
4604 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4605 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4608 if test -n "$machine"; then
4609 machfile="m/${machine}.h"
4610 else
4611 machfile=
4613 opsysfile="s/${opsys}.h"
4616 #### Choose a compiler.
4617 test -n "$CC" && cc_specified=yes
4619 # Save the value of CFLAGS that the user specified.
4620 SPECIFIED_CFLAGS="$CFLAGS"
4622 ac_ext=c
4623 ac_cpp='$CPP $CPPFLAGS'
4624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4627 if test -n "$ac_tool_prefix"; then
4628 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4629 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631 $as_echo_n "checking for $ac_word... " >&6; }
4632 if test "${ac_cv_prog_CC+set}" = set; then :
4633 $as_echo_n "(cached) " >&6
4634 else
4635 if test -n "$CC"; then
4636 ac_cv_prog_CC="$CC" # Let the user override the test.
4637 else
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 break 2
4649 done
4650 done
4651 IFS=$as_save_IFS
4655 CC=$ac_cv_prog_CC
4656 if test -n "$CC"; then
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4658 $as_echo "$CC" >&6; }
4659 else
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4661 $as_echo "no" >&6; }
4666 if test -z "$ac_cv_prog_CC"; then
4667 ac_ct_CC=$CC
4668 # Extract the first word of "gcc", so it can be a program name with args.
4669 set dummy gcc; ac_word=$2
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671 $as_echo_n "checking for $ac_word... " >&6; }
4672 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4673 $as_echo_n "(cached) " >&6
4674 else
4675 if test -n "$ac_ct_CC"; then
4676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4677 else
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4685 ac_cv_prog_ac_ct_CC="gcc"
4686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 break 2
4689 done
4690 done
4691 IFS=$as_save_IFS
4695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4696 if test -n "$ac_ct_CC"; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4698 $as_echo "$ac_ct_CC" >&6; }
4699 else
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 $as_echo "no" >&6; }
4704 if test "x$ac_ct_CC" = x; then
4705 CC=""
4706 else
4707 case $cross_compiling:$ac_tool_warned in
4708 yes:)
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4711 ac_tool_warned=yes ;;
4712 esac
4713 CC=$ac_ct_CC
4715 else
4716 CC="$ac_cv_prog_CC"
4719 if test -z "$CC"; then
4720 if test -n "$ac_tool_prefix"; then
4721 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4722 set dummy ${ac_tool_prefix}cc; ac_word=$2
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 $as_echo_n "checking for $ac_word... " >&6; }
4725 if test "${ac_cv_prog_CC+set}" = set; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 if test -n "$CC"; then
4729 ac_cv_prog_CC="$CC" # Let the user override the test.
4730 else
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4738 ac_cv_prog_CC="${ac_tool_prefix}cc"
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 break 2
4742 done
4743 done
4744 IFS=$as_save_IFS
4748 CC=$ac_cv_prog_CC
4749 if test -n "$CC"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4751 $as_echo "$CC" >&6; }
4752 else
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4760 if test -z "$CC"; then
4761 # Extract the first word of "cc", so it can be a program name with args.
4762 set dummy cc; ac_word=$2
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 $as_echo_n "checking for $ac_word... " >&6; }
4765 if test "${ac_cv_prog_CC+set}" = set; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 if test -n "$CC"; then
4769 ac_cv_prog_CC="$CC" # Let the user override the test.
4770 else
4771 ac_prog_rejected=no
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4780 ac_prog_rejected=yes
4781 continue
4783 ac_cv_prog_CC="cc"
4784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 break 2
4787 done
4788 done
4789 IFS=$as_save_IFS
4791 if test $ac_prog_rejected = yes; then
4792 # We found a bogon in the path, so make sure we never use it.
4793 set dummy $ac_cv_prog_CC
4794 shift
4795 if test $# != 0; then
4796 # We chose a different compiler from the bogus one.
4797 # However, it has the same basename, so the bogon will be chosen
4798 # first if we set CC to just the basename; use the full file name.
4799 shift
4800 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4805 CC=$ac_cv_prog_CC
4806 if test -n "$CC"; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4808 $as_echo "$CC" >&6; }
4809 else
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4816 if test -z "$CC"; then
4817 if test -n "$ac_tool_prefix"; then
4818 for ac_prog in cl.exe
4820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823 $as_echo_n "checking for $ac_word... " >&6; }
4824 if test "${ac_cv_prog_CC+set}" = set; then :
4825 $as_echo_n "(cached) " >&6
4826 else
4827 if test -n "$CC"; then
4828 ac_cv_prog_CC="$CC" # Let the user override the test.
4829 else
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4841 done
4842 done
4843 IFS=$as_save_IFS
4847 CC=$ac_cv_prog_CC
4848 if test -n "$CC"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4850 $as_echo "$CC" >&6; }
4851 else
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4857 test -n "$CC" && break
4858 done
4860 if test -z "$CC"; then
4861 ac_ct_CC=$CC
4862 for ac_prog in cl.exe
4864 # Extract the first word of "$ac_prog", so it can be a program name with args.
4865 set dummy $ac_prog; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4869 $as_echo_n "(cached) " >&6
4870 else
4871 if test -n "$ac_ct_CC"; then
4872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_prog_ac_ct_CC="$ac_prog"
4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 break 2
4885 done
4886 done
4887 IFS=$as_save_IFS
4891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4892 if test -n "$ac_ct_CC"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4894 $as_echo "$ac_ct_CC" >&6; }
4895 else
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4901 test -n "$ac_ct_CC" && break
4902 done
4904 if test "x$ac_ct_CC" = x; then
4905 CC=""
4906 else
4907 case $cross_compiling:$ac_tool_warned in
4908 yes:)
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4911 ac_tool_warned=yes ;;
4912 esac
4913 CC=$ac_ct_CC
4920 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4922 as_fn_error "no acceptable C compiler found in \$PATH
4923 See \`config.log' for more details." "$LINENO" 5; }
4925 # Provide some information about the compiler.
4926 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4927 set X $ac_compile
4928 ac_compiler=$2
4929 for ac_option in --version -v -V -qversion; do
4930 { { ac_try="$ac_compiler $ac_option >&5"
4931 case "(($ac_try" in
4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933 *) ac_try_echo=$ac_try;;
4934 esac
4935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4936 $as_echo "$ac_try_echo"; } >&5
4937 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4938 ac_status=$?
4939 if test -s conftest.err; then
4940 sed '10a\
4941 ... rest of stderr output deleted ...
4942 10q' conftest.err >conftest.er1
4943 cat conftest.er1 >&5
4945 rm -f conftest.er1 conftest.err
4946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4947 test $ac_status = 0; }
4948 done
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4954 main ()
4958 return 0;
4960 _ACEOF
4961 ac_clean_files_save=$ac_clean_files
4962 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4963 # Try to create an executable without -o first, disregard a.out.
4964 # It will help us diagnose broken compilers, and finding out an intuition
4965 # of exeext.
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4967 $as_echo_n "checking whether the C compiler works... " >&6; }
4968 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4970 # The possible output files:
4971 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4973 ac_rmfiles=
4974 for ac_file in $ac_files
4976 case $ac_file in
4977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4978 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4979 esac
4980 done
4981 rm -f $ac_rmfiles
4983 if { { ac_try="$ac_link_default"
4984 case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987 esac
4988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4989 $as_echo "$ac_try_echo"; } >&5
4990 (eval "$ac_link_default") 2>&5
4991 ac_status=$?
4992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4993 test $ac_status = 0; }; then :
4994 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4995 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4996 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4997 # so that the user can short-circuit this test for compilers unknown to
4998 # Autoconf.
4999 for ac_file in $ac_files ''
5001 test -f "$ac_file" || continue
5002 case $ac_file in
5003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5005 [ab].out )
5006 # We found the default executable, but exeext='' is most
5007 # certainly right.
5008 break;;
5009 *.* )
5010 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5011 then :; else
5012 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5014 # We set ac_cv_exeext here because the later test for it is not
5015 # safe: cross compilers may not add the suffix if given an `-o'
5016 # argument, so we may need to know it at that point already.
5017 # Even if this section looks crufty: it has the advantage of
5018 # actually working.
5019 break;;
5021 break;;
5022 esac
5023 done
5024 test "$ac_cv_exeext" = no && ac_cv_exeext=
5026 else
5027 ac_file=''
5029 if test -z "$ac_file"; then :
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5032 $as_echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5037 { as_fn_set_status 77
5038 as_fn_error "C compiler cannot create executables
5039 See \`config.log' for more details." "$LINENO" 5; }; }
5040 else
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5042 $as_echo "yes" >&6; }
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5045 $as_echo_n "checking for C compiler default output file name... " >&6; }
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5047 $as_echo "$ac_file" >&6; }
5048 ac_exeext=$ac_cv_exeext
5050 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5051 ac_clean_files=$ac_clean_files_save
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5053 $as_echo_n "checking for suffix of executables... " >&6; }
5054 if { { ac_try="$ac_link"
5055 case "(($ac_try" in
5056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5057 *) ac_try_echo=$ac_try;;
5058 esac
5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5060 $as_echo "$ac_try_echo"; } >&5
5061 (eval "$ac_link") 2>&5
5062 ac_status=$?
5063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5064 test $ac_status = 0; }; then :
5065 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5066 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5067 # work properly (i.e., refer to `conftest.exe'), while it won't with
5068 # `rm'.
5069 for ac_file in conftest.exe conftest conftest.*; do
5070 test -f "$ac_file" || continue
5071 case $ac_file in
5072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5073 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5074 break;;
5075 * ) break;;
5076 esac
5077 done
5078 else
5079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5081 as_fn_error "cannot compute suffix of executables: cannot compile and link
5082 See \`config.log' for more details." "$LINENO" 5; }
5084 rm -f conftest conftest$ac_cv_exeext
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5086 $as_echo "$ac_cv_exeext" >&6; }
5088 rm -f conftest.$ac_ext
5089 EXEEXT=$ac_cv_exeext
5090 ac_exeext=$EXEEXT
5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5093 #include <stdio.h>
5095 main ()
5097 FILE *f = fopen ("conftest.out", "w");
5098 return ferror (f) || fclose (f) != 0;
5101 return 0;
5103 _ACEOF
5104 ac_clean_files="$ac_clean_files conftest.out"
5105 # Check that the compiler produces executables we can run. If not, either
5106 # the compiler is broken, or we cross compile.
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5108 $as_echo_n "checking whether we are cross compiling... " >&6; }
5109 if test "$cross_compiling" != yes; then
5110 { { ac_try="$ac_link"
5111 case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5114 esac
5115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5116 $as_echo "$ac_try_echo"; } >&5
5117 (eval "$ac_link") 2>&5
5118 ac_status=$?
5119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5120 test $ac_status = 0; }
5121 if { ac_try='./conftest$ac_cv_exeext'
5122 { { case "(($ac_try" in
5123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124 *) ac_try_echo=$ac_try;;
5125 esac
5126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5127 $as_echo "$ac_try_echo"; } >&5
5128 (eval "$ac_try") 2>&5
5129 ac_status=$?
5130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5131 test $ac_status = 0; }; }; then
5132 cross_compiling=no
5133 else
5134 if test "$cross_compiling" = maybe; then
5135 cross_compiling=yes
5136 else
5137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5139 as_fn_error "cannot run C compiled programs.
5140 If you meant to cross compile, use \`--host'.
5141 See \`config.log' for more details." "$LINENO" 5; }
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5146 $as_echo "$cross_compiling" >&6; }
5148 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5149 ac_clean_files=$ac_clean_files_save
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5151 $as_echo_n "checking for suffix of object files... " >&6; }
5152 if test "${ac_cv_objext+set}" = set; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5159 main ()
5163 return 0;
5165 _ACEOF
5166 rm -f conftest.o conftest.obj
5167 if { { ac_try="$ac_compile"
5168 case "(($ac_try" in
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5171 esac
5172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5173 $as_echo "$ac_try_echo"; } >&5
5174 (eval "$ac_compile") 2>&5
5175 ac_status=$?
5176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5177 test $ac_status = 0; }; then :
5178 for ac_file in conftest.o conftest.obj conftest.*; do
5179 test -f "$ac_file" || continue;
5180 case $ac_file in
5181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5182 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5183 break;;
5184 esac
5185 done
5186 else
5187 $as_echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5192 as_fn_error "cannot compute suffix of object files: cannot compile
5193 See \`config.log' for more details." "$LINENO" 5; }
5195 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5198 $as_echo "$ac_cv_objext" >&6; }
5199 OBJEXT=$ac_cv_objext
5200 ac_objext=$OBJEXT
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5202 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5203 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5210 main ()
5212 #ifndef __GNUC__
5213 choke me
5214 #endif
5217 return 0;
5219 _ACEOF
5220 if ac_fn_c_try_compile "$LINENO"; then :
5221 ac_compiler_gnu=yes
5222 else
5223 ac_compiler_gnu=no
5225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5226 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5230 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5231 if test $ac_compiler_gnu = yes; then
5232 GCC=yes
5233 else
5234 GCC=
5236 ac_test_CFLAGS=${CFLAGS+set}
5237 ac_save_CFLAGS=$CFLAGS
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5239 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5240 if test "${ac_cv_prog_cc_g+set}" = set; then :
5241 $as_echo_n "(cached) " >&6
5242 else
5243 ac_save_c_werror_flag=$ac_c_werror_flag
5244 ac_c_werror_flag=yes
5245 ac_cv_prog_cc_g=no
5246 CFLAGS="-g"
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5251 main ()
5255 return 0;
5257 _ACEOF
5258 if ac_fn_c_try_compile "$LINENO"; then :
5259 ac_cv_prog_cc_g=yes
5260 else
5261 CFLAGS=""
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5266 main ()
5270 return 0;
5272 _ACEOF
5273 if ac_fn_c_try_compile "$LINENO"; then :
5275 else
5276 ac_c_werror_flag=$ac_save_c_werror_flag
5277 CFLAGS="-g"
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5282 main ()
5286 return 0;
5288 _ACEOF
5289 if ac_fn_c_try_compile "$LINENO"; then :
5290 ac_cv_prog_cc_g=yes
5292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5297 ac_c_werror_flag=$ac_save_c_werror_flag
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5300 $as_echo "$ac_cv_prog_cc_g" >&6; }
5301 if test "$ac_test_CFLAGS" = set; then
5302 CFLAGS=$ac_save_CFLAGS
5303 elif test $ac_cv_prog_cc_g = yes; then
5304 if test "$GCC" = yes; then
5305 CFLAGS="-g -O2"
5306 else
5307 CFLAGS="-g"
5309 else
5310 if test "$GCC" = yes; then
5311 CFLAGS="-O2"
5312 else
5313 CFLAGS=
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5317 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5318 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 ac_cv_prog_cc_c89=no
5322 ac_save_CC=$CC
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5325 #include <stdarg.h>
5326 #include <stdio.h>
5327 #include <sys/types.h>
5328 #include <sys/stat.h>
5329 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5330 struct buf { int x; };
5331 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5332 static char *e (p, i)
5333 char **p;
5334 int i;
5336 return p[i];
5338 static char *f (char * (*g) (char **, int), char **p, ...)
5340 char *s;
5341 va_list v;
5342 va_start (v,p);
5343 s = g (p, va_arg (v,int));
5344 va_end (v);
5345 return s;
5348 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5349 function prototypes and stuff, but not '\xHH' hex character constants.
5350 These don't provoke an error unfortunately, instead are silently treated
5351 as 'x'. The following induces an error, until -std is added to get
5352 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5353 array size at least. It's necessary to write '\x00'==0 to get something
5354 that's true only with -std. */
5355 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5357 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5358 inside strings and character constants. */
5359 #define FOO(x) 'x'
5360 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5362 int test (int i, double x);
5363 struct s1 {int (*f) (int a);};
5364 struct s2 {int (*f) (double a);};
5365 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5366 int argc;
5367 char **argv;
5369 main ()
5371 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5373 return 0;
5375 _ACEOF
5376 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5377 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5379 CC="$ac_save_CC $ac_arg"
5380 if ac_fn_c_try_compile "$LINENO"; then :
5381 ac_cv_prog_cc_c89=$ac_arg
5383 rm -f core conftest.err conftest.$ac_objext
5384 test "x$ac_cv_prog_cc_c89" != "xno" && break
5385 done
5386 rm -f conftest.$ac_ext
5387 CC=$ac_save_CC
5390 # AC_CACHE_VAL
5391 case "x$ac_cv_prog_cc_c89" in
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5394 $as_echo "none needed" >&6; } ;;
5395 xno)
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5397 $as_echo "unsupported" >&6; } ;;
5399 CC="$CC $ac_cv_prog_cc_c89"
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5401 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5402 esac
5403 if test "x$ac_cv_prog_cc_c89" != xno; then :
5407 ac_ext=c
5408 ac_cpp='$CPP $CPPFLAGS'
5409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5412 DEPDIR="${am__leading_dot}deps"
5414 ac_config_commands="$ac_config_commands depfiles"
5417 am_make=${MAKE-make}
5418 cat > confinc << 'END'
5419 am__doit:
5420 @echo this is the am__doit target
5421 .PHONY: am__doit
5423 # If we don't find an include directive, just comment out the code.
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5425 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5426 am__include="#"
5427 am__quote=
5428 _am_result=none
5429 # First try GNU make style include.
5430 echo "include confinc" > confmf
5431 # Ignore all kinds of additional output from `make'.
5432 case `$am_make -s -f confmf 2> /dev/null` in #(
5433 *the\ am__doit\ target*)
5434 am__include=include
5435 am__quote=
5436 _am_result=GNU
5438 esac
5439 # Now try BSD make style include.
5440 if test "$am__include" = "#"; then
5441 echo '.include "confinc"' > confmf
5442 case `$am_make -s -f confmf 2> /dev/null` in #(
5443 *the\ am__doit\ target*)
5444 am__include=.include
5445 am__quote="\""
5446 _am_result=BSD
5448 esac
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5453 $as_echo "$_am_result" >&6; }
5454 rm -f confinc confmf
5456 # Check whether --enable-dependency-tracking was given.
5457 if test "${enable_dependency_tracking+set}" = set; then :
5458 enableval=$enable_dependency_tracking;
5461 if test "x$enable_dependency_tracking" != xno; then
5462 am_depcomp="$ac_aux_dir/depcomp"
5463 AMDEPBACKSLASH='\'
5465 if test "x$enable_dependency_tracking" != xno; then
5466 AMDEP_TRUE=
5467 AMDEP_FALSE='#'
5468 else
5469 AMDEP_TRUE='#'
5470 AMDEP_FALSE=
5475 depcc="$CC" am_compiler_list=
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5478 $as_echo_n "checking dependency style of $depcc... " >&6; }
5479 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5480 $as_echo_n "(cached) " >&6
5481 else
5482 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5483 # We make a subdir and do the tests there. Otherwise we can end up
5484 # making bogus files that we don't know about and never remove. For
5485 # instance it was reported that on HP-UX the gcc test will end up
5486 # making a dummy file named `D' -- because `-MD' means `put the output
5487 # in D'.
5488 mkdir conftest.dir
5489 # Copy depcomp to subdir because otherwise we won't find it if we're
5490 # using a relative directory.
5491 cp "$am_depcomp" conftest.dir
5492 cd conftest.dir
5493 # We will build objects and dependencies in a subdirectory because
5494 # it helps to detect inapplicable dependency modes. For instance
5495 # both Tru64's cc and ICC support -MD to output dependencies as a
5496 # side effect of compilation, but ICC will put the dependencies in
5497 # the current directory while Tru64 will put them in the object
5498 # directory.
5499 mkdir sub
5501 am_cv_CC_dependencies_compiler_type=none
5502 if test "$am_compiler_list" = ""; then
5503 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5505 am__universal=false
5506 case " $depcc " in #(
5507 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5508 esac
5510 for depmode in $am_compiler_list; do
5511 # Setup a source with many dependencies, because some compilers
5512 # like to wrap large dependency lists on column 80 (with \), and
5513 # we should not choose a depcomp mode which is confused by this.
5515 # We need to recreate these files for each test, as the compiler may
5516 # overwrite some of them when testing with obscure command lines.
5517 # This happens at least with the AIX C compiler.
5518 : > sub/conftest.c
5519 for i in 1 2 3 4 5 6; do
5520 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5521 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5522 # Solaris 8's {/usr,}/bin/sh.
5523 touch sub/conftst$i.h
5524 done
5525 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5527 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5528 # mode. It turns out that the SunPro C++ compiler does not properly
5529 # handle `-M -o', and we need to detect this. Also, some Intel
5530 # versions had trouble with output in subdirs
5531 am__obj=sub/conftest.${OBJEXT-o}
5532 am__minus_obj="-o $am__obj"
5533 case $depmode in
5534 gcc)
5535 # This depmode causes a compiler race in universal mode.
5536 test "$am__universal" = false || continue
5538 nosideeffect)
5539 # after this tag, mechanisms are not by side-effect, so they'll
5540 # only be used when explicitly requested
5541 if test "x$enable_dependency_tracking" = xyes; then
5542 continue
5543 else
5544 break
5547 msvisualcpp | msvcmsys)
5548 # This compiler won't grok `-c -o', but also, the minuso test has
5549 # not run yet. These depmodes are late enough in the game, and
5550 # so weak that their functioning should not be impacted.
5551 am__obj=conftest.${OBJEXT-o}
5552 am__minus_obj=
5554 none) break ;;
5555 esac
5556 if depmode=$depmode \
5557 source=sub/conftest.c object=$am__obj \
5558 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5559 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5560 >/dev/null 2>conftest.err &&
5561 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5562 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5563 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5564 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5565 # icc doesn't choke on unknown options, it will just issue warnings
5566 # or remarks (even with -Werror). So we grep stderr for any message
5567 # that says an option was ignored or not supported.
5568 # When given -MP, icc 7.0 and 7.1 complain thusly:
5569 # icc: Command line warning: ignoring option '-M'; no argument required
5570 # The diagnosis changed in icc 8.0:
5571 # icc: Command line remark: option '-MP' not supported
5572 if (grep 'ignoring option' conftest.err ||
5573 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5574 am_cv_CC_dependencies_compiler_type=$depmode
5575 break
5578 done
5580 cd ..
5581 rm -rf conftest.dir
5582 else
5583 am_cv_CC_dependencies_compiler_type=none
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5588 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5589 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5592 test "x$enable_dependency_tracking" != xno \
5593 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5594 am__fastdepCC_TRUE=
5595 am__fastdepCC_FALSE='#'
5596 else
5597 am__fastdepCC_TRUE='#'
5598 am__fastdepCC_FALSE=
5602 if test "x$CC" != xcc; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5604 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5605 else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5607 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5609 set dummy $CC; ac_cc=`$as_echo "$2" |
5610 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5611 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5618 main ()
5622 return 0;
5624 _ACEOF
5625 # Make sure it works both with $CC and with simple cc.
5626 # We do the test twice because some compilers refuse to overwrite an
5627 # existing .o file with -o, though they will create one.
5628 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5629 rm -f conftest2.*
5630 if { { case "(($ac_try" in
5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632 *) ac_try_echo=$ac_try;;
5633 esac
5634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5635 $as_echo "$ac_try_echo"; } >&5
5636 (eval "$ac_try") 2>&5
5637 ac_status=$?
5638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5639 test $ac_status = 0; } &&
5640 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642 *) ac_try_echo=$ac_try;;
5643 esac
5644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5645 $as_echo "$ac_try_echo"; } >&5
5646 (eval "$ac_try") 2>&5
5647 ac_status=$?
5648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5649 test $ac_status = 0; };
5650 then
5651 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5652 if test "x$CC" != xcc; then
5653 # Test first that cc exists at all.
5654 if { ac_try='cc -c conftest.$ac_ext >&5'
5655 { { case "(($ac_try" in
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5658 esac
5659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5660 $as_echo "$ac_try_echo"; } >&5
5661 (eval "$ac_try") 2>&5
5662 ac_status=$?
5663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5664 test $ac_status = 0; }; }; then
5665 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5666 rm -f conftest2.*
5667 if { { case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670 esac
5671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5672 $as_echo "$ac_try_echo"; } >&5
5673 (eval "$ac_try") 2>&5
5674 ac_status=$?
5675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5676 test $ac_status = 0; } &&
5677 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680 esac
5681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5682 $as_echo "$ac_try_echo"; } >&5
5683 (eval "$ac_try") 2>&5
5684 ac_status=$?
5685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5686 test $ac_status = 0; };
5687 then
5688 # cc works too.
5690 else
5691 # cc exists but doesn't like -o.
5692 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5696 else
5697 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5699 rm -f core conftest*
5702 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5704 $as_echo "yes" >&6; }
5705 else
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5709 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5713 # FIXME: we rely on the cache variable name because
5714 # there is no other way.
5715 set dummy $CC
5716 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5717 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5718 if test "$am_t" != yes; then
5719 # Losing compiler, so override with the script.
5720 # FIXME: It is wrong to rewrite CC.
5721 # But if we don't then we get into trouble of one sort or another.
5722 # A longer-term fix would be to have automake use am__CC in this case,
5723 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5724 CC="$am_aux_dir/compile $CC"
5729 # Initialize gnulib right after verifying that the C compiler works.
5731 ac_ext=c
5732 ac_cpp='$CPP $CPPFLAGS'
5733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5737 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5738 # On Suns, sometimes $CPP names a directory.
5739 if test -n "$CPP" && test -d "$CPP"; then
5740 CPP=
5742 if test -z "$CPP"; then
5743 if test "${ac_cv_prog_CPP+set}" = set; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5746 # Double quotes because CPP needs to be expanded
5747 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5749 ac_preproc_ok=false
5750 for ac_c_preproc_warn_flag in '' yes
5752 # Use a header file that comes with gcc, so configuring glibc
5753 # with a fresh cross-compiler works.
5754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5755 # <limits.h> exists even on freestanding compilers.
5756 # On the NeXT, cc -E runs the code through the compiler's parser,
5757 # not just through cpp. "Syntax error" is here to catch this case.
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5760 #ifdef __STDC__
5761 # include <limits.h>
5762 #else
5763 # include <assert.h>
5764 #endif
5765 Syntax error
5766 _ACEOF
5767 if ac_fn_c_try_cpp "$LINENO"; then :
5769 else
5770 # Broken: fails on valid input.
5771 continue
5773 rm -f conftest.err conftest.$ac_ext
5775 # OK, works on sane cases. Now check whether nonexistent headers
5776 # can be detected and how.
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779 #include <ac_nonexistent.h>
5780 _ACEOF
5781 if ac_fn_c_try_cpp "$LINENO"; then :
5782 # Broken: success on invalid input.
5783 continue
5784 else
5785 # Passes both tests.
5786 ac_preproc_ok=:
5787 break
5789 rm -f conftest.err conftest.$ac_ext
5791 done
5792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5793 rm -f conftest.err conftest.$ac_ext
5794 if $ac_preproc_ok; then :
5795 break
5798 done
5799 ac_cv_prog_CPP=$CPP
5802 CPP=$ac_cv_prog_CPP
5803 else
5804 ac_cv_prog_CPP=$CPP
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5807 $as_echo "$CPP" >&6; }
5808 ac_preproc_ok=false
5809 for ac_c_preproc_warn_flag in '' yes
5811 # Use a header file that comes with gcc, so configuring glibc
5812 # with a fresh cross-compiler works.
5813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5814 # <limits.h> exists even on freestanding compilers.
5815 # On the NeXT, cc -E runs the code through the compiler's parser,
5816 # not just through cpp. "Syntax error" is here to catch this case.
5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5819 #ifdef __STDC__
5820 # include <limits.h>
5821 #else
5822 # include <assert.h>
5823 #endif
5824 Syntax error
5825 _ACEOF
5826 if ac_fn_c_try_cpp "$LINENO"; then :
5828 else
5829 # Broken: fails on valid input.
5830 continue
5832 rm -f conftest.err conftest.$ac_ext
5834 # OK, works on sane cases. Now check whether nonexistent headers
5835 # can be detected and how.
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5838 #include <ac_nonexistent.h>
5839 _ACEOF
5840 if ac_fn_c_try_cpp "$LINENO"; then :
5841 # Broken: success on invalid input.
5842 continue
5843 else
5844 # Passes both tests.
5845 ac_preproc_ok=:
5846 break
5848 rm -f conftest.err conftest.$ac_ext
5850 done
5851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5852 rm -f conftest.err conftest.$ac_ext
5853 if $ac_preproc_ok; then :
5855 else
5856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5858 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5859 See \`config.log' for more details." "$LINENO" 5; }
5862 ac_ext=c
5863 ac_cpp='$CPP $CPPFLAGS'
5864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5870 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5871 if test "${ac_cv_path_GREP+set}" = set; then :
5872 $as_echo_n "(cached) " >&6
5873 else
5874 if test -z "$GREP"; then
5875 ac_path_GREP_found=false
5876 # Loop through the user's path and test for each of PROGNAME-LIST
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5880 IFS=$as_save_IFS
5881 test -z "$as_dir" && as_dir=.
5882 for ac_prog in grep ggrep; do
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5885 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5886 # Check for GNU ac_path_GREP and select it if it is found.
5887 # Check for GNU $ac_path_GREP
5888 case `"$ac_path_GREP" --version 2>&1` in
5889 *GNU*)
5890 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5892 ac_count=0
5893 $as_echo_n 0123456789 >"conftest.in"
5894 while :
5896 cat "conftest.in" "conftest.in" >"conftest.tmp"
5897 mv "conftest.tmp" "conftest.in"
5898 cp "conftest.in" "conftest.nl"
5899 $as_echo 'GREP' >> "conftest.nl"
5900 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5901 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5902 as_fn_arith $ac_count + 1 && ac_count=$as_val
5903 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5904 # Best one so far, save it but keep looking for a better one
5905 ac_cv_path_GREP="$ac_path_GREP"
5906 ac_path_GREP_max=$ac_count
5908 # 10*(2^10) chars as input seems more than enough
5909 test $ac_count -gt 10 && break
5910 done
5911 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5912 esac
5914 $ac_path_GREP_found && break 3
5915 done
5916 done
5917 done
5918 IFS=$as_save_IFS
5919 if test -z "$ac_cv_path_GREP"; then
5920 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5922 else
5923 ac_cv_path_GREP=$GREP
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5928 $as_echo "$ac_cv_path_GREP" >&6; }
5929 GREP="$ac_cv_path_GREP"
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5933 $as_echo_n "checking for egrep... " >&6; }
5934 if test "${ac_cv_path_EGREP+set}" = set; then :
5935 $as_echo_n "(cached) " >&6
5936 else
5937 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5938 then ac_cv_path_EGREP="$GREP -E"
5939 else
5940 if test -z "$EGREP"; then
5941 ac_path_EGREP_found=false
5942 # Loop through the user's path and test for each of PROGNAME-LIST
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
5948 for ac_prog in egrep; do
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5951 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5952 # Check for GNU ac_path_EGREP and select it if it is found.
5953 # Check for GNU $ac_path_EGREP
5954 case `"$ac_path_EGREP" --version 2>&1` in
5955 *GNU*)
5956 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5958 ac_count=0
5959 $as_echo_n 0123456789 >"conftest.in"
5960 while :
5962 cat "conftest.in" "conftest.in" >"conftest.tmp"
5963 mv "conftest.tmp" "conftest.in"
5964 cp "conftest.in" "conftest.nl"
5965 $as_echo 'EGREP' >> "conftest.nl"
5966 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5967 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5968 as_fn_arith $ac_count + 1 && ac_count=$as_val
5969 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5970 # Best one so far, save it but keep looking for a better one
5971 ac_cv_path_EGREP="$ac_path_EGREP"
5972 ac_path_EGREP_max=$ac_count
5974 # 10*(2^10) chars as input seems more than enough
5975 test $ac_count -gt 10 && break
5976 done
5977 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5978 esac
5980 $ac_path_EGREP_found && break 3
5981 done
5982 done
5983 done
5984 IFS=$as_save_IFS
5985 if test -z "$ac_cv_path_EGREP"; then
5986 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5988 else
5989 ac_cv_path_EGREP=$EGREP
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5995 $as_echo "$ac_cv_path_EGREP" >&6; }
5996 EGREP="$ac_cv_path_EGREP"
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6002 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6003 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6004 $as_echo_n "(cached) " >&6
6005 else
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6010 #ifdef __ACK__
6011 Amsterdam
6012 #endif
6014 _ACEOF
6015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6016 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6017 gl_cv_c_amsterdam_compiler=yes
6018 else
6019 gl_cv_c_amsterdam_compiler=no
6021 rm -f conftest*
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6026 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6027 if test -z "$AR"; then
6028 if test $gl_cv_c_amsterdam_compiler = yes; then
6029 AR='cc -c.a'
6030 if test -z "$ARFLAGS"; then
6031 ARFLAGS='-o'
6033 else
6034 if test -n "$ac_tool_prefix"; then
6035 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6036 set dummy ${ac_tool_prefix}ar; ac_word=$2
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038 $as_echo_n "checking for $ac_word... " >&6; }
6039 if test "${ac_cv_prog_AR+set}" = set; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 if test -n "$AR"; then
6043 ac_cv_prog_AR="$AR" # Let the user override the test.
6044 else
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH
6048 IFS=$as_save_IFS
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6052 ac_cv_prog_AR="${ac_tool_prefix}ar"
6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 break 2
6056 done
6057 done
6058 IFS=$as_save_IFS
6062 AR=$ac_cv_prog_AR
6063 if test -n "$AR"; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6065 $as_echo "$AR" >&6; }
6066 else
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068 $as_echo "no" >&6; }
6073 if test -z "$ac_cv_prog_AR"; then
6074 ac_ct_AR=$AR
6075 # Extract the first word of "ar", so it can be a program name with args.
6076 set dummy ar; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 if test -n "$ac_ct_AR"; then
6083 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6084 else
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6088 IFS=$as_save_IFS
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6092 ac_cv_prog_ac_ct_AR="ar"
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 break 2
6096 done
6097 done
6098 IFS=$as_save_IFS
6102 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6103 if test -n "$ac_ct_AR"; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6105 $as_echo "$ac_ct_AR" >&6; }
6106 else
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6111 if test "x$ac_ct_AR" = x; then
6112 AR="ar"
6113 else
6114 case $cross_compiling:$ac_tool_warned in
6115 yes:)
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118 ac_tool_warned=yes ;;
6119 esac
6120 AR=$ac_ct_AR
6122 else
6123 AR="$ac_cv_prog_AR"
6126 if test -z "$ARFLAGS"; then
6127 ARFLAGS='cru'
6130 else
6131 if test -z "$ARFLAGS"; then
6132 ARFLAGS='cru'
6137 if test -z "$RANLIB"; then
6138 if test $gl_cv_c_amsterdam_compiler = yes; then
6139 RANLIB=':'
6140 else
6141 if test -n "$ac_tool_prefix"; then
6142 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6143 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145 $as_echo_n "checking for $ac_word... " >&6; }
6146 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6147 $as_echo_n "(cached) " >&6
6148 else
6149 if test -n "$RANLIB"; then
6150 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 break 2
6163 done
6164 done
6165 IFS=$as_save_IFS
6169 RANLIB=$ac_cv_prog_RANLIB
6170 if test -n "$RANLIB"; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6172 $as_echo "$RANLIB" >&6; }
6173 else
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 $as_echo "no" >&6; }
6180 if test -z "$ac_cv_prog_RANLIB"; then
6181 ac_ct_RANLIB=$RANLIB
6182 # Extract the first word of "ranlib", so it can be a program name with args.
6183 set dummy ranlib; ac_word=$2
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185 $as_echo_n "checking for $ac_word... " >&6; }
6186 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6187 $as_echo_n "(cached) " >&6
6188 else
6189 if test -n "$ac_ct_RANLIB"; then
6190 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199 ac_cv_prog_ac_ct_RANLIB="ranlib"
6200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 break 2
6203 done
6204 done
6205 IFS=$as_save_IFS
6209 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6210 if test -n "$ac_ct_RANLIB"; then
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6212 $as_echo "$ac_ct_RANLIB" >&6; }
6213 else
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215 $as_echo "no" >&6; }
6218 if test "x$ac_ct_RANLIB" = x; then
6219 RANLIB=":"
6220 else
6221 case $cross_compiling:$ac_tool_warned in
6222 yes:)
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6225 ac_tool_warned=yes ;;
6226 esac
6227 RANLIB=$ac_ct_RANLIB
6229 else
6230 RANLIB="$ac_cv_prog_RANLIB"
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6238 $as_echo_n "checking for ANSI C header files... " >&6; }
6239 if test "${ac_cv_header_stdc+set}" = set; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6244 #include <stdlib.h>
6245 #include <stdarg.h>
6246 #include <string.h>
6247 #include <float.h>
6250 main ()
6254 return 0;
6256 _ACEOF
6257 if ac_fn_c_try_compile "$LINENO"; then :
6258 ac_cv_header_stdc=yes
6259 else
6260 ac_cv_header_stdc=no
6262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264 if test $ac_cv_header_stdc = yes; then
6265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6268 #include <string.h>
6270 _ACEOF
6271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6272 $EGREP "memchr" >/dev/null 2>&1; then :
6274 else
6275 ac_cv_header_stdc=no
6277 rm -f conftest*
6281 if test $ac_cv_header_stdc = yes; then
6282 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6285 #include <stdlib.h>
6287 _ACEOF
6288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6289 $EGREP "free" >/dev/null 2>&1; then :
6291 else
6292 ac_cv_header_stdc=no
6294 rm -f conftest*
6298 if test $ac_cv_header_stdc = yes; then
6299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6300 if test "$cross_compiling" = yes; then :
6302 else
6303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6305 #include <ctype.h>
6306 #include <stdlib.h>
6307 #if ((' ' & 0x0FF) == 0x020)
6308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6310 #else
6311 # define ISLOWER(c) \
6312 (('a' <= (c) && (c) <= 'i') \
6313 || ('j' <= (c) && (c) <= 'r') \
6314 || ('s' <= (c) && (c) <= 'z'))
6315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6316 #endif
6318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6320 main ()
6322 int i;
6323 for (i = 0; i < 256; i++)
6324 if (XOR (islower (i), ISLOWER (i))
6325 || toupper (i) != TOUPPER (i))
6326 return 2;
6327 return 0;
6329 _ACEOF
6330 if ac_fn_c_try_run "$LINENO"; then :
6332 else
6333 ac_cv_header_stdc=no
6335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6336 conftest.$ac_objext conftest.beam conftest.$ac_ext
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6342 $as_echo "$ac_cv_header_stdc" >&6; }
6343 if test $ac_cv_header_stdc = yes; then
6345 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6350 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6351 inttypes.h stdint.h unistd.h
6352 do :
6353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6354 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6356 eval as_val=\$$as_ac_Header
6357 if test "x$as_val" = x""yes; then :
6358 cat >>confdefs.h <<_ACEOF
6359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6360 _ACEOF
6364 done
6370 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6371 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6372 MINIX=yes
6373 else
6374 MINIX=
6378 if test "$MINIX" = yes; then
6380 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6383 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6386 $as_echo "#define _MINIX 1" >>confdefs.h
6390 case "$host_os" in
6391 hpux*)
6393 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6396 esac
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6400 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6401 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6402 $as_echo_n "(cached) " >&6
6403 else
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6407 # define __EXTENSIONS__ 1
6408 $ac_includes_default
6410 main ()
6414 return 0;
6416 _ACEOF
6417 if ac_fn_c_try_compile "$LINENO"; then :
6418 ac_cv_safe_to_define___extensions__=yes
6419 else
6420 ac_cv_safe_to_define___extensions__=no
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6425 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6426 test $ac_cv_safe_to_define___extensions__ = yes &&
6427 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6429 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6431 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6433 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6435 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6437 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6446 # Check whether --enable-largefile was given.
6447 if test "${enable_largefile+set}" = set; then :
6448 enableval=$enable_largefile;
6451 if test "$enable_largefile" != no; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6454 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6455 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6456 $as_echo_n "(cached) " >&6
6457 else
6458 ac_cv_sys_largefile_CC=no
6459 if test "$GCC" != yes; then
6460 ac_save_CC=$CC
6461 while :; do
6462 # IRIX 6.2 and later do not support large files by default,
6463 # so use the C compiler's -n32 option if that helps.
6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6466 #include <sys/types.h>
6467 /* Check that off_t can represent 2**63 - 1 correctly.
6468 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6469 since some C++ compilers masquerading as C compilers
6470 incorrectly reject 9223372036854775807. */
6471 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6472 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6473 && LARGE_OFF_T % 2147483647 == 1)
6474 ? 1 : -1];
6476 main ()
6480 return 0;
6482 _ACEOF
6483 if ac_fn_c_try_compile "$LINENO"; then :
6484 break
6486 rm -f core conftest.err conftest.$ac_objext
6487 CC="$CC -n32"
6488 if ac_fn_c_try_compile "$LINENO"; then :
6489 ac_cv_sys_largefile_CC=' -n32'; break
6491 rm -f core conftest.err conftest.$ac_objext
6492 break
6493 done
6494 CC=$ac_save_CC
6495 rm -f conftest.$ac_ext
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6499 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6500 if test "$ac_cv_sys_largefile_CC" != no; then
6501 CC=$CC$ac_cv_sys_largefile_CC
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6505 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6506 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6507 $as_echo_n "(cached) " >&6
6508 else
6509 while :; do
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6512 #include <sys/types.h>
6513 /* Check that off_t can represent 2**63 - 1 correctly.
6514 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6515 since some C++ compilers masquerading as C compilers
6516 incorrectly reject 9223372036854775807. */
6517 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6518 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6519 && LARGE_OFF_T % 2147483647 == 1)
6520 ? 1 : -1];
6522 main ()
6526 return 0;
6528 _ACEOF
6529 if ac_fn_c_try_compile "$LINENO"; then :
6530 ac_cv_sys_file_offset_bits=no; break
6532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6535 #define _FILE_OFFSET_BITS 64
6536 #include <sys/types.h>
6537 /* Check that off_t can represent 2**63 - 1 correctly.
6538 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6539 since some C++ compilers masquerading as C compilers
6540 incorrectly reject 9223372036854775807. */
6541 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6542 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6543 && LARGE_OFF_T % 2147483647 == 1)
6544 ? 1 : -1];
6546 main ()
6550 return 0;
6552 _ACEOF
6553 if ac_fn_c_try_compile "$LINENO"; then :
6554 ac_cv_sys_file_offset_bits=64; break
6556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557 ac_cv_sys_file_offset_bits=unknown
6558 break
6559 done
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6562 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6563 case $ac_cv_sys_file_offset_bits in #(
6564 no | unknown) ;;
6566 cat >>confdefs.h <<_ACEOF
6567 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6568 _ACEOF
6570 esac
6571 rm -rf conftest*
6572 if test $ac_cv_sys_file_offset_bits = unknown; then
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6574 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6575 if test "${ac_cv_sys_large_files+set}" = set; then :
6576 $as_echo_n "(cached) " >&6
6577 else
6578 while :; do
6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6581 #include <sys/types.h>
6582 /* Check that off_t can represent 2**63 - 1 correctly.
6583 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6584 since some C++ compilers masquerading as C compilers
6585 incorrectly reject 9223372036854775807. */
6586 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6587 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6588 && LARGE_OFF_T % 2147483647 == 1)
6589 ? 1 : -1];
6591 main ()
6595 return 0;
6597 _ACEOF
6598 if ac_fn_c_try_compile "$LINENO"; then :
6599 ac_cv_sys_large_files=no; break
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6604 #define _LARGE_FILES 1
6605 #include <sys/types.h>
6606 /* Check that off_t can represent 2**63 - 1 correctly.
6607 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6608 since some C++ compilers masquerading as C compilers
6609 incorrectly reject 9223372036854775807. */
6610 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6611 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6612 && LARGE_OFF_T % 2147483647 == 1)
6613 ? 1 : -1];
6615 main ()
6619 return 0;
6621 _ACEOF
6622 if ac_fn_c_try_compile "$LINENO"; then :
6623 ac_cv_sys_large_files=1; break
6625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6626 ac_cv_sys_large_files=unknown
6627 break
6628 done
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6631 $as_echo "$ac_cv_sys_large_files" >&6; }
6632 case $ac_cv_sys_large_files in #(
6633 no | unknown) ;;
6635 cat >>confdefs.h <<_ACEOF
6636 #define _LARGE_FILES $ac_cv_sys_large_files
6637 _ACEOF
6639 esac
6640 rm -rf conftest*
6646 case $ac_cv_prog_cc_stdc in #(
6647 no) :
6648 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6649 *) :
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6651 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6652 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6653 $as_echo_n "(cached) " >&6
6654 else
6655 ac_cv_prog_cc_c99=no
6656 ac_save_CC=$CC
6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658 /* end confdefs.h. */
6659 #include <stdarg.h>
6660 #include <stdbool.h>
6661 #include <stdlib.h>
6662 #include <wchar.h>
6663 #include <stdio.h>
6665 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6666 #define debug(...) fprintf (stderr, __VA_ARGS__)
6667 #define showlist(...) puts (#__VA_ARGS__)
6668 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6669 static void
6670 test_varargs_macros (void)
6672 int x = 1234;
6673 int y = 5678;
6674 debug ("Flag");
6675 debug ("X = %d\n", x);
6676 showlist (The first, second, and third items.);
6677 report (x>y, "x is %d but y is %d", x, y);
6680 // Check long long types.
6681 #define BIG64 18446744073709551615ull
6682 #define BIG32 4294967295ul
6683 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6684 #if !BIG_OK
6685 your preprocessor is broken;
6686 #endif
6687 #if BIG_OK
6688 #else
6689 your preprocessor is broken;
6690 #endif
6691 static long long int bignum = -9223372036854775807LL;
6692 static unsigned long long int ubignum = BIG64;
6694 struct incomplete_array
6696 int datasize;
6697 double data[];
6700 struct named_init {
6701 int number;
6702 const wchar_t *name;
6703 double average;
6706 typedef const char *ccp;
6708 static inline int
6709 test_restrict (ccp restrict text)
6711 // See if C++-style comments work.
6712 // Iterate through items via the restricted pointer.
6713 // Also check for declarations in for loops.
6714 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6715 continue;
6716 return 0;
6719 // Check varargs and va_copy.
6720 static void
6721 test_varargs (const char *format, ...)
6723 va_list args;
6724 va_start (args, format);
6725 va_list args_copy;
6726 va_copy (args_copy, args);
6728 const char *str;
6729 int number;
6730 float fnumber;
6732 while (*format)
6734 switch (*format++)
6736 case 's': // string
6737 str = va_arg (args_copy, const char *);
6738 break;
6739 case 'd': // int
6740 number = va_arg (args_copy, int);
6741 break;
6742 case 'f': // float
6743 fnumber = va_arg (args_copy, double);
6744 break;
6745 default:
6746 break;
6749 va_end (args_copy);
6750 va_end (args);
6754 main ()
6757 // Check bool.
6758 _Bool success = false;
6760 // Check restrict.
6761 if (test_restrict ("String literal") == 0)
6762 success = true;
6763 char *restrict newvar = "Another string";
6765 // Check varargs.
6766 test_varargs ("s, d' f .", "string", 65, 34.234);
6767 test_varargs_macros ();
6769 // Check flexible array members.
6770 struct incomplete_array *ia =
6771 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6772 ia->datasize = 10;
6773 for (int i = 0; i < ia->datasize; ++i)
6774 ia->data[i] = i * 1.234;
6776 // Check named initializers.
6777 struct named_init ni = {
6778 .number = 34,
6779 .name = L"Test wide string",
6780 .average = 543.34343,
6783 ni.number = 58;
6785 int dynamic_array[ni.number];
6786 dynamic_array[ni.number - 1] = 543;
6788 // work around unused variable warnings
6789 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6790 || dynamic_array[ni.number - 1] != 543);
6793 return 0;
6795 _ACEOF
6796 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6798 CC="$ac_save_CC $ac_arg"
6799 if ac_fn_c_try_compile "$LINENO"; then :
6800 ac_cv_prog_cc_c99=$ac_arg
6802 rm -f core conftest.err conftest.$ac_objext
6803 test "x$ac_cv_prog_cc_c99" != "xno" && break
6804 done
6805 rm -f conftest.$ac_ext
6806 CC=$ac_save_CC
6809 # AC_CACHE_VAL
6810 case "x$ac_cv_prog_cc_c99" in
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6813 $as_echo "none needed" >&6; } ;;
6814 xno)
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6816 $as_echo "unsupported" >&6; } ;;
6818 CC="$CC $ac_cv_prog_cc_c99"
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6820 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6821 esac
6822 if test "x$ac_cv_prog_cc_c99" != xno; then :
6823 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6824 else
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6826 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6827 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6828 $as_echo_n "(cached) " >&6
6829 else
6830 ac_cv_prog_cc_c89=no
6831 ac_save_CC=$CC
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6834 #include <stdarg.h>
6835 #include <stdio.h>
6836 #include <sys/types.h>
6837 #include <sys/stat.h>
6838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6839 struct buf { int x; };
6840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6841 static char *e (p, i)
6842 char **p;
6843 int i;
6845 return p[i];
6847 static char *f (char * (*g) (char **, int), char **p, ...)
6849 char *s;
6850 va_list v;
6851 va_start (v,p);
6852 s = g (p, va_arg (v,int));
6853 va_end (v);
6854 return s;
6857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6858 function prototypes and stuff, but not '\xHH' hex character constants.
6859 These don't provoke an error unfortunately, instead are silently treated
6860 as 'x'. The following induces an error, until -std is added to get
6861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6862 array size at least. It's necessary to write '\x00'==0 to get something
6863 that's true only with -std. */
6864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6867 inside strings and character constants. */
6868 #define FOO(x) 'x'
6869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6871 int test (int i, double x);
6872 struct s1 {int (*f) (int a);};
6873 struct s2 {int (*f) (double a);};
6874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6875 int argc;
6876 char **argv;
6878 main ()
6880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6882 return 0;
6884 _ACEOF
6885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6888 CC="$ac_save_CC $ac_arg"
6889 if ac_fn_c_try_compile "$LINENO"; then :
6890 ac_cv_prog_cc_c89=$ac_arg
6892 rm -f core conftest.err conftest.$ac_objext
6893 test "x$ac_cv_prog_cc_c89" != "xno" && break
6894 done
6895 rm -f conftest.$ac_ext
6896 CC=$ac_save_CC
6899 # AC_CACHE_VAL
6900 case "x$ac_cv_prog_cc_c89" in
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6903 $as_echo "none needed" >&6; } ;;
6904 xno)
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6906 $as_echo "unsupported" >&6; } ;;
6908 CC="$CC $ac_cv_prog_cc_c89"
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6911 esac
6912 if test "x$ac_cv_prog_cc_c89" != xno; then :
6913 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6914 else
6915 ac_cv_prog_cc_stdc=no
6920 esac
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6922 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6923 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6924 $as_echo_n "(cached) " >&6
6927 case $ac_cv_prog_cc_stdc in #(
6928 no) :
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6930 $as_echo "unsupported" >&6; } ;; #(
6931 '') :
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6933 $as_echo "none needed" >&6; } ;; #(
6934 *) :
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6936 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6937 esac
6941 # Code from module alloca-opt:
6942 # Code from module allocator:
6943 # Code from module careadlinkat:
6944 # Code from module crypto/md5:
6945 # Code from module crypto/sha1:
6946 # Code from module crypto/sha256:
6947 # Code from module crypto/sha512:
6948 # Code from module dosname:
6949 # Code from module dtoastr:
6950 # Code from module dup2:
6951 # Code from module extensions:
6953 # Code from module filemode:
6954 # Code from module getloadavg:
6955 # Code from module getopt-gnu:
6956 # Code from module getopt-posix:
6957 # Code from module gettext-h:
6958 # Code from module ignore-value:
6959 # Code from module include_next:
6960 # Code from module intprops:
6961 # Code from module inttypes-incomplete:
6962 # Code from module largefile:
6964 # Code from module lstat:
6965 # Code from module mktime:
6966 # Code from module multiarch:
6967 # Code from module nocrash:
6968 # Code from module pathmax:
6969 # Code from module pthread_sigmask:
6970 # Code from module readlink:
6971 # Code from module signal-h:
6972 # Code from module sigprocmask:
6973 # Code from module snippet/_Noreturn:
6974 # Code from module snippet/arg-nonnull:
6975 # Code from module snippet/c++defs:
6976 # Code from module snippet/warn-on-use:
6977 # Code from module socklen:
6978 # Code from module ssize_t:
6979 # Code from module stat:
6980 # Code from module stdarg:
6984 # Code from module stdbool:
6985 # Code from module stddef:
6986 # Code from module stdint:
6987 # Code from module stdio:
6988 # Code from module stdlib:
6989 # Code from module strftime:
6990 # Code from module strtoimax:
6991 # Code from module strtoll:
6992 # Code from module strtoull:
6993 # Code from module strtoumax:
6994 # Code from module symlink:
6995 # Code from module sys_stat:
6996 # Code from module time:
6997 # Code from module time_r:
6998 # Code from module u64:
6999 # Code from module unistd:
7000 # Code from module verify:
7003 # On Suns, sometimes $CPP names a directory.
7004 if test -n "$CPP" && test -d "$CPP"; then
7005 CPP=
7008 ## If not using gcc, and on Solaris, and no CPP specified, see if
7009 ## using a Sun compiler, which needs -Xs to prevent whitespace.
7010 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
7011 test x"$CPP" = x; then
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
7013 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
7014 if test "${emacs_cv_sunpro_c+set}" = set; then :
7015 $as_echo_n "(cached) " >&6
7016 else
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7021 main ()
7023 #ifndef __SUNPRO_C
7024 fail;
7025 #endif
7028 return 0;
7030 _ACEOF
7031 if ac_fn_c_try_link "$LINENO"; then :
7032 emacs_cv_sunpro_c=yes
7033 else
7034 emacs_cv_sunpro_c=no
7036 rm -f core conftest.err conftest.$ac_objext \
7037 conftest$ac_exeext conftest.$ac_ext
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7041 $as_echo "$emacs_cv_sunpro_c" >&6; }
7043 if test x"$emacs_cv_sunpro_c" = xyes; then
7044 NON_GNU_CPP="$CC -E -Xs"
7048 #### Some systems specify a CPP to use unless we are using GCC.
7049 #### Now that we know whether we are using GCC, we can decide whether
7050 #### to use that one.
7051 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
7052 then
7053 CPP="$NON_GNU_CPP"
7056 #### Some systems specify a CC to use unless we are using GCC.
7057 #### Now that we know whether we are using GCC, we can decide whether
7058 #### to use that one.
7059 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
7060 test x$cc_specified != xyes
7061 then
7062 CC="$NON_GNU_CC"
7065 if test x$GCC = xyes; then
7066 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
7067 else
7068 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
7071 # Check whether --enable-gcc-warnings was given.
7072 if test "${enable_gcc_warnings+set}" = set; then :
7073 enableval=$enable_gcc_warnings; case $enableval in
7074 yes|no) ;;
7075 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7076 esac
7077 gl_gcc_warnings=$enableval
7078 else
7079 gl_gcc_warnings=no
7084 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7085 # ------------------------------------------------
7086 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7087 # Otherwise, run RUN-IF-NOT-FOUND.
7090 # When compiling with GCC, prefer -isystem to -I when including system
7091 # include files, to avoid generating useless diagnostics for the files.
7092 if test "$gl_gcc_warnings" != yes; then
7093 isystem='-I'
7094 else
7095 isystem='-isystem '
7097 # This, $nw, is the list of warnings we disable.
7100 case $with_x_toolkit in
7101 lucid | athena | motif)
7102 # Old toolkits mishandle 'const'.
7103 nw="$nw -Wwrite-strings"
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7107 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7108 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7109 $as_echo_n "(cached) " >&6
7110 else
7112 gl_save_compiler_FLAGS="$CFLAGS"
7113 CFLAGS="$CFLAGS -Werror"
7114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h. */
7118 main ()
7122 return 0;
7124 _ACEOF
7125 if ac_fn_c_try_compile "$LINENO"; then :
7126 gl_cv_warn_c__Werror=yes
7127 else
7128 gl_cv_warn_c__Werror=no
7130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7131 CFLAGS="$gl_save_compiler_FLAGS"
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7135 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7136 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7137 as_fn_append WERROR_CFLAGS " -Werror"
7141 esac
7144 nw="$nw -Waggregate-return" # anachronistic
7145 nw="$nw -Wlong-long" # C90 is anachronistic (lib/gethrxtime.h)
7146 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7147 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7148 nw="$nw -Wtraditional" # Warns on #elif which we use often
7149 nw="$nw -Wcast-qual" # Too many warnings for now
7150 nw="$nw -Wconversion" # Too many warnings for now
7151 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7152 nw="$nw -Wsign-conversion" # Too many warnings for now
7153 nw="$nw -Woverlength-strings" # Not a problem these days
7154 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7155 nw="$nw -Wpadded" # Our structs are not padded
7156 nw="$nw -Wredundant-decls" # We regularly (re)declare getenv etc.
7157 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7158 nw="$nw -Wformat-nonliteral" # Emacs does this a lot
7159 nw="$nw -Wvla" # warnings in gettext.h
7160 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7161 nw="$nw -Wswitch-enum" # Too many warnings for now
7162 nw="$nw -Wswitch-default" # Too many warnings for now
7163 nw="$nw -Wfloat-equal" # e.g., ftoastr.c
7164 nw="$nw -Winline" # e.g., dispnew.c's inlining of row_equal_p
7166 # Emacs doesn't care about shadowing; see
7167 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7168 nw="$nw -Wshadow"
7170 # The following lines should be removable at some point.
7171 nw="$nw -Wstack-protector"
7172 nw="$nw -Wstrict-overflow"
7173 nw="$nw -Wsuggest-attribute=const"
7174 nw="$nw -Wsuggest-attribute=pure"
7178 if test -n "$GCC"; then
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7181 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7182 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7186 gl_save_CFLAGS="$CFLAGS"
7187 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h. */
7192 main ()
7196 return 0;
7198 _ACEOF
7199 if ac_fn_c_try_compile "$LINENO"; then :
7200 gl_cv_cc_nomfi_supported=yes
7201 else
7202 gl_cv_cc_nomfi_supported=no
7204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205 CFLAGS="$gl_save_CFLAGS"
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7209 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7211 if test "$gl_cv_cc_nomfi_supported" = yes; then
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7213 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7214 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7215 $as_echo_n "(cached) " >&6
7216 else
7218 gl_save_CFLAGS="$CFLAGS"
7219 CFLAGS="$CFLAGS -W -Werror"
7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7222 void f (void)
7224 typedef struct { int a; int b; } s_t;
7225 s_t s1 = { 0, };
7229 main ()
7233 return 0;
7235 _ACEOF
7236 if ac_fn_c_try_compile "$LINENO"; then :
7237 gl_cv_cc_nomfi_needed=no
7238 else
7239 gl_cv_cc_nomfi_needed=yes
7241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7242 CFLAGS="$gl_save_CFLAGS"
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7247 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7251 gl_manywarn_set=
7252 for gl_manywarn_item in \
7253 -Wall \
7254 -W \
7255 -Wformat-y2k \
7256 -Wformat-nonliteral \
7257 -Wformat-security \
7258 -Winit-self \
7259 -Wmissing-include-dirs \
7260 -Wswitch-default \
7261 -Wswitch-enum \
7262 -Wunused \
7263 -Wunknown-pragmas \
7264 -Wstrict-aliasing \
7265 -Wstrict-overflow \
7266 -Wsystem-headers \
7267 -Wfloat-equal \
7268 -Wtraditional \
7269 -Wtraditional-conversion \
7270 -Wdeclaration-after-statement \
7271 -Wundef \
7272 -Wshadow \
7273 -Wunsafe-loop-optimizations \
7274 -Wpointer-arith \
7275 -Wbad-function-cast \
7276 -Wc++-compat \
7277 -Wcast-qual \
7278 -Wcast-align \
7279 -Wwrite-strings \
7280 -Wconversion \
7281 -Wsign-conversion \
7282 -Wlogical-op \
7283 -Waggregate-return \
7284 -Wstrict-prototypes \
7285 -Wold-style-definition \
7286 -Wmissing-prototypes \
7287 -Wmissing-declarations \
7288 -Wmissing-noreturn \
7289 -Wmissing-format-attribute \
7290 -Wpacked \
7291 -Wpadded \
7292 -Wredundant-decls \
7293 -Wnested-externs \
7294 -Wunreachable-code \
7295 -Winline \
7296 -Winvalid-pch \
7297 -Wlong-long \
7298 -Wvla \
7299 -Wvolatile-register-var \
7300 -Wdisabled-optimization \
7301 -Wstack-protector \
7302 -Woverlength-strings \
7303 -Wbuiltin-macro-redefined \
7304 -Wmudflap \
7305 -Wpacked-bitfield-compat \
7306 -Wsync-nand \
7307 ; do
7308 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7309 done
7310 # The following are not documented in the manual but are included in
7311 # output from gcc --help=warnings.
7312 for gl_manywarn_item in \
7313 -Wattributes \
7314 -Wcoverage-mismatch \
7315 -Wmultichar \
7316 -Wunused-macros \
7317 ; do
7318 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7319 done
7320 # More warnings from gcc 4.6.2 --help=warnings.
7321 for gl_manywarn_item in \
7322 -Wabi \
7323 -Wcpp \
7324 -Wdeprecated \
7325 -Wdeprecated-declarations \
7326 -Wdiv-by-zero \
7327 -Wdouble-promotion \
7328 -Wendif-labels \
7329 -Wextra \
7330 -Wformat-contains-nul \
7331 -Wformat-extra-args \
7332 -Wformat-zero-length \
7333 -Wformat=2 \
7334 -Wmultichar \
7335 -Wnormalized=nfc \
7336 -Woverflow \
7337 -Wpointer-to-int-cast \
7338 -Wpragmas \
7339 -Wsuggest-attribute=const \
7340 -Wsuggest-attribute=noreturn \
7341 -Wsuggest-attribute=pure \
7342 -Wtrampolines \
7343 ; do
7344 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7345 done
7347 # Disable the missing-field-initializers warning if needed
7348 if test "$gl_cv_cc_nomfi_needed" = yes; then
7349 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7352 ws=$gl_manywarn_set
7355 gl_warn_set=
7356 set x $ws; shift
7357 for gl_warn_item
7359 case " $nw " in
7360 *" $gl_warn_item "*)
7363 gl_warn_set="$gl_warn_set $gl_warn_item"
7365 esac
7366 done
7367 ws=$gl_warn_set
7369 for w in $ws; do
7370 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7372 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7373 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7374 $as_echo_n "(cached) " >&6
7375 else
7377 gl_save_compiler_FLAGS="$CFLAGS"
7378 CFLAGS="$CFLAGS $w"
7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380 /* end confdefs.h. */
7383 main ()
7387 return 0;
7389 _ACEOF
7390 if ac_fn_c_try_compile "$LINENO"; then :
7391 eval "$as_gl_Warn=yes"
7392 else
7393 eval "$as_gl_Warn=no"
7395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7396 CFLAGS="$gl_save_compiler_FLAGS"
7399 eval ac_res=\$$as_gl_Warn
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7401 $as_echo "$ac_res" >&6; }
7402 eval as_val=\$$as_gl_Warn
7403 if test "x$as_val" = x""yes; then :
7404 as_fn_append WARN_CFLAGS " $w"
7407 done
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7409 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7410 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7411 $as_echo_n "(cached) " >&6
7412 else
7414 gl_save_compiler_FLAGS="$CFLAGS"
7415 CFLAGS="$CFLAGS -Wno-missing-field-initializers"
7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h. */
7420 main ()
7424 return 0;
7426 _ACEOF
7427 if ac_fn_c_try_compile "$LINENO"; then :
7428 gl_cv_warn_c__Wno_missing_field_initializers=yes
7429 else
7430 gl_cv_warn_c__Wno_missing_field_initializers=no
7432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433 CFLAGS="$gl_save_compiler_FLAGS"
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7437 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7438 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7439 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7441 # We need this one
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7443 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7444 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7448 gl_save_compiler_FLAGS="$CFLAGS"
7449 CFLAGS="$CFLAGS -Wno-sign-compare"
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7454 main ()
7458 return 0;
7460 _ACEOF
7461 if ac_fn_c_try_compile "$LINENO"; then :
7462 gl_cv_warn_c__Wno_sign_compare=yes
7463 else
7464 gl_cv_warn_c__Wno_sign_compare=no
7466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467 CFLAGS="$gl_save_compiler_FLAGS"
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7471 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7472 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7473 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7475 # Too many warnings for now
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7477 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7478 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7479 $as_echo_n "(cached) " >&6
7480 else
7482 gl_save_compiler_FLAGS="$CFLAGS"
7483 CFLAGS="$CFLAGS -Wno-type-limits"
7484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7485 /* end confdefs.h. */
7488 main ()
7492 return 0;
7494 _ACEOF
7495 if ac_fn_c_try_compile "$LINENO"; then :
7496 gl_cv_warn_c__Wno_type_limits=yes
7497 else
7498 gl_cv_warn_c__Wno_type_limits=no
7500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7501 CFLAGS="$gl_save_compiler_FLAGS"
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7505 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7506 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7507 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7509 # Too many warnings for now
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7511 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7512 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7513 $as_echo_n "(cached) " >&6
7514 else
7516 gl_save_compiler_FLAGS="$CFLAGS"
7517 CFLAGS="$CFLAGS -Wno-switch"
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7522 main ()
7526 return 0;
7528 _ACEOF
7529 if ac_fn_c_try_compile "$LINENO"; then :
7530 gl_cv_warn_c__Wno_switch=yes
7531 else
7532 gl_cv_warn_c__Wno_switch=no
7534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7535 CFLAGS="$gl_save_compiler_FLAGS"
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7539 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7540 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7541 as_fn_append WARN_CFLAGS " -Wno-switch"
7543 # Too many warnings for now
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7545 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7546 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7547 $as_echo_n "(cached) " >&6
7548 else
7550 gl_save_compiler_FLAGS="$CFLAGS"
7551 CFLAGS="$CFLAGS -Wno-unused-parameter"
7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553 /* end confdefs.h. */
7556 main ()
7560 return 0;
7562 _ACEOF
7563 if ac_fn_c_try_compile "$LINENO"; then :
7564 gl_cv_warn_c__Wno_unused_parameter=yes
7565 else
7566 gl_cv_warn_c__Wno_unused_parameter=no
7568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7569 CFLAGS="$gl_save_compiler_FLAGS"
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7573 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7574 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7575 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7577 # Too many warnings for now
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7579 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7580 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7581 $as_echo_n "(cached) " >&6
7582 else
7584 gl_save_compiler_FLAGS="$CFLAGS"
7585 CFLAGS="$CFLAGS -Wno-format-nonliteral"
7586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7587 /* end confdefs.h. */
7590 main ()
7594 return 0;
7596 _ACEOF
7597 if ac_fn_c_try_compile "$LINENO"; then :
7598 gl_cv_warn_c__Wno_format_nonliteral=yes
7599 else
7600 gl_cv_warn_c__Wno_format_nonliteral=no
7602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7603 CFLAGS="$gl_save_compiler_FLAGS"
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7607 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7608 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7609 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7613 # In spite of excluding -Wlogical-op above, it is enabled, as of
7614 # gcc 4.5.0 20090517.
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7616 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7617 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7621 gl_save_compiler_FLAGS="$CFLAGS"
7622 CFLAGS="$CFLAGS -Wno-logical-op"
7623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7624 /* end confdefs.h. */
7627 main ()
7631 return 0;
7633 _ACEOF
7634 if ac_fn_c_try_compile "$LINENO"; then :
7635 gl_cv_warn_c__Wno_logical_op=yes
7636 else
7637 gl_cv_warn_c__Wno_logical_op=no
7639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7640 CFLAGS="$gl_save_compiler_FLAGS"
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7644 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7645 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7646 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7651 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7652 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7656 gl_save_compiler_FLAGS="$CFLAGS"
7657 CFLAGS="$CFLAGS -fdiagnostics-show-option"
7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h. */
7662 main ()
7666 return 0;
7668 _ACEOF
7669 if ac_fn_c_try_compile "$LINENO"; then :
7670 gl_cv_warn_c__fdiagnostics_show_option=yes
7671 else
7672 gl_cv_warn_c__fdiagnostics_show_option=no
7674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675 CFLAGS="$gl_save_compiler_FLAGS"
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7679 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7680 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7681 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7685 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7686 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7687 $as_echo_n "(cached) " >&6
7688 else
7690 gl_save_compiler_FLAGS="$CFLAGS"
7691 CFLAGS="$CFLAGS -funit-at-a-time"
7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7696 main ()
7700 return 0;
7702 _ACEOF
7703 if ac_fn_c_try_compile "$LINENO"; then :
7704 gl_cv_warn_c__funit_at_a_time=yes
7705 else
7706 gl_cv_warn_c__funit_at_a_time=no
7708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7709 CFLAGS="$gl_save_compiler_FLAGS"
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7713 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7714 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7715 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7722 $as_echo "#define lint 1" >>confdefs.h
7725 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7728 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7731 # We use a slightly smaller set of warning options for lib/.
7732 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7734 nw="$nw -Wunused-macros"
7737 gl_warn_set=
7738 set x $WARN_CFLAGS; shift
7739 for gl_warn_item
7741 case " $nw " in
7742 *" $gl_warn_item "*)
7745 gl_warn_set="$gl_warn_set $gl_warn_item"
7747 esac
7748 done
7749 GNULIB_WARN_CFLAGS=$gl_warn_set
7756 #### Some other nice autoconf tests.
7758 ac_ext=c
7759 ac_cpp='$CPP $CPPFLAGS'
7760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7764 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7765 # On Suns, sometimes $CPP names a directory.
7766 if test -n "$CPP" && test -d "$CPP"; then
7767 CPP=
7769 if test -z "$CPP"; then
7770 if test "${ac_cv_prog_CPP+set}" = set; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 # Double quotes because CPP needs to be expanded
7774 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7776 ac_preproc_ok=false
7777 for ac_c_preproc_warn_flag in '' yes
7779 # Use a header file that comes with gcc, so configuring glibc
7780 # with a fresh cross-compiler works.
7781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7782 # <limits.h> exists even on freestanding compilers.
7783 # On the NeXT, cc -E runs the code through the compiler's parser,
7784 # not just through cpp. "Syntax error" is here to catch this case.
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7787 #ifdef __STDC__
7788 # include <limits.h>
7789 #else
7790 # include <assert.h>
7791 #endif
7792 Syntax error
7793 _ACEOF
7794 if ac_fn_c_try_cpp "$LINENO"; then :
7796 else
7797 # Broken: fails on valid input.
7798 continue
7800 rm -f conftest.err conftest.$ac_ext
7802 # OK, works on sane cases. Now check whether nonexistent headers
7803 # can be detected and how.
7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805 /* end confdefs.h. */
7806 #include <ac_nonexistent.h>
7807 _ACEOF
7808 if ac_fn_c_try_cpp "$LINENO"; then :
7809 # Broken: success on invalid input.
7810 continue
7811 else
7812 # Passes both tests.
7813 ac_preproc_ok=:
7814 break
7816 rm -f conftest.err conftest.$ac_ext
7818 done
7819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7820 rm -f conftest.err conftest.$ac_ext
7821 if $ac_preproc_ok; then :
7822 break
7825 done
7826 ac_cv_prog_CPP=$CPP
7829 CPP=$ac_cv_prog_CPP
7830 else
7831 ac_cv_prog_CPP=$CPP
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7834 $as_echo "$CPP" >&6; }
7835 ac_preproc_ok=false
7836 for ac_c_preproc_warn_flag in '' yes
7838 # Use a header file that comes with gcc, so configuring glibc
7839 # with a fresh cross-compiler works.
7840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7841 # <limits.h> exists even on freestanding compilers.
7842 # On the NeXT, cc -E runs the code through the compiler's parser,
7843 # not just through cpp. "Syntax error" is here to catch this case.
7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7846 #ifdef __STDC__
7847 # include <limits.h>
7848 #else
7849 # include <assert.h>
7850 #endif
7851 Syntax error
7852 _ACEOF
7853 if ac_fn_c_try_cpp "$LINENO"; then :
7855 else
7856 # Broken: fails on valid input.
7857 continue
7859 rm -f conftest.err conftest.$ac_ext
7861 # OK, works on sane cases. Now check whether nonexistent headers
7862 # can be detected and how.
7863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864 /* end confdefs.h. */
7865 #include <ac_nonexistent.h>
7866 _ACEOF
7867 if ac_fn_c_try_cpp "$LINENO"; then :
7868 # Broken: success on invalid input.
7869 continue
7870 else
7871 # Passes both tests.
7872 ac_preproc_ok=:
7873 break
7875 rm -f conftest.err conftest.$ac_ext
7877 done
7878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7879 rm -f conftest.err conftest.$ac_ext
7880 if $ac_preproc_ok; then :
7882 else
7883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7885 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7886 See \`config.log' for more details." "$LINENO" 5; }
7889 ac_ext=c
7890 ac_cpp='$CPP $CPPFLAGS'
7891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7896 if test "x$RANLIB" = x; then
7897 if test -n "$ac_tool_prefix"; then
7898 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7899 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901 $as_echo_n "checking for $ac_word... " >&6; }
7902 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7903 $as_echo_n "(cached) " >&6
7904 else
7905 if test -n "$RANLIB"; then
7906 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7907 else
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $PATH
7911 IFS=$as_save_IFS
7912 test -z "$as_dir" && as_dir=.
7913 for ac_exec_ext in '' $ac_executable_extensions; do
7914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7915 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7917 break 2
7919 done
7920 done
7921 IFS=$as_save_IFS
7925 RANLIB=$ac_cv_prog_RANLIB
7926 if test -n "$RANLIB"; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7928 $as_echo "$RANLIB" >&6; }
7929 else
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931 $as_echo "no" >&6; }
7936 if test -z "$ac_cv_prog_RANLIB"; then
7937 ac_ct_RANLIB=$RANLIB
7938 # Extract the first word of "ranlib", so it can be a program name with args.
7939 set dummy ranlib; ac_word=$2
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941 $as_echo_n "checking for $ac_word... " >&6; }
7942 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 if test -n "$ac_ct_RANLIB"; then
7946 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7947 else
7948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 for as_dir in $PATH
7951 IFS=$as_save_IFS
7952 test -z "$as_dir" && as_dir=.
7953 for ac_exec_ext in '' $ac_executable_extensions; do
7954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7955 ac_cv_prog_ac_ct_RANLIB="ranlib"
7956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957 break 2
7959 done
7960 done
7961 IFS=$as_save_IFS
7965 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7966 if test -n "$ac_ct_RANLIB"; then
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7968 $as_echo "$ac_ct_RANLIB" >&6; }
7969 else
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7974 if test "x$ac_ct_RANLIB" = x; then
7975 RANLIB=":"
7976 else
7977 case $cross_compiling:$ac_tool_warned in
7978 yes:)
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7981 ac_tool_warned=yes ;;
7982 esac
7983 RANLIB=$ac_ct_RANLIB
7985 else
7986 RANLIB="$ac_cv_prog_RANLIB"
7991 ## Although we're running on an amd64 kernel, we're actually compiling for
7992 ## the x86 architecture. The user should probably have provided an
7993 ## explicit --build to `configure', but if everything else than the kernel
7994 ## is running in i386 mode, we can help them out.
7995 if test "$machine" = "amdx86-64"; then
7996 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7997 if test "x$ac_cv_have_decl_i386" = x""yes; then :
8001 if test "$ac_cv_have_decl_i386" = "yes"; then
8002 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
8003 machine=intel386
8004 machfile="m/${machine}.h"
8008 # Extract the first word of "install-info", so it can be a program name with args.
8009 set dummy install-info; ac_word=$2
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 $as_echo_n "checking for $ac_word... " >&6; }
8012 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8013 $as_echo_n "(cached) " >&6
8014 else
8015 case $INSTALL_INFO in
8016 [\\/]* | ?:[\\/]*)
8017 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 for as_dir in $PATH
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8027 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 break 2
8031 done
8032 done
8033 IFS=$as_save_IFS
8036 esac
8038 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8039 if test -n "$INSTALL_INFO"; then
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8041 $as_echo "$INSTALL_INFO" >&6; }
8042 else
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 $as_echo "no" >&6; }
8048 # Extract the first word of "install-info", so it can be a program name with args.
8049 set dummy install-info; ac_word=$2
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8051 $as_echo_n "checking for $ac_word... " >&6; }
8052 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8053 $as_echo_n "(cached) " >&6
8054 else
8055 case $INSTALL_INFO in
8056 [\\/]* | ?:[\\/]*)
8057 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061 for as_dir in /usr/sbin
8063 IFS=$as_save_IFS
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8067 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 break 2
8071 done
8072 done
8073 IFS=$as_save_IFS
8076 esac
8078 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8079 if test -n "$INSTALL_INFO"; then
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8081 $as_echo "$INSTALL_INFO" >&6; }
8082 else
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084 $as_echo "no" >&6; }
8088 # Extract the first word of "install-info", so it can be a program name with args.
8089 set dummy install-info; ac_word=$2
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8091 $as_echo_n "checking for $ac_word... " >&6; }
8092 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 case $INSTALL_INFO in
8096 [\\/]* | ?:[\\/]*)
8097 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 for as_dir in /sbin
8103 IFS=$as_save_IFS
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8107 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8109 break 2
8111 done
8112 done
8113 IFS=$as_save_IFS
8115 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
8117 esac
8119 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8120 if test -n "$INSTALL_INFO"; then
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8122 $as_echo "$INSTALL_INFO" >&6; }
8123 else
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125 $as_echo "no" >&6; }
8129 # Extract the first word of "gzip", so it can be a program name with args.
8130 set dummy gzip; ac_word=$2
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8132 $as_echo_n "checking for $ac_word... " >&6; }
8133 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
8135 else
8136 case $GZIP_PROG in
8137 [\\/]* | ?:[\\/]*)
8138 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142 for as_dir in $PATH
8144 IFS=$as_save_IFS
8145 test -z "$as_dir" && as_dir=.
8146 for ac_exec_ext in '' $ac_executable_extensions; do
8147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8148 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8150 break 2
8152 done
8153 done
8154 IFS=$as_save_IFS
8157 esac
8159 GZIP_PROG=$ac_cv_path_GZIP_PROG
8160 if test -n "$GZIP_PROG"; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8162 $as_echo "$GZIP_PROG" >&6; }
8163 else
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165 $as_echo "no" >&6; }
8171 ## Need makeinfo >= 4.7 (?) to build the manuals.
8172 # Extract the first word of "makeinfo", so it can be a program name with args.
8173 set dummy makeinfo; ac_word=$2
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 case $MAKEINFO in
8180 [\\/]* | ?:[\\/]*)
8181 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185 for as_dir in $PATH
8187 IFS=$as_save_IFS
8188 test -z "$as_dir" && as_dir=.
8189 for ac_exec_ext in '' $ac_executable_extensions; do
8190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8191 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8193 break 2
8195 done
8196 done
8197 IFS=$as_save_IFS
8199 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8201 esac
8203 MAKEINFO=$ac_cv_path_MAKEINFO
8204 if test -n "$MAKEINFO"; then
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8206 $as_echo "$MAKEINFO" >&6; }
8207 else
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209 $as_echo "no" >&6; }
8213 if test "$MAKEINFO" != "no" && \
8214 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'`" = x; then
8215 MAKEINFO=no
8218 ## Makeinfo is unusual. For a released Emacs, the manuals are
8219 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8220 ## therefore in the category of "special tools" not normally required, which
8221 ## configure does not have to check for (eg autoconf itself).
8222 ## In a Bazaar checkout on the other hand, the manuals are not included.
8223 ## So makeinfo is a requirement to build from Bazaar, and configure
8224 ## should test for it as it does for any other build requirement.
8225 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8226 ## with pre-built manuals, from a Bazaar checkout.
8227 HAVE_MAKEINFO=yes
8229 if test "$MAKEINFO" = "no"; then
8230 MAKEINFO=makeinfo
8231 if test "x${with_makeinfo}" = "xno"; then
8232 HAVE_MAKEINFO=no
8233 elif test ! -e $srcdir/info/emacs; then
8234 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8235 source tree does not seem to have pre-built manuals in the \`info' directory.
8236 Either install a suitable version of makeinfo, or re-run configure
8237 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8243 if test x$GCC = xyes; then
8244 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8245 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8246 else
8247 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8248 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8252 late_LDFLAGS=$LDFLAGS
8253 if test x$GCC = xyes; then
8254 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8255 else
8256 LDFLAGS="$LDFLAGS -znocombreloc"
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8260 $as_echo_n "checking for -znocombreloc... " >&6; }
8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8265 main ()
8269 return 0;
8271 _ACEOF
8272 if ac_fn_c_try_link "$LINENO"; then :
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8274 $as_echo "yes" >&6; }
8275 else
8276 LDFLAGS=$late_LDFLAGS
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 $as_echo "no" >&6; }
8280 rm -f core conftest.err conftest.$ac_objext \
8281 conftest$ac_exeext conftest.$ac_ext
8284 # The value of CPP is a quoted variable reference, so we need to do this
8285 # to get its actual value...
8286 CPP=`eval "echo $CPP"`
8289 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8290 case "$opsys" in
8291 your-opsys-here) CANNOT_DUMP=yes ;;
8292 esac
8294 test "$CANNOT_DUMP" = "yes" && \
8296 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8302 UNEXEC_OBJ=unexelf.o
8303 case "$opsys" in
8304 # MSDOS uses unexcoff.o
8305 # MSWindows uses unexw32.o
8306 aix4-2)
8307 UNEXEC_OBJ=unexaix.o
8309 cygwin)
8310 UNEXEC_OBJ=unexcw.o
8312 darwin)
8313 UNEXEC_OBJ=unexmacosx.o
8315 hpux10-20 | hpux11)
8316 UNEXEC_OBJ=unexhp9k800.o
8318 sol2-10)
8319 # Use the Solaris dldump() function, called from unexsol.c, to dump
8320 # emacs, instead of the generic ELF dump code found in unexelf.c.
8321 # The resulting binary has a complete symbol table, and is better
8322 # for debugging and other observability tools (debuggers, pstack, etc).
8324 # If you encounter a problem using dldump(), please consider sending
8325 # a message to the OpenSolaris tools-linking mailing list:
8326 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8328 # It is likely that dldump() works with older Solaris too, but this has
8329 # not been tested, so for now this change is for Solaris 10 or newer.
8330 UNEXEC_OBJ=unexsol.o
8332 esac
8334 LD_SWITCH_SYSTEM=
8335 case "$opsys" in
8336 freebsd)
8337 ## Let `ld' find image libs and similar things in /usr/local/lib.
8338 ## The system compiler, GCC, has apparently been modified to not
8339 ## look there, contrary to what a stock GCC would do.
8340 LD_SWITCH_SYSTEM=-L/usr/local/lib
8343 gnu-linux)
8344 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8345 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8348 netbsd)
8349 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8352 openbsd)
8353 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8354 ## otherwise Emacs dumps core on elf systems.
8355 LD_SWITCH_SYSTEM="-Z"
8357 esac
8360 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8362 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
8363 ## which has not been defined yet. When this was handled with cpp,
8364 ## it was expanded to null when configure sourced the s/*.h file.
8365 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8366 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8367 ## (or somesuch), but because it is supposed to go at the _front_
8368 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8369 ## Compare with the gnu-linux case below, which added to the end
8370 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8371 ## LD_SWITCH_SYSTEM_TEMACS.
8372 case "$opsys" in
8373 netbsd|openbsd)
8374 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
8375 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
8376 esac
8379 C_SWITCH_MACHINE=
8380 if test "$machine" = "alpha"; then
8381 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8382 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8386 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8387 ## With ELF, make sure that all common symbols get allocated to in the
8388 ## data section. Otherwise, the dump of temacs may miss variables in
8389 ## the shared library that have been initialized. For example, with
8390 ## GNU libc, __malloc_initialized would normally be resolved to the
8391 ## shared library's .bss section, which is fatal.
8392 if test "x$GCC" = "xyes"; then
8393 C_SWITCH_MACHINE="-fno-common"
8394 else
8395 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8397 else
8398 UNEXEC_OBJ=unexalpha.o
8405 C_SWITCH_SYSTEM=
8406 ## Some programs in src produce warnings saying certain subprograms
8407 ## are too complex and need a MAXMEM value greater than 2000 for
8408 ## additional optimization. --nils@exp-math.uni-essen.de
8409 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8410 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8411 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8412 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8416 LIBS_SYSTEM=
8417 case "$opsys" in
8418 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8419 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8421 freebsd) LIBS_SYSTEM="-lutil" ;;
8423 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8425 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8427 ## Motif needs -lgen.
8428 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8429 esac
8433 ### Make sure subsequent tests use flags consistent with the build flags.
8435 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8436 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8437 else
8438 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8441 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8443 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8446 # Check whether --enable-largefile was given.
8447 if test "${enable_largefile+set}" = set; then :
8448 enableval=$enable_largefile;
8451 if test "$enable_largefile" != no; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8454 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8455 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
8457 else
8458 ac_cv_sys_largefile_CC=no
8459 if test "$GCC" != yes; then
8460 ac_save_CC=$CC
8461 while :; do
8462 # IRIX 6.2 and later do not support large files by default,
8463 # so use the C compiler's -n32 option if that helps.
8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8466 #include <sys/types.h>
8467 /* Check that off_t can represent 2**63 - 1 correctly.
8468 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8469 since some C++ compilers masquerading as C compilers
8470 incorrectly reject 9223372036854775807. */
8471 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8472 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8473 && LARGE_OFF_T % 2147483647 == 1)
8474 ? 1 : -1];
8476 main ()
8480 return 0;
8482 _ACEOF
8483 if ac_fn_c_try_compile "$LINENO"; then :
8484 break
8486 rm -f core conftest.err conftest.$ac_objext
8487 CC="$CC -n32"
8488 if ac_fn_c_try_compile "$LINENO"; then :
8489 ac_cv_sys_largefile_CC=' -n32'; break
8491 rm -f core conftest.err conftest.$ac_objext
8492 break
8493 done
8494 CC=$ac_save_CC
8495 rm -f conftest.$ac_ext
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8499 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8500 if test "$ac_cv_sys_largefile_CC" != no; then
8501 CC=$CC$ac_cv_sys_largefile_CC
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8505 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8506 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
8507 $as_echo_n "(cached) " >&6
8508 else
8509 while :; do
8510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h. */
8512 #include <sys/types.h>
8513 /* Check that off_t can represent 2**63 - 1 correctly.
8514 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8515 since some C++ compilers masquerading as C compilers
8516 incorrectly reject 9223372036854775807. */
8517 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8518 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8519 && LARGE_OFF_T % 2147483647 == 1)
8520 ? 1 : -1];
8522 main ()
8526 return 0;
8528 _ACEOF
8529 if ac_fn_c_try_compile "$LINENO"; then :
8530 ac_cv_sys_file_offset_bits=no; break
8532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534 /* end confdefs.h. */
8535 #define _FILE_OFFSET_BITS 64
8536 #include <sys/types.h>
8537 /* Check that off_t can represent 2**63 - 1 correctly.
8538 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8539 since some C++ compilers masquerading as C compilers
8540 incorrectly reject 9223372036854775807. */
8541 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8542 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8543 && LARGE_OFF_T % 2147483647 == 1)
8544 ? 1 : -1];
8546 main ()
8550 return 0;
8552 _ACEOF
8553 if ac_fn_c_try_compile "$LINENO"; then :
8554 ac_cv_sys_file_offset_bits=64; break
8556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8557 ac_cv_sys_file_offset_bits=unknown
8558 break
8559 done
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8562 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8563 case $ac_cv_sys_file_offset_bits in #(
8564 no | unknown) ;;
8566 cat >>confdefs.h <<_ACEOF
8567 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8568 _ACEOF
8570 esac
8571 rm -rf conftest*
8572 if test $ac_cv_sys_file_offset_bits = unknown; then
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8574 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8575 if test "${ac_cv_sys_large_files+set}" = set; then :
8576 $as_echo_n "(cached) " >&6
8577 else
8578 while :; do
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8581 #include <sys/types.h>
8582 /* Check that off_t can represent 2**63 - 1 correctly.
8583 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8584 since some C++ compilers masquerading as C compilers
8585 incorrectly reject 9223372036854775807. */
8586 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8587 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8588 && LARGE_OFF_T % 2147483647 == 1)
8589 ? 1 : -1];
8591 main ()
8595 return 0;
8597 _ACEOF
8598 if ac_fn_c_try_compile "$LINENO"; then :
8599 ac_cv_sys_large_files=no; break
8601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h. */
8604 #define _LARGE_FILES 1
8605 #include <sys/types.h>
8606 /* Check that off_t can represent 2**63 - 1 correctly.
8607 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8608 since some C++ compilers masquerading as C compilers
8609 incorrectly reject 9223372036854775807. */
8610 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8611 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8612 && LARGE_OFF_T % 2147483647 == 1)
8613 ? 1 : -1];
8615 main ()
8619 return 0;
8621 _ACEOF
8622 if ac_fn_c_try_compile "$LINENO"; then :
8623 ac_cv_sys_large_files=1; break
8625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8626 ac_cv_sys_large_files=unknown
8627 break
8628 done
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8631 $as_echo "$ac_cv_sys_large_files" >&6; }
8632 case $ac_cv_sys_large_files in #(
8633 no | unknown) ;;
8635 cat >>confdefs.h <<_ACEOF
8636 #define _LARGE_FILES $ac_cv_sys_large_files
8637 _ACEOF
8639 esac
8640 rm -rf conftest*
8648 LIB_MATH=-lm
8649 LIB_STANDARD=
8650 START_FILES=
8652 case $opsys in
8653 cygwin )
8654 LIB_MATH=
8655 START_FILES='pre-crt0.o'
8657 darwin )
8658 ## Adding -lm confuses the dynamic linker, so omit it.
8659 LIB_MATH=
8660 START_FILES='pre-crt0.o'
8662 freebsd )
8663 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8664 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8666 gnu-linux | gnu-kfreebsd )
8667 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8668 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8670 hpux10-20 | hpux11 )
8671 LIB_STANDARD=-lc
8672 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8674 netbsd | openbsd )
8675 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8676 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8678 esac
8683 crt_files=
8685 for file in x $LIB_STANDARD $START_FILES; do
8686 case "$file" in
8687 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8688 esac
8689 done
8691 if test "x$crt_files" != x; then
8693 ## If user specified a crt-dir, use that unconditionally.
8694 crt_gcc=no
8696 if test "X$CRT_DIR" = "X"; then
8698 CRT_DIR=/usr/lib # default
8700 case "$canonical" in
8701 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8702 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8703 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8704 ## For anything else (eg /usr/lib32), it is up the user to specify
8705 ## the location (bug#5655).
8706 ## Test for crtn.o, not just the directory, because sometimes the
8707 ## directory exists but does not have the relevant files (bug#1287).
8708 ## FIXME better to test for binary compatibility somehow.
8709 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8712 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8713 esac
8715 case "$opsys" in
8716 hpux10-20) CRT_DIR=/lib ;;
8717 esac
8719 test "x${GCC}" = xyes && crt_gcc=yes
8721 fi # CRT_DIR = ""
8723 crt_missing=
8725 for file in $crt_files; do
8727 ## If we're using gcc, try to determine it automatically by asking
8728 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8729 ## system-dependent default from above.]
8730 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8732 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8733 case "$crt_file" in
8734 */*)
8735 CRT_DIR=`$as_dirname -- "$crt_file" ||
8736 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8737 X"$crt_file" : 'X\(//\)[^/]' \| \
8738 X"$crt_file" : 'X\(//\)$' \| \
8739 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8740 $as_echo X"$crt_file" |
8741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8742 s//\1/
8745 /^X\(\/\/\)[^/].*/{
8746 s//\1/
8749 /^X\(\/\/\)$/{
8750 s//\1/
8753 /^X\(\/\).*/{
8754 s//\1/
8757 s/.*/./; q'`
8759 esac
8762 crt_gcc=no
8764 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8765 done # $crt_files
8767 test "x$crt_missing" = x || \
8768 as_fn_error "Required file(s) not found:$crt_missing
8769 Try using the --with-crt-dir option." "$LINENO" 5
8771 fi # crt_files != ""
8775 case $opsys in
8776 netbsd | openbsd )
8777 if test -f $CRT_DIR/crti.o; then
8779 test -f $CRT_DIR/crtn.o || \
8780 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8782 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8783 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8786 esac
8792 if test "${with_sound}" != "no"; then
8793 # Sound support for GNU/Linux and the free BSDs.
8794 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8795 do :
8796 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8797 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8798 eval as_val=\$$as_ac_Header
8799 if test "x$as_val" = x""yes; then :
8800 cat >>confdefs.h <<_ACEOF
8801 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8802 _ACEOF
8803 have_sound_header=yes
8806 done
8808 # Emulation library used on NetBSD.
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8810 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8811 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8814 ac_check_lib_save_LIBS=$LIBS
8815 LIBS="-lossaudio $LIBS"
8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8819 /* Override any GCC internal prototype to avoid an error.
8820 Use char because int might match the return type of a GCC
8821 builtin and then its argument prototype would still apply. */
8822 #ifdef __cplusplus
8823 extern "C"
8824 #endif
8825 char _oss_ioctl ();
8827 main ()
8829 return _oss_ioctl ();
8831 return 0;
8833 _ACEOF
8834 if ac_fn_c_try_link "$LINENO"; then :
8835 ac_cv_lib_ossaudio__oss_ioctl=yes
8836 else
8837 ac_cv_lib_ossaudio__oss_ioctl=no
8839 rm -f core conftest.err conftest.$ac_objext \
8840 conftest$ac_exeext conftest.$ac_ext
8841 LIBS=$ac_check_lib_save_LIBS
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8844 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8845 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8846 LIBSOUND=-lossaudio
8847 else
8848 LIBSOUND=
8853 ALSA_REQUIRED=1.0.0
8854 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8856 succeeded=no
8858 # Extract the first word of "pkg-config", so it can be a program name with args.
8859 set dummy pkg-config; ac_word=$2
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8861 $as_echo_n "checking for $ac_word... " >&6; }
8862 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8863 $as_echo_n "(cached) " >&6
8864 else
8865 case $PKG_CONFIG in
8866 [\\/]* | ?:[\\/]*)
8867 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8871 for as_dir in $PATH
8873 IFS=$as_save_IFS
8874 test -z "$as_dir" && as_dir=.
8875 for ac_exec_ext in '' $ac_executable_extensions; do
8876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8877 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8879 break 2
8881 done
8882 done
8883 IFS=$as_save_IFS
8885 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8887 esac
8889 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8890 if test -n "$PKG_CONFIG"; then
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8892 $as_echo "$PKG_CONFIG" >&6; }
8893 else
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8900 if test "$PKG_CONFIG" = "no" ; then
8901 HAVE_ALSA=no
8902 else
8903 PKG_CONFIG_MIN_VERSION=0.9.0
8904 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8906 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8908 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8909 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8910 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8911 edit_cflags="
8912 s,///*,/,g
8913 s/^/ /
8914 s/ -I/ $isystem/g
8915 s/^ //
8917 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8918 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8920 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8921 succeeded=yes
8922 else
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8924 $as_echo "no" >&6; }
8925 ALSA_CFLAGS=""
8926 ALSA_LIBS=""
8927 ## If we have a custom action on failure, don't print errors, but
8928 ## do set a variable so people can do so.
8929 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8935 else
8936 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8937 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8941 if test $succeeded = yes; then
8942 HAVE_ALSA=yes
8943 else
8944 HAVE_ALSA=no
8947 if test $HAVE_ALSA = yes; then
8948 SAVE_CFLAGS="$CFLAGS"
8949 SAVE_LIBS="$LIBS"
8950 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8951 LIBS="$ALSA_LIBS $LIBS"
8952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953 /* end confdefs.h. */
8954 #include <asoundlib.h>
8956 main ()
8958 snd_lib_error_set_handler (0);
8960 return 0;
8962 _ACEOF
8963 if ac_fn_c_try_compile "$LINENO"; then :
8964 emacs_alsa_normal=yes
8965 else
8966 emacs_alsa_normal=no
8968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8969 if test "$emacs_alsa_normal" != yes; then
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8972 #include <alsa/asoundlib.h>
8974 main ()
8976 snd_lib_error_set_handler (0);
8978 return 0;
8980 _ACEOF
8981 if ac_fn_c_try_compile "$LINENO"; then :
8982 emacs_alsa_subdir=yes
8983 else
8984 emacs_alsa_subdir=no
8986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8987 if test "$emacs_alsa_subdir" != yes; then
8988 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8990 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8993 CFLAGS="$SAVE_CFLAGS"
8994 LIBS="$SAVE_LIBS"
8995 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8996 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8998 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
9002 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
9003 case "$opsys" in
9004 gnu-linux|freebsd|netbsd)
9006 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
9009 esac
9015 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
9016 linux/version.h sys/systeminfo.h \
9017 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
9018 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
9019 sys/utsname.h pwd.h utmp.h dirent.h util.h
9020 do :
9021 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9022 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9023 eval as_val=\$$as_ac_Header
9024 if test "x$as_val" = x""yes; then :
9025 cat >>confdefs.h <<_ACEOF
9026 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9027 _ACEOF
9031 done
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
9035 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9038 #include <sys/personality.h>
9040 main ()
9042 personality (PER_LINUX32)
9044 return 0;
9046 _ACEOF
9047 if ac_fn_c_try_compile "$LINENO"; then :
9048 emacs_cv_personality_linux32=yes
9049 else
9050 emacs_cv_personality_linux32=no
9052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
9054 $as_echo "$emacs_cv_personality_linux32" >&6; }
9056 if test $emacs_cv_personality_linux32 = yes; then
9058 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
9062 for ac_header in term.h
9063 do :
9064 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
9065 if test "x$ac_cv_header_term_h" = x""yes; then :
9066 cat >>confdefs.h <<_ACEOF
9067 #define HAVE_TERM_H 1
9068 _ACEOF
9072 done
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9075 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9076 if test "${ac_cv_header_time+set}" = set; then :
9077 $as_echo_n "(cached) " >&6
9078 else
9079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9080 /* end confdefs.h. */
9081 #include <sys/types.h>
9082 #include <sys/time.h>
9083 #include <time.h>
9086 main ()
9088 if ((struct tm *) 0)
9089 return 0;
9091 return 0;
9093 _ACEOF
9094 if ac_fn_c_try_compile "$LINENO"; then :
9095 ac_cv_header_time=yes
9096 else
9097 ac_cv_header_time=no
9099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9102 $as_echo "$ac_cv_header_time" >&6; }
9103 if test $ac_cv_header_time = yes; then
9105 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9109 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
9110 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
9111 ac_have_decl=1
9112 else
9113 ac_have_decl=0
9116 cat >>confdefs.h <<_ACEOF
9117 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9118 _ACEOF
9120 if test $ac_cv_have_decl_sys_siglist != yes; then
9121 # For Tru64, at least:
9122 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
9123 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
9124 ac_have_decl=1
9125 else
9126 ac_have_decl=0
9129 cat >>confdefs.h <<_ACEOF
9130 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9131 _ACEOF
9133 if test $ac_cv_have_decl___sys_siglist = yes; then
9135 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9140 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9141 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9142 $as_echo_n "(cached) " >&6
9143 else
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9146 #include <sys/types.h>
9147 #include <sys/wait.h>
9148 #ifndef WEXITSTATUS
9149 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9150 #endif
9151 #ifndef WIFEXITED
9152 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9153 #endif
9156 main ()
9158 int s;
9159 wait (&s);
9160 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9162 return 0;
9164 _ACEOF
9165 if ac_fn_c_try_compile "$LINENO"; then :
9166 ac_cv_header_sys_wait_h=yes
9167 else
9168 ac_cv_header_sys_wait_h=no
9170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9173 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9174 if test $ac_cv_header_sys_wait_h = yes; then
9176 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
9182 $as_echo_n "checking for struct utimbuf... " >&6; }
9183 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
9184 $as_echo_n "(cached) " >&6
9185 else
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9188 #ifdef TIME_WITH_SYS_TIME
9189 #include <sys/time.h>
9190 #include <time.h>
9191 #else
9192 #ifdef HAVE_SYS_TIME_H
9193 #include <sys/time.h>
9194 #else
9195 #include <time.h>
9196 #endif
9197 #endif
9198 #ifdef HAVE_UTIME_H
9199 #include <utime.h>
9200 #endif
9202 main ()
9204 static struct utimbuf x; x.actime = x.modtime;
9206 return 0;
9208 _ACEOF
9209 if ac_fn_c_try_compile "$LINENO"; then :
9210 emacs_cv_struct_utimbuf=yes
9211 else
9212 emacs_cv_struct_utimbuf=no
9214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
9217 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
9218 if test $emacs_cv_struct_utimbuf = yes; then
9220 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
9225 $as_echo_n "checking for speed_t... " >&6; }
9226 if test "${emacs_cv_speed_t+set}" = set; then :
9227 $as_echo_n "(cached) " >&6
9228 else
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9231 #include <termios.h>
9233 main ()
9235 speed_t x = 1;
9237 return 0;
9239 _ACEOF
9240 if ac_fn_c_try_compile "$LINENO"; then :
9241 emacs_cv_speed_t=yes
9242 else
9243 emacs_cv_speed_t=no
9245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
9248 $as_echo "$emacs_cv_speed_t" >&6; }
9249 if test $emacs_cv_speed_t = yes; then
9251 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9256 $as_echo_n "checking for struct timeval... " >&6; }
9257 if test "${emacs_cv_struct_timeval+set}" = set; then :
9258 $as_echo_n "(cached) " >&6
9259 else
9260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9261 /* end confdefs.h. */
9262 #ifdef TIME_WITH_SYS_TIME
9263 #include <sys/time.h>
9264 #include <time.h>
9265 #else
9266 #ifdef HAVE_SYS_TIME_H
9267 #include <sys/time.h>
9268 #else
9269 #include <time.h>
9270 #endif
9271 #endif
9273 main ()
9275 static struct timeval x; x.tv_sec = x.tv_usec;
9277 return 0;
9279 _ACEOF
9280 if ac_fn_c_try_compile "$LINENO"; then :
9281 emacs_cv_struct_timeval=yes
9282 else
9283 emacs_cv_struct_timeval=no
9285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
9288 $as_echo "$emacs_cv_struct_timeval" >&6; }
9289 HAVE_TIMEVAL=$emacs_cv_struct_timeval
9290 if test $emacs_cv_struct_timeval = yes; then
9292 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
9297 $as_echo_n "checking for struct exception... " >&6; }
9298 if test "${emacs_cv_struct_exception+set}" = set; then :
9299 $as_echo_n "(cached) " >&6
9300 else
9301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9303 #include <math.h>
9305 main ()
9307 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
9309 return 0;
9311 _ACEOF
9312 if ac_fn_c_try_compile "$LINENO"; then :
9313 emacs_cv_struct_exception=yes
9314 else
9315 emacs_cv_struct_exception=no
9317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
9320 $as_echo "$emacs_cv_struct_exception" >&6; }
9321 HAVE_EXCEPTION=$emacs_cv_struct_exception
9322 if test $emacs_cv_struct_exception != yes; then
9324 $as_echo "#define NO_MATHERR 1" >>confdefs.h
9328 for ac_header in sys/socket.h
9329 do :
9330 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
9331 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
9332 cat >>confdefs.h <<_ACEOF
9333 #define HAVE_SYS_SOCKET_H 1
9334 _ACEOF
9338 done
9340 for ac_header in net/if.h
9341 do :
9342 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9343 #if HAVE_SYS_SOCKET_H
9344 #include <sys/socket.h>
9345 #endif
9347 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9348 cat >>confdefs.h <<_ACEOF
9349 #define HAVE_NET_IF_H 1
9350 _ACEOF
9354 done
9356 for ac_header in ifaddrs.h
9357 do :
9358 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9359 #if HAVE_SYS_SOCKET_H
9360 #include <sys/socket.h>
9361 #endif
9363 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9364 cat >>confdefs.h <<_ACEOF
9365 #define HAVE_IFADDRS_H 1
9366 _ACEOF
9370 done
9372 for ac_header in net/if_dl.h
9373 do :
9374 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9375 #if HAVE_SYS_SOCKET_H
9376 #include <sys/socket.h>
9377 #endif
9379 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9380 cat >>confdefs.h <<_ACEOF
9381 #define HAVE_NET_IF_DL_H 1
9382 _ACEOF
9386 done
9388 for ac_func in getifaddrs freeifaddrs
9389 do :
9390 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9391 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9392 eval as_val=\$$as_ac_var
9393 if test "x$as_val" = x""yes; then :
9394 cat >>confdefs.h <<_ACEOF
9395 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9396 _ACEOF
9399 done
9402 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9403 #if HAVE_SYS_SOCKET_H
9404 #include <sys/socket.h>
9405 #endif
9406 #if HAVE_NET_IF_H
9407 #include <net/if.h>
9408 #endif
9410 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9412 cat >>confdefs.h <<_ACEOF
9413 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9414 _ACEOF
9418 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9419 #if HAVE_SYS_SOCKET_H
9420 #include <sys/socket.h>
9421 #endif
9422 #if HAVE_NET_IF_H
9423 #include <net/if.h>
9424 #endif
9426 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9428 cat >>confdefs.h <<_ACEOF
9429 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9430 _ACEOF
9434 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9435 #if HAVE_SYS_SOCKET_H
9436 #include <sys/socket.h>
9437 #endif
9438 #if HAVE_NET_IF_H
9439 #include <net/if.h>
9440 #endif
9442 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9444 cat >>confdefs.h <<_ACEOF
9445 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9446 _ACEOF
9450 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9451 #if HAVE_SYS_SOCKET_H
9452 #include <sys/socket.h>
9453 #endif
9454 #if HAVE_NET_IF_H
9455 #include <net/if.h>
9456 #endif
9458 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9460 cat >>confdefs.h <<_ACEOF
9461 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9462 _ACEOF
9466 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9467 #if HAVE_SYS_SOCKET_H
9468 #include <sys/socket.h>
9469 #endif
9470 #if HAVE_NET_IF_H
9471 #include <net/if.h>
9472 #endif
9474 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9476 cat >>confdefs.h <<_ACEOF
9477 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9478 _ACEOF
9482 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9483 #if HAVE_SYS_SOCKET_H
9484 #include <sys/socket.h>
9485 #endif
9486 #if HAVE_NET_IF_H
9487 #include <net/if.h>
9488 #endif
9490 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9492 cat >>confdefs.h <<_ACEOF
9493 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9494 _ACEOF
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
9502 $as_echo_n "checking for function prototypes... " >&6; }
9503 if test "$ac_cv_prog_cc_c89" != no; then
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9505 $as_echo "yes" >&6; }
9507 $as_echo "#define PROTOTYPES 1" >>confdefs.h
9510 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
9512 else
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9514 $as_echo "no" >&6; }
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9518 $as_echo_n "checking for working volatile... " >&6; }
9519 if test "${ac_cv_c_volatile+set}" = set; then :
9520 $as_echo_n "(cached) " >&6
9521 else
9522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9523 /* end confdefs.h. */
9526 main ()
9529 volatile int x;
9530 int * volatile y = (int *) 0;
9531 return !x && !y;
9533 return 0;
9535 _ACEOF
9536 if ac_fn_c_try_compile "$LINENO"; then :
9537 ac_cv_c_volatile=yes
9538 else
9539 ac_cv_c_volatile=no
9541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9544 $as_echo "$ac_cv_c_volatile" >&6; }
9545 if test $ac_cv_c_volatile = no; then
9547 $as_echo "#define volatile /**/" >>confdefs.h
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9552 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9553 if test "${ac_cv_c_const+set}" = set; then :
9554 $as_echo_n "(cached) " >&6
9555 else
9556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9557 /* end confdefs.h. */
9560 main ()
9562 /* FIXME: Include the comments suggested by Paul. */
9563 #ifndef __cplusplus
9564 /* Ultrix mips cc rejects this. */
9565 typedef int charset[2];
9566 const charset cs;
9567 /* SunOS 4.1.1 cc rejects this. */
9568 char const *const *pcpcc;
9569 char **ppc;
9570 /* NEC SVR4.0.2 mips cc rejects this. */
9571 struct point {int x, y;};
9572 static struct point const zero = {0,0};
9573 /* AIX XL C 1.02.0.0 rejects this.
9574 It does not let you subtract one const X* pointer from another in
9575 an arm of an if-expression whose if-part is not a constant
9576 expression */
9577 const char *g = "string";
9578 pcpcc = &g + (g ? g-g : 0);
9579 /* HPUX 7.0 cc rejects these. */
9580 ++pcpcc;
9581 ppc = (char**) pcpcc;
9582 pcpcc = (char const *const *) ppc;
9583 { /* SCO 3.2v4 cc rejects this. */
9584 char *t;
9585 char const *s = 0 ? (char *) 0 : (char const *) 0;
9587 *t++ = 0;
9588 if (s) return 0;
9590 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9591 int x[] = {25, 17};
9592 const int *foo = &x[0];
9593 ++foo;
9595 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9596 typedef const int *iptr;
9597 iptr p = 0;
9598 ++p;
9600 { /* AIX XL C 1.02.0.0 rejects this saying
9601 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9602 struct s { int j; const int *ap[3]; };
9603 struct s *b; b->j = 5;
9605 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9606 const int foo = 10;
9607 if (!foo) return 0;
9609 return !cs[0] && !zero.x;
9610 #endif
9613 return 0;
9615 _ACEOF
9616 if ac_fn_c_try_compile "$LINENO"; then :
9617 ac_cv_c_const=yes
9618 else
9619 ac_cv_c_const=no
9621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9624 $as_echo "$ac_cv_c_const" >&6; }
9625 if test $ac_cv_c_const = no; then
9627 $as_echo "#define const /**/" >>confdefs.h
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9632 $as_echo_n "checking for void * support... " >&6; }
9633 if test "${emacs_cv_void_star+set}" = set; then :
9634 $as_echo_n "(cached) " >&6
9635 else
9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9640 main ()
9642 void * foo;
9644 return 0;
9646 _ACEOF
9647 if ac_fn_c_try_compile "$LINENO"; then :
9648 emacs_cv_void_star=yes
9649 else
9650 emacs_cv_void_star=no
9652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9655 $as_echo "$emacs_cv_void_star" >&6; }
9656 if test $emacs_cv_void_star = yes; then
9657 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9659 else
9660 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9665 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9666 if test "${ac_cv_c_bigendian+set}" = set; then :
9667 $as_echo_n "(cached) " >&6
9668 else
9669 ac_cv_c_bigendian=unknown
9670 # See if we're dealing with a universal compiler.
9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h. */
9673 #ifndef __APPLE_CC__
9674 not a universal capable compiler
9675 #endif
9676 typedef int dummy;
9678 _ACEOF
9679 if ac_fn_c_try_compile "$LINENO"; then :
9681 # Check for potential -arch flags. It is not universal unless
9682 # there are at least two -arch flags with different values.
9683 ac_arch=
9684 ac_prev=
9685 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9686 if test -n "$ac_prev"; then
9687 case $ac_word in
9688 i?86 | x86_64 | ppc | ppc64)
9689 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9690 ac_arch=$ac_word
9691 else
9692 ac_cv_c_bigendian=universal
9693 break
9696 esac
9697 ac_prev=
9698 elif test "x$ac_word" = "x-arch"; then
9699 ac_prev=arch
9701 done
9703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9704 if test $ac_cv_c_bigendian = unknown; then
9705 # See if sys/param.h defines the BYTE_ORDER macro.
9706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707 /* end confdefs.h. */
9708 #include <sys/types.h>
9709 #include <sys/param.h>
9712 main ()
9714 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9715 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9716 && LITTLE_ENDIAN)
9717 bogus endian macros
9718 #endif
9721 return 0;
9723 _ACEOF
9724 if ac_fn_c_try_compile "$LINENO"; then :
9725 # It does; now see whether it defined to BIG_ENDIAN or not.
9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727 /* end confdefs.h. */
9728 #include <sys/types.h>
9729 #include <sys/param.h>
9732 main ()
9734 #if BYTE_ORDER != BIG_ENDIAN
9735 not big endian
9736 #endif
9739 return 0;
9741 _ACEOF
9742 if ac_fn_c_try_compile "$LINENO"; then :
9743 ac_cv_c_bigendian=yes
9744 else
9745 ac_cv_c_bigendian=no
9747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9751 if test $ac_cv_c_bigendian = unknown; then
9752 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h. */
9755 #include <limits.h>
9758 main ()
9760 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9761 bogus endian macros
9762 #endif
9765 return 0;
9767 _ACEOF
9768 if ac_fn_c_try_compile "$LINENO"; then :
9769 # It does; now see whether it defined to _BIG_ENDIAN or not.
9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9771 /* end confdefs.h. */
9772 #include <limits.h>
9775 main ()
9777 #ifndef _BIG_ENDIAN
9778 not big endian
9779 #endif
9782 return 0;
9784 _ACEOF
9785 if ac_fn_c_try_compile "$LINENO"; then :
9786 ac_cv_c_bigendian=yes
9787 else
9788 ac_cv_c_bigendian=no
9790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9794 if test $ac_cv_c_bigendian = unknown; then
9795 # Compile a test program.
9796 if test "$cross_compiling" = yes; then :
9797 # Try to guess by grepping values from an object file.
9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h. */
9800 short int ascii_mm[] =
9801 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9802 short int ascii_ii[] =
9803 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9804 int use_ascii (int i) {
9805 return ascii_mm[i] + ascii_ii[i];
9807 short int ebcdic_ii[] =
9808 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9809 short int ebcdic_mm[] =
9810 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9811 int use_ebcdic (int i) {
9812 return ebcdic_mm[i] + ebcdic_ii[i];
9814 extern int foo;
9817 main ()
9819 return use_ascii (foo) == use_ebcdic (foo);
9821 return 0;
9823 _ACEOF
9824 if ac_fn_c_try_compile "$LINENO"; then :
9825 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9826 ac_cv_c_bigendian=yes
9828 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9829 if test "$ac_cv_c_bigendian" = unknown; then
9830 ac_cv_c_bigendian=no
9831 else
9832 # finding both strings is unlikely to happen, but who knows?
9833 ac_cv_c_bigendian=unknown
9837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9838 else
9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h. */
9841 $ac_includes_default
9843 main ()
9846 /* Are we little or big endian? From Harbison&Steele. */
9847 union
9849 long int l;
9850 char c[sizeof (long int)];
9851 } u;
9852 u.l = 1;
9853 return u.c[sizeof (long int) - 1] == 1;
9856 return 0;
9858 _ACEOF
9859 if ac_fn_c_try_run "$LINENO"; then :
9860 ac_cv_c_bigendian=no
9861 else
9862 ac_cv_c_bigendian=yes
9864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9865 conftest.$ac_objext conftest.beam conftest.$ac_ext
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9871 $as_echo "$ac_cv_c_bigendian" >&6; }
9872 case $ac_cv_c_bigendian in #(
9873 yes)
9874 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9875 ;; #(
9877 ;; #(
9878 universal)
9880 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9882 ;; #(
9884 as_fn_error "unknown endianness
9885 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9886 esac
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9890 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9891 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9892 $as_echo_n "(cached) " >&6
9893 else
9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895 /* end confdefs.h. */
9896 char __attribute__ ((__aligned__ (1 << 3))) c;
9898 main ()
9902 return 0;
9904 _ACEOF
9905 if ac_fn_c_try_compile "$LINENO"; then :
9906 emacs_cv_attribute_aligned=yes
9907 else
9908 emacs_cv_attribute_aligned=no
9910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9913 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9914 if test $emacs_cv_attribute_aligned = yes; then
9916 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9921 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9922 set x ${MAKE-make}
9923 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9924 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9925 $as_echo_n "(cached) " >&6
9926 else
9927 cat >conftest.make <<\_ACEOF
9928 SHELL = /bin/sh
9929 all:
9930 @echo '@@@%%%=$(MAKE)=@@@%%%'
9931 _ACEOF
9932 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9933 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9934 *@@@%%%=?*=@@@%%%*)
9935 eval ac_cv_prog_make_${ac_make}_set=yes;;
9937 eval ac_cv_prog_make_${ac_make}_set=no;;
9938 esac
9939 rm -f conftest.make
9941 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9943 $as_echo "yes" >&6; }
9944 SET_MAKE=
9945 else
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9947 $as_echo "no" >&6; }
9948 SET_MAKE="MAKE=${MAKE-make}"
9952 DEPFLAGS=
9953 MKDEPDIR=":"
9954 deps_frag=deps.mk
9955 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9957 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9958 HAVE_GNU_MAKE=no
9959 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9960 if test "x$testval" != x; then
9961 HAVE_GNU_MAKE=yes
9962 else
9963 ac_enable_autodepend=no
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9966 $as_echo "$HAVE_GNU_MAKE" >&6; }
9967 if test $HAVE_GNU_MAKE = yes; then
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9969 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9970 SAVE_CFLAGS="$CFLAGS"
9971 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9973 /* end confdefs.h. */
9976 main ()
9980 return 0;
9982 _ACEOF
9983 if ac_fn_c_try_compile "$LINENO"; then :
9985 else
9986 ac_enable_autodepend=no
9988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9989 CFLAGS="$SAVE_CFLAGS"
9990 test -f deps.d || ac_enable_autodepend=no
9991 rm -rf deps.d
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9993 $as_echo "$ac_enable_autodepend" >&6; }
9995 if test $ac_enable_autodepend = yes; then
9996 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9997 ## In parallel builds, another make might create depdir between
9998 ## the first test and mkdir, so stick another test on the end.
9999 ## Or use install-sh -d? mkdir -p is not portable.
10000 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
10001 deps_frag=autodeps.mk
10004 deps_frag=$srcdir/src/$deps_frag
10010 lisp_frag=$srcdir/src/lisp.mk
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
10015 $as_echo_n "checking for long file names... " >&6; }
10016 if test "${ac_cv_sys_long_file_names+set}" = set; then :
10017 $as_echo_n "(cached) " >&6
10018 else
10019 ac_cv_sys_long_file_names=yes
10020 # Test for long file names in all the places we know might matter:
10021 # . the current directory, where building will happen
10022 # $prefix/lib where we will be installing things
10023 # $exec_prefix/lib likewise
10024 # $TMPDIR if set, where it might want to write temporary files
10025 # /tmp where it might want to write temporary files
10026 # /var/tmp likewise
10027 # /usr/tmp likewise
10028 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
10029 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
10030 # in the usual case where exec_prefix is '${prefix}'.
10031 case $ac_dir in #(
10032 . | /* | ?:[\\/]*) ;; #(
10033 *) continue;;
10034 esac
10035 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
10036 ac_xdir=$ac_dir/cf$$
10037 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
10038 ac_tf1=$ac_xdir/conftest9012345
10039 ac_tf2=$ac_xdir/conftest9012346
10040 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
10041 ac_cv_sys_long_file_names=no
10042 rm -f -r "$ac_xdir" 2>/dev/null
10043 test $ac_cv_sys_long_file_names = no && break
10044 done
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
10047 $as_echo "$ac_cv_sys_long_file_names" >&6; }
10048 if test $ac_cv_sys_long_file_names = yes; then
10050 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
10055 #### Choose a window system.
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10058 $as_echo_n "checking for X... " >&6; }
10061 # Check whether --with-x was given.
10062 if test "${with_x+set}" = set; then :
10063 withval=$with_x;
10066 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10067 if test "x$with_x" = xno; then
10068 # The user explicitly disabled X.
10069 have_x=disabled
10070 else
10071 case $x_includes,$x_libraries in #(
10072 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
10073 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
10074 $as_echo_n "(cached) " >&6
10075 else
10076 # One or both of the vars are not set, and there is no cached value.
10077 ac_x_includes=no ac_x_libraries=no
10078 rm -f -r conftest.dir
10079 if mkdir conftest.dir; then
10080 cd conftest.dir
10081 cat >Imakefile <<'_ACEOF'
10082 incroot:
10083 @echo incroot='${INCROOT}'
10084 usrlibdir:
10085 @echo usrlibdir='${USRLIBDIR}'
10086 libdir:
10087 @echo libdir='${LIBDIR}'
10088 _ACEOF
10089 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10090 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10091 for ac_var in incroot usrlibdir libdir; do
10092 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10093 done
10094 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10095 for ac_extension in a so sl dylib la dll; do
10096 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10097 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10098 ac_im_usrlibdir=$ac_im_libdir; break
10100 done
10101 # Screen out bogus values from the imake configuration. They are
10102 # bogus both because they are the default anyway, and because
10103 # using them would break gcc on systems where it needs fixed includes.
10104 case $ac_im_incroot in
10105 /usr/include) ac_x_includes= ;;
10106 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10107 esac
10108 case $ac_im_usrlibdir in
10109 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
10110 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10111 esac
10113 cd ..
10114 rm -f -r conftest.dir
10117 # Standard set of common directories for X headers.
10118 # Check X11 before X11Rn because it is often a symlink to the current release.
10119 ac_x_header_dirs='
10120 /usr/X11/include
10121 /usr/X11R7/include
10122 /usr/X11R6/include
10123 /usr/X11R5/include
10124 /usr/X11R4/include
10126 /usr/include/X11
10127 /usr/include/X11R7
10128 /usr/include/X11R6
10129 /usr/include/X11R5
10130 /usr/include/X11R4
10132 /usr/local/X11/include
10133 /usr/local/X11R7/include
10134 /usr/local/X11R6/include
10135 /usr/local/X11R5/include
10136 /usr/local/X11R4/include
10138 /usr/local/include/X11
10139 /usr/local/include/X11R7
10140 /usr/local/include/X11R6
10141 /usr/local/include/X11R5
10142 /usr/local/include/X11R4
10144 /usr/X386/include
10145 /usr/x386/include
10146 /usr/XFree86/include/X11
10148 /usr/include
10149 /usr/local/include
10150 /usr/unsupported/include
10151 /usr/athena/include
10152 /usr/local/x11r5/include
10153 /usr/lpp/Xamples/include
10155 /usr/openwin/include
10156 /usr/openwin/share/include'
10158 if test "$ac_x_includes" = no; then
10159 # Guess where to find include files, by looking for Xlib.h.
10160 # First, try using that file with no special directory specified.
10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10162 /* end confdefs.h. */
10163 #include <X11/Xlib.h>
10164 _ACEOF
10165 if ac_fn_c_try_cpp "$LINENO"; then :
10166 # We can compile using X headers with no special include directory.
10167 ac_x_includes=
10168 else
10169 for ac_dir in $ac_x_header_dirs; do
10170 if test -r "$ac_dir/X11/Xlib.h"; then
10171 ac_x_includes=$ac_dir
10172 break
10174 done
10176 rm -f conftest.err conftest.$ac_ext
10177 fi # $ac_x_includes = no
10179 if test "$ac_x_libraries" = no; then
10180 # Check for the libraries.
10181 # See if we find them without any special options.
10182 # Don't add to $LIBS permanently.
10183 ac_save_LIBS=$LIBS
10184 LIBS="-lX11 $LIBS"
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10187 #include <X11/Xlib.h>
10189 main ()
10191 XrmInitialize ()
10193 return 0;
10195 _ACEOF
10196 if ac_fn_c_try_link "$LINENO"; then :
10197 LIBS=$ac_save_LIBS
10198 # We can link X programs with no special library path.
10199 ac_x_libraries=
10200 else
10201 LIBS=$ac_save_LIBS
10202 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10204 # Don't even attempt the hair of trying to link an X program!
10205 for ac_extension in a so sl dylib la dll; do
10206 if test -r "$ac_dir/libX11.$ac_extension"; then
10207 ac_x_libraries=$ac_dir
10208 break 2
10210 done
10211 done
10213 rm -f core conftest.err conftest.$ac_objext \
10214 conftest$ac_exeext conftest.$ac_ext
10215 fi # $ac_x_libraries = no
10217 case $ac_x_includes,$ac_x_libraries in #(
10218 no,* | *,no | *\'*)
10219 # Didn't find X, or a directory has "'" in its name.
10220 ac_cv_have_x="have_x=no";; #(
10222 # Record where we found X for the cache.
10223 ac_cv_have_x="have_x=yes\
10224 ac_x_includes='$ac_x_includes'\
10225 ac_x_libraries='$ac_x_libraries'"
10226 esac
10228 ;; #(
10229 *) have_x=yes;;
10230 esac
10231 eval "$ac_cv_have_x"
10232 fi # $with_x != no
10234 if test "$have_x" != yes; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10236 $as_echo "$have_x" >&6; }
10237 no_x=yes
10238 else
10239 # If each of the values was on the command line, it overrides each guess.
10240 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10241 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10242 # Update the cache value to reflect the command line values.
10243 ac_cv_have_x="have_x=yes\
10244 ac_x_includes='$x_includes'\
10245 ac_x_libraries='$x_libraries'"
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10247 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10250 if test "$no_x" = yes; then
10251 window_system=none
10252 else
10253 window_system=x11
10256 LD_SWITCH_X_SITE_AUX=
10257 LD_SWITCH_X_SITE_AUX_RPATH=
10258 if test "${x_libraries}" != NONE; then
10259 if test -n "${x_libraries}"; then
10260 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
10261 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
10262 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
10264 x_default_search_path=""
10265 x_search_path=${x_libraries}
10266 if test -z "${x_search_path}"; then
10267 x_search_path=/usr/lib
10269 for x_library in `echo ${x_search_path}: | \
10270 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
10271 x_search_path="\
10272 ${x_library}/X11/%L/%T/%N%C%S:\
10273 ${x_library}/X11/%l/%T/%N%C%S:\
10274 ${x_library}/X11/%T/%N%C%S:\
10275 ${x_library}/X11/%L/%T/%N%S:\
10276 ${x_library}/X11/%l/%T/%N%S:\
10277 ${x_library}/X11/%T/%N%S"
10278 if test x"${x_default_search_path}" = x; then
10279 x_default_search_path=${x_search_path}
10280 else
10281 x_default_search_path="${x_search_path}:${x_default_search_path}"
10283 done
10288 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
10289 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
10292 if test x"${x_includes}" = x; then
10293 bitmapdir=/usr/include/X11/bitmaps
10294 else
10295 # accumulate include directories that have X11 bitmap subdirectories
10296 bmd_acc="dummyval"
10297 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
10298 if test -d "${bmd}/X11/bitmaps"; then
10299 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
10301 if test -d "${bmd}/bitmaps"; then
10302 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
10304 done
10305 if test ${bmd_acc} != "dummyval"; then
10306 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
10310 HAVE_NS=no
10311 NS_IMPL_COCOA=no
10312 NS_IMPL_GNUSTEP=no
10313 tmp_CPPFLAGS="$CPPFLAGS"
10314 tmp_CFLAGS="$CFLAGS"
10315 CPPFLAGS="$CPPFLAGS -x objective-c"
10316 CFLAGS="$CFLAGS -x objective-c"
10317 TEMACS_LDFLAGS2="\${LDFLAGS}"
10318 GNU_OBJC_CFLAGS=
10319 if test "${with_ns}" != no; then
10320 if test "${opsys}" = darwin; then
10321 NS_IMPL_COCOA=yes
10322 ns_appdir=`pwd`/nextstep/Emacs.app
10323 ns_appbindir=${ns_appdir}/Contents/MacOS/
10324 ns_appresdir=${ns_appdir}/Contents/Resources
10325 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
10326 elif test -f $GNUSTEP_CONFIG_FILE; then
10327 NS_IMPL_GNUSTEP=yes
10328 ns_appdir=`pwd`/nextstep/Emacs.app
10329 ns_appbindir=${ns_appdir}/
10330 ns_appresdir=${ns_appdir}/Resources
10331 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
10332 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
10333 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
10334 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
10335 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
10336 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
10337 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
10338 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
10339 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
10340 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10341 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10342 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
10343 LIB_STANDARD=
10344 START_FILES=
10345 TEMACS_LDFLAGS2=
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
10347 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
10348 if test "${emacs_cv_objc_exceptions+set}" = set; then :
10349 $as_echo_n "(cached) " >&6
10350 else
10351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10352 /* end confdefs.h. */
10353 #include <GNUstepBase/GSConfig.h>
10355 main ()
10357 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
10359 #else
10360 fail;
10361 #endif
10363 return 0;
10365 _ACEOF
10366 if ac_fn_c_try_compile "$LINENO"; then :
10367 emacs_cv_objc_exceptions=yes
10368 else
10369 emacs_cv_objc_exceptions=no
10371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
10374 $as_echo "$emacs_cv_objc_exceptions" >&6; }
10375 if test $emacs_cv_objc_exceptions = yes; then
10377 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
10379 GNU_OBJC_CFLAGS="-fobjc-exceptions"
10383 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
10385 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
10386 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
10387 HAVE_NS=yes
10388 else
10389 as_fn_error "\`--with-ns' was specified, but the include
10390 files are missing or cannot be compiled." "$LINENO" 5
10394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10395 /* end confdefs.h. */
10396 #include <Foundation/NSObjCRuntime.h>
10398 main ()
10400 NSInteger i;
10402 return 0;
10404 _ACEOF
10405 if ac_fn_c_try_compile "$LINENO"; then :
10406 ns_have_nsinteger=yes
10407 else
10408 ns_have_nsinteger=no
10410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10411 if test $ns_have_nsinteger = yes; then
10413 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10419 ns_frag=/dev/null
10420 NS_OBJ=
10421 NS_OBJC_OBJ=
10422 if test "${HAVE_NS}" = yes; then
10423 if test "$with_toolkit_scroll_bars" = "no"; then
10424 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10427 window_system=nextstep
10428 with_xft=no
10429 # set up packaging dirs
10430 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10431 prefix=${ns_appresdir}
10432 exec_prefix=${ns_appbindir}
10433 libexecdir=${ns_appbindir}/libexec
10435 ns_frag=$srcdir/src/ns.mk
10436 NS_OBJ="fontset.o fringe.o image.o"
10437 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
10439 CFLAGS="$tmp_CFLAGS"
10440 CPPFLAGS="$tmp_CPPFLAGS"
10446 case "${window_system}" in
10447 x11 )
10448 HAVE_X_WINDOWS=yes
10449 HAVE_X11=yes
10450 case "${with_x_toolkit}" in
10451 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10452 motif ) USE_X_TOOLKIT=MOTIF ;;
10453 gtk ) with_gtk=yes
10454 USE_X_TOOLKIT=none ;;
10455 gtk3 ) with_gtk3=yes
10456 USE_X_TOOLKIT=none ;;
10457 no ) USE_X_TOOLKIT=none ;;
10458 * ) USE_X_TOOLKIT=maybe ;;
10459 esac
10461 nextstep | none )
10462 HAVE_X_WINDOWS=no
10463 HAVE_X11=no
10464 USE_X_TOOLKIT=none
10466 esac
10468 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10469 # Extract the first word of "X", so it can be a program name with args.
10470 set dummy X; ac_word=$2
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10472 $as_echo_n "checking for $ac_word... " >&6; }
10473 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10474 $as_echo_n "(cached) " >&6
10475 else
10476 if test -n "$HAVE_XSERVER"; then
10477 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10478 else
10479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10480 for as_dir in $PATH
10482 IFS=$as_save_IFS
10483 test -z "$as_dir" && as_dir=.
10484 for ac_exec_ext in '' $ac_executable_extensions; do
10485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10486 ac_cv_prog_HAVE_XSERVER="true"
10487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10488 break 2
10490 done
10491 done
10492 IFS=$as_save_IFS
10494 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10497 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10498 if test -n "$HAVE_XSERVER"; then
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10500 $as_echo "$HAVE_XSERVER" >&6; }
10501 else
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10503 $as_echo "no" >&6; }
10507 if test "$HAVE_XSERVER" = true ||
10508 test -n "$DISPLAY" ||
10509 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10510 as_fn_error "You seem to be running X, but no X development libraries
10511 were found. You should install the relevant development files for X
10512 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10513 sure you have development files for image handling, i.e.
10514 tiff, gif, jpeg, png and xpm.
10515 If you are sure you want Emacs compiled without X window support, pass
10516 --without-x
10517 to configure." "$LINENO" 5
10521 ### If we're using X11, we should use the X menu package.
10522 HAVE_MENUS=no
10523 case ${HAVE_X11} in
10524 yes ) HAVE_MENUS=yes ;;
10525 esac
10527 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10528 # Assume not, until told otherwise.
10529 GNU_MALLOC=yes
10530 doug_lea_malloc=yes
10531 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
10532 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
10534 else
10535 doug_lea_malloc=no
10538 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
10539 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
10541 else
10542 doug_lea_malloc=no
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
10546 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10547 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
10548 $as_echo_n "(cached) " >&6
10549 else
10550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10551 /* end confdefs.h. */
10552 extern void (* __after_morecore_hook)();
10554 main ()
10556 __after_morecore_hook = 0
10558 return 0;
10560 _ACEOF
10561 if ac_fn_c_try_link "$LINENO"; then :
10562 emacs_cv_var___after_morecore_hook=yes
10563 else
10564 emacs_cv_var___after_morecore_hook=no
10566 rm -f core conftest.err conftest.$ac_objext \
10567 conftest$ac_exeext conftest.$ac_ext
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
10570 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10571 if test $emacs_cv_var___after_morecore_hook = no; then
10572 doug_lea_malloc=no
10576 system_malloc=no
10577 case "$opsys" in
10578 ## darwin ld insists on the use of malloc routines in the System framework.
10579 darwin|sol2-10) system_malloc=yes ;;
10580 esac
10582 if test "${system_malloc}" = "yes"; then
10584 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10586 GNU_MALLOC=no
10587 GNU_MALLOC_reason="
10588 (The GNU allocators don't work with this system configuration.)"
10589 GMALLOC_OBJ=
10590 VMLIMIT_OBJ=
10591 else
10592 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10593 VMLIMIT_OBJ=vm-limit.o
10598 if test "$doug_lea_malloc" = "yes" ; then
10599 if test "$GNU_MALLOC" = yes ; then
10600 GNU_MALLOC_reason="
10601 (Using Doug Lea's new malloc from the GNU C Library.)"
10604 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10607 ## Use mmap directly for allocating larger buffers.
10608 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10609 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10610 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10611 case "$opsys" in
10612 gnu*) REL_ALLOC=no ;;
10613 esac
10616 if test x"${REL_ALLOC}" = x; then
10617 REL_ALLOC=${GNU_MALLOC}
10620 use_mmap_for_buffers=no
10621 case "$opsys" in
10622 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10623 esac
10628 for ac_header in $ac_header_list
10629 do :
10630 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10631 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10633 eval as_val=\$$as_ac_Header
10634 if test "x$as_val" = x""yes; then :
10635 cat >>confdefs.h <<_ACEOF
10636 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10637 _ACEOF
10641 done
10650 for ac_func in getpagesize
10651 do :
10652 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10653 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10654 cat >>confdefs.h <<_ACEOF
10655 #define HAVE_GETPAGESIZE 1
10656 _ACEOF
10659 done
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10662 $as_echo_n "checking for working mmap... " >&6; }
10663 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10664 $as_echo_n "(cached) " >&6
10665 else
10666 if test "$cross_compiling" = yes; then :
10667 ac_cv_func_mmap_fixed_mapped=no
10668 else
10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10671 $ac_includes_default
10672 /* malloc might have been renamed as rpl_malloc. */
10673 #undef malloc
10675 /* Thanks to Mike Haertel and Jim Avera for this test.
10676 Here is a matrix of mmap possibilities:
10677 mmap private not fixed
10678 mmap private fixed at somewhere currently unmapped
10679 mmap private fixed at somewhere already mapped
10680 mmap shared not fixed
10681 mmap shared fixed at somewhere currently unmapped
10682 mmap shared fixed at somewhere already mapped
10683 For private mappings, we should verify that changes cannot be read()
10684 back from the file, nor mmap's back from the file at a different
10685 address. (There have been systems where private was not correctly
10686 implemented like the infamous i386 svr4.0, and systems where the
10687 VM page cache was not coherent with the file system buffer cache
10688 like early versions of FreeBSD and possibly contemporary NetBSD.)
10689 For shared mappings, we should conversely verify that changes get
10690 propagated back to all the places they're supposed to be.
10692 Grep wants private fixed already mapped.
10693 The main things grep needs to know about mmap are:
10694 * does it exist and is it safe to write into the mmap'd area
10695 * how to use it (BSD variants) */
10697 #include <fcntl.h>
10698 #include <sys/mman.h>
10700 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10701 char *malloc ();
10702 #endif
10704 /* This mess was copied from the GNU getpagesize.h. */
10705 #ifndef HAVE_GETPAGESIZE
10706 # ifdef _SC_PAGESIZE
10707 # define getpagesize() sysconf(_SC_PAGESIZE)
10708 # else /* no _SC_PAGESIZE */
10709 # ifdef HAVE_SYS_PARAM_H
10710 # include <sys/param.h>
10711 # ifdef EXEC_PAGESIZE
10712 # define getpagesize() EXEC_PAGESIZE
10713 # else /* no EXEC_PAGESIZE */
10714 # ifdef NBPG
10715 # define getpagesize() NBPG * CLSIZE
10716 # ifndef CLSIZE
10717 # define CLSIZE 1
10718 # endif /* no CLSIZE */
10719 # else /* no NBPG */
10720 # ifdef NBPC
10721 # define getpagesize() NBPC
10722 # else /* no NBPC */
10723 # ifdef PAGESIZE
10724 # define getpagesize() PAGESIZE
10725 # endif /* PAGESIZE */
10726 # endif /* no NBPC */
10727 # endif /* no NBPG */
10728 # endif /* no EXEC_PAGESIZE */
10729 # else /* no HAVE_SYS_PARAM_H */
10730 # define getpagesize() 8192 /* punt totally */
10731 # endif /* no HAVE_SYS_PARAM_H */
10732 # endif /* no _SC_PAGESIZE */
10734 #endif /* no HAVE_GETPAGESIZE */
10737 main ()
10739 char *data, *data2, *data3;
10740 const char *cdata2;
10741 int i, pagesize;
10742 int fd, fd2;
10744 pagesize = getpagesize ();
10746 /* First, make a file with some known garbage in it. */
10747 data = (char *) malloc (pagesize);
10748 if (!data)
10749 return 1;
10750 for (i = 0; i < pagesize; ++i)
10751 *(data + i) = rand ();
10752 umask (0);
10753 fd = creat ("conftest.mmap", 0600);
10754 if (fd < 0)
10755 return 2;
10756 if (write (fd, data, pagesize) != pagesize)
10757 return 3;
10758 close (fd);
10760 /* Next, check that the tail of a page is zero-filled. File must have
10761 non-zero length, otherwise we risk SIGBUS for entire page. */
10762 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10763 if (fd2 < 0)
10764 return 4;
10765 cdata2 = "";
10766 if (write (fd2, cdata2, 1) != 1)
10767 return 5;
10768 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10769 if (data2 == MAP_FAILED)
10770 return 6;
10771 for (i = 0; i < pagesize; ++i)
10772 if (*(data2 + i))
10773 return 7;
10774 close (fd2);
10775 if (munmap (data2, pagesize))
10776 return 8;
10778 /* Next, try to mmap the file at a fixed address which already has
10779 something else allocated at it. If we can, also make sure that
10780 we see the same garbage. */
10781 fd = open ("conftest.mmap", O_RDWR);
10782 if (fd < 0)
10783 return 9;
10784 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10785 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10786 return 10;
10787 for (i = 0; i < pagesize; ++i)
10788 if (*(data + i) != *(data2 + i))
10789 return 11;
10791 /* Finally, make sure that changes to the mapped area do not
10792 percolate back to the file as seen by read(). (This is a bug on
10793 some variants of i386 svr4.0.) */
10794 for (i = 0; i < pagesize; ++i)
10795 *(data2 + i) = *(data2 + i) + 1;
10796 data3 = (char *) malloc (pagesize);
10797 if (!data3)
10798 return 12;
10799 if (read (fd, data3, pagesize) != pagesize)
10800 return 13;
10801 for (i = 0; i < pagesize; ++i)
10802 if (*(data + i) != *(data3 + i))
10803 return 14;
10804 close (fd);
10805 return 0;
10807 _ACEOF
10808 if ac_fn_c_try_run "$LINENO"; then :
10809 ac_cv_func_mmap_fixed_mapped=yes
10810 else
10811 ac_cv_func_mmap_fixed_mapped=no
10813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10814 conftest.$ac_objext conftest.beam conftest.$ac_ext
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10819 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10820 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10822 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10825 rm -f conftest.mmap conftest.txt
10827 if test $use_mmap_for_buffers = yes; then
10829 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10831 REL_ALLOC=no
10834 LIBS="$LIBS_SYSTEM $LIBS"
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10837 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10838 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10839 $as_echo_n "(cached) " >&6
10840 else
10841 ac_check_lib_save_LIBS=$LIBS
10842 LIBS="-ldnet $LIBS"
10843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844 /* end confdefs.h. */
10846 /* Override any GCC internal prototype to avoid an error.
10847 Use char because int might match the return type of a GCC
10848 builtin and then its argument prototype would still apply. */
10849 #ifdef __cplusplus
10850 extern "C"
10851 #endif
10852 char dnet_ntoa ();
10854 main ()
10856 return dnet_ntoa ();
10858 return 0;
10860 _ACEOF
10861 if ac_fn_c_try_link "$LINENO"; then :
10862 ac_cv_lib_dnet_dnet_ntoa=yes
10863 else
10864 ac_cv_lib_dnet_dnet_ntoa=no
10866 rm -f core conftest.err conftest.$ac_objext \
10867 conftest$ac_exeext conftest.$ac_ext
10868 LIBS=$ac_check_lib_save_LIBS
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10871 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10872 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10873 cat >>confdefs.h <<_ACEOF
10874 #define HAVE_LIBDNET 1
10875 _ACEOF
10877 LIBS="-ldnet $LIBS"
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10883 $as_echo_n "checking for main in -lXbsd... " >&6; }
10884 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10885 $as_echo_n "(cached) " >&6
10886 else
10887 ac_check_lib_save_LIBS=$LIBS
10888 LIBS="-lXbsd $LIBS"
10889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10890 /* end confdefs.h. */
10894 main ()
10896 return main ();
10898 return 0;
10900 _ACEOF
10901 if ac_fn_c_try_link "$LINENO"; then :
10902 ac_cv_lib_Xbsd_main=yes
10903 else
10904 ac_cv_lib_Xbsd_main=no
10906 rm -f core conftest.err conftest.$ac_objext \
10907 conftest$ac_exeext conftest.$ac_ext
10908 LIBS=$ac_check_lib_save_LIBS
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10911 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10912 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10913 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10917 LIB_PTHREAD=
10918 for ac_header in pthread.h
10919 do :
10920 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10921 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10922 cat >>confdefs.h <<_ACEOF
10923 #define HAVE_PTHREAD_H 1
10924 _ACEOF
10928 done
10930 if test "$ac_cv_header_pthread_h"; then
10931 if test "$GMALLOC_OBJ" = gmalloc.o; then
10932 emacs_pthread_function=pthread_atfork
10933 else
10934 emacs_pthread_function=pthread_self
10936 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10938 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10939 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10940 $as_echo_n "(cached) " >&6
10941 else
10942 ac_check_lib_save_LIBS=$LIBS
10943 LIBS="-lpthread $LIBS"
10944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h. */
10947 /* Override any GCC internal prototype to avoid an error.
10948 Use char because int might match the return type of a GCC
10949 builtin and then its argument prototype would still apply. */
10950 #ifdef __cplusplus
10951 extern "C"
10952 #endif
10953 char $emacs_pthread_function ();
10955 main ()
10957 return $emacs_pthread_function ();
10959 return 0;
10961 _ACEOF
10962 if ac_fn_c_try_link "$LINENO"; then :
10963 eval "$as_ac_Lib=yes"
10964 else
10965 eval "$as_ac_Lib=no"
10967 rm -f core conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext conftest.$ac_ext
10969 LIBS=$ac_check_lib_save_LIBS
10971 eval ac_res=\$$as_ac_Lib
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10973 $as_echo "$ac_res" >&6; }
10974 eval as_val=\$$as_ac_Lib
10975 if test "x$as_val" = x""yes; then :
10976 HAVE_PTHREAD=yes
10980 if test "$HAVE_PTHREAD" = yes; then
10981 case "${canonical}" in
10982 *-hpux*) ;;
10983 *) LIB_PTHREAD="-lpthread"
10984 LIBS="$LIB_PTHREAD $LIBS" ;;
10985 esac
10987 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10993 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10994 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 ac_check_lib_save_LIBS=$LIBS
10998 LIBS="-lpthreads $LIBS"
10999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11000 /* end confdefs.h. */
11002 /* Override any GCC internal prototype to avoid an error.
11003 Use char because int might match the return type of a GCC
11004 builtin and then its argument prototype would still apply. */
11005 #ifdef __cplusplus
11006 extern "C"
11007 #endif
11008 char cma_open ();
11010 main ()
11012 return cma_open ();
11014 return 0;
11016 _ACEOF
11017 if ac_fn_c_try_link "$LINENO"; then :
11018 ac_cv_lib_pthreads_cma_open=yes
11019 else
11020 ac_cv_lib_pthreads_cma_open=no
11022 rm -f core conftest.err conftest.$ac_objext \
11023 conftest$ac_exeext conftest.$ac_ext
11024 LIBS=$ac_check_lib_save_LIBS
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
11027 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11028 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
11029 cat >>confdefs.h <<_ACEOF
11030 #define HAVE_LIBPTHREADS 1
11031 _ACEOF
11033 LIBS="-lpthreads $LIBS"
11038 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11039 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11040 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11041 ## added to LIBS in configure would never contain the pthreads part,
11042 ## but the value used in Makefiles might. FIXME?
11044 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11045 ## be harmless on older versions of X where it happens to exist.
11046 test "$opsys" = "aix4-2" && \
11047 test $ac_cv_lib_pthreads_cma_open = yes && \
11048 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
11051 case ${host_os} in
11052 aix*)
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11054 $as_echo_n "checking for -bbigtoc option... " >&6; }
11055 if test "${gdb_cv_bigtoc+set}" = set; then :
11056 $as_echo_n "(cached) " >&6
11057 else
11059 case $GCC in
11060 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11061 *) gdb_cv_bigtoc=-bbigtoc ;;
11062 esac
11064 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h. */
11069 main ()
11071 int i;
11073 return 0;
11075 _ACEOF
11076 if ac_fn_c_try_link "$LINENO"; then :
11078 else
11079 gdb_cv_bigtoc=
11081 rm -f core conftest.err conftest.$ac_objext \
11082 conftest$ac_exeext conftest.$ac_ext
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11086 $as_echo "$gdb_cv_bigtoc" >&6; }
11088 esac
11090 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11091 # used for the tests that follow. We set them back to REAL_CFLAGS and
11092 # REAL_CPPFLAGS later on.
11094 REAL_CFLAGS="$CFLAGS"
11095 REAL_CPPFLAGS="$CPPFLAGS"
11097 if test "${HAVE_X11}" = "yes"; then
11098 DEFS="$C_SWITCH_X_SITE $DEFS"
11099 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11100 LIBS="-lX11 $LIBS"
11101 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11102 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11104 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11105 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11106 # but it's more convenient here to set LD_RUN_PATH
11107 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11108 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11109 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11110 export LD_RUN_PATH
11113 if test "${opsys}" = "gnu-linux"; then
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
11115 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11117 /* end confdefs.h. */
11120 main ()
11122 XOpenDisplay ("foo");
11124 return 0;
11126 _ACEOF
11127 if ac_fn_c_try_link "$LINENO"; then :
11128 xgnu_linux_first_failure=no
11129 else
11130 xgnu_linux_first_failure=yes
11132 rm -f core conftest.err conftest.$ac_objext \
11133 conftest$ac_exeext conftest.$ac_ext
11134 if test "${xgnu_linux_first_failure}" = "yes"; then
11135 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11136 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11137 OLD_CPPFLAGS="$CPPFLAGS"
11138 OLD_LIBS="$LIBS"
11139 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11140 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11141 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11142 LIBS="$LIBS -b i486-linuxaout"
11143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144 /* end confdefs.h. */
11147 main ()
11149 XOpenDisplay ("foo");
11151 return 0;
11153 _ACEOF
11154 if ac_fn_c_try_link "$LINENO"; then :
11155 xgnu_linux_second_failure=no
11156 else
11157 xgnu_linux_second_failure=yes
11159 rm -f core conftest.err conftest.$ac_objext \
11160 conftest$ac_exeext conftest.$ac_ext
11161 if test "${xgnu_linux_second_failure}" = "yes"; then
11162 # If we get the same failure with -b, there is no use adding -b.
11163 # So take it out. This plays safe.
11164 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11165 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11166 CPPFLAGS="$OLD_CPPFLAGS"
11167 LIBS="$OLD_LIBS"
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 $as_echo "no" >&6; }
11170 else
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11172 $as_echo "yes" >&6; }
11174 else
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11176 $as_echo "no" >&6; }
11180 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11181 # header files included from there.
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11183 $as_echo_n "checking for Xkb... " >&6; }
11184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11185 /* end confdefs.h. */
11186 #include <X11/Xlib.h>
11187 #include <X11/XKBlib.h>
11189 main ()
11191 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11193 return 0;
11195 _ACEOF
11196 if ac_fn_c_try_link "$LINENO"; then :
11197 emacs_xkb=yes
11198 else
11199 emacs_xkb=no
11201 rm -f core conftest.err conftest.$ac_objext \
11202 conftest$ac_exeext conftest.$ac_ext
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11204 $as_echo "$emacs_xkb" >&6; }
11205 if test $emacs_xkb = yes; then
11207 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
11211 for ac_func in XrmSetDatabase XScreenResourceString \
11212 XScreenNumberOfScreen XSetWMProtocols
11213 do :
11214 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11215 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11216 eval as_val=\$$as_ac_var
11217 if test "x$as_val" = x""yes; then :
11218 cat >>confdefs.h <<_ACEOF
11219 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11220 _ACEOF
11223 done
11227 if test "${window_system}" = "x11"; then
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11229 $as_echo_n "checking X11 version 6... " >&6; }
11230 if test "${emacs_cv_x11_version_6+set}" = set; then :
11231 $as_echo_n "(cached) " >&6
11232 else
11233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234 /* end confdefs.h. */
11235 #include <X11/Xlib.h>
11237 main ()
11239 #if XlibSpecificationRelease < 6
11240 fail;
11241 #endif
11244 return 0;
11246 _ACEOF
11247 if ac_fn_c_try_link "$LINENO"; then :
11248 emacs_cv_x11_version_6=yes
11249 else
11250 emacs_cv_x11_version_6=no
11252 rm -f core conftest.err conftest.$ac_objext \
11253 conftest$ac_exeext conftest.$ac_ext
11256 if test $emacs_cv_x11_version_6 = yes; then
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11258 $as_echo "6 or newer" >&6; }
11260 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11263 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
11265 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
11266 ## XIM support.
11267 case "$opsys" in
11268 sol2-*) : ;;
11270 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
11273 esac
11274 else
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11276 $as_echo "before 6" >&6; }
11281 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11282 HAVE_RSVG=no
11283 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11284 if test "${with_rsvg}" != "no"; then
11285 RSVG_REQUIRED=2.11.0
11286 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11289 succeeded=no
11291 # Extract the first word of "pkg-config", so it can be a program name with args.
11292 set dummy pkg-config; ac_word=$2
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11294 $as_echo_n "checking for $ac_word... " >&6; }
11295 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11296 $as_echo_n "(cached) " >&6
11297 else
11298 case $PKG_CONFIG in
11299 [\\/]* | ?:[\\/]*)
11300 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304 for as_dir in $PATH
11306 IFS=$as_save_IFS
11307 test -z "$as_dir" && as_dir=.
11308 for ac_exec_ext in '' $ac_executable_extensions; do
11309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11310 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11312 break 2
11314 done
11315 done
11316 IFS=$as_save_IFS
11318 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11320 esac
11322 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11323 if test -n "$PKG_CONFIG"; then
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11325 $as_echo "$PKG_CONFIG" >&6; }
11326 else
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328 $as_echo "no" >&6; }
11333 if test "$PKG_CONFIG" = "no" ; then
11335 else
11336 PKG_CONFIG_MIN_VERSION=0.9.0
11337 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11339 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11341 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
11342 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
11343 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
11344 edit_cflags="
11345 s,///*,/,g
11346 s/^/ /
11347 s/ -I/ $isystem/g
11348 s/^ //
11350 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11351 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11353 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11354 succeeded=yes
11355 else
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11357 $as_echo "no" >&6; }
11358 RSVG_CFLAGS=""
11359 RSVG_LIBS=""
11360 ## If we have a custom action on failure, don't print errors, but
11361 ## do set a variable so people can do so.
11362 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11368 else
11369 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11370 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11374 if test $succeeded = yes; then
11375 HAVE_RSVG=yes
11376 else
11383 if test $HAVE_RSVG = yes; then
11385 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11387 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11388 LIBS="$RSVG_LIBS $LIBS"
11393 HAVE_IMAGEMAGICK=no
11394 if test "${HAVE_X11}" = "yes"; then
11395 if test "${with_imagemagick}" != "no"; then
11396 ## 6.2.8 is the earliest version known to work, but earlier versions
11397 ## might work - let us know if you find one.
11398 ## 6.0.7 does not work. See bug#7955.
11399 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
11401 succeeded=no
11403 # Extract the first word of "pkg-config", so it can be a program name with args.
11404 set dummy pkg-config; ac_word=$2
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11406 $as_echo_n "checking for $ac_word... " >&6; }
11407 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11408 $as_echo_n "(cached) " >&6
11409 else
11410 case $PKG_CONFIG in
11411 [\\/]* | ?:[\\/]*)
11412 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11416 for as_dir in $PATH
11418 IFS=$as_save_IFS
11419 test -z "$as_dir" && as_dir=.
11420 for ac_exec_ext in '' $ac_executable_extensions; do
11421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11422 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11424 break 2
11426 done
11427 done
11428 IFS=$as_save_IFS
11430 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11432 esac
11434 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11435 if test -n "$PKG_CONFIG"; then
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11437 $as_echo "$PKG_CONFIG" >&6; }
11438 else
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11440 $as_echo "no" >&6; }
11445 if test "$PKG_CONFIG" = "no" ; then
11447 else
11448 PKG_CONFIG_MIN_VERSION=0.9.0
11449 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11451 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11453 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11454 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11455 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11456 edit_cflags="
11457 s,///*,/,g
11458 s/^/ /
11459 s/ -I/ $isystem/g
11460 s/^ //
11462 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11463 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11465 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11466 succeeded=yes
11467 else
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11469 $as_echo "no" >&6; }
11470 IMAGEMAGICK_CFLAGS=""
11471 IMAGEMAGICK_LIBS=""
11472 ## If we have a custom action on failure, don't print errors, but
11473 ## do set a variable so people can do so.
11474 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
11480 else
11481 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11482 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11486 if test $succeeded = yes; then
11487 HAVE_IMAGEMAGICK=yes
11488 else
11495 if test $HAVE_IMAGEMAGICK = yes; then
11497 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11499 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11500 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11501 for ac_func in MagickExportImagePixels
11502 do :
11503 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
11504 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
11505 cat >>confdefs.h <<_ACEOF
11506 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
11507 _ACEOF
11510 done
11517 HAVE_GTK=no
11518 GTK_OBJ=
11519 if test "${with_gtk3}" = "yes"; then
11520 GLIB_REQUIRED=2.28
11521 GTK_REQUIRED=3.0
11522 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11525 succeeded=no
11527 # Extract the first word of "pkg-config", so it can be a program name with args.
11528 set dummy pkg-config; ac_word=$2
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11530 $as_echo_n "checking for $ac_word... " >&6; }
11531 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11532 $as_echo_n "(cached) " >&6
11533 else
11534 case $PKG_CONFIG in
11535 [\\/]* | ?:[\\/]*)
11536 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11540 for as_dir in $PATH
11542 IFS=$as_save_IFS
11543 test -z "$as_dir" && as_dir=.
11544 for ac_exec_ext in '' $ac_executable_extensions; do
11545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11546 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11548 break 2
11550 done
11551 done
11552 IFS=$as_save_IFS
11554 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11556 esac
11558 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11559 if test -n "$PKG_CONFIG"; then
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11561 $as_echo "$PKG_CONFIG" >&6; }
11562 else
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11564 $as_echo "no" >&6; }
11569 if test "$PKG_CONFIG" = "no" ; then
11570 pkg_check_gtk=no
11571 else
11572 PKG_CONFIG_MIN_VERSION=0.9.0
11573 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11575 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11577 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
11578 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
11579 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
11580 edit_cflags="
11581 s,///*,/,g
11582 s/^/ /
11583 s/ -I/ $isystem/g
11584 s/^ //
11586 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11587 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11589 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11590 succeeded=yes
11591 else
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11593 $as_echo "no" >&6; }
11594 GTK_CFLAGS=""
11595 GTK_LIBS=""
11596 ## If we have a custom action on failure, don't print errors, but
11597 ## do set a variable so people can do so.
11598 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11604 else
11605 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11606 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11610 if test $succeeded = yes; then
11611 pkg_check_gtk=yes
11612 else
11613 pkg_check_gtk=no
11616 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11617 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11620 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11622 GTK_OBJ=emacsgtkfixed.o
11625 if test "$pkg_check_gtk" != "yes"; then
11626 HAVE_GTK=no
11627 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11628 GLIB_REQUIRED=2.10
11629 GTK_REQUIRED=2.10
11630 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11633 succeeded=no
11635 # Extract the first word of "pkg-config", so it can be a program name with args.
11636 set dummy pkg-config; ac_word=$2
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11638 $as_echo_n "checking for $ac_word... " >&6; }
11639 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11640 $as_echo_n "(cached) " >&6
11641 else
11642 case $PKG_CONFIG in
11643 [\\/]* | ?:[\\/]*)
11644 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $PATH
11650 IFS=$as_save_IFS
11651 test -z "$as_dir" && as_dir=.
11652 for ac_exec_ext in '' $ac_executable_extensions; do
11653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11654 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11656 break 2
11658 done
11659 done
11660 IFS=$as_save_IFS
11662 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11664 esac
11666 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11667 if test -n "$PKG_CONFIG"; then
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11669 $as_echo "$PKG_CONFIG" >&6; }
11670 else
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672 $as_echo "no" >&6; }
11677 if test "$PKG_CONFIG" = "no" ; then
11678 pkg_check_gtk=no
11679 else
11680 PKG_CONFIG_MIN_VERSION=0.9.0
11681 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11683 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11685 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
11686 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
11687 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
11688 edit_cflags="
11689 s,///*,/,g
11690 s/^/ /
11691 s/ -I/ $isystem/g
11692 s/^ //
11694 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11695 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11697 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11698 succeeded=yes
11699 else
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11701 $as_echo "no" >&6; }
11702 GTK_CFLAGS=""
11703 GTK_LIBS=""
11704 ## If we have a custom action on failure, don't print errors, but
11705 ## do set a variable so people can do so.
11706 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11712 else
11713 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11714 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11718 if test $succeeded = yes; then
11719 pkg_check_gtk=yes
11720 else
11721 pkg_check_gtk=no
11724 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11725 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11730 if test x"$pkg_check_gtk" = xyes; then
11734 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11735 CFLAGS="$CFLAGS $GTK_CFLAGS"
11736 LIBS="$GTK_LIBS $LIBS"
11737 GTK_COMPILES=no
11738 for ac_func in gtk_main
11739 do :
11740 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11741 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11742 cat >>confdefs.h <<_ACEOF
11743 #define HAVE_GTK_MAIN 1
11744 _ACEOF
11745 GTK_COMPILES=yes
11747 done
11749 if test "${GTK_COMPILES}" != "yes"; then
11750 if test "$USE_X_TOOLKIT" != "maybe"; then
11751 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11753 else
11754 HAVE_GTK=yes
11756 $as_echo "#define USE_GTK 1" >>confdefs.h
11758 GTK_OBJ="gtkutil.o $GTK_OBJ"
11759 USE_X_TOOLKIT=none
11760 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11762 else
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11764 closing open displays. This is no problem if you just use
11765 one display, but if you use more than one and close one of them
11766 Emacs may crash." >&5
11767 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11768 closing open displays. This is no problem if you just use
11769 one display, but if you use more than one and close one of them
11770 Emacs may crash." >&2;}
11771 sleep 3
11779 if test "${HAVE_GTK}" = "yes"; then
11781 if test "$with_toolkit_scroll_bars" != no; then
11782 with_toolkit_scroll_bars=yes
11785 HAVE_GTK_FILE_SELECTION=no
11786 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11787 #include <gtk/gtk.h>
11789 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11790 HAVE_GTK_FILE_SELECTION=yes
11791 else
11792 HAVE_GTK_FILE_SELECTION=no
11795 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11796 for ac_func in gtk_file_selection_new
11797 do :
11798 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11799 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11800 cat >>confdefs.h <<_ACEOF
11801 #define HAVE_GTK_FILE_SELECTION_NEW 1
11802 _ACEOF
11805 done
11810 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11811 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11812 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11813 gtk_orientable_set_orientation \
11814 gtk_window_set_has_resize_grip
11815 do :
11816 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11817 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11818 eval as_val=\$$as_ac_var
11819 if test "x$as_val" = x""yes; then :
11820 cat >>confdefs.h <<_ACEOF
11821 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11822 _ACEOF
11825 done
11829 HAVE_DBUS=no
11830 DBUS_OBJ=
11831 if test "${with_dbus}" = "yes"; then
11833 succeeded=no
11835 # Extract the first word of "pkg-config", so it can be a program name with args.
11836 set dummy pkg-config; ac_word=$2
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11838 $as_echo_n "checking for $ac_word... " >&6; }
11839 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11840 $as_echo_n "(cached) " >&6
11841 else
11842 case $PKG_CONFIG in
11843 [\\/]* | ?:[\\/]*)
11844 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11848 for as_dir in $PATH
11850 IFS=$as_save_IFS
11851 test -z "$as_dir" && as_dir=.
11852 for ac_exec_ext in '' $ac_executable_extensions; do
11853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11854 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11856 break 2
11858 done
11859 done
11860 IFS=$as_save_IFS
11862 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11864 esac
11866 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11867 if test -n "$PKG_CONFIG"; then
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11869 $as_echo "$PKG_CONFIG" >&6; }
11870 else
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872 $as_echo "no" >&6; }
11877 if test "$PKG_CONFIG" = "no" ; then
11878 HAVE_DBUS=no
11879 else
11880 PKG_CONFIG_MIN_VERSION=0.9.0
11881 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11883 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11885 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
11886 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
11887 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
11888 edit_cflags="
11889 s,///*,/,g
11890 s/^/ /
11891 s/ -I/ $isystem/g
11892 s/^ //
11894 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11895 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11897 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11898 succeeded=yes
11899 else
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11901 $as_echo "no" >&6; }
11902 DBUS_CFLAGS=""
11903 DBUS_LIBS=""
11904 ## If we have a custom action on failure, don't print errors, but
11905 ## do set a variable so people can do so.
11906 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11912 else
11913 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11914 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11918 if test $succeeded = yes; then
11919 HAVE_DBUS=yes
11920 else
11921 HAVE_DBUS=no
11924 if test "$HAVE_DBUS" = yes; then
11925 LIBS="$LIBS $DBUS_LIBS"
11927 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11929 for ac_func in dbus_watch_get_unix_fd
11930 do :
11931 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11932 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
11933 cat >>confdefs.h <<_ACEOF
11934 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11935 _ACEOF
11938 done
11940 DBUS_OBJ=dbusbind.o
11945 HAVE_GSETTINGS=no
11946 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11948 succeeded=no
11950 # Extract the first word of "pkg-config", so it can be a program name with args.
11951 set dummy pkg-config; ac_word=$2
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953 $as_echo_n "checking for $ac_word... " >&6; }
11954 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11955 $as_echo_n "(cached) " >&6
11956 else
11957 case $PKG_CONFIG in
11958 [\\/]* | ?:[\\/]*)
11959 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963 for as_dir in $PATH
11965 IFS=$as_save_IFS
11966 test -z "$as_dir" && as_dir=.
11967 for ac_exec_ext in '' $ac_executable_extensions; do
11968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11969 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11971 break 2
11973 done
11974 done
11975 IFS=$as_save_IFS
11977 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11979 esac
11981 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11982 if test -n "$PKG_CONFIG"; then
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11984 $as_echo "$PKG_CONFIG" >&6; }
11985 else
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987 $as_echo "no" >&6; }
11992 if test "$PKG_CONFIG" = "no" ; then
11993 HAVE_GSETTINGS=no
11994 else
11995 PKG_CONFIG_MIN_VERSION=0.9.0
11996 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11998 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
12000 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
12001 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
12002 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
12003 edit_cflags="
12004 s,///*,/,g
12005 s/^/ /
12006 s/ -I/ $isystem/g
12007 s/^ //
12009 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
12010 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
12012 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
12013 succeeded=yes
12014 else
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12016 $as_echo "no" >&6; }
12017 GSETTINGS_CFLAGS=""
12018 GSETTINGS_LIBS=""
12019 ## If we have a custom action on failure, don't print errors, but
12020 ## do set a variable so people can do so.
12021 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
12027 else
12028 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12029 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12033 if test $succeeded = yes; then
12034 HAVE_GSETTINGS=yes
12035 else
12036 HAVE_GSETTINGS=no
12039 if test "$HAVE_GSETTINGS" = "yes"; then
12041 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
12043 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
12044 SETTINGS_LIBS="$GSETTINGS_LIBS"
12048 HAVE_GCONF=no
12049 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12051 succeeded=no
12053 # Extract the first word of "pkg-config", so it can be a program name with args.
12054 set dummy pkg-config; ac_word=$2
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12056 $as_echo_n "checking for $ac_word... " >&6; }
12057 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12058 $as_echo_n "(cached) " >&6
12059 else
12060 case $PKG_CONFIG in
12061 [\\/]* | ?:[\\/]*)
12062 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12066 for as_dir in $PATH
12068 IFS=$as_save_IFS
12069 test -z "$as_dir" && as_dir=.
12070 for ac_exec_ext in '' $ac_executable_extensions; do
12071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12072 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12074 break 2
12076 done
12077 done
12078 IFS=$as_save_IFS
12080 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12082 esac
12084 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12085 if test -n "$PKG_CONFIG"; then
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12087 $as_echo "$PKG_CONFIG" >&6; }
12088 else
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12090 $as_echo "no" >&6; }
12095 if test "$PKG_CONFIG" = "no" ; then
12096 HAVE_GCONF=no
12097 else
12098 PKG_CONFIG_MIN_VERSION=0.9.0
12099 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
12101 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12103 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
12104 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
12105 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
12106 edit_cflags="
12107 s,///*,/,g
12108 s/^/ /
12109 s/ -I/ $isystem/g
12110 s/^ //
12112 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
12113 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
12115 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
12116 succeeded=yes
12117 else
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12119 $as_echo "no" >&6; }
12120 GCONF_CFLAGS=""
12121 GCONF_LIBS=""
12122 ## If we have a custom action on failure, don't print errors, but
12123 ## do set a variable so people can do so.
12124 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12130 else
12131 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12132 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12136 if test $succeeded = yes; then
12137 HAVE_GCONF=yes
12138 else
12139 HAVE_GCONF=no
12142 if test "$HAVE_GCONF" = yes; then
12144 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
12146 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
12147 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
12151 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
12152 SAVE_CFLAGS="$CFLAGS"
12153 SAVE_LIBS="$LIBS"
12154 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
12155 LIBS="$SETTINGS_LIBS $LIBS"
12156 for ac_func in g_type_init
12157 do :
12158 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
12159 if test "x$ac_cv_func_g_type_init" = x""yes; then :
12160 cat >>confdefs.h <<_ACEOF
12161 #define HAVE_G_TYPE_INIT 1
12162 _ACEOF
12165 done
12167 CFLAGS="$SAVE_CFLAGS"
12168 LIBS="$SAVE_LIBS"
12174 HAVE_LIBSELINUX=no
12175 LIBSELINUX_LIBS=
12176 if test "${with_selinux}" = "yes"; then
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
12178 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12179 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
12180 $as_echo_n "(cached) " >&6
12181 else
12182 ac_check_lib_save_LIBS=$LIBS
12183 LIBS="-lselinux $LIBS"
12184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185 /* end confdefs.h. */
12187 /* Override any GCC internal prototype to avoid an error.
12188 Use char because int might match the return type of a GCC
12189 builtin and then its argument prototype would still apply. */
12190 #ifdef __cplusplus
12191 extern "C"
12192 #endif
12193 char lgetfilecon ();
12195 main ()
12197 return lgetfilecon ();
12199 return 0;
12201 _ACEOF
12202 if ac_fn_c_try_link "$LINENO"; then :
12203 ac_cv_lib_selinux_lgetfilecon=yes
12204 else
12205 ac_cv_lib_selinux_lgetfilecon=no
12207 rm -f core conftest.err conftest.$ac_objext \
12208 conftest$ac_exeext conftest.$ac_ext
12209 LIBS=$ac_check_lib_save_LIBS
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12212 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12213 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
12214 HAVE_LIBSELINUX=yes
12215 else
12216 HAVE_LIBSELINUX=no
12219 if test "$HAVE_LIBSELINUX" = yes; then
12221 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
12223 LIBSELINUX_LIBS=-lselinux
12228 HAVE_GNUTLS=no
12229 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
12230 if test "${with_gnutls}" = "yes" ; then
12232 succeeded=no
12234 # Extract the first word of "pkg-config", so it can be a program name with args.
12235 set dummy pkg-config; ac_word=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237 $as_echo_n "checking for $ac_word... " >&6; }
12238 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12239 $as_echo_n "(cached) " >&6
12240 else
12241 case $PKG_CONFIG in
12242 [\\/]* | ?:[\\/]*)
12243 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in $PATH
12249 IFS=$as_save_IFS
12250 test -z "$as_dir" && as_dir=.
12251 for ac_exec_ext in '' $ac_executable_extensions; do
12252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12253 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12255 break 2
12257 done
12258 done
12259 IFS=$as_save_IFS
12261 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12263 esac
12265 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12266 if test -n "$PKG_CONFIG"; then
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12268 $as_echo "$PKG_CONFIG" >&6; }
12269 else
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271 $as_echo "no" >&6; }
12276 if test "$PKG_CONFIG" = "no" ; then
12277 HAVE_GNUTLS=no
12278 else
12279 PKG_CONFIG_MIN_VERSION=0.9.0
12280 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
12282 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
12284 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
12285 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
12286 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
12287 edit_cflags="
12288 s,///*,/,g
12289 s/^/ /
12290 s/ -I/ $isystem/g
12291 s/^ //
12293 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
12294 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
12296 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
12297 succeeded=yes
12298 else
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300 $as_echo "no" >&6; }
12301 LIBGNUTLS_CFLAGS=""
12302 LIBGNUTLS_LIBS=""
12303 ## If we have a custom action on failure, don't print errors, but
12304 ## do set a variable so people can do so.
12305 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
12311 else
12312 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12313 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12317 if test $succeeded = yes; then
12318 HAVE_GNUTLS=yes
12319 else
12320 HAVE_GNUTLS=no
12323 if test "${HAVE_GNUTLS}" = "yes"; then
12325 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
12329 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
12330 LIBS="$LIBGNUTLS_LIBS $LIBS"
12331 for ac_func in gnutls_certificate_set_verify_function
12332 do :
12333 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
12334 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
12335 cat >>confdefs.h <<_ACEOF
12336 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
12337 _ACEOF
12338 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
12340 done
12343 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
12345 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
12353 HAVE_XAW3D=no
12354 LUCID_LIBW=
12355 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12356 if test "$with_xaw3d" != no; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12358 $as_echo_n "checking for xaw3d... " >&6; }
12359 if test "${emacs_cv_xaw3d+set}" = set; then :
12360 $as_echo_n "(cached) " >&6
12361 else
12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363 /* end confdefs.h. */
12365 #include <X11/Intrinsic.h>
12366 #include <X11/Xaw3d/Simple.h>
12368 main ()
12372 return 0;
12374 _ACEOF
12375 if ac_fn_c_try_link "$LINENO"; then :
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12377 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12378 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12379 $as_echo_n "(cached) " >&6
12380 else
12381 ac_check_lib_save_LIBS=$LIBS
12382 LIBS="-lXaw3d $LIBS"
12383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384 /* end confdefs.h. */
12386 /* Override any GCC internal prototype to avoid an error.
12387 Use char because int might match the return type of a GCC
12388 builtin and then its argument prototype would still apply. */
12389 #ifdef __cplusplus
12390 extern "C"
12391 #endif
12392 char XawScrollbarSetThumb ();
12394 main ()
12396 return XawScrollbarSetThumb ();
12398 return 0;
12400 _ACEOF
12401 if ac_fn_c_try_link "$LINENO"; then :
12402 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12403 else
12404 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12406 rm -f core conftest.err conftest.$ac_objext \
12407 conftest$ac_exeext conftest.$ac_ext
12408 LIBS=$ac_check_lib_save_LIBS
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12411 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12412 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
12413 emacs_cv_xaw3d=yes
12414 else
12415 emacs_cv_xaw3d=no
12418 else
12419 emacs_cv_xaw3d=no
12421 rm -f core conftest.err conftest.$ac_objext \
12422 conftest$ac_exeext conftest.$ac_ext
12425 else
12426 emacs_cv_xaw3d=no
12428 if test $emacs_cv_xaw3d = yes; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12430 $as_echo "yes; using Lucid toolkit" >&6; }
12431 USE_X_TOOLKIT=LUCID
12432 HAVE_XAW3D=yes
12433 LUCID_LIBW=-lXaw3d
12435 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12437 else
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439 $as_echo "no" >&6; }
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12441 $as_echo_n "checking for libXaw... " >&6; }
12442 if test "${emacs_cv_xaw+set}" = set; then :
12443 $as_echo_n "(cached) " >&6
12444 else
12445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446 /* end confdefs.h. */
12448 #include <X11/Intrinsic.h>
12449 #include <X11/Xaw/Simple.h>
12451 main ()
12455 return 0;
12457 _ACEOF
12458 if ac_fn_c_try_link "$LINENO"; then :
12459 emacs_cv_xaw=yes
12460 else
12461 emacs_cv_xaw=no
12463 rm -f core conftest.err conftest.$ac_objext \
12464 conftest$ac_exeext conftest.$ac_ext
12467 if test $emacs_cv_xaw = yes; then
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12469 $as_echo "yes; using Lucid toolkit" >&6; }
12470 USE_X_TOOLKIT=LUCID
12471 LUCID_LIBW=-lXaw
12472 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12473 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12474 else
12475 as_fn_error "No X toolkit could be found.
12476 If you are sure you want Emacs compiled without an X toolkit, pass
12477 --with-x-toolkit=no
12478 to configure. Otherwise, install the development libraries for the toolkit
12479 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12484 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12486 LIBXTR6=
12487 if test "${USE_X_TOOLKIT}" != "none"; then
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12489 $as_echo_n "checking X11 toolkit version... " >&6; }
12490 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12491 $as_echo_n "(cached) " >&6
12492 else
12493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h. */
12495 #include <X11/Intrinsic.h>
12497 main ()
12499 #if XtSpecificationRelease < 6
12500 fail;
12501 #endif
12504 return 0;
12506 _ACEOF
12507 if ac_fn_c_try_link "$LINENO"; then :
12508 emacs_cv_x11_toolkit_version_6=yes
12509 else
12510 emacs_cv_x11_toolkit_version_6=no
12512 rm -f core conftest.err conftest.$ac_objext \
12513 conftest$ac_exeext conftest.$ac_ext
12516 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12517 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12519 $as_echo "6 or newer" >&6; }
12521 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12523 LIBXTR6="-lSM -lICE"
12524 case "$opsys" in
12525 ## Use libw.a along with X11R6 Xt.
12526 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
12527 esac
12528 else
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12530 $as_echo "before 6" >&6; }
12533 OLDLIBS="$LIBS"
12534 if test x$HAVE_X11XTR6 = xyes; then
12535 LIBS="-lXt -lSM -lICE $LIBS"
12536 else
12537 LIBS="-lXt $LIBS"
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12540 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12541 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12542 $as_echo_n "(cached) " >&6
12543 else
12544 ac_check_lib_save_LIBS=$LIBS
12545 LIBS="-lXmu $LIBS"
12546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h. */
12549 /* Override any GCC internal prototype to avoid an error.
12550 Use char because int might match the return type of a GCC
12551 builtin and then its argument prototype would still apply. */
12552 #ifdef __cplusplus
12553 extern "C"
12554 #endif
12555 char XmuConvertStandardSelection ();
12557 main ()
12559 return XmuConvertStandardSelection ();
12561 return 0;
12563 _ACEOF
12564 if ac_fn_c_try_link "$LINENO"; then :
12565 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12566 else
12567 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12569 rm -f core conftest.err conftest.$ac_objext \
12570 conftest$ac_exeext conftest.$ac_ext
12571 LIBS=$ac_check_lib_save_LIBS
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12574 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12575 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12576 cat >>confdefs.h <<_ACEOF
12577 #define HAVE_LIBXMU 1
12578 _ACEOF
12580 LIBS="-lXmu $LIBS"
12584 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12588 LIBXMU=-lXmu
12589 case $opsys in
12590 ## These systems don't supply Xmu.
12591 hpux* | aix4-2 )
12592 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12594 esac
12597 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12598 if test "${HAVE_X11}" = "yes"; then
12599 if test "${USE_X_TOOLKIT}" != "none"; then
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12601 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12602 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12603 $as_echo_n "(cached) " >&6
12604 else
12605 ac_check_lib_save_LIBS=$LIBS
12606 LIBS="-lXext $LIBS"
12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h. */
12610 /* Override any GCC internal prototype to avoid an error.
12611 Use char because int might match the return type of a GCC
12612 builtin and then its argument prototype would still apply. */
12613 #ifdef __cplusplus
12614 extern "C"
12615 #endif
12616 char XShapeQueryExtension ();
12618 main ()
12620 return XShapeQueryExtension ();
12622 return 0;
12624 _ACEOF
12625 if ac_fn_c_try_link "$LINENO"; then :
12626 ac_cv_lib_Xext_XShapeQueryExtension=yes
12627 else
12628 ac_cv_lib_Xext_XShapeQueryExtension=no
12630 rm -f core conftest.err conftest.$ac_objext \
12631 conftest$ac_exeext conftest.$ac_ext
12632 LIBS=$ac_check_lib_save_LIBS
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12635 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12636 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12637 cat >>confdefs.h <<_ACEOF
12638 #define HAVE_LIBXEXT 1
12639 _ACEOF
12641 LIBS="-lXext $LIBS"
12648 LIBXP=
12649 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12651 $as_echo_n "checking for Motif version 2.1... " >&6; }
12652 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12653 $as_echo_n "(cached) " >&6
12654 else
12655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656 /* end confdefs.h. */
12657 #include <Xm/Xm.h>
12659 main ()
12661 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12662 int x = 5;
12663 #else
12664 Motif version prior to 2.1.
12665 #endif
12667 return 0;
12669 _ACEOF
12670 if ac_fn_c_try_compile "$LINENO"; then :
12671 emacs_cv_motif_version_2_1=yes
12672 else
12673 emacs_cv_motif_version_2_1=no
12675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12678 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12679 if test $emacs_cv_motif_version_2_1 = yes; then
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12681 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12682 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12683 $as_echo_n "(cached) " >&6
12684 else
12685 ac_check_lib_save_LIBS=$LIBS
12686 LIBS="-lXp $LIBS"
12687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12688 /* end confdefs.h. */
12690 /* Override any GCC internal prototype to avoid an error.
12691 Use char because int might match the return type of a GCC
12692 builtin and then its argument prototype would still apply. */
12693 #ifdef __cplusplus
12694 extern "C"
12695 #endif
12696 char XpCreateContext ();
12698 main ()
12700 return XpCreateContext ();
12702 return 0;
12704 _ACEOF
12705 if ac_fn_c_try_link "$LINENO"; then :
12706 ac_cv_lib_Xp_XpCreateContext=yes
12707 else
12708 ac_cv_lib_Xp_XpCreateContext=no
12710 rm -f core conftest.err conftest.$ac_objext \
12711 conftest$ac_exeext conftest.$ac_ext
12712 LIBS=$ac_check_lib_save_LIBS
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12715 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12716 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12717 LIBXP=-lXp
12720 else
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12722 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12723 if test "${emacs_cv_lesstif+set}" = set; then :
12724 $as_echo_n "(cached) " >&6
12725 else
12726 # We put this in CFLAGS temporarily to precede other -I options
12727 # that might be in CFLAGS temporarily.
12728 # We put this in CPPFLAGS where it precedes the other -I options.
12729 OLD_CPPFLAGS=$CPPFLAGS
12730 OLD_CFLAGS=$CFLAGS
12731 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12732 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h. */
12735 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12737 main ()
12739 int x = 5;
12741 return 0;
12743 _ACEOF
12744 if ac_fn_c_try_compile "$LINENO"; then :
12745 emacs_cv_lesstif=yes
12746 else
12747 emacs_cv_lesstif=no
12749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12752 $as_echo "$emacs_cv_lesstif" >&6; }
12753 if test $emacs_cv_lesstif = yes; then
12754 # Make sure this -I option remains in CPPFLAGS after it is set
12755 # back to REAL_CPPFLAGS.
12756 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12757 # have those other -I options anyway. Ultimately, having this
12758 # directory ultimately in CPPFLAGS will be enough.
12759 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12760 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12761 else
12762 CFLAGS=$OLD_CFLAGS
12763 CPPFLAGS=$OLD_CPPFLAGS
12766 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12767 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12769 else
12770 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12777 USE_TOOLKIT_SCROLL_BARS=no
12778 if test "${with_toolkit_scroll_bars}" != "no"; then
12779 if test "${USE_X_TOOLKIT}" != "none"; then
12780 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12781 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12783 HAVE_XAW3D=no
12784 USE_TOOLKIT_SCROLL_BARS=yes
12785 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12786 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12788 USE_TOOLKIT_SCROLL_BARS=yes
12790 elif test "${HAVE_GTK}" = "yes"; then
12791 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12793 USE_TOOLKIT_SCROLL_BARS=yes
12794 elif test "${HAVE_NS}" = "yes"; then
12795 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12797 USE_TOOLKIT_SCROLL_BARS=yes
12801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802 /* end confdefs.h. */
12804 #include <X11/Xlib.h>
12805 #include <X11/Xresource.h>
12807 main ()
12809 XIMProc callback;
12811 return 0;
12813 _ACEOF
12814 if ac_fn_c_try_compile "$LINENO"; then :
12815 HAVE_XIM=yes
12817 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12819 else
12820 HAVE_XIM=no
12822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12825 if test "${with_xim}" != "no"; then
12827 $as_echo "#define USE_XIM 1" >>confdefs.h
12832 if test "${HAVE_XIM}" != "no"; then
12833 late_CFLAGS=$CFLAGS
12834 if test "$GCC" = yes; then
12835 CFLAGS="$CFLAGS --pedantic-errors"
12837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12838 /* end confdefs.h. */
12840 #include <X11/Xlib.h>
12841 #include <X11/Xresource.h>
12843 main ()
12845 Display *display;
12846 XrmDatabase db;
12847 char *res_name;
12848 char *res_class;
12849 XIMProc callback;
12850 XPointer *client_data;
12851 #ifndef __GNUC__
12852 /* If we're not using GCC, it's probably not XFree86, and this is
12853 probably right, but we can't use something like --pedantic-errors. */
12854 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12855 char*, XIMProc, XPointer*);
12856 #endif
12857 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12858 client_data);
12860 return 0;
12862 _ACEOF
12863 if ac_fn_c_try_compile "$LINENO"; then :
12864 emacs_cv_arg6_star=yes
12866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12867 if test "$emacs_cv_arg6_star" = yes; then
12868 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12870 else
12871 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12874 CFLAGS=$late_CFLAGS
12877 ### Start of font-backend (under any platform) section.
12878 # (nothing here yet -- this is a placeholder)
12879 ### End of font-backend (under any platform) section.
12881 ### Start of font-backend (under X11) section.
12882 if test "${HAVE_X11}" = "yes"; then
12884 succeeded=no
12886 # Extract the first word of "pkg-config", so it can be a program name with args.
12887 set dummy pkg-config; ac_word=$2
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12889 $as_echo_n "checking for $ac_word... " >&6; }
12890 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12891 $as_echo_n "(cached) " >&6
12892 else
12893 case $PKG_CONFIG in
12894 [\\/]* | ?:[\\/]*)
12895 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12899 for as_dir in $PATH
12901 IFS=$as_save_IFS
12902 test -z "$as_dir" && as_dir=.
12903 for ac_exec_ext in '' $ac_executable_extensions; do
12904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12905 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12907 break 2
12909 done
12910 done
12911 IFS=$as_save_IFS
12913 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12915 esac
12917 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12918 if test -n "$PKG_CONFIG"; then
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12920 $as_echo "$PKG_CONFIG" >&6; }
12921 else
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923 $as_echo "no" >&6; }
12928 if test "$PKG_CONFIG" = "no" ; then
12929 HAVE_FC=no
12930 else
12931 PKG_CONFIG_MIN_VERSION=0.9.0
12932 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12934 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12936 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
12937 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
12938 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
12939 edit_cflags="
12940 s,///*,/,g
12941 s/^/ /
12942 s/ -I/ $isystem/g
12943 s/^ //
12945 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12946 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12948 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12949 succeeded=yes
12950 else
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12952 $as_echo "no" >&6; }
12953 FONTCONFIG_CFLAGS=""
12954 FONTCONFIG_LIBS=""
12955 ## If we have a custom action on failure, don't print errors, but
12956 ## do set a variable so people can do so.
12957 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12963 else
12964 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12965 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12969 if test $succeeded = yes; then
12970 HAVE_FC=yes
12971 else
12972 HAVE_FC=no
12976 ## Use -lXft if available, unless `--with-xft=no'.
12977 HAVE_XFT=maybe
12978 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12979 with_xft="no";
12981 if test "x${with_xft}" != "xno"; then
12984 succeeded=no
12986 # Extract the first word of "pkg-config", so it can be a program name with args.
12987 set dummy pkg-config; ac_word=$2
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12989 $as_echo_n "checking for $ac_word... " >&6; }
12990 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12991 $as_echo_n "(cached) " >&6
12992 else
12993 case $PKG_CONFIG in
12994 [\\/]* | ?:[\\/]*)
12995 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12999 for as_dir in $PATH
13001 IFS=$as_save_IFS
13002 test -z "$as_dir" && as_dir=.
13003 for ac_exec_ext in '' $ac_executable_extensions; do
13004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13005 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13007 break 2
13009 done
13010 done
13011 IFS=$as_save_IFS
13013 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13015 esac
13017 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13018 if test -n "$PKG_CONFIG"; then
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13020 $as_echo "$PKG_CONFIG" >&6; }
13021 else
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13023 $as_echo "no" >&6; }
13028 if test "$PKG_CONFIG" = "no" ; then
13029 HAVE_XFT=no
13030 else
13031 PKG_CONFIG_MIN_VERSION=0.9.0
13032 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
13034 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13036 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
13037 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
13038 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
13039 edit_cflags="
13040 s,///*,/,g
13041 s/^/ /
13042 s/ -I/ $isystem/g
13043 s/^ //
13045 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
13046 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
13048 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
13049 succeeded=yes
13050 else
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052 $as_echo "no" >&6; }
13053 XFT_CFLAGS=""
13054 XFT_LIBS=""
13055 ## If we have a custom action on failure, don't print errors, but
13056 ## do set a variable so people can do so.
13057 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13063 else
13064 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13065 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13069 if test $succeeded = yes; then
13071 else
13072 HAVE_XFT=no
13075 ## Because xftfont.c uses XRenderQueryExtension, we also
13076 ## need to link to -lXrender.
13077 HAVE_XRENDER=no
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
13079 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13080 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
13081 $as_echo_n "(cached) " >&6
13082 else
13083 ac_check_lib_save_LIBS=$LIBS
13084 LIBS="-lXrender $LIBS"
13085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086 /* end confdefs.h. */
13088 /* Override any GCC internal prototype to avoid an error.
13089 Use char because int might match the return type of a GCC
13090 builtin and then its argument prototype would still apply. */
13091 #ifdef __cplusplus
13092 extern "C"
13093 #endif
13094 char XRenderQueryExtension ();
13096 main ()
13098 return XRenderQueryExtension ();
13100 return 0;
13102 _ACEOF
13103 if ac_fn_c_try_link "$LINENO"; then :
13104 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13105 else
13106 ac_cv_lib_Xrender_XRenderQueryExtension=no
13108 rm -f core conftest.err conftest.$ac_objext \
13109 conftest$ac_exeext conftest.$ac_ext
13110 LIBS=$ac_check_lib_save_LIBS
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13113 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13114 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
13115 HAVE_XRENDER=yes
13118 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13119 OLD_CPPFLAGS="$CPPFLAGS"
13120 OLD_CFLAGS="$CFLAGS"
13121 OLD_LIBS="$LIBS"
13122 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13123 CFLAGS="$CFLAGS $XFT_CFLAGS"
13124 XFT_LIBS="-lXrender $XFT_LIBS"
13125 LIBS="$XFT_LIBS $LIBS"
13126 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
13127 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
13129 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13130 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
13131 $as_echo_n "(cached) " >&6
13132 else
13133 ac_check_lib_save_LIBS=$LIBS
13134 LIBS="-lXft $XFT_LIBS $LIBS"
13135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h. */
13138 /* Override any GCC internal prototype to avoid an error.
13139 Use char because int might match the return type of a GCC
13140 builtin and then its argument prototype would still apply. */
13141 #ifdef __cplusplus
13142 extern "C"
13143 #endif
13144 char XftFontOpen ();
13146 main ()
13148 return XftFontOpen ();
13150 return 0;
13152 _ACEOF
13153 if ac_fn_c_try_link "$LINENO"; then :
13154 ac_cv_lib_Xft_XftFontOpen=yes
13155 else
13156 ac_cv_lib_Xft_XftFontOpen=no
13158 rm -f core conftest.err conftest.$ac_objext \
13159 conftest$ac_exeext conftest.$ac_ext
13160 LIBS=$ac_check_lib_save_LIBS
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13163 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13164 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
13165 HAVE_XFT=yes
13172 if test "${HAVE_XFT}" = "yes"; then
13174 $as_echo "#define HAVE_XFT 1" >>confdefs.h
13177 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13178 else
13179 CPPFLAGS="$OLD_CPPFLAGS"
13180 CFLAGS="$OLD_CFLAGS"
13181 LIBS="$OLD_LIBS"
13182 fi # "${HAVE_XFT}" = "yes"
13183 fi # "$HAVE_XFT" != no
13184 fi # "x${with_xft}" != "xno"
13186 ## We used to allow building with FreeType and without Xft.
13187 ## However, the ftx font backend driver is not in good shape.
13188 if test "$HAVE_XFT" != "yes"; then
13189 HAVE_XFT=no
13190 HAVE_FREETYPE=no
13191 else
13193 succeeded=no
13195 # Extract the first word of "pkg-config", so it can be a program name with args.
13196 set dummy pkg-config; ac_word=$2
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13198 $as_echo_n "checking for $ac_word... " >&6; }
13199 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13200 $as_echo_n "(cached) " >&6
13201 else
13202 case $PKG_CONFIG in
13203 [\\/]* | ?:[\\/]*)
13204 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13208 for as_dir in $PATH
13210 IFS=$as_save_IFS
13211 test -z "$as_dir" && as_dir=.
13212 for ac_exec_ext in '' $ac_executable_extensions; do
13213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13214 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13216 break 2
13218 done
13219 done
13220 IFS=$as_save_IFS
13222 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13224 esac
13226 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13227 if test -n "$PKG_CONFIG"; then
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13229 $as_echo "$PKG_CONFIG" >&6; }
13230 else
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13232 $as_echo "no" >&6; }
13237 if test "$PKG_CONFIG" = "no" ; then
13238 HAVE_FREETYPE=no
13239 else
13240 PKG_CONFIG_MIN_VERSION=0.9.0
13241 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
13243 $as_echo_n "checking for freetype2... " >&6; }
13245 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
13246 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
13247 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
13248 edit_cflags="
13249 s,///*,/,g
13250 s/^/ /
13251 s/ -I/ $isystem/g
13252 s/^ //
13254 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
13255 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
13257 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
13258 succeeded=yes
13259 else
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13261 $as_echo "no" >&6; }
13262 FREETYPE_CFLAGS=""
13263 FREETYPE_LIBS=""
13264 ## If we have a custom action on failure, don't print errors, but
13265 ## do set a variable so people can do so.
13266 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13272 else
13273 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13274 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13278 if test $succeeded = yes; then
13279 HAVE_FREETYPE=yes
13280 else
13281 HAVE_FREETYPE=no
13285 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
13288 HAVE_LIBOTF=no
13289 if test "${HAVE_FREETYPE}" = "yes"; then
13291 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
13293 if test "${with_libotf}" != "no"; then
13295 succeeded=no
13297 # Extract the first word of "pkg-config", so it can be a program name with args.
13298 set dummy pkg-config; ac_word=$2
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13300 $as_echo_n "checking for $ac_word... " >&6; }
13301 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13302 $as_echo_n "(cached) " >&6
13303 else
13304 case $PKG_CONFIG in
13305 [\\/]* | ?:[\\/]*)
13306 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13310 for as_dir in $PATH
13312 IFS=$as_save_IFS
13313 test -z "$as_dir" && as_dir=.
13314 for ac_exec_ext in '' $ac_executable_extensions; do
13315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13316 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13318 break 2
13320 done
13321 done
13322 IFS=$as_save_IFS
13324 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13326 esac
13328 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13329 if test -n "$PKG_CONFIG"; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13331 $as_echo "$PKG_CONFIG" >&6; }
13332 else
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334 $as_echo "no" >&6; }
13339 if test "$PKG_CONFIG" = "no" ; then
13340 HAVE_LIBOTF=no
13341 else
13342 PKG_CONFIG_MIN_VERSION=0.9.0
13343 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13345 $as_echo_n "checking for libotf... " >&6; }
13347 if $PKG_CONFIG --exists "libotf" 2>&5 &&
13348 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
13349 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
13350 edit_cflags="
13351 s,///*,/,g
13352 s/^/ /
13353 s/ -I/ $isystem/g
13354 s/^ //
13356 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13357 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13359 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13360 succeeded=yes
13361 else
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363 $as_echo "no" >&6; }
13364 LIBOTF_CFLAGS=""
13365 LIBOTF_LIBS=""
13366 ## If we have a custom action on failure, don't print errors, but
13367 ## do set a variable so people can do so.
13368 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13374 else
13375 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13376 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13380 if test $succeeded = yes; then
13381 HAVE_LIBOTF=yes
13382 else
13383 HAVE_LIBOTF=no
13386 if test "$HAVE_LIBOTF" = "yes"; then
13388 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13391 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13392 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13393 $as_echo_n "(cached) " >&6
13394 else
13395 ac_check_lib_save_LIBS=$LIBS
13396 LIBS="-lotf $LIBS"
13397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398 /* end confdefs.h. */
13400 /* Override any GCC internal prototype to avoid an error.
13401 Use char because int might match the return type of a GCC
13402 builtin and then its argument prototype would still apply. */
13403 #ifdef __cplusplus
13404 extern "C"
13405 #endif
13406 char OTF_get_variation_glyphs ();
13408 main ()
13410 return OTF_get_variation_glyphs ();
13412 return 0;
13414 _ACEOF
13415 if ac_fn_c_try_link "$LINENO"; then :
13416 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13417 else
13418 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13420 rm -f core conftest.err conftest.$ac_objext \
13421 conftest$ac_exeext conftest.$ac_ext
13422 LIBS=$ac_check_lib_save_LIBS
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13425 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13426 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
13427 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13428 else
13429 HAVE_OTF_GET_VARIATION_GLYPHS=no
13432 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13434 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13441 HAVE_M17N_FLT=no
13442 if test "${HAVE_LIBOTF}" = yes; then
13443 if test "${with_m17n_flt}" != "no"; then
13445 succeeded=no
13447 # Extract the first word of "pkg-config", so it can be a program name with args.
13448 set dummy pkg-config; ac_word=$2
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13450 $as_echo_n "checking for $ac_word... " >&6; }
13451 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13452 $as_echo_n "(cached) " >&6
13453 else
13454 case $PKG_CONFIG in
13455 [\\/]* | ?:[\\/]*)
13456 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13460 for as_dir in $PATH
13462 IFS=$as_save_IFS
13463 test -z "$as_dir" && as_dir=.
13464 for ac_exec_ext in '' $ac_executable_extensions; do
13465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13466 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13468 break 2
13470 done
13471 done
13472 IFS=$as_save_IFS
13474 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13476 esac
13478 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13479 if test -n "$PKG_CONFIG"; then
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13481 $as_echo "$PKG_CONFIG" >&6; }
13482 else
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13484 $as_echo "no" >&6; }
13489 if test "$PKG_CONFIG" = "no" ; then
13490 HAVE_M17N_FLT=no
13491 else
13492 PKG_CONFIG_MIN_VERSION=0.9.0
13493 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13495 $as_echo_n "checking for m17n-flt... " >&6; }
13497 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
13498 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
13499 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
13500 edit_cflags="
13501 s,///*,/,g
13502 s/^/ /
13503 s/ -I/ $isystem/g
13504 s/^ //
13506 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13507 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13509 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13510 succeeded=yes
13511 else
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13513 $as_echo "no" >&6; }
13514 M17N_FLT_CFLAGS=""
13515 M17N_FLT_LIBS=""
13516 ## If we have a custom action on failure, don't print errors, but
13517 ## do set a variable so people can do so.
13518 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13524 else
13525 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13526 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13530 if test $succeeded = yes; then
13531 HAVE_M17N_FLT=yes
13532 else
13533 HAVE_M17N_FLT=no
13536 if test "$HAVE_M17N_FLT" = "yes"; then
13538 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13543 else
13544 HAVE_XFT=no
13545 HAVE_FREETYPE=no
13546 HAVE_LIBOTF=no
13547 HAVE_M17N_FLT=no
13550 ### End of font-backend (under X11) section.
13561 ### Use -lXpm if available, unless `--with-xpm=no'.
13562 HAVE_XPM=no
13563 LIBXPM=
13564 if test "${HAVE_X11}" = "yes"; then
13565 if test "${with_xpm}" != "no"; then
13566 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13567 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13569 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13570 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13571 $as_echo_n "(cached) " >&6
13572 else
13573 ac_check_lib_save_LIBS=$LIBS
13574 LIBS="-lXpm -lX11 $LIBS"
13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h. */
13578 /* Override any GCC internal prototype to avoid an error.
13579 Use char because int might match the return type of a GCC
13580 builtin and then its argument prototype would still apply. */
13581 #ifdef __cplusplus
13582 extern "C"
13583 #endif
13584 char XpmReadFileToPixmap ();
13586 main ()
13588 return XpmReadFileToPixmap ();
13590 return 0;
13592 _ACEOF
13593 if ac_fn_c_try_link "$LINENO"; then :
13594 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13595 else
13596 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13598 rm -f core conftest.err conftest.$ac_objext \
13599 conftest$ac_exeext conftest.$ac_ext
13600 LIBS=$ac_check_lib_save_LIBS
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13603 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13604 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13605 HAVE_XPM=yes
13611 if test "${HAVE_XPM}" = "yes"; then
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13613 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13615 /* end confdefs.h. */
13616 #include "X11/xpm.h"
13617 #ifndef XpmReturnAllocPixels
13618 no_return_alloc_pixels
13619 #endif
13621 _ACEOF
13622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13623 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13624 HAVE_XPM=no
13625 else
13626 HAVE_XPM=yes
13628 rm -f conftest*
13631 if test "${HAVE_XPM}" = "yes"; then
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13633 $as_echo "yes" >&6; }
13634 else
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13636 $as_echo "no" >&6; }
13641 if test "${HAVE_XPM}" = "yes"; then
13643 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13645 LIBXPM=-lXpm
13650 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13651 HAVE_JPEG=no
13652 LIBJPEG=
13653 if test "${HAVE_X11}" = "yes"; then
13654 if test "${with_jpeg}" != "no"; then
13655 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13656 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13658 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13659 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13660 $as_echo_n "(cached) " >&6
13661 else
13662 ac_check_lib_save_LIBS=$LIBS
13663 LIBS="-ljpeg $LIBS"
13664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13665 /* end confdefs.h. */
13667 /* Override any GCC internal prototype to avoid an error.
13668 Use char because int might match the return type of a GCC
13669 builtin and then its argument prototype would still apply. */
13670 #ifdef __cplusplus
13671 extern "C"
13672 #endif
13673 char jpeg_destroy_compress ();
13675 main ()
13677 return jpeg_destroy_compress ();
13679 return 0;
13681 _ACEOF
13682 if ac_fn_c_try_link "$LINENO"; then :
13683 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13684 else
13685 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13687 rm -f core conftest.err conftest.$ac_objext \
13688 conftest$ac_exeext conftest.$ac_ext
13689 LIBS=$ac_check_lib_save_LIBS
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13692 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13693 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13694 HAVE_JPEG=yes
13702 if test "${HAVE_JPEG}" = "yes"; then
13703 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13706 /* end confdefs.h. */
13707 #include <jpeglib.h>
13708 version=JPEG_LIB_VERSION
13710 _ACEOF
13711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13712 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13713 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13715 else
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13717 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13718 HAVE_JPEG=no
13720 rm -f conftest*
13723 if test "${HAVE_JPEG}" = "yes"; then
13724 LIBJPEG=-ljpeg
13729 ### Use -lpng if available, unless `--with-png=no'.
13730 HAVE_PNG=no
13731 LIBPNG=
13732 if test "${HAVE_X11}" = "yes"; then
13733 if test "${with_png}" != "no"; then
13734 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13735 # in /usr/include/libpng.
13736 for ac_header in png.h libpng/png.h
13737 do :
13738 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13739 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13740 eval as_val=\$$as_ac_Header
13741 if test "x$as_val" = x""yes; then :
13742 cat >>confdefs.h <<_ACEOF
13743 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13744 _ACEOF
13748 done
13750 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13752 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13753 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13754 $as_echo_n "(cached) " >&6
13755 else
13756 ac_check_lib_save_LIBS=$LIBS
13757 LIBS="-lpng -lz -lm $LIBS"
13758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13759 /* end confdefs.h. */
13761 /* Override any GCC internal prototype to avoid an error.
13762 Use char because int might match the return type of a GCC
13763 builtin and then its argument prototype would still apply. */
13764 #ifdef __cplusplus
13765 extern "C"
13766 #endif
13767 char png_get_channels ();
13769 main ()
13771 return png_get_channels ();
13773 return 0;
13775 _ACEOF
13776 if ac_fn_c_try_link "$LINENO"; then :
13777 ac_cv_lib_png_png_get_channels=yes
13778 else
13779 ac_cv_lib_png_png_get_channels=no
13781 rm -f core conftest.err conftest.$ac_objext \
13782 conftest$ac_exeext conftest.$ac_ext
13783 LIBS=$ac_check_lib_save_LIBS
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13786 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13787 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13788 HAVE_PNG=yes
13794 if test "${HAVE_PNG}" = "yes"; then
13796 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13798 LIBPNG="-lpng -lz -lm"
13803 ### Use -ltiff if available, unless `--with-tiff=no'.
13804 HAVE_TIFF=no
13805 LIBTIFF=
13806 if test "${HAVE_X11}" = "yes"; then
13807 if test "${with_tiff}" != "no"; then
13808 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13809 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13810 tifflibs="-lz -lm"
13811 # At least one tiff package requires the jpeg library.
13812 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13814 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13815 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13816 $as_echo_n "(cached) " >&6
13817 else
13818 ac_check_lib_save_LIBS=$LIBS
13819 LIBS="-ltiff $tifflibs $LIBS"
13820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13821 /* end confdefs.h. */
13823 /* Override any GCC internal prototype to avoid an error.
13824 Use char because int might match the return type of a GCC
13825 builtin and then its argument prototype would still apply. */
13826 #ifdef __cplusplus
13827 extern "C"
13828 #endif
13829 char TIFFGetVersion ();
13831 main ()
13833 return TIFFGetVersion ();
13835 return 0;
13837 _ACEOF
13838 if ac_fn_c_try_link "$LINENO"; then :
13839 ac_cv_lib_tiff_TIFFGetVersion=yes
13840 else
13841 ac_cv_lib_tiff_TIFFGetVersion=no
13843 rm -f core conftest.err conftest.$ac_objext \
13844 conftest$ac_exeext conftest.$ac_ext
13845 LIBS=$ac_check_lib_save_LIBS
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13848 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13849 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13850 HAVE_TIFF=yes
13858 if test "${HAVE_TIFF}" = "yes"; then
13860 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13862 LIBTIFF=-ltiff
13867 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13868 HAVE_GIF=no
13869 LIBGIF=
13870 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13871 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13872 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13873 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13874 # Earlier versions can crash Emacs.
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13876 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13877 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13878 $as_echo_n "(cached) " >&6
13879 else
13880 ac_check_lib_save_LIBS=$LIBS
13881 LIBS="-lgif $LIBS"
13882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13883 /* end confdefs.h. */
13885 /* Override any GCC internal prototype to avoid an error.
13886 Use char because int might match the return type of a GCC
13887 builtin and then its argument prototype would still apply. */
13888 #ifdef __cplusplus
13889 extern "C"
13890 #endif
13891 char EGifPutExtensionLast ();
13893 main ()
13895 return EGifPutExtensionLast ();
13897 return 0;
13899 _ACEOF
13900 if ac_fn_c_try_link "$LINENO"; then :
13901 ac_cv_lib_gif_EGifPutExtensionLast=yes
13902 else
13903 ac_cv_lib_gif_EGifPutExtensionLast=no
13905 rm -f core conftest.err conftest.$ac_objext \
13906 conftest$ac_exeext conftest.$ac_ext
13907 LIBS=$ac_check_lib_save_LIBS
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13910 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13911 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13912 HAVE_GIF=yes
13913 else
13914 HAVE_GIF=maybe
13921 if test "$HAVE_GIF" = yes; then
13922 LIBGIF=-lgif
13923 elif test "$HAVE_GIF" = maybe; then
13924 # If gif_lib.h but no libgif, try libungif.
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13926 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13927 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13928 $as_echo_n "(cached) " >&6
13929 else
13930 ac_check_lib_save_LIBS=$LIBS
13931 LIBS="-lungif $LIBS"
13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h. */
13935 /* Override any GCC internal prototype to avoid an error.
13936 Use char because int might match the return type of a GCC
13937 builtin and then its argument prototype would still apply. */
13938 #ifdef __cplusplus
13939 extern "C"
13940 #endif
13941 char EGifPutExtensionLast ();
13943 main ()
13945 return EGifPutExtensionLast ();
13947 return 0;
13949 _ACEOF
13950 if ac_fn_c_try_link "$LINENO"; then :
13951 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13952 else
13953 ac_cv_lib_ungif_EGifPutExtensionLast=no
13955 rm -f core conftest.err conftest.$ac_objext \
13956 conftest$ac_exeext conftest.$ac_ext
13957 LIBS=$ac_check_lib_save_LIBS
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13960 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13961 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13962 HAVE_GIF=yes
13963 else
13964 HAVE_GIF=no
13967 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13970 if test "${HAVE_GIF}" = "yes"; then
13972 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13978 if test "${HAVE_X11}" = "yes"; then
13979 MISSING=""
13980 WITH_NO=""
13981 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13982 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13983 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13984 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13985 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13986 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13987 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13988 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13989 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13990 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13992 if test "X${MISSING}" != X; then
13993 as_fn_error "The following required libraries were not found:
13994 $MISSING
13995 Maybe some development libraries/packages are missing?
13996 If you don't want to link with them give
13997 $WITH_NO
13998 as options to configure" "$LINENO" 5
14002 ### Use -lgpm if available, unless `--with-gpm=no'.
14003 HAVE_GPM=no
14004 LIBGPM=
14005 if test "${with_gpm}" != "no"; then
14006 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
14007 if test "x$ac_cv_header_gpm_h" = x""yes; then :
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
14009 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
14010 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
14011 $as_echo_n "(cached) " >&6
14012 else
14013 ac_check_lib_save_LIBS=$LIBS
14014 LIBS="-lgpm $LIBS"
14015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14016 /* end confdefs.h. */
14018 /* Override any GCC internal prototype to avoid an error.
14019 Use char because int might match the return type of a GCC
14020 builtin and then its argument prototype would still apply. */
14021 #ifdef __cplusplus
14022 extern "C"
14023 #endif
14024 char Gpm_Open ();
14026 main ()
14028 return Gpm_Open ();
14030 return 0;
14032 _ACEOF
14033 if ac_fn_c_try_link "$LINENO"; then :
14034 ac_cv_lib_gpm_Gpm_Open=yes
14035 else
14036 ac_cv_lib_gpm_Gpm_Open=no
14038 rm -f core conftest.err conftest.$ac_objext \
14039 conftest$ac_exeext conftest.$ac_ext
14040 LIBS=$ac_check_lib_save_LIBS
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14043 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
14044 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
14045 HAVE_GPM=yes
14052 if test "${HAVE_GPM}" = "yes"; then
14054 $as_echo "#define HAVE_GPM 1" >>confdefs.h
14056 LIBGPM=-lgpm
14061 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
14062 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
14064 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
14070 GNUSTEP_CFLAGS=
14071 ### Use NeXTstep API to implement GUI.
14072 if test "${HAVE_NS}" = "yes"; then
14074 $as_echo "#define HAVE_NS 1" >>confdefs.h
14076 if test "${NS_IMPL_COCOA}" = "yes"; then
14078 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
14081 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14083 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
14085 # See also .m.o rule in Makefile.in */
14086 # FIXME: are all these flags really needed? Document here why. */
14087 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
14088 ## Extra CFLAGS applied to src/*.m files.
14089 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"
14091 # We also have mouse menus.
14092 HAVE_MENUS=yes
14093 OTHER_FILES=ns-app
14097 ### Use session management (-lSM -lICE) if available
14098 HAVE_X_SM=no
14099 LIBXSM=
14100 if test "${HAVE_X11}" = "yes"; then
14101 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
14102 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
14104 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
14105 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
14106 $as_echo_n "(cached) " >&6
14107 else
14108 ac_check_lib_save_LIBS=$LIBS
14109 LIBS="-lSM -lICE $LIBS"
14110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14111 /* end confdefs.h. */
14113 /* Override any GCC internal prototype to avoid an error.
14114 Use char because int might match the return type of a GCC
14115 builtin and then its argument prototype would still apply. */
14116 #ifdef __cplusplus
14117 extern "C"
14118 #endif
14119 char SmcOpenConnection ();
14121 main ()
14123 return SmcOpenConnection ();
14125 return 0;
14127 _ACEOF
14128 if ac_fn_c_try_link "$LINENO"; then :
14129 ac_cv_lib_SM_SmcOpenConnection=yes
14130 else
14131 ac_cv_lib_SM_SmcOpenConnection=no
14133 rm -f core conftest.err conftest.$ac_objext \
14134 conftest$ac_exeext conftest.$ac_ext
14135 LIBS=$ac_check_lib_save_LIBS
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14138 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14139 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
14140 HAVE_X_SM=yes
14147 if test "${HAVE_X_SM}" = "yes"; then
14149 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
14151 LIBXSM="-lSM -lICE"
14152 case "$LIBS" in
14153 *-lSM*) ;;
14154 *) LIBS="$LIBXSM $LIBS" ;;
14155 esac
14160 ### Use libxml (-lxml2) if available
14161 HAVE_LIBXML2=no
14162 if test "${with_xml2}" != "no"; then
14163 ### I'm not sure what the version number should be, so I just guessed.
14165 succeeded=no
14167 # Extract the first word of "pkg-config", so it can be a program name with args.
14168 set dummy pkg-config; ac_word=$2
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14170 $as_echo_n "checking for $ac_word... " >&6; }
14171 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
14172 $as_echo_n "(cached) " >&6
14173 else
14174 case $PKG_CONFIG in
14175 [\\/]* | ?:[\\/]*)
14176 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14180 for as_dir in $PATH
14182 IFS=$as_save_IFS
14183 test -z "$as_dir" && as_dir=.
14184 for ac_exec_ext in '' $ac_executable_extensions; do
14185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14186 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14188 break 2
14190 done
14191 done
14192 IFS=$as_save_IFS
14194 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14196 esac
14198 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14199 if test -n "$PKG_CONFIG"; then
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14201 $as_echo "$PKG_CONFIG" >&6; }
14202 else
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14204 $as_echo "no" >&6; }
14209 if test "$PKG_CONFIG" = "no" ; then
14210 HAVE_LIBXML2=no
14211 else
14212 PKG_CONFIG_MIN_VERSION=0.9.0
14213 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
14215 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
14217 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
14218 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
14219 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
14220 edit_cflags="
14221 s,///*,/,g
14222 s/^/ /
14223 s/ -I/ $isystem/g
14224 s/^ //
14226 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
14227 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
14229 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
14230 succeeded=yes
14231 else
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14233 $as_echo "no" >&6; }
14234 LIBXML2_CFLAGS=""
14235 LIBXML2_LIBS=""
14236 ## If we have a custom action on failure, don't print errors, but
14237 ## do set a variable so people can do so.
14238 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
14244 else
14245 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14246 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14250 if test $succeeded = yes; then
14251 HAVE_LIBXML2=yes
14252 else
14253 HAVE_LIBXML2=no
14256 if test "${HAVE_LIBXML2}" = "yes"; then
14257 LIBS="$LIBXML2_LIBS $LIBS"
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
14259 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
14260 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
14261 $as_echo_n "(cached) " >&6
14262 else
14263 ac_check_lib_save_LIBS=$LIBS
14264 LIBS="-lxml2 $LIBS"
14265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14266 /* end confdefs.h. */
14268 /* Override any GCC internal prototype to avoid an error.
14269 Use char because int might match the return type of a GCC
14270 builtin and then its argument prototype would still apply. */
14271 #ifdef __cplusplus
14272 extern "C"
14273 #endif
14274 char htmlReadMemory ();
14276 main ()
14278 return htmlReadMemory ();
14280 return 0;
14282 _ACEOF
14283 if ac_fn_c_try_link "$LINENO"; then :
14284 ac_cv_lib_xml2_htmlReadMemory=yes
14285 else
14286 ac_cv_lib_xml2_htmlReadMemory=no
14288 rm -f core conftest.err conftest.$ac_objext \
14289 conftest$ac_exeext conftest.$ac_ext
14290 LIBS=$ac_check_lib_save_LIBS
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
14293 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
14294 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
14295 HAVE_LIBXML2=yes
14296 else
14297 HAVE_LIBXML2=no
14300 if test "${HAVE_LIBXML2}" = "yes"; then
14302 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14304 else
14305 LIBXML2_LIBS=""
14306 LIBXML2_CFLAGS=""
14313 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14315 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14316 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14317 $as_echo_n "(cached) " >&6
14318 else
14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14321 #include <netdb.h>
14323 main ()
14325 return h_errno;
14327 return 0;
14329 _ACEOF
14330 if ac_fn_c_try_link "$LINENO"; then :
14331 emacs_cv_netdb_declares_h_errno=yes
14332 else
14333 emacs_cv_netdb_declares_h_errno=no
14335 rm -f core conftest.err conftest.$ac_objext \
14336 conftest$ac_exeext conftest.$ac_ext
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14339 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14340 if test $emacs_cv_netdb_declares_h_errno = yes; then
14342 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14346 # fmod, logb, and frexp are found in -lm on most systems.
14347 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14349 $as_echo_n "checking for sqrt in -lm... " >&6; }
14350 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14351 $as_echo_n "(cached) " >&6
14352 else
14353 ac_check_lib_save_LIBS=$LIBS
14354 LIBS="-lm $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 sqrt ();
14366 main ()
14368 return sqrt ();
14370 return 0;
14372 _ACEOF
14373 if ac_fn_c_try_link "$LINENO"; then :
14374 ac_cv_lib_m_sqrt=yes
14375 else
14376 ac_cv_lib_m_sqrt=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_m_sqrt" >&5
14383 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14384 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14385 cat >>confdefs.h <<_ACEOF
14386 #define HAVE_LIBM 1
14387 _ACEOF
14389 LIBS="-lm $LIBS"
14394 # Check for mail-locking functions in a "mail" library. Probably this should
14395 # have the same check as for liblockfile below.
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14397 $as_echo_n "checking for maillock in -lmail... " >&6; }
14398 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14399 $as_echo_n "(cached) " >&6
14400 else
14401 ac_check_lib_save_LIBS=$LIBS
14402 LIBS="-lmail $LIBS"
14403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14404 /* end confdefs.h. */
14406 /* Override any GCC internal prototype to avoid an error.
14407 Use char because int might match the return type of a GCC
14408 builtin and then its argument prototype would still apply. */
14409 #ifdef __cplusplus
14410 extern "C"
14411 #endif
14412 char maillock ();
14414 main ()
14416 return maillock ();
14418 return 0;
14420 _ACEOF
14421 if ac_fn_c_try_link "$LINENO"; then :
14422 ac_cv_lib_mail_maillock=yes
14423 else
14424 ac_cv_lib_mail_maillock=no
14426 rm -f core conftest.err conftest.$ac_objext \
14427 conftest$ac_exeext conftest.$ac_ext
14428 LIBS=$ac_check_lib_save_LIBS
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14431 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14432 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
14433 have_mail=yes
14434 else
14435 have_mail=no
14438 if test $have_mail = yes; then
14439 LIBS_MAIL=-lmail
14440 LIBS="$LIBS_MAIL $LIBS"
14442 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14444 else
14445 LIBS_MAIL=
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14448 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14449 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14450 $as_echo_n "(cached) " >&6
14451 else
14452 ac_check_lib_save_LIBS=$LIBS
14453 LIBS="-llockfile $LIBS"
14454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14455 /* end confdefs.h. */
14457 /* Override any GCC internal prototype to avoid an error.
14458 Use char because int might match the return type of a GCC
14459 builtin and then its argument prototype would still apply. */
14460 #ifdef __cplusplus
14461 extern "C"
14462 #endif
14463 char maillock ();
14465 main ()
14467 return maillock ();
14469 return 0;
14471 _ACEOF
14472 if ac_fn_c_try_link "$LINENO"; then :
14473 ac_cv_lib_lockfile_maillock=yes
14474 else
14475 ac_cv_lib_lockfile_maillock=no
14477 rm -f core conftest.err conftest.$ac_objext \
14478 conftest$ac_exeext conftest.$ac_ext
14479 LIBS=$ac_check_lib_save_LIBS
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14482 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14483 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
14484 have_lockfile=yes
14485 else
14486 have_lockfile=no
14489 if test $have_lockfile = yes; then
14490 LIBS_MAIL=-llockfile
14491 LIBS="$LIBS_MAIL $LIBS"
14493 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14495 else
14496 # If we have the shared liblockfile, assume we must use it for mail
14497 # locking (e.g. Debian). If we couldn't link against liblockfile
14498 # (no liblockfile.a installed), ensure that we don't need to.
14499 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14500 set dummy liblockfile.so; ac_word=$2
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14502 $as_echo_n "checking for $ac_word... " >&6; }
14503 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14504 $as_echo_n "(cached) " >&6
14505 else
14506 if test -n "$liblockfile"; then
14507 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14508 else
14509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14510 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14511 for as_dir in $as_dummy
14513 IFS=$as_save_IFS
14514 test -z "$as_dir" && as_dir=.
14515 for ac_exec_ext in '' $ac_executable_extensions; do
14516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14517 ac_cv_prog_liblockfile="yes"
14518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14519 break 2
14521 done
14522 done
14523 IFS=$as_save_IFS
14525 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14528 liblockfile=$ac_cv_prog_liblockfile
14529 if test -n "$liblockfile"; then
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14531 $as_echo "$liblockfile" >&6; }
14532 else
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14534 $as_echo "no" >&6; }
14538 if test $ac_cv_prog_liblockfile = yes; then
14539 as_fn_error "Shared liblockfile found but can't link against it.
14540 This probably means that movemail could lose mail.
14541 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14544 for ac_func in touchlock
14545 do :
14546 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
14547 if test "x$ac_cv_func_touchlock" = x""yes; then :
14548 cat >>confdefs.h <<_ACEOF
14549 #define HAVE_TOUCHLOCK 1
14550 _ACEOF
14553 done
14555 for ac_header in maillock.h
14556 do :
14557 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14558 if test "x$ac_cv_header_maillock_h" = x""yes; then :
14559 cat >>confdefs.h <<_ACEOF
14560 #define HAVE_MAILLOCK_H 1
14561 _ACEOF
14565 done
14569 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14570 ## interlock access to the mail spool. The alternative is a lock file named
14571 ## /usr/spool/mail/$USER.lock.
14572 mail_lock=no
14573 case "$opsys" in
14574 aix4-2) mail_lock="lockf" ;;
14576 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
14578 ## On GNU/Linux systems, both methods are used by various mail programs.
14579 ## I assume most people are using newer mailers that have heard of flock.
14580 ## Change this if you need to.
14581 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14582 ## configure gets the right answers, and that means *NOT* using flock.
14583 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14584 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14585 ## Debian maintainer hasn't provided a clean fix for Emacs.
14586 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14587 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14588 ## correct logic. -- fx
14589 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14590 ## liblockfile is a Free Software replacement for libmail, used on
14591 ## Debian systems and elsewhere. -rfr.
14592 gnu-*)
14593 mail_lock="flock"
14594 if test $have_mail = yes || test $have_lockfile = yes; then
14595 test $ac_cv_header_maillock_h = yes && mail_lock=no
14598 esac
14600 BLESSMAIL_TARGET=
14601 case "$mail_lock" in
14602 flock)
14603 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14606 lockf)
14607 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14610 *) BLESSMAIL_TARGET="need-blessmail" ;;
14611 esac
14615 for ac_func in gethostname getdomainname \
14616 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14617 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14618 strerror fpathconf select euidaccess getpagesize tzset setlocale \
14619 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14620 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14621 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14622 gai_strerror mkstemp getline getdelim mremap fsync sync \
14623 difftime mempcpy mblen mbrlen posix_memalign \
14624 getpwent endpwent getgrent endgrent \
14625 cfmakeraw cfsetspeed copysign __executable_start
14626 do :
14627 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14628 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14629 eval as_val=\$$as_ac_var
14630 if test "x$as_val" = x""yes; then :
14631 cat >>confdefs.h <<_ACEOF
14632 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14633 _ACEOF
14636 done
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14640 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14641 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14642 $as_echo_n "(cached) " >&6
14643 else
14644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14645 /* end confdefs.h. */
14648 main ()
14650 __builtin_unwind_init ();
14652 return 0;
14654 _ACEOF
14655 if ac_fn_c_try_link "$LINENO"; then :
14656 emacs_cv_func___builtin_unwind_init=yes
14657 else
14658 emacs_cv_func___builtin_unwind_init=no
14660 rm -f core conftest.err conftest.$ac_objext \
14661 conftest$ac_exeext conftest.$ac_ext
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14664 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14665 if test $emacs_cv_func___builtin_unwind_init = yes; then
14667 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14671 for ac_header in sys/un.h
14672 do :
14673 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14674 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
14675 cat >>confdefs.h <<_ACEOF
14676 #define HAVE_SYS_UN_H 1
14677 _ACEOF
14681 done
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14685 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14686 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14687 $as_echo_n "(cached) " >&6
14688 else
14689 while :; do
14690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14691 /* end confdefs.h. */
14692 #include <sys/types.h> /* for off_t */
14693 #include <stdio.h>
14695 main ()
14697 int (*fp) (FILE *, off_t, int) = fseeko;
14698 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14700 return 0;
14702 _ACEOF
14703 if ac_fn_c_try_link "$LINENO"; then :
14704 ac_cv_sys_largefile_source=no; break
14706 rm -f core conftest.err conftest.$ac_objext \
14707 conftest$ac_exeext conftest.$ac_ext
14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14709 /* end confdefs.h. */
14710 #define _LARGEFILE_SOURCE 1
14711 #include <sys/types.h> /* for off_t */
14712 #include <stdio.h>
14714 main ()
14716 int (*fp) (FILE *, off_t, int) = fseeko;
14717 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14719 return 0;
14721 _ACEOF
14722 if ac_fn_c_try_link "$LINENO"; then :
14723 ac_cv_sys_largefile_source=1; break
14725 rm -f core conftest.err conftest.$ac_objext \
14726 conftest$ac_exeext conftest.$ac_ext
14727 ac_cv_sys_largefile_source=unknown
14728 break
14729 done
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14732 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14733 case $ac_cv_sys_largefile_source in #(
14734 no | unknown) ;;
14736 cat >>confdefs.h <<_ACEOF
14737 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14738 _ACEOF
14740 esac
14741 rm -rf conftest*
14743 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14744 # in glibc 2.1.3, but that breaks too many other things.
14745 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14746 if test $ac_cv_sys_largefile_source != unknown; then
14748 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14754 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14755 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14756 $as_echo_n "(cached) " >&6
14757 else
14758 # Use it with a single arg.
14759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760 /* end confdefs.h. */
14761 $ac_includes_default
14763 main ()
14765 getpgrp (0);
14767 return 0;
14769 _ACEOF
14770 if ac_fn_c_try_compile "$LINENO"; then :
14771 ac_cv_func_getpgrp_void=no
14772 else
14773 ac_cv_func_getpgrp_void=yes
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14779 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14780 if test $ac_cv_func_getpgrp_void = yes; then
14782 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14787 # UNIX98 PTYs.
14788 for ac_func in grantpt
14789 do :
14790 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14791 if test "x$ac_cv_func_grantpt" = x""yes; then :
14792 cat >>confdefs.h <<_ACEOF
14793 #define HAVE_GRANTPT 1
14794 _ACEOF
14797 done
14800 # PTY-related GNU extensions.
14801 for ac_func in getpt
14802 do :
14803 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
14804 if test "x$ac_cv_func_getpt" = x""yes; then :
14805 cat >>confdefs.h <<_ACEOF
14806 #define HAVE_GETPT 1
14807 _ACEOF
14810 done
14813 # Check this now, so that we will NOT find the above functions in ncurses.
14814 # That is because we have not set up to link ncurses in lib-src.
14815 # It's better to believe a function is not available
14816 # than to expect to find it in ncurses.
14817 # Also we need tputs and friends to be able to build at all.
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14819 $as_echo_n "checking for library containing tputs... " >&6; }
14820 # Run a test program that contains a call to tputs, a call that is
14821 # never executed. This tests whether a pre-'main' dynamic linker
14822 # works with the library. It's too much trouble to actually call
14823 # tputs in the test program, due to portability hassles. When
14824 # cross-compiling, assume the test program will run if it links.
14826 # Maybe curses should be tried earlier?
14827 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14828 for tputs_library in '' ncurses terminfo termcap curses; do
14829 OLIBS=$LIBS
14830 if test -z "$tputs_library"; then
14831 LIBS_TERMCAP=
14832 msg='none required'
14833 else
14834 LIBS_TERMCAP=-l$tputs_library
14835 msg=$LIBS_TERMCAP
14836 LIBS="$LIBS_TERMCAP $LIBS"
14838 if test "$cross_compiling" = yes; then :
14839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h. */
14842 extern void tputs (const char *, int, int (*)(int));
14843 int main (int argc, char **argv)
14845 if (argc == 10000)
14846 tputs (argv[0], 0, 0);
14847 return 0;
14850 _ACEOF
14851 if ac_fn_c_try_link "$LINENO"; then :
14853 else
14854 msg=no
14856 rm -f core conftest.err conftest.$ac_objext \
14857 conftest$ac_exeext conftest.$ac_ext
14858 else
14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h. */
14862 extern void tputs (const char *, int, int (*)(int));
14863 int main (int argc, char **argv)
14865 if (argc == 10000)
14866 tputs (argv[0], 0, 0);
14867 return 0;
14870 _ACEOF
14871 if ac_fn_c_try_run "$LINENO"; then :
14873 else
14874 msg=no
14876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14877 conftest.$ac_objext conftest.beam conftest.$ac_ext
14880 LIBS=$OLIBS
14881 if test "X$msg" != Xno; then
14882 break
14884 done
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14886 $as_echo "$msg" >&6; }
14887 if test "X$msg" = Xno; then
14888 as_fn_error "The required function \`tputs' was not found in any library.
14889 These libraries were tried: libncurses, libterminfo, libtermcap, libcurses.
14890 Please try installing whichever of these libraries is most appropriate
14891 for your system, together with its header files.
14892 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14894 # Must define this when any termcap library is found.
14896 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14898 ## FIXME This was the cpp logic, but I am not sure it is right.
14899 ## The above test has not necessarily found libncurses.
14900 HAVE_LIBNCURSES=yes
14902 ## Use terminfo instead of termcap?
14903 ## Note only system files NOT using terminfo are:
14904 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14905 ## darwin|gnu without ncurses.
14906 TERMINFO=no
14907 case "$opsys" in
14908 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14909 ## hpux10-20: Use the system provided termcap(3) library.
14910 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14911 ## is necessary. Otherwise Emacs dumps core when run -nw.
14912 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
14914 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14915 ## The ncurses library has been moved out of the System framework in
14916 ## Mac OS X 10.2. So if configure detects it, set the command-line
14917 ## option to use it.
14918 darwin|gnu*)
14919 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14920 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14921 TERMINFO=yes
14922 LIBS_TERMCAP="-lncurses"
14926 freebsd)
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14928 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14929 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14930 $as_echo_n "(cached) " >&6
14931 else
14932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14933 /* end confdefs.h. */
14934 #include <osreldate.h>
14936 main ()
14938 #if __FreeBSD_version < 400000
14939 fail;
14940 #endif
14943 return 0;
14945 _ACEOF
14946 if ac_fn_c_try_link "$LINENO"; then :
14947 emacs_cv_freebsd_terminfo=yes
14948 else
14949 emacs_cv_freebsd_terminfo=no
14951 rm -f core conftest.err conftest.$ac_objext \
14952 conftest$ac_exeext conftest.$ac_ext
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14957 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14959 if test $emacs_cv_freebsd_terminfo = yes; then
14960 TERMINFO=yes
14961 LIBS_TERMCAP="-lncurses"
14962 else
14963 LIBS_TERMCAP="-ltermcap"
14967 netbsd)
14968 if test $ac_cv_search_tputs = -lterminfo; then
14969 TERMINFO=yes
14970 LIBS_TERMCAP="-lterminfo"
14971 else
14972 LIBS_TERMCAP="-ltermcap"
14976 esac
14978 case "$opsys" in
14979 ## hpux: Make sure we get select from libc rather than from libcurses
14980 ## because libcurses on HPUX 10.10 has a broken version of select.
14981 ## We used to use -lc -lcurses, but this may be cleaner.
14982 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14984 openbsd) LIBS_TERMCAP="-lncurses" ;;
14986 ## Must use system termcap, if we use any termcap. It does special things.
14987 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
14988 esac
14990 TERMCAP_OBJ=tparam.o
14991 if test $TERMINFO = yes; then
14993 $as_echo "#define TERMINFO 1" >>confdefs.h
14995 TERMCAP_OBJ=terminfo.o
15001 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15002 resolv=no
15003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004 /* end confdefs.h. */
15005 #include <netinet/in.h>
15006 #include <arpa/nameser.h>
15007 #include <resolv.h>
15009 main ()
15011 return res_init();
15013 return 0;
15015 _ACEOF
15016 if ac_fn_c_try_link "$LINENO"; then :
15017 have_res_init=yes
15018 else
15019 have_res_init=no
15021 rm -f core conftest.err conftest.$ac_objext \
15022 conftest$ac_exeext conftest.$ac_ext
15023 if test "$have_res_init" = no; then
15024 OLIBS="$LIBS"
15025 LIBS="$LIBS -lresolv"
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15027 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029 /* end confdefs.h. */
15030 #include <netinet/in.h>
15031 #include <arpa/nameser.h>
15032 #include <resolv.h>
15034 main ()
15036 return res_init();
15038 return 0;
15040 _ACEOF
15041 if ac_fn_c_try_link "$LINENO"; then :
15042 have_res_init=yes
15043 else
15044 have_res_init=no
15046 rm -f core conftest.err conftest.$ac_objext \
15047 conftest$ac_exeext conftest.$ac_ext
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15049 $as_echo "$have_res_init" >&6; }
15050 if test "$have_res_init" = yes ; then
15051 resolv=yes
15053 LIBS="$OLIBS"
15056 if test "$have_res_init" = yes; then
15058 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15062 # Do we need the Hesiod library to provide the support routines?
15063 LIBHESIOD=
15064 if test "$with_hesiod" != no ; then
15065 # Don't set $LIBS here -- see comments above. FIXME which comments?
15066 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
15067 if test "x$ac_cv_func_res_send" = x""yes; then :
15069 else
15070 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
15071 if test "x$ac_cv_func___res_send" = x""yes; then :
15073 else
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15075 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15076 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15077 $as_echo_n "(cached) " >&6
15078 else
15079 ac_check_lib_save_LIBS=$LIBS
15080 LIBS="-lresolv $LIBS"
15081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15082 /* end confdefs.h. */
15084 /* Override any GCC internal prototype to avoid an error.
15085 Use char because int might match the return type of a GCC
15086 builtin and then its argument prototype would still apply. */
15087 #ifdef __cplusplus
15088 extern "C"
15089 #endif
15090 char res_send ();
15092 main ()
15094 return res_send ();
15096 return 0;
15098 _ACEOF
15099 if ac_fn_c_try_link "$LINENO"; then :
15100 ac_cv_lib_resolv_res_send=yes
15101 else
15102 ac_cv_lib_resolv_res_send=no
15104 rm -f core conftest.err conftest.$ac_objext \
15105 conftest$ac_exeext conftest.$ac_ext
15106 LIBS=$ac_check_lib_save_LIBS
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15109 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15110 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
15111 resolv=yes
15112 else
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15114 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15115 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15116 $as_echo_n "(cached) " >&6
15117 else
15118 ac_check_lib_save_LIBS=$LIBS
15119 LIBS="-lresolv $LIBS"
15120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15121 /* end confdefs.h. */
15123 /* Override any GCC internal prototype to avoid an error.
15124 Use char because int might match the return type of a GCC
15125 builtin and then its argument prototype would still apply. */
15126 #ifdef __cplusplus
15127 extern "C"
15128 #endif
15129 char __res_send ();
15131 main ()
15133 return __res_send ();
15135 return 0;
15137 _ACEOF
15138 if ac_fn_c_try_link "$LINENO"; then :
15139 ac_cv_lib_resolv___res_send=yes
15140 else
15141 ac_cv_lib_resolv___res_send=no
15143 rm -f core conftest.err conftest.$ac_objext \
15144 conftest$ac_exeext conftest.$ac_ext
15145 LIBS=$ac_check_lib_save_LIBS
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15148 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15149 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
15150 resolv=yes
15159 if test "$resolv" = yes ; then
15160 RESOLVLIB=-lresolv
15161 else
15162 RESOLVLIB=
15164 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15165 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
15167 else
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15169 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15170 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15171 $as_echo_n "(cached) " >&6
15172 else
15173 ac_check_lib_save_LIBS=$LIBS
15174 LIBS="-lhesiod $RESOLVLIB $LIBS"
15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h. */
15178 /* Override any GCC internal prototype to avoid an error.
15179 Use char because int might match the return type of a GCC
15180 builtin and then its argument prototype would still apply. */
15181 #ifdef __cplusplus
15182 extern "C"
15183 #endif
15184 char hes_getmailhost ();
15186 main ()
15188 return hes_getmailhost ();
15190 return 0;
15192 _ACEOF
15193 if ac_fn_c_try_link "$LINENO"; then :
15194 ac_cv_lib_hesiod_hes_getmailhost=yes
15195 else
15196 ac_cv_lib_hesiod_hes_getmailhost=no
15198 rm -f core conftest.err conftest.$ac_objext \
15199 conftest$ac_exeext conftest.$ac_ext
15200 LIBS=$ac_check_lib_save_LIBS
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15203 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15204 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
15205 hesiod=yes
15206 else
15213 if test x"$hesiod" = xyes; then
15215 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
15217 LIBHESIOD=-lhesiod
15222 # Do we need libresolv (due to res_init or Hesiod)?
15223 if test "$resolv" = yes ; then
15225 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
15227 LIBRESOLV=-lresolv
15228 else
15229 LIBRESOLV=
15233 # These tell us which Kerberos-related libraries to use.
15234 COM_ERRLIB=
15235 CRYPTOLIB=
15236 KRB5LIB=
15237 DESLIB=
15238 KRB4LIB=
15240 if test "${with_kerberos}" != no; then
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15242 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15243 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15244 $as_echo_n "(cached) " >&6
15245 else
15246 ac_check_lib_save_LIBS=$LIBS
15247 LIBS="-lcom_err $LIBS"
15248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15249 /* end confdefs.h. */
15251 /* Override any GCC internal prototype to avoid an error.
15252 Use char because int might match the return type of a GCC
15253 builtin and then its argument prototype would still apply. */
15254 #ifdef __cplusplus
15255 extern "C"
15256 #endif
15257 char com_err ();
15259 main ()
15261 return com_err ();
15263 return 0;
15265 _ACEOF
15266 if ac_fn_c_try_link "$LINENO"; then :
15267 ac_cv_lib_com_err_com_err=yes
15268 else
15269 ac_cv_lib_com_err_com_err=no
15271 rm -f core conftest.err conftest.$ac_objext \
15272 conftest$ac_exeext conftest.$ac_ext
15273 LIBS=$ac_check_lib_save_LIBS
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15276 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15277 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
15278 have_com_err=yes
15279 else
15280 have_com_err=no
15283 if test $have_com_err = yes; then
15284 COM_ERRLIB=-lcom_err
15285 LIBS="$COM_ERRLIB $LIBS"
15287 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15291 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15292 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15293 $as_echo_n "(cached) " >&6
15294 else
15295 ac_check_lib_save_LIBS=$LIBS
15296 LIBS="-lcrypto $LIBS"
15297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15298 /* end confdefs.h. */
15300 /* Override any GCC internal prototype to avoid an error.
15301 Use char because int might match the return type of a GCC
15302 builtin and then its argument prototype would still apply. */
15303 #ifdef __cplusplus
15304 extern "C"
15305 #endif
15306 char mit_des_cbc_encrypt ();
15308 main ()
15310 return mit_des_cbc_encrypt ();
15312 return 0;
15314 _ACEOF
15315 if ac_fn_c_try_link "$LINENO"; then :
15316 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
15317 else
15318 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15320 rm -f core conftest.err conftest.$ac_objext \
15321 conftest$ac_exeext conftest.$ac_ext
15322 LIBS=$ac_check_lib_save_LIBS
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15325 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15326 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
15327 have_crypto=yes
15328 else
15329 have_crypto=no
15332 if test $have_crypto = yes; then
15333 CRYPTOLIB=-lcrypto
15334 LIBS="$CRYPTOLIB $LIBS"
15336 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15340 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15341 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15342 $as_echo_n "(cached) " >&6
15343 else
15344 ac_check_lib_save_LIBS=$LIBS
15345 LIBS="-lk5crypto $LIBS"
15346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15347 /* end confdefs.h. */
15349 /* Override any GCC internal prototype to avoid an error.
15350 Use char because int might match the return type of a GCC
15351 builtin and then its argument prototype would still apply. */
15352 #ifdef __cplusplus
15353 extern "C"
15354 #endif
15355 char mit_des_cbc_encrypt ();
15357 main ()
15359 return mit_des_cbc_encrypt ();
15361 return 0;
15363 _ACEOF
15364 if ac_fn_c_try_link "$LINENO"; then :
15365 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
15366 else
15367 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
15369 rm -f core conftest.err conftest.$ac_objext \
15370 conftest$ac_exeext conftest.$ac_ext
15371 LIBS=$ac_check_lib_save_LIBS
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15374 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15375 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
15376 have_k5crypto=yes
15377 else
15378 have_k5crypto=no
15381 if test $have_k5crypto = yes; then
15382 CRYPTOLIB=-lk5crypto
15383 LIBS="$CRYPTOLIB $LIBS"
15385 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15389 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15390 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15391 $as_echo_n "(cached) " >&6
15392 else
15393 ac_check_lib_save_LIBS=$LIBS
15394 LIBS="-lkrb5 $LIBS"
15395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15396 /* end confdefs.h. */
15398 /* Override any GCC internal prototype to avoid an error.
15399 Use char because int might match the return type of a GCC
15400 builtin and then its argument prototype would still apply. */
15401 #ifdef __cplusplus
15402 extern "C"
15403 #endif
15404 char krb5_init_context ();
15406 main ()
15408 return krb5_init_context ();
15410 return 0;
15412 _ACEOF
15413 if ac_fn_c_try_link "$LINENO"; then :
15414 ac_cv_lib_krb5_krb5_init_context=yes
15415 else
15416 ac_cv_lib_krb5_krb5_init_context=no
15418 rm -f core conftest.err conftest.$ac_objext \
15419 conftest$ac_exeext conftest.$ac_ext
15420 LIBS=$ac_check_lib_save_LIBS
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15423 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15424 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
15425 have_krb5=yes
15426 else
15427 have_krb5=no
15430 if test $have_krb5=yes; then
15431 KRB5LIB=-lkrb5
15432 LIBS="$KRB5LIB $LIBS"
15434 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
15437 if test "${with_kerberos5}" = no; then
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15439 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15440 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15441 $as_echo_n "(cached) " >&6
15442 else
15443 ac_check_lib_save_LIBS=$LIBS
15444 LIBS="-ldes425 $LIBS"
15445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15446 /* end confdefs.h. */
15448 /* Override any GCC internal prototype to avoid an error.
15449 Use char because int might match the return type of a GCC
15450 builtin and then its argument prototype would still apply. */
15451 #ifdef __cplusplus
15452 extern "C"
15453 #endif
15454 char des_cbc_encrypt ();
15456 main ()
15458 return des_cbc_encrypt ();
15460 return 0;
15462 _ACEOF
15463 if ac_fn_c_try_link "$LINENO"; then :
15464 ac_cv_lib_des425_des_cbc_encrypt=yes
15465 else
15466 ac_cv_lib_des425_des_cbc_encrypt=no
15468 rm -f core conftest.err conftest.$ac_objext \
15469 conftest$ac_exeext conftest.$ac_ext
15470 LIBS=$ac_check_lib_save_LIBS
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15473 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15474 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
15475 have_des425=yes
15476 else
15477 have_des425=no
15480 if test $have_des425 = yes; then
15481 DESLIB=-ldes425
15482 LIBS="$DESLIB $LIBS"
15484 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
15486 else
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15488 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15489 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15490 $as_echo_n "(cached) " >&6
15491 else
15492 ac_check_lib_save_LIBS=$LIBS
15493 LIBS="-ldes $LIBS"
15494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15495 /* end confdefs.h. */
15497 /* Override any GCC internal prototype to avoid an error.
15498 Use char because int might match the return type of a GCC
15499 builtin and then its argument prototype would still apply. */
15500 #ifdef __cplusplus
15501 extern "C"
15502 #endif
15503 char des_cbc_encrypt ();
15505 main ()
15507 return des_cbc_encrypt ();
15509 return 0;
15511 _ACEOF
15512 if ac_fn_c_try_link "$LINENO"; then :
15513 ac_cv_lib_des_des_cbc_encrypt=yes
15514 else
15515 ac_cv_lib_des_des_cbc_encrypt=no
15517 rm -f core conftest.err conftest.$ac_objext \
15518 conftest$ac_exeext conftest.$ac_ext
15519 LIBS=$ac_check_lib_save_LIBS
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15522 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15523 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
15524 have_des=yes
15525 else
15526 have_des=no
15529 if test $have_des = yes; then
15530 DESLIB=-ldes
15531 LIBS="$DESLIB $LIBS"
15533 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15538 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15539 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15540 $as_echo_n "(cached) " >&6
15541 else
15542 ac_check_lib_save_LIBS=$LIBS
15543 LIBS="-lkrb4 $LIBS"
15544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15545 /* end confdefs.h. */
15547 /* Override any GCC internal prototype to avoid an error.
15548 Use char because int might match the return type of a GCC
15549 builtin and then its argument prototype would still apply. */
15550 #ifdef __cplusplus
15551 extern "C"
15552 #endif
15553 char krb_get_cred ();
15555 main ()
15557 return krb_get_cred ();
15559 return 0;
15561 _ACEOF
15562 if ac_fn_c_try_link "$LINENO"; then :
15563 ac_cv_lib_krb4_krb_get_cred=yes
15564 else
15565 ac_cv_lib_krb4_krb_get_cred=no
15567 rm -f core conftest.err conftest.$ac_objext \
15568 conftest$ac_exeext conftest.$ac_ext
15569 LIBS=$ac_check_lib_save_LIBS
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15572 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15573 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
15574 have_krb4=yes
15575 else
15576 have_krb4=no
15579 if test $have_krb4 = yes; then
15580 KRB4LIB=-lkrb4
15581 LIBS="$KRB4LIB $LIBS"
15583 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15585 else
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15587 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15588 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15589 $as_echo_n "(cached) " >&6
15590 else
15591 ac_check_lib_save_LIBS=$LIBS
15592 LIBS="-lkrb $LIBS"
15593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15594 /* end confdefs.h. */
15596 /* Override any GCC internal prototype to avoid an error.
15597 Use char because int might match the return type of a GCC
15598 builtin and then its argument prototype would still apply. */
15599 #ifdef __cplusplus
15600 extern "C"
15601 #endif
15602 char krb_get_cred ();
15604 main ()
15606 return krb_get_cred ();
15608 return 0;
15610 _ACEOF
15611 if ac_fn_c_try_link "$LINENO"; then :
15612 ac_cv_lib_krb_krb_get_cred=yes
15613 else
15614 ac_cv_lib_krb_krb_get_cred=no
15616 rm -f core conftest.err conftest.$ac_objext \
15617 conftest$ac_exeext conftest.$ac_ext
15618 LIBS=$ac_check_lib_save_LIBS
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15621 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15622 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
15623 have_krb=yes
15624 else
15625 have_krb=no
15628 if test $have_krb = yes; then
15629 KRB4LIB=-lkrb
15630 LIBS="$KRB4LIB $LIBS"
15632 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15638 if test "${with_kerberos5}" != no; then
15639 for ac_header in krb5.h
15640 do :
15641 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15642 if test "x$ac_cv_header_krb5_h" = x""yes; then :
15643 cat >>confdefs.h <<_ACEOF
15644 #define HAVE_KRB5_H 1
15645 _ACEOF
15646 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15648 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
15650 cat >>confdefs.h <<_ACEOF
15651 #define HAVE_KRB5_ERROR_TEXT 1
15652 _ACEOF
15656 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15658 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
15660 cat >>confdefs.h <<_ACEOF
15661 #define HAVE_KRB5_ERROR_E_TEXT 1
15662 _ACEOF
15669 done
15671 else
15672 for ac_header in des.h
15673 do :
15674 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15675 if test "x$ac_cv_header_des_h" = x""yes; then :
15676 cat >>confdefs.h <<_ACEOF
15677 #define HAVE_DES_H 1
15678 _ACEOF
15680 else
15681 for ac_header in kerberosIV/des.h
15682 do :
15683 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15684 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
15685 cat >>confdefs.h <<_ACEOF
15686 #define HAVE_KERBEROSIV_DES_H 1
15687 _ACEOF
15689 else
15690 for ac_header in kerberos/des.h
15691 do :
15692 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15693 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
15694 cat >>confdefs.h <<_ACEOF
15695 #define HAVE_KERBEROS_DES_H 1
15696 _ACEOF
15700 done
15704 done
15708 done
15710 for ac_header in krb.h
15711 do :
15712 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15713 if test "x$ac_cv_header_krb_h" = x""yes; then :
15714 cat >>confdefs.h <<_ACEOF
15715 #define HAVE_KRB_H 1
15716 _ACEOF
15718 else
15719 for ac_header in kerberosIV/krb.h
15720 do :
15721 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15722 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
15723 cat >>confdefs.h <<_ACEOF
15724 #define HAVE_KERBEROSIV_KRB_H 1
15725 _ACEOF
15727 else
15728 for ac_header in kerberos/krb.h
15729 do :
15730 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15731 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
15732 cat >>confdefs.h <<_ACEOF
15733 #define HAVE_KERBEROS_KRB_H 1
15734 _ACEOF
15738 done
15742 done
15746 done
15749 for ac_header in com_err.h
15750 do :
15751 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15752 if test "x$ac_cv_header_com_err_h" = x""yes; then :
15753 cat >>confdefs.h <<_ACEOF
15754 #define HAVE_COM_ERR_H 1
15755 _ACEOF
15759 done
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15770 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15771 if test "${emacs_cv_localtime_cache+set}" = set; then :
15772 $as_echo_n "(cached) " >&6
15773 else
15774 if test x$ac_cv_func_tzset = xyes; then
15775 if test "$cross_compiling" = yes; then :
15776 # If we have tzset, assume the worst when cross-compiling.
15777 emacs_cv_localtime_cache=yes
15778 else
15779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15780 /* end confdefs.h. */
15781 #include <time.h>
15782 char TZ_GMT0[] = "TZ=GMT0";
15783 char TZ_PST8[] = "TZ=PST8";
15784 main()
15786 time_t now = time ((time_t *) 0);
15787 int hour_GMT0, hour_unset;
15788 if (putenv (TZ_GMT0) != 0)
15789 exit (1);
15790 hour_GMT0 = localtime (&now)->tm_hour;
15791 unsetenv("TZ");
15792 hour_unset = localtime (&now)->tm_hour;
15793 if (putenv (TZ_PST8) != 0)
15794 exit (1);
15795 if (localtime (&now)->tm_hour == hour_GMT0)
15796 exit (1);
15797 unsetenv("TZ");
15798 if (localtime (&now)->tm_hour != hour_unset)
15799 exit (1);
15800 exit (0);
15802 _ACEOF
15803 if ac_fn_c_try_run "$LINENO"; then :
15804 emacs_cv_localtime_cache=no
15805 else
15806 emacs_cv_localtime_cache=yes
15808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15809 conftest.$ac_objext conftest.beam conftest.$ac_ext
15812 else
15813 # If we lack tzset, report that localtime does not cache TZ,
15814 # since we can't invalidate the cache if we don't have tzset.
15815 emacs_cv_localtime_cache=no
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15819 $as_echo "$emacs_cv_localtime_cache" >&6; }
15820 if test $emacs_cv_localtime_cache = yes; then
15822 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15826 if test "x$HAVE_TIMEVAL" = xyes; then
15827 for ac_func in gettimeofday
15828 do :
15829 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15830 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
15831 cat >>confdefs.h <<_ACEOF
15832 #define HAVE_GETTIMEOFDAY 1
15833 _ACEOF
15836 done
15838 if test $ac_cv_func_gettimeofday = yes; then
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15840 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15841 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15842 $as_echo_n "(cached) " >&6
15843 else
15844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h. */
15847 #ifdef TIME_WITH_SYS_TIME
15848 #include <sys/time.h>
15849 #include <time.h>
15850 #else
15851 #ifdef HAVE_SYS_TIME_H
15852 #include <sys/time.h>
15853 #else
15854 #include <time.h>
15855 #endif
15856 #endif
15858 main ()
15860 struct timeval time;
15861 gettimeofday (&time, 0);
15863 return 0;
15865 _ACEOF
15866 if ac_fn_c_try_compile "$LINENO"; then :
15867 emacs_cv_gettimeofday_two_arguments=yes
15868 else
15869 emacs_cv_gettimeofday_two_arguments=no
15871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15874 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15875 if test $emacs_cv_gettimeofday_two_arguments = no; then
15877 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15883 ok_so_far=yes
15884 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15885 if test "x$ac_cv_func_socket" = x""yes; then :
15887 else
15888 ok_so_far=no
15891 if test $ok_so_far = yes; then
15892 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15893 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15895 else
15896 ok_so_far=no
15901 if test $ok_so_far = yes; then
15902 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15903 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15905 else
15906 ok_so_far=no
15911 if test $ok_so_far = yes; then
15913 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15917 if test -f /usr/lpp/X11/bin/smt.exp; then
15919 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15924 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15925 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15927 $as_echo "yes" >&6; }
15929 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15931 else
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15933 $as_echo "no" >&6; }
15936 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15937 if test "x$ac_cv_type_pid_t" = x""yes; then :
15939 else
15941 cat >>confdefs.h <<_ACEOF
15942 #define pid_t int
15943 _ACEOF
15947 for ac_header in vfork.h
15948 do :
15949 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15950 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15951 cat >>confdefs.h <<_ACEOF
15952 #define HAVE_VFORK_H 1
15953 _ACEOF
15957 done
15959 for ac_func in fork vfork
15960 do :
15961 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15962 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15963 eval as_val=\$$as_ac_var
15964 if test "x$as_val" = x""yes; then :
15965 cat >>confdefs.h <<_ACEOF
15966 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15967 _ACEOF
15970 done
15972 if test "x$ac_cv_func_fork" = xyes; then
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15974 $as_echo_n "checking for working fork... " >&6; }
15975 if test "${ac_cv_func_fork_works+set}" = set; then :
15976 $as_echo_n "(cached) " >&6
15977 else
15978 if test "$cross_compiling" = yes; then :
15979 ac_cv_func_fork_works=cross
15980 else
15981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15982 /* end confdefs.h. */
15983 $ac_includes_default
15985 main ()
15988 /* By Ruediger Kuhlmann. */
15989 return fork () < 0;
15992 return 0;
15994 _ACEOF
15995 if ac_fn_c_try_run "$LINENO"; then :
15996 ac_cv_func_fork_works=yes
15997 else
15998 ac_cv_func_fork_works=no
16000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16001 conftest.$ac_objext conftest.beam conftest.$ac_ext
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16006 $as_echo "$ac_cv_func_fork_works" >&6; }
16008 else
16009 ac_cv_func_fork_works=$ac_cv_func_fork
16011 if test "x$ac_cv_func_fork_works" = xcross; then
16012 case $host in
16013 *-*-amigaos* | *-*-msdosdjgpp*)
16014 # Override, as these systems have only a dummy fork() stub
16015 ac_cv_func_fork_works=no
16018 ac_cv_func_fork_works=yes
16020 esac
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16022 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16024 ac_cv_func_vfork_works=$ac_cv_func_vfork
16025 if test "x$ac_cv_func_vfork" = xyes; then
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16027 $as_echo_n "checking for working vfork... " >&6; }
16028 if test "${ac_cv_func_vfork_works+set}" = set; then :
16029 $as_echo_n "(cached) " >&6
16030 else
16031 if test "$cross_compiling" = yes; then :
16032 ac_cv_func_vfork_works=cross
16033 else
16034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16035 /* end confdefs.h. */
16036 /* Thanks to Paul Eggert for this test. */
16037 $ac_includes_default
16038 #include <sys/wait.h>
16039 #ifdef HAVE_VFORK_H
16040 # include <vfork.h>
16041 #endif
16042 /* On some sparc systems, changes by the child to local and incoming
16043 argument registers are propagated back to the parent. The compiler
16044 is told about this with #include <vfork.h>, but some compilers
16045 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16046 static variable whose address is put into a register that is
16047 clobbered by the vfork. */
16048 static void
16049 #ifdef __cplusplus
16050 sparc_address_test (int arg)
16051 # else
16052 sparc_address_test (arg) int arg;
16053 #endif
16055 static pid_t child;
16056 if (!child) {
16057 child = vfork ();
16058 if (child < 0) {
16059 perror ("vfork");
16060 _exit(2);
16062 if (!child) {
16063 arg = getpid();
16064 write(-1, "", 0);
16065 _exit (arg);
16071 main ()
16073 pid_t parent = getpid ();
16074 pid_t child;
16076 sparc_address_test (0);
16078 child = vfork ();
16080 if (child == 0) {
16081 /* Here is another test for sparc vfork register problems. This
16082 test uses lots of local variables, at least as many local
16083 variables as main has allocated so far including compiler
16084 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16085 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16086 reuse the register of parent for one of the local variables,
16087 since it will think that parent can't possibly be used any more
16088 in this routine. Assigning to the local variable will thus
16089 munge parent in the parent process. */
16090 pid_t
16091 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16092 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16093 /* Convince the compiler that p..p7 are live; otherwise, it might
16094 use the same hardware register for all 8 local variables. */
16095 if (p != p1 || p != p2 || p != p3 || p != p4
16096 || p != p5 || p != p6 || p != p7)
16097 _exit(1);
16099 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16100 from child file descriptors. If the child closes a descriptor
16101 before it execs or exits, this munges the parent's descriptor
16102 as well. Test for this by closing stdout in the child. */
16103 _exit(close(fileno(stdout)) != 0);
16104 } else {
16105 int status;
16106 struct stat st;
16108 while (wait(&status) != child)
16110 return (
16111 /* Was there some problem with vforking? */
16112 child < 0
16114 /* Did the child fail? (This shouldn't happen.) */
16115 || status
16117 /* Did the vfork/compiler bug occur? */
16118 || parent != getpid()
16120 /* Did the file descriptor bug occur? */
16121 || fstat(fileno(stdout), &st) != 0
16125 _ACEOF
16126 if ac_fn_c_try_run "$LINENO"; then :
16127 ac_cv_func_vfork_works=yes
16128 else
16129 ac_cv_func_vfork_works=no
16131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16132 conftest.$ac_objext conftest.beam conftest.$ac_ext
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16137 $as_echo "$ac_cv_func_vfork_works" >&6; }
16140 if test "x$ac_cv_func_fork_works" = xcross; then
16141 ac_cv_func_vfork_works=$ac_cv_func_vfork
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16143 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16146 if test "x$ac_cv_func_vfork_works" = xyes; then
16148 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16150 else
16152 $as_echo "#define vfork fork" >>confdefs.h
16155 if test "x$ac_cv_func_fork_works" = xyes; then
16157 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16162 for ac_func in snprintf
16163 do :
16164 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16165 if test "x$ac_cv_func_snprintf" = x""yes; then :
16166 cat >>confdefs.h <<_ACEOF
16167 #define HAVE_SNPRINTF 1
16168 _ACEOF
16171 done
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16175 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16176 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16177 $as_echo_n "(cached) " >&6
16178 else
16179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16180 /* end confdefs.h. */
16181 #include <langinfo.h>
16183 main ()
16185 char* cs = nl_langinfo(CODESET);
16187 return 0;
16189 _ACEOF
16190 if ac_fn_c_try_link "$LINENO"; then :
16191 emacs_cv_langinfo_codeset=yes
16192 else
16193 emacs_cv_langinfo_codeset=no
16195 rm -f core conftest.err conftest.$ac_objext \
16196 conftest$ac_exeext conftest.$ac_ext
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16200 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16201 if test $emacs_cv_langinfo_codeset = yes; then
16203 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16208 $as_echo_n "checking for mbstate_t... " >&6; }
16209 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16210 $as_echo_n "(cached) " >&6
16211 else
16212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16213 /* end confdefs.h. */
16214 $ac_includes_default
16215 # include <wchar.h>
16217 main ()
16219 mbstate_t x; return sizeof x;
16221 return 0;
16223 _ACEOF
16224 if ac_fn_c_try_compile "$LINENO"; then :
16225 ac_cv_type_mbstate_t=yes
16226 else
16227 ac_cv_type_mbstate_t=no
16229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16232 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16233 if test $ac_cv_type_mbstate_t = yes; then
16235 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16237 else
16239 $as_echo "#define mbstate_t int" >>confdefs.h
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16244 $as_echo_n "checking for C restricted array declarations... " >&6; }
16245 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16246 $as_echo_n "(cached) " >&6
16247 else
16248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249 /* end confdefs.h. */
16250 void fred (int x[__restrict]);
16252 main ()
16256 return 0;
16258 _ACEOF
16259 if ac_fn_c_try_compile "$LINENO"; then :
16260 emacs_cv_c_restrict_arr=yes
16261 else
16262 emacs_cv_c_restrict_arr=no
16264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16267 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16268 if test "$emacs_cv_c_restrict_arr" = yes; then
16270 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16275 # Set up the CFLAGS for real compilation, so we can substitute it.
16276 CFLAGS="$REAL_CFLAGS"
16277 CPPFLAGS="$REAL_CPPFLAGS"
16279 ## Hack to detect a buggy GCC version.
16280 if test "x$GCC" = xyes \
16281 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16282 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
16283 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
16284 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16287 version=$PACKAGE_VERSION
16289 ### Specify what sort of things we'll be editing into Makefile and config.h.
16290 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16293 ## Unused?
16314 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16315 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16316 ## end of LIBX_BASE, but nothing ever set it.
16321 ## Used in lwlib/Makefile.in.
16323 if test -n "${machfile}"; then
16324 M_FILE="\$(srcdir)/${machfile}"
16325 else
16326 M_FILE=
16328 S_FILE="\$(srcdir)/${opsysfile}"
16339 cat >>confdefs.h <<_ACEOF
16340 #define EMACS_CONFIGURATION "${canonical}"
16341 _ACEOF
16344 cat >>confdefs.h <<_ACEOF
16345 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
16346 _ACEOF
16348 if test -n "$machfile"; then
16350 cat >>confdefs.h <<_ACEOF
16351 #define config_machfile "${machfile}"
16352 _ACEOF
16356 cat >>confdefs.h <<_ACEOF
16357 #define config_opsysfile "${opsysfile}"
16358 _ACEOF
16361 XMENU_OBJ=
16362 XOBJ=
16363 FONT_OBJ=
16364 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16366 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16368 XMENU_OBJ=xmenu.o
16369 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
16370 FONT_OBJ=xfont.o
16371 if test "$HAVE_XFT" = "yes"; then
16372 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16373 elif test "$HAVE_FREETYPE" = "yes"; then
16374 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
16382 WIDGET_OBJ=
16383 MOTIF_LIBW=
16384 if test "${USE_X_TOOLKIT}" != "none" ; then
16385 WIDGET_OBJ=widget.o
16387 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16389 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16391 $as_echo "#define USE_LUCID 1" >>confdefs.h
16393 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16395 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16397 MOTIF_LIBW=-lXm
16398 case "$opsys" in
16399 gnu-linux)
16400 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16401 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
16404 unixware)
16405 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16406 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16407 MOTIF_LIBW="MOTIF_LIBW -lXimp"
16410 aix4-2)
16411 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16412 MOTIF_LIBW="$MOTIF_LIBW -li18n"
16414 esac
16415 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
16420 TOOLKIT_LIBW=
16421 case "$USE_X_TOOLKIT" in
16422 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16423 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16424 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16425 esac
16428 if test "$USE_X_TOOLKIT" = "none"; then
16429 LIBXT_OTHER="\$(LIBXSM)"
16430 OLDXMENU_TARGET="really-oldXMenu"
16431 else
16432 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16433 OLDXMENU_TARGET="really-lwlib"
16437 ## The X Menu stuff is present in the X10 distribution, but missing
16438 ## from X11. If we have X10, just use the installed library;
16439 ## otherwise, use our own copy.
16440 if test "${HAVE_X11}" = "yes" ; then
16442 $as_echo "#define HAVE_X11 1" >>confdefs.h
16445 if test "$USE_X_TOOLKIT" = "none"; then
16446 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16447 else
16448 OLDXMENU="\${lwlibdir}/liblw.a"
16450 LIBXMENU="\$(OLDXMENU)"
16451 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16452 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16453 else
16454 ## For a syntactically valid Makefile; not actually used for anything.
16455 ## See comments in src/Makefile.in.
16456 OLDXMENU=nothing
16457 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16458 if test "${HAVE_X_WINDOWS}" = "yes"; then
16459 LIBXMENU="-lXMenu"
16460 else
16461 LIBXMENU=
16463 LIBX_OTHER=
16464 OLDXMENU_DEPS=
16467 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16468 OLDXMENU_TARGET=
16469 OLDXMENU=nothing
16470 LIBXMENU=
16471 OLDXMENU_DEPS=
16480 if test "${HAVE_MENUS}" = "yes" ; then
16482 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16486 if test "${GNU_MALLOC}" = "yes" ; then
16488 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16492 RALLOC_OBJ=
16493 if test "${REL_ALLOC}" = "yes" ; then
16495 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16498 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16502 if test "$opsys" = "cygwin"; then
16503 CYGWIN_OBJ="sheap.o"
16504 ## Cygwin differs because of its unexec().
16505 PRE_ALLOC_OBJ=
16506 POST_ALLOC_OBJ=lastfile.o
16507 else
16508 CYGWIN_OBJ=
16509 PRE_ALLOC_OBJ=lastfile.o
16510 POST_ALLOC_OBJ=
16516 # Configure gnulib here, now that we know LIBS.
16528 LIBC_FATAL_STDERR_=1
16529 export LIBC_FATAL_STDERR_
16531 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16532 # for constant arguments. Useless!
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16534 $as_echo_n "checking for working alloca.h... " >&6; }
16535 if test "${ac_cv_working_alloca_h+set}" = set; then :
16536 $as_echo_n "(cached) " >&6
16537 else
16538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16539 /* end confdefs.h. */
16540 #include <alloca.h>
16542 main ()
16544 char *p = (char *) alloca (2 * sizeof (int));
16545 if (p) return 0;
16547 return 0;
16549 _ACEOF
16550 if ac_fn_c_try_link "$LINENO"; then :
16551 ac_cv_working_alloca_h=yes
16552 else
16553 ac_cv_working_alloca_h=no
16555 rm -f core conftest.err conftest.$ac_objext \
16556 conftest$ac_exeext conftest.$ac_ext
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16559 $as_echo "$ac_cv_working_alloca_h" >&6; }
16560 if test $ac_cv_working_alloca_h = yes; then
16562 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16567 $as_echo_n "checking for alloca... " >&6; }
16568 if test "${ac_cv_func_alloca_works+set}" = set; then :
16569 $as_echo_n "(cached) " >&6
16570 else
16571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16572 /* end confdefs.h. */
16573 #ifdef __GNUC__
16574 # define alloca __builtin_alloca
16575 #else
16576 # ifdef _MSC_VER
16577 # include <malloc.h>
16578 # define alloca _alloca
16579 # else
16580 # ifdef HAVE_ALLOCA_H
16581 # include <alloca.h>
16582 # else
16583 # ifdef _AIX
16584 #pragma alloca
16585 # else
16586 # ifndef alloca /* predefined by HP cc +Olibcalls */
16587 char *alloca ();
16588 # endif
16589 # endif
16590 # endif
16591 # endif
16592 #endif
16595 main ()
16597 char *p = (char *) alloca (1);
16598 if (p) return 0;
16600 return 0;
16602 _ACEOF
16603 if ac_fn_c_try_link "$LINENO"; then :
16604 ac_cv_func_alloca_works=yes
16605 else
16606 ac_cv_func_alloca_works=no
16608 rm -f core conftest.err conftest.$ac_objext \
16609 conftest$ac_exeext conftest.$ac_ext
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16612 $as_echo "$ac_cv_func_alloca_works" >&6; }
16614 if test $ac_cv_func_alloca_works = yes; then
16616 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16618 else
16619 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16620 # that cause trouble. Some versions do not even contain alloca or
16621 # contain a buggy version. If you still want to use their alloca,
16622 # use ar to extract alloca.o from them instead of compiling alloca.c.
16628 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16630 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16634 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16635 if test "${ac_cv_os_cray+set}" = set; then :
16636 $as_echo_n "(cached) " >&6
16637 else
16638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639 /* end confdefs.h. */
16640 #if defined CRAY && ! defined CRAY2
16641 webecray
16642 #else
16643 wenotbecray
16644 #endif
16646 _ACEOF
16647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16648 $EGREP "webecray" >/dev/null 2>&1; then :
16649 ac_cv_os_cray=yes
16650 else
16651 ac_cv_os_cray=no
16653 rm -f conftest*
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16657 $as_echo "$ac_cv_os_cray" >&6; }
16658 if test $ac_cv_os_cray = yes; then
16659 for ac_func in _getb67 GETB67 getb67; do
16660 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16661 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16662 eval as_val=\$$as_ac_var
16663 if test "x$as_val" = x""yes; then :
16665 cat >>confdefs.h <<_ACEOF
16666 #define CRAY_STACKSEG_END $ac_func
16667 _ACEOF
16669 break
16672 done
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16676 $as_echo_n "checking stack direction for C alloca... " >&6; }
16677 if test "${ac_cv_c_stack_direction+set}" = set; then :
16678 $as_echo_n "(cached) " >&6
16679 else
16680 if test "$cross_compiling" = yes; then :
16681 ac_cv_c_stack_direction=0
16682 else
16683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16684 /* end confdefs.h. */
16685 $ac_includes_default
16687 find_stack_direction (int *addr, int depth)
16689 int dir, dummy = 0;
16690 if (! addr)
16691 addr = &dummy;
16692 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16693 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16694 return dir + dummy;
16698 main (int argc, char **argv)
16700 return find_stack_direction (0, argc + !argv + 20) < 0;
16702 _ACEOF
16703 if ac_fn_c_try_run "$LINENO"; then :
16704 ac_cv_c_stack_direction=1
16705 else
16706 ac_cv_c_stack_direction=-1
16708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16709 conftest.$ac_objext conftest.beam conftest.$ac_ext
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16714 $as_echo "$ac_cv_c_stack_direction" >&6; }
16715 cat >>confdefs.h <<_ACEOF
16716 #define STACK_DIRECTION $ac_cv_c_stack_direction
16717 _ACEOF
16725 for ac_func in $ac_func_list
16726 do :
16727 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16728 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16729 eval as_val=\$$as_ac_var
16730 if test "x$as_val" = x""yes; then :
16731 cat >>confdefs.h <<_ACEOF
16732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16733 _ACEOF
16736 done
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16742 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16743 if test "${ac_cv_c_bigendian+set}" = set; then :
16744 $as_echo_n "(cached) " >&6
16745 else
16746 ac_cv_c_bigendian=unknown
16747 # See if we're dealing with a universal compiler.
16748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16749 /* end confdefs.h. */
16750 #ifndef __APPLE_CC__
16751 not a universal capable compiler
16752 #endif
16753 typedef int dummy;
16755 _ACEOF
16756 if ac_fn_c_try_compile "$LINENO"; then :
16758 # Check for potential -arch flags. It is not universal unless
16759 # there are at least two -arch flags with different values.
16760 ac_arch=
16761 ac_prev=
16762 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16763 if test -n "$ac_prev"; then
16764 case $ac_word in
16765 i?86 | x86_64 | ppc | ppc64)
16766 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16767 ac_arch=$ac_word
16768 else
16769 ac_cv_c_bigendian=universal
16770 break
16773 esac
16774 ac_prev=
16775 elif test "x$ac_word" = "x-arch"; then
16776 ac_prev=arch
16778 done
16780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16781 if test $ac_cv_c_bigendian = unknown; then
16782 # See if sys/param.h defines the BYTE_ORDER macro.
16783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16784 /* end confdefs.h. */
16785 #include <sys/types.h>
16786 #include <sys/param.h>
16789 main ()
16791 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16792 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16793 && LITTLE_ENDIAN)
16794 bogus endian macros
16795 #endif
16798 return 0;
16800 _ACEOF
16801 if ac_fn_c_try_compile "$LINENO"; then :
16802 # It does; now see whether it defined to BIG_ENDIAN or not.
16803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16804 /* end confdefs.h. */
16805 #include <sys/types.h>
16806 #include <sys/param.h>
16809 main ()
16811 #if BYTE_ORDER != BIG_ENDIAN
16812 not big endian
16813 #endif
16816 return 0;
16818 _ACEOF
16819 if ac_fn_c_try_compile "$LINENO"; then :
16820 ac_cv_c_bigendian=yes
16821 else
16822 ac_cv_c_bigendian=no
16824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16828 if test $ac_cv_c_bigendian = unknown; then
16829 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16831 /* end confdefs.h. */
16832 #include <limits.h>
16835 main ()
16837 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16838 bogus endian macros
16839 #endif
16842 return 0;
16844 _ACEOF
16845 if ac_fn_c_try_compile "$LINENO"; then :
16846 # It does; now see whether it defined to _BIG_ENDIAN or not.
16847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16848 /* end confdefs.h. */
16849 #include <limits.h>
16852 main ()
16854 #ifndef _BIG_ENDIAN
16855 not big endian
16856 #endif
16859 return 0;
16861 _ACEOF
16862 if ac_fn_c_try_compile "$LINENO"; then :
16863 ac_cv_c_bigendian=yes
16864 else
16865 ac_cv_c_bigendian=no
16867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16871 if test $ac_cv_c_bigendian = unknown; then
16872 # Compile a test program.
16873 if test "$cross_compiling" = yes; then :
16874 # Try to guess by grepping values from an object file.
16875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16876 /* end confdefs.h. */
16877 short int ascii_mm[] =
16878 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16879 short int ascii_ii[] =
16880 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16881 int use_ascii (int i) {
16882 return ascii_mm[i] + ascii_ii[i];
16884 short int ebcdic_ii[] =
16885 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16886 short int ebcdic_mm[] =
16887 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16888 int use_ebcdic (int i) {
16889 return ebcdic_mm[i] + ebcdic_ii[i];
16891 extern int foo;
16894 main ()
16896 return use_ascii (foo) == use_ebcdic (foo);
16898 return 0;
16900 _ACEOF
16901 if ac_fn_c_try_compile "$LINENO"; then :
16902 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16903 ac_cv_c_bigendian=yes
16905 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16906 if test "$ac_cv_c_bigendian" = unknown; then
16907 ac_cv_c_bigendian=no
16908 else
16909 # finding both strings is unlikely to happen, but who knows?
16910 ac_cv_c_bigendian=unknown
16914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16915 else
16916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16917 /* end confdefs.h. */
16918 $ac_includes_default
16920 main ()
16923 /* Are we little or big endian? From Harbison&Steele. */
16924 union
16926 long int l;
16927 char c[sizeof (long int)];
16928 } u;
16929 u.l = 1;
16930 return u.c[sizeof (long int) - 1] == 1;
16933 return 0;
16935 _ACEOF
16936 if ac_fn_c_try_run "$LINENO"; then :
16937 ac_cv_c_bigendian=no
16938 else
16939 ac_cv_c_bigendian=yes
16941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16942 conftest.$ac_objext conftest.beam conftest.$ac_ext
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16948 $as_echo "$ac_cv_c_bigendian" >&6; }
16949 case $ac_cv_c_bigendian in #(
16950 yes)
16951 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16952 ;; #(
16954 ;; #(
16955 universal)
16957 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16959 ;; #(
16961 as_fn_error "unknown endianness
16962 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16963 esac
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16967 $as_echo_n "checking for inline... " >&6; }
16968 if test "${ac_cv_c_inline+set}" = set; then :
16969 $as_echo_n "(cached) " >&6
16970 else
16971 ac_cv_c_inline=no
16972 for ac_kw in inline __inline__ __inline; do
16973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974 /* end confdefs.h. */
16975 #ifndef __cplusplus
16976 typedef int foo_t;
16977 static $ac_kw foo_t static_foo () {return 0; }
16978 $ac_kw foo_t foo () {return 0; }
16979 #endif
16981 _ACEOF
16982 if ac_fn_c_try_compile "$LINENO"; then :
16983 ac_cv_c_inline=$ac_kw
16985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16986 test "$ac_cv_c_inline" != no && break
16987 done
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16991 $as_echo "$ac_cv_c_inline" >&6; }
16993 case $ac_cv_c_inline in
16994 inline | yes) ;;
16996 case $ac_cv_c_inline in
16997 no) ac_val=;;
16998 *) ac_val=$ac_cv_c_inline;;
16999 esac
17000 cat >>confdefs.h <<_ACEOF
17001 #ifndef __cplusplus
17002 #define inline $ac_val
17003 #endif
17004 _ACEOF
17006 esac
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
17010 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
17011 if test "${gl_cv_func_c99_strtold+set}" = set; then :
17012 $as_echo_n "(cached) " >&6
17013 else
17014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17015 /* end confdefs.h. */
17016 /* On HP-UX before 11.23, strtold returns a struct instead of
17017 long double. Reject implementations like that, by requiring
17018 compatibility with the C99 prototype. */
17019 #include <stdlib.h>
17020 static long double (*p) (char const *, char **) = strtold;
17021 static long double
17022 test (char const *nptr, char **endptr)
17024 long double r;
17025 r = strtold (nptr, endptr);
17026 return r;
17029 main ()
17031 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
17033 return 0;
17035 _ACEOF
17036 if ac_fn_c_try_link "$LINENO"; then :
17037 gl_cv_func_c99_strtold=yes
17038 else
17039 gl_cv_func_c99_strtold=no
17041 rm -f core conftest.err conftest.$ac_objext \
17042 conftest$ac_exeext conftest.$ac_ext
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
17045 $as_echo "$gl_cv_func_c99_strtold" >&6; }
17046 if test $gl_cv_func_c99_strtold = yes; then
17048 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
17053 GNULIB_CHDIR=0;
17054 GNULIB_CHOWN=0;
17055 GNULIB_CLOSE=0;
17056 GNULIB_DUP=0;
17057 GNULIB_DUP2=0;
17058 GNULIB_DUP3=0;
17059 GNULIB_ENVIRON=0;
17060 GNULIB_EUIDACCESS=0;
17061 GNULIB_FACCESSAT=0;
17062 GNULIB_FCHDIR=0;
17063 GNULIB_FCHOWNAT=0;
17064 GNULIB_FDATASYNC=0;
17065 GNULIB_FSYNC=0;
17066 GNULIB_FTRUNCATE=0;
17067 GNULIB_GETCWD=0;
17068 GNULIB_GETDOMAINNAME=0;
17069 GNULIB_GETDTABLESIZE=0;
17070 GNULIB_GETGROUPS=0;
17071 GNULIB_GETHOSTNAME=0;
17072 GNULIB_GETLOGIN=0;
17073 GNULIB_GETLOGIN_R=0;
17074 GNULIB_GETPAGESIZE=0;
17075 GNULIB_GETUSERSHELL=0;
17076 GNULIB_GROUP_MEMBER=0;
17077 GNULIB_LCHOWN=0;
17078 GNULIB_LINK=0;
17079 GNULIB_LINKAT=0;
17080 GNULIB_LSEEK=0;
17081 GNULIB_PIPE=0;
17082 GNULIB_PIPE2=0;
17083 GNULIB_PREAD=0;
17084 GNULIB_PWRITE=0;
17085 GNULIB_READ=0;
17086 GNULIB_READLINK=0;
17087 GNULIB_READLINKAT=0;
17088 GNULIB_RMDIR=0;
17089 GNULIB_SLEEP=0;
17090 GNULIB_SYMLINK=0;
17091 GNULIB_SYMLINKAT=0;
17092 GNULIB_TTYNAME_R=0;
17093 GNULIB_UNISTD_H_GETOPT=0;
17094 GNULIB_UNISTD_H_NONBLOCKING=0;
17095 GNULIB_UNISTD_H_SIGPIPE=0;
17096 GNULIB_UNLINK=0;
17097 GNULIB_UNLINKAT=0;
17098 GNULIB_USLEEP=0;
17099 GNULIB_WRITE=0;
17100 HAVE_CHOWN=1;
17101 HAVE_DUP2=1;
17102 HAVE_DUP3=1;
17103 HAVE_EUIDACCESS=1;
17104 HAVE_FACCESSAT=1;
17105 HAVE_FCHDIR=1;
17106 HAVE_FCHOWNAT=1;
17107 HAVE_FDATASYNC=1;
17108 HAVE_FSYNC=1;
17109 HAVE_FTRUNCATE=1;
17110 HAVE_GETDTABLESIZE=1;
17111 HAVE_GETGROUPS=1;
17112 HAVE_GETHOSTNAME=1;
17113 HAVE_GETLOGIN=1;
17114 HAVE_GETPAGESIZE=1;
17115 HAVE_GROUP_MEMBER=1;
17116 HAVE_LCHOWN=1;
17117 HAVE_LINK=1;
17118 HAVE_LINKAT=1;
17119 HAVE_PIPE=1;
17120 HAVE_PIPE2=1;
17121 HAVE_PREAD=1;
17122 HAVE_PWRITE=1;
17123 HAVE_READLINK=1;
17124 HAVE_READLINKAT=1;
17125 HAVE_SLEEP=1;
17126 HAVE_SYMLINK=1;
17127 HAVE_SYMLINKAT=1;
17128 HAVE_UNLINKAT=1;
17129 HAVE_USLEEP=1;
17130 HAVE_DECL_ENVIRON=1;
17131 HAVE_DECL_FCHDIR=1;
17132 HAVE_DECL_FDATASYNC=1;
17133 HAVE_DECL_GETDOMAINNAME=1;
17134 HAVE_DECL_GETLOGIN_R=1;
17135 HAVE_DECL_GETPAGESIZE=1;
17136 HAVE_DECL_GETUSERSHELL=1;
17137 HAVE_DECL_TTYNAME_R=1;
17138 HAVE_OS_H=0;
17139 HAVE_SYS_PARAM_H=0;
17140 REPLACE_CHOWN=0;
17141 REPLACE_CLOSE=0;
17142 REPLACE_DUP=0;
17143 REPLACE_DUP2=0;
17144 REPLACE_FCHOWNAT=0;
17145 REPLACE_GETCWD=0;
17146 REPLACE_GETDOMAINNAME=0;
17147 REPLACE_GETLOGIN_R=0;
17148 REPLACE_GETGROUPS=0;
17149 REPLACE_GETPAGESIZE=0;
17150 REPLACE_LCHOWN=0;
17151 REPLACE_LINK=0;
17152 REPLACE_LINKAT=0;
17153 REPLACE_LSEEK=0;
17154 REPLACE_PREAD=0;
17155 REPLACE_PWRITE=0;
17156 REPLACE_READ=0;
17157 REPLACE_READLINK=0;
17158 REPLACE_RMDIR=0;
17159 REPLACE_SLEEP=0;
17160 REPLACE_SYMLINK=0;
17161 REPLACE_TTYNAME_R=0;
17162 REPLACE_UNLINK=0;
17163 REPLACE_UNLINKAT=0;
17164 REPLACE_USLEEP=0;
17165 REPLACE_WRITE=0;
17166 UNISTD_H_HAVE_WINSOCK2_H=0;
17167 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
17171 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
17172 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
17173 $as_echo_n "(cached) " >&6
17174 else
17175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17176 /* end confdefs.h. */
17178 #include <sys/types.h>
17179 #include <sys/stat.h>
17181 main ()
17183 struct stat s; s.st_dm_mode;
17185 return 0;
17187 _ACEOF
17188 if ac_fn_c_try_compile "$LINENO"; then :
17189 ac_cv_struct_st_dm_mode=yes
17190 else
17191 ac_cv_struct_st_dm_mode=no
17193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
17196 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
17198 if test $ac_cv_struct_st_dm_mode = yes; then
17200 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
17205 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
17206 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
17207 ac_have_decl=1
17208 else
17209 ac_have_decl=0
17212 cat >>confdefs.h <<_ACEOF
17213 #define HAVE_DECL_STRMODE $ac_have_decl
17214 _ACEOF
17217 GNULIB__EXIT=0;
17218 GNULIB_ATOLL=0;
17219 GNULIB_CALLOC_POSIX=0;
17220 GNULIB_CANONICALIZE_FILE_NAME=0;
17221 GNULIB_GETLOADAVG=0;
17222 GNULIB_GETSUBOPT=0;
17223 GNULIB_GRANTPT=0;
17224 GNULIB_MALLOC_POSIX=0;
17225 GNULIB_MBTOWC=0;
17226 GNULIB_MKDTEMP=0;
17227 GNULIB_MKOSTEMP=0;
17228 GNULIB_MKOSTEMPS=0;
17229 GNULIB_MKSTEMP=0;
17230 GNULIB_MKSTEMPS=0;
17231 GNULIB_PTSNAME=0;
17232 GNULIB_PUTENV=0;
17233 GNULIB_RANDOM_R=0;
17234 GNULIB_REALLOC_POSIX=0;
17235 GNULIB_REALPATH=0;
17236 GNULIB_RPMATCH=0;
17237 GNULIB_SETENV=0;
17238 GNULIB_STRTOD=0;
17239 GNULIB_STRTOLL=0;
17240 GNULIB_STRTOULL=0;
17241 GNULIB_SYSTEM_POSIX=0;
17242 GNULIB_UNLOCKPT=0;
17243 GNULIB_UNSETENV=0;
17244 GNULIB_WCTOMB=0;
17245 HAVE__EXIT=1;
17246 HAVE_ATOLL=1;
17247 HAVE_CANONICALIZE_FILE_NAME=1;
17248 HAVE_DECL_GETLOADAVG=1;
17249 HAVE_GETSUBOPT=1;
17250 HAVE_GRANTPT=1;
17251 HAVE_MKDTEMP=1;
17252 HAVE_MKOSTEMP=1;
17253 HAVE_MKOSTEMPS=1;
17254 HAVE_MKSTEMP=1;
17255 HAVE_MKSTEMPS=1;
17256 HAVE_PTSNAME=1;
17257 HAVE_RANDOM_H=1;
17258 HAVE_RANDOM_R=1;
17259 HAVE_REALPATH=1;
17260 HAVE_RPMATCH=1;
17261 HAVE_SETENV=1;
17262 HAVE_DECL_SETENV=1;
17263 HAVE_STRTOD=1;
17264 HAVE_STRTOLL=1;
17265 HAVE_STRTOULL=1;
17266 HAVE_STRUCT_RANDOM_DATA=1;
17267 HAVE_SYS_LOADAVG_H=0;
17268 HAVE_UNLOCKPT=1;
17269 HAVE_DECL_UNSETENV=1;
17270 REPLACE_CALLOC=0;
17271 REPLACE_CANONICALIZE_FILE_NAME=0;
17272 REPLACE_MALLOC=0;
17273 REPLACE_MBTOWC=0;
17274 REPLACE_MKSTEMP=0;
17275 REPLACE_PUTENV=0;
17276 REPLACE_REALLOC=0;
17277 REPLACE_REALPATH=0;
17278 REPLACE_SETENV=0;
17279 REPLACE_STRTOD=0;
17280 REPLACE_UNSETENV=0;
17281 REPLACE_WCTOMB=0;
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17286 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17287 if test "${gl_cv_have_include_next+set}" = set; then :
17288 $as_echo_n "(cached) " >&6
17289 else
17290 rm -rf conftestd1a conftestd1b conftestd2
17291 mkdir conftestd1a conftestd1b conftestd2
17292 cat <<EOF > conftestd1a/conftest.h
17293 #define DEFINED_IN_CONFTESTD1
17294 #include_next <conftest.h>
17295 #ifdef DEFINED_IN_CONFTESTD2
17296 int foo;
17297 #else
17298 #error "include_next doesn't work"
17299 #endif
17301 cat <<EOF > conftestd1b/conftest.h
17302 #define DEFINED_IN_CONFTESTD1
17303 #include <stdio.h>
17304 #include_next <conftest.h>
17305 #ifdef DEFINED_IN_CONFTESTD2
17306 int foo;
17307 #else
17308 #error "include_next doesn't work"
17309 #endif
17311 cat <<EOF > conftestd2/conftest.h
17312 #ifndef DEFINED_IN_CONFTESTD1
17313 #error "include_next test doesn't work"
17314 #endif
17315 #define DEFINED_IN_CONFTESTD2
17317 gl_save_CPPFLAGS="$CPPFLAGS"
17318 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17320 /* end confdefs.h. */
17321 #include <conftest.h>
17322 _ACEOF
17323 if ac_fn_c_try_compile "$LINENO"; then :
17324 gl_cv_have_include_next=yes
17325 else
17326 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328 /* end confdefs.h. */
17329 #include <conftest.h>
17330 _ACEOF
17331 if ac_fn_c_try_compile "$LINENO"; then :
17332 gl_cv_have_include_next=buggy
17333 else
17334 gl_cv_have_include_next=no
17336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17340 CPPFLAGS="$gl_save_CPPFLAGS"
17341 rm -rf conftestd1a conftestd1b conftestd2
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17345 $as_echo "$gl_cv_have_include_next" >&6; }
17346 PRAGMA_SYSTEM_HEADER=
17347 if test $gl_cv_have_include_next = yes; then
17348 INCLUDE_NEXT=include_next
17349 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17350 if test -n "$GCC"; then
17351 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17353 else
17354 if test $gl_cv_have_include_next = buggy; then
17355 INCLUDE_NEXT=include
17356 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17357 else
17358 INCLUDE_NEXT=include
17359 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17366 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17367 if test "${gl_cv_pragma_columns+set}" = set; then :
17368 $as_echo_n "(cached) " >&6
17369 else
17370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17371 /* end confdefs.h. */
17373 #ifdef __TANDEM
17374 choke me
17375 #endif
17377 _ACEOF
17378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17379 $EGREP "choke me" >/dev/null 2>&1; then :
17380 gl_cv_pragma_columns=yes
17381 else
17382 gl_cv_pragma_columns=no
17384 rm -f conftest*
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17389 $as_echo "$gl_cv_pragma_columns" >&6; }
17390 if test $gl_cv_pragma_columns = yes; then
17391 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17392 else
17393 PRAGMA_COLUMNS=
17412 if test $gl_cv_have_include_next = yes; then
17413 gl_cv_next_getopt_h='<'getopt.h'>'
17414 else
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17416 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17417 if test "${gl_cv_next_getopt_h+set}" = set; then :
17418 $as_echo_n "(cached) " >&6
17419 else
17421 if test $ac_cv_header_getopt_h = yes; then
17424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17425 /* end confdefs.h. */
17426 #include <getopt.h>
17428 _ACEOF
17429 case "$host_os" in
17430 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17431 *) gl_absname_cpp="$ac_cpp" ;;
17432 esac
17434 case "$host_os" in
17435 mingw*)
17436 gl_dirsep_regex='[/\\]'
17439 gl_dirsep_regex='/'
17441 esac
17443 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'getopt.h|{
17444 s|.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*|\1|
17445 s|^/[^/]|//&|
17449 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17450 sed -n "$gl_absolute_header_sed"`'"'
17451 else
17452 gl_cv_next_getopt_h='<'getopt.h'>'
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17458 $as_echo "$gl_cv_next_getopt_h" >&6; }
17460 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17462 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17463 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17464 gl_next_as_first_directive='<'getopt.h'>'
17465 else
17466 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17467 gl_next_as_first_directive=$gl_cv_next_getopt_h
17469 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17474 if test $ac_cv_header_getopt_h = yes; then
17475 HAVE_GETOPT_H=1
17476 else
17477 HAVE_GETOPT_H=0
17481 gl_replace_getopt=
17483 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17484 for ac_header in getopt.h
17485 do :
17486 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17487 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17488 cat >>confdefs.h <<_ACEOF
17489 #define HAVE_GETOPT_H 1
17490 _ACEOF
17492 else
17493 gl_replace_getopt=yes
17496 done
17500 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17501 for ac_func in getopt_long_only
17502 do :
17503 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17504 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17505 cat >>confdefs.h <<_ACEOF
17506 #define HAVE_GETOPT_LONG_ONLY 1
17507 _ACEOF
17509 else
17510 gl_replace_getopt=yes
17512 done
17516 if test -z "$gl_replace_getopt"; then
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17518 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17519 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17520 $as_echo_n "(cached) " >&6
17521 else
17523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17524 /* end confdefs.h. */
17525 #include <unistd.h>
17527 main ()
17529 int *p = &optreset; return optreset;
17531 return 0;
17533 _ACEOF
17534 if ac_fn_c_try_link "$LINENO"; then :
17535 gl_optind_min=1
17536 else
17537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17538 /* end confdefs.h. */
17539 #include <getopt.h>
17541 main ()
17543 return !getopt_clip;
17545 return 0;
17547 _ACEOF
17548 if ac_fn_c_try_compile "$LINENO"; then :
17549 gl_optind_min=1
17550 else
17551 gl_optind_min=0
17553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17555 rm -f core conftest.err conftest.$ac_objext \
17556 conftest$ac_exeext conftest.$ac_ext
17558 gl_save_CPPFLAGS=$CPPFLAGS
17559 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
17560 if test "$cross_compiling" = yes; then :
17561 case "$host_os" in
17562 mingw*) gl_cv_func_getopt_posix="guessing no";;
17563 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
17564 *) gl_cv_func_getopt_posix="guessing yes";;
17565 esac
17567 else
17568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17569 /* end confdefs.h. */
17571 #include <unistd.h>
17572 #include <stdlib.h>
17573 #include <string.h>
17576 main ()
17579 static char program[] = "program";
17580 static char a[] = "-a";
17581 static char foo[] = "foo";
17582 static char bar[] = "bar";
17583 char *argv[] = { program, a, foo, bar, NULL };
17584 int c;
17586 optind = OPTIND_MIN;
17587 opterr = 0;
17589 c = getopt (4, argv, "ab");
17590 if (!(c == 'a'))
17591 return 1;
17592 c = getopt (4, argv, "ab");
17593 if (!(c == -1))
17594 return 2;
17595 if (!(optind == 2))
17596 return 3;
17598 /* Some internal state exists at this point. */
17600 static char program[] = "program";
17601 static char donald[] = "donald";
17602 static char p[] = "-p";
17603 static char billy[] = "billy";
17604 static char duck[] = "duck";
17605 static char a[] = "-a";
17606 static char bar[] = "bar";
17607 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17608 int c;
17610 optind = OPTIND_MIN;
17611 opterr = 0;
17613 c = getopt (7, argv, "+abp:q:");
17614 if (!(c == -1))
17615 return 4;
17616 if (!(strcmp (argv[0], "program") == 0))
17617 return 5;
17618 if (!(strcmp (argv[1], "donald") == 0))
17619 return 6;
17620 if (!(strcmp (argv[2], "-p") == 0))
17621 return 7;
17622 if (!(strcmp (argv[3], "billy") == 0))
17623 return 8;
17624 if (!(strcmp (argv[4], "duck") == 0))
17625 return 9;
17626 if (!(strcmp (argv[5], "-a") == 0))
17627 return 10;
17628 if (!(strcmp (argv[6], "bar") == 0))
17629 return 11;
17630 if (!(optind == 1))
17631 return 12;
17633 /* Detect MacOS 10.5, AIX 7.1 bug. */
17635 static char program[] = "program";
17636 static char ab[] = "-ab";
17637 char *argv[3] = { program, ab, NULL };
17638 optind = OPTIND_MIN;
17639 opterr = 0;
17640 if (getopt (2, argv, "ab:") != 'a')
17641 return 13;
17642 if (getopt (2, argv, "ab:") != '?')
17643 return 14;
17644 if (optopt != 'b')
17645 return 15;
17646 if (optind != 2)
17647 return 16;
17650 return 0;
17653 _ACEOF
17654 if ac_fn_c_try_run "$LINENO"; then :
17655 gl_cv_func_getopt_posix=yes
17656 else
17657 gl_cv_func_getopt_posix=no
17659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17660 conftest.$ac_objext conftest.beam conftest.$ac_ext
17663 CPPFLAGS=$gl_save_CPPFLAGS
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17667 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17668 case "$gl_cv_func_getopt_posix" in
17669 *no) gl_replace_getopt=yes ;;
17670 esac
17673 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17675 $as_echo_n "checking for working GNU getopt function... " >&6; }
17676 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17677 $as_echo_n "(cached) " >&6
17678 else
17679 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17680 # optstring is necessary for programs like m4 that have POSIX-mandated
17681 # semantics for supporting options interspersed with files.
17682 # Also, since getopt_long is a GNU extension, we require optind=0.
17683 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17684 # so take care to revert to the correct (non-)export state.
17685 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17686 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17687 xx) gl_had_POSIXLY_CORRECT=exported ;;
17688 x) gl_had_POSIXLY_CORRECT=yes ;;
17689 *) gl_had_POSIXLY_CORRECT= ;;
17690 esac
17691 POSIXLY_CORRECT=1
17692 export POSIXLY_CORRECT
17693 if test "$cross_compiling" = yes; then :
17694 case $host_os:$ac_cv_have_decl_optreset in
17695 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
17696 *:yes) gl_cv_func_getopt_gnu=no;;
17697 *) gl_cv_func_getopt_gnu=yes;;
17698 esac
17700 else
17701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17702 /* end confdefs.h. */
17703 #include <getopt.h>
17704 #include <stddef.h>
17705 #include <string.h>
17707 #include <stdlib.h>
17708 #if defined __MACH__ && defined __APPLE__
17709 /* Avoid a crash on MacOS X. */
17710 #include <mach/mach.h>
17711 #include <mach/mach_error.h>
17712 #include <mach/thread_status.h>
17713 #include <mach/exception.h>
17714 #include <mach/task.h>
17715 #include <pthread.h>
17716 /* The exception port on which our thread listens. */
17717 static mach_port_t our_exception_port;
17718 /* The main function of the thread listening for exceptions of type
17719 EXC_BAD_ACCESS. */
17720 static void *
17721 mach_exception_thread (void *arg)
17723 /* Buffer for a message to be received. */
17724 struct {
17725 mach_msg_header_t head;
17726 mach_msg_body_t msgh_body;
17727 char data[1024];
17728 } msg;
17729 mach_msg_return_t retval;
17730 /* Wait for a message on the exception port. */
17731 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17732 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17733 if (retval != MACH_MSG_SUCCESS)
17734 abort ();
17735 exit (1);
17737 static void
17738 nocrash_init (void)
17740 mach_port_t self = mach_task_self ();
17741 /* Allocate a port on which the thread shall listen for exceptions. */
17742 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17743 == KERN_SUCCESS) {
17744 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17745 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17746 MACH_MSG_TYPE_MAKE_SEND)
17747 == KERN_SUCCESS) {
17748 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17749 for us. */
17750 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17751 /* Create the thread listening on the exception port. */
17752 pthread_attr_t attr;
17753 pthread_t thread;
17754 if (pthread_attr_init (&attr) == 0
17755 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17756 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17757 pthread_attr_destroy (&attr);
17758 /* Replace the exception port info for these exceptions with our own.
17759 Note that we replace the exception port for the entire task, not only
17760 for a particular thread. This has the effect that when our exception
17761 port gets the message, the thread specific exception port has already
17762 been asked, and we don't need to bother about it.
17763 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17764 task_set_exception_ports (self, mask, our_exception_port,
17765 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17770 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17771 /* Avoid a crash on native Windows. */
17772 #define WIN32_LEAN_AND_MEAN
17773 #include <windows.h>
17774 #include <winerror.h>
17775 static LONG WINAPI
17776 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17778 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17780 case EXCEPTION_ACCESS_VIOLATION:
17781 case EXCEPTION_IN_PAGE_ERROR:
17782 case EXCEPTION_STACK_OVERFLOW:
17783 case EXCEPTION_GUARD_PAGE:
17784 case EXCEPTION_PRIV_INSTRUCTION:
17785 case EXCEPTION_ILLEGAL_INSTRUCTION:
17786 case EXCEPTION_DATATYPE_MISALIGNMENT:
17787 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17788 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17789 exit (1);
17791 return EXCEPTION_CONTINUE_SEARCH;
17793 static void
17794 nocrash_init (void)
17796 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17798 #else
17799 /* Avoid a crash on POSIX systems. */
17800 #include <signal.h>
17801 /* A POSIX signal handler. */
17802 static void
17803 exception_handler (int sig)
17805 exit (1);
17807 static void
17808 nocrash_init (void)
17810 #ifdef SIGSEGV
17811 signal (SIGSEGV, exception_handler);
17812 #endif
17813 #ifdef SIGBUS
17814 signal (SIGBUS, exception_handler);
17815 #endif
17817 #endif
17821 main ()
17824 int result = 0;
17826 nocrash_init();
17828 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17829 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17830 OSF/1 5.1, Solaris 10. */
17832 static char conftest[] = "conftest";
17833 static char plus[] = "-+";
17834 char *argv[3] = { conftest, plus, NULL };
17835 opterr = 0;
17836 if (getopt (2, argv, "+a") != '?')
17837 result |= 1;
17839 /* This code succeeds on glibc 2.8, mingw,
17840 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17841 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17843 static char program[] = "program";
17844 static char p[] = "-p";
17845 static char foo[] = "foo";
17846 static char bar[] = "bar";
17847 char *argv[] = { program, p, foo, bar, NULL };
17849 optind = 1;
17850 if (getopt (4, argv, "p::") != 'p')
17851 result |= 2;
17852 else if (optarg != NULL)
17853 result |= 4;
17854 else if (getopt (4, argv, "p::") != -1)
17855 result |= 6;
17856 else if (optind != 2)
17857 result |= 8;
17859 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17861 static char program[] = "program";
17862 static char foo[] = "foo";
17863 static char p[] = "-p";
17864 char *argv[] = { program, foo, p, NULL };
17865 optind = 0;
17866 if (getopt (3, argv, "-p") != 1)
17867 result |= 16;
17868 else if (getopt (3, argv, "-p") != 'p')
17869 result |= 32;
17871 /* This code fails on glibc 2.11. */
17873 static char program[] = "program";
17874 static char b[] = "-b";
17875 static char a[] = "-a";
17876 char *argv[] = { program, b, a, NULL };
17877 optind = opterr = 0;
17878 if (getopt (3, argv, "+:a:b") != 'b')
17879 result |= 64;
17880 else if (getopt (3, argv, "+:a:b") != ':')
17881 result |= 64;
17883 /* This code dumps core on glibc 2.14. */
17885 static char program[] = "program";
17886 static char w[] = "-W";
17887 static char dummy[] = "dummy";
17888 char *argv[] = { program, w, dummy, NULL };
17889 optind = opterr = 1;
17890 if (getopt (3, argv, "W;") != 'W')
17891 result |= 128;
17893 return result;
17896 return 0;
17898 _ACEOF
17899 if ac_fn_c_try_run "$LINENO"; then :
17900 gl_cv_func_getopt_gnu=yes
17901 else
17902 gl_cv_func_getopt_gnu=no
17904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17905 conftest.$ac_objext conftest.beam conftest.$ac_ext
17908 case $gl_had_POSIXLY_CORRECT in
17909 exported) ;;
17910 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17911 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17912 esac
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17916 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17917 if test "$gl_cv_func_getopt_gnu" = "no"; then
17918 gl_replace_getopt=yes
17926 REPLACE_GETOPT=0
17929 if test -n "$gl_replace_getopt"; then :
17931 REPLACE_GETOPT=1
17936 if test $REPLACE_GETOPT = 1; then
17938 GETOPT_H=getopt.h
17940 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17944 GNULIB_UNISTD_H_GETOPT=1
17947 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17948 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17949 ac_have_decl=1
17950 else
17951 ac_have_decl=0
17954 cat >>confdefs.h <<_ACEOF
17955 #define HAVE_DECL_GETENV $ac_have_decl
17956 _ACEOF
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17960 $as_echo_n "checking for unsigned long long int... " >&6; }
17961 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17962 $as_echo_n "(cached) " >&6
17963 else
17964 ac_cv_type_unsigned_long_long_int=yes
17965 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17967 /* end confdefs.h. */
17969 /* For now, do not test the preprocessor; as of 2007 there are too many
17970 implementations with broken preprocessors. Perhaps this can
17971 be revisited in 2012. In the meantime, code should not expect
17972 #if to work with literals wider than 32 bits. */
17973 /* Test literals. */
17974 long long int ll = 9223372036854775807ll;
17975 long long int nll = -9223372036854775807LL;
17976 unsigned long long int ull = 18446744073709551615ULL;
17977 /* Test constant expressions. */
17978 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17979 ? 1 : -1)];
17980 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17981 ? 1 : -1)];
17982 int i = 63;
17984 main ()
17986 /* Test availability of runtime routines for shift and division. */
17987 long long int llmax = 9223372036854775807ll;
17988 unsigned long long int ullmax = 18446744073709551615ull;
17989 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17990 | (llmax / ll) | (llmax % ll)
17991 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17992 | (ullmax / ull) | (ullmax % ull));
17994 return 0;
17997 _ACEOF
17998 if ac_fn_c_try_link "$LINENO"; then :
18000 else
18001 ac_cv_type_unsigned_long_long_int=no
18003 rm -f core conftest.err conftest.$ac_objext \
18004 conftest$ac_exeext conftest.$ac_ext
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18008 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18009 if test $ac_cv_type_unsigned_long_long_int = yes; then
18011 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18018 $as_echo_n "checking for long long int... " >&6; }
18019 if test "${ac_cv_type_long_long_int+set}" = set; then :
18020 $as_echo_n "(cached) " >&6
18021 else
18022 ac_cv_type_long_long_int=yes
18023 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18024 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18025 if test $ac_cv_type_long_long_int = yes; then
18026 if test "$cross_compiling" = yes; then :
18028 else
18029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18030 /* end confdefs.h. */
18031 #include <limits.h>
18032 #ifndef LLONG_MAX
18033 # define HALF \
18034 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18035 # define LLONG_MAX (HALF - 1 + HALF)
18036 #endif
18038 main ()
18040 long long int n = 1;
18041 int i;
18042 for (i = 0; ; i++)
18044 long long int m = n << i;
18045 if (m >> i != n)
18046 return 1;
18047 if (LLONG_MAX / 2 < m)
18048 break;
18050 return 0;
18052 return 0;
18054 _ACEOF
18055 if ac_fn_c_try_run "$LINENO"; then :
18057 else
18058 ac_cv_type_long_long_int=no
18060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18061 conftest.$ac_objext conftest.beam conftest.$ac_ext
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18068 $as_echo "$ac_cv_type_long_long_int" >&6; }
18069 if test $ac_cv_type_long_long_int = yes; then
18071 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18080 gl_cv_c_multiarch=no
18081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18082 /* end confdefs.h. */
18083 #ifndef __APPLE_CC__
18084 not a universal capable compiler
18085 #endif
18086 typedef int dummy;
18088 _ACEOF
18089 if ac_fn_c_try_compile "$LINENO"; then :
18091 arch=
18092 prev=
18093 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18094 if test -n "$prev"; then
18095 case $word in
18096 i?86 | x86_64 | ppc | ppc64)
18097 if test -z "$arch" || test "$arch" = "$word"; then
18098 arch="$word"
18099 else
18100 gl_cv_c_multiarch=yes
18103 esac
18104 prev=
18105 else
18106 if test "x$word" = "x-arch"; then
18107 prev=arch
18110 done
18113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18114 if test $gl_cv_c_multiarch = yes; then
18115 APPLE_UNIVERSAL_BUILD=1
18116 else
18117 APPLE_UNIVERSAL_BUILD=0
18124 if test $ac_cv_type_long_long_int = yes; then
18125 HAVE_LONG_LONG_INT=1
18126 else
18127 HAVE_LONG_LONG_INT=0
18131 if test $ac_cv_type_unsigned_long_long_int = yes; then
18132 HAVE_UNSIGNED_LONG_LONG_INT=1
18133 else
18134 HAVE_UNSIGNED_LONG_LONG_INT=0
18139 if test $ac_cv_header_wchar_h = yes; then
18140 HAVE_WCHAR_H=1
18141 else
18142 HAVE_WCHAR_H=0
18146 if test $ac_cv_header_inttypes_h = yes; then
18147 HAVE_INTTYPES_H=1
18148 else
18149 HAVE_INTTYPES_H=0
18153 if test $ac_cv_header_sys_types_h = yes; then
18154 HAVE_SYS_TYPES_H=1
18155 else
18156 HAVE_SYS_TYPES_H=0
18169 if test $gl_cv_have_include_next = yes; then
18170 gl_cv_next_stdint_h='<'stdint.h'>'
18171 else
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18173 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18174 if test "${gl_cv_next_stdint_h+set}" = set; then :
18175 $as_echo_n "(cached) " >&6
18176 else
18178 if test $ac_cv_header_stdint_h = yes; then
18181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18182 /* end confdefs.h. */
18183 #include <stdint.h>
18185 _ACEOF
18186 case "$host_os" in
18187 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18188 *) gl_absname_cpp="$ac_cpp" ;;
18189 esac
18191 case "$host_os" in
18192 mingw*)
18193 gl_dirsep_regex='[/\\]'
18196 gl_dirsep_regex='/'
18198 esac
18200 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdint.h|{
18201 s|.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*|\1|
18202 s|^/[^/]|//&|
18206 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18207 sed -n "$gl_absolute_header_sed"`'"'
18208 else
18209 gl_cv_next_stdint_h='<'stdint.h'>'
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18215 $as_echo "$gl_cv_next_stdint_h" >&6; }
18217 NEXT_STDINT_H=$gl_cv_next_stdint_h
18219 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18220 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18221 gl_next_as_first_directive='<'stdint.h'>'
18222 else
18223 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18224 gl_next_as_first_directive=$gl_cv_next_stdint_h
18226 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18231 if test $ac_cv_header_stdint_h = yes; then
18232 HAVE_STDINT_H=1
18233 else
18234 HAVE_STDINT_H=0
18238 if test $ac_cv_header_stdint_h = yes; then
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18240 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18241 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18242 $as_echo_n "(cached) " >&6
18243 else
18244 gl_cv_header_working_stdint_h=no
18245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18246 /* end confdefs.h. */
18249 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
18250 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
18251 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18252 #include <stdint.h>
18253 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18254 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18255 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18256 #endif
18259 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18260 included before <wchar.h>. */
18261 #include <stddef.h>
18262 #include <signal.h>
18263 #if HAVE_WCHAR_H
18264 # include <stdio.h>
18265 # include <time.h>
18266 # include <wchar.h>
18267 #endif
18270 #ifdef INT8_MAX
18271 int8_t a1 = INT8_MAX;
18272 int8_t a1min = INT8_MIN;
18273 #endif
18274 #ifdef INT16_MAX
18275 int16_t a2 = INT16_MAX;
18276 int16_t a2min = INT16_MIN;
18277 #endif
18278 #ifdef INT32_MAX
18279 int32_t a3 = INT32_MAX;
18280 int32_t a3min = INT32_MIN;
18281 #endif
18282 #ifdef INT64_MAX
18283 int64_t a4 = INT64_MAX;
18284 int64_t a4min = INT64_MIN;
18285 #endif
18286 #ifdef UINT8_MAX
18287 uint8_t b1 = UINT8_MAX;
18288 #else
18289 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18290 #endif
18291 #ifdef UINT16_MAX
18292 uint16_t b2 = UINT16_MAX;
18293 #endif
18294 #ifdef UINT32_MAX
18295 uint32_t b3 = UINT32_MAX;
18296 #endif
18297 #ifdef UINT64_MAX
18298 uint64_t b4 = UINT64_MAX;
18299 #endif
18300 int_least8_t c1 = INT8_C (0x7f);
18301 int_least8_t c1max = INT_LEAST8_MAX;
18302 int_least8_t c1min = INT_LEAST8_MIN;
18303 int_least16_t c2 = INT16_C (0x7fff);
18304 int_least16_t c2max = INT_LEAST16_MAX;
18305 int_least16_t c2min = INT_LEAST16_MIN;
18306 int_least32_t c3 = INT32_C (0x7fffffff);
18307 int_least32_t c3max = INT_LEAST32_MAX;
18308 int_least32_t c3min = INT_LEAST32_MIN;
18309 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18310 int_least64_t c4max = INT_LEAST64_MAX;
18311 int_least64_t c4min = INT_LEAST64_MIN;
18312 uint_least8_t d1 = UINT8_C (0xff);
18313 uint_least8_t d1max = UINT_LEAST8_MAX;
18314 uint_least16_t d2 = UINT16_C (0xffff);
18315 uint_least16_t d2max = UINT_LEAST16_MAX;
18316 uint_least32_t d3 = UINT32_C (0xffffffff);
18317 uint_least32_t d3max = UINT_LEAST32_MAX;
18318 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18319 uint_least64_t d4max = UINT_LEAST64_MAX;
18320 int_fast8_t e1 = INT_FAST8_MAX;
18321 int_fast8_t e1min = INT_FAST8_MIN;
18322 int_fast16_t e2 = INT_FAST16_MAX;
18323 int_fast16_t e2min = INT_FAST16_MIN;
18324 int_fast32_t e3 = INT_FAST32_MAX;
18325 int_fast32_t e3min = INT_FAST32_MIN;
18326 int_fast64_t e4 = INT_FAST64_MAX;
18327 int_fast64_t e4min = INT_FAST64_MIN;
18328 uint_fast8_t f1 = UINT_FAST8_MAX;
18329 uint_fast16_t f2 = UINT_FAST16_MAX;
18330 uint_fast32_t f3 = UINT_FAST32_MAX;
18331 uint_fast64_t f4 = UINT_FAST64_MAX;
18332 #ifdef INTPTR_MAX
18333 intptr_t g = INTPTR_MAX;
18334 intptr_t gmin = INTPTR_MIN;
18335 #endif
18336 #ifdef UINTPTR_MAX
18337 uintptr_t h = UINTPTR_MAX;
18338 #endif
18339 intmax_t i = INTMAX_MAX;
18340 uintmax_t j = UINTMAX_MAX;
18342 #include <limits.h> /* for CHAR_BIT */
18343 #define TYPE_MINIMUM(t) \
18344 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18345 #define TYPE_MAXIMUM(t) \
18346 ((t) ((t) 0 < (t) -1 \
18347 ? (t) -1 \
18348 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18349 struct s {
18350 int check_PTRDIFF:
18351 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18352 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18353 ? 1 : -1;
18354 /* Detect bug in FreeBSD 6.0 / ia64. */
18355 int check_SIG_ATOMIC:
18356 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18357 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18358 ? 1 : -1;
18359 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18360 int check_WCHAR:
18361 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18362 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18363 ? 1 : -1;
18364 /* Detect bug in mingw. */
18365 int check_WINT:
18366 WINT_MIN == TYPE_MINIMUM (wint_t)
18367 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18368 ? 1 : -1;
18370 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18371 int check_UINT8_C:
18372 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18373 int check_UINT16_C:
18374 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18376 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18377 #ifdef UINT8_MAX
18378 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18379 #endif
18380 #ifdef UINT16_MAX
18381 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18382 #endif
18383 #ifdef UINT32_MAX
18384 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18385 #endif
18386 #ifdef UINT64_MAX
18387 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18388 #endif
18389 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18390 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18391 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18392 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18393 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18394 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18395 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18396 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18397 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18398 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18399 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18403 main ()
18407 return 0;
18409 _ACEOF
18410 if ac_fn_c_try_compile "$LINENO"; then :
18411 if test "$cross_compiling" = yes; then :
18412 gl_cv_header_working_stdint_h=yes
18414 else
18415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18416 /* end confdefs.h. */
18419 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
18420 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
18421 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18422 #include <stdint.h>
18425 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18426 included before <wchar.h>. */
18427 #include <stddef.h>
18428 #include <signal.h>
18429 #if HAVE_WCHAR_H
18430 # include <stdio.h>
18431 # include <time.h>
18432 # include <wchar.h>
18433 #endif
18436 #include <stdio.h>
18437 #include <string.h>
18438 #define MVAL(macro) MVAL1(macro)
18439 #define MVAL1(expression) #expression
18440 static const char *macro_values[] =
18442 #ifdef INT8_MAX
18443 MVAL (INT8_MAX),
18444 #endif
18445 #ifdef INT16_MAX
18446 MVAL (INT16_MAX),
18447 #endif
18448 #ifdef INT32_MAX
18449 MVAL (INT32_MAX),
18450 #endif
18451 #ifdef INT64_MAX
18452 MVAL (INT64_MAX),
18453 #endif
18454 #ifdef UINT8_MAX
18455 MVAL (UINT8_MAX),
18456 #endif
18457 #ifdef UINT16_MAX
18458 MVAL (UINT16_MAX),
18459 #endif
18460 #ifdef UINT32_MAX
18461 MVAL (UINT32_MAX),
18462 #endif
18463 #ifdef UINT64_MAX
18464 MVAL (UINT64_MAX),
18465 #endif
18466 NULL
18470 main ()
18473 const char **mv;
18474 for (mv = macro_values; *mv != NULL; mv++)
18476 const char *value = *mv;
18477 /* Test whether it looks like a cast expression. */
18478 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18479 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18480 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18481 || strncmp (value, "((int)"/*)*/, 6) == 0
18482 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18483 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18484 return mv - macro_values + 1;
18486 return 0;
18489 return 0;
18491 _ACEOF
18492 if ac_fn_c_try_run "$LINENO"; then :
18493 gl_cv_header_working_stdint_h=yes
18495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18496 conftest.$ac_objext conftest.beam conftest.$ac_ext
18501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18505 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18507 if test "$gl_cv_header_working_stdint_h" = yes; then
18508 STDINT_H=
18509 else
18510 for ac_header in sys/inttypes.h sys/bitypes.h
18511 do :
18512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18513 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18514 eval as_val=\$$as_ac_Header
18515 if test "x$as_val" = x""yes; then :
18516 cat >>confdefs.h <<_ACEOF
18517 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18518 _ACEOF
18522 done
18524 if test $ac_cv_header_sys_inttypes_h = yes; then
18525 HAVE_SYS_INTTYPES_H=1
18526 else
18527 HAVE_SYS_INTTYPES_H=0
18530 if test $ac_cv_header_sys_bitypes_h = yes; then
18531 HAVE_SYS_BITYPES_H=1
18532 else
18533 HAVE_SYS_BITYPES_H=0
18539 if test $APPLE_UNIVERSAL_BUILD = 0; then
18542 for gltype in ptrdiff_t size_t ; do
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18544 $as_echo_n "checking for bit size of $gltype... " >&6; }
18545 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18546 $as_echo_n "(cached) " >&6
18547 else
18548 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18549 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18550 included before <wchar.h>. */
18551 #include <stddef.h>
18552 #include <signal.h>
18553 #if HAVE_WCHAR_H
18554 # include <stdio.h>
18555 # include <time.h>
18556 # include <wchar.h>
18557 #endif
18559 #include <limits.h>"; then :
18561 else
18562 result=unknown
18565 eval gl_cv_bitsizeof_${gltype}=\$result
18568 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18570 $as_echo "$ac_res" >&6; }
18571 eval result=\$gl_cv_bitsizeof_${gltype}
18572 if test $result = unknown; then
18573 result=0
18575 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18576 cat >>confdefs.h <<_ACEOF
18577 #define BITSIZEOF_${GLTYPE} $result
18578 _ACEOF
18580 eval BITSIZEOF_${GLTYPE}=\$result
18581 done
18587 for gltype in sig_atomic_t wchar_t wint_t ; do
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18589 $as_echo_n "checking for bit size of $gltype... " >&6; }
18590 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18591 $as_echo_n "(cached) " >&6
18592 else
18593 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18594 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18595 included before <wchar.h>. */
18596 #include <stddef.h>
18597 #include <signal.h>
18598 #if HAVE_WCHAR_H
18599 # include <stdio.h>
18600 # include <time.h>
18601 # include <wchar.h>
18602 #endif
18604 #include <limits.h>"; then :
18606 else
18607 result=unknown
18610 eval gl_cv_bitsizeof_${gltype}=\$result
18613 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18615 $as_echo "$ac_res" >&6; }
18616 eval result=\$gl_cv_bitsizeof_${gltype}
18617 if test $result = unknown; then
18618 result=0
18620 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18621 cat >>confdefs.h <<_ACEOF
18622 #define BITSIZEOF_${GLTYPE} $result
18623 _ACEOF
18625 eval BITSIZEOF_${GLTYPE}=\$result
18626 done
18631 for gltype in sig_atomic_t wchar_t wint_t ; do
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18633 $as_echo_n "checking whether $gltype is signed... " >&6; }
18634 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18635 $as_echo_n "(cached) " >&6
18636 else
18637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18638 /* end confdefs.h. */
18640 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18641 included before <wchar.h>. */
18642 #include <stddef.h>
18643 #include <signal.h>
18644 #if HAVE_WCHAR_H
18645 # include <stdio.h>
18646 # include <time.h>
18647 # include <wchar.h>
18648 #endif
18650 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18652 main ()
18656 return 0;
18658 _ACEOF
18659 if ac_fn_c_try_compile "$LINENO"; then :
18660 result=yes
18661 else
18662 result=no
18664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18665 eval gl_cv_type_${gltype}_signed=\$result
18668 eval ac_res=\$gl_cv_type_${gltype}_signed
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18670 $as_echo "$ac_res" >&6; }
18671 eval result=\$gl_cv_type_${gltype}_signed
18672 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18673 if test "$result" = yes; then
18674 cat >>confdefs.h <<_ACEOF
18675 #define HAVE_SIGNED_${GLTYPE} 1
18676 _ACEOF
18678 eval HAVE_SIGNED_${GLTYPE}=1
18679 else
18680 eval HAVE_SIGNED_${GLTYPE}=0
18682 done
18685 gl_cv_type_ptrdiff_t_signed=yes
18686 gl_cv_type_size_t_signed=no
18687 if test $APPLE_UNIVERSAL_BUILD = 0; then
18690 for gltype in ptrdiff_t size_t ; do
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18692 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18693 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18694 $as_echo_n "(cached) " >&6
18695 else
18696 eval gl_cv_type_${gltype}_suffix=no
18697 eval result=\$gl_cv_type_${gltype}_signed
18698 if test "$result" = yes; then
18699 glsufu=
18700 else
18701 glsufu=u
18703 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18704 case $glsuf in
18705 '') gltype1='int';;
18706 l) gltype1='long int';;
18707 ll) gltype1='long long int';;
18708 i64) gltype1='__int64';;
18709 u) gltype1='unsigned int';;
18710 ul) gltype1='unsigned long int';;
18711 ull) gltype1='unsigned long long int';;
18712 ui64)gltype1='unsigned __int64';;
18713 esac
18714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18715 /* end confdefs.h. */
18717 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18718 included before <wchar.h>. */
18719 #include <stddef.h>
18720 #include <signal.h>
18721 #if HAVE_WCHAR_H
18722 # include <stdio.h>
18723 # include <time.h>
18724 # include <wchar.h>
18725 #endif
18727 extern $gltype foo;
18728 extern $gltype1 foo;
18730 main ()
18734 return 0;
18736 _ACEOF
18737 if ac_fn_c_try_compile "$LINENO"; then :
18738 eval gl_cv_type_${gltype}_suffix=\$glsuf
18740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18741 eval result=\$gl_cv_type_${gltype}_suffix
18742 test "$result" != no && break
18743 done
18745 eval ac_res=\$gl_cv_type_${gltype}_suffix
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18747 $as_echo "$ac_res" >&6; }
18748 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18749 eval result=\$gl_cv_type_${gltype}_suffix
18750 test "$result" = no && result=
18751 eval ${GLTYPE}_SUFFIX=\$result
18752 cat >>confdefs.h <<_ACEOF
18753 #define ${GLTYPE}_SUFFIX $result
18754 _ACEOF
18756 done
18762 for gltype in sig_atomic_t wchar_t wint_t ; do
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18764 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18765 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18766 $as_echo_n "(cached) " >&6
18767 else
18768 eval gl_cv_type_${gltype}_suffix=no
18769 eval result=\$gl_cv_type_${gltype}_signed
18770 if test "$result" = yes; then
18771 glsufu=
18772 else
18773 glsufu=u
18775 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18776 case $glsuf in
18777 '') gltype1='int';;
18778 l) gltype1='long int';;
18779 ll) gltype1='long long int';;
18780 i64) gltype1='__int64';;
18781 u) gltype1='unsigned int';;
18782 ul) gltype1='unsigned long int';;
18783 ull) gltype1='unsigned long long int';;
18784 ui64)gltype1='unsigned __int64';;
18785 esac
18786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18787 /* end confdefs.h. */
18789 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18790 included before <wchar.h>. */
18791 #include <stddef.h>
18792 #include <signal.h>
18793 #if HAVE_WCHAR_H
18794 # include <stdio.h>
18795 # include <time.h>
18796 # include <wchar.h>
18797 #endif
18799 extern $gltype foo;
18800 extern $gltype1 foo;
18802 main ()
18806 return 0;
18808 _ACEOF
18809 if ac_fn_c_try_compile "$LINENO"; then :
18810 eval gl_cv_type_${gltype}_suffix=\$glsuf
18812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18813 eval result=\$gl_cv_type_${gltype}_suffix
18814 test "$result" != no && break
18815 done
18817 eval ac_res=\$gl_cv_type_${gltype}_suffix
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18819 $as_echo "$ac_res" >&6; }
18820 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18821 eval result=\$gl_cv_type_${gltype}_suffix
18822 test "$result" = no && result=
18823 eval ${GLTYPE}_SUFFIX=\$result
18824 cat >>confdefs.h <<_ACEOF
18825 #define ${GLTYPE}_SUFFIX $result
18826 _ACEOF
18828 done
18832 if test $BITSIZEOF_WINT_T -lt 32; then
18833 BITSIZEOF_WINT_T=32
18836 STDINT_H=stdint.h
18839 if test -n "$STDINT_H"; then
18840 GL_GENERATE_STDINT_H_TRUE=
18841 GL_GENERATE_STDINT_H_FALSE='#'
18842 else
18843 GL_GENERATE_STDINT_H_TRUE='#'
18844 GL_GENERATE_STDINT_H_FALSE=
18851 GNULIB_IMAXABS=0;
18852 GNULIB_IMAXDIV=0;
18853 GNULIB_STRTOIMAX=0;
18854 GNULIB_STRTOUMAX=0;
18855 HAVE_DECL_IMAXABS=1;
18856 HAVE_DECL_IMAXDIV=1;
18857 HAVE_DECL_STRTOIMAX=1;
18858 HAVE_DECL_STRTOUMAX=1;
18859 INT32_MAX_LT_INTMAX_MAX=1;
18860 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18861 PRI_MACROS_BROKEN=0;
18862 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18863 UINT32_MAX_LT_UINTMAX_MAX=1;
18864 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18880 if test $gl_cv_have_include_next = yes; then
18881 gl_cv_next_inttypes_h='<'inttypes.h'>'
18882 else
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18884 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18885 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18886 $as_echo_n "(cached) " >&6
18887 else
18889 if test $ac_cv_header_inttypes_h = yes; then
18892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18893 /* end confdefs.h. */
18894 #include <inttypes.h>
18896 _ACEOF
18897 case "$host_os" in
18898 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18899 *) gl_absname_cpp="$ac_cpp" ;;
18900 esac
18902 case "$host_os" in
18903 mingw*)
18904 gl_dirsep_regex='[/\\]'
18907 gl_dirsep_regex='/'
18909 esac
18911 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'inttypes.h|{
18912 s|.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*|\1|
18913 s|^/[^/]|//&|
18917 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18918 sed -n "$gl_absolute_header_sed"`'"'
18919 else
18920 gl_cv_next_inttypes_h='<'inttypes.h'>'
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18926 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18928 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18930 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18931 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18932 gl_next_as_first_directive='<'inttypes.h'>'
18933 else
18934 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18935 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18937 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18946 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18953 GNULIB_FCHMODAT=0;
18954 GNULIB_FSTAT=0;
18955 GNULIB_FSTATAT=0;
18956 GNULIB_FUTIMENS=0;
18957 GNULIB_LCHMOD=0;
18958 GNULIB_LSTAT=0;
18959 GNULIB_MKDIRAT=0;
18960 GNULIB_MKFIFO=0;
18961 GNULIB_MKFIFOAT=0;
18962 GNULIB_MKNOD=0;
18963 GNULIB_MKNODAT=0;
18964 GNULIB_STAT=0;
18965 GNULIB_UTIMENSAT=0;
18966 HAVE_FCHMODAT=1;
18967 HAVE_FSTATAT=1;
18968 HAVE_FUTIMENS=1;
18969 HAVE_LCHMOD=1;
18970 HAVE_LSTAT=1;
18971 HAVE_MKDIRAT=1;
18972 HAVE_MKFIFO=1;
18973 HAVE_MKFIFOAT=1;
18974 HAVE_MKNOD=1;
18975 HAVE_MKNODAT=1;
18976 HAVE_UTIMENSAT=1;
18977 REPLACE_FSTAT=0;
18978 REPLACE_FSTATAT=0;
18979 REPLACE_FUTIMENS=0;
18980 REPLACE_LSTAT=0;
18981 REPLACE_MKDIR=0;
18982 REPLACE_MKFIFO=0;
18983 REPLACE_MKNOD=0;
18984 REPLACE_STAT=0;
18985 REPLACE_UTIMENSAT=0;
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18991 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18992 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18993 $as_echo_n "(cached) " >&6
18994 else
18995 rm -f conftest.sym conftest.file
18996 echo >conftest.file
18997 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18998 if test "$cross_compiling" = yes; then :
18999 # When cross-compiling, be pessimistic so we will end up using the
19000 # replacement version of lstat that checks for trailing slashes and
19001 # calls lstat a second time when necessary.
19002 gl_cv_func_lstat_dereferences_slashed_symlink=no
19004 else
19005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19006 /* end confdefs.h. */
19007 $ac_includes_default
19009 main ()
19011 struct stat sbuf;
19012 /* Linux will dereference the symlink and fail, as required by
19013 POSIX. That is better in the sense that it means we will not
19014 have to compile and use the lstat wrapper. */
19015 return lstat ("conftest.sym/", &sbuf) == 0;
19018 return 0;
19020 _ACEOF
19021 if ac_fn_c_try_run "$LINENO"; then :
19022 gl_cv_func_lstat_dereferences_slashed_symlink=yes
19023 else
19024 gl_cv_func_lstat_dereferences_slashed_symlink=no
19026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19027 conftest.$ac_objext conftest.beam conftest.$ac_ext
19030 else
19031 # If the 'ln -s' command failed, then we probably don't even
19032 # have an lstat function.
19033 gl_cv_func_lstat_dereferences_slashed_symlink=no
19035 rm -f conftest.sym conftest.file
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19039 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19040 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
19042 cat >>confdefs.h <<_ACEOF
19043 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19044 _ACEOF
19048 GNULIB_MKTIME=0;
19049 GNULIB_NANOSLEEP=0;
19050 GNULIB_STRPTIME=0;
19051 GNULIB_TIMEGM=0;
19052 GNULIB_TIME_R=0;
19053 HAVE_DECL_LOCALTIME_R=1;
19054 HAVE_NANOSLEEP=1;
19055 HAVE_STRPTIME=1;
19056 HAVE_TIMEGM=1;
19057 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19058 REPLACE_MKTIME=GNULIB_PORTCHECK;
19059 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19060 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19067 GNULIB_PTHREAD_SIGMASK=0;
19068 GNULIB_RAISE=0;
19069 GNULIB_SIGNAL_H_SIGPIPE=0;
19070 GNULIB_SIGPROCMASK=0;
19071 GNULIB_SIGACTION=0;
19072 HAVE_POSIX_SIGNALBLOCKING=1;
19073 HAVE_PTHREAD_SIGMASK=1;
19074 HAVE_RAISE=1;
19075 HAVE_SIGSET_T=1;
19076 HAVE_SIGINFO_T=1;
19077 HAVE_SIGACTION=1;
19078 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19080 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19082 HAVE_SIGHANDLER_T=1;
19083 REPLACE_PTHREAD_SIGMASK=0;
19084 REPLACE_RAISE=0;
19089 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19090 #include <signal.h>
19091 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19092 #include <sys/types.h>
19095 if test "x$ac_cv_type_sigset_t" = x""yes; then :
19097 cat >>confdefs.h <<_ACEOF
19098 #define HAVE_SIGSET_T 1
19099 _ACEOF
19101 gl_cv_type_sigset_t=yes
19102 else
19103 gl_cv_type_sigset_t=no
19106 if test $gl_cv_type_sigset_t != yes; then
19107 HAVE_SIGSET_T=0
19114 if test $ac_cv_header_sys_socket_h = no; then
19115 for ac_header in ws2tcpip.h
19116 do :
19117 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19118 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
19119 cat >>confdefs.h <<_ACEOF
19120 #define HAVE_WS2TCPIP_H 1
19121 _ACEOF
19125 done
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19130 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19131 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19132 $as_echo_n "(cached) " >&6
19133 else
19134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19135 /* end confdefs.h. */
19137 #include <stdbool.h>
19138 #ifndef bool
19139 "error: bool is not defined"
19140 #endif
19141 #ifndef false
19142 "error: false is not defined"
19143 #endif
19144 #if false
19145 "error: false is not 0"
19146 #endif
19147 #ifndef true
19148 "error: true is not defined"
19149 #endif
19150 #if true != 1
19151 "error: true is not 1"
19152 #endif
19153 #ifndef __bool_true_false_are_defined
19154 "error: __bool_true_false_are_defined is not defined"
19155 #endif
19157 struct s { _Bool s: 1; _Bool t; } s;
19159 char a[true == 1 ? 1 : -1];
19160 char b[false == 0 ? 1 : -1];
19161 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19162 char d[(bool) 0.5 == true ? 1 : -1];
19163 /* See body of main program for 'e'. */
19164 char f[(_Bool) 0.0 == false ? 1 : -1];
19165 char g[true];
19166 char h[sizeof (_Bool)];
19167 char i[sizeof s.t];
19168 enum { j = false, k = true, l = false * true, m = true * 256 };
19169 /* The following fails for
19170 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19171 _Bool n[m];
19172 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19173 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19174 /* Catch a bug in an HP-UX C compiler. See
19175 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19176 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19178 _Bool q = true;
19179 _Bool *pq = &q;
19182 main ()
19185 bool e = &s;
19186 *pq |= q;
19187 *pq |= ! q;
19188 /* Refer to every declared value, to avoid compiler optimizations. */
19189 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19190 + !m + !n + !o + !p + !q + !pq);
19193 return 0;
19195 _ACEOF
19196 if ac_fn_c_try_compile "$LINENO"; then :
19197 ac_cv_header_stdbool_h=yes
19198 else
19199 ac_cv_header_stdbool_h=no
19201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19204 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19205 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19206 if test "x$ac_cv_type__Bool" = x""yes; then :
19208 cat >>confdefs.h <<_ACEOF
19209 #define HAVE__BOOL 1
19210 _ACEOF
19217 REPLACE_NULL=0;
19218 HAVE_WCHAR_T=1;
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19222 $as_echo_n "checking for wchar_t... " >&6; }
19223 if test "${gt_cv_c_wchar_t+set}" = set; then :
19224 $as_echo_n "(cached) " >&6
19225 else
19226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19227 /* end confdefs.h. */
19228 #include <stddef.h>
19229 wchar_t foo = (wchar_t)'\0';
19231 main ()
19235 return 0;
19237 _ACEOF
19238 if ac_fn_c_try_compile "$LINENO"; then :
19239 gt_cv_c_wchar_t=yes
19240 else
19241 gt_cv_c_wchar_t=no
19243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19246 $as_echo "$gt_cv_c_wchar_t" >&6; }
19247 if test $gt_cv_c_wchar_t = yes; then
19249 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19254 GNULIB_DPRINTF=0;
19255 GNULIB_FCLOSE=0;
19256 GNULIB_FDOPEN=0;
19257 GNULIB_FFLUSH=0;
19258 GNULIB_FGETC=0;
19259 GNULIB_FGETS=0;
19260 GNULIB_FOPEN=0;
19261 GNULIB_FPRINTF=0;
19262 GNULIB_FPRINTF_POSIX=0;
19263 GNULIB_FPURGE=0;
19264 GNULIB_FPUTC=0;
19265 GNULIB_FPUTS=0;
19266 GNULIB_FREAD=0;
19267 GNULIB_FREOPEN=0;
19268 GNULIB_FSCANF=0;
19269 GNULIB_FSEEK=0;
19270 GNULIB_FSEEKO=0;
19271 GNULIB_FTELL=0;
19272 GNULIB_FTELLO=0;
19273 GNULIB_FWRITE=0;
19274 GNULIB_GETC=0;
19275 GNULIB_GETCHAR=0;
19276 GNULIB_GETDELIM=0;
19277 GNULIB_GETLINE=0;
19278 GNULIB_GETS=0;
19279 GNULIB_OBSTACK_PRINTF=0;
19280 GNULIB_OBSTACK_PRINTF_POSIX=0;
19281 GNULIB_PCLOSE=0;
19282 GNULIB_PERROR=0;
19283 GNULIB_POPEN=0;
19284 GNULIB_PRINTF=0;
19285 GNULIB_PRINTF_POSIX=0;
19286 GNULIB_PUTC=0;
19287 GNULIB_PUTCHAR=0;
19288 GNULIB_PUTS=0;
19289 GNULIB_REMOVE=0;
19290 GNULIB_RENAME=0;
19291 GNULIB_RENAMEAT=0;
19292 GNULIB_SCANF=0;
19293 GNULIB_SNPRINTF=0;
19294 GNULIB_SPRINTF_POSIX=0;
19295 GNULIB_STDIO_H_NONBLOCKING=0;
19296 GNULIB_STDIO_H_SIGPIPE=0;
19297 GNULIB_TMPFILE=0;
19298 GNULIB_VASPRINTF=0;
19299 GNULIB_VFSCANF=0;
19300 GNULIB_VSCANF=0;
19301 GNULIB_VDPRINTF=0;
19302 GNULIB_VFPRINTF=0;
19303 GNULIB_VFPRINTF_POSIX=0;
19304 GNULIB_VPRINTF=0;
19305 GNULIB_VPRINTF_POSIX=0;
19306 GNULIB_VSNPRINTF=0;
19307 GNULIB_VSPRINTF_POSIX=0;
19308 HAVE_DECL_FPURGE=1;
19309 HAVE_DECL_FSEEKO=1;
19310 HAVE_DECL_FTELLO=1;
19311 HAVE_DECL_GETDELIM=1;
19312 HAVE_DECL_GETLINE=1;
19313 HAVE_DECL_OBSTACK_PRINTF=1;
19314 HAVE_DECL_SNPRINTF=1;
19315 HAVE_DECL_VSNPRINTF=1;
19316 HAVE_DPRINTF=1;
19317 HAVE_FSEEKO=1;
19318 HAVE_FTELLO=1;
19319 HAVE_PCLOSE=1;
19320 HAVE_POPEN=1;
19321 HAVE_RENAMEAT=1;
19322 HAVE_VASPRINTF=1;
19323 HAVE_VDPRINTF=1;
19324 REPLACE_DPRINTF=0;
19325 REPLACE_FCLOSE=0;
19326 REPLACE_FDOPEN=0;
19327 REPLACE_FFLUSH=0;
19328 REPLACE_FOPEN=0;
19329 REPLACE_FPRINTF=0;
19330 REPLACE_FPURGE=0;
19331 REPLACE_FREOPEN=0;
19332 REPLACE_FSEEK=0;
19333 REPLACE_FSEEKO=0;
19334 REPLACE_FTELL=0;
19335 REPLACE_FTELLO=0;
19336 REPLACE_GETDELIM=0;
19337 REPLACE_GETLINE=0;
19338 REPLACE_OBSTACK_PRINTF=0;
19339 REPLACE_PERROR=0;
19340 REPLACE_POPEN=0;
19341 REPLACE_PRINTF=0;
19342 REPLACE_REMOVE=0;
19343 REPLACE_RENAME=0;
19344 REPLACE_RENAMEAT=0;
19345 REPLACE_SNPRINTF=0;
19346 REPLACE_SPRINTF=0;
19347 REPLACE_STDIO_READ_FUNCS=0;
19348 REPLACE_STDIO_WRITE_FUNCS=0;
19349 REPLACE_TMPFILE=0;
19350 REPLACE_VASPRINTF=0;
19351 REPLACE_VDPRINTF=0;
19352 REPLACE_VFPRINTF=0;
19353 REPLACE_VPRINTF=0;
19354 REPLACE_VSNPRINTF=0;
19355 REPLACE_VSPRINTF=0;
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19358 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19359 if test "${ac_cv_struct_tm+set}" = set; then :
19360 $as_echo_n "(cached) " >&6
19361 else
19362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19363 /* end confdefs.h. */
19364 #include <sys/types.h>
19365 #include <time.h>
19368 main ()
19370 struct tm tm;
19371 int *p = &tm.tm_sec;
19372 return !p;
19374 return 0;
19376 _ACEOF
19377 if ac_fn_c_try_compile "$LINENO"; then :
19378 ac_cv_struct_tm=time.h
19379 else
19380 ac_cv_struct_tm=sys/time.h
19382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19385 $as_echo "$ac_cv_struct_tm" >&6; }
19386 if test $ac_cv_struct_tm = sys/time.h; then
19388 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19392 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19393 #include <$ac_cv_struct_tm>
19396 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
19398 cat >>confdefs.h <<_ACEOF
19399 #define HAVE_STRUCT_TM_TM_ZONE 1
19400 _ACEOF
19405 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19407 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19409 else
19410 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19412 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
19413 ac_have_decl=1
19414 else
19415 ac_have_decl=0
19418 cat >>confdefs.h <<_ACEOF
19419 #define HAVE_DECL_TZNAME $ac_have_decl
19420 _ACEOF
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19423 $as_echo_n "checking for tzname... " >&6; }
19424 if test "${ac_cv_var_tzname+set}" = set; then :
19425 $as_echo_n "(cached) " >&6
19426 else
19427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19428 /* end confdefs.h. */
19429 #include <time.h>
19430 #if !HAVE_DECL_TZNAME
19431 extern char *tzname[];
19432 #endif
19435 main ()
19437 return tzname[0][0];
19439 return 0;
19441 _ACEOF
19442 if ac_fn_c_try_link "$LINENO"; then :
19443 ac_cv_var_tzname=yes
19444 else
19445 ac_cv_var_tzname=no
19447 rm -f core conftest.err conftest.$ac_objext \
19448 conftest$ac_exeext conftest.$ac_ext
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19451 $as_echo "$ac_cv_var_tzname" >&6; }
19452 if test $ac_cv_var_tzname = yes; then
19454 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19460 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19462 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
19464 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19473 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19474 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
19475 ac_have_decl=1
19476 else
19477 ac_have_decl=0
19480 cat >>confdefs.h <<_ACEOF
19481 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19482 _ACEOF
19486 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19487 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
19488 ac_have_decl=1
19489 else
19490 ac_have_decl=0
19493 cat >>confdefs.h <<_ACEOF
19494 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19495 _ACEOF
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19500 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19501 if test "${ac_cv_header_stat_broken+set}" = set; then :
19502 $as_echo_n "(cached) " >&6
19503 else
19504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19505 /* end confdefs.h. */
19506 #include <sys/types.h>
19507 #include <sys/stat.h>
19509 #if defined S_ISBLK && defined S_IFDIR
19510 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19511 #endif
19513 #if defined S_ISBLK && defined S_IFCHR
19514 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19515 #endif
19517 #if defined S_ISLNK && defined S_IFREG
19518 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19519 #endif
19521 #if defined S_ISSOCK && defined S_IFREG
19522 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19523 #endif
19525 _ACEOF
19526 if ac_fn_c_try_compile "$LINENO"; then :
19527 ac_cv_header_stat_broken=no
19528 else
19529 ac_cv_header_stat_broken=yes
19531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19534 $as_echo "$ac_cv_header_stat_broken" >&6; }
19535 if test $ac_cv_header_stat_broken = yes; then
19537 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19543 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19544 if test "x$ac_cv_type_mode_t" = x""yes; then :
19546 else
19548 cat >>confdefs.h <<_ACEOF
19549 #define mode_t int
19550 _ACEOF
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19555 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19556 if test "${ac_cv_c_restrict+set}" = set; then :
19557 $as_echo_n "(cached) " >&6
19558 else
19559 ac_cv_c_restrict=no
19560 # The order here caters to the fact that C++ does not require restrict.
19561 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19563 /* end confdefs.h. */
19564 typedef int * int_ptr;
19565 int foo (int_ptr $ac_kw ip) {
19566 return ip[0];
19569 main ()
19571 int s[1];
19572 int * $ac_kw t = s;
19573 t[0] = 0;
19574 return foo(t)
19576 return 0;
19578 _ACEOF
19579 if ac_fn_c_try_compile "$LINENO"; then :
19580 ac_cv_c_restrict=$ac_kw
19582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19583 test "$ac_cv_c_restrict" != no && break
19584 done
19587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19588 $as_echo "$ac_cv_c_restrict" >&6; }
19590 case $ac_cv_c_restrict in
19591 restrict) ;;
19592 no) $as_echo "#define restrict /**/" >>confdefs.h
19594 *) cat >>confdefs.h <<_ACEOF
19595 #define restrict $ac_cv_c_restrict
19596 _ACEOF
19598 esac
19604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19605 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19606 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19607 $as_echo_n "(cached) " >&6
19608 else
19609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19610 /* end confdefs.h. */
19611 #include <time.h>
19614 main ()
19616 static struct timespec x; x.tv_sec = x.tv_nsec;
19618 return 0;
19620 _ACEOF
19621 if ac_fn_c_try_compile "$LINENO"; then :
19622 gl_cv_sys_struct_timespec_in_time_h=yes
19623 else
19624 gl_cv_sys_struct_timespec_in_time_h=no
19626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19629 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19631 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19632 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19633 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19634 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19635 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19636 else
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19638 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19639 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19640 $as_echo_n "(cached) " >&6
19641 else
19642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19643 /* end confdefs.h. */
19644 #include <sys/time.h>
19647 main ()
19649 static struct timespec x; x.tv_sec = x.tv_nsec;
19651 return 0;
19653 _ACEOF
19654 if ac_fn_c_try_compile "$LINENO"; then :
19655 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19656 else
19657 gl_cv_sys_struct_timespec_in_sys_time_h=no
19659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19662 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19663 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19664 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19665 else
19666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19667 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19668 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19669 $as_echo_n "(cached) " >&6
19670 else
19671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19672 /* end confdefs.h. */
19673 #include <pthread.h>
19676 main ()
19678 static struct timespec x; x.tv_sec = x.tv_nsec;
19680 return 0;
19682 _ACEOF
19683 if ac_fn_c_try_compile "$LINENO"; then :
19684 gl_cv_sys_struct_timespec_in_pthread_h=yes
19685 else
19686 gl_cv_sys_struct_timespec_in_pthread_h=no
19688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19691 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19692 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19693 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19712 if test $gl_cv_have_include_next = yes; then
19713 gl_cv_next_time_h='<'time.h'>'
19714 else
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19716 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19717 if test "${gl_cv_next_time_h+set}" = set; then :
19718 $as_echo_n "(cached) " >&6
19719 else
19721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19722 /* end confdefs.h. */
19723 #include <time.h>
19725 _ACEOF
19726 case "$host_os" in
19727 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19728 *) gl_absname_cpp="$ac_cpp" ;;
19729 esac
19731 case "$host_os" in
19732 mingw*)
19733 gl_dirsep_regex='[/\\]'
19736 gl_dirsep_regex='/'
19738 esac
19740 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'time.h|{
19741 s|.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*|\1|
19742 s|^/[^/]|//&|
19746 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19747 sed -n "$gl_absolute_header_sed"`'"'
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19752 $as_echo "$gl_cv_next_time_h" >&6; }
19754 NEXT_TIME_H=$gl_cv_next_time_h
19756 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19757 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19758 gl_next_as_first_directive='<'time.h'>'
19759 else
19760 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19761 gl_next_as_first_directive=$gl_cv_next_time_h
19763 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19770 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19771 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
19772 ac_have_decl=1
19773 else
19774 ac_have_decl=0
19777 cat >>confdefs.h <<_ACEOF
19778 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19779 _ACEOF
19784 if false; then
19785 GL_COND_LIBTOOL_TRUE=
19786 GL_COND_LIBTOOL_FALSE='#'
19787 else
19788 GL_COND_LIBTOOL_TRUE='#'
19789 GL_COND_LIBTOOL_FALSE=
19792 gl_cond_libtool=false
19793 gl_libdeps=
19794 gl_ltlibdeps=
19795 gl_m4_base='m4'
19805 gl_source_base='lib'
19808 if test $ac_cv_func_alloca_works = no; then
19812 # Define an additional variable used in the Makefile substitution.
19813 if test $ac_cv_working_alloca_h = yes; then
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19815 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19816 if test "${gl_cv_rpl_alloca+set}" = set; then :
19817 $as_echo_n "(cached) " >&6
19818 else
19820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19821 /* end confdefs.h. */
19823 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19824 Need own alloca
19825 #endif
19827 _ACEOF
19828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19829 $EGREP "Need own alloca" >/dev/null 2>&1; then :
19830 gl_cv_rpl_alloca=yes
19831 else
19832 gl_cv_rpl_alloca=no
19834 rm -f conftest*
19838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19839 $as_echo "$gl_cv_rpl_alloca" >&6; }
19840 if test $gl_cv_rpl_alloca = yes; then
19842 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19844 ALLOCA_H=alloca.h
19845 else
19846 ALLOCA_H=
19848 else
19849 ALLOCA_H=alloca.h
19852 if test -n "$ALLOCA_H"; then
19853 GL_GENERATE_ALLOCA_H_TRUE=
19854 GL_GENERATE_ALLOCA_H_FALSE='#'
19855 else
19856 GL_GENERATE_ALLOCA_H_TRUE='#'
19857 GL_GENERATE_ALLOCA_H_FALSE=
19886 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19889 if test $HAVE_DUP2 = 1; then
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19891 $as_echo_n "checking whether dup2 works... " >&6; }
19892 if test "${gl_cv_func_dup2_works+set}" = set; then :
19893 $as_echo_n "(cached) " >&6
19894 else
19895 if test "$cross_compiling" = yes; then :
19896 case "$host_os" in
19897 mingw*) # on this platform, dup2 always returns 0 for success
19898 gl_cv_func_dup2_works=no;;
19899 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
19900 gl_cv_func_dup2_works=no;;
19901 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19902 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19903 gl_cv_func_dup2_works=no;;
19904 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19905 gl_cv_func_dup2_works=no;;
19906 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19907 gl_cv_func_dup2_works=no;;
19908 *) gl_cv_func_dup2_works=yes;;
19909 esac
19910 else
19911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19912 /* end confdefs.h. */
19914 #include <unistd.h>
19915 #include <fcntl.h>
19916 #include <errno.h>
19918 main ()
19920 int result = 0;
19921 #ifdef FD_CLOEXEC
19922 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19923 result |= 1;
19924 #endif
19925 if (dup2 (1, 1) == 0)
19926 result |= 2;
19927 #ifdef FD_CLOEXEC
19928 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19929 result |= 4;
19930 #endif
19931 close (0);
19932 if (dup2 (0, 0) != -1)
19933 result |= 8;
19934 /* Many gnulib modules require POSIX conformance of EBADF. */
19935 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19936 result |= 16;
19937 return result;
19940 return 0;
19943 _ACEOF
19944 if ac_fn_c_try_run "$LINENO"; then :
19945 gl_cv_func_dup2_works=yes
19946 else
19947 gl_cv_func_dup2_works=no
19949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19950 conftest.$ac_objext conftest.beam conftest.$ac_ext
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19956 $as_echo "$gl_cv_func_dup2_works" >&6; }
19957 if test "$gl_cv_func_dup2_works" = no; then
19958 REPLACE_DUP2=1
19963 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
19972 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
19981 GNULIB_DUP2=1
19993 # Persuade glibc <stdlib.h> to declare getloadavg().
19996 gl_save_LIBS=$LIBS
19998 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19999 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
20000 HAVE_GETLOADAVG=1
20001 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
20002 if test "x$ac_cv_func_getloadavg" = x""yes; then :
20004 else
20005 gl_func_getloadavg_done=no
20007 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20008 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20009 # to get the right answer into the cache.
20010 # For kstat on solaris, we need to test for libelf and libkvm to force the
20011 # definition of SVR4 below.
20012 if test $gl_func_getloadavg_done = no; then
20013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20014 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20015 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20016 $as_echo_n "(cached) " >&6
20017 else
20018 ac_check_lib_save_LIBS=$LIBS
20019 LIBS="-lelf $LIBS"
20020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20021 /* end confdefs.h. */
20023 /* Override any GCC internal prototype to avoid an error.
20024 Use char because int might match the return type of a GCC
20025 builtin and then its argument prototype would still apply. */
20026 #ifdef __cplusplus
20027 extern "C"
20028 #endif
20029 char elf_begin ();
20031 main ()
20033 return elf_begin ();
20035 return 0;
20037 _ACEOF
20038 if ac_fn_c_try_link "$LINENO"; then :
20039 ac_cv_lib_elf_elf_begin=yes
20040 else
20041 ac_cv_lib_elf_elf_begin=no
20043 rm -f core conftest.err conftest.$ac_objext \
20044 conftest$ac_exeext conftest.$ac_ext
20045 LIBS=$ac_check_lib_save_LIBS
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20048 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20049 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
20050 LIBS="-lelf $LIBS"
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20054 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20055 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20056 $as_echo_n "(cached) " >&6
20057 else
20058 ac_check_lib_save_LIBS=$LIBS
20059 LIBS="-lkvm $LIBS"
20060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20061 /* end confdefs.h. */
20063 /* Override any GCC internal prototype to avoid an error.
20064 Use char because int might match the return type of a GCC
20065 builtin and then its argument prototype would still apply. */
20066 #ifdef __cplusplus
20067 extern "C"
20068 #endif
20069 char kvm_open ();
20071 main ()
20073 return kvm_open ();
20075 return 0;
20077 _ACEOF
20078 if ac_fn_c_try_link "$LINENO"; then :
20079 ac_cv_lib_kvm_kvm_open=yes
20080 else
20081 ac_cv_lib_kvm_kvm_open=no
20083 rm -f core conftest.err conftest.$ac_objext \
20084 conftest$ac_exeext conftest.$ac_ext
20085 LIBS=$ac_check_lib_save_LIBS
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20088 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20089 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
20090 LIBS="-lkvm $LIBS"
20093 # Check for the 4.4BSD definition of getloadavg.
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20095 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20096 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20097 $as_echo_n "(cached) " >&6
20098 else
20099 ac_check_lib_save_LIBS=$LIBS
20100 LIBS="-lutil $LIBS"
20101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20102 /* end confdefs.h. */
20104 /* Override any GCC internal prototype to avoid an error.
20105 Use char because int might match the return type of a GCC
20106 builtin and then its argument prototype would still apply. */
20107 #ifdef __cplusplus
20108 extern "C"
20109 #endif
20110 char getloadavg ();
20112 main ()
20114 return getloadavg ();
20116 return 0;
20118 _ACEOF
20119 if ac_fn_c_try_link "$LINENO"; then :
20120 ac_cv_lib_util_getloadavg=yes
20121 else
20122 ac_cv_lib_util_getloadavg=no
20124 rm -f core conftest.err conftest.$ac_objext \
20125 conftest$ac_exeext conftest.$ac_ext
20126 LIBS=$ac_check_lib_save_LIBS
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
20129 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
20130 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
20131 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
20136 if test $gl_func_getloadavg_done = no; then
20137 # There is a commonly available library for RS/6000 AIX.
20138 # Since it is not a standard part of AIX, it might be installed locally.
20139 gl_getloadavg_LIBS=$LIBS
20140 LIBS="-L/usr/local/lib $LIBS"
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
20142 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
20143 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
20144 $as_echo_n "(cached) " >&6
20145 else
20146 ac_check_lib_save_LIBS=$LIBS
20147 LIBS="-lgetloadavg $LIBS"
20148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20149 /* end confdefs.h. */
20151 /* Override any GCC internal prototype to avoid an error.
20152 Use char because int might match the return type of a GCC
20153 builtin and then its argument prototype would still apply. */
20154 #ifdef __cplusplus
20155 extern "C"
20156 #endif
20157 char getloadavg ();
20159 main ()
20161 return getloadavg ();
20163 return 0;
20165 _ACEOF
20166 if ac_fn_c_try_link "$LINENO"; then :
20167 ac_cv_lib_getloadavg_getloadavg=yes
20168 else
20169 ac_cv_lib_getloadavg_getloadavg=no
20171 rm -f core conftest.err conftest.$ac_objext \
20172 conftest$ac_exeext conftest.$ac_ext
20173 LIBS=$ac_check_lib_save_LIBS
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
20176 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
20177 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
20178 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
20179 else
20180 LIBS=$gl_getloadavg_LIBS
20185 # Set up the replacement function if necessary.
20186 if test $gl_func_getloadavg_done = no; then
20187 HAVE_GETLOADAVG=0
20189 # Solaris has libkstat which does not require root.
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
20191 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
20192 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
20193 $as_echo_n "(cached) " >&6
20194 else
20195 ac_check_lib_save_LIBS=$LIBS
20196 LIBS="-lkstat $LIBS"
20197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20198 /* end confdefs.h. */
20200 /* Override any GCC internal prototype to avoid an error.
20201 Use char because int might match the return type of a GCC
20202 builtin and then its argument prototype would still apply. */
20203 #ifdef __cplusplus
20204 extern "C"
20205 #endif
20206 char kstat_open ();
20208 main ()
20210 return kstat_open ();
20212 return 0;
20214 _ACEOF
20215 if ac_fn_c_try_link "$LINENO"; then :
20216 ac_cv_lib_kstat_kstat_open=yes
20217 else
20218 ac_cv_lib_kstat_kstat_open=no
20220 rm -f core conftest.err conftest.$ac_objext \
20221 conftest$ac_exeext conftest.$ac_ext
20222 LIBS=$ac_check_lib_save_LIBS
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
20225 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
20226 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
20227 cat >>confdefs.h <<_ACEOF
20228 #define HAVE_LIBKSTAT 1
20229 _ACEOF
20231 LIBS="-lkstat $LIBS"
20235 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
20237 # AIX has libperfstat which does not require root
20238 if test $gl_func_getloadavg_done = no; then
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
20240 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
20241 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
20242 $as_echo_n "(cached) " >&6
20243 else
20244 ac_check_lib_save_LIBS=$LIBS
20245 LIBS="-lperfstat $LIBS"
20246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20247 /* end confdefs.h. */
20249 /* Override any GCC internal prototype to avoid an error.
20250 Use char because int might match the return type of a GCC
20251 builtin and then its argument prototype would still apply. */
20252 #ifdef __cplusplus
20253 extern "C"
20254 #endif
20255 char perfstat_cpu_total ();
20257 main ()
20259 return perfstat_cpu_total ();
20261 return 0;
20263 _ACEOF
20264 if ac_fn_c_try_link "$LINENO"; then :
20265 ac_cv_lib_perfstat_perfstat_cpu_total=yes
20266 else
20267 ac_cv_lib_perfstat_perfstat_cpu_total=no
20269 rm -f core conftest.err conftest.$ac_objext \
20270 conftest$ac_exeext conftest.$ac_ext
20271 LIBS=$ac_check_lib_save_LIBS
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
20274 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
20275 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
20276 cat >>confdefs.h <<_ACEOF
20277 #define HAVE_LIBPERFSTAT 1
20278 _ACEOF
20280 LIBS="-lperfstat $LIBS"
20284 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
20287 if test $gl_func_getloadavg_done = no; then
20288 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
20289 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
20290 gl_func_getloadavg_done=yes
20292 $as_echo "#define DGUX 1" >>confdefs.h
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
20295 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
20296 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
20297 $as_echo_n "(cached) " >&6
20298 else
20299 ac_check_lib_save_LIBS=$LIBS
20300 LIBS="-ldgc $LIBS"
20301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20302 /* end confdefs.h. */
20304 /* Override any GCC internal prototype to avoid an error.
20305 Use char because int might match the return type of a GCC
20306 builtin and then its argument prototype would still apply. */
20307 #ifdef __cplusplus
20308 extern "C"
20309 #endif
20310 char dg_sys_info ();
20312 main ()
20314 return dg_sys_info ();
20316 return 0;
20318 _ACEOF
20319 if ac_fn_c_try_link "$LINENO"; then :
20320 ac_cv_lib_dgc_dg_sys_info=yes
20321 else
20322 ac_cv_lib_dgc_dg_sys_info=no
20324 rm -f core conftest.err conftest.$ac_objext \
20325 conftest$ac_exeext conftest.$ac_ext
20326 LIBS=$ac_check_lib_save_LIBS
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
20329 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
20330 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
20331 cat >>confdefs.h <<_ACEOF
20332 #define HAVE_LIBDGC 1
20333 _ACEOF
20335 LIBS="-ldgc $LIBS"
20347 if test "x$gl_save_LIBS" = x; then
20348 GETLOADAVG_LIBS=$LIBS
20349 else
20350 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
20352 LIBS=$gl_save_LIBS
20355 # Test whether the system declares getloadavg. Solaris has the function
20356 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
20357 for ac_header in sys/loadavg.h
20358 do :
20359 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
20360 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
20361 cat >>confdefs.h <<_ACEOF
20362 #define HAVE_SYS_LOADAVG_H 1
20363 _ACEOF
20367 done
20369 if test $ac_cv_header_sys_loadavg_h = yes; then
20370 HAVE_SYS_LOADAVG_H=1
20371 else
20372 HAVE_SYS_LOADAVG_H=0
20374 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
20375 # include <sys/loadavg.h>
20376 #endif
20377 #include <stdlib.h>
20379 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
20381 else
20382 HAVE_DECL_GETLOADAVG=0
20386 if test $HAVE_GETLOADAVG = 0; then
20395 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
20398 # Figure out what our getloadavg.c needs.
20400 # On HPUX9, an unprivileged user can get load averages this way.
20401 if test $gl_func_getloadavg_done = no; then
20402 for ac_func in pstat_getdynamic
20403 do :
20404 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
20405 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
20406 cat >>confdefs.h <<_ACEOF
20407 #define HAVE_PSTAT_GETDYNAMIC 1
20408 _ACEOF
20409 gl_func_getloadavg_done=yes
20411 done
20415 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
20416 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
20417 # Irix 4.0.5F has the header but not the library.
20418 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
20419 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
20420 gl_func_getloadavg_done=yes
20422 $as_echo "#define SVR4 1" >>confdefs.h
20426 if test $gl_func_getloadavg_done = no; then
20427 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
20428 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
20429 gl_func_getloadavg_done=yes
20431 $as_echo "#define UMAX 1" >>confdefs.h
20434 $as_echo "#define UMAX4_3 1" >>confdefs.h
20441 if test $gl_func_getloadavg_done = no; then
20442 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
20443 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
20444 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
20451 if test $gl_func_getloadavg_done = no; then
20452 for ac_header in mach/mach.h
20453 do :
20454 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20455 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
20456 cat >>confdefs.h <<_ACEOF
20457 #define HAVE_MACH_MACH_H 1
20458 _ACEOF
20462 done
20466 for ac_header in nlist.h
20467 do :
20468 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
20469 if test "x$ac_cv_header_nlist_h" = x""yes; then :
20470 cat >>confdefs.h <<_ACEOF
20471 #define HAVE_NLIST_H 1
20472 _ACEOF
20473 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
20475 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
20477 cat >>confdefs.h <<_ACEOF
20478 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20479 _ACEOF
20484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20485 /* end confdefs.h. */
20486 #include <nlist.h>
20488 main ()
20490 struct nlist x;
20491 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20492 x.n_un.n_name = "";
20493 #else
20494 x.n_name = "";
20495 #endif
20497 return 0;
20499 _ACEOF
20500 if ac_fn_c_try_link "$LINENO"; then :
20502 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20505 rm -f core conftest.err conftest.$ac_objext \
20506 conftest$ac_exeext conftest.$ac_ext
20510 done
20518 GNULIB_GETLOADAVG=1
20529 if test $REPLACE_GETOPT = 1; then
20538 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20548 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20559 REPLACE_GETOPT=0
20562 if test -n "$gl_replace_getopt"; then :
20564 REPLACE_GETOPT=1
20569 if test $REPLACE_GETOPT = 1; then
20571 GETOPT_H=getopt.h
20573 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20577 GNULIB_UNISTD_H_GETOPT=1
20580 if test $REPLACE_GETOPT = 1; then
20589 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20599 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20610 if test $ac_cv_func_lstat = yes; then
20612 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
20613 REPLACE_LSTAT=1
20615 else
20616 HAVE_LSTAT=0
20619 if test $REPLACE_LSTAT = 1; then
20628 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
20640 GNULIB_LSTAT=1
20652 if test $APPLE_UNIVERSAL_BUILD = 1; then
20653 # A universal build on Apple MacOS X platforms.
20654 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20655 # But we need a configuration result that is valid in both modes.
20656 gl_cv_func_working_mktime=no
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20659 $as_echo_n "checking for working mktime... " >&6; }
20660 if test "${gl_cv_func_working_mktime+set}" = set; then :
20661 $as_echo_n "(cached) " >&6
20662 else
20663 if test "$cross_compiling" = yes; then :
20664 gl_cv_func_working_mktime=no
20665 else
20666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20667 /* end confdefs.h. */
20668 /* Test program from Paul Eggert and Tony Leneis. */
20669 #include <limits.h>
20670 #include <stdlib.h>
20671 #include <time.h>
20673 #ifdef HAVE_UNISTD_H
20674 # include <unistd.h>
20675 #endif
20677 #ifndef HAVE_ALARM
20678 # define alarm(X) /* empty */
20679 #endif
20681 /* Work around redefinition to rpl_putenv by other config tests. */
20682 #undef putenv
20684 static time_t time_t_max;
20685 static time_t time_t_min;
20687 /* Values we'll use to set the TZ environment variable. */
20688 static char *tz_strings[] = {
20689 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20690 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20692 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20694 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20695 Based on a problem report from Andreas Jaeger. */
20696 static int
20697 spring_forward_gap ()
20699 /* glibc (up to about 1998-10-07) failed this test. */
20700 struct tm tm;
20702 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20703 instead of "TZ=America/Vancouver" in order to detect the bug even
20704 on systems that don't support the Olson extension, or don't have the
20705 full zoneinfo tables installed. */
20706 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20708 tm.tm_year = 98;
20709 tm.tm_mon = 3;
20710 tm.tm_mday = 5;
20711 tm.tm_hour = 2;
20712 tm.tm_min = 0;
20713 tm.tm_sec = 0;
20714 tm.tm_isdst = -1;
20715 return mktime (&tm) != (time_t) -1;
20718 static int
20719 mktime_test1 (time_t now)
20721 struct tm *lt;
20722 return ! (lt = localtime (&now)) || mktime (lt) == now;
20725 static int
20726 mktime_test (time_t now)
20728 return (mktime_test1 (now)
20729 && mktime_test1 ((time_t) (time_t_max - now))
20730 && mktime_test1 ((time_t) (time_t_min + now)));
20733 static int
20734 irix_6_4_bug ()
20736 /* Based on code from Ariel Faigon. */
20737 struct tm tm;
20738 tm.tm_year = 96;
20739 tm.tm_mon = 3;
20740 tm.tm_mday = 0;
20741 tm.tm_hour = 0;
20742 tm.tm_min = 0;
20743 tm.tm_sec = 0;
20744 tm.tm_isdst = -1;
20745 mktime (&tm);
20746 return tm.tm_mon == 2 && tm.tm_mday == 31;
20749 static int
20750 bigtime_test (int j)
20752 struct tm tm;
20753 time_t now;
20754 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20755 now = mktime (&tm);
20756 if (now != (time_t) -1)
20758 struct tm *lt = localtime (&now);
20759 if (! (lt
20760 && lt->tm_year == tm.tm_year
20761 && lt->tm_mon == tm.tm_mon
20762 && lt->tm_mday == tm.tm_mday
20763 && lt->tm_hour == tm.tm_hour
20764 && lt->tm_min == tm.tm_min
20765 && lt->tm_sec == tm.tm_sec
20766 && lt->tm_yday == tm.tm_yday
20767 && lt->tm_wday == tm.tm_wday
20768 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20769 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20770 return 0;
20772 return 1;
20775 static int
20776 year_2050_test ()
20778 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20779 ignoring leap seconds. */
20780 unsigned long int answer = 2527315200UL;
20782 struct tm tm;
20783 time_t t;
20784 tm.tm_year = 2050 - 1900;
20785 tm.tm_mon = 2 - 1;
20786 tm.tm_mday = 1;
20787 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20788 tm.tm_isdst = -1;
20790 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20791 instead of "TZ=America/Vancouver" in order to detect the bug even
20792 on systems that don't support the Olson extension, or don't have the
20793 full zoneinfo tables installed. */
20794 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20796 t = mktime (&tm);
20798 /* Check that the result is either a failure, or close enough
20799 to the correct answer that we can assume the discrepancy is
20800 due to leap seconds. */
20801 return (t == (time_t) -1
20802 || (0 < t && answer - 120 <= t && t <= answer + 120));
20806 main ()
20808 int result = 0;
20809 time_t t, delta;
20810 int i, j;
20811 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20812 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20814 /* This test makes some buggy mktime implementations loop.
20815 Give up after 60 seconds; a mktime slower than that
20816 isn't worth using anyway. */
20817 alarm (60);
20819 time_t_max = (! time_t_signed
20820 ? (time_t) -1
20821 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20822 * 2 + 1));
20823 time_t_min = (! time_t_signed
20824 ? (time_t) 0
20825 : time_t_signed_magnitude
20826 ? ~ (time_t) 0
20827 : ~ time_t_max);
20829 delta = time_t_max / 997; /* a suitable prime number */
20830 for (i = 0; i < N_STRINGS; i++)
20832 if (tz_strings[i])
20833 putenv (tz_strings[i]);
20835 for (t = 0; t <= time_t_max - delta; t += delta)
20836 if (! mktime_test (t))
20837 result |= 1;
20838 if (! (mktime_test ((time_t) 1)
20839 && mktime_test ((time_t) (60 * 60))
20840 && mktime_test ((time_t) (60 * 60 * 24))))
20841 result |= 2;
20843 for (j = 1; ; j <<= 1)
20844 if (! bigtime_test (j))
20845 result |= 4;
20846 else if (INT_MAX / 2 < j)
20847 break;
20848 if (! bigtime_test (INT_MAX))
20849 result |= 8;
20851 if (! irix_6_4_bug ())
20852 result |= 16;
20853 if (! spring_forward_gap ())
20854 result |= 32;
20855 if (! year_2050_test ())
20856 result |= 64;
20857 return result;
20859 _ACEOF
20860 if ac_fn_c_try_run "$LINENO"; then :
20861 gl_cv_func_working_mktime=yes
20862 else
20863 gl_cv_func_working_mktime=no
20865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20866 conftest.$ac_objext conftest.beam conftest.$ac_ext
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20872 $as_echo "$gl_cv_func_working_mktime" >&6; }
20874 if test $gl_cv_func_working_mktime = no; then
20875 REPLACE_MKTIME=1
20876 else
20877 REPLACE_MKTIME=0
20880 if test $REPLACE_MKTIME = 1; then
20889 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
20900 GNULIB_MKTIME=1
20909 LIB_PTHREAD_SIGMASK=
20912 if test $ac_cv_func_pthread_sigmask = yes; then
20914 else
20915 HAVE_PTHREAD_SIGMASK=0
20916 REPLACE_PTHREAD_SIGMASK=1
20922 if test $HAVE_PTHREAD_SIGMASK = 1; then
20925 if test -z "$LIB_PTHREAD_SIGMASK"; then
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20927 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20928 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20929 $as_echo_n "(cached) " >&6
20930 else
20932 if test "$cross_compiling" = yes; then :
20934 case "$host_os" in
20935 freebsd* | hpux* | solaris | solaris2.[2-9]*)
20936 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
20938 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
20939 esac
20941 else
20942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20943 /* end confdefs.h. */
20945 #include <pthread.h>
20946 #include <signal.h>
20947 #include <stddef.h>
20948 int main ()
20950 sigset_t set;
20951 sigemptyset (&set);
20952 return pthread_sigmask (1729, &set, NULL) != 0;
20954 _ACEOF
20955 if ac_fn_c_try_run "$LINENO"; then :
20956 gl_cv_func_pthread_sigmask_in_libc_works=no
20957 else
20958 gl_cv_func_pthread_sigmask_in_libc_works=yes
20960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20961 conftest.$ac_objext conftest.beam conftest.$ac_ext
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20967 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20968 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20969 *no)
20970 REPLACE_PTHREAD_SIGMASK=1
20972 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20975 esac
20978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20979 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20980 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20981 $as_echo_n "(cached) " >&6
20982 else
20984 gl_save_LIBS="$LIBS"
20985 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
20986 if test "$cross_compiling" = yes; then :
20987 case "$host_os" in
20988 cygwin*)
20989 gl_cv_func_pthread_sigmask_return_works="guessing no";;
20991 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
20992 esac
20994 else
20995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20996 /* end confdefs.h. */
20998 #include <pthread.h>
20999 #include <signal.h>
21000 #include <stddef.h>
21001 int main ()
21003 sigset_t set;
21004 sigemptyset (&set);
21005 if (pthread_sigmask (1729, &set, NULL) == -1)
21006 return 1;
21007 return 0;
21009 _ACEOF
21010 if ac_fn_c_try_run "$LINENO"; then :
21011 gl_cv_func_pthread_sigmask_return_works=yes
21012 else
21013 gl_cv_func_pthread_sigmask_return_works=no
21015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21016 conftest.$ac_objext conftest.beam conftest.$ac_ext
21019 LIBS="$gl_save_LIBS"
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
21023 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
21024 case "$gl_cv_func_pthread_sigmask_return_works" in
21025 *no)
21026 REPLACE_PTHREAD_SIGMASK=1
21028 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
21031 esac
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
21034 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
21035 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
21036 $as_echo_n "(cached) " >&6
21037 else
21039 case "$host_os" in
21040 irix*)
21041 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
21043 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
21044 esac
21045 gl_save_LIBS="$LIBS"
21046 LIBS="$LIBS $LIBMULTITHREAD"
21047 if test "$cross_compiling" = yes; then :
21049 else
21050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21051 /* end confdefs.h. */
21053 #include <pthread.h>
21054 #include <signal.h>
21055 #include <stdio.h>
21056 #include <stdlib.h>
21057 #include <unistd.h>
21058 static volatile int sigint_occurred;
21059 static void
21060 sigint_handler (int sig)
21062 sigint_occurred++;
21064 int main ()
21066 sigset_t set;
21067 int pid = getpid ();
21068 char command[80];
21069 signal (SIGINT, sigint_handler);
21070 sigemptyset (&set);
21071 sigaddset (&set, SIGINT);
21072 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
21073 return 1;
21074 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
21075 if (!(system (command) == 0))
21076 return 2;
21077 sleep (2);
21078 if (!(sigint_occurred == 0))
21079 return 3;
21080 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
21081 return 4;
21082 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
21083 return 5;
21084 return 0;
21086 _ACEOF
21087 if ac_fn_c_try_run "$LINENO"; then :
21089 else
21090 gl_cv_func_pthread_sigmask_unblock_works=no
21092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21093 conftest.$ac_objext conftest.beam conftest.$ac_ext
21096 LIBS="$gl_save_LIBS"
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
21100 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
21101 case "$gl_cv_func_pthread_sigmask_unblock_works" in
21102 *no)
21103 REPLACE_PTHREAD_SIGMASK=1
21105 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
21108 esac
21111 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
21120 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
21123 if test $HAVE_PTHREAD_SIGMASK = 1; then
21125 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
21135 GNULIB_PTHREAD_SIGMASK=1
21144 if test $ac_cv_func_readlink = no; then
21145 HAVE_READLINK=0
21146 else
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
21148 $as_echo_n "checking whether readlink signature is correct... " >&6; }
21149 if test "${gl_cv_decl_readlink_works+set}" = set; then :
21150 $as_echo_n "(cached) " >&6
21151 else
21152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21153 /* end confdefs.h. */
21154 #include <unistd.h>
21155 /* Cause compilation failure if original declaration has wrong type. */
21156 ssize_t readlink (const char *, char *, size_t);
21158 main ()
21162 return 0;
21164 _ACEOF
21165 if ac_fn_c_try_compile "$LINENO"; then :
21166 gl_cv_decl_readlink_works=yes
21167 else
21168 gl_cv_decl_readlink_works=no
21170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
21173 $as_echo "$gl_cv_decl_readlink_works" >&6; }
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
21175 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
21176 if test "${gl_cv_func_readlink_works+set}" = set; then :
21177 $as_echo_n "(cached) " >&6
21178 else
21179 # We have readlink, so assume ln -s works.
21180 ln -s conftest.no-such conftest.link
21181 ln -s conftest.link conftest.lnk2
21182 if test "$cross_compiling" = yes; then :
21183 gl_cv_func_readlink_works="guessing no"
21184 else
21185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21186 /* end confdefs.h. */
21187 #include <unistd.h>
21190 main ()
21192 char buf[20];
21193 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
21195 return 0;
21197 _ACEOF
21198 if ac_fn_c_try_run "$LINENO"; then :
21199 gl_cv_func_readlink_works=yes
21200 else
21201 gl_cv_func_readlink_works=no
21203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21204 conftest.$ac_objext conftest.beam conftest.$ac_ext
21207 rm -f conftest.link conftest.lnk2
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
21210 $as_echo "$gl_cv_func_readlink_works" >&6; }
21211 if test "$gl_cv_func_readlink_works" != yes; then
21213 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
21215 REPLACE_READLINK=1
21216 elif test "$gl_cv_decl_readlink_works" != yes; then
21217 REPLACE_READLINK=1
21221 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
21230 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
21241 GNULIB_READLINK=1
21258 if test $gl_cv_have_include_next = yes; then
21259 gl_cv_next_signal_h='<'signal.h'>'
21260 else
21261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
21262 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
21263 if test "${gl_cv_next_signal_h+set}" = set; then :
21264 $as_echo_n "(cached) " >&6
21265 else
21267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21268 /* end confdefs.h. */
21269 #include <signal.h>
21271 _ACEOF
21272 case "$host_os" in
21273 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21274 *) gl_absname_cpp="$ac_cpp" ;;
21275 esac
21277 case "$host_os" in
21278 mingw*)
21279 gl_dirsep_regex='[/\\]'
21282 gl_dirsep_regex='/'
21284 esac
21286 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'signal.h|{
21287 s|.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*|\1|
21288 s|^/[^/]|//&|
21292 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21293 sed -n "$gl_absolute_header_sed"`'"'
21297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
21298 $as_echo "$gl_cv_next_signal_h" >&6; }
21300 NEXT_SIGNAL_H=$gl_cv_next_signal_h
21302 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21303 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21304 gl_next_as_first_directive='<'signal.h'>'
21305 else
21306 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21307 gl_next_as_first_directive=$gl_cv_next_signal_h
21309 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
21315 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
21316 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
21317 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
21318 #include <signal.h>
21321 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
21323 else
21324 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
21333 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
21334 #include <signal.h>
21337 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
21339 else
21340 HAVE_SIGHANDLER_T=0
21346 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21347 /* <sys/types.h> is not needed according to POSIX, but the
21348 <sys/socket.h> in i386-unknown-freebsd4.10 and
21349 powerpc-apple-darwin5.5 required it. */
21350 #include <sys/types.h>
21351 #if HAVE_SYS_SOCKET_H
21352 # include <sys/socket.h>
21353 #elif HAVE_WS2TCPIP_H
21354 # include <ws2tcpip.h>
21355 #endif
21358 if test "x$ac_cv_type_socklen_t" = x""yes; then :
21360 else
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
21362 $as_echo_n "checking for socklen_t equivalent... " >&6; }
21363 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
21364 $as_echo_n "(cached) " >&6
21365 else
21366 # Systems have either "struct sockaddr *" or
21367 # "void *" as the second argument to getpeername
21368 gl_cv_socklen_t_equiv=
21369 for arg2 in "struct sockaddr" void; do
21370 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
21371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21372 /* end confdefs.h. */
21373 #include <sys/types.h>
21374 #include <sys/socket.h>
21376 int getpeername (int, $arg2 *, $t *);
21378 main ()
21380 $t len;
21381 getpeername (0, 0, &len);
21383 return 0;
21385 _ACEOF
21386 if ac_fn_c_try_compile "$LINENO"; then :
21387 gl_cv_socklen_t_equiv="$t"
21389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21390 test "$gl_cv_socklen_t_equiv" != "" && break
21391 done
21392 test "$gl_cv_socklen_t_equiv" != "" && break
21393 done
21397 if test "$gl_cv_socklen_t_equiv" = ""; then
21398 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
21400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
21401 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
21403 cat >>confdefs.h <<_ACEOF
21404 #define socklen_t $gl_cv_socklen_t_equiv
21405 _ACEOF
21410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
21411 $as_echo_n "checking for ssize_t... " >&6; }
21412 if test "${gt_cv_ssize_t+set}" = set; then :
21413 $as_echo_n "(cached) " >&6
21414 else
21415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21416 /* end confdefs.h. */
21417 #include <sys/types.h>
21419 main ()
21421 int x = sizeof (ssize_t *) + sizeof (ssize_t);
21422 return !x;
21424 return 0;
21426 _ACEOF
21427 if ac_fn_c_try_compile "$LINENO"; then :
21428 gt_cv_ssize_t=yes
21429 else
21430 gt_cv_ssize_t=no
21432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
21435 $as_echo "$gt_cv_ssize_t" >&6; }
21436 if test $gt_cv_ssize_t = no; then
21438 $as_echo "#define ssize_t int" >>confdefs.h
21443 STDARG_H=''
21444 NEXT_STDARG_H='<stdarg.h>'
21445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
21446 $as_echo_n "checking for va_copy... " >&6; }
21447 if test "${gl_cv_func_va_copy+set}" = set; then :
21448 $as_echo_n "(cached) " >&6
21449 else
21451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21452 /* end confdefs.h. */
21453 #include <stdarg.h>
21455 main ()
21458 #ifndef va_copy
21459 void (*func) (va_list, va_list) = va_copy;
21460 #endif
21463 return 0;
21465 _ACEOF
21466 if ac_fn_c_try_compile "$LINENO"; then :
21467 gl_cv_func_va_copy=yes
21468 else
21469 gl_cv_func_va_copy=no
21471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
21475 $as_echo "$gl_cv_func_va_copy" >&6; }
21476 if test $gl_cv_func_va_copy = no; then
21477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21478 /* end confdefs.h. */
21479 #if defined _AIX && !defined __GNUC__
21480 AIX vaccine
21481 #endif
21483 _ACEOF
21484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21485 $EGREP "vaccine" >/dev/null 2>&1; then :
21486 gl_aixcc=yes
21487 else
21488 gl_aixcc=no
21490 rm -f conftest*
21492 if test $gl_aixcc = yes; then
21493 STDARG_H=stdarg.h
21502 if test $gl_cv_have_include_next = yes; then
21503 gl_cv_next_stdarg_h='<'stdarg.h'>'
21504 else
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
21506 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
21507 if test "${gl_cv_next_stdarg_h+set}" = set; then :
21508 $as_echo_n "(cached) " >&6
21509 else
21511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21512 /* end confdefs.h. */
21513 #include <stdarg.h>
21515 _ACEOF
21516 case "$host_os" in
21517 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21518 *) gl_absname_cpp="$ac_cpp" ;;
21519 esac
21521 case "$host_os" in
21522 mingw*)
21523 gl_dirsep_regex='[/\\]'
21526 gl_dirsep_regex='/'
21528 esac
21530 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdarg.h|{
21531 s|.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*|\1|
21532 s|^/[^/]|//&|
21536 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21537 sed -n "$gl_absolute_header_sed"`'"'
21541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
21542 $as_echo "$gl_cv_next_stdarg_h" >&6; }
21544 NEXT_STDARG_H=$gl_cv_next_stdarg_h
21546 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21547 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21548 gl_next_as_first_directive='<'stdarg.h'>'
21549 else
21550 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21551 gl_next_as_first_directive=$gl_cv_next_stdarg_h
21553 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
21558 if test "$gl_cv_next_stdarg_h" = '""'; then
21559 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
21560 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
21562 else
21564 saved_as_echo_n="$as_echo_n"
21565 as_echo_n=':'
21566 if test "${gl_cv_func___va_copy+set}" = set; then :
21567 $as_echo_n "(cached) " >&6
21568 else
21570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21571 /* end confdefs.h. */
21572 #include <stdarg.h>
21574 main ()
21577 #ifndef __va_copy
21578 error, bail out
21579 #endif
21582 return 0;
21584 _ACEOF
21585 if ac_fn_c_try_compile "$LINENO"; then :
21586 gl_cv_func___va_copy=yes
21587 else
21588 gl_cv_func___va_copy=no
21590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21593 as_echo_n="$saved_as_echo_n"
21595 if test $gl_cv_func___va_copy = yes; then
21597 $as_echo "#define va_copy __va_copy" >>confdefs.h
21599 else
21602 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
21608 if test -n "$STDARG_H"; then
21609 GL_GENERATE_STDARG_H_TRUE=
21610 GL_GENERATE_STDARG_H_FALSE='#'
21611 else
21612 GL_GENERATE_STDARG_H_TRUE='#'
21613 GL_GENERATE_STDARG_H_FALSE=
21621 # Define two additional variables used in the Makefile substitution.
21623 if test "$ac_cv_header_stdbool_h" = yes; then
21624 STDBOOL_H=''
21625 else
21626 STDBOOL_H='stdbool.h'
21629 if test -n "$STDBOOL_H"; then
21630 GL_GENERATE_STDBOOL_H_TRUE=
21631 GL_GENERATE_STDBOOL_H_FALSE='#'
21632 else
21633 GL_GENERATE_STDBOOL_H_TRUE='#'
21634 GL_GENERATE_STDBOOL_H_FALSE=
21638 if test "$ac_cv_type__Bool" = yes; then
21639 HAVE__BOOL=1
21640 else
21641 HAVE__BOOL=0
21648 STDDEF_H=
21649 if test $gt_cv_c_wchar_t = no; then
21650 HAVE_WCHAR_T=0
21651 STDDEF_H=stddef.h
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21654 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21655 if test "${gl_cv_decl_null_works+set}" = set; then :
21656 $as_echo_n "(cached) " >&6
21657 else
21658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21659 /* end confdefs.h. */
21660 #include <stddef.h>
21661 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21664 main ()
21668 return 0;
21670 _ACEOF
21671 if ac_fn_c_try_compile "$LINENO"; then :
21672 gl_cv_decl_null_works=yes
21673 else
21674 gl_cv_decl_null_works=no
21676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21679 $as_echo "$gl_cv_decl_null_works" >&6; }
21680 if test $gl_cv_decl_null_works = no; then
21681 REPLACE_NULL=1
21682 STDDEF_H=stddef.h
21685 if test -n "$STDDEF_H"; then
21686 GL_GENERATE_STDDEF_H_TRUE=
21687 GL_GENERATE_STDDEF_H_FALSE='#'
21688 else
21689 GL_GENERATE_STDDEF_H_TRUE='#'
21690 GL_GENERATE_STDDEF_H_FALSE=
21693 if test -n "$STDDEF_H"; then
21702 if test $gl_cv_have_include_next = yes; then
21703 gl_cv_next_stddef_h='<'stddef.h'>'
21704 else
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21706 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21707 if test "${gl_cv_next_stddef_h+set}" = set; then :
21708 $as_echo_n "(cached) " >&6
21709 else
21711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21712 /* end confdefs.h. */
21713 #include <stddef.h>
21715 _ACEOF
21716 case "$host_os" in
21717 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21718 *) gl_absname_cpp="$ac_cpp" ;;
21719 esac
21721 case "$host_os" in
21722 mingw*)
21723 gl_dirsep_regex='[/\\]'
21726 gl_dirsep_regex='/'
21728 esac
21730 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stddef.h|{
21731 s|.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*|\1|
21732 s|^/[^/]|//&|
21736 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21737 sed -n "$gl_absolute_header_sed"`'"'
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21742 $as_echo "$gl_cv_next_stddef_h" >&6; }
21744 NEXT_STDDEF_H=$gl_cv_next_stddef_h
21746 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21747 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21748 gl_next_as_first_directive='<'stddef.h'>'
21749 else
21750 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21751 gl_next_as_first_directive=$gl_cv_next_stddef_h
21753 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21772 if test $gl_cv_have_include_next = yes; then
21773 gl_cv_next_stdio_h='<'stdio.h'>'
21774 else
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21776 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21777 if test "${gl_cv_next_stdio_h+set}" = set; then :
21778 $as_echo_n "(cached) " >&6
21779 else
21781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21782 /* end confdefs.h. */
21783 #include <stdio.h>
21785 _ACEOF
21786 case "$host_os" in
21787 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21788 *) gl_absname_cpp="$ac_cpp" ;;
21789 esac
21791 case "$host_os" in
21792 mingw*)
21793 gl_dirsep_regex='[/\\]'
21796 gl_dirsep_regex='/'
21798 esac
21800 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdio.h|{
21801 s|.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*|\1|
21802 s|^/[^/]|//&|
21806 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21807 sed -n "$gl_absolute_header_sed"`'"'
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21812 $as_echo "$gl_cv_next_stdio_h" >&6; }
21814 NEXT_STDIO_H=$gl_cv_next_stdio_h
21816 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21817 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21818 gl_next_as_first_directive='<'stdio.h'>'
21819 else
21820 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21821 gl_next_as_first_directive=$gl_cv_next_stdio_h
21823 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
21829 GNULIB_FSCANF=1
21830 GNULIB_SCANF=1
21831 GNULIB_FGETC=1
21832 GNULIB_GETC=1
21833 GNULIB_GETCHAR=1
21834 GNULIB_FGETS=1
21835 GNULIB_GETS=1
21836 GNULIB_FREAD=1
21839 GNULIB_FPRINTF=1
21840 GNULIB_PRINTF=1
21841 GNULIB_VFPRINTF=1
21842 GNULIB_VPRINTF=1
21843 GNULIB_FPUTC=1
21844 GNULIB_PUTC=1
21845 GNULIB_PUTCHAR=1
21846 GNULIB_FPUTS=1
21847 GNULIB_PUTS=1
21848 GNULIB_FWRITE=1
21864 if test $gl_cv_have_include_next = yes; then
21865 gl_cv_next_stdlib_h='<'stdlib.h'>'
21866 else
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21868 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21869 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21870 $as_echo_n "(cached) " >&6
21871 else
21873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21874 /* end confdefs.h. */
21875 #include <stdlib.h>
21877 _ACEOF
21878 case "$host_os" in
21879 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21880 *) gl_absname_cpp="$ac_cpp" ;;
21881 esac
21883 case "$host_os" in
21884 mingw*)
21885 gl_dirsep_regex='[/\\]'
21888 gl_dirsep_regex='/'
21890 esac
21892 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdlib.h|{
21893 s|.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*|\1|
21894 s|^/[^/]|//&|
21898 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21899 sed -n "$gl_absolute_header_sed"`'"'
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21904 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21906 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
21908 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21909 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21910 gl_next_as_first_directive='<'stdlib.h'>'
21911 else
21912 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21913 gl_next_as_first_directive=$gl_cv_next_stdlib_h
21915 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
21925 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21933 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21942 if test "$ac_cv_have_decl_strtoimax" != yes; then
21943 HAVE_DECL_STRTOIMAX=0
21946 if test $ac_cv_func_strtoimax = no; then
21955 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
21958 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21959 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
21960 ac_have_decl=1
21961 else
21962 ac_have_decl=0
21965 cat >>confdefs.h <<_ACEOF
21966 #define HAVE_DECL_STRTOLL $ac_have_decl
21967 _ACEOF
21977 GNULIB_STRTOIMAX=1
21987 if test "$ac_cv_have_decl_strtoumax" != yes; then
21988 HAVE_DECL_STRTOUMAX=0
21991 if test $ac_cv_func_strtoumax = no; then
22000 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
22003 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
22004 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
22005 ac_have_decl=1
22006 else
22007 ac_have_decl=0
22010 cat >>confdefs.h <<_ACEOF
22011 #define HAVE_DECL_STRTOULL $ac_have_decl
22012 _ACEOF
22022 GNULIB_STRTOUMAX=1
22030 if test $ac_cv_func_symlink = no; then
22031 HAVE_SYMLINK=0
22032 else
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
22034 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
22035 if test "${gl_cv_func_symlink_works+set}" = set; then :
22036 $as_echo_n "(cached) " >&6
22037 else
22038 if test "$cross_compiling" = yes; then :
22039 gl_cv_func_symlink_works="guessing no"
22040 else
22041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22042 /* end confdefs.h. */
22043 #include <unistd.h>
22046 main ()
22048 int result = 0;
22049 if (!symlink ("a", "conftest.link/"))
22050 result |= 1;
22051 if (symlink ("conftest.f", "conftest.lnk2"))
22052 result |= 2;
22053 else if (!symlink ("a", "conftest.lnk2/"))
22054 result |= 4;
22055 return result;
22058 return 0;
22060 _ACEOF
22061 if ac_fn_c_try_run "$LINENO"; then :
22062 gl_cv_func_symlink_works=yes
22063 else
22064 gl_cv_func_symlink_works=no
22066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22067 conftest.$ac_objext conftest.beam conftest.$ac_ext
22070 rm -f conftest.f conftest.link conftest.lnk2
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
22073 $as_echo "$gl_cv_func_symlink_works" >&6; }
22074 if test "$gl_cv_func_symlink_works" != yes; then
22075 REPLACE_SYMLINK=1
22079 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
22088 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
22096 GNULIB_SYMLINK=1
22118 if test $gl_cv_have_include_next = yes; then
22119 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
22120 else
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
22122 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
22123 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
22124 $as_echo_n "(cached) " >&6
22125 else
22127 if test $ac_cv_header_sys_stat_h = yes; then
22130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22131 /* end confdefs.h. */
22132 #include <sys/stat.h>
22134 _ACEOF
22135 case "$host_os" in
22136 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22137 *) gl_absname_cpp="$ac_cpp" ;;
22138 esac
22140 case "$host_os" in
22141 mingw*)
22142 gl_dirsep_regex='[/\\]'
22145 gl_dirsep_regex='/'
22147 esac
22149 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/stat.h|{
22150 s|.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*|\1|
22151 s|^/[^/]|//&|
22155 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22156 sed -n "$gl_absolute_header_sed"`'"'
22157 else
22158 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
22164 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
22166 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
22168 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22169 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22170 gl_next_as_first_directive='<'sys/stat.h'>'
22171 else
22172 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22173 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
22175 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
22183 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
22184 #include <sys/stat.h>
22186 if test "x$ac_cv_type_nlink_t" = x""yes; then :
22188 else
22190 $as_echo "#define nlink_t int" >>confdefs.h
22208 if test $ac_cv_have_decl_localtime_r = no; then
22209 HAVE_DECL_LOCALTIME_R=0
22213 if test $ac_cv_func_localtime_r = yes; then
22214 HAVE_LOCALTIME_R=1
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
22216 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
22217 if test "${gl_cv_time_r_posix+set}" = set; then :
22218 $as_echo_n "(cached) " >&6
22219 else
22220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22221 /* end confdefs.h. */
22222 #include <time.h>
22224 main ()
22226 /* We don't need to append 'restrict's to the argument types,
22227 even though the POSIX signature has the 'restrict's,
22228 since C99 says they can't affect type compatibility. */
22229 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
22230 if (ptr) return 0;
22231 /* Check the return type is a pointer.
22232 On HP-UX 10 it is 'int'. */
22233 *localtime_r (0, 0);
22235 return 0;
22238 _ACEOF
22239 if ac_fn_c_try_compile "$LINENO"; then :
22240 gl_cv_time_r_posix=yes
22241 else
22242 gl_cv_time_r_posix=no
22244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
22248 $as_echo "$gl_cv_time_r_posix" >&6; }
22249 if test $gl_cv_time_r_posix = yes; then
22250 REPLACE_LOCALTIME_R=0
22251 else
22252 REPLACE_LOCALTIME_R=1
22254 else
22255 HAVE_LOCALTIME_R=0
22258 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
22267 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
22278 GNULIB_TIME_R=1
22298 if test $gl_cv_have_include_next = yes; then
22299 gl_cv_next_unistd_h='<'unistd.h'>'
22300 else
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
22302 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
22303 if test "${gl_cv_next_unistd_h+set}" = set; then :
22304 $as_echo_n "(cached) " >&6
22305 else
22307 if test $ac_cv_header_unistd_h = yes; then
22310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22311 /* end confdefs.h. */
22312 #include <unistd.h>
22314 _ACEOF
22315 case "$host_os" in
22316 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22317 *) gl_absname_cpp="$ac_cpp" ;;
22318 esac
22320 case "$host_os" in
22321 mingw*)
22322 gl_dirsep_regex='[/\\]'
22325 gl_dirsep_regex='/'
22327 esac
22329 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'unistd.h|{
22330 s|.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*|\1|
22331 s|^/[^/]|//&|
22335 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22336 sed -n "$gl_absolute_header_sed"`'"'
22337 else
22338 gl_cv_next_unistd_h='<'unistd.h'>'
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
22344 $as_echo "$gl_cv_next_unistd_h" >&6; }
22346 NEXT_UNISTD_H=$gl_cv_next_unistd_h
22348 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22349 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22350 gl_next_as_first_directive='<'unistd.h'>'
22351 else
22352 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22353 gl_next_as_first_directive=$gl_cv_next_unistd_h
22355 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
22360 if test $ac_cv_header_unistd_h = yes; then
22361 HAVE_UNISTD_H=1
22362 else
22363 HAVE_UNISTD_H=0
22371 gl_gnulib_enabled_dosname=false
22372 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
22373 gl_gnulib_enabled_pathmax=false
22374 gl_gnulib_enabled_sigprocmask=false
22375 gl_gnulib_enabled_stat=false
22376 gl_gnulib_enabled_strtoll=false
22377 gl_gnulib_enabled_strtoull=false
22378 gl_gnulib_enabled_verify=false
22379 func_gl_gnulib_m4code_dosname ()
22381 if ! $gl_gnulib_enabled_dosname; then
22382 gl_gnulib_enabled_dosname=true
22385 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
22387 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22390 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
22393 func_gl_gnulib_m4code_pathmax ()
22395 if ! $gl_gnulib_enabled_pathmax; then
22399 gl_gnulib_enabled_pathmax=true
22402 func_gl_gnulib_m4code_sigprocmask ()
22404 if ! $gl_gnulib_enabled_sigprocmask; then
22408 if test $gl_cv_type_sigset_t = yes; then
22409 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
22410 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
22411 gl_cv_func_sigprocmask=1
22415 if test -z "$gl_cv_func_sigprocmask"; then
22416 HAVE_POSIX_SIGNALBLOCKING=0
22419 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
22428 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
22439 GNULIB_SIGPROCMASK=1
22445 gl_gnulib_enabled_sigprocmask=true
22448 func_gl_gnulib_m4code_stat ()
22450 if ! $gl_gnulib_enabled_stat; then
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
22455 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
22456 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
22457 $as_echo_n "(cached) " >&6
22458 else
22459 if test "$cross_compiling" = yes; then :
22460 case $host_os in
22461 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
22462 *) gl_cv_func_stat_dir_slash="guessing yes";;
22463 esac
22464 else
22465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22466 /* end confdefs.h. */
22467 #include <sys/stat.h>
22470 main ()
22472 struct stat st; return stat (".", &st) != stat ("./", &st);
22474 return 0;
22476 _ACEOF
22477 if ac_fn_c_try_run "$LINENO"; then :
22478 gl_cv_func_stat_dir_slash=yes
22479 else
22480 gl_cv_func_stat_dir_slash=no
22482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22483 conftest.$ac_objext conftest.beam conftest.$ac_ext
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
22488 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
22490 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
22491 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
22492 $as_echo_n "(cached) " >&6
22493 else
22494 touch conftest.tmp
22495 # Assume that if we have lstat, we can also check symlinks.
22496 if test $ac_cv_func_lstat = yes; then
22497 ln -s conftest.tmp conftest.lnk
22499 if test "$cross_compiling" = yes; then :
22500 gl_cv_func_stat_file_slash="guessing no"
22501 else
22502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22503 /* end confdefs.h. */
22504 #include <sys/stat.h>
22507 main ()
22509 int result = 0;
22510 struct stat st;
22511 if (!stat ("conftest.tmp/", &st))
22512 result |= 1;
22513 #if HAVE_LSTAT
22514 if (!stat ("conftest.lnk/", &st))
22515 result |= 2;
22516 #endif
22517 return result;
22520 return 0;
22522 _ACEOF
22523 if ac_fn_c_try_run "$LINENO"; then :
22524 gl_cv_func_stat_file_slash=yes
22525 else
22526 gl_cv_func_stat_file_slash=no
22528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22529 conftest.$ac_objext conftest.beam conftest.$ac_ext
22532 rm -f conftest.tmp conftest.lnk
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
22535 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
22536 case $gl_cv_func_stat_dir_slash in
22537 *no) REPLACE_STAT=1
22539 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
22541 esac
22542 case $gl_cv_func_stat_file_slash in
22543 *no) REPLACE_STAT=1
22545 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
22547 esac
22549 if test $REPLACE_STAT = 1; then
22558 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
22570 GNULIB_STAT=1
22576 gl_gnulib_enabled_stat=true
22577 if test $REPLACE_STAT = 1; then
22578 func_gl_gnulib_m4code_dosname
22580 if test $REPLACE_STAT = 1; then
22581 func_gl_gnulib_m4code_pathmax
22583 if test $REPLACE_STAT = 1; then
22584 func_gl_gnulib_m4code_verify
22588 func_gl_gnulib_m4code_strtoll ()
22590 if ! $gl_gnulib_enabled_strtoll; then
22594 if test "$ac_cv_type_long_long_int" = yes; then
22595 for ac_func in strtoll
22596 do :
22597 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
22598 if test "x$ac_cv_func_strtoll" = x""yes; then :
22599 cat >>confdefs.h <<_ACEOF
22600 #define HAVE_STRTOLL 1
22601 _ACEOF
22604 done
22606 if test $ac_cv_func_strtoll = no; then
22607 HAVE_STRTOLL=0
22611 if test $HAVE_STRTOLL = 0; then
22620 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
22631 GNULIB_STRTOLL=1
22637 gl_gnulib_enabled_strtoll=true
22640 func_gl_gnulib_m4code_strtoull ()
22642 if ! $gl_gnulib_enabled_strtoull; then
22646 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
22647 for ac_func in strtoull
22648 do :
22649 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
22650 if test "x$ac_cv_func_strtoull" = x""yes; then :
22651 cat >>confdefs.h <<_ACEOF
22652 #define HAVE_STRTOULL 1
22653 _ACEOF
22656 done
22658 if test $ac_cv_func_strtoull = no; then
22659 HAVE_STRTOULL=0
22663 if test $HAVE_STRTOULL = 0; then
22672 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
22683 GNULIB_STRTOULL=1
22689 gl_gnulib_enabled_strtoull=true
22692 func_gl_gnulib_m4code_verify ()
22694 if ! $gl_gnulib_enabled_verify; then
22695 gl_gnulib_enabled_verify=true
22698 if test $REPLACE_GETOPT = 1; then
22699 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22701 if test $REPLACE_LSTAT = 1; then
22702 func_gl_gnulib_m4code_dosname
22704 if test $REPLACE_LSTAT = 1; then
22705 func_gl_gnulib_m4code_stat
22707 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
22708 func_gl_gnulib_m4code_sigprocmask
22710 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22711 func_gl_gnulib_m4code_stat
22713 if test $ac_cv_func_strtoimax = no; then
22714 func_gl_gnulib_m4code_verify
22716 if test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
22717 func_gl_gnulib_m4code_strtoll
22719 if test $ac_cv_func_strtoumax = no; then
22720 func_gl_gnulib_m4code_verify
22722 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
22723 func_gl_gnulib_m4code_strtoull
22726 if $gl_gnulib_enabled_dosname; then
22727 gl_GNULIB_ENABLED_dosname_TRUE=
22728 gl_GNULIB_ENABLED_dosname_FALSE='#'
22729 else
22730 gl_GNULIB_ENABLED_dosname_TRUE='#'
22731 gl_GNULIB_ENABLED_dosname_FALSE=
22734 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22735 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
22736 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
22737 else
22738 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
22739 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
22742 if $gl_gnulib_enabled_pathmax; then
22743 gl_GNULIB_ENABLED_pathmax_TRUE=
22744 gl_GNULIB_ENABLED_pathmax_FALSE='#'
22745 else
22746 gl_GNULIB_ENABLED_pathmax_TRUE='#'
22747 gl_GNULIB_ENABLED_pathmax_FALSE=
22750 if $gl_gnulib_enabled_sigprocmask; then
22751 gl_GNULIB_ENABLED_sigprocmask_TRUE=
22752 gl_GNULIB_ENABLED_sigprocmask_FALSE='#'
22753 else
22754 gl_GNULIB_ENABLED_sigprocmask_TRUE='#'
22755 gl_GNULIB_ENABLED_sigprocmask_FALSE=
22758 if $gl_gnulib_enabled_stat; then
22759 gl_GNULIB_ENABLED_stat_TRUE=
22760 gl_GNULIB_ENABLED_stat_FALSE='#'
22761 else
22762 gl_GNULIB_ENABLED_stat_TRUE='#'
22763 gl_GNULIB_ENABLED_stat_FALSE=
22766 if $gl_gnulib_enabled_strtoll; then
22767 gl_GNULIB_ENABLED_strtoll_TRUE=
22768 gl_GNULIB_ENABLED_strtoll_FALSE='#'
22769 else
22770 gl_GNULIB_ENABLED_strtoll_TRUE='#'
22771 gl_GNULIB_ENABLED_strtoll_FALSE=
22774 if $gl_gnulib_enabled_strtoull; then
22775 gl_GNULIB_ENABLED_strtoull_TRUE=
22776 gl_GNULIB_ENABLED_strtoull_FALSE='#'
22777 else
22778 gl_GNULIB_ENABLED_strtoull_TRUE='#'
22779 gl_GNULIB_ENABLED_strtoull_FALSE=
22782 if $gl_gnulib_enabled_verify; then
22783 gl_GNULIB_ENABLED_verify_TRUE=
22784 gl_GNULIB_ENABLED_verify_FALSE='#'
22785 else
22786 gl_GNULIB_ENABLED_verify_TRUE='#'
22787 gl_GNULIB_ENABLED_verify_FALSE=
22790 # End of code from modules
22800 gltests_libdeps=
22801 gltests_ltlibdeps=
22811 gl_source_base='tests'
22812 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
22814 gl_module_indicator_condition=$gltests_WITNESS
22825 LIBGNU_LIBDEPS="$gl_libdeps"
22827 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
22831 case "$opsys" in
22832 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
22834 darwin)
22835 ## The -headerpad option tells ld (see man page) to leave room at the
22836 ## end of the header for adding load commands. Needed for dumping.
22837 ## 0x690 is the total size of 30 segment load commands (at 56
22838 ## each); under Cocoa 31 commands are required.
22839 if test "$HAVE_NS" = "yes"; then
22840 libs_nsgui="-framework AppKit"
22841 headerpad_extra=6C8
22842 else
22843 libs_nsgui=
22844 headerpad_extra=690
22846 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22848 ## This is here because src/Makefile.in did some extra fiddling around
22849 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22850 ## #ifndef LD_SWITCH_SYSTEM
22851 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22852 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22853 ## not using gcc, darwin system not on an alpha (ie darwin, since
22854 ## darwin + alpha does not occur).
22855 ## Because this was done in src/Makefile.in, the resulting part of
22856 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22857 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22858 ## rather than LD_SWITCH_SYSTEM.
22859 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22860 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
22863 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
22864 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
22865 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
22866 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22867 ## had different values in configure (in ac_link) and src/Makefile.in.
22868 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22869 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX_RPATH)" ;;
22871 *) LD_SWITCH_SYSTEM_TEMACS= ;;
22872 esac
22874 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22875 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22881 LD_FIRSTFLAG=
22882 ORDINARY_LINK=
22883 case "$opsys" in
22884 ## gnu: GNU needs its own crt0.
22885 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
22887 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22888 ## library search parth, i.e. it won't search /usr/lib for libc and
22889 ## friends. Using -nostartfiles instead avoids this problem, and
22890 ## will also work on earlier NetBSD releases.
22891 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
22893 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22894 ## MkLinux/LinuxPPC needs this.
22895 ## ibms390x only supports opsys = gnu-linux so it can be added here.
22896 gnu-*)
22897 case "$machine" in
22898 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
22899 esac
22901 esac
22904 if test "x$ORDINARY_LINK" = "xyes"; then
22906 LD_FIRSTFLAG=""
22908 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22911 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22912 ## freebsd, gnu-* not on macppc|ibms390x.
22913 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22915 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22916 ## places that are difficult to figure out at make time. Fortunately,
22917 ## these same versions allow you to pass arbitrary flags on to the
22918 ## linker, so there is no reason not to use it as a linker.
22920 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22921 ## searching for libraries in its internal directories, so we have to
22922 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22923 LD_FIRSTFLAG="-nostdlib"
22926 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22927 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
22932 ## FIXME? The logic here is not precisely the same as that above.
22933 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22934 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22935 LIB_GCC=
22936 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22938 case "$opsys" in
22939 freebsd|netbsd|openbsd) LIB_GCC= ;;
22941 gnu-*)
22942 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22943 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22944 case $host_cpu in
22945 arm*)
22946 LIB_GCC="-lgcc_s"
22949 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22950 ## immediately undefine it again and redefine it to empty.
22951 ## Was the C_SWITCH_X_SITE part really necessary?
22952 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22953 LIB_GCC=
22955 esac
22958 ## Ask GCC where to find libgcc.a.
22959 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22960 esac
22964 ## If we're using X11/GNUstep, define some consequences.
22965 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
22967 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22970 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22977 #### Report on what we decided to do.
22978 #### Report GTK as a toolkit, even if it doesn't use Xt.
22979 #### It makes printing result more understandable as using GTK sets
22980 #### toolkit_scroll_bars to yes by default.
22981 if test "${HAVE_GTK}" = "yes"; then
22982 USE_X_TOOLKIT=GTK
22985 and_machfile=
22986 if test -n "$machfile"; then
22987 and_machfile=" and \`${machfile}'"
22990 echo "
22991 Configured for \`${canonical}'.
22993 Where should the build process find the source code? ${srcdir}
22994 What operating system and machine description files should Emacs use?
22995 \`${opsysfile}'${and_machfile}
22996 What compiler should emacs be built with? ${CC} ${CFLAGS}
22997 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22998 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22999 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23000 What window system should Emacs use? ${window_system}
23001 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23003 if test -n "${x_includes}"; then
23004 echo " Where do we find X Windows header files? ${x_includes}"
23005 else
23006 echo " Where do we find X Windows header files? Standard dirs"
23008 if test -n "${x_libraries}"; then
23009 echo " Where do we find X Windows libraries? ${x_libraries}"
23010 else
23011 echo " Where do we find X Windows libraries? Standard dirs"
23014 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23015 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23016 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23017 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23018 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
23019 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23020 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23021 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
23023 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23024 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23025 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
23026 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
23027 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
23028 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
23029 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
23031 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23032 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23033 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23034 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23036 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23037 echo
23039 if test -n "${EMACSDATA}"; then
23040 echo " Environment variable EMACSDATA set to: $EMACSDATA"
23042 if test -n "${EMACSDOC}"; then
23043 echo " Environment variable EMACSDOC set to: $EMACSDOC"
23046 if test $USE_XASSERTS = yes; then
23047 echo " Compiling with asserts turned on."
23048 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23051 echo
23053 if test "$HAVE_NS" = "yes"; then
23054 echo
23055 echo "You must run \"${MAKE-make} install\" in order to test the built application.
23056 The installed application will go to nextstep/Emacs.app and can be
23057 run or moved from there."
23058 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
23059 echo "The application will be fully self-contained."
23060 else
23061 echo "The lisp resources for the application will be installed under ${prefix}.
23062 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
23063 to run if these resources are not installed."
23065 echo
23068 if test "${opsys}" = "cygwin"; then
23069 case `uname -r` in
23070 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
23071 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
23072 echo
23074 esac
23077 # Remove any trailing slashes in these variables.
23078 test "${prefix}" != NONE &&
23079 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23080 test "${exec_prefix}" != NONE &&
23081 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23083 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"
23085 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"
23088 opt_makefile=test/automated/Makefile
23090 if test -f $srcdir/${opt_makefile}.in; then
23091 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
23092 ac_config_files="$ac_config_files test/automated/Makefile"
23097 opt_makefile=admin/unidata/Makefile
23099 if test -f $srcdir/${opt_makefile}.in; then
23100 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
23101 ac_config_files="$ac_config_files admin/unidata/Makefile"
23106 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
23110 ac_config_commands="$ac_config_commands mkdirs"
23113 ac_config_commands="$ac_config_commands epaths"
23116 ac_config_commands="$ac_config_commands gdbinit"
23119 cat >confcache <<\_ACEOF
23120 # This file is a shell script that caches the results of configure
23121 # tests run on this system so they can be shared between configure
23122 # scripts and configure runs, see configure's option --config-cache.
23123 # It is not useful on other systems. If it contains results you don't
23124 # want to keep, you may remove or edit it.
23126 # config.status only pays attention to the cache file if you give it
23127 # the --recheck option to rerun configure.
23129 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23130 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23131 # following values.
23133 _ACEOF
23135 # The following way of writing the cache mishandles newlines in values,
23136 # but we know of no workaround that is simple, portable, and efficient.
23137 # So, we kill variables containing newlines.
23138 # Ultrix sh set writes to stderr and can't be redirected directly,
23139 # and sets the high bit in the cache file unless we assign to the vars.
23141 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23142 eval ac_val=\$$ac_var
23143 case $ac_val in #(
23144 *${as_nl}*)
23145 case $ac_var in #(
23146 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23147 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23148 esac
23149 case $ac_var in #(
23150 _ | IFS | as_nl) ;; #(
23151 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23152 *) { eval $ac_var=; unset $ac_var;} ;;
23153 esac ;;
23154 esac
23155 done
23157 (set) 2>&1 |
23158 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23159 *${as_nl}ac_space=\ *)
23160 # `set' does not quote correctly, so add quotes: double-quote
23161 # substitution turns \\\\ into \\, and sed turns \\ into \.
23162 sed -n \
23163 "s/'/'\\\\''/g;
23164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23165 ;; #(
23167 # `set' quotes correctly as required by POSIX, so do not add quotes.
23168 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23170 esac |
23171 sort
23173 sed '
23174 /^ac_cv_env_/b end
23175 t clear
23176 :clear
23177 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23178 t end
23179 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23180 :end' >>confcache
23181 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23182 if test -w "$cache_file"; then
23183 test "x$cache_file" != "x/dev/null" &&
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23185 $as_echo "$as_me: updating cache $cache_file" >&6;}
23186 cat confcache >$cache_file
23187 else
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23189 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23192 rm -f confcache
23194 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23195 # Let make expand exec_prefix.
23196 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23198 DEFS=-DHAVE_CONFIG_H
23200 ac_libobjs=
23201 ac_ltlibobjs=
23202 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23203 # 1. Remove the extension, and $U if already installed.
23204 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23205 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23206 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23207 # will be set to the directory where LIBOBJS objects are built.
23208 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23209 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23210 done
23211 LIBOBJS=$ac_libobjs
23213 LTLIBOBJS=$ac_ltlibobjs
23216 if test -n "$EXEEXT"; then
23217 am__EXEEXT_TRUE=
23218 am__EXEEXT_FALSE='#'
23219 else
23220 am__EXEEXT_TRUE='#'
23221 am__EXEEXT_FALSE=
23224 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23225 as_fn_error "conditional \"AMDEP\" was never defined.
23226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23228 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23229 as_fn_error "conditional \"am__fastdepCC\" was never defined.
23230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23233 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
23234 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
23235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23237 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
23238 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
23239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23242 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
23243 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
23244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23246 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
23247 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
23248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23250 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
23251 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
23252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23254 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
23255 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
23256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23258 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
23259 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
23260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23262 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
23263 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
23264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23266 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
23267 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
23268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23270 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
23271 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
23272 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23274 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
23275 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
23276 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23278 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
23279 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
23280 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23282 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
23283 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
23284 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23286 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
23287 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
23288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23291 gl_libobjs=
23292 gl_ltlibobjs=
23293 if test -n "$gl_LIBOBJS"; then
23294 # Remove the extension.
23295 sed_drop_objext='s/\.o$//;s/\.obj$//'
23296 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23297 gl_libobjs="$gl_libobjs $i.$ac_objext"
23298 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
23299 done
23301 gl_LIBOBJS=$gl_libobjs
23303 gl_LTLIBOBJS=$gl_ltlibobjs
23307 gltests_libobjs=
23308 gltests_ltlibobjs=
23309 if test -n "$gltests_LIBOBJS"; then
23310 # Remove the extension.
23311 sed_drop_objext='s/\.o$//;s/\.obj$//'
23312 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23313 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
23314 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
23315 done
23317 gltests_LIBOBJS=$gltests_libobjs
23319 gltests_LTLIBOBJS=$gltests_ltlibobjs
23323 : ${CONFIG_STATUS=./config.status}
23324 ac_write_fail=0
23325 ac_clean_files_save=$ac_clean_files
23326 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23327 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23328 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23329 as_write_fail=0
23330 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23331 #! $SHELL
23332 # Generated by $as_me.
23333 # Run this file to recreate the current configuration.
23334 # Compiler output produced by configure, useful for debugging
23335 # configure, is in config.log if it exists.
23337 debug=false
23338 ac_cs_recheck=false
23339 ac_cs_silent=false
23341 SHELL=\${CONFIG_SHELL-$SHELL}
23342 export SHELL
23343 _ASEOF
23344 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23345 ## -------------------- ##
23346 ## M4sh Initialization. ##
23347 ## -------------------- ##
23349 # Be more Bourne compatible
23350 DUALCASE=1; export DUALCASE # for MKS sh
23351 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23352 emulate sh
23353 NULLCMD=:
23354 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23355 # is contrary to our usage. Disable this feature.
23356 alias -g '${1+"$@"}'='"$@"'
23357 setopt NO_GLOB_SUBST
23358 else
23359 case `(set -o) 2>/dev/null` in #(
23360 *posix*) :
23361 set -o posix ;; #(
23362 *) :
23364 esac
23368 as_nl='
23370 export as_nl
23371 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23372 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23373 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23374 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23375 # Prefer a ksh shell builtin over an external printf program on Solaris,
23376 # but without wasting forks for bash or zsh.
23377 if test -z "$BASH_VERSION$ZSH_VERSION" \
23378 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23379 as_echo='print -r --'
23380 as_echo_n='print -rn --'
23381 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23382 as_echo='printf %s\n'
23383 as_echo_n='printf %s'
23384 else
23385 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23386 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23387 as_echo_n='/usr/ucb/echo -n'
23388 else
23389 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23390 as_echo_n_body='eval
23391 arg=$1;
23392 case $arg in #(
23393 *"$as_nl"*)
23394 expr "X$arg" : "X\\(.*\\)$as_nl";
23395 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23396 esac;
23397 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23399 export as_echo_n_body
23400 as_echo_n='sh -c $as_echo_n_body as_echo'
23402 export as_echo_body
23403 as_echo='sh -c $as_echo_body as_echo'
23406 # The user is always right.
23407 if test "${PATH_SEPARATOR+set}" != set; then
23408 PATH_SEPARATOR=:
23409 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23410 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23411 PATH_SEPARATOR=';'
23416 # IFS
23417 # We need space, tab and new line, in precisely that order. Quoting is
23418 # there to prevent editors from complaining about space-tab.
23419 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23420 # splitting by setting IFS to empty value.)
23421 IFS=" "" $as_nl"
23423 # Find who we are. Look in the path if we contain no directory separator.
23424 case $0 in #((
23425 *[\\/]* ) as_myself=$0 ;;
23426 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23427 for as_dir in $PATH
23429 IFS=$as_save_IFS
23430 test -z "$as_dir" && as_dir=.
23431 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23432 done
23433 IFS=$as_save_IFS
23436 esac
23437 # We did not find ourselves, most probably we were run as `sh COMMAND'
23438 # in which case we are not to be found in the path.
23439 if test "x$as_myself" = x; then
23440 as_myself=$0
23442 if test ! -f "$as_myself"; then
23443 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23444 exit 1
23447 # Unset variables that we do not need and which cause bugs (e.g. in
23448 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23449 # suppresses any "Segmentation fault" message there. '((' could
23450 # trigger a bug in pdksh 5.2.14.
23451 for as_var in BASH_ENV ENV MAIL MAILPATH
23452 do eval test x\${$as_var+set} = xset \
23453 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23454 done
23455 PS1='$ '
23456 PS2='> '
23457 PS4='+ '
23459 # NLS nuisances.
23460 LC_ALL=C
23461 export LC_ALL
23462 LANGUAGE=C
23463 export LANGUAGE
23465 # CDPATH.
23466 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23469 # as_fn_error ERROR [LINENO LOG_FD]
23470 # ---------------------------------
23471 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23472 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23473 # script with status $?, using 1 if that was 0.
23474 as_fn_error ()
23476 as_status=$?; test $as_status -eq 0 && as_status=1
23477 if test "$3"; then
23478 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23479 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
23481 $as_echo "$as_me: error: $1" >&2
23482 as_fn_exit $as_status
23483 } # as_fn_error
23486 # as_fn_set_status STATUS
23487 # -----------------------
23488 # Set $? to STATUS, without forking.
23489 as_fn_set_status ()
23491 return $1
23492 } # as_fn_set_status
23494 # as_fn_exit STATUS
23495 # -----------------
23496 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23497 as_fn_exit ()
23499 set +e
23500 as_fn_set_status $1
23501 exit $1
23502 } # as_fn_exit
23504 # as_fn_unset VAR
23505 # ---------------
23506 # Portably unset VAR.
23507 as_fn_unset ()
23509 { eval $1=; unset $1;}
23511 as_unset=as_fn_unset
23512 # as_fn_append VAR VALUE
23513 # ----------------------
23514 # Append the text in VALUE to the end of the definition contained in VAR. Take
23515 # advantage of any shell optimizations that allow amortized linear growth over
23516 # repeated appends, instead of the typical quadratic growth present in naive
23517 # implementations.
23518 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23519 eval 'as_fn_append ()
23521 eval $1+=\$2
23523 else
23524 as_fn_append ()
23526 eval $1=\$$1\$2
23528 fi # as_fn_append
23530 # as_fn_arith ARG...
23531 # ------------------
23532 # Perform arithmetic evaluation on the ARGs, and store the result in the
23533 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23534 # must be portable across $(()) and expr.
23535 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23536 eval 'as_fn_arith ()
23538 as_val=$(( $* ))
23540 else
23541 as_fn_arith ()
23543 as_val=`expr "$@" || test $? -eq 1`
23545 fi # as_fn_arith
23548 if expr a : '\(a\)' >/dev/null 2>&1 &&
23549 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23550 as_expr=expr
23551 else
23552 as_expr=false
23555 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23556 as_basename=basename
23557 else
23558 as_basename=false
23561 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23562 as_dirname=dirname
23563 else
23564 as_dirname=false
23567 as_me=`$as_basename -- "$0" ||
23568 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23569 X"$0" : 'X\(//\)$' \| \
23570 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23571 $as_echo X/"$0" |
23572 sed '/^.*\/\([^/][^/]*\)\/*$/{
23573 s//\1/
23576 /^X\/\(\/\/\)$/{
23577 s//\1/
23580 /^X\/\(\/\).*/{
23581 s//\1/
23584 s/.*/./; q'`
23586 # Avoid depending upon Character Ranges.
23587 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23588 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23589 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23590 as_cr_digits='0123456789'
23591 as_cr_alnum=$as_cr_Letters$as_cr_digits
23593 ECHO_C= ECHO_N= ECHO_T=
23594 case `echo -n x` in #(((((
23595 -n*)
23596 case `echo 'xy\c'` in
23597 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23598 xy) ECHO_C='\c';;
23599 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23600 ECHO_T=' ';;
23601 esac;;
23603 ECHO_N='-n';;
23604 esac
23606 rm -f conf$$ conf$$.exe conf$$.file
23607 if test -d conf$$.dir; then
23608 rm -f conf$$.dir/conf$$.file
23609 else
23610 rm -f conf$$.dir
23611 mkdir conf$$.dir 2>/dev/null
23613 if (echo >conf$$.file) 2>/dev/null; then
23614 if ln -s conf$$.file conf$$ 2>/dev/null; then
23615 as_ln_s='ln -s'
23616 # ... but there are two gotchas:
23617 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23618 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23619 # In both cases, we have to default to `cp -p'.
23620 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23621 as_ln_s='cp -p'
23622 elif ln conf$$.file conf$$ 2>/dev/null; then
23623 as_ln_s=ln
23624 else
23625 as_ln_s='cp -p'
23627 else
23628 as_ln_s='cp -p'
23630 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23631 rmdir conf$$.dir 2>/dev/null
23634 # as_fn_mkdir_p
23635 # -------------
23636 # Create "$as_dir" as a directory, including parents if necessary.
23637 as_fn_mkdir_p ()
23640 case $as_dir in #(
23641 -*) as_dir=./$as_dir;;
23642 esac
23643 test -d "$as_dir" || eval $as_mkdir_p || {
23644 as_dirs=
23645 while :; do
23646 case $as_dir in #(
23647 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23648 *) as_qdir=$as_dir;;
23649 esac
23650 as_dirs="'$as_qdir' $as_dirs"
23651 as_dir=`$as_dirname -- "$as_dir" ||
23652 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23653 X"$as_dir" : 'X\(//\)[^/]' \| \
23654 X"$as_dir" : 'X\(//\)$' \| \
23655 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23656 $as_echo X"$as_dir" |
23657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23658 s//\1/
23661 /^X\(\/\/\)[^/].*/{
23662 s//\1/
23665 /^X\(\/\/\)$/{
23666 s//\1/
23669 /^X\(\/\).*/{
23670 s//\1/
23673 s/.*/./; q'`
23674 test -d "$as_dir" && break
23675 done
23676 test -z "$as_dirs" || eval "mkdir $as_dirs"
23677 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
23680 } # as_fn_mkdir_p
23681 if mkdir -p . 2>/dev/null; then
23682 as_mkdir_p='mkdir -p "$as_dir"'
23683 else
23684 test -d ./-p && rmdir ./-p
23685 as_mkdir_p=false
23688 if test -x / >/dev/null 2>&1; then
23689 as_test_x='test -x'
23690 else
23691 if ls -dL / >/dev/null 2>&1; then
23692 as_ls_L_option=L
23693 else
23694 as_ls_L_option=
23696 as_test_x='
23697 eval sh -c '\''
23698 if test -d "$1"; then
23699 test -d "$1/.";
23700 else
23701 case $1 in #(
23702 -*)set "./$1";;
23703 esac;
23704 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23705 ???[sx]*):;;*)false;;esac;fi
23706 '\'' sh
23709 as_executable_p=$as_test_x
23711 # Sed expression to map a string onto a valid CPP name.
23712 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23714 # Sed expression to map a string onto a valid variable name.
23715 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23718 exec 6>&1
23719 ## ----------------------------------- ##
23720 ## Main body of $CONFIG_STATUS script. ##
23721 ## ----------------------------------- ##
23722 _ASEOF
23723 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23726 # Save the log message, to keep $0 and so on meaningful, and to
23727 # report actual input values of CONFIG_FILES etc. instead of their
23728 # values after options handling.
23729 ac_log="
23730 This file was extended by emacs $as_me 24.1.50, which was
23731 generated by GNU Autoconf 2.65. Invocation command line was
23733 CONFIG_FILES = $CONFIG_FILES
23734 CONFIG_HEADERS = $CONFIG_HEADERS
23735 CONFIG_LINKS = $CONFIG_LINKS
23736 CONFIG_COMMANDS = $CONFIG_COMMANDS
23737 $ $0 $@
23739 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23742 _ACEOF
23744 case $ac_config_files in *"
23745 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23746 esac
23748 case $ac_config_headers in *"
23749 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23750 esac
23753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23754 # Files that config.status was made for.
23755 config_files="$ac_config_files"
23756 config_headers="$ac_config_headers"
23757 config_commands="$ac_config_commands"
23759 _ACEOF
23761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23762 ac_cs_usage="\
23763 \`$as_me' instantiates files and other configuration actions
23764 from templates according to the current configuration. Unless the files
23765 and actions are specified as TAGs, all are instantiated by default.
23767 Usage: $0 [OPTION]... [TAG]...
23769 -h, --help print this help, then exit
23770 -V, --version print version number and configuration settings, then exit
23771 --config print configuration, then exit
23772 -q, --quiet, --silent
23773 do not print progress messages
23774 -d, --debug don't remove temporary files
23775 --recheck update $as_me by reconfiguring in the same conditions
23776 --file=FILE[:TEMPLATE]
23777 instantiate the configuration file FILE
23778 --header=FILE[:TEMPLATE]
23779 instantiate the configuration header FILE
23781 Configuration files:
23782 $config_files
23784 Configuration headers:
23785 $config_headers
23787 Configuration commands:
23788 $config_commands
23790 Report bugs to the package provider."
23792 _ACEOF
23793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23794 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23795 ac_cs_version="\\
23796 emacs config.status 24.1.50
23797 configured by $0, generated by GNU Autoconf 2.65,
23798 with options \\"\$ac_cs_config\\"
23800 Copyright (C) 2009 Free Software Foundation, Inc.
23801 This config.status script is free software; the Free Software Foundation
23802 gives unlimited permission to copy, distribute and modify it."
23804 ac_pwd='$ac_pwd'
23805 srcdir='$srcdir'
23806 INSTALL='$INSTALL'
23807 MKDIR_P='$MKDIR_P'
23808 AWK='$AWK'
23809 test -n "\$AWK" || AWK=awk
23810 _ACEOF
23812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23813 # The default lists apply if the user does not specify any file.
23814 ac_need_defaults=:
23815 while test $# != 0
23817 case $1 in
23818 --*=*)
23819 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23820 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23821 ac_shift=:
23824 ac_option=$1
23825 ac_optarg=$2
23826 ac_shift=shift
23828 esac
23830 case $ac_option in
23831 # Handling of the options.
23832 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23833 ac_cs_recheck=: ;;
23834 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23835 $as_echo "$ac_cs_version"; exit ;;
23836 --config | --confi | --conf | --con | --co | --c )
23837 $as_echo "$ac_cs_config"; exit ;;
23838 --debug | --debu | --deb | --de | --d | -d )
23839 debug=: ;;
23840 --file | --fil | --fi | --f )
23841 $ac_shift
23842 case $ac_optarg in
23843 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23844 esac
23845 as_fn_append CONFIG_FILES " '$ac_optarg'"
23846 ac_need_defaults=false;;
23847 --header | --heade | --head | --hea )
23848 $ac_shift
23849 case $ac_optarg in
23850 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23851 esac
23852 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23853 ac_need_defaults=false;;
23854 --he | --h)
23855 # Conflict between --help and --header
23856 as_fn_error "ambiguous option: \`$1'
23857 Try \`$0 --help' for more information.";;
23858 --help | --hel | -h )
23859 $as_echo "$ac_cs_usage"; exit ;;
23860 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23861 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23862 ac_cs_silent=: ;;
23864 # This is an error.
23865 -*) as_fn_error "unrecognized option: \`$1'
23866 Try \`$0 --help' for more information." ;;
23868 *) as_fn_append ac_config_targets " $1"
23869 ac_need_defaults=false ;;
23871 esac
23872 shift
23873 done
23875 ac_configure_extra_args=
23877 if $ac_cs_silent; then
23878 exec 6>/dev/null
23879 ac_configure_extra_args="$ac_configure_extra_args --silent"
23882 _ACEOF
23883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23884 if \$ac_cs_recheck; then
23885 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23886 shift
23887 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23888 CONFIG_SHELL='$SHELL'
23889 export CONFIG_SHELL
23890 exec "\$@"
23893 _ACEOF
23894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23895 exec 5>>config.log
23897 echo
23898 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23899 ## Running $as_me. ##
23900 _ASBOX
23901 $as_echo "$ac_log"
23902 } >&5
23904 _ACEOF
23905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23907 # INIT-COMMANDS
23909 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23910 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
23912 _ACEOF
23914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23916 # Handling of arguments.
23917 for ac_config_target in $ac_config_targets
23919 case $ac_config_target in
23920 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23921 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23922 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23923 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23924 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
23925 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23926 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
23927 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
23928 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
23929 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
23930 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23931 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23932 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23933 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23934 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
23935 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
23936 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
23937 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
23938 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
23940 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23941 esac
23942 done
23945 # If the user did not use the arguments to specify the items to instantiate,
23946 # then the envvar interface is used. Set only those that are not.
23947 # We use the long form for the default assignment because of an extremely
23948 # bizarre bug on SunOS 4.1.3.
23949 if $ac_need_defaults; then
23950 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23951 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23952 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23955 # Have a temporary directory for convenience. Make it in the build tree
23956 # simply because there is no reason against having it here, and in addition,
23957 # creating and moving files from /tmp can sometimes cause problems.
23958 # Hook for its removal unless debugging.
23959 # Note that there is a small window in which the directory will not be cleaned:
23960 # after its creation but before its name has been assigned to `$tmp'.
23961 $debug ||
23963 tmp=
23964 trap 'exit_status=$?
23965 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23967 trap 'as_fn_exit 1' 1 2 13 15
23969 # Create a (secure) tmp directory for tmp files.
23972 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23973 test -n "$tmp" && test -d "$tmp"
23974 } ||
23976 tmp=./conf$$-$RANDOM
23977 (umask 077 && mkdir "$tmp")
23978 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
23980 # Set up the scripts for CONFIG_FILES section.
23981 # No need to generate them if there are no CONFIG_FILES.
23982 # This happens for instance with `./config.status config.h'.
23983 if test -n "$CONFIG_FILES"; then
23985 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
23986 ac_cs_awk_getline=:
23987 ac_cs_awk_pipe_init=
23988 ac_cs_awk_read_file='
23989 while ((getline aline < (F[key])) > 0)
23990 print(aline)
23991 close(F[key])'
23992 ac_cs_awk_pipe_fini=
23993 else
23994 ac_cs_awk_getline=false
23995 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
23996 ac_cs_awk_read_file='
23997 print "|#_!!_#|"
23998 print "cat " F[key] " &&"
23999 '$ac_cs_awk_pipe_init
24000 # The final `:' finishes the AND list.
24001 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
24003 ac_cr=`echo X | tr X '\015'`
24004 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24005 # But we know of no other shell where ac_cr would be empty at this
24006 # point, so we can use a bashism as a fallback.
24007 if test "x$ac_cr" = x; then
24008 eval ac_cr=\$\'\\r\'
24010 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24011 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24012 ac_cs_awk_cr='\r'
24013 else
24014 ac_cs_awk_cr=$ac_cr
24017 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24018 _ACEOF
24020 # Create commands to substitute file output variables.
24022 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
24023 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
24024 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
24025 echo "_ACAWK" &&
24026 echo "_ACEOF"
24027 } >conf$$files.sh &&
24028 . ./conf$$files.sh ||
24029 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24030 rm -f conf$$files.sh
24033 echo "cat >conf$$subs.awk <<_ACEOF" &&
24034 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24035 echo "_ACEOF"
24036 } >conf$$subs.sh ||
24037 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24038 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24039 ac_delim='%!_!# '
24040 for ac_last_try in false false false false false :; do
24041 . ./conf$$subs.sh ||
24042 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24044 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24045 if test $ac_delim_n = $ac_delim_num; then
24046 break
24047 elif $ac_last_try; then
24048 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24049 else
24050 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24052 done
24053 rm -f conf$$subs.sh
24055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24056 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
24057 _ACEOF
24058 sed -n '
24060 s/^/S["/; s/!.*/"]=/
24063 s/^[^!]*!//
24064 :repl
24065 t repl
24066 s/'"$ac_delim"'$//
24067 t delim
24070 s/\(.\{148\}\)..*/\1/
24071 t more1
24072 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24075 b repl
24076 :more1
24077 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24080 s/.\{148\}//
24081 t nl
24082 :delim
24084 s/\(.\{148\}\)..*/\1/
24085 t more2
24086 s/["\\]/\\&/g; s/^/"/; s/$/"/
24089 :more2
24090 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24093 s/.\{148\}//
24094 t delim
24095 ' <conf$$subs.awk | sed '
24096 /^[^""]/{
24098 s/\n//
24100 ' >>$CONFIG_STATUS || ac_write_fail=1
24101 rm -f conf$$subs.awk
24102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24103 _ACAWK
24104 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
24105 for (key in S) S_is_set[key] = 1
24106 FS = "\a"
24107 \$ac_cs_awk_pipe_init
24110 line = $ 0
24111 nfields = split(line, field, "@")
24112 substed = 0
24113 len = length(field[1])
24114 for (i = 2; i < nfields; i++) {
24115 key = field[i]
24116 keylen = length(key)
24117 if (S_is_set[key]) {
24118 value = S[key]
24119 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24120 len += length(value) + length(field[++i])
24121 substed = 1
24122 } else
24123 len += 1 + keylen
24125 if (nfields == 3 && !substed) {
24126 key = field[2]
24127 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
24128 \$ac_cs_awk_read_file
24129 next
24132 print line
24134 \$ac_cs_awk_pipe_fini
24135 _ACAWK
24136 _ACEOF
24137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24138 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24139 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24140 else
24142 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
24143 || as_fn_error "could not setup config files machinery" "$LINENO" 5
24144 _ACEOF
24146 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24147 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24148 # trailing colons and then remove the whole line if VPATH becomes empty
24149 # (actually we leave an empty line to preserve line numbers).
24150 if test "x$srcdir" = x.; then
24151 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24152 s/:*\$(srcdir):*/:/
24153 s/:*\${srcdir}:*/:/
24154 s/:*@srcdir@:*/:/
24155 s/^\([^=]*=[ ]*\):*/\1/
24156 s/:*$//
24157 s/^[^=]*=[ ]*$//
24161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24162 fi # test -n "$CONFIG_FILES"
24164 # Set up the scripts for CONFIG_HEADERS section.
24165 # No need to generate them if there are no CONFIG_HEADERS.
24166 # This happens for instance with `./config.status Makefile'.
24167 if test -n "$CONFIG_HEADERS"; then
24168 cat >"$tmp/defines.awk" <<\_ACAWK ||
24169 BEGIN {
24170 _ACEOF
24172 # Transform confdefs.h into an awk script `defines.awk', embedded as
24173 # here-document in config.status, that substitutes the proper values into
24174 # config.h.in to produce config.h.
24176 # Create a delimiter string that does not exist in confdefs.h, to ease
24177 # handling of long lines.
24178 ac_delim='%!_!# '
24179 for ac_last_try in false false :; do
24180 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24181 if test -z "$ac_t"; then
24182 break
24183 elif $ac_last_try; then
24184 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
24185 else
24186 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24188 done
24190 # For the awk script, D is an array of macro values keyed by name,
24191 # likewise P contains macro parameters if any. Preserve backslash
24192 # newline sequences.
24194 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24195 sed -n '
24196 s/.\{148\}/&'"$ac_delim"'/g
24197 t rset
24198 :rset
24199 s/^[ ]*#[ ]*define[ ][ ]*/ /
24200 t def
24202 :def
24203 s/\\$//
24204 t bsnl
24205 s/["\\]/\\&/g
24206 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24207 D["\1"]=" \3"/p
24208 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24210 :bsnl
24211 s/["\\]/\\&/g
24212 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24213 D["\1"]=" \3\\\\\\n"\\/p
24214 t cont
24215 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24216 t cont
24218 :cont
24220 s/.\{148\}/&'"$ac_delim"'/g
24221 t clear
24222 :clear
24223 s/\\$//
24224 t bsnlc
24225 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24227 :bsnlc
24228 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24229 b cont
24230 ' <confdefs.h | sed '
24231 s/'"$ac_delim"'/"\\\
24232 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24235 for (key in D) D_is_set[key] = 1
24236 FS = "\a"
24238 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24239 line = \$ 0
24240 split(line, arg, " ")
24241 if (arg[1] == "#") {
24242 defundef = arg[2]
24243 mac1 = arg[3]
24244 } else {
24245 defundef = substr(arg[1], 2)
24246 mac1 = arg[2]
24248 split(mac1, mac2, "(") #)
24249 macro = mac2[1]
24250 prefix = substr(line, 1, index(line, defundef) - 1)
24251 if (D_is_set[macro]) {
24252 # Preserve the white space surrounding the "#".
24253 print prefix "define", macro P[macro] D[macro]
24254 next
24255 } else {
24256 # Replace #undef with comments. This is necessary, for example,
24257 # in the case of _POSIX_SOURCE, which is predefined and required
24258 # on some systems where configure will not decide to define it.
24259 if (defundef == "undef") {
24260 print "/*", prefix defundef, macro, "*/"
24261 next
24265 { print }
24266 _ACAWK
24267 _ACEOF
24268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24269 as_fn_error "could not setup config headers machinery" "$LINENO" 5
24270 fi # test -n "$CONFIG_HEADERS"
24273 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24274 shift
24275 for ac_tag
24277 case $ac_tag in
24278 :[FHLC]) ac_mode=$ac_tag; continue;;
24279 esac
24280 case $ac_mode$ac_tag in
24281 :[FHL]*:*);;
24282 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
24283 :[FH]-) ac_tag=-:-;;
24284 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24285 esac
24286 ac_save_IFS=$IFS
24287 IFS=:
24288 set x $ac_tag
24289 IFS=$ac_save_IFS
24290 shift
24291 ac_file=$1
24292 shift
24294 case $ac_mode in
24295 :L) ac_source=$1;;
24296 :[FH])
24297 ac_file_inputs=
24298 for ac_f
24300 case $ac_f in
24301 -) ac_f="$tmp/stdin";;
24302 *) # Look for the file first in the build tree, then in the source tree
24303 # (if the path is not absolute). The absolute path cannot be DOS-style,
24304 # because $ac_f cannot contain `:'.
24305 test -f "$ac_f" ||
24306 case $ac_f in
24307 [\\/$]*) false;;
24308 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24309 esac ||
24310 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24311 esac
24312 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24313 as_fn_append ac_file_inputs " '$ac_f'"
24314 done
24316 # Let's still pretend it is `configure' which instantiates (i.e., don't
24317 # use $as_me), people would be surprised to read:
24318 # /* config.h. Generated by config.status. */
24319 configure_input='Generated from '`
24320 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24321 `' by configure.'
24322 if test x"$ac_file" != x-; then
24323 configure_input="$ac_file. $configure_input"
24324 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24325 $as_echo "$as_me: creating $ac_file" >&6;}
24327 # Neutralize special characters interpreted by sed in replacement strings.
24328 case $configure_input in #(
24329 *\&* | *\|* | *\\* )
24330 ac_sed_conf_input=`$as_echo "$configure_input" |
24331 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24332 *) ac_sed_conf_input=$configure_input;;
24333 esac
24335 case $ac_tag in
24336 *:-:* | *:-) cat >"$tmp/stdin" \
24337 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
24338 esac
24340 esac
24342 ac_dir=`$as_dirname -- "$ac_file" ||
24343 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24344 X"$ac_file" : 'X\(//\)[^/]' \| \
24345 X"$ac_file" : 'X\(//\)$' \| \
24346 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24347 $as_echo X"$ac_file" |
24348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24349 s//\1/
24352 /^X\(\/\/\)[^/].*/{
24353 s//\1/
24356 /^X\(\/\/\)$/{
24357 s//\1/
24360 /^X\(\/\).*/{
24361 s//\1/
24364 s/.*/./; q'`
24365 as_dir="$ac_dir"; as_fn_mkdir_p
24366 ac_builddir=.
24368 case "$ac_dir" in
24369 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24371 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24372 # A ".." for each directory in $ac_dir_suffix.
24373 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24374 case $ac_top_builddir_sub in
24375 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24376 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24377 esac ;;
24378 esac
24379 ac_abs_top_builddir=$ac_pwd
24380 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24381 # for backward compatibility:
24382 ac_top_builddir=$ac_top_build_prefix
24384 case $srcdir in
24385 .) # We are building in place.
24386 ac_srcdir=.
24387 ac_top_srcdir=$ac_top_builddir_sub
24388 ac_abs_top_srcdir=$ac_pwd ;;
24389 [\\/]* | ?:[\\/]* ) # Absolute name.
24390 ac_srcdir=$srcdir$ac_dir_suffix;
24391 ac_top_srcdir=$srcdir
24392 ac_abs_top_srcdir=$srcdir ;;
24393 *) # Relative name.
24394 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24395 ac_top_srcdir=$ac_top_build_prefix$srcdir
24396 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24397 esac
24398 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24401 case $ac_mode in
24404 # CONFIG_FILE
24407 case $INSTALL in
24408 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24409 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24410 esac
24411 ac_MKDIR_P=$MKDIR_P
24412 case $MKDIR_P in
24413 [\\/$]* | ?:[\\/]* ) ;;
24414 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24415 esac
24416 _ACEOF
24418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24419 # If the template does not know about datarootdir, expand it.
24420 # FIXME: This hack should be removed a few years after 2.60.
24421 ac_datarootdir_hack=; ac_datarootdir_seen=
24422 ac_sed_dataroot='
24423 /datarootdir/ {
24427 /@datadir@/p
24428 /@docdir@/p
24429 /@infodir@/p
24430 /@localedir@/p
24431 /@mandir@/p'
24432 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24433 *datarootdir*) ac_datarootdir_seen=yes;;
24434 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24436 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24437 _ACEOF
24438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24439 ac_datarootdir_hack='
24440 s&@datadir@&$datadir&g
24441 s&@docdir@&$docdir&g
24442 s&@infodir@&$infodir&g
24443 s&@localedir@&$localedir&g
24444 s&@mandir@&$mandir&g
24445 s&\\\${datarootdir}&$datarootdir&g' ;;
24446 esac
24447 _ACEOF
24449 # Neutralize VPATH when `$srcdir' = `.'.
24450 # Shell code in configure.ac might set extrasub.
24451 # FIXME: do we really want to maintain this feature?
24452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24453 ac_sed_extra="$ac_vpsub
24454 $extrasub
24455 _ACEOF
24456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24458 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24459 s|@configure_input@|$ac_sed_conf_input|;t t
24460 s&@top_builddir@&$ac_top_builddir_sub&;t t
24461 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24462 s&@srcdir@&$ac_srcdir&;t t
24463 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24464 s&@top_srcdir@&$ac_top_srcdir&;t t
24465 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24466 s&@builddir@&$ac_builddir&;t t
24467 s&@abs_builddir@&$ac_abs_builddir&;t t
24468 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24469 s&@INSTALL@&$ac_INSTALL&;t t
24470 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24471 $ac_datarootdir_hack
24473 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
24474 if $ac_cs_awk_getline; then
24475 $AWK -f "$tmp/subs.awk"
24476 else
24477 $AWK -f "$tmp/subs.awk" | $SHELL
24478 fi >$tmp/out \
24479 || as_fn_error "could not create $ac_file" "$LINENO" 5
24481 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24482 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24483 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24485 which seems to be undefined. Please make sure it is defined." >&5
24486 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24487 which seems to be undefined. Please make sure it is defined." >&2;}
24489 rm -f "$tmp/stdin"
24490 case $ac_file in
24491 -) cat "$tmp/out" && rm -f "$tmp/out";;
24492 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24493 esac \
24494 || as_fn_error "could not create $ac_file" "$LINENO" 5
24498 # CONFIG_HEADER
24500 if test x"$ac_file" != x-; then
24502 $as_echo "/* $configure_input */" \
24503 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24504 } >"$tmp/config.h" \
24505 || as_fn_error "could not create $ac_file" "$LINENO" 5
24506 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24508 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24509 else
24510 rm -f "$ac_file"
24511 mv "$tmp/config.h" "$ac_file" \
24512 || as_fn_error "could not create $ac_file" "$LINENO" 5
24514 else
24515 $as_echo "/* $configure_input */" \
24516 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24517 || as_fn_error "could not create -" "$LINENO" 5
24519 # Compute "$ac_file"'s index in $config_headers.
24520 _am_arg="$ac_file"
24521 _am_stamp_count=1
24522 for _am_header in $config_headers :; do
24523 case $_am_header in
24524 $_am_arg | $_am_arg:* )
24525 break ;;
24527 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24528 esac
24529 done
24530 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24531 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24532 X"$_am_arg" : 'X\(//\)[^/]' \| \
24533 X"$_am_arg" : 'X\(//\)$' \| \
24534 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24535 $as_echo X"$_am_arg" |
24536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24537 s//\1/
24540 /^X\(\/\/\)[^/].*/{
24541 s//\1/
24544 /^X\(\/\/\)$/{
24545 s//\1/
24548 /^X\(\/\).*/{
24549 s//\1/
24552 s/.*/./; q'`/stamp-h$_am_stamp_count
24555 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24556 $as_echo "$as_me: executing $ac_file commands" >&6;}
24558 esac
24561 case $ac_file$ac_mode in
24562 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24563 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24564 # are listed without --file. Let's play safe and only enable the eval
24565 # if we detect the quoting.
24566 case $CONFIG_FILES in
24567 *\'*) eval set x "$CONFIG_FILES" ;;
24568 *) set x $CONFIG_FILES ;;
24569 esac
24570 shift
24571 for mf
24573 # Strip MF so we end up with the name of the file.
24574 mf=`echo "$mf" | sed -e 's/:.*$//'`
24575 # Check whether this is an Automake generated Makefile or not.
24576 # We used to match only the files named `Makefile.in', but
24577 # some people rename them; so instead we look at the file content.
24578 # Grep'ing the first line is not enough: some people post-process
24579 # each Makefile.in and add a new line on top of each file to say so.
24580 # Grep'ing the whole file is not good either: AIX grep has a line
24581 # limit of 2048, but all sed's we know have understand at least 4000.
24582 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24583 dirpart=`$as_dirname -- "$mf" ||
24584 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24585 X"$mf" : 'X\(//\)[^/]' \| \
24586 X"$mf" : 'X\(//\)$' \| \
24587 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24588 $as_echo X"$mf" |
24589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24590 s//\1/
24593 /^X\(\/\/\)[^/].*/{
24594 s//\1/
24597 /^X\(\/\/\)$/{
24598 s//\1/
24601 /^X\(\/\).*/{
24602 s//\1/
24605 s/.*/./; q'`
24606 else
24607 continue
24609 # Extract the definition of DEPDIR, am__include, and am__quote
24610 # from the Makefile without running `make'.
24611 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24612 test -z "$DEPDIR" && continue
24613 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24614 test -z "am__include" && continue
24615 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24616 # When using ansi2knr, U may be empty or an underscore; expand it
24617 U=`sed -n 's/^U = //p' < "$mf"`
24618 # Find all dependency output files, they are included files with
24619 # $(DEPDIR) in their names. We invoke sed twice because it is the
24620 # simplest approach to changing $(DEPDIR) to its actual value in the
24621 # expansion.
24622 for file in `sed -n "
24623 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24624 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24625 # Make sure the directory exists.
24626 test -f "$dirpart/$file" && continue
24627 fdir=`$as_dirname -- "$file" ||
24628 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24629 X"$file" : 'X\(//\)[^/]' \| \
24630 X"$file" : 'X\(//\)$' \| \
24631 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24632 $as_echo X"$file" |
24633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24634 s//\1/
24637 /^X\(\/\/\)[^/].*/{
24638 s//\1/
24641 /^X\(\/\/\)$/{
24642 s//\1/
24645 /^X\(\/\).*/{
24646 s//\1/
24649 s/.*/./; q'`
24650 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24651 # echo "creating $dirpart/$file"
24652 echo '# dummy' > "$dirpart/$file"
24653 done
24654 done
24657 "mkdirs":C)
24658 for dir in etc lisp ; do
24659 test -d ${dir} || mkdir ${dir}
24660 done
24662 "epaths":C)
24663 echo creating src/epaths.h
24664 ${MAKE-make} epaths-force
24666 "gdbinit":C)
24667 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24668 echo creating src/.gdbinit
24669 echo source $srcdir/src/.gdbinit > src/.gdbinit
24673 esac
24674 done # for ac_tag
24677 as_fn_exit 0
24678 _ACEOF
24679 ac_clean_files=$ac_clean_files_save
24681 test $ac_write_fail = 0 ||
24682 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
24685 # configure is writing to config.log, and then calls config.status.
24686 # config.status does its own redirection, appending to config.log.
24687 # Unfortunately, on DOS this fails, as config.log is still kept open
24688 # by configure, so config.status won't be able to write to it; its
24689 # output is simply discarded. So we exec the FD to /dev/null,
24690 # effectively closing config.log, so it can be properly (re)opened and
24691 # appended to by config.status. When coming back to configure, we
24692 # need to make the FD available again.
24693 if test "$no_create" != yes; then
24694 ac_cs_success=:
24695 ac_config_status_args=
24696 test "$silent" = yes &&
24697 ac_config_status_args="$ac_config_status_args --quiet"
24698 exec 5>/dev/null
24699 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24700 exec 5>>config.log
24701 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24702 # would make configure fail if this is the last instruction.
24703 $ac_cs_success || as_fn_exit $?
24705 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24707 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}