upstream
[emacs.git] / autogen / configure
blobcd68832a5478aea15b13852201f3f5fb9b771899
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.90.
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.0.90'
553 PACKAGE_STRING='emacs 24.0.90'
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 POST_ALLOC_OBJ
611 PRE_ALLOC_OBJ
612 CYGWIN_OBJ
613 RALLOC_OBJ
614 OLDXMENU_DEPS
615 LIBX_OTHER
616 LIBXMENU
617 OLDXMENU
618 OLDXMENU_TARGET
619 LIBXT_OTHER
620 TOOLKIT_LIBW
621 WIDGET_OBJ
622 XOBJ
623 XMENU_OBJ
624 FONT_OBJ
625 OTHER_FILES
626 GNU_OBJC_CFLAGS
627 ns_appsrc
628 ns_appresdir
629 ns_appbindir
630 ns_appdir
631 S_FILE
632 M_FILE
633 X_TOOLKIT_TYPE
634 C_SWITCH_X_SYSTEM
635 C_SWITCH_X_SITE
636 LD_SWITCH_X_SITE
637 gameuser
638 gamedir
639 bitmapdir
640 archlibdir
641 etcdir
642 x_default_search_path
643 lisppath
644 locallisppath
645 lispdir
646 srcdir
647 canonical
648 configuration
649 version
650 KRB4LIB
651 DESLIB
652 KRB5LIB
653 CRYPTOLIB
654 COM_ERRLIB
655 LIBRESOLV
656 LIBHESIOD
657 TERMCAP_OBJ
658 LIBS_TERMCAP
659 LIBGNU_LTLIBDEPS
660 LIBGNU_LIBDEPS
661 gltests_WITNESS
662 gl_GNULIB_ENABLED_verify_FALSE
663 gl_GNULIB_ENABLED_verify_TRUE
664 gl_GNULIB_ENABLED_strtoull_FALSE
665 gl_GNULIB_ENABLED_strtoull_TRUE
666 gl_GNULIB_ENABLED_stat_FALSE
667 gl_GNULIB_ENABLED_stat_TRUE
668 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
669 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
670 gl_GNULIB_ENABLED_dosname_FALSE
671 gl_GNULIB_ENABLED_dosname_TRUE
672 LTLIBINTL
673 LIBINTL
674 HAVE_UNISTD_H
675 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
676 NEXT_UNISTD_H
677 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
678 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
679 TIME_H_DEFINES_STRUCT_TIMESPEC
680 NEXT_AS_FIRST_DIRECTIVE_TIME_H
681 NEXT_TIME_H
682 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
683 NEXT_SYS_STAT_H
684 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
685 NEXT_STDLIB_H
686 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
687 NEXT_STDIO_H
688 REPLACE_VSPRINTF
689 REPLACE_VSNPRINTF
690 REPLACE_VPRINTF
691 REPLACE_VFPRINTF
692 REPLACE_VDPRINTF
693 REPLACE_VASPRINTF
694 REPLACE_TMPFILE
695 REPLACE_STDIO_WRITE_FUNCS
696 REPLACE_STDIO_READ_FUNCS
697 REPLACE_SPRINTF
698 REPLACE_SNPRINTF
699 REPLACE_RENAMEAT
700 REPLACE_RENAME
701 REPLACE_REMOVE
702 REPLACE_PRINTF
703 REPLACE_POPEN
704 REPLACE_PERROR
705 REPLACE_OBSTACK_PRINTF
706 REPLACE_GETLINE
707 REPLACE_GETDELIM
708 REPLACE_FTELLO
709 REPLACE_FTELL
710 REPLACE_FSEEKO
711 REPLACE_FSEEK
712 REPLACE_FREOPEN
713 REPLACE_FPURGE
714 REPLACE_FPRINTF
715 REPLACE_FOPEN
716 REPLACE_FFLUSH
717 REPLACE_FCLOSE
718 REPLACE_DPRINTF
719 HAVE_VDPRINTF
720 HAVE_VASPRINTF
721 HAVE_RENAMEAT
722 HAVE_FTELLO
723 HAVE_FSEEKO
724 HAVE_DPRINTF
725 HAVE_DECL_VSNPRINTF
726 HAVE_DECL_SNPRINTF
727 HAVE_DECL_OBSTACK_PRINTF
728 HAVE_DECL_GETLINE
729 HAVE_DECL_GETDELIM
730 HAVE_DECL_FTELLO
731 HAVE_DECL_FSEEKO
732 HAVE_DECL_FPURGE
733 GNULIB_VSPRINTF_POSIX
734 GNULIB_VSNPRINTF
735 GNULIB_VPRINTF_POSIX
736 GNULIB_VPRINTF
737 GNULIB_VFPRINTF_POSIX
738 GNULIB_VFPRINTF
739 GNULIB_VDPRINTF
740 GNULIB_VSCANF
741 GNULIB_VFSCANF
742 GNULIB_VASPRINTF
743 GNULIB_TMPFILE
744 GNULIB_STDIO_H_SIGPIPE
745 GNULIB_STDIO_H_NONBLOCKING
746 GNULIB_SPRINTF_POSIX
747 GNULIB_SNPRINTF
748 GNULIB_SCANF
749 GNULIB_RENAMEAT
750 GNULIB_RENAME
751 GNULIB_REMOVE
752 GNULIB_PUTS
753 GNULIB_PUTCHAR
754 GNULIB_PUTC
755 GNULIB_PRINTF_POSIX
756 GNULIB_PRINTF
757 GNULIB_POPEN
758 GNULIB_PERROR
759 GNULIB_OBSTACK_PRINTF_POSIX
760 GNULIB_OBSTACK_PRINTF
761 GNULIB_GETS
762 GNULIB_GETLINE
763 GNULIB_GETDELIM
764 GNULIB_GETCHAR
765 GNULIB_GETC
766 GNULIB_FWRITE
767 GNULIB_FTELLO
768 GNULIB_FTELL
769 GNULIB_FSEEKO
770 GNULIB_FSEEK
771 GNULIB_FSCANF
772 GNULIB_FREOPEN
773 GNULIB_FREAD
774 GNULIB_FPUTS
775 GNULIB_FPUTC
776 GNULIB_FPURGE
777 GNULIB_FPRINTF_POSIX
778 GNULIB_FPRINTF
779 GNULIB_FOPEN
780 GNULIB_FGETS
781 GNULIB_FGETC
782 GNULIB_FFLUSH
783 GNULIB_FCLOSE
784 GNULIB_DPRINTF
785 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
786 NEXT_STDDEF_H
787 GL_GENERATE_STDDEF_H_FALSE
788 GL_GENERATE_STDDEF_H_TRUE
789 STDDEF_H
790 HAVE_WCHAR_T
791 REPLACE_NULL
792 HAVE__BOOL
793 GL_GENERATE_STDBOOL_H_FALSE
794 GL_GENERATE_STDBOOL_H_TRUE
795 STDBOOL_H
796 GL_GENERATE_STDARG_H_FALSE
797 GL_GENERATE_STDARG_H_TRUE
798 STDARG_H
799 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
800 NEXT_STDARG_H
801 REPLACE_TIMEGM
802 REPLACE_NANOSLEEP
803 REPLACE_MKTIME
804 REPLACE_LOCALTIME_R
805 HAVE_TIMEGM
806 HAVE_STRPTIME
807 HAVE_NANOSLEEP
808 HAVE_DECL_LOCALTIME_R
809 GNULIB_TIME_R
810 GNULIB_TIMEGM
811 GNULIB_STRPTIME
812 GNULIB_NANOSLEEP
813 GNULIB_MKTIME
814 REPLACE_UTIMENSAT
815 REPLACE_STAT
816 REPLACE_MKNOD
817 REPLACE_MKFIFO
818 REPLACE_MKDIR
819 REPLACE_LSTAT
820 REPLACE_FUTIMENS
821 REPLACE_FSTATAT
822 REPLACE_FSTAT
823 HAVE_UTIMENSAT
824 HAVE_MKNODAT
825 HAVE_MKNOD
826 HAVE_MKFIFOAT
827 HAVE_MKFIFO
828 HAVE_MKDIRAT
829 HAVE_LSTAT
830 HAVE_LCHMOD
831 HAVE_FUTIMENS
832 HAVE_FSTATAT
833 HAVE_FCHMODAT
834 GNULIB_UTIMENSAT
835 GNULIB_STAT
836 GNULIB_MKNODAT
837 GNULIB_MKNOD
838 GNULIB_MKFIFOAT
839 GNULIB_MKFIFO
840 GNULIB_MKDIRAT
841 GNULIB_LSTAT
842 GNULIB_LCHMOD
843 GNULIB_FUTIMENS
844 GNULIB_FSTATAT
845 GNULIB_FCHMODAT
846 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
847 NEXT_INTTYPES_H
848 UINT64_MAX_EQ_ULONG_MAX
849 UINT32_MAX_LT_UINTMAX_MAX
850 PRIPTR_PREFIX
851 PRI_MACROS_BROKEN
852 INT64_MAX_EQ_LONG_MAX
853 INT32_MAX_LT_INTMAX_MAX
854 HAVE_DECL_STRTOUMAX
855 HAVE_DECL_STRTOIMAX
856 HAVE_DECL_IMAXDIV
857 HAVE_DECL_IMAXABS
858 GNULIB_STRTOUMAX
859 GNULIB_STRTOIMAX
860 GNULIB_IMAXDIV
861 GNULIB_IMAXABS
862 GL_GENERATE_STDINT_H_FALSE
863 GL_GENERATE_STDINT_H_TRUE
864 STDINT_H
865 WINT_T_SUFFIX
866 WCHAR_T_SUFFIX
867 SIG_ATOMIC_T_SUFFIX
868 SIZE_T_SUFFIX
869 PTRDIFF_T_SUFFIX
870 HAVE_SIGNED_WINT_T
871 HAVE_SIGNED_WCHAR_T
872 HAVE_SIGNED_SIG_ATOMIC_T
873 BITSIZEOF_WINT_T
874 BITSIZEOF_WCHAR_T
875 BITSIZEOF_SIG_ATOMIC_T
876 BITSIZEOF_SIZE_T
877 BITSIZEOF_PTRDIFF_T
878 APPLE_UNIVERSAL_BUILD
879 HAVE_SYS_BITYPES_H
880 HAVE_SYS_INTTYPES_H
881 HAVE_STDINT_H
882 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
883 NEXT_STDINT_H
884 HAVE_SYS_TYPES_H
885 HAVE_INTTYPES_H
886 HAVE_WCHAR_H
887 HAVE_UNSIGNED_LONG_LONG_INT
888 HAVE_LONG_LONG_INT
889 GETOPT_H
890 HAVE_GETOPT_H
891 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
892 NEXT_GETOPT_H
893 PRAGMA_COLUMNS
894 PRAGMA_SYSTEM_HEADER
895 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
896 INCLUDE_NEXT
897 GETLOADAVG_LIBS
898 REPLACE_WCTOMB
899 REPLACE_UNSETENV
900 REPLACE_STRTOD
901 REPLACE_SETENV
902 REPLACE_REALPATH
903 REPLACE_REALLOC
904 REPLACE_PUTENV
905 REPLACE_MKSTEMP
906 REPLACE_MBTOWC
907 REPLACE_MALLOC
908 REPLACE_CANONICALIZE_FILE_NAME
909 REPLACE_CALLOC
910 HAVE_DECL_UNSETENV
911 HAVE_UNLOCKPT
912 HAVE_SYS_LOADAVG_H
913 HAVE_STRUCT_RANDOM_DATA
914 HAVE_STRTOULL
915 HAVE_STRTOLL
916 HAVE_STRTOD
917 HAVE_DECL_SETENV
918 HAVE_SETENV
919 HAVE_RPMATCH
920 HAVE_REALPATH
921 HAVE_RANDOM_R
922 HAVE_RANDOM_H
923 HAVE_PTSNAME
924 HAVE_MKSTEMPS
925 HAVE_MKSTEMP
926 HAVE_MKOSTEMPS
927 HAVE_MKOSTEMP
928 HAVE_MKDTEMP
929 HAVE_GRANTPT
930 HAVE_GETSUBOPT
931 HAVE_DECL_GETLOADAVG
932 HAVE_CANONICALIZE_FILE_NAME
933 HAVE_ATOLL
934 HAVE__EXIT
935 GNULIB_WCTOMB
936 GNULIB_UNSETENV
937 GNULIB_UNLOCKPT
938 GNULIB_SYSTEM_POSIX
939 GNULIB_STRTOULL
940 GNULIB_STRTOLL
941 GNULIB_STRTOD
942 GNULIB_SETENV
943 GNULIB_RPMATCH
944 GNULIB_REALPATH
945 GNULIB_REALLOC_POSIX
946 GNULIB_RANDOM_R
947 GNULIB_PUTENV
948 GNULIB_PTSNAME
949 GNULIB_MKSTEMPS
950 GNULIB_MKSTEMP
951 GNULIB_MKOSTEMPS
952 GNULIB_MKOSTEMP
953 GNULIB_MKDTEMP
954 GNULIB_MBTOWC
955 GNULIB_MALLOC_POSIX
956 GNULIB_GRANTPT
957 GNULIB_GETSUBOPT
958 GNULIB_GETLOADAVG
959 GNULIB_CANONICALIZE_FILE_NAME
960 GNULIB_CALLOC_POSIX
961 GNULIB_ATOLL
962 GNULIB__EXIT
963 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
964 UNISTD_H_HAVE_WINSOCK2_H
965 REPLACE_WRITE
966 REPLACE_USLEEP
967 REPLACE_UNLINKAT
968 REPLACE_UNLINK
969 REPLACE_TTYNAME_R
970 REPLACE_SYMLINK
971 REPLACE_SLEEP
972 REPLACE_RMDIR
973 REPLACE_READLINK
974 REPLACE_READ
975 REPLACE_PWRITE
976 REPLACE_PREAD
977 REPLACE_LSEEK
978 REPLACE_LINKAT
979 REPLACE_LINK
980 REPLACE_LCHOWN
981 REPLACE_GETPAGESIZE
982 REPLACE_GETGROUPS
983 REPLACE_GETLOGIN_R
984 REPLACE_GETDOMAINNAME
985 REPLACE_GETCWD
986 REPLACE_FCHOWNAT
987 REPLACE_DUP2
988 REPLACE_DUP
989 REPLACE_CLOSE
990 REPLACE_CHOWN
991 HAVE_SYS_PARAM_H
992 HAVE_OS_H
993 HAVE_DECL_TTYNAME_R
994 HAVE_DECL_GETUSERSHELL
995 HAVE_DECL_GETPAGESIZE
996 HAVE_DECL_GETLOGIN_R
997 HAVE_DECL_GETDOMAINNAME
998 HAVE_DECL_FCHDIR
999 HAVE_DECL_ENVIRON
1000 HAVE_USLEEP
1001 HAVE_UNLINKAT
1002 HAVE_SYMLINKAT
1003 HAVE_SYMLINK
1004 HAVE_SLEEP
1005 HAVE_READLINKAT
1006 HAVE_READLINK
1007 HAVE_PWRITE
1008 HAVE_PREAD
1009 HAVE_PIPE2
1010 HAVE_PIPE
1011 HAVE_LINKAT
1012 HAVE_LINK
1013 HAVE_LCHOWN
1014 HAVE_GROUP_MEMBER
1015 HAVE_GETPAGESIZE
1016 HAVE_GETLOGIN
1017 HAVE_GETHOSTNAME
1018 HAVE_GETGROUPS
1019 HAVE_GETDTABLESIZE
1020 HAVE_FTRUNCATE
1021 HAVE_FSYNC
1022 HAVE_FCHOWNAT
1023 HAVE_FCHDIR
1024 HAVE_FACCESSAT
1025 HAVE_EUIDACCESS
1026 HAVE_DUP3
1027 HAVE_DUP2
1028 HAVE_CHOWN
1029 GNULIB_WRITE
1030 GNULIB_USLEEP
1031 GNULIB_UNLINKAT
1032 GNULIB_UNLINK
1033 GNULIB_UNISTD_H_SIGPIPE
1034 GNULIB_UNISTD_H_NONBLOCKING
1035 GNULIB_UNISTD_H_GETOPT
1036 GNULIB_TTYNAME_R
1037 GNULIB_SYMLINKAT
1038 GNULIB_SYMLINK
1039 GNULIB_SLEEP
1040 GNULIB_RMDIR
1041 GNULIB_READLINKAT
1042 GNULIB_READLINK
1043 GNULIB_READ
1044 GNULIB_PWRITE
1045 GNULIB_PREAD
1046 GNULIB_PIPE2
1047 GNULIB_PIPE
1048 GNULIB_LSEEK
1049 GNULIB_LINKAT
1050 GNULIB_LINK
1051 GNULIB_LCHOWN
1052 GNULIB_GROUP_MEMBER
1053 GNULIB_GETUSERSHELL
1054 GNULIB_GETPAGESIZE
1055 GNULIB_GETLOGIN_R
1056 GNULIB_GETLOGIN
1057 GNULIB_GETHOSTNAME
1058 GNULIB_GETGROUPS
1059 GNULIB_GETDTABLESIZE
1060 GNULIB_GETDOMAINNAME
1061 GNULIB_GETCWD
1062 GNULIB_FTRUNCATE
1063 GNULIB_FSYNC
1064 GNULIB_FCHOWNAT
1065 GNULIB_FCHDIR
1066 GNULIB_FACCESSAT
1067 GNULIB_EUIDACCESS
1068 GNULIB_ENVIRON
1069 GNULIB_DUP3
1070 GNULIB_DUP2
1071 GNULIB_CLOSE
1072 GNULIB_CHOWN
1073 GL_GENERATE_ALLOCA_H_FALSE
1074 GL_GENERATE_ALLOCA_H_TRUE
1075 ALLOCA_H
1076 ALLOCA
1077 GL_COND_LIBTOOL_FALSE
1078 GL_COND_LIBTOOL_TRUE
1079 BLESSMAIL_TARGET
1080 LIBS_MAIL
1081 liblockfile
1082 LIBXML2_LIBS
1083 LIBXML2_CFLAGS
1084 LIBXSM
1085 LIBGPM
1086 LIBGIF
1087 LIBTIFF
1088 LIBPNG
1089 LIBJPEG
1090 LIBXPM
1091 M17N_FLT_LIBS
1092 M17N_FLT_CFLAGS
1093 LIBOTF_LIBS
1094 LIBOTF_CFLAGS
1095 FREETYPE_LIBS
1096 FREETYPE_CFLAGS
1097 XFT_LIBS
1098 XFT_CFLAGS
1099 FONTCONFIG_LIBS
1100 FONTCONFIG_CFLAGS
1101 LIBXMU
1102 LIBXTR6
1103 LIBGNUTLS_LIBS
1104 LIBGNUTLS_CFLAGS
1105 LIBSELINUX_LIBS
1106 GCONF_LIBS
1107 GCONF_CFLAGS
1108 DBUS_OBJ
1109 DBUS_LIBS
1110 DBUS_CFLAGS
1111 GTK_OBJ
1112 GTK_LIBS
1113 GTK_CFLAGS
1114 IMAGEMAGICK_LIBS
1115 IMAGEMAGICK_CFLAGS
1116 RSVG_LIBS
1117 RSVG_CFLAGS
1118 LIB_PTHREAD
1119 VMLIMIT_OBJ
1120 GMALLOC_OBJ
1121 HAVE_XSERVER
1122 LIB_STANDARD
1123 NS_OBJC_OBJ
1124 NS_OBJ
1125 TEMACS_LDFLAGS2
1126 LD_SWITCH_X_SITE_AUX_RPATH
1127 LD_SWITCH_X_SITE_AUX
1128 XMKMF
1129 DEPFLAGS
1130 MKDEPDIR
1131 CFLAGS_SOUND
1132 ALSA_LIBS
1133 ALSA_CFLAGS
1134 PKG_CONFIG
1135 LIBSOUND
1136 START_FILES
1137 LIB_MATH
1138 CRT_DIR
1139 LIBS_SYSTEM
1140 C_SWITCH_SYSTEM
1141 UNEXEC_OBJ
1142 C_SWITCH_MACHINE
1143 LD_SWITCH_SYSTEM
1144 CANNOT_DUMP
1145 HAVE_MAKEINFO
1146 GZIP_PROG
1147 INSTALL_INFO
1148 C_WARNINGS_SWITCH
1149 RANLIB
1150 ARFLAGS
1152 EGREP
1153 GREP
1155 am__fastdepCC_FALSE
1156 am__fastdepCC_TRUE
1157 CCDEPMODE
1158 AMDEPBACKSLASH
1159 AMDEP_FALSE
1160 AMDEP_TRUE
1161 am__quote
1162 am__include
1163 DEPDIR
1164 OBJEXT
1165 EXEEXT
1166 ac_ct_CC
1167 CPPFLAGS
1168 LDFLAGS
1169 CFLAGS
1171 host_os
1172 host_vendor
1173 host_cpu
1174 host
1175 build_os
1176 build_vendor
1177 build_cpu
1178 build
1179 PROFILING_CFLAGS
1180 MAINT
1181 GZIP_INFO
1182 am__untar
1183 am__tar
1184 AMTAR
1185 am__leading_dot
1186 SET_MAKE
1188 mkdir_p
1189 MKDIR_P
1190 INSTALL_STRIP_PROGRAM
1191 STRIP
1192 install_sh
1193 MAKEINFO
1194 AUTOHEADER
1195 AUTOMAKE
1196 AUTOCONF
1197 ACLOCAL
1198 VERSION
1199 PACKAGE
1200 CYGPATH_W
1201 am__isrc
1202 INSTALL_DATA
1203 INSTALL_SCRIPT
1204 INSTALL_PROGRAM
1205 target_alias
1206 host_alias
1207 build_alias
1208 LIBS
1209 ECHO_T
1210 ECHO_N
1211 ECHO_C
1212 DEFS
1213 mandir
1214 localedir
1215 libdir
1216 psdir
1217 pdfdir
1218 dvidir
1219 htmldir
1220 infodir
1221 docdir
1222 oldincludedir
1223 includedir
1224 localstatedir
1225 sharedstatedir
1226 sysconfdir
1227 datadir
1228 datarootdir
1229 libexecdir
1230 sbindir
1231 bindir
1232 program_transform_name
1233 prefix
1234 exec_prefix
1235 PACKAGE_URL
1236 PACKAGE_BUGREPORT
1237 PACKAGE_STRING
1238 PACKAGE_VERSION
1239 PACKAGE_TARNAME
1240 PACKAGE_NAME
1241 PATH_SEPARATOR
1242 SHELL'
1243 ac_subst_files='deps_frag
1244 lisp_frag
1245 ns_frag'
1246 ac_user_opts='
1247 enable_option_checking
1248 with_pop
1249 with_kerberos
1250 with_kerberos5
1251 with_hesiod
1252 with_mmdf
1253 with_mail_unlink
1254 with_mailhost
1255 with_sound
1256 with_sync_input
1257 with_x_toolkit
1258 with_wide_int
1259 with_xpm
1260 with_jpeg
1261 with_tiff
1262 with_gif
1263 with_png
1264 with_rsvg
1265 with_xml2
1266 with_imagemagick
1267 with_xft
1268 with_libotf
1269 with_m17n_flt
1270 with_toolkit_scroll_bars
1271 with_xaw3d
1272 with_xim
1273 with_ns
1274 with_gpm
1275 with_dbus
1276 with_gconf
1277 with_selinux
1278 with_gnutls
1279 with_makeinfo
1280 with_compress_info
1281 with_pkg_config_prog
1282 with_crt_dir
1283 with_gameuser
1284 with_gnustep_conf
1285 enable_ns_self_contained
1286 enable_asserts
1287 enable_maintainer_mode
1288 enable_locallisppath
1289 enable_checking
1290 enable_use_lisp_union_type
1291 enable_profiling
1292 enable_autodepend
1293 enable_dependency_tracking
1294 enable_largefile
1295 with_x
1297 ac_precious_vars='build_alias
1298 host_alias
1299 target_alias
1301 CFLAGS
1302 LDFLAGS
1303 LIBS
1304 CPPFLAGS
1306 XMKMF'
1309 # Initialize some variables set by options.
1310 ac_init_help=
1311 ac_init_version=false
1312 ac_unrecognized_opts=
1313 ac_unrecognized_sep=
1314 # The variables have the same names as the options, with
1315 # dashes changed to underlines.
1316 cache_file=/dev/null
1317 exec_prefix=NONE
1318 no_create=
1319 no_recursion=
1320 prefix=NONE
1321 program_prefix=NONE
1322 program_suffix=NONE
1323 program_transform_name=s,x,x,
1324 silent=
1325 site=
1326 srcdir=
1327 verbose=
1328 x_includes=NONE
1329 x_libraries=NONE
1331 # Installation directory options.
1332 # These are left unexpanded so users can "make install exec_prefix=/foo"
1333 # and all the variables that are supposed to be based on exec_prefix
1334 # by default will actually change.
1335 # Use braces instead of parens because sh, perl, etc. also accept them.
1336 # (The list follows the same order as the GNU Coding Standards.)
1337 bindir='${exec_prefix}/bin'
1338 sbindir='${exec_prefix}/sbin'
1339 libexecdir='${exec_prefix}/libexec'
1340 datarootdir='${prefix}/share'
1341 datadir='${datarootdir}'
1342 sysconfdir='${prefix}/etc'
1343 sharedstatedir='${prefix}/com'
1344 localstatedir='${prefix}/var'
1345 includedir='${prefix}/include'
1346 oldincludedir='/usr/include'
1347 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1348 infodir='${datarootdir}/info'
1349 htmldir='${docdir}'
1350 dvidir='${docdir}'
1351 pdfdir='${docdir}'
1352 psdir='${docdir}'
1353 libdir='${exec_prefix}/lib'
1354 localedir='${datarootdir}/locale'
1355 mandir='${datarootdir}/man'
1357 ac_prev=
1358 ac_dashdash=
1359 for ac_option
1361 # If the previous option needs an argument, assign it.
1362 if test -n "$ac_prev"; then
1363 eval $ac_prev=\$ac_option
1364 ac_prev=
1365 continue
1368 case $ac_option in
1369 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1370 *) ac_optarg=yes ;;
1371 esac
1373 # Accept the important Cygnus configure options, so we can diagnose typos.
1375 case $ac_dashdash$ac_option in
1377 ac_dashdash=yes ;;
1379 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1380 ac_prev=bindir ;;
1381 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1382 bindir=$ac_optarg ;;
1384 -build | --build | --buil | --bui | --bu)
1385 ac_prev=build_alias ;;
1386 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1387 build_alias=$ac_optarg ;;
1389 -cache-file | --cache-file | --cache-fil | --cache-fi \
1390 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1391 ac_prev=cache_file ;;
1392 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1393 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1394 cache_file=$ac_optarg ;;
1396 --config-cache | -C)
1397 cache_file=config.cache ;;
1399 -datadir | --datadir | --datadi | --datad)
1400 ac_prev=datadir ;;
1401 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1402 datadir=$ac_optarg ;;
1404 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1405 | --dataroo | --dataro | --datar)
1406 ac_prev=datarootdir ;;
1407 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1408 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1409 datarootdir=$ac_optarg ;;
1411 -disable-* | --disable-*)
1412 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1413 # Reject names that are not valid shell variable names.
1414 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1415 as_fn_error "invalid feature name: $ac_useropt"
1416 ac_useropt_orig=$ac_useropt
1417 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1418 case $ac_user_opts in
1420 "enable_$ac_useropt"
1421 "*) ;;
1422 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1423 ac_unrecognized_sep=', ';;
1424 esac
1425 eval enable_$ac_useropt=no ;;
1427 -docdir | --docdir | --docdi | --doc | --do)
1428 ac_prev=docdir ;;
1429 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1430 docdir=$ac_optarg ;;
1432 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1433 ac_prev=dvidir ;;
1434 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1435 dvidir=$ac_optarg ;;
1437 -enable-* | --enable-*)
1438 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1439 # Reject names that are not valid shell variable names.
1440 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1441 as_fn_error "invalid feature name: $ac_useropt"
1442 ac_useropt_orig=$ac_useropt
1443 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1444 case $ac_user_opts in
1446 "enable_$ac_useropt"
1447 "*) ;;
1448 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1449 ac_unrecognized_sep=', ';;
1450 esac
1451 eval enable_$ac_useropt=\$ac_optarg ;;
1453 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1454 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1455 | --exec | --exe | --ex)
1456 ac_prev=exec_prefix ;;
1457 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1458 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1459 | --exec=* | --exe=* | --ex=*)
1460 exec_prefix=$ac_optarg ;;
1462 -gas | --gas | --ga | --g)
1463 # Obsolete; use --with-gas.
1464 with_gas=yes ;;
1466 -help | --help | --hel | --he | -h)
1467 ac_init_help=long ;;
1468 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1469 ac_init_help=recursive ;;
1470 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1471 ac_init_help=short ;;
1473 -host | --host | --hos | --ho)
1474 ac_prev=host_alias ;;
1475 -host=* | --host=* | --hos=* | --ho=*)
1476 host_alias=$ac_optarg ;;
1478 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1479 ac_prev=htmldir ;;
1480 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1481 | --ht=*)
1482 htmldir=$ac_optarg ;;
1484 -includedir | --includedir | --includedi | --included | --include \
1485 | --includ | --inclu | --incl | --inc)
1486 ac_prev=includedir ;;
1487 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1488 | --includ=* | --inclu=* | --incl=* | --inc=*)
1489 includedir=$ac_optarg ;;
1491 -infodir | --infodir | --infodi | --infod | --info | --inf)
1492 ac_prev=infodir ;;
1493 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1494 infodir=$ac_optarg ;;
1496 -libdir | --libdir | --libdi | --libd)
1497 ac_prev=libdir ;;
1498 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1499 libdir=$ac_optarg ;;
1501 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1502 | --libexe | --libex | --libe)
1503 ac_prev=libexecdir ;;
1504 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1505 | --libexe=* | --libex=* | --libe=*)
1506 libexecdir=$ac_optarg ;;
1508 -localedir | --localedir | --localedi | --localed | --locale)
1509 ac_prev=localedir ;;
1510 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1511 localedir=$ac_optarg ;;
1513 -localstatedir | --localstatedir | --localstatedi | --localstated \
1514 | --localstate | --localstat | --localsta | --localst | --locals)
1515 ac_prev=localstatedir ;;
1516 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1517 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1518 localstatedir=$ac_optarg ;;
1520 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1521 ac_prev=mandir ;;
1522 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1523 mandir=$ac_optarg ;;
1525 -nfp | --nfp | --nf)
1526 # Obsolete; use --without-fp.
1527 with_fp=no ;;
1529 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1530 | --no-cr | --no-c | -n)
1531 no_create=yes ;;
1533 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1534 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1535 no_recursion=yes ;;
1537 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1538 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1539 | --oldin | --oldi | --old | --ol | --o)
1540 ac_prev=oldincludedir ;;
1541 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1542 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1543 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1544 oldincludedir=$ac_optarg ;;
1546 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1547 ac_prev=prefix ;;
1548 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1549 prefix=$ac_optarg ;;
1551 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1552 | --program-pre | --program-pr | --program-p)
1553 ac_prev=program_prefix ;;
1554 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1555 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1556 program_prefix=$ac_optarg ;;
1558 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1559 | --program-suf | --program-su | --program-s)
1560 ac_prev=program_suffix ;;
1561 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1562 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1563 program_suffix=$ac_optarg ;;
1565 -program-transform-name | --program-transform-name \
1566 | --program-transform-nam | --program-transform-na \
1567 | --program-transform-n | --program-transform- \
1568 | --program-transform | --program-transfor \
1569 | --program-transfo | --program-transf \
1570 | --program-trans | --program-tran \
1571 | --progr-tra | --program-tr | --program-t)
1572 ac_prev=program_transform_name ;;
1573 -program-transform-name=* | --program-transform-name=* \
1574 | --program-transform-nam=* | --program-transform-na=* \
1575 | --program-transform-n=* | --program-transform-=* \
1576 | --program-transform=* | --program-transfor=* \
1577 | --program-transfo=* | --program-transf=* \
1578 | --program-trans=* | --program-tran=* \
1579 | --progr-tra=* | --program-tr=* | --program-t=*)
1580 program_transform_name=$ac_optarg ;;
1582 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1583 ac_prev=pdfdir ;;
1584 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1585 pdfdir=$ac_optarg ;;
1587 -psdir | --psdir | --psdi | --psd | --ps)
1588 ac_prev=psdir ;;
1589 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1590 psdir=$ac_optarg ;;
1592 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1593 | -silent | --silent | --silen | --sile | --sil)
1594 silent=yes ;;
1596 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1597 ac_prev=sbindir ;;
1598 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1599 | --sbi=* | --sb=*)
1600 sbindir=$ac_optarg ;;
1602 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1603 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1604 | --sharedst | --shareds | --shared | --share | --shar \
1605 | --sha | --sh)
1606 ac_prev=sharedstatedir ;;
1607 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1608 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1609 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1610 | --sha=* | --sh=*)
1611 sharedstatedir=$ac_optarg ;;
1613 -site | --site | --sit)
1614 ac_prev=site ;;
1615 -site=* | --site=* | --sit=*)
1616 site=$ac_optarg ;;
1618 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1619 ac_prev=srcdir ;;
1620 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1621 srcdir=$ac_optarg ;;
1623 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1624 | --syscon | --sysco | --sysc | --sys | --sy)
1625 ac_prev=sysconfdir ;;
1626 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1627 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1628 sysconfdir=$ac_optarg ;;
1630 -target | --target | --targe | --targ | --tar | --ta | --t)
1631 ac_prev=target_alias ;;
1632 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1633 target_alias=$ac_optarg ;;
1635 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1636 verbose=yes ;;
1638 -version | --version | --versio | --versi | --vers | -V)
1639 ac_init_version=: ;;
1641 -with-* | --with-*)
1642 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1643 # Reject names that are not valid shell variable names.
1644 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1645 as_fn_error "invalid package name: $ac_useropt"
1646 ac_useropt_orig=$ac_useropt
1647 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1648 case $ac_user_opts in
1650 "with_$ac_useropt"
1651 "*) ;;
1652 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1653 ac_unrecognized_sep=', ';;
1654 esac
1655 eval with_$ac_useropt=\$ac_optarg ;;
1657 -without-* | --without-*)
1658 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1659 # Reject names that are not valid shell variable names.
1660 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1661 as_fn_error "invalid package name: $ac_useropt"
1662 ac_useropt_orig=$ac_useropt
1663 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1664 case $ac_user_opts in
1666 "with_$ac_useropt"
1667 "*) ;;
1668 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1669 ac_unrecognized_sep=', ';;
1670 esac
1671 eval with_$ac_useropt=no ;;
1673 --x)
1674 # Obsolete; use --with-x.
1675 with_x=yes ;;
1677 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1678 | --x-incl | --x-inc | --x-in | --x-i)
1679 ac_prev=x_includes ;;
1680 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1681 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1682 x_includes=$ac_optarg ;;
1684 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1685 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1686 ac_prev=x_libraries ;;
1687 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1688 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1689 x_libraries=$ac_optarg ;;
1691 -*) as_fn_error "unrecognized option: \`$ac_option'
1692 Try \`$0 --help' for more information."
1695 *=*)
1696 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1697 # Reject names that are not valid shell variable names.
1698 case $ac_envvar in #(
1699 '' | [0-9]* | *[!_$as_cr_alnum]* )
1700 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1701 esac
1702 eval $ac_envvar=\$ac_optarg
1703 export $ac_envvar ;;
1706 # FIXME: should be removed in autoconf 3.0.
1707 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1708 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1709 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1710 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1713 esac
1714 done
1716 if test -n "$ac_prev"; then
1717 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1718 as_fn_error "missing argument to $ac_option"
1721 if test -n "$ac_unrecognized_opts"; then
1722 case $enable_option_checking in
1723 no) ;;
1724 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1725 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1726 esac
1729 # Check all directory arguments for consistency.
1730 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1731 datadir sysconfdir sharedstatedir localstatedir includedir \
1732 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1733 libdir localedir mandir
1735 eval ac_val=\$$ac_var
1736 # Remove trailing slashes.
1737 case $ac_val in
1738 */ )
1739 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1740 eval $ac_var=\$ac_val;;
1741 esac
1742 # Be sure to have absolute directory names.
1743 case $ac_val in
1744 [\\/$]* | ?:[\\/]* ) continue;;
1745 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1746 esac
1747 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1748 done
1750 # There might be people who depend on the old broken behavior: `$host'
1751 # used to hold the argument of --host etc.
1752 # FIXME: To remove some day.
1753 build=$build_alias
1754 host=$host_alias
1755 target=$target_alias
1757 # FIXME: To remove some day.
1758 if test "x$host_alias" != x; then
1759 if test "x$build_alias" = x; then
1760 cross_compiling=maybe
1761 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1762 If a cross compiler is detected then cross compile mode will be used." >&2
1763 elif test "x$build_alias" != "x$host_alias"; then
1764 cross_compiling=yes
1768 ac_tool_prefix=
1769 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1771 test "$silent" = yes && exec 6>/dev/null
1774 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1775 ac_ls_di=`ls -di .` &&
1776 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1777 as_fn_error "working directory cannot be determined"
1778 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1779 as_fn_error "pwd does not report name of working directory"
1782 # Find the source files, if location was not specified.
1783 if test -z "$srcdir"; then
1784 ac_srcdir_defaulted=yes
1785 # Try the directory containing this script, then the parent directory.
1786 ac_confdir=`$as_dirname -- "$as_myself" ||
1787 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1788 X"$as_myself" : 'X\(//\)[^/]' \| \
1789 X"$as_myself" : 'X\(//\)$' \| \
1790 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1791 $as_echo X"$as_myself" |
1792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1793 s//\1/
1796 /^X\(\/\/\)[^/].*/{
1797 s//\1/
1800 /^X\(\/\/\)$/{
1801 s//\1/
1804 /^X\(\/\).*/{
1805 s//\1/
1808 s/.*/./; q'`
1809 srcdir=$ac_confdir
1810 if test ! -r "$srcdir/$ac_unique_file"; then
1811 srcdir=..
1813 else
1814 ac_srcdir_defaulted=no
1816 if test ! -r "$srcdir/$ac_unique_file"; then
1817 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1818 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1820 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1821 ac_abs_confdir=`(
1822 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1823 pwd)`
1824 # When building in place, set srcdir=.
1825 if test "$ac_abs_confdir" = "$ac_pwd"; then
1826 srcdir=.
1828 # Remove unnecessary trailing slashes from srcdir.
1829 # Double slashes in file names in object file debugging info
1830 # mess up M-x gdb in Emacs.
1831 case $srcdir in
1832 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1833 esac
1834 for ac_var in $ac_precious_vars; do
1835 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1836 eval ac_env_${ac_var}_value=\$${ac_var}
1837 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1838 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1839 done
1842 # Report the --help message.
1844 if test "$ac_init_help" = "long"; then
1845 # Omit some internal or obsolete options to make the list less imposing.
1846 # This message is too long to be a string in the A/UX 3.1 sh.
1847 cat <<_ACEOF
1848 \`configure' configures emacs 24.0.90 to adapt to many kinds of systems.
1850 Usage: $0 [OPTION]... [VAR=VALUE]...
1852 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1853 VAR=VALUE. See below for descriptions of some of the useful variables.
1855 Defaults for the options are specified in brackets.
1857 Configuration:
1858 -h, --help display this help and exit
1859 --help=short display options specific to this package
1860 --help=recursive display the short help of all the included packages
1861 -V, --version display version information and exit
1862 -q, --quiet, --silent do not print \`checking...' messages
1863 --cache-file=FILE cache test results in FILE [disabled]
1864 -C, --config-cache alias for \`--cache-file=config.cache'
1865 -n, --no-create do not create output files
1866 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1868 Installation directories:
1869 --prefix=PREFIX install architecture-independent files in PREFIX
1870 [$ac_default_prefix]
1871 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1872 [PREFIX]
1874 By default, \`make install' will install all the files in
1875 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1876 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1877 for instance \`--prefix=\$HOME'.
1879 For better control, use the options below.
1881 Fine tuning of the installation directories:
1882 --bindir=DIR user executables [EPREFIX/bin]
1883 --sbindir=DIR system admin executables [EPREFIX/sbin]
1884 --libexecdir=DIR program executables [EPREFIX/libexec]
1885 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1886 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1887 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1888 --libdir=DIR object code libraries [EPREFIX/lib]
1889 --includedir=DIR C header files [PREFIX/include]
1890 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1891 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1892 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1893 --infodir=DIR info documentation [DATAROOTDIR/info]
1894 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1895 --mandir=DIR man documentation [DATAROOTDIR/man]
1896 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1897 --htmldir=DIR html documentation [DOCDIR]
1898 --dvidir=DIR dvi documentation [DOCDIR]
1899 --pdfdir=DIR pdf documentation [DOCDIR]
1900 --psdir=DIR ps documentation [DOCDIR]
1901 _ACEOF
1903 cat <<\_ACEOF
1905 Program names:
1906 --program-prefix=PREFIX prepend PREFIX to installed program names
1907 --program-suffix=SUFFIX append SUFFIX to installed program names
1908 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1910 X features:
1911 --x-includes=DIR X include files are in DIR
1912 --x-libraries=DIR X library files are in DIR
1914 System types:
1915 --build=BUILD configure for building on BUILD [guessed]
1916 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1917 _ACEOF
1920 if test -n "$ac_init_help"; then
1921 case $ac_init_help in
1922 short | recursive ) echo "Configuration of emacs 24.0.90:";;
1923 esac
1924 cat <<\_ACEOF
1926 Optional Features:
1927 --disable-option-checking ignore unrecognized --enable/--with options
1928 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1929 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1930 --disable-ns-self-contained
1931 disable self contained build under NeXTstep
1932 --enable-asserts compile code with asserts enabled
1933 --enable-maintainer-mode
1934 enable make rules and dependencies not useful (and
1935 sometimes confusing) to the casual installer
1936 --enable-locallisppath=PATH
1937 directories Emacs should search for lisp files
1938 specific to this site
1939 --enable-checking[=LIST]
1940 enable expensive run-time checks. With LIST, enable
1941 only specific categories of checks. Categories are:
1942 all,yes,no. Flags are: stringbytes, stringoverrun,
1943 stringfreelist, xmallocoverrun, conslist
1944 --enable-use-lisp-union-type
1945 use a union for the Lisp_Object data type. This is
1946 only useful for development for catching certain
1947 types of bugs.
1948 --enable-profiling build emacs with profiling support. This might not
1949 work on all platforms
1950 --enable-autodepend automatically generate dependencies to .h-files.
1951 Requires GNU Make and Gcc. Enabled if GNU Make and
1952 Gcc is found
1953 --disable-dependency-tracking speeds up one-time build
1954 --enable-dependency-tracking do not reject slow dependency extractors
1955 --disable-largefile omit support for large files
1957 Optional Packages:
1958 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1959 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1960 --without-pop don't support POP mail retrieval with movemail
1961 --with-kerberos support Kerberos-authenticated POP
1962 --with-kerberos5 support Kerberos version 5 authenticated POP
1963 --with-hesiod support Hesiod to get the POP server host
1964 --with-mmdf support MMDF mailboxes
1965 --with-mail-unlink unlink, rather than empty, mail spool after reading
1966 --with-mailhost=HOSTNAME
1967 string giving default POP mail host
1968 --without-sound don't compile with sound support
1969 --without-sync-input process async input synchronously
1970 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1971 lucid or athena, motif, no)
1972 --with-wide-int prefer wide Emacs integers (typically 62-bit)
1973 --without-xpm don't compile with XPM image support
1974 --without-jpeg don't compile with JPEG image support
1975 --without-tiff don't compile with TIFF image support
1976 --without-gif don't compile with GIF image support
1977 --without-png don't compile with PNG image support
1978 --without-rsvg don't compile with SVG image support
1979 --without-xml2 don't compile with XML parsing support
1980 --without-imagemagick don't compile with ImageMagick image support
1981 --without-xft don't use XFT for anti aliased fonts
1982 --without-libotf don't use libotf for OpenType font support
1983 --without-m17n-flt don't use m17n-flt for text shaping
1984 --without-toolkit-scroll-bars
1985 don't use Motif or Xaw3d scroll bars
1986 --without-xaw3d don't use Xaw3d
1987 --without-xim don't use X11 XIM
1988 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
1989 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1990 console
1991 --without-dbus don't compile with D-Bus support
1992 --without-gconf don't compile with GConf support
1993 --without-selinux don't compile with SELinux support
1994 --without-gnutls don't use -lgnutls for SSL/TLS support
1995 --without-makeinfo don't require makeinfo for building manuals
1996 --without-compress-info don't compress the installed Info pages
1997 --with-pkg-config-prog=PATH
1998 path to pkg-config for finding GTK and librsvg
1999 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2000 /usr/lib, or /usr/lib64 on some platforms.
2001 --with-gameuser=USER user for shared game score files
2002 --with-gnustep-conf=PATH
2003 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2004 or /etc/GNUstep/GNUstep.conf
2005 --with-x use the X Window System
2007 Some influential environment variables:
2008 CC C compiler command
2009 CFLAGS C compiler flags
2010 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2011 nonstandard directory <lib dir>
2012 LIBS libraries to pass to the linker, e.g. -l<library>
2013 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2014 you have headers in a nonstandard directory <include dir>
2015 CPP C preprocessor
2016 XMKMF Path to xmkmf, Makefile generator for X Window System
2018 Use these variables to override the choices made by `configure' or to help
2019 it to find libraries and programs with nonstandard names/locations.
2021 Report bugs to the package provider.
2022 _ACEOF
2023 ac_status=$?
2026 if test "$ac_init_help" = "recursive"; then
2027 # If there are subdirs, report their specific --help.
2028 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2029 test -d "$ac_dir" ||
2030 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2031 continue
2032 ac_builddir=.
2034 case "$ac_dir" in
2035 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2037 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2038 # A ".." for each directory in $ac_dir_suffix.
2039 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2040 case $ac_top_builddir_sub in
2041 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2042 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2043 esac ;;
2044 esac
2045 ac_abs_top_builddir=$ac_pwd
2046 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2047 # for backward compatibility:
2048 ac_top_builddir=$ac_top_build_prefix
2050 case $srcdir in
2051 .) # We are building in place.
2052 ac_srcdir=.
2053 ac_top_srcdir=$ac_top_builddir_sub
2054 ac_abs_top_srcdir=$ac_pwd ;;
2055 [\\/]* | ?:[\\/]* ) # Absolute name.
2056 ac_srcdir=$srcdir$ac_dir_suffix;
2057 ac_top_srcdir=$srcdir
2058 ac_abs_top_srcdir=$srcdir ;;
2059 *) # Relative name.
2060 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2061 ac_top_srcdir=$ac_top_build_prefix$srcdir
2062 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2063 esac
2064 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2066 cd "$ac_dir" || { ac_status=$?; continue; }
2067 # Check for guested configure.
2068 if test -f "$ac_srcdir/configure.gnu"; then
2069 echo &&
2070 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2071 elif test -f "$ac_srcdir/configure"; then
2072 echo &&
2073 $SHELL "$ac_srcdir/configure" --help=recursive
2074 else
2075 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2076 fi || ac_status=$?
2077 cd "$ac_pwd" || { ac_status=$?; break; }
2078 done
2081 test -n "$ac_init_help" && exit $ac_status
2082 if $ac_init_version; then
2083 cat <<\_ACEOF
2084 emacs configure 24.0.90
2085 generated by GNU Autoconf 2.65
2087 Copyright (C) 2009 Free Software Foundation, Inc.
2088 This configure script is free software; the Free Software Foundation
2089 gives unlimited permission to copy, distribute and modify it.
2090 _ACEOF
2091 exit
2094 ## ------------------------ ##
2095 ## Autoconf initialization. ##
2096 ## ------------------------ ##
2098 # ac_fn_c_try_compile LINENO
2099 # --------------------------
2100 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2101 ac_fn_c_try_compile ()
2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104 rm -f conftest.$ac_objext
2105 if { { ac_try="$ac_compile"
2106 case "(($ac_try" in
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2109 esac
2110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2111 $as_echo "$ac_try_echo"; } >&5
2112 (eval "$ac_compile") 2>conftest.err
2113 ac_status=$?
2114 if test -s conftest.err; then
2115 grep -v '^ *+' conftest.err >conftest.er1
2116 cat conftest.er1 >&5
2117 mv -f conftest.er1 conftest.err
2119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2120 test $ac_status = 0; } && {
2121 test -z "$ac_c_werror_flag" ||
2122 test ! -s conftest.err
2123 } && test -s conftest.$ac_objext; then :
2124 ac_retval=0
2125 else
2126 $as_echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2129 ac_retval=1
2131 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2132 as_fn_set_status $ac_retval
2134 } # ac_fn_c_try_compile
2136 # ac_fn_c_try_cpp LINENO
2137 # ----------------------
2138 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2139 ac_fn_c_try_cpp ()
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 if { { ac_try="$ac_cpp conftest.$ac_ext"
2143 case "(($ac_try" in
2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2146 esac
2147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2148 $as_echo "$ac_try_echo"; } >&5
2149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2150 ac_status=$?
2151 if test -s conftest.err; then
2152 grep -v '^ *+' conftest.err >conftest.er1
2153 cat conftest.er1 >&5
2154 mv -f conftest.er1 conftest.err
2156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2157 test $ac_status = 0; } >/dev/null && {
2158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2159 test ! -s conftest.err
2160 }; then :
2161 ac_retval=0
2162 else
2163 $as_echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2166 ac_retval=1
2168 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2169 as_fn_set_status $ac_retval
2171 } # ac_fn_c_try_cpp
2173 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2174 # -------------------------------------------------------
2175 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2176 # the include files in INCLUDES and setting the cache variable VAR
2177 # accordingly.
2178 ac_fn_c_check_header_mongrel ()
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2183 $as_echo_n "checking for $2... " >&6; }
2184 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2185 $as_echo_n "(cached) " >&6
2187 eval ac_res=\$$3
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2189 $as_echo "$ac_res" >&6; }
2190 else
2191 # Is the header compilable?
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2193 $as_echo_n "checking $2 usability... " >&6; }
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2197 #include <$2>
2198 _ACEOF
2199 if ac_fn_c_try_compile "$LINENO"; then :
2200 ac_header_compiler=yes
2201 else
2202 ac_header_compiler=no
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2206 $as_echo "$ac_header_compiler" >&6; }
2208 # Is the header present?
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2210 $as_echo_n "checking $2 presence... " >&6; }
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2213 #include <$2>
2214 _ACEOF
2215 if ac_fn_c_try_cpp "$LINENO"; then :
2216 ac_header_preproc=yes
2217 else
2218 ac_header_preproc=no
2220 rm -f conftest.err conftest.$ac_ext
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2222 $as_echo "$ac_header_preproc" >&6; }
2224 # So? What about this header?
2225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2226 yes:no: )
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2228 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2230 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2232 no:yes:* )
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2234 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2236 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2238 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2240 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2242 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2244 esac
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2246 $as_echo_n "checking for $2... " >&6; }
2247 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2248 $as_echo_n "(cached) " >&6
2249 else
2250 eval "$3=\$ac_header_compiler"
2252 eval ac_res=\$$3
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2254 $as_echo "$ac_res" >&6; }
2256 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2258 } # ac_fn_c_check_header_mongrel
2260 # ac_fn_c_try_run LINENO
2261 # ----------------------
2262 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2263 # that executables *can* be run.
2264 ac_fn_c_try_run ()
2266 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267 if { { ac_try="$ac_link"
2268 case "(($ac_try" in
2269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270 *) ac_try_echo=$ac_try;;
2271 esac
2272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2273 $as_echo "$ac_try_echo"; } >&5
2274 (eval "$ac_link") 2>&5
2275 ac_status=$?
2276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2277 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2278 { { case "(($ac_try" in
2279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2280 *) ac_try_echo=$ac_try;;
2281 esac
2282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2283 $as_echo "$ac_try_echo"; } >&5
2284 (eval "$ac_try") 2>&5
2285 ac_status=$?
2286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2287 test $ac_status = 0; }; }; then :
2288 ac_retval=0
2289 else
2290 $as_echo "$as_me: program exited with status $ac_status" >&5
2291 $as_echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2294 ac_retval=$ac_status
2296 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2297 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2298 as_fn_set_status $ac_retval
2300 } # ac_fn_c_try_run
2302 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2303 # -------------------------------------------------------
2304 # Tests whether HEADER exists and can be compiled using the include files in
2305 # INCLUDES, setting the cache variable VAR accordingly.
2306 ac_fn_c_check_header_compile ()
2308 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2310 $as_echo_n "checking for $2... " >&6; }
2311 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2312 $as_echo_n "(cached) " >&6
2313 else
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2317 #include <$2>
2318 _ACEOF
2319 if ac_fn_c_try_compile "$LINENO"; then :
2320 eval "$3=yes"
2321 else
2322 eval "$3=no"
2324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2326 eval ac_res=\$$3
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2328 $as_echo "$ac_res" >&6; }
2329 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2331 } # ac_fn_c_check_header_compile
2333 # ac_fn_c_try_link LINENO
2334 # -----------------------
2335 # Try to link conftest.$ac_ext, and return whether this succeeded.
2336 ac_fn_c_try_link ()
2338 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2339 rm -f conftest.$ac_objext conftest$ac_exeext
2340 if { { ac_try="$ac_link"
2341 case "(($ac_try" in
2342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2343 *) ac_try_echo=$ac_try;;
2344 esac
2345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2346 $as_echo "$ac_try_echo"; } >&5
2347 (eval "$ac_link") 2>conftest.err
2348 ac_status=$?
2349 if test -s conftest.err; then
2350 grep -v '^ *+' conftest.err >conftest.er1
2351 cat conftest.er1 >&5
2352 mv -f conftest.er1 conftest.err
2354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2355 test $ac_status = 0; } && {
2356 test -z "$ac_c_werror_flag" ||
2357 test ! -s conftest.err
2358 } && test -s conftest$ac_exeext && {
2359 test "$cross_compiling" = yes ||
2360 $as_test_x conftest$ac_exeext
2361 }; then :
2362 ac_retval=0
2363 else
2364 $as_echo "$as_me: failed program was:" >&5
2365 sed 's/^/| /' conftest.$ac_ext >&5
2367 ac_retval=1
2369 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2370 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2371 # interfere with the next link command; also delete a directory that is
2372 # left behind by Apple's compiler. We do this before executing the actions.
2373 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2374 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2375 as_fn_set_status $ac_retval
2377 } # ac_fn_c_try_link
2379 # ac_fn_c_check_decl LINENO SYMBOL VAR
2380 # ------------------------------------
2381 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2382 ac_fn_c_check_decl ()
2384 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2386 $as_echo_n "checking whether $2 is declared... " >&6; }
2387 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2388 $as_echo_n "(cached) " >&6
2389 else
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2394 main ()
2396 #ifndef $2
2397 (void) $2;
2398 #endif
2401 return 0;
2403 _ACEOF
2404 if ac_fn_c_try_compile "$LINENO"; then :
2405 eval "$3=yes"
2406 else
2407 eval "$3=no"
2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411 eval ac_res=\$$3
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2413 $as_echo "$ac_res" >&6; }
2414 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2416 } # ac_fn_c_check_decl
2418 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2419 # ----------------------------------------------
2420 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2421 ac_fn_c_check_header_preproc ()
2423 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2425 $as_echo_n "checking for $2... " >&6; }
2426 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2427 $as_echo_n "(cached) " >&6
2428 else
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2431 #include <$2>
2432 _ACEOF
2433 if ac_fn_c_try_cpp "$LINENO"; then :
2434 eval "$3=yes"
2435 else
2436 eval "$3=no"
2438 rm -f conftest.err conftest.$ac_ext
2440 eval ac_res=\$$3
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2445 } # ac_fn_c_check_header_preproc
2447 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2448 # ----------------------------------------------------
2449 # Tries to find if the field MEMBER exists in type AGGR, after including
2450 # INCLUDES, setting cache variable VAR accordingly.
2451 ac_fn_c_check_member ()
2453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2455 $as_echo_n "checking for $2.$3... " >&6; }
2456 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2457 $as_echo_n "(cached) " >&6
2458 else
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h. */
2463 main ()
2465 static $2 ac_aggr;
2466 if (ac_aggr.$3)
2467 return 0;
2469 return 0;
2471 _ACEOF
2472 if ac_fn_c_try_compile "$LINENO"; then :
2473 eval "$4=yes"
2474 else
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2479 main ()
2481 static $2 ac_aggr;
2482 if (sizeof ac_aggr.$3)
2483 return 0;
2485 return 0;
2487 _ACEOF
2488 if ac_fn_c_try_compile "$LINENO"; then :
2489 eval "$4=yes"
2490 else
2491 eval "$4=no"
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2497 eval ac_res=\$$4
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2499 $as_echo "$ac_res" >&6; }
2500 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2502 } # ac_fn_c_check_member
2504 # ac_fn_c_check_func LINENO FUNC VAR
2505 # ----------------------------------
2506 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2507 ac_fn_c_check_func ()
2509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2511 $as_echo_n "checking for $2... " >&6; }
2512 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2513 $as_echo_n "(cached) " >&6
2514 else
2515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2516 /* end confdefs.h. */
2517 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2519 #define $2 innocuous_$2
2521 /* System header to define __stub macros and hopefully few prototypes,
2522 which can conflict with char $2 (); below.
2523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2524 <limits.h> exists even on freestanding compilers. */
2526 #ifdef __STDC__
2527 # include <limits.h>
2528 #else
2529 # include <assert.h>
2530 #endif
2532 #undef $2
2534 /* Override any GCC internal prototype to avoid an error.
2535 Use char because int might match the return type of a GCC
2536 builtin and then its argument prototype would still apply. */
2537 #ifdef __cplusplus
2538 extern "C"
2539 #endif
2540 char $2 ();
2541 /* The GNU C library defines this for functions which it implements
2542 to always fail with ENOSYS. Some functions are actually named
2543 something starting with __ and the normal name is an alias. */
2544 #if defined __stub_$2 || defined __stub___$2
2545 choke me
2546 #endif
2549 main ()
2551 return $2 ();
2553 return 0;
2555 _ACEOF
2556 if ac_fn_c_try_link "$LINENO"; then :
2557 eval "$3=yes"
2558 else
2559 eval "$3=no"
2561 rm -f core conftest.err conftest.$ac_objext \
2562 conftest$ac_exeext conftest.$ac_ext
2564 eval ac_res=\$$3
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566 $as_echo "$ac_res" >&6; }
2567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2569 } # ac_fn_c_check_func
2571 <<<<<<< TREE
2572 =======
2573 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2574 # ----------------------------------------------------
2575 # Tries to find if the field MEMBER exists in type AGGR, after including
2576 # INCLUDES, setting cache variable VAR accordingly.
2577 ac_fn_c_check_member ()
2579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2581 $as_echo_n "checking for $2.$3... " >&6; }
2582 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2586 /* end confdefs.h. */
2589 main ()
2591 static $2 ac_aggr;
2592 if (ac_aggr.$3)
2593 return 0;
2595 return 0;
2597 _ACEOF
2598 if ac_fn_c_try_compile "$LINENO"; then :
2599 eval "$4=yes"
2600 else
2601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602 /* end confdefs.h. */
2605 main ()
2607 static $2 ac_aggr;
2608 if (sizeof ac_aggr.$3)
2609 return 0;
2611 return 0;
2613 _ACEOF
2614 if ac_fn_c_try_compile "$LINENO"; then :
2615 eval "$4=yes"
2616 else
2617 eval "$4=no"
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623 eval ac_res=\$$4
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2625 $as_echo "$ac_res" >&6; }
2626 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2628 } # ac_fn_c_check_member
2630 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2631 # -------------------------------------------
2632 # Tests whether TYPE exists after having included INCLUDES, setting cache
2633 # variable VAR accordingly.
2634 ac_fn_c_check_type ()
2636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2638 $as_echo_n "checking for $2... " >&6; }
2639 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2640 $as_echo_n "(cached) " >&6
2641 else
2642 eval "$3=no"
2643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2644 /* end confdefs.h. */
2647 main ()
2649 if (sizeof ($2))
2650 return 0;
2652 return 0;
2654 _ACEOF
2655 if ac_fn_c_try_compile "$LINENO"; then :
2656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2657 /* end confdefs.h. */
2660 main ()
2662 if (sizeof (($2)))
2663 return 0;
2665 return 0;
2667 _ACEOF
2668 if ac_fn_c_try_compile "$LINENO"; then :
2670 else
2671 eval "$3=yes"
2673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2677 eval ac_res=\$$3
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2679 $as_echo "$ac_res" >&6; }
2680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2682 } # ac_fn_c_check_type
2684 >>>>>>> MERGE-SOURCE
2685 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2686 # --------------------------------------------
2687 # Tries to find the compile-time value of EXPR in a program that includes
2688 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2689 # computed
2690 ac_fn_c_compute_int ()
2692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2693 if test "$cross_compiling" = yes; then
2694 # Depending upon the size, compute the lo and hi bounds.
2695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h. */
2699 main ()
2701 static int test_array [1 - 2 * !(($2) >= 0)];
2702 test_array [0] = 0
2705 return 0;
2707 _ACEOF
2708 if ac_fn_c_try_compile "$LINENO"; then :
2709 ac_lo=0 ac_mid=0
2710 while :; do
2711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2712 /* end confdefs.h. */
2715 main ()
2717 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2718 test_array [0] = 0
2721 return 0;
2723 _ACEOF
2724 if ac_fn_c_try_compile "$LINENO"; then :
2725 ac_hi=$ac_mid; break
2726 else
2727 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2728 if test $ac_lo -le $ac_mid; then
2729 ac_lo= ac_hi=
2730 break
2732 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2735 done
2736 else
2737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h. */
2741 main ()
2743 static int test_array [1 - 2 * !(($2) < 0)];
2744 test_array [0] = 0
2747 return 0;
2749 _ACEOF
2750 if ac_fn_c_try_compile "$LINENO"; then :
2751 ac_hi=-1 ac_mid=-1
2752 while :; do
2753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754 /* end confdefs.h. */
2757 main ()
2759 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2760 test_array [0] = 0
2763 return 0;
2765 _ACEOF
2766 if ac_fn_c_try_compile "$LINENO"; then :
2767 ac_lo=$ac_mid; break
2768 else
2769 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2770 if test $ac_mid -le $ac_hi; then
2771 ac_lo= ac_hi=
2772 break
2774 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2777 done
2778 else
2779 ac_lo= ac_hi=
2781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784 # Binary search between lo and hi bounds.
2785 while test "x$ac_lo" != "x$ac_hi"; do
2786 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2788 /* end confdefs.h. */
2791 main ()
2793 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2794 test_array [0] = 0
2797 return 0;
2799 _ACEOF
2800 if ac_fn_c_try_compile "$LINENO"; then :
2801 ac_hi=$ac_mid
2802 else
2803 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806 done
2807 case $ac_lo in #((
2808 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2809 '') ac_retval=1 ;;
2810 esac
2811 else
2812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2813 /* end confdefs.h. */
2815 static long int longval () { return $2; }
2816 static unsigned long int ulongval () { return $2; }
2817 #include <stdio.h>
2818 #include <stdlib.h>
2820 main ()
2823 FILE *f = fopen ("conftest.val", "w");
2824 if (! f)
2825 return 1;
2826 if (($2) < 0)
2828 long int i = longval ();
2829 if (i != ($2))
2830 return 1;
2831 fprintf (f, "%ld", i);
2833 else
2835 unsigned long int i = ulongval ();
2836 if (i != ($2))
2837 return 1;
2838 fprintf (f, "%lu", i);
2840 /* Do not output a trailing newline, as this causes \r\n confusion
2841 on some platforms. */
2842 return ferror (f) || fclose (f) != 0;
2845 return 0;
2847 _ACEOF
2848 if ac_fn_c_try_run "$LINENO"; then :
2849 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2850 else
2851 ac_retval=1
2853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2854 conftest.$ac_objext conftest.beam conftest.$ac_ext
2855 rm -f conftest.val
2858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2859 as_fn_set_status $ac_retval
2861 } # ac_fn_c_compute_int
2863 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2864 # -------------------------------------------
2865 # Tests whether TYPE exists after having included INCLUDES, setting cache
2866 # variable VAR accordingly.
2867 ac_fn_c_check_type ()
2869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2871 $as_echo_n "checking for $2... " >&6; }
2872 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2873 $as_echo_n "(cached) " >&6
2874 else
2875 eval "$3=no"
2876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2877 /* end confdefs.h. */
2880 main ()
2882 if (sizeof ($2))
2883 return 0;
2885 return 0;
2887 _ACEOF
2888 if ac_fn_c_try_compile "$LINENO"; then :
2889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890 /* end confdefs.h. */
2893 main ()
2895 if (sizeof (($2)))
2896 return 0;
2898 return 0;
2900 _ACEOF
2901 if ac_fn_c_try_compile "$LINENO"; then :
2903 else
2904 eval "$3=yes"
2906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 eval ac_res=\$$3
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2912 $as_echo "$ac_res" >&6; }
2913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2915 } # ac_fn_c_check_type
2916 cat >config.log <<_ACEOF
2917 This file contains any messages produced by compilers while
2918 running configure, to aid debugging if configure makes a mistake.
2920 It was created by emacs $as_me 24.0.90, which was
2921 generated by GNU Autoconf 2.65. Invocation command line was
2923 $ $0 $@
2925 _ACEOF
2926 exec 5>>config.log
2928 cat <<_ASUNAME
2929 ## --------- ##
2930 ## Platform. ##
2931 ## --------- ##
2933 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2934 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2935 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2936 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2937 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2939 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2940 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2942 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2943 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2944 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2945 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2946 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2947 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2948 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2950 _ASUNAME
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 $as_echo "PATH: $as_dir"
2958 done
2959 IFS=$as_save_IFS
2961 } >&5
2963 cat >&5 <<_ACEOF
2966 ## ----------- ##
2967 ## Core tests. ##
2968 ## ----------- ##
2970 _ACEOF
2973 # Keep a trace of the command line.
2974 # Strip out --no-create and --no-recursion so they do not pile up.
2975 # Strip out --silent because we don't want to record it for future runs.
2976 # Also quote any args containing shell meta-characters.
2977 # Make two passes to allow for proper duplicate-argument suppression.
2978 ac_configure_args=
2979 ac_configure_args0=
2980 ac_configure_args1=
2981 ac_must_keep_next=false
2982 for ac_pass in 1 2
2984 for ac_arg
2986 case $ac_arg in
2987 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2988 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2989 | -silent | --silent | --silen | --sile | --sil)
2990 continue ;;
2991 *\'*)
2992 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2993 esac
2994 case $ac_pass in
2995 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2997 as_fn_append ac_configure_args1 " '$ac_arg'"
2998 if test $ac_must_keep_next = true; then
2999 ac_must_keep_next=false # Got value, back to normal.
3000 else
3001 case $ac_arg in
3002 *=* | --config-cache | -C | -disable-* | --disable-* \
3003 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3004 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3005 | -with-* | --with-* | -without-* | --without-* | --x)
3006 case "$ac_configure_args0 " in
3007 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3008 esac
3010 -* ) ac_must_keep_next=true ;;
3011 esac
3013 as_fn_append ac_configure_args " '$ac_arg'"
3015 esac
3016 done
3017 done
3018 { ac_configure_args0=; unset ac_configure_args0;}
3019 { ac_configure_args1=; unset ac_configure_args1;}
3021 # When interrupted or exit'd, cleanup temporary files, and complete
3022 # config.log. We remove comments because anyway the quotes in there
3023 # would cause problems or look ugly.
3024 # WARNING: Use '\'' to represent an apostrophe within the trap.
3025 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3026 trap 'exit_status=$?
3027 # Save into config.log some information that might help in debugging.
3029 echo
3031 cat <<\_ASBOX
3032 ## ---------------- ##
3033 ## Cache variables. ##
3034 ## ---------------- ##
3035 _ASBOX
3036 echo
3037 # The following way of writing the cache mishandles newlines in values,
3039 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3040 eval ac_val=\$$ac_var
3041 case $ac_val in #(
3042 *${as_nl}*)
3043 case $ac_var in #(
3044 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3045 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3046 esac
3047 case $ac_var in #(
3048 _ | IFS | as_nl) ;; #(
3049 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3050 *) { eval $ac_var=; unset $ac_var;} ;;
3051 esac ;;
3052 esac
3053 done
3054 (set) 2>&1 |
3055 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3056 *${as_nl}ac_space=\ *)
3057 sed -n \
3058 "s/'\''/'\''\\\\'\'''\''/g;
3059 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3060 ;; #(
3062 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3064 esac |
3065 sort
3067 echo
3069 cat <<\_ASBOX
3070 ## ----------------- ##
3071 ## Output variables. ##
3072 ## ----------------- ##
3073 _ASBOX
3074 echo
3075 for ac_var in $ac_subst_vars
3077 eval ac_val=\$$ac_var
3078 case $ac_val in
3079 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3080 esac
3081 $as_echo "$ac_var='\''$ac_val'\''"
3082 done | sort
3083 echo
3085 if test -n "$ac_subst_files"; then
3086 cat <<\_ASBOX
3087 ## ------------------- ##
3088 ## File substitutions. ##
3089 ## ------------------- ##
3090 _ASBOX
3091 echo
3092 for ac_var in $ac_subst_files
3094 eval ac_val=\$$ac_var
3095 case $ac_val in
3096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3097 esac
3098 $as_echo "$ac_var='\''$ac_val'\''"
3099 done | sort
3100 echo
3103 if test -s confdefs.h; then
3104 cat <<\_ASBOX
3105 ## ----------- ##
3106 ## confdefs.h. ##
3107 ## ----------- ##
3108 _ASBOX
3109 echo
3110 cat confdefs.h
3111 echo
3113 test "$ac_signal" != 0 &&
3114 $as_echo "$as_me: caught signal $ac_signal"
3115 $as_echo "$as_me: exit $exit_status"
3116 } >&5
3117 rm -f core *.core core.conftest.* &&
3118 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3119 exit $exit_status
3121 for ac_signal in 1 2 13 15; do
3122 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3123 done
3124 ac_signal=0
3126 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3127 rm -f -r conftest* confdefs.h
3129 $as_echo "/* confdefs.h */" > confdefs.h
3131 # Predefined preprocessor variables.
3133 cat >>confdefs.h <<_ACEOF
3134 #define PACKAGE_NAME "$PACKAGE_NAME"
3135 _ACEOF
3137 cat >>confdefs.h <<_ACEOF
3138 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3139 _ACEOF
3141 cat >>confdefs.h <<_ACEOF
3142 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3143 _ACEOF
3145 cat >>confdefs.h <<_ACEOF
3146 #define PACKAGE_STRING "$PACKAGE_STRING"
3147 _ACEOF
3149 cat >>confdefs.h <<_ACEOF
3150 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3151 _ACEOF
3153 cat >>confdefs.h <<_ACEOF
3154 #define PACKAGE_URL "$PACKAGE_URL"
3155 _ACEOF
3158 # Let the site file select an alternate cache file if it wants to.
3159 # Prefer an explicitly selected file to automatically selected ones.
3160 ac_site_file1=NONE
3161 ac_site_file2=NONE
3162 if test -n "$CONFIG_SITE"; then
3163 ac_site_file1=$CONFIG_SITE
3164 elif test "x$prefix" != xNONE; then
3165 ac_site_file1=$prefix/share/config.site
3166 ac_site_file2=$prefix/etc/config.site
3167 else
3168 ac_site_file1=$ac_default_prefix/share/config.site
3169 ac_site_file2=$ac_default_prefix/etc/config.site
3171 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3173 test "x$ac_site_file" = xNONE && continue
3174 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3176 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3177 sed 's/^/| /' "$ac_site_file" >&5
3178 . "$ac_site_file"
3180 done
3182 if test -r "$cache_file"; then
3183 # Some versions of bash will fail to source /dev/null (special files
3184 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3185 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3187 $as_echo "$as_me: loading cache $cache_file" >&6;}
3188 case $cache_file in
3189 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3190 *) . "./$cache_file";;
3191 esac
3193 else
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3195 $as_echo "$as_me: creating cache $cache_file" >&6;}
3196 >$cache_file
3199 as_fn_append ac_header_list " stdlib.h"
3200 as_fn_append ac_header_list " unistd.h"
3201 as_fn_append ac_header_list " sys/param.h"
3202 as_fn_append ac_func_list " readlinkat"
3203 gl_getopt_required=GNU
3204 as_fn_append ac_header_list " getopt.h"
3205 as_fn_append ac_header_list " wchar.h"
3206 as_fn_append ac_header_list " stdint.h"
3207 as_fn_append ac_header_list " inttypes.h"
3208 as_fn_append ac_func_list " lstat"
3209 as_fn_append ac_func_list " alarm"
3210 as_fn_append ac_func_list " readlink"
3211 as_fn_append ac_header_list " sys/socket.h"
3212 as_fn_append ac_func_list " tzset"
3213 as_fn_append ac_func_list " strtoimax"
3214 as_fn_append ac_func_list " strtoumax"
3215 as_fn_append ac_func_list " symlink"
3216 as_fn_append ac_header_list " sys/stat.h"
3217 as_fn_append ac_header_list " sys/time.h"
3218 as_fn_append ac_func_list " localtime_r"
3219 # Check that the precious variables saved in the cache have kept the same
3220 # value.
3221 ac_cache_corrupted=false
3222 for ac_var in $ac_precious_vars; do
3223 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3224 eval ac_new_set=\$ac_env_${ac_var}_set
3225 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3226 eval ac_new_val=\$ac_env_${ac_var}_value
3227 case $ac_old_set,$ac_new_set in
3228 set,)
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3230 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3231 ac_cache_corrupted=: ;;
3232 ,set)
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3234 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3235 ac_cache_corrupted=: ;;
3236 ,);;
3238 if test "x$ac_old_val" != "x$ac_new_val"; then
3239 # differences in whitespace do not lead to failure.
3240 ac_old_val_w=`echo x $ac_old_val`
3241 ac_new_val_w=`echo x $ac_new_val`
3242 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3244 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3245 ac_cache_corrupted=:
3246 else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3248 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3249 eval $ac_var=\$ac_old_val
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3252 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3254 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3255 fi;;
3256 esac
3257 # Pass precious variables to config.status.
3258 if test "$ac_new_set" = set; then
3259 case $ac_new_val in
3260 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3261 *) ac_arg=$ac_var=$ac_new_val ;;
3262 esac
3263 case " $ac_configure_args " in
3264 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3265 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3266 esac
3268 done
3269 if $ac_cache_corrupted; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3273 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3274 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3276 ## -------------------- ##
3277 ## Main body of script. ##
3278 ## -------------------- ##
3280 ac_ext=c
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3287 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3290 ac_aux_dir=
3291 for ac_dir in build-aux "$srcdir"/build-aux; do
3292 for ac_t in install-sh install.sh shtool; do
3293 if test -f "$ac_dir/$ac_t"; then
3294 ac_aux_dir=$ac_dir
3295 ac_install_sh="$ac_aux_dir/$ac_t -c"
3296 break 2
3298 done
3299 done
3300 if test -z "$ac_aux_dir"; then
3301 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3304 # These three variables are undocumented and unsupported,
3305 # and are intended to be withdrawn in a future Autoconf release.
3306 # They can cause serious problems if a builder's source tree is in a directory
3307 # whose full name contains unusual characters.
3308 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3309 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3310 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3313 am__api_version='1.11'
3315 # Find a good install program. We prefer a C program (faster),
3316 # so one script is as good as another. But avoid the broken or
3317 # incompatible versions:
3318 # SysV /etc/install, /usr/sbin/install
3319 # SunOS /usr/etc/install
3320 # IRIX /sbin/install
3321 # AIX /bin/install
3322 # AmigaOS /C/install, which installs bootblocks on floppy discs
3323 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3324 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3325 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3326 # OS/2's system install, which has a completely different semantic
3327 # ./install, which can be erroneously created by make from ./install.sh.
3328 # Reject install programs that cannot install multiple files.
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3330 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3331 if test -z "$INSTALL"; then
3332 if test "${ac_cv_path_install+set}" = set; then :
3333 $as_echo_n "(cached) " >&6
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3338 IFS=$as_save_IFS
3339 test -z "$as_dir" && as_dir=.
3340 # Account for people who put trailing slashes in PATH elements.
3341 case $as_dir/ in #((
3342 ./ | .// | /[cC]/* | \
3343 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3344 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3345 /usr/ucb/* ) ;;
3347 # OSF1 and SCO ODT 3.0 have their own names for install.
3348 # Don't use installbsd from OSF since it installs stuff as root
3349 # by default.
3350 for ac_prog in ginstall scoinst install; do
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3353 if test $ac_prog = install &&
3354 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3355 # AIX install. It has an incompatible calling convention.
3357 elif test $ac_prog = install &&
3358 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3359 # program-specific install script used by HP pwplus--don't use.
3361 else
3362 rm -rf conftest.one conftest.two conftest.dir
3363 echo one > conftest.one
3364 echo two > conftest.two
3365 mkdir conftest.dir
3366 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3367 test -s conftest.one && test -s conftest.two &&
3368 test -s conftest.dir/conftest.one &&
3369 test -s conftest.dir/conftest.two
3370 then
3371 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3372 break 3
3376 done
3377 done
3379 esac
3381 done
3382 IFS=$as_save_IFS
3384 rm -rf conftest.one conftest.two conftest.dir
3387 if test "${ac_cv_path_install+set}" = set; then
3388 INSTALL=$ac_cv_path_install
3389 else
3390 # As a last resort, use the slow shell script. Don't cache a
3391 # value for INSTALL within a source directory, because that will
3392 # break other packages using the cache if that directory is
3393 # removed, or if the value is a relative name.
3394 INSTALL=$ac_install_sh
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3398 $as_echo "$INSTALL" >&6; }
3400 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3401 # It thinks the first close brace ends the variable substitution.
3402 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3404 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3406 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3409 $as_echo_n "checking whether build environment is sane... " >&6; }
3410 # Just in case
3411 sleep 1
3412 echo timestamp > conftest.file
3413 # Reject unsafe characters in $srcdir or the absolute working directory
3414 # name. Accept space and tab only in the latter.
3415 am_lf='
3417 case `pwd` in
3418 *[\\\"\#\$\&\'\`$am_lf]*)
3419 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3420 esac
3421 case $srcdir in
3422 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3423 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3424 esac
3426 # Do `set' in a subshell so we don't clobber the current shell's
3427 # arguments. Must try -L first in case configure is actually a
3428 # symlink; some systems play weird games with the mod time of symlinks
3429 # (eg FreeBSD returns the mod time of the symlink's containing
3430 # directory).
3431 if (
3432 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3433 if test "$*" = "X"; then
3434 # -L didn't work.
3435 set X `ls -t "$srcdir/configure" conftest.file`
3437 rm -f conftest.file
3438 if test "$*" != "X $srcdir/configure conftest.file" \
3439 && test "$*" != "X conftest.file $srcdir/configure"; then
3441 # If neither matched, then we have a broken ls. This can happen
3442 # if, for instance, CONFIG_SHELL is bash and it inherits a
3443 # broken ls alias from the environment. This has actually
3444 # happened. Such a system could not be considered "sane".
3445 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3446 alias in your environment" "$LINENO" 5
3449 test "$2" = conftest.file
3451 then
3452 # Ok.
3454 else
3455 as_fn_error "newly created file is older than distributed files!
3456 Check your system clock" "$LINENO" 5
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3459 $as_echo "yes" >&6; }
3460 test "$program_prefix" != NONE &&
3461 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3462 # Use a double $ so make ignores it.
3463 test "$program_suffix" != NONE &&
3464 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3465 # Double any \ or $.
3466 # By default was `s,x,x', remove it if useless.
3467 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3468 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3470 # expand $ac_aux_dir to an absolute path
3471 am_aux_dir=`cd $ac_aux_dir && pwd`
3473 if test x"${MISSING+set}" != xset; then
3474 case $am_aux_dir in
3475 *\ * | *\ *)
3476 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3478 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3479 esac
3481 # Use eval to expand $SHELL
3482 if eval "$MISSING --run true"; then
3483 am_missing_run="$MISSING --run "
3484 else
3485 am_missing_run=
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3487 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3490 if test x"${install_sh}" != xset; then
3491 case $am_aux_dir in
3492 *\ * | *\ *)
3493 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3495 install_sh="\${SHELL} $am_aux_dir/install-sh"
3496 esac
3499 # Installed binaries are usually stripped using `strip' when the user
3500 # run `make install-strip'. However `strip' might not be the right
3501 # tool to use in cross-compilation environments, therefore Automake
3502 # will honor the `STRIP' environment variable to overrule this program.
3503 if test "$cross_compiling" != no; then
3504 if test -n "$ac_tool_prefix"; then
3505 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3506 set dummy ${ac_tool_prefix}strip; ac_word=$2
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 $as_echo_n "checking for $ac_word... " >&6; }
3509 if test "${ac_cv_prog_STRIP+set}" = set; then :
3510 $as_echo_n "(cached) " >&6
3511 else
3512 if test -n "$STRIP"; then
3513 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3514 else
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 for as_dir in $PATH
3518 IFS=$as_save_IFS
3519 test -z "$as_dir" && as_dir=.
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3522 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 break 2
3526 done
3527 done
3528 IFS=$as_save_IFS
3532 STRIP=$ac_cv_prog_STRIP
3533 if test -n "$STRIP"; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3535 $as_echo "$STRIP" >&6; }
3536 else
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538 $as_echo "no" >&6; }
3543 if test -z "$ac_cv_prog_STRIP"; then
3544 ac_ct_STRIP=$STRIP
3545 # Extract the first word of "strip", so it can be a program name with args.
3546 set dummy strip; ac_word=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3550 $as_echo_n "(cached) " >&6
3551 else
3552 if test -n "$ac_ct_STRIP"; then
3553 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3554 else
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH
3558 IFS=$as_save_IFS
3559 test -z "$as_dir" && as_dir=.
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3562 ac_cv_prog_ac_ct_STRIP="strip"
3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 break 2
3566 done
3567 done
3568 IFS=$as_save_IFS
3572 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3573 if test -n "$ac_ct_STRIP"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3575 $as_echo "$ac_ct_STRIP" >&6; }
3576 else
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3581 if test "x$ac_ct_STRIP" = x; then
3582 STRIP=":"
3583 else
3584 case $cross_compiling:$ac_tool_warned in
3585 yes:)
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3588 ac_tool_warned=yes ;;
3589 esac
3590 STRIP=$ac_ct_STRIP
3592 else
3593 STRIP="$ac_cv_prog_STRIP"
3597 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3600 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3601 if test -z "$MKDIR_P"; then
3602 if test "${ac_cv_path_mkdir+set}" = set; then :
3603 $as_echo_n "(cached) " >&6
3604 else
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3608 IFS=$as_save_IFS
3609 test -z "$as_dir" && as_dir=.
3610 for ac_prog in mkdir gmkdir; do
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3613 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3614 'mkdir (GNU coreutils) '* | \
3615 'mkdir (coreutils) '* | \
3616 'mkdir (fileutils) '4.1*)
3617 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3618 break 3;;
3619 esac
3620 done
3621 done
3622 done
3623 IFS=$as_save_IFS
3627 test -d ./--version && rmdir ./--version
3628 if test "${ac_cv_path_mkdir+set}" = set; then
3629 MKDIR_P="$ac_cv_path_mkdir -p"
3630 else
3631 # As a last resort, use the slow shell script. Don't cache a
3632 # value for MKDIR_P within a source directory, because that will
3633 # break other packages using the cache if that directory is
3634 # removed, or if the value is a relative name.
3635 MKDIR_P="$ac_install_sh -d"
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3639 $as_echo "$MKDIR_P" >&6; }
3642 mkdir_p="$MKDIR_P"
3643 case $mkdir_p in
3644 [\\/$]* | ?:[\\/]*) ;;
3645 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3646 esac
3648 for ac_prog in gawk mawk nawk awk
3650 # Extract the first word of "$ac_prog", so it can be a program name with args.
3651 set dummy $ac_prog; ac_word=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if test "${ac_cv_prog_AWK+set}" = set; then :
3655 $as_echo_n "(cached) " >&6
3656 else
3657 if test -n "$AWK"; then
3658 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3667 ac_cv_prog_AWK="$ac_prog"
3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 break 2
3671 done
3672 done
3673 IFS=$as_save_IFS
3677 AWK=$ac_cv_prog_AWK
3678 if test -n "$AWK"; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3680 $as_echo "$AWK" >&6; }
3681 else
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3687 test -n "$AWK" && break
3688 done
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3691 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3692 set x ${MAKE-make}
3693 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3694 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3695 $as_echo_n "(cached) " >&6
3696 else
3697 cat >conftest.make <<\_ACEOF
3698 SHELL = /bin/sh
3699 all:
3700 @echo '@@@%%%=$(MAKE)=@@@%%%'
3701 _ACEOF
3702 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3703 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3704 *@@@%%%=?*=@@@%%%*)
3705 eval ac_cv_prog_make_${ac_make}_set=yes;;
3707 eval ac_cv_prog_make_${ac_make}_set=no;;
3708 esac
3709 rm -f conftest.make
3711 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3713 $as_echo "yes" >&6; }
3714 SET_MAKE=
3715 else
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 $as_echo "no" >&6; }
3718 SET_MAKE="MAKE=${MAKE-make}"
3721 rm -rf .tst 2>/dev/null
3722 mkdir .tst 2>/dev/null
3723 if test -d .tst; then
3724 am__leading_dot=.
3725 else
3726 am__leading_dot=_
3728 rmdir .tst 2>/dev/null
3730 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3731 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3732 # is not polluted with repeated "-I."
3733 am__isrc=' -I$(srcdir)'
3734 # test to see if srcdir already configured
3735 if test -f $srcdir/config.status; then
3736 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3740 # test whether we have cygpath
3741 if test -z "$CYGPATH_W"; then
3742 if (cygpath --version) >/dev/null 2>/dev/null; then
3743 CYGPATH_W='cygpath -w'
3744 else
3745 CYGPATH_W=echo
3750 # Define the identity of the package.
3751 PACKAGE='emacs'
3752 VERSION='24.0.90'
3755 cat >>confdefs.h <<_ACEOF
3756 #define PACKAGE "$PACKAGE"
3757 _ACEOF
3760 cat >>confdefs.h <<_ACEOF
3761 #define VERSION "$VERSION"
3762 _ACEOF
3764 # Some tools Automake needs.
3766 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3769 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3772 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3775 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3778 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3780 # We need awk for the "check" target. The system "awk" is bad on
3781 # some platforms.
3782 # Always define AMTAR for backward compatibility.
3784 AMTAR=${AMTAR-"${am_missing_run}tar"}
3786 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3795 lispdir='${datadir}/emacs/${version}/lisp'
3796 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3797 '${datadir}/emacs/site-lisp'
3798 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3799 etcdir='${datadir}/emacs/${version}/etc'
3800 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3801 docdir='${datadir}/emacs/${version}/etc'
3802 gamedir='${localstatedir}/games/emacs'
3807 # Check whether --with-pop was given.
3808 if test "${with_pop+set}" = set; then :
3809 withval=$with_pop;
3810 else
3811 with_pop=yes
3814 if test "$with_pop" = yes; then
3815 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3820 # Check whether --with-kerberos was given.
3821 if test "${with_kerberos+set}" = set; then :
3822 withval=$with_kerberos;
3823 else
3824 with_kerberos=no
3827 if test "$with_kerberos" != no; then
3828 $as_echo "#define KERBEROS 1" >>confdefs.h
3833 # Check whether --with-kerberos5 was given.
3834 if test "${with_kerberos5+set}" = set; then :
3835 withval=$with_kerberos5;
3836 else
3837 with_kerberos5=no
3840 if test "${with_kerberos5}" != no; then
3841 if test "${with_kerberos}" = no; then
3842 with_kerberos=yes
3843 $as_echo "#define KERBEROS 1" >>confdefs.h
3847 $as_echo "#define KERBEROS5 1" >>confdefs.h
3852 # Check whether --with-hesiod was given.
3853 if test "${with_hesiod+set}" = set; then :
3854 withval=$with_hesiod;
3855 else
3856 with_hesiod=no
3859 if test "$with_hesiod" != no; then
3861 $as_echo "#define HESIOD 1" >>confdefs.h
3866 # Check whether --with-mmdf was given.
3867 if test "${with_mmdf+set}" = set; then :
3868 withval=$with_mmdf;
3869 else
3870 with_mmdf=no
3873 if test "$with_mmdf" != no; then
3875 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3880 # Check whether --with-mail-unlink was given.
3881 if test "${with_mail_unlink+set}" = set; then :
3882 withval=$with_mail_unlink;
3883 else
3884 with_mail_unlink=no
3887 if test "$with_mail_unlink" != no; then
3889 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3894 # Check whether --with-mailhost was given.
3895 if test "${with_mailhost+set}" = set; then :
3896 withval=$with_mailhost;
3897 cat >>confdefs.h <<_ACEOF
3898 #define MAILHOST "$withval"
3899 _ACEOF
3905 # Check whether --with-sound was given.
3906 if test "${with_sound+set}" = set; then :
3907 withval=$with_sound;
3908 else
3909 with_sound=yes
3914 # Check whether --with-sync-input was given.
3915 if test "${with_sync_input+set}" = set; then :
3916 withval=$with_sync_input;
3917 else
3918 with_sync_input=yes
3921 if test "$with_sync_input" = yes; then
3923 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3928 # Check whether --with-x-toolkit was given.
3929 if test "${with_x_toolkit+set}" = set; then :
3930 withval=$with_x_toolkit; case "${withval}" in
3931 y | ye | yes ) val=gtk ;;
3932 n | no ) val=no ;;
3933 l | lu | luc | luci | lucid ) val=lucid ;;
3934 a | at | ath | athe | athen | athena ) val=athena ;;
3935 m | mo | mot | moti | motif ) val=motif ;;
3936 g | gt | gtk ) val=gtk ;;
3937 gtk3 ) val=gtk3 ;;
3939 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3940 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3941 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3943 esac
3944 with_x_toolkit=$val
3950 # Check whether --with-wide-int was given.
3951 if test "${with_wide_int+set}" = set; then :
3952 withval=$with_wide_int;
3953 else
3954 with_wide_int=no
3957 if test "$with_wide_int" = yes; then
3959 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3964 # Check whether --with-xpm was given.
3965 if test "${with_xpm+set}" = set; then :
3966 withval=$with_xpm;
3967 else
3968 with_xpm=yes
3972 # Check whether --with-jpeg was given.
3973 if test "${with_jpeg+set}" = set; then :
3974 withval=$with_jpeg;
3975 else
3976 with_jpeg=yes
3980 # Check whether --with-tiff was given.
3981 if test "${with_tiff+set}" = set; then :
3982 withval=$with_tiff;
3983 else
3984 with_tiff=yes
3988 # Check whether --with-gif was given.
3989 if test "${with_gif+set}" = set; then :
3990 withval=$with_gif;
3991 else
3992 with_gif=yes
3996 # Check whether --with-png was given.
3997 if test "${with_png+set}" = set; then :
3998 withval=$with_png;
3999 else
4000 with_png=yes
4004 # Check whether --with-rsvg was given.
4005 if test "${with_rsvg+set}" = set; then :
4006 withval=$with_rsvg;
4007 else
4008 with_rsvg=yes
4012 # Check whether --with-xml2 was given.
4013 if test "${with_xml2+set}" = set; then :
4014 withval=$with_xml2;
4015 else
4016 with_xml2=yes
4020 # Check whether --with-imagemagick was given.
4021 if test "${with_imagemagick+set}" = set; then :
4022 withval=$with_imagemagick;
4023 else
4024 with_imagemagick=yes
4029 # Check whether --with-xft was given.
4030 if test "${with_xft+set}" = set; then :
4031 withval=$with_xft;
4032 else
4033 with_xft=yes
4037 # Check whether --with-libotf was given.
4038 if test "${with_libotf+set}" = set; then :
4039 withval=$with_libotf;
4040 else
4041 with_libotf=yes
4045 # Check whether --with-m17n-flt was given.
4046 if test "${with_m17n_flt+set}" = set; then :
4047 withval=$with_m17n_flt;
4048 else
4049 with_m17n_flt=yes
4054 # Check whether --with-toolkit-scroll-bars was given.
4055 if test "${with_toolkit_scroll_bars+set}" = set; then :
4056 withval=$with_toolkit_scroll_bars;
4057 else
4058 with_toolkit_scroll_bars=yes
4062 # Check whether --with-xaw3d was given.
4063 if test "${with_xaw3d+set}" = set; then :
4064 withval=$with_xaw3d;
4065 else
4066 with_xaw3d=yes
4070 # Check whether --with-xim was given.
4071 if test "${with_xim+set}" = set; then :
4072 withval=$with_xim;
4073 else
4074 with_xim=yes
4078 # Check whether --with-ns was given.
4079 if test "${with_ns+set}" = set; then :
4080 withval=$with_ns;
4081 else
4082 with_ns=no
4087 # Check whether --with-gpm was given.
4088 if test "${with_gpm+set}" = set; then :
4089 withval=$with_gpm;
4090 else
4091 with_gpm=yes
4095 # Check whether --with-dbus was given.
4096 if test "${with_dbus+set}" = set; then :
4097 withval=$with_dbus;
4098 else
4099 with_dbus=yes
4103 # Check whether --with-gconf was given.
4104 if test "${with_gconf+set}" = set; then :
4105 withval=$with_gconf;
4106 else
4107 with_gconf=yes
4111 # Check whether --with-selinux was given.
4112 if test "${with_selinux+set}" = set; then :
4113 withval=$with_selinux;
4114 else
4115 with_selinux=yes
4119 # Check whether --with-gnutls was given.
4120 if test "${with_gnutls+set}" = set; then :
4121 withval=$with_gnutls;
4122 else
4123 with_gnutls=yes
4127 ## For the times when you want to build Emacs but don't have
4128 ## a suitable makeinfo, and can live without the manuals.
4130 # Check whether --with-makeinfo was given.
4131 if test "${with_makeinfo+set}" = set; then :
4132 withval=$with_makeinfo;
4133 else
4134 with_makeinfo=yes
4138 ## This is an option because I do not know if all info/man support
4139 ## compressed files, nor how to test if they do so.
4141 # Check whether --with-compress-info was given.
4142 if test "${with_compress_info+set}" = set; then :
4143 withval=$with_compress_info;
4144 else
4145 with_compress_info=yes
4148 if test $with_compress_info = yes; then
4149 GZIP_INFO=yes
4150 else
4151 GZIP_INFO=
4156 # Check whether --with-pkg-config-prog was given.
4157 if test "${with_pkg_config_prog+set}" = set; then :
4158 withval=$with_pkg_config_prog;
4161 if test "X${with_pkg_config_prog}" != X; then
4162 if test "${with_pkg_config_prog}" != yes; then
4163 PKG_CONFIG="${with_pkg_config_prog}"
4167 CRT_DIR=
4169 # Check whether --with-crt-dir was given.
4170 if test "${with_crt_dir+set}" = set; then :
4171 withval=$with_crt_dir;
4174 CRT_DIR="${with_crt_dir}"
4177 # Check whether --with-gameuser was given.
4178 if test "${with_gameuser+set}" = set; then :
4179 withval=$with_gameuser;
4182 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4183 && gameuser="${with_gameuser}"
4184 test "X$gameuser" = X && gameuser=games
4187 # Check whether --with-gnustep-conf was given.
4188 if test "${with_gnustep_conf+set}" = set; then :
4189 withval=$with_gnustep_conf;
4192 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4193 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4194 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4195 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4197 # Check whether --enable-ns-self-contained was given.
4198 if test "${enable_ns_self_contained+set}" = set; then :
4199 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4200 else
4201 EN_NS_SELF_CONTAINED=yes
4205 # Check whether --enable-asserts was given.
4206 if test "${enable_asserts+set}" = set; then :
4207 enableval=$enable_asserts; USE_XASSERTS=$enableval
4208 else
4209 USE_XASSERTS=no
4213 # Check whether --enable-maintainer-mode was given.
4214 if test "${enable_maintainer_mode+set}" = set; then :
4215 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4216 else
4217 USE_MAINTAINER_MODE=yes
4220 if test $USE_MAINTAINER_MODE = yes; then
4221 MAINT=
4222 else
4223 MAINT=#
4227 # Check whether --enable-locallisppath was given.
4228 if test "${enable_locallisppath+set}" = set; then :
4229 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4230 locallisppath=
4231 elif test "${enableval}" != "yes"; then
4232 locallisppath=${enableval}
4237 # Check whether --enable-checking was given.
4238 if test "${enable_checking+set}" = set; then :
4239 enableval=$enable_checking; ac_checking_flags="${enableval}"
4242 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4243 for check in $ac_checking_flags
4245 case $check in
4246 # these set all the flags to specific states
4247 yes) ac_enable_checking=1 ;;
4248 no) ac_enable_checking= ;
4249 ac_gc_check_stringbytes= ;
4250 ac_gc_check_string_overrun= ;
4251 ac_gc_check_string_free_list= ;
4252 ac_xmalloc_overrun= ;
4253 ac_gc_check_cons_list= ;;
4254 all) ac_enable_checking=1 ;
4255 ac_gc_check_stringbytes=1 ;
4256 ac_gc_check_string_overrun=1 ;
4257 ac_gc_check_string_free_list=1 ;
4258 ac_xmalloc_overrun=1 ;
4259 ac_gc_check_cons_list=1 ;;
4260 # these enable particular checks
4261 stringbytes) ac_gc_check_stringbytes=1 ;;
4262 stringoverrun) ac_gc_check_string_overrun=1 ;;
4263 stringfreelist) ac_gc_check_string_free_list=1 ;;
4264 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4265 conslist) ac_gc_check_cons_list=1 ;;
4266 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4267 esac
4268 done
4269 IFS="$ac_save_IFS"
4271 if test x$ac_enable_checking != x ; then
4273 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4276 if test x$ac_gc_check_stringbytes != x ; then
4278 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4281 if test x$ac_gc_check_string_overrun != x ; then
4283 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4286 if test x$ac_gc_check_string_free_list != x ; then
4288 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4291 if test x$ac_xmalloc_overrun != x ; then
4293 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4296 if test x$ac_gc_check_cons_list != x ; then
4298 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4302 # Check whether --enable-use-lisp-union-type was given.
4303 if test "${enable_use_lisp_union_type+set}" = set; then :
4304 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4306 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4313 # Check whether --enable-profiling was given.
4314 if test "${enable_profiling+set}" = set; then :
4315 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4318 if test x$ac_enable_profiling != x ; then
4319 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4320 else
4321 PROFILING_CFLAGS=
4325 # Check whether --enable-autodepend was given.
4326 if test "${enable_autodepend+set}" = set; then :
4327 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4328 else
4329 ac_enable_autodepend=yes
4333 #### Make srcdir absolute, if it isn't already. It's important to
4334 #### avoid running the path through pwd unnecessarily, since pwd can
4335 #### give you automounter prefixes, which can go away. We do all this
4336 #### so Emacs can find its files when run uninstalled.
4337 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4338 unset CDPATH
4339 case "${srcdir}" in
4340 /* ) ;;
4342 ## We may be able to use the $PWD environment variable to make this
4343 ## absolute. But sometimes PWD is inaccurate.
4344 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4345 ## but that tested only for a well-formed and valid PWD,
4346 ## it did not object when PWD was well-formed and valid but just wrong.
4347 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4348 then
4349 srcdir="$PWD"
4350 else
4351 srcdir="`(cd ${srcdir}; pwd)`"
4354 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4355 esac
4357 #### Given the configuration name, set machfile and opsysfile to the
4358 #### names of the m/*.h and s/*.h files we should use.
4360 ### Canonicalize the configuration name.
4362 # Make sure we can run config.sub.
4363 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4364 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4367 $as_echo_n "checking build system type... " >&6; }
4368 if test "${ac_cv_build+set}" = set; then :
4369 $as_echo_n "(cached) " >&6
4370 else
4371 ac_build_alias=$build_alias
4372 test "x$ac_build_alias" = x &&
4373 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4374 test "x$ac_build_alias" = x &&
4375 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4376 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4377 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4381 $as_echo "$ac_cv_build" >&6; }
4382 case $ac_cv_build in
4383 *-*-*) ;;
4384 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4385 esac
4386 build=$ac_cv_build
4387 ac_save_IFS=$IFS; IFS='-'
4388 set x $ac_cv_build
4389 shift
4390 build_cpu=$1
4391 build_vendor=$2
4392 shift; shift
4393 # Remember, the first character of IFS is used to create $*,
4394 # except with old shells:
4395 build_os=$*
4396 IFS=$ac_save_IFS
4397 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4401 $as_echo_n "checking host system type... " >&6; }
4402 if test "${ac_cv_host+set}" = set; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 if test "x$host_alias" = x; then
4406 ac_cv_host=$ac_cv_build
4407 else
4408 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4409 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4414 $as_echo "$ac_cv_host" >&6; }
4415 case $ac_cv_host in
4416 *-*-*) ;;
4417 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4418 esac
4419 host=$ac_cv_host
4420 ac_save_IFS=$IFS; IFS='-'
4421 set x $ac_cv_host
4422 shift
4423 host_cpu=$1
4424 host_vendor=$2
4425 shift; shift
4426 # Remember, the first character of IFS is used to create $*,
4427 # except with old shells:
4428 host_os=$*
4429 IFS=$ac_save_IFS
4430 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4433 canonical=$host
4434 configuration=${host_alias-${build_alias-$host}}
4438 ### If you add support for a new configuration, add code to this
4439 ### switch statement to recognize your configuration name and select
4440 ### the appropriate operating system and machine description files.
4442 ### You would hope that you could choose an m/*.h file pretty much
4443 ### based on the machine portion of the configuration name, and an s/*.h
4444 ### file based on the operating system portion. However, it turns out
4445 ### that each m/*.h file is pretty manufacturer-specific - for
4446 ### example mips.h is MIPS
4447 ### So we basically have to have a special case for each
4448 ### configuration name.
4450 ### As far as handling version numbers on operating systems is
4451 ### concerned, make sure things will fail in a fixable way. If
4452 ### /etc/MACHINES doesn't say anything about version numbers, be
4453 ### prepared to handle anything reasonably. If version numbers
4454 ### matter, be sure /etc/MACHINES says something about it.
4456 machine='' opsys='' unported=no
4457 case "${canonical}" in
4459 ## GNU/Linux and similar ports
4460 *-*-linux* )
4461 opsys=gnu-linux
4462 case ${canonical} in
4463 alpha*) machine=alpha ;;
4464 s390-*) machine=ibms390 ;;
4465 s390x-*) machine=ibms390x ;;
4466 powerpc*) machine=macppc ;;
4467 sparc*) machine=sparc ;;
4468 ia64*) machine=ia64 ;;
4469 m68k*) machine=m68k ;;
4470 x86_64*) machine=amdx86-64 ;;
4471 esac
4474 ## FreeBSD ports
4475 *-*-freebsd* )
4476 opsys=freebsd
4477 case "${canonical}" in
4478 alpha*) machine=alpha ;;
4479 amd64-*|x86_64-*) machine=amdx86-64 ;;
4480 ia64-*) machine=ia64 ;;
4481 i[3456]86-*) machine=intel386 ;;
4482 powerpc-*) machine=macppc ;;
4483 sparc-*) machine=sparc ;;
4484 sparc64-*) machine=sparc ;;
4485 esac
4488 ## FreeBSD kernel + glibc based userland
4489 *-*-kfreebsd*gnu* )
4490 opsys=gnu-kfreebsd
4491 case "${canonical}" in
4492 alpha*) machine=alpha ;;
4493 amd64-*|x86_64-*) machine=amdx86-64 ;;
4494 ia64-*) machine=ia64 ;;
4495 i[3456]86-*) machine=intel386 ;;
4496 powerpc-*) machine=macppc ;;
4497 sparc-*) machine=sparc ;;
4498 sparc64-*) machine=sparc ;;
4499 esac
4502 ## NetBSD ports
4503 *-*-netbsd* )
4504 opsys=netbsd
4505 case "${canonical}" in
4506 alpha*) machine=alpha ;;
4507 x86_64-*) machine=amdx86-64 ;;
4508 i[3456]86-*) machine=intel386 ;;
4509 m68k-*) machine=m68k ;;
4510 powerpc-*) machine=macppc ;;
4511 sparc*-) machine=sparc ;;
4512 vax-*) machine=vax ;;
4513 esac
4516 ## OpenBSD ports
4517 *-*-openbsd* )
4518 opsys=openbsd
4519 case "${canonical}" in
4520 alpha*) machine=alpha ;;
4521 x86_64-*) machine=amdx86-64 ;;
4522 i386-*) machine=intel386 ;;
4523 powerpc-*) machine=macppc ;;
4524 sparc*) machine=sparc ;;
4525 vax-*) machine=vax ;;
4526 esac
4529 ## Apple Darwin / Mac OS X
4530 *-apple-darwin* )
4531 case "${canonical}" in
4532 i[3456]86-* ) machine=intel386 ;;
4533 powerpc-* ) machine=macppc ;;
4534 x86_64-* ) machine=amdx86-64 ;;
4535 * ) unported=yes ;;
4536 esac
4537 opsys=darwin
4538 # Define CPP as follows to make autoconf work correctly.
4539 CPP="${CC-cc} -E -no-cpp-precomp"
4540 # Use fink packages if available.
4541 if test -d /sw/include && test -d /sw/lib; then
4542 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4543 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4544 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4548 ## HP 9000 series 700 and 800, running HP/UX
4549 hppa*-hp-hpux10.2* )
4550 opsys=hpux10-20
4552 hppa*-hp-hpux1[1-9]* )
4553 opsys=hpux11
4554 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4557 ## IBM machines
4558 rs6000-ibm-aix4.[23]* )
4559 machine=ibmrs6000 opsys=aix4-2
4561 powerpc-ibm-aix4.[23]* )
4562 machine=ibmrs6000 opsys=aix4-2
4564 rs6000-ibm-aix[56]* )
4565 machine=ibmrs6000 opsys=aix4-2
4567 powerpc-ibm-aix[56]* )
4568 machine=ibmrs6000 opsys=aix4-2
4571 ## Silicon Graphics machines
4572 ## Iris 4D
4573 mips-sgi-irix6.5 )
4574 machine=iris4d opsys=irix6-5
4575 # Without defining _LANGUAGE_C, things get masked out in the headers
4576 # so that, for instance, grepping for `free' in stdlib.h fails and
4577 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4578 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4579 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4582 ## Suns
4583 *-sun-solaris* \
4584 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4585 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4586 case "${canonical}" in
4587 i[3456]86-*-* ) machine=intel386 ;;
4588 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4589 sparc* ) machine=sparc ;;
4590 * ) unported=yes ;;
4591 esac
4592 case "${canonical}" in
4593 *-sunos5.6* | *-solaris2.6* )
4594 opsys=sol2-6
4595 NON_GNU_CPP=/usr/ccs/lib/cpp
4596 RANLIB="ar -ts"
4598 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4599 opsys=sol2-6
4600 emacs_check_sunpro_c=yes
4601 NON_GNU_CPP=/usr/ccs/lib/cpp
4603 *-sunos5* | *-solaris* )
4604 opsys=sol2-10
4605 emacs_check_sunpro_c=yes
4606 NON_GNU_CPP=/usr/ccs/lib/cpp
4608 esac
4609 ## Watch out for a compiler that we know will not work.
4610 case "${canonical}" in
4611 *-solaris* | *-sunos5* )
4612 if [ "x$CC" = x/usr/ucb/cc ]; then
4613 ## /usr/ucb/cc doesn't work;
4614 ## we should find some other compiler that does work.
4615 unset CC
4618 *) ;;
4619 esac
4622 ## Intel 386 machines where we don't care about the manufacturer.
4623 i[3456]86-*-* )
4624 machine=intel386
4625 case "${canonical}" in
4626 *-cygwin ) opsys=cygwin ;;
4627 *-darwin* ) opsys=darwin
4628 CPP="${CC-cc} -E -no-cpp-precomp"
4630 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4631 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4632 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4633 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4634 esac
4638 unported=yes
4640 esac
4642 ### If the code above didn't choose an operating system, just choose
4643 ### an operating system based on the configuration name. You really
4644 ### only want to use this when you have no idea what the right
4645 ### operating system is; if you know what operating systems a machine
4646 ### runs, it's cleaner to make it explicit in the case statement
4647 ### above.
4648 if test x"${opsys}" = x; then
4649 case "${canonical}" in
4650 *-gnu* ) opsys=gnu ;;
4652 unported=yes
4654 esac
4659 if test $unported = yes; then
4660 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4661 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4664 if test -n "$machine"; then
4665 machfile="m/${machine}.h"
4666 else
4667 machfile=
4669 opsysfile="s/${opsys}.h"
4672 #### Choose a compiler.
4673 test -n "$CC" && cc_specified=yes
4675 # Save the value of CFLAGS that the user specified.
4676 SPECIFIED_CFLAGS="$CFLAGS"
4678 ac_ext=c
4679 ac_cpp='$CPP $CPPFLAGS'
4680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4683 if test -n "$ac_tool_prefix"; then
4684 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4685 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if test "${ac_cv_prog_CC+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 if test -n "$CC"; then
4692 ac_cv_prog_CC="$CC" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 break 2
4705 done
4706 done
4707 IFS=$as_save_IFS
4711 CC=$ac_cv_prog_CC
4712 if test -n "$CC"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4714 $as_echo "$CC" >&6; }
4715 else
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4722 if test -z "$ac_cv_prog_CC"; then
4723 ac_ct_CC=$CC
4724 # Extract the first word of "gcc", so it can be a program name with args.
4725 set dummy gcc; ac_word=$2
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727 $as_echo_n "checking for $ac_word... " >&6; }
4728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4729 $as_echo_n "(cached) " >&6
4730 else
4731 if test -n "$ac_ct_CC"; then
4732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4733 else
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4737 IFS=$as_save_IFS
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741 ac_cv_prog_ac_ct_CC="gcc"
4742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 break 2
4745 done
4746 done
4747 IFS=$as_save_IFS
4751 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4752 if test -n "$ac_ct_CC"; then
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4754 $as_echo "$ac_ct_CC" >&6; }
4755 else
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4760 if test "x$ac_ct_CC" = x; then
4761 CC=""
4762 else
4763 case $cross_compiling:$ac_tool_warned in
4764 yes:)
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4767 ac_tool_warned=yes ;;
4768 esac
4769 CC=$ac_ct_CC
4771 else
4772 CC="$ac_cv_prog_CC"
4775 if test -z "$CC"; then
4776 if test -n "$ac_tool_prefix"; then
4777 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4778 set dummy ${ac_tool_prefix}cc; ac_word=$2
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780 $as_echo_n "checking for $ac_word... " >&6; }
4781 if test "${ac_cv_prog_CC+set}" = set; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 if test -n "$CC"; then
4785 ac_cv_prog_CC="$CC" # Let the user override the test.
4786 else
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4794 ac_cv_prog_CC="${ac_tool_prefix}cc"
4795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 break 2
4798 done
4799 done
4800 IFS=$as_save_IFS
4804 CC=$ac_cv_prog_CC
4805 if test -n "$CC"; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4807 $as_echo "$CC" >&6; }
4808 else
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4816 if test -z "$CC"; then
4817 # Extract the first word of "cc", so it can be a program name with args.
4818 set dummy cc; ac_word=$2
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4820 $as_echo_n "checking for $ac_word... " >&6; }
4821 if test "${ac_cv_prog_CC+set}" = set; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 if test -n "$CC"; then
4825 ac_cv_prog_CC="$CC" # Let the user override the test.
4826 else
4827 ac_prog_rejected=no
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4836 ac_prog_rejected=yes
4837 continue
4839 ac_cv_prog_CC="cc"
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 break 2
4843 done
4844 done
4845 IFS=$as_save_IFS
4847 if test $ac_prog_rejected = yes; then
4848 # We found a bogon in the path, so make sure we never use it.
4849 set dummy $ac_cv_prog_CC
4850 shift
4851 if test $# != 0; then
4852 # We chose a different compiler from the bogus one.
4853 # However, it has the same basename, so the bogon will be chosen
4854 # first if we set CC to just the basename; use the full file name.
4855 shift
4856 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4861 CC=$ac_cv_prog_CC
4862 if test -n "$CC"; then
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4864 $as_echo "$CC" >&6; }
4865 else
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867 $as_echo "no" >&6; }
4872 if test -z "$CC"; then
4873 if test -n "$ac_tool_prefix"; then
4874 for ac_prog in cl.exe
4876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if test "${ac_cv_prog_CC+set}" = set; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 if test -n "$CC"; then
4884 ac_cv_prog_CC="$CC" # Let the user override the test.
4885 else
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4889 IFS=$as_save_IFS
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4893 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 break 2
4897 done
4898 done
4899 IFS=$as_save_IFS
4903 CC=$ac_cv_prog_CC
4904 if test -n "$CC"; then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4906 $as_echo "$CC" >&6; }
4907 else
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909 $as_echo "no" >&6; }
4913 test -n "$CC" && break
4914 done
4916 if test -z "$CC"; then
4917 ac_ct_CC=$CC
4918 for ac_prog in cl.exe
4920 # Extract the first word of "$ac_prog", so it can be a program name with args.
4921 set dummy $ac_prog; ac_word=$2
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4923 $as_echo_n "checking for $ac_word... " >&6; }
4924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 if test -n "$ac_ct_CC"; then
4928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4929 else
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH
4933 IFS=$as_save_IFS
4934 test -z "$as_dir" && as_dir=.
4935 for ac_exec_ext in '' $ac_executable_extensions; do
4936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4937 ac_cv_prog_ac_ct_CC="$ac_prog"
4938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4939 break 2
4941 done
4942 done
4943 IFS=$as_save_IFS
4947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4948 if test -n "$ac_ct_CC"; then
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4950 $as_echo "$ac_ct_CC" >&6; }
4951 else
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953 $as_echo "no" >&6; }
4957 test -n "$ac_ct_CC" && break
4958 done
4960 if test "x$ac_ct_CC" = x; then
4961 CC=""
4962 else
4963 case $cross_compiling:$ac_tool_warned in
4964 yes:)
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4967 ac_tool_warned=yes ;;
4968 esac
4969 CC=$ac_ct_CC
4976 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4978 as_fn_error "no acceptable C compiler found in \$PATH
4979 See \`config.log' for more details." "$LINENO" 5; }
4981 # Provide some information about the compiler.
4982 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4983 set X $ac_compile
4984 ac_compiler=$2
4985 for ac_option in --version -v -V -qversion; do
4986 { { ac_try="$ac_compiler $ac_option >&5"
4987 case "(($ac_try" in
4988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989 *) ac_try_echo=$ac_try;;
4990 esac
4991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4992 $as_echo "$ac_try_echo"; } >&5
4993 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4994 ac_status=$?
4995 if test -s conftest.err; then
4996 sed '10a\
4997 ... rest of stderr output deleted ...
4998 10q' conftest.err >conftest.er1
4999 cat conftest.er1 >&5
5001 rm -f conftest.er1 conftest.err
5002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5003 test $ac_status = 0; }
5004 done
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5010 main ()
5014 return 0;
5016 _ACEOF
5017 ac_clean_files_save=$ac_clean_files
5018 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5019 # Try to create an executable without -o first, disregard a.out.
5020 # It will help us diagnose broken compilers, and finding out an intuition
5021 # of exeext.
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5023 $as_echo_n "checking whether the C compiler works... " >&6; }
5024 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5026 # The possible output files:
5027 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5029 ac_rmfiles=
5030 for ac_file in $ac_files
5032 case $ac_file in
5033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5034 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5035 esac
5036 done
5037 rm -f $ac_rmfiles
5039 if { { ac_try="$ac_link_default"
5040 case "(($ac_try" in
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5043 esac
5044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5045 $as_echo "$ac_try_echo"; } >&5
5046 (eval "$ac_link_default") 2>&5
5047 ac_status=$?
5048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5049 test $ac_status = 0; }; then :
5050 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5051 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5052 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5053 # so that the user can short-circuit this test for compilers unknown to
5054 # Autoconf.
5055 for ac_file in $ac_files ''
5057 test -f "$ac_file" || continue
5058 case $ac_file in
5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5061 [ab].out )
5062 # We found the default executable, but exeext='' is most
5063 # certainly right.
5064 break;;
5065 *.* )
5066 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5067 then :; else
5068 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5070 # We set ac_cv_exeext here because the later test for it is not
5071 # safe: cross compilers may not add the suffix if given an `-o'
5072 # argument, so we may need to know it at that point already.
5073 # Even if this section looks crufty: it has the advantage of
5074 # actually working.
5075 break;;
5077 break;;
5078 esac
5079 done
5080 test "$ac_cv_exeext" = no && ac_cv_exeext=
5082 else
5083 ac_file=''
5085 if test -z "$ac_file"; then :
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5088 $as_echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5093 { as_fn_set_status 77
5094 as_fn_error "C compiler cannot create executables
5095 See \`config.log' for more details." "$LINENO" 5; }; }
5096 else
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5098 $as_echo "yes" >&6; }
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5101 $as_echo_n "checking for C compiler default output file name... " >&6; }
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5103 $as_echo "$ac_file" >&6; }
5104 ac_exeext=$ac_cv_exeext
5106 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5107 ac_clean_files=$ac_clean_files_save
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5109 $as_echo_n "checking for suffix of executables... " >&6; }
5110 if { { 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; }; then :
5121 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5122 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5123 # work properly (i.e., refer to `conftest.exe'), while it won't with
5124 # `rm'.
5125 for ac_file in conftest.exe conftest conftest.*; do
5126 test -f "$ac_file" || continue
5127 case $ac_file in
5128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5129 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5130 break;;
5131 * ) break;;
5132 esac
5133 done
5134 else
5135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5137 as_fn_error "cannot compute suffix of executables: cannot compile and link
5138 See \`config.log' for more details." "$LINENO" 5; }
5140 rm -f conftest conftest$ac_cv_exeext
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5142 $as_echo "$ac_cv_exeext" >&6; }
5144 rm -f conftest.$ac_ext
5145 EXEEXT=$ac_cv_exeext
5146 ac_exeext=$EXEEXT
5147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5148 /* end confdefs.h. */
5149 #include <stdio.h>
5151 main ()
5153 FILE *f = fopen ("conftest.out", "w");
5154 return ferror (f) || fclose (f) != 0;
5157 return 0;
5159 _ACEOF
5160 ac_clean_files="$ac_clean_files conftest.out"
5161 # Check that the compiler produces executables we can run. If not, either
5162 # the compiler is broken, or we cross compile.
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5164 $as_echo_n "checking whether we are cross compiling... " >&6; }
5165 if test "$cross_compiling" != yes; then
5166 { { ac_try="$ac_link"
5167 case "(($ac_try" in
5168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5169 *) ac_try_echo=$ac_try;;
5170 esac
5171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5172 $as_echo "$ac_try_echo"; } >&5
5173 (eval "$ac_link") 2>&5
5174 ac_status=$?
5175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5176 test $ac_status = 0; }
5177 if { ac_try='./conftest$ac_cv_exeext'
5178 { { case "(($ac_try" in
5179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180 *) ac_try_echo=$ac_try;;
5181 esac
5182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5183 $as_echo "$ac_try_echo"; } >&5
5184 (eval "$ac_try") 2>&5
5185 ac_status=$?
5186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5187 test $ac_status = 0; }; }; then
5188 cross_compiling=no
5189 else
5190 if test "$cross_compiling" = maybe; then
5191 cross_compiling=yes
5192 else
5193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5195 as_fn_error "cannot run C compiled programs.
5196 If you meant to cross compile, use \`--host'.
5197 See \`config.log' for more details." "$LINENO" 5; }
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5202 $as_echo "$cross_compiling" >&6; }
5204 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5205 ac_clean_files=$ac_clean_files_save
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5207 $as_echo_n "checking for suffix of object files... " >&6; }
5208 if test "${ac_cv_objext+set}" = set; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5215 main ()
5219 return 0;
5221 _ACEOF
5222 rm -f conftest.o conftest.obj
5223 if { { ac_try="$ac_compile"
5224 case "(($ac_try" in
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5227 esac
5228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5229 $as_echo "$ac_try_echo"; } >&5
5230 (eval "$ac_compile") 2>&5
5231 ac_status=$?
5232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5233 test $ac_status = 0; }; then :
5234 for ac_file in conftest.o conftest.obj conftest.*; do
5235 test -f "$ac_file" || continue;
5236 case $ac_file in
5237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5238 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5239 break;;
5240 esac
5241 done
5242 else
5243 $as_echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5248 as_fn_error "cannot compute suffix of object files: cannot compile
5249 See \`config.log' for more details." "$LINENO" 5; }
5251 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5254 $as_echo "$ac_cv_objext" >&6; }
5255 OBJEXT=$ac_cv_objext
5256 ac_objext=$OBJEXT
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5258 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5259 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5266 main ()
5268 #ifndef __GNUC__
5269 choke me
5270 #endif
5273 return 0;
5275 _ACEOF
5276 if ac_fn_c_try_compile "$LINENO"; then :
5277 ac_compiler_gnu=yes
5278 else
5279 ac_compiler_gnu=no
5281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5286 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5287 if test $ac_compiler_gnu = yes; then
5288 GCC=yes
5289 else
5290 GCC=
5292 ac_test_CFLAGS=${CFLAGS+set}
5293 ac_save_CFLAGS=$CFLAGS
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5295 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5296 if test "${ac_cv_prog_cc_g+set}" = set; then :
5297 $as_echo_n "(cached) " >&6
5298 else
5299 ac_save_c_werror_flag=$ac_c_werror_flag
5300 ac_c_werror_flag=yes
5301 ac_cv_prog_cc_g=no
5302 CFLAGS="-g"
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5307 main ()
5311 return 0;
5313 _ACEOF
5314 if ac_fn_c_try_compile "$LINENO"; then :
5315 ac_cv_prog_cc_g=yes
5316 else
5317 CFLAGS=""
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5322 main ()
5326 return 0;
5328 _ACEOF
5329 if ac_fn_c_try_compile "$LINENO"; then :
5331 else
5332 ac_c_werror_flag=$ac_save_c_werror_flag
5333 CFLAGS="-g"
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335 /* end confdefs.h. */
5338 main ()
5342 return 0;
5344 _ACEOF
5345 if ac_fn_c_try_compile "$LINENO"; then :
5346 ac_cv_prog_cc_g=yes
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353 ac_c_werror_flag=$ac_save_c_werror_flag
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5356 $as_echo "$ac_cv_prog_cc_g" >&6; }
5357 if test "$ac_test_CFLAGS" = set; then
5358 CFLAGS=$ac_save_CFLAGS
5359 elif test $ac_cv_prog_cc_g = yes; then
5360 if test "$GCC" = yes; then
5361 CFLAGS="-g -O2"
5362 else
5363 CFLAGS="-g"
5365 else
5366 if test "$GCC" = yes; then
5367 CFLAGS="-O2"
5368 else
5369 CFLAGS=
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5373 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5374 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
5376 else
5377 ac_cv_prog_cc_c89=no
5378 ac_save_CC=$CC
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5381 #include <stdarg.h>
5382 #include <stdio.h>
5383 #include <sys/types.h>
5384 #include <sys/stat.h>
5385 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5386 struct buf { int x; };
5387 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5388 static char *e (p, i)
5389 char **p;
5390 int i;
5392 return p[i];
5394 static char *f (char * (*g) (char **, int), char **p, ...)
5396 char *s;
5397 va_list v;
5398 va_start (v,p);
5399 s = g (p, va_arg (v,int));
5400 va_end (v);
5401 return s;
5404 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5405 function prototypes and stuff, but not '\xHH' hex character constants.
5406 These don't provoke an error unfortunately, instead are silently treated
5407 as 'x'. The following induces an error, until -std is added to get
5408 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5409 array size at least. It's necessary to write '\x00'==0 to get something
5410 that's true only with -std. */
5411 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5413 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5414 inside strings and character constants. */
5415 #define FOO(x) 'x'
5416 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5418 int test (int i, double x);
5419 struct s1 {int (*f) (int a);};
5420 struct s2 {int (*f) (double a);};
5421 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5422 int argc;
5423 char **argv;
5425 main ()
5427 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5429 return 0;
5431 _ACEOF
5432 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5433 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5435 CC="$ac_save_CC $ac_arg"
5436 if ac_fn_c_try_compile "$LINENO"; then :
5437 ac_cv_prog_cc_c89=$ac_arg
5439 rm -f core conftest.err conftest.$ac_objext
5440 test "x$ac_cv_prog_cc_c89" != "xno" && break
5441 done
5442 rm -f conftest.$ac_ext
5443 CC=$ac_save_CC
5446 # AC_CACHE_VAL
5447 case "x$ac_cv_prog_cc_c89" in
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5450 $as_echo "none needed" >&6; } ;;
5451 xno)
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5453 $as_echo "unsupported" >&6; } ;;
5455 CC="$CC $ac_cv_prog_cc_c89"
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5457 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5458 esac
5459 if test "x$ac_cv_prog_cc_c89" != xno; then :
5463 ac_ext=c
5464 ac_cpp='$CPP $CPPFLAGS'
5465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5468 DEPDIR="${am__leading_dot}deps"
5470 ac_config_commands="$ac_config_commands depfiles"
5473 am_make=${MAKE-make}
5474 cat > confinc << 'END'
5475 am__doit:
5476 @echo this is the am__doit target
5477 .PHONY: am__doit
5479 # If we don't find an include directive, just comment out the code.
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5481 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5482 am__include="#"
5483 am__quote=
5484 _am_result=none
5485 # First try GNU make style include.
5486 echo "include confinc" > confmf
5487 # Ignore all kinds of additional output from `make'.
5488 case `$am_make -s -f confmf 2> /dev/null` in #(
5489 *the\ am__doit\ target*)
5490 am__include=include
5491 am__quote=
5492 _am_result=GNU
5494 esac
5495 # Now try BSD make style include.
5496 if test "$am__include" = "#"; then
5497 echo '.include "confinc"' > confmf
5498 case `$am_make -s -f confmf 2> /dev/null` in #(
5499 *the\ am__doit\ target*)
5500 am__include=.include
5501 am__quote="\""
5502 _am_result=BSD
5504 esac
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5509 $as_echo "$_am_result" >&6; }
5510 rm -f confinc confmf
5512 # Check whether --enable-dependency-tracking was given.
5513 if test "${enable_dependency_tracking+set}" = set; then :
5514 enableval=$enable_dependency_tracking;
5517 if test "x$enable_dependency_tracking" != xno; then
5518 am_depcomp="$ac_aux_dir/depcomp"
5519 AMDEPBACKSLASH='\'
5521 if test "x$enable_dependency_tracking" != xno; then
5522 AMDEP_TRUE=
5523 AMDEP_FALSE='#'
5524 else
5525 AMDEP_TRUE='#'
5526 AMDEP_FALSE=
5531 depcc="$CC" am_compiler_list=
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5534 $as_echo_n "checking dependency style of $depcc... " >&6; }
5535 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5539 # We make a subdir and do the tests there. Otherwise we can end up
5540 # making bogus files that we don't know about and never remove. For
5541 # instance it was reported that on HP-UX the gcc test will end up
5542 # making a dummy file named `D' -- because `-MD' means `put the output
5543 # in D'.
5544 mkdir conftest.dir
5545 # Copy depcomp to subdir because otherwise we won't find it if we're
5546 # using a relative directory.
5547 cp "$am_depcomp" conftest.dir
5548 cd conftest.dir
5549 # We will build objects and dependencies in a subdirectory because
5550 # it helps to detect inapplicable dependency modes. For instance
5551 # both Tru64's cc and ICC support -MD to output dependencies as a
5552 # side effect of compilation, but ICC will put the dependencies in
5553 # the current directory while Tru64 will put them in the object
5554 # directory.
5555 mkdir sub
5557 am_cv_CC_dependencies_compiler_type=none
5558 if test "$am_compiler_list" = ""; then
5559 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5561 am__universal=false
5562 case " $depcc " in #(
5563 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5564 esac
5566 for depmode in $am_compiler_list; do
5567 # Setup a source with many dependencies, because some compilers
5568 # like to wrap large dependency lists on column 80 (with \), and
5569 # we should not choose a depcomp mode which is confused by this.
5571 # We need to recreate these files for each test, as the compiler may
5572 # overwrite some of them when testing with obscure command lines.
5573 # This happens at least with the AIX C compiler.
5574 : > sub/conftest.c
5575 for i in 1 2 3 4 5 6; do
5576 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5577 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5578 # Solaris 8's {/usr,}/bin/sh.
5579 touch sub/conftst$i.h
5580 done
5581 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5583 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5584 # mode. It turns out that the SunPro C++ compiler does not properly
5585 # handle `-M -o', and we need to detect this. Also, some Intel
5586 # versions had trouble with output in subdirs
5587 am__obj=sub/conftest.${OBJEXT-o}
5588 am__minus_obj="-o $am__obj"
5589 case $depmode in
5590 gcc)
5591 # This depmode causes a compiler race in universal mode.
5592 test "$am__universal" = false || continue
5594 nosideeffect)
5595 # after this tag, mechanisms are not by side-effect, so they'll
5596 # only be used when explicitly requested
5597 if test "x$enable_dependency_tracking" = xyes; then
5598 continue
5599 else
5600 break
5603 msvisualcpp | msvcmsys)
5604 # This compiler won't grok `-c -o', but also, the minuso test has
5605 # not run yet. These depmodes are late enough in the game, and
5606 # so weak that their functioning should not be impacted.
5607 am__obj=conftest.${OBJEXT-o}
5608 am__minus_obj=
5610 none) break ;;
5611 esac
5612 if depmode=$depmode \
5613 source=sub/conftest.c object=$am__obj \
5614 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5615 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5616 >/dev/null 2>conftest.err &&
5617 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5618 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5619 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5620 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5621 # icc doesn't choke on unknown options, it will just issue warnings
5622 # or remarks (even with -Werror). So we grep stderr for any message
5623 # that says an option was ignored or not supported.
5624 # When given -MP, icc 7.0 and 7.1 complain thusly:
5625 # icc: Command line warning: ignoring option '-M'; no argument required
5626 # The diagnosis changed in icc 8.0:
5627 # icc: Command line remark: option '-MP' not supported
5628 if (grep 'ignoring option' conftest.err ||
5629 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5630 am_cv_CC_dependencies_compiler_type=$depmode
5631 break
5634 done
5636 cd ..
5637 rm -rf conftest.dir
5638 else
5639 am_cv_CC_dependencies_compiler_type=none
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5644 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5645 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5648 test "x$enable_dependency_tracking" != xno \
5649 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5650 am__fastdepCC_TRUE=
5651 am__fastdepCC_FALSE='#'
5652 else
5653 am__fastdepCC_TRUE='#'
5654 am__fastdepCC_FALSE=
5658 if test "x$CC" != xcc; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5660 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5661 else
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5663 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5665 set dummy $CC; ac_cc=`$as_echo "$2" |
5666 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5667 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h. */
5674 main ()
5678 return 0;
5680 _ACEOF
5681 # Make sure it works both with $CC and with simple cc.
5682 # We do the test twice because some compilers refuse to overwrite an
5683 # existing .o file with -o, though they will create one.
5684 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5685 rm -f conftest2.*
5686 if { { case "(($ac_try" in
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5689 esac
5690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5691 $as_echo "$ac_try_echo"; } >&5
5692 (eval "$ac_try") 2>&5
5693 ac_status=$?
5694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5695 test $ac_status = 0; } &&
5696 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698 *) ac_try_echo=$ac_try;;
5699 esac
5700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5701 $as_echo "$ac_try_echo"; } >&5
5702 (eval "$ac_try") 2>&5
5703 ac_status=$?
5704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5705 test $ac_status = 0; };
5706 then
5707 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5708 if test "x$CC" != xcc; then
5709 # Test first that cc exists at all.
5710 if { ac_try='cc -c conftest.$ac_ext >&5'
5711 { { case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5714 esac
5715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5716 $as_echo "$ac_try_echo"; } >&5
5717 (eval "$ac_try") 2>&5
5718 ac_status=$?
5719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5720 test $ac_status = 0; }; }; then
5721 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5722 rm -f conftest2.*
5723 if { { case "(($ac_try" in
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5726 esac
5727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5728 $as_echo "$ac_try_echo"; } >&5
5729 (eval "$ac_try") 2>&5
5730 ac_status=$?
5731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5732 test $ac_status = 0; } &&
5733 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5736 esac
5737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5738 $as_echo "$ac_try_echo"; } >&5
5739 (eval "$ac_try") 2>&5
5740 ac_status=$?
5741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5742 test $ac_status = 0; };
5743 then
5744 # cc works too.
5746 else
5747 # cc exists but doesn't like -o.
5748 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5752 else
5753 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5755 rm -f core conftest*
5758 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5760 $as_echo "yes" >&6; }
5761 else
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5765 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5769 # FIXME: we rely on the cache variable name because
5770 # there is no other way.
5771 set dummy $CC
5772 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5773 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5774 if test "$am_t" != yes; then
5775 # Losing compiler, so override with the script.
5776 # FIXME: It is wrong to rewrite CC.
5777 # But if we don't then we get into trouble of one sort or another.
5778 # A longer-term fix would be to have automake use am__CC in this case,
5779 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5780 CC="$am_aux_dir/compile $CC"
5785 # Initialize gnulib right after verifying that the C compiler works.
5787 ac_ext=c
5788 ac_cpp='$CPP $CPPFLAGS'
5789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5793 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5794 # On Suns, sometimes $CPP names a directory.
5795 if test -n "$CPP" && test -d "$CPP"; then
5796 CPP=
5798 if test -z "$CPP"; then
5799 if test "${ac_cv_prog_CPP+set}" = set; then :
5800 $as_echo_n "(cached) " >&6
5801 else
5802 # Double quotes because CPP needs to be expanded
5803 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5805 ac_preproc_ok=false
5806 for ac_c_preproc_warn_flag in '' yes
5808 # Use a header file that comes with gcc, so configuring glibc
5809 # with a fresh cross-compiler works.
5810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5811 # <limits.h> exists even on freestanding compilers.
5812 # On the NeXT, cc -E runs the code through the compiler's parser,
5813 # not just through cpp. "Syntax error" is here to catch this case.
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5816 #ifdef __STDC__
5817 # include <limits.h>
5818 #else
5819 # include <assert.h>
5820 #endif
5821 Syntax error
5822 _ACEOF
5823 if ac_fn_c_try_cpp "$LINENO"; then :
5825 else
5826 # Broken: fails on valid input.
5827 continue
5829 rm -f conftest.err conftest.$ac_ext
5831 # OK, works on sane cases. Now check whether nonexistent headers
5832 # can be detected and how.
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5835 #include <ac_nonexistent.h>
5836 _ACEOF
5837 if ac_fn_c_try_cpp "$LINENO"; then :
5838 # Broken: success on invalid input.
5839 continue
5840 else
5841 # Passes both tests.
5842 ac_preproc_ok=:
5843 break
5845 rm -f conftest.err conftest.$ac_ext
5847 done
5848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5849 rm -f conftest.err conftest.$ac_ext
5850 if $ac_preproc_ok; then :
5851 break
5854 done
5855 ac_cv_prog_CPP=$CPP
5858 CPP=$ac_cv_prog_CPP
5859 else
5860 ac_cv_prog_CPP=$CPP
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5863 $as_echo "$CPP" >&6; }
5864 ac_preproc_ok=false
5865 for ac_c_preproc_warn_flag in '' yes
5867 # Use a header file that comes with gcc, so configuring glibc
5868 # with a fresh cross-compiler works.
5869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5870 # <limits.h> exists even on freestanding compilers.
5871 # On the NeXT, cc -E runs the code through the compiler's parser,
5872 # not just through cpp. "Syntax error" is here to catch this case.
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5875 #ifdef __STDC__
5876 # include <limits.h>
5877 #else
5878 # include <assert.h>
5879 #endif
5880 Syntax error
5881 _ACEOF
5882 if ac_fn_c_try_cpp "$LINENO"; then :
5884 else
5885 # Broken: fails on valid input.
5886 continue
5888 rm -f conftest.err conftest.$ac_ext
5890 # OK, works on sane cases. Now check whether nonexistent headers
5891 # can be detected and how.
5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893 /* end confdefs.h. */
5894 #include <ac_nonexistent.h>
5895 _ACEOF
5896 if ac_fn_c_try_cpp "$LINENO"; then :
5897 # Broken: success on invalid input.
5898 continue
5899 else
5900 # Passes both tests.
5901 ac_preproc_ok=:
5902 break
5904 rm -f conftest.err conftest.$ac_ext
5906 done
5907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5908 rm -f conftest.err conftest.$ac_ext
5909 if $ac_preproc_ok; then :
5911 else
5912 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5914 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5915 See \`config.log' for more details." "$LINENO" 5; }
5918 ac_ext=c
5919 ac_cpp='$CPP $CPPFLAGS'
5920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5926 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5927 if test "${ac_cv_path_GREP+set}" = set; then :
5928 $as_echo_n "(cached) " >&6
5929 else
5930 if test -z "$GREP"; then
5931 ac_path_GREP_found=false
5932 # Loop through the user's path and test for each of PROGNAME-LIST
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5936 IFS=$as_save_IFS
5937 test -z "$as_dir" && as_dir=.
5938 for ac_prog in grep ggrep; do
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5941 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5942 # Check for GNU ac_path_GREP and select it if it is found.
5943 # Check for GNU $ac_path_GREP
5944 case `"$ac_path_GREP" --version 2>&1` in
5945 *GNU*)
5946 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5948 ac_count=0
5949 $as_echo_n 0123456789 >"conftest.in"
5950 while :
5952 cat "conftest.in" "conftest.in" >"conftest.tmp"
5953 mv "conftest.tmp" "conftest.in"
5954 cp "conftest.in" "conftest.nl"
5955 $as_echo 'GREP' >> "conftest.nl"
5956 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5957 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5958 as_fn_arith $ac_count + 1 && ac_count=$as_val
5959 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5960 # Best one so far, save it but keep looking for a better one
5961 ac_cv_path_GREP="$ac_path_GREP"
5962 ac_path_GREP_max=$ac_count
5964 # 10*(2^10) chars as input seems more than enough
5965 test $ac_count -gt 10 && break
5966 done
5967 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5968 esac
5970 $ac_path_GREP_found && break 3
5971 done
5972 done
5973 done
5974 IFS=$as_save_IFS
5975 if test -z "$ac_cv_path_GREP"; then
5976 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5978 else
5979 ac_cv_path_GREP=$GREP
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5984 $as_echo "$ac_cv_path_GREP" >&6; }
5985 GREP="$ac_cv_path_GREP"
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5989 $as_echo_n "checking for egrep... " >&6; }
5990 if test "${ac_cv_path_EGREP+set}" = set; then :
5991 $as_echo_n "(cached) " >&6
5992 else
5993 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5994 then ac_cv_path_EGREP="$GREP -E"
5995 else
5996 if test -z "$EGREP"; then
5997 ac_path_EGREP_found=false
5998 # Loop through the user's path and test for each of PROGNAME-LIST
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6002 IFS=$as_save_IFS
6003 test -z "$as_dir" && as_dir=.
6004 for ac_prog in egrep; do
6005 for ac_exec_ext in '' $ac_executable_extensions; do
6006 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6007 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6008 # Check for GNU ac_path_EGREP and select it if it is found.
6009 # Check for GNU $ac_path_EGREP
6010 case `"$ac_path_EGREP" --version 2>&1` in
6011 *GNU*)
6012 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6014 ac_count=0
6015 $as_echo_n 0123456789 >"conftest.in"
6016 while :
6018 cat "conftest.in" "conftest.in" >"conftest.tmp"
6019 mv "conftest.tmp" "conftest.in"
6020 cp "conftest.in" "conftest.nl"
6021 $as_echo 'EGREP' >> "conftest.nl"
6022 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6023 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6024 as_fn_arith $ac_count + 1 && ac_count=$as_val
6025 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6026 # Best one so far, save it but keep looking for a better one
6027 ac_cv_path_EGREP="$ac_path_EGREP"
6028 ac_path_EGREP_max=$ac_count
6030 # 10*(2^10) chars as input seems more than enough
6031 test $ac_count -gt 10 && break
6032 done
6033 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6034 esac
6036 $ac_path_EGREP_found && break 3
6037 done
6038 done
6039 done
6040 IFS=$as_save_IFS
6041 if test -z "$ac_cv_path_EGREP"; then
6042 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6044 else
6045 ac_cv_path_EGREP=$EGREP
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6051 $as_echo "$ac_cv_path_EGREP" >&6; }
6052 EGREP="$ac_cv_path_EGREP"
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6058 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6059 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6066 #ifdef __ACK__
6067 Amsterdam
6068 #endif
6070 _ACEOF
6071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6072 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6073 gl_cv_c_amsterdam_compiler=yes
6074 else
6075 gl_cv_c_amsterdam_compiler=no
6077 rm -f conftest*
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6082 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6083 if test -z "$AR"; then
6084 if test $gl_cv_c_amsterdam_compiler = yes; then
6085 AR='cc -c.a'
6086 if test -z "$ARFLAGS"; then
6087 ARFLAGS='-o'
6089 else
6090 if test -n "$ac_tool_prefix"; then
6091 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6092 set dummy ${ac_tool_prefix}ar; ac_word=$2
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6094 $as_echo_n "checking for $ac_word... " >&6; }
6095 if test "${ac_cv_prog_AR+set}" = set; then :
6096 $as_echo_n "(cached) " >&6
6097 else
6098 if test -n "$AR"; then
6099 ac_cv_prog_AR="$AR" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6104 IFS=$as_save_IFS
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6108 ac_cv_prog_AR="${ac_tool_prefix}ar"
6109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 break 2
6112 done
6113 done
6114 IFS=$as_save_IFS
6118 AR=$ac_cv_prog_AR
6119 if test -n "$AR"; then
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6121 $as_echo "$AR" >&6; }
6122 else
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124 $as_echo "no" >&6; }
6129 if test -z "$ac_cv_prog_AR"; then
6130 ac_ct_AR=$AR
6131 # Extract the first word of "ar", so it can be a program name with args.
6132 set dummy ar; ac_word=$2
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134 $as_echo_n "checking for $ac_word... " >&6; }
6135 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6136 $as_echo_n "(cached) " >&6
6137 else
6138 if test -n "$ac_ct_AR"; then
6139 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6140 else
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH
6144 IFS=$as_save_IFS
6145 test -z "$as_dir" && as_dir=.
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6148 ac_cv_prog_ac_ct_AR="ar"
6149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 break 2
6152 done
6153 done
6154 IFS=$as_save_IFS
6158 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6159 if test -n "$ac_ct_AR"; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6161 $as_echo "$ac_ct_AR" >&6; }
6162 else
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164 $as_echo "no" >&6; }
6167 if test "x$ac_ct_AR" = x; then
6168 AR="ar"
6169 else
6170 case $cross_compiling:$ac_tool_warned in
6171 yes:)
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6174 ac_tool_warned=yes ;;
6175 esac
6176 AR=$ac_ct_AR
6178 else
6179 AR="$ac_cv_prog_AR"
6182 if test -z "$ARFLAGS"; then
6183 ARFLAGS='cru'
6186 else
6187 if test -z "$ARFLAGS"; then
6188 ARFLAGS='cru'
6193 if test -z "$RANLIB"; then
6194 if test $gl_cv_c_amsterdam_compiler = yes; then
6195 RANLIB=':'
6196 else
6197 if test -n "$ac_tool_prefix"; then
6198 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6199 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6203 $as_echo_n "(cached) " >&6
6204 else
6205 if test -n "$RANLIB"; then
6206 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6207 else
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH
6211 IFS=$as_save_IFS
6212 test -z "$as_dir" && as_dir=.
6213 for ac_exec_ext in '' $ac_executable_extensions; do
6214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6215 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6217 break 2
6219 done
6220 done
6221 IFS=$as_save_IFS
6225 RANLIB=$ac_cv_prog_RANLIB
6226 if test -n "$RANLIB"; then
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6228 $as_echo "$RANLIB" >&6; }
6229 else
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231 $as_echo "no" >&6; }
6236 if test -z "$ac_cv_prog_RANLIB"; then
6237 ac_ct_RANLIB=$RANLIB
6238 # Extract the first word of "ranlib", so it can be a program name with args.
6239 set dummy ranlib; ac_word=$2
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6241 $as_echo_n "checking for $ac_word... " >&6; }
6242 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6243 $as_echo_n "(cached) " >&6
6244 else
6245 if test -n "$ac_ct_RANLIB"; then
6246 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6247 else
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH
6251 IFS=$as_save_IFS
6252 test -z "$as_dir" && as_dir=.
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6255 ac_cv_prog_ac_ct_RANLIB="ranlib"
6256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 break 2
6259 done
6260 done
6261 IFS=$as_save_IFS
6265 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6266 if test -n "$ac_ct_RANLIB"; then
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6268 $as_echo "$ac_ct_RANLIB" >&6; }
6269 else
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271 $as_echo "no" >&6; }
6274 if test "x$ac_ct_RANLIB" = x; then
6275 RANLIB=":"
6276 else
6277 case $cross_compiling:$ac_tool_warned in
6278 yes:)
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6281 ac_tool_warned=yes ;;
6282 esac
6283 RANLIB=$ac_ct_RANLIB
6285 else
6286 RANLIB="$ac_cv_prog_RANLIB"
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6294 $as_echo_n "checking for ANSI C header files... " >&6; }
6295 if test "${ac_cv_header_stdc+set}" = set; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6300 #include <stdlib.h>
6301 #include <stdarg.h>
6302 #include <string.h>
6303 #include <float.h>
6306 main ()
6310 return 0;
6312 _ACEOF
6313 if ac_fn_c_try_compile "$LINENO"; then :
6314 ac_cv_header_stdc=yes
6315 else
6316 ac_cv_header_stdc=no
6318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320 if test $ac_cv_header_stdc = yes; then
6321 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6324 #include <string.h>
6326 _ACEOF
6327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6328 $EGREP "memchr" >/dev/null 2>&1; then :
6330 else
6331 ac_cv_header_stdc=no
6333 rm -f conftest*
6337 if test $ac_cv_header_stdc = yes; then
6338 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340 /* end confdefs.h. */
6341 #include <stdlib.h>
6343 _ACEOF
6344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6345 $EGREP "free" >/dev/null 2>&1; then :
6347 else
6348 ac_cv_header_stdc=no
6350 rm -f conftest*
6354 if test $ac_cv_header_stdc = yes; then
6355 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6356 if test "$cross_compiling" = yes; then :
6358 else
6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h. */
6361 #include <ctype.h>
6362 #include <stdlib.h>
6363 #if ((' ' & 0x0FF) == 0x020)
6364 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6365 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6366 #else
6367 # define ISLOWER(c) \
6368 (('a' <= (c) && (c) <= 'i') \
6369 || ('j' <= (c) && (c) <= 'r') \
6370 || ('s' <= (c) && (c) <= 'z'))
6371 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6372 #endif
6374 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6376 main ()
6378 int i;
6379 for (i = 0; i < 256; i++)
6380 if (XOR (islower (i), ISLOWER (i))
6381 || toupper (i) != TOUPPER (i))
6382 return 2;
6383 return 0;
6385 _ACEOF
6386 if ac_fn_c_try_run "$LINENO"; then :
6388 else
6389 ac_cv_header_stdc=no
6391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6392 conftest.$ac_objext conftest.beam conftest.$ac_ext
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6398 $as_echo "$ac_cv_header_stdc" >&6; }
6399 if test $ac_cv_header_stdc = yes; then
6401 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6405 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6406 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6407 inttypes.h stdint.h unistd.h
6408 do :
6409 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6410 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6412 eval as_val=\$$as_ac_Header
6413 if test "x$as_val" = x""yes; then :
6414 cat >>confdefs.h <<_ACEOF
6415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6416 _ACEOF
6420 done
6426 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6427 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6428 MINIX=yes
6429 else
6430 MINIX=
6434 if test "$MINIX" = yes; then
6436 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6439 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6442 $as_echo "#define _MINIX 1" >>confdefs.h
6446 case "$host_os" in
6447 hpux*)
6449 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6452 esac
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6456 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6457 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6463 # define __EXTENSIONS__ 1
6464 $ac_includes_default
6466 main ()
6470 return 0;
6472 _ACEOF
6473 if ac_fn_c_try_compile "$LINENO"; then :
6474 ac_cv_safe_to_define___extensions__=yes
6475 else
6476 ac_cv_safe_to_define___extensions__=no
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6481 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6482 test $ac_cv_safe_to_define___extensions__ = yes &&
6483 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6485 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6487 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6489 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6491 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6493 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6502 # Check whether --enable-largefile was given.
6503 if test "${enable_largefile+set}" = set; then :
6504 enableval=$enable_largefile;
6507 if test "$enable_largefile" != no; then
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6510 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6511 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6512 $as_echo_n "(cached) " >&6
6513 else
6514 ac_cv_sys_largefile_CC=no
6515 if test "$GCC" != yes; then
6516 ac_save_CC=$CC
6517 while :; do
6518 # IRIX 6.2 and later do not support large files by default,
6519 # so use the C compiler's -n32 option if that helps.
6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6522 #include <sys/types.h>
6523 /* Check that off_t can represent 2**63 - 1 correctly.
6524 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6525 since some C++ compilers masquerading as C compilers
6526 incorrectly reject 9223372036854775807. */
6527 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6528 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6529 && LARGE_OFF_T % 2147483647 == 1)
6530 ? 1 : -1];
6532 main ()
6536 return 0;
6538 _ACEOF
6539 if ac_fn_c_try_compile "$LINENO"; then :
6540 break
6542 rm -f core conftest.err conftest.$ac_objext
6543 CC="$CC -n32"
6544 if ac_fn_c_try_compile "$LINENO"; then :
6545 ac_cv_sys_largefile_CC=' -n32'; break
6547 rm -f core conftest.err conftest.$ac_objext
6548 break
6549 done
6550 CC=$ac_save_CC
6551 rm -f conftest.$ac_ext
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6555 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6556 if test "$ac_cv_sys_largefile_CC" != no; then
6557 CC=$CC$ac_cv_sys_largefile_CC
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6561 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6562 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 while :; do
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6568 #include <sys/types.h>
6569 /* Check that off_t can represent 2**63 - 1 correctly.
6570 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6571 since some C++ compilers masquerading as C compilers
6572 incorrectly reject 9223372036854775807. */
6573 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6574 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6575 && LARGE_OFF_T % 2147483647 == 1)
6576 ? 1 : -1];
6578 main ()
6582 return 0;
6584 _ACEOF
6585 if ac_fn_c_try_compile "$LINENO"; then :
6586 ac_cv_sys_file_offset_bits=no; break
6588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6591 #define _FILE_OFFSET_BITS 64
6592 #include <sys/types.h>
6593 /* Check that off_t can represent 2**63 - 1 correctly.
6594 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6595 since some C++ compilers masquerading as C compilers
6596 incorrectly reject 9223372036854775807. */
6597 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6598 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6599 && LARGE_OFF_T % 2147483647 == 1)
6600 ? 1 : -1];
6602 main ()
6606 return 0;
6608 _ACEOF
6609 if ac_fn_c_try_compile "$LINENO"; then :
6610 ac_cv_sys_file_offset_bits=64; break
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 ac_cv_sys_file_offset_bits=unknown
6614 break
6615 done
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6618 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6619 case $ac_cv_sys_file_offset_bits in #(
6620 no | unknown) ;;
6622 cat >>confdefs.h <<_ACEOF
6623 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6624 _ACEOF
6626 esac
6627 rm -rf conftest*
6628 if test $ac_cv_sys_file_offset_bits = unknown; then
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6630 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6631 if test "${ac_cv_sys_large_files+set}" = set; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6634 while :; do
6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6637 #include <sys/types.h>
6638 /* Check that off_t can represent 2**63 - 1 correctly.
6639 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6640 since some C++ compilers masquerading as C compilers
6641 incorrectly reject 9223372036854775807. */
6642 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6643 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6644 && LARGE_OFF_T % 2147483647 == 1)
6645 ? 1 : -1];
6647 main ()
6651 return 0;
6653 _ACEOF
6654 if ac_fn_c_try_compile "$LINENO"; then :
6655 ac_cv_sys_large_files=no; break
6657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6660 #define _LARGE_FILES 1
6661 #include <sys/types.h>
6662 /* Check that off_t can represent 2**63 - 1 correctly.
6663 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6664 since some C++ compilers masquerading as C compilers
6665 incorrectly reject 9223372036854775807. */
6666 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6667 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6668 && LARGE_OFF_T % 2147483647 == 1)
6669 ? 1 : -1];
6671 main ()
6675 return 0;
6677 _ACEOF
6678 if ac_fn_c_try_compile "$LINENO"; then :
6679 ac_cv_sys_large_files=1; break
6681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6682 ac_cv_sys_large_files=unknown
6683 break
6684 done
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6687 $as_echo "$ac_cv_sys_large_files" >&6; }
6688 case $ac_cv_sys_large_files in #(
6689 no | unknown) ;;
6691 cat >>confdefs.h <<_ACEOF
6692 #define _LARGE_FILES $ac_cv_sys_large_files
6693 _ACEOF
6695 esac
6696 rm -rf conftest*
6702 case $ac_cv_prog_cc_stdc in #(
6703 no) :
6704 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6705 *) :
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6707 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6708 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6709 $as_echo_n "(cached) " >&6
6710 else
6711 ac_cv_prog_cc_c99=no
6712 ac_save_CC=$CC
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6715 #include <stdarg.h>
6716 #include <stdbool.h>
6717 #include <stdlib.h>
6718 #include <wchar.h>
6719 #include <stdio.h>
6721 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6722 #define debug(...) fprintf (stderr, __VA_ARGS__)
6723 #define showlist(...) puts (#__VA_ARGS__)
6724 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6725 static void
6726 test_varargs_macros (void)
6728 int x = 1234;
6729 int y = 5678;
6730 debug ("Flag");
6731 debug ("X = %d\n", x);
6732 showlist (The first, second, and third items.);
6733 report (x>y, "x is %d but y is %d", x, y);
6736 // Check long long types.
6737 #define BIG64 18446744073709551615ull
6738 #define BIG32 4294967295ul
6739 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6740 #if !BIG_OK
6741 your preprocessor is broken;
6742 #endif
6743 #if BIG_OK
6744 #else
6745 your preprocessor is broken;
6746 #endif
6747 static long long int bignum = -9223372036854775807LL;
6748 static unsigned long long int ubignum = BIG64;
6750 struct incomplete_array
6752 int datasize;
6753 double data[];
6756 struct named_init {
6757 int number;
6758 const wchar_t *name;
6759 double average;
6762 typedef const char *ccp;
6764 static inline int
6765 test_restrict (ccp restrict text)
6767 // See if C++-style comments work.
6768 // Iterate through items via the restricted pointer.
6769 // Also check for declarations in for loops.
6770 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6771 continue;
6772 return 0;
6775 // Check varargs and va_copy.
6776 static void
6777 test_varargs (const char *format, ...)
6779 va_list args;
6780 va_start (args, format);
6781 va_list args_copy;
6782 va_copy (args_copy, args);
6784 const char *str;
6785 int number;
6786 float fnumber;
6788 while (*format)
6790 switch (*format++)
6792 case 's': // string
6793 str = va_arg (args_copy, const char *);
6794 break;
6795 case 'd': // int
6796 number = va_arg (args_copy, int);
6797 break;
6798 case 'f': // float
6799 fnumber = va_arg (args_copy, double);
6800 break;
6801 default:
6802 break;
6805 va_end (args_copy);
6806 va_end (args);
6810 main ()
6813 // Check bool.
6814 _Bool success = false;
6816 // Check restrict.
6817 if (test_restrict ("String literal") == 0)
6818 success = true;
6819 char *restrict newvar = "Another string";
6821 // Check varargs.
6822 test_varargs ("s, d' f .", "string", 65, 34.234);
6823 test_varargs_macros ();
6825 // Check flexible array members.
6826 struct incomplete_array *ia =
6827 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6828 ia->datasize = 10;
6829 for (int i = 0; i < ia->datasize; ++i)
6830 ia->data[i] = i * 1.234;
6832 // Check named initializers.
6833 struct named_init ni = {
6834 .number = 34,
6835 .name = L"Test wide string",
6836 .average = 543.34343,
6839 ni.number = 58;
6841 int dynamic_array[ni.number];
6842 dynamic_array[ni.number - 1] = 543;
6844 // work around unused variable warnings
6845 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6846 || dynamic_array[ni.number - 1] != 543);
6849 return 0;
6851 _ACEOF
6852 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6854 CC="$ac_save_CC $ac_arg"
6855 if ac_fn_c_try_compile "$LINENO"; then :
6856 ac_cv_prog_cc_c99=$ac_arg
6858 rm -f core conftest.err conftest.$ac_objext
6859 test "x$ac_cv_prog_cc_c99" != "xno" && break
6860 done
6861 rm -f conftest.$ac_ext
6862 CC=$ac_save_CC
6865 # AC_CACHE_VAL
6866 case "x$ac_cv_prog_cc_c99" in
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6869 $as_echo "none needed" >&6; } ;;
6870 xno)
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6872 $as_echo "unsupported" >&6; } ;;
6874 CC="$CC $ac_cv_prog_cc_c99"
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6876 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6877 esac
6878 if test "x$ac_cv_prog_cc_c99" != xno; then :
6879 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6880 else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6882 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6883 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886 ac_cv_prog_cc_c89=no
6887 ac_save_CC=$CC
6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6890 #include <stdarg.h>
6891 #include <stdio.h>
6892 #include <sys/types.h>
6893 #include <sys/stat.h>
6894 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6895 struct buf { int x; };
6896 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6897 static char *e (p, i)
6898 char **p;
6899 int i;
6901 return p[i];
6903 static char *f (char * (*g) (char **, int), char **p, ...)
6905 char *s;
6906 va_list v;
6907 va_start (v,p);
6908 s = g (p, va_arg (v,int));
6909 va_end (v);
6910 return s;
6913 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6914 function prototypes and stuff, but not '\xHH' hex character constants.
6915 These don't provoke an error unfortunately, instead are silently treated
6916 as 'x'. The following induces an error, until -std is added to get
6917 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6918 array size at least. It's necessary to write '\x00'==0 to get something
6919 that's true only with -std. */
6920 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6922 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6923 inside strings and character constants. */
6924 #define FOO(x) 'x'
6925 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6927 int test (int i, double x);
6928 struct s1 {int (*f) (int a);};
6929 struct s2 {int (*f) (double a);};
6930 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6931 int argc;
6932 char **argv;
6934 main ()
6936 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6938 return 0;
6940 _ACEOF
6941 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6942 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6944 CC="$ac_save_CC $ac_arg"
6945 if ac_fn_c_try_compile "$LINENO"; then :
6946 ac_cv_prog_cc_c89=$ac_arg
6948 rm -f core conftest.err conftest.$ac_objext
6949 test "x$ac_cv_prog_cc_c89" != "xno" && break
6950 done
6951 rm -f conftest.$ac_ext
6952 CC=$ac_save_CC
6955 # AC_CACHE_VAL
6956 case "x$ac_cv_prog_cc_c89" in
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6959 $as_echo "none needed" >&6; } ;;
6960 xno)
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6962 $as_echo "unsupported" >&6; } ;;
6964 CC="$CC $ac_cv_prog_cc_c89"
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6966 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6967 esac
6968 if test "x$ac_cv_prog_cc_c89" != xno; then :
6969 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6970 else
6971 ac_cv_prog_cc_stdc=no
6976 esac
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6978 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6979 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6980 $as_echo_n "(cached) " >&6
6983 case $ac_cv_prog_cc_stdc in #(
6984 no) :
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6986 $as_echo "unsupported" >&6; } ;; #(
6987 '') :
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6989 $as_echo "none needed" >&6; } ;; #(
6990 *) :
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6992 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6993 esac
6997 # Code from module alloca-opt:
6998 # Code from module allocator:
6999 # Code from module careadlinkat:
7000 # Code from module crypto/md5:
7001 # Code from module crypto/sha1:
7002 # Code from module crypto/sha256:
7003 # Code from module crypto/sha512:
7004 # Code from module dosname:
7005 # Code from module dtoastr:
7006 # Code from module dup2:
7007 # Code from module extensions:
7009 # Code from module filemode:
7010 # Code from module getloadavg:
7011 # Code from module getopt-gnu:
7012 # Code from module getopt-posix:
7013 # Code from module gettext-h:
7014 # Code from module ignore-value:
7015 # Code from module include_next:
7016 # Code from module intprops:
7017 # Code from module inttypes-incomplete:
7018 # Code from module largefile:
7020 # Code from module lstat:
7021 # Code from module mktime:
7022 # Code from module multiarch:
7023 <<<<<<< TREE
7024 =======
7025 # Code from module nocrash:
7026 # Code from module pthread_sigmask:
7027 >>>>>>> MERGE-SOURCE
7028 # Code from module readlink:
7029 <<<<<<< TREE
7030 =======
7031 # Code from module signal:
7032 # Code from module sigprocmask:
7033 # Code from module snippet/_Noreturn:
7034 # Code from module snippet/arg-nonnull:
7035 # Code from module snippet/c++defs:
7036 # Code from module snippet/warn-on-use:
7037 >>>>>>> MERGE-SOURCE
7038 # Code from module socklen:
7039 # Code from module ssize_t:
7040 # Code from module stat:
7041 # Code from module stdarg:
7045 # Code from module stdbool:
7046 # Code from module stddef:
7047 # Code from module stdint:
7048 # Code from module stdio:
7049 # Code from module stdlib:
7050 # Code from module strftime:
7051 # Code from module strtoull:
7052 # Code from module strtoumax:
7053 # Code from module symlink:
7054 # Code from module sys_stat:
7055 # Code from module time:
7056 # Code from module time_r:
7057 # Code from module u64:
7058 # Code from module unistd:
7059 # Code from module verify:
7062 # On Suns, sometimes $CPP names a directory.
7063 if test -n "$CPP" && test -d "$CPP"; then
7064 CPP=
7067 ## If not using gcc, and on Solaris, and no CPP specified, see if
7068 ## using a Sun compiler, which needs -Xs to prevent whitespace.
7069 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
7070 test x"$CPP" = x; then
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
7072 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
7073 if test "${emacs_cv_sunpro_c+set}" = set; then :
7074 $as_echo_n "(cached) " >&6
7075 else
7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h. */
7080 main ()
7082 #ifndef __SUNPRO_C
7083 fail;
7084 #endif
7087 return 0;
7089 _ACEOF
7090 if ac_fn_c_try_link "$LINENO"; then :
7091 emacs_cv_sunpro_c=yes
7092 else
7093 emacs_cv_sunpro_c=no
7095 rm -f core conftest.err conftest.$ac_objext \
7096 conftest$ac_exeext conftest.$ac_ext
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7100 $as_echo "$emacs_cv_sunpro_c" >&6; }
7102 if test x"$emacs_cv_sunpro_c" = xyes; then
7103 NON_GNU_CPP="$CC -E -Xs"
7107 #### Some systems specify a CPP to use unless we are using GCC.
7108 #### Now that we know whether we are using GCC, we can decide whether
7109 #### to use that one.
7110 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
7111 then
7112 CPP="$NON_GNU_CPP"
7115 #### Some systems specify a CC to use unless we are using GCC.
7116 #### Now that we know whether we are using GCC, we can decide whether
7117 #### to use that one.
7118 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
7119 test x$cc_specified != xyes
7120 then
7121 CC="$NON_GNU_CC"
7124 if test x$GCC = xyes; then
7125 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
7126 else
7127 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
7130 ### Use -Wdeclaration-after-statement if the compiler supports it
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
7132 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
7133 SAVE_CFLAGS="$CFLAGS"
7134 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h. */
7139 main ()
7143 return 0;
7145 _ACEOF
7146 if ac_fn_c_try_compile "$LINENO"; then :
7147 has_option=yes
7148 else
7149 has_option=no
7151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7152 if test $has_option = yes; then
7153 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7156 $as_echo "$has_option" >&6; }
7157 CFLAGS="$SAVE_CFLAGS"
7158 unset has_option
7159 unset SAVE_CFLAGS
7161 ### Use -Wold-style-definition if the compiler supports it
7162 # This can be removed when conversion to standard C is finished.
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
7164 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
7165 SAVE_CFLAGS="$CFLAGS"
7166 CFLAGS="$CFLAGS -Wold-style-definition"
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7171 main ()
7175 return 0;
7177 _ACEOF
7178 if ac_fn_c_try_compile "$LINENO"; then :
7179 has_option=yes
7180 else
7181 has_option=no
7183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184 if test $has_option = yes; then
7185 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7188 $as_echo "$has_option" >&6; }
7189 CFLAGS="$SAVE_CFLAGS"
7190 unset has_option
7191 unset SAVE_CFLAGS
7193 ### Use -Wimplicit-function-declaration if the compiler supports it
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
7195 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
7196 SAVE_CFLAGS="$CFLAGS"
7197 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
7198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199 /* end confdefs.h. */
7202 main ()
7206 return 0;
7208 _ACEOF
7209 if ac_fn_c_try_compile "$LINENO"; then :
7210 has_option=yes
7211 else
7212 has_option=no
7214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7215 if test $has_option = yes; then
7216 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7219 $as_echo "$has_option" >&6; }
7220 CFLAGS="$SAVE_CFLAGS"
7221 unset has_option
7222 unset SAVE_CFLAGS
7227 #### Some other nice autoconf tests.
7229 ac_ext=c
7230 ac_cpp='$CPP $CPPFLAGS'
7231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7235 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7236 # On Suns, sometimes $CPP names a directory.
7237 if test -n "$CPP" && test -d "$CPP"; then
7238 CPP=
7240 if test -z "$CPP"; then
7241 if test "${ac_cv_prog_CPP+set}" = set; then :
7242 $as_echo_n "(cached) " >&6
7243 else
7244 # Double quotes because CPP needs to be expanded
7245 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7247 ac_preproc_ok=false
7248 for ac_c_preproc_warn_flag in '' yes
7250 # Use a header file that comes with gcc, so configuring glibc
7251 # with a fresh cross-compiler works.
7252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7253 # <limits.h> exists even on freestanding compilers.
7254 # On the NeXT, cc -E runs the code through the compiler's parser,
7255 # not just through cpp. "Syntax error" is here to catch this case.
7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h. */
7258 #ifdef __STDC__
7259 # include <limits.h>
7260 #else
7261 # include <assert.h>
7262 #endif
7263 Syntax error
7264 _ACEOF
7265 if ac_fn_c_try_cpp "$LINENO"; then :
7267 else
7268 # Broken: fails on valid input.
7269 continue
7271 rm -f conftest.err conftest.$ac_ext
7273 # OK, works on sane cases. Now check whether nonexistent headers
7274 # can be detected and how.
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7277 #include <ac_nonexistent.h>
7278 _ACEOF
7279 if ac_fn_c_try_cpp "$LINENO"; then :
7280 # Broken: success on invalid input.
7281 continue
7282 else
7283 # Passes both tests.
7284 ac_preproc_ok=:
7285 break
7287 rm -f conftest.err conftest.$ac_ext
7289 done
7290 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7291 rm -f conftest.err conftest.$ac_ext
7292 if $ac_preproc_ok; then :
7293 break
7296 done
7297 ac_cv_prog_CPP=$CPP
7300 CPP=$ac_cv_prog_CPP
7301 else
7302 ac_cv_prog_CPP=$CPP
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7305 $as_echo "$CPP" >&6; }
7306 ac_preproc_ok=false
7307 for ac_c_preproc_warn_flag in '' yes
7309 # Use a header file that comes with gcc, so configuring glibc
7310 # with a fresh cross-compiler works.
7311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7312 # <limits.h> exists even on freestanding compilers.
7313 # On the NeXT, cc -E runs the code through the compiler's parser,
7314 # not just through cpp. "Syntax error" is here to catch this case.
7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7317 #ifdef __STDC__
7318 # include <limits.h>
7319 #else
7320 # include <assert.h>
7321 #endif
7322 Syntax error
7323 _ACEOF
7324 if ac_fn_c_try_cpp "$LINENO"; then :
7326 else
7327 # Broken: fails on valid input.
7328 continue
7330 rm -f conftest.err conftest.$ac_ext
7332 # OK, works on sane cases. Now check whether nonexistent headers
7333 # can be detected and how.
7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335 /* end confdefs.h. */
7336 #include <ac_nonexistent.h>
7337 _ACEOF
7338 if ac_fn_c_try_cpp "$LINENO"; then :
7339 # Broken: success on invalid input.
7340 continue
7341 else
7342 # Passes both tests.
7343 ac_preproc_ok=:
7344 break
7346 rm -f conftest.err conftest.$ac_ext
7348 done
7349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7350 rm -f conftest.err conftest.$ac_ext
7351 if $ac_preproc_ok; then :
7353 else
7354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7356 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7357 See \`config.log' for more details." "$LINENO" 5; }
7360 ac_ext=c
7361 ac_cpp='$CPP $CPPFLAGS'
7362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7367 if test "x$RANLIB" = x; then
7368 if test -n "$ac_tool_prefix"; then
7369 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7370 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372 $as_echo_n "checking for $ac_word... " >&6; }
7373 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7374 $as_echo_n "(cached) " >&6
7375 else
7376 if test -n "$RANLIB"; then
7377 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7378 else
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 for as_dir in $PATH
7382 IFS=$as_save_IFS
7383 test -z "$as_dir" && as_dir=.
7384 for ac_exec_ext in '' $ac_executable_extensions; do
7385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7386 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7388 break 2
7390 done
7391 done
7392 IFS=$as_save_IFS
7396 RANLIB=$ac_cv_prog_RANLIB
7397 if test -n "$RANLIB"; then
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7399 $as_echo "$RANLIB" >&6; }
7400 else
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7402 $as_echo "no" >&6; }
7407 if test -z "$ac_cv_prog_RANLIB"; then
7408 ac_ct_RANLIB=$RANLIB
7409 # Extract the first word of "ranlib", so it can be a program name with args.
7410 set dummy ranlib; ac_word=$2
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7414 $as_echo_n "(cached) " >&6
7415 else
7416 if test -n "$ac_ct_RANLIB"; then
7417 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7418 else
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 for as_dir in $PATH
7422 IFS=$as_save_IFS
7423 test -z "$as_dir" && as_dir=.
7424 for ac_exec_ext in '' $ac_executable_extensions; do
7425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7426 ac_cv_prog_ac_ct_RANLIB="ranlib"
7427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428 break 2
7430 done
7431 done
7432 IFS=$as_save_IFS
7436 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7437 if test -n "$ac_ct_RANLIB"; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7439 $as_echo "$ac_ct_RANLIB" >&6; }
7440 else
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442 $as_echo "no" >&6; }
7445 if test "x$ac_ct_RANLIB" = x; then
7446 RANLIB=":"
7447 else
7448 case $cross_compiling:$ac_tool_warned in
7449 yes:)
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7452 ac_tool_warned=yes ;;
7453 esac
7454 RANLIB=$ac_ct_RANLIB
7456 else
7457 RANLIB="$ac_cv_prog_RANLIB"
7462 ## Although we're running on an amd64 kernel, we're actually compiling for
7463 ## the x86 architecture. The user should probably have provided an
7464 ## explicit --build to `configure', but if everything else than the kernel
7465 ## is running in i386 mode, we can help them out.
7466 if test "$machine" = "amdx86-64"; then
7467 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7468 if test "x$ac_cv_have_decl_i386" = x""yes; then :
7472 if test "$ac_cv_have_decl_i386" = "yes"; then
7473 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7474 machine=intel386
7475 machfile="m/${machine}.h"
7479 # Extract the first word of "install-info", so it can be a program name with args.
7480 set dummy install-info; ac_word=$2
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7482 $as_echo_n "checking for $ac_word... " >&6; }
7483 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7484 $as_echo_n "(cached) " >&6
7485 else
7486 case $INSTALL_INFO in
7487 [\\/]* | ?:[\\/]*)
7488 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7498 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 break 2
7502 done
7503 done
7504 IFS=$as_save_IFS
7507 esac
7509 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7510 if test -n "$INSTALL_INFO"; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7512 $as_echo "$INSTALL_INFO" >&6; }
7513 else
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 $as_echo "no" >&6; }
7519 # Extract the first word of "install-info", so it can be a program name with args.
7520 set dummy install-info; ac_word=$2
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7522 $as_echo_n "checking for $ac_word... " >&6; }
7523 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7524 $as_echo_n "(cached) " >&6
7525 else
7526 case $INSTALL_INFO in
7527 [\\/]* | ?:[\\/]*)
7528 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 for as_dir in /usr/sbin
7534 IFS=$as_save_IFS
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7538 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7540 break 2
7542 done
7543 done
7544 IFS=$as_save_IFS
7547 esac
7549 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7550 if test -n "$INSTALL_INFO"; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7552 $as_echo "$INSTALL_INFO" >&6; }
7553 else
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555 $as_echo "no" >&6; }
7559 # Extract the first word of "install-info", so it can be a program name with args.
7560 set dummy install-info; ac_word=$2
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7562 $as_echo_n "checking for $ac_word... " >&6; }
7563 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7564 $as_echo_n "(cached) " >&6
7565 else
7566 case $INSTALL_INFO in
7567 [\\/]* | ?:[\\/]*)
7568 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572 for as_dir in /sbin
7574 IFS=$as_save_IFS
7575 test -z "$as_dir" && as_dir=.
7576 for ac_exec_ext in '' $ac_executable_extensions; do
7577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7578 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580 break 2
7582 done
7583 done
7584 IFS=$as_save_IFS
7586 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7588 esac
7590 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7591 if test -n "$INSTALL_INFO"; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7593 $as_echo "$INSTALL_INFO" >&6; }
7594 else
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7600 # Extract the first word of "gzip", so it can be a program name with args.
7601 set dummy gzip; ac_word=$2
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7603 $as_echo_n "checking for $ac_word... " >&6; }
7604 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7605 $as_echo_n "(cached) " >&6
7606 else
7607 case $GZIP_PROG in
7608 [\\/]* | ?:[\\/]*)
7609 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 for as_dir in $PATH
7615 IFS=$as_save_IFS
7616 test -z "$as_dir" && as_dir=.
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7619 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621 break 2
7623 done
7624 done
7625 IFS=$as_save_IFS
7628 esac
7630 GZIP_PROG=$ac_cv_path_GZIP_PROG
7631 if test -n "$GZIP_PROG"; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7633 $as_echo "$GZIP_PROG" >&6; }
7634 else
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636 $as_echo "no" >&6; }
7642 ## Need makeinfo >= 4.6 (?) to build the manuals.
7643 # Extract the first word of "makeinfo", so it can be a program name with args.
7644 set dummy makeinfo; ac_word=$2
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7646 $as_echo_n "checking for $ac_word... " >&6; }
7647 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7648 $as_echo_n "(cached) " >&6
7649 else
7650 case $MAKEINFO in
7651 [\\/]* | ?:[\\/]*)
7652 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656 for as_dir in $PATH
7658 IFS=$as_save_IFS
7659 test -z "$as_dir" && as_dir=.
7660 for ac_exec_ext in '' $ac_executable_extensions; do
7661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7662 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7664 break 2
7666 done
7667 done
7668 IFS=$as_save_IFS
7670 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7672 esac
7674 MAKEINFO=$ac_cv_path_MAKEINFO
7675 if test -n "$MAKEINFO"; then
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7677 $as_echo "$MAKEINFO" >&6; }
7678 else
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680 $as_echo "no" >&6; }
7684 if test "$MAKEINFO" != "no" && \
7685 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then
7686 MAKEINFO=no
7689 ## Makeinfo is unusual. For a released Emacs, the manuals are
7690 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7691 ## therefore in the category of "special tools" not normally required, which
7692 ## configure does not have to check for (eg autoconf itself).
7693 ## In a Bazaar checkout on the other hand, the manuals are not included.
7694 ## So makeinfo is a requirement to build from Bazaar, and configure
7695 ## should test for it as it does for any other build requirement.
7696 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7697 ## with pre-built manuals, from a Bazaar checkout.
7698 HAVE_MAKEINFO=yes
7700 if test "$MAKEINFO" = "no"; then
7701 MAKEINFO=makeinfo
7702 if test "x${with_makeinfo}" = "xno"; then
7703 HAVE_MAKEINFO=no
7704 elif test ! -e $srcdir/info/emacs; then
7705 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
7706 source tree does not seem to have pre-built manuals in the \`info' directory.
7707 Either install a suitable version of makeinfo, or re-run configure
7708 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7714 if test x$GCC = xyes; then
7715 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7716 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7717 else
7718 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7719 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7723 late_LDFLAGS=$LDFLAGS
7724 if test x$GCC = xyes; then
7725 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7726 else
7727 LDFLAGS="$LDFLAGS -znocombreloc"
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7731 $as_echo_n "checking for -znocombreloc... " >&6; }
7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733 /* end confdefs.h. */
7736 main ()
7740 return 0;
7742 _ACEOF
7743 if ac_fn_c_try_link "$LINENO"; then :
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7745 $as_echo "yes" >&6; }
7746 else
7747 LDFLAGS=$late_LDFLAGS
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749 $as_echo "no" >&6; }
7751 rm -f core conftest.err conftest.$ac_objext \
7752 conftest$ac_exeext conftest.$ac_ext
7755 # The value of CPP is a quoted variable reference, so we need to do this
7756 # to get its actual value...
7757 CPP=`eval "echo $CPP"`
7760 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7761 case "$opsys" in
7762 your-opsys-here) CANNOT_DUMP=yes ;;
7763 esac
7765 test "$CANNOT_DUMP" = "yes" && \
7767 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7773 UNEXEC_OBJ=unexelf.o
7774 case "$opsys" in
7775 # MSDOS uses unexcoff.o
7776 # MSWindows uses unexw32.o
7777 aix4-2)
7778 UNEXEC_OBJ=unexaix.o
7780 cygwin)
7781 UNEXEC_OBJ=unexcw.o
7783 darwin)
7784 UNEXEC_OBJ=unexmacosx.o
7786 hpux10-20 | hpux11)
7787 UNEXEC_OBJ=unexhp9k800.o
7789 sol2-10)
7790 # Use the Solaris dldump() function, called from unexsol.c, to dump
7791 # emacs, instead of the generic ELF dump code found in unexelf.c.
7792 # The resulting binary has a complete symbol table, and is better
7793 # for debugging and other observability tools (debuggers, pstack, etc).
7795 # If you encounter a problem using dldump(), please consider sending
7796 # a message to the OpenSolaris tools-linking mailing list:
7797 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7799 # It is likely that dldump() works with older Solaris too, but this has
7800 # not been tested, so for now this change is for Solaris 10 or newer.
7801 UNEXEC_OBJ=unexsol.o
7803 esac
7805 LD_SWITCH_SYSTEM=
7806 case "$opsys" in
7807 freebsd)
7808 ## Let `ld' find image libs and similar things in /usr/local/lib.
7809 ## The system compiler, GCC, has apparently been modified to not
7810 ## look there, contrary to what a stock GCC would do.
7811 LD_SWITCH_SYSTEM=-L/usr/local/lib
7814 gnu-linux)
7815 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7816 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7819 netbsd)
7820 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7823 openbsd)
7824 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7825 ## otherwise Emacs dumps core on elf systems.
7826 LD_SWITCH_SYSTEM="-Z"
7828 esac
7831 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7833 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7834 ## which has not been defined yet. When this was handled with cpp,
7835 ## it was expanded to null when configure sourced the s/*.h file.
7836 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7837 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7838 ## (or somesuch), but because it is supposed to go at the _front_
7839 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7840 ## Compare with the gnu-linux case below, which added to the end
7841 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7842 ## LD_SWITCH_SYSTEM_TEMACS.
7843 case "$opsys" in
7844 netbsd|openbsd)
7845 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7846 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7847 esac
7850 C_SWITCH_MACHINE=
7851 if test "$machine" = "alpha"; then
7852 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7853 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7857 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7858 ## With ELF, make sure that all common symbols get allocated to in the
7859 ## data section. Otherwise, the dump of temacs may miss variables in
7860 ## the shared library that have been initialized. For example, with
7861 ## GNU libc, __malloc_initialized would normally be resolved to the
7862 ## shared library's .bss section, which is fatal.
7863 if test "x$GCC" = "xyes"; then
7864 C_SWITCH_MACHINE="-fno-common"
7865 else
7866 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7868 else
7869 UNEXEC_OBJ=unexalpha.o
7876 C_SWITCH_SYSTEM=
7877 ## Some programs in src produce warnings saying certain subprograms
7878 ## are too complex and need a MAXMEM value greater than 2000 for
7879 ## additional optimization. --nils@exp-math.uni-essen.de
7880 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7881 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7882 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7883 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7887 LIBS_SYSTEM=
7888 case "$opsys" in
7889 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7890 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7892 freebsd) LIBS_SYSTEM="-lutil" ;;
7894 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7896 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7898 ## Motif needs -lgen.
7899 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7900 esac
7904 ### Make sure subsequent tests use flags consistent with the build flags.
7906 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7907 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7908 else
7909 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7912 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7915 # Check whether --enable-largefile was given.
7916 if test "${enable_largefile+set}" = set; then :
7917 enableval=$enable_largefile;
7920 if test "$enable_largefile" != no; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7923 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7924 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7925 $as_echo_n "(cached) " >&6
7926 else
7927 ac_cv_sys_largefile_CC=no
7928 if test "$GCC" != yes; then
7929 ac_save_CC=$CC
7930 while :; do
7931 # IRIX 6.2 and later do not support large files by default,
7932 # so use the C compiler's -n32 option if that helps.
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7935 #include <sys/types.h>
7936 /* Check that off_t can represent 2**63 - 1 correctly.
7937 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7938 since some C++ compilers masquerading as C compilers
7939 incorrectly reject 9223372036854775807. */
7940 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7941 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7942 && LARGE_OFF_T % 2147483647 == 1)
7943 ? 1 : -1];
7945 main ()
7949 return 0;
7951 _ACEOF
7952 if ac_fn_c_try_compile "$LINENO"; then :
7953 break
7955 rm -f core conftest.err conftest.$ac_objext
7956 CC="$CC -n32"
7957 if ac_fn_c_try_compile "$LINENO"; then :
7958 ac_cv_sys_largefile_CC=' -n32'; break
7960 rm -f core conftest.err conftest.$ac_objext
7961 break
7962 done
7963 CC=$ac_save_CC
7964 rm -f conftest.$ac_ext
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7968 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7969 if test "$ac_cv_sys_largefile_CC" != no; then
7970 CC=$CC$ac_cv_sys_largefile_CC
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7974 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7975 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7976 $as_echo_n "(cached) " >&6
7977 else
7978 while :; do
7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h. */
7981 #include <sys/types.h>
7982 /* Check that off_t can represent 2**63 - 1 correctly.
7983 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7984 since some C++ compilers masquerading as C compilers
7985 incorrectly reject 9223372036854775807. */
7986 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7987 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7988 && LARGE_OFF_T % 2147483647 == 1)
7989 ? 1 : -1];
7991 main ()
7995 return 0;
7997 _ACEOF
7998 if ac_fn_c_try_compile "$LINENO"; then :
7999 ac_cv_sys_file_offset_bits=no; break
8001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003 /* end confdefs.h. */
8004 #define _FILE_OFFSET_BITS 64
8005 #include <sys/types.h>
8006 /* Check that off_t can represent 2**63 - 1 correctly.
8007 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8008 since some C++ compilers masquerading as C compilers
8009 incorrectly reject 9223372036854775807. */
8010 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8011 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8012 && LARGE_OFF_T % 2147483647 == 1)
8013 ? 1 : -1];
8015 main ()
8019 return 0;
8021 _ACEOF
8022 if ac_fn_c_try_compile "$LINENO"; then :
8023 ac_cv_sys_file_offset_bits=64; break
8025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8026 ac_cv_sys_file_offset_bits=unknown
8027 break
8028 done
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8031 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8032 case $ac_cv_sys_file_offset_bits in #(
8033 no | unknown) ;;
8035 cat >>confdefs.h <<_ACEOF
8036 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8037 _ACEOF
8039 esac
8040 rm -rf conftest*
8041 if test $ac_cv_sys_file_offset_bits = unknown; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8043 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8044 if test "${ac_cv_sys_large_files+set}" = set; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 while :; do
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8050 #include <sys/types.h>
8051 /* Check that off_t can represent 2**63 - 1 correctly.
8052 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8053 since some C++ compilers masquerading as C compilers
8054 incorrectly reject 9223372036854775807. */
8055 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8056 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8057 && LARGE_OFF_T % 2147483647 == 1)
8058 ? 1 : -1];
8060 main ()
8064 return 0;
8066 _ACEOF
8067 if ac_fn_c_try_compile "$LINENO"; then :
8068 ac_cv_sys_large_files=no; break
8070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8073 #define _LARGE_FILES 1
8074 #include <sys/types.h>
8075 /* Check that off_t can represent 2**63 - 1 correctly.
8076 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8077 since some C++ compilers masquerading as C compilers
8078 incorrectly reject 9223372036854775807. */
8079 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8080 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8081 && LARGE_OFF_T % 2147483647 == 1)
8082 ? 1 : -1];
8084 main ()
8088 return 0;
8090 _ACEOF
8091 if ac_fn_c_try_compile "$LINENO"; then :
8092 ac_cv_sys_large_files=1; break
8094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8095 ac_cv_sys_large_files=unknown
8096 break
8097 done
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8100 $as_echo "$ac_cv_sys_large_files" >&6; }
8101 case $ac_cv_sys_large_files in #(
8102 no | unknown) ;;
8104 cat >>confdefs.h <<_ACEOF
8105 #define _LARGE_FILES $ac_cv_sys_large_files
8106 _ACEOF
8108 esac
8109 rm -rf conftest*
8117 ## If user specified a crt-dir, use that unconditionally.
8118 if test "X$CRT_DIR" = "X"; then
8120 case "$canonical" in
8121 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8122 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8123 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8124 ## For anything else (eg /usr/lib32), it is up the user to specify
8125 ## the location (bug#5655).
8126 ## Test for crtn.o, not just the directory, because sometimes the
8127 ## directory exists but does not have the relevant files (bug#1287).
8128 ## FIXME better to test for binary compatibility somehow.
8129 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8132 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8133 esac
8135 case "$opsys" in
8136 hpux10-20) CRT_DIR=/lib ;;
8137 esac
8139 ## Default is /usr/lib.
8140 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
8142 ## If we're using gcc, try to determine it automatically by asking
8143 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8144 ## system-dependent default from above.]
8145 if test "x${GCC}" = xyes; then
8146 crt_file=`$CC --print-file-name=crt1.o 2>/dev/null`
8147 case "$crt_file" in
8148 */*)
8149 CRT_DIR=`$as_dirname -- "$crt_file" ||
8150 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8151 X"$crt_file" : 'X\(//\)[^/]' \| \
8152 X"$crt_file" : 'X\(//\)$' \| \
8153 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8154 $as_echo X"$crt_file" |
8155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8156 s//\1/
8159 /^X\(\/\/\)[^/].*/{
8160 s//\1/
8163 /^X\(\/\/\)$/{
8164 s//\1/
8167 /^X\(\/\).*/{
8168 s//\1/
8171 s/.*/./; q'`
8173 esac
8176 else
8178 ## Some platforms don't use any of these files, so it is not
8179 ## appropriate to put this test outside the if block.
8180 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
8181 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
8187 LIB_MATH=-lm
8188 LIB_STANDARD=
8189 START_FILES=
8191 case $opsys in
8192 cygwin )
8193 LIB_MATH=
8194 START_FILES='pre-crt0.o'
8196 darwin )
8197 ## Adding -lm confuses the dynamic linker, so omit it.
8198 LIB_MATH=
8199 START_FILES='pre-crt0.o'
8201 freebsd )
8202 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8203 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8205 gnu-linux | gnu-kfreebsd )
8206 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8207 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8209 hpux10-20 | hpux11 )
8210 LIB_STANDARD=-lc
8211 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8213 netbsd | openbsd )
8214 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8215 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8217 esac
8222 <<<<<<< TREE
8223 =======
8224 crt_files=
8226 for file in x $LIB_STANDARD $START_FILES; do
8227 case "$file" in
8228 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8229 esac
8230 done
8232 if test "x$crt_files" != x; then
8234 ## If user specified a crt-dir, use that unconditionally.
8235 crt_gcc=no
8237 if test "X$CRT_DIR" = "X"; then
8239 CRT_DIR=/usr/lib # default
8241 case "$canonical" in
8242 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8243 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8244 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8245 ## For anything else (eg /usr/lib32), it is up the user to specify
8246 ## the location (bug#5655).
8247 ## Test for crtn.o, not just the directory, because sometimes the
8248 ## directory exists but does not have the relevant files (bug#1287).
8249 ## FIXME better to test for binary compatibility somehow.
8250 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8253 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8254 esac
8256 case "$opsys" in
8257 hpux10-20) CRT_DIR=/lib ;;
8258 esac
8260 test "x${GCC}" = xyes && crt_gcc=yes
8262 fi # CRT_DIR = ""
8264 crt_missing=
8266 for file in $crt_files; do
8268 ## If we're using gcc, try to determine it automatically by asking
8269 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8270 ## system-dependent default from above.]
8271 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8273 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8274 case "$crt_file" in
8275 */*)
8276 CRT_DIR=`$as_dirname -- "$crt_file" ||
8277 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8278 X"$crt_file" : 'X\(//\)[^/]' \| \
8279 X"$crt_file" : 'X\(//\)$' \| \
8280 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8281 $as_echo X"$crt_file" |
8282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8283 s//\1/
8286 /^X\(\/\/\)[^/].*/{
8287 s//\1/
8290 /^X\(\/\/\)$/{
8291 s//\1/
8294 /^X\(\/\).*/{
8295 s//\1/
8298 s/.*/./; q'`
8300 esac
8303 crt_gcc=no
8305 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8306 done # $crt_files
8308 test "x$crt_missing" = x || \
8309 as_fn_error "Required file(s) not found:$crt_missing
8310 Try using the --with-crt-dir option." "$LINENO" 5
8312 fi # crt_files != ""
8316 case $opsys in
8317 netbsd | openbsd )
8318 if test -f $CRT_DIR/crti.o; then
8320 test -f $CRT_DIR/crtn.o || \
8321 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8323 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8324 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8327 esac
8330 >>>>>>> MERGE-SOURCE
8334 if test "${with_sound}" != "no"; then
8335 # Sound support for GNU/Linux and the free BSDs.
8336 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8337 do :
8338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8339 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8340 eval as_val=\$$as_ac_Header
8341 if test "x$as_val" = x""yes; then :
8342 cat >>confdefs.h <<_ACEOF
8343 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8344 _ACEOF
8345 have_sound_header=yes
8348 done
8350 # Emulation library used on NetBSD.
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8352 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8353 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8356 ac_check_lib_save_LIBS=$LIBS
8357 LIBS="-lossaudio $LIBS"
8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359 /* end confdefs.h. */
8361 /* Override any GCC internal prototype to avoid an error.
8362 Use char because int might match the return type of a GCC
8363 builtin and then its argument prototype would still apply. */
8364 #ifdef __cplusplus
8365 extern "C"
8366 #endif
8367 char _oss_ioctl ();
8369 main ()
8371 return _oss_ioctl ();
8373 return 0;
8375 _ACEOF
8376 if ac_fn_c_try_link "$LINENO"; then :
8377 ac_cv_lib_ossaudio__oss_ioctl=yes
8378 else
8379 ac_cv_lib_ossaudio__oss_ioctl=no
8381 rm -f core conftest.err conftest.$ac_objext \
8382 conftest$ac_exeext conftest.$ac_ext
8383 LIBS=$ac_check_lib_save_LIBS
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8386 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8387 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8388 LIBSOUND=-lossaudio
8389 else
8390 LIBSOUND=
8395 ALSA_REQUIRED=1.0.0
8396 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8398 succeeded=no
8400 # Extract the first word of "pkg-config", so it can be a program name with args.
8401 set dummy pkg-config; ac_word=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8405 $as_echo_n "(cached) " >&6
8406 else
8407 case $PKG_CONFIG in
8408 [\\/]* | ?:[\\/]*)
8409 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413 for as_dir in $PATH
8415 IFS=$as_save_IFS
8416 test -z "$as_dir" && as_dir=.
8417 for ac_exec_ext in '' $ac_executable_extensions; do
8418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8419 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 break 2
8423 done
8424 done
8425 IFS=$as_save_IFS
8427 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8429 esac
8431 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8432 if test -n "$PKG_CONFIG"; then
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8434 $as_echo "$PKG_CONFIG" >&6; }
8435 else
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 $as_echo "no" >&6; }
8442 if test "$PKG_CONFIG" = "no" ; then
8443 HAVE_ALSA=no
8444 else
8445 PKG_CONFIG_MIN_VERSION=0.9.0
8446 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8448 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8450 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8452 $as_echo "yes" >&6; }
8453 succeeded=yes
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
8456 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
8457 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
8459 $as_echo "$ALSA_CFLAGS" >&6; }
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
8462 $as_echo_n "checking ALSA_LIBS... " >&6; }
8463 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
8465 $as_echo "$ALSA_LIBS" >&6; }
8466 else
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 $as_echo "no" >&6; }
8469 ALSA_CFLAGS=""
8470 ALSA_LIBS=""
8471 ## If we have a custom action on failure, don't print errors, but
8472 ## do set a variable so people can do so.
8473 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8479 else
8480 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8481 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8485 if test $succeeded = yes; then
8486 HAVE_ALSA=yes
8487 else
8488 HAVE_ALSA=no
8491 if test $HAVE_ALSA = yes; then
8492 SAVE_CFLAGS="$CFLAGS"
8493 SAVE_LDFLAGS="$LDFLAGS"
8494 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8495 LDFLAGS="$ALSA_LIBS $LDFLAGS"
8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8498 #include <asoundlib.h>
8500 main ()
8502 snd_lib_error_set_handler (0);
8504 return 0;
8506 _ACEOF
8507 if ac_fn_c_try_compile "$LINENO"; then :
8508 emacs_alsa_normal=yes
8509 else
8510 emacs_alsa_normal=no
8512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8513 if test "$emacs_alsa_normal" != yes; then
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8516 #include <alsa/asoundlib.h>
8518 main ()
8520 snd_lib_error_set_handler (0);
8522 return 0;
8524 _ACEOF
8525 if ac_fn_c_try_compile "$LINENO"; then :
8526 emacs_alsa_subdir=yes
8527 else
8528 emacs_alsa_subdir=no
8530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8531 if test "$emacs_alsa_subdir" != yes; then
8532 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8534 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8537 CFLAGS="$SAVE_CFLAGS"
8538 LDFLAGS="$SAVE_LDFLAGS"
8539 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8540 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8542 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8546 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8547 case "$opsys" in
8548 gnu-linux|freebsd|netbsd)
8550 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8553 esac
8559 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
8560 linux/version.h sys/systeminfo.h \
8561 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
8562 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
8563 sys/utsname.h pwd.h utmp.h dirent.h util.h
8564 do :
8565 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8566 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8567 eval as_val=\$$as_ac_Header
8568 if test "x$as_val" = x""yes; then :
8569 cat >>confdefs.h <<_ACEOF
8570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8571 _ACEOF
8575 done
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8579 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8582 #include <sys/personality.h>
8584 main ()
8586 personality (PER_LINUX32)
8588 return 0;
8590 _ACEOF
8591 if ac_fn_c_try_compile "$LINENO"; then :
8592 emacs_cv_personality_linux32=yes
8593 else
8594 emacs_cv_personality_linux32=no
8596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8598 $as_echo "$emacs_cv_personality_linux32" >&6; }
8600 if test $emacs_cv_personality_linux32 = yes; then
8602 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8606 for ac_header in term.h
8607 do :
8608 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8609 if test "x$ac_cv_header_term_h" = x""yes; then :
8610 cat >>confdefs.h <<_ACEOF
8611 #define HAVE_TERM_H 1
8612 _ACEOF
8616 done
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8619 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8620 if test "${ac_cv_header_time+set}" = set; then :
8621 $as_echo_n "(cached) " >&6
8622 else
8623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h. */
8625 #include <sys/types.h>
8626 #include <sys/time.h>
8627 #include <time.h>
8630 main ()
8632 if ((struct tm *) 0)
8633 return 0;
8635 return 0;
8637 _ACEOF
8638 if ac_fn_c_try_compile "$LINENO"; then :
8639 ac_cv_header_time=yes
8640 else
8641 ac_cv_header_time=no
8643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8646 $as_echo "$ac_cv_header_time" >&6; }
8647 if test $ac_cv_header_time = yes; then
8649 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8653 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8654 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8655 ac_have_decl=1
8656 else
8657 ac_have_decl=0
8660 cat >>confdefs.h <<_ACEOF
8661 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8662 _ACEOF
8664 if test $ac_cv_have_decl_sys_siglist != yes; then
8665 # For Tru64, at least:
8666 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8667 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8668 ac_have_decl=1
8669 else
8670 ac_have_decl=0
8673 cat >>confdefs.h <<_ACEOF
8674 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8675 _ACEOF
8677 if test $ac_cv_have_decl___sys_siglist = yes; then
8679 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8684 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8685 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8686 $as_echo_n "(cached) " >&6
8687 else
8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8690 #include <sys/types.h>
8691 #include <sys/wait.h>
8692 #ifndef WEXITSTATUS
8693 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8694 #endif
8695 #ifndef WIFEXITED
8696 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8697 #endif
8700 main ()
8702 int s;
8703 wait (&s);
8704 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8706 return 0;
8708 _ACEOF
8709 if ac_fn_c_try_compile "$LINENO"; then :
8710 ac_cv_header_sys_wait_h=yes
8711 else
8712 ac_cv_header_sys_wait_h=no
8714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8717 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8718 if test $ac_cv_header_sys_wait_h = yes; then
8720 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8726 $as_echo_n "checking for struct utimbuf... " >&6; }
8727 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8728 $as_echo_n "(cached) " >&6
8729 else
8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8732 #ifdef TIME_WITH_SYS_TIME
8733 #include <sys/time.h>
8734 #include <time.h>
8735 #else
8736 #ifdef HAVE_SYS_TIME_H
8737 #include <sys/time.h>
8738 #else
8739 #include <time.h>
8740 #endif
8741 #endif
8742 #ifdef HAVE_UTIME_H
8743 #include <utime.h>
8744 #endif
8746 main ()
8748 static struct utimbuf x; x.actime = x.modtime;
8750 return 0;
8752 _ACEOF
8753 if ac_fn_c_try_compile "$LINENO"; then :
8754 emacs_cv_struct_utimbuf=yes
8755 else
8756 emacs_cv_struct_utimbuf=no
8758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8761 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8762 if test $emacs_cv_struct_utimbuf = yes; then
8764 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8769 $as_echo_n "checking for speed_t... " >&6; }
8770 if test "${emacs_cv_speed_t+set}" = set; then :
8771 $as_echo_n "(cached) " >&6
8772 else
8773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774 /* end confdefs.h. */
8775 #include <termios.h>
8777 main ()
8779 speed_t x = 1;
8781 return 0;
8783 _ACEOF
8784 if ac_fn_c_try_compile "$LINENO"; then :
8785 emacs_cv_speed_t=yes
8786 else
8787 emacs_cv_speed_t=no
8789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8792 $as_echo "$emacs_cv_speed_t" >&6; }
8793 if test $emacs_cv_speed_t = yes; then
8795 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8800 $as_echo_n "checking for struct timeval... " >&6; }
8801 if test "${emacs_cv_struct_timeval+set}" = set; then :
8802 $as_echo_n "(cached) " >&6
8803 else
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8806 #ifdef TIME_WITH_SYS_TIME
8807 #include <sys/time.h>
8808 #include <time.h>
8809 #else
8810 #ifdef HAVE_SYS_TIME_H
8811 #include <sys/time.h>
8812 #else
8813 #include <time.h>
8814 #endif
8815 #endif
8817 main ()
8819 static struct timeval x; x.tv_sec = x.tv_usec;
8821 return 0;
8823 _ACEOF
8824 if ac_fn_c_try_compile "$LINENO"; then :
8825 emacs_cv_struct_timeval=yes
8826 else
8827 emacs_cv_struct_timeval=no
8829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8832 $as_echo "$emacs_cv_struct_timeval" >&6; }
8833 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8834 if test $emacs_cv_struct_timeval = yes; then
8836 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8841 $as_echo_n "checking for struct exception... " >&6; }
8842 if test "${emacs_cv_struct_exception+set}" = set; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8847 #include <math.h>
8849 main ()
8851 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8853 return 0;
8855 _ACEOF
8856 if ac_fn_c_try_compile "$LINENO"; then :
8857 emacs_cv_struct_exception=yes
8858 else
8859 emacs_cv_struct_exception=no
8861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8864 $as_echo "$emacs_cv_struct_exception" >&6; }
8865 HAVE_EXCEPTION=$emacs_cv_struct_exception
8866 if test $emacs_cv_struct_exception != yes; then
8868 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8872 <<<<<<< TREE
8873 =======
8874 for ac_header in sys/socket.h
8875 do :
8876 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8877 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
8878 cat >>confdefs.h <<_ACEOF
8879 #define HAVE_SYS_SOCKET_H 1
8880 _ACEOF
8884 done
8886 >>>>>>> MERGE-SOURCE
8887 for ac_header in net/if.h
8888 do :
8889 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8890 #if HAVE_SYS_SOCKET_H
8891 #include <sys/socket.h>
8892 #endif
8894 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8895 cat >>confdefs.h <<_ACEOF
8896 #define HAVE_NET_IF_H 1
8897 _ACEOF
8901 done
8903 <<<<<<< TREE
8904 =======
8905 for ac_header in ifaddrs.h
8906 do :
8907 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8908 #if HAVE_SYS_SOCKET_H
8909 #include <sys/socket.h>
8910 #endif
8912 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8913 cat >>confdefs.h <<_ACEOF
8914 #define HAVE_IFADDRS_H 1
8915 _ACEOF
8919 done
8921 for ac_header in net/if_dl.h
8922 do :
8923 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8924 #if HAVE_SYS_SOCKET_H
8925 #include <sys/socket.h>
8926 #endif
8928 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8929 cat >>confdefs.h <<_ACEOF
8930 #define HAVE_NET_IF_DL_H 1
8931 _ACEOF
8935 done
8937 for ac_func in getifaddrs freeifaddrs
8938 do :
8939 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8940 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8941 eval as_val=\$$as_ac_var
8942 if test "x$as_val" = x""yes; then :
8943 cat >>confdefs.h <<_ACEOF
8944 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8945 _ACEOF
8948 done
8950 >>>>>>> MERGE-SOURCE
8952 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8953 #if HAVE_SYS_SOCKET_H
8954 #include <sys/socket.h>
8955 #endif
8956 #if HAVE_NET_IF_H
8957 #include <net/if.h>
8958 #endif
8960 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8962 cat >>confdefs.h <<_ACEOF
8963 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8964 _ACEOF
8968 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8969 #if HAVE_SYS_SOCKET_H
8970 #include <sys/socket.h>
8971 #endif
8972 #if HAVE_NET_IF_H
8973 #include <net/if.h>
8974 #endif
8976 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8978 cat >>confdefs.h <<_ACEOF
8979 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8980 _ACEOF
8984 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8985 #if HAVE_SYS_SOCKET_H
8986 #include <sys/socket.h>
8987 #endif
8988 #if HAVE_NET_IF_H
8989 #include <net/if.h>
8990 #endif
8992 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8994 cat >>confdefs.h <<_ACEOF
8995 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8996 _ACEOF
9000 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9001 #if HAVE_SYS_SOCKET_H
9002 #include <sys/socket.h>
9003 #endif
9004 #if HAVE_NET_IF_H
9005 #include <net/if.h>
9006 #endif
9008 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9010 cat >>confdefs.h <<_ACEOF
9011 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9012 _ACEOF
9016 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9017 #if HAVE_SYS_SOCKET_H
9018 #include <sys/socket.h>
9019 #endif
9020 #if HAVE_NET_IF_H
9021 #include <net/if.h>
9022 #endif
9024 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9026 cat >>confdefs.h <<_ACEOF
9027 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9028 _ACEOF
9032 <<<<<<< TREE
9033 =======
9034 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9035 #if HAVE_SYS_SOCKET_H
9036 #include <sys/socket.h>
9037 #endif
9038 #if HAVE_NET_IF_H
9039 #include <net/if.h>
9040 #endif
9042 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9044 cat >>confdefs.h <<_ACEOF
9045 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9046 _ACEOF
9050 >>>>>>> MERGE-SOURCE
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
9055 $as_echo_n "checking for function prototypes... " >&6; }
9056 if test "$ac_cv_prog_cc_c89" != no; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9058 $as_echo "yes" >&6; }
9060 $as_echo "#define PROTOTYPES 1" >>confdefs.h
9063 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
9065 else
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9067 $as_echo "no" >&6; }
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9071 $as_echo_n "checking for working volatile... " >&6; }
9072 if test "${ac_cv_c_volatile+set}" = set; then :
9073 $as_echo_n "(cached) " >&6
9074 else
9075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9076 /* end confdefs.h. */
9079 main ()
9082 volatile int x;
9083 int * volatile y = (int *) 0;
9084 return !x && !y;
9086 return 0;
9088 _ACEOF
9089 if ac_fn_c_try_compile "$LINENO"; then :
9090 ac_cv_c_volatile=yes
9091 else
9092 ac_cv_c_volatile=no
9094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9097 $as_echo "$ac_cv_c_volatile" >&6; }
9098 if test $ac_cv_c_volatile = no; then
9100 $as_echo "#define volatile /**/" >>confdefs.h
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9105 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9106 if test "${ac_cv_c_const+set}" = set; then :
9107 $as_echo_n "(cached) " >&6
9108 else
9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9113 main ()
9115 /* FIXME: Include the comments suggested by Paul. */
9116 #ifndef __cplusplus
9117 /* Ultrix mips cc rejects this. */
9118 typedef int charset[2];
9119 const charset cs;
9120 /* SunOS 4.1.1 cc rejects this. */
9121 char const *const *pcpcc;
9122 char **ppc;
9123 /* NEC SVR4.0.2 mips cc rejects this. */
9124 struct point {int x, y;};
9125 static struct point const zero = {0,0};
9126 /* AIX XL C 1.02.0.0 rejects this.
9127 It does not let you subtract one const X* pointer from another in
9128 an arm of an if-expression whose if-part is not a constant
9129 expression */
9130 const char *g = "string";
9131 pcpcc = &g + (g ? g-g : 0);
9132 /* HPUX 7.0 cc rejects these. */
9133 ++pcpcc;
9134 ppc = (char**) pcpcc;
9135 pcpcc = (char const *const *) ppc;
9136 { /* SCO 3.2v4 cc rejects this. */
9137 char *t;
9138 char const *s = 0 ? (char *) 0 : (char const *) 0;
9140 *t++ = 0;
9141 if (s) return 0;
9143 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9144 int x[] = {25, 17};
9145 const int *foo = &x[0];
9146 ++foo;
9148 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9149 typedef const int *iptr;
9150 iptr p = 0;
9151 ++p;
9153 { /* AIX XL C 1.02.0.0 rejects this saying
9154 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9155 struct s { int j; const int *ap[3]; };
9156 struct s *b; b->j = 5;
9158 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9159 const int foo = 10;
9160 if (!foo) return 0;
9162 return !cs[0] && !zero.x;
9163 #endif
9166 return 0;
9168 _ACEOF
9169 if ac_fn_c_try_compile "$LINENO"; then :
9170 ac_cv_c_const=yes
9171 else
9172 ac_cv_c_const=no
9174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9177 $as_echo "$ac_cv_c_const" >&6; }
9178 if test $ac_cv_c_const = no; then
9180 $as_echo "#define const /**/" >>confdefs.h
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9185 $as_echo_n "checking for void * support... " >&6; }
9186 if test "${emacs_cv_void_star+set}" = set; then :
9187 $as_echo_n "(cached) " >&6
9188 else
9189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9193 main ()
9195 void * foo;
9197 return 0;
9199 _ACEOF
9200 if ac_fn_c_try_compile "$LINENO"; then :
9201 emacs_cv_void_star=yes
9202 else
9203 emacs_cv_void_star=no
9205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9208 $as_echo "$emacs_cv_void_star" >&6; }
9209 if test $emacs_cv_void_star = yes; then
9210 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9212 else
9213 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9218 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9219 if test "${ac_cv_c_bigendian+set}" = set; then :
9220 $as_echo_n "(cached) " >&6
9221 else
9222 ac_cv_c_bigendian=unknown
9223 # See if we're dealing with a universal compiler.
9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9226 #ifndef __APPLE_CC__
9227 not a universal capable compiler
9228 #endif
9229 typedef int dummy;
9231 _ACEOF
9232 if ac_fn_c_try_compile "$LINENO"; then :
9234 # Check for potential -arch flags. It is not universal unless
9235 # there are at least two -arch flags with different values.
9236 ac_arch=
9237 ac_prev=
9238 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9239 if test -n "$ac_prev"; then
9240 case $ac_word in
9241 i?86 | x86_64 | ppc | ppc64)
9242 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9243 ac_arch=$ac_word
9244 else
9245 ac_cv_c_bigendian=universal
9246 break
9249 esac
9250 ac_prev=
9251 elif test "x$ac_word" = "x-arch"; then
9252 ac_prev=arch
9254 done
9256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9257 if test $ac_cv_c_bigendian = unknown; then
9258 # See if sys/param.h defines the BYTE_ORDER macro.
9259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260 /* end confdefs.h. */
9261 #include <sys/types.h>
9262 #include <sys/param.h>
9265 main ()
9267 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9268 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9269 && LITTLE_ENDIAN)
9270 bogus endian macros
9271 #endif
9274 return 0;
9276 _ACEOF
9277 if ac_fn_c_try_compile "$LINENO"; then :
9278 # It does; now see whether it defined to BIG_ENDIAN or not.
9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h. */
9281 #include <sys/types.h>
9282 #include <sys/param.h>
9285 main ()
9287 #if BYTE_ORDER != BIG_ENDIAN
9288 not big endian
9289 #endif
9292 return 0;
9294 _ACEOF
9295 if ac_fn_c_try_compile "$LINENO"; then :
9296 ac_cv_c_bigendian=yes
9297 else
9298 ac_cv_c_bigendian=no
9300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9304 if test $ac_cv_c_bigendian = unknown; then
9305 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h. */
9308 #include <limits.h>
9311 main ()
9313 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9314 bogus endian macros
9315 #endif
9318 return 0;
9320 _ACEOF
9321 if ac_fn_c_try_compile "$LINENO"; then :
9322 # It does; now see whether it defined to _BIG_ENDIAN or not.
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9325 #include <limits.h>
9328 main ()
9330 #ifndef _BIG_ENDIAN
9331 not big endian
9332 #endif
9335 return 0;
9337 _ACEOF
9338 if ac_fn_c_try_compile "$LINENO"; then :
9339 ac_cv_c_bigendian=yes
9340 else
9341 ac_cv_c_bigendian=no
9343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9347 if test $ac_cv_c_bigendian = unknown; then
9348 # Compile a test program.
9349 if test "$cross_compiling" = yes; then :
9350 # Try to guess by grepping values from an object file.
9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9353 short int ascii_mm[] =
9354 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9355 short int ascii_ii[] =
9356 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9357 int use_ascii (int i) {
9358 return ascii_mm[i] + ascii_ii[i];
9360 short int ebcdic_ii[] =
9361 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9362 short int ebcdic_mm[] =
9363 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9364 int use_ebcdic (int i) {
9365 return ebcdic_mm[i] + ebcdic_ii[i];
9367 extern int foo;
9370 main ()
9372 return use_ascii (foo) == use_ebcdic (foo);
9374 return 0;
9376 _ACEOF
9377 if ac_fn_c_try_compile "$LINENO"; then :
9378 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9379 ac_cv_c_bigendian=yes
9381 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9382 if test "$ac_cv_c_bigendian" = unknown; then
9383 ac_cv_c_bigendian=no
9384 else
9385 # finding both strings is unlikely to happen, but who knows?
9386 ac_cv_c_bigendian=unknown
9390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391 else
9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h. */
9394 $ac_includes_default
9396 main ()
9399 /* Are we little or big endian? From Harbison&Steele. */
9400 union
9402 long int l;
9403 char c[sizeof (long int)];
9404 } u;
9405 u.l = 1;
9406 return u.c[sizeof (long int) - 1] == 1;
9409 return 0;
9411 _ACEOF
9412 if ac_fn_c_try_run "$LINENO"; then :
9413 ac_cv_c_bigendian=no
9414 else
9415 ac_cv_c_bigendian=yes
9417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9418 conftest.$ac_objext conftest.beam conftest.$ac_ext
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9424 $as_echo "$ac_cv_c_bigendian" >&6; }
9425 case $ac_cv_c_bigendian in #(
9426 yes)
9427 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9428 ;; #(
9430 ;; #(
9431 universal)
9433 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9435 ;; #(
9437 as_fn_error "unknown endianness
9438 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9439 esac
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9443 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9444 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9445 $as_echo_n "(cached) " >&6
9446 else
9447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9448 /* end confdefs.h. */
9449 char __attribute__ ((__aligned__ (1 << 3))) c;
9451 main ()
9455 return 0;
9457 _ACEOF
9458 if ac_fn_c_try_compile "$LINENO"; then :
9459 emacs_cv_attribute_aligned=yes
9460 else
9461 emacs_cv_attribute_aligned=no
9463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9466 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9467 if test $emacs_cv_attribute_aligned = yes; then
9469 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9474 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9475 set x ${MAKE-make}
9476 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9477 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9478 $as_echo_n "(cached) " >&6
9479 else
9480 cat >conftest.make <<\_ACEOF
9481 SHELL = /bin/sh
9482 all:
9483 @echo '@@@%%%=$(MAKE)=@@@%%%'
9484 _ACEOF
9485 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9486 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9487 *@@@%%%=?*=@@@%%%*)
9488 eval ac_cv_prog_make_${ac_make}_set=yes;;
9490 eval ac_cv_prog_make_${ac_make}_set=no;;
9491 esac
9492 rm -f conftest.make
9494 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9496 $as_echo "yes" >&6; }
9497 SET_MAKE=
9498 else
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9500 $as_echo "no" >&6; }
9501 SET_MAKE="MAKE=${MAKE-make}"
9505 DEPFLAGS=
9506 MKDEPDIR=":"
9507 deps_frag=deps.mk
9508 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9510 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9511 HAVE_GNU_MAKE=no
9512 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9513 if test "x$testval" != x; then
9514 HAVE_GNU_MAKE=yes
9515 else
9516 ac_enable_autodepend=no
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9519 $as_echo "$HAVE_GNU_MAKE" >&6; }
9520 if test $HAVE_GNU_MAKE = yes; then
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9522 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9523 SAVE_CFLAGS="$CFLAGS"
9524 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h. */
9529 main ()
9533 return 0;
9535 _ACEOF
9536 if ac_fn_c_try_compile "$LINENO"; then :
9538 else
9539 ac_enable_autodepend=no
9541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9542 CFLAGS="$SAVE_CFLAGS"
9543 test -f deps.d || ac_enable_autodepend=no
9544 rm -rf deps.d
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9546 $as_echo "$ac_enable_autodepend" >&6; }
9548 if test $ac_enable_autodepend = yes; then
9549 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9550 ## In parallel builds, another make might create depdir between
9551 ## the first test and mkdir, so stick another test on the end.
9552 ## Or use install-sh -d? mkdir -p is not portable.
9553 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9554 deps_frag=autodeps.mk
9557 deps_frag=$srcdir/src/$deps_frag
9563 lisp_frag=$srcdir/src/lisp.mk
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9568 $as_echo_n "checking for long file names... " >&6; }
9569 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9570 $as_echo_n "(cached) " >&6
9571 else
9572 ac_cv_sys_long_file_names=yes
9573 # Test for long file names in all the places we know might matter:
9574 # . the current directory, where building will happen
9575 # $prefix/lib where we will be installing things
9576 # $exec_prefix/lib likewise
9577 # $TMPDIR if set, where it might want to write temporary files
9578 # /tmp where it might want to write temporary files
9579 # /var/tmp likewise
9580 # /usr/tmp likewise
9581 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9582 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9583 # in the usual case where exec_prefix is '${prefix}'.
9584 case $ac_dir in #(
9585 . | /* | ?:[\\/]*) ;; #(
9586 *) continue;;
9587 esac
9588 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9589 ac_xdir=$ac_dir/cf$$
9590 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9591 ac_tf1=$ac_xdir/conftest9012345
9592 ac_tf2=$ac_xdir/conftest9012346
9593 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9594 ac_cv_sys_long_file_names=no
9595 rm -f -r "$ac_xdir" 2>/dev/null
9596 test $ac_cv_sys_long_file_names = no && break
9597 done
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9600 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9601 if test $ac_cv_sys_long_file_names = yes; then
9603 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9608 #### Choose a window system.
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9611 $as_echo_n "checking for X... " >&6; }
9614 # Check whether --with-x was given.
9615 if test "${with_x+set}" = set; then :
9616 withval=$with_x;
9619 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9620 if test "x$with_x" = xno; then
9621 # The user explicitly disabled X.
9622 have_x=disabled
9623 else
9624 case $x_includes,$x_libraries in #(
9625 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9626 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9627 $as_echo_n "(cached) " >&6
9628 else
9629 # One or both of the vars are not set, and there is no cached value.
9630 ac_x_includes=no ac_x_libraries=no
9631 rm -f -r conftest.dir
9632 if mkdir conftest.dir; then
9633 cd conftest.dir
9634 cat >Imakefile <<'_ACEOF'
9635 incroot:
9636 @echo incroot='${INCROOT}'
9637 usrlibdir:
9638 @echo usrlibdir='${USRLIBDIR}'
9639 libdir:
9640 @echo libdir='${LIBDIR}'
9641 _ACEOF
9642 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9643 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9644 for ac_var in incroot usrlibdir libdir; do
9645 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9646 done
9647 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9648 for ac_extension in a so sl dylib la dll; do
9649 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9650 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9651 ac_im_usrlibdir=$ac_im_libdir; break
9653 done
9654 # Screen out bogus values from the imake configuration. They are
9655 # bogus both because they are the default anyway, and because
9656 # using them would break gcc on systems where it needs fixed includes.
9657 case $ac_im_incroot in
9658 /usr/include) ac_x_includes= ;;
9659 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9660 esac
9661 case $ac_im_usrlibdir in
9662 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9663 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9664 esac
9666 cd ..
9667 rm -f -r conftest.dir
9670 # Standard set of common directories for X headers.
9671 # Check X11 before X11Rn because it is often a symlink to the current release.
9672 ac_x_header_dirs='
9673 /usr/X11/include
9674 /usr/X11R7/include
9675 /usr/X11R6/include
9676 /usr/X11R5/include
9677 /usr/X11R4/include
9679 /usr/include/X11
9680 /usr/include/X11R7
9681 /usr/include/X11R6
9682 /usr/include/X11R5
9683 /usr/include/X11R4
9685 /usr/local/X11/include
9686 /usr/local/X11R7/include
9687 /usr/local/X11R6/include
9688 /usr/local/X11R5/include
9689 /usr/local/X11R4/include
9691 /usr/local/include/X11
9692 /usr/local/include/X11R7
9693 /usr/local/include/X11R6
9694 /usr/local/include/X11R5
9695 /usr/local/include/X11R4
9697 /usr/X386/include
9698 /usr/x386/include
9699 /usr/XFree86/include/X11
9701 /usr/include
9702 /usr/local/include
9703 /usr/unsupported/include
9704 /usr/athena/include
9705 /usr/local/x11r5/include
9706 /usr/lpp/Xamples/include
9708 /usr/openwin/include
9709 /usr/openwin/share/include'
9711 if test "$ac_x_includes" = no; then
9712 # Guess where to find include files, by looking for Xlib.h.
9713 # First, try using that file with no special directory specified.
9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h. */
9716 #include <X11/Xlib.h>
9717 _ACEOF
9718 if ac_fn_c_try_cpp "$LINENO"; then :
9719 # We can compile using X headers with no special include directory.
9720 ac_x_includes=
9721 else
9722 for ac_dir in $ac_x_header_dirs; do
9723 if test -r "$ac_dir/X11/Xlib.h"; then
9724 ac_x_includes=$ac_dir
9725 break
9727 done
9729 rm -f conftest.err conftest.$ac_ext
9730 fi # $ac_x_includes = no
9732 if test "$ac_x_libraries" = no; then
9733 # Check for the libraries.
9734 # See if we find them without any special options.
9735 # Don't add to $LIBS permanently.
9736 ac_save_LIBS=$LIBS
9737 LIBS="-lX11 $LIBS"
9738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739 /* end confdefs.h. */
9740 #include <X11/Xlib.h>
9742 main ()
9744 XrmInitialize ()
9746 return 0;
9748 _ACEOF
9749 if ac_fn_c_try_link "$LINENO"; then :
9750 LIBS=$ac_save_LIBS
9751 # We can link X programs with no special library path.
9752 ac_x_libraries=
9753 else
9754 LIBS=$ac_save_LIBS
9755 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9757 # Don't even attempt the hair of trying to link an X program!
9758 for ac_extension in a so sl dylib la dll; do
9759 if test -r "$ac_dir/libX11.$ac_extension"; then
9760 ac_x_libraries=$ac_dir
9761 break 2
9763 done
9764 done
9766 rm -f core conftest.err conftest.$ac_objext \
9767 conftest$ac_exeext conftest.$ac_ext
9768 fi # $ac_x_libraries = no
9770 case $ac_x_includes,$ac_x_libraries in #(
9771 no,* | *,no | *\'*)
9772 # Didn't find X, or a directory has "'" in its name.
9773 ac_cv_have_x="have_x=no";; #(
9775 # Record where we found X for the cache.
9776 ac_cv_have_x="have_x=yes\
9777 ac_x_includes='$ac_x_includes'\
9778 ac_x_libraries='$ac_x_libraries'"
9779 esac
9781 ;; #(
9782 *) have_x=yes;;
9783 esac
9784 eval "$ac_cv_have_x"
9785 fi # $with_x != no
9787 if test "$have_x" != yes; then
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9789 $as_echo "$have_x" >&6; }
9790 no_x=yes
9791 else
9792 # If each of the values was on the command line, it overrides each guess.
9793 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9794 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9795 # Update the cache value to reflect the command line values.
9796 ac_cv_have_x="have_x=yes\
9797 ac_x_includes='$x_includes'\
9798 ac_x_libraries='$x_libraries'"
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9800 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9803 if test "$no_x" = yes; then
9804 window_system=none
9805 else
9806 window_system=x11
9809 ## Workaround for bug in autoconf <= 2.62.
9810 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9811 ## No need to do anything special for these standard directories.
9812 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9814 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9818 LD_SWITCH_X_SITE_AUX=
9819 LD_SWITCH_X_SITE_AUX_RPATH=
9820 if test "${x_libraries}" != NONE; then
9821 if test -n "${x_libraries}"; then
9822 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9823 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9824 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9826 x_default_search_path=""
9827 x_search_path=${x_libraries}
9828 if test -z "${x_search_path}"; then
9829 x_search_path=/usr/lib
9831 for x_library in `echo ${x_search_path}: | \
9832 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9833 x_search_path="\
9834 ${x_library}/X11/%L/%T/%N%C%S:\
9835 ${x_library}/X11/%l/%T/%N%C%S:\
9836 ${x_library}/X11/%T/%N%C%S:\
9837 ${x_library}/X11/%L/%T/%N%S:\
9838 ${x_library}/X11/%l/%T/%N%S:\
9839 ${x_library}/X11/%T/%N%S"
9840 if test x"${x_default_search_path}" = x; then
9841 x_default_search_path=${x_search_path}
9842 else
9843 x_default_search_path="${x_search_path}:${x_default_search_path}"
9845 done
9850 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9851 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9854 if test x"${x_includes}" = x; then
9855 bitmapdir=/usr/include/X11/bitmaps
9856 else
9857 # accumulate include directories that have X11 bitmap subdirectories
9858 bmd_acc="dummyval"
9859 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9860 if test -d "${bmd}/X11/bitmaps"; then
9861 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9863 if test -d "${bmd}/bitmaps"; then
9864 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9866 done
9867 if test ${bmd_acc} != "dummyval"; then
9868 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9872 HAVE_NS=no
9873 NS_IMPL_COCOA=no
9874 NS_IMPL_GNUSTEP=no
9875 tmp_CPPFLAGS="$CPPFLAGS"
9876 tmp_CFLAGS="$CFLAGS"
9877 CPPFLAGS="$CPPFLAGS -x objective-c"
9878 CFLAGS="$CFLAGS -x objective-c"
9879 TEMACS_LDFLAGS2="\${LDFLAGS}"
9880 GNU_OBJC_CFLAGS=
9881 if test "${with_ns}" != no; then
9882 if test "${opsys}" = darwin; then
9883 NS_IMPL_COCOA=yes
9884 ns_appdir=`pwd`/nextstep/Emacs.app
9885 ns_appbindir=${ns_appdir}/Contents/MacOS/
9886 ns_appresdir=${ns_appdir}/Contents/Resources
9887 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9888 elif test -f $GNUSTEP_CONFIG_FILE; then
9889 NS_IMPL_GNUSTEP=yes
9890 ns_appdir=`pwd`/nextstep/Emacs.app
9891 ns_appbindir=${ns_appdir}/
9892 ns_appresdir=${ns_appdir}/Resources
9893 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9894 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9895 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9896 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9897 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9898 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9899 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9900 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9901 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9902 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9903 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9904 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9905 LIB_STANDARD=
9906 START_FILES=
9907 TEMACS_LDFLAGS2=
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9909 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9910 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9911 $as_echo_n "(cached) " >&6
9912 else
9913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914 /* end confdefs.h. */
9915 #include <GNUstepBase/GSConfig.h>
9917 main ()
9919 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9921 #else
9922 fail;
9923 #endif
9925 return 0;
9927 _ACEOF
9928 if ac_fn_c_try_compile "$LINENO"; then :
9929 emacs_cv_objc_exceptions=yes
9930 else
9931 emacs_cv_objc_exceptions=no
9933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9936 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9937 if test $emacs_cv_objc_exceptions = yes; then
9939 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9941 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9945 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9947 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9948 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9949 HAVE_NS=yes
9950 else
9951 as_fn_error "\`--with-ns' was specified, but the include
9952 files are missing or cannot be compiled." "$LINENO" 5
9956 NS_HAVE_NSINTEGER=yes
9957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9958 /* end confdefs.h. */
9959 #include <Foundation/NSObjCRuntime.h>
9961 main ()
9963 NSInteger i;
9965 return 0;
9967 _ACEOF
9968 if ac_fn_c_try_compile "$LINENO"; then :
9969 ns_have_nsinteger=yes
9970 else
9971 ns_have_nsinteger=no
9973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9974 if test $ns_have_nsinteger = no; then
9975 NS_HAVE_NSINTEGER=no
9980 ns_frag=/dev/null
9981 NS_OBJ=
9982 NS_OBJC_OBJ=
9983 if test "${HAVE_NS}" = yes; then
9984 window_system=nextstep
9985 with_xft=no
9986 # set up packaging dirs
9987 exec_prefix=${ns_appbindir}
9988 libexecdir=${ns_appbindir}/libexec
9989 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9990 prefix=${ns_appresdir}
9992 ns_frag=$srcdir/src/ns.mk
9993 NS_OBJ="fontset.o fringe.o image.o"
9994 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9996 CFLAGS="$tmp_CFLAGS"
9997 CPPFLAGS="$tmp_CPPFLAGS"
10003 case "${window_system}" in
10004 x11 )
10005 HAVE_X_WINDOWS=yes
10006 HAVE_X11=yes
10007 case "${with_x_toolkit}" in
10008 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10009 motif ) USE_X_TOOLKIT=MOTIF ;;
10010 gtk ) with_gtk=yes
10011 USE_X_TOOLKIT=none ;;
10012 gtk3 ) with_gtk3=yes
10013 USE_X_TOOLKIT=none ;;
10014 no ) USE_X_TOOLKIT=none ;;
10015 * ) USE_X_TOOLKIT=maybe ;;
10016 esac
10018 nextstep | none )
10019 HAVE_X_WINDOWS=no
10020 HAVE_X11=no
10021 USE_X_TOOLKIT=none
10023 esac
10025 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10026 # Extract the first word of "X", so it can be a program name with args.
10027 set dummy X; ac_word=$2
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10029 $as_echo_n "checking for $ac_word... " >&6; }
10030 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10031 $as_echo_n "(cached) " >&6
10032 else
10033 if test -n "$HAVE_XSERVER"; then
10034 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10035 else
10036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10037 for as_dir in $PATH
10039 IFS=$as_save_IFS
10040 test -z "$as_dir" && as_dir=.
10041 for ac_exec_ext in '' $ac_executable_extensions; do
10042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10043 ac_cv_prog_HAVE_XSERVER="true"
10044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10045 break 2
10047 done
10048 done
10049 IFS=$as_save_IFS
10051 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10054 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10055 if test -n "$HAVE_XSERVER"; then
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10057 $as_echo "$HAVE_XSERVER" >&6; }
10058 else
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060 $as_echo "no" >&6; }
10064 if test "$HAVE_XSERVER" = true ||
10065 test -n "$DISPLAY" ||
10066 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10067 as_fn_error "You seem to be running X, but no X development libraries
10068 were found. You should install the relevant development files for X
10069 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10070 sure you have development files for image handling, i.e.
10071 tiff, gif, jpeg, png and xpm.
10072 If you are sure you want Emacs compiled without X window support, pass
10073 --without-x
10074 to configure." "$LINENO" 5
10078 ### If we're using X11, we should use the X menu package.
10079 HAVE_MENUS=no
10080 case ${HAVE_X11} in
10081 yes ) HAVE_MENUS=yes ;;
10082 esac
10084 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10085 # Assume not, until told otherwise.
10086 GNU_MALLOC=yes
10087 doug_lea_malloc=yes
10088 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
10089 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
10091 else
10092 doug_lea_malloc=no
10095 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
10096 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
10098 else
10099 doug_lea_malloc=no
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
10103 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10104 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
10105 $as_echo_n "(cached) " >&6
10106 else
10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h. */
10109 extern void (* __after_morecore_hook)();
10111 main ()
10113 __after_morecore_hook = 0
10115 return 0;
10117 _ACEOF
10118 if ac_fn_c_try_link "$LINENO"; then :
10119 emacs_cv_var___after_morecore_hook=yes
10120 else
10121 emacs_cv_var___after_morecore_hook=no
10123 rm -f core conftest.err conftest.$ac_objext \
10124 conftest$ac_exeext conftest.$ac_ext
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
10127 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10128 if test $emacs_cv_var___after_morecore_hook = no; then
10129 doug_lea_malloc=no
10133 system_malloc=no
10134 case "$opsys" in
10135 ## darwin ld insists on the use of malloc routines in the System framework.
10136 darwin|sol2-10) system_malloc=yes ;;
10137 esac
10139 if test "${system_malloc}" = "yes"; then
10141 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10143 GNU_MALLOC=no
10144 GNU_MALLOC_reason="
10145 (The GNU allocators don't work with this system configuration.)"
10146 GMALLOC_OBJ=
10147 VMLIMIT_OBJ=
10148 else
10149 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10150 VMLIMIT_OBJ=vm-limit.o
10155 if test "$doug_lea_malloc" = "yes" ; then
10156 if test "$GNU_MALLOC" = yes ; then
10157 GNU_MALLOC_reason="
10158 (Using Doug Lea's new malloc from the GNU C Library.)"
10161 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10164 ## Use mmap directly for allocating larger buffers.
10165 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10166 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10167 ## Does the AC_FUNC_MMAP test below make this check unecessary?
10168 case "$opsys" in
10169 gnu*) REL_ALLOC=no ;;
10170 esac
10173 if test x"${REL_ALLOC}" = x; then
10174 REL_ALLOC=${GNU_MALLOC}
10177 use_mmap_for_buffers=no
10178 case "$opsys" in
10179 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10180 esac
10185 for ac_header in $ac_header_list
10186 do :
10187 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10188 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10190 eval as_val=\$$as_ac_Header
10191 if test "x$as_val" = x""yes; then :
10192 cat >>confdefs.h <<_ACEOF
10193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10194 _ACEOF
10198 done
10207 for ac_func in getpagesize
10208 do :
10209 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10210 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10211 cat >>confdefs.h <<_ACEOF
10212 #define HAVE_GETPAGESIZE 1
10213 _ACEOF
10216 done
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10219 $as_echo_n "checking for working mmap... " >&6; }
10220 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10221 $as_echo_n "(cached) " >&6
10222 else
10223 if test "$cross_compiling" = yes; then :
10224 ac_cv_func_mmap_fixed_mapped=no
10225 else
10226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227 /* end confdefs.h. */
10228 $ac_includes_default
10229 /* malloc might have been renamed as rpl_malloc. */
10230 #undef malloc
10232 /* Thanks to Mike Haertel and Jim Avera for this test.
10233 Here is a matrix of mmap possibilities:
10234 mmap private not fixed
10235 mmap private fixed at somewhere currently unmapped
10236 mmap private fixed at somewhere already mapped
10237 mmap shared not fixed
10238 mmap shared fixed at somewhere currently unmapped
10239 mmap shared fixed at somewhere already mapped
10240 For private mappings, we should verify that changes cannot be read()
10241 back from the file, nor mmap's back from the file at a different
10242 address. (There have been systems where private was not correctly
10243 implemented like the infamous i386 svr4.0, and systems where the
10244 VM page cache was not coherent with the file system buffer cache
10245 like early versions of FreeBSD and possibly contemporary NetBSD.)
10246 For shared mappings, we should conversely verify that changes get
10247 propagated back to all the places they're supposed to be.
10249 Grep wants private fixed already mapped.
10250 The main things grep needs to know about mmap are:
10251 * does it exist and is it safe to write into the mmap'd area
10252 * how to use it (BSD variants) */
10254 #include <fcntl.h>
10255 #include <sys/mman.h>
10257 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10258 char *malloc ();
10259 #endif
10261 /* This mess was copied from the GNU getpagesize.h. */
10262 #ifndef HAVE_GETPAGESIZE
10263 # ifdef _SC_PAGESIZE
10264 # define getpagesize() sysconf(_SC_PAGESIZE)
10265 # else /* no _SC_PAGESIZE */
10266 # ifdef HAVE_SYS_PARAM_H
10267 # include <sys/param.h>
10268 # ifdef EXEC_PAGESIZE
10269 # define getpagesize() EXEC_PAGESIZE
10270 # else /* no EXEC_PAGESIZE */
10271 # ifdef NBPG
10272 # define getpagesize() NBPG * CLSIZE
10273 # ifndef CLSIZE
10274 # define CLSIZE 1
10275 # endif /* no CLSIZE */
10276 # else /* no NBPG */
10277 # ifdef NBPC
10278 # define getpagesize() NBPC
10279 # else /* no NBPC */
10280 # ifdef PAGESIZE
10281 # define getpagesize() PAGESIZE
10282 # endif /* PAGESIZE */
10283 # endif /* no NBPC */
10284 # endif /* no NBPG */
10285 # endif /* no EXEC_PAGESIZE */
10286 # else /* no HAVE_SYS_PARAM_H */
10287 # define getpagesize() 8192 /* punt totally */
10288 # endif /* no HAVE_SYS_PARAM_H */
10289 # endif /* no _SC_PAGESIZE */
10291 #endif /* no HAVE_GETPAGESIZE */
10294 main ()
10296 char *data, *data2, *data3;
10297 const char *cdata2;
10298 int i, pagesize;
10299 int fd, fd2;
10301 pagesize = getpagesize ();
10303 /* First, make a file with some known garbage in it. */
10304 data = (char *) malloc (pagesize);
10305 if (!data)
10306 return 1;
10307 for (i = 0; i < pagesize; ++i)
10308 *(data + i) = rand ();
10309 umask (0);
10310 fd = creat ("conftest.mmap", 0600);
10311 if (fd < 0)
10312 return 2;
10313 if (write (fd, data, pagesize) != pagesize)
10314 return 3;
10315 close (fd);
10317 /* Next, check that the tail of a page is zero-filled. File must have
10318 non-zero length, otherwise we risk SIGBUS for entire page. */
10319 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10320 if (fd2 < 0)
10321 return 4;
10322 cdata2 = "";
10323 if (write (fd2, cdata2, 1) != 1)
10324 return 5;
10325 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10326 if (data2 == MAP_FAILED)
10327 return 6;
10328 for (i = 0; i < pagesize; ++i)
10329 if (*(data2 + i))
10330 return 7;
10331 close (fd2);
10332 if (munmap (data2, pagesize))
10333 return 8;
10335 /* Next, try to mmap the file at a fixed address which already has
10336 something else allocated at it. If we can, also make sure that
10337 we see the same garbage. */
10338 fd = open ("conftest.mmap", O_RDWR);
10339 if (fd < 0)
10340 return 9;
10341 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10342 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10343 return 10;
10344 for (i = 0; i < pagesize; ++i)
10345 if (*(data + i) != *(data2 + i))
10346 return 11;
10348 /* Finally, make sure that changes to the mapped area do not
10349 percolate back to the file as seen by read(). (This is a bug on
10350 some variants of i386 svr4.0.) */
10351 for (i = 0; i < pagesize; ++i)
10352 *(data2 + i) = *(data2 + i) + 1;
10353 data3 = (char *) malloc (pagesize);
10354 if (!data3)
10355 return 12;
10356 if (read (fd, data3, pagesize) != pagesize)
10357 return 13;
10358 for (i = 0; i < pagesize; ++i)
10359 if (*(data + i) != *(data3 + i))
10360 return 14;
10361 close (fd);
10362 return 0;
10364 _ACEOF
10365 if ac_fn_c_try_run "$LINENO"; then :
10366 ac_cv_func_mmap_fixed_mapped=yes
10367 else
10368 ac_cv_func_mmap_fixed_mapped=no
10370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10371 conftest.$ac_objext conftest.beam conftest.$ac_ext
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10376 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10377 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10379 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10382 rm -f conftest.mmap conftest.txt
10384 if test $use_mmap_for_buffers = yes; then
10386 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10388 REL_ALLOC=no
10391 LIBS="$LIBS_SYSTEM $LIBS"
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10394 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10395 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10396 $as_echo_n "(cached) " >&6
10397 else
10398 ac_check_lib_save_LIBS=$LIBS
10399 LIBS="-ldnet $LIBS"
10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10403 /* Override any GCC internal prototype to avoid an error.
10404 Use char because int might match the return type of a GCC
10405 builtin and then its argument prototype would still apply. */
10406 #ifdef __cplusplus
10407 extern "C"
10408 #endif
10409 char dnet_ntoa ();
10411 main ()
10413 return dnet_ntoa ();
10415 return 0;
10417 _ACEOF
10418 if ac_fn_c_try_link "$LINENO"; then :
10419 ac_cv_lib_dnet_dnet_ntoa=yes
10420 else
10421 ac_cv_lib_dnet_dnet_ntoa=no
10423 rm -f core conftest.err conftest.$ac_objext \
10424 conftest$ac_exeext conftest.$ac_ext
10425 LIBS=$ac_check_lib_save_LIBS
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10428 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10429 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10430 cat >>confdefs.h <<_ACEOF
10431 #define HAVE_LIBDNET 1
10432 _ACEOF
10434 LIBS="-ldnet $LIBS"
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10440 $as_echo_n "checking for main in -lXbsd... " >&6; }
10441 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10442 $as_echo_n "(cached) " >&6
10443 else
10444 ac_check_lib_save_LIBS=$LIBS
10445 LIBS="-lXbsd $LIBS"
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10451 main ()
10453 return main ();
10455 return 0;
10457 _ACEOF
10458 if ac_fn_c_try_link "$LINENO"; then :
10459 ac_cv_lib_Xbsd_main=yes
10460 else
10461 ac_cv_lib_Xbsd_main=no
10463 rm -f core conftest.err conftest.$ac_objext \
10464 conftest$ac_exeext conftest.$ac_ext
10465 LIBS=$ac_check_lib_save_LIBS
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10468 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10469 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10470 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10474 LIB_PTHREAD=
10475 for ac_header in pthread.h
10476 do :
10477 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10478 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10479 cat >>confdefs.h <<_ACEOF
10480 #define HAVE_PTHREAD_H 1
10481 _ACEOF
10485 done
10487 if test "$ac_cv_header_pthread_h"; then
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10489 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10490 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10491 $as_echo_n "(cached) " >&6
10492 else
10493 ac_check_lib_save_LIBS=$LIBS
10494 LIBS="-lpthread $LIBS"
10495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10496 /* end confdefs.h. */
10498 /* Override any GCC internal prototype to avoid an error.
10499 Use char because int might match the return type of a GCC
10500 builtin and then its argument prototype would still apply. */
10501 #ifdef __cplusplus
10502 extern "C"
10503 #endif
10504 char pthread_self ();
10506 main ()
10508 return pthread_self ();
10510 return 0;
10512 _ACEOF
10513 if ac_fn_c_try_link "$LINENO"; then :
10514 ac_cv_lib_pthread_pthread_self=yes
10515 else
10516 ac_cv_lib_pthread_pthread_self=no
10518 rm -f core conftest.err conftest.$ac_objext \
10519 conftest$ac_exeext conftest.$ac_ext
10520 LIBS=$ac_check_lib_save_LIBS
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10523 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10524 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10525 HAVE_PTHREAD=yes
10529 if test "$HAVE_PTHREAD" = yes; then
10530 case "${canonical}" in
10531 *-hpux*) ;;
10532 *) LIB_PTHREAD="-lpthread" ;;
10533 esac
10535 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10541 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10542 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10543 $as_echo_n "(cached) " >&6
10544 else
10545 ac_check_lib_save_LIBS=$LIBS
10546 LIBS="-lpthreads $LIBS"
10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h. */
10550 /* Override any GCC internal prototype to avoid an error.
10551 Use char because int might match the return type of a GCC
10552 builtin and then its argument prototype would still apply. */
10553 #ifdef __cplusplus
10554 extern "C"
10555 #endif
10556 char cma_open ();
10558 main ()
10560 return cma_open ();
10562 return 0;
10564 _ACEOF
10565 if ac_fn_c_try_link "$LINENO"; then :
10566 ac_cv_lib_pthreads_cma_open=yes
10567 else
10568 ac_cv_lib_pthreads_cma_open=no
10570 rm -f core conftest.err conftest.$ac_objext \
10571 conftest$ac_exeext conftest.$ac_ext
10572 LIBS=$ac_check_lib_save_LIBS
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10575 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10576 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10577 cat >>confdefs.h <<_ACEOF
10578 #define HAVE_LIBPTHREADS 1
10579 _ACEOF
10581 LIBS="-lpthreads $LIBS"
10586 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10587 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10588 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10589 ## added to LIBS in configure would never contain the pthreads part,
10590 ## but the value used in Makefiles might. FIXME?
10592 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10593 ## be harmless on older versions of X where it happens to exist.
10594 test "$opsys" = "aix4-2" && \
10595 test $ac_cv_lib_pthreads_cma_open = yes && \
10596 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10599 case ${host_os} in
10600 aix*)
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10602 $as_echo_n "checking for -bbigtoc option... " >&6; }
10603 if test "${gdb_cv_bigtoc+set}" = set; then :
10604 $as_echo_n "(cached) " >&6
10605 else
10607 case $GCC in
10608 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10609 *) gdb_cv_bigtoc=-bbigtoc ;;
10610 esac
10612 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614 /* end confdefs.h. */
10617 main ()
10619 int i;
10621 return 0;
10623 _ACEOF
10624 if ac_fn_c_try_link "$LINENO"; then :
10626 else
10627 gdb_cv_bigtoc=
10629 rm -f core conftest.err conftest.$ac_objext \
10630 conftest$ac_exeext conftest.$ac_ext
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10634 $as_echo "$gdb_cv_bigtoc" >&6; }
10636 esac
10638 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10639 # used for the tests that follow. We set them back to REAL_CFLAGS and
10640 # REAL_CPPFLAGS later on.
10642 REAL_CFLAGS="$CFLAGS"
10643 REAL_CPPFLAGS="$CPPFLAGS"
10645 if test "${HAVE_X11}" = "yes"; then
10646 DEFS="$C_SWITCH_X_SITE $DEFS"
10647 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10648 LIBS="-lX11 $LIBS"
10649 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10650 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10652 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10653 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10654 # but it's more convenient here to set LD_RUN_PATH
10655 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10656 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10657 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10658 export LD_RUN_PATH
10661 if test "${opsys}" = "gnu-linux"; then
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10663 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665 /* end confdefs.h. */
10668 main ()
10670 XOpenDisplay ("foo");
10672 return 0;
10674 _ACEOF
10675 if ac_fn_c_try_link "$LINENO"; then :
10676 xgnu_linux_first_failure=no
10677 else
10678 xgnu_linux_first_failure=yes
10680 rm -f core conftest.err conftest.$ac_objext \
10681 conftest$ac_exeext conftest.$ac_ext
10682 if test "${xgnu_linux_first_failure}" = "yes"; then
10683 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10684 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10685 OLD_CPPFLAGS="$CPPFLAGS"
10686 OLD_LIBS="$LIBS"
10687 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10688 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10689 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10690 LIBS="$LIBS -b i486-linuxaout"
10691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10692 /* end confdefs.h. */
10695 main ()
10697 XOpenDisplay ("foo");
10699 return 0;
10701 _ACEOF
10702 if ac_fn_c_try_link "$LINENO"; then :
10703 xgnu_linux_second_failure=no
10704 else
10705 xgnu_linux_second_failure=yes
10707 rm -f core conftest.err conftest.$ac_objext \
10708 conftest$ac_exeext conftest.$ac_ext
10709 if test "${xgnu_linux_second_failure}" = "yes"; then
10710 # If we get the same failure with -b, there is no use adding -b.
10711 # So take it out. This plays safe.
10712 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10713 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10714 CPPFLAGS="$OLD_CPPFLAGS"
10715 LIBS="$OLD_LIBS"
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10717 $as_echo "no" >&6; }
10718 else
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10720 $as_echo "yes" >&6; }
10722 else
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724 $as_echo "no" >&6; }
10728 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10729 # header files included from there.
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10731 $as_echo_n "checking for Xkb... " >&6; }
10732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733 /* end confdefs.h. */
10734 #include <X11/Xlib.h>
10735 #include <X11/XKBlib.h>
10737 main ()
10739 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10741 return 0;
10743 _ACEOF
10744 if ac_fn_c_try_link "$LINENO"; then :
10745 emacs_xkb=yes
10746 else
10747 emacs_xkb=no
10749 rm -f core conftest.err conftest.$ac_objext \
10750 conftest$ac_exeext conftest.$ac_ext
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10752 $as_echo "$emacs_xkb" >&6; }
10753 if test $emacs_xkb = yes; then
10755 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10759 for ac_func in XrmSetDatabase XScreenResourceString \
10760 XScreenNumberOfScreen XSetWMProtocols
10761 do :
10762 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10763 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10764 eval as_val=\$$as_ac_var
10765 if test "x$as_val" = x""yes; then :
10766 cat >>confdefs.h <<_ACEOF
10767 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10768 _ACEOF
10771 done
10775 if test "${window_system}" = "x11"; then
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10777 $as_echo_n "checking X11 version 6... " >&6; }
10778 if test "${emacs_cv_x11_version_6+set}" = set; then :
10779 $as_echo_n "(cached) " >&6
10780 else
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h. */
10783 #include <X11/Xlib.h>
10785 main ()
10787 #if XlibSpecificationRelease < 6
10788 fail;
10789 #endif
10792 return 0;
10794 _ACEOF
10795 if ac_fn_c_try_link "$LINENO"; then :
10796 emacs_cv_x11_version_6=yes
10797 else
10798 emacs_cv_x11_version_6=no
10800 rm -f core conftest.err conftest.$ac_objext \
10801 conftest$ac_exeext conftest.$ac_ext
10804 if test $emacs_cv_x11_version_6 = yes; then
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10806 $as_echo "6 or newer" >&6; }
10808 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10811 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10813 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10814 ## XIM support.
10815 case "$opsys" in
10816 sol2-*) : ;;
10818 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10821 esac
10822 else
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10824 $as_echo "before 6" >&6; }
10829 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10830 HAVE_RSVG=no
10831 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10832 if test "${with_rsvg}" != "no"; then
10833 RSVG_REQUIRED=2.11.0
10834 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10837 succeeded=no
10839 # Extract the first word of "pkg-config", so it can be a program name with args.
10840 set dummy pkg-config; ac_word=$2
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10842 $as_echo_n "checking for $ac_word... " >&6; }
10843 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10844 $as_echo_n "(cached) " >&6
10845 else
10846 case $PKG_CONFIG in
10847 [\\/]* | ?:[\\/]*)
10848 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10852 for as_dir in $PATH
10854 IFS=$as_save_IFS
10855 test -z "$as_dir" && as_dir=.
10856 for ac_exec_ext in '' $ac_executable_extensions; do
10857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10858 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10860 break 2
10862 done
10863 done
10864 IFS=$as_save_IFS
10866 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10868 esac
10870 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10871 if test -n "$PKG_CONFIG"; then
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10873 $as_echo "$PKG_CONFIG" >&6; }
10874 else
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10876 $as_echo "no" >&6; }
10881 if test "$PKG_CONFIG" = "no" ; then
10883 else
10884 PKG_CONFIG_MIN_VERSION=0.9.0
10885 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10887 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10889 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10891 $as_echo "yes" >&6; }
10892 succeeded=yes
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10895 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10896 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10898 $as_echo "$RSVG_CFLAGS" >&6; }
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10901 $as_echo_n "checking RSVG_LIBS... " >&6; }
10902 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10904 $as_echo "$RSVG_LIBS" >&6; }
10905 else
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10907 $as_echo "no" >&6; }
10908 RSVG_CFLAGS=""
10909 RSVG_LIBS=""
10910 ## If we have a custom action on failure, don't print errors, but
10911 ## do set a variable so people can do so.
10912 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10918 else
10919 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10920 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10924 if test $succeeded = yes; then
10925 HAVE_RSVG=yes
10926 else
10933 if test $HAVE_RSVG = yes; then
10935 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10937 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10938 LIBS="$RSVG_LIBS $LIBS"
10943 HAVE_IMAGEMAGICK=no
10944 if test "${HAVE_X11}" = "yes"; then
10945 if test "${with_imagemagick}" != "no"; then
10946 ## 6.2.8 is the earliest version known to work, but earlier versions
10947 ## might work - let us know if you find one.
10948 ## 6.0.7 does not work. See bug#7955.
10949 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10951 succeeded=no
10953 # Extract the first word of "pkg-config", so it can be a program name with args.
10954 set dummy pkg-config; ac_word=$2
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10956 $as_echo_n "checking for $ac_word... " >&6; }
10957 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10958 $as_echo_n "(cached) " >&6
10959 else
10960 case $PKG_CONFIG in
10961 [\\/]* | ?:[\\/]*)
10962 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10966 for as_dir in $PATH
10968 IFS=$as_save_IFS
10969 test -z "$as_dir" && as_dir=.
10970 for ac_exec_ext in '' $ac_executable_extensions; do
10971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10972 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10974 break 2
10976 done
10977 done
10978 IFS=$as_save_IFS
10980 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10982 esac
10984 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10985 if test -n "$PKG_CONFIG"; then
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10987 $as_echo "$PKG_CONFIG" >&6; }
10988 else
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10990 $as_echo "no" >&6; }
10995 if test "$PKG_CONFIG" = "no" ; then
10997 else
10998 PKG_CONFIG_MIN_VERSION=0.9.0
10999 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11001 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11003 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11005 $as_echo "yes" >&6; }
11006 succeeded=yes
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
11009 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
11010 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
11012 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
11015 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
11016 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
11018 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
11019 else
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021 $as_echo "no" >&6; }
11022 IMAGEMAGICK_CFLAGS=""
11023 IMAGEMAGICK_LIBS=""
11024 ## If we have a custom action on failure, don't print errors, but
11025 ## do set a variable so people can do so.
11026 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
11032 else
11033 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11034 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11038 if test $succeeded = yes; then
11039 HAVE_IMAGEMAGICK=yes
11040 else
11047 if test $HAVE_IMAGEMAGICK = yes; then
11049 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11051 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11052 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11053 for ac_func in MagickExportImagePixels
11054 do :
11055 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
11056 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
11057 cat >>confdefs.h <<_ACEOF
11058 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
11059 _ACEOF
11062 done
11069 HAVE_GTK=no
11070 GTK_OBJ=
11071 if test "${with_gtk3}" = "yes"; then
11072 GLIB_REQUIRED=2.28
11073 GTK_REQUIRED=3.0
11074 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11077 succeeded=no
11079 # Extract the first word of "pkg-config", so it can be a program name with args.
11080 set dummy pkg-config; ac_word=$2
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11082 $as_echo_n "checking for $ac_word... " >&6; }
11083 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11084 $as_echo_n "(cached) " >&6
11085 else
11086 case $PKG_CONFIG in
11087 [\\/]* | ?:[\\/]*)
11088 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092 for as_dir in $PATH
11094 IFS=$as_save_IFS
11095 test -z "$as_dir" && as_dir=.
11096 for ac_exec_ext in '' $ac_executable_extensions; do
11097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11098 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11100 break 2
11102 done
11103 done
11104 IFS=$as_save_IFS
11106 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11108 esac
11110 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11111 if test -n "$PKG_CONFIG"; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11113 $as_echo "$PKG_CONFIG" >&6; }
11114 else
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116 $as_echo "no" >&6; }
11121 if test "$PKG_CONFIG" = "no" ; then
11122 pkg_check_gtk=no
11123 else
11124 PKG_CONFIG_MIN_VERSION=0.9.0
11125 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11127 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11129 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11131 $as_echo "yes" >&6; }
11132 succeeded=yes
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11135 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11136 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11138 $as_echo "$GTK_CFLAGS" >&6; }
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11141 $as_echo_n "checking GTK_LIBS... " >&6; }
11142 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11144 $as_echo "$GTK_LIBS" >&6; }
11145 else
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147 $as_echo "no" >&6; }
11148 GTK_CFLAGS=""
11149 GTK_LIBS=""
11150 ## If we have a custom action on failure, don't print errors, but
11151 ## do set a variable so people can do so.
11152 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11158 else
11159 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11160 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11164 if test $succeeded = yes; then
11165 pkg_check_gtk=yes
11166 else
11167 pkg_check_gtk=no
11170 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11171 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11174 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11176 GTK_OBJ=emacsgtkfixed.o
11179 if test "$pkg_check_gtk" != "yes"; then
11180 HAVE_GTK=no
11181 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11182 GLIB_REQUIRED=2.10
11183 GTK_REQUIRED=2.10
11184 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11187 succeeded=no
11189 # Extract the first word of "pkg-config", so it can be a program name with args.
11190 set dummy pkg-config; ac_word=$2
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11192 $as_echo_n "checking for $ac_word... " >&6; }
11193 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11194 $as_echo_n "(cached) " >&6
11195 else
11196 case $PKG_CONFIG in
11197 [\\/]* | ?:[\\/]*)
11198 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202 for as_dir in $PATH
11204 IFS=$as_save_IFS
11205 test -z "$as_dir" && as_dir=.
11206 for ac_exec_ext in '' $ac_executable_extensions; do
11207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11208 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11210 break 2
11212 done
11213 done
11214 IFS=$as_save_IFS
11216 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11218 esac
11220 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11221 if test -n "$PKG_CONFIG"; then
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11223 $as_echo "$PKG_CONFIG" >&6; }
11224 else
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226 $as_echo "no" >&6; }
11231 if test "$PKG_CONFIG" = "no" ; then
11232 pkg_check_gtk=no
11233 else
11234 PKG_CONFIG_MIN_VERSION=0.9.0
11235 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11237 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11239 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11241 $as_echo "yes" >&6; }
11242 succeeded=yes
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11245 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11246 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11248 $as_echo "$GTK_CFLAGS" >&6; }
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11251 $as_echo_n "checking GTK_LIBS... " >&6; }
11252 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11254 $as_echo "$GTK_LIBS" >&6; }
11255 else
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257 $as_echo "no" >&6; }
11258 GTK_CFLAGS=""
11259 GTK_LIBS=""
11260 ## If we have a custom action on failure, don't print errors, but
11261 ## do set a variable so people can do so.
11262 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11268 else
11269 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11270 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11274 if test $succeeded = yes; then
11275 pkg_check_gtk=yes
11276 else
11277 pkg_check_gtk=no
11280 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11281 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11286 if test x"$pkg_check_gtk" = xyes; then
11290 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11291 CFLAGS="$CFLAGS $GTK_CFLAGS"
11292 LIBS="$GTK_LIBS $LIBS"
11293 GTK_COMPILES=no
11294 for ac_func in gtk_main
11295 do :
11296 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11297 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11298 cat >>confdefs.h <<_ACEOF
11299 #define HAVE_GTK_MAIN 1
11300 _ACEOF
11301 GTK_COMPILES=yes
11303 done
11305 if test "${GTK_COMPILES}" != "yes"; then
11306 if test "$USE_X_TOOLKIT" != "maybe"; then
11307 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11309 else
11310 HAVE_GTK=yes
11312 $as_echo "#define USE_GTK 1" >>confdefs.h
11314 GTK_OBJ="gtkutil.o $GTK_OBJ"
11315 USE_X_TOOLKIT=none
11316 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11318 else
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11320 closing open displays. This is no problem if you just use
11321 one display, but if you use more than one and close one of them
11322 Emacs may crash." >&5
11323 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11324 closing open displays. This is no problem if you just use
11325 one display, but if you use more than one and close one of them
11326 Emacs may crash." >&2;}
11327 sleep 3
11335 if test "${HAVE_GTK}" = "yes"; then
11337 if test "$with_toolkit_scroll_bars" != no; then
11338 with_toolkit_scroll_bars=yes
11341 HAVE_GTK_FILE_SELECTION=no
11342 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11343 #include <gtk/gtk.h>
11345 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11346 HAVE_GTK_FILE_SELECTION=yes
11347 else
11348 HAVE_GTK_FILE_SELECTION=no
11351 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11352 for ac_func in gtk_file_selection_new
11353 do :
11354 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11355 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11356 cat >>confdefs.h <<_ACEOF
11357 #define HAVE_GTK_FILE_SELECTION_NEW 1
11358 _ACEOF
11361 done
11366 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11367 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11368 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11369 gtk_orientable_set_orientation
11370 do :
11371 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11372 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11373 eval as_val=\$$as_ac_var
11374 if test "x$as_val" = x""yes; then :
11375 cat >>confdefs.h <<_ACEOF
11376 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11377 _ACEOF
11380 done
11385 HAVE_DBUS=no
11386 DBUS_OBJ=
11387 if test "${with_dbus}" = "yes"; then
11389 succeeded=no
11391 # Extract the first word of "pkg-config", so it can be a program name with args.
11392 set dummy pkg-config; ac_word=$2
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11394 $as_echo_n "checking for $ac_word... " >&6; }
11395 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11396 $as_echo_n "(cached) " >&6
11397 else
11398 case $PKG_CONFIG in
11399 [\\/]* | ?:[\\/]*)
11400 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11404 for as_dir in $PATH
11406 IFS=$as_save_IFS
11407 test -z "$as_dir" && as_dir=.
11408 for ac_exec_ext in '' $ac_executable_extensions; do
11409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11410 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11412 break 2
11414 done
11415 done
11416 IFS=$as_save_IFS
11418 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11420 esac
11422 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11423 if test -n "$PKG_CONFIG"; then
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11425 $as_echo "$PKG_CONFIG" >&6; }
11426 else
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428 $as_echo "no" >&6; }
11433 if test "$PKG_CONFIG" = "no" ; then
11434 HAVE_DBUS=no
11435 else
11436 PKG_CONFIG_MIN_VERSION=0.9.0
11437 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11439 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11441 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11443 $as_echo "yes" >&6; }
11444 succeeded=yes
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
11447 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
11448 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
11450 $as_echo "$DBUS_CFLAGS" >&6; }
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
11453 $as_echo_n "checking DBUS_LIBS... " >&6; }
11454 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
11456 $as_echo "$DBUS_LIBS" >&6; }
11457 else
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459 $as_echo "no" >&6; }
11460 DBUS_CFLAGS=""
11461 DBUS_LIBS=""
11462 ## If we have a custom action on failure, don't print errors, but
11463 ## do set a variable so people can do so.
11464 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11470 else
11471 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11472 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11476 if test $succeeded = yes; then
11477 HAVE_DBUS=yes
11478 else
11479 HAVE_DBUS=no
11482 if test "$HAVE_DBUS" = yes; then
11483 LIBS="$LIBS $DBUS_LIBS"
11485 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11487 for ac_func in dbus_watch_get_unix_fd
11488 do :
11489 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11490 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
11491 cat >>confdefs.h <<_ACEOF
11492 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11493 _ACEOF
11496 done
11498 DBUS_OBJ=dbusbind.o
11503 <<<<<<< TREE
11504 =======
11505 HAVE_GSETTINGS=no
11506 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11508 succeeded=no
11510 # Extract the first word of "pkg-config", so it can be a program name with args.
11511 set dummy pkg-config; ac_word=$2
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11513 $as_echo_n "checking for $ac_word... " >&6; }
11514 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11515 $as_echo_n "(cached) " >&6
11516 else
11517 case $PKG_CONFIG in
11518 [\\/]* | ?:[\\/]*)
11519 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11523 for as_dir in $PATH
11525 IFS=$as_save_IFS
11526 test -z "$as_dir" && as_dir=.
11527 for ac_exec_ext in '' $ac_executable_extensions; do
11528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11529 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11531 break 2
11533 done
11534 done
11535 IFS=$as_save_IFS
11537 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11539 esac
11541 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11542 if test -n "$PKG_CONFIG"; then
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11544 $as_echo "$PKG_CONFIG" >&6; }
11545 else
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11547 $as_echo "no" >&6; }
11552 if test "$PKG_CONFIG" = "no" ; then
11553 HAVE_GSETTINGS=no
11554 else
11555 PKG_CONFIG_MIN_VERSION=0.9.0
11556 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11558 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11560 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5; then
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11562 $as_echo "yes" >&6; }
11563 succeeded=yes
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5
11566 $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; }
11567 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5
11569 $as_echo "$GSETTINGS_CFLAGS" >&6; }
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5
11572 $as_echo_n "checking GSETTINGS_LIBS... " >&6; }
11573 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5
11575 $as_echo "$GSETTINGS_LIBS" >&6; }
11576 else
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578 $as_echo "no" >&6; }
11579 GSETTINGS_CFLAGS=""
11580 GSETTINGS_LIBS=""
11581 ## If we have a custom action on failure, don't print errors, but
11582 ## do set a variable so people can do so.
11583 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
11589 else
11590 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11591 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11595 if test $succeeded = yes; then
11596 HAVE_GSETTINGS=yes
11597 else
11598 HAVE_GSETTINGS=no
11601 if test "$HAVE_GSETTINGS" = "yes"; then
11603 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11605 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11606 SETTINGS_LIBS="$GSETTINGS_LIBS"
11610 >>>>>>> MERGE-SOURCE
11611 HAVE_GCONF=no
11612 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11614 succeeded=no
11616 # Extract the first word of "pkg-config", so it can be a program name with args.
11617 set dummy pkg-config; ac_word=$2
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11619 $as_echo_n "checking for $ac_word... " >&6; }
11620 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11621 $as_echo_n "(cached) " >&6
11622 else
11623 case $PKG_CONFIG in
11624 [\\/]* | ?:[\\/]*)
11625 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11629 for as_dir in $PATH
11631 IFS=$as_save_IFS
11632 test -z "$as_dir" && as_dir=.
11633 for ac_exec_ext in '' $ac_executable_extensions; do
11634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11635 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11637 break 2
11639 done
11640 done
11641 IFS=$as_save_IFS
11643 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11645 esac
11647 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11648 if test -n "$PKG_CONFIG"; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11650 $as_echo "$PKG_CONFIG" >&6; }
11651 else
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653 $as_echo "no" >&6; }
11658 if test "$PKG_CONFIG" = "no" ; then
11659 HAVE_GCONF=no
11660 else
11661 PKG_CONFIG_MIN_VERSION=0.9.0
11662 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11664 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11666 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11668 $as_echo "yes" >&6; }
11669 succeeded=yes
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11672 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11673 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11675 $as_echo "$GCONF_CFLAGS" >&6; }
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11678 $as_echo_n "checking GCONF_LIBS... " >&6; }
11679 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11681 $as_echo "$GCONF_LIBS" >&6; }
11682 else
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684 $as_echo "no" >&6; }
11685 GCONF_CFLAGS=""
11686 GCONF_LIBS=""
11687 ## If we have a custom action on failure, don't print errors, but
11688 ## do set a variable so people can do so.
11689 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11695 else
11696 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11697 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11701 if test $succeeded = yes; then
11702 HAVE_GCONF=yes
11703 else
11704 HAVE_GCONF=no
11707 if test "$HAVE_GCONF" = yes; then
11709 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11711 for ac_func in g_type_init
11712 do :
11713 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11714 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11715 cat >>confdefs.h <<_ACEOF
11716 #define HAVE_G_TYPE_INIT 1
11717 _ACEOF
11720 done
11725 HAVE_LIBSELINUX=no
11726 LIBSELINUX_LIBS=
11727 if test "${with_selinux}" = "yes"; then
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11729 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11730 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11731 $as_echo_n "(cached) " >&6
11732 else
11733 ac_check_lib_save_LIBS=$LIBS
11734 LIBS="-lselinux $LIBS"
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11738 /* Override any GCC internal prototype to avoid an error.
11739 Use char because int might match the return type of a GCC
11740 builtin and then its argument prototype would still apply. */
11741 #ifdef __cplusplus
11742 extern "C"
11743 #endif
11744 char lgetfilecon ();
11746 main ()
11748 return lgetfilecon ();
11750 return 0;
11752 _ACEOF
11753 if ac_fn_c_try_link "$LINENO"; then :
11754 ac_cv_lib_selinux_lgetfilecon=yes
11755 else
11756 ac_cv_lib_selinux_lgetfilecon=no
11758 rm -f core conftest.err conftest.$ac_objext \
11759 conftest$ac_exeext conftest.$ac_ext
11760 LIBS=$ac_check_lib_save_LIBS
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11763 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11764 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11765 HAVE_LIBSELINUX=yes
11766 else
11767 HAVE_LIBSELINUX=no
11770 if test "$HAVE_LIBSELINUX" = yes; then
11772 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11774 LIBSELINUX_LIBS=-lselinux
11779 HAVE_GNUTLS=no
11780 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11781 if test "${with_gnutls}" = "yes" ; then
11783 succeeded=no
11785 # Extract the first word of "pkg-config", so it can be a program name with args.
11786 set dummy pkg-config; ac_word=$2
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11788 $as_echo_n "checking for $ac_word... " >&6; }
11789 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11790 $as_echo_n "(cached) " >&6
11791 else
11792 case $PKG_CONFIG in
11793 [\\/]* | ?:[\\/]*)
11794 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11798 for as_dir in $PATH
11800 IFS=$as_save_IFS
11801 test -z "$as_dir" && as_dir=.
11802 for ac_exec_ext in '' $ac_executable_extensions; do
11803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11804 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11806 break 2
11808 done
11809 done
11810 IFS=$as_save_IFS
11812 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11814 esac
11816 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11817 if test -n "$PKG_CONFIG"; then
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11819 $as_echo "$PKG_CONFIG" >&6; }
11820 else
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11822 $as_echo "no" >&6; }
11827 if test "$PKG_CONFIG" = "no" ; then
11828 HAVE_GNUTLS=no
11829 else
11830 PKG_CONFIG_MIN_VERSION=0.9.0
11831 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.0" >&5
11833 $as_echo_n "checking for gnutls >= 2.6.0... " >&6; }
11835 if $PKG_CONFIG --exists "gnutls >= 2.6.0" 2>&5; then
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11837 $as_echo "yes" >&6; }
11838 succeeded=yes
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11841 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11842 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11844 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11847 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11848 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11850 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11851 else
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11853 $as_echo "no" >&6; }
11854 LIBGNUTLS_CFLAGS=""
11855 LIBGNUTLS_LIBS=""
11856 ## If we have a custom action on failure, don't print errors, but
11857 ## do set a variable so people can do so.
11858 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.0"`
11864 else
11865 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11866 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11870 if test $succeeded = yes; then
11871 HAVE_GNUTLS=yes
11872 else
11873 HAVE_GNUTLS=no
11876 if test "${HAVE_GNUTLS}" = "yes"; then
11878 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11882 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11883 LIBS="$LIBGNUTLS_LIBS $LIBS"
11884 for ac_func in gnutls_certificate_set_verify_function
11885 do :
11886 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11887 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11888 cat >>confdefs.h <<_ACEOF
11889 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11890 _ACEOF
11891 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11893 done
11896 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11898 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11906 HAVE_XAW3D=no
11907 LUCID_LIBW=
11908 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11909 if test "$with_xaw3d" != no; then
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11911 $as_echo_n "checking for xaw3d... " >&6; }
11912 if test "${emacs_cv_xaw3d+set}" = set; then :
11913 $as_echo_n "(cached) " >&6
11914 else
11915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11916 /* end confdefs.h. */
11918 #include <X11/Intrinsic.h>
11919 #include <X11/Xaw3d/Simple.h>
11921 main ()
11925 return 0;
11927 _ACEOF
11928 if ac_fn_c_try_link "$LINENO"; then :
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11930 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11931 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11932 $as_echo_n "(cached) " >&6
11933 else
11934 ac_check_lib_save_LIBS=$LIBS
11935 LIBS="-lXaw3d $LIBS"
11936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11937 /* end confdefs.h. */
11939 /* Override any GCC internal prototype to avoid an error.
11940 Use char because int might match the return type of a GCC
11941 builtin and then its argument prototype would still apply. */
11942 #ifdef __cplusplus
11943 extern "C"
11944 #endif
11945 char XawScrollbarSetThumb ();
11947 main ()
11949 return XawScrollbarSetThumb ();
11951 return 0;
11953 _ACEOF
11954 if ac_fn_c_try_link "$LINENO"; then :
11955 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11956 else
11957 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11959 rm -f core conftest.err conftest.$ac_objext \
11960 conftest$ac_exeext conftest.$ac_ext
11961 LIBS=$ac_check_lib_save_LIBS
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11964 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11965 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11966 emacs_cv_xaw3d=yes
11967 else
11968 emacs_cv_xaw3d=no
11971 else
11972 emacs_cv_xaw3d=no
11974 rm -f core conftest.err conftest.$ac_objext \
11975 conftest$ac_exeext conftest.$ac_ext
11978 else
11979 emacs_cv_xaw3d=no
11981 if test $emacs_cv_xaw3d = yes; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11983 $as_echo "yes; using Lucid toolkit" >&6; }
11984 USE_X_TOOLKIT=LUCID
11985 HAVE_XAW3D=yes
11986 LUCID_LIBW=-lXaw3d
11988 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11990 else
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992 $as_echo "no" >&6; }
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11994 $as_echo_n "checking for libXaw... " >&6; }
11995 if test "${emacs_cv_xaw+set}" = set; then :
11996 $as_echo_n "(cached) " >&6
11997 else
11998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11999 /* end confdefs.h. */
12001 #include <X11/Intrinsic.h>
12002 #include <X11/Xaw/Simple.h>
12004 main ()
12008 return 0;
12010 _ACEOF
12011 if ac_fn_c_try_link "$LINENO"; then :
12012 emacs_cv_xaw=yes
12013 else
12014 emacs_cv_xaw=no
12016 rm -f core conftest.err conftest.$ac_objext \
12017 conftest$ac_exeext conftest.$ac_ext
12020 if test $emacs_cv_xaw = yes; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12022 $as_echo "yes; using Lucid toolkit" >&6; }
12023 USE_X_TOOLKIT=LUCID
12024 LUCID_LIBW=-lXaw
12025 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12026 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12027 else
12028 as_fn_error "No X toolkit could be found.
12029 If you are sure you want Emacs compiled without an X toolkit, pass
12030 --with-x-toolkit=no
12031 to configure. Otherwise, install the development libraries for the toolkit
12032 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12037 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12039 LIBXTR6=
12040 if test "${USE_X_TOOLKIT}" != "none"; then
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12042 $as_echo_n "checking X11 toolkit version... " >&6; }
12043 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12044 $as_echo_n "(cached) " >&6
12045 else
12046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047 /* end confdefs.h. */
12048 #include <X11/Intrinsic.h>
12050 main ()
12052 #if XtSpecificationRelease < 6
12053 fail;
12054 #endif
12057 return 0;
12059 _ACEOF
12060 if ac_fn_c_try_link "$LINENO"; then :
12061 emacs_cv_x11_toolkit_version_6=yes
12062 else
12063 emacs_cv_x11_toolkit_version_6=no
12065 rm -f core conftest.err conftest.$ac_objext \
12066 conftest$ac_exeext conftest.$ac_ext
12069 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12070 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12072 $as_echo "6 or newer" >&6; }
12074 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12076 LIBXTR6="-lSM -lICE"
12077 case "$opsys" in
12078 ## Use libw.a along with X11R6 Xt.
12079 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
12080 esac
12081 else
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12083 $as_echo "before 6" >&6; }
12086 OLDLIBS="$LIBS"
12087 if test x$HAVE_X11XTR6 = xyes; then
12088 LIBS="-lXt -lSM -lICE $LIBS"
12089 else
12090 LIBS="-lXt $LIBS"
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12093 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12094 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12095 $as_echo_n "(cached) " >&6
12096 else
12097 ac_check_lib_save_LIBS=$LIBS
12098 LIBS="-lXmu $LIBS"
12099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100 /* end confdefs.h. */
12102 /* Override any GCC internal prototype to avoid an error.
12103 Use char because int might match the return type of a GCC
12104 builtin and then its argument prototype would still apply. */
12105 #ifdef __cplusplus
12106 extern "C"
12107 #endif
12108 char XmuConvertStandardSelection ();
12110 main ()
12112 return XmuConvertStandardSelection ();
12114 return 0;
12116 _ACEOF
12117 if ac_fn_c_try_link "$LINENO"; then :
12118 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12119 else
12120 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12122 rm -f core conftest.err conftest.$ac_objext \
12123 conftest$ac_exeext conftest.$ac_ext
12124 LIBS=$ac_check_lib_save_LIBS
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12127 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12128 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12129 cat >>confdefs.h <<_ACEOF
12130 #define HAVE_LIBXMU 1
12131 _ACEOF
12133 LIBS="-lXmu $LIBS"
12137 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12141 LIBXMU=-lXmu
12142 case $opsys in
12143 ## These systems don't supply Xmu.
12144 hpux* | aix4-2 )
12145 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12147 esac
12150 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12151 if test "${HAVE_X11}" = "yes"; then
12152 if test "${USE_X_TOOLKIT}" != "none"; then
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12154 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12155 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12156 $as_echo_n "(cached) " >&6
12157 else
12158 ac_check_lib_save_LIBS=$LIBS
12159 LIBS="-lXext $LIBS"
12160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161 /* end confdefs.h. */
12163 /* Override any GCC internal prototype to avoid an error.
12164 Use char because int might match the return type of a GCC
12165 builtin and then its argument prototype would still apply. */
12166 #ifdef __cplusplus
12167 extern "C"
12168 #endif
12169 char XShapeQueryExtension ();
12171 main ()
12173 return XShapeQueryExtension ();
12175 return 0;
12177 _ACEOF
12178 if ac_fn_c_try_link "$LINENO"; then :
12179 ac_cv_lib_Xext_XShapeQueryExtension=yes
12180 else
12181 ac_cv_lib_Xext_XShapeQueryExtension=no
12183 rm -f core conftest.err conftest.$ac_objext \
12184 conftest$ac_exeext conftest.$ac_ext
12185 LIBS=$ac_check_lib_save_LIBS
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12188 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12189 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12190 cat >>confdefs.h <<_ACEOF
12191 #define HAVE_LIBXEXT 1
12192 _ACEOF
12194 LIBS="-lXext $LIBS"
12201 LIBXP=
12202 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12204 $as_echo_n "checking for Motif version 2.1... " >&6; }
12205 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12206 $as_echo_n "(cached) " >&6
12207 else
12208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209 /* end confdefs.h. */
12210 #include <Xm/Xm.h>
12212 main ()
12214 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12215 int x = 5;
12216 #else
12217 Motif version prior to 2.1.
12218 #endif
12220 return 0;
12222 _ACEOF
12223 if ac_fn_c_try_compile "$LINENO"; then :
12224 emacs_cv_motif_version_2_1=yes
12225 else
12226 emacs_cv_motif_version_2_1=no
12228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12231 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12232 if test $emacs_cv_motif_version_2_1 = yes; then
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12234 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12235 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12236 $as_echo_n "(cached) " >&6
12237 else
12238 ac_check_lib_save_LIBS=$LIBS
12239 LIBS="-lXp $LIBS"
12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241 /* end confdefs.h. */
12243 /* Override any GCC internal prototype to avoid an error.
12244 Use char because int might match the return type of a GCC
12245 builtin and then its argument prototype would still apply. */
12246 #ifdef __cplusplus
12247 extern "C"
12248 #endif
12249 char XpCreateContext ();
12251 main ()
12253 return XpCreateContext ();
12255 return 0;
12257 _ACEOF
12258 if ac_fn_c_try_link "$LINENO"; then :
12259 ac_cv_lib_Xp_XpCreateContext=yes
12260 else
12261 ac_cv_lib_Xp_XpCreateContext=no
12263 rm -f core conftest.err conftest.$ac_objext \
12264 conftest$ac_exeext conftest.$ac_ext
12265 LIBS=$ac_check_lib_save_LIBS
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12268 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12269 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12270 LIBXP=-lXp
12273 else
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12275 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12276 if test "${emacs_cv_lesstif+set}" = set; then :
12277 $as_echo_n "(cached) " >&6
12278 else
12279 # We put this in CFLAGS temporarily to precede other -I options
12280 # that might be in CFLAGS temporarily.
12281 # We put this in CPPFLAGS where it precedes the other -I options.
12282 OLD_CPPFLAGS=$CPPFLAGS
12283 OLD_CFLAGS=$CFLAGS
12284 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12285 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h. */
12288 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12290 main ()
12292 int x = 5;
12294 return 0;
12296 _ACEOF
12297 if ac_fn_c_try_compile "$LINENO"; then :
12298 emacs_cv_lesstif=yes
12299 else
12300 emacs_cv_lesstif=no
12302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12305 $as_echo "$emacs_cv_lesstif" >&6; }
12306 if test $emacs_cv_lesstif = yes; then
12307 # Make sure this -I option remains in CPPFLAGS after it is set
12308 # back to REAL_CPPFLAGS.
12309 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12310 # have those other -I options anyway. Ultimately, having this
12311 # directory ultimately in CPPFLAGS will be enough.
12312 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12313 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12314 else
12315 CFLAGS=$OLD_CFLAGS
12316 CPPFLAGS=$OLD_CPPFLAGS
12322 USE_TOOLKIT_SCROLL_BARS=no
12323 if test "${with_toolkit_scroll_bars}" != "no"; then
12324 if test "${USE_X_TOOLKIT}" != "none"; then
12325 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12326 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12328 HAVE_XAW3D=no
12329 USE_TOOLKIT_SCROLL_BARS=yes
12330 elif test "${HAVE_XAW3D}" = "yes"; then
12331 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12333 USE_TOOLKIT_SCROLL_BARS=yes
12335 elif test "${HAVE_GTK}" = "yes"; then
12336 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12338 USE_TOOLKIT_SCROLL_BARS=yes
12339 elif test "${HAVE_NS}" = "yes"; then
12340 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12342 USE_TOOLKIT_SCROLL_BARS=yes
12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12347 /* end confdefs.h. */
12349 #include <X11/Xlib.h>
12350 #include <X11/Xresource.h>
12352 main ()
12354 XIMProc callback;
12356 return 0;
12358 _ACEOF
12359 if ac_fn_c_try_compile "$LINENO"; then :
12360 HAVE_XIM=yes
12362 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12364 else
12365 HAVE_XIM=no
12367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12370 if test "${with_xim}" != "no"; then
12372 $as_echo "#define USE_XIM 1" >>confdefs.h
12377 if test "${HAVE_XIM}" != "no"; then
12378 late_CFLAGS=$CFLAGS
12379 if test "$GCC" = yes; then
12380 CFLAGS="$CFLAGS --pedantic-errors"
12382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12383 /* end confdefs.h. */
12385 #include <X11/Xlib.h>
12386 #include <X11/Xresource.h>
12388 main ()
12390 Display *display;
12391 XrmDatabase db;
12392 char *res_name;
12393 char *res_class;
12394 XIMProc callback;
12395 XPointer *client_data;
12396 #ifndef __GNUC__
12397 /* If we're not using GCC, it's probably not XFree86, and this is
12398 probably right, but we can't use something like --pedantic-errors. */
12399 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12400 char*, XIMProc, XPointer*);
12401 #endif
12402 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12403 client_data);
12405 return 0;
12407 _ACEOF
12408 if ac_fn_c_try_compile "$LINENO"; then :
12409 emacs_cv_arg6_star=yes
12411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12412 if test "$emacs_cv_arg6_star" = yes; then
12413 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12415 else
12416 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12419 CFLAGS=$late_CFLAGS
12422 ### Start of font-backend (under any platform) section.
12423 # (nothing here yet -- this is a placeholder)
12424 ### End of font-backend (under any platform) section.
12426 ### Start of font-backend (under X11) section.
12427 if test "${HAVE_X11}" = "yes"; then
12429 succeeded=no
12431 # Extract the first word of "pkg-config", so it can be a program name with args.
12432 set dummy pkg-config; ac_word=$2
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12434 $as_echo_n "checking for $ac_word... " >&6; }
12435 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12436 $as_echo_n "(cached) " >&6
12437 else
12438 case $PKG_CONFIG in
12439 [\\/]* | ?:[\\/]*)
12440 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12444 for as_dir in $PATH
12446 IFS=$as_save_IFS
12447 test -z "$as_dir" && as_dir=.
12448 for ac_exec_ext in '' $ac_executable_extensions; do
12449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12450 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12452 break 2
12454 done
12455 done
12456 IFS=$as_save_IFS
12458 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12460 esac
12462 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12463 if test -n "$PKG_CONFIG"; then
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12465 $as_echo "$PKG_CONFIG" >&6; }
12466 else
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12468 $as_echo "no" >&6; }
12473 if test "$PKG_CONFIG" = "no" ; then
12474 HAVE_FC=no
12475 else
12476 PKG_CONFIG_MIN_VERSION=0.9.0
12477 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12479 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12481 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12483 $as_echo "yes" >&6; }
12484 succeeded=yes
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
12487 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12488 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
12490 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
12493 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12494 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
12496 $as_echo "$FONTCONFIG_LIBS" >&6; }
12497 else
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499 $as_echo "no" >&6; }
12500 FONTCONFIG_CFLAGS=""
12501 FONTCONFIG_LIBS=""
12502 ## If we have a custom action on failure, don't print errors, but
12503 ## do set a variable so people can do so.
12504 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12510 else
12511 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12512 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12516 if test $succeeded = yes; then
12517 HAVE_FC=yes
12518 else
12519 HAVE_FC=no
12523 ## Use -lXft if available, unless `--with-xft=no'.
12524 HAVE_XFT=maybe
12525 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12526 with_xft="no";
12528 if test "x${with_xft}" != "xno"; then
12531 succeeded=no
12533 # Extract the first word of "pkg-config", so it can be a program name with args.
12534 set dummy pkg-config; ac_word=$2
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12536 $as_echo_n "checking for $ac_word... " >&6; }
12537 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12538 $as_echo_n "(cached) " >&6
12539 else
12540 case $PKG_CONFIG in
12541 [\\/]* | ?:[\\/]*)
12542 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12546 for as_dir in $PATH
12548 IFS=$as_save_IFS
12549 test -z "$as_dir" && as_dir=.
12550 for ac_exec_ext in '' $ac_executable_extensions; do
12551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12552 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12554 break 2
12556 done
12557 done
12558 IFS=$as_save_IFS
12560 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12562 esac
12564 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12565 if test -n "$PKG_CONFIG"; then
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12567 $as_echo "$PKG_CONFIG" >&6; }
12568 else
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570 $as_echo "no" >&6; }
12575 if test "$PKG_CONFIG" = "no" ; then
12576 HAVE_XFT=no
12577 else
12578 PKG_CONFIG_MIN_VERSION=0.9.0
12579 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12581 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12583 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12585 $as_echo "yes" >&6; }
12586 succeeded=yes
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
12589 $as_echo_n "checking XFT_CFLAGS... " >&6; }
12590 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
12592 $as_echo "$XFT_CFLAGS" >&6; }
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
12595 $as_echo_n "checking XFT_LIBS... " >&6; }
12596 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
12598 $as_echo "$XFT_LIBS" >&6; }
12599 else
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12601 $as_echo "no" >&6; }
12602 XFT_CFLAGS=""
12603 XFT_LIBS=""
12604 ## If we have a custom action on failure, don't print errors, but
12605 ## do set a variable so people can do so.
12606 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12612 else
12613 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12614 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12618 if test $succeeded = yes; then
12620 else
12621 HAVE_XFT=no
12624 ## Because xftfont.c uses XRenderQueryExtension, we also
12625 ## need to link to -lXrender.
12626 HAVE_XRENDER=no
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12628 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12629 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12630 $as_echo_n "(cached) " >&6
12631 else
12632 ac_check_lib_save_LIBS=$LIBS
12633 LIBS="-lXrender $LIBS"
12634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635 /* end confdefs.h. */
12637 /* Override any GCC internal prototype to avoid an error.
12638 Use char because int might match the return type of a GCC
12639 builtin and then its argument prototype would still apply. */
12640 #ifdef __cplusplus
12641 extern "C"
12642 #endif
12643 char XRenderQueryExtension ();
12645 main ()
12647 return XRenderQueryExtension ();
12649 return 0;
12651 _ACEOF
12652 if ac_fn_c_try_link "$LINENO"; then :
12653 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12654 else
12655 ac_cv_lib_Xrender_XRenderQueryExtension=no
12657 rm -f core conftest.err conftest.$ac_objext \
12658 conftest$ac_exeext conftest.$ac_ext
12659 LIBS=$ac_check_lib_save_LIBS
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12662 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12663 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12664 HAVE_XRENDER=yes
12667 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12668 OLD_CPPFLAGS="$CPPFLAGS"
12669 OLD_CFLAGS="$CFLAGS"
12670 OLD_LIBS="$LIBS"
12671 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12672 CFLAGS="$CFLAGS $XFT_CFLAGS"
12673 XFT_LIBS="-lXrender $XFT_LIBS"
12674 LIBS="$XFT_LIBS $LIBS"
12675 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12676 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12678 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12679 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12680 $as_echo_n "(cached) " >&6
12681 else
12682 ac_check_lib_save_LIBS=$LIBS
12683 LIBS="-lXft $XFT_LIBS $LIBS"
12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12687 /* Override any GCC internal prototype to avoid an error.
12688 Use char because int might match the return type of a GCC
12689 builtin and then its argument prototype would still apply. */
12690 #ifdef __cplusplus
12691 extern "C"
12692 #endif
12693 char XftFontOpen ();
12695 main ()
12697 return XftFontOpen ();
12699 return 0;
12701 _ACEOF
12702 if ac_fn_c_try_link "$LINENO"; then :
12703 ac_cv_lib_Xft_XftFontOpen=yes
12704 else
12705 ac_cv_lib_Xft_XftFontOpen=no
12707 rm -f core conftest.err conftest.$ac_objext \
12708 conftest$ac_exeext conftest.$ac_ext
12709 LIBS=$ac_check_lib_save_LIBS
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12712 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12713 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12714 HAVE_XFT=yes
12721 if test "${HAVE_XFT}" = "yes"; then
12723 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12726 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12727 else
12728 CPPFLAGS="$OLD_CPPFLAGS"
12729 CFLAGS="$OLD_CFLAGS"
12730 LIBS="$OLD_LIBS"
12731 fi # "${HAVE_XFT}" = "yes"
12732 fi # "$HAVE_XFT" != no
12733 fi # "x${with_xft}" != "xno"
12735 ## We used to allow building with FreeType and without Xft.
12736 ## However, the ftx font backend driver is not in good shape.
12737 if test "$HAVE_XFT" != "yes"; then
12738 HAVE_XFT=no
12739 HAVE_FREETYPE=no
12740 else
12742 succeeded=no
12744 # Extract the first word of "pkg-config", so it can be a program name with args.
12745 set dummy pkg-config; ac_word=$2
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12747 $as_echo_n "checking for $ac_word... " >&6; }
12748 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12749 $as_echo_n "(cached) " >&6
12750 else
12751 case $PKG_CONFIG in
12752 [\\/]* | ?:[\\/]*)
12753 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12757 for as_dir in $PATH
12759 IFS=$as_save_IFS
12760 test -z "$as_dir" && as_dir=.
12761 for ac_exec_ext in '' $ac_executable_extensions; do
12762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12763 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12765 break 2
12767 done
12768 done
12769 IFS=$as_save_IFS
12771 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12773 esac
12775 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12776 if test -n "$PKG_CONFIG"; then
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12778 $as_echo "$PKG_CONFIG" >&6; }
12779 else
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781 $as_echo "no" >&6; }
12786 if test "$PKG_CONFIG" = "no" ; then
12787 HAVE_FREETYPE=no
12788 else
12789 PKG_CONFIG_MIN_VERSION=0.9.0
12790 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12792 $as_echo_n "checking for freetype2... " >&6; }
12794 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12796 $as_echo "yes" >&6; }
12797 succeeded=yes
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12800 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12801 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12803 $as_echo "$FREETYPE_CFLAGS" >&6; }
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12806 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12807 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12809 $as_echo "$FREETYPE_LIBS" >&6; }
12810 else
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12812 $as_echo "no" >&6; }
12813 FREETYPE_CFLAGS=""
12814 FREETYPE_LIBS=""
12815 ## If we have a custom action on failure, don't print errors, but
12816 ## do set a variable so people can do so.
12817 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12823 else
12824 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12825 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12829 if test $succeeded = yes; then
12830 HAVE_FREETYPE=yes
12831 else
12832 HAVE_FREETYPE=no
12836 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12839 HAVE_LIBOTF=no
12840 if test "${HAVE_FREETYPE}" = "yes"; then
12842 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12844 if test "${with_libotf}" != "no"; then
12846 succeeded=no
12848 # Extract the first word of "pkg-config", so it can be a program name with args.
12849 set dummy pkg-config; ac_word=$2
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12851 $as_echo_n "checking for $ac_word... " >&6; }
12852 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12853 $as_echo_n "(cached) " >&6
12854 else
12855 case $PKG_CONFIG in
12856 [\\/]* | ?:[\\/]*)
12857 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861 for as_dir in $PATH
12863 IFS=$as_save_IFS
12864 test -z "$as_dir" && as_dir=.
12865 for ac_exec_ext in '' $ac_executable_extensions; do
12866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12867 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12869 break 2
12871 done
12872 done
12873 IFS=$as_save_IFS
12875 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12877 esac
12879 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12880 if test -n "$PKG_CONFIG"; then
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12882 $as_echo "$PKG_CONFIG" >&6; }
12883 else
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12885 $as_echo "no" >&6; }
12890 if test "$PKG_CONFIG" = "no" ; then
12891 HAVE_LIBOTF=no
12892 else
12893 PKG_CONFIG_MIN_VERSION=0.9.0
12894 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12896 $as_echo_n "checking for libotf... " >&6; }
12898 if $PKG_CONFIG --exists "libotf" 2>&5; then
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12900 $as_echo "yes" >&6; }
12901 succeeded=yes
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12904 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12905 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12907 $as_echo "$LIBOTF_CFLAGS" >&6; }
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12910 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12911 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12913 $as_echo "$LIBOTF_LIBS" >&6; }
12914 else
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916 $as_echo "no" >&6; }
12917 LIBOTF_CFLAGS=""
12918 LIBOTF_LIBS=""
12919 ## If we have a custom action on failure, don't print errors, but
12920 ## do set a variable so people can do so.
12921 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12927 else
12928 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12929 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12933 if test $succeeded = yes; then
12934 HAVE_LIBOTF=yes
12935 else
12936 HAVE_LIBOTF=no
12939 if test "$HAVE_LIBOTF" = "yes"; then
12941 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12944 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12945 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12946 $as_echo_n "(cached) " >&6
12947 else
12948 ac_check_lib_save_LIBS=$LIBS
12949 LIBS="-lotf $LIBS"
12950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12951 /* end confdefs.h. */
12953 /* Override any GCC internal prototype to avoid an error.
12954 Use char because int might match the return type of a GCC
12955 builtin and then its argument prototype would still apply. */
12956 #ifdef __cplusplus
12957 extern "C"
12958 #endif
12959 char OTF_get_variation_glyphs ();
12961 main ()
12963 return OTF_get_variation_glyphs ();
12965 return 0;
12967 _ACEOF
12968 if ac_fn_c_try_link "$LINENO"; then :
12969 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12970 else
12971 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12973 rm -f core conftest.err conftest.$ac_objext \
12974 conftest$ac_exeext conftest.$ac_ext
12975 LIBS=$ac_check_lib_save_LIBS
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12978 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12979 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12980 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12981 else
12982 HAVE_OTF_GET_VARIATION_GLYPHS=no
12985 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12987 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12994 HAVE_M17N_FLT=no
12995 if test "${HAVE_LIBOTF}" = yes; then
12996 if test "${with_m17n_flt}" != "no"; then
12998 succeeded=no
13000 # Extract the first word of "pkg-config", so it can be a program name with args.
13001 set dummy pkg-config; ac_word=$2
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13003 $as_echo_n "checking for $ac_word... " >&6; }
13004 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13005 $as_echo_n "(cached) " >&6
13006 else
13007 case $PKG_CONFIG in
13008 [\\/]* | ?:[\\/]*)
13009 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13013 for as_dir in $PATH
13015 IFS=$as_save_IFS
13016 test -z "$as_dir" && as_dir=.
13017 for ac_exec_ext in '' $ac_executable_extensions; do
13018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13019 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13021 break 2
13023 done
13024 done
13025 IFS=$as_save_IFS
13027 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13029 esac
13031 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13032 if test -n "$PKG_CONFIG"; then
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13034 $as_echo "$PKG_CONFIG" >&6; }
13035 else
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037 $as_echo "no" >&6; }
13042 if test "$PKG_CONFIG" = "no" ; then
13043 HAVE_M17N_FLT=no
13044 else
13045 PKG_CONFIG_MIN_VERSION=0.9.0
13046 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13048 $as_echo_n "checking for m17n-flt... " >&6; }
13050 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13052 $as_echo "yes" >&6; }
13053 succeeded=yes
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
13056 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
13057 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
13059 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
13062 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
13063 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
13065 $as_echo "$M17N_FLT_LIBS" >&6; }
13066 else
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13068 $as_echo "no" >&6; }
13069 M17N_FLT_CFLAGS=""
13070 M17N_FLT_LIBS=""
13071 ## If we have a custom action on failure, don't print errors, but
13072 ## do set a variable so people can do so.
13073 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13079 else
13080 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13081 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13085 if test $succeeded = yes; then
13086 HAVE_M17N_FLT=yes
13087 else
13088 HAVE_M17N_FLT=no
13091 if test "$HAVE_M17N_FLT" = "yes"; then
13093 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13098 else
13099 HAVE_XFT=no
13100 HAVE_FREETYPE=no
13101 HAVE_LIBOTF=no
13102 HAVE_M17N_FLT=no
13105 ### End of font-backend (under X11) section.
13116 ### Use -lXpm if available, unless `--with-xpm=no'.
13117 HAVE_XPM=no
13118 LIBXPM=
13119 if test "${HAVE_X11}" = "yes"; then
13120 if test "${with_xpm}" != "no"; then
13121 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13122 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13124 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13125 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13126 $as_echo_n "(cached) " >&6
13127 else
13128 ac_check_lib_save_LIBS=$LIBS
13129 LIBS="-lXpm -lX11 $LIBS"
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13133 /* Override any GCC internal prototype to avoid an error.
13134 Use char because int might match the return type of a GCC
13135 builtin and then its argument prototype would still apply. */
13136 #ifdef __cplusplus
13137 extern "C"
13138 #endif
13139 char XpmReadFileToPixmap ();
13141 main ()
13143 return XpmReadFileToPixmap ();
13145 return 0;
13147 _ACEOF
13148 if ac_fn_c_try_link "$LINENO"; then :
13149 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13150 else
13151 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13153 rm -f core conftest.err conftest.$ac_objext \
13154 conftest$ac_exeext conftest.$ac_ext
13155 LIBS=$ac_check_lib_save_LIBS
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13158 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13159 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13160 HAVE_XPM=yes
13166 if test "${HAVE_XPM}" = "yes"; then
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13168 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13170 /* end confdefs.h. */
13171 #include "X11/xpm.h"
13172 #ifndef XpmReturnAllocPixels
13173 no_return_alloc_pixels
13174 #endif
13176 _ACEOF
13177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13178 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13179 HAVE_XPM=no
13180 else
13181 HAVE_XPM=yes
13183 rm -f conftest*
13186 if test "${HAVE_XPM}" = "yes"; then
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13188 $as_echo "yes" >&6; }
13189 else
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191 $as_echo "no" >&6; }
13196 if test "${HAVE_XPM}" = "yes"; then
13198 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13200 LIBXPM=-lXpm
13205 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13206 HAVE_JPEG=no
13207 LIBJPEG=
13208 if test "${HAVE_X11}" = "yes"; then
13209 if test "${with_jpeg}" != "no"; then
13210 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13211 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13213 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13214 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13215 $as_echo_n "(cached) " >&6
13216 else
13217 ac_check_lib_save_LIBS=$LIBS
13218 LIBS="-ljpeg $LIBS"
13219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13220 /* end confdefs.h. */
13222 /* Override any GCC internal prototype to avoid an error.
13223 Use char because int might match the return type of a GCC
13224 builtin and then its argument prototype would still apply. */
13225 #ifdef __cplusplus
13226 extern "C"
13227 #endif
13228 char jpeg_destroy_compress ();
13230 main ()
13232 return jpeg_destroy_compress ();
13234 return 0;
13236 _ACEOF
13237 if ac_fn_c_try_link "$LINENO"; then :
13238 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13239 else
13240 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13242 rm -f core conftest.err conftest.$ac_objext \
13243 conftest$ac_exeext conftest.$ac_ext
13244 LIBS=$ac_check_lib_save_LIBS
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13247 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13248 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13249 HAVE_JPEG=yes
13257 if test "${HAVE_JPEG}" = "yes"; then
13258 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13262 #include <jpeglib.h>
13263 version=JPEG_LIB_VERSION
13265 _ACEOF
13266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13267 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13268 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13270 else
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13272 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13273 HAVE_JPEG=no
13275 rm -f conftest*
13278 if test "${HAVE_JPEG}" = "yes"; then
13279 LIBJPEG=-ljpeg
13284 ### Use -lpng if available, unless `--with-png=no'.
13285 HAVE_PNG=no
13286 LIBPNG=
13287 if test "${HAVE_X11}" = "yes"; then
13288 if test "${with_png}" != "no"; then
13289 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13290 # in /usr/include/libpng.
13291 for ac_header in png.h libpng/png.h
13292 do :
13293 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13294 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13295 eval as_val=\$$as_ac_Header
13296 if test "x$as_val" = x""yes; then :
13297 cat >>confdefs.h <<_ACEOF
13298 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13299 _ACEOF
13303 done
13305 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13307 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13308 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13309 $as_echo_n "(cached) " >&6
13310 else
13311 ac_check_lib_save_LIBS=$LIBS
13312 LIBS="-lpng -lz -lm $LIBS"
13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13316 /* Override any GCC internal prototype to avoid an error.
13317 Use char because int might match the return type of a GCC
13318 builtin and then its argument prototype would still apply. */
13319 #ifdef __cplusplus
13320 extern "C"
13321 #endif
13322 char png_get_channels ();
13324 main ()
13326 return png_get_channels ();
13328 return 0;
13330 _ACEOF
13331 if ac_fn_c_try_link "$LINENO"; then :
13332 ac_cv_lib_png_png_get_channels=yes
13333 else
13334 ac_cv_lib_png_png_get_channels=no
13336 rm -f core conftest.err conftest.$ac_objext \
13337 conftest$ac_exeext conftest.$ac_ext
13338 LIBS=$ac_check_lib_save_LIBS
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13341 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13342 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13343 HAVE_PNG=yes
13349 if test "${HAVE_PNG}" = "yes"; then
13351 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13353 LIBPNG="-lpng -lz -lm"
13358 ### Use -ltiff if available, unless `--with-tiff=no'.
13359 HAVE_TIFF=no
13360 LIBTIFF=
13361 if test "${HAVE_X11}" = "yes"; then
13362 if test "${with_tiff}" != "no"; then
13363 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13364 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13365 tifflibs="-lz -lm"
13366 # At least one tiff package requires the jpeg library.
13367 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13369 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13370 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13371 $as_echo_n "(cached) " >&6
13372 else
13373 ac_check_lib_save_LIBS=$LIBS
13374 LIBS="-ltiff $tifflibs $LIBS"
13375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13376 /* end confdefs.h. */
13378 /* Override any GCC internal prototype to avoid an error.
13379 Use char because int might match the return type of a GCC
13380 builtin and then its argument prototype would still apply. */
13381 #ifdef __cplusplus
13382 extern "C"
13383 #endif
13384 char TIFFGetVersion ();
13386 main ()
13388 return TIFFGetVersion ();
13390 return 0;
13392 _ACEOF
13393 if ac_fn_c_try_link "$LINENO"; then :
13394 ac_cv_lib_tiff_TIFFGetVersion=yes
13395 else
13396 ac_cv_lib_tiff_TIFFGetVersion=no
13398 rm -f core conftest.err conftest.$ac_objext \
13399 conftest$ac_exeext conftest.$ac_ext
13400 LIBS=$ac_check_lib_save_LIBS
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13403 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13404 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13405 HAVE_TIFF=yes
13413 if test "${HAVE_TIFF}" = "yes"; then
13415 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13417 LIBTIFF=-ltiff
13422 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13423 HAVE_GIF=no
13424 LIBGIF=
13425 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13426 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13427 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13428 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13429 # Earlier versions can crash Emacs.
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13431 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13432 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13433 $as_echo_n "(cached) " >&6
13434 else
13435 ac_check_lib_save_LIBS=$LIBS
13436 LIBS="-lgif $LIBS"
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h. */
13440 /* Override any GCC internal prototype to avoid an error.
13441 Use char because int might match the return type of a GCC
13442 builtin and then its argument prototype would still apply. */
13443 #ifdef __cplusplus
13444 extern "C"
13445 #endif
13446 char EGifPutExtensionLast ();
13448 main ()
13450 return EGifPutExtensionLast ();
13452 return 0;
13454 _ACEOF
13455 if ac_fn_c_try_link "$LINENO"; then :
13456 ac_cv_lib_gif_EGifPutExtensionLast=yes
13457 else
13458 ac_cv_lib_gif_EGifPutExtensionLast=no
13460 rm -f core conftest.err conftest.$ac_objext \
13461 conftest$ac_exeext conftest.$ac_ext
13462 LIBS=$ac_check_lib_save_LIBS
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13465 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13466 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13467 HAVE_GIF=yes
13468 else
13469 HAVE_GIF=maybe
13476 if test "$HAVE_GIF" = yes; then
13477 LIBGIF=-lgif
13478 elif test "$HAVE_GIF" = maybe; then
13479 # If gif_lib.h but no libgif, try libungif.
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13481 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13482 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13483 $as_echo_n "(cached) " >&6
13484 else
13485 ac_check_lib_save_LIBS=$LIBS
13486 LIBS="-lungif $LIBS"
13487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13488 /* end confdefs.h. */
13490 /* Override any GCC internal prototype to avoid an error.
13491 Use char because int might match the return type of a GCC
13492 builtin and then its argument prototype would still apply. */
13493 #ifdef __cplusplus
13494 extern "C"
13495 #endif
13496 char EGifPutExtensionLast ();
13498 main ()
13500 return EGifPutExtensionLast ();
13502 return 0;
13504 _ACEOF
13505 if ac_fn_c_try_link "$LINENO"; then :
13506 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13507 else
13508 ac_cv_lib_ungif_EGifPutExtensionLast=no
13510 rm -f core conftest.err conftest.$ac_objext \
13511 conftest$ac_exeext conftest.$ac_ext
13512 LIBS=$ac_check_lib_save_LIBS
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13515 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13516 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13517 HAVE_GIF=yes
13518 else
13519 HAVE_GIF=no
13522 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13525 if test "${HAVE_GIF}" = "yes"; then
13527 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13533 if test "${HAVE_X11}" = "yes"; then
13534 MISSING=""
13535 WITH_NO=""
13536 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13537 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13538 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13539 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13540 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13541 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13542 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13543 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13544 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13545 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13547 if test "X${MISSING}" != X; then
13548 as_fn_error "The following required libraries were not found:
13549 $MISSING
13550 Maybe some development libraries/packages are missing?
13551 If you don't want to link with them give
13552 $WITH_NO
13553 as options to configure" "$LINENO" 5
13557 ### Use -lgpm if available, unless `--with-gpm=no'.
13558 HAVE_GPM=no
13559 LIBGPM=
13560 if test "${with_gpm}" != "no"; then
13561 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13562 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13564 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13565 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13566 $as_echo_n "(cached) " >&6
13567 else
13568 ac_check_lib_save_LIBS=$LIBS
13569 LIBS="-lgpm $LIBS"
13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13571 /* end confdefs.h. */
13573 /* Override any GCC internal prototype to avoid an error.
13574 Use char because int might match the return type of a GCC
13575 builtin and then its argument prototype would still apply. */
13576 #ifdef __cplusplus
13577 extern "C"
13578 #endif
13579 char Gpm_Open ();
13581 main ()
13583 return Gpm_Open ();
13585 return 0;
13587 _ACEOF
13588 if ac_fn_c_try_link "$LINENO"; then :
13589 ac_cv_lib_gpm_Gpm_Open=yes
13590 else
13591 ac_cv_lib_gpm_Gpm_Open=no
13593 rm -f core conftest.err conftest.$ac_objext \
13594 conftest$ac_exeext conftest.$ac_ext
13595 LIBS=$ac_check_lib_save_LIBS
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13598 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13599 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13600 HAVE_GPM=yes
13607 if test "${HAVE_GPM}" = "yes"; then
13609 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13611 LIBGPM=-lgpm
13616 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13617 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
13619 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13625 C_SWITCH_X_SYSTEM=
13626 ### Use NeXTstep API to implement GUI.
13627 if test "${HAVE_NS}" = "yes"; then
13629 $as_echo "#define HAVE_NS 1" >>confdefs.h
13631 if test "${NS_IMPL_COCOA}" = "yes"; then
13633 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13636 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13638 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13640 # See also .m.o rule in Makefile.in */
13641 # FIXME: are all these flags really needed? Document here why. */
13642 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13643 ## Extra CFLAGS applied to src/*.m files.
13644 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"
13646 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13648 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13651 # We also have mouse menus.
13652 HAVE_MENUS=yes
13653 OTHER_FILES=ns-app
13657 ### Use session management (-lSM -lICE) if available
13658 HAVE_X_SM=no
13659 LIBXSM=
13660 if test "${HAVE_X11}" = "yes"; then
13661 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13662 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13664 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13665 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13666 $as_echo_n "(cached) " >&6
13667 else
13668 ac_check_lib_save_LIBS=$LIBS
13669 LIBS="-lSM -lICE $LIBS"
13670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13671 /* end confdefs.h. */
13673 /* Override any GCC internal prototype to avoid an error.
13674 Use char because int might match the return type of a GCC
13675 builtin and then its argument prototype would still apply. */
13676 #ifdef __cplusplus
13677 extern "C"
13678 #endif
13679 char SmcOpenConnection ();
13681 main ()
13683 return SmcOpenConnection ();
13685 return 0;
13687 _ACEOF
13688 if ac_fn_c_try_link "$LINENO"; then :
13689 ac_cv_lib_SM_SmcOpenConnection=yes
13690 else
13691 ac_cv_lib_SM_SmcOpenConnection=no
13693 rm -f core conftest.err conftest.$ac_objext \
13694 conftest$ac_exeext conftest.$ac_ext
13695 LIBS=$ac_check_lib_save_LIBS
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13698 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13699 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13700 HAVE_X_SM=yes
13707 if test "${HAVE_X_SM}" = "yes"; then
13709 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13711 LIBXSM="-lSM -lICE"
13712 case "$LIBS" in
13713 *-lSM*) ;;
13714 *) LIBS="$LIBXSM $LIBS" ;;
13715 esac
13720 ### Use libxml (-lxml2) if available
13721 if test "${with_xml2}" != "no"; then
13722 ### I'm not sure what the version number should be, so I just guessed.
13724 succeeded=no
13726 # Extract the first word of "pkg-config", so it can be a program name with args.
13727 set dummy pkg-config; ac_word=$2
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13729 $as_echo_n "checking for $ac_word... " >&6; }
13730 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13731 $as_echo_n "(cached) " >&6
13732 else
13733 case $PKG_CONFIG in
13734 [\\/]* | ?:[\\/]*)
13735 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13739 for as_dir in $PATH
13741 IFS=$as_save_IFS
13742 test -z "$as_dir" && as_dir=.
13743 for ac_exec_ext in '' $ac_executable_extensions; do
13744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13745 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13747 break 2
13749 done
13750 done
13751 IFS=$as_save_IFS
13753 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13755 esac
13757 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13758 if test -n "$PKG_CONFIG"; then
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13760 $as_echo "$PKG_CONFIG" >&6; }
13761 else
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13763 $as_echo "no" >&6; }
13768 if test "$PKG_CONFIG" = "no" ; then
13769 HAVE_LIBXML2=no
13770 else
13771 PKG_CONFIG_MIN_VERSION=0.9.0
13772 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13774 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13776 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13778 $as_echo "yes" >&6; }
13779 succeeded=yes
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13782 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13783 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13785 $as_echo "$LIBXML2_CFLAGS" >&6; }
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13788 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13789 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13791 $as_echo "$LIBXML2_LIBS" >&6; }
13792 else
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13794 $as_echo "no" >&6; }
13795 LIBXML2_CFLAGS=""
13796 LIBXML2_LIBS=""
13797 ## If we have a custom action on failure, don't print errors, but
13798 ## do set a variable so people can do so.
13799 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13805 else
13806 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13807 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13811 if test $succeeded = yes; then
13812 HAVE_LIBXML2=yes
13813 else
13814 HAVE_LIBXML2=no
13817 if test "${HAVE_LIBXML2}" = "yes"; then
13818 LIBS="$LIBXML2_LIBS $LIBS"
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13820 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13821 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13822 $as_echo_n "(cached) " >&6
13823 else
13824 ac_check_lib_save_LIBS=$LIBS
13825 LIBS="-lxml2 $LIBS"
13826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h. */
13829 /* Override any GCC internal prototype to avoid an error.
13830 Use char because int might match the return type of a GCC
13831 builtin and then its argument prototype would still apply. */
13832 #ifdef __cplusplus
13833 extern "C"
13834 #endif
13835 char htmlReadMemory ();
13837 main ()
13839 return htmlReadMemory ();
13841 return 0;
13843 _ACEOF
13844 if ac_fn_c_try_link "$LINENO"; then :
13845 ac_cv_lib_xml2_htmlReadMemory=yes
13846 else
13847 ac_cv_lib_xml2_htmlReadMemory=no
13849 rm -f core conftest.err conftest.$ac_objext \
13850 conftest$ac_exeext conftest.$ac_ext
13851 LIBS=$ac_check_lib_save_LIBS
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13854 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13855 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13856 HAVE_LIBXML2=yes
13857 else
13858 HAVE_LIBXML2=no
13861 if test "${HAVE_LIBXML2}" = "yes"; then
13863 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13865 else
13866 LIBXML2_LIBS=""
13867 LIBXML2_CFLAGS=""
13874 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13876 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13877 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13878 $as_echo_n "(cached) " >&6
13879 else
13880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13881 /* end confdefs.h. */
13882 #include <netdb.h>
13884 main ()
13886 return h_errno;
13888 return 0;
13890 _ACEOF
13891 if ac_fn_c_try_link "$LINENO"; then :
13892 emacs_cv_netdb_declares_h_errno=yes
13893 else
13894 emacs_cv_netdb_declares_h_errno=no
13896 rm -f core conftest.err conftest.$ac_objext \
13897 conftest$ac_exeext conftest.$ac_ext
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13900 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13901 if test $emacs_cv_netdb_declares_h_errno = yes; then
13903 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13907 # fmod, logb, and frexp are found in -lm on most systems.
13908 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13910 $as_echo_n "checking for sqrt in -lm... " >&6; }
13911 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13912 $as_echo_n "(cached) " >&6
13913 else
13914 ac_check_lib_save_LIBS=$LIBS
13915 LIBS="-lm $LIBS"
13916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13917 /* end confdefs.h. */
13919 /* Override any GCC internal prototype to avoid an error.
13920 Use char because int might match the return type of a GCC
13921 builtin and then its argument prototype would still apply. */
13922 #ifdef __cplusplus
13923 extern "C"
13924 #endif
13925 char sqrt ();
13927 main ()
13929 return sqrt ();
13931 return 0;
13933 _ACEOF
13934 if ac_fn_c_try_link "$LINENO"; then :
13935 ac_cv_lib_m_sqrt=yes
13936 else
13937 ac_cv_lib_m_sqrt=no
13939 rm -f core conftest.err conftest.$ac_objext \
13940 conftest$ac_exeext conftest.$ac_ext
13941 LIBS=$ac_check_lib_save_LIBS
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13944 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13945 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13946 cat >>confdefs.h <<_ACEOF
13947 #define HAVE_LIBM 1
13948 _ACEOF
13950 LIBS="-lm $LIBS"
13955 # Check for mail-locking functions in a "mail" library. Probably this should
13956 # have the same check as for liblockfile below.
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13958 $as_echo_n "checking for maillock in -lmail... " >&6; }
13959 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13960 $as_echo_n "(cached) " >&6
13961 else
13962 ac_check_lib_save_LIBS=$LIBS
13963 LIBS="-lmail $LIBS"
13964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13965 /* end confdefs.h. */
13967 /* Override any GCC internal prototype to avoid an error.
13968 Use char because int might match the return type of a GCC
13969 builtin and then its argument prototype would still apply. */
13970 #ifdef __cplusplus
13971 extern "C"
13972 #endif
13973 char maillock ();
13975 main ()
13977 return maillock ();
13979 return 0;
13981 _ACEOF
13982 if ac_fn_c_try_link "$LINENO"; then :
13983 ac_cv_lib_mail_maillock=yes
13984 else
13985 ac_cv_lib_mail_maillock=no
13987 rm -f core conftest.err conftest.$ac_objext \
13988 conftest$ac_exeext conftest.$ac_ext
13989 LIBS=$ac_check_lib_save_LIBS
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13992 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13993 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13994 have_mail=yes
13995 else
13996 have_mail=no
13999 if test $have_mail = yes; then
14000 LIBS_MAIL=-lmail
14001 LIBS="$LIBS_MAIL $LIBS"
14003 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14005 else
14006 LIBS_MAIL=
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14009 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14010 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14011 $as_echo_n "(cached) " >&6
14012 else
14013 ac_check_lib_save_LIBS=$LIBS
14014 LIBS="-llockfile $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 maillock ();
14026 main ()
14028 return maillock ();
14030 return 0;
14032 _ACEOF
14033 if ac_fn_c_try_link "$LINENO"; then :
14034 ac_cv_lib_lockfile_maillock=yes
14035 else
14036 ac_cv_lib_lockfile_maillock=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_lockfile_maillock" >&5
14043 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14044 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
14045 have_lockfile=yes
14046 else
14047 have_lockfile=no
14050 if test $have_lockfile = yes; then
14051 LIBS_MAIL=-llockfile
14052 LIBS="$LIBS_MAIL $LIBS"
14054 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14056 else
14057 # If we have the shared liblockfile, assume we must use it for mail
14058 # locking (e.g. Debian). If we couldn't link against liblockfile
14059 # (no liblockfile.a installed), ensure that we don't need to.
14060 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14061 set dummy liblockfile.so; ac_word=$2
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14063 $as_echo_n "checking for $ac_word... " >&6; }
14064 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14065 $as_echo_n "(cached) " >&6
14066 else
14067 if test -n "$liblockfile"; then
14068 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14069 else
14070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14071 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14072 for as_dir in $as_dummy
14074 IFS=$as_save_IFS
14075 test -z "$as_dir" && as_dir=.
14076 for ac_exec_ext in '' $ac_executable_extensions; do
14077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14078 ac_cv_prog_liblockfile="yes"
14079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14080 break 2
14082 done
14083 done
14084 IFS=$as_save_IFS
14086 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14089 liblockfile=$ac_cv_prog_liblockfile
14090 if test -n "$liblockfile"; then
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14092 $as_echo "$liblockfile" >&6; }
14093 else
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14095 $as_echo "no" >&6; }
14099 if test $ac_cv_prog_liblockfile = yes; then
14100 as_fn_error "Shared liblockfile found but can't link against it.
14101 This probably means that movemail could lose mail.
14102 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14105 for ac_func in touchlock
14106 do :
14107 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
14108 if test "x$ac_cv_func_touchlock" = x""yes; then :
14109 cat >>confdefs.h <<_ACEOF
14110 #define HAVE_TOUCHLOCK 1
14111 _ACEOF
14114 done
14116 for ac_header in maillock.h
14117 do :
14118 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14119 if test "x$ac_cv_header_maillock_h" = x""yes; then :
14120 cat >>confdefs.h <<_ACEOF
14121 #define HAVE_MAILLOCK_H 1
14122 _ACEOF
14126 done
14130 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14131 ## interlock access to the mail spool. The alternative is a lock file named
14132 ## /usr/spool/mail/$USER.lock.
14133 mail_lock=no
14134 case "$opsys" in
14135 aix4-2) mail_lock="lockf" ;;
14137 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
14139 ## On GNU/Linux systems, both methods are used by various mail programs.
14140 ## I assume most people are using newer mailers that have heard of flock.
14141 ## Change this if you need to.
14142 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14143 ## configure gets the right answers, and that means *NOT* using flock.
14144 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14145 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14146 ## Debian maintainer hasn't provided a clean fix for Emacs.
14147 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14148 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14149 ## correct logic. -- fx
14150 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14151 ## liblockfile is a Free Software replacement for libmail, used on
14152 ## Debian systems and elsewhere. -rfr.
14153 gnu-*)
14154 mail_lock="flock"
14155 if test $have_mail = yes || test $have_lockfile = yes; then
14156 test $ac_cv_header_maillock_h = yes && mail_lock=no
14159 esac
14161 BLESSMAIL_TARGET=
14162 case "$mail_lock" in
14163 flock)
14164 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14167 lockf)
14168 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14171 *) BLESSMAIL_TARGET="need-blessmail" ;;
14172 esac
14176 for ac_func in gethostname getdomainname \
14177 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14178 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14179 strerror fpathconf select euidaccess getpagesize tzset setlocale \
14180 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14181 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14182 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14183 gai_strerror mkstemp getline getdelim mremap fsync sync \
14184 difftime mempcpy mblen mbrlen posix_memalign \
14185 cfmakeraw cfsetspeed copysign __executable_start
14186 do :
14187 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14188 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14189 eval as_val=\$$as_ac_var
14190 if test "x$as_val" = x""yes; then :
14191 cat >>confdefs.h <<_ACEOF
14192 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14193 _ACEOF
14196 done
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14200 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14201 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14202 $as_echo_n "(cached) " >&6
14203 else
14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205 /* end confdefs.h. */
14208 main ()
14210 __builtin_unwind_init ();
14212 return 0;
14214 _ACEOF
14215 if ac_fn_c_try_link "$LINENO"; then :
14216 emacs_cv_func___builtin_unwind_init=yes
14217 else
14218 emacs_cv_func___builtin_unwind_init=no
14220 rm -f core conftest.err conftest.$ac_objext \
14221 conftest$ac_exeext conftest.$ac_ext
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14224 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14225 if test $emacs_cv_func___builtin_unwind_init = yes; then
14227 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14231 for ac_header in sys/un.h
14232 do :
14233 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14234 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
14235 cat >>confdefs.h <<_ACEOF
14236 #define HAVE_SYS_UN_H 1
14237 _ACEOF
14241 done
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14245 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14246 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14247 $as_echo_n "(cached) " >&6
14248 else
14249 while :; do
14250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14251 /* end confdefs.h. */
14252 #include <sys/types.h> /* for off_t */
14253 #include <stdio.h>
14255 main ()
14257 int (*fp) (FILE *, off_t, int) = fseeko;
14258 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14260 return 0;
14262 _ACEOF
14263 if ac_fn_c_try_link "$LINENO"; then :
14264 ac_cv_sys_largefile_source=no; break
14266 rm -f core conftest.err conftest.$ac_objext \
14267 conftest$ac_exeext conftest.$ac_ext
14268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14269 /* end confdefs.h. */
14270 #define _LARGEFILE_SOURCE 1
14271 #include <sys/types.h> /* for off_t */
14272 #include <stdio.h>
14274 main ()
14276 int (*fp) (FILE *, off_t, int) = fseeko;
14277 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14279 return 0;
14281 _ACEOF
14282 if ac_fn_c_try_link "$LINENO"; then :
14283 ac_cv_sys_largefile_source=1; break
14285 rm -f core conftest.err conftest.$ac_objext \
14286 conftest$ac_exeext conftest.$ac_ext
14287 ac_cv_sys_largefile_source=unknown
14288 break
14289 done
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14292 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14293 case $ac_cv_sys_largefile_source in #(
14294 no | unknown) ;;
14296 cat >>confdefs.h <<_ACEOF
14297 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14298 _ACEOF
14300 esac
14301 rm -rf conftest*
14303 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14304 # in glibc 2.1.3, but that breaks too many other things.
14305 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14306 if test $ac_cv_sys_largefile_source != unknown; then
14308 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14314 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14315 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14316 $as_echo_n "(cached) " >&6
14317 else
14318 # Use it with a single arg.
14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14321 $ac_includes_default
14323 main ()
14325 getpgrp (0);
14327 return 0;
14329 _ACEOF
14330 if ac_fn_c_try_compile "$LINENO"; then :
14331 ac_cv_func_getpgrp_void=no
14332 else
14333 ac_cv_func_getpgrp_void=yes
14335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14339 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14340 if test $ac_cv_func_getpgrp_void = yes; then
14342 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14347 <<<<<<< TREE
14348 # Configure gnulib.
14349 =======
14350 # UNIX98 PTYs.
14351 for ac_func in grantpt
14352 do :
14353 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14354 if test "x$ac_cv_func_grantpt" = x""yes; then :
14355 cat >>confdefs.h <<_ACEOF
14356 #define HAVE_GRANTPT 1
14357 _ACEOF
14360 done
14363 # PTY-related GNU extensions.
14364 for ac_func in getpt
14365 do :
14366 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
14367 if test "x$ac_cv_func_getpt" = x""yes; then :
14368 cat >>confdefs.h <<_ACEOF
14369 #define HAVE_GETPT 1
14370 _ACEOF
14373 done
14376 # Check this now, so that we will NOT find the above functions in ncurses.
14377 # That is because we have not set up to link ncurses in lib-src.
14378 # It's better to believe a function is not available
14379 # than to expect to find it in ncurses.
14380 # Also we need tputs and friends to be able to build at all.
14381 have_tputs_et_al=true
14382 # Maybe curses should be tried earlier?
14383 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14385 $as_echo_n "checking for library containing tputs... " >&6; }
14386 if test "${ac_cv_search_tputs+set}" = set; then :
14387 $as_echo_n "(cached) " >&6
14388 else
14389 ac_func_search_save_LIBS=$LIBS
14390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14391 /* end confdefs.h. */
14393 /* Override any GCC internal prototype to avoid an error.
14394 Use char because int might match the return type of a GCC
14395 builtin and then its argument prototype would still apply. */
14396 #ifdef __cplusplus
14397 extern "C"
14398 #endif
14399 char tputs ();
14401 main ()
14403 return tputs ();
14405 return 0;
14407 _ACEOF
14408 for ac_lib in '' ncurses terminfo termcap curses; do
14409 if test -z "$ac_lib"; then
14410 ac_res="none required"
14411 else
14412 ac_res=-l$ac_lib
14413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14415 if ac_fn_c_try_link "$LINENO"; then :
14416 ac_cv_search_tputs=$ac_res
14418 rm -f core conftest.err conftest.$ac_objext \
14419 conftest$ac_exeext
14420 if test "${ac_cv_search_tputs+set}" = set; then :
14421 break
14423 done
14424 if test "${ac_cv_search_tputs+set}" = set; then :
14426 else
14427 ac_cv_search_tputs=no
14429 rm conftest.$ac_ext
14430 LIBS=$ac_func_search_save_LIBS
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
14433 $as_echo "$ac_cv_search_tputs" >&6; }
14434 ac_res=$ac_cv_search_tputs
14435 if test "$ac_res" != no; then :
14436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14438 else
14439 have_tputs_et_al=false
14442 if test "$have_tputs_et_al" != true; then
14443 as_fn_error "The required function \`tputs' was not found in any library.
14444 These libraries were tried: libncurses, libterminfo, libtermcap, libcurses.
14445 Please try installing whichever of these libraries is most appropriate
14446 for your system, together with its header files.
14447 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14449 # Must define this when any termcap library is found.
14451 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14453 ## FIXME This was the cpp logic, but I am not sure it is right.
14454 ## The above test has not necessarily found libncurses.
14455 HAVE_LIBNCURSES=yes
14457 ## Use terminfo instead of termcap?
14458 ## Note only system files NOT using terminfo are:
14459 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14460 ## darwin|gnu without ncurses.
14461 TERMINFO=no
14462 LIBS_TERMCAP=
14463 case "$opsys" in
14464 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14465 ## hpux10-20: Use the system provided termcap(3) library.
14466 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14467 ## is necessary. Otherwise Emacs dumps core when run -nw.
14468 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
14470 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14471 ## The ncurses library has been moved out of the System framework in
14472 ## Mac OS X 10.2. So if configure detects it, set the command-line
14473 ## option to use it.
14474 darwin|gnu*)
14475 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14476 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14477 TERMINFO=yes
14478 LIBS_TERMCAP="-lncurses"
14482 freebsd)
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14484 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14485 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14486 $as_echo_n "(cached) " >&6
14487 else
14488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14489 /* end confdefs.h. */
14490 #include <osreldate.h>
14492 main ()
14494 #if __FreeBSD_version < 400000
14495 fail;
14496 #endif
14499 return 0;
14501 _ACEOF
14502 if ac_fn_c_try_link "$LINENO"; then :
14503 emacs_cv_freebsd_terminfo=yes
14504 else
14505 emacs_cv_freebsd_terminfo=no
14507 rm -f core conftest.err conftest.$ac_objext \
14508 conftest$ac_exeext conftest.$ac_ext
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14513 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14515 if test $emacs_cv_freebsd_terminfo = yes; then
14516 TERMINFO=yes
14517 LIBS_TERMCAP="-lncurses"
14518 else
14519 LIBS_TERMCAP="-ltermcap"
14523 netbsd)
14524 if test $ac_cv_search_tputs = -lterminfo; then
14525 TERMINFO=yes
14526 LIBS_TERMCAP="-lterminfo"
14527 else
14528 LIBS_TERMCAP="-ltermcap"
14532 esac
14534 case "$opsys" in
14535 ## hpux: Make sure we get select from libc rather than from libcurses
14536 ## because libcurses on HPUX 10.10 has a broken version of select.
14537 ## We used to use -lc -lcurses, but this may be cleaner.
14538 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14540 openbsd) LIBS_TERMCAP="-lncurses" ;;
14542 ## Must use system termcap, if we use any termcap. It does special things.
14543 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
14544 esac
14546 TERMCAP_OBJ=tparam.o
14547 if test $TERMINFO = yes; then
14549 $as_echo "#define TERMINFO 1" >>confdefs.h
14552 ## Default used to be -ltermcap. Add a case above if need something else.
14553 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
14555 TERMCAP_OBJ=terminfo.o
14561 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14562 resolv=no
14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h. */
14565 #include <netinet/in.h>
14566 #include <arpa/nameser.h>
14567 #include <resolv.h>
14569 main ()
14571 return res_init();
14573 return 0;
14575 _ACEOF
14576 if ac_fn_c_try_link "$LINENO"; then :
14577 have_res_init=yes
14578 else
14579 have_res_init=no
14581 rm -f core conftest.err conftest.$ac_objext \
14582 conftest$ac_exeext conftest.$ac_ext
14583 if test "$have_res_init" = no; then
14584 OLIBS="$LIBS"
14585 LIBS="$LIBS -lresolv"
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14587 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14589 /* end confdefs.h. */
14590 #include <netinet/in.h>
14591 #include <arpa/nameser.h>
14592 #include <resolv.h>
14594 main ()
14596 return res_init();
14598 return 0;
14600 _ACEOF
14601 if ac_fn_c_try_link "$LINENO"; then :
14602 have_res_init=yes
14603 else
14604 have_res_init=no
14606 rm -f core conftest.err conftest.$ac_objext \
14607 conftest$ac_exeext conftest.$ac_ext
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14609 $as_echo "$have_res_init" >&6; }
14610 if test "$have_res_init" = yes ; then
14611 resolv=yes
14613 LIBS="$OLIBS"
14616 if test "$have_res_init" = yes; then
14618 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14622 # Do we need the Hesiod library to provide the support routines?
14623 LIBHESIOD=
14624 if test "$with_hesiod" != no ; then
14625 # Don't set $LIBS here -- see comments above. FIXME which comments?
14626 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14627 if test "x$ac_cv_func_res_send" = x""yes; then :
14629 else
14630 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14631 if test "x$ac_cv_func___res_send" = x""yes; then :
14633 else
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14635 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14636 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14637 $as_echo_n "(cached) " >&6
14638 else
14639 ac_check_lib_save_LIBS=$LIBS
14640 LIBS="-lresolv $LIBS"
14641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14642 /* end confdefs.h. */
14644 /* Override any GCC internal prototype to avoid an error.
14645 Use char because int might match the return type of a GCC
14646 builtin and then its argument prototype would still apply. */
14647 #ifdef __cplusplus
14648 extern "C"
14649 #endif
14650 char res_send ();
14652 main ()
14654 return res_send ();
14656 return 0;
14658 _ACEOF
14659 if ac_fn_c_try_link "$LINENO"; then :
14660 ac_cv_lib_resolv_res_send=yes
14661 else
14662 ac_cv_lib_resolv_res_send=no
14664 rm -f core conftest.err conftest.$ac_objext \
14665 conftest$ac_exeext conftest.$ac_ext
14666 LIBS=$ac_check_lib_save_LIBS
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14669 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14670 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
14671 resolv=yes
14672 else
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14674 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14675 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14676 $as_echo_n "(cached) " >&6
14677 else
14678 ac_check_lib_save_LIBS=$LIBS
14679 LIBS="-lresolv $LIBS"
14680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h. */
14683 /* Override any GCC internal prototype to avoid an error.
14684 Use char because int might match the return type of a GCC
14685 builtin and then its argument prototype would still apply. */
14686 #ifdef __cplusplus
14687 extern "C"
14688 #endif
14689 char __res_send ();
14691 main ()
14693 return __res_send ();
14695 return 0;
14697 _ACEOF
14698 if ac_fn_c_try_link "$LINENO"; then :
14699 ac_cv_lib_resolv___res_send=yes
14700 else
14701 ac_cv_lib_resolv___res_send=no
14703 rm -f core conftest.err conftest.$ac_objext \
14704 conftest$ac_exeext conftest.$ac_ext
14705 LIBS=$ac_check_lib_save_LIBS
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14708 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14709 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14710 resolv=yes
14719 if test "$resolv" = yes ; then
14720 RESOLVLIB=-lresolv
14721 else
14722 RESOLVLIB=
14724 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14725 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14727 else
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14729 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14730 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14731 $as_echo_n "(cached) " >&6
14732 else
14733 ac_check_lib_save_LIBS=$LIBS
14734 LIBS="-lhesiod $RESOLVLIB $LIBS"
14735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736 /* end confdefs.h. */
14738 /* Override any GCC internal prototype to avoid an error.
14739 Use char because int might match the return type of a GCC
14740 builtin and then its argument prototype would still apply. */
14741 #ifdef __cplusplus
14742 extern "C"
14743 #endif
14744 char hes_getmailhost ();
14746 main ()
14748 return hes_getmailhost ();
14750 return 0;
14752 _ACEOF
14753 if ac_fn_c_try_link "$LINENO"; then :
14754 ac_cv_lib_hesiod_hes_getmailhost=yes
14755 else
14756 ac_cv_lib_hesiod_hes_getmailhost=no
14758 rm -f core conftest.err conftest.$ac_objext \
14759 conftest$ac_exeext conftest.$ac_ext
14760 LIBS=$ac_check_lib_save_LIBS
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14763 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14764 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14765 hesiod=yes
14766 else
14773 if test x"$hesiod" = xyes; then
14775 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14777 LIBHESIOD=-lhesiod
14782 # Do we need libresolv (due to res_init or Hesiod)?
14783 if test "$resolv" = yes ; then
14785 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14787 LIBRESOLV=-lresolv
14788 else
14789 LIBRESOLV=
14793 # These tell us which Kerberos-related libraries to use.
14794 COM_ERRLIB=
14795 CRYPTOLIB=
14796 KRB5LIB=
14797 DESLIB=
14798 KRB4LIB=
14800 if test "${with_kerberos}" != no; then
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14802 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14803 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14804 $as_echo_n "(cached) " >&6
14805 else
14806 ac_check_lib_save_LIBS=$LIBS
14807 LIBS="-lcom_err $LIBS"
14808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14809 /* end confdefs.h. */
14811 /* Override any GCC internal prototype to avoid an error.
14812 Use char because int might match the return type of a GCC
14813 builtin and then its argument prototype would still apply. */
14814 #ifdef __cplusplus
14815 extern "C"
14816 #endif
14817 char com_err ();
14819 main ()
14821 return com_err ();
14823 return 0;
14825 _ACEOF
14826 if ac_fn_c_try_link "$LINENO"; then :
14827 ac_cv_lib_com_err_com_err=yes
14828 else
14829 ac_cv_lib_com_err_com_err=no
14831 rm -f core conftest.err conftest.$ac_objext \
14832 conftest$ac_exeext conftest.$ac_ext
14833 LIBS=$ac_check_lib_save_LIBS
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14836 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14837 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14838 have_com_err=yes
14839 else
14840 have_com_err=no
14843 if test $have_com_err = yes; then
14844 COM_ERRLIB=-lcom_err
14845 LIBS="$COM_ERRLIB $LIBS"
14847 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14851 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14852 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14853 $as_echo_n "(cached) " >&6
14854 else
14855 ac_check_lib_save_LIBS=$LIBS
14856 LIBS="-lcrypto $LIBS"
14857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858 /* end confdefs.h. */
14860 /* Override any GCC internal prototype to avoid an error.
14861 Use char because int might match the return type of a GCC
14862 builtin and then its argument prototype would still apply. */
14863 #ifdef __cplusplus
14864 extern "C"
14865 #endif
14866 char mit_des_cbc_encrypt ();
14868 main ()
14870 return mit_des_cbc_encrypt ();
14872 return 0;
14874 _ACEOF
14875 if ac_fn_c_try_link "$LINENO"; then :
14876 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14877 else
14878 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14880 rm -f core conftest.err conftest.$ac_objext \
14881 conftest$ac_exeext conftest.$ac_ext
14882 LIBS=$ac_check_lib_save_LIBS
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14885 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14886 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14887 have_crypto=yes
14888 else
14889 have_crypto=no
14892 if test $have_crypto = yes; then
14893 CRYPTOLIB=-lcrypto
14894 LIBS="$CRYPTOLIB $LIBS"
14896 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14900 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14901 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14902 $as_echo_n "(cached) " >&6
14903 else
14904 ac_check_lib_save_LIBS=$LIBS
14905 LIBS="-lk5crypto $LIBS"
14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14909 /* Override any GCC internal prototype to avoid an error.
14910 Use char because int might match the return type of a GCC
14911 builtin and then its argument prototype would still apply. */
14912 #ifdef __cplusplus
14913 extern "C"
14914 #endif
14915 char mit_des_cbc_encrypt ();
14917 main ()
14919 return mit_des_cbc_encrypt ();
14921 return 0;
14923 _ACEOF
14924 if ac_fn_c_try_link "$LINENO"; then :
14925 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14926 else
14927 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14929 rm -f core conftest.err conftest.$ac_objext \
14930 conftest$ac_exeext conftest.$ac_ext
14931 LIBS=$ac_check_lib_save_LIBS
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14934 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14935 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14936 have_k5crypto=yes
14937 else
14938 have_k5crypto=no
14941 if test $have_k5crypto = yes; then
14942 CRYPTOLIB=-lk5crypto
14943 LIBS="$CRYPTOLIB $LIBS"
14945 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14949 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14950 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14951 $as_echo_n "(cached) " >&6
14952 else
14953 ac_check_lib_save_LIBS=$LIBS
14954 LIBS="-lkrb5 $LIBS"
14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956 /* end confdefs.h. */
14958 /* Override any GCC internal prototype to avoid an error.
14959 Use char because int might match the return type of a GCC
14960 builtin and then its argument prototype would still apply. */
14961 #ifdef __cplusplus
14962 extern "C"
14963 #endif
14964 char krb5_init_context ();
14966 main ()
14968 return krb5_init_context ();
14970 return 0;
14972 _ACEOF
14973 if ac_fn_c_try_link "$LINENO"; then :
14974 ac_cv_lib_krb5_krb5_init_context=yes
14975 else
14976 ac_cv_lib_krb5_krb5_init_context=no
14978 rm -f core conftest.err conftest.$ac_objext \
14979 conftest$ac_exeext conftest.$ac_ext
14980 LIBS=$ac_check_lib_save_LIBS
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14983 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14984 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14985 have_krb5=yes
14986 else
14987 have_krb5=no
14990 if test $have_krb5=yes; then
14991 KRB5LIB=-lkrb5
14992 LIBS="$KRB5LIB $LIBS"
14994 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14997 if test "${with_kerberos5}" = no; then
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14999 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15000 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15001 $as_echo_n "(cached) " >&6
15002 else
15003 ac_check_lib_save_LIBS=$LIBS
15004 LIBS="-ldes425 $LIBS"
15005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15006 /* end confdefs.h. */
15008 /* Override any GCC internal prototype to avoid an error.
15009 Use char because int might match the return type of a GCC
15010 builtin and then its argument prototype would still apply. */
15011 #ifdef __cplusplus
15012 extern "C"
15013 #endif
15014 char des_cbc_encrypt ();
15016 main ()
15018 return des_cbc_encrypt ();
15020 return 0;
15022 _ACEOF
15023 if ac_fn_c_try_link "$LINENO"; then :
15024 ac_cv_lib_des425_des_cbc_encrypt=yes
15025 else
15026 ac_cv_lib_des425_des_cbc_encrypt=no
15028 rm -f core conftest.err conftest.$ac_objext \
15029 conftest$ac_exeext conftest.$ac_ext
15030 LIBS=$ac_check_lib_save_LIBS
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15033 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15034 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
15035 have_des425=yes
15036 else
15037 have_des425=no
15040 if test $have_des425 = yes; then
15041 DESLIB=-ldes425
15042 LIBS="$DESLIB $LIBS"
15044 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
15046 else
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15048 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15049 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15050 $as_echo_n "(cached) " >&6
15051 else
15052 ac_check_lib_save_LIBS=$LIBS
15053 LIBS="-ldes $LIBS"
15054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055 /* end confdefs.h. */
15057 /* Override any GCC internal prototype to avoid an error.
15058 Use char because int might match the return type of a GCC
15059 builtin and then its argument prototype would still apply. */
15060 #ifdef __cplusplus
15061 extern "C"
15062 #endif
15063 char des_cbc_encrypt ();
15065 main ()
15067 return des_cbc_encrypt ();
15069 return 0;
15071 _ACEOF
15072 if ac_fn_c_try_link "$LINENO"; then :
15073 ac_cv_lib_des_des_cbc_encrypt=yes
15074 else
15075 ac_cv_lib_des_des_cbc_encrypt=no
15077 rm -f core conftest.err conftest.$ac_objext \
15078 conftest$ac_exeext conftest.$ac_ext
15079 LIBS=$ac_check_lib_save_LIBS
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15082 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15083 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
15084 have_des=yes
15085 else
15086 have_des=no
15089 if test $have_des = yes; then
15090 DESLIB=-ldes
15091 LIBS="$DESLIB $LIBS"
15093 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15098 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15099 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15100 $as_echo_n "(cached) " >&6
15101 else
15102 ac_check_lib_save_LIBS=$LIBS
15103 LIBS="-lkrb4 $LIBS"
15104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105 /* end confdefs.h. */
15107 /* Override any GCC internal prototype to avoid an error.
15108 Use char because int might match the return type of a GCC
15109 builtin and then its argument prototype would still apply. */
15110 #ifdef __cplusplus
15111 extern "C"
15112 #endif
15113 char krb_get_cred ();
15115 main ()
15117 return krb_get_cred ();
15119 return 0;
15121 _ACEOF
15122 if ac_fn_c_try_link "$LINENO"; then :
15123 ac_cv_lib_krb4_krb_get_cred=yes
15124 else
15125 ac_cv_lib_krb4_krb_get_cred=no
15127 rm -f core conftest.err conftest.$ac_objext \
15128 conftest$ac_exeext conftest.$ac_ext
15129 LIBS=$ac_check_lib_save_LIBS
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15132 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15133 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
15134 have_krb4=yes
15135 else
15136 have_krb4=no
15139 if test $have_krb4 = yes; then
15140 KRB4LIB=-lkrb4
15141 LIBS="$KRB4LIB $LIBS"
15143 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15145 else
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15147 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15148 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15149 $as_echo_n "(cached) " >&6
15150 else
15151 ac_check_lib_save_LIBS=$LIBS
15152 LIBS="-lkrb $LIBS"
15153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15154 /* end confdefs.h. */
15156 /* Override any GCC internal prototype to avoid an error.
15157 Use char because int might match the return type of a GCC
15158 builtin and then its argument prototype would still apply. */
15159 #ifdef __cplusplus
15160 extern "C"
15161 #endif
15162 char krb_get_cred ();
15164 main ()
15166 return krb_get_cred ();
15168 return 0;
15170 _ACEOF
15171 if ac_fn_c_try_link "$LINENO"; then :
15172 ac_cv_lib_krb_krb_get_cred=yes
15173 else
15174 ac_cv_lib_krb_krb_get_cred=no
15176 rm -f core conftest.err conftest.$ac_objext \
15177 conftest$ac_exeext conftest.$ac_ext
15178 LIBS=$ac_check_lib_save_LIBS
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15181 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15182 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
15183 have_krb=yes
15184 else
15185 have_krb=no
15188 if test $have_krb = yes; then
15189 KRB4LIB=-lkrb
15190 LIBS="$KRB4LIB $LIBS"
15192 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15198 if test "${with_kerberos5}" != no; then
15199 for ac_header in krb5.h
15200 do :
15201 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15202 if test "x$ac_cv_header_krb5_h" = x""yes; then :
15203 cat >>confdefs.h <<_ACEOF
15204 #define HAVE_KRB5_H 1
15205 _ACEOF
15206 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15208 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
15210 cat >>confdefs.h <<_ACEOF
15211 #define HAVE_KRB5_ERROR_TEXT 1
15212 _ACEOF
15216 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15218 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
15220 cat >>confdefs.h <<_ACEOF
15221 #define HAVE_KRB5_ERROR_E_TEXT 1
15222 _ACEOF
15229 done
15231 else
15232 for ac_header in des.h
15233 do :
15234 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15235 if test "x$ac_cv_header_des_h" = x""yes; then :
15236 cat >>confdefs.h <<_ACEOF
15237 #define HAVE_DES_H 1
15238 _ACEOF
15240 else
15241 for ac_header in kerberosIV/des.h
15242 do :
15243 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15244 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
15245 cat >>confdefs.h <<_ACEOF
15246 #define HAVE_KERBEROSIV_DES_H 1
15247 _ACEOF
15249 else
15250 for ac_header in kerberos/des.h
15251 do :
15252 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15253 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
15254 cat >>confdefs.h <<_ACEOF
15255 #define HAVE_KERBEROS_DES_H 1
15256 _ACEOF
15260 done
15264 done
15268 done
15270 for ac_header in krb.h
15271 do :
15272 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15273 if test "x$ac_cv_header_krb_h" = x""yes; then :
15274 cat >>confdefs.h <<_ACEOF
15275 #define HAVE_KRB_H 1
15276 _ACEOF
15278 else
15279 for ac_header in kerberosIV/krb.h
15280 do :
15281 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15282 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
15283 cat >>confdefs.h <<_ACEOF
15284 #define HAVE_KERBEROSIV_KRB_H 1
15285 _ACEOF
15287 else
15288 for ac_header in kerberos/krb.h
15289 do :
15290 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15291 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
15292 cat >>confdefs.h <<_ACEOF
15293 #define HAVE_KERBEROS_KRB_H 1
15294 _ACEOF
15298 done
15302 done
15306 done
15309 for ac_header in com_err.h
15310 do :
15311 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15312 if test "x$ac_cv_header_com_err_h" = x""yes; then :
15313 cat >>confdefs.h <<_ACEOF
15314 #define HAVE_COM_ERR_H 1
15315 _ACEOF
15319 done
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15330 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15331 if test "${emacs_cv_localtime_cache+set}" = set; then :
15332 $as_echo_n "(cached) " >&6
15333 else
15334 if test x$ac_cv_func_tzset = xyes; then
15335 if test "$cross_compiling" = yes; then :
15336 # If we have tzset, assume the worst when cross-compiling.
15337 emacs_cv_localtime_cache=yes
15338 else
15339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15340 /* end confdefs.h. */
15341 #include <time.h>
15342 char TZ_GMT0[] = "TZ=GMT0";
15343 char TZ_PST8[] = "TZ=PST8";
15344 main()
15346 time_t now = time ((time_t *) 0);
15347 int hour_GMT0, hour_unset;
15348 if (putenv (TZ_GMT0) != 0)
15349 exit (1);
15350 hour_GMT0 = localtime (&now)->tm_hour;
15351 unsetenv("TZ");
15352 hour_unset = localtime (&now)->tm_hour;
15353 if (putenv (TZ_PST8) != 0)
15354 exit (1);
15355 if (localtime (&now)->tm_hour == hour_GMT0)
15356 exit (1);
15357 unsetenv("TZ");
15358 if (localtime (&now)->tm_hour != hour_unset)
15359 exit (1);
15360 exit (0);
15362 _ACEOF
15363 if ac_fn_c_try_run "$LINENO"; then :
15364 emacs_cv_localtime_cache=no
15365 else
15366 emacs_cv_localtime_cache=yes
15368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15369 conftest.$ac_objext conftest.beam conftest.$ac_ext
15372 else
15373 # If we lack tzset, report that localtime does not cache TZ,
15374 # since we can't invalidate the cache if we don't have tzset.
15375 emacs_cv_localtime_cache=no
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15379 $as_echo "$emacs_cv_localtime_cache" >&6; }
15380 if test $emacs_cv_localtime_cache = yes; then
15382 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15386 if test "x$HAVE_TIMEVAL" = xyes; then
15387 for ac_func in gettimeofday
15388 do :
15389 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15390 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
15391 cat >>confdefs.h <<_ACEOF
15392 #define HAVE_GETTIMEOFDAY 1
15393 _ACEOF
15396 done
15398 if test $ac_cv_func_gettimeofday = yes; then
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15400 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15401 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15402 $as_echo_n "(cached) " >&6
15403 else
15404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15405 /* end confdefs.h. */
15407 #ifdef TIME_WITH_SYS_TIME
15408 #include <sys/time.h>
15409 #include <time.h>
15410 #else
15411 #ifdef HAVE_SYS_TIME_H
15412 #include <sys/time.h>
15413 #else
15414 #include <time.h>
15415 #endif
15416 #endif
15418 main ()
15420 struct timeval time;
15421 gettimeofday (&time, 0);
15423 return 0;
15425 _ACEOF
15426 if ac_fn_c_try_compile "$LINENO"; then :
15427 emacs_cv_gettimeofday_two_arguments=yes
15428 else
15429 emacs_cv_gettimeofday_two_arguments=no
15431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15434 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15435 if test $emacs_cv_gettimeofday_two_arguments = no; then
15437 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15443 ok_so_far=yes
15444 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15445 if test "x$ac_cv_func_socket" = x""yes; then :
15447 else
15448 ok_so_far=no
15451 if test $ok_so_far = yes; then
15452 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15453 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15455 else
15456 ok_so_far=no
15461 if test $ok_so_far = yes; then
15462 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15463 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15465 else
15466 ok_so_far=no
15471 if test $ok_so_far = yes; then
15473 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15477 if test -f /usr/lpp/X11/bin/smt.exp; then
15479 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15484 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15485 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15487 $as_echo "yes" >&6; }
15489 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15491 else
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15493 $as_echo "no" >&6; }
15496 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15497 if test "x$ac_cv_type_pid_t" = x""yes; then :
15499 else
15501 cat >>confdefs.h <<_ACEOF
15502 #define pid_t int
15503 _ACEOF
15507 for ac_header in vfork.h
15508 do :
15509 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15510 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15511 cat >>confdefs.h <<_ACEOF
15512 #define HAVE_VFORK_H 1
15513 _ACEOF
15517 done
15519 for ac_func in fork vfork
15520 do :
15521 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15522 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15523 eval as_val=\$$as_ac_var
15524 if test "x$as_val" = x""yes; then :
15525 cat >>confdefs.h <<_ACEOF
15526 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15527 _ACEOF
15530 done
15532 if test "x$ac_cv_func_fork" = xyes; then
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15534 $as_echo_n "checking for working fork... " >&6; }
15535 if test "${ac_cv_func_fork_works+set}" = set; then :
15536 $as_echo_n "(cached) " >&6
15537 else
15538 if test "$cross_compiling" = yes; then :
15539 ac_cv_func_fork_works=cross
15540 else
15541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15542 /* end confdefs.h. */
15543 $ac_includes_default
15545 main ()
15548 /* By Ruediger Kuhlmann. */
15549 return fork () < 0;
15552 return 0;
15554 _ACEOF
15555 if ac_fn_c_try_run "$LINENO"; then :
15556 ac_cv_func_fork_works=yes
15557 else
15558 ac_cv_func_fork_works=no
15560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15561 conftest.$ac_objext conftest.beam conftest.$ac_ext
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15566 $as_echo "$ac_cv_func_fork_works" >&6; }
15568 else
15569 ac_cv_func_fork_works=$ac_cv_func_fork
15571 if test "x$ac_cv_func_fork_works" = xcross; then
15572 case $host in
15573 *-*-amigaos* | *-*-msdosdjgpp*)
15574 # Override, as these systems have only a dummy fork() stub
15575 ac_cv_func_fork_works=no
15578 ac_cv_func_fork_works=yes
15580 esac
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15582 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15584 ac_cv_func_vfork_works=$ac_cv_func_vfork
15585 if test "x$ac_cv_func_vfork" = xyes; then
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15587 $as_echo_n "checking for working vfork... " >&6; }
15588 if test "${ac_cv_func_vfork_works+set}" = set; then :
15589 $as_echo_n "(cached) " >&6
15590 else
15591 if test "$cross_compiling" = yes; then :
15592 ac_cv_func_vfork_works=cross
15593 else
15594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15595 /* end confdefs.h. */
15596 /* Thanks to Paul Eggert for this test. */
15597 $ac_includes_default
15598 #include <sys/wait.h>
15599 #ifdef HAVE_VFORK_H
15600 # include <vfork.h>
15601 #endif
15602 /* On some sparc systems, changes by the child to local and incoming
15603 argument registers are propagated back to the parent. The compiler
15604 is told about this with #include <vfork.h>, but some compilers
15605 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15606 static variable whose address is put into a register that is
15607 clobbered by the vfork. */
15608 static void
15609 #ifdef __cplusplus
15610 sparc_address_test (int arg)
15611 # else
15612 sparc_address_test (arg) int arg;
15613 #endif
15615 static pid_t child;
15616 if (!child) {
15617 child = vfork ();
15618 if (child < 0) {
15619 perror ("vfork");
15620 _exit(2);
15622 if (!child) {
15623 arg = getpid();
15624 write(-1, "", 0);
15625 _exit (arg);
15631 main ()
15633 pid_t parent = getpid ();
15634 pid_t child;
15636 sparc_address_test (0);
15638 child = vfork ();
15640 if (child == 0) {
15641 /* Here is another test for sparc vfork register problems. This
15642 test uses lots of local variables, at least as many local
15643 variables as main has allocated so far including compiler
15644 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15645 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15646 reuse the register of parent for one of the local variables,
15647 since it will think that parent can't possibly be used any more
15648 in this routine. Assigning to the local variable will thus
15649 munge parent in the parent process. */
15650 pid_t
15651 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15652 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15653 /* Convince the compiler that p..p7 are live; otherwise, it might
15654 use the same hardware register for all 8 local variables. */
15655 if (p != p1 || p != p2 || p != p3 || p != p4
15656 || p != p5 || p != p6 || p != p7)
15657 _exit(1);
15659 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15660 from child file descriptors. If the child closes a descriptor
15661 before it execs or exits, this munges the parent's descriptor
15662 as well. Test for this by closing stdout in the child. */
15663 _exit(close(fileno(stdout)) != 0);
15664 } else {
15665 int status;
15666 struct stat st;
15668 while (wait(&status) != child)
15670 return (
15671 /* Was there some problem with vforking? */
15672 child < 0
15674 /* Did the child fail? (This shouldn't happen.) */
15675 || status
15677 /* Did the vfork/compiler bug occur? */
15678 || parent != getpid()
15680 /* Did the file descriptor bug occur? */
15681 || fstat(fileno(stdout), &st) != 0
15685 _ACEOF
15686 if ac_fn_c_try_run "$LINENO"; then :
15687 ac_cv_func_vfork_works=yes
15688 else
15689 ac_cv_func_vfork_works=no
15691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15692 conftest.$ac_objext conftest.beam conftest.$ac_ext
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15697 $as_echo "$ac_cv_func_vfork_works" >&6; }
15700 if test "x$ac_cv_func_fork_works" = xcross; then
15701 ac_cv_func_vfork_works=$ac_cv_func_vfork
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15703 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15706 if test "x$ac_cv_func_vfork_works" = xyes; then
15708 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15710 else
15712 $as_echo "#define vfork fork" >>confdefs.h
15715 if test "x$ac_cv_func_fork_works" = xyes; then
15717 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15722 for ac_func in snprintf
15723 do :
15724 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15725 if test "x$ac_cv_func_snprintf" = x""yes; then :
15726 cat >>confdefs.h <<_ACEOF
15727 #define HAVE_SNPRINTF 1
15728 _ACEOF
15731 done
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15735 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15736 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15737 $as_echo_n "(cached) " >&6
15738 else
15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740 /* end confdefs.h. */
15741 #include <langinfo.h>
15743 main ()
15745 char* cs = nl_langinfo(CODESET);
15747 return 0;
15749 _ACEOF
15750 if ac_fn_c_try_link "$LINENO"; then :
15751 emacs_cv_langinfo_codeset=yes
15752 else
15753 emacs_cv_langinfo_codeset=no
15755 rm -f core conftest.err conftest.$ac_objext \
15756 conftest$ac_exeext conftest.$ac_ext
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15760 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15761 if test $emacs_cv_langinfo_codeset = yes; then
15763 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15768 $as_echo_n "checking for mbstate_t... " >&6; }
15769 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15770 $as_echo_n "(cached) " >&6
15771 else
15772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15773 /* end confdefs.h. */
15774 $ac_includes_default
15775 # include <wchar.h>
15777 main ()
15779 mbstate_t x; return sizeof x;
15781 return 0;
15783 _ACEOF
15784 if ac_fn_c_try_compile "$LINENO"; then :
15785 ac_cv_type_mbstate_t=yes
15786 else
15787 ac_cv_type_mbstate_t=no
15789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15792 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15793 if test $ac_cv_type_mbstate_t = yes; then
15795 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15797 else
15799 $as_echo "#define mbstate_t int" >>confdefs.h
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15804 $as_echo_n "checking for C restricted array declarations... " >&6; }
15805 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15806 $as_echo_n "(cached) " >&6
15807 else
15808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15809 /* end confdefs.h. */
15810 void fred (int x[__restrict]);
15812 main ()
15816 return 0;
15818 _ACEOF
15819 if ac_fn_c_try_compile "$LINENO"; then :
15820 emacs_cv_c_restrict_arr=yes
15821 else
15822 emacs_cv_c_restrict_arr=no
15824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15827 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15828 if test "$emacs_cv_c_restrict_arr" = yes; then
15830 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15835 # Set up the CFLAGS for real compilation, so we can substitute it.
15836 CFLAGS="$REAL_CFLAGS"
15837 CPPFLAGS="$REAL_CPPFLAGS"
15839 ## Hack to detect a buggy GCC version.
15840 if test "x$GCC" = xyes \
15841 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15842 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15843 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15844 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15847 version=$PACKAGE_VERSION
15849 ### Specify what sort of things we'll be editing into Makefile and config.h.
15850 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15853 ## Unused?
15874 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15875 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15876 ## end of LIBX_BASE, but nothing ever set it.
15881 ## Used in lwlib/Makefile.in.
15883 if test -n "${machfile}"; then
15884 M_FILE="\$(srcdir)/${machfile}"
15885 else
15886 M_FILE=
15888 S_FILE="\$(srcdir)/${opsysfile}"
15899 cat >>confdefs.h <<_ACEOF
15900 #define EMACS_CONFIGURATION "${canonical}"
15901 _ACEOF
15904 cat >>confdefs.h <<_ACEOF
15905 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15906 _ACEOF
15908 if test -n "$machfile"; then
15910 cat >>confdefs.h <<_ACEOF
15911 #define config_machfile "${machfile}"
15912 _ACEOF
15916 cat >>confdefs.h <<_ACEOF
15917 #define config_opsysfile "${opsysfile}"
15918 _ACEOF
15921 XMENU_OBJ=
15922 XOBJ=
15923 FONT_OBJ=
15924 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15926 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15928 XMENU_OBJ=xmenu.o
15929 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15930 FONT_OBJ=xfont.o
15931 if test "$HAVE_XFT" = "yes"; then
15932 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15933 elif test "$HAVE_FREETYPE" = "yes"; then
15934 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15942 WIDGET_OBJ=
15943 MOTIF_LIBW=
15944 if test "${USE_X_TOOLKIT}" != "none" ; then
15945 WIDGET_OBJ=widget.o
15947 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15949 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15951 $as_echo "#define USE_LUCID 1" >>confdefs.h
15953 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15955 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15957 MOTIF_LIBW=-lXm
15958 case "$opsys" in
15959 gnu-linux)
15960 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15961 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15964 unixware)
15965 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15966 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15967 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15970 aix4-2)
15971 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15972 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15974 esac
15975 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
15980 TOOLKIT_LIBW=
15981 case "$USE_X_TOOLKIT" in
15982 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
15983 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
15984 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
15985 esac
15988 if test "$USE_X_TOOLKIT" = "none"; then
15989 LIBXT_OTHER="\$(LIBXSM)"
15990 OLDXMENU_TARGET="really-oldXMenu"
15991 else
15992 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15993 OLDXMENU_TARGET="really-lwlib"
15997 ## The X Menu stuff is present in the X10 distribution, but missing
15998 ## from X11. If we have X10, just use the installed library;
15999 ## otherwise, use our own copy.
16000 if test "${HAVE_X11}" = "yes" ; then
16002 $as_echo "#define HAVE_X11 1" >>confdefs.h
16005 if test "$USE_X_TOOLKIT" = "none"; then
16006 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16007 else
16008 OLDXMENU="\${lwlibdir}/liblw.a"
16010 LIBXMENU="\$(OLDXMENU)"
16011 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16012 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16013 else
16014 ## For a syntactically valid Makefile; not actually used for anything.
16015 ## See comments in src/Makefile.in.
16016 OLDXMENU=nothing
16017 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16018 if test "${HAVE_X_WINDOWS}" = "yes"; then
16019 LIBXMENU="-lXMenu"
16020 else
16021 LIBXMENU=
16023 LIBX_OTHER=
16024 OLDXMENU_DEPS=
16027 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16028 OLDXMENU_TARGET=
16029 OLDXMENU=nothing
16030 LIBXMENU=
16031 OLDXMENU_DEPS=
16040 if test "${HAVE_MENUS}" = "yes" ; then
16042 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16046 if test "${GNU_MALLOC}" = "yes" ; then
16048 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16052 RALLOC_OBJ=
16053 if test "${REL_ALLOC}" = "yes" ; then
16055 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16058 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16062 if test "$opsys" = "cygwin"; then
16063 CYGWIN_OBJ="sheap.o"
16064 ## Cygwin differs because of its unexec().
16065 PRE_ALLOC_OBJ=
16066 POST_ALLOC_OBJ=lastfile.o
16067 else
16068 CYGWIN_OBJ=
16069 PRE_ALLOC_OBJ=lastfile.o
16070 POST_ALLOC_OBJ=
16076 # Configure gnulib here, now that we know LIBS.
16077 >>>>>>> MERGE-SOURCE
16089 LIBC_FATAL_STDERR_=1
16090 export LIBC_FATAL_STDERR_
16092 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16093 # for constant arguments. Useless!
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16095 $as_echo_n "checking for working alloca.h... " >&6; }
16096 if test "${ac_cv_working_alloca_h+set}" = set; then :
16097 $as_echo_n "(cached) " >&6
16098 else
16099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16100 /* end confdefs.h. */
16101 #include <alloca.h>
16103 main ()
16105 char *p = (char *) alloca (2 * sizeof (int));
16106 if (p) return 0;
16108 return 0;
16110 _ACEOF
16111 if ac_fn_c_try_link "$LINENO"; then :
16112 ac_cv_working_alloca_h=yes
16113 else
16114 ac_cv_working_alloca_h=no
16116 rm -f core conftest.err conftest.$ac_objext \
16117 conftest$ac_exeext conftest.$ac_ext
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16120 $as_echo "$ac_cv_working_alloca_h" >&6; }
16121 if test $ac_cv_working_alloca_h = yes; then
16123 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16128 $as_echo_n "checking for alloca... " >&6; }
16129 if test "${ac_cv_func_alloca_works+set}" = set; then :
16130 $as_echo_n "(cached) " >&6
16131 else
16132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16133 /* end confdefs.h. */
16134 #ifdef __GNUC__
16135 # define alloca __builtin_alloca
16136 #else
16137 # ifdef _MSC_VER
16138 # include <malloc.h>
16139 # define alloca _alloca
16140 # else
16141 # ifdef HAVE_ALLOCA_H
16142 # include <alloca.h>
16143 # else
16144 # ifdef _AIX
16145 #pragma alloca
16146 # else
16147 # ifndef alloca /* predefined by HP cc +Olibcalls */
16148 char *alloca ();
16149 # endif
16150 # endif
16151 # endif
16152 # endif
16153 #endif
16156 main ()
16158 char *p = (char *) alloca (1);
16159 if (p) return 0;
16161 return 0;
16163 _ACEOF
16164 if ac_fn_c_try_link "$LINENO"; then :
16165 ac_cv_func_alloca_works=yes
16166 else
16167 ac_cv_func_alloca_works=no
16169 rm -f core conftest.err conftest.$ac_objext \
16170 conftest$ac_exeext conftest.$ac_ext
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16173 $as_echo "$ac_cv_func_alloca_works" >&6; }
16175 if test $ac_cv_func_alloca_works = yes; then
16177 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16179 else
16180 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16181 # that cause trouble. Some versions do not even contain alloca or
16182 # contain a buggy version. If you still want to use their alloca,
16183 # use ar to extract alloca.o from them instead of compiling alloca.c.
16189 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16191 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16195 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16196 if test "${ac_cv_os_cray+set}" = set; then :
16197 $as_echo_n "(cached) " >&6
16198 else
16199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200 /* end confdefs.h. */
16201 #if defined CRAY && ! defined CRAY2
16202 webecray
16203 #else
16204 wenotbecray
16205 #endif
16207 _ACEOF
16208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16209 $EGREP "webecray" >/dev/null 2>&1; then :
16210 ac_cv_os_cray=yes
16211 else
16212 ac_cv_os_cray=no
16214 rm -f conftest*
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16218 $as_echo "$ac_cv_os_cray" >&6; }
16219 if test $ac_cv_os_cray = yes; then
16220 for ac_func in _getb67 GETB67 getb67; do
16221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16222 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16223 eval as_val=\$$as_ac_var
16224 if test "x$as_val" = x""yes; then :
16226 cat >>confdefs.h <<_ACEOF
16227 #define CRAY_STACKSEG_END $ac_func
16228 _ACEOF
16230 break
16233 done
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16237 $as_echo_n "checking stack direction for C alloca... " >&6; }
16238 if test "${ac_cv_c_stack_direction+set}" = set; then :
16239 $as_echo_n "(cached) " >&6
16240 else
16241 if test "$cross_compiling" = yes; then :
16242 ac_cv_c_stack_direction=0
16243 else
16244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16245 /* end confdefs.h. */
16246 $ac_includes_default
16248 find_stack_direction (int *addr, int depth)
16250 int dir, dummy = 0;
16251 if (! addr)
16252 addr = &dummy;
16253 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16254 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16255 return dir + dummy;
16259 main (int argc, char **argv)
16261 return find_stack_direction (0, argc + !argv + 20) < 0;
16263 _ACEOF
16264 if ac_fn_c_try_run "$LINENO"; then :
16265 ac_cv_c_stack_direction=1
16266 else
16267 ac_cv_c_stack_direction=-1
16269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16270 conftest.$ac_objext conftest.beam conftest.$ac_ext
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16275 $as_echo "$ac_cv_c_stack_direction" >&6; }
16276 cat >>confdefs.h <<_ACEOF
16277 #define STACK_DIRECTION $ac_cv_c_stack_direction
16278 _ACEOF
16286 for ac_func in $ac_func_list
16287 do :
16288 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16289 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16290 eval as_val=\$$as_ac_var
16291 if test "x$as_val" = x""yes; then :
16292 cat >>confdefs.h <<_ACEOF
16293 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16294 _ACEOF
16297 done
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16303 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16304 if test "${ac_cv_c_bigendian+set}" = set; then :
16305 $as_echo_n "(cached) " >&6
16306 else
16307 ac_cv_c_bigendian=unknown
16308 # See if we're dealing with a universal compiler.
16309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16310 /* end confdefs.h. */
16311 #ifndef __APPLE_CC__
16312 not a universal capable compiler
16313 #endif
16314 typedef int dummy;
16316 _ACEOF
16317 if ac_fn_c_try_compile "$LINENO"; then :
16319 # Check for potential -arch flags. It is not universal unless
16320 # there are at least two -arch flags with different values.
16321 ac_arch=
16322 ac_prev=
16323 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16324 if test -n "$ac_prev"; then
16325 case $ac_word in
16326 i?86 | x86_64 | ppc | ppc64)
16327 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16328 ac_arch=$ac_word
16329 else
16330 ac_cv_c_bigendian=universal
16331 break
16334 esac
16335 ac_prev=
16336 elif test "x$ac_word" = "x-arch"; then
16337 ac_prev=arch
16339 done
16341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16342 if test $ac_cv_c_bigendian = unknown; then
16343 # See if sys/param.h defines the BYTE_ORDER macro.
16344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16345 /* end confdefs.h. */
16346 #include <sys/types.h>
16347 #include <sys/param.h>
16350 main ()
16352 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16353 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16354 && LITTLE_ENDIAN)
16355 bogus endian macros
16356 #endif
16359 return 0;
16361 _ACEOF
16362 if ac_fn_c_try_compile "$LINENO"; then :
16363 # It does; now see whether it defined to BIG_ENDIAN or not.
16364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16365 /* end confdefs.h. */
16366 #include <sys/types.h>
16367 #include <sys/param.h>
16370 main ()
16372 #if BYTE_ORDER != BIG_ENDIAN
16373 not big endian
16374 #endif
16377 return 0;
16379 _ACEOF
16380 if ac_fn_c_try_compile "$LINENO"; then :
16381 ac_cv_c_bigendian=yes
16382 else
16383 ac_cv_c_bigendian=no
16385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16389 if test $ac_cv_c_bigendian = unknown; then
16390 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h. */
16393 #include <limits.h>
16396 main ()
16398 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16399 bogus endian macros
16400 #endif
16403 return 0;
16405 _ACEOF
16406 if ac_fn_c_try_compile "$LINENO"; then :
16407 # It does; now see whether it defined to _BIG_ENDIAN or not.
16408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16409 /* end confdefs.h. */
16410 #include <limits.h>
16413 main ()
16415 #ifndef _BIG_ENDIAN
16416 not big endian
16417 #endif
16420 return 0;
16422 _ACEOF
16423 if ac_fn_c_try_compile "$LINENO"; then :
16424 ac_cv_c_bigendian=yes
16425 else
16426 ac_cv_c_bigendian=no
16428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16432 if test $ac_cv_c_bigendian = unknown; then
16433 # Compile a test program.
16434 if test "$cross_compiling" = yes; then :
16435 # Try to guess by grepping values from an object file.
16436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16437 /* end confdefs.h. */
16438 short int ascii_mm[] =
16439 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16440 short int ascii_ii[] =
16441 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16442 int use_ascii (int i) {
16443 return ascii_mm[i] + ascii_ii[i];
16445 short int ebcdic_ii[] =
16446 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16447 short int ebcdic_mm[] =
16448 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16449 int use_ebcdic (int i) {
16450 return ebcdic_mm[i] + ebcdic_ii[i];
16452 extern int foo;
16455 main ()
16457 return use_ascii (foo) == use_ebcdic (foo);
16459 return 0;
16461 _ACEOF
16462 if ac_fn_c_try_compile "$LINENO"; then :
16463 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16464 ac_cv_c_bigendian=yes
16466 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16467 if test "$ac_cv_c_bigendian" = unknown; then
16468 ac_cv_c_bigendian=no
16469 else
16470 # finding both strings is unlikely to happen, but who knows?
16471 ac_cv_c_bigendian=unknown
16475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16476 else
16477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478 /* end confdefs.h. */
16479 $ac_includes_default
16481 main ()
16484 /* Are we little or big endian? From Harbison&Steele. */
16485 union
16487 long int l;
16488 char c[sizeof (long int)];
16489 } u;
16490 u.l = 1;
16491 return u.c[sizeof (long int) - 1] == 1;
16494 return 0;
16496 _ACEOF
16497 if ac_fn_c_try_run "$LINENO"; then :
16498 ac_cv_c_bigendian=no
16499 else
16500 ac_cv_c_bigendian=yes
16502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16503 conftest.$ac_objext conftest.beam conftest.$ac_ext
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16509 $as_echo "$ac_cv_c_bigendian" >&6; }
16510 case $ac_cv_c_bigendian in #(
16511 yes)
16512 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16513 ;; #(
16515 ;; #(
16516 universal)
16518 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16520 ;; #(
16522 as_fn_error "unknown endianness
16523 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16524 esac
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16528 $as_echo_n "checking for inline... " >&6; }
16529 if test "${ac_cv_c_inline+set}" = set; then :
16530 $as_echo_n "(cached) " >&6
16531 else
16532 ac_cv_c_inline=no
16533 for ac_kw in inline __inline__ __inline; do
16534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16535 /* end confdefs.h. */
16536 #ifndef __cplusplus
16537 typedef int foo_t;
16538 static $ac_kw foo_t static_foo () {return 0; }
16539 $ac_kw foo_t foo () {return 0; }
16540 #endif
16542 _ACEOF
16543 if ac_fn_c_try_compile "$LINENO"; then :
16544 ac_cv_c_inline=$ac_kw
16546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16547 test "$ac_cv_c_inline" != no && break
16548 done
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16552 $as_echo "$ac_cv_c_inline" >&6; }
16554 case $ac_cv_c_inline in
16555 inline | yes) ;;
16557 case $ac_cv_c_inline in
16558 no) ac_val=;;
16559 *) ac_val=$ac_cv_c_inline;;
16560 esac
16561 cat >>confdefs.h <<_ACEOF
16562 #ifndef __cplusplus
16563 #define inline $ac_val
16564 #endif
16565 _ACEOF
16567 esac
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16571 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16572 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16573 $as_echo_n "(cached) " >&6
16574 else
16575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16576 /* end confdefs.h. */
16577 /* On HP-UX before 11.23, strtold returns a struct instead of
16578 long double. Reject implementations like that, by requiring
16579 compatibility with the C99 prototype. */
16580 #include <stdlib.h>
16581 static long double (*p) (char const *, char **) = strtold;
16582 static long double
16583 test (char const *nptr, char **endptr)
16585 long double r;
16586 r = strtold (nptr, endptr);
16587 return r;
16590 main ()
16592 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16594 return 0;
16596 _ACEOF
16597 if ac_fn_c_try_link "$LINENO"; then :
16598 gl_cv_func_c99_strtold=yes
16599 else
16600 gl_cv_func_c99_strtold=no
16602 rm -f core conftest.err conftest.$ac_objext \
16603 conftest$ac_exeext conftest.$ac_ext
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16606 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16607 if test $gl_cv_func_c99_strtold = yes; then
16609 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16614 GNULIB_CHOWN=0;
16615 GNULIB_CLOSE=0;
16616 GNULIB_DUP2=0;
16617 GNULIB_DUP3=0;
16618 GNULIB_ENVIRON=0;
16619 GNULIB_EUIDACCESS=0;
16620 GNULIB_FACCESSAT=0;
16621 GNULIB_FCHDIR=0;
16622 GNULIB_FCHOWNAT=0;
16623 GNULIB_FSYNC=0;
16624 GNULIB_FTRUNCATE=0;
16625 GNULIB_GETCWD=0;
16626 GNULIB_GETDOMAINNAME=0;
16627 GNULIB_GETDTABLESIZE=0;
16628 GNULIB_GETGROUPS=0;
16629 GNULIB_GETHOSTNAME=0;
16630 GNULIB_GETLOGIN=0;
16631 GNULIB_GETLOGIN_R=0;
16632 GNULIB_GETPAGESIZE=0;
16633 GNULIB_GETUSERSHELL=0;
16634 GNULIB_GROUP_MEMBER=0;
16635 GNULIB_LCHOWN=0;
16636 GNULIB_LINK=0;
16637 GNULIB_LINKAT=0;
16638 GNULIB_LSEEK=0;
16639 GNULIB_PIPE=0;
16640 GNULIB_PIPE2=0;
16641 GNULIB_PREAD=0;
16642 GNULIB_PWRITE=0;
16643 GNULIB_READ=0;
16644 GNULIB_READLINK=0;
16645 GNULIB_READLINKAT=0;
16646 GNULIB_RMDIR=0;
16647 GNULIB_SLEEP=0;
16648 GNULIB_SYMLINK=0;
16649 GNULIB_SYMLINKAT=0;
16650 GNULIB_TTYNAME_R=0;
16651 GNULIB_UNISTD_H_GETOPT=0;
16652 GNULIB_UNISTD_H_NONBLOCKING=0;
16653 GNULIB_UNISTD_H_SIGPIPE=0;
16654 GNULIB_UNLINK=0;
16655 GNULIB_UNLINKAT=0;
16656 GNULIB_USLEEP=0;
16657 GNULIB_WRITE=0;
16658 HAVE_CHOWN=1;
16659 HAVE_DUP2=1;
16660 HAVE_DUP3=1;
16661 HAVE_EUIDACCESS=1;
16662 HAVE_FACCESSAT=1;
16663 HAVE_FCHDIR=1;
16664 HAVE_FCHOWNAT=1;
16665 HAVE_FSYNC=1;
16666 HAVE_FTRUNCATE=1;
16667 HAVE_GETDTABLESIZE=1;
16668 HAVE_GETGROUPS=1;
16669 HAVE_GETHOSTNAME=1;
16670 HAVE_GETLOGIN=1;
16671 HAVE_GETPAGESIZE=1;
16672 HAVE_GROUP_MEMBER=1;
16673 HAVE_LCHOWN=1;
16674 HAVE_LINK=1;
16675 HAVE_LINKAT=1;
16676 HAVE_PIPE=1;
16677 HAVE_PIPE2=1;
16678 HAVE_PREAD=1;
16679 HAVE_PWRITE=1;
16680 HAVE_READLINK=1;
16681 HAVE_READLINKAT=1;
16682 HAVE_SLEEP=1;
16683 HAVE_SYMLINK=1;
16684 HAVE_SYMLINKAT=1;
16685 HAVE_UNLINKAT=1;
16686 HAVE_USLEEP=1;
16687 HAVE_DECL_ENVIRON=1;
16688 HAVE_DECL_FCHDIR=1;
16689 HAVE_DECL_GETDOMAINNAME=1;
16690 HAVE_DECL_GETLOGIN_R=1;
16691 HAVE_DECL_GETPAGESIZE=1;
16692 HAVE_DECL_GETUSERSHELL=1;
16693 HAVE_DECL_TTYNAME_R=1;
16694 HAVE_OS_H=0;
16695 HAVE_SYS_PARAM_H=0;
16696 REPLACE_CHOWN=0;
16697 REPLACE_CLOSE=0;
16698 REPLACE_DUP=0;
16699 REPLACE_DUP2=0;
16700 REPLACE_FCHOWNAT=0;
16701 REPLACE_GETCWD=0;
16702 REPLACE_GETDOMAINNAME=0;
16703 REPLACE_GETLOGIN_R=0;
16704 REPLACE_GETGROUPS=0;
16705 REPLACE_GETPAGESIZE=0;
16706 REPLACE_LCHOWN=0;
16707 REPLACE_LINK=0;
16708 REPLACE_LINKAT=0;
16709 REPLACE_LSEEK=0;
16710 REPLACE_PREAD=0;
16711 REPLACE_PWRITE=0;
16712 REPLACE_READ=0;
16713 REPLACE_READLINK=0;
16714 REPLACE_RMDIR=0;
16715 REPLACE_SLEEP=0;
16716 REPLACE_SYMLINK=0;
16717 REPLACE_TTYNAME_R=0;
16718 REPLACE_UNLINK=0;
16719 REPLACE_UNLINKAT=0;
16720 REPLACE_USLEEP=0;
16721 REPLACE_WRITE=0;
16722 UNISTD_H_HAVE_WINSOCK2_H=0;
16723 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16727 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16728 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16729 $as_echo_n "(cached) " >&6
16730 else
16731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732 /* end confdefs.h. */
16734 #include <sys/types.h>
16735 #include <sys/stat.h>
16737 main ()
16739 struct stat s; s.st_dm_mode;
16741 return 0;
16743 _ACEOF
16744 if ac_fn_c_try_compile "$LINENO"; then :
16745 ac_cv_struct_st_dm_mode=yes
16746 else
16747 ac_cv_struct_st_dm_mode=no
16749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16752 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16754 if test $ac_cv_struct_st_dm_mode = yes; then
16756 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16761 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16762 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16763 ac_have_decl=1
16764 else
16765 ac_have_decl=0
16768 cat >>confdefs.h <<_ACEOF
16769 #define HAVE_DECL_STRMODE $ac_have_decl
16770 _ACEOF
16773 GNULIB__EXIT=0;
16774 GNULIB_ATOLL=0;
16775 GNULIB_CALLOC_POSIX=0;
16776 GNULIB_CANONICALIZE_FILE_NAME=0;
16777 GNULIB_GETLOADAVG=0;
16778 GNULIB_GETSUBOPT=0;
16779 GNULIB_GRANTPT=0;
16780 GNULIB_MALLOC_POSIX=0;
16781 GNULIB_MBTOWC=0;
16782 GNULIB_MKDTEMP=0;
16783 GNULIB_MKOSTEMP=0;
16784 GNULIB_MKOSTEMPS=0;
16785 GNULIB_MKSTEMP=0;
16786 GNULIB_MKSTEMPS=0;
16787 GNULIB_PTSNAME=0;
16788 GNULIB_PUTENV=0;
16789 GNULIB_RANDOM_R=0;
16790 GNULIB_REALLOC_POSIX=0;
16791 GNULIB_REALPATH=0;
16792 GNULIB_RPMATCH=0;
16793 GNULIB_SETENV=0;
16794 GNULIB_STRTOD=0;
16795 GNULIB_STRTOLL=0;
16796 GNULIB_STRTOULL=0;
16797 GNULIB_SYSTEM_POSIX=0;
16798 GNULIB_UNLOCKPT=0;
16799 GNULIB_UNSETENV=0;
16800 GNULIB_WCTOMB=0;
16801 HAVE__EXIT=1;
16802 HAVE_ATOLL=1;
16803 HAVE_CANONICALIZE_FILE_NAME=1;
16804 HAVE_DECL_GETLOADAVG=1;
16805 HAVE_GETSUBOPT=1;
16806 HAVE_GRANTPT=1;
16807 HAVE_MKDTEMP=1;
16808 HAVE_MKOSTEMP=1;
16809 HAVE_MKOSTEMPS=1;
16810 HAVE_MKSTEMP=1;
16811 HAVE_MKSTEMPS=1;
16812 HAVE_PTSNAME=1;
16813 HAVE_RANDOM_H=1;
16814 HAVE_RANDOM_R=1;
16815 HAVE_REALPATH=1;
16816 HAVE_RPMATCH=1;
16817 HAVE_SETENV=1;
16818 HAVE_DECL_SETENV=1;
16819 HAVE_STRTOD=1;
16820 HAVE_STRTOLL=1;
16821 HAVE_STRTOULL=1;
16822 HAVE_STRUCT_RANDOM_DATA=1;
16823 HAVE_SYS_LOADAVG_H=0;
16824 HAVE_UNLOCKPT=1;
16825 HAVE_DECL_UNSETENV=1;
16826 REPLACE_CALLOC=0;
16827 REPLACE_CANONICALIZE_FILE_NAME=0;
16828 REPLACE_MALLOC=0;
16829 REPLACE_MBTOWC=0;
16830 REPLACE_MKSTEMP=0;
16831 REPLACE_PUTENV=0;
16832 REPLACE_REALLOC=0;
16833 REPLACE_REALPATH=0;
16834 REPLACE_SETENV=0;
16835 REPLACE_STRTOD=0;
16836 REPLACE_UNSETENV=0;
16837 REPLACE_WCTOMB=0;
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16842 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16843 if test "${gl_cv_have_include_next+set}" = set; then :
16844 $as_echo_n "(cached) " >&6
16845 else
16846 rm -rf conftestd1a conftestd1b conftestd2
16847 mkdir conftestd1a conftestd1b conftestd2
16848 cat <<EOF > conftestd1a/conftest.h
16849 #define DEFINED_IN_CONFTESTD1
16850 #include_next <conftest.h>
16851 #ifdef DEFINED_IN_CONFTESTD2
16852 int foo;
16853 #else
16854 #error "include_next doesn't work"
16855 #endif
16857 cat <<EOF > conftestd1b/conftest.h
16858 #define DEFINED_IN_CONFTESTD1
16859 #include <stdio.h>
16860 #include_next <conftest.h>
16861 #ifdef DEFINED_IN_CONFTESTD2
16862 int foo;
16863 #else
16864 #error "include_next doesn't work"
16865 #endif
16867 cat <<EOF > conftestd2/conftest.h
16868 #ifndef DEFINED_IN_CONFTESTD1
16869 #error "include_next test doesn't work"
16870 #endif
16871 #define DEFINED_IN_CONFTESTD2
16873 gl_save_CPPFLAGS="$CPPFLAGS"
16874 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16876 /* end confdefs.h. */
16877 #include <conftest.h>
16878 _ACEOF
16879 if ac_fn_c_try_compile "$LINENO"; then :
16880 gl_cv_have_include_next=yes
16881 else
16882 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16884 /* end confdefs.h. */
16885 #include <conftest.h>
16886 _ACEOF
16887 if ac_fn_c_try_compile "$LINENO"; then :
16888 gl_cv_have_include_next=buggy
16889 else
16890 gl_cv_have_include_next=no
16892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16896 CPPFLAGS="$gl_save_CPPFLAGS"
16897 rm -rf conftestd1a conftestd1b conftestd2
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16901 $as_echo "$gl_cv_have_include_next" >&6; }
16902 PRAGMA_SYSTEM_HEADER=
16903 if test $gl_cv_have_include_next = yes; then
16904 INCLUDE_NEXT=include_next
16905 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16906 if test -n "$GCC"; then
16907 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16909 else
16910 if test $gl_cv_have_include_next = buggy; then
16911 INCLUDE_NEXT=include
16912 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16913 else
16914 INCLUDE_NEXT=include
16915 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16922 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16923 if test "${gl_cv_pragma_columns+set}" = set; then :
16924 $as_echo_n "(cached) " >&6
16925 else
16926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16927 /* end confdefs.h. */
16929 #ifdef __TANDEM
16930 choke me
16931 #endif
16933 _ACEOF
16934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16935 $EGREP "choke me" >/dev/null 2>&1; then :
16936 gl_cv_pragma_columns=yes
16937 else
16938 gl_cv_pragma_columns=no
16940 rm -f conftest*
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16945 $as_echo "$gl_cv_pragma_columns" >&6; }
16946 if test $gl_cv_pragma_columns = yes; then
16947 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16948 else
16949 PRAGMA_COLUMNS=
16968 if test $gl_cv_have_include_next = yes; then
16969 gl_cv_next_getopt_h='<'getopt.h'>'
16970 else
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16972 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16973 if test "${gl_cv_next_getopt_h+set}" = set; then :
16974 $as_echo_n "(cached) " >&6
16975 else
16977 if test $ac_cv_header_getopt_h = yes; then
16980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16981 /* end confdefs.h. */
16982 #include <getopt.h>
16984 _ACEOF
16985 case "$host_os" in
16986 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16987 *) gl_absname_cpp="$ac_cpp" ;;
16988 esac
16990 case "$host_os" in
16991 mingw*)
16992 gl_dirsep_regex='[/\\]'
16995 gl_dirsep_regex='/'
16997 esac
16999 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'getopt.h#{
17000 s#.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*#\1#
17001 s#^/[^/]#//&#
17005 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17006 sed -n "$gl_absolute_header_sed"`'"'
17007 else
17008 gl_cv_next_getopt_h='<'getopt.h'>'
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17014 $as_echo "$gl_cv_next_getopt_h" >&6; }
17016 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17018 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17019 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17020 gl_next_as_first_directive='<'getopt.h'>'
17021 else
17022 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17023 gl_next_as_first_directive=$gl_cv_next_getopt_h
17025 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17030 if test $ac_cv_header_getopt_h = yes; then
17031 HAVE_GETOPT_H=1
17032 else
17033 HAVE_GETOPT_H=0
17037 gl_replace_getopt=
17039 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17040 for ac_header in getopt.h
17041 do :
17042 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17043 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17044 cat >>confdefs.h <<_ACEOF
17045 #define HAVE_GETOPT_H 1
17046 _ACEOF
17048 else
17049 gl_replace_getopt=yes
17052 done
17056 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17057 for ac_func in getopt_long_only
17058 do :
17059 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17060 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17061 cat >>confdefs.h <<_ACEOF
17062 #define HAVE_GETOPT_LONG_ONLY 1
17063 _ACEOF
17065 else
17066 gl_replace_getopt=yes
17068 done
17072 if test -z "$gl_replace_getopt"; then
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17074 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17075 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17076 $as_echo_n "(cached) " >&6
17077 else
17079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17080 /* end confdefs.h. */
17081 #include <unistd.h>
17083 main ()
17085 int *p = &optreset; return optreset;
17087 return 0;
17089 _ACEOF
17090 if ac_fn_c_try_compile "$LINENO"; then :
17091 gl_optind_min=1
17092 else
17093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17094 /* end confdefs.h. */
17095 #include <getopt.h>
17097 main ()
17099 return !getopt_clip;
17101 return 0;
17103 _ACEOF
17104 if ac_fn_c_try_compile "$LINENO"; then :
17105 gl_optind_min=1
17106 else
17107 gl_optind_min=0
17109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17113 gl_save_CPPFLAGS=$CPPFLAGS
17114 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
17115 if test "$cross_compiling" = yes; then :
17116 case "$host_os" in
17117 mingw*) gl_cv_func_getopt_posix="guessing no";;
17118 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
17119 *) gl_cv_func_getopt_posix="guessing yes";;
17120 esac
17122 else
17123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17124 /* end confdefs.h. */
17126 #include <unistd.h>
17127 #include <stdlib.h>
17128 #include <string.h>
17131 main ()
17134 int argc = 0;
17135 char *argv[10];
17136 int c;
17138 argv[argc++] = "program";
17139 argv[argc++] = "-a";
17140 argv[argc++] = "foo";
17141 argv[argc++] = "bar";
17142 argv[argc] = NULL;
17143 optind = OPTIND_MIN;
17144 opterr = 0;
17146 c = getopt (argc, argv, "ab");
17147 if (!(c == 'a'))
17148 return 1;
17149 c = getopt (argc, argv, "ab");
17150 if (!(c == -1))
17151 return 2;
17152 if (!(optind == 2))
17153 return 3;
17155 /* Some internal state exists at this point. */
17157 int argc = 0;
17158 char *argv[10];
17159 int c;
17161 argv[argc++] = "program";
17162 argv[argc++] = "donald";
17163 argv[argc++] = "-p";
17164 argv[argc++] = "billy";
17165 argv[argc++] = "duck";
17166 argv[argc++] = "-a";
17167 argv[argc++] = "bar";
17168 argv[argc] = NULL;
17169 optind = OPTIND_MIN;
17170 opterr = 0;
17172 c = getopt (argc, argv, "+abp:q:");
17173 if (!(c == -1))
17174 return 4;
17175 if (!(strcmp (argv[0], "program") == 0))
17176 return 5;
17177 if (!(strcmp (argv[1], "donald") == 0))
17178 return 6;
17179 if (!(strcmp (argv[2], "-p") == 0))
17180 return 7;
17181 if (!(strcmp (argv[3], "billy") == 0))
17182 return 8;
17183 if (!(strcmp (argv[4], "duck") == 0))
17184 return 9;
17185 if (!(strcmp (argv[5], "-a") == 0))
17186 return 10;
17187 if (!(strcmp (argv[6], "bar") == 0))
17188 return 11;
17189 if (!(optind == 1))
17190 return 12;
17192 /* Detect MacOS 10.5, AIX 7.1 bug. */
17194 char *argv[3] = { "program", "-ab", NULL };
17195 optind = OPTIND_MIN;
17196 opterr = 0;
17197 if (getopt (2, argv, "ab:") != 'a')
17198 return 13;
17199 if (getopt (2, argv, "ab:") != '?')
17200 return 14;
17201 if (optopt != 'b')
17202 return 15;
17203 if (optind != 2)
17204 return 16;
17207 return 0;
17210 _ACEOF
17211 if ac_fn_c_try_run "$LINENO"; then :
17212 gl_cv_func_getopt_posix=yes
17213 else
17214 gl_cv_func_getopt_posix=no
17216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17217 conftest.$ac_objext conftest.beam conftest.$ac_ext
17220 CPPFLAGS=$gl_save_CPPFLAGS
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17224 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17225 case "$gl_cv_func_getopt_posix" in
17226 *no) gl_replace_getopt=yes ;;
17227 esac
17230 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17232 $as_echo_n "checking for working GNU getopt function... " >&6; }
17233 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17234 $as_echo_n "(cached) " >&6
17235 else
17236 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17237 # optstring is necessary for programs like m4 that have POSIX-mandated
17238 # semantics for supporting options interspersed with files.
17239 # Also, since getopt_long is a GNU extension, we require optind=0.
17240 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17241 # so take care to revert to the correct (non-)export state.
17242 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17243 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17244 xx) gl_had_POSIXLY_CORRECT=exported ;;
17245 x) gl_had_POSIXLY_CORRECT=yes ;;
17246 *) gl_had_POSIXLY_CORRECT= ;;
17247 esac
17248 POSIXLY_CORRECT=1
17249 export POSIXLY_CORRECT
17250 if test "$cross_compiling" = yes; then :
17251 case $host_os:$ac_cv_have_decl_optreset in
17252 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
17253 *:yes) gl_cv_func_getopt_gnu=no;;
17254 *) gl_cv_func_getopt_gnu=yes;;
17255 esac
17257 else
17258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17259 /* end confdefs.h. */
17260 #include <getopt.h>
17261 #include <stddef.h>
17262 #include <string.h>
17264 #include <stdlib.h>
17265 #if defined __MACH__ && defined __APPLE__
17266 /* Avoid a crash on MacOS X. */
17267 #include <mach/mach.h>
17268 #include <mach/mach_error.h>
17269 #include <mach/thread_status.h>
17270 #include <mach/exception.h>
17271 #include <mach/task.h>
17272 #include <pthread.h>
17273 /* The exception port on which our thread listens. */
17274 static mach_port_t our_exception_port;
17275 /* The main function of the thread listening for exceptions of type
17276 EXC_BAD_ACCESS. */
17277 static void *
17278 mach_exception_thread (void *arg)
17280 /* Buffer for a message to be received. */
17281 struct {
17282 mach_msg_header_t head;
17283 mach_msg_body_t msgh_body;
17284 char data[1024];
17285 } msg;
17286 mach_msg_return_t retval;
17287 /* Wait for a message on the exception port. */
17288 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17289 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17290 if (retval != MACH_MSG_SUCCESS)
17291 abort ();
17292 exit (1);
17294 static void
17295 nocrash_init (void)
17297 mach_port_t self = mach_task_self ();
17298 /* Allocate a port on which the thread shall listen for exceptions. */
17299 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17300 == KERN_SUCCESS) {
17301 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17302 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17303 MACH_MSG_TYPE_MAKE_SEND)
17304 == KERN_SUCCESS) {
17305 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17306 for us. */
17307 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17308 /* Create the thread listening on the exception port. */
17309 pthread_attr_t attr;
17310 pthread_t thread;
17311 if (pthread_attr_init (&attr) == 0
17312 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17313 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17314 pthread_attr_destroy (&attr);
17315 /* Replace the exception port info for these exceptions with our own.
17316 Note that we replace the exception port for the entire task, not only
17317 for a particular thread. This has the effect that when our exception
17318 port gets the message, the thread specific exception port has already
17319 been asked, and we don't need to bother about it.
17320 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17321 task_set_exception_ports (self, mask, our_exception_port,
17322 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17327 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17328 /* Avoid a crash on native Windows. */
17329 #define WIN32_LEAN_AND_MEAN
17330 #include <windows.h>
17331 #include <winerror.h>
17332 static LONG WINAPI
17333 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17335 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17337 case EXCEPTION_ACCESS_VIOLATION:
17338 case EXCEPTION_IN_PAGE_ERROR:
17339 case EXCEPTION_STACK_OVERFLOW:
17340 case EXCEPTION_GUARD_PAGE:
17341 case EXCEPTION_PRIV_INSTRUCTION:
17342 case EXCEPTION_ILLEGAL_INSTRUCTION:
17343 case EXCEPTION_DATATYPE_MISALIGNMENT:
17344 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17345 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17346 exit (1);
17348 return EXCEPTION_CONTINUE_SEARCH;
17350 static void
17351 nocrash_init (void)
17353 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17355 #else
17356 /* Avoid a crash on POSIX systems. */
17357 #include <signal.h>
17358 /* A POSIX signal handler. */
17359 static void
17360 exception_handler (int sig)
17362 exit (1);
17364 static void
17365 nocrash_init (void)
17367 #ifdef SIGSEGV
17368 signal (SIGSEGV, exception_handler);
17369 #endif
17370 #ifdef SIGBUS
17371 signal (SIGBUS, exception_handler);
17372 #endif
17374 #endif
17378 main ()
17381 int result = 0;
17383 nocrash_init();
17385 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17386 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17387 OSF/1 5.1, Solaris 10. */
17389 char *myargv[3];
17390 myargv[0] = "conftest";
17391 myargv[1] = "-+";
17392 myargv[2] = 0;
17393 opterr = 0;
17394 if (getopt (2, myargv, "+a") != '?')
17395 result |= 1;
17397 /* This code succeeds on glibc 2.8, mingw,
17398 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17399 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17401 char *argv[] = { "program", "-p", "foo", "bar", NULL };
17403 optind = 1;
17404 if (getopt (4, argv, "p::") != 'p')
17405 result |= 2;
17406 else if (optarg != NULL)
17407 result |= 4;
17408 else if (getopt (4, argv, "p::") != -1)
17409 result |= 6;
17410 else if (optind != 2)
17411 result |= 8;
17413 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17415 char *argv[] = { "program", "foo", "-p", NULL };
17416 optind = 0;
17417 if (getopt (3, argv, "-p") != 1)
17418 result |= 16;
17419 else if (getopt (3, argv, "-p") != 'p')
17420 result |= 32;
17422 /* This code fails on glibc 2.11. */
17424 char *argv[] = { "program", "-b", "-a", NULL };
17425 optind = opterr = 0;
17426 if (getopt (3, argv, "+:a:b") != 'b')
17427 result |= 64;
17428 else if (getopt (3, argv, "+:a:b") != ':')
17429 result |= 64;
17431 return result;
17434 return 0;
17436 _ACEOF
17437 if ac_fn_c_try_run "$LINENO"; then :
17438 gl_cv_func_getopt_gnu=yes
17439 else
17440 gl_cv_func_getopt_gnu=no
17442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17443 conftest.$ac_objext conftest.beam conftest.$ac_ext
17446 case $gl_had_POSIXLY_CORRECT in
17447 exported) ;;
17448 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17449 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17450 esac
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17454 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17455 if test "$gl_cv_func_getopt_gnu" = "no"; then
17456 gl_replace_getopt=yes
17464 REPLACE_GETOPT=0
17467 if test -n "$gl_replace_getopt"; then :
17469 REPLACE_GETOPT=1
17474 if test $REPLACE_GETOPT = 1; then
17476 GETOPT_H=getopt.h
17478 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17482 GNULIB_UNISTD_H_GETOPT=1
17485 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17486 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17487 ac_have_decl=1
17488 else
17489 ac_have_decl=0
17492 cat >>confdefs.h <<_ACEOF
17493 #define HAVE_DECL_GETENV $ac_have_decl
17494 _ACEOF
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17498 $as_echo_n "checking for unsigned long long int... " >&6; }
17499 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17500 $as_echo_n "(cached) " >&6
17501 else
17502 ac_cv_type_unsigned_long_long_int=yes
17503 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17505 /* end confdefs.h. */
17507 /* For now, do not test the preprocessor; as of 2007 there are too many
17508 implementations with broken preprocessors. Perhaps this can
17509 be revisited in 2012. In the meantime, code should not expect
17510 #if to work with literals wider than 32 bits. */
17511 /* Test literals. */
17512 long long int ll = 9223372036854775807ll;
17513 long long int nll = -9223372036854775807LL;
17514 unsigned long long int ull = 18446744073709551615ULL;
17515 /* Test constant expressions. */
17516 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17517 ? 1 : -1)];
17518 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17519 ? 1 : -1)];
17520 int i = 63;
17522 main ()
17524 /* Test availability of runtime routines for shift and division. */
17525 long long int llmax = 9223372036854775807ll;
17526 unsigned long long int ullmax = 18446744073709551615ull;
17527 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17528 | (llmax / ll) | (llmax % ll)
17529 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17530 | (ullmax / ull) | (ullmax % ull));
17532 return 0;
17535 _ACEOF
17536 if ac_fn_c_try_link "$LINENO"; then :
17538 else
17539 ac_cv_type_unsigned_long_long_int=no
17541 rm -f core conftest.err conftest.$ac_objext \
17542 conftest$ac_exeext conftest.$ac_ext
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17546 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17547 if test $ac_cv_type_unsigned_long_long_int = yes; then
17549 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17556 $as_echo_n "checking for long long int... " >&6; }
17557 if test "${ac_cv_type_long_long_int+set}" = set; then :
17558 $as_echo_n "(cached) " >&6
17559 else
17560 ac_cv_type_long_long_int=yes
17561 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17562 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17563 if test $ac_cv_type_long_long_int = yes; then
17564 if test "$cross_compiling" = yes; then :
17566 else
17567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17568 /* end confdefs.h. */
17569 #include <limits.h>
17570 #ifndef LLONG_MAX
17571 # define HALF \
17572 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17573 # define LLONG_MAX (HALF - 1 + HALF)
17574 #endif
17576 main ()
17578 long long int n = 1;
17579 int i;
17580 for (i = 0; ; i++)
17582 long long int m = n << i;
17583 if (m >> i != n)
17584 return 1;
17585 if (LLONG_MAX / 2 < m)
17586 break;
17588 return 0;
17590 return 0;
17592 _ACEOF
17593 if ac_fn_c_try_run "$LINENO"; then :
17595 else
17596 ac_cv_type_long_long_int=no
17598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17599 conftest.$ac_objext conftest.beam conftest.$ac_ext
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17606 $as_echo "$ac_cv_type_long_long_int" >&6; }
17607 if test $ac_cv_type_long_long_int = yes; then
17609 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17618 gl_cv_c_multiarch=no
17619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17620 /* end confdefs.h. */
17621 #ifndef __APPLE_CC__
17622 not a universal capable compiler
17623 #endif
17624 typedef int dummy;
17626 _ACEOF
17627 if ac_fn_c_try_compile "$LINENO"; then :
17629 arch=
17630 prev=
17631 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17632 if test -n "$prev"; then
17633 case $word in
17634 i?86 | x86_64 | ppc | ppc64)
17635 if test -z "$arch" || test "$arch" = "$word"; then
17636 arch="$word"
17637 else
17638 gl_cv_c_multiarch=yes
17641 esac
17642 prev=
17643 else
17644 if test "x$word" = "x-arch"; then
17645 prev=arch
17648 done
17651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17652 if test $gl_cv_c_multiarch = yes; then
17653 APPLE_UNIVERSAL_BUILD=1
17654 else
17655 APPLE_UNIVERSAL_BUILD=0
17662 if test $ac_cv_type_long_long_int = yes; then
17663 HAVE_LONG_LONG_INT=1
17664 else
17665 HAVE_LONG_LONG_INT=0
17669 if test $ac_cv_type_unsigned_long_long_int = yes; then
17670 HAVE_UNSIGNED_LONG_LONG_INT=1
17671 else
17672 HAVE_UNSIGNED_LONG_LONG_INT=0
17677 if test $ac_cv_header_wchar_h = yes; then
17678 HAVE_WCHAR_H=1
17679 else
17680 HAVE_WCHAR_H=0
17684 if test $ac_cv_header_inttypes_h = yes; then
17685 HAVE_INTTYPES_H=1
17686 else
17687 HAVE_INTTYPES_H=0
17691 if test $ac_cv_header_sys_types_h = yes; then
17692 HAVE_SYS_TYPES_H=1
17693 else
17694 HAVE_SYS_TYPES_H=0
17707 if test $gl_cv_have_include_next = yes; then
17708 gl_cv_next_stdint_h='<'stdint.h'>'
17709 else
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17711 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17712 if test "${gl_cv_next_stdint_h+set}" = set; then :
17713 $as_echo_n "(cached) " >&6
17714 else
17716 if test $ac_cv_header_stdint_h = yes; then
17719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17720 /* end confdefs.h. */
17721 #include <stdint.h>
17723 _ACEOF
17724 case "$host_os" in
17725 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17726 *) gl_absname_cpp="$ac_cpp" ;;
17727 esac
17729 case "$host_os" in
17730 mingw*)
17731 gl_dirsep_regex='[/\\]'
17734 gl_dirsep_regex='/'
17736 esac
17738 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdint.h#{
17739 s#.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*#\1#
17740 s#^/[^/]#//&#
17744 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17745 sed -n "$gl_absolute_header_sed"`'"'
17746 else
17747 gl_cv_next_stdint_h='<'stdint.h'>'
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17753 $as_echo "$gl_cv_next_stdint_h" >&6; }
17755 NEXT_STDINT_H=$gl_cv_next_stdint_h
17757 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17758 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17759 gl_next_as_first_directive='<'stdint.h'>'
17760 else
17761 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17762 gl_next_as_first_directive=$gl_cv_next_stdint_h
17764 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17769 if test $ac_cv_header_stdint_h = yes; then
17770 HAVE_STDINT_H=1
17771 else
17772 HAVE_STDINT_H=0
17776 if test $ac_cv_header_stdint_h = yes; then
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17778 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17779 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17780 $as_echo_n "(cached) " >&6
17781 else
17782 gl_cv_header_working_stdint_h=no
17783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17784 /* end confdefs.h. */
17787 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17788 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17789 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17790 #include <stdint.h>
17791 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17792 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17793 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17794 #endif
17797 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17798 included before <wchar.h>. */
17799 #include <stddef.h>
17800 #include <signal.h>
17801 #if HAVE_WCHAR_H
17802 # include <stdio.h>
17803 # include <time.h>
17804 # include <wchar.h>
17805 #endif
17808 #ifdef INT8_MAX
17809 int8_t a1 = INT8_MAX;
17810 int8_t a1min = INT8_MIN;
17811 #endif
17812 #ifdef INT16_MAX
17813 int16_t a2 = INT16_MAX;
17814 int16_t a2min = INT16_MIN;
17815 #endif
17816 #ifdef INT32_MAX
17817 int32_t a3 = INT32_MAX;
17818 int32_t a3min = INT32_MIN;
17819 #endif
17820 #ifdef INT64_MAX
17821 int64_t a4 = INT64_MAX;
17822 int64_t a4min = INT64_MIN;
17823 #endif
17824 #ifdef UINT8_MAX
17825 uint8_t b1 = UINT8_MAX;
17826 #else
17827 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17828 #endif
17829 #ifdef UINT16_MAX
17830 uint16_t b2 = UINT16_MAX;
17831 #endif
17832 #ifdef UINT32_MAX
17833 uint32_t b3 = UINT32_MAX;
17834 #endif
17835 #ifdef UINT64_MAX
17836 uint64_t b4 = UINT64_MAX;
17837 #endif
17838 int_least8_t c1 = INT8_C (0x7f);
17839 int_least8_t c1max = INT_LEAST8_MAX;
17840 int_least8_t c1min = INT_LEAST8_MIN;
17841 int_least16_t c2 = INT16_C (0x7fff);
17842 int_least16_t c2max = INT_LEAST16_MAX;
17843 int_least16_t c2min = INT_LEAST16_MIN;
17844 int_least32_t c3 = INT32_C (0x7fffffff);
17845 int_least32_t c3max = INT_LEAST32_MAX;
17846 int_least32_t c3min = INT_LEAST32_MIN;
17847 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17848 int_least64_t c4max = INT_LEAST64_MAX;
17849 int_least64_t c4min = INT_LEAST64_MIN;
17850 uint_least8_t d1 = UINT8_C (0xff);
17851 uint_least8_t d1max = UINT_LEAST8_MAX;
17852 uint_least16_t d2 = UINT16_C (0xffff);
17853 uint_least16_t d2max = UINT_LEAST16_MAX;
17854 uint_least32_t d3 = UINT32_C (0xffffffff);
17855 uint_least32_t d3max = UINT_LEAST32_MAX;
17856 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17857 uint_least64_t d4max = UINT_LEAST64_MAX;
17858 int_fast8_t e1 = INT_FAST8_MAX;
17859 int_fast8_t e1min = INT_FAST8_MIN;
17860 int_fast16_t e2 = INT_FAST16_MAX;
17861 int_fast16_t e2min = INT_FAST16_MIN;
17862 int_fast32_t e3 = INT_FAST32_MAX;
17863 int_fast32_t e3min = INT_FAST32_MIN;
17864 int_fast64_t e4 = INT_FAST64_MAX;
17865 int_fast64_t e4min = INT_FAST64_MIN;
17866 uint_fast8_t f1 = UINT_FAST8_MAX;
17867 uint_fast16_t f2 = UINT_FAST16_MAX;
17868 uint_fast32_t f3 = UINT_FAST32_MAX;
17869 uint_fast64_t f4 = UINT_FAST64_MAX;
17870 #ifdef INTPTR_MAX
17871 intptr_t g = INTPTR_MAX;
17872 intptr_t gmin = INTPTR_MIN;
17873 #endif
17874 #ifdef UINTPTR_MAX
17875 uintptr_t h = UINTPTR_MAX;
17876 #endif
17877 intmax_t i = INTMAX_MAX;
17878 uintmax_t j = UINTMAX_MAX;
17880 #include <limits.h> /* for CHAR_BIT */
17881 #define TYPE_MINIMUM(t) \
17882 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17883 #define TYPE_MAXIMUM(t) \
17884 ((t) ((t) 0 < (t) -1 \
17885 ? (t) -1 \
17886 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17887 struct s {
17888 int check_PTRDIFF:
17889 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17890 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17891 ? 1 : -1;
17892 /* Detect bug in FreeBSD 6.0 / ia64. */
17893 int check_SIG_ATOMIC:
17894 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17895 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17896 ? 1 : -1;
17897 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17898 int check_WCHAR:
17899 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17900 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17901 ? 1 : -1;
17902 /* Detect bug in mingw. */
17903 int check_WINT:
17904 WINT_MIN == TYPE_MINIMUM (wint_t)
17905 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17906 ? 1 : -1;
17908 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17909 int check_UINT8_C:
17910 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17911 int check_UINT16_C:
17912 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17914 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17915 #ifdef UINT8_MAX
17916 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17917 #endif
17918 #ifdef UINT16_MAX
17919 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17920 #endif
17921 #ifdef UINT32_MAX
17922 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17923 #endif
17924 #ifdef UINT64_MAX
17925 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17926 #endif
17927 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17928 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17929 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17930 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17931 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17932 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17933 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17934 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17935 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17936 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17937 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17941 main ()
17945 return 0;
17947 _ACEOF
17948 if ac_fn_c_try_compile "$LINENO"; then :
17949 if test "$cross_compiling" = yes; then :
17950 gl_cv_header_working_stdint_h=yes
17952 else
17953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17954 /* end confdefs.h. */
17957 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17958 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17959 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17960 #include <stdint.h>
17963 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17964 included before <wchar.h>. */
17965 #include <stddef.h>
17966 #include <signal.h>
17967 #if HAVE_WCHAR_H
17968 # include <stdio.h>
17969 # include <time.h>
17970 # include <wchar.h>
17971 #endif
17974 #include <stdio.h>
17975 #include <string.h>
17976 #define MVAL(macro) MVAL1(macro)
17977 #define MVAL1(expression) #expression
17978 static const char *macro_values[] =
17980 #ifdef INT8_MAX
17981 MVAL (INT8_MAX),
17982 #endif
17983 #ifdef INT16_MAX
17984 MVAL (INT16_MAX),
17985 #endif
17986 #ifdef INT32_MAX
17987 MVAL (INT32_MAX),
17988 #endif
17989 #ifdef INT64_MAX
17990 MVAL (INT64_MAX),
17991 #endif
17992 #ifdef UINT8_MAX
17993 MVAL (UINT8_MAX),
17994 #endif
17995 #ifdef UINT16_MAX
17996 MVAL (UINT16_MAX),
17997 #endif
17998 #ifdef UINT32_MAX
17999 MVAL (UINT32_MAX),
18000 #endif
18001 #ifdef UINT64_MAX
18002 MVAL (UINT64_MAX),
18003 #endif
18004 NULL
18008 main ()
18011 const char **mv;
18012 for (mv = macro_values; *mv != NULL; mv++)
18014 const char *value = *mv;
18015 /* Test whether it looks like a cast expression. */
18016 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18017 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18018 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18019 || strncmp (value, "((int)"/*)*/, 6) == 0
18020 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18021 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18022 return mv - macro_values + 1;
18024 return 0;
18027 return 0;
18029 _ACEOF
18030 if ac_fn_c_try_run "$LINENO"; then :
18031 gl_cv_header_working_stdint_h=yes
18033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18034 conftest.$ac_objext conftest.beam conftest.$ac_ext
18039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18043 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18045 if test "$gl_cv_header_working_stdint_h" = yes; then
18046 STDINT_H=
18047 else
18048 for ac_header in sys/inttypes.h sys/bitypes.h
18049 do :
18050 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18051 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18052 eval as_val=\$$as_ac_Header
18053 if test "x$as_val" = x""yes; then :
18054 cat >>confdefs.h <<_ACEOF
18055 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18056 _ACEOF
18060 done
18062 if test $ac_cv_header_sys_inttypes_h = yes; then
18063 HAVE_SYS_INTTYPES_H=1
18064 else
18065 HAVE_SYS_INTTYPES_H=0
18068 if test $ac_cv_header_sys_bitypes_h = yes; then
18069 HAVE_SYS_BITYPES_H=1
18070 else
18071 HAVE_SYS_BITYPES_H=0
18077 if test $APPLE_UNIVERSAL_BUILD = 0; then
18080 for gltype in ptrdiff_t size_t ; do
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18082 $as_echo_n "checking for bit size of $gltype... " >&6; }
18083 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18084 $as_echo_n "(cached) " >&6
18085 else
18086 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18087 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18088 included before <wchar.h>. */
18089 #include <stddef.h>
18090 #include <signal.h>
18091 #if HAVE_WCHAR_H
18092 # include <stdio.h>
18093 # include <time.h>
18094 # include <wchar.h>
18095 #endif
18097 #include <limits.h>"; then :
18099 else
18100 result=unknown
18103 eval gl_cv_bitsizeof_${gltype}=\$result
18106 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18108 $as_echo "$ac_res" >&6; }
18109 eval result=\$gl_cv_bitsizeof_${gltype}
18110 if test $result = unknown; then
18111 result=0
18113 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18114 cat >>confdefs.h <<_ACEOF
18115 #define BITSIZEOF_${GLTYPE} $result
18116 _ACEOF
18118 eval BITSIZEOF_${GLTYPE}=\$result
18119 done
18125 for gltype in sig_atomic_t wchar_t wint_t ; do
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18127 $as_echo_n "checking for bit size of $gltype... " >&6; }
18128 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18129 $as_echo_n "(cached) " >&6
18130 else
18131 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18132 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18133 included before <wchar.h>. */
18134 #include <stddef.h>
18135 #include <signal.h>
18136 #if HAVE_WCHAR_H
18137 # include <stdio.h>
18138 # include <time.h>
18139 # include <wchar.h>
18140 #endif
18142 #include <limits.h>"; then :
18144 else
18145 result=unknown
18148 eval gl_cv_bitsizeof_${gltype}=\$result
18151 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18153 $as_echo "$ac_res" >&6; }
18154 eval result=\$gl_cv_bitsizeof_${gltype}
18155 if test $result = unknown; then
18156 result=0
18158 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18159 cat >>confdefs.h <<_ACEOF
18160 #define BITSIZEOF_${GLTYPE} $result
18161 _ACEOF
18163 eval BITSIZEOF_${GLTYPE}=\$result
18164 done
18169 for gltype in sig_atomic_t wchar_t wint_t ; do
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18171 $as_echo_n "checking whether $gltype is signed... " >&6; }
18172 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18173 $as_echo_n "(cached) " >&6
18174 else
18175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18176 /* end confdefs.h. */
18178 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18179 included before <wchar.h>. */
18180 #include <stddef.h>
18181 #include <signal.h>
18182 #if HAVE_WCHAR_H
18183 # include <stdio.h>
18184 # include <time.h>
18185 # include <wchar.h>
18186 #endif
18188 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18190 main ()
18194 return 0;
18196 _ACEOF
18197 if ac_fn_c_try_compile "$LINENO"; then :
18198 result=yes
18199 else
18200 result=no
18202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18203 eval gl_cv_type_${gltype}_signed=\$result
18206 eval ac_res=\$gl_cv_type_${gltype}_signed
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18208 $as_echo "$ac_res" >&6; }
18209 eval result=\$gl_cv_type_${gltype}_signed
18210 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18211 if test "$result" = yes; then
18212 cat >>confdefs.h <<_ACEOF
18213 #define HAVE_SIGNED_${GLTYPE} 1
18214 _ACEOF
18216 eval HAVE_SIGNED_${GLTYPE}=1
18217 else
18218 eval HAVE_SIGNED_${GLTYPE}=0
18220 done
18223 gl_cv_type_ptrdiff_t_signed=yes
18224 gl_cv_type_size_t_signed=no
18225 if test $APPLE_UNIVERSAL_BUILD = 0; then
18228 for gltype in ptrdiff_t size_t ; do
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18230 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18231 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18232 $as_echo_n "(cached) " >&6
18233 else
18234 eval gl_cv_type_${gltype}_suffix=no
18235 eval result=\$gl_cv_type_${gltype}_signed
18236 if test "$result" = yes; then
18237 glsufu=
18238 else
18239 glsufu=u
18241 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18242 case $glsuf in
18243 '') gltype1='int';;
18244 l) gltype1='long int';;
18245 ll) gltype1='long long int';;
18246 i64) gltype1='__int64';;
18247 u) gltype1='unsigned int';;
18248 ul) gltype1='unsigned long int';;
18249 ull) gltype1='unsigned long long int';;
18250 ui64)gltype1='unsigned __int64';;
18251 esac
18252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18253 /* end confdefs.h. */
18255 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18256 included before <wchar.h>. */
18257 #include <stddef.h>
18258 #include <signal.h>
18259 #if HAVE_WCHAR_H
18260 # include <stdio.h>
18261 # include <time.h>
18262 # include <wchar.h>
18263 #endif
18265 extern $gltype foo;
18266 extern $gltype1 foo;
18268 main ()
18272 return 0;
18274 _ACEOF
18275 if ac_fn_c_try_compile "$LINENO"; then :
18276 eval gl_cv_type_${gltype}_suffix=\$glsuf
18278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18279 eval result=\$gl_cv_type_${gltype}_suffix
18280 test "$result" != no && break
18281 done
18283 eval ac_res=\$gl_cv_type_${gltype}_suffix
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18285 $as_echo "$ac_res" >&6; }
18286 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18287 eval result=\$gl_cv_type_${gltype}_suffix
18288 test "$result" = no && result=
18289 eval ${GLTYPE}_SUFFIX=\$result
18290 cat >>confdefs.h <<_ACEOF
18291 #define ${GLTYPE}_SUFFIX $result
18292 _ACEOF
18294 done
18300 for gltype in sig_atomic_t wchar_t wint_t ; do
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18302 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18303 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18304 $as_echo_n "(cached) " >&6
18305 else
18306 eval gl_cv_type_${gltype}_suffix=no
18307 eval result=\$gl_cv_type_${gltype}_signed
18308 if test "$result" = yes; then
18309 glsufu=
18310 else
18311 glsufu=u
18313 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18314 case $glsuf in
18315 '') gltype1='int';;
18316 l) gltype1='long int';;
18317 ll) gltype1='long long int';;
18318 i64) gltype1='__int64';;
18319 u) gltype1='unsigned int';;
18320 ul) gltype1='unsigned long int';;
18321 ull) gltype1='unsigned long long int';;
18322 ui64)gltype1='unsigned __int64';;
18323 esac
18324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h. */
18327 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18328 included before <wchar.h>. */
18329 #include <stddef.h>
18330 #include <signal.h>
18331 #if HAVE_WCHAR_H
18332 # include <stdio.h>
18333 # include <time.h>
18334 # include <wchar.h>
18335 #endif
18337 extern $gltype foo;
18338 extern $gltype1 foo;
18340 main ()
18344 return 0;
18346 _ACEOF
18347 if ac_fn_c_try_compile "$LINENO"; then :
18348 eval gl_cv_type_${gltype}_suffix=\$glsuf
18350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18351 eval result=\$gl_cv_type_${gltype}_suffix
18352 test "$result" != no && break
18353 done
18355 eval ac_res=\$gl_cv_type_${gltype}_suffix
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18357 $as_echo "$ac_res" >&6; }
18358 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18359 eval result=\$gl_cv_type_${gltype}_suffix
18360 test "$result" = no && result=
18361 eval ${GLTYPE}_SUFFIX=\$result
18362 cat >>confdefs.h <<_ACEOF
18363 #define ${GLTYPE}_SUFFIX $result
18364 _ACEOF
18366 done
18370 STDINT_H=stdint.h
18373 if test -n "$STDINT_H"; then
18374 GL_GENERATE_STDINT_H_TRUE=
18375 GL_GENERATE_STDINT_H_FALSE='#'
18376 else
18377 GL_GENERATE_STDINT_H_TRUE='#'
18378 GL_GENERATE_STDINT_H_FALSE=
18385 GNULIB_IMAXABS=0;
18386 GNULIB_IMAXDIV=0;
18387 GNULIB_STRTOIMAX=0;
18388 GNULIB_STRTOUMAX=0;
18389 HAVE_DECL_IMAXABS=1;
18390 HAVE_DECL_IMAXDIV=1;
18391 HAVE_DECL_STRTOIMAX=1;
18392 HAVE_DECL_STRTOUMAX=1;
18393 INT32_MAX_LT_INTMAX_MAX=1;
18394 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18395 PRI_MACROS_BROKEN=0;
18396 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18397 UINT32_MAX_LT_UINTMAX_MAX=1;
18398 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18414 if test $gl_cv_have_include_next = yes; then
18415 gl_cv_next_inttypes_h='<'inttypes.h'>'
18416 else
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18418 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18419 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18420 $as_echo_n "(cached) " >&6
18421 else
18423 if test $ac_cv_header_inttypes_h = yes; then
18426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18427 /* end confdefs.h. */
18428 #include <inttypes.h>
18430 _ACEOF
18431 case "$host_os" in
18432 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18433 *) gl_absname_cpp="$ac_cpp" ;;
18434 esac
18436 case "$host_os" in
18437 mingw*)
18438 gl_dirsep_regex='[/\\]'
18441 gl_dirsep_regex='/'
18443 esac
18445 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'inttypes.h#{
18446 s#.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*#\1#
18447 s#^/[^/]#//&#
18451 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18452 sed -n "$gl_absolute_header_sed"`'"'
18453 else
18454 gl_cv_next_inttypes_h='<'inttypes.h'>'
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18460 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18462 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18464 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18465 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18466 gl_next_as_first_directive='<'inttypes.h'>'
18467 else
18468 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18469 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18471 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18480 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18487 GNULIB_FCHMODAT=0;
18488 GNULIB_FSTATAT=0;
18489 GNULIB_FUTIMENS=0;
18490 GNULIB_LCHMOD=0;
18491 GNULIB_LSTAT=0;
18492 GNULIB_MKDIRAT=0;
18493 GNULIB_MKFIFO=0;
18494 GNULIB_MKFIFOAT=0;
18495 GNULIB_MKNOD=0;
18496 GNULIB_MKNODAT=0;
18497 GNULIB_STAT=0;
18498 GNULIB_UTIMENSAT=0;
18499 HAVE_FCHMODAT=1;
18500 HAVE_FSTATAT=1;
18501 HAVE_FUTIMENS=1;
18502 HAVE_LCHMOD=1;
18503 HAVE_LSTAT=1;
18504 HAVE_MKDIRAT=1;
18505 HAVE_MKFIFO=1;
18506 HAVE_MKFIFOAT=1;
18507 HAVE_MKNOD=1;
18508 HAVE_MKNODAT=1;
18509 HAVE_UTIMENSAT=1;
18510 REPLACE_FSTAT=0;
18511 REPLACE_FSTATAT=0;
18512 REPLACE_FUTIMENS=0;
18513 REPLACE_LSTAT=0;
18514 REPLACE_MKDIR=0;
18515 REPLACE_MKFIFO=0;
18516 REPLACE_MKNOD=0;
18517 REPLACE_STAT=0;
18518 REPLACE_UTIMENSAT=0;
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18524 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18525 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18526 $as_echo_n "(cached) " >&6
18527 else
18528 rm -f conftest.sym conftest.file
18529 echo >conftest.file
18530 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18531 if test "$cross_compiling" = yes; then :
18532 # When cross-compiling, be pessimistic so we will end up using the
18533 # replacement version of lstat that checks for trailing slashes and
18534 # calls lstat a second time when necessary.
18535 gl_cv_func_lstat_dereferences_slashed_symlink=no
18537 else
18538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18539 /* end confdefs.h. */
18540 $ac_includes_default
18542 main ()
18544 struct stat sbuf;
18545 /* Linux will dereference the symlink and fail, as required by
18546 POSIX. That is better in the sense that it means we will not
18547 have to compile and use the lstat wrapper. */
18548 return lstat ("conftest.sym/", &sbuf) == 0;
18551 return 0;
18553 _ACEOF
18554 if ac_fn_c_try_run "$LINENO"; then :
18555 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18556 else
18557 gl_cv_func_lstat_dereferences_slashed_symlink=no
18559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18560 conftest.$ac_objext conftest.beam conftest.$ac_ext
18563 else
18564 # If the 'ln -s' command failed, then we probably don't even
18565 # have an lstat function.
18566 gl_cv_func_lstat_dereferences_slashed_symlink=no
18568 rm -f conftest.sym conftest.file
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18572 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18573 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
18575 cat >>confdefs.h <<_ACEOF
18576 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18577 _ACEOF
18581 GNULIB_MKTIME=0;
18582 GNULIB_NANOSLEEP=0;
18583 GNULIB_STRPTIME=0;
18584 GNULIB_TIMEGM=0;
18585 GNULIB_TIME_R=0;
18586 HAVE_DECL_LOCALTIME_R=1;
18587 HAVE_NANOSLEEP=1;
18588 HAVE_STRPTIME=1;
18589 HAVE_TIMEGM=1;
18590 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
18591 REPLACE_MKTIME=GNULIB_PORTCHECK;
18592 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
18593 REPLACE_TIMEGM=GNULIB_PORTCHECK;
18600 <<<<<<< TREE
18601 =======
18602 GNULIB_PTHREAD_SIGMASK=0;
18603 GNULIB_SIGNAL_H_SIGPIPE=0;
18604 GNULIB_SIGPROCMASK=0;
18605 GNULIB_SIGACTION=0;
18606 HAVE_POSIX_SIGNALBLOCKING=1;
18607 HAVE_PTHREAD_SIGMASK=1;
18608 HAVE_SIGSET_T=1;
18609 HAVE_SIGINFO_T=1;
18610 HAVE_SIGACTION=1;
18611 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
18613 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
18615 HAVE_SIGHANDLER_T=1;
18616 REPLACE_PTHREAD_SIGMASK=0;
18621 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18622 #include <signal.h>
18623 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18624 #include <sys/types.h>
18627 if test "x$ac_cv_type_sigset_t" = x""yes; then :
18629 cat >>confdefs.h <<_ACEOF
18630 #define HAVE_SIGSET_T 1
18631 _ACEOF
18633 gl_cv_type_sigset_t=yes
18634 else
18635 gl_cv_type_sigset_t=no
18638 if test $gl_cv_type_sigset_t != yes; then
18639 HAVE_SIGSET_T=0
18644 >>>>>>> MERGE-SOURCE
18647 if test $ac_cv_header_sys_socket_h = no; then
18648 for ac_header in ws2tcpip.h
18649 do :
18650 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18651 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
18652 cat >>confdefs.h <<_ACEOF
18653 #define HAVE_WS2TCPIP_H 1
18654 _ACEOF
18658 done
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18663 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18664 if test "${ac_cv_header_stdbool_h+set}" = set; then :
18665 $as_echo_n "(cached) " >&6
18666 else
18667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18668 /* end confdefs.h. */
18670 #include <stdbool.h>
18671 #ifndef bool
18672 "error: bool is not defined"
18673 #endif
18674 #ifndef false
18675 "error: false is not defined"
18676 #endif
18677 #if false
18678 "error: false is not 0"
18679 #endif
18680 #ifndef true
18681 "error: true is not defined"
18682 #endif
18683 #if true != 1
18684 "error: true is not 1"
18685 #endif
18686 #ifndef __bool_true_false_are_defined
18687 "error: __bool_true_false_are_defined is not defined"
18688 #endif
18690 struct s { _Bool s: 1; _Bool t; } s;
18692 char a[true == 1 ? 1 : -1];
18693 char b[false == 0 ? 1 : -1];
18694 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18695 char d[(bool) 0.5 == true ? 1 : -1];
18696 /* See body of main program for 'e'. */
18697 char f[(_Bool) 0.0 == false ? 1 : -1];
18698 char g[true];
18699 char h[sizeof (_Bool)];
18700 char i[sizeof s.t];
18701 enum { j = false, k = true, l = false * true, m = true * 256 };
18702 /* The following fails for
18703 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18704 _Bool n[m];
18705 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18706 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18707 /* Catch a bug in an HP-UX C compiler. See
18708 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18709 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18711 _Bool q = true;
18712 _Bool *pq = &q;
18715 main ()
18718 bool e = &s;
18719 *pq |= q;
18720 *pq |= ! q;
18721 /* Refer to every declared value, to avoid compiler optimizations. */
18722 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18723 + !m + !n + !o + !p + !q + !pq);
18726 return 0;
18728 _ACEOF
18729 if ac_fn_c_try_compile "$LINENO"; then :
18730 ac_cv_header_stdbool_h=yes
18731 else
18732 ac_cv_header_stdbool_h=no
18734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18737 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18738 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18739 if test "x$ac_cv_type__Bool" = x""yes; then :
18741 cat >>confdefs.h <<_ACEOF
18742 #define HAVE__BOOL 1
18743 _ACEOF
18750 REPLACE_NULL=0;
18751 HAVE_WCHAR_T=1;
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18755 $as_echo_n "checking for wchar_t... " >&6; }
18756 if test "${gt_cv_c_wchar_t+set}" = set; then :
18757 $as_echo_n "(cached) " >&6
18758 else
18759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18760 /* end confdefs.h. */
18761 #include <stddef.h>
18762 wchar_t foo = (wchar_t)'\0';
18764 main ()
18768 return 0;
18770 _ACEOF
18771 if ac_fn_c_try_compile "$LINENO"; then :
18772 gt_cv_c_wchar_t=yes
18773 else
18774 gt_cv_c_wchar_t=no
18776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18779 $as_echo "$gt_cv_c_wchar_t" >&6; }
18780 if test $gt_cv_c_wchar_t = yes; then
18782 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18787 GNULIB_DPRINTF=0;
18788 GNULIB_FCLOSE=0;
18789 GNULIB_FFLUSH=0;
18790 GNULIB_FGETC=0;
18791 GNULIB_FGETS=0;
18792 GNULIB_FOPEN=0;
18793 GNULIB_FPRINTF=0;
18794 GNULIB_FPRINTF_POSIX=0;
18795 GNULIB_FPURGE=0;
18796 GNULIB_FPUTC=0;
18797 GNULIB_FPUTS=0;
18798 GNULIB_FREAD=0;
18799 GNULIB_FREOPEN=0;
18800 GNULIB_FSCANF=0;
18801 GNULIB_FSEEK=0;
18802 GNULIB_FSEEKO=0;
18803 GNULIB_FTELL=0;
18804 GNULIB_FTELLO=0;
18805 GNULIB_FWRITE=0;
18806 GNULIB_GETC=0;
18807 GNULIB_GETCHAR=0;
18808 GNULIB_GETDELIM=0;
18809 GNULIB_GETLINE=0;
18810 GNULIB_GETS=0;
18811 GNULIB_OBSTACK_PRINTF=0;
18812 GNULIB_OBSTACK_PRINTF_POSIX=0;
18813 GNULIB_PERROR=0;
18814 GNULIB_POPEN=0;
18815 GNULIB_PRINTF=0;
18816 GNULIB_PRINTF_POSIX=0;
18817 GNULIB_PUTC=0;
18818 GNULIB_PUTCHAR=0;
18819 GNULIB_PUTS=0;
18820 GNULIB_REMOVE=0;
18821 GNULIB_RENAME=0;
18822 GNULIB_RENAMEAT=0;
18823 GNULIB_SCANF=0;
18824 GNULIB_SNPRINTF=0;
18825 GNULIB_SPRINTF_POSIX=0;
18826 GNULIB_STDIO_H_NONBLOCKING=0;
18827 GNULIB_STDIO_H_SIGPIPE=0;
18828 GNULIB_TMPFILE=0;
18829 GNULIB_VASPRINTF=0;
18830 GNULIB_VFSCANF=0;
18831 GNULIB_VSCANF=0;
18832 GNULIB_VDPRINTF=0;
18833 GNULIB_VFPRINTF=0;
18834 GNULIB_VFPRINTF_POSIX=0;
18835 GNULIB_VPRINTF=0;
18836 GNULIB_VPRINTF_POSIX=0;
18837 GNULIB_VSNPRINTF=0;
18838 GNULIB_VSPRINTF_POSIX=0;
18839 HAVE_DECL_FPURGE=1;
18840 HAVE_DECL_FSEEKO=1;
18841 HAVE_DECL_FTELLO=1;
18842 HAVE_DECL_GETDELIM=1;
18843 HAVE_DECL_GETLINE=1;
18844 HAVE_DECL_OBSTACK_PRINTF=1;
18845 HAVE_DECL_SNPRINTF=1;
18846 HAVE_DECL_VSNPRINTF=1;
18847 HAVE_DPRINTF=1;
18848 HAVE_FSEEKO=1;
18849 HAVE_FTELLO=1;
18850 HAVE_RENAMEAT=1;
18851 HAVE_VASPRINTF=1;
18852 HAVE_VDPRINTF=1;
18853 REPLACE_DPRINTF=0;
18854 REPLACE_FCLOSE=0;
18855 REPLACE_FFLUSH=0;
18856 REPLACE_FOPEN=0;
18857 REPLACE_FPRINTF=0;
18858 REPLACE_FPURGE=0;
18859 REPLACE_FREOPEN=0;
18860 REPLACE_FSEEK=0;
18861 REPLACE_FSEEKO=0;
18862 REPLACE_FTELL=0;
18863 REPLACE_FTELLO=0;
18864 REPLACE_GETDELIM=0;
18865 REPLACE_GETLINE=0;
18866 REPLACE_OBSTACK_PRINTF=0;
18867 REPLACE_PERROR=0;
18868 REPLACE_POPEN=0;
18869 REPLACE_PRINTF=0;
18870 REPLACE_REMOVE=0;
18871 REPLACE_RENAME=0;
18872 REPLACE_RENAMEAT=0;
18873 REPLACE_SNPRINTF=0;
18874 REPLACE_SPRINTF=0;
18875 REPLACE_STDIO_READ_FUNCS=0;
18876 REPLACE_STDIO_WRITE_FUNCS=0;
18877 REPLACE_TMPFILE=0;
18878 REPLACE_VASPRINTF=0;
18879 REPLACE_VDPRINTF=0;
18880 REPLACE_VFPRINTF=0;
18881 REPLACE_VPRINTF=0;
18882 REPLACE_VSNPRINTF=0;
18883 REPLACE_VSPRINTF=0;
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18886 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18887 if test "${ac_cv_struct_tm+set}" = set; then :
18888 $as_echo_n "(cached) " >&6
18889 else
18890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18891 /* end confdefs.h. */
18892 #include <sys/types.h>
18893 #include <time.h>
18896 main ()
18898 struct tm tm;
18899 int *p = &tm.tm_sec;
18900 return !p;
18902 return 0;
18904 _ACEOF
18905 if ac_fn_c_try_compile "$LINENO"; then :
18906 ac_cv_struct_tm=time.h
18907 else
18908 ac_cv_struct_tm=sys/time.h
18910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18913 $as_echo "$ac_cv_struct_tm" >&6; }
18914 if test $ac_cv_struct_tm = sys/time.h; then
18916 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18920 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
18921 #include <$ac_cv_struct_tm>
18924 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
18926 cat >>confdefs.h <<_ACEOF
18927 #define HAVE_STRUCT_TM_TM_ZONE 1
18928 _ACEOF
18933 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18935 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
18937 else
18938 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
18940 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
18941 ac_have_decl=1
18942 else
18943 ac_have_decl=0
18946 cat >>confdefs.h <<_ACEOF
18947 #define HAVE_DECL_TZNAME $ac_have_decl
18948 _ACEOF
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
18951 $as_echo_n "checking for tzname... " >&6; }
18952 if test "${ac_cv_var_tzname+set}" = set; then :
18953 $as_echo_n "(cached) " >&6
18954 else
18955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18956 /* end confdefs.h. */
18957 #include <time.h>
18958 #if !HAVE_DECL_TZNAME
18959 extern char *tzname[];
18960 #endif
18963 main ()
18965 return tzname[0][0];
18967 return 0;
18969 _ACEOF
18970 if ac_fn_c_try_link "$LINENO"; then :
18971 ac_cv_var_tzname=yes
18972 else
18973 ac_cv_var_tzname=no
18975 rm -f core conftest.err conftest.$ac_objext \
18976 conftest$ac_exeext conftest.$ac_ext
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
18979 $as_echo "$ac_cv_var_tzname" >&6; }
18980 if test $ac_cv_var_tzname = yes; then
18982 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
18988 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18990 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
18992 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18999 <<<<<<< TREE
19000 =======
19003 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19004 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
19005 ac_have_decl=1
19006 else
19007 ac_have_decl=0
19010 cat >>confdefs.h <<_ACEOF
19011 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19012 _ACEOF
19016 >>>>>>> MERGE-SOURCE
19017 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19018 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
19019 ac_have_decl=1
19020 else
19021 ac_have_decl=0
19024 cat >>confdefs.h <<_ACEOF
19025 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19026 _ACEOF
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19031 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19032 if test "${ac_cv_header_stat_broken+set}" = set; then :
19033 $as_echo_n "(cached) " >&6
19034 else
19035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19036 /* end confdefs.h. */
19037 #include <sys/types.h>
19038 #include <sys/stat.h>
19040 #if defined S_ISBLK && defined S_IFDIR
19041 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19042 #endif
19044 #if defined S_ISBLK && defined S_IFCHR
19045 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19046 #endif
19048 #if defined S_ISLNK && defined S_IFREG
19049 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19050 #endif
19052 #if defined S_ISSOCK && defined S_IFREG
19053 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19054 #endif
19056 _ACEOF
19057 if ac_fn_c_try_compile "$LINENO"; then :
19058 ac_cv_header_stat_broken=no
19059 else
19060 ac_cv_header_stat_broken=yes
19062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19065 $as_echo "$ac_cv_header_stat_broken" >&6; }
19066 if test $ac_cv_header_stat_broken = yes; then
19068 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19075 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19076 if test "${ac_cv_c_restrict+set}" = set; then :
19077 $as_echo_n "(cached) " >&6
19078 else
19079 ac_cv_c_restrict=no
19080 # The order here caters to the fact that C++ does not require restrict.
19081 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19083 /* end confdefs.h. */
19084 typedef int * int_ptr;
19085 int foo (int_ptr $ac_kw ip) {
19086 return ip[0];
19089 main ()
19091 int s[1];
19092 int * $ac_kw t = s;
19093 t[0] = 0;
19094 return foo(t)
19096 return 0;
19098 _ACEOF
19099 if ac_fn_c_try_compile "$LINENO"; then :
19100 ac_cv_c_restrict=$ac_kw
19102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19103 test "$ac_cv_c_restrict" != no && break
19104 done
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19108 $as_echo "$ac_cv_c_restrict" >&6; }
19110 case $ac_cv_c_restrict in
19111 restrict) ;;
19112 no) $as_echo "#define restrict /**/" >>confdefs.h
19114 *) cat >>confdefs.h <<_ACEOF
19115 #define restrict $ac_cv_c_restrict
19116 _ACEOF
19118 esac
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19125 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19126 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19127 $as_echo_n "(cached) " >&6
19128 else
19129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19130 /* end confdefs.h. */
19131 #include <time.h>
19134 main ()
19136 static struct timespec x; x.tv_sec = x.tv_nsec;
19138 return 0;
19140 _ACEOF
19141 if ac_fn_c_try_compile "$LINENO"; then :
19142 gl_cv_sys_struct_timespec_in_time_h=yes
19143 else
19144 gl_cv_sys_struct_timespec_in_time_h=no
19146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19149 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19151 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19152 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19153 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19154 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19155 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19156 else
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19158 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19159 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19160 $as_echo_n "(cached) " >&6
19161 else
19162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19163 /* end confdefs.h. */
19164 #include <sys/time.h>
19167 main ()
19169 static struct timespec x; x.tv_sec = x.tv_nsec;
19171 return 0;
19173 _ACEOF
19174 if ac_fn_c_try_compile "$LINENO"; then :
19175 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19176 else
19177 gl_cv_sys_struct_timespec_in_sys_time_h=no
19179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19182 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19183 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19184 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19185 else
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19187 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19188 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19189 $as_echo_n "(cached) " >&6
19190 else
19191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19192 /* end confdefs.h. */
19193 #include <pthread.h>
19196 main ()
19198 static struct timespec x; x.tv_sec = x.tv_nsec;
19200 return 0;
19202 _ACEOF
19203 if ac_fn_c_try_compile "$LINENO"; then :
19204 gl_cv_sys_struct_timespec_in_pthread_h=yes
19205 else
19206 gl_cv_sys_struct_timespec_in_pthread_h=no
19208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19211 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19212 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19213 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19232 if test $gl_cv_have_include_next = yes; then
19233 gl_cv_next_time_h='<'time.h'>'
19234 else
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19236 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19237 if test "${gl_cv_next_time_h+set}" = set; then :
19238 $as_echo_n "(cached) " >&6
19239 else
19241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19242 /* end confdefs.h. */
19243 #include <time.h>
19245 _ACEOF
19246 case "$host_os" in
19247 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19248 *) gl_absname_cpp="$ac_cpp" ;;
19249 esac
19251 case "$host_os" in
19252 mingw*)
19253 gl_dirsep_regex='[/\\]'
19256 gl_dirsep_regex='/'
19258 esac
19260 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'time.h#{
19261 s#.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*#\1#
19262 s#^/[^/]#//&#
19266 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19267 sed -n "$gl_absolute_header_sed"`'"'
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19272 $as_echo "$gl_cv_next_time_h" >&6; }
19274 NEXT_TIME_H=$gl_cv_next_time_h
19276 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19277 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19278 gl_next_as_first_directive='<'time.h'>'
19279 else
19280 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19281 gl_next_as_first_directive=$gl_cv_next_time_h
19283 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19292 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19293 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
19294 ac_have_decl=1
19295 else
19296 ac_have_decl=0
19299 cat >>confdefs.h <<_ACEOF
19300 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19301 _ACEOF
19306 if false; then
19307 GL_COND_LIBTOOL_TRUE=
19308 GL_COND_LIBTOOL_FALSE='#'
19309 else
19310 GL_COND_LIBTOOL_TRUE='#'
19311 GL_COND_LIBTOOL_FALSE=
19314 gl_cond_libtool=false
19315 gl_libdeps=
19316 gl_ltlibdeps=
19317 gl_m4_base='m4'
19327 gl_source_base='lib'
19330 if test $ac_cv_func_alloca_works = no; then
19334 # Define an additional variable used in the Makefile substitution.
19335 if test $ac_cv_working_alloca_h = yes; then
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19337 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19338 if test "${gl_cv_rpl_alloca+set}" = set; then :
19339 $as_echo_n "(cached) " >&6
19340 else
19342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19343 /* end confdefs.h. */
19345 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19346 Need own alloca
19347 #endif
19349 _ACEOF
19350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19351 $EGREP "Need own alloca" >/dev/null 2>&1; then :
19352 gl_cv_rpl_alloca=yes
19353 else
19354 gl_cv_rpl_alloca=no
19356 rm -f conftest*
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19361 $as_echo "$gl_cv_rpl_alloca" >&6; }
19362 if test $gl_cv_rpl_alloca = yes; then
19364 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19366 ALLOCA_H=alloca.h
19367 else
19368 ALLOCA_H=
19370 else
19371 ALLOCA_H=alloca.h
19374 if test -n "$ALLOCA_H"; then
19375 GL_GENERATE_ALLOCA_H_TRUE=
19376 GL_GENERATE_ALLOCA_H_FALSE='#'
19377 else
19378 GL_GENERATE_ALLOCA_H_TRUE='#'
19379 GL_GENERATE_ALLOCA_H_FALSE=
19408 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19411 if test $HAVE_DUP2 = 1; then
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19413 $as_echo_n "checking whether dup2 works... " >&6; }
19414 if test "${gl_cv_func_dup2_works+set}" = set; then :
19415 $as_echo_n "(cached) " >&6
19416 else
19417 if test "$cross_compiling" = yes; then :
19418 case "$host_os" in
19419 mingw*) # on this platform, dup2 always returns 0 for success
19420 gl_cv_func_dup2_works=no;;
19421 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
19422 gl_cv_func_dup2_works=no;;
19423 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19424 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19425 gl_cv_func_dup2_works=no;;
19426 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19427 gl_cv_func_dup2_works=no;;
19428 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19429 gl_cv_func_dup2_works=no;;
19430 *) gl_cv_func_dup2_works=yes;;
19431 esac
19432 else
19433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19434 /* end confdefs.h. */
19436 #include <unistd.h>
19437 #include <fcntl.h>
19438 #include <errno.h>
19440 main ()
19442 int result = 0;
19443 #ifdef FD_CLOEXEC
19444 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19445 result |= 1;
19446 #endif
19447 if (dup2 (1, 1) == 0)
19448 result |= 2;
19449 #ifdef FD_CLOEXEC
19450 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19451 result |= 4;
19452 #endif
19453 close (0);
19454 if (dup2 (0, 0) != -1)
19455 result |= 8;
19456 /* Many gnulib modules require POSIX conformance of EBADF. */
19457 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19458 result |= 16;
19459 return result;
19462 return 0;
19465 _ACEOF
19466 if ac_fn_c_try_run "$LINENO"; then :
19467 gl_cv_func_dup2_works=yes
19468 else
19469 gl_cv_func_dup2_works=no
19471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19472 conftest.$ac_objext conftest.beam conftest.$ac_ext
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19478 $as_echo "$gl_cv_func_dup2_works" >&6; }
19479 if test "$gl_cv_func_dup2_works" = no; then
19480 REPLACE_DUP2=1
19485 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
19494 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
19502 GNULIB_DUP2=1
19514 # Persuade glibc <stdlib.h> to declare getloadavg().
19517 gl_save_LIBS=$LIBS
19519 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19520 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19521 HAVE_GETLOADAVG=1
19522 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19523 if test "x$ac_cv_func_getloadavg" = x""yes; then :
19525 else
19526 gl_func_getloadavg_done=no
19528 # Some systems with -lutil have (and need) -lkvm as well, some do not.
19529 # On Solaris, -lkvm requires nlist from -lelf, so check that first
19530 # to get the right answer into the cache.
19531 # For kstat on solaris, we need to test for libelf and libkvm to force the
19532 # definition of SVR4 below.
19533 if test $gl_func_getloadavg_done = no; then
19534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
19535 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
19536 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
19537 $as_echo_n "(cached) " >&6
19538 else
19539 ac_check_lib_save_LIBS=$LIBS
19540 LIBS="-lelf $LIBS"
19541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19542 /* end confdefs.h. */
19544 /* Override any GCC internal prototype to avoid an error.
19545 Use char because int might match the return type of a GCC
19546 builtin and then its argument prototype would still apply. */
19547 #ifdef __cplusplus
19548 extern "C"
19549 #endif
19550 char elf_begin ();
19552 main ()
19554 return elf_begin ();
19556 return 0;
19558 _ACEOF
19559 if ac_fn_c_try_link "$LINENO"; then :
19560 ac_cv_lib_elf_elf_begin=yes
19561 else
19562 ac_cv_lib_elf_elf_begin=no
19564 rm -f core conftest.err conftest.$ac_objext \
19565 conftest$ac_exeext conftest.$ac_ext
19566 LIBS=$ac_check_lib_save_LIBS
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
19569 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19570 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
19571 LIBS="-lelf $LIBS"
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
19575 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
19576 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
19577 $as_echo_n "(cached) " >&6
19578 else
19579 ac_check_lib_save_LIBS=$LIBS
19580 LIBS="-lkvm $LIBS"
19581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19582 /* end confdefs.h. */
19584 /* Override any GCC internal prototype to avoid an error.
19585 Use char because int might match the return type of a GCC
19586 builtin and then its argument prototype would still apply. */
19587 #ifdef __cplusplus
19588 extern "C"
19589 #endif
19590 char kvm_open ();
19592 main ()
19594 return kvm_open ();
19596 return 0;
19598 _ACEOF
19599 if ac_fn_c_try_link "$LINENO"; then :
19600 ac_cv_lib_kvm_kvm_open=yes
19601 else
19602 ac_cv_lib_kvm_kvm_open=no
19604 rm -f core conftest.err conftest.$ac_objext \
19605 conftest$ac_exeext conftest.$ac_ext
19606 LIBS=$ac_check_lib_save_LIBS
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
19609 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
19610 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
19611 LIBS="-lkvm $LIBS"
19614 # Check for the 4.4BSD definition of getloadavg.
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
19616 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
19617 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
19618 $as_echo_n "(cached) " >&6
19619 else
19620 ac_check_lib_save_LIBS=$LIBS
19621 LIBS="-lutil $LIBS"
19622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19623 /* end confdefs.h. */
19625 /* Override any GCC internal prototype to avoid an error.
19626 Use char because int might match the return type of a GCC
19627 builtin and then its argument prototype would still apply. */
19628 #ifdef __cplusplus
19629 extern "C"
19630 #endif
19631 char getloadavg ();
19633 main ()
19635 return getloadavg ();
19637 return 0;
19639 _ACEOF
19640 if ac_fn_c_try_link "$LINENO"; then :
19641 ac_cv_lib_util_getloadavg=yes
19642 else
19643 ac_cv_lib_util_getloadavg=no
19645 rm -f core conftest.err conftest.$ac_objext \
19646 conftest$ac_exeext conftest.$ac_ext
19647 LIBS=$ac_check_lib_save_LIBS
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
19650 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19651 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
19652 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
19657 if test $gl_func_getloadavg_done = no; then
19658 # There is a commonly available library for RS/6000 AIX.
19659 # Since it is not a standard part of AIX, it might be installed locally.
19660 gl_getloadavg_LIBS=$LIBS
19661 LIBS="-L/usr/local/lib $LIBS"
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
19663 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19664 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
19665 $as_echo_n "(cached) " >&6
19666 else
19667 ac_check_lib_save_LIBS=$LIBS
19668 LIBS="-lgetloadavg $LIBS"
19669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19670 /* end confdefs.h. */
19672 /* Override any GCC internal prototype to avoid an error.
19673 Use char because int might match the return type of a GCC
19674 builtin and then its argument prototype would still apply. */
19675 #ifdef __cplusplus
19676 extern "C"
19677 #endif
19678 char getloadavg ();
19680 main ()
19682 return getloadavg ();
19684 return 0;
19686 _ACEOF
19687 if ac_fn_c_try_link "$LINENO"; then :
19688 ac_cv_lib_getloadavg_getloadavg=yes
19689 else
19690 ac_cv_lib_getloadavg_getloadavg=no
19692 rm -f core conftest.err conftest.$ac_objext \
19693 conftest$ac_exeext conftest.$ac_ext
19694 LIBS=$ac_check_lib_save_LIBS
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19697 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19698 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
19699 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
19700 else
19701 LIBS=$gl_getloadavg_LIBS
19706 # Set up the replacement function if necessary.
19707 if test $gl_func_getloadavg_done = no; then
19708 HAVE_GETLOADAVG=0
19710 # Solaris has libkstat which does not require root.
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
19712 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
19713 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
19714 $as_echo_n "(cached) " >&6
19715 else
19716 ac_check_lib_save_LIBS=$LIBS
19717 LIBS="-lkstat $LIBS"
19718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19719 /* end confdefs.h. */
19721 /* Override any GCC internal prototype to avoid an error.
19722 Use char because int might match the return type of a GCC
19723 builtin and then its argument prototype would still apply. */
19724 #ifdef __cplusplus
19725 extern "C"
19726 #endif
19727 char kstat_open ();
19729 main ()
19731 return kstat_open ();
19733 return 0;
19735 _ACEOF
19736 if ac_fn_c_try_link "$LINENO"; then :
19737 ac_cv_lib_kstat_kstat_open=yes
19738 else
19739 ac_cv_lib_kstat_kstat_open=no
19741 rm -f core conftest.err conftest.$ac_objext \
19742 conftest$ac_exeext conftest.$ac_ext
19743 LIBS=$ac_check_lib_save_LIBS
19745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19746 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19747 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
19748 cat >>confdefs.h <<_ACEOF
19749 #define HAVE_LIBKSTAT 1
19750 _ACEOF
19752 LIBS="-lkstat $LIBS"
19756 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
19758 # AIX has libperfstat which does not require root
19759 if test $gl_func_getloadavg_done = no; then
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
19761 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
19762 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
19763 $as_echo_n "(cached) " >&6
19764 else
19765 ac_check_lib_save_LIBS=$LIBS
19766 LIBS="-lperfstat $LIBS"
19767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19768 /* end confdefs.h. */
19770 /* Override any GCC internal prototype to avoid an error.
19771 Use char because int might match the return type of a GCC
19772 builtin and then its argument prototype would still apply. */
19773 #ifdef __cplusplus
19774 extern "C"
19775 #endif
19776 char perfstat_cpu_total ();
19778 main ()
19780 return perfstat_cpu_total ();
19782 return 0;
19784 _ACEOF
19785 if ac_fn_c_try_link "$LINENO"; then :
19786 ac_cv_lib_perfstat_perfstat_cpu_total=yes
19787 else
19788 ac_cv_lib_perfstat_perfstat_cpu_total=no
19790 rm -f core conftest.err conftest.$ac_objext \
19791 conftest$ac_exeext conftest.$ac_ext
19792 LIBS=$ac_check_lib_save_LIBS
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
19795 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
19796 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
19797 cat >>confdefs.h <<_ACEOF
19798 #define HAVE_LIBPERFSTAT 1
19799 _ACEOF
19801 LIBS="-lperfstat $LIBS"
19805 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
19808 if test $gl_func_getloadavg_done = no; then
19809 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
19810 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
19811 gl_func_getloadavg_done=yes
19813 $as_echo "#define DGUX 1" >>confdefs.h
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19816 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19817 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
19818 $as_echo_n "(cached) " >&6
19819 else
19820 ac_check_lib_save_LIBS=$LIBS
19821 LIBS="-ldgc $LIBS"
19822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19823 /* end confdefs.h. */
19825 /* Override any GCC internal prototype to avoid an error.
19826 Use char because int might match the return type of a GCC
19827 builtin and then its argument prototype would still apply. */
19828 #ifdef __cplusplus
19829 extern "C"
19830 #endif
19831 char dg_sys_info ();
19833 main ()
19835 return dg_sys_info ();
19837 return 0;
19839 _ACEOF
19840 if ac_fn_c_try_link "$LINENO"; then :
19841 ac_cv_lib_dgc_dg_sys_info=yes
19842 else
19843 ac_cv_lib_dgc_dg_sys_info=no
19845 rm -f core conftest.err conftest.$ac_objext \
19846 conftest$ac_exeext conftest.$ac_ext
19847 LIBS=$ac_check_lib_save_LIBS
19849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19850 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19851 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
19852 cat >>confdefs.h <<_ACEOF
19853 #define HAVE_LIBDGC 1
19854 _ACEOF
19856 LIBS="-ldgc $LIBS"
19868 if test "x$gl_save_LIBS" = x; then
19869 GETLOADAVG_LIBS=$LIBS
19870 else
19871 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
19873 LIBS=$gl_save_LIBS
19876 # Test whether the system declares getloadavg. Solaris has the function
19877 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
19878 for ac_header in sys/loadavg.h
19879 do :
19880 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19881 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
19882 cat >>confdefs.h <<_ACEOF
19883 #define HAVE_SYS_LOADAVG_H 1
19884 _ACEOF
19888 done
19890 if test $ac_cv_header_sys_loadavg_h = yes; then
19891 HAVE_SYS_LOADAVG_H=1
19892 else
19893 HAVE_SYS_LOADAVG_H=0
19895 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
19896 # include <sys/loadavg.h>
19897 #endif
19898 #include <stdlib.h>
19900 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
19902 else
19903 HAVE_DECL_GETLOADAVG=0
19907 if test $HAVE_GETLOADAVG = 0; then
19916 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
19919 # Figure out what our getloadavg.c needs.
19921 # On HPUX9, an unprivileged user can get load averages this way.
19922 if test $gl_func_getloadavg_done = no; then
19923 for ac_func in pstat_getdynamic
19924 do :
19925 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19926 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
19927 cat >>confdefs.h <<_ACEOF
19928 #define HAVE_PSTAT_GETDYNAMIC 1
19929 _ACEOF
19930 gl_func_getloadavg_done=yes
19932 done
19936 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19937 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19938 # Irix 4.0.5F has the header but not the library.
19939 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
19940 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19941 gl_func_getloadavg_done=yes
19943 $as_echo "#define SVR4 1" >>confdefs.h
19947 if test $gl_func_getloadavg_done = no; then
19948 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19949 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
19950 gl_func_getloadavg_done=yes
19952 $as_echo "#define UMAX 1" >>confdefs.h
19955 $as_echo "#define UMAX4_3 1" >>confdefs.h
19962 if test $gl_func_getloadavg_done = no; then
19963 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19964 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
19965 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
19972 if test $gl_func_getloadavg_done = no; then
19973 for ac_header in mach/mach.h
19974 do :
19975 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19976 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
19977 cat >>confdefs.h <<_ACEOF
19978 #define HAVE_MACH_MACH_H 1
19979 _ACEOF
19983 done
19987 for ac_header in nlist.h
19988 do :
19989 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19990 if test "x$ac_cv_header_nlist_h" = x""yes; then :
19991 cat >>confdefs.h <<_ACEOF
19992 #define HAVE_NLIST_H 1
19993 _ACEOF
19994 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19996 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
19998 cat >>confdefs.h <<_ACEOF
19999 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20000 _ACEOF
20005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20006 /* end confdefs.h. */
20007 #include <nlist.h>
20009 main ()
20011 struct nlist x;
20012 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20013 x.n_un.n_name = "";
20014 #else
20015 x.n_name = "";
20016 #endif
20018 return 0;
20020 _ACEOF
20021 if ac_fn_c_try_link "$LINENO"; then :
20023 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20026 rm -f core conftest.err conftest.$ac_objext \
20027 conftest$ac_exeext conftest.$ac_ext
20031 done
20039 GNULIB_GETLOADAVG=1
20050 if test $REPLACE_GETOPT = 1; then
20059 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20069 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20080 REPLACE_GETOPT=0
20083 if test -n "$gl_replace_getopt"; then :
20085 REPLACE_GETOPT=1
20090 if test $REPLACE_GETOPT = 1; then
20092 GETOPT_H=getopt.h
20094 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20098 GNULIB_UNISTD_H_GETOPT=1
20101 if test $REPLACE_GETOPT = 1; then
20110 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20120 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20131 if test $ac_cv_func_lstat = yes; then
20133 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
20134 REPLACE_LSTAT=1
20136 else
20137 HAVE_LSTAT=0
20140 if test $REPLACE_LSTAT = 1; then
20149 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
20161 GNULIB_LSTAT=1
20173 if test $APPLE_UNIVERSAL_BUILD = 1; then
20174 # A universal build on Apple MacOS X platforms.
20175 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20176 # But we need a configuration result that is valid in both modes.
20177 gl_cv_func_working_mktime=no
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20180 $as_echo_n "checking for working mktime... " >&6; }
20181 if test "${gl_cv_func_working_mktime+set}" = set; then :
20182 $as_echo_n "(cached) " >&6
20183 else
20184 if test "$cross_compiling" = yes; then :
20185 gl_cv_func_working_mktime=no
20186 else
20187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20188 /* end confdefs.h. */
20189 /* Test program from Paul Eggert and Tony Leneis. */
20190 #include <limits.h>
20191 #include <stdlib.h>
20192 #include <time.h>
20194 #ifdef HAVE_UNISTD_H
20195 # include <unistd.h>
20196 #endif
20198 #ifndef HAVE_ALARM
20199 # define alarm(X) /* empty */
20200 #endif
20202 /* Work around redefinition to rpl_putenv by other config tests. */
20203 #undef putenv
20205 static time_t time_t_max;
20206 static time_t time_t_min;
20208 /* Values we'll use to set the TZ environment variable. */
20209 static char *tz_strings[] = {
20210 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20211 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20213 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20215 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20216 Based on a problem report from Andreas Jaeger. */
20217 static int
20218 spring_forward_gap ()
20220 /* glibc (up to about 1998-10-07) failed this test. */
20221 struct tm tm;
20223 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20224 instead of "TZ=America/Vancouver" in order to detect the bug even
20225 on systems that don't support the Olson extension, or don't have the
20226 full zoneinfo tables installed. */
20227 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20229 tm.tm_year = 98;
20230 tm.tm_mon = 3;
20231 tm.tm_mday = 5;
20232 tm.tm_hour = 2;
20233 tm.tm_min = 0;
20234 tm.tm_sec = 0;
20235 tm.tm_isdst = -1;
20236 return mktime (&tm) != (time_t) -1;
20239 static int
20240 mktime_test1 (time_t now)
20242 struct tm *lt;
20243 return ! (lt = localtime (&now)) || mktime (lt) == now;
20246 static int
20247 mktime_test (time_t now)
20249 return (mktime_test1 (now)
20250 && mktime_test1 ((time_t) (time_t_max - now))
20251 && mktime_test1 ((time_t) (time_t_min + now)));
20254 static int
20255 irix_6_4_bug ()
20257 /* Based on code from Ariel Faigon. */
20258 struct tm tm;
20259 tm.tm_year = 96;
20260 tm.tm_mon = 3;
20261 tm.tm_mday = 0;
20262 tm.tm_hour = 0;
20263 tm.tm_min = 0;
20264 tm.tm_sec = 0;
20265 tm.tm_isdst = -1;
20266 mktime (&tm);
20267 return tm.tm_mon == 2 && tm.tm_mday == 31;
20270 static int
20271 bigtime_test (int j)
20273 struct tm tm;
20274 time_t now;
20275 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20276 now = mktime (&tm);
20277 if (now != (time_t) -1)
20279 struct tm *lt = localtime (&now);
20280 if (! (lt
20281 && lt->tm_year == tm.tm_year
20282 && lt->tm_mon == tm.tm_mon
20283 && lt->tm_mday == tm.tm_mday
20284 && lt->tm_hour == tm.tm_hour
20285 && lt->tm_min == tm.tm_min
20286 && lt->tm_sec == tm.tm_sec
20287 && lt->tm_yday == tm.tm_yday
20288 && lt->tm_wday == tm.tm_wday
20289 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20290 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20291 return 0;
20293 return 1;
20296 static int
20297 year_2050_test ()
20299 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20300 ignoring leap seconds. */
20301 unsigned long int answer = 2527315200UL;
20303 struct tm tm;
20304 time_t t;
20305 tm.tm_year = 2050 - 1900;
20306 tm.tm_mon = 2 - 1;
20307 tm.tm_mday = 1;
20308 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20309 tm.tm_isdst = -1;
20311 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20312 instead of "TZ=America/Vancouver" in order to detect the bug even
20313 on systems that don't support the Olson extension, or don't have the
20314 full zoneinfo tables installed. */
20315 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20317 t = mktime (&tm);
20319 /* Check that the result is either a failure, or close enough
20320 to the correct answer that we can assume the discrepancy is
20321 due to leap seconds. */
20322 return (t == (time_t) -1
20323 || (0 < t && answer - 120 <= t && t <= answer + 120));
20327 main ()
20329 int result = 0;
20330 time_t t, delta;
20331 int i, j;
20332 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20333 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20335 /* This test makes some buggy mktime implementations loop.
20336 Give up after 60 seconds; a mktime slower than that
20337 isn't worth using anyway. */
20338 alarm (60);
20340 time_t_max = (! time_t_signed
20341 ? (time_t) -1
20342 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20343 * 2 + 1));
20344 time_t_min = (! time_t_signed
20345 ? (time_t) 0
20346 : time_t_signed_magnitude
20347 ? ~ (time_t) 0
20348 : ~ time_t_max);
20350 delta = time_t_max / 997; /* a suitable prime number */
20351 for (i = 0; i < N_STRINGS; i++)
20353 if (tz_strings[i])
20354 putenv (tz_strings[i]);
20356 for (t = 0; t <= time_t_max - delta; t += delta)
20357 if (! mktime_test (t))
20358 result |= 1;
20359 if (! (mktime_test ((time_t) 1)
20360 && mktime_test ((time_t) (60 * 60))
20361 && mktime_test ((time_t) (60 * 60 * 24))))
20362 result |= 2;
20364 for (j = 1; ; j <<= 1)
20365 if (! bigtime_test (j))
20366 result |= 4;
20367 else if (INT_MAX / 2 < j)
20368 break;
20369 if (! bigtime_test (INT_MAX))
20370 result |= 8;
20372 if (! irix_6_4_bug ())
20373 result |= 16;
20374 if (! spring_forward_gap ())
20375 result |= 32;
20376 if (! year_2050_test ())
20377 result |= 64;
20378 return result;
20380 _ACEOF
20381 if ac_fn_c_try_run "$LINENO"; then :
20382 gl_cv_func_working_mktime=yes
20383 else
20384 gl_cv_func_working_mktime=no
20386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20387 conftest.$ac_objext conftest.beam conftest.$ac_ext
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20393 $as_echo "$gl_cv_func_working_mktime" >&6; }
20395 if test $gl_cv_func_working_mktime = no; then
20396 REPLACE_MKTIME=1
20397 else
20398 REPLACE_MKTIME=0
20401 if test $REPLACE_MKTIME = 1; then
20410 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
20421 GNULIB_MKTIME=1
20430 <<<<<<< TREE
20431 =======
20432 LIB_PTHREAD_SIGMASK=
20435 if test $ac_cv_func_pthread_sigmask = yes; then
20437 else
20438 HAVE_PTHREAD_SIGMASK=0
20439 REPLACE_PTHREAD_SIGMASK=1
20445 if test $HAVE_PTHREAD_SIGMASK = 1; then
20448 if test -z "$LIB_PTHREAD_SIGMASK"; then
20449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20450 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20451 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20452 $as_echo_n "(cached) " >&6
20453 else
20455 if test "$cross_compiling" = yes; then :
20457 case "$host_os" in
20458 freebsd* | hpux* | solaris | solaris2.[2-9]*)
20459 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
20461 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
20462 esac
20464 else
20465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20466 /* end confdefs.h. */
20468 #include <pthread.h>
20469 #include <signal.h>
20470 #include <stddef.h>
20471 int main ()
20473 sigset_t set;
20474 sigemptyset (&set);
20475 return pthread_sigmask (1729, &set, NULL) != 0;
20477 _ACEOF
20478 if ac_fn_c_try_run "$LINENO"; then :
20479 gl_cv_func_pthread_sigmask_in_libc_works=no
20480 else
20481 gl_cv_func_pthread_sigmask_in_libc_works=yes
20483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20484 conftest.$ac_objext conftest.beam conftest.$ac_ext
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20490 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20491 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20492 *no)
20493 REPLACE_PTHREAD_SIGMASK=1
20495 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20498 esac
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20502 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20503 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20504 $as_echo_n "(cached) " >&6
20505 else
20507 gl_save_LIBS="$LIBS"
20508 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
20509 if test "$cross_compiling" = yes; then :
20510 case "$host_os" in
20511 cygwin*)
20512 gl_cv_func_pthread_sigmask_return_works="guessing no";;
20514 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
20515 esac
20517 else
20518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20519 /* end confdefs.h. */
20521 #include <pthread.h>
20522 #include <signal.h>
20523 #include <stddef.h>
20524 int main ()
20526 sigset_t set;
20527 sigemptyset (&set);
20528 if (pthread_sigmask (1729, &set, NULL) == -1)
20529 return 1;
20530 return 0;
20532 _ACEOF
20533 if ac_fn_c_try_run "$LINENO"; then :
20534 gl_cv_func_pthread_sigmask_return_works=yes
20535 else
20536 gl_cv_func_pthread_sigmask_return_works=no
20538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20539 conftest.$ac_objext conftest.beam conftest.$ac_ext
20542 LIBS="$gl_save_LIBS"
20545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
20546 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
20547 case "$gl_cv_func_pthread_sigmask_return_works" in
20548 *no)
20549 REPLACE_PTHREAD_SIGMASK=1
20551 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
20554 esac
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
20557 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
20558 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
20559 $as_echo_n "(cached) " >&6
20560 else
20562 case "$host_os" in
20563 irix*)
20564 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
20566 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
20567 esac
20568 gl_save_LIBS="$LIBS"
20569 LIBS="$LIBS $LIBMULTITHREAD"
20570 if test "$cross_compiling" = yes; then :
20572 else
20573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20574 /* end confdefs.h. */
20576 #include <pthread.h>
20577 #include <signal.h>
20578 #include <stdio.h>
20579 #include <stdlib.h>
20580 #include <unistd.h>
20581 static volatile int sigint_occurred;
20582 static void
20583 sigint_handler (int sig)
20585 sigint_occurred++;
20587 int main ()
20589 sigset_t set;
20590 int pid = getpid ();
20591 char command[80];
20592 signal (SIGINT, sigint_handler);
20593 sigemptyset (&set);
20594 sigaddset (&set, SIGINT);
20595 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
20596 return 1;
20597 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
20598 if (!(system (command) == 0))
20599 return 2;
20600 sleep (2);
20601 if (!(sigint_occurred == 0))
20602 return 3;
20603 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
20604 return 4;
20605 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
20606 return 5;
20607 return 0;
20609 _ACEOF
20610 if ac_fn_c_try_run "$LINENO"; then :
20612 else
20613 gl_cv_func_pthread_sigmask_unblock_works=no
20615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20616 conftest.$ac_objext conftest.beam conftest.$ac_ext
20619 LIBS="$gl_save_LIBS"
20622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
20623 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
20624 case "$gl_cv_func_pthread_sigmask_unblock_works" in
20625 *no)
20626 REPLACE_PTHREAD_SIGMASK=1
20628 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
20631 esac
20634 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
20643 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
20646 if test $HAVE_PTHREAD_SIGMASK = 1; then
20648 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
20658 GNULIB_PTHREAD_SIGMASK=1
20666 >>>>>>> MERGE-SOURCE
20668 if test $ac_cv_func_readlink = no; then
20669 HAVE_READLINK=0
20670 else
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
20672 $as_echo_n "checking whether readlink signature is correct... " >&6; }
20673 if test "${gl_cv_decl_readlink_works+set}" = set; then :
20674 $as_echo_n "(cached) " >&6
20675 else
20676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20677 /* end confdefs.h. */
20678 #include <unistd.h>
20679 /* Cause compilation failure if original declaration has wrong type. */
20680 ssize_t readlink (const char *, char *, size_t);
20682 main ()
20686 return 0;
20688 _ACEOF
20689 if ac_fn_c_try_compile "$LINENO"; then :
20690 gl_cv_decl_readlink_works=yes
20691 else
20692 gl_cv_decl_readlink_works=no
20694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
20697 $as_echo "$gl_cv_decl_readlink_works" >&6; }
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
20699 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
20700 if test "${gl_cv_func_readlink_works+set}" = set; then :
20701 $as_echo_n "(cached) " >&6
20702 else
20703 # We have readlink, so assume ln -s works.
20704 ln -s conftest.no-such conftest.link
20705 ln -s conftest.link conftest.lnk2
20706 if test "$cross_compiling" = yes; then :
20707 gl_cv_func_readlink_works="guessing no"
20708 else
20709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20710 /* end confdefs.h. */
20711 #include <unistd.h>
20714 main ()
20716 char buf[20];
20717 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
20719 return 0;
20721 _ACEOF
20722 if ac_fn_c_try_run "$LINENO"; then :
20723 gl_cv_func_readlink_works=yes
20724 else
20725 gl_cv_func_readlink_works=no
20727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20728 conftest.$ac_objext conftest.beam conftest.$ac_ext
20731 rm -f conftest.link conftest.lnk2
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
20734 $as_echo "$gl_cv_func_readlink_works" >&6; }
20735 if test "$gl_cv_func_readlink_works" != yes; then
20737 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
20739 REPLACE_READLINK=1
20740 elif test "$gl_cv_decl_readlink_works" != yes; then
20741 REPLACE_READLINK=1
20745 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
20754 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
20765 GNULIB_READLINK=1
20771 <<<<<<< TREE
20772 =======
20784 if test $gl_cv_have_include_next = yes; then
20785 gl_cv_next_signal_h='<'signal.h'>'
20786 else
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
20788 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
20789 if test "${gl_cv_next_signal_h+set}" = set; then :
20790 $as_echo_n "(cached) " >&6
20791 else
20793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20794 /* end confdefs.h. */
20795 #include <signal.h>
20797 _ACEOF
20798 case "$host_os" in
20799 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20800 *) gl_absname_cpp="$ac_cpp" ;;
20801 esac
20803 case "$host_os" in
20804 mingw*)
20805 gl_dirsep_regex='[/\\]'
20808 gl_dirsep_regex='/'
20810 esac
20812 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'signal.h#{
20813 s#.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*#\1#
20814 s#^/[^/]#//&#
20818 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20819 sed -n "$gl_absolute_header_sed"`'"'
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
20824 $as_echo "$gl_cv_next_signal_h" >&6; }
20826 NEXT_SIGNAL_H=$gl_cv_next_signal_h
20828 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20829 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20830 gl_next_as_first_directive='<'signal.h'>'
20831 else
20832 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20833 gl_next_as_first_directive=$gl_cv_next_signal_h
20835 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
20841 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20842 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20843 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20844 #include <signal.h>
20847 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
20849 else
20850 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
20859 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20860 #include <signal.h>
20863 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
20865 else
20866 HAVE_SIGHANDLER_T=0
20872 >>>>>>> MERGE-SOURCE
20873 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20874 /* <sys/types.h> is not needed according to POSIX, but the
20875 <sys/socket.h> in i386-unknown-freebsd4.10 and
20876 powerpc-apple-darwin5.5 required it. */
20877 #include <sys/types.h>
20878 #if HAVE_SYS_SOCKET_H
20879 # include <sys/socket.h>
20880 #elif HAVE_WS2TCPIP_H
20881 # include <ws2tcpip.h>
20882 #endif
20885 if test "x$ac_cv_type_socklen_t" = x""yes; then :
20887 else
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20889 $as_echo_n "checking for socklen_t equivalent... " >&6; }
20890 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
20891 $as_echo_n "(cached) " >&6
20892 else
20893 # Systems have either "struct sockaddr *" or
20894 # "void *" as the second argument to getpeername
20895 gl_cv_socklen_t_equiv=
20896 for arg2 in "struct sockaddr" void; do
20897 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
20898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20899 /* end confdefs.h. */
20900 #include <sys/types.h>
20901 #include <sys/socket.h>
20903 int getpeername (int, $arg2 *, $t *);
20905 main ()
20907 $t len;
20908 getpeername (0, 0, &len);
20910 return 0;
20912 _ACEOF
20913 if ac_fn_c_try_compile "$LINENO"; then :
20914 gl_cv_socklen_t_equiv="$t"
20916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20917 test "$gl_cv_socklen_t_equiv" != "" && break
20918 done
20919 test "$gl_cv_socklen_t_equiv" != "" && break
20920 done
20924 if test "$gl_cv_socklen_t_equiv" = ""; then
20925 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20928 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20930 cat >>confdefs.h <<_ACEOF
20931 #define socklen_t $gl_cv_socklen_t_equiv
20932 _ACEOF
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20938 $as_echo_n "checking for ssize_t... " >&6; }
20939 if test "${gt_cv_ssize_t+set}" = set; then :
20940 $as_echo_n "(cached) " >&6
20941 else
20942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20943 /* end confdefs.h. */
20944 #include <sys/types.h>
20946 main ()
20948 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20949 return !x;
20951 return 0;
20953 _ACEOF
20954 if ac_fn_c_try_compile "$LINENO"; then :
20955 gt_cv_ssize_t=yes
20956 else
20957 gt_cv_ssize_t=no
20959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20962 $as_echo "$gt_cv_ssize_t" >&6; }
20963 if test $gt_cv_ssize_t = no; then
20965 $as_echo "#define ssize_t int" >>confdefs.h
20970 STDARG_H=''
20971 NEXT_STDARG_H='<stdarg.h>'
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20973 $as_echo_n "checking for va_copy... " >&6; }
20974 if test "${gl_cv_func_va_copy+set}" = set; then :
20975 $as_echo_n "(cached) " >&6
20976 else
20978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20979 /* end confdefs.h. */
20980 #include <stdarg.h>
20982 main ()
20985 #ifndef va_copy
20986 void (*func) (va_list, va_list) = va_copy;
20987 #endif
20990 return 0;
20992 _ACEOF
20993 if ac_fn_c_try_compile "$LINENO"; then :
20994 gl_cv_func_va_copy=yes
20995 else
20996 gl_cv_func_va_copy=no
20998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
21002 $as_echo "$gl_cv_func_va_copy" >&6; }
21003 if test $gl_cv_func_va_copy = no; then
21004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21005 /* end confdefs.h. */
21006 #if defined _AIX && !defined __GNUC__
21007 AIX vaccine
21008 #endif
21010 _ACEOF
21011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21012 $EGREP "vaccine" >/dev/null 2>&1; then :
21013 gl_aixcc=yes
21014 else
21015 gl_aixcc=no
21017 rm -f conftest*
21019 if test $gl_aixcc = yes; then
21020 STDARG_H=stdarg.h
21029 if test $gl_cv_have_include_next = yes; then
21030 gl_cv_next_stdarg_h='<'stdarg.h'>'
21031 else
21032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
21033 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
21034 if test "${gl_cv_next_stdarg_h+set}" = set; then :
21035 $as_echo_n "(cached) " >&6
21036 else
21038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21039 /* end confdefs.h. */
21040 #include <stdarg.h>
21042 _ACEOF
21043 case "$host_os" in
21044 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21045 *) gl_absname_cpp="$ac_cpp" ;;
21046 esac
21048 case "$host_os" in
21049 mingw*)
21050 gl_dirsep_regex='[/\\]'
21053 gl_dirsep_regex='/'
21055 esac
21057 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdarg.h#{
21058 s#.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*#\1#
21059 s#^/[^/]#//&#
21063 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21064 sed -n "$gl_absolute_header_sed"`'"'
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
21069 $as_echo "$gl_cv_next_stdarg_h" >&6; }
21071 NEXT_STDARG_H=$gl_cv_next_stdarg_h
21073 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21074 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21075 gl_next_as_first_directive='<'stdarg.h'>'
21076 else
21077 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21078 gl_next_as_first_directive=$gl_cv_next_stdarg_h
21080 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
21085 if test "$gl_cv_next_stdarg_h" = '""'; then
21086 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
21087 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
21089 else
21091 saved_as_echo_n="$as_echo_n"
21092 as_echo_n=':'
21093 if test "${gl_cv_func___va_copy+set}" = set; then :
21094 $as_echo_n "(cached) " >&6
21095 else
21097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21098 /* end confdefs.h. */
21099 #include <stdarg.h>
21101 main ()
21104 #ifndef __va_copy
21105 error, bail out
21106 #endif
21109 return 0;
21111 _ACEOF
21112 if ac_fn_c_try_compile "$LINENO"; then :
21113 gl_cv_func___va_copy=yes
21114 else
21115 gl_cv_func___va_copy=no
21117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21120 as_echo_n="$saved_as_echo_n"
21122 if test $gl_cv_func___va_copy = yes; then
21124 $as_echo "#define va_copy __va_copy" >>confdefs.h
21126 else
21129 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
21135 if test -n "$STDARG_H"; then
21136 GL_GENERATE_STDARG_H_TRUE=
21137 GL_GENERATE_STDARG_H_FALSE='#'
21138 else
21139 GL_GENERATE_STDARG_H_TRUE='#'
21140 GL_GENERATE_STDARG_H_FALSE=
21148 # Define two additional variables used in the Makefile substitution.
21150 if test "$ac_cv_header_stdbool_h" = yes; then
21151 STDBOOL_H=''
21152 else
21153 STDBOOL_H='stdbool.h'
21156 if test -n "$STDBOOL_H"; then
21157 GL_GENERATE_STDBOOL_H_TRUE=
21158 GL_GENERATE_STDBOOL_H_FALSE='#'
21159 else
21160 GL_GENERATE_STDBOOL_H_TRUE='#'
21161 GL_GENERATE_STDBOOL_H_FALSE=
21165 if test "$ac_cv_type__Bool" = yes; then
21166 HAVE__BOOL=1
21167 else
21168 HAVE__BOOL=0
21175 STDDEF_H=
21176 if test $gt_cv_c_wchar_t = no; then
21177 HAVE_WCHAR_T=0
21178 STDDEF_H=stddef.h
21180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21181 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21182 if test "${gl_cv_decl_null_works+set}" = set; then :
21183 $as_echo_n "(cached) " >&6
21184 else
21185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21186 /* end confdefs.h. */
21187 #include <stddef.h>
21188 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21191 main ()
21195 return 0;
21197 _ACEOF
21198 if ac_fn_c_try_compile "$LINENO"; then :
21199 gl_cv_decl_null_works=yes
21200 else
21201 gl_cv_decl_null_works=no
21203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21206 $as_echo "$gl_cv_decl_null_works" >&6; }
21207 if test $gl_cv_decl_null_works = no; then
21208 REPLACE_NULL=1
21209 STDDEF_H=stddef.h
21212 if test -n "$STDDEF_H"; then
21213 GL_GENERATE_STDDEF_H_TRUE=
21214 GL_GENERATE_STDDEF_H_FALSE='#'
21215 else
21216 GL_GENERATE_STDDEF_H_TRUE='#'
21217 GL_GENERATE_STDDEF_H_FALSE=
21220 if test -n "$STDDEF_H"; then
21229 if test $gl_cv_have_include_next = yes; then
21230 gl_cv_next_stddef_h='<'stddef.h'>'
21231 else
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21233 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21234 if test "${gl_cv_next_stddef_h+set}" = set; then :
21235 $as_echo_n "(cached) " >&6
21236 else
21238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21239 /* end confdefs.h. */
21240 #include <stddef.h>
21242 _ACEOF
21243 case "$host_os" in
21244 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21245 *) gl_absname_cpp="$ac_cpp" ;;
21246 esac
21248 case "$host_os" in
21249 mingw*)
21250 gl_dirsep_regex='[/\\]'
21253 gl_dirsep_regex='/'
21255 esac
21257 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stddef.h#{
21258 s#.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*#\1#
21259 s#^/[^/]#//&#
21263 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21264 sed -n "$gl_absolute_header_sed"`'"'
21268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21269 $as_echo "$gl_cv_next_stddef_h" >&6; }
21271 NEXT_STDDEF_H=$gl_cv_next_stddef_h
21273 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21274 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21275 gl_next_as_first_directive='<'stddef.h'>'
21276 else
21277 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21278 gl_next_as_first_directive=$gl_cv_next_stddef_h
21280 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21299 if test $gl_cv_have_include_next = yes; then
21300 gl_cv_next_stdio_h='<'stdio.h'>'
21301 else
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21303 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21304 if test "${gl_cv_next_stdio_h+set}" = set; then :
21305 $as_echo_n "(cached) " >&6
21306 else
21308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21309 /* end confdefs.h. */
21310 #include <stdio.h>
21312 _ACEOF
21313 case "$host_os" in
21314 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21315 *) gl_absname_cpp="$ac_cpp" ;;
21316 esac
21318 case "$host_os" in
21319 mingw*)
21320 gl_dirsep_regex='[/\\]'
21323 gl_dirsep_regex='/'
21325 esac
21327 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdio.h#{
21328 s#.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*#\1#
21329 s#^/[^/]#//&#
21333 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21334 sed -n "$gl_absolute_header_sed"`'"'
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21339 $as_echo "$gl_cv_next_stdio_h" >&6; }
21341 NEXT_STDIO_H=$gl_cv_next_stdio_h
21343 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21344 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21345 gl_next_as_first_directive='<'stdio.h'>'
21346 else
21347 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21348 gl_next_as_first_directive=$gl_cv_next_stdio_h
21350 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
21356 GNULIB_FSCANF=1
21357 GNULIB_SCANF=1
21358 GNULIB_FGETC=1
21359 GNULIB_GETC=1
21360 GNULIB_GETCHAR=1
21361 GNULIB_FGETS=1
21362 GNULIB_GETS=1
21363 GNULIB_FREAD=1
21366 GNULIB_FPRINTF=1
21367 GNULIB_PRINTF=1
21368 GNULIB_VFPRINTF=1
21369 GNULIB_VPRINTF=1
21370 GNULIB_FPUTC=1
21371 GNULIB_PUTC=1
21372 GNULIB_PUTCHAR=1
21373 GNULIB_FPUTS=1
21374 GNULIB_PUTS=1
21375 GNULIB_FWRITE=1
21391 if test $gl_cv_have_include_next = yes; then
21392 gl_cv_next_stdlib_h='<'stdlib.h'>'
21393 else
21394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21395 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21396 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21397 $as_echo_n "(cached) " >&6
21398 else
21400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21401 /* end confdefs.h. */
21402 #include <stdlib.h>
21404 _ACEOF
21405 case "$host_os" in
21406 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21407 *) gl_absname_cpp="$ac_cpp" ;;
21408 esac
21410 case "$host_os" in
21411 mingw*)
21412 gl_dirsep_regex='[/\\]'
21415 gl_dirsep_regex='/'
21417 esac
21419 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdlib.h#{
21420 s#.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*#\1#
21421 s#^/[^/]#//&#
21425 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21426 sed -n "$gl_absolute_header_sed"`'"'
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21431 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21433 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
21435 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21436 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21437 gl_next_as_first_directive='<'stdlib.h'>'
21438 else
21439 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21440 gl_next_as_first_directive=$gl_cv_next_stdlib_h
21442 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
21452 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21460 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21468 <<<<<<< TREE
21469 =======
21471 if test "$ac_cv_have_decl_strtoimax" != yes; then
21472 HAVE_DECL_STRTOIMAX=0
21475 if test $ac_cv_func_strtoimax = no; then
21484 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
21487 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21488 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
21489 ac_have_decl=1
21490 else
21491 ac_have_decl=0
21494 cat >>confdefs.h <<_ACEOF
21495 #define HAVE_DECL_STRTOLL $ac_have_decl
21496 _ACEOF
21506 GNULIB_STRTOIMAX=1
21516 >>>>>>> MERGE-SOURCE
21517 if test "$ac_cv_have_decl_strtoumax" != yes; then
21518 HAVE_DECL_STRTOUMAX=0
21521 if test $ac_cv_func_strtoumax = no; then
21530 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
21533 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21534 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
21535 ac_have_decl=1
21536 else
21537 ac_have_decl=0
21540 cat >>confdefs.h <<_ACEOF
21541 #define HAVE_DECL_STRTOULL $ac_have_decl
21542 _ACEOF
21552 GNULIB_STRTOUMAX=1
21560 if test $ac_cv_func_symlink = no; then
21561 HAVE_SYMLINK=0
21562 else
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
21564 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
21565 if test "${gl_cv_func_symlink_works+set}" = set; then :
21566 $as_echo_n "(cached) " >&6
21567 else
21568 if test "$cross_compiling" = yes; then :
21569 gl_cv_func_symlink_works="guessing no"
21570 else
21571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21572 /* end confdefs.h. */
21573 #include <unistd.h>
21576 main ()
21578 int result = 0;
21579 if (!symlink ("a", "conftest.link/"))
21580 result |= 1;
21581 if (symlink ("conftest.f", "conftest.lnk2"))
21582 result |= 2;
21583 else if (!symlink ("a", "conftest.lnk2/"))
21584 result |= 4;
21585 return result;
21588 return 0;
21590 _ACEOF
21591 if ac_fn_c_try_run "$LINENO"; then :
21592 gl_cv_func_symlink_works=yes
21593 else
21594 gl_cv_func_symlink_works=no
21596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21597 conftest.$ac_objext conftest.beam conftest.$ac_ext
21600 rm -f conftest.f conftest.link conftest.lnk2
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
21603 $as_echo "$gl_cv_func_symlink_works" >&6; }
21604 if test "$gl_cv_func_symlink_works" != yes; then
21605 REPLACE_SYMLINK=1
21609 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
21618 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
21626 GNULIB_SYMLINK=1
21648 if test $gl_cv_have_include_next = yes; then
21649 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21650 else
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21652 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
21653 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
21654 $as_echo_n "(cached) " >&6
21655 else
21657 if test $ac_cv_header_sys_stat_h = yes; then
21660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21661 /* end confdefs.h. */
21662 #include <sys/stat.h>
21664 _ACEOF
21665 case "$host_os" in
21666 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21667 *) gl_absname_cpp="$ac_cpp" ;;
21668 esac
21670 case "$host_os" in
21671 mingw*)
21672 gl_dirsep_regex='[/\\]'
21675 gl_dirsep_regex='/'
21677 esac
21679 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'sys/stat.h#{
21680 s#.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*#\1#
21681 s#^/[^/]#//&#
21685 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21686 sed -n "$gl_absolute_header_sed"`'"'
21687 else
21688 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21694 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
21696 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
21698 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21699 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21700 gl_next_as_first_directive='<'sys/stat.h'>'
21701 else
21702 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21703 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
21705 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
21711 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21712 #include <sys/stat.h>
21714 if test "x$ac_cv_type_nlink_t" = x""yes; then :
21716 else
21718 $as_echo "#define nlink_t int" >>confdefs.h
21736 if test $ac_cv_have_decl_localtime_r = no; then
21737 HAVE_DECL_LOCALTIME_R=0
21741 if test $ac_cv_func_localtime_r = yes; then
21742 HAVE_LOCALTIME_R=1
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
21744 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
21745 if test "${gl_cv_time_r_posix+set}" = set; then :
21746 $as_echo_n "(cached) " >&6
21747 else
21748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21749 /* end confdefs.h. */
21750 #include <time.h>
21752 main ()
21754 /* We don't need to append 'restrict's to the argument types,
21755 even though the POSIX signature has the 'restrict's,
21756 since C99 says they can't affect type compatibility. */
21757 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
21758 if (ptr) return 0;
21759 /* Check the return type is a pointer.
21760 On HP-UX 10 it is 'int'. */
21761 *localtime_r (0, 0);
21763 return 0;
21766 _ACEOF
21767 if ac_fn_c_try_compile "$LINENO"; then :
21768 gl_cv_time_r_posix=yes
21769 else
21770 gl_cv_time_r_posix=no
21772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
21776 $as_echo "$gl_cv_time_r_posix" >&6; }
21777 if test $gl_cv_time_r_posix = yes; then
21778 REPLACE_LOCALTIME_R=0
21779 else
21780 REPLACE_LOCALTIME_R=1
21782 else
21783 HAVE_LOCALTIME_R=0
21786 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
21795 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
21806 GNULIB_TIME_R=1
21826 if test $gl_cv_have_include_next = yes; then
21827 gl_cv_next_unistd_h='<'unistd.h'>'
21828 else
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21830 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21831 if test "${gl_cv_next_unistd_h+set}" = set; then :
21832 $as_echo_n "(cached) " >&6
21833 else
21835 if test $ac_cv_header_unistd_h = yes; then
21838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21839 /* end confdefs.h. */
21840 #include <unistd.h>
21842 _ACEOF
21843 case "$host_os" in
21844 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21845 *) gl_absname_cpp="$ac_cpp" ;;
21846 esac
21848 case "$host_os" in
21849 mingw*)
21850 gl_dirsep_regex='[/\\]'
21853 gl_dirsep_regex='/'
21855 esac
21857 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'unistd.h#{
21858 s#.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*#\1#
21859 s#^/[^/]#//&#
21863 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21864 sed -n "$gl_absolute_header_sed"`'"'
21865 else
21866 gl_cv_next_unistd_h='<'unistd.h'>'
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21872 $as_echo "$gl_cv_next_unistd_h" >&6; }
21874 NEXT_UNISTD_H=$gl_cv_next_unistd_h
21876 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21877 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21878 gl_next_as_first_directive='<'unistd.h'>'
21879 else
21880 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21881 gl_next_as_first_directive=$gl_cv_next_unistd_h
21883 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
21888 if test $ac_cv_header_unistd_h = yes; then
21889 HAVE_UNISTD_H=1
21890 else
21891 HAVE_UNISTD_H=0
21899 gl_gnulib_enabled_dosname=false
21900 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
21901 gl_gnulib_enabled_stat=false
21902 gl_gnulib_enabled_strtoull=false
21903 gl_gnulib_enabled_verify=false
21904 func_gl_gnulib_m4code_dosname ()
21906 if ! $gl_gnulib_enabled_dosname; then
21907 gl_gnulib_enabled_dosname=true
21910 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
21912 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21915 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
21918 <<<<<<< TREE
21919 =======
21920 func_gl_gnulib_m4code_sigprocmask ()
21922 if ! $gl_gnulib_enabled_sigprocmask; then
21926 if test $gl_cv_type_sigset_t = yes; then
21927 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21928 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
21929 gl_cv_func_sigprocmask=1
21933 if test -z "$gl_cv_func_sigprocmask"; then
21934 HAVE_POSIX_SIGNALBLOCKING=0
21937 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21946 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21955 GNULIB_SIGPROCMASK=1
21961 gl_gnulib_enabled_sigprocmask=true
21964 >>>>>>> MERGE-SOURCE
21965 func_gl_gnulib_m4code_stat ()
21967 if ! $gl_gnulib_enabled_stat; then
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21972 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21973 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21974 $as_echo_n "(cached) " >&6
21975 else
21976 if test "$cross_compiling" = yes; then :
21977 case $host_os in
21978 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
21979 *) gl_cv_func_stat_dir_slash="guessing yes";;
21980 esac
21981 else
21982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21983 /* end confdefs.h. */
21984 #include <sys/stat.h>
21987 main ()
21989 struct stat st; return stat (".", &st) != stat ("./", &st);
21991 return 0;
21993 _ACEOF
21994 if ac_fn_c_try_run "$LINENO"; then :
21995 gl_cv_func_stat_dir_slash=yes
21996 else
21997 gl_cv_func_stat_dir_slash=no
21999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22000 conftest.$ac_objext conftest.beam conftest.$ac_ext
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
22005 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
22007 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
22008 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
22009 $as_echo_n "(cached) " >&6
22010 else
22011 touch conftest.tmp
22012 # Assume that if we have lstat, we can also check symlinks.
22013 if test $ac_cv_func_lstat = yes; then
22014 ln -s conftest.tmp conftest.lnk
22016 if test "$cross_compiling" = yes; then :
22017 gl_cv_func_stat_file_slash="guessing no"
22018 else
22019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22020 /* end confdefs.h. */
22021 #include <sys/stat.h>
22024 main ()
22026 int result = 0;
22027 struct stat st;
22028 if (!stat ("conftest.tmp/", &st))
22029 result |= 1;
22030 #if HAVE_LSTAT
22031 if (!stat ("conftest.lnk/", &st))
22032 result |= 2;
22033 #endif
22034 return result;
22037 return 0;
22039 _ACEOF
22040 if ac_fn_c_try_run "$LINENO"; then :
22041 gl_cv_func_stat_file_slash=yes
22042 else
22043 gl_cv_func_stat_file_slash=no
22045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22046 conftest.$ac_objext conftest.beam conftest.$ac_ext
22049 rm -f conftest.tmp conftest.lnk
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
22052 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
22053 case $gl_cv_func_stat_dir_slash in
22054 *no) REPLACE_STAT=1
22056 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
22058 esac
22059 case $gl_cv_func_stat_file_slash in
22060 *no) REPLACE_STAT=1
22062 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
22064 esac
22066 if test $REPLACE_STAT = 1; then
22075 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
22087 GNULIB_STAT=1
22093 gl_gnulib_enabled_stat=true
22094 if test $REPLACE_STAT = 1; then
22095 func_gl_gnulib_m4code_dosname
22097 <<<<<<< TREE
22098 if $condition; then
22099 =======
22100 if test $REPLACE_STAT = 1; then
22101 >>>>>>> MERGE-SOURCE
22102 func_gl_gnulib_m4code_verify
22106 <<<<<<< TREE
22107 =======
22108 func_gl_gnulib_m4code_strtoll ()
22110 if ! $gl_gnulib_enabled_strtoll; then
22114 if test "$ac_cv_type_long_long_int" = yes; then
22115 for ac_func in strtoll
22116 do :
22117 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
22118 if test "x$ac_cv_func_strtoll" = x""yes; then :
22119 cat >>confdefs.h <<_ACEOF
22120 #define HAVE_STRTOLL 1
22121 _ACEOF
22124 done
22126 if test $ac_cv_func_strtoll = no; then
22127 HAVE_STRTOLL=0
22131 if test $HAVE_STRTOLL = 0; then
22140 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
22151 GNULIB_STRTOLL=1
22157 gl_gnulib_enabled_strtoll=true
22160 >>>>>>> MERGE-SOURCE
22161 func_gl_gnulib_m4code_strtoull ()
22163 if ! $gl_gnulib_enabled_strtoull; then
22167 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
22168 for ac_func in strtoull
22169 do :
22170 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
22171 if test "x$ac_cv_func_strtoull" = x""yes; then :
22172 cat >>confdefs.h <<_ACEOF
22173 #define HAVE_STRTOULL 1
22174 _ACEOF
22177 done
22179 if test $ac_cv_func_strtoull = no; then
22180 HAVE_STRTOULL=0
22184 if test $HAVE_STRTOULL = 0; then
22193 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
22204 GNULIB_STRTOULL=1
22210 gl_gnulib_enabled_strtoull=true
22213 func_gl_gnulib_m4code_verify ()
22215 if ! $gl_gnulib_enabled_verify; then
22216 gl_gnulib_enabled_verify=true
22219 if test $REPLACE_GETOPT = 1; then
22220 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22222 if test $REPLACE_LSTAT = 1; then
22223 func_gl_gnulib_m4code_dosname
22225 if test $REPLACE_LSTAT = 1; then
22226 func_gl_gnulib_m4code_stat
22228 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22229 func_gl_gnulib_m4code_stat
22231 <<<<<<< TREE
22232 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
22233 =======
22234 if test $ac_cv_func_strtoimax = no; then
22235 func_gl_gnulib_m4code_verify
22237 if test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
22238 func_gl_gnulib_m4code_strtoll
22240 if test $ac_cv_func_strtoumax = no; then
22241 >>>>>>> MERGE-SOURCE
22242 func_gl_gnulib_m4code_verify
22244 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
22245 func_gl_gnulib_m4code_strtoull
22248 if $gl_gnulib_enabled_dosname; then
22249 gl_GNULIB_ENABLED_dosname_TRUE=
22250 gl_GNULIB_ENABLED_dosname_FALSE='#'
22251 else
22252 gl_GNULIB_ENABLED_dosname_TRUE='#'
22253 gl_GNULIB_ENABLED_dosname_FALSE=
22256 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22257 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
22258 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
22259 else
22260 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
22261 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
22264 if $gl_gnulib_enabled_stat; then
22265 gl_GNULIB_ENABLED_stat_TRUE=
22266 gl_GNULIB_ENABLED_stat_FALSE='#'
22267 else
22268 gl_GNULIB_ENABLED_stat_TRUE='#'
22269 gl_GNULIB_ENABLED_stat_FALSE=
22272 if $gl_gnulib_enabled_strtoull; then
22273 gl_GNULIB_ENABLED_strtoull_TRUE=
22274 gl_GNULIB_ENABLED_strtoull_FALSE='#'
22275 else
22276 gl_GNULIB_ENABLED_strtoull_TRUE='#'
22277 gl_GNULIB_ENABLED_strtoull_FALSE=
22280 if $gl_gnulib_enabled_verify; then
22281 gl_GNULIB_ENABLED_verify_TRUE=
22282 gl_GNULIB_ENABLED_verify_FALSE='#'
22283 else
22284 gl_GNULIB_ENABLED_verify_TRUE='#'
22285 gl_GNULIB_ENABLED_verify_FALSE=
22288 # End of code from modules
22298 gltests_libdeps=
22299 gltests_ltlibdeps=
22309 gl_source_base='tests'
22310 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
22312 gl_module_indicator_condition=$gltests_WITNESS
22323 LIBGNU_LIBDEPS="$gl_libdeps"
22325 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
22329 # UNIX98 PTYs.
22330 for ac_func in grantpt
22331 do :
22332 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
22333 if test "x$ac_cv_func_grantpt" = x""yes; then :
22334 cat >>confdefs.h <<_ACEOF
22335 #define HAVE_GRANTPT 1
22336 _ACEOF
22339 done
22342 # PTY-related GNU extensions.
22343 for ac_func in getpt
22344 do :
22345 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
22346 if test "x$ac_cv_func_getpt" = x""yes; then :
22347 cat >>confdefs.h <<_ACEOF
22348 #define HAVE_GETPT 1
22349 _ACEOF
22352 done
22355 # Check this now, so that we will NOT find the above functions in ncurses.
22356 # That is because we have not set up to link ncurses in lib-src.
22357 # It's better to believe a function is not available
22358 # than to expect to find it in ncurses.
22359 # Also we need tputs and friends to be able to build at all.
22360 have_tputs_et_al=true
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
22362 $as_echo_n "checking for library containing tputs... " >&6; }
22363 if test "${ac_cv_search_tputs+set}" = set; then :
22364 $as_echo_n "(cached) " >&6
22365 else
22366 ac_func_search_save_LIBS=$LIBS
22367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22368 /* end confdefs.h. */
22370 /* Override any GCC internal prototype to avoid an error.
22371 Use char because int might match the return type of a GCC
22372 builtin and then its argument prototype would still apply. */
22373 #ifdef __cplusplus
22374 extern "C"
22375 #endif
22376 char tputs ();
22378 main ()
22380 return tputs ();
22382 return 0;
22384 _ACEOF
22385 for ac_lib in '' ncurses terminfo termcap; do
22386 if test -z "$ac_lib"; then
22387 ac_res="none required"
22388 else
22389 ac_res=-l$ac_lib
22390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22392 if ac_fn_c_try_link "$LINENO"; then :
22393 ac_cv_search_tputs=$ac_res
22395 rm -f core conftest.err conftest.$ac_objext \
22396 conftest$ac_exeext
22397 if test "${ac_cv_search_tputs+set}" = set; then :
22398 break
22400 done
22401 if test "${ac_cv_search_tputs+set}" = set; then :
22403 else
22404 ac_cv_search_tputs=no
22406 rm conftest.$ac_ext
22407 LIBS=$ac_func_search_save_LIBS
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
22410 $as_echo "$ac_cv_search_tputs" >&6; }
22411 ac_res=$ac_cv_search_tputs
22412 if test "$ac_res" != no; then :
22413 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22415 else
22416 have_tputs_et_al=false
22419 if test "$have_tputs_et_al" != true; then
22420 as_fn_error "I couldn't find termcap functions (tputs and friends).
22421 Maybe some development libraries/packages are missing? Try installing
22422 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
22424 # Must define this when any termcap library is found.
22426 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
22428 ## FIXME This was the cpp logic, but I am not sure it is right.
22429 ## The above test has not necessarily found libncurses.
22430 HAVE_LIBNCURSES=yes
22432 ## Use terminfo instead of termcap?
22433 ## Note only system files NOT using terminfo are:
22434 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
22435 ## darwin|gnu without ncurses.
22436 TERMINFO=no
22437 LIBS_TERMCAP=
22438 case "$opsys" in
22439 ## cygwin: Fewer environment variables to go wrong, more terminal types.
22440 ## hpux10-20: Use the system provided termcap(3) library.
22441 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
22442 ## is necessary. Otherwise Emacs dumps core when run -nw.
22443 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
22445 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
22446 ## The ncurses library has been moved out of the System framework in
22447 ## Mac OS X 10.2. So if configure detects it, set the command-line
22448 ## option to use it.
22449 darwin|gnu*)
22450 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
22451 if test "x$HAVE_LIBNCURSES" = "xyes"; then
22452 TERMINFO=yes
22453 LIBS_TERMCAP="-lncurses"
22457 freebsd)
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
22459 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
22460 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
22461 $as_echo_n "(cached) " >&6
22462 else
22463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22464 /* end confdefs.h. */
22465 #include <osreldate.h>
22467 main ()
22469 #if __FreeBSD_version < 400000
22470 fail;
22471 #endif
22474 return 0;
22476 _ACEOF
22477 if ac_fn_c_try_link "$LINENO"; then :
22478 emacs_cv_freebsd_terminfo=yes
22479 else
22480 emacs_cv_freebsd_terminfo=no
22482 rm -f core conftest.err conftest.$ac_objext \
22483 conftest$ac_exeext conftest.$ac_ext
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
22488 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
22490 if test $emacs_cv_freebsd_terminfo = yes; then
22491 TERMINFO=yes
22492 LIBS_TERMCAP="-lncurses"
22493 else
22494 LIBS_TERMCAP="-ltermcap"
22498 netbsd)
22499 if test $ac_cv_search_tputs = -lterminfo; then
22500 TERMINFO=yes
22501 LIBS_TERMCAP="-lterminfo"
22502 else
22503 LIBS_TERMCAP="-ltermcap"
22507 esac
22509 case "$opsys" in
22510 ## hpux: Make sure we get select from libc rather than from libcurses
22511 ## because libcurses on HPUX 10.10 has a broken version of select.
22512 ## We used to use -lc -lcurses, but this may be cleaner.
22513 hpux*) LIBS_TERMCAP="-ltermcap" ;;
22515 openbsd) LIBS_TERMCAP="-lncurses" ;;
22517 ## Must use system termcap, if we use any termcap. It does special things.
22518 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
22519 esac
22521 TERMCAP_OBJ=tparam.o
22522 if test $TERMINFO = yes; then
22524 $as_echo "#define TERMINFO 1" >>confdefs.h
22527 ## Default used to be -ltermcap. Add a case above if need something else.
22528 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
22530 TERMCAP_OBJ=terminfo.o
22536 # Do we have res_init, for detecting changes in /etc/resolv.conf?
22537 resolv=no
22538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22539 /* end confdefs.h. */
22540 #include <netinet/in.h>
22541 #include <arpa/nameser.h>
22542 #include <resolv.h>
22544 main ()
22546 return res_init();
22548 return 0;
22550 _ACEOF
22551 if ac_fn_c_try_link "$LINENO"; then :
22552 have_res_init=yes
22553 else
22554 have_res_init=no
22556 rm -f core conftest.err conftest.$ac_objext \
22557 conftest$ac_exeext conftest.$ac_ext
22558 if test "$have_res_init" = no; then
22559 OLIBS="$LIBS"
22560 LIBS="$LIBS -lresolv"
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
22562 $as_echo_n "checking for res_init with -lresolv... " >&6; }
22563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22564 /* end confdefs.h. */
22565 #include <netinet/in.h>
22566 #include <arpa/nameser.h>
22567 #include <resolv.h>
22569 main ()
22571 return res_init();
22573 return 0;
22575 _ACEOF
22576 if ac_fn_c_try_link "$LINENO"; then :
22577 have_res_init=yes
22578 else
22579 have_res_init=no
22581 rm -f core conftest.err conftest.$ac_objext \
22582 conftest$ac_exeext conftest.$ac_ext
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
22584 $as_echo "$have_res_init" >&6; }
22585 if test "$have_res_init" = yes ; then
22586 resolv=yes
22588 LIBS="$OLIBS"
22591 if test "$have_res_init" = yes; then
22593 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
22597 # Do we need the Hesiod library to provide the support routines?
22598 LIBHESIOD=
22599 if test "$with_hesiod" != no ; then
22600 # Don't set $LIBS here -- see comments above. FIXME which comments?
22601 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
22602 if test "x$ac_cv_func_res_send" = x""yes; then :
22604 else
22605 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
22606 if test "x$ac_cv_func___res_send" = x""yes; then :
22608 else
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
22610 $as_echo_n "checking for res_send in -lresolv... " >&6; }
22611 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
22612 $as_echo_n "(cached) " >&6
22613 else
22614 ac_check_lib_save_LIBS=$LIBS
22615 LIBS="-lresolv $LIBS"
22616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22617 /* end confdefs.h. */
22619 /* Override any GCC internal prototype to avoid an error.
22620 Use char because int might match the return type of a GCC
22621 builtin and then its argument prototype would still apply. */
22622 #ifdef __cplusplus
22623 extern "C"
22624 #endif
22625 char res_send ();
22627 main ()
22629 return res_send ();
22631 return 0;
22633 _ACEOF
22634 if ac_fn_c_try_link "$LINENO"; then :
22635 ac_cv_lib_resolv_res_send=yes
22636 else
22637 ac_cv_lib_resolv_res_send=no
22639 rm -f core conftest.err conftest.$ac_objext \
22640 conftest$ac_exeext conftest.$ac_ext
22641 LIBS=$ac_check_lib_save_LIBS
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
22644 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22645 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
22646 resolv=yes
22647 else
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
22649 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
22650 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
22651 $as_echo_n "(cached) " >&6
22652 else
22653 ac_check_lib_save_LIBS=$LIBS
22654 LIBS="-lresolv $LIBS"
22655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22656 /* end confdefs.h. */
22658 /* Override any GCC internal prototype to avoid an error.
22659 Use char because int might match the return type of a GCC
22660 builtin and then its argument prototype would still apply. */
22661 #ifdef __cplusplus
22662 extern "C"
22663 #endif
22664 char __res_send ();
22666 main ()
22668 return __res_send ();
22670 return 0;
22672 _ACEOF
22673 if ac_fn_c_try_link "$LINENO"; then :
22674 ac_cv_lib_resolv___res_send=yes
22675 else
22676 ac_cv_lib_resolv___res_send=no
22678 rm -f core conftest.err conftest.$ac_objext \
22679 conftest$ac_exeext conftest.$ac_ext
22680 LIBS=$ac_check_lib_save_LIBS
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
22683 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22684 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
22685 resolv=yes
22694 if test "$resolv" = yes ; then
22695 RESOLVLIB=-lresolv
22696 else
22697 RESOLVLIB=
22699 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
22700 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
22702 else
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
22704 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
22705 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
22706 $as_echo_n "(cached) " >&6
22707 else
22708 ac_check_lib_save_LIBS=$LIBS
22709 LIBS="-lhesiod $RESOLVLIB $LIBS"
22710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22711 /* end confdefs.h. */
22713 /* Override any GCC internal prototype to avoid an error.
22714 Use char because int might match the return type of a GCC
22715 builtin and then its argument prototype would still apply. */
22716 #ifdef __cplusplus
22717 extern "C"
22718 #endif
22719 char hes_getmailhost ();
22721 main ()
22723 return hes_getmailhost ();
22725 return 0;
22727 _ACEOF
22728 if ac_fn_c_try_link "$LINENO"; then :
22729 ac_cv_lib_hesiod_hes_getmailhost=yes
22730 else
22731 ac_cv_lib_hesiod_hes_getmailhost=no
22733 rm -f core conftest.err conftest.$ac_objext \
22734 conftest$ac_exeext conftest.$ac_ext
22735 LIBS=$ac_check_lib_save_LIBS
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22738 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22739 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
22740 hesiod=yes
22741 else
22748 if test x"$hesiod" = xyes; then
22750 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
22752 LIBHESIOD=-lhesiod
22757 # Do we need libresolv (due to res_init or Hesiod)?
22758 if test "$resolv" = yes ; then
22760 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
22762 LIBRESOLV=-lresolv
22763 else
22764 LIBRESOLV=
22768 # These tell us which Kerberos-related libraries to use.
22769 COM_ERRLIB=
22770 CRYPTOLIB=
22771 KRB5LIB=
22772 DESLIB=
22773 KRB4LIB=
22775 if test "${with_kerberos}" != no; then
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
22777 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22778 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
22779 $as_echo_n "(cached) " >&6
22780 else
22781 ac_check_lib_save_LIBS=$LIBS
22782 LIBS="-lcom_err $LIBS"
22783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22784 /* end confdefs.h. */
22786 /* Override any GCC internal prototype to avoid an error.
22787 Use char because int might match the return type of a GCC
22788 builtin and then its argument prototype would still apply. */
22789 #ifdef __cplusplus
22790 extern "C"
22791 #endif
22792 char com_err ();
22794 main ()
22796 return com_err ();
22798 return 0;
22800 _ACEOF
22801 if ac_fn_c_try_link "$LINENO"; then :
22802 ac_cv_lib_com_err_com_err=yes
22803 else
22804 ac_cv_lib_com_err_com_err=no
22806 rm -f core conftest.err conftest.$ac_objext \
22807 conftest$ac_exeext conftest.$ac_ext
22808 LIBS=$ac_check_lib_save_LIBS
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
22811 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22812 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
22813 have_com_err=yes
22814 else
22815 have_com_err=no
22818 if test $have_com_err = yes; then
22819 COM_ERRLIB=-lcom_err
22820 LIBS="$COM_ERRLIB $LIBS"
22822 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22826 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22827 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
22828 $as_echo_n "(cached) " >&6
22829 else
22830 ac_check_lib_save_LIBS=$LIBS
22831 LIBS="-lcrypto $LIBS"
22832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22833 /* end confdefs.h. */
22835 /* Override any GCC internal prototype to avoid an error.
22836 Use char because int might match the return type of a GCC
22837 builtin and then its argument prototype would still apply. */
22838 #ifdef __cplusplus
22839 extern "C"
22840 #endif
22841 char mit_des_cbc_encrypt ();
22843 main ()
22845 return mit_des_cbc_encrypt ();
22847 return 0;
22849 _ACEOF
22850 if ac_fn_c_try_link "$LINENO"; then :
22851 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22852 else
22853 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22855 rm -f core conftest.err conftest.$ac_objext \
22856 conftest$ac_exeext conftest.$ac_ext
22857 LIBS=$ac_check_lib_save_LIBS
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22860 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22861 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
22862 have_crypto=yes
22863 else
22864 have_crypto=no
22867 if test $have_crypto = yes; then
22868 CRYPTOLIB=-lcrypto
22869 LIBS="$CRYPTOLIB $LIBS"
22871 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22875 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22876 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
22877 $as_echo_n "(cached) " >&6
22878 else
22879 ac_check_lib_save_LIBS=$LIBS
22880 LIBS="-lk5crypto $LIBS"
22881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22882 /* end confdefs.h. */
22884 /* Override any GCC internal prototype to avoid an error.
22885 Use char because int might match the return type of a GCC
22886 builtin and then its argument prototype would still apply. */
22887 #ifdef __cplusplus
22888 extern "C"
22889 #endif
22890 char mit_des_cbc_encrypt ();
22892 main ()
22894 return mit_des_cbc_encrypt ();
22896 return 0;
22898 _ACEOF
22899 if ac_fn_c_try_link "$LINENO"; then :
22900 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22901 else
22902 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22904 rm -f core conftest.err conftest.$ac_objext \
22905 conftest$ac_exeext conftest.$ac_ext
22906 LIBS=$ac_check_lib_save_LIBS
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22909 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22910 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
22911 have_k5crypto=yes
22912 else
22913 have_k5crypto=no
22916 if test $have_k5crypto = yes; then
22917 CRYPTOLIB=-lk5crypto
22918 LIBS="$CRYPTOLIB $LIBS"
22920 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
22923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
22924 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22925 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
22926 $as_echo_n "(cached) " >&6
22927 else
22928 ac_check_lib_save_LIBS=$LIBS
22929 LIBS="-lkrb5 $LIBS"
22930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22931 /* end confdefs.h. */
22933 /* Override any GCC internal prototype to avoid an error.
22934 Use char because int might match the return type of a GCC
22935 builtin and then its argument prototype would still apply. */
22936 #ifdef __cplusplus
22937 extern "C"
22938 #endif
22939 char krb5_init_context ();
22941 main ()
22943 return krb5_init_context ();
22945 return 0;
22947 _ACEOF
22948 if ac_fn_c_try_link "$LINENO"; then :
22949 ac_cv_lib_krb5_krb5_init_context=yes
22950 else
22951 ac_cv_lib_krb5_krb5_init_context=no
22953 rm -f core conftest.err conftest.$ac_objext \
22954 conftest$ac_exeext conftest.$ac_ext
22955 LIBS=$ac_check_lib_save_LIBS
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22958 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22959 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
22960 have_krb5=yes
22961 else
22962 have_krb5=no
22965 if test $have_krb5=yes; then
22966 KRB5LIB=-lkrb5
22967 LIBS="$KRB5LIB $LIBS"
22969 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
22972 if test "${with_kerberos5}" = no; then
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
22974 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22975 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
22976 $as_echo_n "(cached) " >&6
22977 else
22978 ac_check_lib_save_LIBS=$LIBS
22979 LIBS="-ldes425 $LIBS"
22980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22981 /* end confdefs.h. */
22983 /* Override any GCC internal prototype to avoid an error.
22984 Use char because int might match the return type of a GCC
22985 builtin and then its argument prototype would still apply. */
22986 #ifdef __cplusplus
22987 extern "C"
22988 #endif
22989 char des_cbc_encrypt ();
22991 main ()
22993 return des_cbc_encrypt ();
22995 return 0;
22997 _ACEOF
22998 if ac_fn_c_try_link "$LINENO"; then :
22999 ac_cv_lib_des425_des_cbc_encrypt=yes
23000 else
23001 ac_cv_lib_des425_des_cbc_encrypt=no
23003 rm -f core conftest.err conftest.$ac_objext \
23004 conftest$ac_exeext conftest.$ac_ext
23005 LIBS=$ac_check_lib_save_LIBS
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
23008 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
23009 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
23010 have_des425=yes
23011 else
23012 have_des425=no
23015 if test $have_des425 = yes; then
23016 DESLIB=-ldes425
23017 LIBS="$DESLIB $LIBS"
23019 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
23021 else
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
23023 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
23024 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
23025 $as_echo_n "(cached) " >&6
23026 else
23027 ac_check_lib_save_LIBS=$LIBS
23028 LIBS="-ldes $LIBS"
23029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23030 /* end confdefs.h. */
23032 /* Override any GCC internal prototype to avoid an error.
23033 Use char because int might match the return type of a GCC
23034 builtin and then its argument prototype would still apply. */
23035 #ifdef __cplusplus
23036 extern "C"
23037 #endif
23038 char des_cbc_encrypt ();
23040 main ()
23042 return des_cbc_encrypt ();
23044 return 0;
23046 _ACEOF
23047 if ac_fn_c_try_link "$LINENO"; then :
23048 ac_cv_lib_des_des_cbc_encrypt=yes
23049 else
23050 ac_cv_lib_des_des_cbc_encrypt=no
23052 rm -f core conftest.err conftest.$ac_objext \
23053 conftest$ac_exeext conftest.$ac_ext
23054 LIBS=$ac_check_lib_save_LIBS
23056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
23057 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
23058 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
23059 have_des=yes
23060 else
23061 have_des=no
23064 if test $have_des = yes; then
23065 DESLIB=-ldes
23066 LIBS="$DESLIB $LIBS"
23068 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
23072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
23073 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
23074 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
23075 $as_echo_n "(cached) " >&6
23076 else
23077 ac_check_lib_save_LIBS=$LIBS
23078 LIBS="-lkrb4 $LIBS"
23079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23080 /* end confdefs.h. */
23082 /* Override any GCC internal prototype to avoid an error.
23083 Use char because int might match the return type of a GCC
23084 builtin and then its argument prototype would still apply. */
23085 #ifdef __cplusplus
23086 extern "C"
23087 #endif
23088 char krb_get_cred ();
23090 main ()
23092 return krb_get_cred ();
23094 return 0;
23096 _ACEOF
23097 if ac_fn_c_try_link "$LINENO"; then :
23098 ac_cv_lib_krb4_krb_get_cred=yes
23099 else
23100 ac_cv_lib_krb4_krb_get_cred=no
23102 rm -f core conftest.err conftest.$ac_objext \
23103 conftest$ac_exeext conftest.$ac_ext
23104 LIBS=$ac_check_lib_save_LIBS
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
23107 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
23108 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
23109 have_krb4=yes
23110 else
23111 have_krb4=no
23114 if test $have_krb4 = yes; then
23115 KRB4LIB=-lkrb4
23116 LIBS="$KRB4LIB $LIBS"
23118 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
23120 else
23121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
23122 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
23123 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
23124 $as_echo_n "(cached) " >&6
23125 else
23126 ac_check_lib_save_LIBS=$LIBS
23127 LIBS="-lkrb $LIBS"
23128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23129 /* end confdefs.h. */
23131 /* Override any GCC internal prototype to avoid an error.
23132 Use char because int might match the return type of a GCC
23133 builtin and then its argument prototype would still apply. */
23134 #ifdef __cplusplus
23135 extern "C"
23136 #endif
23137 char krb_get_cred ();
23139 main ()
23141 return krb_get_cred ();
23143 return 0;
23145 _ACEOF
23146 if ac_fn_c_try_link "$LINENO"; then :
23147 ac_cv_lib_krb_krb_get_cred=yes
23148 else
23149 ac_cv_lib_krb_krb_get_cred=no
23151 rm -f core conftest.err conftest.$ac_objext \
23152 conftest$ac_exeext conftest.$ac_ext
23153 LIBS=$ac_check_lib_save_LIBS
23155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
23156 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
23157 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
23158 have_krb=yes
23159 else
23160 have_krb=no
23163 if test $have_krb = yes; then
23164 KRB4LIB=-lkrb
23165 LIBS="$KRB4LIB $LIBS"
23167 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
23173 if test "${with_kerberos5}" != no; then
23174 for ac_header in krb5.h
23175 do :
23176 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
23177 if test "x$ac_cv_header_krb5_h" = x""yes; then :
23178 cat >>confdefs.h <<_ACEOF
23179 #define HAVE_KRB5_H 1
23180 _ACEOF
23181 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
23183 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
23185 cat >>confdefs.h <<_ACEOF
23186 #define HAVE_KRB5_ERROR_TEXT 1
23187 _ACEOF
23191 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
23193 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
23195 cat >>confdefs.h <<_ACEOF
23196 #define HAVE_KRB5_ERROR_E_TEXT 1
23197 _ACEOF
23204 done
23206 else
23207 for ac_header in des.h
23208 do :
23209 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
23210 if test "x$ac_cv_header_des_h" = x""yes; then :
23211 cat >>confdefs.h <<_ACEOF
23212 #define HAVE_DES_H 1
23213 _ACEOF
23215 else
23216 for ac_header in kerberosIV/des.h
23217 do :
23218 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
23219 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
23220 cat >>confdefs.h <<_ACEOF
23221 #define HAVE_KERBEROSIV_DES_H 1
23222 _ACEOF
23224 else
23225 for ac_header in kerberos/des.h
23226 do :
23227 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
23228 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
23229 cat >>confdefs.h <<_ACEOF
23230 #define HAVE_KERBEROS_DES_H 1
23231 _ACEOF
23235 done
23239 done
23243 done
23245 for ac_header in krb.h
23246 do :
23247 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
23248 if test "x$ac_cv_header_krb_h" = x""yes; then :
23249 cat >>confdefs.h <<_ACEOF
23250 #define HAVE_KRB_H 1
23251 _ACEOF
23253 else
23254 for ac_header in kerberosIV/krb.h
23255 do :
23256 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
23257 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
23258 cat >>confdefs.h <<_ACEOF
23259 #define HAVE_KERBEROSIV_KRB_H 1
23260 _ACEOF
23262 else
23263 for ac_header in kerberos/krb.h
23264 do :
23265 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
23266 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
23267 cat >>confdefs.h <<_ACEOF
23268 #define HAVE_KERBEROS_KRB_H 1
23269 _ACEOF
23273 done
23277 done
23281 done
23284 for ac_header in com_err.h
23285 do :
23286 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
23287 if test "x$ac_cv_header_com_err_h" = x""yes; then :
23288 cat >>confdefs.h <<_ACEOF
23289 #define HAVE_COM_ERR_H 1
23290 _ACEOF
23294 done
23304 # Solaris requires -lintl if you want strerror (which calls dgettext)
23305 # to return localized messages.
23306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
23307 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23308 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
23309 $as_echo_n "(cached) " >&6
23310 else
23311 ac_check_lib_save_LIBS=$LIBS
23312 LIBS="-lintl $LIBS"
23313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23314 /* end confdefs.h. */
23316 /* Override any GCC internal prototype to avoid an error.
23317 Use char because int might match the return type of a GCC
23318 builtin and then its argument prototype would still apply. */
23319 #ifdef __cplusplus
23320 extern "C"
23321 #endif
23322 char dgettext ();
23324 main ()
23326 return dgettext ();
23328 return 0;
23330 _ACEOF
23331 if ac_fn_c_try_link "$LINENO"; then :
23332 ac_cv_lib_intl_dgettext=yes
23333 else
23334 ac_cv_lib_intl_dgettext=no
23336 rm -f core conftest.err conftest.$ac_objext \
23337 conftest$ac_exeext conftest.$ac_ext
23338 LIBS=$ac_check_lib_save_LIBS
23340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
23341 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23342 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
23343 cat >>confdefs.h <<_ACEOF
23344 #define HAVE_LIBINTL 1
23345 _ACEOF
23347 LIBS="-lintl $LIBS"
23352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
23353 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23354 if test "${emacs_cv_localtime_cache+set}" = set; then :
23355 $as_echo_n "(cached) " >&6
23356 else
23357 if test x$ac_cv_func_tzset = xyes; then
23358 if test "$cross_compiling" = yes; then :
23359 # If we have tzset, assume the worst when cross-compiling.
23360 emacs_cv_localtime_cache=yes
23361 else
23362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23363 /* end confdefs.h. */
23364 #include <time.h>
23365 char TZ_GMT0[] = "TZ=GMT0";
23366 char TZ_PST8[] = "TZ=PST8";
23367 main()
23369 time_t now = time ((time_t *) 0);
23370 int hour_GMT0, hour_unset;
23371 if (putenv (TZ_GMT0) != 0)
23372 exit (1);
23373 hour_GMT0 = localtime (&now)->tm_hour;
23374 unsetenv("TZ");
23375 hour_unset = localtime (&now)->tm_hour;
23376 if (putenv (TZ_PST8) != 0)
23377 exit (1);
23378 if (localtime (&now)->tm_hour == hour_GMT0)
23379 exit (1);
23380 unsetenv("TZ");
23381 if (localtime (&now)->tm_hour != hour_unset)
23382 exit (1);
23383 exit (0);
23385 _ACEOF
23386 if ac_fn_c_try_run "$LINENO"; then :
23387 emacs_cv_localtime_cache=no
23388 else
23389 emacs_cv_localtime_cache=yes
23391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23392 conftest.$ac_objext conftest.beam conftest.$ac_ext
23395 else
23396 # If we lack tzset, report that localtime does not cache TZ,
23397 # since we can't invalidate the cache if we don't have tzset.
23398 emacs_cv_localtime_cache=no
23401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
23402 $as_echo "$emacs_cv_localtime_cache" >&6; }
23403 if test $emacs_cv_localtime_cache = yes; then
23405 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
23409 if test "x$HAVE_TIMEVAL" = xyes; then
23410 for ac_func in gettimeofday
23411 do :
23412 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
23413 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
23414 cat >>confdefs.h <<_ACEOF
23415 #define HAVE_GETTIMEOFDAY 1
23416 _ACEOF
23419 done
23421 if test $ac_cv_func_gettimeofday = yes; then
23422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
23423 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
23424 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
23425 $as_echo_n "(cached) " >&6
23426 else
23427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23428 /* end confdefs.h. */
23430 #ifdef TIME_WITH_SYS_TIME
23431 #include <sys/time.h>
23432 #include <time.h>
23433 #else
23434 #ifdef HAVE_SYS_TIME_H
23435 #include <sys/time.h>
23436 #else
23437 #include <time.h>
23438 #endif
23439 #endif
23441 main ()
23443 struct timeval time;
23444 gettimeofday (&time, 0);
23446 return 0;
23448 _ACEOF
23449 if ac_fn_c_try_compile "$LINENO"; then :
23450 emacs_cv_gettimeofday_two_arguments=yes
23451 else
23452 emacs_cv_gettimeofday_two_arguments=no
23454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
23457 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23458 if test $emacs_cv_gettimeofday_two_arguments = no; then
23460 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
23466 ok_so_far=yes
23467 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
23468 if test "x$ac_cv_func_socket" = x""yes; then :
23470 else
23471 ok_so_far=no
23474 if test $ok_so_far = yes; then
23475 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
23476 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
23478 else
23479 ok_so_far=no
23484 if test $ok_so_far = yes; then
23485 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
23486 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
23488 else
23489 ok_so_far=no
23494 if test $ok_so_far = yes; then
23496 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
23500 if test -f /usr/lpp/X11/bin/smt.exp; then
23502 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
23507 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
23508 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23510 $as_echo "yes" >&6; }
23512 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
23514 else
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23516 $as_echo "no" >&6; }
23519 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23520 if test "x$ac_cv_type_pid_t" = x""yes; then :
23522 else
23524 cat >>confdefs.h <<_ACEOF
23525 #define pid_t int
23526 _ACEOF
23530 for ac_header in vfork.h
23531 do :
23532 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
23533 if test "x$ac_cv_header_vfork_h" = x""yes; then :
23534 cat >>confdefs.h <<_ACEOF
23535 #define HAVE_VFORK_H 1
23536 _ACEOF
23540 done
23542 for ac_func in fork vfork
23543 do :
23544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23545 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23546 eval as_val=\$$as_ac_var
23547 if test "x$as_val" = x""yes; then :
23548 cat >>confdefs.h <<_ACEOF
23549 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23550 _ACEOF
23553 done
23555 if test "x$ac_cv_func_fork" = xyes; then
23556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
23557 $as_echo_n "checking for working fork... " >&6; }
23558 if test "${ac_cv_func_fork_works+set}" = set; then :
23559 $as_echo_n "(cached) " >&6
23560 else
23561 if test "$cross_compiling" = yes; then :
23562 ac_cv_func_fork_works=cross
23563 else
23564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23565 /* end confdefs.h. */
23566 $ac_includes_default
23568 main ()
23571 /* By Ruediger Kuhlmann. */
23572 return fork () < 0;
23575 return 0;
23577 _ACEOF
23578 if ac_fn_c_try_run "$LINENO"; then :
23579 ac_cv_func_fork_works=yes
23580 else
23581 ac_cv_func_fork_works=no
23583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23584 conftest.$ac_objext conftest.beam conftest.$ac_ext
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
23589 $as_echo "$ac_cv_func_fork_works" >&6; }
23591 else
23592 ac_cv_func_fork_works=$ac_cv_func_fork
23594 if test "x$ac_cv_func_fork_works" = xcross; then
23595 case $host in
23596 *-*-amigaos* | *-*-msdosdjgpp*)
23597 # Override, as these systems have only a dummy fork() stub
23598 ac_cv_func_fork_works=no
23601 ac_cv_func_fork_works=yes
23603 esac
23604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23605 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23607 ac_cv_func_vfork_works=$ac_cv_func_vfork
23608 if test "x$ac_cv_func_vfork" = xyes; then
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
23610 $as_echo_n "checking for working vfork... " >&6; }
23611 if test "${ac_cv_func_vfork_works+set}" = set; then :
23612 $as_echo_n "(cached) " >&6
23613 else
23614 if test "$cross_compiling" = yes; then :
23615 ac_cv_func_vfork_works=cross
23616 else
23617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23618 /* end confdefs.h. */
23619 /* Thanks to Paul Eggert for this test. */
23620 $ac_includes_default
23621 #include <sys/wait.h>
23622 #ifdef HAVE_VFORK_H
23623 # include <vfork.h>
23624 #endif
23625 /* On some sparc systems, changes by the child to local and incoming
23626 argument registers are propagated back to the parent. The compiler
23627 is told about this with #include <vfork.h>, but some compilers
23628 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23629 static variable whose address is put into a register that is
23630 clobbered by the vfork. */
23631 static void
23632 #ifdef __cplusplus
23633 sparc_address_test (int arg)
23634 # else
23635 sparc_address_test (arg) int arg;
23636 #endif
23638 static pid_t child;
23639 if (!child) {
23640 child = vfork ();
23641 if (child < 0) {
23642 perror ("vfork");
23643 _exit(2);
23645 if (!child) {
23646 arg = getpid();
23647 write(-1, "", 0);
23648 _exit (arg);
23654 main ()
23656 pid_t parent = getpid ();
23657 pid_t child;
23659 sparc_address_test (0);
23661 child = vfork ();
23663 if (child == 0) {
23664 /* Here is another test for sparc vfork register problems. This
23665 test uses lots of local variables, at least as many local
23666 variables as main has allocated so far including compiler
23667 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23668 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23669 reuse the register of parent for one of the local variables,
23670 since it will think that parent can't possibly be used any more
23671 in this routine. Assigning to the local variable will thus
23672 munge parent in the parent process. */
23673 pid_t
23674 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23675 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23676 /* Convince the compiler that p..p7 are live; otherwise, it might
23677 use the same hardware register for all 8 local variables. */
23678 if (p != p1 || p != p2 || p != p3 || p != p4
23679 || p != p5 || p != p6 || p != p7)
23680 _exit(1);
23682 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23683 from child file descriptors. If the child closes a descriptor
23684 before it execs or exits, this munges the parent's descriptor
23685 as well. Test for this by closing stdout in the child. */
23686 _exit(close(fileno(stdout)) != 0);
23687 } else {
23688 int status;
23689 struct stat st;
23691 while (wait(&status) != child)
23693 return (
23694 /* Was there some problem with vforking? */
23695 child < 0
23697 /* Did the child fail? (This shouldn't happen.) */
23698 || status
23700 /* Did the vfork/compiler bug occur? */
23701 || parent != getpid()
23703 /* Did the file descriptor bug occur? */
23704 || fstat(fileno(stdout), &st) != 0
23708 _ACEOF
23709 if ac_fn_c_try_run "$LINENO"; then :
23710 ac_cv_func_vfork_works=yes
23711 else
23712 ac_cv_func_vfork_works=no
23714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23715 conftest.$ac_objext conftest.beam conftest.$ac_ext
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
23720 $as_echo "$ac_cv_func_vfork_works" >&6; }
23723 if test "x$ac_cv_func_fork_works" = xcross; then
23724 ac_cv_func_vfork_works=$ac_cv_func_vfork
23725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23726 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23729 if test "x$ac_cv_func_vfork_works" = xyes; then
23731 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
23733 else
23735 $as_echo "#define vfork fork" >>confdefs.h
23738 if test "x$ac_cv_func_fork_works" = xyes; then
23740 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
23746 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23747 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
23748 $as_echo_n "(cached) " >&6
23749 else
23750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23751 /* end confdefs.h. */
23752 #include <langinfo.h>
23754 main ()
23756 char* cs = nl_langinfo(CODESET);
23758 return 0;
23760 _ACEOF
23761 if ac_fn_c_try_link "$LINENO"; then :
23762 emacs_cv_langinfo_codeset=yes
23763 else
23764 emacs_cv_langinfo_codeset=no
23766 rm -f core conftest.err conftest.$ac_objext \
23767 conftest$ac_exeext conftest.$ac_ext
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
23771 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
23772 if test $emacs_cv_langinfo_codeset = yes; then
23774 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23779 $as_echo_n "checking for mbstate_t... " >&6; }
23780 if test "${ac_cv_type_mbstate_t+set}" = set; then :
23781 $as_echo_n "(cached) " >&6
23782 else
23783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23784 /* end confdefs.h. */
23785 $ac_includes_default
23786 # include <wchar.h>
23788 main ()
23790 mbstate_t x; return sizeof x;
23792 return 0;
23794 _ACEOF
23795 if ac_fn_c_try_compile "$LINENO"; then :
23796 ac_cv_type_mbstate_t=yes
23797 else
23798 ac_cv_type_mbstate_t=no
23800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23803 $as_echo "$ac_cv_type_mbstate_t" >&6; }
23804 if test $ac_cv_type_mbstate_t = yes; then
23806 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23808 else
23810 $as_echo "#define mbstate_t int" >>confdefs.h
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
23815 $as_echo_n "checking for C restricted array declarations... " >&6; }
23816 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
23817 $as_echo_n "(cached) " >&6
23818 else
23819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23820 /* end confdefs.h. */
23821 void fred (int x[__restrict]);
23823 main ()
23827 return 0;
23829 _ACEOF
23830 if ac_fn_c_try_compile "$LINENO"; then :
23831 emacs_cv_c_restrict_arr=yes
23832 else
23833 emacs_cv_c_restrict_arr=no
23835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
23838 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
23839 if test "$emacs_cv_c_restrict_arr" = yes; then
23841 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
23847 # Set up the CFLAGS for real compilation, so we can substitute it.
23848 CFLAGS="$REAL_CFLAGS"
23849 CPPFLAGS="$REAL_CPPFLAGS"
23851 ## Hack to detect a buggy GCC version.
23852 if test "x$GCC" = xyes \
23853 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
23854 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
23855 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
23856 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
23859 version=$PACKAGE_VERSION
23861 ### Specify what sort of things we'll be editing into Makefile and config.h.
23862 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23865 ## Unused?
23886 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
23887 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
23888 ## end of LIBX_BASE, but nothing ever set it.
23893 ## Used in lwlib/Makefile.in.
23895 if test -n "${machfile}"; then
23896 M_FILE="\$(srcdir)/${machfile}"
23897 else
23898 M_FILE=
23900 S_FILE="\$(srcdir)/${opsysfile}"
23911 cat >>confdefs.h <<_ACEOF
23912 #define EMACS_CONFIGURATION "${canonical}"
23913 _ACEOF
23916 cat >>confdefs.h <<_ACEOF
23917 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23918 _ACEOF
23920 if test -n "$machfile"; then
23922 cat >>confdefs.h <<_ACEOF
23923 #define config_machfile "${machfile}"
23924 _ACEOF
23928 cat >>confdefs.h <<_ACEOF
23929 #define config_opsysfile "${opsysfile}"
23930 _ACEOF
23933 XMENU_OBJ=
23934 XOBJ=
23935 FONT_OBJ=
23936 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23938 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
23940 XMENU_OBJ=xmenu.o
23941 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
23942 FONT_OBJ=xfont.o
23943 if test "$HAVE_XFT" = "yes"; then
23944 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
23945 elif test "$HAVE_FREETYPE" = "yes"; then
23946 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
23954 WIDGET_OBJ=
23955 MOTIF_LIBW=
23956 if test "${USE_X_TOOLKIT}" != "none" ; then
23957 WIDGET_OBJ=widget.o
23959 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
23961 if test "${USE_X_TOOLKIT}" = "LUCID"; then
23963 $as_echo "#define USE_LUCID 1" >>confdefs.h
23965 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
23967 $as_echo "#define USE_MOTIF 1" >>confdefs.h
23969 MOTIF_LIBW=-lXm
23970 case "$opsys" in
23971 gnu-linux)
23972 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
23973 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
23976 unixware)
23977 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
23978 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
23979 MOTIF_LIBW="MOTIF_LIBW -lXimp"
23982 aix4-2)
23983 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
23984 MOTIF_LIBW="$MOTIF_LIBW -li18n"
23986 esac
23987 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
23992 TOOLKIT_LIBW=
23993 case "$USE_X_TOOLKIT" in
23994 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
23995 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
23996 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS -lXcomposite" ;;
23997 esac
24000 if test "$USE_X_TOOLKIT" = "none"; then
24001 LIBXT_OTHER="\$(LIBXSM)"
24002 OLDXMENU_TARGET="really-oldXMenu"
24003 else
24004 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
24005 OLDXMENU_TARGET="really-lwlib"
24009 ## The X Menu stuff is present in the X10 distribution, but missing
24010 ## from X11. If we have X10, just use the installed library;
24011 ## otherwise, use our own copy.
24012 if test "${HAVE_X11}" = "yes" ; then
24014 $as_echo "#define HAVE_X11 1" >>confdefs.h
24017 if test "$USE_X_TOOLKIT" = "none"; then
24018 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
24019 else
24020 OLDXMENU="\${lwlibdir}/liblw.a"
24022 LIBXMENU="\$(OLDXMENU)"
24023 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
24024 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
24025 else
24026 ## For a syntactically valid Makefile; not actually used for anything.
24027 ## See comments in src/Makefile.in.
24028 OLDXMENU=nothing
24029 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
24030 if test "${HAVE_X_WINDOWS}" = "yes"; then
24031 LIBXMENU="-lXMenu"
24032 else
24033 LIBXMENU=
24035 LIBX_OTHER=
24036 OLDXMENU_DEPS=
24039 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
24040 OLDXMENU_TARGET=
24041 OLDXMENU=nothing
24042 LIBXMENU=
24043 OLDXMENU_DEPS=
24052 if test "${HAVE_MENUS}" = "yes" ; then
24054 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
24058 if test "${GNU_MALLOC}" = "yes" ; then
24060 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
24064 RALLOC_OBJ=
24065 if test "${REL_ALLOC}" = "yes" ; then
24067 $as_echo "#define REL_ALLOC 1" >>confdefs.h
24070 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
24074 if test "$opsys" = "cygwin"; then
24075 CYGWIN_OBJ="sheap.o"
24076 ## Cygwin differs because of its unexec().
24077 PRE_ALLOC_OBJ=
24078 POST_ALLOC_OBJ=lastfile.o
24079 else
24080 CYGWIN_OBJ=
24081 PRE_ALLOC_OBJ=lastfile.o
24082 POST_ALLOC_OBJ=
24089 case "$opsys" in
24090 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
24092 darwin)
24093 ## The -headerpad option tells ld (see man page) to leave room at the
24094 ## end of the header for adding load commands. Needed for dumping.
24095 ## 0x690 is the total size of 30 segment load commands (at 56
24096 ## each); under Cocoa 31 commands are required.
24097 if test "$HAVE_NS" = "yes"; then
24098 libs_nsgui="-framework AppKit"
24099 headerpad_extra=6C8
24100 else
24101 libs_nsgui=
24102 headerpad_extra=690
24104 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
24106 ## This is here because src/Makefile.in did some extra fiddling around
24107 ## with LD_SWITCH_SYSTEM. The cpp logic was:
24108 ## #ifndef LD_SWITCH_SYSTEM
24109 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
24110 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
24111 ## not using gcc, darwin system not on an alpha (ie darwin, since
24112 ## darwin + alpha does not occur).
24113 ## Because this was done in src/Makefile.in, the resulting part of
24114 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
24115 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
24116 ## rather than LD_SWITCH_SYSTEM.
24117 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
24118 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
24121 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
24122 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
24123 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
24124 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
24125 ## had different values in configure (in ac_link) and src/Makefile.in.
24126 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
24127 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
24129 *) LD_SWITCH_SYSTEM_TEMACS= ;;
24130 esac
24132 if test "$NS_IMPL_GNUSTEP" = "yes"; then
24133 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
24139 LD_FIRSTFLAG=
24140 ORDINARY_LINK=
24141 case "$opsys" in
24142 ## gnu: GNU needs its own crt0.
24143 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
24145 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
24146 ## library search parth, i.e. it won't search /usr/lib for libc and
24147 ## friends. Using -nostartfiles instead avoids this problem, and
24148 ## will also work on earlier NetBSD releases.
24149 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
24151 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
24152 ## MkLinux/LinuxPPC needs this.
24153 ## ibms390x only supports opsys = gnu-linux so it can be added here.
24154 gnu-*)
24155 case "$machine" in
24156 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
24157 esac
24159 esac
24162 if test "x$ORDINARY_LINK" = "xyes"; then
24164 LD_FIRSTFLAG=""
24166 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
24169 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
24170 ## freebsd, gnu-* not on macppc|ibms390x.
24171 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
24173 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
24174 ## places that are difficult to figure out at make time. Fortunately,
24175 ## these same versions allow you to pass arbitrary flags on to the
24176 ## linker, so there is no reason not to use it as a linker.
24178 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
24179 ## searching for libraries in its internal directories, so we have to
24180 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
24181 LD_FIRSTFLAG="-nostdlib"
24184 ## FIXME? What setting of EDIT_LDFLAGS should this have?
24185 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
24190 ## FIXME? The logic here is not precisely the same as that above.
24191 ## There is no check here for a pre-defined LD_FIRSTFLAG.
24192 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
24193 LIB_GCC=
24194 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
24196 case "$opsys" in
24197 freebsd|netbsd|openbsd) LIB_GCC= ;;
24199 gnu-*)
24200 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
24201 ## build on ARM EABI under GNU/Linux. (Bug#5518)
24202 case $host_cpu in
24203 arm*)
24204 LIB_GCC="-lgcc_s"
24207 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
24208 ## immediately undefine it again and redefine it to empty.
24209 ## Was the C_SWITCH_X_SITE part really necessary?
24210 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
24211 LIB_GCC=
24213 esac
24216 ## Ask GCC where to find libgcc.a.
24217 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
24218 esac
24222 ## If we're using X11/GNUstep, define some consequences.
24223 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
24225 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
24228 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
24235 #### Report on what we decided to do.
24236 #### Report GTK as a toolkit, even if it doesn't use Xt.
24237 #### It makes printing result more understandable as using GTK sets
24238 #### toolkit_scroll_bars to yes by default.
24239 if test "${HAVE_GTK}" = "yes"; then
24240 USE_X_TOOLKIT=GTK
24243 and_machfile=
24244 if test -n "$machfile"; then
24245 and_machfile=" and \`${machfile}'"
24248 echo "
24249 Configured for \`${canonical}'.
24251 Where should the build process find the source code? ${srcdir}
24252 What operating system and machine description files should Emacs use?
24253 \`${opsysfile}'${and_machfile}
24254 What compiler should emacs be built with? ${CC} ${CFLAGS}
24255 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24256 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24257 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24258 What window system should Emacs use? ${window_system}
24259 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24261 if test -n "${x_includes}"; then
24262 echo " Where do we find X Windows header files? ${x_includes}"
24263 else
24264 echo " Where do we find X Windows header files? Standard dirs"
24266 if test -n "${x_libraries}"; then
24267 echo " Where do we find X Windows libraries? ${x_libraries}"
24268 else
24269 echo " Where do we find X Windows libraries? Standard dirs"
24272 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24273 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24274 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24275 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24276 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
24277 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24278 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24279 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
24281 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24282 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24283 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
24284 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
24285 echo " Does Emacs use -lgnutls (2.6.x or higher)? ${HAVE_GNUTLS}"
24286 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
24288 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24289 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24290 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24291 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24293 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24294 echo
24296 if test $USE_XASSERTS = yes; then
24297 echo " Compiling with asserts turned on."
24298 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24301 echo
24303 if test "$HAVE_NS" = "yes"; then
24304 echo
24305 echo "You must run \"make install\" in order to test the built application.
24306 The installed application will go to nextstep/Emacs.app and can be
24307 run or moved from there."
24308 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24309 echo "The application will be fully self-contained."
24310 else
24311 echo "The lisp resources for the application will be installed under ${prefix}.
24312 You may need to run \"make install\" with sudo. The application will fail
24313 to run if these resources are not installed."
24315 echo
24319 # Remove any trailing slashes in these variables.
24320 test "${prefix}" != NONE &&
24321 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24322 test "${exec_prefix}" != NONE &&
24323 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24325 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"
24327 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"
24330 opt_makefile=test/automated/Makefile
24332 if test -f $srcdir/${opt_makefile}.in; then
24333 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
24334 ac_config_files="$ac_config_files test/automated/Makefile"
24338 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
24342 ac_config_commands="$ac_config_commands mkdirs"
24345 ac_config_commands="$ac_config_commands epaths"
24348 ac_config_commands="$ac_config_commands gdbinit"
24351 cat >confcache <<\_ACEOF
24352 # This file is a shell script that caches the results of configure
24353 # tests run on this system so they can be shared between configure
24354 # scripts and configure runs, see configure's option --config-cache.
24355 # It is not useful on other systems. If it contains results you don't
24356 # want to keep, you may remove or edit it.
24358 # config.status only pays attention to the cache file if you give it
24359 # the --recheck option to rerun configure.
24361 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24362 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24363 # following values.
24365 _ACEOF
24367 # The following way of writing the cache mishandles newlines in values,
24368 # but we know of no workaround that is simple, portable, and efficient.
24369 # So, we kill variables containing newlines.
24370 # Ultrix sh set writes to stderr and can't be redirected directly,
24371 # and sets the high bit in the cache file unless we assign to the vars.
24373 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24374 eval ac_val=\$$ac_var
24375 case $ac_val in #(
24376 *${as_nl}*)
24377 case $ac_var in #(
24378 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24379 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24380 esac
24381 case $ac_var in #(
24382 _ | IFS | as_nl) ;; #(
24383 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24384 *) { eval $ac_var=; unset $ac_var;} ;;
24385 esac ;;
24386 esac
24387 done
24389 (set) 2>&1 |
24390 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24391 *${as_nl}ac_space=\ *)
24392 # `set' does not quote correctly, so add quotes: double-quote
24393 # substitution turns \\\\ into \\, and sed turns \\ into \.
24394 sed -n \
24395 "s/'/'\\\\''/g;
24396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24397 ;; #(
24399 # `set' quotes correctly as required by POSIX, so do not add quotes.
24400 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24402 esac |
24403 sort
24405 sed '
24406 /^ac_cv_env_/b end
24407 t clear
24408 :clear
24409 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24410 t end
24411 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24412 :end' >>confcache
24413 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24414 if test -w "$cache_file"; then
24415 test "x$cache_file" != "x/dev/null" &&
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24417 $as_echo "$as_me: updating cache $cache_file" >&6;}
24418 cat confcache >$cache_file
24419 else
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24421 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24424 rm -f confcache
24426 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24427 # Let make expand exec_prefix.
24428 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24430 DEFS=-DHAVE_CONFIG_H
24432 ac_libobjs=
24433 ac_ltlibobjs=
24434 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24435 # 1. Remove the extension, and $U if already installed.
24436 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24437 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24438 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24439 # will be set to the directory where LIBOBJS objects are built.
24440 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24441 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24442 done
24443 LIBOBJS=$ac_libobjs
24445 LTLIBOBJS=$ac_ltlibobjs
24448 if test -n "$EXEEXT"; then
24449 am__EXEEXT_TRUE=
24450 am__EXEEXT_FALSE='#'
24451 else
24452 am__EXEEXT_TRUE='#'
24453 am__EXEEXT_FALSE=
24456 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24457 as_fn_error "conditional \"AMDEP\" was never defined.
24458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24460 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24461 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24465 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24466 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
24467 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24469 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24470 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24471 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24474 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24475 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
24476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24478 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
24479 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
24480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24482 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24483 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24486 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24487 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24490 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
24491 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
24492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24494 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
24495 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
24496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24498 <<<<<<< TREE
24499 =======
24500 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
24501 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
24502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24504 >>>>>>> MERGE-SOURCE
24505 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
24506 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
24507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24509 <<<<<<< TREE
24510 =======
24511 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
24512 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
24513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24515 >>>>>>> MERGE-SOURCE
24516 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
24517 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
24518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24520 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
24521 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
24522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24525 gl_libobjs=
24526 gl_ltlibobjs=
24527 if test -n "$gl_LIBOBJS"; then
24528 # Remove the extension.
24529 sed_drop_objext='s/\.o$//;s/\.obj$//'
24530 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24531 gl_libobjs="$gl_libobjs $i.$ac_objext"
24532 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
24533 done
24535 gl_LIBOBJS=$gl_libobjs
24537 gl_LTLIBOBJS=$gl_ltlibobjs
24541 gltests_libobjs=
24542 gltests_ltlibobjs=
24543 if test -n "$gltests_LIBOBJS"; then
24544 # Remove the extension.
24545 sed_drop_objext='s/\.o$//;s/\.obj$//'
24546 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24547 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
24548 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
24549 done
24551 gltests_LIBOBJS=$gltests_libobjs
24553 gltests_LTLIBOBJS=$gltests_ltlibobjs
24557 : ${CONFIG_STATUS=./config.status}
24558 ac_write_fail=0
24559 ac_clean_files_save=$ac_clean_files
24560 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24562 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24563 as_write_fail=0
24564 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24565 #! $SHELL
24566 # Generated by $as_me.
24567 # Run this file to recreate the current configuration.
24568 # Compiler output produced by configure, useful for debugging
24569 # configure, is in config.log if it exists.
24571 debug=false
24572 ac_cs_recheck=false
24573 ac_cs_silent=false
24575 SHELL=\${CONFIG_SHELL-$SHELL}
24576 export SHELL
24577 _ASEOF
24578 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24579 ## -------------------- ##
24580 ## M4sh Initialization. ##
24581 ## -------------------- ##
24583 # Be more Bourne compatible
24584 DUALCASE=1; export DUALCASE # for MKS sh
24585 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24586 emulate sh
24587 NULLCMD=:
24588 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24589 # is contrary to our usage. Disable this feature.
24590 alias -g '${1+"$@"}'='"$@"'
24591 setopt NO_GLOB_SUBST
24592 else
24593 case `(set -o) 2>/dev/null` in #(
24594 *posix*) :
24595 set -o posix ;; #(
24596 *) :
24598 esac
24602 as_nl='
24604 export as_nl
24605 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24606 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24607 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24608 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24609 # Prefer a ksh shell builtin over an external printf program on Solaris,
24610 # but without wasting forks for bash or zsh.
24611 if test -z "$BASH_VERSION$ZSH_VERSION" \
24612 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24613 as_echo='print -r --'
24614 as_echo_n='print -rn --'
24615 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24616 as_echo='printf %s\n'
24617 as_echo_n='printf %s'
24618 else
24619 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24620 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24621 as_echo_n='/usr/ucb/echo -n'
24622 else
24623 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24624 as_echo_n_body='eval
24625 arg=$1;
24626 case $arg in #(
24627 *"$as_nl"*)
24628 expr "X$arg" : "X\\(.*\\)$as_nl";
24629 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24630 esac;
24631 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24633 export as_echo_n_body
24634 as_echo_n='sh -c $as_echo_n_body as_echo'
24636 export as_echo_body
24637 as_echo='sh -c $as_echo_body as_echo'
24640 # The user is always right.
24641 if test "${PATH_SEPARATOR+set}" != set; then
24642 PATH_SEPARATOR=:
24643 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24644 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24645 PATH_SEPARATOR=';'
24650 # IFS
24651 # We need space, tab and new line, in precisely that order. Quoting is
24652 # there to prevent editors from complaining about space-tab.
24653 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24654 # splitting by setting IFS to empty value.)
24655 IFS=" "" $as_nl"
24657 # Find who we are. Look in the path if we contain no directory separator.
24658 case $0 in #((
24659 *[\\/]* ) as_myself=$0 ;;
24660 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24661 for as_dir in $PATH
24663 IFS=$as_save_IFS
24664 test -z "$as_dir" && as_dir=.
24665 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24666 done
24667 IFS=$as_save_IFS
24670 esac
24671 # We did not find ourselves, most probably we were run as `sh COMMAND'
24672 # in which case we are not to be found in the path.
24673 if test "x$as_myself" = x; then
24674 as_myself=$0
24676 if test ! -f "$as_myself"; then
24677 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24678 exit 1
24681 # Unset variables that we do not need and which cause bugs (e.g. in
24682 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24683 # suppresses any "Segmentation fault" message there. '((' could
24684 # trigger a bug in pdksh 5.2.14.
24685 for as_var in BASH_ENV ENV MAIL MAILPATH
24686 do eval test x\${$as_var+set} = xset \
24687 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24688 done
24689 PS1='$ '
24690 PS2='> '
24691 PS4='+ '
24693 # NLS nuisances.
24694 LC_ALL=C
24695 export LC_ALL
24696 LANGUAGE=C
24697 export LANGUAGE
24699 # CDPATH.
24700 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24703 # as_fn_error ERROR [LINENO LOG_FD]
24704 # ---------------------------------
24705 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24706 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24707 # script with status $?, using 1 if that was 0.
24708 as_fn_error ()
24710 as_status=$?; test $as_status -eq 0 && as_status=1
24711 if test "$3"; then
24712 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24713 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24715 $as_echo "$as_me: error: $1" >&2
24716 as_fn_exit $as_status
24717 } # as_fn_error
24720 # as_fn_set_status STATUS
24721 # -----------------------
24722 # Set $? to STATUS, without forking.
24723 as_fn_set_status ()
24725 return $1
24726 } # as_fn_set_status
24728 # as_fn_exit STATUS
24729 # -----------------
24730 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24731 as_fn_exit ()
24733 set +e
24734 as_fn_set_status $1
24735 exit $1
24736 } # as_fn_exit
24738 # as_fn_unset VAR
24739 # ---------------
24740 # Portably unset VAR.
24741 as_fn_unset ()
24743 { eval $1=; unset $1;}
24745 as_unset=as_fn_unset
24746 # as_fn_append VAR VALUE
24747 # ----------------------
24748 # Append the text in VALUE to the end of the definition contained in VAR. Take
24749 # advantage of any shell optimizations that allow amortized linear growth over
24750 # repeated appends, instead of the typical quadratic growth present in naive
24751 # implementations.
24752 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24753 eval 'as_fn_append ()
24755 eval $1+=\$2
24757 else
24758 as_fn_append ()
24760 eval $1=\$$1\$2
24762 fi # as_fn_append
24764 # as_fn_arith ARG...
24765 # ------------------
24766 # Perform arithmetic evaluation on the ARGs, and store the result in the
24767 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24768 # must be portable across $(()) and expr.
24769 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24770 eval 'as_fn_arith ()
24772 as_val=$(( $* ))
24774 else
24775 as_fn_arith ()
24777 as_val=`expr "$@" || test $? -eq 1`
24779 fi # as_fn_arith
24782 if expr a : '\(a\)' >/dev/null 2>&1 &&
24783 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24784 as_expr=expr
24785 else
24786 as_expr=false
24789 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24790 as_basename=basename
24791 else
24792 as_basename=false
24795 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24796 as_dirname=dirname
24797 else
24798 as_dirname=false
24801 as_me=`$as_basename -- "$0" ||
24802 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24803 X"$0" : 'X\(//\)$' \| \
24804 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24805 $as_echo X/"$0" |
24806 sed '/^.*\/\([^/][^/]*\)\/*$/{
24807 s//\1/
24810 /^X\/\(\/\/\)$/{
24811 s//\1/
24814 /^X\/\(\/\).*/{
24815 s//\1/
24818 s/.*/./; q'`
24820 # Avoid depending upon Character Ranges.
24821 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24822 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24823 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24824 as_cr_digits='0123456789'
24825 as_cr_alnum=$as_cr_Letters$as_cr_digits
24827 ECHO_C= ECHO_N= ECHO_T=
24828 case `echo -n x` in #(((((
24829 -n*)
24830 case `echo 'xy\c'` in
24831 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24832 xy) ECHO_C='\c';;
24833 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24834 ECHO_T=' ';;
24835 esac;;
24837 ECHO_N='-n';;
24838 esac
24840 rm -f conf$$ conf$$.exe conf$$.file
24841 if test -d conf$$.dir; then
24842 rm -f conf$$.dir/conf$$.file
24843 else
24844 rm -f conf$$.dir
24845 mkdir conf$$.dir 2>/dev/null
24847 if (echo >conf$$.file) 2>/dev/null; then
24848 if ln -s conf$$.file conf$$ 2>/dev/null; then
24849 as_ln_s='ln -s'
24850 # ... but there are two gotchas:
24851 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24852 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24853 # In both cases, we have to default to `cp -p'.
24854 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24855 as_ln_s='cp -p'
24856 elif ln conf$$.file conf$$ 2>/dev/null; then
24857 as_ln_s=ln
24858 else
24859 as_ln_s='cp -p'
24861 else
24862 as_ln_s='cp -p'
24864 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24865 rmdir conf$$.dir 2>/dev/null
24868 # as_fn_mkdir_p
24869 # -------------
24870 # Create "$as_dir" as a directory, including parents if necessary.
24871 as_fn_mkdir_p ()
24874 case $as_dir in #(
24875 -*) as_dir=./$as_dir;;
24876 esac
24877 test -d "$as_dir" || eval $as_mkdir_p || {
24878 as_dirs=
24879 while :; do
24880 case $as_dir in #(
24881 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24882 *) as_qdir=$as_dir;;
24883 esac
24884 as_dirs="'$as_qdir' $as_dirs"
24885 as_dir=`$as_dirname -- "$as_dir" ||
24886 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24887 X"$as_dir" : 'X\(//\)[^/]' \| \
24888 X"$as_dir" : 'X\(//\)$' \| \
24889 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24890 $as_echo X"$as_dir" |
24891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24892 s//\1/
24895 /^X\(\/\/\)[^/].*/{
24896 s//\1/
24899 /^X\(\/\/\)$/{
24900 s//\1/
24903 /^X\(\/\).*/{
24904 s//\1/
24907 s/.*/./; q'`
24908 test -d "$as_dir" && break
24909 done
24910 test -z "$as_dirs" || eval "mkdir $as_dirs"
24911 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
24914 } # as_fn_mkdir_p
24915 if mkdir -p . 2>/dev/null; then
24916 as_mkdir_p='mkdir -p "$as_dir"'
24917 else
24918 test -d ./-p && rmdir ./-p
24919 as_mkdir_p=false
24922 if test -x / >/dev/null 2>&1; then
24923 as_test_x='test -x'
24924 else
24925 if ls -dL / >/dev/null 2>&1; then
24926 as_ls_L_option=L
24927 else
24928 as_ls_L_option=
24930 as_test_x='
24931 eval sh -c '\''
24932 if test -d "$1"; then
24933 test -d "$1/.";
24934 else
24935 case $1 in #(
24936 -*)set "./$1";;
24937 esac;
24938 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
24939 ???[sx]*):;;*)false;;esac;fi
24940 '\'' sh
24943 as_executable_p=$as_test_x
24945 # Sed expression to map a string onto a valid CPP name.
24946 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24948 # Sed expression to map a string onto a valid variable name.
24949 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24952 exec 6>&1
24953 ## ----------------------------------- ##
24954 ## Main body of $CONFIG_STATUS script. ##
24955 ## ----------------------------------- ##
24956 _ASEOF
24957 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24960 # Save the log message, to keep $0 and so on meaningful, and to
24961 # report actual input values of CONFIG_FILES etc. instead of their
24962 # values after options handling.
24963 ac_log="
24964 This file was extended by emacs $as_me 24.0.90, which was
24965 generated by GNU Autoconf 2.65. Invocation command line was
24967 CONFIG_FILES = $CONFIG_FILES
24968 CONFIG_HEADERS = $CONFIG_HEADERS
24969 CONFIG_LINKS = $CONFIG_LINKS
24970 CONFIG_COMMANDS = $CONFIG_COMMANDS
24971 $ $0 $@
24973 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24976 _ACEOF
24978 case $ac_config_files in *"
24979 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24980 esac
24982 case $ac_config_headers in *"
24983 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24984 esac
24987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24988 # Files that config.status was made for.
24989 config_files="$ac_config_files"
24990 config_headers="$ac_config_headers"
24991 config_commands="$ac_config_commands"
24993 _ACEOF
24995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24996 ac_cs_usage="\
24997 \`$as_me' instantiates files and other configuration actions
24998 from templates according to the current configuration. Unless the files
24999 and actions are specified as TAGs, all are instantiated by default.
25001 Usage: $0 [OPTION]... [TAG]...
25003 -h, --help print this help, then exit
25004 -V, --version print version number and configuration settings, then exit
25005 --config print configuration, then exit
25006 -q, --quiet, --silent
25007 do not print progress messages
25008 -d, --debug don't remove temporary files
25009 --recheck update $as_me by reconfiguring in the same conditions
25010 --file=FILE[:TEMPLATE]
25011 instantiate the configuration file FILE
25012 --header=FILE[:TEMPLATE]
25013 instantiate the configuration header FILE
25015 Configuration files:
25016 $config_files
25018 Configuration headers:
25019 $config_headers
25021 Configuration commands:
25022 $config_commands
25024 Report bugs to the package provider."
25026 _ACEOF
25027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25028 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25029 ac_cs_version="\\
25030 emacs config.status 24.0.90
25031 configured by $0, generated by GNU Autoconf 2.65,
25032 with options \\"\$ac_cs_config\\"
25034 Copyright (C) 2009 Free Software Foundation, Inc.
25035 This config.status script is free software; the Free Software Foundation
25036 gives unlimited permission to copy, distribute and modify it."
25038 ac_pwd='$ac_pwd'
25039 srcdir='$srcdir'
25040 INSTALL='$INSTALL'
25041 MKDIR_P='$MKDIR_P'
25042 AWK='$AWK'
25043 test -n "\$AWK" || AWK=awk
25044 _ACEOF
25046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25047 # The default lists apply if the user does not specify any file.
25048 ac_need_defaults=:
25049 while test $# != 0
25051 case $1 in
25052 --*=*)
25053 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25054 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25055 ac_shift=:
25058 ac_option=$1
25059 ac_optarg=$2
25060 ac_shift=shift
25062 esac
25064 case $ac_option in
25065 # Handling of the options.
25066 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25067 ac_cs_recheck=: ;;
25068 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25069 $as_echo "$ac_cs_version"; exit ;;
25070 --config | --confi | --conf | --con | --co | --c )
25071 $as_echo "$ac_cs_config"; exit ;;
25072 --debug | --debu | --deb | --de | --d | -d )
25073 debug=: ;;
25074 --file | --fil | --fi | --f )
25075 $ac_shift
25076 case $ac_optarg in
25077 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25078 esac
25079 as_fn_append CONFIG_FILES " '$ac_optarg'"
25080 ac_need_defaults=false;;
25081 --header | --heade | --head | --hea )
25082 $ac_shift
25083 case $ac_optarg in
25084 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25085 esac
25086 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25087 ac_need_defaults=false;;
25088 --he | --h)
25089 # Conflict between --help and --header
25090 as_fn_error "ambiguous option: \`$1'
25091 Try \`$0 --help' for more information.";;
25092 --help | --hel | -h )
25093 $as_echo "$ac_cs_usage"; exit ;;
25094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25095 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25096 ac_cs_silent=: ;;
25098 # This is an error.
25099 -*) as_fn_error "unrecognized option: \`$1'
25100 Try \`$0 --help' for more information." ;;
25102 *) as_fn_append ac_config_targets " $1"
25103 ac_need_defaults=false ;;
25105 esac
25106 shift
25107 done
25109 ac_configure_extra_args=
25111 if $ac_cs_silent; then
25112 exec 6>/dev/null
25113 ac_configure_extra_args="$ac_configure_extra_args --silent"
25116 _ACEOF
25117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25118 if \$ac_cs_recheck; then
25119 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25120 shift
25121 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25122 CONFIG_SHELL='$SHELL'
25123 export CONFIG_SHELL
25124 exec "\$@"
25127 _ACEOF
25128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25129 exec 5>>config.log
25131 echo
25132 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25133 ## Running $as_me. ##
25134 _ASBOX
25135 $as_echo "$ac_log"
25136 } >&5
25138 _ACEOF
25139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25141 # INIT-COMMANDS
25143 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25144 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
25146 _ACEOF
25148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25150 # Handling of arguments.
25151 for ac_config_target in $ac_config_targets
25153 case $ac_config_target in
25154 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25155 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25156 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25157 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25158 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
25159 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
25160 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
25161 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25162 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
25163 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
25164 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25165 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
25166 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
25167 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
25168 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
25169 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
25170 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
25171 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
25173 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25174 esac
25175 done
25178 # If the user did not use the arguments to specify the items to instantiate,
25179 # then the envvar interface is used. Set only those that are not.
25180 # We use the long form for the default assignment because of an extremely
25181 # bizarre bug on SunOS 4.1.3.
25182 if $ac_need_defaults; then
25183 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25184 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25185 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25188 # Have a temporary directory for convenience. Make it in the build tree
25189 # simply because there is no reason against having it here, and in addition,
25190 # creating and moving files from /tmp can sometimes cause problems.
25191 # Hook for its removal unless debugging.
25192 # Note that there is a small window in which the directory will not be cleaned:
25193 # after its creation but before its name has been assigned to `$tmp'.
25194 $debug ||
25196 tmp=
25197 trap 'exit_status=$?
25198 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25200 trap 'as_fn_exit 1' 1 2 13 15
25202 # Create a (secure) tmp directory for tmp files.
25205 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25206 test -n "$tmp" && test -d "$tmp"
25207 } ||
25209 tmp=./conf$$-$RANDOM
25210 (umask 077 && mkdir "$tmp")
25211 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25213 # Set up the scripts for CONFIG_FILES section.
25214 # No need to generate them if there are no CONFIG_FILES.
25215 # This happens for instance with `./config.status config.h'.
25216 if test -n "$CONFIG_FILES"; then
25218 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25219 ac_cs_awk_getline=:
25220 ac_cs_awk_pipe_init=
25221 ac_cs_awk_read_file='
25222 while ((getline aline < (F[key])) > 0)
25223 print(aline)
25224 close(F[key])'
25225 ac_cs_awk_pipe_fini=
25226 else
25227 ac_cs_awk_getline=false
25228 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25229 ac_cs_awk_read_file='
25230 print "|#_!!_#|"
25231 print "cat " F[key] " &&"
25232 '$ac_cs_awk_pipe_init
25233 # The final `:' finishes the AND list.
25234 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25236 ac_cr=`echo X | tr X '\015'`
25237 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25238 # But we know of no other shell where ac_cr would be empty at this
25239 # point, so we can use a bashism as a fallback.
25240 if test "x$ac_cr" = x; then
25241 eval ac_cr=\$\'\\r\'
25243 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25244 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25245 ac_cs_awk_cr='\r'
25246 else
25247 ac_cs_awk_cr=$ac_cr
25250 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25251 _ACEOF
25253 # Create commands to substitute file output variables.
25255 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25256 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25257 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
25258 echo "_ACAWK" &&
25259 echo "_ACEOF"
25260 } >conf$$files.sh &&
25261 . ./conf$$files.sh ||
25262 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25263 rm -f conf$$files.sh
25266 echo "cat >conf$$subs.awk <<_ACEOF" &&
25267 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25268 echo "_ACEOF"
25269 } >conf$$subs.sh ||
25270 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25271 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25272 ac_delim='%!_!# '
25273 for ac_last_try in false false false false false :; do
25274 . ./conf$$subs.sh ||
25275 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25277 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25278 if test $ac_delim_n = $ac_delim_num; then
25279 break
25280 elif $ac_last_try; then
25281 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25282 else
25283 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25285 done
25286 rm -f conf$$subs.sh
25288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25289 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25290 _ACEOF
25291 sed -n '
25293 s/^/S["/; s/!.*/"]=/
25296 s/^[^!]*!//
25297 :repl
25298 t repl
25299 s/'"$ac_delim"'$//
25300 t delim
25303 s/\(.\{148\}\)..*/\1/
25304 t more1
25305 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25308 b repl
25309 :more1
25310 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25313 s/.\{148\}//
25314 t nl
25315 :delim
25317 s/\(.\{148\}\)..*/\1/
25318 t more2
25319 s/["\\]/\\&/g; s/^/"/; s/$/"/
25322 :more2
25323 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25326 s/.\{148\}//
25327 t delim
25328 ' <conf$$subs.awk | sed '
25329 /^[^""]/{
25331 s/\n//
25333 ' >>$CONFIG_STATUS || ac_write_fail=1
25334 rm -f conf$$subs.awk
25335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25336 _ACAWK
25337 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25338 for (key in S) S_is_set[key] = 1
25339 FS = "\a"
25340 \$ac_cs_awk_pipe_init
25343 line = $ 0
25344 nfields = split(line, field, "@")
25345 substed = 0
25346 len = length(field[1])
25347 for (i = 2; i < nfields; i++) {
25348 key = field[i]
25349 keylen = length(key)
25350 if (S_is_set[key]) {
25351 value = S[key]
25352 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25353 len += length(value) + length(field[++i])
25354 substed = 1
25355 } else
25356 len += 1 + keylen
25358 if (nfields == 3 && !substed) {
25359 key = field[2]
25360 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25361 \$ac_cs_awk_read_file
25362 next
25365 print line
25367 \$ac_cs_awk_pipe_fini
25368 _ACAWK
25369 _ACEOF
25370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25371 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25372 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25373 else
25375 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25376 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25377 _ACEOF
25379 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25380 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25381 # trailing colons and then remove the whole line if VPATH becomes empty
25382 # (actually we leave an empty line to preserve line numbers).
25383 if test "x$srcdir" = x.; then
25384 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25385 s/:*\$(srcdir):*/:/
25386 s/:*\${srcdir}:*/:/
25387 s/:*@srcdir@:*/:/
25388 s/^\([^=]*=[ ]*\):*/\1/
25389 s/:*$//
25390 s/^[^=]*=[ ]*$//
25394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25395 fi # test -n "$CONFIG_FILES"
25397 # Set up the scripts for CONFIG_HEADERS section.
25398 # No need to generate them if there are no CONFIG_HEADERS.
25399 # This happens for instance with `./config.status Makefile'.
25400 if test -n "$CONFIG_HEADERS"; then
25401 cat >"$tmp/defines.awk" <<\_ACAWK ||
25402 BEGIN {
25403 _ACEOF
25405 # Transform confdefs.h into an awk script `defines.awk', embedded as
25406 # here-document in config.status, that substitutes the proper values into
25407 # config.h.in to produce config.h.
25409 # Create a delimiter string that does not exist in confdefs.h, to ease
25410 # handling of long lines.
25411 ac_delim='%!_!# '
25412 for ac_last_try in false false :; do
25413 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25414 if test -z "$ac_t"; then
25415 break
25416 elif $ac_last_try; then
25417 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
25418 else
25419 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25421 done
25423 # For the awk script, D is an array of macro values keyed by name,
25424 # likewise P contains macro parameters if any. Preserve backslash
25425 # newline sequences.
25427 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25428 sed -n '
25429 s/.\{148\}/&'"$ac_delim"'/g
25430 t rset
25431 :rset
25432 s/^[ ]*#[ ]*define[ ][ ]*/ /
25433 t def
25435 :def
25436 s/\\$//
25437 t bsnl
25438 s/["\\]/\\&/g
25439 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25440 D["\1"]=" \3"/p
25441 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25443 :bsnl
25444 s/["\\]/\\&/g
25445 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25446 D["\1"]=" \3\\\\\\n"\\/p
25447 t cont
25448 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25449 t cont
25451 :cont
25453 s/.\{148\}/&'"$ac_delim"'/g
25454 t clear
25455 :clear
25456 s/\\$//
25457 t bsnlc
25458 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25460 :bsnlc
25461 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25462 b cont
25463 ' <confdefs.h | sed '
25464 s/'"$ac_delim"'/"\\\
25465 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25468 for (key in D) D_is_set[key] = 1
25469 FS = "\a"
25471 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25472 line = \$ 0
25473 split(line, arg, " ")
25474 if (arg[1] == "#") {
25475 defundef = arg[2]
25476 mac1 = arg[3]
25477 } else {
25478 defundef = substr(arg[1], 2)
25479 mac1 = arg[2]
25481 split(mac1, mac2, "(") #)
25482 macro = mac2[1]
25483 prefix = substr(line, 1, index(line, defundef) - 1)
25484 if (D_is_set[macro]) {
25485 # Preserve the white space surrounding the "#".
25486 print prefix "define", macro P[macro] D[macro]
25487 next
25488 } else {
25489 # Replace #undef with comments. This is necessary, for example,
25490 # in the case of _POSIX_SOURCE, which is predefined and required
25491 # on some systems where configure will not decide to define it.
25492 if (defundef == "undef") {
25493 print "/*", prefix defundef, macro, "*/"
25494 next
25498 { print }
25499 _ACAWK
25500 _ACEOF
25501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25502 as_fn_error "could not setup config headers machinery" "$LINENO" 5
25503 fi # test -n "$CONFIG_HEADERS"
25506 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25507 shift
25508 for ac_tag
25510 case $ac_tag in
25511 :[FHLC]) ac_mode=$ac_tag; continue;;
25512 esac
25513 case $ac_mode$ac_tag in
25514 :[FHL]*:*);;
25515 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
25516 :[FH]-) ac_tag=-:-;;
25517 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25518 esac
25519 ac_save_IFS=$IFS
25520 IFS=:
25521 set x $ac_tag
25522 IFS=$ac_save_IFS
25523 shift
25524 ac_file=$1
25525 shift
25527 case $ac_mode in
25528 :L) ac_source=$1;;
25529 :[FH])
25530 ac_file_inputs=
25531 for ac_f
25533 case $ac_f in
25534 -) ac_f="$tmp/stdin";;
25535 *) # Look for the file first in the build tree, then in the source tree
25536 # (if the path is not absolute). The absolute path cannot be DOS-style,
25537 # because $ac_f cannot contain `:'.
25538 test -f "$ac_f" ||
25539 case $ac_f in
25540 [\\/$]*) false;;
25541 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25542 esac ||
25543 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25544 esac
25545 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25546 as_fn_append ac_file_inputs " '$ac_f'"
25547 done
25549 # Let's still pretend it is `configure' which instantiates (i.e., don't
25550 # use $as_me), people would be surprised to read:
25551 # /* config.h. Generated by config.status. */
25552 configure_input='Generated from '`
25553 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25554 `' by configure.'
25555 if test x"$ac_file" != x-; then
25556 configure_input="$ac_file. $configure_input"
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25558 $as_echo "$as_me: creating $ac_file" >&6;}
25560 # Neutralize special characters interpreted by sed in replacement strings.
25561 case $configure_input in #(
25562 *\&* | *\|* | *\\* )
25563 ac_sed_conf_input=`$as_echo "$configure_input" |
25564 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25565 *) ac_sed_conf_input=$configure_input;;
25566 esac
25568 case $ac_tag in
25569 *:-:* | *:-) cat >"$tmp/stdin" \
25570 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
25571 esac
25573 esac
25575 ac_dir=`$as_dirname -- "$ac_file" ||
25576 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25577 X"$ac_file" : 'X\(//\)[^/]' \| \
25578 X"$ac_file" : 'X\(//\)$' \| \
25579 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25580 $as_echo X"$ac_file" |
25581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25582 s//\1/
25585 /^X\(\/\/\)[^/].*/{
25586 s//\1/
25589 /^X\(\/\/\)$/{
25590 s//\1/
25593 /^X\(\/\).*/{
25594 s//\1/
25597 s/.*/./; q'`
25598 as_dir="$ac_dir"; as_fn_mkdir_p
25599 ac_builddir=.
25601 case "$ac_dir" in
25602 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25604 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25605 # A ".." for each directory in $ac_dir_suffix.
25606 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25607 case $ac_top_builddir_sub in
25608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25610 esac ;;
25611 esac
25612 ac_abs_top_builddir=$ac_pwd
25613 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25614 # for backward compatibility:
25615 ac_top_builddir=$ac_top_build_prefix
25617 case $srcdir in
25618 .) # We are building in place.
25619 ac_srcdir=.
25620 ac_top_srcdir=$ac_top_builddir_sub
25621 ac_abs_top_srcdir=$ac_pwd ;;
25622 [\\/]* | ?:[\\/]* ) # Absolute name.
25623 ac_srcdir=$srcdir$ac_dir_suffix;
25624 ac_top_srcdir=$srcdir
25625 ac_abs_top_srcdir=$srcdir ;;
25626 *) # Relative name.
25627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25628 ac_top_srcdir=$ac_top_build_prefix$srcdir
25629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25630 esac
25631 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25634 case $ac_mode in
25637 # CONFIG_FILE
25640 case $INSTALL in
25641 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25642 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25643 esac
25644 ac_MKDIR_P=$MKDIR_P
25645 case $MKDIR_P in
25646 [\\/$]* | ?:[\\/]* ) ;;
25647 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25648 esac
25649 _ACEOF
25651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25652 # If the template does not know about datarootdir, expand it.
25653 # FIXME: This hack should be removed a few years after 2.60.
25654 ac_datarootdir_hack=; ac_datarootdir_seen=
25655 ac_sed_dataroot='
25656 /datarootdir/ {
25660 /@datadir@/p
25661 /@docdir@/p
25662 /@infodir@/p
25663 /@localedir@/p
25664 /@mandir@/p'
25665 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25666 *datarootdir*) ac_datarootdir_seen=yes;;
25667 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25669 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25670 _ACEOF
25671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25672 ac_datarootdir_hack='
25673 s&@datadir@&$datadir&g
25674 s&@docdir@&$docdir&g
25675 s&@infodir@&$infodir&g
25676 s&@localedir@&$localedir&g
25677 s&@mandir@&$mandir&g
25678 s&\\\${datarootdir}&$datarootdir&g' ;;
25679 esac
25680 _ACEOF
25682 # Neutralize VPATH when `$srcdir' = `.'.
25683 # Shell code in configure.ac might set extrasub.
25684 # FIXME: do we really want to maintain this feature?
25685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25686 ac_sed_extra="$ac_vpsub
25687 $extrasub
25688 _ACEOF
25689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25691 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25692 s|@configure_input@|$ac_sed_conf_input|;t t
25693 s&@top_builddir@&$ac_top_builddir_sub&;t t
25694 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25695 s&@srcdir@&$ac_srcdir&;t t
25696 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25697 s&@top_srcdir@&$ac_top_srcdir&;t t
25698 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25699 s&@builddir@&$ac_builddir&;t t
25700 s&@abs_builddir@&$ac_abs_builddir&;t t
25701 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25702 s&@INSTALL@&$ac_INSTALL&;t t
25703 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25704 $ac_datarootdir_hack
25706 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25707 if $ac_cs_awk_getline; then
25708 $AWK -f "$tmp/subs.awk"
25709 else
25710 $AWK -f "$tmp/subs.awk" | $SHELL
25711 fi >$tmp/out \
25712 || as_fn_error "could not create $ac_file" "$LINENO" 5
25714 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25715 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25716 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25718 which seems to be undefined. Please make sure it is defined." >&5
25719 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25720 which seems to be undefined. Please make sure it is defined." >&2;}
25722 rm -f "$tmp/stdin"
25723 case $ac_file in
25724 -) cat "$tmp/out" && rm -f "$tmp/out";;
25725 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25726 esac \
25727 || as_fn_error "could not create $ac_file" "$LINENO" 5
25731 # CONFIG_HEADER
25733 if test x"$ac_file" != x-; then
25735 $as_echo "/* $configure_input */" \
25736 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25737 } >"$tmp/config.h" \
25738 || as_fn_error "could not create $ac_file" "$LINENO" 5
25739 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25741 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25742 else
25743 rm -f "$ac_file"
25744 mv "$tmp/config.h" "$ac_file" \
25745 || as_fn_error "could not create $ac_file" "$LINENO" 5
25747 else
25748 $as_echo "/* $configure_input */" \
25749 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25750 || as_fn_error "could not create -" "$LINENO" 5
25752 # Compute "$ac_file"'s index in $config_headers.
25753 _am_arg="$ac_file"
25754 _am_stamp_count=1
25755 for _am_header in $config_headers :; do
25756 case $_am_header in
25757 $_am_arg | $_am_arg:* )
25758 break ;;
25760 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25761 esac
25762 done
25763 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25764 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25765 X"$_am_arg" : 'X\(//\)[^/]' \| \
25766 X"$_am_arg" : 'X\(//\)$' \| \
25767 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25768 $as_echo X"$_am_arg" |
25769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25770 s//\1/
25773 /^X\(\/\/\)[^/].*/{
25774 s//\1/
25777 /^X\(\/\/\)$/{
25778 s//\1/
25781 /^X\(\/\).*/{
25782 s//\1/
25785 s/.*/./; q'`/stamp-h$_am_stamp_count
25788 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25789 $as_echo "$as_me: executing $ac_file commands" >&6;}
25791 esac
25794 case $ac_file$ac_mode in
25795 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25796 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25797 # are listed without --file. Let's play safe and only enable the eval
25798 # if we detect the quoting.
25799 case $CONFIG_FILES in
25800 *\'*) eval set x "$CONFIG_FILES" ;;
25801 *) set x $CONFIG_FILES ;;
25802 esac
25803 shift
25804 for mf
25806 # Strip MF so we end up with the name of the file.
25807 mf=`echo "$mf" | sed -e 's/:.*$//'`
25808 # Check whether this is an Automake generated Makefile or not.
25809 # We used to match only the files named `Makefile.in', but
25810 # some people rename them; so instead we look at the file content.
25811 # Grep'ing the first line is not enough: some people post-process
25812 # each Makefile.in and add a new line on top of each file to say so.
25813 # Grep'ing the whole file is not good either: AIX grep has a line
25814 # limit of 2048, but all sed's we know have understand at least 4000.
25815 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25816 dirpart=`$as_dirname -- "$mf" ||
25817 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25818 X"$mf" : 'X\(//\)[^/]' \| \
25819 X"$mf" : 'X\(//\)$' \| \
25820 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25821 $as_echo X"$mf" |
25822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25823 s//\1/
25826 /^X\(\/\/\)[^/].*/{
25827 s//\1/
25830 /^X\(\/\/\)$/{
25831 s//\1/
25834 /^X\(\/\).*/{
25835 s//\1/
25838 s/.*/./; q'`
25839 else
25840 continue
25842 # Extract the definition of DEPDIR, am__include, and am__quote
25843 # from the Makefile without running `make'.
25844 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25845 test -z "$DEPDIR" && continue
25846 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25847 test -z "am__include" && continue
25848 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25849 # When using ansi2knr, U may be empty or an underscore; expand it
25850 U=`sed -n 's/^U = //p' < "$mf"`
25851 # Find all dependency output files, they are included files with
25852 # $(DEPDIR) in their names. We invoke sed twice because it is the
25853 # simplest approach to changing $(DEPDIR) to its actual value in the
25854 # expansion.
25855 for file in `sed -n "
25856 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25857 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25858 # Make sure the directory exists.
25859 test -f "$dirpart/$file" && continue
25860 fdir=`$as_dirname -- "$file" ||
25861 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25862 X"$file" : 'X\(//\)[^/]' \| \
25863 X"$file" : 'X\(//\)$' \| \
25864 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25865 $as_echo X"$file" |
25866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25867 s//\1/
25870 /^X\(\/\/\)[^/].*/{
25871 s//\1/
25874 /^X\(\/\/\)$/{
25875 s//\1/
25878 /^X\(\/\).*/{
25879 s//\1/
25882 s/.*/./; q'`
25883 as_dir=$dirpart/$fdir; as_fn_mkdir_p
25884 # echo "creating $dirpart/$file"
25885 echo '# dummy' > "$dirpart/$file"
25886 done
25887 done
25890 "mkdirs":C)
25891 for dir in etc lisp ; do
25892 test -d ${dir} || mkdir ${dir}
25893 done
25895 "epaths":C)
25896 echo creating src/epaths.h
25897 ${MAKE-make} epaths-force
25899 "gdbinit":C)
25900 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25901 echo creating src/.gdbinit
25902 echo source $srcdir/src/.gdbinit > src/.gdbinit
25906 esac
25907 done # for ac_tag
25910 as_fn_exit 0
25911 _ACEOF
25912 ac_clean_files=$ac_clean_files_save
25914 test $ac_write_fail = 0 ||
25915 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
25918 # configure is writing to config.log, and then calls config.status.
25919 # config.status does its own redirection, appending to config.log.
25920 # Unfortunately, on DOS this fails, as config.log is still kept open
25921 # by configure, so config.status won't be able to write to it; its
25922 # output is simply discarded. So we exec the FD to /dev/null,
25923 # effectively closing config.log, so it can be properly (re)opened and
25924 # appended to by config.status. When coming back to configure, we
25925 # need to make the FD available again.
25926 if test "$no_create" != yes; then
25927 ac_cs_success=:
25928 ac_config_status_args=
25929 test "$silent" = yes &&
25930 ac_config_status_args="$ac_config_status_args --quiet"
25931 exec 5>/dev/null
25932 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25933 exec 5>>config.log
25934 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25935 # would make configure fail if this is the last instruction.
25936 $ac_cs_success || as_fn_exit $?
25938 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25940 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}