upstream
[emacs.git] / autogen / configure
blob31a0c29aa56af9e053467467e1bc720cbc576583
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.0.50'
553 PACKAGE_STRING='emacs 24.0.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 ac_func_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 SUBDIR_MAKEFILES_IN
607 LIB_GCC
608 LD_FIRSTFLAG
609 LD_SWITCH_SYSTEM_TEMACS
610 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.50 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.50:";;
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.50
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.50, 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.50'
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:
7043 # Code from module stdbool:
7044 # Code from module stddef:
7045 # Code from module stdint:
7046 # Code from module stdio:
7047 # Code from module stdlib:
7048 # Code from module strftime:
7049 # Code from module strtoull:
7050 # Code from module strtoumax:
7051 # Code from module symlink:
7052 # Code from module sys_stat:
7053 # Code from module time:
7054 # Code from module time_r:
7055 # Code from module u64:
7056 # Code from module unistd:
7057 # Code from module verify:
7060 # On Suns, sometimes $CPP names a directory.
7061 if test -n "$CPP" && test -d "$CPP"; then
7062 CPP=
7065 ## If not using gcc, and on Solaris, and no CPP specified, see if
7066 ## using a Sun compiler, which needs -Xs to prevent whitespace.
7067 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
7068 test x"$CPP" = x; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
7070 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
7071 if test "${emacs_cv_sunpro_c+set}" = set; then :
7072 $as_echo_n "(cached) " >&6
7073 else
7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7078 main ()
7080 #ifndef __SUNPRO_C
7081 fail;
7082 #endif
7085 return 0;
7087 _ACEOF
7088 if ac_fn_c_try_link "$LINENO"; then :
7089 emacs_cv_sunpro_c=yes
7090 else
7091 emacs_cv_sunpro_c=no
7093 rm -f core conftest.err conftest.$ac_objext \
7094 conftest$ac_exeext conftest.$ac_ext
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7098 $as_echo "$emacs_cv_sunpro_c" >&6; }
7100 if test x"$emacs_cv_sunpro_c" = xyes; then
7101 NON_GNU_CPP="$CC -E -Xs"
7105 #### Some systems specify a CPP to use unless we are using GCC.
7106 #### Now that we know whether we are using GCC, we can decide whether
7107 #### to use that one.
7108 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
7109 then
7110 CPP="$NON_GNU_CPP"
7113 #### Some systems specify a CC to use unless we are using GCC.
7114 #### Now that we know whether we are using GCC, we can decide whether
7115 #### to use that one.
7116 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
7117 test x$cc_specified != xyes
7118 then
7119 CC="$NON_GNU_CC"
7122 if test x$GCC = xyes; then
7123 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
7124 else
7125 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
7128 ### Use -Wdeclaration-after-statement if the compiler supports it
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
7130 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
7131 SAVE_CFLAGS="$CFLAGS"
7132 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h. */
7137 main ()
7141 return 0;
7143 _ACEOF
7144 if ac_fn_c_try_compile "$LINENO"; then :
7145 has_option=yes
7146 else
7147 has_option=no
7149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150 if test $has_option = yes; then
7151 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7154 $as_echo "$has_option" >&6; }
7155 CFLAGS="$SAVE_CFLAGS"
7156 unset has_option
7157 unset SAVE_CFLAGS
7159 ### Use -Wold-style-definition if the compiler supports it
7160 # This can be removed when conversion to standard C is finished.
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
7162 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
7163 SAVE_CFLAGS="$CFLAGS"
7164 CFLAGS="$CFLAGS -Wold-style-definition"
7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h. */
7169 main ()
7173 return 0;
7175 _ACEOF
7176 if ac_fn_c_try_compile "$LINENO"; then :
7177 has_option=yes
7178 else
7179 has_option=no
7181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7182 if test $has_option = yes; then
7183 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7186 $as_echo "$has_option" >&6; }
7187 CFLAGS="$SAVE_CFLAGS"
7188 unset has_option
7189 unset SAVE_CFLAGS
7191 ### Use -Wimplicit-function-declaration if the compiler supports it
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
7193 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
7194 SAVE_CFLAGS="$CFLAGS"
7195 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7200 main ()
7204 return 0;
7206 _ACEOF
7207 if ac_fn_c_try_compile "$LINENO"; then :
7208 has_option=yes
7209 else
7210 has_option=no
7212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7213 if test $has_option = yes; then
7214 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7217 $as_echo "$has_option" >&6; }
7218 CFLAGS="$SAVE_CFLAGS"
7219 unset has_option
7220 unset SAVE_CFLAGS
7225 #### Some other nice autoconf tests.
7227 ac_ext=c
7228 ac_cpp='$CPP $CPPFLAGS'
7229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7233 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7234 # On Suns, sometimes $CPP names a directory.
7235 if test -n "$CPP" && test -d "$CPP"; then
7236 CPP=
7238 if test -z "$CPP"; then
7239 if test "${ac_cv_prog_CPP+set}" = set; then :
7240 $as_echo_n "(cached) " >&6
7241 else
7242 # Double quotes because CPP needs to be expanded
7243 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7245 ac_preproc_ok=false
7246 for ac_c_preproc_warn_flag in '' yes
7248 # Use a header file that comes with gcc, so configuring glibc
7249 # with a fresh cross-compiler works.
7250 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7251 # <limits.h> exists even on freestanding compilers.
7252 # On the NeXT, cc -E runs the code through the compiler's parser,
7253 # not just through cpp. "Syntax error" is here to catch this case.
7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h. */
7256 #ifdef __STDC__
7257 # include <limits.h>
7258 #else
7259 # include <assert.h>
7260 #endif
7261 Syntax error
7262 _ACEOF
7263 if ac_fn_c_try_cpp "$LINENO"; then :
7265 else
7266 # Broken: fails on valid input.
7267 continue
7269 rm -f conftest.err conftest.$ac_ext
7271 # OK, works on sane cases. Now check whether nonexistent headers
7272 # can be detected and how.
7273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274 /* end confdefs.h. */
7275 #include <ac_nonexistent.h>
7276 _ACEOF
7277 if ac_fn_c_try_cpp "$LINENO"; then :
7278 # Broken: success on invalid input.
7279 continue
7280 else
7281 # Passes both tests.
7282 ac_preproc_ok=:
7283 break
7285 rm -f conftest.err conftest.$ac_ext
7287 done
7288 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7289 rm -f conftest.err conftest.$ac_ext
7290 if $ac_preproc_ok; then :
7291 break
7294 done
7295 ac_cv_prog_CPP=$CPP
7298 CPP=$ac_cv_prog_CPP
7299 else
7300 ac_cv_prog_CPP=$CPP
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7303 $as_echo "$CPP" >&6; }
7304 ac_preproc_ok=false
7305 for ac_c_preproc_warn_flag in '' yes
7307 # Use a header file that comes with gcc, so configuring glibc
7308 # with a fresh cross-compiler works.
7309 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7310 # <limits.h> exists even on freestanding compilers.
7311 # On the NeXT, cc -E runs the code through the compiler's parser,
7312 # not just through cpp. "Syntax error" is here to catch this case.
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315 #ifdef __STDC__
7316 # include <limits.h>
7317 #else
7318 # include <assert.h>
7319 #endif
7320 Syntax error
7321 _ACEOF
7322 if ac_fn_c_try_cpp "$LINENO"; then :
7324 else
7325 # Broken: fails on valid input.
7326 continue
7328 rm -f conftest.err conftest.$ac_ext
7330 # OK, works on sane cases. Now check whether nonexistent headers
7331 # can be detected and how.
7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333 /* end confdefs.h. */
7334 #include <ac_nonexistent.h>
7335 _ACEOF
7336 if ac_fn_c_try_cpp "$LINENO"; then :
7337 # Broken: success on invalid input.
7338 continue
7339 else
7340 # Passes both tests.
7341 ac_preproc_ok=:
7342 break
7344 rm -f conftest.err conftest.$ac_ext
7346 done
7347 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7348 rm -f conftest.err conftest.$ac_ext
7349 if $ac_preproc_ok; then :
7351 else
7352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7354 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7355 See \`config.log' for more details." "$LINENO" 5; }
7358 ac_ext=c
7359 ac_cpp='$CPP $CPPFLAGS'
7360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7365 if test "x$RANLIB" = x; then
7366 if test -n "$ac_tool_prefix"; then
7367 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7368 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370 $as_echo_n "checking for $ac_word... " >&6; }
7371 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7372 $as_echo_n "(cached) " >&6
7373 else
7374 if test -n "$RANLIB"; then
7375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7376 else
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 for as_dir in $PATH
7380 IFS=$as_save_IFS
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7384 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7386 break 2
7388 done
7389 done
7390 IFS=$as_save_IFS
7394 RANLIB=$ac_cv_prog_RANLIB
7395 if test -n "$RANLIB"; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7397 $as_echo "$RANLIB" >&6; }
7398 else
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400 $as_echo "no" >&6; }
7405 if test -z "$ac_cv_prog_RANLIB"; then
7406 ac_ct_RANLIB=$RANLIB
7407 # Extract the first word of "ranlib", so it can be a program name with args.
7408 set dummy ranlib; ac_word=$2
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410 $as_echo_n "checking for $ac_word... " >&6; }
7411 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7412 $as_echo_n "(cached) " >&6
7413 else
7414 if test -n "$ac_ct_RANLIB"; then
7415 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7416 else
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7420 IFS=$as_save_IFS
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7424 ac_cv_prog_ac_ct_RANLIB="ranlib"
7425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 break 2
7428 done
7429 done
7430 IFS=$as_save_IFS
7434 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7435 if test -n "$ac_ct_RANLIB"; then
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7437 $as_echo "$ac_ct_RANLIB" >&6; }
7438 else
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 $as_echo "no" >&6; }
7443 if test "x$ac_ct_RANLIB" = x; then
7444 RANLIB=":"
7445 else
7446 case $cross_compiling:$ac_tool_warned in
7447 yes:)
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7450 ac_tool_warned=yes ;;
7451 esac
7452 RANLIB=$ac_ct_RANLIB
7454 else
7455 RANLIB="$ac_cv_prog_RANLIB"
7460 ## Although we're running on an amd64 kernel, we're actually compiling for
7461 ## the x86 architecture. The user should probably have provided an
7462 ## explicit --build to `configure', but if everything else than the kernel
7463 ## is running in i386 mode, we can help them out.
7464 if test "$machine" = "amdx86-64"; then
7465 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7466 if test "x$ac_cv_have_decl_i386" = x""yes; then :
7470 if test "$ac_cv_have_decl_i386" = "yes"; then
7471 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7472 machine=intel386
7473 machfile="m/${machine}.h"
7477 # Extract the first word of "install-info", so it can be a program name with args.
7478 set dummy install-info; ac_word=$2
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480 $as_echo_n "checking for $ac_word... " >&6; }
7481 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7482 $as_echo_n "(cached) " >&6
7483 else
7484 case $INSTALL_INFO in
7485 [\\/]* | ?:[\\/]*)
7486 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 for as_dir in $PATH
7492 IFS=$as_save_IFS
7493 test -z "$as_dir" && as_dir=.
7494 for ac_exec_ext in '' $ac_executable_extensions; do
7495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7496 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7498 break 2
7500 done
7501 done
7502 IFS=$as_save_IFS
7505 esac
7507 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7508 if test -n "$INSTALL_INFO"; then
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7510 $as_echo "$INSTALL_INFO" >&6; }
7511 else
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513 $as_echo "no" >&6; }
7517 # Extract the first word of "install-info", so it can be a program name with args.
7518 set dummy install-info; ac_word=$2
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7520 $as_echo_n "checking for $ac_word... " >&6; }
7521 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7522 $as_echo_n "(cached) " >&6
7523 else
7524 case $INSTALL_INFO in
7525 [\\/]* | ?:[\\/]*)
7526 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530 for as_dir in /usr/sbin
7532 IFS=$as_save_IFS
7533 test -z "$as_dir" && as_dir=.
7534 for ac_exec_ext in '' $ac_executable_extensions; do
7535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7536 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 break 2
7540 done
7541 done
7542 IFS=$as_save_IFS
7545 esac
7547 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7548 if test -n "$INSTALL_INFO"; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7550 $as_echo "$INSTALL_INFO" >&6; }
7551 else
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553 $as_echo "no" >&6; }
7557 # Extract the first word of "install-info", so it can be a program name with args.
7558 set dummy install-info; ac_word=$2
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7560 $as_echo_n "checking for $ac_word... " >&6; }
7561 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7562 $as_echo_n "(cached) " >&6
7563 else
7564 case $INSTALL_INFO in
7565 [\\/]* | ?:[\\/]*)
7566 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 for as_dir in /sbin
7572 IFS=$as_save_IFS
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
7575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7576 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7578 break 2
7580 done
7581 done
7582 IFS=$as_save_IFS
7584 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7586 esac
7588 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7589 if test -n "$INSTALL_INFO"; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7591 $as_echo "$INSTALL_INFO" >&6; }
7592 else
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7598 # Extract the first word of "gzip", so it can be a program name with args.
7599 set dummy gzip; ac_word=$2
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601 $as_echo_n "checking for $ac_word... " >&6; }
7602 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7603 $as_echo_n "(cached) " >&6
7604 else
7605 case $GZIP_PROG in
7606 [\\/]* | ?:[\\/]*)
7607 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $PATH
7613 IFS=$as_save_IFS
7614 test -z "$as_dir" && as_dir=.
7615 for ac_exec_ext in '' $ac_executable_extensions; do
7616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7617 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 break 2
7621 done
7622 done
7623 IFS=$as_save_IFS
7626 esac
7628 GZIP_PROG=$ac_cv_path_GZIP_PROG
7629 if test -n "$GZIP_PROG"; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7631 $as_echo "$GZIP_PROG" >&6; }
7632 else
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7640 ## Need makeinfo >= 4.6 (?) to build the manuals.
7641 # Extract the first word of "makeinfo", so it can be a program name with args.
7642 set dummy makeinfo; ac_word=$2
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644 $as_echo_n "checking for $ac_word... " >&6; }
7645 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7646 $as_echo_n "(cached) " >&6
7647 else
7648 case $MAKEINFO in
7649 [\\/]* | ?:[\\/]*)
7650 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 for as_dir in $PATH
7656 IFS=$as_save_IFS
7657 test -z "$as_dir" && as_dir=.
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7660 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7662 break 2
7664 done
7665 done
7666 IFS=$as_save_IFS
7668 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7670 esac
7672 MAKEINFO=$ac_cv_path_MAKEINFO
7673 if test -n "$MAKEINFO"; then
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7675 $as_echo "$MAKEINFO" >&6; }
7676 else
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678 $as_echo "no" >&6; }
7682 if test "$MAKEINFO" != "no" && \
7683 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
7684 MAKEINFO=no
7687 ## Makeinfo is unusual. For a released Emacs, the manuals are
7688 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7689 ## therefore in the category of "special tools" not normally required, which
7690 ## configure does not have to check for (eg autoconf itself).
7691 ## In a Bazaar checkout on the other hand, the manuals are not included.
7692 ## So makeinfo is a requirement to build from Bazaar, and configure
7693 ## should test for it as it does for any other build requirement.
7694 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7695 ## with pre-built manuals, from a Bazaar checkout.
7696 HAVE_MAKEINFO=yes
7698 if test "$MAKEINFO" = "no"; then
7699 MAKEINFO=makeinfo
7700 if test "x${with_makeinfo}" = "xno"; then
7701 HAVE_MAKEINFO=no
7702 elif test ! -e $srcdir/info/emacs; then
7703 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
7704 source tree does not seem to have pre-built manuals in the \`info' directory.
7705 Either install a suitable version of makeinfo, or re-run configure
7706 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7712 if test x$GCC = xyes; then
7713 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7714 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7715 else
7716 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7717 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7721 late_LDFLAGS=$LDFLAGS
7722 if test x$GCC = xyes; then
7723 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7724 else
7725 LDFLAGS="$LDFLAGS -znocombreloc"
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7729 $as_echo_n "checking for -znocombreloc... " >&6; }
7730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731 /* end confdefs.h. */
7734 main ()
7738 return 0;
7740 _ACEOF
7741 if ac_fn_c_try_link "$LINENO"; then :
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7743 $as_echo "yes" >&6; }
7744 else
7745 LDFLAGS=$late_LDFLAGS
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 $as_echo "no" >&6; }
7749 rm -f core conftest.err conftest.$ac_objext \
7750 conftest$ac_exeext conftest.$ac_ext
7753 # The value of CPP is a quoted variable reference, so we need to do this
7754 # to get its actual value...
7755 CPP=`eval "echo $CPP"`
7758 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7759 case "$opsys" in
7760 your-opsys-here) CANNOT_DUMP=yes ;;
7761 esac
7763 test "$CANNOT_DUMP" = "yes" && \
7765 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7771 UNEXEC_OBJ=unexelf.o
7772 case "$opsys" in
7773 # MSDOS uses unexcoff.o
7774 # MSWindows uses unexw32.o
7775 aix4-2)
7776 UNEXEC_OBJ=unexaix.o
7778 cygwin)
7779 UNEXEC_OBJ=unexcw.o
7781 darwin)
7782 UNEXEC_OBJ=unexmacosx.o
7784 hpux10-20 | hpux11)
7785 UNEXEC_OBJ=unexhp9k800.o
7787 sol2-10)
7788 # Use the Solaris dldump() function, called from unexsol.c, to dump
7789 # emacs, instead of the generic ELF dump code found in unexelf.c.
7790 # The resulting binary has a complete symbol table, and is better
7791 # for debugging and other observability tools (debuggers, pstack, etc).
7793 # If you encounter a problem using dldump(), please consider sending
7794 # a message to the OpenSolaris tools-linking mailing list:
7795 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7797 # It is likely that dldump() works with older Solaris too, but this has
7798 # not been tested, so for now this change is for Solaris 10 or newer.
7799 UNEXEC_OBJ=unexsol.o
7801 esac
7803 LD_SWITCH_SYSTEM=
7804 case "$opsys" in
7805 freebsd)
7806 ## Let `ld' find image libs and similar things in /usr/local/lib.
7807 ## The system compiler, GCC, has apparently been modified to not
7808 ## look there, contrary to what a stock GCC would do.
7809 LD_SWITCH_SYSTEM=-L/usr/local/lib
7812 gnu-linux)
7813 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7814 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7817 netbsd)
7818 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7821 openbsd)
7822 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7823 ## otherwise Emacs dumps core on elf systems.
7824 LD_SWITCH_SYSTEM="-Z"
7826 esac
7829 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7831 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7832 ## which has not been defined yet. When this was handled with cpp,
7833 ## it was expanded to null when configure sourced the s/*.h file.
7834 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7835 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7836 ## (or somesuch), but because it is supposed to go at the _front_
7837 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7838 ## Compare with the gnu-linux case below, which added to the end
7839 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7840 ## LD_SWITCH_SYSTEM_TEMACS.
7841 case "$opsys" in
7842 netbsd|openbsd)
7843 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7844 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7845 esac
7848 C_SWITCH_MACHINE=
7849 if test "$machine" = "alpha"; then
7850 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7851 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7855 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7856 ## With ELF, make sure that all common symbols get allocated to in the
7857 ## data section. Otherwise, the dump of temacs may miss variables in
7858 ## the shared library that have been initialized. For example, with
7859 ## GNU libc, __malloc_initialized would normally be resolved to the
7860 ## shared library's .bss section, which is fatal.
7861 if test "x$GCC" = "xyes"; then
7862 C_SWITCH_MACHINE="-fno-common"
7863 else
7864 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7866 else
7867 UNEXEC_OBJ=unexalpha.o
7874 C_SWITCH_SYSTEM=
7875 ## Some programs in src produce warnings saying certain subprograms
7876 ## are too complex and need a MAXMEM value greater than 2000 for
7877 ## additional optimization. --nils@exp-math.uni-essen.de
7878 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7879 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7880 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7881 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7885 LIBS_SYSTEM=
7886 case "$opsys" in
7887 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7888 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7890 freebsd) LIBS_SYSTEM="-lutil" ;;
7892 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7894 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7896 ## Motif needs -lgen.
7897 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7898 esac
7902 ### Make sure subsequent tests use flags consistent with the build flags.
7904 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7905 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7906 else
7907 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7910 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7913 # Check whether --enable-largefile was given.
7914 if test "${enable_largefile+set}" = set; then :
7915 enableval=$enable_largefile;
7918 if test "$enable_largefile" != no; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7921 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7922 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7923 $as_echo_n "(cached) " >&6
7924 else
7925 ac_cv_sys_largefile_CC=no
7926 if test "$GCC" != yes; then
7927 ac_save_CC=$CC
7928 while :; do
7929 # IRIX 6.2 and later do not support large files by default,
7930 # so use the C compiler's -n32 option if that helps.
7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h. */
7933 #include <sys/types.h>
7934 /* Check that off_t can represent 2**63 - 1 correctly.
7935 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7936 since some C++ compilers masquerading as C compilers
7937 incorrectly reject 9223372036854775807. */
7938 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7939 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7940 && LARGE_OFF_T % 2147483647 == 1)
7941 ? 1 : -1];
7943 main ()
7947 return 0;
7949 _ACEOF
7950 if ac_fn_c_try_compile "$LINENO"; then :
7951 break
7953 rm -f core conftest.err conftest.$ac_objext
7954 CC="$CC -n32"
7955 if ac_fn_c_try_compile "$LINENO"; then :
7956 ac_cv_sys_largefile_CC=' -n32'; break
7958 rm -f core conftest.err conftest.$ac_objext
7959 break
7960 done
7961 CC=$ac_save_CC
7962 rm -f conftest.$ac_ext
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7966 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7967 if test "$ac_cv_sys_largefile_CC" != no; then
7968 CC=$CC$ac_cv_sys_largefile_CC
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7972 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7973 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7974 $as_echo_n "(cached) " >&6
7975 else
7976 while :; do
7977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978 /* end confdefs.h. */
7979 #include <sys/types.h>
7980 /* Check that off_t can represent 2**63 - 1 correctly.
7981 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7982 since some C++ compilers masquerading as C compilers
7983 incorrectly reject 9223372036854775807. */
7984 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7985 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7986 && LARGE_OFF_T % 2147483647 == 1)
7987 ? 1 : -1];
7989 main ()
7993 return 0;
7995 _ACEOF
7996 if ac_fn_c_try_compile "$LINENO"; then :
7997 ac_cv_sys_file_offset_bits=no; break
7999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8002 #define _FILE_OFFSET_BITS 64
8003 #include <sys/types.h>
8004 /* Check that off_t can represent 2**63 - 1 correctly.
8005 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8006 since some C++ compilers masquerading as C compilers
8007 incorrectly reject 9223372036854775807. */
8008 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8009 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8010 && LARGE_OFF_T % 2147483647 == 1)
8011 ? 1 : -1];
8013 main ()
8017 return 0;
8019 _ACEOF
8020 if ac_fn_c_try_compile "$LINENO"; then :
8021 ac_cv_sys_file_offset_bits=64; break
8023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8024 ac_cv_sys_file_offset_bits=unknown
8025 break
8026 done
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8029 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8030 case $ac_cv_sys_file_offset_bits in #(
8031 no | unknown) ;;
8033 cat >>confdefs.h <<_ACEOF
8034 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8035 _ACEOF
8037 esac
8038 rm -rf conftest*
8039 if test $ac_cv_sys_file_offset_bits = unknown; then
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8041 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8042 if test "${ac_cv_sys_large_files+set}" = set; then :
8043 $as_echo_n "(cached) " >&6
8044 else
8045 while :; do
8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047 /* end confdefs.h. */
8048 #include <sys/types.h>
8049 /* Check that off_t can represent 2**63 - 1 correctly.
8050 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8051 since some C++ compilers masquerading as C compilers
8052 incorrectly reject 9223372036854775807. */
8053 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8054 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8055 && LARGE_OFF_T % 2147483647 == 1)
8056 ? 1 : -1];
8058 main ()
8062 return 0;
8064 _ACEOF
8065 if ac_fn_c_try_compile "$LINENO"; then :
8066 ac_cv_sys_large_files=no; break
8068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8071 #define _LARGE_FILES 1
8072 #include <sys/types.h>
8073 /* Check that off_t can represent 2**63 - 1 correctly.
8074 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8075 since some C++ compilers masquerading as C compilers
8076 incorrectly reject 9223372036854775807. */
8077 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8078 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8079 && LARGE_OFF_T % 2147483647 == 1)
8080 ? 1 : -1];
8082 main ()
8086 return 0;
8088 _ACEOF
8089 if ac_fn_c_try_compile "$LINENO"; then :
8090 ac_cv_sys_large_files=1; break
8092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8093 ac_cv_sys_large_files=unknown
8094 break
8095 done
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8098 $as_echo "$ac_cv_sys_large_files" >&6; }
8099 case $ac_cv_sys_large_files in #(
8100 no | unknown) ;;
8102 cat >>confdefs.h <<_ACEOF
8103 #define _LARGE_FILES $ac_cv_sys_large_files
8104 _ACEOF
8106 esac
8107 rm -rf conftest*
8115 ## If user specified a crt-dir, use that unconditionally.
8116 if test "X$CRT_DIR" = "X"; then
8118 case "$canonical" in
8119 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8120 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8121 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8122 ## For anything else (eg /usr/lib32), it is up the user to specify
8123 ## the location (bug#5655).
8124 ## Test for crtn.o, not just the directory, because sometimes the
8125 ## directory exists but does not have the relevant files (bug#1287).
8126 ## FIXME better to test for binary compatibility somehow.
8127 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8130 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8131 esac
8133 case "$opsys" in
8134 hpux10-20) CRT_DIR=/lib ;;
8135 esac
8137 ## Default is /usr/lib.
8138 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
8140 ## If we're using gcc, try to determine it automatically by asking
8141 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8142 ## system-dependent default from above.]
8143 if test "x${GCC}" = xyes; then
8144 crt_file=`$CC --print-file-name=crt1.o 2>/dev/null`
8145 case "$crt_file" in
8146 */*)
8147 CRT_DIR=`$as_dirname -- "$crt_file" ||
8148 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8149 X"$crt_file" : 'X\(//\)[^/]' \| \
8150 X"$crt_file" : 'X\(//\)$' \| \
8151 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8152 $as_echo X"$crt_file" |
8153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8154 s//\1/
8157 /^X\(\/\/\)[^/].*/{
8158 s//\1/
8161 /^X\(\/\/\)$/{
8162 s//\1/
8165 /^X\(\/\).*/{
8166 s//\1/
8169 s/.*/./; q'`
8171 esac
8174 else
8176 ## Some platforms don't use any of these files, so it is not
8177 ## appropriate to put this test outside the if block.
8178 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
8179 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
8185 LIB_MATH=-lm
8186 LIB_STANDARD=
8187 START_FILES=
8189 case $opsys in
8190 cygwin )
8191 LIB_MATH=
8192 START_FILES='pre-crt0.o'
8194 darwin )
8195 ## Adding -lm confuses the dynamic linker, so omit it.
8196 LIB_MATH=
8197 START_FILES='pre-crt0.o'
8199 freebsd )
8200 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8201 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8203 gnu-linux | gnu-kfreebsd )
8204 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8205 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8207 hpux10-20 | hpux11 )
8208 LIB_STANDARD=-lc
8209 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8211 netbsd | openbsd )
8212 if test -f $CRT_DIR/crti.o; then
8213 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8214 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8215 else
8216 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8217 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8220 esac
8225 <<<<<<< TREE
8226 =======
8227 crt_files=
8229 for file in x $LIB_STANDARD $START_FILES; do
8230 case "$file" in
8231 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8232 esac
8233 done
8235 if test "x$crt_files" != x; then
8237 ## If user specified a crt-dir, use that unconditionally.
8238 crt_gcc=no
8240 if test "X$CRT_DIR" = "X"; then
8242 CRT_DIR=/usr/lib # default
8244 case "$canonical" in
8245 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8246 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8247 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8248 ## For anything else (eg /usr/lib32), it is up the user to specify
8249 ## the location (bug#5655).
8250 ## Test for crtn.o, not just the directory, because sometimes the
8251 ## directory exists but does not have the relevant files (bug#1287).
8252 ## FIXME better to test for binary compatibility somehow.
8253 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8256 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8257 esac
8259 case "$opsys" in
8260 hpux10-20) CRT_DIR=/lib ;;
8261 esac
8263 test "x${GCC}" = xyes && crt_gcc=yes
8265 fi # CRT_DIR = ""
8267 crt_missing=
8269 for file in $crt_files; do
8271 ## If we're using gcc, try to determine it automatically by asking
8272 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8273 ## system-dependent default from above.]
8274 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8276 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8277 case "$crt_file" in
8278 */*)
8279 CRT_DIR=`$as_dirname -- "$crt_file" ||
8280 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8281 X"$crt_file" : 'X\(//\)[^/]' \| \
8282 X"$crt_file" : 'X\(//\)$' \| \
8283 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8284 $as_echo X"$crt_file" |
8285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8286 s//\1/
8289 /^X\(\/\/\)[^/].*/{
8290 s//\1/
8293 /^X\(\/\/\)$/{
8294 s//\1/
8297 /^X\(\/\).*/{
8298 s//\1/
8301 s/.*/./; q'`
8303 esac
8306 crt_gcc=no
8308 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8309 done # $crt_files
8311 test "x$crt_missing" = x || \
8312 as_fn_error "Required file(s) not found:$crt_missing
8313 Try using the --with-crt-dir option." "$LINENO" 5
8315 fi # crt_files != ""
8320 >>>>>>> MERGE-SOURCE
8324 if test "${with_sound}" != "no"; then
8325 # Sound support for GNU/Linux and the free BSDs.
8326 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8327 do :
8328 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8329 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8330 eval as_val=\$$as_ac_Header
8331 if test "x$as_val" = x""yes; then :
8332 cat >>confdefs.h <<_ACEOF
8333 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8334 _ACEOF
8335 have_sound_header=yes
8338 done
8340 # Emulation library used on NetBSD.
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8342 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8343 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 ac_check_lib_save_LIBS=$LIBS
8347 LIBS="-lossaudio $LIBS"
8348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8349 /* end confdefs.h. */
8351 /* Override any GCC internal prototype to avoid an error.
8352 Use char because int might match the return type of a GCC
8353 builtin and then its argument prototype would still apply. */
8354 #ifdef __cplusplus
8355 extern "C"
8356 #endif
8357 char _oss_ioctl ();
8359 main ()
8361 return _oss_ioctl ();
8363 return 0;
8365 _ACEOF
8366 if ac_fn_c_try_link "$LINENO"; then :
8367 ac_cv_lib_ossaudio__oss_ioctl=yes
8368 else
8369 ac_cv_lib_ossaudio__oss_ioctl=no
8371 rm -f core conftest.err conftest.$ac_objext \
8372 conftest$ac_exeext conftest.$ac_ext
8373 LIBS=$ac_check_lib_save_LIBS
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8376 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8377 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8378 LIBSOUND=-lossaudio
8379 else
8380 LIBSOUND=
8385 ALSA_REQUIRED=1.0.0
8386 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8388 succeeded=no
8390 # Extract the first word of "pkg-config", so it can be a program name with args.
8391 set dummy pkg-config; ac_word=$2
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8393 $as_echo_n "checking for $ac_word... " >&6; }
8394 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8395 $as_echo_n "(cached) " >&6
8396 else
8397 case $PKG_CONFIG in
8398 [\\/]* | ?:[\\/]*)
8399 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403 for as_dir in $PATH
8405 IFS=$as_save_IFS
8406 test -z "$as_dir" && as_dir=.
8407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8409 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8411 break 2
8413 done
8414 done
8415 IFS=$as_save_IFS
8417 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8419 esac
8421 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8422 if test -n "$PKG_CONFIG"; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8424 $as_echo "$PKG_CONFIG" >&6; }
8425 else
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 $as_echo "no" >&6; }
8432 if test "$PKG_CONFIG" = "no" ; then
8433 HAVE_ALSA=no
8434 else
8435 PKG_CONFIG_MIN_VERSION=0.9.0
8436 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8438 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8440 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8442 $as_echo "yes" >&6; }
8443 succeeded=yes
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
8446 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
8447 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
8449 $as_echo "$ALSA_CFLAGS" >&6; }
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
8452 $as_echo_n "checking ALSA_LIBS... " >&6; }
8453 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
8455 $as_echo "$ALSA_LIBS" >&6; }
8456 else
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8459 ALSA_CFLAGS=""
8460 ALSA_LIBS=""
8461 ## If we have a custom action on failure, don't print errors, but
8462 ## do set a variable so people can do so.
8463 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8469 else
8470 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8471 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8475 if test $succeeded = yes; then
8476 HAVE_ALSA=yes
8477 else
8478 HAVE_ALSA=no
8481 if test $HAVE_ALSA = yes; then
8482 SAVE_CFLAGS="$CFLAGS"
8483 SAVE_LDFLAGS="$LDFLAGS"
8484 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8485 LDFLAGS="$ALSA_LIBS $LDFLAGS"
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 #include <asoundlib.h>
8490 main ()
8492 snd_lib_error_set_handler (0);
8494 return 0;
8496 _ACEOF
8497 if ac_fn_c_try_compile "$LINENO"; then :
8498 emacs_alsa_normal=yes
8499 else
8500 emacs_alsa_normal=no
8502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503 if test "$emacs_alsa_normal" != yes; then
8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h. */
8506 #include <alsa/asoundlib.h>
8508 main ()
8510 snd_lib_error_set_handler (0);
8512 return 0;
8514 _ACEOF
8515 if ac_fn_c_try_compile "$LINENO"; then :
8516 emacs_alsa_subdir=yes
8517 else
8518 emacs_alsa_subdir=no
8520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8521 if test "$emacs_alsa_subdir" != yes; then
8522 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8524 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8527 CFLAGS="$SAVE_CFLAGS"
8528 LDFLAGS="$SAVE_LDFLAGS"
8529 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8530 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8532 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8536 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8537 case "$opsys" in
8538 gnu-linux|freebsd|netbsd)
8540 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8543 esac
8549 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
8550 linux/version.h sys/systeminfo.h \
8551 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
8552 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
8553 sys/utsname.h pwd.h utmp.h dirent.h util.h
8554 do :
8555 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8556 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8557 eval as_val=\$$as_ac_Header
8558 if test "x$as_val" = x""yes; then :
8559 cat >>confdefs.h <<_ACEOF
8560 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8561 _ACEOF
8565 done
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8569 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8572 #include <sys/personality.h>
8574 main ()
8576 personality (PER_LINUX32)
8578 return 0;
8580 _ACEOF
8581 if ac_fn_c_try_compile "$LINENO"; then :
8582 emacs_cv_personality_linux32=yes
8583 else
8584 emacs_cv_personality_linux32=no
8586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8588 $as_echo "$emacs_cv_personality_linux32" >&6; }
8590 if test $emacs_cv_personality_linux32 = yes; then
8592 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8596 for ac_header in term.h
8597 do :
8598 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8599 if test "x$ac_cv_header_term_h" = x""yes; then :
8600 cat >>confdefs.h <<_ACEOF
8601 #define HAVE_TERM_H 1
8602 _ACEOF
8606 done
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8609 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8610 if test "${ac_cv_header_time+set}" = set; then :
8611 $as_echo_n "(cached) " >&6
8612 else
8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8615 #include <sys/types.h>
8616 #include <sys/time.h>
8617 #include <time.h>
8620 main ()
8622 if ((struct tm *) 0)
8623 return 0;
8625 return 0;
8627 _ACEOF
8628 if ac_fn_c_try_compile "$LINENO"; then :
8629 ac_cv_header_time=yes
8630 else
8631 ac_cv_header_time=no
8633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8636 $as_echo "$ac_cv_header_time" >&6; }
8637 if test $ac_cv_header_time = yes; then
8639 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8643 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8644 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8645 ac_have_decl=1
8646 else
8647 ac_have_decl=0
8650 cat >>confdefs.h <<_ACEOF
8651 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8652 _ACEOF
8654 if test $ac_cv_have_decl_sys_siglist != yes; then
8655 # For Tru64, at least:
8656 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8657 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8658 ac_have_decl=1
8659 else
8660 ac_have_decl=0
8663 cat >>confdefs.h <<_ACEOF
8664 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8665 _ACEOF
8667 if test $ac_cv_have_decl___sys_siglist = yes; then
8669 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8674 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8675 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8676 $as_echo_n "(cached) " >&6
8677 else
8678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8679 /* end confdefs.h. */
8680 #include <sys/types.h>
8681 #include <sys/wait.h>
8682 #ifndef WEXITSTATUS
8683 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8684 #endif
8685 #ifndef WIFEXITED
8686 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8687 #endif
8690 main ()
8692 int s;
8693 wait (&s);
8694 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8696 return 0;
8698 _ACEOF
8699 if ac_fn_c_try_compile "$LINENO"; then :
8700 ac_cv_header_sys_wait_h=yes
8701 else
8702 ac_cv_header_sys_wait_h=no
8704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8707 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8708 if test $ac_cv_header_sys_wait_h = yes; then
8710 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8716 $as_echo_n "checking for struct utimbuf... " >&6; }
8717 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8718 $as_echo_n "(cached) " >&6
8719 else
8720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h. */
8722 #ifdef TIME_WITH_SYS_TIME
8723 #include <sys/time.h>
8724 #include <time.h>
8725 #else
8726 #ifdef HAVE_SYS_TIME_H
8727 #include <sys/time.h>
8728 #else
8729 #include <time.h>
8730 #endif
8731 #endif
8732 #ifdef HAVE_UTIME_H
8733 #include <utime.h>
8734 #endif
8736 main ()
8738 static struct utimbuf x; x.actime = x.modtime;
8740 return 0;
8742 _ACEOF
8743 if ac_fn_c_try_compile "$LINENO"; then :
8744 emacs_cv_struct_utimbuf=yes
8745 else
8746 emacs_cv_struct_utimbuf=no
8748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8751 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8752 if test $emacs_cv_struct_utimbuf = yes; then
8754 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8759 $as_echo_n "checking for speed_t... " >&6; }
8760 if test "${emacs_cv_speed_t+set}" = set; then :
8761 $as_echo_n "(cached) " >&6
8762 else
8763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8764 /* end confdefs.h. */
8765 #include <termios.h>
8767 main ()
8769 speed_t x = 1;
8771 return 0;
8773 _ACEOF
8774 if ac_fn_c_try_compile "$LINENO"; then :
8775 emacs_cv_speed_t=yes
8776 else
8777 emacs_cv_speed_t=no
8779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8782 $as_echo "$emacs_cv_speed_t" >&6; }
8783 if test $emacs_cv_speed_t = yes; then
8785 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8790 $as_echo_n "checking for struct timeval... " >&6; }
8791 if test "${emacs_cv_struct_timeval+set}" = set; then :
8792 $as_echo_n "(cached) " >&6
8793 else
8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8796 #ifdef TIME_WITH_SYS_TIME
8797 #include <sys/time.h>
8798 #include <time.h>
8799 #else
8800 #ifdef HAVE_SYS_TIME_H
8801 #include <sys/time.h>
8802 #else
8803 #include <time.h>
8804 #endif
8805 #endif
8807 main ()
8809 static struct timeval x; x.tv_sec = x.tv_usec;
8811 return 0;
8813 _ACEOF
8814 if ac_fn_c_try_compile "$LINENO"; then :
8815 emacs_cv_struct_timeval=yes
8816 else
8817 emacs_cv_struct_timeval=no
8819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8822 $as_echo "$emacs_cv_struct_timeval" >&6; }
8823 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8824 if test $emacs_cv_struct_timeval = yes; then
8826 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8831 $as_echo_n "checking for struct exception... " >&6; }
8832 if test "${emacs_cv_struct_exception+set}" = set; then :
8833 $as_echo_n "(cached) " >&6
8834 else
8835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h. */
8837 #include <math.h>
8839 main ()
8841 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8843 return 0;
8845 _ACEOF
8846 if ac_fn_c_try_compile "$LINENO"; then :
8847 emacs_cv_struct_exception=yes
8848 else
8849 emacs_cv_struct_exception=no
8851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8854 $as_echo "$emacs_cv_struct_exception" >&6; }
8855 HAVE_EXCEPTION=$emacs_cv_struct_exception
8856 if test $emacs_cv_struct_exception != yes; then
8858 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8862 <<<<<<< TREE
8863 =======
8864 for ac_header in sys/socket.h
8865 do :
8866 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8867 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
8868 cat >>confdefs.h <<_ACEOF
8869 #define HAVE_SYS_SOCKET_H 1
8870 _ACEOF
8874 done
8876 >>>>>>> MERGE-SOURCE
8877 for ac_header in net/if.h
8878 do :
8879 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8880 #if HAVE_SYS_SOCKET_H
8881 #include <sys/socket.h>
8882 #endif
8884 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8885 cat >>confdefs.h <<_ACEOF
8886 #define HAVE_NET_IF_H 1
8887 _ACEOF
8891 done
8893 <<<<<<< TREE
8894 =======
8895 for ac_header in ifaddrs.h
8896 do :
8897 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8898 #if HAVE_SYS_SOCKET_H
8899 #include <sys/socket.h>
8900 #endif
8902 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8903 cat >>confdefs.h <<_ACEOF
8904 #define HAVE_IFADDRS_H 1
8905 _ACEOF
8909 done
8911 for ac_header in net/if_dl.h
8912 do :
8913 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8914 #if HAVE_SYS_SOCKET_H
8915 #include <sys/socket.h>
8916 #endif
8918 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8919 cat >>confdefs.h <<_ACEOF
8920 #define HAVE_NET_IF_DL_H 1
8921 _ACEOF
8925 done
8927 for ac_func in getifaddrs freeifaddrs
8928 do :
8929 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8930 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8931 eval as_val=\$$as_ac_var
8932 if test "x$as_val" = x""yes; then :
8933 cat >>confdefs.h <<_ACEOF
8934 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8935 _ACEOF
8938 done
8940 >>>>>>> MERGE-SOURCE
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8943 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8944 if test "${ac_cv_struct_tm+set}" = set; then :
8945 $as_echo_n "(cached) " >&6
8946 else
8947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8948 /* end confdefs.h. */
8949 #include <sys/types.h>
8950 #include <time.h>
8953 main ()
8955 struct tm tm;
8956 int *p = &tm.tm_sec;
8957 return !p;
8959 return 0;
8961 _ACEOF
8962 if ac_fn_c_try_compile "$LINENO"; then :
8963 ac_cv_struct_tm=time.h
8964 else
8965 ac_cv_struct_tm=sys/time.h
8967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8970 $as_echo "$ac_cv_struct_tm" >&6; }
8971 if test $ac_cv_struct_tm = sys/time.h; then
8973 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8977 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8978 #include <$ac_cv_struct_tm>
8981 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
8983 cat >>confdefs.h <<_ACEOF
8984 #define HAVE_STRUCT_TM_TM_ZONE 1
8985 _ACEOF
8990 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8992 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8994 else
8995 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8997 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
8998 ac_have_decl=1
8999 else
9000 ac_have_decl=0
9003 cat >>confdefs.h <<_ACEOF
9004 #define HAVE_DECL_TZNAME $ac_have_decl
9005 _ACEOF
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
9008 $as_echo_n "checking for tzname... " >&6; }
9009 if test "${ac_cv_var_tzname+set}" = set; then :
9010 $as_echo_n "(cached) " >&6
9011 else
9012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9013 /* end confdefs.h. */
9014 #include <time.h>
9015 #if !HAVE_DECL_TZNAME
9016 extern char *tzname[];
9017 #endif
9020 main ()
9022 return tzname[0][0];
9024 return 0;
9026 _ACEOF
9027 if ac_fn_c_try_link "$LINENO"; then :
9028 ac_cv_var_tzname=yes
9029 else
9030 ac_cv_var_tzname=no
9032 rm -f core conftest.err conftest.$ac_objext \
9033 conftest$ac_exeext conftest.$ac_ext
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
9036 $as_echo "$ac_cv_var_tzname" >&6; }
9037 if test $ac_cv_var_tzname = yes; then
9039 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
9044 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
9046 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
9048 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
9052 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9053 #if HAVE_SYS_SOCKET_H
9054 #include <sys/socket.h>
9055 #endif
9056 #if HAVE_NET_IF_H
9057 #include <net/if.h>
9058 #endif
9060 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9062 cat >>confdefs.h <<_ACEOF
9063 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9064 _ACEOF
9068 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9069 #if HAVE_SYS_SOCKET_H
9070 #include <sys/socket.h>
9071 #endif
9072 #if HAVE_NET_IF_H
9073 #include <net/if.h>
9074 #endif
9076 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9078 cat >>confdefs.h <<_ACEOF
9079 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9080 _ACEOF
9084 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9085 #if HAVE_SYS_SOCKET_H
9086 #include <sys/socket.h>
9087 #endif
9088 #if HAVE_NET_IF_H
9089 #include <net/if.h>
9090 #endif
9092 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9094 cat >>confdefs.h <<_ACEOF
9095 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9096 _ACEOF
9100 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9101 #if HAVE_SYS_SOCKET_H
9102 #include <sys/socket.h>
9103 #endif
9104 #if HAVE_NET_IF_H
9105 #include <net/if.h>
9106 #endif
9108 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9110 cat >>confdefs.h <<_ACEOF
9111 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9112 _ACEOF
9116 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9117 #if HAVE_SYS_SOCKET_H
9118 #include <sys/socket.h>
9119 #endif
9120 #if HAVE_NET_IF_H
9121 #include <net/if.h>
9122 #endif
9124 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9126 cat >>confdefs.h <<_ACEOF
9127 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9128 _ACEOF
9132 <<<<<<< TREE
9133 =======
9134 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9135 #if HAVE_SYS_SOCKET_H
9136 #include <sys/socket.h>
9137 #endif
9138 #if HAVE_NET_IF_H
9139 #include <net/if.h>
9140 #endif
9142 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9144 cat >>confdefs.h <<_ACEOF
9145 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9146 _ACEOF
9150 >>>>>>> MERGE-SOURCE
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
9155 $as_echo_n "checking for function prototypes... " >&6; }
9156 if test "$ac_cv_prog_cc_c89" != no; then
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9158 $as_echo "yes" >&6; }
9160 $as_echo "#define PROTOTYPES 1" >>confdefs.h
9163 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
9165 else
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 $as_echo "no" >&6; }
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9171 $as_echo_n "checking for working volatile... " >&6; }
9172 if test "${ac_cv_c_volatile+set}" = set; then :
9173 $as_echo_n "(cached) " >&6
9174 else
9175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176 /* end confdefs.h. */
9179 main ()
9182 volatile int x;
9183 int * volatile y = (int *) 0;
9184 return !x && !y;
9186 return 0;
9188 _ACEOF
9189 if ac_fn_c_try_compile "$LINENO"; then :
9190 ac_cv_c_volatile=yes
9191 else
9192 ac_cv_c_volatile=no
9194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9197 $as_echo "$ac_cv_c_volatile" >&6; }
9198 if test $ac_cv_c_volatile = no; then
9200 $as_echo "#define volatile /**/" >>confdefs.h
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9205 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9206 if test "${ac_cv_c_const+set}" = set; then :
9207 $as_echo_n "(cached) " >&6
9208 else
9209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210 /* end confdefs.h. */
9213 main ()
9215 /* FIXME: Include the comments suggested by Paul. */
9216 #ifndef __cplusplus
9217 /* Ultrix mips cc rejects this. */
9218 typedef int charset[2];
9219 const charset cs;
9220 /* SunOS 4.1.1 cc rejects this. */
9221 char const *const *pcpcc;
9222 char **ppc;
9223 /* NEC SVR4.0.2 mips cc rejects this. */
9224 struct point {int x, y;};
9225 static struct point const zero = {0,0};
9226 /* AIX XL C 1.02.0.0 rejects this.
9227 It does not let you subtract one const X* pointer from another in
9228 an arm of an if-expression whose if-part is not a constant
9229 expression */
9230 const char *g = "string";
9231 pcpcc = &g + (g ? g-g : 0);
9232 /* HPUX 7.0 cc rejects these. */
9233 ++pcpcc;
9234 ppc = (char**) pcpcc;
9235 pcpcc = (char const *const *) ppc;
9236 { /* SCO 3.2v4 cc rejects this. */
9237 char *t;
9238 char const *s = 0 ? (char *) 0 : (char const *) 0;
9240 *t++ = 0;
9241 if (s) return 0;
9243 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9244 int x[] = {25, 17};
9245 const int *foo = &x[0];
9246 ++foo;
9248 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9249 typedef const int *iptr;
9250 iptr p = 0;
9251 ++p;
9253 { /* AIX XL C 1.02.0.0 rejects this saying
9254 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9255 struct s { int j; const int *ap[3]; };
9256 struct s *b; b->j = 5;
9258 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9259 const int foo = 10;
9260 if (!foo) return 0;
9262 return !cs[0] && !zero.x;
9263 #endif
9266 return 0;
9268 _ACEOF
9269 if ac_fn_c_try_compile "$LINENO"; then :
9270 ac_cv_c_const=yes
9271 else
9272 ac_cv_c_const=no
9274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9277 $as_echo "$ac_cv_c_const" >&6; }
9278 if test $ac_cv_c_const = no; then
9280 $as_echo "#define const /**/" >>confdefs.h
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9285 $as_echo_n "checking for void * support... " >&6; }
9286 if test "${emacs_cv_void_star+set}" = set; then :
9287 $as_echo_n "(cached) " >&6
9288 else
9289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9290 /* end confdefs.h. */
9293 main ()
9295 void * foo;
9297 return 0;
9299 _ACEOF
9300 if ac_fn_c_try_compile "$LINENO"; then :
9301 emacs_cv_void_star=yes
9302 else
9303 emacs_cv_void_star=no
9305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9308 $as_echo "$emacs_cv_void_star" >&6; }
9309 if test $emacs_cv_void_star = yes; then
9310 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9312 else
9313 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9318 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9319 if test "${ac_cv_c_bigendian+set}" = set; then :
9320 $as_echo_n "(cached) " >&6
9321 else
9322 ac_cv_c_bigendian=unknown
9323 # See if we're dealing with a universal compiler.
9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h. */
9326 #ifndef __APPLE_CC__
9327 not a universal capable compiler
9328 #endif
9329 typedef int dummy;
9331 _ACEOF
9332 if ac_fn_c_try_compile "$LINENO"; then :
9334 # Check for potential -arch flags. It is not universal unless
9335 # there are at least two -arch flags with different values.
9336 ac_arch=
9337 ac_prev=
9338 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9339 if test -n "$ac_prev"; then
9340 case $ac_word in
9341 i?86 | x86_64 | ppc | ppc64)
9342 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9343 ac_arch=$ac_word
9344 else
9345 ac_cv_c_bigendian=universal
9346 break
9349 esac
9350 ac_prev=
9351 elif test "x$ac_word" = "x-arch"; then
9352 ac_prev=arch
9354 done
9356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9357 if test $ac_cv_c_bigendian = unknown; then
9358 # See if sys/param.h defines the BYTE_ORDER macro.
9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h. */
9361 #include <sys/types.h>
9362 #include <sys/param.h>
9365 main ()
9367 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9368 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9369 && LITTLE_ENDIAN)
9370 bogus endian macros
9371 #endif
9374 return 0;
9376 _ACEOF
9377 if ac_fn_c_try_compile "$LINENO"; then :
9378 # It does; now see whether it defined to BIG_ENDIAN or not.
9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h. */
9381 #include <sys/types.h>
9382 #include <sys/param.h>
9385 main ()
9387 #if BYTE_ORDER != BIG_ENDIAN
9388 not big endian
9389 #endif
9392 return 0;
9394 _ACEOF
9395 if ac_fn_c_try_compile "$LINENO"; then :
9396 ac_cv_c_bigendian=yes
9397 else
9398 ac_cv_c_bigendian=no
9400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9404 if test $ac_cv_c_bigendian = unknown; then
9405 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9407 /* end confdefs.h. */
9408 #include <limits.h>
9411 main ()
9413 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9414 bogus endian macros
9415 #endif
9418 return 0;
9420 _ACEOF
9421 if ac_fn_c_try_compile "$LINENO"; then :
9422 # It does; now see whether it defined to _BIG_ENDIAN or not.
9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h. */
9425 #include <limits.h>
9428 main ()
9430 #ifndef _BIG_ENDIAN
9431 not big endian
9432 #endif
9435 return 0;
9437 _ACEOF
9438 if ac_fn_c_try_compile "$LINENO"; then :
9439 ac_cv_c_bigendian=yes
9440 else
9441 ac_cv_c_bigendian=no
9443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9447 if test $ac_cv_c_bigendian = unknown; then
9448 # Compile a test program.
9449 if test "$cross_compiling" = yes; then :
9450 # Try to guess by grepping values from an object file.
9451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9452 /* end confdefs.h. */
9453 short int ascii_mm[] =
9454 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9455 short int ascii_ii[] =
9456 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9457 int use_ascii (int i) {
9458 return ascii_mm[i] + ascii_ii[i];
9460 short int ebcdic_ii[] =
9461 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9462 short int ebcdic_mm[] =
9463 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9464 int use_ebcdic (int i) {
9465 return ebcdic_mm[i] + ebcdic_ii[i];
9467 extern int foo;
9470 main ()
9472 return use_ascii (foo) == use_ebcdic (foo);
9474 return 0;
9476 _ACEOF
9477 if ac_fn_c_try_compile "$LINENO"; then :
9478 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9479 ac_cv_c_bigendian=yes
9481 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9482 if test "$ac_cv_c_bigendian" = unknown; then
9483 ac_cv_c_bigendian=no
9484 else
9485 # finding both strings is unlikely to happen, but who knows?
9486 ac_cv_c_bigendian=unknown
9490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9491 else
9492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9493 /* end confdefs.h. */
9494 $ac_includes_default
9496 main ()
9499 /* Are we little or big endian? From Harbison&Steele. */
9500 union
9502 long int l;
9503 char c[sizeof (long int)];
9504 } u;
9505 u.l = 1;
9506 return u.c[sizeof (long int) - 1] == 1;
9509 return 0;
9511 _ACEOF
9512 if ac_fn_c_try_run "$LINENO"; then :
9513 ac_cv_c_bigendian=no
9514 else
9515 ac_cv_c_bigendian=yes
9517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9518 conftest.$ac_objext conftest.beam conftest.$ac_ext
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9524 $as_echo "$ac_cv_c_bigendian" >&6; }
9525 case $ac_cv_c_bigendian in #(
9526 yes)
9527 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9528 ;; #(
9530 ;; #(
9531 universal)
9533 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9535 ;; #(
9537 as_fn_error "unknown endianness
9538 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9539 esac
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9543 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9544 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h. */
9549 char __attribute__ ((__aligned__ (1 << 3))) c;
9551 main ()
9555 return 0;
9557 _ACEOF
9558 if ac_fn_c_try_compile "$LINENO"; then :
9559 emacs_cv_attribute_aligned=yes
9560 else
9561 emacs_cv_attribute_aligned=no
9563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9566 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9567 if test $emacs_cv_attribute_aligned = yes; then
9569 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9574 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9575 set x ${MAKE-make}
9576 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9577 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9578 $as_echo_n "(cached) " >&6
9579 else
9580 cat >conftest.make <<\_ACEOF
9581 SHELL = /bin/sh
9582 all:
9583 @echo '@@@%%%=$(MAKE)=@@@%%%'
9584 _ACEOF
9585 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9586 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9587 *@@@%%%=?*=@@@%%%*)
9588 eval ac_cv_prog_make_${ac_make}_set=yes;;
9590 eval ac_cv_prog_make_${ac_make}_set=no;;
9591 esac
9592 rm -f conftest.make
9594 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9596 $as_echo "yes" >&6; }
9597 SET_MAKE=
9598 else
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9600 $as_echo "no" >&6; }
9601 SET_MAKE="MAKE=${MAKE-make}"
9605 DEPFLAGS=
9606 MKDEPDIR=":"
9607 deps_frag=deps.mk
9608 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9610 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9611 HAVE_GNU_MAKE=no
9612 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9613 if test "x$testval" != x; then
9614 HAVE_GNU_MAKE=yes
9615 else
9616 ac_enable_autodepend=no
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9619 $as_echo "$HAVE_GNU_MAKE" >&6; }
9620 if test $HAVE_GNU_MAKE = yes; then
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9622 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9623 SAVE_CFLAGS="$CFLAGS"
9624 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h. */
9629 main ()
9633 return 0;
9635 _ACEOF
9636 if ac_fn_c_try_compile "$LINENO"; then :
9638 else
9639 ac_enable_autodepend=no
9641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9642 CFLAGS="$SAVE_CFLAGS"
9643 test -f deps.d || ac_enable_autodepend=no
9644 rm -rf deps.d
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9646 $as_echo "$ac_enable_autodepend" >&6; }
9648 if test $ac_enable_autodepend = yes; then
9649 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9650 ## In parallel builds, another make might create depdir between
9651 ## the first test and mkdir, so stick another test on the end.
9652 ## Or use install-sh -d? mkdir -p is not portable.
9653 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9654 deps_frag=autodeps.mk
9657 deps_frag=$srcdir/src/$deps_frag
9663 lisp_frag=$srcdir/src/lisp.mk
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9668 $as_echo_n "checking for long file names... " >&6; }
9669 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9670 $as_echo_n "(cached) " >&6
9671 else
9672 ac_cv_sys_long_file_names=yes
9673 # Test for long file names in all the places we know might matter:
9674 # . the current directory, where building will happen
9675 # $prefix/lib where we will be installing things
9676 # $exec_prefix/lib likewise
9677 # $TMPDIR if set, where it might want to write temporary files
9678 # /tmp where it might want to write temporary files
9679 # /var/tmp likewise
9680 # /usr/tmp likewise
9681 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9682 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9683 # in the usual case where exec_prefix is '${prefix}'.
9684 case $ac_dir in #(
9685 . | /* | ?:[\\/]*) ;; #(
9686 *) continue;;
9687 esac
9688 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9689 ac_xdir=$ac_dir/cf$$
9690 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9691 ac_tf1=$ac_xdir/conftest9012345
9692 ac_tf2=$ac_xdir/conftest9012346
9693 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9694 ac_cv_sys_long_file_names=no
9695 rm -f -r "$ac_xdir" 2>/dev/null
9696 test $ac_cv_sys_long_file_names = no && break
9697 done
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9700 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9701 if test $ac_cv_sys_long_file_names = yes; then
9703 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9708 #### Choose a window system.
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9711 $as_echo_n "checking for X... " >&6; }
9714 # Check whether --with-x was given.
9715 if test "${with_x+set}" = set; then :
9716 withval=$with_x;
9719 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9720 if test "x$with_x" = xno; then
9721 # The user explicitly disabled X.
9722 have_x=disabled
9723 else
9724 case $x_includes,$x_libraries in #(
9725 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9726 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9727 $as_echo_n "(cached) " >&6
9728 else
9729 # One or both of the vars are not set, and there is no cached value.
9730 ac_x_includes=no ac_x_libraries=no
9731 rm -f -r conftest.dir
9732 if mkdir conftest.dir; then
9733 cd conftest.dir
9734 cat >Imakefile <<'_ACEOF'
9735 incroot:
9736 @echo incroot='${INCROOT}'
9737 usrlibdir:
9738 @echo usrlibdir='${USRLIBDIR}'
9739 libdir:
9740 @echo libdir='${LIBDIR}'
9741 _ACEOF
9742 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9743 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9744 for ac_var in incroot usrlibdir libdir; do
9745 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9746 done
9747 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9748 for ac_extension in a so sl dylib la dll; do
9749 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9750 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9751 ac_im_usrlibdir=$ac_im_libdir; break
9753 done
9754 # Screen out bogus values from the imake configuration. They are
9755 # bogus both because they are the default anyway, and because
9756 # using them would break gcc on systems where it needs fixed includes.
9757 case $ac_im_incroot in
9758 /usr/include) ac_x_includes= ;;
9759 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9760 esac
9761 case $ac_im_usrlibdir in
9762 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9763 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9764 esac
9766 cd ..
9767 rm -f -r conftest.dir
9770 # Standard set of common directories for X headers.
9771 # Check X11 before X11Rn because it is often a symlink to the current release.
9772 ac_x_header_dirs='
9773 /usr/X11/include
9774 /usr/X11R7/include
9775 /usr/X11R6/include
9776 /usr/X11R5/include
9777 /usr/X11R4/include
9779 /usr/include/X11
9780 /usr/include/X11R7
9781 /usr/include/X11R6
9782 /usr/include/X11R5
9783 /usr/include/X11R4
9785 /usr/local/X11/include
9786 /usr/local/X11R7/include
9787 /usr/local/X11R6/include
9788 /usr/local/X11R5/include
9789 /usr/local/X11R4/include
9791 /usr/local/include/X11
9792 /usr/local/include/X11R7
9793 /usr/local/include/X11R6
9794 /usr/local/include/X11R5
9795 /usr/local/include/X11R4
9797 /usr/X386/include
9798 /usr/x386/include
9799 /usr/XFree86/include/X11
9801 /usr/include
9802 /usr/local/include
9803 /usr/unsupported/include
9804 /usr/athena/include
9805 /usr/local/x11r5/include
9806 /usr/lpp/Xamples/include
9808 /usr/openwin/include
9809 /usr/openwin/share/include'
9811 if test "$ac_x_includes" = no; then
9812 # Guess where to find include files, by looking for Xlib.h.
9813 # First, try using that file with no special directory specified.
9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h. */
9816 #include <X11/Xlib.h>
9817 _ACEOF
9818 if ac_fn_c_try_cpp "$LINENO"; then :
9819 # We can compile using X headers with no special include directory.
9820 ac_x_includes=
9821 else
9822 for ac_dir in $ac_x_header_dirs; do
9823 if test -r "$ac_dir/X11/Xlib.h"; then
9824 ac_x_includes=$ac_dir
9825 break
9827 done
9829 rm -f conftest.err conftest.$ac_ext
9830 fi # $ac_x_includes = no
9832 if test "$ac_x_libraries" = no; then
9833 # Check for the libraries.
9834 # See if we find them without any special options.
9835 # Don't add to $LIBS permanently.
9836 ac_save_LIBS=$LIBS
9837 LIBS="-lX11 $LIBS"
9838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9839 /* end confdefs.h. */
9840 #include <X11/Xlib.h>
9842 main ()
9844 XrmInitialize ()
9846 return 0;
9848 _ACEOF
9849 if ac_fn_c_try_link "$LINENO"; then :
9850 LIBS=$ac_save_LIBS
9851 # We can link X programs with no special library path.
9852 ac_x_libraries=
9853 else
9854 LIBS=$ac_save_LIBS
9855 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9857 # Don't even attempt the hair of trying to link an X program!
9858 for ac_extension in a so sl dylib la dll; do
9859 if test -r "$ac_dir/libX11.$ac_extension"; then
9860 ac_x_libraries=$ac_dir
9861 break 2
9863 done
9864 done
9866 rm -f core conftest.err conftest.$ac_objext \
9867 conftest$ac_exeext conftest.$ac_ext
9868 fi # $ac_x_libraries = no
9870 case $ac_x_includes,$ac_x_libraries in #(
9871 no,* | *,no | *\'*)
9872 # Didn't find X, or a directory has "'" in its name.
9873 ac_cv_have_x="have_x=no";; #(
9875 # Record where we found X for the cache.
9876 ac_cv_have_x="have_x=yes\
9877 ac_x_includes='$ac_x_includes'\
9878 ac_x_libraries='$ac_x_libraries'"
9879 esac
9881 ;; #(
9882 *) have_x=yes;;
9883 esac
9884 eval "$ac_cv_have_x"
9885 fi # $with_x != no
9887 if test "$have_x" != yes; then
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9889 $as_echo "$have_x" >&6; }
9890 no_x=yes
9891 else
9892 # If each of the values was on the command line, it overrides each guess.
9893 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9894 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9895 # Update the cache value to reflect the command line values.
9896 ac_cv_have_x="have_x=yes\
9897 ac_x_includes='$x_includes'\
9898 ac_x_libraries='$x_libraries'"
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9900 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9903 if test "$no_x" = yes; then
9904 window_system=none
9905 else
9906 window_system=x11
9909 ## Workaround for bug in autoconf <= 2.62.
9910 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9911 ## No need to do anything special for these standard directories.
9912 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9914 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9918 LD_SWITCH_X_SITE_AUX=
9919 LD_SWITCH_X_SITE_AUX_RPATH=
9920 if test "${x_libraries}" != NONE; then
9921 if test -n "${x_libraries}"; then
9922 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9923 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9924 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9926 x_default_search_path=""
9927 x_search_path=${x_libraries}
9928 if test -z "${x_search_path}"; then
9929 x_search_path=/usr/lib
9931 for x_library in `echo ${x_search_path}: | \
9932 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9933 x_search_path="\
9934 ${x_library}/X11/%L/%T/%N%C%S:\
9935 ${x_library}/X11/%l/%T/%N%C%S:\
9936 ${x_library}/X11/%T/%N%C%S:\
9937 ${x_library}/X11/%L/%T/%N%S:\
9938 ${x_library}/X11/%l/%T/%N%S:\
9939 ${x_library}/X11/%T/%N%S"
9940 if test x"${x_default_search_path}" = x; then
9941 x_default_search_path=${x_search_path}
9942 else
9943 x_default_search_path="${x_search_path}:${x_default_search_path}"
9945 done
9950 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9951 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9954 if test x"${x_includes}" = x; then
9955 bitmapdir=/usr/include/X11/bitmaps
9956 else
9957 # accumulate include directories that have X11 bitmap subdirectories
9958 bmd_acc="dummyval"
9959 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9960 if test -d "${bmd}/X11/bitmaps"; then
9961 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9963 if test -d "${bmd}/bitmaps"; then
9964 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9966 done
9967 if test ${bmd_acc} != "dummyval"; then
9968 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9972 HAVE_NS=no
9973 NS_IMPL_COCOA=no
9974 NS_IMPL_GNUSTEP=no
9975 tmp_CPPFLAGS="$CPPFLAGS"
9976 tmp_CFLAGS="$CFLAGS"
9977 CPPFLAGS="$CPPFLAGS -x objective-c"
9978 CFLAGS="$CFLAGS -x objective-c"
9979 TEMACS_LDFLAGS2="\${LDFLAGS}"
9980 if test "${with_ns}" != no; then
9981 if test "${opsys}" = darwin; then
9982 NS_IMPL_COCOA=yes
9983 ns_appdir=`pwd`/nextstep/Emacs.app
9984 ns_appbindir=${ns_appdir}/Contents/MacOS/
9985 ns_appresdir=${ns_appdir}/Contents/Resources
9986 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9987 elif test -f $GNUSTEP_CONFIG_FILE; then
9988 NS_IMPL_GNUSTEP=yes
9989 ns_appdir=`pwd`/nextstep/Emacs.app
9990 ns_appbindir=${ns_appdir}/
9991 ns_appresdir=${ns_appdir}/Resources
9992 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9993 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9994 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9995 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9996 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9997 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9998 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9999 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
10000 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
10001 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10002 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10003 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
10004 LIB_STANDARD=
10005 START_FILES=
10006 TEMACS_LDFLAGS2=
10008 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
10009 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
10010 HAVE_NS=yes
10011 else
10012 as_fn_error "\`--with-ns' was specified, but the include
10013 files are missing or cannot be compiled." "$LINENO" 5
10017 NS_HAVE_NSINTEGER=yes
10018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10019 /* end confdefs.h. */
10020 #include <Foundation/NSObjCRuntime.h>
10022 main ()
10024 NSInteger i;
10026 return 0;
10028 _ACEOF
10029 if ac_fn_c_try_compile "$LINENO"; then :
10030 ns_have_nsinteger=yes
10031 else
10032 ns_have_nsinteger=no
10034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10035 if test $ns_have_nsinteger = no; then
10036 NS_HAVE_NSINTEGER=no
10041 ns_frag=/dev/null
10042 NS_OBJ=
10043 NS_OBJC_OBJ=
10044 if test "${HAVE_NS}" = yes; then
10045 window_system=nextstep
10046 with_xft=no
10047 # set up packaging dirs
10048 exec_prefix=${ns_appbindir}
10049 libexecdir=${ns_appbindir}/libexec
10050 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10051 prefix=${ns_appresdir}
10053 ns_frag=$srcdir/src/ns.mk
10054 NS_OBJ="fontset.o fringe.o image.o"
10055 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
10057 CFLAGS="$tmp_CFLAGS"
10058 CPPFLAGS="$tmp_CPPFLAGS"
10064 case "${window_system}" in
10065 x11 )
10066 HAVE_X_WINDOWS=yes
10067 HAVE_X11=yes
10068 case "${with_x_toolkit}" in
10069 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10070 motif ) USE_X_TOOLKIT=MOTIF ;;
10071 gtk ) with_gtk=yes
10072 USE_X_TOOLKIT=none ;;
10073 gtk3 ) with_gtk3=yes
10074 USE_X_TOOLKIT=none ;;
10075 no ) USE_X_TOOLKIT=none ;;
10076 * ) USE_X_TOOLKIT=maybe ;;
10077 esac
10079 nextstep | none )
10080 HAVE_X_WINDOWS=no
10081 HAVE_X11=no
10082 USE_X_TOOLKIT=none
10084 esac
10086 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10087 # Extract the first word of "X", so it can be a program name with args.
10088 set dummy X; ac_word=$2
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10090 $as_echo_n "checking for $ac_word... " >&6; }
10091 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10092 $as_echo_n "(cached) " >&6
10093 else
10094 if test -n "$HAVE_XSERVER"; then
10095 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10096 else
10097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098 for as_dir in $PATH
10100 IFS=$as_save_IFS
10101 test -z "$as_dir" && as_dir=.
10102 for ac_exec_ext in '' $ac_executable_extensions; do
10103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10104 ac_cv_prog_HAVE_XSERVER="true"
10105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10106 break 2
10108 done
10109 done
10110 IFS=$as_save_IFS
10112 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10115 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10116 if test -n "$HAVE_XSERVER"; then
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10118 $as_echo "$HAVE_XSERVER" >&6; }
10119 else
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10121 $as_echo "no" >&6; }
10125 if test "$HAVE_XSERVER" = true ||
10126 test -n "$DISPLAY" ||
10127 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10128 as_fn_error "You seem to be running X, but no X development libraries
10129 were found. You should install the relevant development files for X
10130 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10131 sure you have development files for image handling, i.e.
10132 tiff, gif, jpeg, png and xpm.
10133 If you are sure you want Emacs compiled without X window support, pass
10134 --without-x
10135 to configure." "$LINENO" 5
10139 ### If we're using X11, we should use the X menu package.
10140 HAVE_MENUS=no
10141 case ${HAVE_X11} in
10142 yes ) HAVE_MENUS=yes ;;
10143 esac
10145 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10146 # Assume not, until told otherwise.
10147 GNU_MALLOC=yes
10148 doug_lea_malloc=yes
10149 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
10150 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
10152 else
10153 doug_lea_malloc=no
10156 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
10157 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
10159 else
10160 doug_lea_malloc=no
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
10164 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10165 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
10166 $as_echo_n "(cached) " >&6
10167 else
10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169 /* end confdefs.h. */
10170 extern void (* __after_morecore_hook)();
10172 main ()
10174 __after_morecore_hook = 0
10176 return 0;
10178 _ACEOF
10179 if ac_fn_c_try_link "$LINENO"; then :
10180 emacs_cv_var___after_morecore_hook=yes
10181 else
10182 emacs_cv_var___after_morecore_hook=no
10184 rm -f core conftest.err conftest.$ac_objext \
10185 conftest$ac_exeext conftest.$ac_ext
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
10188 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10189 if test $emacs_cv_var___after_morecore_hook = no; then
10190 doug_lea_malloc=no
10194 system_malloc=no
10195 case "$opsys" in
10196 ## darwin ld insists on the use of malloc routines in the System framework.
10197 darwin|sol2-10) system_malloc=yes ;;
10198 esac
10200 if test "${system_malloc}" = "yes"; then
10202 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10204 GNU_MALLOC=no
10205 GNU_MALLOC_reason="
10206 (The GNU allocators don't work with this system configuration.)"
10207 GMALLOC_OBJ=
10208 VMLIMIT_OBJ=
10209 else
10210 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10211 VMLIMIT_OBJ=vm-limit.o
10216 if test "$doug_lea_malloc" = "yes" ; then
10217 if test "$GNU_MALLOC" = yes ; then
10218 GNU_MALLOC_reason="
10219 (Using Doug Lea's new malloc from the GNU C Library.)"
10222 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10225 ## Use mmap directly for allocating larger buffers.
10226 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10227 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10228 ## Does the AC_FUNC_MMAP test below make this check unecessary?
10229 case "$opsys" in
10230 gnu*) REL_ALLOC=no ;;
10231 esac
10234 if test x"${REL_ALLOC}" = x; then
10235 REL_ALLOC=${GNU_MALLOC}
10238 use_mmap_for_buffers=no
10239 case "$opsys" in
10240 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10241 esac
10246 for ac_header in $ac_header_list
10247 do :
10248 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10249 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10251 eval as_val=\$$as_ac_Header
10252 if test "x$as_val" = x""yes; then :
10253 cat >>confdefs.h <<_ACEOF
10254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10255 _ACEOF
10259 done
10268 for ac_func in getpagesize
10269 do :
10270 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10271 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10272 cat >>confdefs.h <<_ACEOF
10273 #define HAVE_GETPAGESIZE 1
10274 _ACEOF
10277 done
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10280 $as_echo_n "checking for working mmap... " >&6; }
10281 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10282 $as_echo_n "(cached) " >&6
10283 else
10284 if test "$cross_compiling" = yes; then :
10285 ac_cv_func_mmap_fixed_mapped=no
10286 else
10287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10288 /* end confdefs.h. */
10289 $ac_includes_default
10290 /* malloc might have been renamed as rpl_malloc. */
10291 #undef malloc
10293 /* Thanks to Mike Haertel and Jim Avera for this test.
10294 Here is a matrix of mmap possibilities:
10295 mmap private not fixed
10296 mmap private fixed at somewhere currently unmapped
10297 mmap private fixed at somewhere already mapped
10298 mmap shared not fixed
10299 mmap shared fixed at somewhere currently unmapped
10300 mmap shared fixed at somewhere already mapped
10301 For private mappings, we should verify that changes cannot be read()
10302 back from the file, nor mmap's back from the file at a different
10303 address. (There have been systems where private was not correctly
10304 implemented like the infamous i386 svr4.0, and systems where the
10305 VM page cache was not coherent with the file system buffer cache
10306 like early versions of FreeBSD and possibly contemporary NetBSD.)
10307 For shared mappings, we should conversely verify that changes get
10308 propagated back to all the places they're supposed to be.
10310 Grep wants private fixed already mapped.
10311 The main things grep needs to know about mmap are:
10312 * does it exist and is it safe to write into the mmap'd area
10313 * how to use it (BSD variants) */
10315 #include <fcntl.h>
10316 #include <sys/mman.h>
10318 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10319 char *malloc ();
10320 #endif
10322 /* This mess was copied from the GNU getpagesize.h. */
10323 #ifndef HAVE_GETPAGESIZE
10324 # ifdef _SC_PAGESIZE
10325 # define getpagesize() sysconf(_SC_PAGESIZE)
10326 # else /* no _SC_PAGESIZE */
10327 # ifdef HAVE_SYS_PARAM_H
10328 # include <sys/param.h>
10329 # ifdef EXEC_PAGESIZE
10330 # define getpagesize() EXEC_PAGESIZE
10331 # else /* no EXEC_PAGESIZE */
10332 # ifdef NBPG
10333 # define getpagesize() NBPG * CLSIZE
10334 # ifndef CLSIZE
10335 # define CLSIZE 1
10336 # endif /* no CLSIZE */
10337 # else /* no NBPG */
10338 # ifdef NBPC
10339 # define getpagesize() NBPC
10340 # else /* no NBPC */
10341 # ifdef PAGESIZE
10342 # define getpagesize() PAGESIZE
10343 # endif /* PAGESIZE */
10344 # endif /* no NBPC */
10345 # endif /* no NBPG */
10346 # endif /* no EXEC_PAGESIZE */
10347 # else /* no HAVE_SYS_PARAM_H */
10348 # define getpagesize() 8192 /* punt totally */
10349 # endif /* no HAVE_SYS_PARAM_H */
10350 # endif /* no _SC_PAGESIZE */
10352 #endif /* no HAVE_GETPAGESIZE */
10355 main ()
10357 char *data, *data2, *data3;
10358 const char *cdata2;
10359 int i, pagesize;
10360 int fd, fd2;
10362 pagesize = getpagesize ();
10364 /* First, make a file with some known garbage in it. */
10365 data = (char *) malloc (pagesize);
10366 if (!data)
10367 return 1;
10368 for (i = 0; i < pagesize; ++i)
10369 *(data + i) = rand ();
10370 umask (0);
10371 fd = creat ("conftest.mmap", 0600);
10372 if (fd < 0)
10373 return 2;
10374 if (write (fd, data, pagesize) != pagesize)
10375 return 3;
10376 close (fd);
10378 /* Next, check that the tail of a page is zero-filled. File must have
10379 non-zero length, otherwise we risk SIGBUS for entire page. */
10380 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10381 if (fd2 < 0)
10382 return 4;
10383 cdata2 = "";
10384 if (write (fd2, cdata2, 1) != 1)
10385 return 5;
10386 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10387 if (data2 == MAP_FAILED)
10388 return 6;
10389 for (i = 0; i < pagesize; ++i)
10390 if (*(data2 + i))
10391 return 7;
10392 close (fd2);
10393 if (munmap (data2, pagesize))
10394 return 8;
10396 /* Next, try to mmap the file at a fixed address which already has
10397 something else allocated at it. If we can, also make sure that
10398 we see the same garbage. */
10399 fd = open ("conftest.mmap", O_RDWR);
10400 if (fd < 0)
10401 return 9;
10402 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10403 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10404 return 10;
10405 for (i = 0; i < pagesize; ++i)
10406 if (*(data + i) != *(data2 + i))
10407 return 11;
10409 /* Finally, make sure that changes to the mapped area do not
10410 percolate back to the file as seen by read(). (This is a bug on
10411 some variants of i386 svr4.0.) */
10412 for (i = 0; i < pagesize; ++i)
10413 *(data2 + i) = *(data2 + i) + 1;
10414 data3 = (char *) malloc (pagesize);
10415 if (!data3)
10416 return 12;
10417 if (read (fd, data3, pagesize) != pagesize)
10418 return 13;
10419 for (i = 0; i < pagesize; ++i)
10420 if (*(data + i) != *(data3 + i))
10421 return 14;
10422 close (fd);
10423 return 0;
10425 _ACEOF
10426 if ac_fn_c_try_run "$LINENO"; then :
10427 ac_cv_func_mmap_fixed_mapped=yes
10428 else
10429 ac_cv_func_mmap_fixed_mapped=no
10431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10432 conftest.$ac_objext conftest.beam conftest.$ac_ext
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10437 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10438 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10440 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10443 rm -f conftest.mmap conftest.txt
10445 if test $use_mmap_for_buffers = yes; then
10447 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10449 REL_ALLOC=no
10452 LIBS="$LIBS_SYSTEM $LIBS"
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10455 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10456 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10457 $as_echo_n "(cached) " >&6
10458 else
10459 ac_check_lib_save_LIBS=$LIBS
10460 LIBS="-ldnet $LIBS"
10461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10462 /* end confdefs.h. */
10464 /* Override any GCC internal prototype to avoid an error.
10465 Use char because int might match the return type of a GCC
10466 builtin and then its argument prototype would still apply. */
10467 #ifdef __cplusplus
10468 extern "C"
10469 #endif
10470 char dnet_ntoa ();
10472 main ()
10474 return dnet_ntoa ();
10476 return 0;
10478 _ACEOF
10479 if ac_fn_c_try_link "$LINENO"; then :
10480 ac_cv_lib_dnet_dnet_ntoa=yes
10481 else
10482 ac_cv_lib_dnet_dnet_ntoa=no
10484 rm -f core conftest.err conftest.$ac_objext \
10485 conftest$ac_exeext conftest.$ac_ext
10486 LIBS=$ac_check_lib_save_LIBS
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10489 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10490 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10491 cat >>confdefs.h <<_ACEOF
10492 #define HAVE_LIBDNET 1
10493 _ACEOF
10495 LIBS="-ldnet $LIBS"
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10501 $as_echo_n "checking for main in -lXbsd... " >&6; }
10502 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10503 $as_echo_n "(cached) " >&6
10504 else
10505 ac_check_lib_save_LIBS=$LIBS
10506 LIBS="-lXbsd $LIBS"
10507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h. */
10512 main ()
10514 return main ();
10516 return 0;
10518 _ACEOF
10519 if ac_fn_c_try_link "$LINENO"; then :
10520 ac_cv_lib_Xbsd_main=yes
10521 else
10522 ac_cv_lib_Xbsd_main=no
10524 rm -f core conftest.err conftest.$ac_objext \
10525 conftest$ac_exeext conftest.$ac_ext
10526 LIBS=$ac_check_lib_save_LIBS
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10529 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10530 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10531 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10535 LIB_PTHREAD=
10536 for ac_header in pthread.h
10537 do :
10538 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10539 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10540 cat >>confdefs.h <<_ACEOF
10541 #define HAVE_PTHREAD_H 1
10542 _ACEOF
10546 done
10548 if test "$ac_cv_header_pthread_h"; then
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10550 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10551 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10552 $as_echo_n "(cached) " >&6
10553 else
10554 ac_check_lib_save_LIBS=$LIBS
10555 LIBS="-lpthread $LIBS"
10556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557 /* end confdefs.h. */
10559 /* Override any GCC internal prototype to avoid an error.
10560 Use char because int might match the return type of a GCC
10561 builtin and then its argument prototype would still apply. */
10562 #ifdef __cplusplus
10563 extern "C"
10564 #endif
10565 char pthread_self ();
10567 main ()
10569 return pthread_self ();
10571 return 0;
10573 _ACEOF
10574 if ac_fn_c_try_link "$LINENO"; then :
10575 ac_cv_lib_pthread_pthread_self=yes
10576 else
10577 ac_cv_lib_pthread_pthread_self=no
10579 rm -f core conftest.err conftest.$ac_objext \
10580 conftest$ac_exeext conftest.$ac_ext
10581 LIBS=$ac_check_lib_save_LIBS
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10584 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10585 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10586 HAVE_PTHREAD=yes
10590 if test "$HAVE_PTHREAD" = yes; then
10591 case "${canonical}" in
10592 *-hpux*) ;;
10593 *) LIB_PTHREAD="-lpthread" ;;
10594 esac
10596 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10602 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10603 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10604 $as_echo_n "(cached) " >&6
10605 else
10606 ac_check_lib_save_LIBS=$LIBS
10607 LIBS="-lpthreads $LIBS"
10608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10609 /* end confdefs.h. */
10611 /* Override any GCC internal prototype to avoid an error.
10612 Use char because int might match the return type of a GCC
10613 builtin and then its argument prototype would still apply. */
10614 #ifdef __cplusplus
10615 extern "C"
10616 #endif
10617 char cma_open ();
10619 main ()
10621 return cma_open ();
10623 return 0;
10625 _ACEOF
10626 if ac_fn_c_try_link "$LINENO"; then :
10627 ac_cv_lib_pthreads_cma_open=yes
10628 else
10629 ac_cv_lib_pthreads_cma_open=no
10631 rm -f core conftest.err conftest.$ac_objext \
10632 conftest$ac_exeext conftest.$ac_ext
10633 LIBS=$ac_check_lib_save_LIBS
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10636 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10637 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10638 cat >>confdefs.h <<_ACEOF
10639 #define HAVE_LIBPTHREADS 1
10640 _ACEOF
10642 LIBS="-lpthreads $LIBS"
10647 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10648 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10649 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10650 ## added to LIBS in configure would never contain the pthreads part,
10651 ## but the value used in Makefiles might. FIXME?
10653 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10654 ## be harmless on older versions of X where it happens to exist.
10655 test "$opsys" = "aix4-2" && \
10656 test $ac_cv_lib_pthreads_cma_open = yes && \
10657 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10660 case ${host_os} in
10661 aix*)
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10663 $as_echo_n "checking for -bbigtoc option... " >&6; }
10664 if test "${gdb_cv_bigtoc+set}" = set; then :
10665 $as_echo_n "(cached) " >&6
10666 else
10668 case $GCC in
10669 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10670 *) gdb_cv_bigtoc=-bbigtoc ;;
10671 esac
10673 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10678 main ()
10680 int i;
10682 return 0;
10684 _ACEOF
10685 if ac_fn_c_try_link "$LINENO"; then :
10687 else
10688 gdb_cv_bigtoc=
10690 rm -f core conftest.err conftest.$ac_objext \
10691 conftest$ac_exeext conftest.$ac_ext
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10695 $as_echo "$gdb_cv_bigtoc" >&6; }
10697 esac
10699 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10700 # used for the tests that follow. We set them back to REAL_CFLAGS and
10701 # REAL_CPPFLAGS later on.
10703 REAL_CFLAGS="$CFLAGS"
10704 REAL_CPPFLAGS="$CPPFLAGS"
10706 if test "${HAVE_X11}" = "yes"; then
10707 DEFS="$C_SWITCH_X_SITE $DEFS"
10708 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10709 LIBS="-lX11 $LIBS"
10710 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10711 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10713 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10714 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10715 # but it's more convenient here to set LD_RUN_PATH
10716 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10717 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10718 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10719 export LD_RUN_PATH
10722 if test "${opsys}" = "gnu-linux"; then
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10724 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726 /* end confdefs.h. */
10729 main ()
10731 XOpenDisplay ("foo");
10733 return 0;
10735 _ACEOF
10736 if ac_fn_c_try_link "$LINENO"; then :
10737 xlinux_first_failure=no
10738 else
10739 xlinux_first_failure=yes
10741 rm -f core conftest.err conftest.$ac_objext \
10742 conftest$ac_exeext conftest.$ac_ext
10743 if test "${xlinux_first_failure}" = "yes"; then
10744 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10745 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10746 OLD_CPPFLAGS="$CPPFLAGS"
10747 OLD_LIBS="$LIBS"
10748 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10749 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10750 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10751 LIBS="$LIBS -b i486-linuxaout"
10752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753 /* end confdefs.h. */
10756 main ()
10758 XOpenDisplay ("foo");
10760 return 0;
10762 _ACEOF
10763 if ac_fn_c_try_link "$LINENO"; then :
10764 xlinux_second_failure=no
10765 else
10766 xlinux_second_failure=yes
10768 rm -f core conftest.err conftest.$ac_objext \
10769 conftest$ac_exeext conftest.$ac_ext
10770 if test "${xlinux_second_failure}" = "yes"; then
10771 # If we get the same failure with -b, there is no use adding -b.
10772 # So take it out. This plays safe.
10773 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10774 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10775 CPPFLAGS="$OLD_CPPFLAGS"
10776 LIBS="$OLD_LIBS"
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778 $as_echo "no" >&6; }
10779 else
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10781 $as_echo "yes" >&6; }
10783 else
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10785 $as_echo "no" >&6; }
10789 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10790 # header files included from there.
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10792 $as_echo_n "checking for Xkb... " >&6; }
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10795 #include <X11/Xlib.h>
10796 #include <X11/XKBlib.h>
10798 main ()
10800 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10802 return 0;
10804 _ACEOF
10805 if ac_fn_c_try_link "$LINENO"; then :
10806 emacs_xkb=yes
10807 else
10808 emacs_xkb=no
10810 rm -f core conftest.err conftest.$ac_objext \
10811 conftest$ac_exeext conftest.$ac_ext
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10813 $as_echo "$emacs_xkb" >&6; }
10814 if test $emacs_xkb = yes; then
10816 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10820 for ac_func in XrmSetDatabase XScreenResourceString \
10821 XScreenNumberOfScreen XSetWMProtocols
10822 do :
10823 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10824 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10825 eval as_val=\$$as_ac_var
10826 if test "x$as_val" = x""yes; then :
10827 cat >>confdefs.h <<_ACEOF
10828 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10829 _ACEOF
10832 done
10836 if test "${window_system}" = "x11"; then
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10838 $as_echo_n "checking X11 version 6... " >&6; }
10839 if test "${emacs_cv_x11_version_6+set}" = set; then :
10840 $as_echo_n "(cached) " >&6
10841 else
10842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10843 /* end confdefs.h. */
10844 #include <X11/Xlib.h>
10846 main ()
10848 #if XlibSpecificationRelease < 6
10849 fail;
10850 #endif
10853 return 0;
10855 _ACEOF
10856 if ac_fn_c_try_link "$LINENO"; then :
10857 emacs_cv_x11_version_6=yes
10858 else
10859 emacs_cv_x11_version_6=no
10861 rm -f core conftest.err conftest.$ac_objext \
10862 conftest$ac_exeext conftest.$ac_ext
10865 if test $emacs_cv_x11_version_6 = yes; then
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10867 $as_echo "6 or newer" >&6; }
10869 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10872 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10874 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10875 ## XIM support.
10876 case "$opsys" in
10877 sol2-*) : ;;
10879 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10882 esac
10883 else
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10885 $as_echo "before 6" >&6; }
10890 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10891 HAVE_RSVG=no
10892 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10893 if test "${with_rsvg}" != "no"; then
10894 RSVG_REQUIRED=2.11.0
10895 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10898 succeeded=no
10900 # Extract the first word of "pkg-config", so it can be a program name with args.
10901 set dummy pkg-config; ac_word=$2
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10903 $as_echo_n "checking for $ac_word... " >&6; }
10904 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10905 $as_echo_n "(cached) " >&6
10906 else
10907 case $PKG_CONFIG in
10908 [\\/]* | ?:[\\/]*)
10909 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913 for as_dir in $PATH
10915 IFS=$as_save_IFS
10916 test -z "$as_dir" && as_dir=.
10917 for ac_exec_ext in '' $ac_executable_extensions; do
10918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10919 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10921 break 2
10923 done
10924 done
10925 IFS=$as_save_IFS
10927 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10929 esac
10931 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10932 if test -n "$PKG_CONFIG"; then
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10934 $as_echo "$PKG_CONFIG" >&6; }
10935 else
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10937 $as_echo "no" >&6; }
10942 if test "$PKG_CONFIG" = "no" ; then
10944 else
10945 PKG_CONFIG_MIN_VERSION=0.9.0
10946 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10948 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10950 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10952 $as_echo "yes" >&6; }
10953 succeeded=yes
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10956 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10957 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10959 $as_echo "$RSVG_CFLAGS" >&6; }
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10962 $as_echo_n "checking RSVG_LIBS... " >&6; }
10963 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10965 $as_echo "$RSVG_LIBS" >&6; }
10966 else
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968 $as_echo "no" >&6; }
10969 RSVG_CFLAGS=""
10970 RSVG_LIBS=""
10971 ## If we have a custom action on failure, don't print errors, but
10972 ## do set a variable so people can do so.
10973 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10979 else
10980 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10981 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10985 if test $succeeded = yes; then
10986 HAVE_RSVG=yes
10987 else
10994 if test $HAVE_RSVG = yes; then
10996 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10998 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10999 LIBS="$RSVG_LIBS $LIBS"
11004 HAVE_IMAGEMAGICK=no
11005 if test "${HAVE_X11}" = "yes"; then
11006 if test "${with_imagemagick}" != "no"; then
11007 ## 6.2.8 is the earliest version known to work, but earlier versions
11008 ## might work - let us know if you find one.
11009 ## 6.0.7 does not work. See bug#7955.
11010 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
11012 succeeded=no
11014 # Extract the first word of "pkg-config", so it can be a program name with args.
11015 set dummy pkg-config; ac_word=$2
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11017 $as_echo_n "checking for $ac_word... " >&6; }
11018 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11020 else
11021 case $PKG_CONFIG in
11022 [\\/]* | ?:[\\/]*)
11023 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11027 for as_dir in $PATH
11029 IFS=$as_save_IFS
11030 test -z "$as_dir" && as_dir=.
11031 for ac_exec_ext in '' $ac_executable_extensions; do
11032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11033 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11035 break 2
11037 done
11038 done
11039 IFS=$as_save_IFS
11041 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11043 esac
11045 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11046 if test -n "$PKG_CONFIG"; then
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11048 $as_echo "$PKG_CONFIG" >&6; }
11049 else
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11051 $as_echo "no" >&6; }
11056 if test "$PKG_CONFIG" = "no" ; then
11058 else
11059 PKG_CONFIG_MIN_VERSION=0.9.0
11060 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11062 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11064 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11066 $as_echo "yes" >&6; }
11067 succeeded=yes
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
11070 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
11071 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
11073 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
11076 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
11077 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
11079 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
11080 else
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11082 $as_echo "no" >&6; }
11083 IMAGEMAGICK_CFLAGS=""
11084 IMAGEMAGICK_LIBS=""
11085 ## If we have a custom action on failure, don't print errors, but
11086 ## do set a variable so people can do so.
11087 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
11093 else
11094 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11095 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11099 if test $succeeded = yes; then
11100 HAVE_IMAGEMAGICK=yes
11101 else
11108 if test $HAVE_IMAGEMAGICK = yes; then
11110 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11112 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11113 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11114 for ac_func in MagickExportImagePixels
11115 do :
11116 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
11117 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
11118 cat >>confdefs.h <<_ACEOF
11119 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
11120 _ACEOF
11123 done
11130 HAVE_GTK=no
11131 GTK_OBJ=
11132 if test "${with_gtk3}" = "yes"; then
11133 GLIB_REQUIRED=2.28
11134 GTK_REQUIRED=3.0
11135 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11138 succeeded=no
11140 # Extract the first word of "pkg-config", so it can be a program name with args.
11141 set dummy pkg-config; ac_word=$2
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11143 $as_echo_n "checking for $ac_word... " >&6; }
11144 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11145 $as_echo_n "(cached) " >&6
11146 else
11147 case $PKG_CONFIG in
11148 [\\/]* | ?:[\\/]*)
11149 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11153 for as_dir in $PATH
11155 IFS=$as_save_IFS
11156 test -z "$as_dir" && as_dir=.
11157 for ac_exec_ext in '' $ac_executable_extensions; do
11158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11159 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11161 break 2
11163 done
11164 done
11165 IFS=$as_save_IFS
11167 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11169 esac
11171 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11172 if test -n "$PKG_CONFIG"; then
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11174 $as_echo "$PKG_CONFIG" >&6; }
11175 else
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177 $as_echo "no" >&6; }
11182 if test "$PKG_CONFIG" = "no" ; then
11183 pkg_check_gtk=no
11184 else
11185 PKG_CONFIG_MIN_VERSION=0.9.0
11186 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11188 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11190 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11192 $as_echo "yes" >&6; }
11193 succeeded=yes
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11196 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11197 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11199 $as_echo "$GTK_CFLAGS" >&6; }
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11202 $as_echo_n "checking GTK_LIBS... " >&6; }
11203 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11205 $as_echo "$GTK_LIBS" >&6; }
11206 else
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11208 $as_echo "no" >&6; }
11209 GTK_CFLAGS=""
11210 GTK_LIBS=""
11211 ## If we have a custom action on failure, don't print errors, but
11212 ## do set a variable so people can do so.
11213 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11219 else
11220 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11221 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11225 if test $succeeded = yes; then
11226 pkg_check_gtk=yes
11227 else
11228 pkg_check_gtk=no
11231 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11232 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11235 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11237 GTK_OBJ=emacsgtkfixed.o
11240 if test "$pkg_check_gtk" != "yes"; then
11241 HAVE_GTK=no
11242 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11243 GLIB_REQUIRED=2.6
11244 GTK_REQUIRED=2.6
11245 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11248 succeeded=no
11250 # Extract the first word of "pkg-config", so it can be a program name with args.
11251 set dummy pkg-config; ac_word=$2
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11253 $as_echo_n "checking for $ac_word... " >&6; }
11254 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11255 $as_echo_n "(cached) " >&6
11256 else
11257 case $PKG_CONFIG in
11258 [\\/]* | ?:[\\/]*)
11259 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11263 for as_dir in $PATH
11265 IFS=$as_save_IFS
11266 test -z "$as_dir" && as_dir=.
11267 for ac_exec_ext in '' $ac_executable_extensions; do
11268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11269 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11271 break 2
11273 done
11274 done
11275 IFS=$as_save_IFS
11277 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11279 esac
11281 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11282 if test -n "$PKG_CONFIG"; then
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11284 $as_echo "$PKG_CONFIG" >&6; }
11285 else
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11287 $as_echo "no" >&6; }
11292 if test "$PKG_CONFIG" = "no" ; then
11293 pkg_check_gtk=no
11294 else
11295 PKG_CONFIG_MIN_VERSION=0.9.0
11296 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11298 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11300 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11302 $as_echo "yes" >&6; }
11303 succeeded=yes
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11306 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11307 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11309 $as_echo "$GTK_CFLAGS" >&6; }
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11312 $as_echo_n "checking GTK_LIBS... " >&6; }
11313 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11315 $as_echo "$GTK_LIBS" >&6; }
11316 else
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318 $as_echo "no" >&6; }
11319 GTK_CFLAGS=""
11320 GTK_LIBS=""
11321 ## If we have a custom action on failure, don't print errors, but
11322 ## do set a variable so people can do so.
11323 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11329 else
11330 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11331 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11335 if test $succeeded = yes; then
11336 pkg_check_gtk=yes
11337 else
11338 pkg_check_gtk=no
11341 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11342 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11347 if test x"$pkg_check_gtk" = xyes; then
11351 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11352 CFLAGS="$CFLAGS $GTK_CFLAGS"
11353 LIBS="$GTK_LIBS $LIBS"
11354 GTK_COMPILES=no
11355 for ac_func in gtk_main
11356 do :
11357 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11358 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11359 cat >>confdefs.h <<_ACEOF
11360 #define HAVE_GTK_MAIN 1
11361 _ACEOF
11362 GTK_COMPILES=yes
11364 done
11366 if test "${GTK_COMPILES}" != "yes"; then
11367 if test "$USE_X_TOOLKIT" != "maybe"; then
11368 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11370 else
11371 HAVE_GTK=yes
11373 $as_echo "#define USE_GTK 1" >>confdefs.h
11375 GTK_OBJ="gtkutil.o $GTK_OBJ"
11376 USE_X_TOOLKIT=none
11377 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11379 else
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11381 closing open displays. This is no problem if you just use
11382 one display, but if you use more than one and close one of them
11383 Emacs may crash." >&5
11384 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11385 closing open displays. This is no problem if you just use
11386 one display, but if you use more than one and close one of them
11387 Emacs may crash." >&2;}
11388 sleep 3
11396 if test "${HAVE_GTK}" = "yes"; then
11398 if test "$with_toolkit_scroll_bars" != no; then
11399 with_toolkit_scroll_bars=yes
11402 HAVE_GTK_FILE_SELECTION=no
11403 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11404 #include <gtk/gtk.h>
11406 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11407 HAVE_GTK_FILE_SELECTION=yes
11408 else
11409 HAVE_GTK_FILE_SELECTION=no
11412 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11413 for ac_func in gtk_file_selection_new
11414 do :
11415 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11416 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11417 cat >>confdefs.h <<_ACEOF
11418 #define HAVE_GTK_FILE_SELECTION_NEW 1
11419 _ACEOF
11422 done
11427 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11428 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11429 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11430 gtk_orientable_set_orientation
11431 do :
11432 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11433 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11434 eval as_val=\$$as_ac_var
11435 if test "x$as_val" = x""yes; then :
11436 cat >>confdefs.h <<_ACEOF
11437 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11438 _ACEOF
11441 done
11446 HAVE_DBUS=no
11447 DBUS_OBJ=
11448 if test "${with_dbus}" = "yes"; then
11450 succeeded=no
11452 # Extract the first word of "pkg-config", so it can be a program name with args.
11453 set dummy pkg-config; ac_word=$2
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11455 $as_echo_n "checking for $ac_word... " >&6; }
11456 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11457 $as_echo_n "(cached) " >&6
11458 else
11459 case $PKG_CONFIG in
11460 [\\/]* | ?:[\\/]*)
11461 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465 for as_dir in $PATH
11467 IFS=$as_save_IFS
11468 test -z "$as_dir" && as_dir=.
11469 for ac_exec_ext in '' $ac_executable_extensions; do
11470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11471 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11473 break 2
11475 done
11476 done
11477 IFS=$as_save_IFS
11479 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11481 esac
11483 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11484 if test -n "$PKG_CONFIG"; then
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11486 $as_echo "$PKG_CONFIG" >&6; }
11487 else
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489 $as_echo "no" >&6; }
11494 if test "$PKG_CONFIG" = "no" ; then
11495 HAVE_DBUS=no
11496 else
11497 PKG_CONFIG_MIN_VERSION=0.9.0
11498 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11500 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11502 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11504 $as_echo "yes" >&6; }
11505 succeeded=yes
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
11508 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
11509 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
11511 $as_echo "$DBUS_CFLAGS" >&6; }
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
11514 $as_echo_n "checking DBUS_LIBS... " >&6; }
11515 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
11517 $as_echo "$DBUS_LIBS" >&6; }
11518 else
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520 $as_echo "no" >&6; }
11521 DBUS_CFLAGS=""
11522 DBUS_LIBS=""
11523 ## If we have a custom action on failure, don't print errors, but
11524 ## do set a variable so people can do so.
11525 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11531 else
11532 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11533 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11537 if test $succeeded = yes; then
11538 HAVE_DBUS=yes
11539 else
11540 HAVE_DBUS=no
11543 if test "$HAVE_DBUS" = yes; then
11544 LIBS="$LIBS $DBUS_LIBS"
11546 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11548 for ac_func in dbus_watch_get_unix_fd
11549 do :
11550 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11551 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
11552 cat >>confdefs.h <<_ACEOF
11553 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11554 _ACEOF
11557 done
11559 DBUS_OBJ=dbusbind.o
11564 <<<<<<< TREE
11565 =======
11566 HAVE_GSETTINGS=no
11567 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11569 succeeded=no
11571 # Extract the first word of "pkg-config", so it can be a program name with args.
11572 set dummy pkg-config; ac_word=$2
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11574 $as_echo_n "checking for $ac_word... " >&6; }
11575 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11576 $as_echo_n "(cached) " >&6
11577 else
11578 case $PKG_CONFIG in
11579 [\\/]* | ?:[\\/]*)
11580 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584 for as_dir in $PATH
11586 IFS=$as_save_IFS
11587 test -z "$as_dir" && as_dir=.
11588 for ac_exec_ext in '' $ac_executable_extensions; do
11589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11590 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11592 break 2
11594 done
11595 done
11596 IFS=$as_save_IFS
11598 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11600 esac
11602 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11603 if test -n "$PKG_CONFIG"; then
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11605 $as_echo "$PKG_CONFIG" >&6; }
11606 else
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608 $as_echo "no" >&6; }
11613 if test "$PKG_CONFIG" = "no" ; then
11614 HAVE_GSETTINGS=no
11615 else
11616 PKG_CONFIG_MIN_VERSION=0.9.0
11617 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11619 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11621 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5; then
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11623 $as_echo "yes" >&6; }
11624 succeeded=yes
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5
11627 $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; }
11628 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5
11630 $as_echo "$GSETTINGS_CFLAGS" >&6; }
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5
11633 $as_echo_n "checking GSETTINGS_LIBS... " >&6; }
11634 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5
11636 $as_echo "$GSETTINGS_LIBS" >&6; }
11637 else
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11640 GSETTINGS_CFLAGS=""
11641 GSETTINGS_LIBS=""
11642 ## If we have a custom action on failure, don't print errors, but
11643 ## do set a variable so people can do so.
11644 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
11650 else
11651 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11652 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11656 if test $succeeded = yes; then
11657 HAVE_GSETTINGS=yes
11658 else
11659 HAVE_GSETTINGS=no
11662 if test "$HAVE_GSETTINGS" = "yes"; then
11664 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11666 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11667 SETTINGS_LIBS="$GSETTINGS_LIBS"
11671 >>>>>>> MERGE-SOURCE
11672 HAVE_GCONF=no
11673 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11675 succeeded=no
11677 # Extract the first word of "pkg-config", so it can be a program name with args.
11678 set dummy pkg-config; ac_word=$2
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11680 $as_echo_n "checking for $ac_word... " >&6; }
11681 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11682 $as_echo_n "(cached) " >&6
11683 else
11684 case $PKG_CONFIG in
11685 [\\/]* | ?:[\\/]*)
11686 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690 for as_dir in $PATH
11692 IFS=$as_save_IFS
11693 test -z "$as_dir" && as_dir=.
11694 for ac_exec_ext in '' $ac_executable_extensions; do
11695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11696 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11698 break 2
11700 done
11701 done
11702 IFS=$as_save_IFS
11704 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11706 esac
11708 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11709 if test -n "$PKG_CONFIG"; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11711 $as_echo "$PKG_CONFIG" >&6; }
11712 else
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714 $as_echo "no" >&6; }
11719 if test "$PKG_CONFIG" = "no" ; then
11720 HAVE_GCONF=no
11721 else
11722 PKG_CONFIG_MIN_VERSION=0.9.0
11723 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11725 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11727 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11729 $as_echo "yes" >&6; }
11730 succeeded=yes
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11733 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11734 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11736 $as_echo "$GCONF_CFLAGS" >&6; }
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11739 $as_echo_n "checking GCONF_LIBS... " >&6; }
11740 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11742 $as_echo "$GCONF_LIBS" >&6; }
11743 else
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 $as_echo "no" >&6; }
11746 GCONF_CFLAGS=""
11747 GCONF_LIBS=""
11748 ## If we have a custom action on failure, don't print errors, but
11749 ## do set a variable so people can do so.
11750 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11756 else
11757 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11758 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11762 if test $succeeded = yes; then
11763 HAVE_GCONF=yes
11764 else
11765 HAVE_GCONF=no
11768 if test "$HAVE_GCONF" = yes; then
11770 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11772 for ac_func in g_type_init
11773 do :
11774 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11775 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11776 cat >>confdefs.h <<_ACEOF
11777 #define HAVE_G_TYPE_INIT 1
11778 _ACEOF
11781 done
11786 HAVE_LIBSELINUX=no
11787 LIBSELINUX_LIBS=
11788 if test "${with_selinux}" = "yes"; then
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11790 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11791 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11792 $as_echo_n "(cached) " >&6
11793 else
11794 ac_check_lib_save_LIBS=$LIBS
11795 LIBS="-lselinux $LIBS"
11796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11797 /* end confdefs.h. */
11799 /* Override any GCC internal prototype to avoid an error.
11800 Use char because int might match the return type of a GCC
11801 builtin and then its argument prototype would still apply. */
11802 #ifdef __cplusplus
11803 extern "C"
11804 #endif
11805 char lgetfilecon ();
11807 main ()
11809 return lgetfilecon ();
11811 return 0;
11813 _ACEOF
11814 if ac_fn_c_try_link "$LINENO"; then :
11815 ac_cv_lib_selinux_lgetfilecon=yes
11816 else
11817 ac_cv_lib_selinux_lgetfilecon=no
11819 rm -f core conftest.err conftest.$ac_objext \
11820 conftest$ac_exeext conftest.$ac_ext
11821 LIBS=$ac_check_lib_save_LIBS
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11824 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11825 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11826 HAVE_LIBSELINUX=yes
11827 else
11828 HAVE_LIBSELINUX=no
11831 if test "$HAVE_LIBSELINUX" = yes; then
11833 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11835 LIBSELINUX_LIBS=-lselinux
11840 HAVE_GNUTLS=no
11841 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11842 if test "${with_gnutls}" = "yes" ; then
11844 succeeded=no
11846 # Extract the first word of "pkg-config", so it can be a program name with args.
11847 set dummy pkg-config; ac_word=$2
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11849 $as_echo_n "checking for $ac_word... " >&6; }
11850 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11851 $as_echo_n "(cached) " >&6
11852 else
11853 case $PKG_CONFIG in
11854 [\\/]* | ?:[\\/]*)
11855 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859 for as_dir in $PATH
11861 IFS=$as_save_IFS
11862 test -z "$as_dir" && as_dir=.
11863 for ac_exec_ext in '' $ac_executable_extensions; do
11864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11865 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11867 break 2
11869 done
11870 done
11871 IFS=$as_save_IFS
11873 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11875 esac
11877 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11878 if test -n "$PKG_CONFIG"; then
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11880 $as_echo "$PKG_CONFIG" >&6; }
11881 else
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11883 $as_echo "no" >&6; }
11888 if test "$PKG_CONFIG" = "no" ; then
11889 HAVE_GNUTLS=no
11890 else
11891 PKG_CONFIG_MIN_VERSION=0.9.0
11892 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.0" >&5
11894 $as_echo_n "checking for gnutls >= 2.6.0... " >&6; }
11896 if $PKG_CONFIG --exists "gnutls >= 2.6.0" 2>&5; then
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11898 $as_echo "yes" >&6; }
11899 succeeded=yes
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11902 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11903 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11905 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11908 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11909 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11911 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11912 else
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914 $as_echo "no" >&6; }
11915 LIBGNUTLS_CFLAGS=""
11916 LIBGNUTLS_LIBS=""
11917 ## If we have a custom action on failure, don't print errors, but
11918 ## do set a variable so people can do so.
11919 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.0"`
11925 else
11926 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11927 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11931 if test $succeeded = yes; then
11932 HAVE_GNUTLS=yes
11933 else
11934 HAVE_GNUTLS=no
11937 if test "${HAVE_GNUTLS}" = "yes"; then
11939 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11943 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11944 LIBS="$LIBGNUTLS_LIBS $LIBS"
11945 for ac_func in gnutls_certificate_set_verify_function
11946 do :
11947 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11948 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11949 cat >>confdefs.h <<_ACEOF
11950 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11951 _ACEOF
11952 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11954 done
11957 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11959 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11967 HAVE_XAW3D=no
11968 LUCID_LIBW=
11969 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11970 if test "$with_xaw3d" != no; then
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11972 $as_echo_n "checking for xaw3d... " >&6; }
11973 if test "${emacs_cv_xaw3d+set}" = set; then :
11974 $as_echo_n "(cached) " >&6
11975 else
11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h. */
11979 #include <X11/Intrinsic.h>
11980 #include <X11/Xaw3d/Simple.h>
11982 main ()
11986 return 0;
11988 _ACEOF
11989 if ac_fn_c_try_link "$LINENO"; then :
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11991 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11992 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11993 $as_echo_n "(cached) " >&6
11994 else
11995 ac_check_lib_save_LIBS=$LIBS
11996 LIBS="-lXaw3d $LIBS"
11997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998 /* end confdefs.h. */
12000 /* Override any GCC internal prototype to avoid an error.
12001 Use char because int might match the return type of a GCC
12002 builtin and then its argument prototype would still apply. */
12003 #ifdef __cplusplus
12004 extern "C"
12005 #endif
12006 char XawScrollbarSetThumb ();
12008 main ()
12010 return XawScrollbarSetThumb ();
12012 return 0;
12014 _ACEOF
12015 if ac_fn_c_try_link "$LINENO"; then :
12016 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12017 else
12018 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12020 rm -f core conftest.err conftest.$ac_objext \
12021 conftest$ac_exeext conftest.$ac_ext
12022 LIBS=$ac_check_lib_save_LIBS
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12025 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12026 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
12027 emacs_cv_xaw3d=yes
12028 else
12029 emacs_cv_xaw3d=no
12032 else
12033 emacs_cv_xaw3d=no
12035 rm -f core conftest.err conftest.$ac_objext \
12036 conftest$ac_exeext conftest.$ac_ext
12039 else
12040 emacs_cv_xaw3d=no
12042 if test $emacs_cv_xaw3d = yes; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12044 $as_echo "yes; using Lucid toolkit" >&6; }
12045 USE_X_TOOLKIT=LUCID
12046 HAVE_XAW3D=yes
12047 LUCID_LIBW=-lXaw3d
12049 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12051 else
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053 $as_echo "no" >&6; }
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12055 $as_echo_n "checking for libXaw... " >&6; }
12056 if test "${emacs_cv_xaw+set}" = set; then :
12057 $as_echo_n "(cached) " >&6
12058 else
12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12062 #include <X11/Intrinsic.h>
12063 #include <X11/Xaw/Simple.h>
12065 main ()
12069 return 0;
12071 _ACEOF
12072 if ac_fn_c_try_link "$LINENO"; then :
12073 emacs_cv_xaw=yes
12074 else
12075 emacs_cv_xaw=no
12077 rm -f core conftest.err conftest.$ac_objext \
12078 conftest$ac_exeext conftest.$ac_ext
12081 if test $emacs_cv_xaw = yes; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12083 $as_echo "yes; using Lucid toolkit" >&6; }
12084 USE_X_TOOLKIT=LUCID
12085 LUCID_LIBW=-lXaw
12086 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12087 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12088 else
12089 as_fn_error "No X toolkit could be found.
12090 If you are sure you want Emacs compiled without an X toolkit, pass
12091 --with-x-toolkit=no
12092 to configure. Otherwise, install the development libraries for the toolkit
12093 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12098 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12100 LIBXTR6=
12101 if test "${USE_X_TOOLKIT}" != "none"; then
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12103 $as_echo_n "checking X11 toolkit version... " >&6; }
12104 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12105 $as_echo_n "(cached) " >&6
12106 else
12107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108 /* end confdefs.h. */
12109 #include <X11/Intrinsic.h>
12111 main ()
12113 #if XtSpecificationRelease < 6
12114 fail;
12115 #endif
12118 return 0;
12120 _ACEOF
12121 if ac_fn_c_try_link "$LINENO"; then :
12122 emacs_cv_x11_toolkit_version_6=yes
12123 else
12124 emacs_cv_x11_toolkit_version_6=no
12126 rm -f core conftest.err conftest.$ac_objext \
12127 conftest$ac_exeext conftest.$ac_ext
12130 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12131 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12133 $as_echo "6 or newer" >&6; }
12135 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12137 LIBXTR6="-lSM -lICE"
12138 case "$opsys" in
12139 ## Use libw.a along with X11R6 Xt.
12140 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
12141 esac
12142 else
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12144 $as_echo "before 6" >&6; }
12147 OLDLIBS="$LIBS"
12148 if test x$HAVE_X11XTR6 = xyes; then
12149 LIBS="-lXt -lSM -lICE $LIBS"
12150 else
12151 LIBS="-lXt $LIBS"
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12154 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12155 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12156 $as_echo_n "(cached) " >&6
12157 else
12158 ac_check_lib_save_LIBS=$LIBS
12159 LIBS="-lXmu $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 XmuConvertStandardSelection ();
12171 main ()
12173 return XmuConvertStandardSelection ();
12175 return 0;
12177 _ACEOF
12178 if ac_fn_c_try_link "$LINENO"; then :
12179 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12180 else
12181 ac_cv_lib_Xmu_XmuConvertStandardSelection=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_Xmu_XmuConvertStandardSelection" >&5
12188 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12189 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12190 cat >>confdefs.h <<_ACEOF
12191 #define HAVE_LIBXMU 1
12192 _ACEOF
12194 LIBS="-lXmu $LIBS"
12198 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12202 LIBXMU=-lXmu
12203 case $opsys in
12204 ## These systems don't supply Xmu.
12205 hpux* | aix4-2 )
12206 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12208 esac
12211 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12212 if test "${HAVE_X11}" = "yes"; then
12213 if test "${USE_X_TOOLKIT}" != "none"; then
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12215 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12216 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12217 $as_echo_n "(cached) " >&6
12218 else
12219 ac_check_lib_save_LIBS=$LIBS
12220 LIBS="-lXext $LIBS"
12221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12222 /* end confdefs.h. */
12224 /* Override any GCC internal prototype to avoid an error.
12225 Use char because int might match the return type of a GCC
12226 builtin and then its argument prototype would still apply. */
12227 #ifdef __cplusplus
12228 extern "C"
12229 #endif
12230 char XShapeQueryExtension ();
12232 main ()
12234 return XShapeQueryExtension ();
12236 return 0;
12238 _ACEOF
12239 if ac_fn_c_try_link "$LINENO"; then :
12240 ac_cv_lib_Xext_XShapeQueryExtension=yes
12241 else
12242 ac_cv_lib_Xext_XShapeQueryExtension=no
12244 rm -f core conftest.err conftest.$ac_objext \
12245 conftest$ac_exeext conftest.$ac_ext
12246 LIBS=$ac_check_lib_save_LIBS
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12249 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12250 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12251 cat >>confdefs.h <<_ACEOF
12252 #define HAVE_LIBXEXT 1
12253 _ACEOF
12255 LIBS="-lXext $LIBS"
12262 LIBXP=
12263 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12265 $as_echo_n "checking for Motif version 2.1... " >&6; }
12266 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12267 $as_echo_n "(cached) " >&6
12268 else
12269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270 /* end confdefs.h. */
12271 #include <Xm/Xm.h>
12273 main ()
12275 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12276 int x = 5;
12277 #else
12278 Motif version prior to 2.1.
12279 #endif
12281 return 0;
12283 _ACEOF
12284 if ac_fn_c_try_compile "$LINENO"; then :
12285 emacs_cv_motif_version_2_1=yes
12286 else
12287 emacs_cv_motif_version_2_1=no
12289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12292 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12293 if test $emacs_cv_motif_version_2_1 = yes; then
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12295 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12296 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12297 $as_echo_n "(cached) " >&6
12298 else
12299 ac_check_lib_save_LIBS=$LIBS
12300 LIBS="-lXp $LIBS"
12301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302 /* end confdefs.h. */
12304 /* Override any GCC internal prototype to avoid an error.
12305 Use char because int might match the return type of a GCC
12306 builtin and then its argument prototype would still apply. */
12307 #ifdef __cplusplus
12308 extern "C"
12309 #endif
12310 char XpCreateContext ();
12312 main ()
12314 return XpCreateContext ();
12316 return 0;
12318 _ACEOF
12319 if ac_fn_c_try_link "$LINENO"; then :
12320 ac_cv_lib_Xp_XpCreateContext=yes
12321 else
12322 ac_cv_lib_Xp_XpCreateContext=no
12324 rm -f core conftest.err conftest.$ac_objext \
12325 conftest$ac_exeext conftest.$ac_ext
12326 LIBS=$ac_check_lib_save_LIBS
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12329 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12330 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12331 LIBXP=-lXp
12334 else
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12336 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12337 if test "${emacs_cv_lesstif+set}" = set; then :
12338 $as_echo_n "(cached) " >&6
12339 else
12340 # We put this in CFLAGS temporarily to precede other -I options
12341 # that might be in CFLAGS temporarily.
12342 # We put this in CPPFLAGS where it precedes the other -I options.
12343 OLD_CPPFLAGS=$CPPFLAGS
12344 OLD_CFLAGS=$CFLAGS
12345 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12346 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348 /* end confdefs.h. */
12349 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12351 main ()
12353 int x = 5;
12355 return 0;
12357 _ACEOF
12358 if ac_fn_c_try_compile "$LINENO"; then :
12359 emacs_cv_lesstif=yes
12360 else
12361 emacs_cv_lesstif=no
12363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12366 $as_echo "$emacs_cv_lesstif" >&6; }
12367 if test $emacs_cv_lesstif = yes; then
12368 # Make sure this -I option remains in CPPFLAGS after it is set
12369 # back to REAL_CPPFLAGS.
12370 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12371 # have those other -I options anyway. Ultimately, having this
12372 # directory ultimately in CPPFLAGS will be enough.
12373 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12374 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12375 else
12376 CFLAGS=$OLD_CFLAGS
12377 CPPFLAGS=$OLD_CPPFLAGS
12383 USE_TOOLKIT_SCROLL_BARS=no
12384 if test "${with_toolkit_scroll_bars}" != "no"; then
12385 if test "${USE_X_TOOLKIT}" != "none"; then
12386 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12387 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12389 HAVE_XAW3D=no
12390 USE_TOOLKIT_SCROLL_BARS=yes
12391 elif test "${HAVE_XAW3D}" = "yes"; then
12392 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12394 USE_TOOLKIT_SCROLL_BARS=yes
12396 elif test "${HAVE_GTK}" = "yes"; then
12397 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12399 USE_TOOLKIT_SCROLL_BARS=yes
12400 elif test "${HAVE_NS}" = "yes"; then
12401 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12403 USE_TOOLKIT_SCROLL_BARS=yes
12407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h. */
12410 #include <X11/Xlib.h>
12411 #include <X11/Xresource.h>
12413 main ()
12415 XIMProc callback;
12417 return 0;
12419 _ACEOF
12420 if ac_fn_c_try_compile "$LINENO"; then :
12421 HAVE_XIM=yes
12423 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12425 else
12426 HAVE_XIM=no
12428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12431 if test "${with_xim}" != "no"; then
12433 $as_echo "#define USE_XIM 1" >>confdefs.h
12438 if test "${HAVE_XIM}" != "no"; then
12439 late_CFLAGS=$CFLAGS
12440 if test "$GCC" = yes; then
12441 CFLAGS="$CFLAGS --pedantic-errors"
12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h. */
12446 #include <X11/Xlib.h>
12447 #include <X11/Xresource.h>
12449 main ()
12451 Display *display;
12452 XrmDatabase db;
12453 char *res_name;
12454 char *res_class;
12455 XIMProc callback;
12456 XPointer *client_data;
12457 #ifndef __GNUC__
12458 /* If we're not using GCC, it's probably not XFree86, and this is
12459 probably right, but we can't use something like --pedantic-errors. */
12460 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12461 char*, XIMProc, XPointer*);
12462 #endif
12463 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12464 client_data);
12466 return 0;
12468 _ACEOF
12469 if ac_fn_c_try_compile "$LINENO"; then :
12470 emacs_cv_arg6_star=yes
12472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12473 if test "$emacs_cv_arg6_star" = yes; then
12474 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12476 else
12477 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12480 CFLAGS=$late_CFLAGS
12483 ### Start of font-backend (under any platform) section.
12484 # (nothing here yet -- this is a placeholder)
12485 ### End of font-backend (under any platform) section.
12487 ### Start of font-backend (under X11) section.
12488 if test "${HAVE_X11}" = "yes"; then
12490 succeeded=no
12492 # Extract the first word of "pkg-config", so it can be a program name with args.
12493 set dummy pkg-config; ac_word=$2
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12495 $as_echo_n "checking for $ac_word... " >&6; }
12496 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12497 $as_echo_n "(cached) " >&6
12498 else
12499 case $PKG_CONFIG in
12500 [\\/]* | ?:[\\/]*)
12501 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505 for as_dir in $PATH
12507 IFS=$as_save_IFS
12508 test -z "$as_dir" && as_dir=.
12509 for ac_exec_ext in '' $ac_executable_extensions; do
12510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12511 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12513 break 2
12515 done
12516 done
12517 IFS=$as_save_IFS
12519 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12521 esac
12523 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12524 if test -n "$PKG_CONFIG"; then
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12526 $as_echo "$PKG_CONFIG" >&6; }
12527 else
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529 $as_echo "no" >&6; }
12534 if test "$PKG_CONFIG" = "no" ; then
12535 HAVE_FC=no
12536 else
12537 PKG_CONFIG_MIN_VERSION=0.9.0
12538 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12540 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12542 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12544 $as_echo "yes" >&6; }
12545 succeeded=yes
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
12548 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12549 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
12551 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
12554 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12555 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
12557 $as_echo "$FONTCONFIG_LIBS" >&6; }
12558 else
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12560 $as_echo "no" >&6; }
12561 FONTCONFIG_CFLAGS=""
12562 FONTCONFIG_LIBS=""
12563 ## If we have a custom action on failure, don't print errors, but
12564 ## do set a variable so people can do so.
12565 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12571 else
12572 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12573 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12577 if test $succeeded = yes; then
12578 HAVE_FC=yes
12579 else
12580 HAVE_FC=no
12584 ## Use -lXft if available, unless `--with-xft=no'.
12585 HAVE_XFT=maybe
12586 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12587 with_xft="no";
12589 if test "x${with_xft}" != "xno"; then
12592 succeeded=no
12594 # Extract the first word of "pkg-config", so it can be a program name with args.
12595 set dummy pkg-config; ac_word=$2
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12597 $as_echo_n "checking for $ac_word... " >&6; }
12598 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12599 $as_echo_n "(cached) " >&6
12600 else
12601 case $PKG_CONFIG in
12602 [\\/]* | ?:[\\/]*)
12603 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12607 for as_dir in $PATH
12609 IFS=$as_save_IFS
12610 test -z "$as_dir" && as_dir=.
12611 for ac_exec_ext in '' $ac_executable_extensions; do
12612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12613 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12615 break 2
12617 done
12618 done
12619 IFS=$as_save_IFS
12621 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12623 esac
12625 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12626 if test -n "$PKG_CONFIG"; then
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12628 $as_echo "$PKG_CONFIG" >&6; }
12629 else
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12631 $as_echo "no" >&6; }
12636 if test "$PKG_CONFIG" = "no" ; then
12637 HAVE_XFT=no
12638 else
12639 PKG_CONFIG_MIN_VERSION=0.9.0
12640 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12642 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12644 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12646 $as_echo "yes" >&6; }
12647 succeeded=yes
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
12650 $as_echo_n "checking XFT_CFLAGS... " >&6; }
12651 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
12653 $as_echo "$XFT_CFLAGS" >&6; }
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
12656 $as_echo_n "checking XFT_LIBS... " >&6; }
12657 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
12659 $as_echo "$XFT_LIBS" >&6; }
12660 else
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12662 $as_echo "no" >&6; }
12663 XFT_CFLAGS=""
12664 XFT_LIBS=""
12665 ## If we have a custom action on failure, don't print errors, but
12666 ## do set a variable so people can do so.
12667 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12673 else
12674 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12675 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12679 if test $succeeded = yes; then
12681 else
12682 HAVE_XFT=no
12685 ## Because xftfont.c uses XRenderQueryExtension, we also
12686 ## need to link to -lXrender.
12687 HAVE_XRENDER=no
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12689 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12690 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12691 $as_echo_n "(cached) " >&6
12692 else
12693 ac_check_lib_save_LIBS=$LIBS
12694 LIBS="-lXrender $LIBS"
12695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696 /* end confdefs.h. */
12698 /* Override any GCC internal prototype to avoid an error.
12699 Use char because int might match the return type of a GCC
12700 builtin and then its argument prototype would still apply. */
12701 #ifdef __cplusplus
12702 extern "C"
12703 #endif
12704 char XRenderQueryExtension ();
12706 main ()
12708 return XRenderQueryExtension ();
12710 return 0;
12712 _ACEOF
12713 if ac_fn_c_try_link "$LINENO"; then :
12714 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12715 else
12716 ac_cv_lib_Xrender_XRenderQueryExtension=no
12718 rm -f core conftest.err conftest.$ac_objext \
12719 conftest$ac_exeext conftest.$ac_ext
12720 LIBS=$ac_check_lib_save_LIBS
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12723 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12724 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12725 HAVE_XRENDER=yes
12728 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12729 OLD_CPPFLAGS="$CPPFLAGS"
12730 OLD_CFLAGS="$CFLAGS"
12731 OLD_LIBS="$LIBS"
12732 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12733 CFLAGS="$CFLAGS $XFT_CFLAGS"
12734 XFT_LIBS="-lXrender $XFT_LIBS"
12735 LIBS="$XFT_LIBS $LIBS"
12736 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12737 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12739 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12740 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12741 $as_echo_n "(cached) " >&6
12742 else
12743 ac_check_lib_save_LIBS=$LIBS
12744 LIBS="-lXft $XFT_LIBS $LIBS"
12745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746 /* end confdefs.h. */
12748 /* Override any GCC internal prototype to avoid an error.
12749 Use char because int might match the return type of a GCC
12750 builtin and then its argument prototype would still apply. */
12751 #ifdef __cplusplus
12752 extern "C"
12753 #endif
12754 char XftFontOpen ();
12756 main ()
12758 return XftFontOpen ();
12760 return 0;
12762 _ACEOF
12763 if ac_fn_c_try_link "$LINENO"; then :
12764 ac_cv_lib_Xft_XftFontOpen=yes
12765 else
12766 ac_cv_lib_Xft_XftFontOpen=no
12768 rm -f core conftest.err conftest.$ac_objext \
12769 conftest$ac_exeext conftest.$ac_ext
12770 LIBS=$ac_check_lib_save_LIBS
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12773 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12774 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12775 HAVE_XFT=yes
12782 if test "${HAVE_XFT}" = "yes"; then
12784 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12787 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12788 else
12789 CPPFLAGS="$OLD_CPPFLAGS"
12790 CFLAGS="$OLD_CFLAGS"
12791 LIBS="$OLD_LIBS"
12792 fi # "${HAVE_XFT}" = "yes"
12793 fi # "$HAVE_XFT" != no
12794 fi # "x${with_xft}" != "xno"
12796 ## We used to allow building with FreeType and without Xft.
12797 ## However, the ftx font backend driver is not in good shape.
12798 if test "$HAVE_XFT" != "yes"; then
12799 HAVE_XFT=no
12800 HAVE_FREETYPE=no
12801 else
12803 succeeded=no
12805 # Extract the first word of "pkg-config", so it can be a program name with args.
12806 set dummy pkg-config; ac_word=$2
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12808 $as_echo_n "checking for $ac_word... " >&6; }
12809 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12810 $as_echo_n "(cached) " >&6
12811 else
12812 case $PKG_CONFIG in
12813 [\\/]* | ?:[\\/]*)
12814 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818 for as_dir in $PATH
12820 IFS=$as_save_IFS
12821 test -z "$as_dir" && as_dir=.
12822 for ac_exec_ext in '' $ac_executable_extensions; do
12823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12824 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12826 break 2
12828 done
12829 done
12830 IFS=$as_save_IFS
12832 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12834 esac
12836 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12837 if test -n "$PKG_CONFIG"; then
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12839 $as_echo "$PKG_CONFIG" >&6; }
12840 else
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12842 $as_echo "no" >&6; }
12847 if test "$PKG_CONFIG" = "no" ; then
12848 HAVE_FREETYPE=no
12849 else
12850 PKG_CONFIG_MIN_VERSION=0.9.0
12851 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12853 $as_echo_n "checking for freetype2... " >&6; }
12855 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12857 $as_echo "yes" >&6; }
12858 succeeded=yes
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12861 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12862 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12864 $as_echo "$FREETYPE_CFLAGS" >&6; }
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12867 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12868 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12870 $as_echo "$FREETYPE_LIBS" >&6; }
12871 else
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873 $as_echo "no" >&6; }
12874 FREETYPE_CFLAGS=""
12875 FREETYPE_LIBS=""
12876 ## If we have a custom action on failure, don't print errors, but
12877 ## do set a variable so people can do so.
12878 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12884 else
12885 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12886 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12890 if test $succeeded = yes; then
12891 HAVE_FREETYPE=yes
12892 else
12893 HAVE_FREETYPE=no
12897 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12900 HAVE_LIBOTF=no
12901 if test "${HAVE_FREETYPE}" = "yes"; then
12903 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12905 if test "${with_libotf}" != "no"; then
12907 succeeded=no
12909 # Extract the first word of "pkg-config", so it can be a program name with args.
12910 set dummy pkg-config; ac_word=$2
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12912 $as_echo_n "checking for $ac_word... " >&6; }
12913 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12914 $as_echo_n "(cached) " >&6
12915 else
12916 case $PKG_CONFIG in
12917 [\\/]* | ?:[\\/]*)
12918 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12922 for as_dir in $PATH
12924 IFS=$as_save_IFS
12925 test -z "$as_dir" && as_dir=.
12926 for ac_exec_ext in '' $ac_executable_extensions; do
12927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12928 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12930 break 2
12932 done
12933 done
12934 IFS=$as_save_IFS
12936 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12938 esac
12940 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12941 if test -n "$PKG_CONFIG"; then
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12943 $as_echo "$PKG_CONFIG" >&6; }
12944 else
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946 $as_echo "no" >&6; }
12951 if test "$PKG_CONFIG" = "no" ; then
12952 HAVE_LIBOTF=no
12953 else
12954 PKG_CONFIG_MIN_VERSION=0.9.0
12955 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12957 $as_echo_n "checking for libotf... " >&6; }
12959 if $PKG_CONFIG --exists "libotf" 2>&5; then
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12961 $as_echo "yes" >&6; }
12962 succeeded=yes
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12965 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12966 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12968 $as_echo "$LIBOTF_CFLAGS" >&6; }
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12971 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12972 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12974 $as_echo "$LIBOTF_LIBS" >&6; }
12975 else
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12977 $as_echo "no" >&6; }
12978 LIBOTF_CFLAGS=""
12979 LIBOTF_LIBS=""
12980 ## If we have a custom action on failure, don't print errors, but
12981 ## do set a variable so people can do so.
12982 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12988 else
12989 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12990 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12994 if test $succeeded = yes; then
12995 HAVE_LIBOTF=yes
12996 else
12997 HAVE_LIBOTF=no
13000 if test "$HAVE_LIBOTF" = "yes"; then
13002 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13005 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13006 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13007 $as_echo_n "(cached) " >&6
13008 else
13009 ac_check_lib_save_LIBS=$LIBS
13010 LIBS="-lotf $LIBS"
13011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13012 /* end confdefs.h. */
13014 /* Override any GCC internal prototype to avoid an error.
13015 Use char because int might match the return type of a GCC
13016 builtin and then its argument prototype would still apply. */
13017 #ifdef __cplusplus
13018 extern "C"
13019 #endif
13020 char OTF_get_variation_glyphs ();
13022 main ()
13024 return OTF_get_variation_glyphs ();
13026 return 0;
13028 _ACEOF
13029 if ac_fn_c_try_link "$LINENO"; then :
13030 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13031 else
13032 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13034 rm -f core conftest.err conftest.$ac_objext \
13035 conftest$ac_exeext conftest.$ac_ext
13036 LIBS=$ac_check_lib_save_LIBS
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13039 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13040 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
13041 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13042 else
13043 HAVE_OTF_GET_VARIATION_GLYPHS=no
13046 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13048 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13055 HAVE_M17N_FLT=no
13056 if test "${HAVE_LIBOTF}" = yes; then
13057 if test "${with_m17n_flt}" != "no"; then
13059 succeeded=no
13061 # Extract the first word of "pkg-config", so it can be a program name with args.
13062 set dummy pkg-config; ac_word=$2
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064 $as_echo_n "checking for $ac_word... " >&6; }
13065 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13066 $as_echo_n "(cached) " >&6
13067 else
13068 case $PKG_CONFIG in
13069 [\\/]* | ?:[\\/]*)
13070 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13074 for as_dir in $PATH
13076 IFS=$as_save_IFS
13077 test -z "$as_dir" && as_dir=.
13078 for ac_exec_ext in '' $ac_executable_extensions; do
13079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13080 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13082 break 2
13084 done
13085 done
13086 IFS=$as_save_IFS
13088 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13090 esac
13092 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13093 if test -n "$PKG_CONFIG"; then
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13095 $as_echo "$PKG_CONFIG" >&6; }
13096 else
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13098 $as_echo "no" >&6; }
13103 if test "$PKG_CONFIG" = "no" ; then
13104 HAVE_M17N_FLT=no
13105 else
13106 PKG_CONFIG_MIN_VERSION=0.9.0
13107 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13109 $as_echo_n "checking for m17n-flt... " >&6; }
13111 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13113 $as_echo "yes" >&6; }
13114 succeeded=yes
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
13117 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
13118 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
13120 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
13123 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
13124 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
13126 $as_echo "$M17N_FLT_LIBS" >&6; }
13127 else
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129 $as_echo "no" >&6; }
13130 M17N_FLT_CFLAGS=""
13131 M17N_FLT_LIBS=""
13132 ## If we have a custom action on failure, don't print errors, but
13133 ## do set a variable so people can do so.
13134 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13140 else
13141 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13142 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13146 if test $succeeded = yes; then
13147 HAVE_M17N_FLT=yes
13148 else
13149 HAVE_M17N_FLT=no
13152 if test "$HAVE_M17N_FLT" = "yes"; then
13154 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13159 else
13160 HAVE_XFT=no
13161 HAVE_FREETYPE=no
13162 HAVE_LIBOTF=no
13163 HAVE_M17N_FLT=no
13166 ### End of font-backend (under X11) section.
13177 ### Use -lXpm if available, unless `--with-xpm=no'.
13178 HAVE_XPM=no
13179 LIBXPM=
13180 if test "${HAVE_X11}" = "yes"; then
13181 if test "${with_xpm}" != "no"; then
13182 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13183 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13185 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13186 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13187 $as_echo_n "(cached) " >&6
13188 else
13189 ac_check_lib_save_LIBS=$LIBS
13190 LIBS="-lXpm -lX11 $LIBS"
13191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192 /* end confdefs.h. */
13194 /* Override any GCC internal prototype to avoid an error.
13195 Use char because int might match the return type of a GCC
13196 builtin and then its argument prototype would still apply. */
13197 #ifdef __cplusplus
13198 extern "C"
13199 #endif
13200 char XpmReadFileToPixmap ();
13202 main ()
13204 return XpmReadFileToPixmap ();
13206 return 0;
13208 _ACEOF
13209 if ac_fn_c_try_link "$LINENO"; then :
13210 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13211 else
13212 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13214 rm -f core conftest.err conftest.$ac_objext \
13215 conftest$ac_exeext conftest.$ac_ext
13216 LIBS=$ac_check_lib_save_LIBS
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13219 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13220 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13221 HAVE_XPM=yes
13227 if test "${HAVE_XPM}" = "yes"; then
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13229 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231 /* end confdefs.h. */
13232 #include "X11/xpm.h"
13233 #ifndef XpmReturnAllocPixels
13234 no_return_alloc_pixels
13235 #endif
13237 _ACEOF
13238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13239 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13240 HAVE_XPM=no
13241 else
13242 HAVE_XPM=yes
13244 rm -f conftest*
13247 if test "${HAVE_XPM}" = "yes"; then
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13249 $as_echo "yes" >&6; }
13250 else
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13252 $as_echo "no" >&6; }
13257 if test "${HAVE_XPM}" = "yes"; then
13259 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13261 LIBXPM=-lXpm
13266 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13267 HAVE_JPEG=no
13268 LIBJPEG=
13269 if test "${HAVE_X11}" = "yes"; then
13270 if test "${with_jpeg}" != "no"; then
13271 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13272 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13274 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13275 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13276 $as_echo_n "(cached) " >&6
13277 else
13278 ac_check_lib_save_LIBS=$LIBS
13279 LIBS="-ljpeg $LIBS"
13280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281 /* end confdefs.h. */
13283 /* Override any GCC internal prototype to avoid an error.
13284 Use char because int might match the return type of a GCC
13285 builtin and then its argument prototype would still apply. */
13286 #ifdef __cplusplus
13287 extern "C"
13288 #endif
13289 char jpeg_destroy_compress ();
13291 main ()
13293 return jpeg_destroy_compress ();
13295 return 0;
13297 _ACEOF
13298 if ac_fn_c_try_link "$LINENO"; then :
13299 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13300 else
13301 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13303 rm -f core conftest.err conftest.$ac_objext \
13304 conftest$ac_exeext conftest.$ac_ext
13305 LIBS=$ac_check_lib_save_LIBS
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13308 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13309 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13310 HAVE_JPEG=yes
13318 if test "${HAVE_JPEG}" = "yes"; then
13319 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322 /* end confdefs.h. */
13323 #include <jpeglib.h>
13324 version=JPEG_LIB_VERSION
13326 _ACEOF
13327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13328 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13329 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13331 else
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13333 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13334 HAVE_JPEG=no
13336 rm -f conftest*
13339 if test "${HAVE_JPEG}" = "yes"; then
13340 LIBJPEG=-ljpeg
13345 ### Use -lpng if available, unless `--with-png=no'.
13346 HAVE_PNG=no
13347 LIBPNG=
13348 if test "${HAVE_X11}" = "yes"; then
13349 if test "${with_png}" != "no"; then
13350 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13351 # in /usr/include/libpng.
13352 for ac_header in png.h libpng/png.h
13353 do :
13354 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13355 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13356 eval as_val=\$$as_ac_Header
13357 if test "x$as_val" = x""yes; then :
13358 cat >>confdefs.h <<_ACEOF
13359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13360 _ACEOF
13364 done
13366 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13368 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13369 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13370 $as_echo_n "(cached) " >&6
13371 else
13372 ac_check_lib_save_LIBS=$LIBS
13373 LIBS="-lpng -lz -lm $LIBS"
13374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13375 /* end confdefs.h. */
13377 /* Override any GCC internal prototype to avoid an error.
13378 Use char because int might match the return type of a GCC
13379 builtin and then its argument prototype would still apply. */
13380 #ifdef __cplusplus
13381 extern "C"
13382 #endif
13383 char png_get_channels ();
13385 main ()
13387 return png_get_channels ();
13389 return 0;
13391 _ACEOF
13392 if ac_fn_c_try_link "$LINENO"; then :
13393 ac_cv_lib_png_png_get_channels=yes
13394 else
13395 ac_cv_lib_png_png_get_channels=no
13397 rm -f core conftest.err conftest.$ac_objext \
13398 conftest$ac_exeext conftest.$ac_ext
13399 LIBS=$ac_check_lib_save_LIBS
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13402 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13403 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13404 HAVE_PNG=yes
13410 if test "${HAVE_PNG}" = "yes"; then
13412 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13414 LIBPNG="-lpng -lz -lm"
13419 ### Use -ltiff if available, unless `--with-tiff=no'.
13420 HAVE_TIFF=no
13421 LIBTIFF=
13422 if test "${HAVE_X11}" = "yes"; then
13423 if test "${with_tiff}" != "no"; then
13424 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13425 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13426 tifflibs="-lz -lm"
13427 # At least one tiff package requires the jpeg library.
13428 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13430 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13431 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13432 $as_echo_n "(cached) " >&6
13433 else
13434 ac_check_lib_save_LIBS=$LIBS
13435 LIBS="-ltiff $tifflibs $LIBS"
13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h. */
13439 /* Override any GCC internal prototype to avoid an error.
13440 Use char because int might match the return type of a GCC
13441 builtin and then its argument prototype would still apply. */
13442 #ifdef __cplusplus
13443 extern "C"
13444 #endif
13445 char TIFFGetVersion ();
13447 main ()
13449 return TIFFGetVersion ();
13451 return 0;
13453 _ACEOF
13454 if ac_fn_c_try_link "$LINENO"; then :
13455 ac_cv_lib_tiff_TIFFGetVersion=yes
13456 else
13457 ac_cv_lib_tiff_TIFFGetVersion=no
13459 rm -f core conftest.err conftest.$ac_objext \
13460 conftest$ac_exeext conftest.$ac_ext
13461 LIBS=$ac_check_lib_save_LIBS
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13464 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13465 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13466 HAVE_TIFF=yes
13474 if test "${HAVE_TIFF}" = "yes"; then
13476 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13478 LIBTIFF=-ltiff
13483 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13484 HAVE_GIF=no
13485 LIBGIF=
13486 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13487 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13488 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13489 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13490 # Earlier versions can crash Emacs.
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13492 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13493 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13494 $as_echo_n "(cached) " >&6
13495 else
13496 ac_check_lib_save_LIBS=$LIBS
13497 LIBS="-lgif $LIBS"
13498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13499 /* end confdefs.h. */
13501 /* Override any GCC internal prototype to avoid an error.
13502 Use char because int might match the return type of a GCC
13503 builtin and then its argument prototype would still apply. */
13504 #ifdef __cplusplus
13505 extern "C"
13506 #endif
13507 char EGifPutExtensionLast ();
13509 main ()
13511 return EGifPutExtensionLast ();
13513 return 0;
13515 _ACEOF
13516 if ac_fn_c_try_link "$LINENO"; then :
13517 ac_cv_lib_gif_EGifPutExtensionLast=yes
13518 else
13519 ac_cv_lib_gif_EGifPutExtensionLast=no
13521 rm -f core conftest.err conftest.$ac_objext \
13522 conftest$ac_exeext conftest.$ac_ext
13523 LIBS=$ac_check_lib_save_LIBS
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13526 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13527 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13528 HAVE_GIF=yes
13529 else
13530 HAVE_GIF=maybe
13537 if test "$HAVE_GIF" = yes; then
13538 LIBGIF=-lgif
13539 elif test "$HAVE_GIF" = maybe; then
13540 # If gif_lib.h but no libgif, try libungif.
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13542 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13543 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13544 $as_echo_n "(cached) " >&6
13545 else
13546 ac_check_lib_save_LIBS=$LIBS
13547 LIBS="-lungif $LIBS"
13548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549 /* end confdefs.h. */
13551 /* Override any GCC internal prototype to avoid an error.
13552 Use char because int might match the return type of a GCC
13553 builtin and then its argument prototype would still apply. */
13554 #ifdef __cplusplus
13555 extern "C"
13556 #endif
13557 char EGifPutExtensionLast ();
13559 main ()
13561 return EGifPutExtensionLast ();
13563 return 0;
13565 _ACEOF
13566 if ac_fn_c_try_link "$LINENO"; then :
13567 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13568 else
13569 ac_cv_lib_ungif_EGifPutExtensionLast=no
13571 rm -f core conftest.err conftest.$ac_objext \
13572 conftest$ac_exeext conftest.$ac_ext
13573 LIBS=$ac_check_lib_save_LIBS
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13576 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13577 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13578 HAVE_GIF=yes
13579 else
13580 HAVE_GIF=no
13583 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13586 if test "${HAVE_GIF}" = "yes"; then
13588 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13594 if test "${HAVE_X11}" = "yes"; then
13595 MISSING=""
13596 WITH_NO=""
13597 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13598 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13599 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13600 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13601 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13602 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13603 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13604 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13605 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13606 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13608 if test "X${MISSING}" != X; then
13609 as_fn_error "The following required libraries were not found:
13610 $MISSING
13611 Maybe some development libraries/packages are missing?
13612 If you don't want to link with them give
13613 $WITH_NO
13614 as options to configure" "$LINENO" 5
13618 ### Use -lgpm if available, unless `--with-gpm=no'.
13619 HAVE_GPM=no
13620 LIBGPM=
13621 if test "${with_gpm}" != "no"; then
13622 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13623 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13625 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13626 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13627 $as_echo_n "(cached) " >&6
13628 else
13629 ac_check_lib_save_LIBS=$LIBS
13630 LIBS="-lgpm $LIBS"
13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13632 /* end confdefs.h. */
13634 /* Override any GCC internal prototype to avoid an error.
13635 Use char because int might match the return type of a GCC
13636 builtin and then its argument prototype would still apply. */
13637 #ifdef __cplusplus
13638 extern "C"
13639 #endif
13640 char Gpm_Open ();
13642 main ()
13644 return Gpm_Open ();
13646 return 0;
13648 _ACEOF
13649 if ac_fn_c_try_link "$LINENO"; then :
13650 ac_cv_lib_gpm_Gpm_Open=yes
13651 else
13652 ac_cv_lib_gpm_Gpm_Open=no
13654 rm -f core conftest.err conftest.$ac_objext \
13655 conftest$ac_exeext conftest.$ac_ext
13656 LIBS=$ac_check_lib_save_LIBS
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13659 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13660 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13661 HAVE_GPM=yes
13668 if test "${HAVE_GPM}" = "yes"; then
13670 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13672 LIBGPM=-lgpm
13677 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13678 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
13680 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13686 C_SWITCH_X_SYSTEM=
13687 ### Use NeXTstep API to implement GUI.
13688 if test "${HAVE_NS}" = "yes"; then
13690 $as_echo "#define HAVE_NS 1" >>confdefs.h
13692 if test "${NS_IMPL_COCOA}" = "yes"; then
13694 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13696 GNU_OBJC_CFLAGS=
13698 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13700 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13702 # See also .m.o rule in Makefile.in */
13703 # FIXME: are all these flags really needed? Document here why. */
13704 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
13705 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
13707 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13709 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13712 # We also have mouse menus.
13713 HAVE_MENUS=yes
13714 OTHER_FILES=ns-app
13718 ### Use session management (-lSM -lICE) if available
13719 HAVE_X_SM=no
13720 LIBXSM=
13721 if test "${HAVE_X11}" = "yes"; then
13722 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13723 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13725 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13726 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13727 $as_echo_n "(cached) " >&6
13728 else
13729 ac_check_lib_save_LIBS=$LIBS
13730 LIBS="-lSM -lICE $LIBS"
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13734 /* Override any GCC internal prototype to avoid an error.
13735 Use char because int might match the return type of a GCC
13736 builtin and then its argument prototype would still apply. */
13737 #ifdef __cplusplus
13738 extern "C"
13739 #endif
13740 char SmcOpenConnection ();
13742 main ()
13744 return SmcOpenConnection ();
13746 return 0;
13748 _ACEOF
13749 if ac_fn_c_try_link "$LINENO"; then :
13750 ac_cv_lib_SM_SmcOpenConnection=yes
13751 else
13752 ac_cv_lib_SM_SmcOpenConnection=no
13754 rm -f core conftest.err conftest.$ac_objext \
13755 conftest$ac_exeext conftest.$ac_ext
13756 LIBS=$ac_check_lib_save_LIBS
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13759 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13760 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13761 HAVE_X_SM=yes
13768 if test "${HAVE_X_SM}" = "yes"; then
13770 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13772 LIBXSM="-lSM -lICE"
13773 case "$LIBS" in
13774 *-lSM*) ;;
13775 *) LIBS="$LIBXSM $LIBS" ;;
13776 esac
13781 ### Use libxml (-lxml2) if available
13782 if test "${with_xml2}" != "no"; then
13783 ### I'm not sure what the version number should be, so I just guessed.
13785 succeeded=no
13787 # Extract the first word of "pkg-config", so it can be a program name with args.
13788 set dummy pkg-config; ac_word=$2
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13790 $as_echo_n "checking for $ac_word... " >&6; }
13791 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13792 $as_echo_n "(cached) " >&6
13793 else
13794 case $PKG_CONFIG in
13795 [\\/]* | ?:[\\/]*)
13796 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13800 for as_dir in $PATH
13802 IFS=$as_save_IFS
13803 test -z "$as_dir" && as_dir=.
13804 for ac_exec_ext in '' $ac_executable_extensions; do
13805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13806 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13808 break 2
13810 done
13811 done
13812 IFS=$as_save_IFS
13814 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13816 esac
13818 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13819 if test -n "$PKG_CONFIG"; then
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13821 $as_echo "$PKG_CONFIG" >&6; }
13822 else
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13824 $as_echo "no" >&6; }
13829 if test "$PKG_CONFIG" = "no" ; then
13830 HAVE_LIBXML2=no
13831 else
13832 PKG_CONFIG_MIN_VERSION=0.9.0
13833 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13835 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13837 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13839 $as_echo "yes" >&6; }
13840 succeeded=yes
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13843 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13844 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13846 $as_echo "$LIBXML2_CFLAGS" >&6; }
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13849 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13850 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13852 $as_echo "$LIBXML2_LIBS" >&6; }
13853 else
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13855 $as_echo "no" >&6; }
13856 LIBXML2_CFLAGS=""
13857 LIBXML2_LIBS=""
13858 ## If we have a custom action on failure, don't print errors, but
13859 ## do set a variable so people can do so.
13860 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13866 else
13867 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13868 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13872 if test $succeeded = yes; then
13873 HAVE_LIBXML2=yes
13874 else
13875 HAVE_LIBXML2=no
13878 if test "${HAVE_LIBXML2}" = "yes"; then
13879 LIBS="$LIBXML2_LIBS $LIBS"
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13881 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13882 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13883 $as_echo_n "(cached) " >&6
13884 else
13885 ac_check_lib_save_LIBS=$LIBS
13886 LIBS="-lxml2 $LIBS"
13887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888 /* end confdefs.h. */
13890 /* Override any GCC internal prototype to avoid an error.
13891 Use char because int might match the return type of a GCC
13892 builtin and then its argument prototype would still apply. */
13893 #ifdef __cplusplus
13894 extern "C"
13895 #endif
13896 char htmlReadMemory ();
13898 main ()
13900 return htmlReadMemory ();
13902 return 0;
13904 _ACEOF
13905 if ac_fn_c_try_link "$LINENO"; then :
13906 ac_cv_lib_xml2_htmlReadMemory=yes
13907 else
13908 ac_cv_lib_xml2_htmlReadMemory=no
13910 rm -f core conftest.err conftest.$ac_objext \
13911 conftest$ac_exeext conftest.$ac_ext
13912 LIBS=$ac_check_lib_save_LIBS
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13915 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13916 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13917 HAVE_LIBXML2=yes
13918 else
13919 HAVE_LIBXML2=no
13922 if test "${HAVE_LIBXML2}" = "yes"; then
13924 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13926 else
13927 LIBXML2_LIBS=""
13928 LIBXML2_CFLAGS=""
13935 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13937 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13938 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13939 $as_echo_n "(cached) " >&6
13940 else
13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h. */
13943 #include <netdb.h>
13945 main ()
13947 return h_errno;
13949 return 0;
13951 _ACEOF
13952 if ac_fn_c_try_link "$LINENO"; then :
13953 emacs_cv_netdb_declares_h_errno=yes
13954 else
13955 emacs_cv_netdb_declares_h_errno=no
13957 rm -f core conftest.err conftest.$ac_objext \
13958 conftest$ac_exeext conftest.$ac_ext
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13961 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13962 if test $emacs_cv_netdb_declares_h_errno = yes; then
13964 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13968 # fmod, logb, and frexp are found in -lm on most systems.
13969 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13971 $as_echo_n "checking for sqrt in -lm... " >&6; }
13972 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13973 $as_echo_n "(cached) " >&6
13974 else
13975 ac_check_lib_save_LIBS=$LIBS
13976 LIBS="-lm $LIBS"
13977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13978 /* end confdefs.h. */
13980 /* Override any GCC internal prototype to avoid an error.
13981 Use char because int might match the return type of a GCC
13982 builtin and then its argument prototype would still apply. */
13983 #ifdef __cplusplus
13984 extern "C"
13985 #endif
13986 char sqrt ();
13988 main ()
13990 return sqrt ();
13992 return 0;
13994 _ACEOF
13995 if ac_fn_c_try_link "$LINENO"; then :
13996 ac_cv_lib_m_sqrt=yes
13997 else
13998 ac_cv_lib_m_sqrt=no
14000 rm -f core conftest.err conftest.$ac_objext \
14001 conftest$ac_exeext conftest.$ac_ext
14002 LIBS=$ac_check_lib_save_LIBS
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14005 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14006 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14007 cat >>confdefs.h <<_ACEOF
14008 #define HAVE_LIBM 1
14009 _ACEOF
14011 LIBS="-lm $LIBS"
14016 # Check for mail-locking functions in a "mail" library. Probably this should
14017 # have the same check as for liblockfile below.
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14019 $as_echo_n "checking for maillock in -lmail... " >&6; }
14020 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14021 $as_echo_n "(cached) " >&6
14022 else
14023 ac_check_lib_save_LIBS=$LIBS
14024 LIBS="-lmail $LIBS"
14025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026 /* end confdefs.h. */
14028 /* Override any GCC internal prototype to avoid an error.
14029 Use char because int might match the return type of a GCC
14030 builtin and then its argument prototype would still apply. */
14031 #ifdef __cplusplus
14032 extern "C"
14033 #endif
14034 char maillock ();
14036 main ()
14038 return maillock ();
14040 return 0;
14042 _ACEOF
14043 if ac_fn_c_try_link "$LINENO"; then :
14044 ac_cv_lib_mail_maillock=yes
14045 else
14046 ac_cv_lib_mail_maillock=no
14048 rm -f core conftest.err conftest.$ac_objext \
14049 conftest$ac_exeext conftest.$ac_ext
14050 LIBS=$ac_check_lib_save_LIBS
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14053 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14054 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
14055 have_mail=yes
14056 else
14057 have_mail=no
14060 if test $have_mail = yes; then
14061 LIBS_MAIL=-lmail
14062 LIBS="$LIBS_MAIL $LIBS"
14064 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14066 else
14067 LIBS_MAIL=
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14070 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14071 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14072 $as_echo_n "(cached) " >&6
14073 else
14074 ac_check_lib_save_LIBS=$LIBS
14075 LIBS="-llockfile $LIBS"
14076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14077 /* end confdefs.h. */
14079 /* Override any GCC internal prototype to avoid an error.
14080 Use char because int might match the return type of a GCC
14081 builtin and then its argument prototype would still apply. */
14082 #ifdef __cplusplus
14083 extern "C"
14084 #endif
14085 char maillock ();
14087 main ()
14089 return maillock ();
14091 return 0;
14093 _ACEOF
14094 if ac_fn_c_try_link "$LINENO"; then :
14095 ac_cv_lib_lockfile_maillock=yes
14096 else
14097 ac_cv_lib_lockfile_maillock=no
14099 rm -f core conftest.err conftest.$ac_objext \
14100 conftest$ac_exeext conftest.$ac_ext
14101 LIBS=$ac_check_lib_save_LIBS
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14104 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14105 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
14106 have_lockfile=yes
14107 else
14108 have_lockfile=no
14111 if test $have_lockfile = yes; then
14112 LIBS_MAIL=-llockfile
14113 LIBS="$LIBS_MAIL $LIBS"
14115 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14117 else
14118 # If we have the shared liblockfile, assume we must use it for mail
14119 # locking (e.g. Debian). If we couldn't link against liblockfile
14120 # (no liblockfile.a installed), ensure that we don't need to.
14121 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14122 set dummy liblockfile.so; ac_word=$2
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14124 $as_echo_n "checking for $ac_word... " >&6; }
14125 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14126 $as_echo_n "(cached) " >&6
14127 else
14128 if test -n "$liblockfile"; then
14129 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14130 else
14131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14132 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14133 for as_dir in $as_dummy
14135 IFS=$as_save_IFS
14136 test -z "$as_dir" && as_dir=.
14137 for ac_exec_ext in '' $ac_executable_extensions; do
14138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14139 ac_cv_prog_liblockfile="yes"
14140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14141 break 2
14143 done
14144 done
14145 IFS=$as_save_IFS
14147 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14150 liblockfile=$ac_cv_prog_liblockfile
14151 if test -n "$liblockfile"; then
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14153 $as_echo "$liblockfile" >&6; }
14154 else
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14156 $as_echo "no" >&6; }
14160 if test $ac_cv_prog_liblockfile = yes; then
14161 as_fn_error "Shared liblockfile found but can't link against it.
14162 This probably means that movemail could lose mail.
14163 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14166 for ac_func in touchlock
14167 do :
14168 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
14169 if test "x$ac_cv_func_touchlock" = x""yes; then :
14170 cat >>confdefs.h <<_ACEOF
14171 #define HAVE_TOUCHLOCK 1
14172 _ACEOF
14175 done
14177 for ac_header in maillock.h
14178 do :
14179 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14180 if test "x$ac_cv_header_maillock_h" = x""yes; then :
14181 cat >>confdefs.h <<_ACEOF
14182 #define HAVE_MAILLOCK_H 1
14183 _ACEOF
14187 done
14191 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14192 ## interlock access to the mail spool. The alternative is a lock file named
14193 ## /usr/spool/mail/$USER.lock.
14194 mail_lock=no
14195 case "$opsys" in
14196 aix4-2) mail_lock="lockf" ;;
14198 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
14200 ## On GNU/Linux systems, both methods are used by various mail programs.
14201 ## I assume most people are using newer mailers that have heard of flock.
14202 ## Change this if you need to.
14203 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14204 ## configure gets the right answers, and that means *NOT* using flock.
14205 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14206 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14207 ## Debian maintainer hasn't provided a clean fix for Emacs.
14208 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14209 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14210 ## correct logic. -- fx
14211 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14212 ## liblockfile is a Free Software replacement for libmail, used on
14213 ## Debian systems and elsewhere. -rfr.
14214 gnu-*)
14215 mail_lock="flock"
14216 if test $have_mail = yes || test $have_lockfile = yes; then
14217 test $ac_cv_header_maillock_h = yes && mail_lock=no
14220 esac
14222 BLESSMAIL_TARGET=
14223 case "$mail_lock" in
14224 flock)
14225 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14228 lockf)
14229 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14232 *) BLESSMAIL_TARGET="need-blessmail" ;;
14233 esac
14237 for ac_func in gethostname getdomainname \
14238 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14239 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14240 strerror fpathconf select euidaccess getpagesize tzset setlocale \
14241 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14242 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14243 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14244 gai_strerror mkstemp getline getdelim mremap fsync sync \
14245 difftime mempcpy mblen mbrlen posix_memalign \
14246 cfmakeraw cfsetspeed copysign __executable_start
14247 do :
14248 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14249 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14250 eval as_val=\$$as_ac_var
14251 if test "x$as_val" = x""yes; then :
14252 cat >>confdefs.h <<_ACEOF
14253 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14254 _ACEOF
14257 done
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14261 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14262 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14263 $as_echo_n "(cached) " >&6
14264 else
14265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14266 /* end confdefs.h. */
14269 main ()
14271 __builtin_unwind_init ();
14273 return 0;
14275 _ACEOF
14276 if ac_fn_c_try_link "$LINENO"; then :
14277 emacs_cv_func___builtin_unwind_init=yes
14278 else
14279 emacs_cv_func___builtin_unwind_init=no
14281 rm -f core conftest.err conftest.$ac_objext \
14282 conftest$ac_exeext conftest.$ac_ext
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14285 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14286 if test $emacs_cv_func___builtin_unwind_init = yes; then
14288 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14292 for ac_header in sys/un.h
14293 do :
14294 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14295 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
14296 cat >>confdefs.h <<_ACEOF
14297 #define HAVE_SYS_UN_H 1
14298 _ACEOF
14302 done
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14306 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14307 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14308 $as_echo_n "(cached) " >&6
14309 else
14310 while :; do
14311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14312 /* end confdefs.h. */
14313 #include <sys/types.h> /* for off_t */
14314 #include <stdio.h>
14316 main ()
14318 int (*fp) (FILE *, off_t, int) = fseeko;
14319 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14321 return 0;
14323 _ACEOF
14324 if ac_fn_c_try_link "$LINENO"; then :
14325 ac_cv_sys_largefile_source=no; break
14327 rm -f core conftest.err conftest.$ac_objext \
14328 conftest$ac_exeext conftest.$ac_ext
14329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14330 /* end confdefs.h. */
14331 #define _LARGEFILE_SOURCE 1
14332 #include <sys/types.h> /* for off_t */
14333 #include <stdio.h>
14335 main ()
14337 int (*fp) (FILE *, off_t, int) = fseeko;
14338 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14340 return 0;
14342 _ACEOF
14343 if ac_fn_c_try_link "$LINENO"; then :
14344 ac_cv_sys_largefile_source=1; break
14346 rm -f core conftest.err conftest.$ac_objext \
14347 conftest$ac_exeext conftest.$ac_ext
14348 ac_cv_sys_largefile_source=unknown
14349 break
14350 done
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14353 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14354 case $ac_cv_sys_largefile_source in #(
14355 no | unknown) ;;
14357 cat >>confdefs.h <<_ACEOF
14358 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14359 _ACEOF
14361 esac
14362 rm -rf conftest*
14364 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14365 # in glibc 2.1.3, but that breaks too many other things.
14366 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14367 if test $ac_cv_sys_largefile_source != unknown; then
14369 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14375 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14376 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14377 $as_echo_n "(cached) " >&6
14378 else
14379 # Use it with a single arg.
14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h. */
14382 $ac_includes_default
14384 main ()
14386 getpgrp (0);
14388 return 0;
14390 _ACEOF
14391 if ac_fn_c_try_compile "$LINENO"; then :
14392 ac_cv_func_getpgrp_void=no
14393 else
14394 ac_cv_func_getpgrp_void=yes
14396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14400 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14401 if test $ac_cv_func_getpgrp_void = yes; then
14403 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14408 <<<<<<< TREE
14409 # Configure gnulib.
14410 =======
14411 # UNIX98 PTYs.
14412 for ac_func in grantpt
14413 do :
14414 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14415 if test "x$ac_cv_func_grantpt" = x""yes; then :
14416 cat >>confdefs.h <<_ACEOF
14417 #define HAVE_GRANTPT 1
14418 _ACEOF
14421 done
14424 # PTY-related GNU extensions.
14425 for ac_func in getpt
14426 do :
14427 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
14428 if test "x$ac_cv_func_getpt" = x""yes; then :
14429 cat >>confdefs.h <<_ACEOF
14430 #define HAVE_GETPT 1
14431 _ACEOF
14434 done
14437 # Check this now, so that we will NOT find the above functions in ncurses.
14438 # That is because we have not set up to link ncurses in lib-src.
14439 # It's better to believe a function is not available
14440 # than to expect to find it in ncurses.
14441 # Also we need tputs and friends to be able to build at all.
14442 have_tputs_et_al=true
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14444 $as_echo_n "checking for library containing tputs... " >&6; }
14445 if test "${ac_cv_search_tputs+set}" = set; then :
14446 $as_echo_n "(cached) " >&6
14447 else
14448 ac_func_search_save_LIBS=$LIBS
14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450 /* end confdefs.h. */
14452 /* Override any GCC internal prototype to avoid an error.
14453 Use char because int might match the return type of a GCC
14454 builtin and then its argument prototype would still apply. */
14455 #ifdef __cplusplus
14456 extern "C"
14457 #endif
14458 char tputs ();
14460 main ()
14462 return tputs ();
14464 return 0;
14466 _ACEOF
14467 for ac_lib in '' ncurses terminfo termcap; do
14468 if test -z "$ac_lib"; then
14469 ac_res="none required"
14470 else
14471 ac_res=-l$ac_lib
14472 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14474 if ac_fn_c_try_link "$LINENO"; then :
14475 ac_cv_search_tputs=$ac_res
14477 rm -f core conftest.err conftest.$ac_objext \
14478 conftest$ac_exeext
14479 if test "${ac_cv_search_tputs+set}" = set; then :
14480 break
14482 done
14483 if test "${ac_cv_search_tputs+set}" = set; then :
14485 else
14486 ac_cv_search_tputs=no
14488 rm conftest.$ac_ext
14489 LIBS=$ac_func_search_save_LIBS
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
14492 $as_echo "$ac_cv_search_tputs" >&6; }
14493 ac_res=$ac_cv_search_tputs
14494 if test "$ac_res" != no; then :
14495 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14497 else
14498 have_tputs_et_al=false
14501 if test "$have_tputs_et_al" != true; then
14502 as_fn_error "I couldn't find termcap functions (tputs and friends).
14503 Maybe some development libraries/packages are missing? Try installing
14504 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
14506 # Must define this when any termcap library is found.
14508 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14510 ## FIXME This was the cpp logic, but I am not sure it is right.
14511 ## The above test has not necessarily found libncurses.
14512 HAVE_LIBNCURSES=yes
14514 ## Use terminfo instead of termcap?
14515 ## Note only system files NOT using terminfo are:
14516 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14517 ## darwin|gnu without ncurses.
14518 TERMINFO=no
14519 LIBS_TERMCAP=
14520 case "$opsys" in
14521 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14522 ## hpux10-20: Use the system provided termcap(3) library.
14523 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14524 ## is necessary. Otherwise Emacs dumps core when run -nw.
14525 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
14527 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14528 ## The ncurses library has been moved out of the System framework in
14529 ## Mac OS X 10.2. So if configure detects it, set the command-line
14530 ## option to use it.
14531 darwin|gnu*)
14532 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14533 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14534 TERMINFO=yes
14535 LIBS_TERMCAP="-lncurses"
14539 freebsd)
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14541 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14542 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14543 $as_echo_n "(cached) " >&6
14544 else
14545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14546 /* end confdefs.h. */
14547 #include <osreldate.h>
14549 main ()
14551 #if __FreeBSD_version < 400000
14552 fail;
14553 #endif
14556 return 0;
14558 _ACEOF
14559 if ac_fn_c_try_link "$LINENO"; then :
14560 emacs_cv_freebsd_terminfo=yes
14561 else
14562 emacs_cv_freebsd_terminfo=no
14564 rm -f core conftest.err conftest.$ac_objext \
14565 conftest$ac_exeext conftest.$ac_ext
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14570 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14572 if test $emacs_cv_freebsd_terminfo = yes; then
14573 TERMINFO=yes
14574 LIBS_TERMCAP="-lncurses"
14575 else
14576 LIBS_TERMCAP="-ltermcap"
14580 netbsd)
14581 if test $ac_cv_search_tputs = -lterminfo; then
14582 TERMINFO=yes
14583 LIBS_TERMCAP="-lterminfo"
14584 else
14585 LIBS_TERMCAP="-ltermcap"
14589 esac
14591 case "$opsys" in
14592 ## hpux: Make sure we get select from libc rather than from libcurses
14593 ## because libcurses on HPUX 10.10 has a broken version of select.
14594 ## We used to use -lc -lcurses, but this may be cleaner.
14595 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14597 openbsd) LIBS_TERMCAP="-lncurses" ;;
14599 ## Must use system termcap, if we use any termcap. It does special things.
14600 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
14601 esac
14603 TERMCAP_OBJ=tparam.o
14604 if test $TERMINFO = yes; then
14606 $as_echo "#define TERMINFO 1" >>confdefs.h
14609 ## Default used to be -ltermcap. Add a case above if need something else.
14610 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
14612 TERMCAP_OBJ=terminfo.o
14618 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14619 resolv=no
14620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14621 /* end confdefs.h. */
14622 #include <netinet/in.h>
14623 #include <arpa/nameser.h>
14624 #include <resolv.h>
14626 main ()
14628 return res_init();
14630 return 0;
14632 _ACEOF
14633 if ac_fn_c_try_link "$LINENO"; then :
14634 have_res_init=yes
14635 else
14636 have_res_init=no
14638 rm -f core conftest.err conftest.$ac_objext \
14639 conftest$ac_exeext conftest.$ac_ext
14640 if test "$have_res_init" = no; then
14641 OLIBS="$LIBS"
14642 LIBS="$LIBS -lresolv"
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14644 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646 /* end confdefs.h. */
14647 #include <netinet/in.h>
14648 #include <arpa/nameser.h>
14649 #include <resolv.h>
14651 main ()
14653 return res_init();
14655 return 0;
14657 _ACEOF
14658 if ac_fn_c_try_link "$LINENO"; then :
14659 have_res_init=yes
14660 else
14661 have_res_init=no
14663 rm -f core conftest.err conftest.$ac_objext \
14664 conftest$ac_exeext conftest.$ac_ext
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14666 $as_echo "$have_res_init" >&6; }
14667 if test "$have_res_init" = yes ; then
14668 resolv=yes
14670 LIBS="$OLIBS"
14673 if test "$have_res_init" = yes; then
14675 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14679 # Do we need the Hesiod library to provide the support routines?
14680 LIBHESIOD=
14681 if test "$with_hesiod" != no ; then
14682 # Don't set $LIBS here -- see comments above. FIXME which comments?
14683 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14684 if test "x$ac_cv_func_res_send" = x""yes; then :
14686 else
14687 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14688 if test "x$ac_cv_func___res_send" = x""yes; then :
14690 else
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14692 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14693 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14694 $as_echo_n "(cached) " >&6
14695 else
14696 ac_check_lib_save_LIBS=$LIBS
14697 LIBS="-lresolv $LIBS"
14698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14699 /* end confdefs.h. */
14701 /* Override any GCC internal prototype to avoid an error.
14702 Use char because int might match the return type of a GCC
14703 builtin and then its argument prototype would still apply. */
14704 #ifdef __cplusplus
14705 extern "C"
14706 #endif
14707 char res_send ();
14709 main ()
14711 return res_send ();
14713 return 0;
14715 _ACEOF
14716 if ac_fn_c_try_link "$LINENO"; then :
14717 ac_cv_lib_resolv_res_send=yes
14718 else
14719 ac_cv_lib_resolv_res_send=no
14721 rm -f core conftest.err conftest.$ac_objext \
14722 conftest$ac_exeext conftest.$ac_ext
14723 LIBS=$ac_check_lib_save_LIBS
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14726 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14727 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
14728 resolv=yes
14729 else
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14731 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14732 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14733 $as_echo_n "(cached) " >&6
14734 else
14735 ac_check_lib_save_LIBS=$LIBS
14736 LIBS="-lresolv $LIBS"
14737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h. */
14740 /* Override any GCC internal prototype to avoid an error.
14741 Use char because int might match the return type of a GCC
14742 builtin and then its argument prototype would still apply. */
14743 #ifdef __cplusplus
14744 extern "C"
14745 #endif
14746 char __res_send ();
14748 main ()
14750 return __res_send ();
14752 return 0;
14754 _ACEOF
14755 if ac_fn_c_try_link "$LINENO"; then :
14756 ac_cv_lib_resolv___res_send=yes
14757 else
14758 ac_cv_lib_resolv___res_send=no
14760 rm -f core conftest.err conftest.$ac_objext \
14761 conftest$ac_exeext conftest.$ac_ext
14762 LIBS=$ac_check_lib_save_LIBS
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14765 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14766 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14767 resolv=yes
14776 if test "$resolv" = yes ; then
14777 RESOLVLIB=-lresolv
14778 else
14779 RESOLVLIB=
14781 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14782 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14784 else
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14786 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14787 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14788 $as_echo_n "(cached) " >&6
14789 else
14790 ac_check_lib_save_LIBS=$LIBS
14791 LIBS="-lhesiod $RESOLVLIB $LIBS"
14792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793 /* end confdefs.h. */
14795 /* Override any GCC internal prototype to avoid an error.
14796 Use char because int might match the return type of a GCC
14797 builtin and then its argument prototype would still apply. */
14798 #ifdef __cplusplus
14799 extern "C"
14800 #endif
14801 char hes_getmailhost ();
14803 main ()
14805 return hes_getmailhost ();
14807 return 0;
14809 _ACEOF
14810 if ac_fn_c_try_link "$LINENO"; then :
14811 ac_cv_lib_hesiod_hes_getmailhost=yes
14812 else
14813 ac_cv_lib_hesiod_hes_getmailhost=no
14815 rm -f core conftest.err conftest.$ac_objext \
14816 conftest$ac_exeext conftest.$ac_ext
14817 LIBS=$ac_check_lib_save_LIBS
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14820 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14821 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14822 hesiod=yes
14823 else
14830 if test x"$hesiod" = xyes; then
14832 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14834 LIBHESIOD=-lhesiod
14839 # Do we need libresolv (due to res_init or Hesiod)?
14840 if test "$resolv" = yes ; then
14842 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14844 LIBRESOLV=-lresolv
14845 else
14846 LIBRESOLV=
14850 # These tell us which Kerberos-related libraries to use.
14851 COM_ERRLIB=
14852 CRYPTOLIB=
14853 KRB5LIB=
14854 DESLIB=
14855 KRB4LIB=
14857 if test "${with_kerberos}" != no; then
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14859 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14860 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14861 $as_echo_n "(cached) " >&6
14862 else
14863 ac_check_lib_save_LIBS=$LIBS
14864 LIBS="-lcom_err $LIBS"
14865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866 /* end confdefs.h. */
14868 /* Override any GCC internal prototype to avoid an error.
14869 Use char because int might match the return type of a GCC
14870 builtin and then its argument prototype would still apply. */
14871 #ifdef __cplusplus
14872 extern "C"
14873 #endif
14874 char com_err ();
14876 main ()
14878 return com_err ();
14880 return 0;
14882 _ACEOF
14883 if ac_fn_c_try_link "$LINENO"; then :
14884 ac_cv_lib_com_err_com_err=yes
14885 else
14886 ac_cv_lib_com_err_com_err=no
14888 rm -f core conftest.err conftest.$ac_objext \
14889 conftest$ac_exeext conftest.$ac_ext
14890 LIBS=$ac_check_lib_save_LIBS
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14893 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14894 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14895 have_com_err=yes
14896 else
14897 have_com_err=no
14900 if test $have_com_err = yes; then
14901 COM_ERRLIB=-lcom_err
14902 LIBS="$COM_ERRLIB $LIBS"
14904 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14908 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14909 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14910 $as_echo_n "(cached) " >&6
14911 else
14912 ac_check_lib_save_LIBS=$LIBS
14913 LIBS="-lcrypto $LIBS"
14914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915 /* end confdefs.h. */
14917 /* Override any GCC internal prototype to avoid an error.
14918 Use char because int might match the return type of a GCC
14919 builtin and then its argument prototype would still apply. */
14920 #ifdef __cplusplus
14921 extern "C"
14922 #endif
14923 char mit_des_cbc_encrypt ();
14925 main ()
14927 return mit_des_cbc_encrypt ();
14929 return 0;
14931 _ACEOF
14932 if ac_fn_c_try_link "$LINENO"; then :
14933 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14934 else
14935 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14937 rm -f core conftest.err conftest.$ac_objext \
14938 conftest$ac_exeext conftest.$ac_ext
14939 LIBS=$ac_check_lib_save_LIBS
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14942 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14943 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14944 have_crypto=yes
14945 else
14946 have_crypto=no
14949 if test $have_crypto = yes; then
14950 CRYPTOLIB=-lcrypto
14951 LIBS="$CRYPTOLIB $LIBS"
14953 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14957 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14958 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14959 $as_echo_n "(cached) " >&6
14960 else
14961 ac_check_lib_save_LIBS=$LIBS
14962 LIBS="-lk5crypto $LIBS"
14963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964 /* end confdefs.h. */
14966 /* Override any GCC internal prototype to avoid an error.
14967 Use char because int might match the return type of a GCC
14968 builtin and then its argument prototype would still apply. */
14969 #ifdef __cplusplus
14970 extern "C"
14971 #endif
14972 char mit_des_cbc_encrypt ();
14974 main ()
14976 return mit_des_cbc_encrypt ();
14978 return 0;
14980 _ACEOF
14981 if ac_fn_c_try_link "$LINENO"; then :
14982 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14983 else
14984 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14986 rm -f core conftest.err conftest.$ac_objext \
14987 conftest$ac_exeext conftest.$ac_ext
14988 LIBS=$ac_check_lib_save_LIBS
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14991 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14992 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14993 have_k5crypto=yes
14994 else
14995 have_k5crypto=no
14998 if test $have_k5crypto = yes; then
14999 CRYPTOLIB=-lk5crypto
15000 LIBS="$CRYPTOLIB $LIBS"
15002 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15006 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15007 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15008 $as_echo_n "(cached) " >&6
15009 else
15010 ac_check_lib_save_LIBS=$LIBS
15011 LIBS="-lkrb5 $LIBS"
15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15013 /* end confdefs.h. */
15015 /* Override any GCC internal prototype to avoid an error.
15016 Use char because int might match the return type of a GCC
15017 builtin and then its argument prototype would still apply. */
15018 #ifdef __cplusplus
15019 extern "C"
15020 #endif
15021 char krb5_init_context ();
15023 main ()
15025 return krb5_init_context ();
15027 return 0;
15029 _ACEOF
15030 if ac_fn_c_try_link "$LINENO"; then :
15031 ac_cv_lib_krb5_krb5_init_context=yes
15032 else
15033 ac_cv_lib_krb5_krb5_init_context=no
15035 rm -f core conftest.err conftest.$ac_objext \
15036 conftest$ac_exeext conftest.$ac_ext
15037 LIBS=$ac_check_lib_save_LIBS
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15040 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15041 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
15042 have_krb5=yes
15043 else
15044 have_krb5=no
15047 if test $have_krb5=yes; then
15048 KRB5LIB=-lkrb5
15049 LIBS="$KRB5LIB $LIBS"
15051 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
15054 if test "${with_kerberos5}" = no; then
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15056 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15057 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15058 $as_echo_n "(cached) " >&6
15059 else
15060 ac_check_lib_save_LIBS=$LIBS
15061 LIBS="-ldes425 $LIBS"
15062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15063 /* end confdefs.h. */
15065 /* Override any GCC internal prototype to avoid an error.
15066 Use char because int might match the return type of a GCC
15067 builtin and then its argument prototype would still apply. */
15068 #ifdef __cplusplus
15069 extern "C"
15070 #endif
15071 char des_cbc_encrypt ();
15073 main ()
15075 return des_cbc_encrypt ();
15077 return 0;
15079 _ACEOF
15080 if ac_fn_c_try_link "$LINENO"; then :
15081 ac_cv_lib_des425_des_cbc_encrypt=yes
15082 else
15083 ac_cv_lib_des425_des_cbc_encrypt=no
15085 rm -f core conftest.err conftest.$ac_objext \
15086 conftest$ac_exeext conftest.$ac_ext
15087 LIBS=$ac_check_lib_save_LIBS
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15090 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15091 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
15092 have_des425=yes
15093 else
15094 have_des425=no
15097 if test $have_des425 = yes; then
15098 DESLIB=-ldes425
15099 LIBS="$DESLIB $LIBS"
15101 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
15103 else
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15105 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15106 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15107 $as_echo_n "(cached) " >&6
15108 else
15109 ac_check_lib_save_LIBS=$LIBS
15110 LIBS="-ldes $LIBS"
15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15112 /* end confdefs.h. */
15114 /* Override any GCC internal prototype to avoid an error.
15115 Use char because int might match the return type of a GCC
15116 builtin and then its argument prototype would still apply. */
15117 #ifdef __cplusplus
15118 extern "C"
15119 #endif
15120 char des_cbc_encrypt ();
15122 main ()
15124 return des_cbc_encrypt ();
15126 return 0;
15128 _ACEOF
15129 if ac_fn_c_try_link "$LINENO"; then :
15130 ac_cv_lib_des_des_cbc_encrypt=yes
15131 else
15132 ac_cv_lib_des_des_cbc_encrypt=no
15134 rm -f core conftest.err conftest.$ac_objext \
15135 conftest$ac_exeext conftest.$ac_ext
15136 LIBS=$ac_check_lib_save_LIBS
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15139 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15140 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
15141 have_des=yes
15142 else
15143 have_des=no
15146 if test $have_des = yes; then
15147 DESLIB=-ldes
15148 LIBS="$DESLIB $LIBS"
15150 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15155 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15156 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15157 $as_echo_n "(cached) " >&6
15158 else
15159 ac_check_lib_save_LIBS=$LIBS
15160 LIBS="-lkrb4 $LIBS"
15161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15162 /* end confdefs.h. */
15164 /* Override any GCC internal prototype to avoid an error.
15165 Use char because int might match the return type of a GCC
15166 builtin and then its argument prototype would still apply. */
15167 #ifdef __cplusplus
15168 extern "C"
15169 #endif
15170 char krb_get_cred ();
15172 main ()
15174 return krb_get_cred ();
15176 return 0;
15178 _ACEOF
15179 if ac_fn_c_try_link "$LINENO"; then :
15180 ac_cv_lib_krb4_krb_get_cred=yes
15181 else
15182 ac_cv_lib_krb4_krb_get_cred=no
15184 rm -f core conftest.err conftest.$ac_objext \
15185 conftest$ac_exeext conftest.$ac_ext
15186 LIBS=$ac_check_lib_save_LIBS
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15189 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15190 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
15191 have_krb4=yes
15192 else
15193 have_krb4=no
15196 if test $have_krb4 = yes; then
15197 KRB4LIB=-lkrb4
15198 LIBS="$KRB4LIB $LIBS"
15200 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15202 else
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15204 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15205 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15206 $as_echo_n "(cached) " >&6
15207 else
15208 ac_check_lib_save_LIBS=$LIBS
15209 LIBS="-lkrb $LIBS"
15210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15211 /* end confdefs.h. */
15213 /* Override any GCC internal prototype to avoid an error.
15214 Use char because int might match the return type of a GCC
15215 builtin and then its argument prototype would still apply. */
15216 #ifdef __cplusplus
15217 extern "C"
15218 #endif
15219 char krb_get_cred ();
15221 main ()
15223 return krb_get_cred ();
15225 return 0;
15227 _ACEOF
15228 if ac_fn_c_try_link "$LINENO"; then :
15229 ac_cv_lib_krb_krb_get_cred=yes
15230 else
15231 ac_cv_lib_krb_krb_get_cred=no
15233 rm -f core conftest.err conftest.$ac_objext \
15234 conftest$ac_exeext conftest.$ac_ext
15235 LIBS=$ac_check_lib_save_LIBS
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15238 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15239 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
15240 have_krb=yes
15241 else
15242 have_krb=no
15245 if test $have_krb = yes; then
15246 KRB4LIB=-lkrb
15247 LIBS="$KRB4LIB $LIBS"
15249 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15255 if test "${with_kerberos5}" != no; then
15256 for ac_header in krb5.h
15257 do :
15258 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15259 if test "x$ac_cv_header_krb5_h" = x""yes; then :
15260 cat >>confdefs.h <<_ACEOF
15261 #define HAVE_KRB5_H 1
15262 _ACEOF
15263 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15265 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
15267 cat >>confdefs.h <<_ACEOF
15268 #define HAVE_KRB5_ERROR_TEXT 1
15269 _ACEOF
15273 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15275 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
15277 cat >>confdefs.h <<_ACEOF
15278 #define HAVE_KRB5_ERROR_E_TEXT 1
15279 _ACEOF
15286 done
15288 else
15289 for ac_header in des.h
15290 do :
15291 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15292 if test "x$ac_cv_header_des_h" = x""yes; then :
15293 cat >>confdefs.h <<_ACEOF
15294 #define HAVE_DES_H 1
15295 _ACEOF
15297 else
15298 for ac_header in kerberosIV/des.h
15299 do :
15300 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15301 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
15302 cat >>confdefs.h <<_ACEOF
15303 #define HAVE_KERBEROSIV_DES_H 1
15304 _ACEOF
15306 else
15307 for ac_header in kerberos/des.h
15308 do :
15309 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15310 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
15311 cat >>confdefs.h <<_ACEOF
15312 #define HAVE_KERBEROS_DES_H 1
15313 _ACEOF
15317 done
15321 done
15325 done
15327 for ac_header in krb.h
15328 do :
15329 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15330 if test "x$ac_cv_header_krb_h" = x""yes; then :
15331 cat >>confdefs.h <<_ACEOF
15332 #define HAVE_KRB_H 1
15333 _ACEOF
15335 else
15336 for ac_header in kerberosIV/krb.h
15337 do :
15338 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15339 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
15340 cat >>confdefs.h <<_ACEOF
15341 #define HAVE_KERBEROSIV_KRB_H 1
15342 _ACEOF
15344 else
15345 for ac_header in kerberos/krb.h
15346 do :
15347 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15348 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
15349 cat >>confdefs.h <<_ACEOF
15350 #define HAVE_KERBEROS_KRB_H 1
15351 _ACEOF
15355 done
15359 done
15363 done
15366 for ac_header in com_err.h
15367 do :
15368 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15369 if test "x$ac_cv_header_com_err_h" = x""yes; then :
15370 cat >>confdefs.h <<_ACEOF
15371 #define HAVE_COM_ERR_H 1
15372 _ACEOF
15376 done
15386 # Solaris requires -lintl if you want strerror (which calls dgettext)
15387 # to return localized messages.
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
15389 $as_echo_n "checking for dgettext in -lintl... " >&6; }
15390 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
15391 $as_echo_n "(cached) " >&6
15392 else
15393 ac_check_lib_save_LIBS=$LIBS
15394 LIBS="-lintl $LIBS"
15395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15396 /* end confdefs.h. */
15398 /* Override any GCC internal prototype to avoid an error.
15399 Use char because int might match the return type of a GCC
15400 builtin and then its argument prototype would still apply. */
15401 #ifdef __cplusplus
15402 extern "C"
15403 #endif
15404 char dgettext ();
15406 main ()
15408 return dgettext ();
15410 return 0;
15412 _ACEOF
15413 if ac_fn_c_try_link "$LINENO"; then :
15414 ac_cv_lib_intl_dgettext=yes
15415 else
15416 ac_cv_lib_intl_dgettext=no
15418 rm -f core conftest.err conftest.$ac_objext \
15419 conftest$ac_exeext conftest.$ac_ext
15420 LIBS=$ac_check_lib_save_LIBS
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
15423 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
15424 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
15425 cat >>confdefs.h <<_ACEOF
15426 #define HAVE_LIBINTL 1
15427 _ACEOF
15429 LIBS="-lintl $LIBS"
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15435 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15436 if test "${emacs_cv_localtime_cache+set}" = set; then :
15437 $as_echo_n "(cached) " >&6
15438 else
15439 if test x$ac_cv_func_tzset = xyes; then
15440 if test "$cross_compiling" = yes; then :
15441 # If we have tzset, assume the worst when cross-compiling.
15442 emacs_cv_localtime_cache=yes
15443 else
15444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15445 /* end confdefs.h. */
15446 #include <time.h>
15447 char TZ_GMT0[] = "TZ=GMT0";
15448 char TZ_PST8[] = "TZ=PST8";
15449 main()
15451 time_t now = time ((time_t *) 0);
15452 int hour_GMT0, hour_unset;
15453 if (putenv (TZ_GMT0) != 0)
15454 exit (1);
15455 hour_GMT0 = localtime (&now)->tm_hour;
15456 unsetenv("TZ");
15457 hour_unset = localtime (&now)->tm_hour;
15458 if (putenv (TZ_PST8) != 0)
15459 exit (1);
15460 if (localtime (&now)->tm_hour == hour_GMT0)
15461 exit (1);
15462 unsetenv("TZ");
15463 if (localtime (&now)->tm_hour != hour_unset)
15464 exit (1);
15465 exit (0);
15467 _ACEOF
15468 if ac_fn_c_try_run "$LINENO"; then :
15469 emacs_cv_localtime_cache=no
15470 else
15471 emacs_cv_localtime_cache=yes
15473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15474 conftest.$ac_objext conftest.beam conftest.$ac_ext
15477 else
15478 # If we lack tzset, report that localtime does not cache TZ,
15479 # since we can't invalidate the cache if we don't have tzset.
15480 emacs_cv_localtime_cache=no
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15484 $as_echo "$emacs_cv_localtime_cache" >&6; }
15485 if test $emacs_cv_localtime_cache = yes; then
15487 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15491 if test "x$HAVE_TIMEVAL" = xyes; then
15492 for ac_func in gettimeofday
15493 do :
15494 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15495 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
15496 cat >>confdefs.h <<_ACEOF
15497 #define HAVE_GETTIMEOFDAY 1
15498 _ACEOF
15501 done
15503 if test $ac_cv_func_gettimeofday = yes; then
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15505 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15506 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15507 $as_echo_n "(cached) " >&6
15508 else
15509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15510 /* end confdefs.h. */
15512 #ifdef TIME_WITH_SYS_TIME
15513 #include <sys/time.h>
15514 #include <time.h>
15515 #else
15516 #ifdef HAVE_SYS_TIME_H
15517 #include <sys/time.h>
15518 #else
15519 #include <time.h>
15520 #endif
15521 #endif
15523 main ()
15525 struct timeval time;
15526 gettimeofday (&time, 0);
15528 return 0;
15530 _ACEOF
15531 if ac_fn_c_try_compile "$LINENO"; then :
15532 emacs_cv_gettimeofday_two_arguments=yes
15533 else
15534 emacs_cv_gettimeofday_two_arguments=no
15536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15539 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15540 if test $emacs_cv_gettimeofday_two_arguments = no; then
15542 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15548 ok_so_far=yes
15549 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15550 if test "x$ac_cv_func_socket" = x""yes; then :
15552 else
15553 ok_so_far=no
15556 if test $ok_so_far = yes; then
15557 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15558 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15560 else
15561 ok_so_far=no
15566 if test $ok_so_far = yes; then
15567 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15568 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15570 else
15571 ok_so_far=no
15576 if test $ok_so_far = yes; then
15578 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15582 if test -f /usr/lpp/X11/bin/smt.exp; then
15584 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15589 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15590 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15592 $as_echo "yes" >&6; }
15594 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15596 else
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15598 $as_echo "no" >&6; }
15601 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15602 if test "x$ac_cv_type_pid_t" = x""yes; then :
15604 else
15606 cat >>confdefs.h <<_ACEOF
15607 #define pid_t int
15608 _ACEOF
15612 for ac_header in vfork.h
15613 do :
15614 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15615 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15616 cat >>confdefs.h <<_ACEOF
15617 #define HAVE_VFORK_H 1
15618 _ACEOF
15622 done
15624 for ac_func in fork vfork
15625 do :
15626 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15627 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15628 eval as_val=\$$as_ac_var
15629 if test "x$as_val" = x""yes; then :
15630 cat >>confdefs.h <<_ACEOF
15631 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15632 _ACEOF
15635 done
15637 if test "x$ac_cv_func_fork" = xyes; then
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15639 $as_echo_n "checking for working fork... " >&6; }
15640 if test "${ac_cv_func_fork_works+set}" = set; then :
15641 $as_echo_n "(cached) " >&6
15642 else
15643 if test "$cross_compiling" = yes; then :
15644 ac_cv_func_fork_works=cross
15645 else
15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647 /* end confdefs.h. */
15648 $ac_includes_default
15650 main ()
15653 /* By Ruediger Kuhlmann. */
15654 return fork () < 0;
15657 return 0;
15659 _ACEOF
15660 if ac_fn_c_try_run "$LINENO"; then :
15661 ac_cv_func_fork_works=yes
15662 else
15663 ac_cv_func_fork_works=no
15665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15666 conftest.$ac_objext conftest.beam conftest.$ac_ext
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15671 $as_echo "$ac_cv_func_fork_works" >&6; }
15673 else
15674 ac_cv_func_fork_works=$ac_cv_func_fork
15676 if test "x$ac_cv_func_fork_works" = xcross; then
15677 case $host in
15678 *-*-amigaos* | *-*-msdosdjgpp*)
15679 # Override, as these systems have only a dummy fork() stub
15680 ac_cv_func_fork_works=no
15683 ac_cv_func_fork_works=yes
15685 esac
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15687 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15689 ac_cv_func_vfork_works=$ac_cv_func_vfork
15690 if test "x$ac_cv_func_vfork" = xyes; then
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15692 $as_echo_n "checking for working vfork... " >&6; }
15693 if test "${ac_cv_func_vfork_works+set}" = set; then :
15694 $as_echo_n "(cached) " >&6
15695 else
15696 if test "$cross_compiling" = yes; then :
15697 ac_cv_func_vfork_works=cross
15698 else
15699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15700 /* end confdefs.h. */
15701 /* Thanks to Paul Eggert for this test. */
15702 $ac_includes_default
15703 #include <sys/wait.h>
15704 #ifdef HAVE_VFORK_H
15705 # include <vfork.h>
15706 #endif
15707 /* On some sparc systems, changes by the child to local and incoming
15708 argument registers are propagated back to the parent. The compiler
15709 is told about this with #include <vfork.h>, but some compilers
15710 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15711 static variable whose address is put into a register that is
15712 clobbered by the vfork. */
15713 static void
15714 #ifdef __cplusplus
15715 sparc_address_test (int arg)
15716 # else
15717 sparc_address_test (arg) int arg;
15718 #endif
15720 static pid_t child;
15721 if (!child) {
15722 child = vfork ();
15723 if (child < 0) {
15724 perror ("vfork");
15725 _exit(2);
15727 if (!child) {
15728 arg = getpid();
15729 write(-1, "", 0);
15730 _exit (arg);
15736 main ()
15738 pid_t parent = getpid ();
15739 pid_t child;
15741 sparc_address_test (0);
15743 child = vfork ();
15745 if (child == 0) {
15746 /* Here is another test for sparc vfork register problems. This
15747 test uses lots of local variables, at least as many local
15748 variables as main has allocated so far including compiler
15749 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15750 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15751 reuse the register of parent for one of the local variables,
15752 since it will think that parent can't possibly be used any more
15753 in this routine. Assigning to the local variable will thus
15754 munge parent in the parent process. */
15755 pid_t
15756 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15757 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15758 /* Convince the compiler that p..p7 are live; otherwise, it might
15759 use the same hardware register for all 8 local variables. */
15760 if (p != p1 || p != p2 || p != p3 || p != p4
15761 || p != p5 || p != p6 || p != p7)
15762 _exit(1);
15764 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15765 from child file descriptors. If the child closes a descriptor
15766 before it execs or exits, this munges the parent's descriptor
15767 as well. Test for this by closing stdout in the child. */
15768 _exit(close(fileno(stdout)) != 0);
15769 } else {
15770 int status;
15771 struct stat st;
15773 while (wait(&status) != child)
15775 return (
15776 /* Was there some problem with vforking? */
15777 child < 0
15779 /* Did the child fail? (This shouldn't happen.) */
15780 || status
15782 /* Did the vfork/compiler bug occur? */
15783 || parent != getpid()
15785 /* Did the file descriptor bug occur? */
15786 || fstat(fileno(stdout), &st) != 0
15790 _ACEOF
15791 if ac_fn_c_try_run "$LINENO"; then :
15792 ac_cv_func_vfork_works=yes
15793 else
15794 ac_cv_func_vfork_works=no
15796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15797 conftest.$ac_objext conftest.beam conftest.$ac_ext
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15802 $as_echo "$ac_cv_func_vfork_works" >&6; }
15805 if test "x$ac_cv_func_fork_works" = xcross; then
15806 ac_cv_func_vfork_works=$ac_cv_func_vfork
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15808 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15811 if test "x$ac_cv_func_vfork_works" = xyes; then
15813 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15815 else
15817 $as_echo "#define vfork fork" >>confdefs.h
15820 if test "x$ac_cv_func_fork_works" = xyes; then
15822 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15827 for ac_func in snprintf
15828 do :
15829 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15830 if test "x$ac_cv_func_snprintf" = x""yes; then :
15831 cat >>confdefs.h <<_ACEOF
15832 #define HAVE_SNPRINTF 1
15833 _ACEOF
15836 done
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15840 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15841 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15842 $as_echo_n "(cached) " >&6
15843 else
15844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h. */
15846 #include <langinfo.h>
15848 main ()
15850 char* cs = nl_langinfo(CODESET);
15852 return 0;
15854 _ACEOF
15855 if ac_fn_c_try_link "$LINENO"; then :
15856 emacs_cv_langinfo_codeset=yes
15857 else
15858 emacs_cv_langinfo_codeset=no
15860 rm -f core conftest.err conftest.$ac_objext \
15861 conftest$ac_exeext conftest.$ac_ext
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15865 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15866 if test $emacs_cv_langinfo_codeset = yes; then
15868 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15873 $as_echo_n "checking for mbstate_t... " >&6; }
15874 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15875 $as_echo_n "(cached) " >&6
15876 else
15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878 /* end confdefs.h. */
15879 $ac_includes_default
15880 # include <wchar.h>
15882 main ()
15884 mbstate_t x; return sizeof x;
15886 return 0;
15888 _ACEOF
15889 if ac_fn_c_try_compile "$LINENO"; then :
15890 ac_cv_type_mbstate_t=yes
15891 else
15892 ac_cv_type_mbstate_t=no
15894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15897 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15898 if test $ac_cv_type_mbstate_t = yes; then
15900 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15902 else
15904 $as_echo "#define mbstate_t int" >>confdefs.h
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15909 $as_echo_n "checking for C restricted array declarations... " >&6; }
15910 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15911 $as_echo_n "(cached) " >&6
15912 else
15913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15914 /* end confdefs.h. */
15915 void fred (int x[__restrict]);
15917 main ()
15921 return 0;
15923 _ACEOF
15924 if ac_fn_c_try_compile "$LINENO"; then :
15925 emacs_cv_c_restrict_arr=yes
15926 else
15927 emacs_cv_c_restrict_arr=no
15929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15932 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15933 if test "$emacs_cv_c_restrict_arr" = yes; then
15935 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15940 # Set up the CFLAGS for real compilation, so we can substitute it.
15941 CFLAGS="$REAL_CFLAGS"
15942 CPPFLAGS="$REAL_CPPFLAGS"
15944 ## Hack to detect a buggy GCC version.
15945 if test "x$GCC" = xyes \
15946 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15947 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15948 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15949 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15952 version=$PACKAGE_VERSION
15954 ### Specify what sort of things we'll be editing into Makefile and config.h.
15955 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15958 ## Unused?
15979 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15980 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15981 ## end of LIBX_BASE, but nothing ever set it.
15986 ## Used in lwlib/Makefile.in.
15988 if test -n "${machfile}"; then
15989 M_FILE="\$(srcdir)/${machfile}"
15990 else
15991 M_FILE=
15993 S_FILE="\$(srcdir)/${opsysfile}"
16004 cat >>confdefs.h <<_ACEOF
16005 #define EMACS_CONFIGURATION "${canonical}"
16006 _ACEOF
16009 cat >>confdefs.h <<_ACEOF
16010 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
16011 _ACEOF
16013 if test -n "$machfile"; then
16015 cat >>confdefs.h <<_ACEOF
16016 #define config_machfile "${machfile}"
16017 _ACEOF
16021 cat >>confdefs.h <<_ACEOF
16022 #define config_opsysfile "${opsysfile}"
16023 _ACEOF
16026 XMENU_OBJ=
16027 XOBJ=
16028 FONT_OBJ=
16029 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16031 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16033 XMENU_OBJ=xmenu.o
16034 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
16035 FONT_OBJ=xfont.o
16036 if test "$HAVE_XFT" = "yes"; then
16037 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16038 elif test "$HAVE_FREETYPE" = "yes"; then
16039 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
16047 WIDGET_OBJ=
16048 MOTIF_LIBW=
16049 if test "${USE_X_TOOLKIT}" != "none" ; then
16050 WIDGET_OBJ=widget.o
16052 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16054 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16056 $as_echo "#define USE_LUCID 1" >>confdefs.h
16058 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16060 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16062 MOTIF_LIBW=-lXm
16063 case "$opsys" in
16064 gnu-linux)
16065 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16066 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
16069 unixware)
16070 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16071 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16072 MOTIF_LIBW="MOTIF_LIBW -lXimp"
16075 aix4-2)
16076 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16077 MOTIF_LIBW="$MOTIF_LIBW -li18n"
16079 esac
16080 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
16085 TOOLKIT_LIBW=
16086 case "$USE_X_TOOLKIT" in
16087 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16088 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16089 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16090 esac
16093 if test "$USE_X_TOOLKIT" = "none"; then
16094 LIBXT_OTHER="\$(LIBXSM)"
16095 OLDXMENU_TARGET="really-oldXMenu"
16096 else
16097 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16098 OLDXMENU_TARGET="really-lwlib"
16102 ## The X Menu stuff is present in the X10 distribution, but missing
16103 ## from X11. If we have X10, just use the installed library;
16104 ## otherwise, use our own copy.
16105 if test "${HAVE_X11}" = "yes" ; then
16107 $as_echo "#define HAVE_X11 1" >>confdefs.h
16110 if test "$USE_X_TOOLKIT" = "none"; then
16111 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16112 else
16113 OLDXMENU="\${lwlibdir}/liblw.a"
16115 LIBXMENU="\$(OLDXMENU)"
16116 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16117 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16118 else
16119 ## For a syntactically valid Makefile; not actually used for anything.
16120 ## See comments in src/Makefile.in.
16121 OLDXMENU=nothing
16122 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16123 if test "${HAVE_X_WINDOWS}" = "yes"; then
16124 LIBXMENU="-lXMenu"
16125 else
16126 LIBXMENU=
16128 LIBX_OTHER=
16129 OLDXMENU_DEPS=
16132 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16133 OLDXMENU_TARGET=
16134 OLDXMENU=nothing
16135 LIBXMENU=
16136 OLDXMENU_DEPS=
16145 if test "${HAVE_MENUS}" = "yes" ; then
16147 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16151 if test "${GNU_MALLOC}" = "yes" ; then
16153 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16157 RALLOC_OBJ=
16158 if test "${REL_ALLOC}" = "yes" ; then
16160 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16163 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16167 if test "$opsys" = "cygwin"; then
16168 CYGWIN_OBJ="sheap.o"
16169 ## Cygwin differs because of its unexec().
16170 PRE_ALLOC_OBJ=
16171 POST_ALLOC_OBJ=lastfile.o
16172 else
16173 CYGWIN_OBJ=
16174 PRE_ALLOC_OBJ=lastfile.o
16175 POST_ALLOC_OBJ=
16181 # Configure gnulib here, now that we know LIBS.
16182 >>>>>>> MERGE-SOURCE
16194 LIBC_FATAL_STDERR_=1
16195 export LIBC_FATAL_STDERR_
16197 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16198 # for constant arguments. Useless!
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16200 $as_echo_n "checking for working alloca.h... " >&6; }
16201 if test "${ac_cv_working_alloca_h+set}" = set; then :
16202 $as_echo_n "(cached) " >&6
16203 else
16204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16205 /* end confdefs.h. */
16206 #include <alloca.h>
16208 main ()
16210 char *p = (char *) alloca (2 * sizeof (int));
16211 if (p) return 0;
16213 return 0;
16215 _ACEOF
16216 if ac_fn_c_try_link "$LINENO"; then :
16217 ac_cv_working_alloca_h=yes
16218 else
16219 ac_cv_working_alloca_h=no
16221 rm -f core conftest.err conftest.$ac_objext \
16222 conftest$ac_exeext conftest.$ac_ext
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16225 $as_echo "$ac_cv_working_alloca_h" >&6; }
16226 if test $ac_cv_working_alloca_h = yes; then
16228 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16233 $as_echo_n "checking for alloca... " >&6; }
16234 if test "${ac_cv_func_alloca_works+set}" = set; then :
16235 $as_echo_n "(cached) " >&6
16236 else
16237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16238 /* end confdefs.h. */
16239 #ifdef __GNUC__
16240 # define alloca __builtin_alloca
16241 #else
16242 # ifdef _MSC_VER
16243 # include <malloc.h>
16244 # define alloca _alloca
16245 # else
16246 # ifdef HAVE_ALLOCA_H
16247 # include <alloca.h>
16248 # else
16249 # ifdef _AIX
16250 #pragma alloca
16251 # else
16252 # ifndef alloca /* predefined by HP cc +Olibcalls */
16253 char *alloca ();
16254 # endif
16255 # endif
16256 # endif
16257 # endif
16258 #endif
16261 main ()
16263 char *p = (char *) alloca (1);
16264 if (p) return 0;
16266 return 0;
16268 _ACEOF
16269 if ac_fn_c_try_link "$LINENO"; then :
16270 ac_cv_func_alloca_works=yes
16271 else
16272 ac_cv_func_alloca_works=no
16274 rm -f core conftest.err conftest.$ac_objext \
16275 conftest$ac_exeext conftest.$ac_ext
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16278 $as_echo "$ac_cv_func_alloca_works" >&6; }
16280 if test $ac_cv_func_alloca_works = yes; then
16282 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16284 else
16285 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16286 # that cause trouble. Some versions do not even contain alloca or
16287 # contain a buggy version. If you still want to use their alloca,
16288 # use ar to extract alloca.o from them instead of compiling alloca.c.
16294 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16296 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16300 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16301 if test "${ac_cv_os_cray+set}" = set; then :
16302 $as_echo_n "(cached) " >&6
16303 else
16304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305 /* end confdefs.h. */
16306 #if defined CRAY && ! defined CRAY2
16307 webecray
16308 #else
16309 wenotbecray
16310 #endif
16312 _ACEOF
16313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16314 $EGREP "webecray" >/dev/null 2>&1; then :
16315 ac_cv_os_cray=yes
16316 else
16317 ac_cv_os_cray=no
16319 rm -f conftest*
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16323 $as_echo "$ac_cv_os_cray" >&6; }
16324 if test $ac_cv_os_cray = yes; then
16325 for ac_func in _getb67 GETB67 getb67; do
16326 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16327 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16328 eval as_val=\$$as_ac_var
16329 if test "x$as_val" = x""yes; then :
16331 cat >>confdefs.h <<_ACEOF
16332 #define CRAY_STACKSEG_END $ac_func
16333 _ACEOF
16335 break
16338 done
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16342 $as_echo_n "checking stack direction for C alloca... " >&6; }
16343 if test "${ac_cv_c_stack_direction+set}" = set; then :
16344 $as_echo_n "(cached) " >&6
16345 else
16346 if test "$cross_compiling" = yes; then :
16347 ac_cv_c_stack_direction=0
16348 else
16349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350 /* end confdefs.h. */
16351 $ac_includes_default
16353 find_stack_direction (int *addr, int depth)
16355 int dir, dummy = 0;
16356 if (! addr)
16357 addr = &dummy;
16358 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16359 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16360 return dir + dummy;
16364 main (int argc, char **argv)
16366 return find_stack_direction (0, argc + !argv + 20) < 0;
16368 _ACEOF
16369 if ac_fn_c_try_run "$LINENO"; then :
16370 ac_cv_c_stack_direction=1
16371 else
16372 ac_cv_c_stack_direction=-1
16374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16375 conftest.$ac_objext conftest.beam conftest.$ac_ext
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16380 $as_echo "$ac_cv_c_stack_direction" >&6; }
16381 cat >>confdefs.h <<_ACEOF
16382 #define STACK_DIRECTION $ac_cv_c_stack_direction
16383 _ACEOF
16391 for ac_func in $ac_func_list
16392 do :
16393 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16394 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16395 eval as_val=\$$as_ac_var
16396 if test "x$as_val" = x""yes; then :
16397 cat >>confdefs.h <<_ACEOF
16398 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16399 _ACEOF
16402 done
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16408 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16409 if test "${ac_cv_c_bigendian+set}" = set; then :
16410 $as_echo_n "(cached) " >&6
16411 else
16412 ac_cv_c_bigendian=unknown
16413 # See if we're dealing with a universal compiler.
16414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16415 /* end confdefs.h. */
16416 #ifndef __APPLE_CC__
16417 not a universal capable compiler
16418 #endif
16419 typedef int dummy;
16421 _ACEOF
16422 if ac_fn_c_try_compile "$LINENO"; then :
16424 # Check for potential -arch flags. It is not universal unless
16425 # there are at least two -arch flags with different values.
16426 ac_arch=
16427 ac_prev=
16428 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16429 if test -n "$ac_prev"; then
16430 case $ac_word in
16431 i?86 | x86_64 | ppc | ppc64)
16432 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16433 ac_arch=$ac_word
16434 else
16435 ac_cv_c_bigendian=universal
16436 break
16439 esac
16440 ac_prev=
16441 elif test "x$ac_word" = "x-arch"; then
16442 ac_prev=arch
16444 done
16446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16447 if test $ac_cv_c_bigendian = unknown; then
16448 # See if sys/param.h defines the BYTE_ORDER macro.
16449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16450 /* end confdefs.h. */
16451 #include <sys/types.h>
16452 #include <sys/param.h>
16455 main ()
16457 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16458 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16459 && LITTLE_ENDIAN)
16460 bogus endian macros
16461 #endif
16464 return 0;
16466 _ACEOF
16467 if ac_fn_c_try_compile "$LINENO"; then :
16468 # It does; now see whether it defined to BIG_ENDIAN or not.
16469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16470 /* end confdefs.h. */
16471 #include <sys/types.h>
16472 #include <sys/param.h>
16475 main ()
16477 #if BYTE_ORDER != BIG_ENDIAN
16478 not big endian
16479 #endif
16482 return 0;
16484 _ACEOF
16485 if ac_fn_c_try_compile "$LINENO"; then :
16486 ac_cv_c_bigendian=yes
16487 else
16488 ac_cv_c_bigendian=no
16490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16494 if test $ac_cv_c_bigendian = unknown; then
16495 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16497 /* end confdefs.h. */
16498 #include <limits.h>
16501 main ()
16503 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16504 bogus endian macros
16505 #endif
16508 return 0;
16510 _ACEOF
16511 if ac_fn_c_try_compile "$LINENO"; then :
16512 # It does; now see whether it defined to _BIG_ENDIAN or not.
16513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16514 /* end confdefs.h. */
16515 #include <limits.h>
16518 main ()
16520 #ifndef _BIG_ENDIAN
16521 not big endian
16522 #endif
16525 return 0;
16527 _ACEOF
16528 if ac_fn_c_try_compile "$LINENO"; then :
16529 ac_cv_c_bigendian=yes
16530 else
16531 ac_cv_c_bigendian=no
16533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16537 if test $ac_cv_c_bigendian = unknown; then
16538 # Compile a test program.
16539 if test "$cross_compiling" = yes; then :
16540 # Try to guess by grepping values from an object file.
16541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16542 /* end confdefs.h. */
16543 short int ascii_mm[] =
16544 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16545 short int ascii_ii[] =
16546 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16547 int use_ascii (int i) {
16548 return ascii_mm[i] + ascii_ii[i];
16550 short int ebcdic_ii[] =
16551 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16552 short int ebcdic_mm[] =
16553 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16554 int use_ebcdic (int i) {
16555 return ebcdic_mm[i] + ebcdic_ii[i];
16557 extern int foo;
16560 main ()
16562 return use_ascii (foo) == use_ebcdic (foo);
16564 return 0;
16566 _ACEOF
16567 if ac_fn_c_try_compile "$LINENO"; then :
16568 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16569 ac_cv_c_bigendian=yes
16571 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16572 if test "$ac_cv_c_bigendian" = unknown; then
16573 ac_cv_c_bigendian=no
16574 else
16575 # finding both strings is unlikely to happen, but who knows?
16576 ac_cv_c_bigendian=unknown
16580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16581 else
16582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16583 /* end confdefs.h. */
16584 $ac_includes_default
16586 main ()
16589 /* Are we little or big endian? From Harbison&Steele. */
16590 union
16592 long int l;
16593 char c[sizeof (long int)];
16594 } u;
16595 u.l = 1;
16596 return u.c[sizeof (long int) - 1] == 1;
16599 return 0;
16601 _ACEOF
16602 if ac_fn_c_try_run "$LINENO"; then :
16603 ac_cv_c_bigendian=no
16604 else
16605 ac_cv_c_bigendian=yes
16607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16608 conftest.$ac_objext conftest.beam conftest.$ac_ext
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16614 $as_echo "$ac_cv_c_bigendian" >&6; }
16615 case $ac_cv_c_bigendian in #(
16616 yes)
16617 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16618 ;; #(
16620 ;; #(
16621 universal)
16623 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16625 ;; #(
16627 as_fn_error "unknown endianness
16628 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16629 esac
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16633 $as_echo_n "checking for inline... " >&6; }
16634 if test "${ac_cv_c_inline+set}" = set; then :
16635 $as_echo_n "(cached) " >&6
16636 else
16637 ac_cv_c_inline=no
16638 for ac_kw in inline __inline__ __inline; do
16639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16640 /* end confdefs.h. */
16641 #ifndef __cplusplus
16642 typedef int foo_t;
16643 static $ac_kw foo_t static_foo () {return 0; }
16644 $ac_kw foo_t foo () {return 0; }
16645 #endif
16647 _ACEOF
16648 if ac_fn_c_try_compile "$LINENO"; then :
16649 ac_cv_c_inline=$ac_kw
16651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16652 test "$ac_cv_c_inline" != no && break
16653 done
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16657 $as_echo "$ac_cv_c_inline" >&6; }
16659 case $ac_cv_c_inline in
16660 inline | yes) ;;
16662 case $ac_cv_c_inline in
16663 no) ac_val=;;
16664 *) ac_val=$ac_cv_c_inline;;
16665 esac
16666 cat >>confdefs.h <<_ACEOF
16667 #ifndef __cplusplus
16668 #define inline $ac_val
16669 #endif
16670 _ACEOF
16672 esac
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16676 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16677 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16678 $as_echo_n "(cached) " >&6
16679 else
16680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16681 /* end confdefs.h. */
16682 /* On HP-UX before 11.23, strtold returns a struct instead of
16683 long double. Reject implementations like that, by requiring
16684 compatibility with the C99 prototype. */
16685 #include <stdlib.h>
16686 static long double (*p) (char const *, char **) = strtold;
16687 static long double
16688 test (char const *nptr, char **endptr)
16690 long double r;
16691 r = strtold (nptr, endptr);
16692 return r;
16695 main ()
16697 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16699 return 0;
16701 _ACEOF
16702 if ac_fn_c_try_link "$LINENO"; then :
16703 gl_cv_func_c99_strtold=yes
16704 else
16705 gl_cv_func_c99_strtold=no
16707 rm -f core conftest.err conftest.$ac_objext \
16708 conftest$ac_exeext conftest.$ac_ext
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16711 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16712 if test $gl_cv_func_c99_strtold = yes; then
16714 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16719 GNULIB_CHOWN=0;
16720 GNULIB_CLOSE=0;
16721 GNULIB_DUP2=0;
16722 GNULIB_DUP3=0;
16723 GNULIB_ENVIRON=0;
16724 GNULIB_EUIDACCESS=0;
16725 GNULIB_FACCESSAT=0;
16726 GNULIB_FCHDIR=0;
16727 GNULIB_FCHOWNAT=0;
16728 GNULIB_FSYNC=0;
16729 GNULIB_FTRUNCATE=0;
16730 GNULIB_GETCWD=0;
16731 GNULIB_GETDOMAINNAME=0;
16732 GNULIB_GETDTABLESIZE=0;
16733 GNULIB_GETGROUPS=0;
16734 GNULIB_GETHOSTNAME=0;
16735 GNULIB_GETLOGIN=0;
16736 GNULIB_GETLOGIN_R=0;
16737 GNULIB_GETPAGESIZE=0;
16738 GNULIB_GETUSERSHELL=0;
16739 GNULIB_GROUP_MEMBER=0;
16740 GNULIB_LCHOWN=0;
16741 GNULIB_LINK=0;
16742 GNULIB_LINKAT=0;
16743 GNULIB_LSEEK=0;
16744 GNULIB_PIPE=0;
16745 GNULIB_PIPE2=0;
16746 GNULIB_PREAD=0;
16747 GNULIB_PWRITE=0;
16748 GNULIB_READ=0;
16749 GNULIB_READLINK=0;
16750 GNULIB_READLINKAT=0;
16751 GNULIB_RMDIR=0;
16752 GNULIB_SLEEP=0;
16753 GNULIB_SYMLINK=0;
16754 GNULIB_SYMLINKAT=0;
16755 GNULIB_TTYNAME_R=0;
16756 GNULIB_UNISTD_H_GETOPT=0;
16757 GNULIB_UNISTD_H_NONBLOCKING=0;
16758 GNULIB_UNISTD_H_SIGPIPE=0;
16759 GNULIB_UNLINK=0;
16760 GNULIB_UNLINKAT=0;
16761 GNULIB_USLEEP=0;
16762 GNULIB_WRITE=0;
16763 HAVE_CHOWN=1;
16764 HAVE_DUP2=1;
16765 HAVE_DUP3=1;
16766 HAVE_EUIDACCESS=1;
16767 HAVE_FACCESSAT=1;
16768 HAVE_FCHDIR=1;
16769 HAVE_FCHOWNAT=1;
16770 HAVE_FSYNC=1;
16771 HAVE_FTRUNCATE=1;
16772 HAVE_GETDTABLESIZE=1;
16773 HAVE_GETGROUPS=1;
16774 HAVE_GETHOSTNAME=1;
16775 HAVE_GETLOGIN=1;
16776 HAVE_GETPAGESIZE=1;
16777 HAVE_GROUP_MEMBER=1;
16778 HAVE_LCHOWN=1;
16779 HAVE_LINK=1;
16780 HAVE_LINKAT=1;
16781 HAVE_PIPE=1;
16782 HAVE_PIPE2=1;
16783 HAVE_PREAD=1;
16784 HAVE_PWRITE=1;
16785 HAVE_READLINK=1;
16786 HAVE_READLINKAT=1;
16787 HAVE_SLEEP=1;
16788 HAVE_SYMLINK=1;
16789 HAVE_SYMLINKAT=1;
16790 HAVE_UNLINKAT=1;
16791 HAVE_USLEEP=1;
16792 HAVE_DECL_ENVIRON=1;
16793 HAVE_DECL_FCHDIR=1;
16794 HAVE_DECL_GETDOMAINNAME=1;
16795 HAVE_DECL_GETLOGIN_R=1;
16796 HAVE_DECL_GETPAGESIZE=1;
16797 HAVE_DECL_GETUSERSHELL=1;
16798 HAVE_DECL_TTYNAME_R=1;
16799 HAVE_OS_H=0;
16800 HAVE_SYS_PARAM_H=0;
16801 REPLACE_CHOWN=0;
16802 REPLACE_CLOSE=0;
16803 REPLACE_DUP=0;
16804 REPLACE_DUP2=0;
16805 REPLACE_FCHOWNAT=0;
16806 REPLACE_GETCWD=0;
16807 REPLACE_GETDOMAINNAME=0;
16808 REPLACE_GETLOGIN_R=0;
16809 REPLACE_GETGROUPS=0;
16810 REPLACE_GETPAGESIZE=0;
16811 REPLACE_LCHOWN=0;
16812 REPLACE_LINK=0;
16813 REPLACE_LINKAT=0;
16814 REPLACE_LSEEK=0;
16815 REPLACE_PREAD=0;
16816 REPLACE_PWRITE=0;
16817 REPLACE_READ=0;
16818 REPLACE_READLINK=0;
16819 REPLACE_RMDIR=0;
16820 REPLACE_SLEEP=0;
16821 REPLACE_SYMLINK=0;
16822 REPLACE_TTYNAME_R=0;
16823 REPLACE_UNLINK=0;
16824 REPLACE_UNLINKAT=0;
16825 REPLACE_USLEEP=0;
16826 REPLACE_WRITE=0;
16827 UNISTD_H_HAVE_WINSOCK2_H=0;
16828 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16832 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16833 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16834 $as_echo_n "(cached) " >&6
16835 else
16836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16837 /* end confdefs.h. */
16839 #include <sys/types.h>
16840 #include <sys/stat.h>
16842 main ()
16844 struct stat s; s.st_dm_mode;
16846 return 0;
16848 _ACEOF
16849 if ac_fn_c_try_compile "$LINENO"; then :
16850 ac_cv_struct_st_dm_mode=yes
16851 else
16852 ac_cv_struct_st_dm_mode=no
16854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16857 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16859 if test $ac_cv_struct_st_dm_mode = yes; then
16861 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16866 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16867 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16868 ac_have_decl=1
16869 else
16870 ac_have_decl=0
16873 cat >>confdefs.h <<_ACEOF
16874 #define HAVE_DECL_STRMODE $ac_have_decl
16875 _ACEOF
16878 GNULIB__EXIT=0;
16879 GNULIB_ATOLL=0;
16880 GNULIB_CALLOC_POSIX=0;
16881 GNULIB_CANONICALIZE_FILE_NAME=0;
16882 GNULIB_GETLOADAVG=0;
16883 GNULIB_GETSUBOPT=0;
16884 GNULIB_GRANTPT=0;
16885 GNULIB_MALLOC_POSIX=0;
16886 GNULIB_MBTOWC=0;
16887 GNULIB_MKDTEMP=0;
16888 GNULIB_MKOSTEMP=0;
16889 GNULIB_MKOSTEMPS=0;
16890 GNULIB_MKSTEMP=0;
16891 GNULIB_MKSTEMPS=0;
16892 GNULIB_PTSNAME=0;
16893 GNULIB_PUTENV=0;
16894 GNULIB_RANDOM_R=0;
16895 GNULIB_REALLOC_POSIX=0;
16896 GNULIB_REALPATH=0;
16897 GNULIB_RPMATCH=0;
16898 GNULIB_SETENV=0;
16899 GNULIB_STRTOD=0;
16900 GNULIB_STRTOLL=0;
16901 GNULIB_STRTOULL=0;
16902 GNULIB_SYSTEM_POSIX=0;
16903 GNULIB_UNLOCKPT=0;
16904 GNULIB_UNSETENV=0;
16905 GNULIB_WCTOMB=0;
16906 HAVE__EXIT=1;
16907 HAVE_ATOLL=1;
16908 HAVE_CANONICALIZE_FILE_NAME=1;
16909 HAVE_DECL_GETLOADAVG=1;
16910 HAVE_GETSUBOPT=1;
16911 HAVE_GRANTPT=1;
16912 HAVE_MKDTEMP=1;
16913 HAVE_MKOSTEMP=1;
16914 HAVE_MKOSTEMPS=1;
16915 HAVE_MKSTEMP=1;
16916 HAVE_MKSTEMPS=1;
16917 HAVE_PTSNAME=1;
16918 HAVE_RANDOM_H=1;
16919 HAVE_RANDOM_R=1;
16920 HAVE_REALPATH=1;
16921 HAVE_RPMATCH=1;
16922 HAVE_SETENV=1;
16923 HAVE_DECL_SETENV=1;
16924 HAVE_STRTOD=1;
16925 HAVE_STRTOLL=1;
16926 HAVE_STRTOULL=1;
16927 HAVE_STRUCT_RANDOM_DATA=1;
16928 HAVE_SYS_LOADAVG_H=0;
16929 HAVE_UNLOCKPT=1;
16930 HAVE_DECL_UNSETENV=1;
16931 REPLACE_CALLOC=0;
16932 REPLACE_CANONICALIZE_FILE_NAME=0;
16933 REPLACE_MALLOC=0;
16934 REPLACE_MBTOWC=0;
16935 REPLACE_MKSTEMP=0;
16936 REPLACE_PUTENV=0;
16937 REPLACE_REALLOC=0;
16938 REPLACE_REALPATH=0;
16939 REPLACE_SETENV=0;
16940 REPLACE_STRTOD=0;
16941 REPLACE_UNSETENV=0;
16942 REPLACE_WCTOMB=0;
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16947 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16948 if test "${gl_cv_have_include_next+set}" = set; then :
16949 $as_echo_n "(cached) " >&6
16950 else
16951 rm -rf conftestd1a conftestd1b conftestd2
16952 mkdir conftestd1a conftestd1b conftestd2
16953 cat <<EOF > conftestd1a/conftest.h
16954 #define DEFINED_IN_CONFTESTD1
16955 #include_next <conftest.h>
16956 #ifdef DEFINED_IN_CONFTESTD2
16957 int foo;
16958 #else
16959 #error "include_next doesn't work"
16960 #endif
16962 cat <<EOF > conftestd1b/conftest.h
16963 #define DEFINED_IN_CONFTESTD1
16964 #include <stdio.h>
16965 #include_next <conftest.h>
16966 #ifdef DEFINED_IN_CONFTESTD2
16967 int foo;
16968 #else
16969 #error "include_next doesn't work"
16970 #endif
16972 cat <<EOF > conftestd2/conftest.h
16973 #ifndef DEFINED_IN_CONFTESTD1
16974 #error "include_next test doesn't work"
16975 #endif
16976 #define DEFINED_IN_CONFTESTD2
16978 gl_save_CPPFLAGS="$CPPFLAGS"
16979 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16981 /* end confdefs.h. */
16982 #include <conftest.h>
16983 _ACEOF
16984 if ac_fn_c_try_compile "$LINENO"; then :
16985 gl_cv_have_include_next=yes
16986 else
16987 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989 /* end confdefs.h. */
16990 #include <conftest.h>
16991 _ACEOF
16992 if ac_fn_c_try_compile "$LINENO"; then :
16993 gl_cv_have_include_next=buggy
16994 else
16995 gl_cv_have_include_next=no
16997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17001 CPPFLAGS="$gl_save_CPPFLAGS"
17002 rm -rf conftestd1a conftestd1b conftestd2
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17006 $as_echo "$gl_cv_have_include_next" >&6; }
17007 PRAGMA_SYSTEM_HEADER=
17008 if test $gl_cv_have_include_next = yes; then
17009 INCLUDE_NEXT=include_next
17010 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17011 if test -n "$GCC"; then
17012 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17014 else
17015 if test $gl_cv_have_include_next = buggy; then
17016 INCLUDE_NEXT=include
17017 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17018 else
17019 INCLUDE_NEXT=include
17020 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17027 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17028 if test "${gl_cv_pragma_columns+set}" = set; then :
17029 $as_echo_n "(cached) " >&6
17030 else
17031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17032 /* end confdefs.h. */
17034 #ifdef __TANDEM
17035 choke me
17036 #endif
17038 _ACEOF
17039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17040 $EGREP "choke me" >/dev/null 2>&1; then :
17041 gl_cv_pragma_columns=yes
17042 else
17043 gl_cv_pragma_columns=no
17045 rm -f conftest*
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17050 $as_echo "$gl_cv_pragma_columns" >&6; }
17051 if test $gl_cv_pragma_columns = yes; then
17052 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17053 else
17054 PRAGMA_COLUMNS=
17073 if test $gl_cv_have_include_next = yes; then
17074 gl_cv_next_getopt_h='<'getopt.h'>'
17075 else
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17077 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17078 if test "${gl_cv_next_getopt_h+set}" = set; then :
17079 $as_echo_n "(cached) " >&6
17080 else
17082 if test $ac_cv_header_getopt_h = yes; then
17085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17086 /* end confdefs.h. */
17087 #include <getopt.h>
17089 _ACEOF
17090 case "$host_os" in
17091 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17092 *) gl_absname_cpp="$ac_cpp" ;;
17093 esac
17094 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17095 sed -n '\#/getopt.h#{
17096 s#.*"\(.*/getopt.h\)".*#\1#
17097 s#^/[^/]#//&#
17100 }'`'"'
17101 else
17102 gl_cv_next_getopt_h='<'getopt.h'>'
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17108 $as_echo "$gl_cv_next_getopt_h" >&6; }
17110 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17112 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17113 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17114 gl_next_as_first_directive='<'getopt.h'>'
17115 else
17116 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17117 gl_next_as_first_directive=$gl_cv_next_getopt_h
17119 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17124 if test $ac_cv_header_getopt_h = yes; then
17125 HAVE_GETOPT_H=1
17126 else
17127 HAVE_GETOPT_H=0
17131 gl_replace_getopt=
17133 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17134 for ac_header in getopt.h
17135 do :
17136 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17137 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17138 cat >>confdefs.h <<_ACEOF
17139 #define HAVE_GETOPT_H 1
17140 _ACEOF
17142 else
17143 gl_replace_getopt=yes
17146 done
17150 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17151 for ac_func in getopt_long_only
17152 do :
17153 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17154 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17155 cat >>confdefs.h <<_ACEOF
17156 #define HAVE_GETOPT_LONG_ONLY 1
17157 _ACEOF
17159 else
17160 gl_replace_getopt=yes
17162 done
17166 if test -z "$gl_replace_getopt"; then
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17168 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17169 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17170 $as_echo_n "(cached) " >&6
17171 else
17173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17174 /* end confdefs.h. */
17175 #include <unistd.h>
17177 main ()
17179 int *p = &optreset; return optreset;
17181 return 0;
17183 _ACEOF
17184 if ac_fn_c_try_compile "$LINENO"; then :
17185 gl_optind_min=1
17186 else
17187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17188 /* end confdefs.h. */
17189 #include <getopt.h>
17191 main ()
17193 return !getopt_clip;
17195 return 0;
17197 _ACEOF
17198 if ac_fn_c_try_compile "$LINENO"; then :
17199 gl_optind_min=1
17200 else
17201 gl_optind_min=0
17203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17207 gl_save_CPPFLAGS=$CPPFLAGS
17208 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
17209 if test "$cross_compiling" = yes; then :
17210 case "$host_os" in
17211 mingw*) gl_cv_func_getopt_posix="guessing no";;
17212 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
17213 *) gl_cv_func_getopt_posix="guessing yes";;
17214 esac
17216 else
17217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17218 /* end confdefs.h. */
17220 #include <unistd.h>
17221 #include <stdlib.h>
17222 #include <string.h>
17225 main ()
17228 int argc = 0;
17229 char *argv[10];
17230 int c;
17232 argv[argc++] = "program";
17233 argv[argc++] = "-a";
17234 argv[argc++] = "foo";
17235 argv[argc++] = "bar";
17236 argv[argc] = NULL;
17237 optind = OPTIND_MIN;
17238 opterr = 0;
17240 c = getopt (argc, argv, "ab");
17241 if (!(c == 'a'))
17242 return 1;
17243 c = getopt (argc, argv, "ab");
17244 if (!(c == -1))
17245 return 2;
17246 if (!(optind == 2))
17247 return 3;
17249 /* Some internal state exists at this point. */
17251 int argc = 0;
17252 char *argv[10];
17253 int c;
17255 argv[argc++] = "program";
17256 argv[argc++] = "donald";
17257 argv[argc++] = "-p";
17258 argv[argc++] = "billy";
17259 argv[argc++] = "duck";
17260 argv[argc++] = "-a";
17261 argv[argc++] = "bar";
17262 argv[argc] = NULL;
17263 optind = OPTIND_MIN;
17264 opterr = 0;
17266 c = getopt (argc, argv, "+abp:q:");
17267 if (!(c == -1))
17268 return 4;
17269 if (!(strcmp (argv[0], "program") == 0))
17270 return 5;
17271 if (!(strcmp (argv[1], "donald") == 0))
17272 return 6;
17273 if (!(strcmp (argv[2], "-p") == 0))
17274 return 7;
17275 if (!(strcmp (argv[3], "billy") == 0))
17276 return 8;
17277 if (!(strcmp (argv[4], "duck") == 0))
17278 return 9;
17279 if (!(strcmp (argv[5], "-a") == 0))
17280 return 10;
17281 if (!(strcmp (argv[6], "bar") == 0))
17282 return 11;
17283 if (!(optind == 1))
17284 return 12;
17286 /* Detect MacOS 10.5, AIX 7.1 bug. */
17288 char *argv[3] = { "program", "-ab", NULL };
17289 optind = OPTIND_MIN;
17290 opterr = 0;
17291 if (getopt (2, argv, "ab:") != 'a')
17292 return 13;
17293 if (getopt (2, argv, "ab:") != '?')
17294 return 14;
17295 if (optopt != 'b')
17296 return 15;
17297 if (optind != 2)
17298 return 16;
17301 return 0;
17304 _ACEOF
17305 if ac_fn_c_try_run "$LINENO"; then :
17306 gl_cv_func_getopt_posix=yes
17307 else
17308 gl_cv_func_getopt_posix=no
17310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17311 conftest.$ac_objext conftest.beam conftest.$ac_ext
17314 CPPFLAGS=$gl_save_CPPFLAGS
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17318 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17319 case "$gl_cv_func_getopt_posix" in
17320 *no) gl_replace_getopt=yes ;;
17321 esac
17324 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17326 $as_echo_n "checking for working GNU getopt function... " >&6; }
17327 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17328 $as_echo_n "(cached) " >&6
17329 else
17330 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17331 # optstring is necessary for programs like m4 that have POSIX-mandated
17332 # semantics for supporting options interspersed with files.
17333 # Also, since getopt_long is a GNU extension, we require optind=0.
17334 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17335 # so take care to revert to the correct (non-)export state.
17336 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17337 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17338 xx) gl_had_POSIXLY_CORRECT=exported ;;
17339 x) gl_had_POSIXLY_CORRECT=yes ;;
17340 *) gl_had_POSIXLY_CORRECT= ;;
17341 esac
17342 POSIXLY_CORRECT=1
17343 export POSIXLY_CORRECT
17344 if test "$cross_compiling" = yes; then :
17345 case $host_os:$ac_cv_have_decl_optreset in
17346 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
17347 *:yes) gl_cv_func_getopt_gnu=no;;
17348 *) gl_cv_func_getopt_gnu=yes;;
17349 esac
17351 else
17352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17353 /* end confdefs.h. */
17354 #include <getopt.h>
17355 #include <stddef.h>
17356 #include <string.h>
17358 #include <stdlib.h>
17359 #if defined __MACH__ && defined __APPLE__
17360 /* Avoid a crash on MacOS X. */
17361 #include <mach/mach.h>
17362 #include <mach/mach_error.h>
17363 #include <mach/thread_status.h>
17364 #include <mach/exception.h>
17365 #include <mach/task.h>
17366 #include <pthread.h>
17367 /* The exception port on which our thread listens. */
17368 static mach_port_t our_exception_port;
17369 /* The main function of the thread listening for exceptions of type
17370 EXC_BAD_ACCESS. */
17371 static void *
17372 mach_exception_thread (void *arg)
17374 /* Buffer for a message to be received. */
17375 struct {
17376 mach_msg_header_t head;
17377 mach_msg_body_t msgh_body;
17378 char data[1024];
17379 } msg;
17380 mach_msg_return_t retval;
17381 /* Wait for a message on the exception port. */
17382 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17383 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17384 if (retval != MACH_MSG_SUCCESS)
17385 abort ();
17386 exit (1);
17388 static void
17389 nocrash_init (void)
17391 mach_port_t self = mach_task_self ();
17392 /* Allocate a port on which the thread shall listen for exceptions. */
17393 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17394 == KERN_SUCCESS) {
17395 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17396 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17397 MACH_MSG_TYPE_MAKE_SEND)
17398 == KERN_SUCCESS) {
17399 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17400 for us. */
17401 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17402 /* Create the thread listening on the exception port. */
17403 pthread_attr_t attr;
17404 pthread_t thread;
17405 if (pthread_attr_init (&attr) == 0
17406 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17407 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17408 pthread_attr_destroy (&attr);
17409 /* Replace the exception port info for these exceptions with our own.
17410 Note that we replace the exception port for the entire task, not only
17411 for a particular thread. This has the effect that when our exception
17412 port gets the message, the thread specific exception port has already
17413 been asked, and we don't need to bother about it.
17414 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17415 task_set_exception_ports (self, mask, our_exception_port,
17416 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17421 #else
17422 /* Avoid a crash on POSIX systems. */
17423 #include <signal.h>
17424 /* A POSIX signal handler. */
17425 static void
17426 exception_handler (int sig)
17428 exit (1);
17430 static void
17431 nocrash_init (void)
17433 #ifdef SIGSEGV
17434 signal (SIGSEGV, exception_handler);
17435 #endif
17436 #ifdef SIGBUS
17437 signal (SIGBUS, exception_handler);
17438 #endif
17440 #endif
17444 main ()
17447 int result = 0;
17449 nocrash_init();
17451 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17452 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17453 OSF/1 5.1, Solaris 10. */
17455 char *myargv[3];
17456 myargv[0] = "conftest";
17457 myargv[1] = "-+";
17458 myargv[2] = 0;
17459 opterr = 0;
17460 if (getopt (2, myargv, "+a") != '?')
17461 result |= 1;
17463 /* This code succeeds on glibc 2.8, mingw,
17464 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17465 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17467 char *argv[] = { "program", "-p", "foo", "bar", NULL };
17469 optind = 1;
17470 if (getopt (4, argv, "p::") != 'p')
17471 result |= 2;
17472 else if (optarg != NULL)
17473 result |= 4;
17474 else if (getopt (4, argv, "p::") != -1)
17475 result |= 6;
17476 else if (optind != 2)
17477 result |= 8;
17479 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17481 char *argv[] = { "program", "foo", "-p", NULL };
17482 optind = 0;
17483 if (getopt (3, argv, "-p") != 1)
17484 result |= 16;
17485 else if (getopt (3, argv, "-p") != 'p')
17486 result |= 32;
17488 /* This code fails on glibc 2.11. */
17490 char *argv[] = { "program", "-b", "-a", NULL };
17491 optind = opterr = 0;
17492 if (getopt (3, argv, "+:a:b") != 'b')
17493 result |= 64;
17494 else if (getopt (3, argv, "+:a:b") != ':')
17495 result |= 64;
17497 return result;
17500 return 0;
17502 _ACEOF
17503 if ac_fn_c_try_run "$LINENO"; then :
17504 gl_cv_func_getopt_gnu=yes
17505 else
17506 gl_cv_func_getopt_gnu=no
17508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17509 conftest.$ac_objext conftest.beam conftest.$ac_ext
17512 case $gl_had_POSIXLY_CORRECT in
17513 exported) ;;
17514 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17515 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17516 esac
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17520 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17521 if test "$gl_cv_func_getopt_gnu" = "no"; then
17522 gl_replace_getopt=yes
17530 REPLACE_GETOPT=0
17533 if test -n "$gl_replace_getopt"; then :
17535 REPLACE_GETOPT=1
17540 if test $REPLACE_GETOPT = 1; then
17542 GETOPT_H=getopt.h
17544 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17548 GNULIB_UNISTD_H_GETOPT=1
17551 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17552 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17553 ac_have_decl=1
17554 else
17555 ac_have_decl=0
17558 cat >>confdefs.h <<_ACEOF
17559 #define HAVE_DECL_GETENV $ac_have_decl
17560 _ACEOF
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17564 $as_echo_n "checking for unsigned long long int... " >&6; }
17565 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17566 $as_echo_n "(cached) " >&6
17567 else
17568 ac_cv_type_unsigned_long_long_int=yes
17569 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17571 /* end confdefs.h. */
17573 /* For now, do not test the preprocessor; as of 2007 there are too many
17574 implementations with broken preprocessors. Perhaps this can
17575 be revisited in 2012. In the meantime, code should not expect
17576 #if to work with literals wider than 32 bits. */
17577 /* Test literals. */
17578 long long int ll = 9223372036854775807ll;
17579 long long int nll = -9223372036854775807LL;
17580 unsigned long long int ull = 18446744073709551615ULL;
17581 /* Test constant expressions. */
17582 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17583 ? 1 : -1)];
17584 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17585 ? 1 : -1)];
17586 int i = 63;
17588 main ()
17590 /* Test availability of runtime routines for shift and division. */
17591 long long int llmax = 9223372036854775807ll;
17592 unsigned long long int ullmax = 18446744073709551615ull;
17593 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17594 | (llmax / ll) | (llmax % ll)
17595 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17596 | (ullmax / ull) | (ullmax % ull));
17598 return 0;
17601 _ACEOF
17602 if ac_fn_c_try_link "$LINENO"; then :
17604 else
17605 ac_cv_type_unsigned_long_long_int=no
17607 rm -f core conftest.err conftest.$ac_objext \
17608 conftest$ac_exeext conftest.$ac_ext
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17612 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17613 if test $ac_cv_type_unsigned_long_long_int = yes; then
17615 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17622 $as_echo_n "checking for long long int... " >&6; }
17623 if test "${ac_cv_type_long_long_int+set}" = set; then :
17624 $as_echo_n "(cached) " >&6
17625 else
17626 ac_cv_type_long_long_int=yes
17627 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17628 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17629 if test $ac_cv_type_long_long_int = yes; then
17630 if test "$cross_compiling" = yes; then :
17632 else
17633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17634 /* end confdefs.h. */
17635 #include <limits.h>
17636 #ifndef LLONG_MAX
17637 # define HALF \
17638 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17639 # define LLONG_MAX (HALF - 1 + HALF)
17640 #endif
17642 main ()
17644 long long int n = 1;
17645 int i;
17646 for (i = 0; ; i++)
17648 long long int m = n << i;
17649 if (m >> i != n)
17650 return 1;
17651 if (LLONG_MAX / 2 < m)
17652 break;
17654 return 0;
17656 return 0;
17658 _ACEOF
17659 if ac_fn_c_try_run "$LINENO"; then :
17661 else
17662 ac_cv_type_long_long_int=no
17664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17665 conftest.$ac_objext conftest.beam conftest.$ac_ext
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17672 $as_echo "$ac_cv_type_long_long_int" >&6; }
17673 if test $ac_cv_type_long_long_int = yes; then
17675 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17684 gl_cv_c_multiarch=no
17685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17686 /* end confdefs.h. */
17687 #ifndef __APPLE_CC__
17688 not a universal capable compiler
17689 #endif
17690 typedef int dummy;
17692 _ACEOF
17693 if ac_fn_c_try_compile "$LINENO"; then :
17695 arch=
17696 prev=
17697 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17698 if test -n "$prev"; then
17699 case $word in
17700 i?86 | x86_64 | ppc | ppc64)
17701 if test -z "$arch" || test "$arch" = "$word"; then
17702 arch="$word"
17703 else
17704 gl_cv_c_multiarch=yes
17707 esac
17708 prev=
17709 else
17710 if test "x$word" = "x-arch"; then
17711 prev=arch
17714 done
17717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17718 if test $gl_cv_c_multiarch = yes; then
17719 APPLE_UNIVERSAL_BUILD=1
17720 else
17721 APPLE_UNIVERSAL_BUILD=0
17728 if test $ac_cv_type_long_long_int = yes; then
17729 HAVE_LONG_LONG_INT=1
17730 else
17731 HAVE_LONG_LONG_INT=0
17735 if test $ac_cv_type_unsigned_long_long_int = yes; then
17736 HAVE_UNSIGNED_LONG_LONG_INT=1
17737 else
17738 HAVE_UNSIGNED_LONG_LONG_INT=0
17743 if test $ac_cv_header_wchar_h = yes; then
17744 HAVE_WCHAR_H=1
17745 else
17746 HAVE_WCHAR_H=0
17750 if test $ac_cv_header_inttypes_h = yes; then
17751 HAVE_INTTYPES_H=1
17752 else
17753 HAVE_INTTYPES_H=0
17757 if test $ac_cv_header_sys_types_h = yes; then
17758 HAVE_SYS_TYPES_H=1
17759 else
17760 HAVE_SYS_TYPES_H=0
17773 if test $gl_cv_have_include_next = yes; then
17774 gl_cv_next_stdint_h='<'stdint.h'>'
17775 else
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17777 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17778 if test "${gl_cv_next_stdint_h+set}" = set; then :
17779 $as_echo_n "(cached) " >&6
17780 else
17782 if test $ac_cv_header_stdint_h = yes; then
17785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17786 /* end confdefs.h. */
17787 #include <stdint.h>
17789 _ACEOF
17790 case "$host_os" in
17791 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17792 *) gl_absname_cpp="$ac_cpp" ;;
17793 esac
17794 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17795 sed -n '\#/stdint.h#{
17796 s#.*"\(.*/stdint.h\)".*#\1#
17797 s#^/[^/]#//&#
17800 }'`'"'
17801 else
17802 gl_cv_next_stdint_h='<'stdint.h'>'
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17808 $as_echo "$gl_cv_next_stdint_h" >&6; }
17810 NEXT_STDINT_H=$gl_cv_next_stdint_h
17812 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17813 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17814 gl_next_as_first_directive='<'stdint.h'>'
17815 else
17816 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17817 gl_next_as_first_directive=$gl_cv_next_stdint_h
17819 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17824 if test $ac_cv_header_stdint_h = yes; then
17825 HAVE_STDINT_H=1
17826 else
17827 HAVE_STDINT_H=0
17831 if test $ac_cv_header_stdint_h = yes; then
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17833 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17834 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17835 $as_echo_n "(cached) " >&6
17836 else
17837 gl_cv_header_working_stdint_h=no
17838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17839 /* end confdefs.h. */
17842 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17843 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17844 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17845 #include <stdint.h>
17846 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17847 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17848 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17849 #endif
17852 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17853 included before <wchar.h>. */
17854 #include <stddef.h>
17855 #include <signal.h>
17856 #if HAVE_WCHAR_H
17857 # include <stdio.h>
17858 # include <time.h>
17859 # include <wchar.h>
17860 #endif
17863 #ifdef INT8_MAX
17864 int8_t a1 = INT8_MAX;
17865 int8_t a1min = INT8_MIN;
17866 #endif
17867 #ifdef INT16_MAX
17868 int16_t a2 = INT16_MAX;
17869 int16_t a2min = INT16_MIN;
17870 #endif
17871 #ifdef INT32_MAX
17872 int32_t a3 = INT32_MAX;
17873 int32_t a3min = INT32_MIN;
17874 #endif
17875 #ifdef INT64_MAX
17876 int64_t a4 = INT64_MAX;
17877 int64_t a4min = INT64_MIN;
17878 #endif
17879 #ifdef UINT8_MAX
17880 uint8_t b1 = UINT8_MAX;
17881 #else
17882 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17883 #endif
17884 #ifdef UINT16_MAX
17885 uint16_t b2 = UINT16_MAX;
17886 #endif
17887 #ifdef UINT32_MAX
17888 uint32_t b3 = UINT32_MAX;
17889 #endif
17890 #ifdef UINT64_MAX
17891 uint64_t b4 = UINT64_MAX;
17892 #endif
17893 int_least8_t c1 = INT8_C (0x7f);
17894 int_least8_t c1max = INT_LEAST8_MAX;
17895 int_least8_t c1min = INT_LEAST8_MIN;
17896 int_least16_t c2 = INT16_C (0x7fff);
17897 int_least16_t c2max = INT_LEAST16_MAX;
17898 int_least16_t c2min = INT_LEAST16_MIN;
17899 int_least32_t c3 = INT32_C (0x7fffffff);
17900 int_least32_t c3max = INT_LEAST32_MAX;
17901 int_least32_t c3min = INT_LEAST32_MIN;
17902 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17903 int_least64_t c4max = INT_LEAST64_MAX;
17904 int_least64_t c4min = INT_LEAST64_MIN;
17905 uint_least8_t d1 = UINT8_C (0xff);
17906 uint_least8_t d1max = UINT_LEAST8_MAX;
17907 uint_least16_t d2 = UINT16_C (0xffff);
17908 uint_least16_t d2max = UINT_LEAST16_MAX;
17909 uint_least32_t d3 = UINT32_C (0xffffffff);
17910 uint_least32_t d3max = UINT_LEAST32_MAX;
17911 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17912 uint_least64_t d4max = UINT_LEAST64_MAX;
17913 int_fast8_t e1 = INT_FAST8_MAX;
17914 int_fast8_t e1min = INT_FAST8_MIN;
17915 int_fast16_t e2 = INT_FAST16_MAX;
17916 int_fast16_t e2min = INT_FAST16_MIN;
17917 int_fast32_t e3 = INT_FAST32_MAX;
17918 int_fast32_t e3min = INT_FAST32_MIN;
17919 int_fast64_t e4 = INT_FAST64_MAX;
17920 int_fast64_t e4min = INT_FAST64_MIN;
17921 uint_fast8_t f1 = UINT_FAST8_MAX;
17922 uint_fast16_t f2 = UINT_FAST16_MAX;
17923 uint_fast32_t f3 = UINT_FAST32_MAX;
17924 uint_fast64_t f4 = UINT_FAST64_MAX;
17925 #ifdef INTPTR_MAX
17926 intptr_t g = INTPTR_MAX;
17927 intptr_t gmin = INTPTR_MIN;
17928 #endif
17929 #ifdef UINTPTR_MAX
17930 uintptr_t h = UINTPTR_MAX;
17931 #endif
17932 intmax_t i = INTMAX_MAX;
17933 uintmax_t j = UINTMAX_MAX;
17935 #include <limits.h> /* for CHAR_BIT */
17936 #define TYPE_MINIMUM(t) \
17937 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17938 #define TYPE_MAXIMUM(t) \
17939 ((t) ((t) 0 < (t) -1 \
17940 ? (t) -1 \
17941 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17942 struct s {
17943 int check_PTRDIFF:
17944 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17945 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17946 ? 1 : -1;
17947 /* Detect bug in FreeBSD 6.0 / ia64. */
17948 int check_SIG_ATOMIC:
17949 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17950 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17951 ? 1 : -1;
17952 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17953 int check_WCHAR:
17954 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17955 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17956 ? 1 : -1;
17957 /* Detect bug in mingw. */
17958 int check_WINT:
17959 WINT_MIN == TYPE_MINIMUM (wint_t)
17960 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17961 ? 1 : -1;
17963 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17964 int check_UINT8_C:
17965 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17966 int check_UINT16_C:
17967 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17969 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17970 #ifdef UINT8_MAX
17971 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17972 #endif
17973 #ifdef UINT16_MAX
17974 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17975 #endif
17976 #ifdef UINT32_MAX
17977 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17978 #endif
17979 #ifdef UINT64_MAX
17980 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17981 #endif
17982 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17983 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17984 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17985 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17986 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17987 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17988 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17989 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17990 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17991 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17992 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17996 main ()
18000 return 0;
18002 _ACEOF
18003 if ac_fn_c_try_compile "$LINENO"; then :
18004 if test "$cross_compiling" = yes; then :
18005 gl_cv_header_working_stdint_h=yes
18007 else
18008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18009 /* end confdefs.h. */
18012 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
18013 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
18014 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18015 #include <stdint.h>
18018 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18019 included before <wchar.h>. */
18020 #include <stddef.h>
18021 #include <signal.h>
18022 #if HAVE_WCHAR_H
18023 # include <stdio.h>
18024 # include <time.h>
18025 # include <wchar.h>
18026 #endif
18029 #include <stdio.h>
18030 #include <string.h>
18031 #define MVAL(macro) MVAL1(macro)
18032 #define MVAL1(expression) #expression
18033 static const char *macro_values[] =
18035 #ifdef INT8_MAX
18036 MVAL (INT8_MAX),
18037 #endif
18038 #ifdef INT16_MAX
18039 MVAL (INT16_MAX),
18040 #endif
18041 #ifdef INT32_MAX
18042 MVAL (INT32_MAX),
18043 #endif
18044 #ifdef INT64_MAX
18045 MVAL (INT64_MAX),
18046 #endif
18047 #ifdef UINT8_MAX
18048 MVAL (UINT8_MAX),
18049 #endif
18050 #ifdef UINT16_MAX
18051 MVAL (UINT16_MAX),
18052 #endif
18053 #ifdef UINT32_MAX
18054 MVAL (UINT32_MAX),
18055 #endif
18056 #ifdef UINT64_MAX
18057 MVAL (UINT64_MAX),
18058 #endif
18059 NULL
18063 main ()
18066 const char **mv;
18067 for (mv = macro_values; *mv != NULL; mv++)
18069 const char *value = *mv;
18070 /* Test whether it looks like a cast expression. */
18071 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18072 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18073 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18074 || strncmp (value, "((int)"/*)*/, 6) == 0
18075 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18076 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18077 return mv - macro_values + 1;
18079 return 0;
18082 return 0;
18084 _ACEOF
18085 if ac_fn_c_try_run "$LINENO"; then :
18086 gl_cv_header_working_stdint_h=yes
18088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18089 conftest.$ac_objext conftest.beam conftest.$ac_ext
18094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18098 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18100 if test "$gl_cv_header_working_stdint_h" = yes; then
18101 STDINT_H=
18102 else
18103 for ac_header in sys/inttypes.h sys/bitypes.h
18104 do :
18105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18106 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18107 eval as_val=\$$as_ac_Header
18108 if test "x$as_val" = x""yes; then :
18109 cat >>confdefs.h <<_ACEOF
18110 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18111 _ACEOF
18115 done
18117 if test $ac_cv_header_sys_inttypes_h = yes; then
18118 HAVE_SYS_INTTYPES_H=1
18119 else
18120 HAVE_SYS_INTTYPES_H=0
18123 if test $ac_cv_header_sys_bitypes_h = yes; then
18124 HAVE_SYS_BITYPES_H=1
18125 else
18126 HAVE_SYS_BITYPES_H=0
18132 if test $APPLE_UNIVERSAL_BUILD = 0; then
18135 for gltype in ptrdiff_t size_t ; do
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18137 $as_echo_n "checking for bit size of $gltype... " >&6; }
18138 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18139 $as_echo_n "(cached) " >&6
18140 else
18141 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18142 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18143 included before <wchar.h>. */
18144 #include <stddef.h>
18145 #include <signal.h>
18146 #if HAVE_WCHAR_H
18147 # include <stdio.h>
18148 # include <time.h>
18149 # include <wchar.h>
18150 #endif
18152 #include <limits.h>"; then :
18154 else
18155 result=unknown
18158 eval gl_cv_bitsizeof_${gltype}=\$result
18161 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18163 $as_echo "$ac_res" >&6; }
18164 eval result=\$gl_cv_bitsizeof_${gltype}
18165 if test $result = unknown; then
18166 result=0
18168 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18169 cat >>confdefs.h <<_ACEOF
18170 #define BITSIZEOF_${GLTYPE} $result
18171 _ACEOF
18173 eval BITSIZEOF_${GLTYPE}=\$result
18174 done
18180 for gltype in sig_atomic_t wchar_t wint_t ; do
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18182 $as_echo_n "checking for bit size of $gltype... " >&6; }
18183 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18184 $as_echo_n "(cached) " >&6
18185 else
18186 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18187 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18188 included before <wchar.h>. */
18189 #include <stddef.h>
18190 #include <signal.h>
18191 #if HAVE_WCHAR_H
18192 # include <stdio.h>
18193 # include <time.h>
18194 # include <wchar.h>
18195 #endif
18197 #include <limits.h>"; then :
18199 else
18200 result=unknown
18203 eval gl_cv_bitsizeof_${gltype}=\$result
18206 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18208 $as_echo "$ac_res" >&6; }
18209 eval result=\$gl_cv_bitsizeof_${gltype}
18210 if test $result = unknown; then
18211 result=0
18213 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18214 cat >>confdefs.h <<_ACEOF
18215 #define BITSIZEOF_${GLTYPE} $result
18216 _ACEOF
18218 eval BITSIZEOF_${GLTYPE}=\$result
18219 done
18224 for gltype in sig_atomic_t wchar_t wint_t ; do
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18226 $as_echo_n "checking whether $gltype is signed... " >&6; }
18227 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18228 $as_echo_n "(cached) " >&6
18229 else
18230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18231 /* end confdefs.h. */
18233 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18234 included before <wchar.h>. */
18235 #include <stddef.h>
18236 #include <signal.h>
18237 #if HAVE_WCHAR_H
18238 # include <stdio.h>
18239 # include <time.h>
18240 # include <wchar.h>
18241 #endif
18243 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18245 main ()
18249 return 0;
18251 _ACEOF
18252 if ac_fn_c_try_compile "$LINENO"; then :
18253 result=yes
18254 else
18255 result=no
18257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18258 eval gl_cv_type_${gltype}_signed=\$result
18261 eval ac_res=\$gl_cv_type_${gltype}_signed
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18263 $as_echo "$ac_res" >&6; }
18264 eval result=\$gl_cv_type_${gltype}_signed
18265 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18266 if test "$result" = yes; then
18267 cat >>confdefs.h <<_ACEOF
18268 #define HAVE_SIGNED_${GLTYPE} 1
18269 _ACEOF
18271 eval HAVE_SIGNED_${GLTYPE}=1
18272 else
18273 eval HAVE_SIGNED_${GLTYPE}=0
18275 done
18278 gl_cv_type_ptrdiff_t_signed=yes
18279 gl_cv_type_size_t_signed=no
18280 if test $APPLE_UNIVERSAL_BUILD = 0; then
18283 for gltype in ptrdiff_t size_t ; do
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18285 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18286 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18287 $as_echo_n "(cached) " >&6
18288 else
18289 eval gl_cv_type_${gltype}_suffix=no
18290 eval result=\$gl_cv_type_${gltype}_signed
18291 if test "$result" = yes; then
18292 glsufu=
18293 else
18294 glsufu=u
18296 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18297 case $glsuf in
18298 '') gltype1='int';;
18299 l) gltype1='long int';;
18300 ll) gltype1='long long int';;
18301 i64) gltype1='__int64';;
18302 u) gltype1='unsigned int';;
18303 ul) gltype1='unsigned long int';;
18304 ull) gltype1='unsigned long long int';;
18305 ui64)gltype1='unsigned __int64';;
18306 esac
18307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18308 /* end confdefs.h. */
18310 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18311 included before <wchar.h>. */
18312 #include <stddef.h>
18313 #include <signal.h>
18314 #if HAVE_WCHAR_H
18315 # include <stdio.h>
18316 # include <time.h>
18317 # include <wchar.h>
18318 #endif
18320 extern $gltype foo;
18321 extern $gltype1 foo;
18323 main ()
18327 return 0;
18329 _ACEOF
18330 if ac_fn_c_try_compile "$LINENO"; then :
18331 eval gl_cv_type_${gltype}_suffix=\$glsuf
18333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18334 eval result=\$gl_cv_type_${gltype}_suffix
18335 test "$result" != no && break
18336 done
18338 eval ac_res=\$gl_cv_type_${gltype}_suffix
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18340 $as_echo "$ac_res" >&6; }
18341 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18342 eval result=\$gl_cv_type_${gltype}_suffix
18343 test "$result" = no && result=
18344 eval ${GLTYPE}_SUFFIX=\$result
18345 cat >>confdefs.h <<_ACEOF
18346 #define ${GLTYPE}_SUFFIX $result
18347 _ACEOF
18349 done
18355 for gltype in sig_atomic_t wchar_t wint_t ; do
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18357 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18358 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18359 $as_echo_n "(cached) " >&6
18360 else
18361 eval gl_cv_type_${gltype}_suffix=no
18362 eval result=\$gl_cv_type_${gltype}_signed
18363 if test "$result" = yes; then
18364 glsufu=
18365 else
18366 glsufu=u
18368 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18369 case $glsuf in
18370 '') gltype1='int';;
18371 l) gltype1='long int';;
18372 ll) gltype1='long long int';;
18373 i64) gltype1='__int64';;
18374 u) gltype1='unsigned int';;
18375 ul) gltype1='unsigned long int';;
18376 ull) gltype1='unsigned long long int';;
18377 ui64)gltype1='unsigned __int64';;
18378 esac
18379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18380 /* end confdefs.h. */
18382 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18383 included before <wchar.h>. */
18384 #include <stddef.h>
18385 #include <signal.h>
18386 #if HAVE_WCHAR_H
18387 # include <stdio.h>
18388 # include <time.h>
18389 # include <wchar.h>
18390 #endif
18392 extern $gltype foo;
18393 extern $gltype1 foo;
18395 main ()
18399 return 0;
18401 _ACEOF
18402 if ac_fn_c_try_compile "$LINENO"; then :
18403 eval gl_cv_type_${gltype}_suffix=\$glsuf
18405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18406 eval result=\$gl_cv_type_${gltype}_suffix
18407 test "$result" != no && break
18408 done
18410 eval ac_res=\$gl_cv_type_${gltype}_suffix
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18412 $as_echo "$ac_res" >&6; }
18413 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18414 eval result=\$gl_cv_type_${gltype}_suffix
18415 test "$result" = no && result=
18416 eval ${GLTYPE}_SUFFIX=\$result
18417 cat >>confdefs.h <<_ACEOF
18418 #define ${GLTYPE}_SUFFIX $result
18419 _ACEOF
18421 done
18425 STDINT_H=stdint.h
18428 if test -n "$STDINT_H"; then
18429 GL_GENERATE_STDINT_H_TRUE=
18430 GL_GENERATE_STDINT_H_FALSE='#'
18431 else
18432 GL_GENERATE_STDINT_H_TRUE='#'
18433 GL_GENERATE_STDINT_H_FALSE=
18440 GNULIB_IMAXABS=0;
18441 GNULIB_IMAXDIV=0;
18442 GNULIB_STRTOIMAX=0;
18443 GNULIB_STRTOUMAX=0;
18444 HAVE_DECL_IMAXABS=1;
18445 HAVE_DECL_IMAXDIV=1;
18446 HAVE_DECL_STRTOIMAX=1;
18447 HAVE_DECL_STRTOUMAX=1;
18448 INT32_MAX_LT_INTMAX_MAX=1;
18449 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18450 PRI_MACROS_BROKEN=0;
18451 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18452 UINT32_MAX_LT_UINTMAX_MAX=1;
18453 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18469 if test $gl_cv_have_include_next = yes; then
18470 gl_cv_next_inttypes_h='<'inttypes.h'>'
18471 else
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18473 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18474 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18475 $as_echo_n "(cached) " >&6
18476 else
18478 if test $ac_cv_header_inttypes_h = yes; then
18481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18482 /* end confdefs.h. */
18483 #include <inttypes.h>
18485 _ACEOF
18486 case "$host_os" in
18487 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18488 *) gl_absname_cpp="$ac_cpp" ;;
18489 esac
18490 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18491 sed -n '\#/inttypes.h#{
18492 s#.*"\(.*/inttypes.h\)".*#\1#
18493 s#^/[^/]#//&#
18496 }'`'"'
18497 else
18498 gl_cv_next_inttypes_h='<'inttypes.h'>'
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18504 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18506 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18508 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18509 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18510 gl_next_as_first_directive='<'inttypes.h'>'
18511 else
18512 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18513 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18515 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18524 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18531 GNULIB_FCHMODAT=0;
18532 GNULIB_FSTATAT=0;
18533 GNULIB_FUTIMENS=0;
18534 GNULIB_LCHMOD=0;
18535 GNULIB_LSTAT=0;
18536 GNULIB_MKDIRAT=0;
18537 GNULIB_MKFIFO=0;
18538 GNULIB_MKFIFOAT=0;
18539 GNULIB_MKNOD=0;
18540 GNULIB_MKNODAT=0;
18541 GNULIB_STAT=0;
18542 GNULIB_UTIMENSAT=0;
18543 HAVE_FCHMODAT=1;
18544 HAVE_FSTATAT=1;
18545 HAVE_FUTIMENS=1;
18546 HAVE_LCHMOD=1;
18547 HAVE_LSTAT=1;
18548 HAVE_MKDIRAT=1;
18549 HAVE_MKFIFO=1;
18550 HAVE_MKFIFOAT=1;
18551 HAVE_MKNOD=1;
18552 HAVE_MKNODAT=1;
18553 HAVE_UTIMENSAT=1;
18554 REPLACE_FSTAT=0;
18555 REPLACE_FSTATAT=0;
18556 REPLACE_FUTIMENS=0;
18557 REPLACE_LSTAT=0;
18558 REPLACE_MKDIR=0;
18559 REPLACE_MKFIFO=0;
18560 REPLACE_MKNOD=0;
18561 REPLACE_STAT=0;
18562 REPLACE_UTIMENSAT=0;
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18568 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18569 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18570 $as_echo_n "(cached) " >&6
18571 else
18572 rm -f conftest.sym conftest.file
18573 echo >conftest.file
18574 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18575 if test "$cross_compiling" = yes; then :
18576 # When cross-compiling, be pessimistic so we will end up using the
18577 # replacement version of lstat that checks for trailing slashes and
18578 # calls lstat a second time when necessary.
18579 gl_cv_func_lstat_dereferences_slashed_symlink=no
18581 else
18582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18583 /* end confdefs.h. */
18584 $ac_includes_default
18586 main ()
18588 struct stat sbuf;
18589 /* Linux will dereference the symlink and fail, as required by
18590 POSIX. That is better in the sense that it means we will not
18591 have to compile and use the lstat wrapper. */
18592 return lstat ("conftest.sym/", &sbuf) == 0;
18595 return 0;
18597 _ACEOF
18598 if ac_fn_c_try_run "$LINENO"; then :
18599 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18600 else
18601 gl_cv_func_lstat_dereferences_slashed_symlink=no
18603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18604 conftest.$ac_objext conftest.beam conftest.$ac_ext
18607 else
18608 # If the 'ln -s' command failed, then we probably don't even
18609 # have an lstat function.
18610 gl_cv_func_lstat_dereferences_slashed_symlink=no
18612 rm -f conftest.sym conftest.file
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18616 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18617 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
18619 cat >>confdefs.h <<_ACEOF
18620 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18621 _ACEOF
18625 GNULIB_MKTIME=0;
18626 GNULIB_NANOSLEEP=0;
18627 GNULIB_STRPTIME=0;
18628 GNULIB_TIMEGM=0;
18629 GNULIB_TIME_R=0;
18630 HAVE_DECL_LOCALTIME_R=1;
18631 HAVE_NANOSLEEP=1;
18632 HAVE_STRPTIME=1;
18633 HAVE_TIMEGM=1;
18634 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
18635 REPLACE_MKTIME=GNULIB_PORTCHECK;
18636 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
18637 REPLACE_TIMEGM=GNULIB_PORTCHECK;
18644 <<<<<<< TREE
18645 =======
18646 GNULIB_PTHREAD_SIGMASK=0;
18647 GNULIB_SIGNAL_H_SIGPIPE=0;
18648 GNULIB_SIGPROCMASK=0;
18649 GNULIB_SIGACTION=0;
18650 HAVE_POSIX_SIGNALBLOCKING=1;
18651 HAVE_PTHREAD_SIGMASK=1;
18652 HAVE_SIGSET_T=1;
18653 HAVE_SIGINFO_T=1;
18654 HAVE_SIGACTION=1;
18655 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
18657 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
18659 HAVE_SIGHANDLER_T=1;
18660 REPLACE_PTHREAD_SIGMASK=0;
18665 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18666 #include <signal.h>
18667 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18668 #include <sys/types.h>
18671 if test "x$ac_cv_type_sigset_t" = x""yes; then :
18673 cat >>confdefs.h <<_ACEOF
18674 #define HAVE_SIGSET_T 1
18675 _ACEOF
18677 gl_cv_type_sigset_t=yes
18678 else
18679 gl_cv_type_sigset_t=no
18682 if test $gl_cv_type_sigset_t != yes; then
18683 HAVE_SIGSET_T=0
18688 >>>>>>> MERGE-SOURCE
18691 if test $ac_cv_header_sys_socket_h = no; then
18692 for ac_header in ws2tcpip.h
18693 do :
18694 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18695 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
18696 cat >>confdefs.h <<_ACEOF
18697 #define HAVE_WS2TCPIP_H 1
18698 _ACEOF
18702 done
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18707 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18708 if test "${ac_cv_header_stdbool_h+set}" = set; then :
18709 $as_echo_n "(cached) " >&6
18710 else
18711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18712 /* end confdefs.h. */
18714 #include <stdbool.h>
18715 #ifndef bool
18716 "error: bool is not defined"
18717 #endif
18718 #ifndef false
18719 "error: false is not defined"
18720 #endif
18721 #if false
18722 "error: false is not 0"
18723 #endif
18724 #ifndef true
18725 "error: true is not defined"
18726 #endif
18727 #if true != 1
18728 "error: true is not 1"
18729 #endif
18730 #ifndef __bool_true_false_are_defined
18731 "error: __bool_true_false_are_defined is not defined"
18732 #endif
18734 struct s { _Bool s: 1; _Bool t; } s;
18736 char a[true == 1 ? 1 : -1];
18737 char b[false == 0 ? 1 : -1];
18738 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18739 char d[(bool) 0.5 == true ? 1 : -1];
18740 /* See body of main program for 'e'. */
18741 char f[(_Bool) 0.0 == false ? 1 : -1];
18742 char g[true];
18743 char h[sizeof (_Bool)];
18744 char i[sizeof s.t];
18745 enum { j = false, k = true, l = false * true, m = true * 256 };
18746 /* The following fails for
18747 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18748 _Bool n[m];
18749 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18750 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18751 /* Catch a bug in an HP-UX C compiler. See
18752 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18753 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18755 _Bool q = true;
18756 _Bool *pq = &q;
18759 main ()
18762 bool e = &s;
18763 *pq |= q;
18764 *pq |= ! q;
18765 /* Refer to every declared value, to avoid compiler optimizations. */
18766 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18767 + !m + !n + !o + !p + !q + !pq);
18770 return 0;
18772 _ACEOF
18773 if ac_fn_c_try_compile "$LINENO"; then :
18774 ac_cv_header_stdbool_h=yes
18775 else
18776 ac_cv_header_stdbool_h=no
18778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18781 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18782 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18783 if test "x$ac_cv_type__Bool" = x""yes; then :
18785 cat >>confdefs.h <<_ACEOF
18786 #define HAVE__BOOL 1
18787 _ACEOF
18794 REPLACE_NULL=0;
18795 HAVE_WCHAR_T=1;
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18799 $as_echo_n "checking for wchar_t... " >&6; }
18800 if test "${gt_cv_c_wchar_t+set}" = set; then :
18801 $as_echo_n "(cached) " >&6
18802 else
18803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18804 /* end confdefs.h. */
18805 #include <stddef.h>
18806 wchar_t foo = (wchar_t)'\0';
18808 main ()
18812 return 0;
18814 _ACEOF
18815 if ac_fn_c_try_compile "$LINENO"; then :
18816 gt_cv_c_wchar_t=yes
18817 else
18818 gt_cv_c_wchar_t=no
18820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18823 $as_echo "$gt_cv_c_wchar_t" >&6; }
18824 if test $gt_cv_c_wchar_t = yes; then
18826 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18831 GNULIB_DPRINTF=0;
18832 GNULIB_FCLOSE=0;
18833 GNULIB_FFLUSH=0;
18834 GNULIB_FGETC=0;
18835 GNULIB_FGETS=0;
18836 GNULIB_FOPEN=0;
18837 GNULIB_FPRINTF=0;
18838 GNULIB_FPRINTF_POSIX=0;
18839 GNULIB_FPURGE=0;
18840 GNULIB_FPUTC=0;
18841 GNULIB_FPUTS=0;
18842 GNULIB_FREAD=0;
18843 GNULIB_FREOPEN=0;
18844 GNULIB_FSCANF=0;
18845 GNULIB_FSEEK=0;
18846 GNULIB_FSEEKO=0;
18847 GNULIB_FTELL=0;
18848 GNULIB_FTELLO=0;
18849 GNULIB_FWRITE=0;
18850 GNULIB_GETC=0;
18851 GNULIB_GETCHAR=0;
18852 GNULIB_GETDELIM=0;
18853 GNULIB_GETLINE=0;
18854 GNULIB_GETS=0;
18855 GNULIB_OBSTACK_PRINTF=0;
18856 GNULIB_OBSTACK_PRINTF_POSIX=0;
18857 GNULIB_PERROR=0;
18858 GNULIB_POPEN=0;
18859 GNULIB_PRINTF=0;
18860 GNULIB_PRINTF_POSIX=0;
18861 GNULIB_PUTC=0;
18862 GNULIB_PUTCHAR=0;
18863 GNULIB_PUTS=0;
18864 GNULIB_REMOVE=0;
18865 GNULIB_RENAME=0;
18866 GNULIB_RENAMEAT=0;
18867 GNULIB_SCANF=0;
18868 GNULIB_SNPRINTF=0;
18869 GNULIB_SPRINTF_POSIX=0;
18870 GNULIB_STDIO_H_NONBLOCKING=0;
18871 GNULIB_STDIO_H_SIGPIPE=0;
18872 GNULIB_TMPFILE=0;
18873 GNULIB_VASPRINTF=0;
18874 GNULIB_VFSCANF=0;
18875 GNULIB_VSCANF=0;
18876 GNULIB_VDPRINTF=0;
18877 GNULIB_VFPRINTF=0;
18878 GNULIB_VFPRINTF_POSIX=0;
18879 GNULIB_VPRINTF=0;
18880 GNULIB_VPRINTF_POSIX=0;
18881 GNULIB_VSNPRINTF=0;
18882 GNULIB_VSPRINTF_POSIX=0;
18883 HAVE_DECL_FPURGE=1;
18884 HAVE_DECL_FSEEKO=1;
18885 HAVE_DECL_FTELLO=1;
18886 HAVE_DECL_GETDELIM=1;
18887 HAVE_DECL_GETLINE=1;
18888 HAVE_DECL_OBSTACK_PRINTF=1;
18889 HAVE_DECL_SNPRINTF=1;
18890 HAVE_DECL_VSNPRINTF=1;
18891 HAVE_DPRINTF=1;
18892 HAVE_FSEEKO=1;
18893 HAVE_FTELLO=1;
18894 HAVE_RENAMEAT=1;
18895 HAVE_VASPRINTF=1;
18896 HAVE_VDPRINTF=1;
18897 REPLACE_DPRINTF=0;
18898 REPLACE_FCLOSE=0;
18899 REPLACE_FFLUSH=0;
18900 REPLACE_FOPEN=0;
18901 REPLACE_FPRINTF=0;
18902 REPLACE_FPURGE=0;
18903 REPLACE_FREOPEN=0;
18904 REPLACE_FSEEK=0;
18905 REPLACE_FSEEKO=0;
18906 REPLACE_FTELL=0;
18907 REPLACE_FTELLO=0;
18908 REPLACE_GETDELIM=0;
18909 REPLACE_GETLINE=0;
18910 REPLACE_OBSTACK_PRINTF=0;
18911 REPLACE_PERROR=0;
18912 REPLACE_POPEN=0;
18913 REPLACE_PRINTF=0;
18914 REPLACE_REMOVE=0;
18915 REPLACE_RENAME=0;
18916 REPLACE_RENAMEAT=0;
18917 REPLACE_SNPRINTF=0;
18918 REPLACE_SPRINTF=0;
18919 REPLACE_STDIO_READ_FUNCS=0;
18920 REPLACE_STDIO_WRITE_FUNCS=0;
18921 REPLACE_TMPFILE=0;
18922 REPLACE_VASPRINTF=0;
18923 REPLACE_VDPRINTF=0;
18924 REPLACE_VFPRINTF=0;
18925 REPLACE_VPRINTF=0;
18926 REPLACE_VSNPRINTF=0;
18927 REPLACE_VSPRINTF=0;
18930 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18932 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
18934 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18941 <<<<<<< TREE
18942 =======
18945 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
18946 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
18947 ac_have_decl=1
18948 else
18949 ac_have_decl=0
18952 cat >>confdefs.h <<_ACEOF
18953 #define HAVE_DECL_STRTOIMAX $ac_have_decl
18954 _ACEOF
18958 >>>>>>> MERGE-SOURCE
18959 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
18960 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
18961 ac_have_decl=1
18962 else
18963 ac_have_decl=0
18966 cat >>confdefs.h <<_ACEOF
18967 #define HAVE_DECL_STRTOUMAX $ac_have_decl
18968 _ACEOF
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18973 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18974 if test "${ac_cv_header_stat_broken+set}" = set; then :
18975 $as_echo_n "(cached) " >&6
18976 else
18977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18978 /* end confdefs.h. */
18979 #include <sys/types.h>
18980 #include <sys/stat.h>
18982 #if defined S_ISBLK && defined S_IFDIR
18983 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18984 #endif
18986 #if defined S_ISBLK && defined S_IFCHR
18987 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18988 #endif
18990 #if defined S_ISLNK && defined S_IFREG
18991 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18992 #endif
18994 #if defined S_ISSOCK && defined S_IFREG
18995 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18996 #endif
18998 _ACEOF
18999 if ac_fn_c_try_compile "$LINENO"; then :
19000 ac_cv_header_stat_broken=no
19001 else
19002 ac_cv_header_stat_broken=yes
19004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19007 $as_echo "$ac_cv_header_stat_broken" >&6; }
19008 if test $ac_cv_header_stat_broken = yes; then
19010 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19017 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19018 if test "${ac_cv_c_restrict+set}" = set; then :
19019 $as_echo_n "(cached) " >&6
19020 else
19021 ac_cv_c_restrict=no
19022 # The order here caters to the fact that C++ does not require restrict.
19023 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19025 /* end confdefs.h. */
19026 typedef int * int_ptr;
19027 int foo (int_ptr $ac_kw ip) {
19028 return ip[0];
19031 main ()
19033 int s[1];
19034 int * $ac_kw t = s;
19035 t[0] = 0;
19036 return foo(t)
19038 return 0;
19040 _ACEOF
19041 if ac_fn_c_try_compile "$LINENO"; then :
19042 ac_cv_c_restrict=$ac_kw
19044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19045 test "$ac_cv_c_restrict" != no && break
19046 done
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19050 $as_echo "$ac_cv_c_restrict" >&6; }
19052 case $ac_cv_c_restrict in
19053 restrict) ;;
19054 no) $as_echo "#define restrict /**/" >>confdefs.h
19056 *) cat >>confdefs.h <<_ACEOF
19057 #define restrict $ac_cv_c_restrict
19058 _ACEOF
19060 esac
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19067 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19068 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19069 $as_echo_n "(cached) " >&6
19070 else
19071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19072 /* end confdefs.h. */
19073 #include <time.h>
19076 main ()
19078 static struct timespec x; x.tv_sec = x.tv_nsec;
19080 return 0;
19082 _ACEOF
19083 if ac_fn_c_try_compile "$LINENO"; then :
19084 gl_cv_sys_struct_timespec_in_time_h=yes
19085 else
19086 gl_cv_sys_struct_timespec_in_time_h=no
19088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19091 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19093 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19094 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19095 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19096 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19097 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19098 else
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19100 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19101 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19102 $as_echo_n "(cached) " >&6
19103 else
19104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19105 /* end confdefs.h. */
19106 #include <sys/time.h>
19109 main ()
19111 static struct timespec x; x.tv_sec = x.tv_nsec;
19113 return 0;
19115 _ACEOF
19116 if ac_fn_c_try_compile "$LINENO"; then :
19117 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19118 else
19119 gl_cv_sys_struct_timespec_in_sys_time_h=no
19121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19124 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19125 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19126 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19127 else
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19129 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19130 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19131 $as_echo_n "(cached) " >&6
19132 else
19133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19134 /* end confdefs.h. */
19135 #include <pthread.h>
19138 main ()
19140 static struct timespec x; x.tv_sec = x.tv_nsec;
19142 return 0;
19144 _ACEOF
19145 if ac_fn_c_try_compile "$LINENO"; then :
19146 gl_cv_sys_struct_timespec_in_pthread_h=yes
19147 else
19148 gl_cv_sys_struct_timespec_in_pthread_h=no
19150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19153 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19154 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19155 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19174 if test $gl_cv_have_include_next = yes; then
19175 gl_cv_next_time_h='<'time.h'>'
19176 else
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19178 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19179 if test "${gl_cv_next_time_h+set}" = set; then :
19180 $as_echo_n "(cached) " >&6
19181 else
19183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19184 /* end confdefs.h. */
19185 #include <time.h>
19187 _ACEOF
19188 case "$host_os" in
19189 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19190 *) gl_absname_cpp="$ac_cpp" ;;
19191 esac
19192 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19193 sed -n '\#/time.h#{
19194 s#.*"\(.*/time.h\)".*#\1#
19195 s#^/[^/]#//&#
19198 }'`'"'
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19203 $as_echo "$gl_cv_next_time_h" >&6; }
19205 NEXT_TIME_H=$gl_cv_next_time_h
19207 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19208 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19209 gl_next_as_first_directive='<'time.h'>'
19210 else
19211 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19212 gl_next_as_first_directive=$gl_cv_next_time_h
19214 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19221 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19222 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
19223 ac_have_decl=1
19224 else
19225 ac_have_decl=0
19228 cat >>confdefs.h <<_ACEOF
19229 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19230 _ACEOF
19235 if false; then
19236 GL_COND_LIBTOOL_TRUE=
19237 GL_COND_LIBTOOL_FALSE='#'
19238 else
19239 GL_COND_LIBTOOL_TRUE='#'
19240 GL_COND_LIBTOOL_FALSE=
19243 gl_cond_libtool=false
19244 gl_libdeps=
19245 gl_ltlibdeps=
19246 gl_m4_base='m4'
19256 gl_source_base='lib'
19259 if test $ac_cv_func_alloca_works = no; then
19263 # Define an additional variable used in the Makefile substitution.
19264 if test $ac_cv_working_alloca_h = yes; then
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19266 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19267 if test "${gl_cv_rpl_alloca+set}" = set; then :
19268 $as_echo_n "(cached) " >&6
19269 else
19271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19272 /* end confdefs.h. */
19274 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19275 Need own alloca
19276 #endif
19278 _ACEOF
19279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19280 $EGREP "Need own alloca" >/dev/null 2>&1; then :
19281 gl_cv_rpl_alloca=yes
19282 else
19283 gl_cv_rpl_alloca=no
19285 rm -f conftest*
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19290 $as_echo "$gl_cv_rpl_alloca" >&6; }
19291 if test $gl_cv_rpl_alloca = yes; then
19293 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19295 ALLOCA_H=alloca.h
19296 else
19297 ALLOCA_H=
19299 else
19300 ALLOCA_H=alloca.h
19303 if test -n "$ALLOCA_H"; then
19304 GL_GENERATE_ALLOCA_H_TRUE=
19305 GL_GENERATE_ALLOCA_H_FALSE='#'
19306 else
19307 GL_GENERATE_ALLOCA_H_TRUE='#'
19308 GL_GENERATE_ALLOCA_H_FALSE=
19337 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19340 if test $HAVE_DUP2 = 1; then
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19342 $as_echo_n "checking whether dup2 works... " >&6; }
19343 if test "${gl_cv_func_dup2_works+set}" = set; then :
19344 $as_echo_n "(cached) " >&6
19345 else
19346 if test "$cross_compiling" = yes; then :
19347 case "$host_os" in
19348 mingw*) # on this platform, dup2 always returns 0 for success
19349 gl_cv_func_dup2_works=no;;
19350 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
19351 gl_cv_func_dup2_works=no;;
19352 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19353 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19354 gl_cv_func_dup2_works=no;;
19355 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19356 gl_cv_func_dup2_works=no;;
19357 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19358 gl_cv_func_dup2_works=no;;
19359 *) gl_cv_func_dup2_works=yes;;
19360 esac
19361 else
19362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19363 /* end confdefs.h. */
19365 #include <unistd.h>
19366 #include <fcntl.h>
19367 #include <errno.h>
19369 main ()
19371 int result = 0;
19372 #ifdef FD_CLOEXEC
19373 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19374 result |= 1;
19375 #endif
19376 if (dup2 (1, 1) == 0)
19377 result |= 2;
19378 #ifdef FD_CLOEXEC
19379 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19380 result |= 4;
19381 #endif
19382 close (0);
19383 if (dup2 (0, 0) != -1)
19384 result |= 8;
19385 /* Many gnulib modules require POSIX conformance of EBADF. */
19386 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19387 result |= 16;
19388 return result;
19391 return 0;
19394 _ACEOF
19395 if ac_fn_c_try_run "$LINENO"; then :
19396 gl_cv_func_dup2_works=yes
19397 else
19398 gl_cv_func_dup2_works=no
19400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19401 conftest.$ac_objext conftest.beam conftest.$ac_ext
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19407 $as_echo "$gl_cv_func_dup2_works" >&6; }
19408 if test "$gl_cv_func_dup2_works" = no; then
19409 REPLACE_DUP2=1
19414 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
19423 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
19431 GNULIB_DUP2=1
19443 # Persuade glibc <stdlib.h> to declare getloadavg().
19446 gl_save_LIBS=$LIBS
19448 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19449 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19450 HAVE_GETLOADAVG=1
19451 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19452 if test "x$ac_cv_func_getloadavg" = x""yes; then :
19454 else
19455 gl_func_getloadavg_done=no
19457 # Some systems with -lutil have (and need) -lkvm as well, some do not.
19458 # On Solaris, -lkvm requires nlist from -lelf, so check that first
19459 # to get the right answer into the cache.
19460 # For kstat on solaris, we need to test for libelf and libkvm to force the
19461 # definition of SVR4 below.
19462 if test $gl_func_getloadavg_done = no; then
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
19464 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
19465 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
19466 $as_echo_n "(cached) " >&6
19467 else
19468 ac_check_lib_save_LIBS=$LIBS
19469 LIBS="-lelf $LIBS"
19470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19471 /* end confdefs.h. */
19473 /* Override any GCC internal prototype to avoid an error.
19474 Use char because int might match the return type of a GCC
19475 builtin and then its argument prototype would still apply. */
19476 #ifdef __cplusplus
19477 extern "C"
19478 #endif
19479 char elf_begin ();
19481 main ()
19483 return elf_begin ();
19485 return 0;
19487 _ACEOF
19488 if ac_fn_c_try_link "$LINENO"; then :
19489 ac_cv_lib_elf_elf_begin=yes
19490 else
19491 ac_cv_lib_elf_elf_begin=no
19493 rm -f core conftest.err conftest.$ac_objext \
19494 conftest$ac_exeext conftest.$ac_ext
19495 LIBS=$ac_check_lib_save_LIBS
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
19498 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19499 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
19500 LIBS="-lelf $LIBS"
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
19504 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
19505 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
19506 $as_echo_n "(cached) " >&6
19507 else
19508 ac_check_lib_save_LIBS=$LIBS
19509 LIBS="-lkvm $LIBS"
19510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19511 /* end confdefs.h. */
19513 /* Override any GCC internal prototype to avoid an error.
19514 Use char because int might match the return type of a GCC
19515 builtin and then its argument prototype would still apply. */
19516 #ifdef __cplusplus
19517 extern "C"
19518 #endif
19519 char kvm_open ();
19521 main ()
19523 return kvm_open ();
19525 return 0;
19527 _ACEOF
19528 if ac_fn_c_try_link "$LINENO"; then :
19529 ac_cv_lib_kvm_kvm_open=yes
19530 else
19531 ac_cv_lib_kvm_kvm_open=no
19533 rm -f core conftest.err conftest.$ac_objext \
19534 conftest$ac_exeext conftest.$ac_ext
19535 LIBS=$ac_check_lib_save_LIBS
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
19538 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
19539 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
19540 LIBS="-lkvm $LIBS"
19543 # Check for the 4.4BSD definition of getloadavg.
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
19545 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
19546 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
19547 $as_echo_n "(cached) " >&6
19548 else
19549 ac_check_lib_save_LIBS=$LIBS
19550 LIBS="-lutil $LIBS"
19551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19552 /* end confdefs.h. */
19554 /* Override any GCC internal prototype to avoid an error.
19555 Use char because int might match the return type of a GCC
19556 builtin and then its argument prototype would still apply. */
19557 #ifdef __cplusplus
19558 extern "C"
19559 #endif
19560 char getloadavg ();
19562 main ()
19564 return getloadavg ();
19566 return 0;
19568 _ACEOF
19569 if ac_fn_c_try_link "$LINENO"; then :
19570 ac_cv_lib_util_getloadavg=yes
19571 else
19572 ac_cv_lib_util_getloadavg=no
19574 rm -f core conftest.err conftest.$ac_objext \
19575 conftest$ac_exeext conftest.$ac_ext
19576 LIBS=$ac_check_lib_save_LIBS
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
19579 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19580 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
19581 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
19586 if test $gl_func_getloadavg_done = no; then
19587 # There is a commonly available library for RS/6000 AIX.
19588 # Since it is not a standard part of AIX, it might be installed locally.
19589 gl_getloadavg_LIBS=$LIBS
19590 LIBS="-L/usr/local/lib $LIBS"
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
19592 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19593 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
19594 $as_echo_n "(cached) " >&6
19595 else
19596 ac_check_lib_save_LIBS=$LIBS
19597 LIBS="-lgetloadavg $LIBS"
19598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19599 /* end confdefs.h. */
19601 /* Override any GCC internal prototype to avoid an error.
19602 Use char because int might match the return type of a GCC
19603 builtin and then its argument prototype would still apply. */
19604 #ifdef __cplusplus
19605 extern "C"
19606 #endif
19607 char getloadavg ();
19609 main ()
19611 return getloadavg ();
19613 return 0;
19615 _ACEOF
19616 if ac_fn_c_try_link "$LINENO"; then :
19617 ac_cv_lib_getloadavg_getloadavg=yes
19618 else
19619 ac_cv_lib_getloadavg_getloadavg=no
19621 rm -f core conftest.err conftest.$ac_objext \
19622 conftest$ac_exeext conftest.$ac_ext
19623 LIBS=$ac_check_lib_save_LIBS
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19626 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19627 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
19628 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
19629 else
19630 LIBS=$gl_getloadavg_LIBS
19635 # Set up the replacement function if necessary.
19636 if test $gl_func_getloadavg_done = no; then
19637 HAVE_GETLOADAVG=0
19639 # Solaris has libkstat which does not require root.
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
19641 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
19642 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
19643 $as_echo_n "(cached) " >&6
19644 else
19645 ac_check_lib_save_LIBS=$LIBS
19646 LIBS="-lkstat $LIBS"
19647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19648 /* end confdefs.h. */
19650 /* Override any GCC internal prototype to avoid an error.
19651 Use char because int might match the return type of a GCC
19652 builtin and then its argument prototype would still apply. */
19653 #ifdef __cplusplus
19654 extern "C"
19655 #endif
19656 char kstat_open ();
19658 main ()
19660 return kstat_open ();
19662 return 0;
19664 _ACEOF
19665 if ac_fn_c_try_link "$LINENO"; then :
19666 ac_cv_lib_kstat_kstat_open=yes
19667 else
19668 ac_cv_lib_kstat_kstat_open=no
19670 rm -f core conftest.err conftest.$ac_objext \
19671 conftest$ac_exeext conftest.$ac_ext
19672 LIBS=$ac_check_lib_save_LIBS
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19675 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19676 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
19677 cat >>confdefs.h <<_ACEOF
19678 #define HAVE_LIBKSTAT 1
19679 _ACEOF
19681 LIBS="-lkstat $LIBS"
19685 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
19687 # AIX has libperfstat which does not require root
19688 if test $gl_func_getloadavg_done = no; then
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
19690 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
19691 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
19692 $as_echo_n "(cached) " >&6
19693 else
19694 ac_check_lib_save_LIBS=$LIBS
19695 LIBS="-lperfstat $LIBS"
19696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19697 /* end confdefs.h. */
19699 /* Override any GCC internal prototype to avoid an error.
19700 Use char because int might match the return type of a GCC
19701 builtin and then its argument prototype would still apply. */
19702 #ifdef __cplusplus
19703 extern "C"
19704 #endif
19705 char perfstat_cpu_total ();
19707 main ()
19709 return perfstat_cpu_total ();
19711 return 0;
19713 _ACEOF
19714 if ac_fn_c_try_link "$LINENO"; then :
19715 ac_cv_lib_perfstat_perfstat_cpu_total=yes
19716 else
19717 ac_cv_lib_perfstat_perfstat_cpu_total=no
19719 rm -f core conftest.err conftest.$ac_objext \
19720 conftest$ac_exeext conftest.$ac_ext
19721 LIBS=$ac_check_lib_save_LIBS
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
19724 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
19725 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
19726 cat >>confdefs.h <<_ACEOF
19727 #define HAVE_LIBPERFSTAT 1
19728 _ACEOF
19730 LIBS="-lperfstat $LIBS"
19734 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
19737 if test $gl_func_getloadavg_done = no; then
19738 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
19739 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
19740 gl_func_getloadavg_done=yes
19742 $as_echo "#define DGUX 1" >>confdefs.h
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19745 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19746 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
19747 $as_echo_n "(cached) " >&6
19748 else
19749 ac_check_lib_save_LIBS=$LIBS
19750 LIBS="-ldgc $LIBS"
19751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19752 /* end confdefs.h. */
19754 /* Override any GCC internal prototype to avoid an error.
19755 Use char because int might match the return type of a GCC
19756 builtin and then its argument prototype would still apply. */
19757 #ifdef __cplusplus
19758 extern "C"
19759 #endif
19760 char dg_sys_info ();
19762 main ()
19764 return dg_sys_info ();
19766 return 0;
19768 _ACEOF
19769 if ac_fn_c_try_link "$LINENO"; then :
19770 ac_cv_lib_dgc_dg_sys_info=yes
19771 else
19772 ac_cv_lib_dgc_dg_sys_info=no
19774 rm -f core conftest.err conftest.$ac_objext \
19775 conftest$ac_exeext conftest.$ac_ext
19776 LIBS=$ac_check_lib_save_LIBS
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19779 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19780 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
19781 cat >>confdefs.h <<_ACEOF
19782 #define HAVE_LIBDGC 1
19783 _ACEOF
19785 LIBS="-ldgc $LIBS"
19797 if test "x$gl_save_LIBS" = x; then
19798 GETLOADAVG_LIBS=$LIBS
19799 else
19800 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
19802 LIBS=$gl_save_LIBS
19805 # Test whether the system declares getloadavg. Solaris has the function
19806 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
19807 for ac_header in sys/loadavg.h
19808 do :
19809 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19810 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
19811 cat >>confdefs.h <<_ACEOF
19812 #define HAVE_SYS_LOADAVG_H 1
19813 _ACEOF
19817 done
19819 if test $ac_cv_header_sys_loadavg_h = yes; then
19820 HAVE_SYS_LOADAVG_H=1
19821 else
19822 HAVE_SYS_LOADAVG_H=0
19824 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
19825 # include <sys/loadavg.h>
19826 #endif
19827 #include <stdlib.h>
19829 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
19831 else
19832 HAVE_DECL_GETLOADAVG=0
19836 if test $HAVE_GETLOADAVG = 0; then
19845 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
19848 # Figure out what our getloadavg.c needs.
19850 # On HPUX9, an unprivileged user can get load averages this way.
19851 if test $gl_func_getloadavg_done = no; then
19852 for ac_func in pstat_getdynamic
19853 do :
19854 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19855 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
19856 cat >>confdefs.h <<_ACEOF
19857 #define HAVE_PSTAT_GETDYNAMIC 1
19858 _ACEOF
19859 gl_func_getloadavg_done=yes
19861 done
19865 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19866 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19867 # Irix 4.0.5F has the header but not the library.
19868 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
19869 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19870 gl_func_getloadavg_done=yes
19872 $as_echo "#define SVR4 1" >>confdefs.h
19876 if test $gl_func_getloadavg_done = no; then
19877 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19878 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
19879 gl_func_getloadavg_done=yes
19881 $as_echo "#define UMAX 1" >>confdefs.h
19884 $as_echo "#define UMAX4_3 1" >>confdefs.h
19891 if test $gl_func_getloadavg_done = no; then
19892 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19893 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
19894 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
19901 if test $gl_func_getloadavg_done = no; then
19902 for ac_header in mach/mach.h
19903 do :
19904 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19905 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
19906 cat >>confdefs.h <<_ACEOF
19907 #define HAVE_MACH_MACH_H 1
19908 _ACEOF
19912 done
19916 for ac_header in nlist.h
19917 do :
19918 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19919 if test "x$ac_cv_header_nlist_h" = x""yes; then :
19920 cat >>confdefs.h <<_ACEOF
19921 #define HAVE_NLIST_H 1
19922 _ACEOF
19923 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19925 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
19927 cat >>confdefs.h <<_ACEOF
19928 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19929 _ACEOF
19934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19935 /* end confdefs.h. */
19936 #include <nlist.h>
19938 main ()
19940 struct nlist x;
19941 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
19942 x.n_un.n_name = "";
19943 #else
19944 x.n_name = "";
19945 #endif
19947 return 0;
19949 _ACEOF
19950 if ac_fn_c_try_link "$LINENO"; then :
19952 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
19955 rm -f core conftest.err conftest.$ac_objext \
19956 conftest$ac_exeext conftest.$ac_ext
19960 done
19968 GNULIB_GETLOADAVG=1
19979 if test $REPLACE_GETOPT = 1; then
19988 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19998 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20009 REPLACE_GETOPT=0
20012 if test -n "$gl_replace_getopt"; then :
20014 REPLACE_GETOPT=1
20019 if test $REPLACE_GETOPT = 1; then
20021 GETOPT_H=getopt.h
20023 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20027 GNULIB_UNISTD_H_GETOPT=1
20030 if test $REPLACE_GETOPT = 1; then
20039 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20049 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20060 if test $ac_cv_func_lstat = yes; then
20062 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
20063 REPLACE_LSTAT=1
20065 else
20066 HAVE_LSTAT=0
20069 if test $REPLACE_LSTAT = 1; then
20078 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
20090 GNULIB_LSTAT=1
20102 if test $APPLE_UNIVERSAL_BUILD = 1; then
20103 # A universal build on Apple MacOS X platforms.
20104 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20105 # But we need a configuration result that is valid in both modes.
20106 gl_cv_func_working_mktime=no
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20109 $as_echo_n "checking for working mktime... " >&6; }
20110 if test "${gl_cv_func_working_mktime+set}" = set; then :
20111 $as_echo_n "(cached) " >&6
20112 else
20113 if test "$cross_compiling" = yes; then :
20114 gl_cv_func_working_mktime=no
20115 else
20116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20117 /* end confdefs.h. */
20118 /* Test program from Paul Eggert and Tony Leneis. */
20119 #include <limits.h>
20120 #include <stdlib.h>
20121 #include <time.h>
20123 #ifdef HAVE_UNISTD_H
20124 # include <unistd.h>
20125 #endif
20127 #ifndef HAVE_ALARM
20128 # define alarm(X) /* empty */
20129 #endif
20131 /* Work around redefinition to rpl_putenv by other config tests. */
20132 #undef putenv
20134 static time_t time_t_max;
20135 static time_t time_t_min;
20137 /* Values we'll use to set the TZ environment variable. */
20138 static char *tz_strings[] = {
20139 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20140 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20142 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20144 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20145 Based on a problem report from Andreas Jaeger. */
20146 static int
20147 spring_forward_gap ()
20149 /* glibc (up to about 1998-10-07) failed this test. */
20150 struct tm tm;
20152 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20153 instead of "TZ=America/Vancouver" in order to detect the bug even
20154 on systems that don't support the Olson extension, or don't have the
20155 full zoneinfo tables installed. */
20156 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20158 tm.tm_year = 98;
20159 tm.tm_mon = 3;
20160 tm.tm_mday = 5;
20161 tm.tm_hour = 2;
20162 tm.tm_min = 0;
20163 tm.tm_sec = 0;
20164 tm.tm_isdst = -1;
20165 return mktime (&tm) != (time_t) -1;
20168 static int
20169 mktime_test1 (time_t now)
20171 struct tm *lt;
20172 return ! (lt = localtime (&now)) || mktime (lt) == now;
20175 static int
20176 mktime_test (time_t now)
20178 return (mktime_test1 (now)
20179 && mktime_test1 ((time_t) (time_t_max - now))
20180 && mktime_test1 ((time_t) (time_t_min + now)));
20183 static int
20184 irix_6_4_bug ()
20186 /* Based on code from Ariel Faigon. */
20187 struct tm tm;
20188 tm.tm_year = 96;
20189 tm.tm_mon = 3;
20190 tm.tm_mday = 0;
20191 tm.tm_hour = 0;
20192 tm.tm_min = 0;
20193 tm.tm_sec = 0;
20194 tm.tm_isdst = -1;
20195 mktime (&tm);
20196 return tm.tm_mon == 2 && tm.tm_mday == 31;
20199 static int
20200 bigtime_test (int j)
20202 struct tm tm;
20203 time_t now;
20204 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20205 now = mktime (&tm);
20206 if (now != (time_t) -1)
20208 struct tm *lt = localtime (&now);
20209 if (! (lt
20210 && lt->tm_year == tm.tm_year
20211 && lt->tm_mon == tm.tm_mon
20212 && lt->tm_mday == tm.tm_mday
20213 && lt->tm_hour == tm.tm_hour
20214 && lt->tm_min == tm.tm_min
20215 && lt->tm_sec == tm.tm_sec
20216 && lt->tm_yday == tm.tm_yday
20217 && lt->tm_wday == tm.tm_wday
20218 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20219 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20220 return 0;
20222 return 1;
20225 static int
20226 year_2050_test ()
20228 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20229 ignoring leap seconds. */
20230 unsigned long int answer = 2527315200UL;
20232 struct tm tm;
20233 time_t t;
20234 tm.tm_year = 2050 - 1900;
20235 tm.tm_mon = 2 - 1;
20236 tm.tm_mday = 1;
20237 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20238 tm.tm_isdst = -1;
20240 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20241 instead of "TZ=America/Vancouver" in order to detect the bug even
20242 on systems that don't support the Olson extension, or don't have the
20243 full zoneinfo tables installed. */
20244 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20246 t = mktime (&tm);
20248 /* Check that the result is either a failure, or close enough
20249 to the correct answer that we can assume the discrepancy is
20250 due to leap seconds. */
20251 return (t == (time_t) -1
20252 || (0 < t && answer - 120 <= t && t <= answer + 120));
20256 main ()
20258 int result = 0;
20259 time_t t, delta;
20260 int i, j;
20261 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20262 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20264 /* This test makes some buggy mktime implementations loop.
20265 Give up after 60 seconds; a mktime slower than that
20266 isn't worth using anyway. */
20267 alarm (60);
20269 time_t_max = (! time_t_signed
20270 ? (time_t) -1
20271 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20272 * 2 + 1));
20273 time_t_min = (! time_t_signed
20274 ? (time_t) 0
20275 : time_t_signed_magnitude
20276 ? ~ (time_t) 0
20277 : ~ time_t_max);
20279 delta = time_t_max / 997; /* a suitable prime number */
20280 for (i = 0; i < N_STRINGS; i++)
20282 if (tz_strings[i])
20283 putenv (tz_strings[i]);
20285 for (t = 0; t <= time_t_max - delta; t += delta)
20286 if (! mktime_test (t))
20287 result |= 1;
20288 if (! (mktime_test ((time_t) 1)
20289 && mktime_test ((time_t) (60 * 60))
20290 && mktime_test ((time_t) (60 * 60 * 24))))
20291 result |= 2;
20293 for (j = 1; ; j <<= 1)
20294 if (! bigtime_test (j))
20295 result |= 4;
20296 else if (INT_MAX / 2 < j)
20297 break;
20298 if (! bigtime_test (INT_MAX))
20299 result |= 8;
20301 if (! irix_6_4_bug ())
20302 result |= 16;
20303 if (! spring_forward_gap ())
20304 result |= 32;
20305 if (! year_2050_test ())
20306 result |= 64;
20307 return result;
20309 _ACEOF
20310 if ac_fn_c_try_run "$LINENO"; then :
20311 gl_cv_func_working_mktime=yes
20312 else
20313 gl_cv_func_working_mktime=no
20315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20316 conftest.$ac_objext conftest.beam conftest.$ac_ext
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20322 $as_echo "$gl_cv_func_working_mktime" >&6; }
20324 if test $gl_cv_func_working_mktime = no; then
20325 REPLACE_MKTIME=1
20326 else
20327 REPLACE_MKTIME=0
20330 if test $REPLACE_MKTIME = 1; then
20339 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
20350 GNULIB_MKTIME=1
20359 <<<<<<< TREE
20360 =======
20361 LIB_PTHREAD_SIGMASK=
20364 if test $ac_cv_func_pthread_sigmask = yes; then
20366 else
20367 HAVE_PTHREAD_SIGMASK=0
20368 REPLACE_PTHREAD_SIGMASK=1
20374 if test $HAVE_PTHREAD_SIGMASK = 1; then
20377 if test -z "$LIB_PTHREAD_SIGMASK"; then
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20379 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20380 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20381 $as_echo_n "(cached) " >&6
20382 else
20384 if test "$cross_compiling" = yes; then :
20386 case "$host_os" in
20387 freebsd* | hpux* | solaris | solaris2.[2-9]*)
20388 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
20390 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
20391 esac
20393 else
20394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20395 /* end confdefs.h. */
20397 #include <pthread.h>
20398 #include <signal.h>
20399 #include <stddef.h>
20400 int main ()
20402 sigset_t set;
20403 sigemptyset (&set);
20404 return pthread_sigmask (1729, &set, NULL) != 0;
20406 _ACEOF
20407 if ac_fn_c_try_run "$LINENO"; then :
20408 gl_cv_func_pthread_sigmask_in_libc_works=no
20409 else
20410 gl_cv_func_pthread_sigmask_in_libc_works=yes
20412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20413 conftest.$ac_objext conftest.beam conftest.$ac_ext
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20419 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20420 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20421 *no)
20422 REPLACE_PTHREAD_SIGMASK=1
20424 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20427 esac
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20431 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20432 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20433 $as_echo_n "(cached) " >&6
20434 else
20436 gl_save_LIBS="$LIBS"
20437 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
20438 if test "$cross_compiling" = yes; then :
20439 case "$host_os" in
20440 cygwin*)
20441 gl_cv_func_pthread_sigmask_return_works="guessing no";;
20443 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
20444 esac
20446 else
20447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20448 /* end confdefs.h. */
20450 #include <pthread.h>
20451 #include <signal.h>
20452 #include <stddef.h>
20453 int main ()
20455 sigset_t set;
20456 sigemptyset (&set);
20457 if (pthread_sigmask (1729, &set, NULL) == -1)
20458 return 1;
20459 return 0;
20461 _ACEOF
20462 if ac_fn_c_try_run "$LINENO"; then :
20463 gl_cv_func_pthread_sigmask_return_works=yes
20464 else
20465 gl_cv_func_pthread_sigmask_return_works=no
20467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20468 conftest.$ac_objext conftest.beam conftest.$ac_ext
20471 LIBS="$gl_save_LIBS"
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
20475 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
20476 case "$gl_cv_func_pthread_sigmask_return_works" in
20477 *no)
20478 REPLACE_PTHREAD_SIGMASK=1
20480 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
20483 esac
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
20486 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
20487 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
20488 $as_echo_n "(cached) " >&6
20489 else
20491 case "$host_os" in
20492 irix*)
20493 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
20495 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
20496 esac
20497 gl_save_LIBS="$LIBS"
20498 LIBS="$LIBS $LIBMULTITHREAD"
20499 if test "$cross_compiling" = yes; then :
20501 else
20502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20503 /* end confdefs.h. */
20505 #include <pthread.h>
20506 #include <signal.h>
20507 #include <stdio.h>
20508 #include <stdlib.h>
20509 #include <unistd.h>
20510 static volatile int sigint_occurred;
20511 static void
20512 sigint_handler (int sig)
20514 sigint_occurred++;
20516 int main ()
20518 sigset_t set;
20519 int pid = getpid ();
20520 char command[80];
20521 signal (SIGINT, sigint_handler);
20522 sigemptyset (&set);
20523 sigaddset (&set, SIGINT);
20524 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
20525 return 1;
20526 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
20527 if (!(system (command) == 0))
20528 return 2;
20529 sleep (2);
20530 if (!(sigint_occurred == 0))
20531 return 3;
20532 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
20533 return 4;
20534 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
20535 return 5;
20536 return 0;
20538 _ACEOF
20539 if ac_fn_c_try_run "$LINENO"; then :
20541 else
20542 gl_cv_func_pthread_sigmask_unblock_works=no
20544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20545 conftest.$ac_objext conftest.beam conftest.$ac_ext
20548 LIBS="$gl_save_LIBS"
20551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
20552 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
20553 case "$gl_cv_func_pthread_sigmask_unblock_works" in
20554 *no)
20555 REPLACE_PTHREAD_SIGMASK=1
20557 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
20560 esac
20563 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
20572 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
20575 if test $HAVE_PTHREAD_SIGMASK = 1; then
20577 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
20587 GNULIB_PTHREAD_SIGMASK=1
20595 >>>>>>> MERGE-SOURCE
20597 if test $ac_cv_func_readlink = no; then
20598 HAVE_READLINK=0
20599 else
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
20601 $as_echo_n "checking whether readlink signature is correct... " >&6; }
20602 if test "${gl_cv_decl_readlink_works+set}" = set; then :
20603 $as_echo_n "(cached) " >&6
20604 else
20605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20606 /* end confdefs.h. */
20607 #include <unistd.h>
20608 /* Cause compilation failure if original declaration has wrong type. */
20609 ssize_t readlink (const char *, char *, size_t);
20611 main ()
20615 return 0;
20617 _ACEOF
20618 if ac_fn_c_try_compile "$LINENO"; then :
20619 gl_cv_decl_readlink_works=yes
20620 else
20621 gl_cv_decl_readlink_works=no
20623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
20626 $as_echo "$gl_cv_decl_readlink_works" >&6; }
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
20628 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
20629 if test "${gl_cv_func_readlink_works+set}" = set; then :
20630 $as_echo_n "(cached) " >&6
20631 else
20632 # We have readlink, so assume ln -s works.
20633 ln -s conftest.no-such conftest.link
20634 ln -s conftest.link conftest.lnk2
20635 if test "$cross_compiling" = yes; then :
20636 gl_cv_func_readlink_works="guessing no"
20637 else
20638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20639 /* end confdefs.h. */
20640 #include <unistd.h>
20643 main ()
20645 char buf[20];
20646 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
20648 return 0;
20650 _ACEOF
20651 if ac_fn_c_try_run "$LINENO"; then :
20652 gl_cv_func_readlink_works=yes
20653 else
20654 gl_cv_func_readlink_works=no
20656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20657 conftest.$ac_objext conftest.beam conftest.$ac_ext
20660 rm -f conftest.link conftest.lnk2
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
20663 $as_echo "$gl_cv_func_readlink_works" >&6; }
20664 if test "$gl_cv_func_readlink_works" != yes; then
20666 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
20668 REPLACE_READLINK=1
20669 elif test "$gl_cv_decl_readlink_works" != yes; then
20670 REPLACE_READLINK=1
20674 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
20683 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
20694 GNULIB_READLINK=1
20700 <<<<<<< TREE
20701 =======
20713 if test $gl_cv_have_include_next = yes; then
20714 gl_cv_next_signal_h='<'signal.h'>'
20715 else
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
20717 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
20718 if test "${gl_cv_next_signal_h+set}" = set; then :
20719 $as_echo_n "(cached) " >&6
20720 else
20722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20723 /* end confdefs.h. */
20724 #include <signal.h>
20726 _ACEOF
20727 case "$host_os" in
20728 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20729 *) gl_absname_cpp="$ac_cpp" ;;
20730 esac
20731 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20732 sed -n '\#/signal.h#{
20733 s#.*"\(.*/signal.h\)".*#\1#
20734 s#^/[^/]#//&#
20737 }'`'"'
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
20742 $as_echo "$gl_cv_next_signal_h" >&6; }
20744 NEXT_SIGNAL_H=$gl_cv_next_signal_h
20746 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20747 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20748 gl_next_as_first_directive='<'signal.h'>'
20749 else
20750 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20751 gl_next_as_first_directive=$gl_cv_next_signal_h
20753 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
20759 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20760 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20761 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20762 #include <signal.h>
20765 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
20767 else
20768 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
20775 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20776 #include <signal.h>
20779 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
20781 else
20782 HAVE_SIGHANDLER_T=0
20788 >>>>>>> MERGE-SOURCE
20789 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20790 /* <sys/types.h> is not needed according to POSIX, but the
20791 <sys/socket.h> in i386-unknown-freebsd4.10 and
20792 powerpc-apple-darwin5.5 required it. */
20793 #include <sys/types.h>
20794 #if HAVE_SYS_SOCKET_H
20795 # include <sys/socket.h>
20796 #elif HAVE_WS2TCPIP_H
20797 # include <ws2tcpip.h>
20798 #endif
20801 if test "x$ac_cv_type_socklen_t" = x""yes; then :
20803 else
20804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20805 $as_echo_n "checking for socklen_t equivalent... " >&6; }
20806 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
20807 $as_echo_n "(cached) " >&6
20808 else
20809 # Systems have either "struct sockaddr *" or
20810 # "void *" as the second argument to getpeername
20811 gl_cv_socklen_t_equiv=
20812 for arg2 in "struct sockaddr" void; do
20813 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
20814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20815 /* end confdefs.h. */
20816 #include <sys/types.h>
20817 #include <sys/socket.h>
20819 int getpeername (int, $arg2 *, $t *);
20821 main ()
20823 $t len;
20824 getpeername (0, 0, &len);
20826 return 0;
20828 _ACEOF
20829 if ac_fn_c_try_compile "$LINENO"; then :
20830 gl_cv_socklen_t_equiv="$t"
20832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20833 test "$gl_cv_socklen_t_equiv" != "" && break
20834 done
20835 test "$gl_cv_socklen_t_equiv" != "" && break
20836 done
20840 if test "$gl_cv_socklen_t_equiv" = ""; then
20841 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20844 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20846 cat >>confdefs.h <<_ACEOF
20847 #define socklen_t $gl_cv_socklen_t_equiv
20848 _ACEOF
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20854 $as_echo_n "checking for ssize_t... " >&6; }
20855 if test "${gt_cv_ssize_t+set}" = set; then :
20856 $as_echo_n "(cached) " >&6
20857 else
20858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20859 /* end confdefs.h. */
20860 #include <sys/types.h>
20862 main ()
20864 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20865 return !x;
20867 return 0;
20869 _ACEOF
20870 if ac_fn_c_try_compile "$LINENO"; then :
20871 gt_cv_ssize_t=yes
20872 else
20873 gt_cv_ssize_t=no
20875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20878 $as_echo "$gt_cv_ssize_t" >&6; }
20879 if test $gt_cv_ssize_t = no; then
20881 $as_echo "#define ssize_t int" >>confdefs.h
20886 STDARG_H=''
20887 NEXT_STDARG_H='<stdarg.h>'
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20889 $as_echo_n "checking for va_copy... " >&6; }
20890 if test "${gl_cv_func_va_copy+set}" = set; then :
20891 $as_echo_n "(cached) " >&6
20892 else
20894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20895 /* end confdefs.h. */
20896 #include <stdarg.h>
20898 main ()
20901 #ifndef va_copy
20902 void (*func) (va_list, va_list) = va_copy;
20903 #endif
20906 return 0;
20908 _ACEOF
20909 if ac_fn_c_try_compile "$LINENO"; then :
20910 gl_cv_func_va_copy=yes
20911 else
20912 gl_cv_func_va_copy=no
20914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
20918 $as_echo "$gl_cv_func_va_copy" >&6; }
20919 if test $gl_cv_func_va_copy = no; then
20920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20921 /* end confdefs.h. */
20922 #if defined _AIX && !defined __GNUC__
20923 AIX vaccine
20924 #endif
20926 _ACEOF
20927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20928 $EGREP "vaccine" >/dev/null 2>&1; then :
20929 gl_aixcc=yes
20930 else
20931 gl_aixcc=no
20933 rm -f conftest*
20935 if test $gl_aixcc = yes; then
20936 STDARG_H=stdarg.h
20945 if test $gl_cv_have_include_next = yes; then
20946 gl_cv_next_stdarg_h='<'stdarg.h'>'
20947 else
20948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20949 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20950 if test "${gl_cv_next_stdarg_h+set}" = set; then :
20951 $as_echo_n "(cached) " >&6
20952 else
20954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20955 /* end confdefs.h. */
20956 #include <stdarg.h>
20958 _ACEOF
20959 case "$host_os" in
20960 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20961 *) gl_absname_cpp="$ac_cpp" ;;
20962 esac
20963 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20964 sed -n '\#/stdarg.h#{
20965 s#.*"\(.*/stdarg.h\)".*#\1#
20966 s#^/[^/]#//&#
20969 }'`'"'
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20974 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20976 NEXT_STDARG_H=$gl_cv_next_stdarg_h
20978 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20979 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20980 gl_next_as_first_directive='<'stdarg.h'>'
20981 else
20982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20983 gl_next_as_first_directive=$gl_cv_next_stdarg_h
20985 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
20990 if test "$gl_cv_next_stdarg_h" = '""'; then
20991 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
20992 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
20994 else
20996 saved_as_echo_n="$as_echo_n"
20997 as_echo_n=':'
20998 if test "${gl_cv_func___va_copy+set}" = set; then :
20999 $as_echo_n "(cached) " >&6
21000 else
21002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21003 /* end confdefs.h. */
21004 #include <stdarg.h>
21006 main ()
21009 #ifndef __va_copy
21010 error, bail out
21011 #endif
21014 return 0;
21016 _ACEOF
21017 if ac_fn_c_try_compile "$LINENO"; then :
21018 gl_cv_func___va_copy=yes
21019 else
21020 gl_cv_func___va_copy=no
21022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21025 as_echo_n="$saved_as_echo_n"
21027 if test $gl_cv_func___va_copy = yes; then
21029 $as_echo "#define va_copy __va_copy" >>confdefs.h
21031 else
21034 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
21040 if test -n "$STDARG_H"; then
21041 GL_GENERATE_STDARG_H_TRUE=
21042 GL_GENERATE_STDARG_H_FALSE='#'
21043 else
21044 GL_GENERATE_STDARG_H_TRUE='#'
21045 GL_GENERATE_STDARG_H_FALSE=
21053 # Define two additional variables used in the Makefile substitution.
21055 if test "$ac_cv_header_stdbool_h" = yes; then
21056 STDBOOL_H=''
21057 else
21058 STDBOOL_H='stdbool.h'
21061 if test -n "$STDBOOL_H"; then
21062 GL_GENERATE_STDBOOL_H_TRUE=
21063 GL_GENERATE_STDBOOL_H_FALSE='#'
21064 else
21065 GL_GENERATE_STDBOOL_H_TRUE='#'
21066 GL_GENERATE_STDBOOL_H_FALSE=
21070 if test "$ac_cv_type__Bool" = yes; then
21071 HAVE__BOOL=1
21072 else
21073 HAVE__BOOL=0
21080 STDDEF_H=
21081 if test $gt_cv_c_wchar_t = no; then
21082 HAVE_WCHAR_T=0
21083 STDDEF_H=stddef.h
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21086 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21087 if test "${gl_cv_decl_null_works+set}" = set; then :
21088 $as_echo_n "(cached) " >&6
21089 else
21090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21091 /* end confdefs.h. */
21092 #include <stddef.h>
21093 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21096 main ()
21100 return 0;
21102 _ACEOF
21103 if ac_fn_c_try_compile "$LINENO"; then :
21104 gl_cv_decl_null_works=yes
21105 else
21106 gl_cv_decl_null_works=no
21108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21111 $as_echo "$gl_cv_decl_null_works" >&6; }
21112 if test $gl_cv_decl_null_works = no; then
21113 REPLACE_NULL=1
21114 STDDEF_H=stddef.h
21117 if test -n "$STDDEF_H"; then
21118 GL_GENERATE_STDDEF_H_TRUE=
21119 GL_GENERATE_STDDEF_H_FALSE='#'
21120 else
21121 GL_GENERATE_STDDEF_H_TRUE='#'
21122 GL_GENERATE_STDDEF_H_FALSE=
21125 if test -n "$STDDEF_H"; then
21134 if test $gl_cv_have_include_next = yes; then
21135 gl_cv_next_stddef_h='<'stddef.h'>'
21136 else
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21138 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21139 if test "${gl_cv_next_stddef_h+set}" = set; then :
21140 $as_echo_n "(cached) " >&6
21141 else
21143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21144 /* end confdefs.h. */
21145 #include <stddef.h>
21147 _ACEOF
21148 case "$host_os" in
21149 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21150 *) gl_absname_cpp="$ac_cpp" ;;
21151 esac
21152 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21153 sed -n '\#/stddef.h#{
21154 s#.*"\(.*/stddef.h\)".*#\1#
21155 s#^/[^/]#//&#
21158 }'`'"'
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21163 $as_echo "$gl_cv_next_stddef_h" >&6; }
21165 NEXT_STDDEF_H=$gl_cv_next_stddef_h
21167 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21168 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21169 gl_next_as_first_directive='<'stddef.h'>'
21170 else
21171 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21172 gl_next_as_first_directive=$gl_cv_next_stddef_h
21174 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21193 if test $gl_cv_have_include_next = yes; then
21194 gl_cv_next_stdio_h='<'stdio.h'>'
21195 else
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21197 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21198 if test "${gl_cv_next_stdio_h+set}" = set; then :
21199 $as_echo_n "(cached) " >&6
21200 else
21202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21203 /* end confdefs.h. */
21204 #include <stdio.h>
21206 _ACEOF
21207 case "$host_os" in
21208 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21209 *) gl_absname_cpp="$ac_cpp" ;;
21210 esac
21211 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21212 sed -n '\#/stdio.h#{
21213 s#.*"\(.*/stdio.h\)".*#\1#
21214 s#^/[^/]#//&#
21217 }'`'"'
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21222 $as_echo "$gl_cv_next_stdio_h" >&6; }
21224 NEXT_STDIO_H=$gl_cv_next_stdio_h
21226 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21227 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21228 gl_next_as_first_directive='<'stdio.h'>'
21229 else
21230 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21231 gl_next_as_first_directive=$gl_cv_next_stdio_h
21233 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
21239 GNULIB_FSCANF=1
21240 GNULIB_SCANF=1
21241 GNULIB_FGETC=1
21242 GNULIB_GETC=1
21243 GNULIB_GETCHAR=1
21244 GNULIB_FGETS=1
21245 GNULIB_GETS=1
21246 GNULIB_FREAD=1
21249 GNULIB_FPRINTF=1
21250 GNULIB_PRINTF=1
21251 GNULIB_VFPRINTF=1
21252 GNULIB_VPRINTF=1
21253 GNULIB_FPUTC=1
21254 GNULIB_PUTC=1
21255 GNULIB_PUTCHAR=1
21256 GNULIB_FPUTS=1
21257 GNULIB_PUTS=1
21258 GNULIB_FWRITE=1
21274 if test $gl_cv_have_include_next = yes; then
21275 gl_cv_next_stdlib_h='<'stdlib.h'>'
21276 else
21277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21278 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21279 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21280 $as_echo_n "(cached) " >&6
21281 else
21283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21284 /* end confdefs.h. */
21285 #include <stdlib.h>
21287 _ACEOF
21288 case "$host_os" in
21289 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21290 *) gl_absname_cpp="$ac_cpp" ;;
21291 esac
21292 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21293 sed -n '\#/stdlib.h#{
21294 s#.*"\(.*/stdlib.h\)".*#\1#
21295 s#^/[^/]#//&#
21298 }'`'"'
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21303 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21305 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
21307 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21308 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21309 gl_next_as_first_directive='<'stdlib.h'>'
21310 else
21311 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21312 gl_next_as_first_directive=$gl_cv_next_stdlib_h
21314 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
21324 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21332 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21340 <<<<<<< TREE
21341 =======
21343 if test "$ac_cv_have_decl_strtoimax" != yes; then
21344 HAVE_DECL_STRTOIMAX=0
21347 if test $ac_cv_func_strtoimax = no; then
21356 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
21359 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21360 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
21361 ac_have_decl=1
21362 else
21363 ac_have_decl=0
21366 cat >>confdefs.h <<_ACEOF
21367 #define HAVE_DECL_STRTOLL $ac_have_decl
21368 _ACEOF
21378 GNULIB_STRTOIMAX=1
21388 >>>>>>> MERGE-SOURCE
21389 if test "$ac_cv_have_decl_strtoumax" != yes; then
21390 HAVE_DECL_STRTOUMAX=0
21393 if test $ac_cv_func_strtoumax = no; then
21402 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
21405 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21406 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
21407 ac_have_decl=1
21408 else
21409 ac_have_decl=0
21412 cat >>confdefs.h <<_ACEOF
21413 #define HAVE_DECL_STRTOULL $ac_have_decl
21414 _ACEOF
21424 GNULIB_STRTOUMAX=1
21432 if test $ac_cv_func_symlink = no; then
21433 HAVE_SYMLINK=0
21434 else
21435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
21436 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
21437 if test "${gl_cv_func_symlink_works+set}" = set; then :
21438 $as_echo_n "(cached) " >&6
21439 else
21440 if test "$cross_compiling" = yes; then :
21441 gl_cv_func_symlink_works="guessing no"
21442 else
21443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21444 /* end confdefs.h. */
21445 #include <unistd.h>
21448 main ()
21450 int result = 0;
21451 if (!symlink ("a", "conftest.link/"))
21452 result |= 1;
21453 if (symlink ("conftest.f", "conftest.lnk2"))
21454 result |= 2;
21455 else if (!symlink ("a", "conftest.lnk2/"))
21456 result |= 4;
21457 return result;
21460 return 0;
21462 _ACEOF
21463 if ac_fn_c_try_run "$LINENO"; then :
21464 gl_cv_func_symlink_works=yes
21465 else
21466 gl_cv_func_symlink_works=no
21468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21469 conftest.$ac_objext conftest.beam conftest.$ac_ext
21472 rm -f conftest.f conftest.link conftest.lnk2
21474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
21475 $as_echo "$gl_cv_func_symlink_works" >&6; }
21476 if test "$gl_cv_func_symlink_works" != yes; then
21477 REPLACE_SYMLINK=1
21481 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
21490 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
21498 GNULIB_SYMLINK=1
21520 if test $gl_cv_have_include_next = yes; then
21521 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21522 else
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21524 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
21525 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
21526 $as_echo_n "(cached) " >&6
21527 else
21529 if test $ac_cv_header_sys_stat_h = yes; then
21532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21533 /* end confdefs.h. */
21534 #include <sys/stat.h>
21536 _ACEOF
21537 case "$host_os" in
21538 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21539 *) gl_absname_cpp="$ac_cpp" ;;
21540 esac
21541 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21542 sed -n '\#/sys/stat.h#{
21543 s#.*"\(.*/sys/stat.h\)".*#\1#
21544 s#^/[^/]#//&#
21547 }'`'"'
21548 else
21549 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21555 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
21557 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
21559 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21560 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21561 gl_next_as_first_directive='<'sys/stat.h'>'
21562 else
21563 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21564 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
21566 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
21572 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21573 #include <sys/stat.h>
21575 if test "x$ac_cv_type_nlink_t" = x""yes; then :
21577 else
21579 $as_echo "#define nlink_t int" >>confdefs.h
21597 if test $ac_cv_have_decl_localtime_r = no; then
21598 HAVE_DECL_LOCALTIME_R=0
21602 if test $ac_cv_func_localtime_r = yes; then
21603 HAVE_LOCALTIME_R=1
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
21605 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
21606 if test "${gl_cv_time_r_posix+set}" = set; then :
21607 $as_echo_n "(cached) " >&6
21608 else
21609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21610 /* end confdefs.h. */
21611 #include <time.h>
21613 main ()
21615 /* We don't need to append 'restrict's to the argument types,
21616 even though the POSIX signature has the 'restrict's,
21617 since C99 says they can't affect type compatibility. */
21618 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
21619 if (ptr) return 0;
21620 /* Check the return type is a pointer.
21621 On HP-UX 10 it is 'int'. */
21622 *localtime_r (0, 0);
21624 return 0;
21627 _ACEOF
21628 if ac_fn_c_try_compile "$LINENO"; then :
21629 gl_cv_time_r_posix=yes
21630 else
21631 gl_cv_time_r_posix=no
21633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
21637 $as_echo "$gl_cv_time_r_posix" >&6; }
21638 if test $gl_cv_time_r_posix = yes; then
21639 REPLACE_LOCALTIME_R=0
21640 else
21641 REPLACE_LOCALTIME_R=1
21643 else
21644 HAVE_LOCALTIME_R=0
21647 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
21656 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
21667 GNULIB_TIME_R=1
21687 if test $gl_cv_have_include_next = yes; then
21688 gl_cv_next_unistd_h='<'unistd.h'>'
21689 else
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21691 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21692 if test "${gl_cv_next_unistd_h+set}" = set; then :
21693 $as_echo_n "(cached) " >&6
21694 else
21696 if test $ac_cv_header_unistd_h = yes; then
21699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21700 /* end confdefs.h. */
21701 #include <unistd.h>
21703 _ACEOF
21704 case "$host_os" in
21705 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21706 *) gl_absname_cpp="$ac_cpp" ;;
21707 esac
21708 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21709 sed -n '\#/unistd.h#{
21710 s#.*"\(.*/unistd.h\)".*#\1#
21711 s#^/[^/]#//&#
21714 }'`'"'
21715 else
21716 gl_cv_next_unistd_h='<'unistd.h'>'
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21722 $as_echo "$gl_cv_next_unistd_h" >&6; }
21724 NEXT_UNISTD_H=$gl_cv_next_unistd_h
21726 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21727 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21728 gl_next_as_first_directive='<'unistd.h'>'
21729 else
21730 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21731 gl_next_as_first_directive=$gl_cv_next_unistd_h
21733 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
21738 if test $ac_cv_header_unistd_h = yes; then
21739 HAVE_UNISTD_H=1
21740 else
21741 HAVE_UNISTD_H=0
21747 gl_gnulib_enabled_dosname=false
21748 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
21749 gl_gnulib_enabled_stat=false
21750 gl_gnulib_enabled_strtoull=false
21751 gl_gnulib_enabled_verify=false
21752 func_gl_gnulib_m4code_dosname ()
21754 if ! $gl_gnulib_enabled_dosname; then
21755 gl_gnulib_enabled_dosname=true
21758 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
21760 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21763 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
21766 <<<<<<< TREE
21767 =======
21768 func_gl_gnulib_m4code_sigprocmask ()
21770 if ! $gl_gnulib_enabled_sigprocmask; then
21774 if test $gl_cv_type_sigset_t = yes; then
21775 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21776 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
21777 gl_cv_func_sigprocmask=1
21781 if test -z "$gl_cv_func_sigprocmask"; then
21782 HAVE_POSIX_SIGNALBLOCKING=0
21785 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21794 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21803 GNULIB_SIGPROCMASK=1
21809 gl_gnulib_enabled_sigprocmask=true
21812 >>>>>>> MERGE-SOURCE
21813 func_gl_gnulib_m4code_stat ()
21815 if ! $gl_gnulib_enabled_stat; then
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21820 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21821 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21822 $as_echo_n "(cached) " >&6
21823 else
21824 if test "$cross_compiling" = yes; then :
21825 case $host_os in
21826 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
21827 *) gl_cv_func_stat_dir_slash="guessing yes";;
21828 esac
21829 else
21830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21831 /* end confdefs.h. */
21832 #include <sys/stat.h>
21835 main ()
21837 struct stat st; return stat (".", &st) != stat ("./", &st);
21839 return 0;
21841 _ACEOF
21842 if ac_fn_c_try_run "$LINENO"; then :
21843 gl_cv_func_stat_dir_slash=yes
21844 else
21845 gl_cv_func_stat_dir_slash=no
21847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21848 conftest.$ac_objext conftest.beam conftest.$ac_ext
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21853 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21855 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21856 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21857 $as_echo_n "(cached) " >&6
21858 else
21859 touch conftest.tmp
21860 # Assume that if we have lstat, we can also check symlinks.
21861 if test $ac_cv_func_lstat = yes; then
21862 ln -s conftest.tmp conftest.lnk
21864 if test "$cross_compiling" = yes; then :
21865 gl_cv_func_stat_file_slash="guessing no"
21866 else
21867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21868 /* end confdefs.h. */
21869 #include <sys/stat.h>
21872 main ()
21874 int result = 0;
21875 struct stat st;
21876 if (!stat ("conftest.tmp/", &st))
21877 result |= 1;
21878 #if HAVE_LSTAT
21879 if (!stat ("conftest.lnk/", &st))
21880 result |= 2;
21881 #endif
21882 return result;
21885 return 0;
21887 _ACEOF
21888 if ac_fn_c_try_run "$LINENO"; then :
21889 gl_cv_func_stat_file_slash=yes
21890 else
21891 gl_cv_func_stat_file_slash=no
21893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21894 conftest.$ac_objext conftest.beam conftest.$ac_ext
21897 rm -f conftest.tmp conftest.lnk
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21900 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21901 case $gl_cv_func_stat_dir_slash in
21902 *no) REPLACE_STAT=1
21904 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21906 esac
21907 case $gl_cv_func_stat_file_slash in
21908 *no) REPLACE_STAT=1
21910 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21912 esac
21914 if test $REPLACE_STAT = 1; then
21923 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
21935 GNULIB_STAT=1
21941 gl_gnulib_enabled_stat=true
21942 if $condition; then
21943 func_gl_gnulib_m4code_dosname
21945 if $condition; then
21946 func_gl_gnulib_m4code_verify
21950 <<<<<<< TREE
21951 =======
21952 func_gl_gnulib_m4code_strtoll ()
21954 if ! $gl_gnulib_enabled_strtoll; then
21958 if test "$ac_cv_type_long_long_int" = yes; then
21959 for ac_func in strtoll
21960 do :
21961 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
21962 if test "x$ac_cv_func_strtoll" = x""yes; then :
21963 cat >>confdefs.h <<_ACEOF
21964 #define HAVE_STRTOLL 1
21965 _ACEOF
21968 done
21970 if test $ac_cv_func_strtoll = no; then
21971 HAVE_STRTOLL=0
21975 if test $HAVE_STRTOLL = 0; then
21984 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
21995 GNULIB_STRTOLL=1
22001 gl_gnulib_enabled_strtoll=true
22004 >>>>>>> MERGE-SOURCE
22005 func_gl_gnulib_m4code_strtoull ()
22007 if ! $gl_gnulib_enabled_strtoull; then
22011 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
22012 for ac_func in strtoull
22013 do :
22014 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
22015 if test "x$ac_cv_func_strtoull" = x""yes; then :
22016 cat >>confdefs.h <<_ACEOF
22017 #define HAVE_STRTOULL 1
22018 _ACEOF
22021 done
22023 if test $ac_cv_func_strtoull = no; then
22024 HAVE_STRTOULL=0
22028 if test $HAVE_STRTOULL = 0; then
22037 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
22048 GNULIB_STRTOULL=1
22054 gl_gnulib_enabled_strtoull=true
22057 func_gl_gnulib_m4code_verify ()
22059 if ! $gl_gnulib_enabled_verify; then
22060 gl_gnulib_enabled_verify=true
22063 if test $REPLACE_GETOPT = 1; then
22064 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22066 if test $REPLACE_LSTAT = 1; then
22067 func_gl_gnulib_m4code_dosname
22069 if test $REPLACE_LSTAT = 1; then
22070 func_gl_gnulib_m4code_stat
22072 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22073 func_gl_gnulib_m4code_stat
22075 <<<<<<< TREE
22076 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
22077 =======
22078 if test $ac_cv_func_strtoimax = no; then
22079 func_gl_gnulib_m4code_verify
22081 if test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
22082 func_gl_gnulib_m4code_strtoll
22084 if test $ac_cv_func_strtoumax = no; then
22085 >>>>>>> MERGE-SOURCE
22086 func_gl_gnulib_m4code_verify
22088 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
22089 func_gl_gnulib_m4code_strtoull
22092 if $gl_gnulib_enabled_dosname; then
22093 gl_GNULIB_ENABLED_dosname_TRUE=
22094 gl_GNULIB_ENABLED_dosname_FALSE='#'
22095 else
22096 gl_GNULIB_ENABLED_dosname_TRUE='#'
22097 gl_GNULIB_ENABLED_dosname_FALSE=
22100 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22101 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
22102 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
22103 else
22104 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
22105 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
22108 if $gl_gnulib_enabled_stat; then
22109 gl_GNULIB_ENABLED_stat_TRUE=
22110 gl_GNULIB_ENABLED_stat_FALSE='#'
22111 else
22112 gl_GNULIB_ENABLED_stat_TRUE='#'
22113 gl_GNULIB_ENABLED_stat_FALSE=
22116 if $gl_gnulib_enabled_strtoull; then
22117 gl_GNULIB_ENABLED_strtoull_TRUE=
22118 gl_GNULIB_ENABLED_strtoull_FALSE='#'
22119 else
22120 gl_GNULIB_ENABLED_strtoull_TRUE='#'
22121 gl_GNULIB_ENABLED_strtoull_FALSE=
22124 if $gl_gnulib_enabled_verify; then
22125 gl_GNULIB_ENABLED_verify_TRUE=
22126 gl_GNULIB_ENABLED_verify_FALSE='#'
22127 else
22128 gl_GNULIB_ENABLED_verify_TRUE='#'
22129 gl_GNULIB_ENABLED_verify_FALSE=
22132 # End of code from modules
22142 gltests_libdeps=
22143 gltests_ltlibdeps=
22153 gl_source_base='tests'
22154 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
22156 gl_module_indicator_condition=$gltests_WITNESS
22167 LIBGNU_LIBDEPS="$gl_libdeps"
22169 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
22173 # UNIX98 PTYs.
22174 for ac_func in grantpt
22175 do :
22176 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
22177 if test "x$ac_cv_func_grantpt" = x""yes; then :
22178 cat >>confdefs.h <<_ACEOF
22179 #define HAVE_GRANTPT 1
22180 _ACEOF
22183 done
22186 # PTY-related GNU extensions.
22187 for ac_func in getpt
22188 do :
22189 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
22190 if test "x$ac_cv_func_getpt" = x""yes; then :
22191 cat >>confdefs.h <<_ACEOF
22192 #define HAVE_GETPT 1
22193 _ACEOF
22196 done
22199 # Check this now, so that we will NOT find the above functions in ncurses.
22200 # That is because we have not set up to link ncurses in lib-src.
22201 # It's better to believe a function is not available
22202 # than to expect to find it in ncurses.
22203 # Also we need tputs and friends to be able to build at all.
22204 have_tputs_et_al=true
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
22206 $as_echo_n "checking for library containing tputs... " >&6; }
22207 if test "${ac_cv_search_tputs+set}" = set; then :
22208 $as_echo_n "(cached) " >&6
22209 else
22210 ac_func_search_save_LIBS=$LIBS
22211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22212 /* end confdefs.h. */
22214 /* Override any GCC internal prototype to avoid an error.
22215 Use char because int might match the return type of a GCC
22216 builtin and then its argument prototype would still apply. */
22217 #ifdef __cplusplus
22218 extern "C"
22219 #endif
22220 char tputs ();
22222 main ()
22224 return tputs ();
22226 return 0;
22228 _ACEOF
22229 for ac_lib in '' ncurses terminfo termcap; do
22230 if test -z "$ac_lib"; then
22231 ac_res="none required"
22232 else
22233 ac_res=-l$ac_lib
22234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22236 if ac_fn_c_try_link "$LINENO"; then :
22237 ac_cv_search_tputs=$ac_res
22239 rm -f core conftest.err conftest.$ac_objext \
22240 conftest$ac_exeext
22241 if test "${ac_cv_search_tputs+set}" = set; then :
22242 break
22244 done
22245 if test "${ac_cv_search_tputs+set}" = set; then :
22247 else
22248 ac_cv_search_tputs=no
22250 rm conftest.$ac_ext
22251 LIBS=$ac_func_search_save_LIBS
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
22254 $as_echo "$ac_cv_search_tputs" >&6; }
22255 ac_res=$ac_cv_search_tputs
22256 if test "$ac_res" != no; then :
22257 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22259 else
22260 have_tputs_et_al=false
22263 if test "$have_tputs_et_al" != true; then
22264 as_fn_error "I couldn't find termcap functions (tputs and friends).
22265 Maybe some development libraries/packages are missing? Try installing
22266 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
22268 # Must define this when any termcap library is found.
22270 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
22272 ## FIXME This was the cpp logic, but I am not sure it is right.
22273 ## The above test has not necessarily found libncurses.
22274 HAVE_LIBNCURSES=yes
22276 ## Use terminfo instead of termcap?
22277 ## Note only system files NOT using terminfo are:
22278 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
22279 ## darwin|gnu without ncurses.
22280 TERMINFO=no
22281 LIBS_TERMCAP=
22282 case "$opsys" in
22283 ## cygwin: Fewer environment variables to go wrong, more terminal types.
22284 ## hpux10-20: Use the system provided termcap(3) library.
22285 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
22286 ## is necessary. Otherwise Emacs dumps core when run -nw.
22287 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
22289 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
22290 ## The ncurses library has been moved out of the System framework in
22291 ## Mac OS X 10.2. So if configure detects it, set the command-line
22292 ## option to use it.
22293 darwin|gnu*)
22294 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
22295 if test "x$HAVE_LIBNCURSES" = "xyes"; then
22296 TERMINFO=yes
22297 LIBS_TERMCAP="-lncurses"
22301 freebsd)
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
22303 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
22304 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
22305 $as_echo_n "(cached) " >&6
22306 else
22307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22308 /* end confdefs.h. */
22309 #include <osreldate.h>
22311 main ()
22313 #if __FreeBSD_version < 400000
22314 fail;
22315 #endif
22318 return 0;
22320 _ACEOF
22321 if ac_fn_c_try_link "$LINENO"; then :
22322 emacs_cv_freebsd_terminfo=yes
22323 else
22324 emacs_cv_freebsd_terminfo=no
22326 rm -f core conftest.err conftest.$ac_objext \
22327 conftest$ac_exeext conftest.$ac_ext
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
22332 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
22334 if test $emacs_cv_freebsd_terminfo = yes; then
22335 TERMINFO=yes
22336 LIBS_TERMCAP="-lncurses"
22337 else
22338 LIBS_TERMCAP="-ltermcap"
22342 netbsd)
22343 if test $ac_cv_search_tputs = -lterminfo; then
22344 TERMINFO=yes
22345 LIBS_TERMCAP="-lterminfo"
22346 else
22347 LIBS_TERMCAP="-ltermcap"
22351 esac
22353 case "$opsys" in
22354 ## hpux: Make sure we get select from libc rather than from libcurses
22355 ## because libcurses on HPUX 10.10 has a broken version of select.
22356 ## We used to use -lc -lcurses, but this may be cleaner.
22357 hpux*) LIBS_TERMCAP="-ltermcap" ;;
22359 openbsd) LIBS_TERMCAP="-lncurses" ;;
22361 ## Must use system termcap, if we use any termcap. It does special things.
22362 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
22363 esac
22365 TERMCAP_OBJ=tparam.o
22366 if test $TERMINFO = yes; then
22368 $as_echo "#define TERMINFO 1" >>confdefs.h
22371 ## Default used to be -ltermcap. Add a case above if need something else.
22372 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
22374 TERMCAP_OBJ=terminfo.o
22380 # Do we have res_init, for detecting changes in /etc/resolv.conf?
22381 resolv=no
22382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22383 /* end confdefs.h. */
22384 #include <netinet/in.h>
22385 #include <arpa/nameser.h>
22386 #include <resolv.h>
22388 main ()
22390 return res_init();
22392 return 0;
22394 _ACEOF
22395 if ac_fn_c_try_link "$LINENO"; then :
22396 have_res_init=yes
22397 else
22398 have_res_init=no
22400 rm -f core conftest.err conftest.$ac_objext \
22401 conftest$ac_exeext conftest.$ac_ext
22402 if test "$have_res_init" = no; then
22403 OLIBS="$LIBS"
22404 LIBS="$LIBS -lresolv"
22405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
22406 $as_echo_n "checking for res_init with -lresolv... " >&6; }
22407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22408 /* end confdefs.h. */
22409 #include <netinet/in.h>
22410 #include <arpa/nameser.h>
22411 #include <resolv.h>
22413 main ()
22415 return res_init();
22417 return 0;
22419 _ACEOF
22420 if ac_fn_c_try_link "$LINENO"; then :
22421 have_res_init=yes
22422 else
22423 have_res_init=no
22425 rm -f core conftest.err conftest.$ac_objext \
22426 conftest$ac_exeext conftest.$ac_ext
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
22428 $as_echo "$have_res_init" >&6; }
22429 if test "$have_res_init" = yes ; then
22430 resolv=yes
22432 LIBS="$OLIBS"
22435 if test "$have_res_init" = yes; then
22437 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
22441 # Do we need the Hesiod library to provide the support routines?
22442 LIBHESIOD=
22443 if test "$with_hesiod" != no ; then
22444 # Don't set $LIBS here -- see comments above. FIXME which comments?
22445 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
22446 if test "x$ac_cv_func_res_send" = x""yes; then :
22448 else
22449 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
22450 if test "x$ac_cv_func___res_send" = x""yes; then :
22452 else
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
22454 $as_echo_n "checking for res_send in -lresolv... " >&6; }
22455 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
22456 $as_echo_n "(cached) " >&6
22457 else
22458 ac_check_lib_save_LIBS=$LIBS
22459 LIBS="-lresolv $LIBS"
22460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22461 /* end confdefs.h. */
22463 /* Override any GCC internal prototype to avoid an error.
22464 Use char because int might match the return type of a GCC
22465 builtin and then its argument prototype would still apply. */
22466 #ifdef __cplusplus
22467 extern "C"
22468 #endif
22469 char res_send ();
22471 main ()
22473 return res_send ();
22475 return 0;
22477 _ACEOF
22478 if ac_fn_c_try_link "$LINENO"; then :
22479 ac_cv_lib_resolv_res_send=yes
22480 else
22481 ac_cv_lib_resolv_res_send=no
22483 rm -f core conftest.err conftest.$ac_objext \
22484 conftest$ac_exeext conftest.$ac_ext
22485 LIBS=$ac_check_lib_save_LIBS
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
22488 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22489 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
22490 resolv=yes
22491 else
22492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
22493 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
22494 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
22495 $as_echo_n "(cached) " >&6
22496 else
22497 ac_check_lib_save_LIBS=$LIBS
22498 LIBS="-lresolv $LIBS"
22499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22500 /* end confdefs.h. */
22502 /* Override any GCC internal prototype to avoid an error.
22503 Use char because int might match the return type of a GCC
22504 builtin and then its argument prototype would still apply. */
22505 #ifdef __cplusplus
22506 extern "C"
22507 #endif
22508 char __res_send ();
22510 main ()
22512 return __res_send ();
22514 return 0;
22516 _ACEOF
22517 if ac_fn_c_try_link "$LINENO"; then :
22518 ac_cv_lib_resolv___res_send=yes
22519 else
22520 ac_cv_lib_resolv___res_send=no
22522 rm -f core conftest.err conftest.$ac_objext \
22523 conftest$ac_exeext conftest.$ac_ext
22524 LIBS=$ac_check_lib_save_LIBS
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
22527 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22528 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
22529 resolv=yes
22538 if test "$resolv" = yes ; then
22539 RESOLVLIB=-lresolv
22540 else
22541 RESOLVLIB=
22543 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
22544 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
22546 else
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
22548 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
22549 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
22550 $as_echo_n "(cached) " >&6
22551 else
22552 ac_check_lib_save_LIBS=$LIBS
22553 LIBS="-lhesiod $RESOLVLIB $LIBS"
22554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22555 /* end confdefs.h. */
22557 /* Override any GCC internal prototype to avoid an error.
22558 Use char because int might match the return type of a GCC
22559 builtin and then its argument prototype would still apply. */
22560 #ifdef __cplusplus
22561 extern "C"
22562 #endif
22563 char hes_getmailhost ();
22565 main ()
22567 return hes_getmailhost ();
22569 return 0;
22571 _ACEOF
22572 if ac_fn_c_try_link "$LINENO"; then :
22573 ac_cv_lib_hesiod_hes_getmailhost=yes
22574 else
22575 ac_cv_lib_hesiod_hes_getmailhost=no
22577 rm -f core conftest.err conftest.$ac_objext \
22578 conftest$ac_exeext conftest.$ac_ext
22579 LIBS=$ac_check_lib_save_LIBS
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22582 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22583 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
22584 hesiod=yes
22585 else
22592 if test x"$hesiod" = xyes; then
22594 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
22596 LIBHESIOD=-lhesiod
22601 # Do we need libresolv (due to res_init or Hesiod)?
22602 if test "$resolv" = yes ; then
22604 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
22606 LIBRESOLV=-lresolv
22607 else
22608 LIBRESOLV=
22612 # These tell us which Kerberos-related libraries to use.
22613 COM_ERRLIB=
22614 CRYPTOLIB=
22615 KRB5LIB=
22616 DESLIB=
22617 KRB4LIB=
22619 if test "${with_kerberos}" != no; then
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
22621 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22622 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
22623 $as_echo_n "(cached) " >&6
22624 else
22625 ac_check_lib_save_LIBS=$LIBS
22626 LIBS="-lcom_err $LIBS"
22627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22628 /* end confdefs.h. */
22630 /* Override any GCC internal prototype to avoid an error.
22631 Use char because int might match the return type of a GCC
22632 builtin and then its argument prototype would still apply. */
22633 #ifdef __cplusplus
22634 extern "C"
22635 #endif
22636 char com_err ();
22638 main ()
22640 return com_err ();
22642 return 0;
22644 _ACEOF
22645 if ac_fn_c_try_link "$LINENO"; then :
22646 ac_cv_lib_com_err_com_err=yes
22647 else
22648 ac_cv_lib_com_err_com_err=no
22650 rm -f core conftest.err conftest.$ac_objext \
22651 conftest$ac_exeext conftest.$ac_ext
22652 LIBS=$ac_check_lib_save_LIBS
22654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
22655 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22656 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
22657 have_com_err=yes
22658 else
22659 have_com_err=no
22662 if test $have_com_err = yes; then
22663 COM_ERRLIB=-lcom_err
22664 LIBS="$COM_ERRLIB $LIBS"
22666 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22670 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22671 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
22672 $as_echo_n "(cached) " >&6
22673 else
22674 ac_check_lib_save_LIBS=$LIBS
22675 LIBS="-lcrypto $LIBS"
22676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22677 /* end confdefs.h. */
22679 /* Override any GCC internal prototype to avoid an error.
22680 Use char because int might match the return type of a GCC
22681 builtin and then its argument prototype would still apply. */
22682 #ifdef __cplusplus
22683 extern "C"
22684 #endif
22685 char mit_des_cbc_encrypt ();
22687 main ()
22689 return mit_des_cbc_encrypt ();
22691 return 0;
22693 _ACEOF
22694 if ac_fn_c_try_link "$LINENO"; then :
22695 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22696 else
22697 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22699 rm -f core conftest.err conftest.$ac_objext \
22700 conftest$ac_exeext conftest.$ac_ext
22701 LIBS=$ac_check_lib_save_LIBS
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22704 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22705 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
22706 have_crypto=yes
22707 else
22708 have_crypto=no
22711 if test $have_crypto = yes; then
22712 CRYPTOLIB=-lcrypto
22713 LIBS="$CRYPTOLIB $LIBS"
22715 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
22718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22719 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22720 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
22721 $as_echo_n "(cached) " >&6
22722 else
22723 ac_check_lib_save_LIBS=$LIBS
22724 LIBS="-lk5crypto $LIBS"
22725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22726 /* end confdefs.h. */
22728 /* Override any GCC internal prototype to avoid an error.
22729 Use char because int might match the return type of a GCC
22730 builtin and then its argument prototype would still apply. */
22731 #ifdef __cplusplus
22732 extern "C"
22733 #endif
22734 char mit_des_cbc_encrypt ();
22736 main ()
22738 return mit_des_cbc_encrypt ();
22740 return 0;
22742 _ACEOF
22743 if ac_fn_c_try_link "$LINENO"; then :
22744 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22745 else
22746 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22748 rm -f core conftest.err conftest.$ac_objext \
22749 conftest$ac_exeext conftest.$ac_ext
22750 LIBS=$ac_check_lib_save_LIBS
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22753 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22754 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
22755 have_k5crypto=yes
22756 else
22757 have_k5crypto=no
22760 if test $have_k5crypto = yes; then
22761 CRYPTOLIB=-lk5crypto
22762 LIBS="$CRYPTOLIB $LIBS"
22764 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
22768 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22769 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
22770 $as_echo_n "(cached) " >&6
22771 else
22772 ac_check_lib_save_LIBS=$LIBS
22773 LIBS="-lkrb5 $LIBS"
22774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22775 /* end confdefs.h. */
22777 /* Override any GCC internal prototype to avoid an error.
22778 Use char because int might match the return type of a GCC
22779 builtin and then its argument prototype would still apply. */
22780 #ifdef __cplusplus
22781 extern "C"
22782 #endif
22783 char krb5_init_context ();
22785 main ()
22787 return krb5_init_context ();
22789 return 0;
22791 _ACEOF
22792 if ac_fn_c_try_link "$LINENO"; then :
22793 ac_cv_lib_krb5_krb5_init_context=yes
22794 else
22795 ac_cv_lib_krb5_krb5_init_context=no
22797 rm -f core conftest.err conftest.$ac_objext \
22798 conftest$ac_exeext conftest.$ac_ext
22799 LIBS=$ac_check_lib_save_LIBS
22801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22802 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22803 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
22804 have_krb5=yes
22805 else
22806 have_krb5=no
22809 if test $have_krb5=yes; then
22810 KRB5LIB=-lkrb5
22811 LIBS="$KRB5LIB $LIBS"
22813 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
22816 if test "${with_kerberos5}" = no; then
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
22818 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22819 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
22820 $as_echo_n "(cached) " >&6
22821 else
22822 ac_check_lib_save_LIBS=$LIBS
22823 LIBS="-ldes425 $LIBS"
22824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22825 /* end confdefs.h. */
22827 /* Override any GCC internal prototype to avoid an error.
22828 Use char because int might match the return type of a GCC
22829 builtin and then its argument prototype would still apply. */
22830 #ifdef __cplusplus
22831 extern "C"
22832 #endif
22833 char des_cbc_encrypt ();
22835 main ()
22837 return des_cbc_encrypt ();
22839 return 0;
22841 _ACEOF
22842 if ac_fn_c_try_link "$LINENO"; then :
22843 ac_cv_lib_des425_des_cbc_encrypt=yes
22844 else
22845 ac_cv_lib_des425_des_cbc_encrypt=no
22847 rm -f core conftest.err conftest.$ac_objext \
22848 conftest$ac_exeext conftest.$ac_ext
22849 LIBS=$ac_check_lib_save_LIBS
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22852 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22853 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
22854 have_des425=yes
22855 else
22856 have_des425=no
22859 if test $have_des425 = yes; then
22860 DESLIB=-ldes425
22861 LIBS="$DESLIB $LIBS"
22863 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
22865 else
22866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
22867 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22868 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
22869 $as_echo_n "(cached) " >&6
22870 else
22871 ac_check_lib_save_LIBS=$LIBS
22872 LIBS="-ldes $LIBS"
22873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22874 /* end confdefs.h. */
22876 /* Override any GCC internal prototype to avoid an error.
22877 Use char because int might match the return type of a GCC
22878 builtin and then its argument prototype would still apply. */
22879 #ifdef __cplusplus
22880 extern "C"
22881 #endif
22882 char des_cbc_encrypt ();
22884 main ()
22886 return des_cbc_encrypt ();
22888 return 0;
22890 _ACEOF
22891 if ac_fn_c_try_link "$LINENO"; then :
22892 ac_cv_lib_des_des_cbc_encrypt=yes
22893 else
22894 ac_cv_lib_des_des_cbc_encrypt=no
22896 rm -f core conftest.err conftest.$ac_objext \
22897 conftest$ac_exeext conftest.$ac_ext
22898 LIBS=$ac_check_lib_save_LIBS
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22901 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22902 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
22903 have_des=yes
22904 else
22905 have_des=no
22908 if test $have_des = yes; then
22909 DESLIB=-ldes
22910 LIBS="$DESLIB $LIBS"
22912 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
22916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
22917 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22918 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
22919 $as_echo_n "(cached) " >&6
22920 else
22921 ac_check_lib_save_LIBS=$LIBS
22922 LIBS="-lkrb4 $LIBS"
22923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22924 /* end confdefs.h. */
22926 /* Override any GCC internal prototype to avoid an error.
22927 Use char because int might match the return type of a GCC
22928 builtin and then its argument prototype would still apply. */
22929 #ifdef __cplusplus
22930 extern "C"
22931 #endif
22932 char krb_get_cred ();
22934 main ()
22936 return krb_get_cred ();
22938 return 0;
22940 _ACEOF
22941 if ac_fn_c_try_link "$LINENO"; then :
22942 ac_cv_lib_krb4_krb_get_cred=yes
22943 else
22944 ac_cv_lib_krb4_krb_get_cred=no
22946 rm -f core conftest.err conftest.$ac_objext \
22947 conftest$ac_exeext conftest.$ac_ext
22948 LIBS=$ac_check_lib_save_LIBS
22950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22951 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22952 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
22953 have_krb4=yes
22954 else
22955 have_krb4=no
22958 if test $have_krb4 = yes; then
22959 KRB4LIB=-lkrb4
22960 LIBS="$KRB4LIB $LIBS"
22962 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
22964 else
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
22966 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22967 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
22968 $as_echo_n "(cached) " >&6
22969 else
22970 ac_check_lib_save_LIBS=$LIBS
22971 LIBS="-lkrb $LIBS"
22972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22973 /* end confdefs.h. */
22975 /* Override any GCC internal prototype to avoid an error.
22976 Use char because int might match the return type of a GCC
22977 builtin and then its argument prototype would still apply. */
22978 #ifdef __cplusplus
22979 extern "C"
22980 #endif
22981 char krb_get_cred ();
22983 main ()
22985 return krb_get_cred ();
22987 return 0;
22989 _ACEOF
22990 if ac_fn_c_try_link "$LINENO"; then :
22991 ac_cv_lib_krb_krb_get_cred=yes
22992 else
22993 ac_cv_lib_krb_krb_get_cred=no
22995 rm -f core conftest.err conftest.$ac_objext \
22996 conftest$ac_exeext conftest.$ac_ext
22997 LIBS=$ac_check_lib_save_LIBS
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
23000 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
23001 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
23002 have_krb=yes
23003 else
23004 have_krb=no
23007 if test $have_krb = yes; then
23008 KRB4LIB=-lkrb
23009 LIBS="$KRB4LIB $LIBS"
23011 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
23017 if test "${with_kerberos5}" != no; then
23018 for ac_header in krb5.h
23019 do :
23020 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
23021 if test "x$ac_cv_header_krb5_h" = x""yes; then :
23022 cat >>confdefs.h <<_ACEOF
23023 #define HAVE_KRB5_H 1
23024 _ACEOF
23025 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
23027 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
23029 cat >>confdefs.h <<_ACEOF
23030 #define HAVE_KRB5_ERROR_TEXT 1
23031 _ACEOF
23035 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
23037 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
23039 cat >>confdefs.h <<_ACEOF
23040 #define HAVE_KRB5_ERROR_E_TEXT 1
23041 _ACEOF
23048 done
23050 else
23051 for ac_header in des.h
23052 do :
23053 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
23054 if test "x$ac_cv_header_des_h" = x""yes; then :
23055 cat >>confdefs.h <<_ACEOF
23056 #define HAVE_DES_H 1
23057 _ACEOF
23059 else
23060 for ac_header in kerberosIV/des.h
23061 do :
23062 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
23063 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
23064 cat >>confdefs.h <<_ACEOF
23065 #define HAVE_KERBEROSIV_DES_H 1
23066 _ACEOF
23068 else
23069 for ac_header in kerberos/des.h
23070 do :
23071 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
23072 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
23073 cat >>confdefs.h <<_ACEOF
23074 #define HAVE_KERBEROS_DES_H 1
23075 _ACEOF
23079 done
23083 done
23087 done
23089 for ac_header in krb.h
23090 do :
23091 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
23092 if test "x$ac_cv_header_krb_h" = x""yes; then :
23093 cat >>confdefs.h <<_ACEOF
23094 #define HAVE_KRB_H 1
23095 _ACEOF
23097 else
23098 for ac_header in kerberosIV/krb.h
23099 do :
23100 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
23101 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
23102 cat >>confdefs.h <<_ACEOF
23103 #define HAVE_KERBEROSIV_KRB_H 1
23104 _ACEOF
23106 else
23107 for ac_header in kerberos/krb.h
23108 do :
23109 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
23110 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
23111 cat >>confdefs.h <<_ACEOF
23112 #define HAVE_KERBEROS_KRB_H 1
23113 _ACEOF
23117 done
23121 done
23125 done
23128 for ac_header in com_err.h
23129 do :
23130 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
23131 if test "x$ac_cv_header_com_err_h" = x""yes; then :
23132 cat >>confdefs.h <<_ACEOF
23133 #define HAVE_COM_ERR_H 1
23134 _ACEOF
23138 done
23148 # Solaris requires -lintl if you want strerror (which calls dgettext)
23149 # to return localized messages.
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
23151 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23152 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
23153 $as_echo_n "(cached) " >&6
23154 else
23155 ac_check_lib_save_LIBS=$LIBS
23156 LIBS="-lintl $LIBS"
23157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23158 /* end confdefs.h. */
23160 /* Override any GCC internal prototype to avoid an error.
23161 Use char because int might match the return type of a GCC
23162 builtin and then its argument prototype would still apply. */
23163 #ifdef __cplusplus
23164 extern "C"
23165 #endif
23166 char dgettext ();
23168 main ()
23170 return dgettext ();
23172 return 0;
23174 _ACEOF
23175 if ac_fn_c_try_link "$LINENO"; then :
23176 ac_cv_lib_intl_dgettext=yes
23177 else
23178 ac_cv_lib_intl_dgettext=no
23180 rm -f core conftest.err conftest.$ac_objext \
23181 conftest$ac_exeext conftest.$ac_ext
23182 LIBS=$ac_check_lib_save_LIBS
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
23185 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23186 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
23187 cat >>confdefs.h <<_ACEOF
23188 #define HAVE_LIBINTL 1
23189 _ACEOF
23191 LIBS="-lintl $LIBS"
23196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
23197 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23198 if test "${emacs_cv_localtime_cache+set}" = set; then :
23199 $as_echo_n "(cached) " >&6
23200 else
23201 if test x$ac_cv_func_tzset = xyes; then
23202 if test "$cross_compiling" = yes; then :
23203 # If we have tzset, assume the worst when cross-compiling.
23204 emacs_cv_localtime_cache=yes
23205 else
23206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23207 /* end confdefs.h. */
23208 #include <time.h>
23209 char TZ_GMT0[] = "TZ=GMT0";
23210 char TZ_PST8[] = "TZ=PST8";
23211 main()
23213 time_t now = time ((time_t *) 0);
23214 int hour_GMT0, hour_unset;
23215 if (putenv (TZ_GMT0) != 0)
23216 exit (1);
23217 hour_GMT0 = localtime (&now)->tm_hour;
23218 unsetenv("TZ");
23219 hour_unset = localtime (&now)->tm_hour;
23220 if (putenv (TZ_PST8) != 0)
23221 exit (1);
23222 if (localtime (&now)->tm_hour == hour_GMT0)
23223 exit (1);
23224 unsetenv("TZ");
23225 if (localtime (&now)->tm_hour != hour_unset)
23226 exit (1);
23227 exit (0);
23229 _ACEOF
23230 if ac_fn_c_try_run "$LINENO"; then :
23231 emacs_cv_localtime_cache=no
23232 else
23233 emacs_cv_localtime_cache=yes
23235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23236 conftest.$ac_objext conftest.beam conftest.$ac_ext
23239 else
23240 # If we lack tzset, report that localtime does not cache TZ,
23241 # since we can't invalidate the cache if we don't have tzset.
23242 emacs_cv_localtime_cache=no
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
23246 $as_echo "$emacs_cv_localtime_cache" >&6; }
23247 if test $emacs_cv_localtime_cache = yes; then
23249 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
23253 if test "x$HAVE_TIMEVAL" = xyes; then
23254 for ac_func in gettimeofday
23255 do :
23256 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
23257 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
23258 cat >>confdefs.h <<_ACEOF
23259 #define HAVE_GETTIMEOFDAY 1
23260 _ACEOF
23263 done
23265 if test $ac_cv_func_gettimeofday = yes; then
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
23267 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
23268 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
23269 $as_echo_n "(cached) " >&6
23270 else
23271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23272 /* end confdefs.h. */
23274 #ifdef TIME_WITH_SYS_TIME
23275 #include <sys/time.h>
23276 #include <time.h>
23277 #else
23278 #ifdef HAVE_SYS_TIME_H
23279 #include <sys/time.h>
23280 #else
23281 #include <time.h>
23282 #endif
23283 #endif
23285 main ()
23287 struct timeval time;
23288 gettimeofday (&time, 0);
23290 return 0;
23292 _ACEOF
23293 if ac_fn_c_try_compile "$LINENO"; then :
23294 emacs_cv_gettimeofday_two_arguments=yes
23295 else
23296 emacs_cv_gettimeofday_two_arguments=no
23298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
23301 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23302 if test $emacs_cv_gettimeofday_two_arguments = no; then
23304 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
23310 ok_so_far=yes
23311 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
23312 if test "x$ac_cv_func_socket" = x""yes; then :
23314 else
23315 ok_so_far=no
23318 if test $ok_so_far = yes; then
23319 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
23320 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
23322 else
23323 ok_so_far=no
23328 if test $ok_so_far = yes; then
23329 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
23330 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
23332 else
23333 ok_so_far=no
23338 if test $ok_so_far = yes; then
23340 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
23344 if test -f /usr/lpp/X11/bin/smt.exp; then
23346 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
23350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
23351 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
23352 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23354 $as_echo "yes" >&6; }
23356 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
23358 else
23359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23360 $as_echo "no" >&6; }
23363 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23364 if test "x$ac_cv_type_pid_t" = x""yes; then :
23366 else
23368 cat >>confdefs.h <<_ACEOF
23369 #define pid_t int
23370 _ACEOF
23374 for ac_header in vfork.h
23375 do :
23376 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
23377 if test "x$ac_cv_header_vfork_h" = x""yes; then :
23378 cat >>confdefs.h <<_ACEOF
23379 #define HAVE_VFORK_H 1
23380 _ACEOF
23384 done
23386 for ac_func in fork vfork
23387 do :
23388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23389 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23390 eval as_val=\$$as_ac_var
23391 if test "x$as_val" = x""yes; then :
23392 cat >>confdefs.h <<_ACEOF
23393 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23394 _ACEOF
23397 done
23399 if test "x$ac_cv_func_fork" = xyes; then
23400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
23401 $as_echo_n "checking for working fork... " >&6; }
23402 if test "${ac_cv_func_fork_works+set}" = set; then :
23403 $as_echo_n "(cached) " >&6
23404 else
23405 if test "$cross_compiling" = yes; then :
23406 ac_cv_func_fork_works=cross
23407 else
23408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23409 /* end confdefs.h. */
23410 $ac_includes_default
23412 main ()
23415 /* By Ruediger Kuhlmann. */
23416 return fork () < 0;
23419 return 0;
23421 _ACEOF
23422 if ac_fn_c_try_run "$LINENO"; then :
23423 ac_cv_func_fork_works=yes
23424 else
23425 ac_cv_func_fork_works=no
23427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23428 conftest.$ac_objext conftest.beam conftest.$ac_ext
23432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
23433 $as_echo "$ac_cv_func_fork_works" >&6; }
23435 else
23436 ac_cv_func_fork_works=$ac_cv_func_fork
23438 if test "x$ac_cv_func_fork_works" = xcross; then
23439 case $host in
23440 *-*-amigaos* | *-*-msdosdjgpp*)
23441 # Override, as these systems have only a dummy fork() stub
23442 ac_cv_func_fork_works=no
23445 ac_cv_func_fork_works=yes
23447 esac
23448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23449 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23451 ac_cv_func_vfork_works=$ac_cv_func_vfork
23452 if test "x$ac_cv_func_vfork" = xyes; then
23453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
23454 $as_echo_n "checking for working vfork... " >&6; }
23455 if test "${ac_cv_func_vfork_works+set}" = set; then :
23456 $as_echo_n "(cached) " >&6
23457 else
23458 if test "$cross_compiling" = yes; then :
23459 ac_cv_func_vfork_works=cross
23460 else
23461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23462 /* end confdefs.h. */
23463 /* Thanks to Paul Eggert for this test. */
23464 $ac_includes_default
23465 #include <sys/wait.h>
23466 #ifdef HAVE_VFORK_H
23467 # include <vfork.h>
23468 #endif
23469 /* On some sparc systems, changes by the child to local and incoming
23470 argument registers are propagated back to the parent. The compiler
23471 is told about this with #include <vfork.h>, but some compilers
23472 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23473 static variable whose address is put into a register that is
23474 clobbered by the vfork. */
23475 static void
23476 #ifdef __cplusplus
23477 sparc_address_test (int arg)
23478 # else
23479 sparc_address_test (arg) int arg;
23480 #endif
23482 static pid_t child;
23483 if (!child) {
23484 child = vfork ();
23485 if (child < 0) {
23486 perror ("vfork");
23487 _exit(2);
23489 if (!child) {
23490 arg = getpid();
23491 write(-1, "", 0);
23492 _exit (arg);
23498 main ()
23500 pid_t parent = getpid ();
23501 pid_t child;
23503 sparc_address_test (0);
23505 child = vfork ();
23507 if (child == 0) {
23508 /* Here is another test for sparc vfork register problems. This
23509 test uses lots of local variables, at least as many local
23510 variables as main has allocated so far including compiler
23511 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23512 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23513 reuse the register of parent for one of the local variables,
23514 since it will think that parent can't possibly be used any more
23515 in this routine. Assigning to the local variable will thus
23516 munge parent in the parent process. */
23517 pid_t
23518 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23519 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23520 /* Convince the compiler that p..p7 are live; otherwise, it might
23521 use the same hardware register for all 8 local variables. */
23522 if (p != p1 || p != p2 || p != p3 || p != p4
23523 || p != p5 || p != p6 || p != p7)
23524 _exit(1);
23526 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23527 from child file descriptors. If the child closes a descriptor
23528 before it execs or exits, this munges the parent's descriptor
23529 as well. Test for this by closing stdout in the child. */
23530 _exit(close(fileno(stdout)) != 0);
23531 } else {
23532 int status;
23533 struct stat st;
23535 while (wait(&status) != child)
23537 return (
23538 /* Was there some problem with vforking? */
23539 child < 0
23541 /* Did the child fail? (This shouldn't happen.) */
23542 || status
23544 /* Did the vfork/compiler bug occur? */
23545 || parent != getpid()
23547 /* Did the file descriptor bug occur? */
23548 || fstat(fileno(stdout), &st) != 0
23552 _ACEOF
23553 if ac_fn_c_try_run "$LINENO"; then :
23554 ac_cv_func_vfork_works=yes
23555 else
23556 ac_cv_func_vfork_works=no
23558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23559 conftest.$ac_objext conftest.beam conftest.$ac_ext
23563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
23564 $as_echo "$ac_cv_func_vfork_works" >&6; }
23567 if test "x$ac_cv_func_fork_works" = xcross; then
23568 ac_cv_func_vfork_works=$ac_cv_func_vfork
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23570 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23573 if test "x$ac_cv_func_vfork_works" = xyes; then
23575 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
23577 else
23579 $as_echo "#define vfork fork" >>confdefs.h
23582 if test "x$ac_cv_func_fork_works" = xyes; then
23584 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
23590 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23591 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
23592 $as_echo_n "(cached) " >&6
23593 else
23594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23595 /* end confdefs.h. */
23596 #include <langinfo.h>
23598 main ()
23600 char* cs = nl_langinfo(CODESET);
23602 return 0;
23604 _ACEOF
23605 if ac_fn_c_try_link "$LINENO"; then :
23606 emacs_cv_langinfo_codeset=yes
23607 else
23608 emacs_cv_langinfo_codeset=no
23610 rm -f core conftest.err conftest.$ac_objext \
23611 conftest$ac_exeext conftest.$ac_ext
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
23615 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
23616 if test $emacs_cv_langinfo_codeset = yes; then
23618 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23623 $as_echo_n "checking for mbstate_t... " >&6; }
23624 if test "${ac_cv_type_mbstate_t+set}" = set; then :
23625 $as_echo_n "(cached) " >&6
23626 else
23627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23628 /* end confdefs.h. */
23629 $ac_includes_default
23630 # include <wchar.h>
23632 main ()
23634 mbstate_t x; return sizeof x;
23636 return 0;
23638 _ACEOF
23639 if ac_fn_c_try_compile "$LINENO"; then :
23640 ac_cv_type_mbstate_t=yes
23641 else
23642 ac_cv_type_mbstate_t=no
23644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23647 $as_echo "$ac_cv_type_mbstate_t" >&6; }
23648 if test $ac_cv_type_mbstate_t = yes; then
23650 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23652 else
23654 $as_echo "#define mbstate_t int" >>confdefs.h
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
23659 $as_echo_n "checking for C restricted array declarations... " >&6; }
23660 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
23661 $as_echo_n "(cached) " >&6
23662 else
23663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23664 /* end confdefs.h. */
23665 void fred (int x[__restrict]);
23667 main ()
23671 return 0;
23673 _ACEOF
23674 if ac_fn_c_try_compile "$LINENO"; then :
23675 emacs_cv_c_restrict_arr=yes
23676 else
23677 emacs_cv_c_restrict_arr=no
23679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
23682 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
23683 if test "$emacs_cv_c_restrict_arr" = yes; then
23685 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
23691 # Set up the CFLAGS for real compilation, so we can substitute it.
23692 CFLAGS="$REAL_CFLAGS"
23693 CPPFLAGS="$REAL_CPPFLAGS"
23695 ## Hack to detect a buggy GCC version.
23696 if test "x$GCC" = xyes \
23697 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
23698 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
23699 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
23700 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
23703 version=$PACKAGE_VERSION
23705 ### Specify what sort of things we'll be editing into Makefile and config.h.
23706 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23709 ## Unused?
23730 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
23731 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
23732 ## end of LIBX_BASE, but nothing ever set it.
23737 ## Used in lwlib/Makefile.in.
23739 if test -n "${machfile}"; then
23740 M_FILE="\$(srcdir)/${machfile}"
23741 else
23742 M_FILE=
23744 S_FILE="\$(srcdir)/${opsysfile}"
23755 cat >>confdefs.h <<_ACEOF
23756 #define EMACS_CONFIGURATION "${canonical}"
23757 _ACEOF
23760 cat >>confdefs.h <<_ACEOF
23761 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23762 _ACEOF
23764 if test -n "$machfile"; then
23766 cat >>confdefs.h <<_ACEOF
23767 #define config_machfile "${machfile}"
23768 _ACEOF
23772 cat >>confdefs.h <<_ACEOF
23773 #define config_opsysfile "${opsysfile}"
23774 _ACEOF
23777 XMENU_OBJ=
23778 XOBJ=
23779 FONT_OBJ=
23780 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23782 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
23784 XMENU_OBJ=xmenu.o
23785 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
23786 FONT_OBJ=xfont.o
23787 if test "$HAVE_XFT" = "yes"; then
23788 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
23789 elif test "$HAVE_FREETYPE" = "yes"; then
23790 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
23798 WIDGET_OBJ=
23799 MOTIF_LIBW=
23800 if test "${USE_X_TOOLKIT}" != "none" ; then
23801 WIDGET_OBJ=widget.o
23803 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
23805 if test "${USE_X_TOOLKIT}" = "LUCID"; then
23807 $as_echo "#define USE_LUCID 1" >>confdefs.h
23809 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
23811 $as_echo "#define USE_MOTIF 1" >>confdefs.h
23813 MOTIF_LIBW=-lXm
23814 case "$opsys" in
23815 gnu-linux)
23816 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
23817 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
23820 unixware)
23821 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
23822 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
23823 MOTIF_LIBW="MOTIF_LIBW -lXimp"
23826 aix4-2)
23827 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
23828 MOTIF_LIBW="$MOTIF_LIBW -li18n"
23830 esac
23831 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
23836 TOOLKIT_LIBW=
23837 case "$USE_X_TOOLKIT" in
23838 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
23839 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
23840 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS -lXcomposite" ;;
23841 esac
23844 if test "$USE_X_TOOLKIT" = "none"; then
23845 LIBXT_OTHER="\$(LIBXSM)"
23846 OLDXMENU_TARGET="really-oldXMenu"
23847 else
23848 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
23849 OLDXMENU_TARGET="really-lwlib"
23853 ## The X Menu stuff is present in the X10 distribution, but missing
23854 ## from X11. If we have X10, just use the installed library;
23855 ## otherwise, use our own copy.
23856 if test "${HAVE_X11}" = "yes" ; then
23858 $as_echo "#define HAVE_X11 1" >>confdefs.h
23861 if test "$USE_X_TOOLKIT" = "none"; then
23862 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
23863 else
23864 OLDXMENU="\${lwlibdir}/liblw.a"
23866 LIBXMENU="\$(OLDXMENU)"
23867 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
23868 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
23869 else
23870 ## For a syntactically valid Makefile; not actually used for anything.
23871 ## See comments in src/Makefile.in.
23872 OLDXMENU=nothing
23873 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
23874 if test "${HAVE_X_WINDOWS}" = "yes"; then
23875 LIBXMENU="-lXMenu"
23876 else
23877 LIBXMENU=
23879 LIBX_OTHER=
23880 OLDXMENU_DEPS=
23883 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
23884 OLDXMENU_TARGET=
23885 OLDXMENU=nothing
23886 LIBXMENU=
23887 OLDXMENU_DEPS=
23896 if test "${HAVE_MENUS}" = "yes" ; then
23898 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
23902 if test "${GNU_MALLOC}" = "yes" ; then
23904 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
23908 RALLOC_OBJ=
23909 if test "${REL_ALLOC}" = "yes" ; then
23911 $as_echo "#define REL_ALLOC 1" >>confdefs.h
23914 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
23918 if test "$opsys" = "cygwin"; then
23919 CYGWIN_OBJ="sheap.o"
23920 ## Cygwin differs because of its unexec().
23921 PRE_ALLOC_OBJ=
23922 POST_ALLOC_OBJ=lastfile.o
23923 else
23924 CYGWIN_OBJ=
23925 PRE_ALLOC_OBJ=lastfile.o
23926 POST_ALLOC_OBJ=
23933 case "$opsys" in
23934 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
23936 darwin)
23937 ## The -headerpad option tells ld (see man page) to leave room at the
23938 ## end of the header for adding load commands. Needed for dumping.
23939 ## 0x690 is the total size of 30 segment load commands (at 56
23940 ## each); under Cocoa 31 commands are required.
23941 if test "$HAVE_NS" = "yes"; then
23942 libs_nsgui="-framework AppKit"
23943 headerpad_extra=6C8
23944 else
23945 libs_nsgui=
23946 headerpad_extra=690
23948 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
23950 ## This is here because src/Makefile.in did some extra fiddling around
23951 ## with LD_SWITCH_SYSTEM. The cpp logic was:
23952 ## #ifndef LD_SWITCH_SYSTEM
23953 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
23954 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
23955 ## not using gcc, darwin system not on an alpha (ie darwin, since
23956 ## darwin + alpha does not occur).
23957 ## Because this was done in src/Makefile.in, the resulting part of
23958 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
23959 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
23960 ## rather than LD_SWITCH_SYSTEM.
23961 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
23962 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
23965 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
23966 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
23967 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
23968 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
23969 ## had different values in configure (in ac_link) and src/Makefile.in.
23970 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
23971 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
23973 *) LD_SWITCH_SYSTEM_TEMACS= ;;
23974 esac
23976 if test "$NS_IMPL_GNUSTEP" = "yes"; then
23977 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
23983 LD_FIRSTFLAG=
23984 ORDINARY_LINK=
23985 case "$opsys" in
23986 ## gnu: GNU needs its own crt0.
23987 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
23989 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
23990 ## library search parth, i.e. it won't search /usr/lib for libc and
23991 ## friends. Using -nostartfiles instead avoids this problem, and
23992 ## will also work on earlier NetBSD releases.
23993 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
23995 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
23996 ## MkLinux/LinuxPPC needs this.
23997 ## ibms390x only supports opsys = gnu-linux so it can be added here.
23998 gnu-*)
23999 case "$machine" in
24000 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
24001 esac
24003 esac
24006 if test "x$ORDINARY_LINK" = "xyes"; then
24008 LD_FIRSTFLAG=""
24010 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
24013 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
24014 ## freebsd, gnu-* not on macppc|ibms390x.
24015 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
24017 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
24018 ## places that are difficult to figure out at make time. Fortunately,
24019 ## these same versions allow you to pass arbitrary flags on to the
24020 ## linker, so there is no reason not to use it as a linker.
24022 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
24023 ## searching for libraries in its internal directories, so we have to
24024 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
24025 LD_FIRSTFLAG="-nostdlib"
24028 ## FIXME? What setting of EDIT_LDFLAGS should this have?
24029 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
24034 ## FIXME? The logic here is not precisely the same as that above.
24035 ## There is no check here for a pre-defined LD_FIRSTFLAG.
24036 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
24037 LIB_GCC=
24038 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
24040 case "$opsys" in
24041 freebsd|netbsd|openbsd) LIB_GCC= ;;
24043 gnu-*)
24044 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
24045 ## build on ARM EABI under GNU/Linux. (Bug#5518)
24046 case $host_cpu in
24047 arm*)
24048 LIB_GCC="-lgcc_s"
24051 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
24052 ## immediately undefine it again and redefine it to empty.
24053 ## Was the C_SWITCH_X_SITE part really necessary?
24054 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
24055 LIB_GCC=
24057 esac
24060 ## Ask GCC where to find libgcc.a.
24061 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
24062 esac
24066 ## If we're using X11/GNUstep, define some consequences.
24067 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
24069 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
24072 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
24079 #### Report on what we decided to do.
24080 #### Report GTK as a toolkit, even if it doesn't use Xt.
24081 #### It makes printing result more understandable as using GTK sets
24082 #### toolkit_scroll_bars to yes by default.
24083 if test "${HAVE_GTK}" = "yes"; then
24084 USE_X_TOOLKIT=GTK
24087 and_machfile=
24088 if test -n "$machfile"; then
24089 and_machfile=" and \`${machfile}'"
24092 echo "
24093 Configured for \`${canonical}'.
24095 Where should the build process find the source code? ${srcdir}
24096 What operating system and machine description files should Emacs use?
24097 \`${opsysfile}'${and_machfile}
24098 What compiler should emacs be built with? ${CC} ${CFLAGS}
24099 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24100 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24101 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24102 What window system should Emacs use? ${window_system}
24103 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24105 if test -n "${x_includes}"; then
24106 echo " Where do we find X Windows header files? ${x_includes}"
24107 else
24108 echo " Where do we find X Windows header files? Standard dirs"
24110 if test -n "${x_libraries}"; then
24111 echo " Where do we find X Windows libraries? ${x_libraries}"
24112 else
24113 echo " Where do we find X Windows libraries? Standard dirs"
24116 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24117 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24118 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24119 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24120 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
24121 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24122 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24123 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
24125 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24126 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24127 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
24128 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
24129 echo " Does Emacs use -lgnutls (2.6.x or higher)? ${HAVE_GNUTLS}"
24130 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
24132 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24133 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24134 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24135 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24137 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24138 echo
24140 if test $USE_XASSERTS = yes; then
24141 echo " Compiling with asserts turned on."
24142 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24145 echo
24147 if test "$HAVE_NS" = "yes"; then
24148 echo
24149 echo "You must run \"make install\" in order to test the built application.
24150 The installed application will go to nextstep/Emacs.app and can be
24151 run or moved from there."
24152 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24153 echo "The application will be fully self-contained."
24154 else
24155 echo "The lisp resources for the application will be installed under ${prefix}.
24156 You may need to run \"make install\" with sudo. The application will fail
24157 to run if these resources are not installed."
24159 echo
24163 # Remove any trailing slashes in these variables.
24164 test "${prefix}" != NONE &&
24165 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24166 test "${exec_prefix}" != NONE &&
24167 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24169 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"
24171 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"
24174 opt_makefile=test/automated/Makefile
24176 if test -f $srcdir/${opt_makefile}.in; then
24177 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
24178 ac_config_files="$ac_config_files test/automated/Makefile"
24182 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
24186 ac_config_commands="$ac_config_commands mkdirs"
24189 ac_config_commands="$ac_config_commands epaths"
24192 ac_config_commands="$ac_config_commands gdbinit"
24195 cat >confcache <<\_ACEOF
24196 # This file is a shell script that caches the results of configure
24197 # tests run on this system so they can be shared between configure
24198 # scripts and configure runs, see configure's option --config-cache.
24199 # It is not useful on other systems. If it contains results you don't
24200 # want to keep, you may remove or edit it.
24202 # config.status only pays attention to the cache file if you give it
24203 # the --recheck option to rerun configure.
24205 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24206 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24207 # following values.
24209 _ACEOF
24211 # The following way of writing the cache mishandles newlines in values,
24212 # but we know of no workaround that is simple, portable, and efficient.
24213 # So, we kill variables containing newlines.
24214 # Ultrix sh set writes to stderr and can't be redirected directly,
24215 # and sets the high bit in the cache file unless we assign to the vars.
24217 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24218 eval ac_val=\$$ac_var
24219 case $ac_val in #(
24220 *${as_nl}*)
24221 case $ac_var in #(
24222 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24223 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24224 esac
24225 case $ac_var in #(
24226 _ | IFS | as_nl) ;; #(
24227 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24228 *) { eval $ac_var=; unset $ac_var;} ;;
24229 esac ;;
24230 esac
24231 done
24233 (set) 2>&1 |
24234 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24235 *${as_nl}ac_space=\ *)
24236 # `set' does not quote correctly, so add quotes: double-quote
24237 # substitution turns \\\\ into \\, and sed turns \\ into \.
24238 sed -n \
24239 "s/'/'\\\\''/g;
24240 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24241 ;; #(
24243 # `set' quotes correctly as required by POSIX, so do not add quotes.
24244 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24246 esac |
24247 sort
24249 sed '
24250 /^ac_cv_env_/b end
24251 t clear
24252 :clear
24253 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24254 t end
24255 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24256 :end' >>confcache
24257 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24258 if test -w "$cache_file"; then
24259 test "x$cache_file" != "x/dev/null" &&
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24261 $as_echo "$as_me: updating cache $cache_file" >&6;}
24262 cat confcache >$cache_file
24263 else
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24265 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24268 rm -f confcache
24270 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24271 # Let make expand exec_prefix.
24272 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24274 DEFS=-DHAVE_CONFIG_H
24276 ac_libobjs=
24277 ac_ltlibobjs=
24278 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24279 # 1. Remove the extension, and $U if already installed.
24280 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24281 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24282 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24283 # will be set to the directory where LIBOBJS objects are built.
24284 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24285 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24286 done
24287 LIBOBJS=$ac_libobjs
24289 LTLIBOBJS=$ac_ltlibobjs
24292 if test -n "$EXEEXT"; then
24293 am__EXEEXT_TRUE=
24294 am__EXEEXT_FALSE='#'
24295 else
24296 am__EXEEXT_TRUE='#'
24297 am__EXEEXT_FALSE=
24300 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24301 as_fn_error "conditional \"AMDEP\" was never defined.
24302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24304 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24305 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24309 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24310 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
24311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24313 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24314 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24318 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24319 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
24320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24322 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
24323 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
24324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24326 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24327 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24330 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24331 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24334 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
24335 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
24336 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24338 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
24339 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
24340 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24342 <<<<<<< TREE
24343 =======
24344 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
24345 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
24346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24348 >>>>>>> MERGE-SOURCE
24349 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
24350 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
24351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24353 <<<<<<< TREE
24354 =======
24355 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
24356 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
24357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24359 >>>>>>> MERGE-SOURCE
24360 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
24361 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
24362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24364 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
24365 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
24366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24369 gl_libobjs=
24370 gl_ltlibobjs=
24371 if test -n "$gl_LIBOBJS"; then
24372 # Remove the extension.
24373 sed_drop_objext='s/\.o$//;s/\.obj$//'
24374 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24375 gl_libobjs="$gl_libobjs $i.$ac_objext"
24376 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
24377 done
24379 gl_LIBOBJS=$gl_libobjs
24381 gl_LTLIBOBJS=$gl_ltlibobjs
24385 gltests_libobjs=
24386 gltests_ltlibobjs=
24387 if test -n "$gltests_LIBOBJS"; then
24388 # Remove the extension.
24389 sed_drop_objext='s/\.o$//;s/\.obj$//'
24390 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24391 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
24392 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
24393 done
24395 gltests_LIBOBJS=$gltests_libobjs
24397 gltests_LTLIBOBJS=$gltests_ltlibobjs
24401 : ${CONFIG_STATUS=./config.status}
24402 ac_write_fail=0
24403 ac_clean_files_save=$ac_clean_files
24404 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24406 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24407 as_write_fail=0
24408 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24409 #! $SHELL
24410 # Generated by $as_me.
24411 # Run this file to recreate the current configuration.
24412 # Compiler output produced by configure, useful for debugging
24413 # configure, is in config.log if it exists.
24415 debug=false
24416 ac_cs_recheck=false
24417 ac_cs_silent=false
24419 SHELL=\${CONFIG_SHELL-$SHELL}
24420 export SHELL
24421 _ASEOF
24422 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24423 ## -------------------- ##
24424 ## M4sh Initialization. ##
24425 ## -------------------- ##
24427 # Be more Bourne compatible
24428 DUALCASE=1; export DUALCASE # for MKS sh
24429 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24430 emulate sh
24431 NULLCMD=:
24432 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24433 # is contrary to our usage. Disable this feature.
24434 alias -g '${1+"$@"}'='"$@"'
24435 setopt NO_GLOB_SUBST
24436 else
24437 case `(set -o) 2>/dev/null` in #(
24438 *posix*) :
24439 set -o posix ;; #(
24440 *) :
24442 esac
24446 as_nl='
24448 export as_nl
24449 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24450 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24451 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24452 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24453 # Prefer a ksh shell builtin over an external printf program on Solaris,
24454 # but without wasting forks for bash or zsh.
24455 if test -z "$BASH_VERSION$ZSH_VERSION" \
24456 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24457 as_echo='print -r --'
24458 as_echo_n='print -rn --'
24459 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24460 as_echo='printf %s\n'
24461 as_echo_n='printf %s'
24462 else
24463 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24464 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24465 as_echo_n='/usr/ucb/echo -n'
24466 else
24467 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24468 as_echo_n_body='eval
24469 arg=$1;
24470 case $arg in #(
24471 *"$as_nl"*)
24472 expr "X$arg" : "X\\(.*\\)$as_nl";
24473 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24474 esac;
24475 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24477 export as_echo_n_body
24478 as_echo_n='sh -c $as_echo_n_body as_echo'
24480 export as_echo_body
24481 as_echo='sh -c $as_echo_body as_echo'
24484 # The user is always right.
24485 if test "${PATH_SEPARATOR+set}" != set; then
24486 PATH_SEPARATOR=:
24487 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24488 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24489 PATH_SEPARATOR=';'
24494 # IFS
24495 # We need space, tab and new line, in precisely that order. Quoting is
24496 # there to prevent editors from complaining about space-tab.
24497 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24498 # splitting by setting IFS to empty value.)
24499 IFS=" "" $as_nl"
24501 # Find who we are. Look in the path if we contain no directory separator.
24502 case $0 in #((
24503 *[\\/]* ) as_myself=$0 ;;
24504 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24505 for as_dir in $PATH
24507 IFS=$as_save_IFS
24508 test -z "$as_dir" && as_dir=.
24509 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24510 done
24511 IFS=$as_save_IFS
24514 esac
24515 # We did not find ourselves, most probably we were run as `sh COMMAND'
24516 # in which case we are not to be found in the path.
24517 if test "x$as_myself" = x; then
24518 as_myself=$0
24520 if test ! -f "$as_myself"; then
24521 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24522 exit 1
24525 # Unset variables that we do not need and which cause bugs (e.g. in
24526 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24527 # suppresses any "Segmentation fault" message there. '((' could
24528 # trigger a bug in pdksh 5.2.14.
24529 for as_var in BASH_ENV ENV MAIL MAILPATH
24530 do eval test x\${$as_var+set} = xset \
24531 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24532 done
24533 PS1='$ '
24534 PS2='> '
24535 PS4='+ '
24537 # NLS nuisances.
24538 LC_ALL=C
24539 export LC_ALL
24540 LANGUAGE=C
24541 export LANGUAGE
24543 # CDPATH.
24544 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24547 # as_fn_error ERROR [LINENO LOG_FD]
24548 # ---------------------------------
24549 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24550 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24551 # script with status $?, using 1 if that was 0.
24552 as_fn_error ()
24554 as_status=$?; test $as_status -eq 0 && as_status=1
24555 if test "$3"; then
24556 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24557 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24559 $as_echo "$as_me: error: $1" >&2
24560 as_fn_exit $as_status
24561 } # as_fn_error
24564 # as_fn_set_status STATUS
24565 # -----------------------
24566 # Set $? to STATUS, without forking.
24567 as_fn_set_status ()
24569 return $1
24570 } # as_fn_set_status
24572 # as_fn_exit STATUS
24573 # -----------------
24574 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24575 as_fn_exit ()
24577 set +e
24578 as_fn_set_status $1
24579 exit $1
24580 } # as_fn_exit
24582 # as_fn_unset VAR
24583 # ---------------
24584 # Portably unset VAR.
24585 as_fn_unset ()
24587 { eval $1=; unset $1;}
24589 as_unset=as_fn_unset
24590 # as_fn_append VAR VALUE
24591 # ----------------------
24592 # Append the text in VALUE to the end of the definition contained in VAR. Take
24593 # advantage of any shell optimizations that allow amortized linear growth over
24594 # repeated appends, instead of the typical quadratic growth present in naive
24595 # implementations.
24596 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24597 eval 'as_fn_append ()
24599 eval $1+=\$2
24601 else
24602 as_fn_append ()
24604 eval $1=\$$1\$2
24606 fi # as_fn_append
24608 # as_fn_arith ARG...
24609 # ------------------
24610 # Perform arithmetic evaluation on the ARGs, and store the result in the
24611 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24612 # must be portable across $(()) and expr.
24613 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24614 eval 'as_fn_arith ()
24616 as_val=$(( $* ))
24618 else
24619 as_fn_arith ()
24621 as_val=`expr "$@" || test $? -eq 1`
24623 fi # as_fn_arith
24626 if expr a : '\(a\)' >/dev/null 2>&1 &&
24627 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24628 as_expr=expr
24629 else
24630 as_expr=false
24633 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24634 as_basename=basename
24635 else
24636 as_basename=false
24639 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24640 as_dirname=dirname
24641 else
24642 as_dirname=false
24645 as_me=`$as_basename -- "$0" ||
24646 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24647 X"$0" : 'X\(//\)$' \| \
24648 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24649 $as_echo X/"$0" |
24650 sed '/^.*\/\([^/][^/]*\)\/*$/{
24651 s//\1/
24654 /^X\/\(\/\/\)$/{
24655 s//\1/
24658 /^X\/\(\/\).*/{
24659 s//\1/
24662 s/.*/./; q'`
24664 # Avoid depending upon Character Ranges.
24665 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24666 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24667 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24668 as_cr_digits='0123456789'
24669 as_cr_alnum=$as_cr_Letters$as_cr_digits
24671 ECHO_C= ECHO_N= ECHO_T=
24672 case `echo -n x` in #(((((
24673 -n*)
24674 case `echo 'xy\c'` in
24675 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24676 xy) ECHO_C='\c';;
24677 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24678 ECHO_T=' ';;
24679 esac;;
24681 ECHO_N='-n';;
24682 esac
24684 rm -f conf$$ conf$$.exe conf$$.file
24685 if test -d conf$$.dir; then
24686 rm -f conf$$.dir/conf$$.file
24687 else
24688 rm -f conf$$.dir
24689 mkdir conf$$.dir 2>/dev/null
24691 if (echo >conf$$.file) 2>/dev/null; then
24692 if ln -s conf$$.file conf$$ 2>/dev/null; then
24693 as_ln_s='ln -s'
24694 # ... but there are two gotchas:
24695 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24696 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24697 # In both cases, we have to default to `cp -p'.
24698 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24699 as_ln_s='cp -p'
24700 elif ln conf$$.file conf$$ 2>/dev/null; then
24701 as_ln_s=ln
24702 else
24703 as_ln_s='cp -p'
24705 else
24706 as_ln_s='cp -p'
24708 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24709 rmdir conf$$.dir 2>/dev/null
24712 # as_fn_mkdir_p
24713 # -------------
24714 # Create "$as_dir" as a directory, including parents if necessary.
24715 as_fn_mkdir_p ()
24718 case $as_dir in #(
24719 -*) as_dir=./$as_dir;;
24720 esac
24721 test -d "$as_dir" || eval $as_mkdir_p || {
24722 as_dirs=
24723 while :; do
24724 case $as_dir in #(
24725 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24726 *) as_qdir=$as_dir;;
24727 esac
24728 as_dirs="'$as_qdir' $as_dirs"
24729 as_dir=`$as_dirname -- "$as_dir" ||
24730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24731 X"$as_dir" : 'X\(//\)[^/]' \| \
24732 X"$as_dir" : 'X\(//\)$' \| \
24733 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24734 $as_echo X"$as_dir" |
24735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24736 s//\1/
24739 /^X\(\/\/\)[^/].*/{
24740 s//\1/
24743 /^X\(\/\/\)$/{
24744 s//\1/
24747 /^X\(\/\).*/{
24748 s//\1/
24751 s/.*/./; q'`
24752 test -d "$as_dir" && break
24753 done
24754 test -z "$as_dirs" || eval "mkdir $as_dirs"
24755 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
24758 } # as_fn_mkdir_p
24759 if mkdir -p . 2>/dev/null; then
24760 as_mkdir_p='mkdir -p "$as_dir"'
24761 else
24762 test -d ./-p && rmdir ./-p
24763 as_mkdir_p=false
24766 if test -x / >/dev/null 2>&1; then
24767 as_test_x='test -x'
24768 else
24769 if ls -dL / >/dev/null 2>&1; then
24770 as_ls_L_option=L
24771 else
24772 as_ls_L_option=
24774 as_test_x='
24775 eval sh -c '\''
24776 if test -d "$1"; then
24777 test -d "$1/.";
24778 else
24779 case $1 in #(
24780 -*)set "./$1";;
24781 esac;
24782 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
24783 ???[sx]*):;;*)false;;esac;fi
24784 '\'' sh
24787 as_executable_p=$as_test_x
24789 # Sed expression to map a string onto a valid CPP name.
24790 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24792 # Sed expression to map a string onto a valid variable name.
24793 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24796 exec 6>&1
24797 ## ----------------------------------- ##
24798 ## Main body of $CONFIG_STATUS script. ##
24799 ## ----------------------------------- ##
24800 _ASEOF
24801 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24804 # Save the log message, to keep $0 and so on meaningful, and to
24805 # report actual input values of CONFIG_FILES etc. instead of their
24806 # values after options handling.
24807 ac_log="
24808 This file was extended by emacs $as_me 24.0.50, which was
24809 generated by GNU Autoconf 2.65. Invocation command line was
24811 CONFIG_FILES = $CONFIG_FILES
24812 CONFIG_HEADERS = $CONFIG_HEADERS
24813 CONFIG_LINKS = $CONFIG_LINKS
24814 CONFIG_COMMANDS = $CONFIG_COMMANDS
24815 $ $0 $@
24817 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24820 _ACEOF
24822 case $ac_config_files in *"
24823 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24824 esac
24826 case $ac_config_headers in *"
24827 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24828 esac
24831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24832 # Files that config.status was made for.
24833 config_files="$ac_config_files"
24834 config_headers="$ac_config_headers"
24835 config_commands="$ac_config_commands"
24837 _ACEOF
24839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24840 ac_cs_usage="\
24841 \`$as_me' instantiates files and other configuration actions
24842 from templates according to the current configuration. Unless the files
24843 and actions are specified as TAGs, all are instantiated by default.
24845 Usage: $0 [OPTION]... [TAG]...
24847 -h, --help print this help, then exit
24848 -V, --version print version number and configuration settings, then exit
24849 --config print configuration, then exit
24850 -q, --quiet, --silent
24851 do not print progress messages
24852 -d, --debug don't remove temporary files
24853 --recheck update $as_me by reconfiguring in the same conditions
24854 --file=FILE[:TEMPLATE]
24855 instantiate the configuration file FILE
24856 --header=FILE[:TEMPLATE]
24857 instantiate the configuration header FILE
24859 Configuration files:
24860 $config_files
24862 Configuration headers:
24863 $config_headers
24865 Configuration commands:
24866 $config_commands
24868 Report bugs to the package provider."
24870 _ACEOF
24871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24872 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24873 ac_cs_version="\\
24874 emacs config.status 24.0.50
24875 configured by $0, generated by GNU Autoconf 2.65,
24876 with options \\"\$ac_cs_config\\"
24878 Copyright (C) 2009 Free Software Foundation, Inc.
24879 This config.status script is free software; the Free Software Foundation
24880 gives unlimited permission to copy, distribute and modify it."
24882 ac_pwd='$ac_pwd'
24883 srcdir='$srcdir'
24884 INSTALL='$INSTALL'
24885 MKDIR_P='$MKDIR_P'
24886 AWK='$AWK'
24887 test -n "\$AWK" || AWK=awk
24888 _ACEOF
24890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24891 # The default lists apply if the user does not specify any file.
24892 ac_need_defaults=:
24893 while test $# != 0
24895 case $1 in
24896 --*=*)
24897 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24898 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24899 ac_shift=:
24902 ac_option=$1
24903 ac_optarg=$2
24904 ac_shift=shift
24906 esac
24908 case $ac_option in
24909 # Handling of the options.
24910 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24911 ac_cs_recheck=: ;;
24912 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24913 $as_echo "$ac_cs_version"; exit ;;
24914 --config | --confi | --conf | --con | --co | --c )
24915 $as_echo "$ac_cs_config"; exit ;;
24916 --debug | --debu | --deb | --de | --d | -d )
24917 debug=: ;;
24918 --file | --fil | --fi | --f )
24919 $ac_shift
24920 case $ac_optarg in
24921 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24922 esac
24923 as_fn_append CONFIG_FILES " '$ac_optarg'"
24924 ac_need_defaults=false;;
24925 --header | --heade | --head | --hea )
24926 $ac_shift
24927 case $ac_optarg in
24928 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24929 esac
24930 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24931 ac_need_defaults=false;;
24932 --he | --h)
24933 # Conflict between --help and --header
24934 as_fn_error "ambiguous option: \`$1'
24935 Try \`$0 --help' for more information.";;
24936 --help | --hel | -h )
24937 $as_echo "$ac_cs_usage"; exit ;;
24938 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24939 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24940 ac_cs_silent=: ;;
24942 # This is an error.
24943 -*) as_fn_error "unrecognized option: \`$1'
24944 Try \`$0 --help' for more information." ;;
24946 *) as_fn_append ac_config_targets " $1"
24947 ac_need_defaults=false ;;
24949 esac
24950 shift
24951 done
24953 ac_configure_extra_args=
24955 if $ac_cs_silent; then
24956 exec 6>/dev/null
24957 ac_configure_extra_args="$ac_configure_extra_args --silent"
24960 _ACEOF
24961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24962 if \$ac_cs_recheck; then
24963 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24964 shift
24965 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24966 CONFIG_SHELL='$SHELL'
24967 export CONFIG_SHELL
24968 exec "\$@"
24971 _ACEOF
24972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24973 exec 5>>config.log
24975 echo
24976 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24977 ## Running $as_me. ##
24978 _ASBOX
24979 $as_echo "$ac_log"
24980 } >&5
24982 _ACEOF
24983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24985 # INIT-COMMANDS
24987 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24988 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
24990 _ACEOF
24992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24994 # Handling of arguments.
24995 for ac_config_target in $ac_config_targets
24997 case $ac_config_target in
24998 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24999 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25000 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25001 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25002 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
25003 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
25004 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
25005 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25006 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
25007 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
25008 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25009 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
25010 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
25011 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
25012 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
25013 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
25014 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
25015 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
25017 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25018 esac
25019 done
25022 # If the user did not use the arguments to specify the items to instantiate,
25023 # then the envvar interface is used. Set only those that are not.
25024 # We use the long form for the default assignment because of an extremely
25025 # bizarre bug on SunOS 4.1.3.
25026 if $ac_need_defaults; then
25027 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25028 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25029 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25032 # Have a temporary directory for convenience. Make it in the build tree
25033 # simply because there is no reason against having it here, and in addition,
25034 # creating and moving files from /tmp can sometimes cause problems.
25035 # Hook for its removal unless debugging.
25036 # Note that there is a small window in which the directory will not be cleaned:
25037 # after its creation but before its name has been assigned to `$tmp'.
25038 $debug ||
25040 tmp=
25041 trap 'exit_status=$?
25042 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25044 trap 'as_fn_exit 1' 1 2 13 15
25046 # Create a (secure) tmp directory for tmp files.
25049 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25050 test -n "$tmp" && test -d "$tmp"
25051 } ||
25053 tmp=./conf$$-$RANDOM
25054 (umask 077 && mkdir "$tmp")
25055 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25057 # Set up the scripts for CONFIG_FILES section.
25058 # No need to generate them if there are no CONFIG_FILES.
25059 # This happens for instance with `./config.status config.h'.
25060 if test -n "$CONFIG_FILES"; then
25062 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25063 ac_cs_awk_getline=:
25064 ac_cs_awk_pipe_init=
25065 ac_cs_awk_read_file='
25066 while ((getline aline < (F[key])) > 0)
25067 print(aline)
25068 close(F[key])'
25069 ac_cs_awk_pipe_fini=
25070 else
25071 ac_cs_awk_getline=false
25072 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25073 ac_cs_awk_read_file='
25074 print "|#_!!_#|"
25075 print "cat " F[key] " &&"
25076 '$ac_cs_awk_pipe_init
25077 # The final `:' finishes the AND list.
25078 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25080 ac_cr=`echo X | tr X '\015'`
25081 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25082 # But we know of no other shell where ac_cr would be empty at this
25083 # point, so we can use a bashism as a fallback.
25084 if test "x$ac_cr" = x; then
25085 eval ac_cr=\$\'\\r\'
25087 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25088 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25089 ac_cs_awk_cr='\r'
25090 else
25091 ac_cs_awk_cr=$ac_cr
25094 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25095 _ACEOF
25097 # Create commands to substitute file output variables.
25099 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25100 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25101 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
25102 echo "_ACAWK" &&
25103 echo "_ACEOF"
25104 } >conf$$files.sh &&
25105 . ./conf$$files.sh ||
25106 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25107 rm -f conf$$files.sh
25110 echo "cat >conf$$subs.awk <<_ACEOF" &&
25111 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25112 echo "_ACEOF"
25113 } >conf$$subs.sh ||
25114 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25115 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25116 ac_delim='%!_!# '
25117 for ac_last_try in false false false false false :; do
25118 . ./conf$$subs.sh ||
25119 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25121 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25122 if test $ac_delim_n = $ac_delim_num; then
25123 break
25124 elif $ac_last_try; then
25125 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25126 else
25127 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25129 done
25130 rm -f conf$$subs.sh
25132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25133 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25134 _ACEOF
25135 sed -n '
25137 s/^/S["/; s/!.*/"]=/
25140 s/^[^!]*!//
25141 :repl
25142 t repl
25143 s/'"$ac_delim"'$//
25144 t delim
25147 s/\(.\{148\}\)..*/\1/
25148 t more1
25149 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25152 b repl
25153 :more1
25154 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25157 s/.\{148\}//
25158 t nl
25159 :delim
25161 s/\(.\{148\}\)..*/\1/
25162 t more2
25163 s/["\\]/\\&/g; s/^/"/; s/$/"/
25166 :more2
25167 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25170 s/.\{148\}//
25171 t delim
25172 ' <conf$$subs.awk | sed '
25173 /^[^""]/{
25175 s/\n//
25177 ' >>$CONFIG_STATUS || ac_write_fail=1
25178 rm -f conf$$subs.awk
25179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25180 _ACAWK
25181 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25182 for (key in S) S_is_set[key] = 1
25183 FS = "\a"
25184 \$ac_cs_awk_pipe_init
25187 line = $ 0
25188 nfields = split(line, field, "@")
25189 substed = 0
25190 len = length(field[1])
25191 for (i = 2; i < nfields; i++) {
25192 key = field[i]
25193 keylen = length(key)
25194 if (S_is_set[key]) {
25195 value = S[key]
25196 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25197 len += length(value) + length(field[++i])
25198 substed = 1
25199 } else
25200 len += 1 + keylen
25202 if (nfields == 3 && !substed) {
25203 key = field[2]
25204 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25205 \$ac_cs_awk_read_file
25206 next
25209 print line
25211 \$ac_cs_awk_pipe_fini
25212 _ACAWK
25213 _ACEOF
25214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25215 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25216 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25217 else
25219 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25220 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25221 _ACEOF
25223 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25224 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25225 # trailing colons and then remove the whole line if VPATH becomes empty
25226 # (actually we leave an empty line to preserve line numbers).
25227 if test "x$srcdir" = x.; then
25228 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25229 s/:*\$(srcdir):*/:/
25230 s/:*\${srcdir}:*/:/
25231 s/:*@srcdir@:*/:/
25232 s/^\([^=]*=[ ]*\):*/\1/
25233 s/:*$//
25234 s/^[^=]*=[ ]*$//
25238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25239 fi # test -n "$CONFIG_FILES"
25241 # Set up the scripts for CONFIG_HEADERS section.
25242 # No need to generate them if there are no CONFIG_HEADERS.
25243 # This happens for instance with `./config.status Makefile'.
25244 if test -n "$CONFIG_HEADERS"; then
25245 cat >"$tmp/defines.awk" <<\_ACAWK ||
25246 BEGIN {
25247 _ACEOF
25249 # Transform confdefs.h into an awk script `defines.awk', embedded as
25250 # here-document in config.status, that substitutes the proper values into
25251 # config.h.in to produce config.h.
25253 # Create a delimiter string that does not exist in confdefs.h, to ease
25254 # handling of long lines.
25255 ac_delim='%!_!# '
25256 for ac_last_try in false false :; do
25257 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25258 if test -z "$ac_t"; then
25259 break
25260 elif $ac_last_try; then
25261 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
25262 else
25263 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25265 done
25267 # For the awk script, D is an array of macro values keyed by name,
25268 # likewise P contains macro parameters if any. Preserve backslash
25269 # newline sequences.
25271 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25272 sed -n '
25273 s/.\{148\}/&'"$ac_delim"'/g
25274 t rset
25275 :rset
25276 s/^[ ]*#[ ]*define[ ][ ]*/ /
25277 t def
25279 :def
25280 s/\\$//
25281 t bsnl
25282 s/["\\]/\\&/g
25283 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25284 D["\1"]=" \3"/p
25285 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25287 :bsnl
25288 s/["\\]/\\&/g
25289 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25290 D["\1"]=" \3\\\\\\n"\\/p
25291 t cont
25292 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25293 t cont
25295 :cont
25297 s/.\{148\}/&'"$ac_delim"'/g
25298 t clear
25299 :clear
25300 s/\\$//
25301 t bsnlc
25302 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25304 :bsnlc
25305 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25306 b cont
25307 ' <confdefs.h | sed '
25308 s/'"$ac_delim"'/"\\\
25309 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25312 for (key in D) D_is_set[key] = 1
25313 FS = "\a"
25315 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25316 line = \$ 0
25317 split(line, arg, " ")
25318 if (arg[1] == "#") {
25319 defundef = arg[2]
25320 mac1 = arg[3]
25321 } else {
25322 defundef = substr(arg[1], 2)
25323 mac1 = arg[2]
25325 split(mac1, mac2, "(") #)
25326 macro = mac2[1]
25327 prefix = substr(line, 1, index(line, defundef) - 1)
25328 if (D_is_set[macro]) {
25329 # Preserve the white space surrounding the "#".
25330 print prefix "define", macro P[macro] D[macro]
25331 next
25332 } else {
25333 # Replace #undef with comments. This is necessary, for example,
25334 # in the case of _POSIX_SOURCE, which is predefined and required
25335 # on some systems where configure will not decide to define it.
25336 if (defundef == "undef") {
25337 print "/*", prefix defundef, macro, "*/"
25338 next
25342 { print }
25343 _ACAWK
25344 _ACEOF
25345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25346 as_fn_error "could not setup config headers machinery" "$LINENO" 5
25347 fi # test -n "$CONFIG_HEADERS"
25350 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25351 shift
25352 for ac_tag
25354 case $ac_tag in
25355 :[FHLC]) ac_mode=$ac_tag; continue;;
25356 esac
25357 case $ac_mode$ac_tag in
25358 :[FHL]*:*);;
25359 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
25360 :[FH]-) ac_tag=-:-;;
25361 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25362 esac
25363 ac_save_IFS=$IFS
25364 IFS=:
25365 set x $ac_tag
25366 IFS=$ac_save_IFS
25367 shift
25368 ac_file=$1
25369 shift
25371 case $ac_mode in
25372 :L) ac_source=$1;;
25373 :[FH])
25374 ac_file_inputs=
25375 for ac_f
25377 case $ac_f in
25378 -) ac_f="$tmp/stdin";;
25379 *) # Look for the file first in the build tree, then in the source tree
25380 # (if the path is not absolute). The absolute path cannot be DOS-style,
25381 # because $ac_f cannot contain `:'.
25382 test -f "$ac_f" ||
25383 case $ac_f in
25384 [\\/$]*) false;;
25385 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25386 esac ||
25387 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25388 esac
25389 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25390 as_fn_append ac_file_inputs " '$ac_f'"
25391 done
25393 # Let's still pretend it is `configure' which instantiates (i.e., don't
25394 # use $as_me), people would be surprised to read:
25395 # /* config.h. Generated by config.status. */
25396 configure_input='Generated from '`
25397 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25398 `' by configure.'
25399 if test x"$ac_file" != x-; then
25400 configure_input="$ac_file. $configure_input"
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25402 $as_echo "$as_me: creating $ac_file" >&6;}
25404 # Neutralize special characters interpreted by sed in replacement strings.
25405 case $configure_input in #(
25406 *\&* | *\|* | *\\* )
25407 ac_sed_conf_input=`$as_echo "$configure_input" |
25408 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25409 *) ac_sed_conf_input=$configure_input;;
25410 esac
25412 case $ac_tag in
25413 *:-:* | *:-) cat >"$tmp/stdin" \
25414 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
25415 esac
25417 esac
25419 ac_dir=`$as_dirname -- "$ac_file" ||
25420 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25421 X"$ac_file" : 'X\(//\)[^/]' \| \
25422 X"$ac_file" : 'X\(//\)$' \| \
25423 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25424 $as_echo X"$ac_file" |
25425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25426 s//\1/
25429 /^X\(\/\/\)[^/].*/{
25430 s//\1/
25433 /^X\(\/\/\)$/{
25434 s//\1/
25437 /^X\(\/\).*/{
25438 s//\1/
25441 s/.*/./; q'`
25442 as_dir="$ac_dir"; as_fn_mkdir_p
25443 ac_builddir=.
25445 case "$ac_dir" in
25446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25448 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25449 # A ".." for each directory in $ac_dir_suffix.
25450 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25451 case $ac_top_builddir_sub in
25452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25454 esac ;;
25455 esac
25456 ac_abs_top_builddir=$ac_pwd
25457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25458 # for backward compatibility:
25459 ac_top_builddir=$ac_top_build_prefix
25461 case $srcdir in
25462 .) # We are building in place.
25463 ac_srcdir=.
25464 ac_top_srcdir=$ac_top_builddir_sub
25465 ac_abs_top_srcdir=$ac_pwd ;;
25466 [\\/]* | ?:[\\/]* ) # Absolute name.
25467 ac_srcdir=$srcdir$ac_dir_suffix;
25468 ac_top_srcdir=$srcdir
25469 ac_abs_top_srcdir=$srcdir ;;
25470 *) # Relative name.
25471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25472 ac_top_srcdir=$ac_top_build_prefix$srcdir
25473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25474 esac
25475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25478 case $ac_mode in
25481 # CONFIG_FILE
25484 case $INSTALL in
25485 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25486 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25487 esac
25488 ac_MKDIR_P=$MKDIR_P
25489 case $MKDIR_P in
25490 [\\/$]* | ?:[\\/]* ) ;;
25491 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25492 esac
25493 _ACEOF
25495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25496 # If the template does not know about datarootdir, expand it.
25497 # FIXME: This hack should be removed a few years after 2.60.
25498 ac_datarootdir_hack=; ac_datarootdir_seen=
25499 ac_sed_dataroot='
25500 /datarootdir/ {
25504 /@datadir@/p
25505 /@docdir@/p
25506 /@infodir@/p
25507 /@localedir@/p
25508 /@mandir@/p'
25509 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25510 *datarootdir*) ac_datarootdir_seen=yes;;
25511 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25513 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25514 _ACEOF
25515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25516 ac_datarootdir_hack='
25517 s&@datadir@&$datadir&g
25518 s&@docdir@&$docdir&g
25519 s&@infodir@&$infodir&g
25520 s&@localedir@&$localedir&g
25521 s&@mandir@&$mandir&g
25522 s&\\\${datarootdir}&$datarootdir&g' ;;
25523 esac
25524 _ACEOF
25526 # Neutralize VPATH when `$srcdir' = `.'.
25527 # Shell code in configure.ac might set extrasub.
25528 # FIXME: do we really want to maintain this feature?
25529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25530 ac_sed_extra="$ac_vpsub
25531 $extrasub
25532 _ACEOF
25533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25535 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25536 s|@configure_input@|$ac_sed_conf_input|;t t
25537 s&@top_builddir@&$ac_top_builddir_sub&;t t
25538 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25539 s&@srcdir@&$ac_srcdir&;t t
25540 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25541 s&@top_srcdir@&$ac_top_srcdir&;t t
25542 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25543 s&@builddir@&$ac_builddir&;t t
25544 s&@abs_builddir@&$ac_abs_builddir&;t t
25545 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25546 s&@INSTALL@&$ac_INSTALL&;t t
25547 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25548 $ac_datarootdir_hack
25550 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25551 if $ac_cs_awk_getline; then
25552 $AWK -f "$tmp/subs.awk"
25553 else
25554 $AWK -f "$tmp/subs.awk" | $SHELL
25555 fi >$tmp/out \
25556 || as_fn_error "could not create $ac_file" "$LINENO" 5
25558 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25559 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25560 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25562 which seems to be undefined. Please make sure it is defined." >&5
25563 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25564 which seems to be undefined. Please make sure it is defined." >&2;}
25566 rm -f "$tmp/stdin"
25567 case $ac_file in
25568 -) cat "$tmp/out" && rm -f "$tmp/out";;
25569 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25570 esac \
25571 || as_fn_error "could not create $ac_file" "$LINENO" 5
25575 # CONFIG_HEADER
25577 if test x"$ac_file" != x-; then
25579 $as_echo "/* $configure_input */" \
25580 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25581 } >"$tmp/config.h" \
25582 || as_fn_error "could not create $ac_file" "$LINENO" 5
25583 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25584 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25585 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25586 else
25587 rm -f "$ac_file"
25588 mv "$tmp/config.h" "$ac_file" \
25589 || as_fn_error "could not create $ac_file" "$LINENO" 5
25591 else
25592 $as_echo "/* $configure_input */" \
25593 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25594 || as_fn_error "could not create -" "$LINENO" 5
25596 # Compute "$ac_file"'s index in $config_headers.
25597 _am_arg="$ac_file"
25598 _am_stamp_count=1
25599 for _am_header in $config_headers :; do
25600 case $_am_header in
25601 $_am_arg | $_am_arg:* )
25602 break ;;
25604 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25605 esac
25606 done
25607 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25608 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25609 X"$_am_arg" : 'X\(//\)[^/]' \| \
25610 X"$_am_arg" : 'X\(//\)$' \| \
25611 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25612 $as_echo X"$_am_arg" |
25613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25614 s//\1/
25617 /^X\(\/\/\)[^/].*/{
25618 s//\1/
25621 /^X\(\/\/\)$/{
25622 s//\1/
25625 /^X\(\/\).*/{
25626 s//\1/
25629 s/.*/./; q'`/stamp-h$_am_stamp_count
25632 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25633 $as_echo "$as_me: executing $ac_file commands" >&6;}
25635 esac
25638 case $ac_file$ac_mode in
25639 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25640 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25641 # are listed without --file. Let's play safe and only enable the eval
25642 # if we detect the quoting.
25643 case $CONFIG_FILES in
25644 *\'*) eval set x "$CONFIG_FILES" ;;
25645 *) set x $CONFIG_FILES ;;
25646 esac
25647 shift
25648 for mf
25650 # Strip MF so we end up with the name of the file.
25651 mf=`echo "$mf" | sed -e 's/:.*$//'`
25652 # Check whether this is an Automake generated Makefile or not.
25653 # We used to match only the files named `Makefile.in', but
25654 # some people rename them; so instead we look at the file content.
25655 # Grep'ing the first line is not enough: some people post-process
25656 # each Makefile.in and add a new line on top of each file to say so.
25657 # Grep'ing the whole file is not good either: AIX grep has a line
25658 # limit of 2048, but all sed's we know have understand at least 4000.
25659 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25660 dirpart=`$as_dirname -- "$mf" ||
25661 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25662 X"$mf" : 'X\(//\)[^/]' \| \
25663 X"$mf" : 'X\(//\)$' \| \
25664 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25665 $as_echo X"$mf" |
25666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25667 s//\1/
25670 /^X\(\/\/\)[^/].*/{
25671 s//\1/
25674 /^X\(\/\/\)$/{
25675 s//\1/
25678 /^X\(\/\).*/{
25679 s//\1/
25682 s/.*/./; q'`
25683 else
25684 continue
25686 # Extract the definition of DEPDIR, am__include, and am__quote
25687 # from the Makefile without running `make'.
25688 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25689 test -z "$DEPDIR" && continue
25690 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25691 test -z "am__include" && continue
25692 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25693 # When using ansi2knr, U may be empty or an underscore; expand it
25694 U=`sed -n 's/^U = //p' < "$mf"`
25695 # Find all dependency output files, they are included files with
25696 # $(DEPDIR) in their names. We invoke sed twice because it is the
25697 # simplest approach to changing $(DEPDIR) to its actual value in the
25698 # expansion.
25699 for file in `sed -n "
25700 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25701 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25702 # Make sure the directory exists.
25703 test -f "$dirpart/$file" && continue
25704 fdir=`$as_dirname -- "$file" ||
25705 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25706 X"$file" : 'X\(//\)[^/]' \| \
25707 X"$file" : 'X\(//\)$' \| \
25708 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25709 $as_echo X"$file" |
25710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25711 s//\1/
25714 /^X\(\/\/\)[^/].*/{
25715 s//\1/
25718 /^X\(\/\/\)$/{
25719 s//\1/
25722 /^X\(\/\).*/{
25723 s//\1/
25726 s/.*/./; q'`
25727 as_dir=$dirpart/$fdir; as_fn_mkdir_p
25728 # echo "creating $dirpart/$file"
25729 echo '# dummy' > "$dirpart/$file"
25730 done
25731 done
25734 "mkdirs":C)
25735 for dir in etc lisp ; do
25736 test -d ${dir} || mkdir ${dir}
25737 done
25739 "epaths":C)
25740 echo creating src/epaths.h
25741 ${MAKE-make} epaths-force
25743 "gdbinit":C)
25744 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25745 echo creating src/.gdbinit
25746 echo source $srcdir/src/.gdbinit > src/.gdbinit
25750 esac
25751 done # for ac_tag
25754 as_fn_exit 0
25755 _ACEOF
25756 ac_clean_files=$ac_clean_files_save
25758 test $ac_write_fail = 0 ||
25759 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
25762 # configure is writing to config.log, and then calls config.status.
25763 # config.status does its own redirection, appending to config.log.
25764 # Unfortunately, on DOS this fails, as config.log is still kept open
25765 # by configure, so config.status won't be able to write to it; its
25766 # output is simply discarded. So we exec the FD to /dev/null,
25767 # effectively closing config.log, so it can be properly (re)opened and
25768 # appended to by config.status. When coming back to configure, we
25769 # need to make the FD available again.
25770 if test "$no_create" != yes; then
25771 ac_cs_success=:
25772 ac_config_status_args=
25773 test "$silent" = yes &&
25774 ac_config_status_args="$ac_config_status_args --quiet"
25775 exec 5>/dev/null
25776 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25777 exec 5>>config.log
25778 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25779 # would make configure fail if this is the last instruction.
25780 $ac_cs_success || as_fn_exit $?
25782 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25784 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}