src/w32.c (init_environment): Warn about defaulting HOME to C:\.
[emacs.git] / autogen / configure
blob4cea9aa64340627e4fd590fd7cdccc34f51ee9e3
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 WINDOW_SUPPORT
607 TOOLTIP_SUPPORT
608 MOUSE_SUPPORT
609 LIB_GCC
610 LD_FIRSTFLAG
611 LD_SWITCH_SYSTEM_TEMACS
612 POST_ALLOC_OBJ
613 PRE_ALLOC_OBJ
614 CYGWIN_OBJ
615 RALLOC_OBJ
616 OLDXMENU_DEPS
617 LIBX_OTHER
618 LIBXMENU
619 OLDXMENU
620 OLDXMENU_TARGET
621 LIBXT_OTHER
622 TOOLKIT_LIBW
623 WIDGET_OBJ
624 XOBJ
625 XMENU_OBJ
626 FONT_OBJ
627 OTHER_FILES
628 GNU_OBJC_CFLAGS
629 ns_appsrc
630 ns_appresdir
631 ns_appbindir
632 ns_appdir
633 S_FILE
634 M_FILE
635 X_TOOLKIT_TYPE
636 C_SWITCH_X_SYSTEM
637 C_SWITCH_X_SITE
638 LD_SWITCH_X_SITE
639 gameuser
640 gamedir
641 bitmapdir
642 archlibdir
643 etcdir
644 x_default_search_path
645 lisppath
646 locallisppath
647 lispdir
648 srcdir
649 canonical
650 configuration
651 version
652 KRB4LIB
653 DESLIB
654 KRB5LIB
655 CRYPTOLIB
656 COM_ERRLIB
657 LIBRESOLV
658 LIBHESIOD
659 TERMCAP_OBJ
660 LIBS_TERMCAP
661 LIBGNU_LTLIBDEPS
662 LIBGNU_LIBDEPS
663 gltests_WITNESS
664 HAVE_UNISTD_H
665 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
666 NEXT_UNISTD_H
667 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
668 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
669 TIME_H_DEFINES_STRUCT_TIMESPEC
670 NEXT_AS_FIRST_DIRECTIVE_TIME_H
671 NEXT_TIME_H
672 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
673 NEXT_SYS_STAT_H
674 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
675 NEXT_STDLIB_H
676 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
677 NEXT_STDIO_H
678 REPLACE_VSPRINTF
679 REPLACE_VSNPRINTF
680 REPLACE_VPRINTF
681 REPLACE_VFPRINTF
682 REPLACE_VDPRINTF
683 REPLACE_VASPRINTF
684 REPLACE_TMPFILE
685 REPLACE_STDIO_WRITE_FUNCS
686 REPLACE_STDIO_READ_FUNCS
687 REPLACE_SPRINTF
688 REPLACE_SNPRINTF
689 REPLACE_RENAMEAT
690 REPLACE_RENAME
691 REPLACE_REMOVE
692 REPLACE_PRINTF
693 REPLACE_POPEN
694 REPLACE_PERROR
695 REPLACE_OBSTACK_PRINTF
696 REPLACE_GETLINE
697 REPLACE_GETDELIM
698 REPLACE_FTELLO
699 REPLACE_FTELL
700 REPLACE_FSEEKO
701 REPLACE_FSEEK
702 REPLACE_FREOPEN
703 REPLACE_FPURGE
704 REPLACE_FPRINTF
705 REPLACE_FOPEN
706 REPLACE_FFLUSH
707 REPLACE_FCLOSE
708 REPLACE_DPRINTF
709 HAVE_VDPRINTF
710 HAVE_VASPRINTF
711 HAVE_RENAMEAT
712 HAVE_FTELLO
713 HAVE_FSEEKO
714 HAVE_DPRINTF
715 HAVE_DECL_VSNPRINTF
716 HAVE_DECL_SNPRINTF
717 HAVE_DECL_OBSTACK_PRINTF
718 HAVE_DECL_GETLINE
719 HAVE_DECL_GETDELIM
720 HAVE_DECL_FTELLO
721 HAVE_DECL_FSEEKO
722 HAVE_DECL_FPURGE
723 GNULIB_VSPRINTF_POSIX
724 GNULIB_VSNPRINTF
725 GNULIB_VPRINTF_POSIX
726 GNULIB_VPRINTF
727 GNULIB_VFPRINTF_POSIX
728 GNULIB_VFPRINTF
729 GNULIB_VDPRINTF
730 GNULIB_VSCANF
731 GNULIB_VFSCANF
732 GNULIB_VASPRINTF
733 GNULIB_TMPFILE
734 GNULIB_STDIO_H_SIGPIPE
735 GNULIB_STDIO_H_NONBLOCKING
736 GNULIB_SPRINTF_POSIX
737 GNULIB_SNPRINTF
738 GNULIB_SCANF
739 GNULIB_RENAMEAT
740 GNULIB_RENAME
741 GNULIB_REMOVE
742 GNULIB_PUTS
743 GNULIB_PUTCHAR
744 GNULIB_PUTC
745 GNULIB_PRINTF_POSIX
746 GNULIB_PRINTF
747 GNULIB_POPEN
748 GNULIB_PERROR
749 GNULIB_OBSTACK_PRINTF_POSIX
750 GNULIB_OBSTACK_PRINTF
751 GNULIB_GETS
752 GNULIB_GETLINE
753 GNULIB_GETDELIM
754 GNULIB_GETCHAR
755 GNULIB_GETC
756 GNULIB_FWRITE
757 GNULIB_FTELLO
758 GNULIB_FTELL
759 GNULIB_FSEEKO
760 GNULIB_FSEEK
761 GNULIB_FSCANF
762 GNULIB_FREOPEN
763 GNULIB_FREAD
764 GNULIB_FPUTS
765 GNULIB_FPUTC
766 GNULIB_FPURGE
767 GNULIB_FPRINTF_POSIX
768 GNULIB_FPRINTF
769 GNULIB_FOPEN
770 GNULIB_FGETS
771 GNULIB_FGETC
772 GNULIB_FFLUSH
773 GNULIB_FCLOSE
774 GNULIB_DPRINTF
775 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
776 NEXT_STDDEF_H
777 GL_GENERATE_STDDEF_H_FALSE
778 GL_GENERATE_STDDEF_H_TRUE
779 STDDEF_H
780 HAVE_WCHAR_T
781 REPLACE_NULL
782 HAVE__BOOL
783 GL_GENERATE_STDBOOL_H_FALSE
784 GL_GENERATE_STDBOOL_H_TRUE
785 STDBOOL_H
786 REPLACE_TIMEGM
787 REPLACE_NANOSLEEP
788 REPLACE_MKTIME
789 REPLACE_LOCALTIME_R
790 HAVE_TIMEGM
791 HAVE_STRPTIME
792 HAVE_NANOSLEEP
793 HAVE_DECL_LOCALTIME_R
794 GNULIB_TIME_R
795 GNULIB_TIMEGM
796 GNULIB_STRPTIME
797 GNULIB_NANOSLEEP
798 GNULIB_MKTIME
799 REPLACE_UTIMENSAT
800 REPLACE_STAT
801 REPLACE_MKNOD
802 REPLACE_MKFIFO
803 REPLACE_MKDIR
804 REPLACE_LSTAT
805 REPLACE_FUTIMENS
806 REPLACE_FSTATAT
807 REPLACE_FSTAT
808 HAVE_UTIMENSAT
809 HAVE_MKNODAT
810 HAVE_MKNOD
811 HAVE_MKFIFOAT
812 HAVE_MKFIFO
813 HAVE_MKDIRAT
814 HAVE_LSTAT
815 HAVE_LCHMOD
816 HAVE_FUTIMENS
817 HAVE_FSTATAT
818 HAVE_FCHMODAT
819 GNULIB_UTIMENSAT
820 GNULIB_STAT
821 GNULIB_MKNODAT
822 GNULIB_MKNOD
823 GNULIB_MKFIFOAT
824 GNULIB_MKFIFO
825 GNULIB_MKDIRAT
826 GNULIB_LSTAT
827 GNULIB_LCHMOD
828 GNULIB_FUTIMENS
829 GNULIB_FSTATAT
830 GNULIB_FCHMODAT
831 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
832 NEXT_INTTYPES_H
833 UINT64_MAX_EQ_ULONG_MAX
834 UINT32_MAX_LT_UINTMAX_MAX
835 PRIPTR_PREFIX
836 PRI_MACROS_BROKEN
837 INT64_MAX_EQ_LONG_MAX
838 INT32_MAX_LT_INTMAX_MAX
839 HAVE_DECL_STRTOUMAX
840 HAVE_DECL_STRTOIMAX
841 HAVE_DECL_IMAXDIV
842 HAVE_DECL_IMAXABS
843 GNULIB_STRTOUMAX
844 GNULIB_STRTOIMAX
845 GNULIB_IMAXDIV
846 GNULIB_IMAXABS
847 GL_GENERATE_STDINT_H_FALSE
848 GL_GENERATE_STDINT_H_TRUE
849 STDINT_H
850 WINT_T_SUFFIX
851 WCHAR_T_SUFFIX
852 SIG_ATOMIC_T_SUFFIX
853 SIZE_T_SUFFIX
854 PTRDIFF_T_SUFFIX
855 HAVE_SIGNED_WINT_T
856 HAVE_SIGNED_WCHAR_T
857 HAVE_SIGNED_SIG_ATOMIC_T
858 BITSIZEOF_WINT_T
859 BITSIZEOF_WCHAR_T
860 BITSIZEOF_SIG_ATOMIC_T
861 BITSIZEOF_SIZE_T
862 BITSIZEOF_PTRDIFF_T
863 APPLE_UNIVERSAL_BUILD
864 HAVE_SYS_BITYPES_H
865 HAVE_SYS_INTTYPES_H
866 HAVE_STDINT_H
867 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
868 NEXT_STDINT_H
869 HAVE_SYS_TYPES_H
870 HAVE_INTTYPES_H
871 HAVE_WCHAR_H
872 HAVE_UNSIGNED_LONG_LONG_INT
873 HAVE_LONG_LONG_INT
874 LTLIBINTL
875 LIBINTL
876 GETOPT_H
877 HAVE_GETOPT_H
878 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
879 NEXT_GETOPT_H
880 PRAGMA_COLUMNS
881 PRAGMA_SYSTEM_HEADER
882 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
883 INCLUDE_NEXT
884 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
885 UNISTD_H_HAVE_WINSOCK2_H
886 REPLACE_WRITE
887 REPLACE_USLEEP
888 REPLACE_UNLINKAT
889 REPLACE_UNLINK
890 REPLACE_TTYNAME_R
891 REPLACE_SYMLINK
892 REPLACE_SLEEP
893 REPLACE_RMDIR
894 REPLACE_READLINK
895 REPLACE_READ
896 REPLACE_PWRITE
897 REPLACE_PREAD
898 REPLACE_LSEEK
899 REPLACE_LINKAT
900 REPLACE_LINK
901 REPLACE_LCHOWN
902 REPLACE_GETPAGESIZE
903 REPLACE_GETGROUPS
904 REPLACE_GETLOGIN_R
905 REPLACE_GETDOMAINNAME
906 REPLACE_GETCWD
907 REPLACE_FCHOWNAT
908 REPLACE_DUP2
909 REPLACE_DUP
910 REPLACE_CLOSE
911 REPLACE_CHOWN
912 HAVE_SYS_PARAM_H
913 HAVE_OS_H
914 HAVE_DECL_TTYNAME_R
915 HAVE_DECL_GETUSERSHELL
916 HAVE_DECL_GETPAGESIZE
917 HAVE_DECL_GETLOGIN_R
918 HAVE_DECL_GETDOMAINNAME
919 HAVE_DECL_FCHDIR
920 HAVE_DECL_ENVIRON
921 HAVE_USLEEP
922 HAVE_UNLINKAT
923 HAVE_SYMLINKAT
924 HAVE_SYMLINK
925 HAVE_SLEEP
926 HAVE_READLINKAT
927 HAVE_READLINK
928 HAVE_PWRITE
929 HAVE_PREAD
930 HAVE_PIPE2
931 HAVE_PIPE
932 HAVE_LINKAT
933 HAVE_LINK
934 HAVE_LCHOWN
935 HAVE_GETPAGESIZE
936 HAVE_GETLOGIN
937 HAVE_GETHOSTNAME
938 HAVE_GETGROUPS
939 HAVE_GETDTABLESIZE
940 HAVE_FTRUNCATE
941 HAVE_FSYNC
942 HAVE_FCHOWNAT
943 HAVE_FCHDIR
944 HAVE_FACCESSAT
945 HAVE_EUIDACCESS
946 HAVE_DUP3
947 HAVE_DUP2
948 HAVE_CHOWN
949 GNULIB_WRITE
950 GNULIB_USLEEP
951 GNULIB_UNLINKAT
952 GNULIB_UNLINK
953 GNULIB_UNISTD_H_SIGPIPE
954 GNULIB_UNISTD_H_NONBLOCKING
955 GNULIB_UNISTD_H_GETOPT
956 GNULIB_TTYNAME_R
957 GNULIB_SYMLINKAT
958 GNULIB_SYMLINK
959 GNULIB_SLEEP
960 GNULIB_RMDIR
961 GNULIB_READLINKAT
962 GNULIB_READLINK
963 GNULIB_READ
964 GNULIB_PWRITE
965 GNULIB_PREAD
966 GNULIB_PIPE2
967 GNULIB_PIPE
968 GNULIB_LSEEK
969 GNULIB_LINKAT
970 GNULIB_LINK
971 GNULIB_LCHOWN
972 GNULIB_GETUSERSHELL
973 GNULIB_GETPAGESIZE
974 GNULIB_GETLOGIN_R
975 GNULIB_GETLOGIN
976 GNULIB_GETHOSTNAME
977 GNULIB_GETGROUPS
978 GNULIB_GETDTABLESIZE
979 GNULIB_GETDOMAINNAME
980 GNULIB_GETCWD
981 GNULIB_FTRUNCATE
982 GNULIB_FSYNC
983 GNULIB_FCHOWNAT
984 GNULIB_FCHDIR
985 GNULIB_FACCESSAT
986 GNULIB_EUIDACCESS
987 GNULIB_ENVIRON
988 GNULIB_DUP3
989 GNULIB_DUP2
990 GNULIB_CLOSE
991 GNULIB_CHOWN
992 GETLOADAVG_LIBS
993 REPLACE_WCTOMB
994 REPLACE_UNSETENV
995 REPLACE_STRTOD
996 REPLACE_SETENV
997 REPLACE_REALPATH
998 REPLACE_REALLOC
999 REPLACE_PUTENV
1000 REPLACE_MKSTEMP
1001 REPLACE_MBTOWC
1002 REPLACE_MALLOC
1003 REPLACE_CANONICALIZE_FILE_NAME
1004 REPLACE_CALLOC
1005 HAVE_DECL_UNSETENV
1006 HAVE_UNLOCKPT
1007 HAVE_SYS_LOADAVG_H
1008 HAVE_STRUCT_RANDOM_DATA
1009 HAVE_STRTOULL
1010 HAVE_STRTOLL
1011 HAVE_STRTOD
1012 HAVE_DECL_SETENV
1013 HAVE_SETENV
1014 HAVE_RPMATCH
1015 HAVE_REALPATH
1016 HAVE_RANDOM_R
1017 HAVE_RANDOM_H
1018 HAVE_PTSNAME
1019 HAVE_MKSTEMPS
1020 HAVE_MKSTEMP
1021 HAVE_MKOSTEMPS
1022 HAVE_MKOSTEMP
1023 HAVE_MKDTEMP
1024 HAVE_GRANTPT
1025 HAVE_GETSUBOPT
1026 HAVE_DECL_GETLOADAVG
1027 HAVE_CANONICALIZE_FILE_NAME
1028 HAVE_ATOLL
1029 HAVE__EXIT
1030 GNULIB_WCTOMB
1031 GNULIB_UNSETENV
1032 GNULIB_UNLOCKPT
1033 GNULIB_SYSTEM_POSIX
1034 GNULIB_STRTOULL
1035 GNULIB_STRTOLL
1036 GNULIB_STRTOD
1037 GNULIB_SETENV
1038 GNULIB_RPMATCH
1039 GNULIB_REALPATH
1040 GNULIB_REALLOC_POSIX
1041 GNULIB_RANDOM_R
1042 GNULIB_PUTENV
1043 GNULIB_PTSNAME
1044 GNULIB_MKSTEMPS
1045 GNULIB_MKSTEMP
1046 GNULIB_MKOSTEMPS
1047 GNULIB_MKOSTEMP
1048 GNULIB_MKDTEMP
1049 GNULIB_MBTOWC
1050 GNULIB_MALLOC_POSIX
1051 GNULIB_GRANTPT
1052 GNULIB_GETSUBOPT
1053 GNULIB_GETLOADAVG
1054 GNULIB_CANONICALIZE_FILE_NAME
1055 GNULIB_CALLOC_POSIX
1056 GNULIB_ATOLL
1057 GNULIB__EXIT
1058 GL_COND_LIBTOOL_FALSE
1059 GL_COND_LIBTOOL_TRUE
1060 BLESSMAIL_TARGET
1061 LIBS_MAIL
1062 liblockfile
1063 ALLOCA
1064 LIBXML2_LIBS
1065 LIBXML2_CFLAGS
1066 LIBXSM
1067 LIBGPM
1068 LIBGIF
1069 LIBTIFF
1070 LIBPNG
1071 LIBJPEG
1072 LIBXPM
1073 M17N_FLT_LIBS
1074 M17N_FLT_CFLAGS
1075 LIBOTF_LIBS
1076 LIBOTF_CFLAGS
1077 FREETYPE_LIBS
1078 FREETYPE_CFLAGS
1079 XFT_LIBS
1080 XFT_CFLAGS
1081 FONTCONFIG_LIBS
1082 FONTCONFIG_CFLAGS
1083 LIBXMU
1084 LIBXTR6
1085 LIBGNUTLS_LIBS
1086 LIBGNUTLS_CFLAGS
1087 LIBSELINUX_LIBS
1088 GCONF_LIBS
1089 GCONF_CFLAGS
1090 DBUS_OBJ
1091 DBUS_LIBS
1092 DBUS_CFLAGS
1093 GTK_OBJ
1094 GTK_LIBS
1095 GTK_CFLAGS
1096 IMAGEMAGICK_LIBS
1097 IMAGEMAGICK_CFLAGS
1098 RSVG_LIBS
1099 RSVG_CFLAGS
1100 VMLIMIT_OBJ
1101 GMALLOC_OBJ
1102 HAVE_XSERVER
1103 LIB_STANDARD
1104 NS_SUPPORT
1105 NS_OBJC_OBJ
1106 NS_OBJ
1107 TEMACS_LDFLAGS2
1108 LD_SWITCH_X_SITE_AUX_RPATH
1109 LD_SWITCH_X_SITE_AUX
1110 XMKMF
1111 DEPFLAGS
1112 MKDEPDIR
1113 CFLAGS_SOUND
1114 ALSA_LIBS
1115 ALSA_CFLAGS
1116 PKG_CONFIG
1117 LIBSOUND
1118 START_FILES
1119 LIB_MATH
1120 CRT_DIR
1121 LIBS_SYSTEM
1122 C_SWITCH_SYSTEM
1123 UNEXEC_OBJ
1124 C_SWITCH_MACHINE
1125 LD_SWITCH_SYSTEM
1126 CANNOT_DUMP
1127 HAVE_MAKEINFO
1128 GZIP_PROG
1129 INSTALL_INFO
1130 C_WARNINGS_SWITCH
1131 EGREP
1132 GREP
1134 RANLIB
1135 am__fastdepCC_FALSE
1136 am__fastdepCC_TRUE
1137 CCDEPMODE
1138 AMDEPBACKSLASH
1139 AMDEP_FALSE
1140 AMDEP_TRUE
1141 am__quote
1142 am__include
1143 DEPDIR
1144 OBJEXT
1145 EXEEXT
1146 ac_ct_CC
1147 CPPFLAGS
1148 LDFLAGS
1149 CFLAGS
1151 host_os
1152 host_vendor
1153 host_cpu
1154 host
1155 build_os
1156 build_vendor
1157 build_cpu
1158 build
1159 PROFILING_CFLAGS
1160 MAINT
1161 GZIP_INFO
1162 am__untar
1163 am__tar
1164 AMTAR
1165 am__leading_dot
1166 SET_MAKE
1168 mkdir_p
1169 MKDIR_P
1170 INSTALL_STRIP_PROGRAM
1171 STRIP
1172 install_sh
1173 MAKEINFO
1174 AUTOHEADER
1175 AUTOMAKE
1176 AUTOCONF
1177 ACLOCAL
1178 VERSION
1179 PACKAGE
1180 CYGPATH_W
1181 am__isrc
1182 INSTALL_DATA
1183 INSTALL_SCRIPT
1184 INSTALL_PROGRAM
1185 target_alias
1186 host_alias
1187 build_alias
1188 LIBS
1189 ECHO_T
1190 ECHO_N
1191 ECHO_C
1192 DEFS
1193 mandir
1194 localedir
1195 libdir
1196 psdir
1197 pdfdir
1198 dvidir
1199 htmldir
1200 infodir
1201 docdir
1202 oldincludedir
1203 includedir
1204 localstatedir
1205 sharedstatedir
1206 sysconfdir
1207 datadir
1208 datarootdir
1209 libexecdir
1210 sbindir
1211 bindir
1212 program_transform_name
1213 prefix
1214 exec_prefix
1215 PACKAGE_URL
1216 PACKAGE_BUGREPORT
1217 PACKAGE_STRING
1218 PACKAGE_VERSION
1219 PACKAGE_TARNAME
1220 PACKAGE_NAME
1221 PATH_SEPARATOR
1222 SHELL'
1223 ac_subst_files='deps_frag
1224 ns_frag'
1225 ac_user_opts='
1226 enable_option_checking
1227 with_pop
1228 with_kerberos
1229 with_kerberos5
1230 with_hesiod
1231 with_mmdf
1232 with_mail_unlink
1233 with_mailhost
1234 with_sound
1235 with_sync_input
1236 with_x_toolkit
1237 with_xpm
1238 with_jpeg
1239 with_tiff
1240 with_gif
1241 with_png
1242 with_rsvg
1243 with_xml2
1244 with_imagemagick
1245 with_xft
1246 with_libotf
1247 with_m17n_flt
1248 with_toolkit_scroll_bars
1249 with_xaw3d
1250 with_xim
1251 with_ns
1252 with_gpm
1253 with_dbus
1254 with_gconf
1255 with_selinux
1256 with_gnutls
1257 with_makeinfo
1258 with_compress_info
1259 with_pkg_config_prog
1260 with_crt_dir
1261 with_gameuser
1262 with_gnustep_conf
1263 enable_ns_self_contained
1264 enable_asserts
1265 enable_maintainer_mode
1266 enable_locallisppath
1267 enable_checking
1268 enable_use_lisp_union_type
1269 enable_profiling
1270 enable_autodepend
1271 enable_dependency_tracking
1272 enable_largefile
1273 with_x
1275 ac_precious_vars='build_alias
1276 host_alias
1277 target_alias
1279 CFLAGS
1280 LDFLAGS
1281 LIBS
1282 CPPFLAGS
1284 XMKMF'
1287 # Initialize some variables set by options.
1288 ac_init_help=
1289 ac_init_version=false
1290 ac_unrecognized_opts=
1291 ac_unrecognized_sep=
1292 # The variables have the same names as the options, with
1293 # dashes changed to underlines.
1294 cache_file=/dev/null
1295 exec_prefix=NONE
1296 no_create=
1297 no_recursion=
1298 prefix=NONE
1299 program_prefix=NONE
1300 program_suffix=NONE
1301 program_transform_name=s,x,x,
1302 silent=
1303 site=
1304 srcdir=
1305 verbose=
1306 x_includes=NONE
1307 x_libraries=NONE
1309 # Installation directory options.
1310 # These are left unexpanded so users can "make install exec_prefix=/foo"
1311 # and all the variables that are supposed to be based on exec_prefix
1312 # by default will actually change.
1313 # Use braces instead of parens because sh, perl, etc. also accept them.
1314 # (The list follows the same order as the GNU Coding Standards.)
1315 bindir='${exec_prefix}/bin'
1316 sbindir='${exec_prefix}/sbin'
1317 libexecdir='${exec_prefix}/libexec'
1318 datarootdir='${prefix}/share'
1319 datadir='${datarootdir}'
1320 sysconfdir='${prefix}/etc'
1321 sharedstatedir='${prefix}/com'
1322 localstatedir='${prefix}/var'
1323 includedir='${prefix}/include'
1324 oldincludedir='/usr/include'
1325 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1326 infodir='${datarootdir}/info'
1327 htmldir='${docdir}'
1328 dvidir='${docdir}'
1329 pdfdir='${docdir}'
1330 psdir='${docdir}'
1331 libdir='${exec_prefix}/lib'
1332 localedir='${datarootdir}/locale'
1333 mandir='${datarootdir}/man'
1335 ac_prev=
1336 ac_dashdash=
1337 for ac_option
1339 # If the previous option needs an argument, assign it.
1340 if test -n "$ac_prev"; then
1341 eval $ac_prev=\$ac_option
1342 ac_prev=
1343 continue
1346 case $ac_option in
1347 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1348 *) ac_optarg=yes ;;
1349 esac
1351 # Accept the important Cygnus configure options, so we can diagnose typos.
1353 case $ac_dashdash$ac_option in
1355 ac_dashdash=yes ;;
1357 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1358 ac_prev=bindir ;;
1359 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1360 bindir=$ac_optarg ;;
1362 -build | --build | --buil | --bui | --bu)
1363 ac_prev=build_alias ;;
1364 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1365 build_alias=$ac_optarg ;;
1367 -cache-file | --cache-file | --cache-fil | --cache-fi \
1368 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1369 ac_prev=cache_file ;;
1370 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1371 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1372 cache_file=$ac_optarg ;;
1374 --config-cache | -C)
1375 cache_file=config.cache ;;
1377 -datadir | --datadir | --datadi | --datad)
1378 ac_prev=datadir ;;
1379 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1380 datadir=$ac_optarg ;;
1382 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1383 | --dataroo | --dataro | --datar)
1384 ac_prev=datarootdir ;;
1385 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1386 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1387 datarootdir=$ac_optarg ;;
1389 -disable-* | --disable-*)
1390 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1391 # Reject names that are not valid shell variable names.
1392 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1393 as_fn_error "invalid feature name: $ac_useropt"
1394 ac_useropt_orig=$ac_useropt
1395 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1396 case $ac_user_opts in
1398 "enable_$ac_useropt"
1399 "*) ;;
1400 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1401 ac_unrecognized_sep=', ';;
1402 esac
1403 eval enable_$ac_useropt=no ;;
1405 -docdir | --docdir | --docdi | --doc | --do)
1406 ac_prev=docdir ;;
1407 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1408 docdir=$ac_optarg ;;
1410 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1411 ac_prev=dvidir ;;
1412 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1413 dvidir=$ac_optarg ;;
1415 -enable-* | --enable-*)
1416 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1417 # Reject names that are not valid shell variable names.
1418 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1419 as_fn_error "invalid feature name: $ac_useropt"
1420 ac_useropt_orig=$ac_useropt
1421 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1422 case $ac_user_opts in
1424 "enable_$ac_useropt"
1425 "*) ;;
1426 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1427 ac_unrecognized_sep=', ';;
1428 esac
1429 eval enable_$ac_useropt=\$ac_optarg ;;
1431 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1432 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1433 | --exec | --exe | --ex)
1434 ac_prev=exec_prefix ;;
1435 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1436 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1437 | --exec=* | --exe=* | --ex=*)
1438 exec_prefix=$ac_optarg ;;
1440 -gas | --gas | --ga | --g)
1441 # Obsolete; use --with-gas.
1442 with_gas=yes ;;
1444 -help | --help | --hel | --he | -h)
1445 ac_init_help=long ;;
1446 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1447 ac_init_help=recursive ;;
1448 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1449 ac_init_help=short ;;
1451 -host | --host | --hos | --ho)
1452 ac_prev=host_alias ;;
1453 -host=* | --host=* | --hos=* | --ho=*)
1454 host_alias=$ac_optarg ;;
1456 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1457 ac_prev=htmldir ;;
1458 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1459 | --ht=*)
1460 htmldir=$ac_optarg ;;
1462 -includedir | --includedir | --includedi | --included | --include \
1463 | --includ | --inclu | --incl | --inc)
1464 ac_prev=includedir ;;
1465 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1466 | --includ=* | --inclu=* | --incl=* | --inc=*)
1467 includedir=$ac_optarg ;;
1469 -infodir | --infodir | --infodi | --infod | --info | --inf)
1470 ac_prev=infodir ;;
1471 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1472 infodir=$ac_optarg ;;
1474 -libdir | --libdir | --libdi | --libd)
1475 ac_prev=libdir ;;
1476 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1477 libdir=$ac_optarg ;;
1479 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1480 | --libexe | --libex | --libe)
1481 ac_prev=libexecdir ;;
1482 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1483 | --libexe=* | --libex=* | --libe=*)
1484 libexecdir=$ac_optarg ;;
1486 -localedir | --localedir | --localedi | --localed | --locale)
1487 ac_prev=localedir ;;
1488 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1489 localedir=$ac_optarg ;;
1491 -localstatedir | --localstatedir | --localstatedi | --localstated \
1492 | --localstate | --localstat | --localsta | --localst | --locals)
1493 ac_prev=localstatedir ;;
1494 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1495 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1496 localstatedir=$ac_optarg ;;
1498 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1499 ac_prev=mandir ;;
1500 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1501 mandir=$ac_optarg ;;
1503 -nfp | --nfp | --nf)
1504 # Obsolete; use --without-fp.
1505 with_fp=no ;;
1507 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1508 | --no-cr | --no-c | -n)
1509 no_create=yes ;;
1511 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1512 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1513 no_recursion=yes ;;
1515 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1516 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1517 | --oldin | --oldi | --old | --ol | --o)
1518 ac_prev=oldincludedir ;;
1519 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1520 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1521 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1522 oldincludedir=$ac_optarg ;;
1524 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1525 ac_prev=prefix ;;
1526 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1527 prefix=$ac_optarg ;;
1529 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1530 | --program-pre | --program-pr | --program-p)
1531 ac_prev=program_prefix ;;
1532 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1533 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1534 program_prefix=$ac_optarg ;;
1536 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1537 | --program-suf | --program-su | --program-s)
1538 ac_prev=program_suffix ;;
1539 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1540 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1541 program_suffix=$ac_optarg ;;
1543 -program-transform-name | --program-transform-name \
1544 | --program-transform-nam | --program-transform-na \
1545 | --program-transform-n | --program-transform- \
1546 | --program-transform | --program-transfor \
1547 | --program-transfo | --program-transf \
1548 | --program-trans | --program-tran \
1549 | --progr-tra | --program-tr | --program-t)
1550 ac_prev=program_transform_name ;;
1551 -program-transform-name=* | --program-transform-name=* \
1552 | --program-transform-nam=* | --program-transform-na=* \
1553 | --program-transform-n=* | --program-transform-=* \
1554 | --program-transform=* | --program-transfor=* \
1555 | --program-transfo=* | --program-transf=* \
1556 | --program-trans=* | --program-tran=* \
1557 | --progr-tra=* | --program-tr=* | --program-t=*)
1558 program_transform_name=$ac_optarg ;;
1560 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1561 ac_prev=pdfdir ;;
1562 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1563 pdfdir=$ac_optarg ;;
1565 -psdir | --psdir | --psdi | --psd | --ps)
1566 ac_prev=psdir ;;
1567 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1568 psdir=$ac_optarg ;;
1570 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1571 | -silent | --silent | --silen | --sile | --sil)
1572 silent=yes ;;
1574 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1575 ac_prev=sbindir ;;
1576 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1577 | --sbi=* | --sb=*)
1578 sbindir=$ac_optarg ;;
1580 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1581 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1582 | --sharedst | --shareds | --shared | --share | --shar \
1583 | --sha | --sh)
1584 ac_prev=sharedstatedir ;;
1585 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1586 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1587 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1588 | --sha=* | --sh=*)
1589 sharedstatedir=$ac_optarg ;;
1591 -site | --site | --sit)
1592 ac_prev=site ;;
1593 -site=* | --site=* | --sit=*)
1594 site=$ac_optarg ;;
1596 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1597 ac_prev=srcdir ;;
1598 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1599 srcdir=$ac_optarg ;;
1601 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1602 | --syscon | --sysco | --sysc | --sys | --sy)
1603 ac_prev=sysconfdir ;;
1604 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1605 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1606 sysconfdir=$ac_optarg ;;
1608 -target | --target | --targe | --targ | --tar | --ta | --t)
1609 ac_prev=target_alias ;;
1610 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1611 target_alias=$ac_optarg ;;
1613 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1614 verbose=yes ;;
1616 -version | --version | --versio | --versi | --vers | -V)
1617 ac_init_version=: ;;
1619 -with-* | --with-*)
1620 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1621 # Reject names that are not valid shell variable names.
1622 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1623 as_fn_error "invalid package name: $ac_useropt"
1624 ac_useropt_orig=$ac_useropt
1625 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1626 case $ac_user_opts in
1628 "with_$ac_useropt"
1629 "*) ;;
1630 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1631 ac_unrecognized_sep=', ';;
1632 esac
1633 eval with_$ac_useropt=\$ac_optarg ;;
1635 -without-* | --without-*)
1636 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1637 # Reject names that are not valid shell variable names.
1638 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1639 as_fn_error "invalid package name: $ac_useropt"
1640 ac_useropt_orig=$ac_useropt
1641 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1642 case $ac_user_opts in
1644 "with_$ac_useropt"
1645 "*) ;;
1646 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1647 ac_unrecognized_sep=', ';;
1648 esac
1649 eval with_$ac_useropt=no ;;
1651 --x)
1652 # Obsolete; use --with-x.
1653 with_x=yes ;;
1655 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1656 | --x-incl | --x-inc | --x-in | --x-i)
1657 ac_prev=x_includes ;;
1658 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1659 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1660 x_includes=$ac_optarg ;;
1662 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1663 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1664 ac_prev=x_libraries ;;
1665 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1666 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1667 x_libraries=$ac_optarg ;;
1669 -*) as_fn_error "unrecognized option: \`$ac_option'
1670 Try \`$0 --help' for more information."
1673 *=*)
1674 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1675 # Reject names that are not valid shell variable names.
1676 case $ac_envvar in #(
1677 '' | [0-9]* | *[!_$as_cr_alnum]* )
1678 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1679 esac
1680 eval $ac_envvar=\$ac_optarg
1681 export $ac_envvar ;;
1684 # FIXME: should be removed in autoconf 3.0.
1685 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1686 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1687 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1688 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1691 esac
1692 done
1694 if test -n "$ac_prev"; then
1695 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1696 as_fn_error "missing argument to $ac_option"
1699 if test -n "$ac_unrecognized_opts"; then
1700 case $enable_option_checking in
1701 no) ;;
1702 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1703 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1704 esac
1707 # Check all directory arguments for consistency.
1708 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1709 datadir sysconfdir sharedstatedir localstatedir includedir \
1710 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1711 libdir localedir mandir
1713 eval ac_val=\$$ac_var
1714 # Remove trailing slashes.
1715 case $ac_val in
1716 */ )
1717 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1718 eval $ac_var=\$ac_val;;
1719 esac
1720 # Be sure to have absolute directory names.
1721 case $ac_val in
1722 [\\/$]* | ?:[\\/]* ) continue;;
1723 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1724 esac
1725 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1726 done
1728 # There might be people who depend on the old broken behavior: `$host'
1729 # used to hold the argument of --host etc.
1730 # FIXME: To remove some day.
1731 build=$build_alias
1732 host=$host_alias
1733 target=$target_alias
1735 # FIXME: To remove some day.
1736 if test "x$host_alias" != x; then
1737 if test "x$build_alias" = x; then
1738 cross_compiling=maybe
1739 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1740 If a cross compiler is detected then cross compile mode will be used." >&2
1741 elif test "x$build_alias" != "x$host_alias"; then
1742 cross_compiling=yes
1746 ac_tool_prefix=
1747 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1749 test "$silent" = yes && exec 6>/dev/null
1752 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1753 ac_ls_di=`ls -di .` &&
1754 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1755 as_fn_error "working directory cannot be determined"
1756 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1757 as_fn_error "pwd does not report name of working directory"
1760 # Find the source files, if location was not specified.
1761 if test -z "$srcdir"; then
1762 ac_srcdir_defaulted=yes
1763 # Try the directory containing this script, then the parent directory.
1764 ac_confdir=`$as_dirname -- "$as_myself" ||
1765 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1766 X"$as_myself" : 'X\(//\)[^/]' \| \
1767 X"$as_myself" : 'X\(//\)$' \| \
1768 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1769 $as_echo X"$as_myself" |
1770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1771 s//\1/
1774 /^X\(\/\/\)[^/].*/{
1775 s//\1/
1778 /^X\(\/\/\)$/{
1779 s//\1/
1782 /^X\(\/\).*/{
1783 s//\1/
1786 s/.*/./; q'`
1787 srcdir=$ac_confdir
1788 if test ! -r "$srcdir/$ac_unique_file"; then
1789 srcdir=..
1791 else
1792 ac_srcdir_defaulted=no
1794 if test ! -r "$srcdir/$ac_unique_file"; then
1795 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1796 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1798 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1799 ac_abs_confdir=`(
1800 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1801 pwd)`
1802 # When building in place, set srcdir=.
1803 if test "$ac_abs_confdir" = "$ac_pwd"; then
1804 srcdir=.
1806 # Remove unnecessary trailing slashes from srcdir.
1807 # Double slashes in file names in object file debugging info
1808 # mess up M-x gdb in Emacs.
1809 case $srcdir in
1810 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1811 esac
1812 for ac_var in $ac_precious_vars; do
1813 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1814 eval ac_env_${ac_var}_value=\$${ac_var}
1815 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1816 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1817 done
1820 # Report the --help message.
1822 if test "$ac_init_help" = "long"; then
1823 # Omit some internal or obsolete options to make the list less imposing.
1824 # This message is too long to be a string in the A/UX 3.1 sh.
1825 cat <<_ACEOF
1826 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1828 Usage: $0 [OPTION]... [VAR=VALUE]...
1830 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1831 VAR=VALUE. See below for descriptions of some of the useful variables.
1833 Defaults for the options are specified in brackets.
1835 Configuration:
1836 -h, --help display this help and exit
1837 --help=short display options specific to this package
1838 --help=recursive display the short help of all the included packages
1839 -V, --version display version information and exit
1840 -q, --quiet, --silent do not print \`checking...' messages
1841 --cache-file=FILE cache test results in FILE [disabled]
1842 -C, --config-cache alias for \`--cache-file=config.cache'
1843 -n, --no-create do not create output files
1844 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1846 Installation directories:
1847 --prefix=PREFIX install architecture-independent files in PREFIX
1848 [$ac_default_prefix]
1849 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1850 [PREFIX]
1852 By default, \`make install' will install all the files in
1853 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1854 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1855 for instance \`--prefix=\$HOME'.
1857 For better control, use the options below.
1859 Fine tuning of the installation directories:
1860 --bindir=DIR user executables [EPREFIX/bin]
1861 --sbindir=DIR system admin executables [EPREFIX/sbin]
1862 --libexecdir=DIR program executables [EPREFIX/libexec]
1863 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1864 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1865 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1866 --libdir=DIR object code libraries [EPREFIX/lib]
1867 --includedir=DIR C header files [PREFIX/include]
1868 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1869 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1870 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1871 --infodir=DIR info documentation [DATAROOTDIR/info]
1872 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1873 --mandir=DIR man documentation [DATAROOTDIR/man]
1874 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1875 --htmldir=DIR html documentation [DOCDIR]
1876 --dvidir=DIR dvi documentation [DOCDIR]
1877 --pdfdir=DIR pdf documentation [DOCDIR]
1878 --psdir=DIR ps documentation [DOCDIR]
1879 _ACEOF
1881 cat <<\_ACEOF
1883 Program names:
1884 --program-prefix=PREFIX prepend PREFIX to installed program names
1885 --program-suffix=SUFFIX append SUFFIX to installed program names
1886 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1888 X features:
1889 --x-includes=DIR X include files are in DIR
1890 --x-libraries=DIR X library files are in DIR
1892 System types:
1893 --build=BUILD configure for building on BUILD [guessed]
1894 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1895 _ACEOF
1898 if test -n "$ac_init_help"; then
1899 case $ac_init_help in
1900 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1901 esac
1902 cat <<\_ACEOF
1904 Optional Features:
1905 --disable-option-checking ignore unrecognized --enable/--with options
1906 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1907 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1908 --disable-ns-self-contained
1909 disable self contained build under NeXTstep
1910 --enable-asserts compile code with asserts enabled
1911 --enable-maintainer-mode
1912 enable make rules and dependencies not useful (and
1913 sometimes confusing) to the casual installer
1914 --enable-locallisppath=PATH
1915 directories Emacs should search for lisp files
1916 specific to this site
1917 --enable-checking[=LIST]
1918 enable expensive run-time checks. With LIST, enable
1919 only specific categories of checks. Categories are:
1920 all,yes,no. Flags are: stringbytes, stringoverrun,
1921 stringfreelist, xmallocoverrun, conslist
1922 --enable-use-lisp-union-type
1923 use a union for the Lisp_Object data type. This is
1924 only useful for development for catching certain
1925 types of bugs.
1926 --enable-profiling build emacs with profiling support. This might not
1927 work on all platforms
1928 --enable-autodepend automatically generate dependencies to .h-files.
1929 Requires GNU Make and Gcc. Enabled if GNU Make and
1930 Gcc is found
1931 --disable-dependency-tracking speeds up one-time build
1932 --enable-dependency-tracking do not reject slow dependency extractors
1933 --disable-largefile omit support for large files
1935 Optional Packages:
1936 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1937 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1938 --without-pop don't support POP mail retrieval with movemail
1939 --with-kerberos support Kerberos-authenticated POP
1940 --with-kerberos5 support Kerberos version 5 authenticated POP
1941 --with-hesiod support Hesiod to get the POP server host
1942 --with-mmdf support MMDF mailboxes
1943 --with-mail-unlink unlink, rather than empty, mail spool after reading
1944 --with-mailhost=HOSTNAME
1945 string giving default POP mail host
1946 --without-sound don't compile with sound support
1947 --without-sync-input process async input synchronously
1948 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1949 lucid or athena, motif, no)
1950 --without-xpm don't compile with XPM image support
1951 --without-jpeg don't compile with JPEG image support
1952 --without-tiff don't compile with TIFF image support
1953 --without-gif don't compile with GIF image support
1954 --without-png don't compile with PNG image support
1955 --without-rsvg don't compile with SVG image support
1956 --without-xml2 don't compile with XML parsing support
1957 --without-imagemagick don't compile with ImageMagick image support
1958 --without-xft don't use XFT for anti aliased fonts
1959 --without-libotf don't use libotf for OpenType font support
1960 --without-m17n-flt don't use m17n-flt for text shaping
1961 --without-toolkit-scroll-bars
1962 don't use Motif or Xaw3d scroll bars
1963 --without-xaw3d don't use Xaw3d
1964 --without-xim don't use X11 XIM
1965 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
1966 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1967 console
1968 --without-dbus don't compile with D-Bus support
1969 --without-gconf don't compile with GConf support
1970 --without-selinux don't compile with SELinux support
1971 --without-gnutls don't use -lgnutls for SSL/TLS support
1972 --without-makeinfo don't require makeinfo for building manuals
1973 --without-compress-info don't compress the installed Info pages
1974 --with-pkg-config-prog=PATH
1975 path to pkg-config for finding GTK and librsvg
1976 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1977 /usr/lib, or /usr/lib64 on some platforms.
1978 --with-gameuser=USER user for shared game score files
1979 --with-gnustep-conf=PATH
1980 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1981 or /etc/GNUstep/GNUstep.conf
1982 --with-x use the X Window System
1984 Some influential environment variables:
1985 CC C compiler command
1986 CFLAGS C compiler flags
1987 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1988 nonstandard directory <lib dir>
1989 LIBS libraries to pass to the linker, e.g. -l<library>
1990 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1991 you have headers in a nonstandard directory <include dir>
1992 CPP C preprocessor
1993 XMKMF Path to xmkmf, Makefile generator for X Window System
1995 Use these variables to override the choices made by `configure' or to help
1996 it to find libraries and programs with nonstandard names/locations.
1998 Report bugs to the package provider.
1999 _ACEOF
2000 ac_status=$?
2003 if test "$ac_init_help" = "recursive"; then
2004 # If there are subdirs, report their specific --help.
2005 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2006 test -d "$ac_dir" ||
2007 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2008 continue
2009 ac_builddir=.
2011 case "$ac_dir" in
2012 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2014 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2015 # A ".." for each directory in $ac_dir_suffix.
2016 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2017 case $ac_top_builddir_sub in
2018 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2019 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2020 esac ;;
2021 esac
2022 ac_abs_top_builddir=$ac_pwd
2023 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2024 # for backward compatibility:
2025 ac_top_builddir=$ac_top_build_prefix
2027 case $srcdir in
2028 .) # We are building in place.
2029 ac_srcdir=.
2030 ac_top_srcdir=$ac_top_builddir_sub
2031 ac_abs_top_srcdir=$ac_pwd ;;
2032 [\\/]* | ?:[\\/]* ) # Absolute name.
2033 ac_srcdir=$srcdir$ac_dir_suffix;
2034 ac_top_srcdir=$srcdir
2035 ac_abs_top_srcdir=$srcdir ;;
2036 *) # Relative name.
2037 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2038 ac_top_srcdir=$ac_top_build_prefix$srcdir
2039 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2040 esac
2041 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2043 cd "$ac_dir" || { ac_status=$?; continue; }
2044 # Check for guested configure.
2045 if test -f "$ac_srcdir/configure.gnu"; then
2046 echo &&
2047 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2048 elif test -f "$ac_srcdir/configure"; then
2049 echo &&
2050 $SHELL "$ac_srcdir/configure" --help=recursive
2051 else
2052 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2053 fi || ac_status=$?
2054 cd "$ac_pwd" || { ac_status=$?; break; }
2055 done
2058 test -n "$ac_init_help" && exit $ac_status
2059 if $ac_init_version; then
2060 cat <<\_ACEOF
2061 emacs configure 24.0.50
2062 generated by GNU Autoconf 2.65
2064 Copyright (C) 2009 Free Software Foundation, Inc.
2065 This configure script is free software; the Free Software Foundation
2066 gives unlimited permission to copy, distribute and modify it.
2067 _ACEOF
2068 exit
2071 ## ------------------------ ##
2072 ## Autoconf initialization. ##
2073 ## ------------------------ ##
2075 # ac_fn_c_try_compile LINENO
2076 # --------------------------
2077 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2078 ac_fn_c_try_compile ()
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 rm -f conftest.$ac_objext
2082 if { { ac_try="$ac_compile"
2083 case "(($ac_try" in
2084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2085 *) ac_try_echo=$ac_try;;
2086 esac
2087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2088 $as_echo "$ac_try_echo"; } >&5
2089 (eval "$ac_compile") 2>conftest.err
2090 ac_status=$?
2091 if test -s conftest.err; then
2092 grep -v '^ *+' conftest.err >conftest.er1
2093 cat conftest.er1 >&5
2094 mv -f conftest.er1 conftest.err
2096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2097 test $ac_status = 0; } && {
2098 test -z "$ac_c_werror_flag" ||
2099 test ! -s conftest.err
2100 } && test -s conftest.$ac_objext; then :
2101 ac_retval=0
2102 else
2103 $as_echo "$as_me: failed program was:" >&5
2104 sed 's/^/| /' conftest.$ac_ext >&5
2106 ac_retval=1
2108 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2109 as_fn_set_status $ac_retval
2111 } # ac_fn_c_try_compile
2113 # ac_fn_c_try_cpp LINENO
2114 # ----------------------
2115 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2116 ac_fn_c_try_cpp ()
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 if { { ac_try="$ac_cpp conftest.$ac_ext"
2120 case "(($ac_try" in
2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122 *) ac_try_echo=$ac_try;;
2123 esac
2124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 $as_echo "$ac_try_echo"; } >&5
2126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2127 ac_status=$?
2128 if test -s conftest.err; then
2129 grep -v '^ *+' conftest.err >conftest.er1
2130 cat conftest.er1 >&5
2131 mv -f conftest.er1 conftest.err
2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134 test $ac_status = 0; } >/dev/null && {
2135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2136 test ! -s conftest.err
2137 }; then :
2138 ac_retval=0
2139 else
2140 $as_echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2143 ac_retval=1
2145 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2146 as_fn_set_status $ac_retval
2148 } # ac_fn_c_try_cpp
2150 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2151 # -------------------------------------------------------
2152 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2153 # the include files in INCLUDES and setting the cache variable VAR
2154 # accordingly.
2155 ac_fn_c_check_header_mongrel ()
2157 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2162 $as_echo_n "(cached) " >&6
2164 eval ac_res=\$$3
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2167 else
2168 # Is the header compilable?
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2170 $as_echo_n "checking $2 usability... " >&6; }
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h. */
2174 #include <$2>
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177 ac_header_compiler=yes
2178 else
2179 ac_header_compiler=no
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2183 $as_echo "$ac_header_compiler" >&6; }
2185 # Is the header present?
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2187 $as_echo_n "checking $2 presence... " >&6; }
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2190 #include <$2>
2191 _ACEOF
2192 if ac_fn_c_try_cpp "$LINENO"; then :
2193 ac_header_preproc=yes
2194 else
2195 ac_header_preproc=no
2197 rm -f conftest.err conftest.$ac_ext
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2199 $as_echo "$ac_header_preproc" >&6; }
2201 # So? What about this header?
2202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2203 yes:no: )
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2205 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2207 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2209 no:yes:* )
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2211 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2213 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2215 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2217 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2219 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2221 esac
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2223 $as_echo_n "checking for $2... " >&6; }
2224 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2225 $as_echo_n "(cached) " >&6
2226 else
2227 eval "$3=\$ac_header_compiler"
2229 eval ac_res=\$$3
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231 $as_echo "$ac_res" >&6; }
2233 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2235 } # ac_fn_c_check_header_mongrel
2237 # ac_fn_c_try_run LINENO
2238 # ----------------------
2239 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2240 # that executables *can* be run.
2241 ac_fn_c_try_run ()
2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244 if { { ac_try="$ac_link"
2245 case "(($ac_try" in
2246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2247 *) ac_try_echo=$ac_try;;
2248 esac
2249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2250 $as_echo "$ac_try_echo"; } >&5
2251 (eval "$ac_link") 2>&5
2252 ac_status=$?
2253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2254 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2255 { { case "(($ac_try" in
2256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257 *) ac_try_echo=$ac_try;;
2258 esac
2259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2260 $as_echo "$ac_try_echo"; } >&5
2261 (eval "$ac_try") 2>&5
2262 ac_status=$?
2263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2264 test $ac_status = 0; }; }; then :
2265 ac_retval=0
2266 else
2267 $as_echo "$as_me: program exited with status $ac_status" >&5
2268 $as_echo "$as_me: failed program was:" >&5
2269 sed 's/^/| /' conftest.$ac_ext >&5
2271 ac_retval=$ac_status
2273 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2274 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2275 as_fn_set_status $ac_retval
2277 } # ac_fn_c_try_run
2279 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2280 # -------------------------------------------------------
2281 # Tests whether HEADER exists and can be compiled using the include files in
2282 # INCLUDES, setting the cache variable VAR accordingly.
2283 ac_fn_c_check_header_compile ()
2285 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2287 $as_echo_n "checking for $2... " >&6; }
2288 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2289 $as_echo_n "(cached) " >&6
2290 else
2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h. */
2294 #include <$2>
2295 _ACEOF
2296 if ac_fn_c_try_compile "$LINENO"; then :
2297 eval "$3=yes"
2298 else
2299 eval "$3=no"
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 eval ac_res=\$$3
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305 $as_echo "$ac_res" >&6; }
2306 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2308 } # ac_fn_c_check_header_compile
2310 # ac_fn_c_try_link LINENO
2311 # -----------------------
2312 # Try to link conftest.$ac_ext, and return whether this succeeded.
2313 ac_fn_c_try_link ()
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 rm -f conftest.$ac_objext conftest$ac_exeext
2317 if { { ac_try="$ac_link"
2318 case "(($ac_try" in
2319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2320 *) ac_try_echo=$ac_try;;
2321 esac
2322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2323 $as_echo "$ac_try_echo"; } >&5
2324 (eval "$ac_link") 2>conftest.err
2325 ac_status=$?
2326 if test -s conftest.err; then
2327 grep -v '^ *+' conftest.err >conftest.er1
2328 cat conftest.er1 >&5
2329 mv -f conftest.er1 conftest.err
2331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2332 test $ac_status = 0; } && {
2333 test -z "$ac_c_werror_flag" ||
2334 test ! -s conftest.err
2335 } && test -s conftest$ac_exeext && {
2336 test "$cross_compiling" = yes ||
2337 $as_test_x conftest$ac_exeext
2338 }; then :
2339 ac_retval=0
2340 else
2341 $as_echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2344 ac_retval=1
2346 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2347 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2348 # interfere with the next link command; also delete a directory that is
2349 # left behind by Apple's compiler. We do this before executing the actions.
2350 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2351 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2352 as_fn_set_status $ac_retval
2354 } # ac_fn_c_try_link
2356 # ac_fn_c_check_decl LINENO SYMBOL VAR
2357 # ------------------------------------
2358 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2359 ac_fn_c_check_decl ()
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2363 $as_echo_n "checking whether $2 is declared... " >&6; }
2364 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2365 $as_echo_n "(cached) " >&6
2366 else
2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h. */
2371 main ()
2373 #ifndef $2
2374 (void) $2;
2375 #endif
2378 return 0;
2380 _ACEOF
2381 if ac_fn_c_try_compile "$LINENO"; then :
2382 eval "$3=yes"
2383 else
2384 eval "$3=no"
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2388 eval ac_res=\$$3
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2390 $as_echo "$ac_res" >&6; }
2391 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2393 } # ac_fn_c_check_decl
2395 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2396 # ----------------------------------------------
2397 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2398 ac_fn_c_check_header_preproc ()
2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2402 $as_echo_n "checking for $2... " >&6; }
2403 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407 /* end confdefs.h. */
2408 #include <$2>
2409 _ACEOF
2410 if ac_fn_c_try_cpp "$LINENO"; then :
2411 eval "$3=yes"
2412 else
2413 eval "$3=no"
2415 rm -f conftest.err conftest.$ac_ext
2417 eval ac_res=\$$3
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2419 $as_echo "$ac_res" >&6; }
2420 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2422 } # ac_fn_c_check_header_preproc
2424 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2425 # ----------------------------------------------------
2426 # Tries to find if the field MEMBER exists in type AGGR, after including
2427 # INCLUDES, setting cache variable VAR accordingly.
2428 ac_fn_c_check_member ()
2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2432 $as_echo_n "checking for $2.$3... " >&6; }
2433 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2440 main ()
2442 static $2 ac_aggr;
2443 if (ac_aggr.$3)
2444 return 0;
2446 return 0;
2448 _ACEOF
2449 if ac_fn_c_try_compile "$LINENO"; then :
2450 eval "$4=yes"
2451 else
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2456 main ()
2458 static $2 ac_aggr;
2459 if (sizeof ac_aggr.$3)
2460 return 0;
2462 return 0;
2464 _ACEOF
2465 if ac_fn_c_try_compile "$LINENO"; then :
2466 eval "$4=yes"
2467 else
2468 eval "$4=no"
2470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2474 eval ac_res=\$$4
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2476 $as_echo "$ac_res" >&6; }
2477 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2479 } # ac_fn_c_check_member
2481 # ac_fn_c_check_func LINENO FUNC VAR
2482 # ----------------------------------
2483 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2484 ac_fn_c_check_func ()
2486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2488 $as_echo_n "checking for $2... " >&6; }
2489 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2490 $as_echo_n "(cached) " >&6
2491 else
2492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493 /* end confdefs.h. */
2494 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2496 #define $2 innocuous_$2
2498 /* System header to define __stub macros and hopefully few prototypes,
2499 which can conflict with char $2 (); below.
2500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2501 <limits.h> exists even on freestanding compilers. */
2503 #ifdef __STDC__
2504 # include <limits.h>
2505 #else
2506 # include <assert.h>
2507 #endif
2509 #undef $2
2511 /* Override any GCC internal prototype to avoid an error.
2512 Use char because int might match the return type of a GCC
2513 builtin and then its argument prototype would still apply. */
2514 #ifdef __cplusplus
2515 extern "C"
2516 #endif
2517 char $2 ();
2518 /* The GNU C library defines this for functions which it implements
2519 to always fail with ENOSYS. Some functions are actually named
2520 something starting with __ and the normal name is an alias. */
2521 #if defined __stub_$2 || defined __stub___$2
2522 choke me
2523 #endif
2526 main ()
2528 return $2 ();
2530 return 0;
2532 _ACEOF
2533 if ac_fn_c_try_link "$LINENO"; then :
2534 eval "$3=yes"
2535 else
2536 eval "$3=no"
2538 rm -f core conftest.err conftest.$ac_objext \
2539 conftest$ac_exeext conftest.$ac_ext
2541 eval ac_res=\$$3
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2543 $as_echo "$ac_res" >&6; }
2544 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2546 } # ac_fn_c_check_func
2548 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2549 # --------------------------------------------
2550 # Tries to find the compile-time value of EXPR in a program that includes
2551 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2552 # computed
2553 ac_fn_c_compute_int ()
2555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2556 if test "$cross_compiling" = yes; then
2557 # Depending upon the size, compute the lo and hi bounds.
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h. */
2562 main ()
2564 static int test_array [1 - 2 * !(($2) >= 0)];
2565 test_array [0] = 0
2568 return 0;
2570 _ACEOF
2571 if ac_fn_c_try_compile "$LINENO"; then :
2572 ac_lo=0 ac_mid=0
2573 while :; do
2574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2575 /* end confdefs.h. */
2578 main ()
2580 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2581 test_array [0] = 0
2584 return 0;
2586 _ACEOF
2587 if ac_fn_c_try_compile "$LINENO"; then :
2588 ac_hi=$ac_mid; break
2589 else
2590 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2591 if test $ac_lo -le $ac_mid; then
2592 ac_lo= ac_hi=
2593 break
2595 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 done
2599 else
2600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2601 /* end confdefs.h. */
2604 main ()
2606 static int test_array [1 - 2 * !(($2) < 0)];
2607 test_array [0] = 0
2610 return 0;
2612 _ACEOF
2613 if ac_fn_c_try_compile "$LINENO"; then :
2614 ac_hi=-1 ac_mid=-1
2615 while :; do
2616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617 /* end confdefs.h. */
2620 main ()
2622 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2623 test_array [0] = 0
2626 return 0;
2628 _ACEOF
2629 if ac_fn_c_try_compile "$LINENO"; then :
2630 ac_lo=$ac_mid; break
2631 else
2632 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2633 if test $ac_mid -le $ac_hi; then
2634 ac_lo= ac_hi=
2635 break
2637 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 done
2641 else
2642 ac_lo= ac_hi=
2644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2647 # Binary search between lo and hi bounds.
2648 while test "x$ac_lo" != "x$ac_hi"; do
2649 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2651 /* end confdefs.h. */
2654 main ()
2656 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2657 test_array [0] = 0
2660 return 0;
2662 _ACEOF
2663 if ac_fn_c_try_compile "$LINENO"; then :
2664 ac_hi=$ac_mid
2665 else
2666 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669 done
2670 case $ac_lo in #((
2671 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2672 '') ac_retval=1 ;;
2673 esac
2674 else
2675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676 /* end confdefs.h. */
2678 static long int longval () { return $2; }
2679 static unsigned long int ulongval () { return $2; }
2680 #include <stdio.h>
2681 #include <stdlib.h>
2683 main ()
2686 FILE *f = fopen ("conftest.val", "w");
2687 if (! f)
2688 return 1;
2689 if (($2) < 0)
2691 long int i = longval ();
2692 if (i != ($2))
2693 return 1;
2694 fprintf (f, "%ld", i);
2696 else
2698 unsigned long int i = ulongval ();
2699 if (i != ($2))
2700 return 1;
2701 fprintf (f, "%lu", i);
2703 /* Do not output a trailing newline, as this causes \r\n confusion
2704 on some platforms. */
2705 return ferror (f) || fclose (f) != 0;
2708 return 0;
2710 _ACEOF
2711 if ac_fn_c_try_run "$LINENO"; then :
2712 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2713 else
2714 ac_retval=1
2716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2717 conftest.$ac_objext conftest.beam conftest.$ac_ext
2718 rm -f conftest.val
2721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2722 as_fn_set_status $ac_retval
2724 } # ac_fn_c_compute_int
2726 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2727 # -------------------------------------------
2728 # Tests whether TYPE exists after having included INCLUDES, setting cache
2729 # variable VAR accordingly.
2730 ac_fn_c_check_type ()
2732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2734 $as_echo_n "checking for $2... " >&6; }
2735 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 eval "$3=no"
2739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2740 /* end confdefs.h. */
2743 main ()
2745 if (sizeof ($2))
2746 return 0;
2748 return 0;
2750 _ACEOF
2751 if ac_fn_c_try_compile "$LINENO"; then :
2752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2753 /* end confdefs.h. */
2756 main ()
2758 if (sizeof (($2)))
2759 return 0;
2761 return 0;
2763 _ACEOF
2764 if ac_fn_c_try_compile "$LINENO"; then :
2766 else
2767 eval "$3=yes"
2769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2773 eval ac_res=\$$3
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2775 $as_echo "$ac_res" >&6; }
2776 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2778 } # ac_fn_c_check_type
2779 cat >config.log <<_ACEOF
2780 This file contains any messages produced by compilers while
2781 running configure, to aid debugging if configure makes a mistake.
2783 It was created by emacs $as_me 24.0.50, which was
2784 generated by GNU Autoconf 2.65. Invocation command line was
2786 $ $0 $@
2788 _ACEOF
2789 exec 5>>config.log
2791 cat <<_ASUNAME
2792 ## --------- ##
2793 ## Platform. ##
2794 ## --------- ##
2796 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2797 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2798 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2799 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2800 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2802 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2803 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2805 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2806 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2807 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2808 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2809 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2810 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2811 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2813 _ASUNAME
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
2820 $as_echo "PATH: $as_dir"
2821 done
2822 IFS=$as_save_IFS
2824 } >&5
2826 cat >&5 <<_ACEOF
2829 ## ----------- ##
2830 ## Core tests. ##
2831 ## ----------- ##
2833 _ACEOF
2836 # Keep a trace of the command line.
2837 # Strip out --no-create and --no-recursion so they do not pile up.
2838 # Strip out --silent because we don't want to record it for future runs.
2839 # Also quote any args containing shell meta-characters.
2840 # Make two passes to allow for proper duplicate-argument suppression.
2841 ac_configure_args=
2842 ac_configure_args0=
2843 ac_configure_args1=
2844 ac_must_keep_next=false
2845 for ac_pass in 1 2
2847 for ac_arg
2849 case $ac_arg in
2850 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2851 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2852 | -silent | --silent | --silen | --sile | --sil)
2853 continue ;;
2854 *\'*)
2855 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2856 esac
2857 case $ac_pass in
2858 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2860 as_fn_append ac_configure_args1 " '$ac_arg'"
2861 if test $ac_must_keep_next = true; then
2862 ac_must_keep_next=false # Got value, back to normal.
2863 else
2864 case $ac_arg in
2865 *=* | --config-cache | -C | -disable-* | --disable-* \
2866 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2867 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2868 | -with-* | --with-* | -without-* | --without-* | --x)
2869 case "$ac_configure_args0 " in
2870 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2871 esac
2873 -* ) ac_must_keep_next=true ;;
2874 esac
2876 as_fn_append ac_configure_args " '$ac_arg'"
2878 esac
2879 done
2880 done
2881 { ac_configure_args0=; unset ac_configure_args0;}
2882 { ac_configure_args1=; unset ac_configure_args1;}
2884 # When interrupted or exit'd, cleanup temporary files, and complete
2885 # config.log. We remove comments because anyway the quotes in there
2886 # would cause problems or look ugly.
2887 # WARNING: Use '\'' to represent an apostrophe within the trap.
2888 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2889 trap 'exit_status=$?
2890 # Save into config.log some information that might help in debugging.
2892 echo
2894 cat <<\_ASBOX
2895 ## ---------------- ##
2896 ## Cache variables. ##
2897 ## ---------------- ##
2898 _ASBOX
2899 echo
2900 # The following way of writing the cache mishandles newlines in values,
2902 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2903 eval ac_val=\$$ac_var
2904 case $ac_val in #(
2905 *${as_nl}*)
2906 case $ac_var in #(
2907 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2908 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2909 esac
2910 case $ac_var in #(
2911 _ | IFS | as_nl) ;; #(
2912 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2913 *) { eval $ac_var=; unset $ac_var;} ;;
2914 esac ;;
2915 esac
2916 done
2917 (set) 2>&1 |
2918 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2919 *${as_nl}ac_space=\ *)
2920 sed -n \
2921 "s/'\''/'\''\\\\'\'''\''/g;
2922 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2923 ;; #(
2925 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2927 esac |
2928 sort
2930 echo
2932 cat <<\_ASBOX
2933 ## ----------------- ##
2934 ## Output variables. ##
2935 ## ----------------- ##
2936 _ASBOX
2937 echo
2938 for ac_var in $ac_subst_vars
2940 eval ac_val=\$$ac_var
2941 case $ac_val in
2942 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2943 esac
2944 $as_echo "$ac_var='\''$ac_val'\''"
2945 done | sort
2946 echo
2948 if test -n "$ac_subst_files"; then
2949 cat <<\_ASBOX
2950 ## ------------------- ##
2951 ## File substitutions. ##
2952 ## ------------------- ##
2953 _ASBOX
2954 echo
2955 for ac_var in $ac_subst_files
2957 eval ac_val=\$$ac_var
2958 case $ac_val in
2959 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2960 esac
2961 $as_echo "$ac_var='\''$ac_val'\''"
2962 done | sort
2963 echo
2966 if test -s confdefs.h; then
2967 cat <<\_ASBOX
2968 ## ----------- ##
2969 ## confdefs.h. ##
2970 ## ----------- ##
2971 _ASBOX
2972 echo
2973 cat confdefs.h
2974 echo
2976 test "$ac_signal" != 0 &&
2977 $as_echo "$as_me: caught signal $ac_signal"
2978 $as_echo "$as_me: exit $exit_status"
2979 } >&5
2980 rm -f core *.core core.conftest.* &&
2981 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2982 exit $exit_status
2984 for ac_signal in 1 2 13 15; do
2985 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2986 done
2987 ac_signal=0
2989 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2990 rm -f -r conftest* confdefs.h
2992 $as_echo "/* confdefs.h */" > confdefs.h
2994 # Predefined preprocessor variables.
2996 cat >>confdefs.h <<_ACEOF
2997 #define PACKAGE_NAME "$PACKAGE_NAME"
2998 _ACEOF
3000 cat >>confdefs.h <<_ACEOF
3001 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3002 _ACEOF
3004 cat >>confdefs.h <<_ACEOF
3005 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3006 _ACEOF
3008 cat >>confdefs.h <<_ACEOF
3009 #define PACKAGE_STRING "$PACKAGE_STRING"
3010 _ACEOF
3012 cat >>confdefs.h <<_ACEOF
3013 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3014 _ACEOF
3016 cat >>confdefs.h <<_ACEOF
3017 #define PACKAGE_URL "$PACKAGE_URL"
3018 _ACEOF
3021 # Let the site file select an alternate cache file if it wants to.
3022 # Prefer an explicitly selected file to automatically selected ones.
3023 ac_site_file1=NONE
3024 ac_site_file2=NONE
3025 if test -n "$CONFIG_SITE"; then
3026 ac_site_file1=$CONFIG_SITE
3027 elif test "x$prefix" != xNONE; then
3028 ac_site_file1=$prefix/share/config.site
3029 ac_site_file2=$prefix/etc/config.site
3030 else
3031 ac_site_file1=$ac_default_prefix/share/config.site
3032 ac_site_file2=$ac_default_prefix/etc/config.site
3034 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3036 test "x$ac_site_file" = xNONE && continue
3037 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3039 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3040 sed 's/^/| /' "$ac_site_file" >&5
3041 . "$ac_site_file"
3043 done
3045 if test -r "$cache_file"; then
3046 # Some versions of bash will fail to source /dev/null (special files
3047 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3048 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3050 $as_echo "$as_me: loading cache $cache_file" >&6;}
3051 case $cache_file in
3052 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3053 *) . "./$cache_file";;
3054 esac
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3058 $as_echo "$as_me: creating cache $cache_file" >&6;}
3059 >$cache_file
3062 as_fn_append ac_header_list " stdlib.h"
3063 as_fn_append ac_header_list " unistd.h"
3064 as_fn_append ac_header_list " sys/param.h"
3065 as_fn_append ac_func_list " readlinkat"
3066 gl_getopt_required=GNU
3067 as_fn_append ac_header_list " getopt.h"
3068 as_fn_append ac_header_list " wchar.h"
3069 as_fn_append ac_header_list " stdint.h"
3070 as_fn_append ac_header_list " inttypes.h"
3071 as_fn_append ac_func_list " lstat"
3072 as_fn_append ac_func_list " alarm"
3073 as_fn_append ac_func_list " readlink"
3074 as_fn_append ac_header_list " sys/socket.h"
3075 as_fn_append ac_func_list " tzset"
3076 as_fn_append ac_func_list " symlink"
3077 as_fn_append ac_header_list " sys/stat.h"
3078 as_fn_append ac_header_list " sys/time.h"
3079 as_fn_append ac_func_list " localtime_r"
3080 # Check that the precious variables saved in the cache have kept the same
3081 # value.
3082 ac_cache_corrupted=false
3083 for ac_var in $ac_precious_vars; do
3084 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3085 eval ac_new_set=\$ac_env_${ac_var}_set
3086 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3087 eval ac_new_val=\$ac_env_${ac_var}_value
3088 case $ac_old_set,$ac_new_set in
3089 set,)
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3091 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3092 ac_cache_corrupted=: ;;
3093 ,set)
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3095 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3096 ac_cache_corrupted=: ;;
3097 ,);;
3099 if test "x$ac_old_val" != "x$ac_new_val"; then
3100 # differences in whitespace do not lead to failure.
3101 ac_old_val_w=`echo x $ac_old_val`
3102 ac_new_val_w=`echo x $ac_new_val`
3103 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3105 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3106 ac_cache_corrupted=:
3107 else
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3109 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3110 eval $ac_var=\$ac_old_val
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3113 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3115 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3116 fi;;
3117 esac
3118 # Pass precious variables to config.status.
3119 if test "$ac_new_set" = set; then
3120 case $ac_new_val in
3121 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3122 *) ac_arg=$ac_var=$ac_new_val ;;
3123 esac
3124 case " $ac_configure_args " in
3125 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3126 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3127 esac
3129 done
3130 if $ac_cache_corrupted; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3134 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3135 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3137 ## -------------------- ##
3138 ## Main body of script. ##
3139 ## -------------------- ##
3141 ac_ext=c
3142 ac_cpp='$CPP $CPPFLAGS'
3143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3151 am__api_version='1.11'
3153 ac_aux_dir=
3154 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3155 for ac_t in install-sh install.sh shtool; do
3156 if test -f "$ac_dir/$ac_t"; then
3157 ac_aux_dir=$ac_dir
3158 ac_install_sh="$ac_aux_dir/$ac_t -c"
3159 break 2
3161 done
3162 done
3163 if test -z "$ac_aux_dir"; then
3164 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3167 # These three variables are undocumented and unsupported,
3168 # and are intended to be withdrawn in a future Autoconf release.
3169 # They can cause serious problems if a builder's source tree is in a directory
3170 # whose full name contains unusual characters.
3171 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3172 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3173 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3176 # Find a good install program. We prefer a C program (faster),
3177 # so one script is as good as another. But avoid the broken or
3178 # incompatible versions:
3179 # SysV /etc/install, /usr/sbin/install
3180 # SunOS /usr/etc/install
3181 # IRIX /sbin/install
3182 # AIX /bin/install
3183 # AmigaOS /C/install, which installs bootblocks on floppy discs
3184 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3185 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3186 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3187 # OS/2's system install, which has a completely different semantic
3188 # ./install, which can be erroneously created by make from ./install.sh.
3189 # Reject install programs that cannot install multiple files.
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3191 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3192 if test -z "$INSTALL"; then
3193 if test "${ac_cv_path_install+set}" = set; then :
3194 $as_echo_n "(cached) " >&6
3195 else
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 # Account for people who put trailing slashes in PATH elements.
3202 case $as_dir/ in #((
3203 ./ | .// | /[cC]/* | \
3204 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3205 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3206 /usr/ucb/* ) ;;
3208 # OSF1 and SCO ODT 3.0 have their own names for install.
3209 # Don't use installbsd from OSF since it installs stuff as root
3210 # by default.
3211 for ac_prog in ginstall scoinst install; do
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3214 if test $ac_prog = install &&
3215 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3216 # AIX install. It has an incompatible calling convention.
3218 elif test $ac_prog = install &&
3219 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3220 # program-specific install script used by HP pwplus--don't use.
3222 else
3223 rm -rf conftest.one conftest.two conftest.dir
3224 echo one > conftest.one
3225 echo two > conftest.two
3226 mkdir conftest.dir
3227 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3228 test -s conftest.one && test -s conftest.two &&
3229 test -s conftest.dir/conftest.one &&
3230 test -s conftest.dir/conftest.two
3231 then
3232 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3233 break 3
3237 done
3238 done
3240 esac
3242 done
3243 IFS=$as_save_IFS
3245 rm -rf conftest.one conftest.two conftest.dir
3248 if test "${ac_cv_path_install+set}" = set; then
3249 INSTALL=$ac_cv_path_install
3250 else
3251 # As a last resort, use the slow shell script. Don't cache a
3252 # value for INSTALL within a source directory, because that will
3253 # break other packages using the cache if that directory is
3254 # removed, or if the value is a relative name.
3255 INSTALL=$ac_install_sh
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3259 $as_echo "$INSTALL" >&6; }
3261 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3262 # It thinks the first close brace ends the variable substitution.
3263 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3265 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3267 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3270 $as_echo_n "checking whether build environment is sane... " >&6; }
3271 # Just in case
3272 sleep 1
3273 echo timestamp > conftest.file
3274 # Reject unsafe characters in $srcdir or the absolute working directory
3275 # name. Accept space and tab only in the latter.
3276 am_lf='
3278 case `pwd` in
3279 *[\\\"\#\$\&\'\`$am_lf]*)
3280 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3281 esac
3282 case $srcdir in
3283 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3284 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3285 esac
3287 # Do `set' in a subshell so we don't clobber the current shell's
3288 # arguments. Must try -L first in case configure is actually a
3289 # symlink; some systems play weird games with the mod time of symlinks
3290 # (eg FreeBSD returns the mod time of the symlink's containing
3291 # directory).
3292 if (
3293 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3294 if test "$*" = "X"; then
3295 # -L didn't work.
3296 set X `ls -t "$srcdir/configure" conftest.file`
3298 rm -f conftest.file
3299 if test "$*" != "X $srcdir/configure conftest.file" \
3300 && test "$*" != "X conftest.file $srcdir/configure"; then
3302 # If neither matched, then we have a broken ls. This can happen
3303 # if, for instance, CONFIG_SHELL is bash and it inherits a
3304 # broken ls alias from the environment. This has actually
3305 # happened. Such a system could not be considered "sane".
3306 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3307 alias in your environment" "$LINENO" 5
3310 test "$2" = conftest.file
3312 then
3313 # Ok.
3315 else
3316 as_fn_error "newly created file is older than distributed files!
3317 Check your system clock" "$LINENO" 5
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3320 $as_echo "yes" >&6; }
3321 test "$program_prefix" != NONE &&
3322 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3323 # Use a double $ so make ignores it.
3324 test "$program_suffix" != NONE &&
3325 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3326 # Double any \ or $.
3327 # By default was `s,x,x', remove it if useless.
3328 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3329 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3331 # expand $ac_aux_dir to an absolute path
3332 am_aux_dir=`cd $ac_aux_dir && pwd`
3334 if test x"${MISSING+set}" != xset; then
3335 case $am_aux_dir in
3336 *\ * | *\ *)
3337 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3339 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3340 esac
3342 # Use eval to expand $SHELL
3343 if eval "$MISSING --run true"; then
3344 am_missing_run="$MISSING --run "
3345 else
3346 am_missing_run=
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3348 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3351 if test x"${install_sh}" != xset; then
3352 case $am_aux_dir in
3353 *\ * | *\ *)
3354 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3356 install_sh="\${SHELL} $am_aux_dir/install-sh"
3357 esac
3360 # Installed binaries are usually stripped using `strip' when the user
3361 # run `make install-strip'. However `strip' might not be the right
3362 # tool to use in cross-compilation environments, therefore Automake
3363 # will honor the `STRIP' environment variable to overrule this program.
3364 if test "$cross_compiling" != no; then
3365 if test -n "$ac_tool_prefix"; then
3366 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3367 set dummy ${ac_tool_prefix}strip; ac_word=$2
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369 $as_echo_n "checking for $ac_word... " >&6; }
3370 if test "${ac_cv_prog_STRIP+set}" = set; then :
3371 $as_echo_n "(cached) " >&6
3372 else
3373 if test -n "$STRIP"; then
3374 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3375 else
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 for as_dir in $PATH
3379 IFS=$as_save_IFS
3380 test -z "$as_dir" && as_dir=.
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3383 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3385 break 2
3387 done
3388 done
3389 IFS=$as_save_IFS
3393 STRIP=$ac_cv_prog_STRIP
3394 if test -n "$STRIP"; then
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3396 $as_echo "$STRIP" >&6; }
3397 else
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3404 if test -z "$ac_cv_prog_STRIP"; then
3405 ac_ct_STRIP=$STRIP
3406 # Extract the first word of "strip", so it can be a program name with args.
3407 set dummy strip; ac_word=$2
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409 $as_echo_n "checking for $ac_word... " >&6; }
3410 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3411 $as_echo_n "(cached) " >&6
3412 else
3413 if test -n "$ac_ct_STRIP"; then
3414 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3415 else
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 for as_dir in $PATH
3419 IFS=$as_save_IFS
3420 test -z "$as_dir" && as_dir=.
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423 ac_cv_prog_ac_ct_STRIP="strip"
3424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425 break 2
3427 done
3428 done
3429 IFS=$as_save_IFS
3433 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3434 if test -n "$ac_ct_STRIP"; then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3436 $as_echo "$ac_ct_STRIP" >&6; }
3437 else
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3442 if test "x$ac_ct_STRIP" = x; then
3443 STRIP=":"
3444 else
3445 case $cross_compiling:$ac_tool_warned in
3446 yes:)
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3449 ac_tool_warned=yes ;;
3450 esac
3451 STRIP=$ac_ct_STRIP
3453 else
3454 STRIP="$ac_cv_prog_STRIP"
3458 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3461 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3462 if test -z "$MKDIR_P"; then
3463 if test "${ac_cv_path_mkdir+set}" = set; then :
3464 $as_echo_n "(cached) " >&6
3465 else
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
3471 for ac_prog in mkdir gmkdir; do
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3474 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3475 'mkdir (GNU coreutils) '* | \
3476 'mkdir (coreutils) '* | \
3477 'mkdir (fileutils) '4.1*)
3478 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3479 break 3;;
3480 esac
3481 done
3482 done
3483 done
3484 IFS=$as_save_IFS
3488 test -d ./--version && rmdir ./--version
3489 if test "${ac_cv_path_mkdir+set}" = set; then
3490 MKDIR_P="$ac_cv_path_mkdir -p"
3491 else
3492 # As a last resort, use the slow shell script. Don't cache a
3493 # value for MKDIR_P within a source directory, because that will
3494 # break other packages using the cache if that directory is
3495 # removed, or if the value is a relative name.
3496 MKDIR_P="$ac_install_sh -d"
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3500 $as_echo "$MKDIR_P" >&6; }
3503 mkdir_p="$MKDIR_P"
3504 case $mkdir_p in
3505 [\\/$]* | ?:[\\/]*) ;;
3506 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3507 esac
3509 for ac_prog in gawk mawk nawk awk
3511 # Extract the first word of "$ac_prog", so it can be a program name with args.
3512 set dummy $ac_prog; ac_word=$2
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514 $as_echo_n "checking for $ac_word... " >&6; }
3515 if test "${ac_cv_prog_AWK+set}" = set; then :
3516 $as_echo_n "(cached) " >&6
3517 else
3518 if test -n "$AWK"; then
3519 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3520 else
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3528 ac_cv_prog_AWK="$ac_prog"
3529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 break 2
3532 done
3533 done
3534 IFS=$as_save_IFS
3538 AWK=$ac_cv_prog_AWK
3539 if test -n "$AWK"; then
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3541 $as_echo "$AWK" >&6; }
3542 else
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544 $as_echo "no" >&6; }
3548 test -n "$AWK" && break
3549 done
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3552 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3553 set x ${MAKE-make}
3554 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3555 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 cat >conftest.make <<\_ACEOF
3559 SHELL = /bin/sh
3560 all:
3561 @echo '@@@%%%=$(MAKE)=@@@%%%'
3562 _ACEOF
3563 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3564 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3565 *@@@%%%=?*=@@@%%%*)
3566 eval ac_cv_prog_make_${ac_make}_set=yes;;
3568 eval ac_cv_prog_make_${ac_make}_set=no;;
3569 esac
3570 rm -f conftest.make
3572 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3574 $as_echo "yes" >&6; }
3575 SET_MAKE=
3576 else
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3579 SET_MAKE="MAKE=${MAKE-make}"
3582 rm -rf .tst 2>/dev/null
3583 mkdir .tst 2>/dev/null
3584 if test -d .tst; then
3585 am__leading_dot=.
3586 else
3587 am__leading_dot=_
3589 rmdir .tst 2>/dev/null
3591 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3592 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3593 # is not polluted with repeated "-I."
3594 am__isrc=' -I$(srcdir)'
3595 # test to see if srcdir already configured
3596 if test -f $srcdir/config.status; then
3597 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3601 # test whether we have cygpath
3602 if test -z "$CYGPATH_W"; then
3603 if (cygpath --version) >/dev/null 2>/dev/null; then
3604 CYGPATH_W='cygpath -w'
3605 else
3606 CYGPATH_W=echo
3611 # Define the identity of the package.
3612 PACKAGE='emacs'
3613 VERSION='24.0.50'
3616 cat >>confdefs.h <<_ACEOF
3617 #define PACKAGE "$PACKAGE"
3618 _ACEOF
3621 cat >>confdefs.h <<_ACEOF
3622 #define VERSION "$VERSION"
3623 _ACEOF
3625 # Some tools Automake needs.
3627 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3630 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3633 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3636 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3639 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3641 # We need awk for the "check" target. The system "awk" is bad on
3642 # some platforms.
3643 # Always define AMTAR for backward compatibility.
3645 AMTAR=${AMTAR-"${am_missing_run}tar"}
3647 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3656 lispdir='${datadir}/emacs/${version}/lisp'
3657 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3658 '${datadir}/emacs/site-lisp'
3659 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3660 etcdir='${datadir}/emacs/${version}/etc'
3661 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3662 docdir='${datadir}/emacs/${version}/etc'
3663 gamedir='${localstatedir}/games/emacs'
3668 # Check whether --with-pop was given.
3669 if test "${with_pop+set}" = set; then :
3670 withval=$with_pop;
3671 else
3672 with_pop=yes
3675 if test "$with_pop" = yes; then
3676 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3681 # Check whether --with-kerberos was given.
3682 if test "${with_kerberos+set}" = set; then :
3683 withval=$with_kerberos;
3684 else
3685 with_kerberos=no
3688 if test "$with_kerberos" != no; then
3689 $as_echo "#define KERBEROS 1" >>confdefs.h
3694 # Check whether --with-kerberos5 was given.
3695 if test "${with_kerberos5+set}" = set; then :
3696 withval=$with_kerberos5;
3697 else
3698 with_kerberos5=no
3701 if test "${with_kerberos5}" != no; then
3702 if test "${with_kerberos}" = no; then
3703 with_kerberos=yes
3704 $as_echo "#define KERBEROS 1" >>confdefs.h
3708 $as_echo "#define KERBEROS5 1" >>confdefs.h
3713 # Check whether --with-hesiod was given.
3714 if test "${with_hesiod+set}" = set; then :
3715 withval=$with_hesiod;
3716 else
3717 with_hesiod=no
3720 if test "$with_hesiod" != no; then
3722 $as_echo "#define HESIOD 1" >>confdefs.h
3727 # Check whether --with-mmdf was given.
3728 if test "${with_mmdf+set}" = set; then :
3729 withval=$with_mmdf;
3730 else
3731 with_mmdf=no
3734 if test "$with_mmdf" != no; then
3736 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3741 # Check whether --with-mail-unlink was given.
3742 if test "${with_mail_unlink+set}" = set; then :
3743 withval=$with_mail_unlink;
3744 else
3745 with_mail_unlink=no
3748 if test "$with_mail_unlink" != no; then
3750 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3755 # Check whether --with-mailhost was given.
3756 if test "${with_mailhost+set}" = set; then :
3757 withval=$with_mailhost;
3758 cat >>confdefs.h <<_ACEOF
3759 #define MAILHOST "$withval"
3760 _ACEOF
3766 # Check whether --with-sound was given.
3767 if test "${with_sound+set}" = set; then :
3768 withval=$with_sound;
3769 else
3770 with_sound=yes
3775 # Check whether --with-sync-input was given.
3776 if test "${with_sync_input+set}" = set; then :
3777 withval=$with_sync_input;
3778 else
3779 with_sync_input=yes
3782 if test "$with_sync_input" = yes; then
3784 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3789 # Check whether --with-x-toolkit was given.
3790 if test "${with_x_toolkit+set}" = set; then :
3791 withval=$with_x_toolkit; case "${withval}" in
3792 y | ye | yes ) val=gtk ;;
3793 n | no ) val=no ;;
3794 l | lu | luc | luci | lucid ) val=lucid ;;
3795 a | at | ath | athe | athen | athena ) val=athena ;;
3796 m | mo | mot | moti | motif ) val=motif ;;
3797 g | gt | gtk ) val=gtk ;;
3798 gtk3 ) val=gtk3 ;;
3800 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3801 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3802 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3804 esac
3805 with_x_toolkit=$val
3811 # Check whether --with-xpm was given.
3812 if test "${with_xpm+set}" = set; then :
3813 withval=$with_xpm;
3814 else
3815 with_xpm=yes
3819 # Check whether --with-jpeg was given.
3820 if test "${with_jpeg+set}" = set; then :
3821 withval=$with_jpeg;
3822 else
3823 with_jpeg=yes
3827 # Check whether --with-tiff was given.
3828 if test "${with_tiff+set}" = set; then :
3829 withval=$with_tiff;
3830 else
3831 with_tiff=yes
3835 # Check whether --with-gif was given.
3836 if test "${with_gif+set}" = set; then :
3837 withval=$with_gif;
3838 else
3839 with_gif=yes
3843 # Check whether --with-png was given.
3844 if test "${with_png+set}" = set; then :
3845 withval=$with_png;
3846 else
3847 with_png=yes
3851 # Check whether --with-rsvg was given.
3852 if test "${with_rsvg+set}" = set; then :
3853 withval=$with_rsvg;
3854 else
3855 with_rsvg=yes
3859 # Check whether --with-xml2 was given.
3860 if test "${with_xml2+set}" = set; then :
3861 withval=$with_xml2;
3862 else
3863 with_xml2=yes
3867 # Check whether --with-imagemagick was given.
3868 if test "${with_imagemagick+set}" = set; then :
3869 withval=$with_imagemagick;
3870 else
3871 with_imagemagick=yes
3876 # Check whether --with-xft was given.
3877 if test "${with_xft+set}" = set; then :
3878 withval=$with_xft;
3879 else
3880 with_xft=yes
3884 # Check whether --with-libotf was given.
3885 if test "${with_libotf+set}" = set; then :
3886 withval=$with_libotf;
3887 else
3888 with_libotf=yes
3892 # Check whether --with-m17n-flt was given.
3893 if test "${with_m17n_flt+set}" = set; then :
3894 withval=$with_m17n_flt;
3895 else
3896 with_m17n_flt=yes
3901 # Check whether --with-toolkit-scroll-bars was given.
3902 if test "${with_toolkit_scroll_bars+set}" = set; then :
3903 withval=$with_toolkit_scroll_bars;
3904 else
3905 with_toolkit_scroll_bars=yes
3909 # Check whether --with-xaw3d was given.
3910 if test "${with_xaw3d+set}" = set; then :
3911 withval=$with_xaw3d;
3912 else
3913 with_xaw3d=yes
3917 # Check whether --with-xim was given.
3918 if test "${with_xim+set}" = set; then :
3919 withval=$with_xim;
3920 else
3921 with_xim=yes
3925 # Check whether --with-ns was given.
3926 if test "${with_ns+set}" = set; then :
3927 withval=$with_ns;
3928 else
3929 with_ns=no
3934 # Check whether --with-gpm was given.
3935 if test "${with_gpm+set}" = set; then :
3936 withval=$with_gpm;
3937 else
3938 with_gpm=yes
3942 # Check whether --with-dbus was given.
3943 if test "${with_dbus+set}" = set; then :
3944 withval=$with_dbus;
3945 else
3946 with_dbus=yes
3950 # Check whether --with-gconf was given.
3951 if test "${with_gconf+set}" = set; then :
3952 withval=$with_gconf;
3953 else
3954 with_gconf=yes
3958 # Check whether --with-selinux was given.
3959 if test "${with_selinux+set}" = set; then :
3960 withval=$with_selinux;
3961 else
3962 with_selinux=yes
3966 # Check whether --with-gnutls was given.
3967 if test "${with_gnutls+set}" = set; then :
3968 withval=$with_gnutls;
3969 else
3970 with_gnutls=yes
3974 ## For the times when you want to build Emacs but don't have
3975 ## a suitable makeinfo, and can live without the manuals.
3977 # Check whether --with-makeinfo was given.
3978 if test "${with_makeinfo+set}" = set; then :
3979 withval=$with_makeinfo;
3980 else
3981 with_makeinfo=yes
3985 ## This is an option because I do not know if all info/man support
3986 ## compressed files, nor how to test if they do so.
3988 # Check whether --with-compress-info was given.
3989 if test "${with_compress_info+set}" = set; then :
3990 withval=$with_compress_info;
3991 else
3992 with_compress_info=yes
3995 if test $with_compress_info = yes; then
3996 GZIP_INFO=yes
3997 else
3998 GZIP_INFO=
4003 # Check whether --with-pkg-config-prog was given.
4004 if test "${with_pkg_config_prog+set}" = set; then :
4005 withval=$with_pkg_config_prog;
4008 if test "X${with_pkg_config_prog}" != X; then
4009 if test "${with_pkg_config_prog}" != yes; then
4010 PKG_CONFIG="${with_pkg_config_prog}"
4014 CRT_DIR=
4016 # Check whether --with-crt-dir was given.
4017 if test "${with_crt_dir+set}" = set; then :
4018 withval=$with_crt_dir;
4021 CRT_DIR="${with_crt_dir}"
4024 # Check whether --with-gameuser was given.
4025 if test "${with_gameuser+set}" = set; then :
4026 withval=$with_gameuser;
4029 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4030 && gameuser="${with_gameuser}"
4031 test "X$gameuser" = X && gameuser=games
4034 # Check whether --with-gnustep-conf was given.
4035 if test "${with_gnustep_conf+set}" = set; then :
4036 withval=$with_gnustep_conf;
4039 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4040 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4041 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4042 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4044 # Check whether --enable-ns-self-contained was given.
4045 if test "${enable_ns_self_contained+set}" = set; then :
4046 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4047 else
4048 EN_NS_SELF_CONTAINED=yes
4052 # Check whether --enable-asserts was given.
4053 if test "${enable_asserts+set}" = set; then :
4054 enableval=$enable_asserts; USE_XASSERTS=$enableval
4055 else
4056 USE_XASSERTS=no
4060 # Check whether --enable-maintainer-mode was given.
4061 if test "${enable_maintainer_mode+set}" = set; then :
4062 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4063 else
4064 USE_MAINTAINER_MODE=yes
4067 if test $USE_MAINTAINER_MODE = yes; then
4068 MAINT=
4069 else
4070 MAINT=#
4074 # Check whether --enable-locallisppath was given.
4075 if test "${enable_locallisppath+set}" = set; then :
4076 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4077 locallisppath=
4078 elif test "${enableval}" != "yes"; then
4079 locallisppath=${enableval}
4084 # Check whether --enable-checking was given.
4085 if test "${enable_checking+set}" = set; then :
4086 enableval=$enable_checking; ac_checking_flags="${enableval}"
4089 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4090 for check in $ac_checking_flags
4092 case $check in
4093 # these set all the flags to specific states
4094 yes) ac_enable_checking=1 ;;
4095 no) ac_enable_checking= ;
4096 ac_gc_check_stringbytes= ;
4097 ac_gc_check_string_overrun= ;
4098 ac_gc_check_string_free_list= ;
4099 ac_xmalloc_overrun= ;
4100 ac_gc_check_cons_list= ;;
4101 all) ac_enable_checking=1 ;
4102 ac_gc_check_stringbytes=1 ;
4103 ac_gc_check_string_overrun=1 ;
4104 ac_gc_check_string_free_list=1 ;
4105 ac_xmalloc_overrun=1 ;
4106 ac_gc_check_cons_list=1 ;;
4107 # these enable particular checks
4108 stringbytes) ac_gc_check_stringbytes=1 ;;
4109 stringoverrun) ac_gc_check_string_overrun=1 ;;
4110 stringfreelist) ac_gc_check_string_free_list=1 ;;
4111 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4112 conslist) ac_gc_check_cons_list=1 ;;
4113 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4114 esac
4115 done
4116 IFS="$ac_save_IFS"
4118 if test x$ac_enable_checking != x ; then
4120 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4123 if test x$ac_gc_check_stringbytes != x ; then
4125 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4128 if test x$ac_gc_check_string_overrun != x ; then
4130 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4133 if test x$ac_gc_check_string_free_list != x ; then
4135 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4138 if test x$ac_xmalloc_overrun != x ; then
4140 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4143 if test x$ac_gc_check_cons_list != x ; then
4145 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4149 # Check whether --enable-use-lisp-union-type was given.
4150 if test "${enable_use_lisp_union_type+set}" = set; then :
4151 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4153 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4160 # Check whether --enable-profiling was given.
4161 if test "${enable_profiling+set}" = set; then :
4162 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4165 if test x$ac_enable_profiling != x ; then
4166 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4167 else
4168 PROFILING_CFLAGS=
4172 # Check whether --enable-autodepend was given.
4173 if test "${enable_autodepend+set}" = set; then :
4174 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4175 else
4176 ac_enable_autodepend=yes
4180 #### Make srcdir absolute, if it isn't already. It's important to
4181 #### avoid running the path through pwd unnecessarily, since pwd can
4182 #### give you automounter prefixes, which can go away. We do all this
4183 #### so Emacs can find its files when run uninstalled.
4184 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4185 unset CDPATH
4186 case "${srcdir}" in
4187 /* ) ;;
4189 ## We may be able to use the $PWD environment variable to make this
4190 ## absolute. But sometimes PWD is inaccurate.
4191 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4192 ## but that tested only for a well-formed and valid PWD,
4193 ## it did not object when PWD was well-formed and valid but just wrong.
4194 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4195 then
4196 srcdir="$PWD"
4197 else
4198 srcdir="`(cd ${srcdir}; pwd)`"
4201 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4202 esac
4204 #### Check if the source directory already has a configured system in it.
4205 if test `pwd` != `(cd ${srcdir} && pwd)` \
4206 && test -f "${srcdir}/src/config.h" ; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4208 as a build directory right now; it has been configured in its own
4209 right. To configure in another directory as well, you MUST
4210 use GNU make. If you do not have GNU make, then you must
4211 now do \`make distclean' in ${srcdir},
4212 and then run $0 again." >&5
4213 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4214 as a build directory right now; it has been configured in its own
4215 right. To configure in another directory as well, you MUST
4216 use GNU make. If you do not have GNU make, then you must
4217 now do \`make distclean' in ${srcdir},
4218 and then run $0 again." >&2;}
4221 #### Given the configuration name, set machfile and opsysfile to the
4222 #### names of the m/*.h and s/*.h files we should use.
4224 ### Canonicalize the configuration name.
4226 # Make sure we can run config.sub.
4227 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4228 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4231 $as_echo_n "checking build system type... " >&6; }
4232 if test "${ac_cv_build+set}" = set; then :
4233 $as_echo_n "(cached) " >&6
4234 else
4235 ac_build_alias=$build_alias
4236 test "x$ac_build_alias" = x &&
4237 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4238 test "x$ac_build_alias" = x &&
4239 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4240 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4241 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4245 $as_echo "$ac_cv_build" >&6; }
4246 case $ac_cv_build in
4247 *-*-*) ;;
4248 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4249 esac
4250 build=$ac_cv_build
4251 ac_save_IFS=$IFS; IFS='-'
4252 set x $ac_cv_build
4253 shift
4254 build_cpu=$1
4255 build_vendor=$2
4256 shift; shift
4257 # Remember, the first character of IFS is used to create $*,
4258 # except with old shells:
4259 build_os=$*
4260 IFS=$ac_save_IFS
4261 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4265 $as_echo_n "checking host system type... " >&6; }
4266 if test "${ac_cv_host+set}" = set; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 if test "x$host_alias" = x; then
4270 ac_cv_host=$ac_cv_build
4271 else
4272 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4273 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4278 $as_echo "$ac_cv_host" >&6; }
4279 case $ac_cv_host in
4280 *-*-*) ;;
4281 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4282 esac
4283 host=$ac_cv_host
4284 ac_save_IFS=$IFS; IFS='-'
4285 set x $ac_cv_host
4286 shift
4287 host_cpu=$1
4288 host_vendor=$2
4289 shift; shift
4290 # Remember, the first character of IFS is used to create $*,
4291 # except with old shells:
4292 host_os=$*
4293 IFS=$ac_save_IFS
4294 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4297 canonical=$host
4298 configuration=${host_alias-${build_alias-$host}}
4302 ### If you add support for a new configuration, add code to this
4303 ### switch statement to recognize your configuration name and select
4304 ### the appropriate operating system and machine description files.
4306 ### You would hope that you could choose an m/*.h file pretty much
4307 ### based on the machine portion of the configuration name, and an s/*.h
4308 ### file based on the operating system portion. However, it turns out
4309 ### that each m/*.h file is pretty manufacturer-specific - for
4310 ### example mips.h is MIPS
4311 ### So we basically have to have a special case for each
4312 ### configuration name.
4314 ### As far as handling version numbers on operating systems is
4315 ### concerned, make sure things will fail in a fixable way. If
4316 ### /etc/MACHINES doesn't say anything about version numbers, be
4317 ### prepared to handle anything reasonably. If version numbers
4318 ### matter, be sure /etc/MACHINES says something about it.
4320 machine='' opsys='' unported=no
4321 case "${canonical}" in
4323 ## GNU/Linux ports
4324 *-*-linux-gnu*)
4325 opsys=gnu-linux
4326 case ${canonical} in
4327 alpha*) machine=alpha ;;
4328 s390-*) machine=ibms390 ;;
4329 s390x-*) machine=ibms390x ;;
4330 powerpc*) machine=macppc ;;
4331 sparc*) machine=sparc ;;
4332 ia64*) machine=ia64 ;;
4333 m68k*) machine=m68k ;;
4334 x86_64*) machine=amdx86-64 ;;
4335 esac
4338 ## FreeBSD ports
4339 *-*-freebsd* )
4340 opsys=freebsd
4341 case "${canonical}" in
4342 alpha*) machine=alpha ;;
4343 amd64-*|x86_64-*) machine=amdx86-64 ;;
4344 ia64-*) machine=ia64 ;;
4345 i[3456]86-*) machine=intel386 ;;
4346 powerpc-*) machine=macppc ;;
4347 sparc-*) machine=sparc ;;
4348 sparc64-*) machine=sparc ;;
4349 esac
4352 ## FreeBSD kernel + glibc based userland
4353 *-*-kfreebsd*gnu* )
4354 opsys=gnu-kfreebsd
4355 case "${canonical}" in
4356 alpha*) machine=alpha ;;
4357 amd64-*|x86_64-*) machine=amdx86-64 ;;
4358 ia64-*) machine=ia64 ;;
4359 i[3456]86-*) machine=intel386 ;;
4360 powerpc-*) machine=macppc ;;
4361 sparc-*) machine=sparc ;;
4362 sparc64-*) machine=sparc ;;
4363 esac
4366 ## NetBSD ports
4367 *-*-netbsd* )
4368 opsys=netbsd
4369 case "${canonical}" in
4370 alpha*) machine=alpha ;;
4371 x86_64-*) machine=amdx86-64 ;;
4372 i[3456]86-*) machine=intel386 ;;
4373 m68k-*) machine=m68k ;;
4374 powerpc-*) machine=macppc ;;
4375 sparc*-) machine=sparc ;;
4376 vax-*) machine=vax ;;
4377 esac
4380 ## OpenBSD ports
4381 *-*-openbsd* )
4382 opsys=openbsd
4383 case "${canonical}" in
4384 alpha*) machine=alpha ;;
4385 x86_64-*) machine=amdx86-64 ;;
4386 i386-*) machine=intel386 ;;
4387 powerpc-*) machine=macppc ;;
4388 sparc*) machine=sparc ;;
4389 vax-*) machine=vax ;;
4390 esac
4393 ## Apple Darwin / Mac OS X
4394 *-apple-darwin* )
4395 case "${canonical}" in
4396 i[3456]86-* ) machine=intel386 ;;
4397 powerpc-* ) machine=macppc ;;
4398 x86_64-* ) machine=amdx86-64 ;;
4399 * ) unported=yes ;;
4400 esac
4401 opsys=darwin
4402 # Define CPP as follows to make autoconf work correctly.
4403 CPP="${CC-cc} -E -no-cpp-precomp"
4404 # Use fink packages if available.
4405 if test -d /sw/include && test -d /sw/lib; then
4406 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4407 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4408 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4412 ## HP 9000 series 700 and 800, running HP/UX
4413 hppa*-hp-hpux10.2* )
4414 opsys=hpux10-20
4416 hppa*-hp-hpux1[1-9]* )
4417 opsys=hpux11
4418 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4421 ia64*-hp-hpux1[1-9]* )
4422 machine=hp800 opsys=hpux11
4423 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4424 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4425 CANNOT_DUMP=yes
4428 hppa*-*-linux-gnu* )
4429 machine=hp800 opsys=gnu-linux
4432 ## IBM machines
4433 rs6000-ibm-aix4.[23]* )
4434 machine=ibmrs6000 opsys=aix4-2
4436 powerpc-ibm-aix4.[23]* )
4437 machine=ibmrs6000 opsys=aix4-2
4439 rs6000-ibm-aix[56]* )
4440 machine=ibmrs6000 opsys=aix4-2
4442 powerpc-ibm-aix[56]* )
4443 machine=ibmrs6000 opsys=aix4-2
4446 ## Silicon Graphics machines
4447 ## Iris 4D
4448 mips-sgi-irix6.5 )
4449 machine=iris4d opsys=irix6-5
4450 # Without defining _LANGUAGE_C, things get masked out in the headers
4451 # so that, for instance, grepping for `free' in stdlib.h fails and
4452 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4453 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4454 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4457 ## Suns
4458 *-sun-solaris* \
4459 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4460 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4461 case "${canonical}" in
4462 i[3456]86-*-* ) machine=intel386 ;;
4463 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4464 sparc* ) machine=sparc ;;
4465 * ) unported=yes ;;
4466 esac
4467 case "${canonical}" in
4468 *-sunos5.6* | *-solaris2.6* )
4469 opsys=sol2-6
4470 NON_GNU_CPP=/usr/ccs/lib/cpp
4471 RANLIB="ar -ts"
4473 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4474 opsys=sol2-6
4475 emacs_check_sunpro_c=yes
4476 NON_GNU_CPP=/usr/ccs/lib/cpp
4478 *-sunos5* | *-solaris* )
4479 opsys=sol2-10
4480 emacs_check_sunpro_c=yes
4481 NON_GNU_CPP=/usr/ccs/lib/cpp
4483 esac
4484 ## Watch out for a compiler that we know will not work.
4485 case "${canonical}" in
4486 *-solaris* | *-sunos5* )
4487 if [ "x$CC" = x/usr/ucb/cc ]; then
4488 ## /usr/ucb/cc doesn't work;
4489 ## we should find some other compiler that does work.
4490 unset CC
4493 *) ;;
4494 esac
4497 ## Intel 386 machines where we don't care about the manufacturer.
4498 i[3456]86-*-* )
4499 machine=intel386
4500 case "${canonical}" in
4501 *-cygwin ) opsys=cygwin ;;
4502 *-darwin* ) opsys=darwin
4503 CPP="${CC-cc} -E -no-cpp-precomp"
4505 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4506 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4507 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4508 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4509 esac
4513 unported=yes
4515 esac
4517 ### If the code above didn't choose an operating system, just choose
4518 ### an operating system based on the configuration name. You really
4519 ### only want to use this when you have no idea what the right
4520 ### operating system is; if you know what operating systems a machine
4521 ### runs, it's cleaner to make it explicit in the case statement
4522 ### above.
4523 if test x"${opsys}" = x; then
4524 case "${canonical}" in
4525 *-gnu* ) opsys=gnu ;;
4527 unported=yes
4529 esac
4534 if test $unported = yes; then
4535 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4536 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4539 if test -n "$machine"; then
4540 machfile="m/${machine}.h"
4541 else
4542 machfile=
4544 opsysfile="s/${opsys}.h"
4547 #### Choose a compiler.
4548 test -n "$CC" && cc_specified=yes
4550 # Save the value of CFLAGS that the user specified.
4551 SPECIFIED_CFLAGS="$CFLAGS"
4553 ac_ext=c
4554 ac_cpp='$CPP $CPPFLAGS'
4555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4558 if test -n "$ac_tool_prefix"; then
4559 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4560 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4562 $as_echo_n "checking for $ac_word... " >&6; }
4563 if test "${ac_cv_prog_CC+set}" = set; then :
4564 $as_echo_n "(cached) " >&6
4565 else
4566 if test -n "$CC"; then
4567 ac_cv_prog_CC="$CC" # Let the user override the test.
4568 else
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH
4572 IFS=$as_save_IFS
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4576 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 break 2
4580 done
4581 done
4582 IFS=$as_save_IFS
4586 CC=$ac_cv_prog_CC
4587 if test -n "$CC"; then
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4589 $as_echo "$CC" >&6; }
4590 else
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592 $as_echo "no" >&6; }
4597 if test -z "$ac_cv_prog_CC"; then
4598 ac_ct_CC=$CC
4599 # Extract the first word of "gcc", so it can be a program name with args.
4600 set dummy gcc; ac_word=$2
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602 $as_echo_n "checking for $ac_word... " >&6; }
4603 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4604 $as_echo_n "(cached) " >&6
4605 else
4606 if test -n "$ac_ct_CC"; then
4607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4608 else
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4616 ac_cv_prog_ac_ct_CC="gcc"
4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 break 2
4620 done
4621 done
4622 IFS=$as_save_IFS
4626 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4627 if test -n "$ac_ct_CC"; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4629 $as_echo "$ac_ct_CC" >&6; }
4630 else
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632 $as_echo "no" >&6; }
4635 if test "x$ac_ct_CC" = x; then
4636 CC=""
4637 else
4638 case $cross_compiling:$ac_tool_warned in
4639 yes:)
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4642 ac_tool_warned=yes ;;
4643 esac
4644 CC=$ac_ct_CC
4646 else
4647 CC="$ac_cv_prog_CC"
4650 if test -z "$CC"; then
4651 if test -n "$ac_tool_prefix"; then
4652 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4653 set dummy ${ac_tool_prefix}cc; ac_word=$2
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if test "${ac_cv_prog_CC+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4658 else
4659 if test -n "$CC"; then
4660 ac_cv_prog_CC="$CC" # Let the user override the test.
4661 else
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_CC="${ac_tool_prefix}cc"
4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4673 done
4674 done
4675 IFS=$as_save_IFS
4679 CC=$ac_cv_prog_CC
4680 if test -n "$CC"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4682 $as_echo "$CC" >&6; }
4683 else
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 $as_echo "no" >&6; }
4691 if test -z "$CC"; then
4692 # Extract the first word of "cc", so it can be a program name with args.
4693 set dummy cc; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if test "${ac_cv_prog_CC+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 if test -n "$CC"; then
4700 ac_cv_prog_CC="$CC" # Let the user override the test.
4701 else
4702 ac_prog_rejected=no
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4706 IFS=$as_save_IFS
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4711 ac_prog_rejected=yes
4712 continue
4714 ac_cv_prog_CC="cc"
4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 break 2
4718 done
4719 done
4720 IFS=$as_save_IFS
4722 if test $ac_prog_rejected = yes; then
4723 # We found a bogon in the path, so make sure we never use it.
4724 set dummy $ac_cv_prog_CC
4725 shift
4726 if test $# != 0; then
4727 # We chose a different compiler from the bogus one.
4728 # However, it has the same basename, so the bogon will be chosen
4729 # first if we set CC to just the basename; use the full file name.
4730 shift
4731 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4736 CC=$ac_cv_prog_CC
4737 if test -n "$CC"; then
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4739 $as_echo "$CC" >&6; }
4740 else
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4747 if test -z "$CC"; then
4748 if test -n "$ac_tool_prefix"; then
4749 for ac_prog in cl.exe
4751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if test "${ac_cv_prog_CC+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 if test -n "$CC"; then
4759 ac_cv_prog_CC="$CC" # Let the user override the test.
4760 else
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 for as_dir in $PATH
4764 IFS=$as_save_IFS
4765 test -z "$as_dir" && as_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4768 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 break 2
4772 done
4773 done
4774 IFS=$as_save_IFS
4778 CC=$ac_cv_prog_CC
4779 if test -n "$CC"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4781 $as_echo "$CC" >&6; }
4782 else
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4788 test -n "$CC" && break
4789 done
4791 if test -z "$CC"; then
4792 ac_ct_CC=$CC
4793 for ac_prog in cl.exe
4795 # Extract the first word of "$ac_prog", so it can be a program name with args.
4796 set dummy $ac_prog; ac_word=$2
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4798 $as_echo_n "checking for $ac_word... " >&6; }
4799 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4800 $as_echo_n "(cached) " >&6
4801 else
4802 if test -n "$ac_ct_CC"; then
4803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4804 else
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH
4808 IFS=$as_save_IFS
4809 test -z "$as_dir" && as_dir=.
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4812 ac_cv_prog_ac_ct_CC="$ac_prog"
4813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 break 2
4816 done
4817 done
4818 IFS=$as_save_IFS
4822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4823 if test -n "$ac_ct_CC"; then
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4825 $as_echo "$ac_ct_CC" >&6; }
4826 else
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828 $as_echo "no" >&6; }
4832 test -n "$ac_ct_CC" && break
4833 done
4835 if test "x$ac_ct_CC" = x; then
4836 CC=""
4837 else
4838 case $cross_compiling:$ac_tool_warned in
4839 yes:)
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4842 ac_tool_warned=yes ;;
4843 esac
4844 CC=$ac_ct_CC
4851 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4853 as_fn_error "no acceptable C compiler found in \$PATH
4854 See \`config.log' for more details." "$LINENO" 5; }
4856 # Provide some information about the compiler.
4857 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4858 set X $ac_compile
4859 ac_compiler=$2
4860 for ac_option in --version -v -V -qversion; do
4861 { { ac_try="$ac_compiler $ac_option >&5"
4862 case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865 esac
4866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4867 $as_echo "$ac_try_echo"; } >&5
4868 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4869 ac_status=$?
4870 if test -s conftest.err; then
4871 sed '10a\
4872 ... rest of stderr output deleted ...
4873 10q' conftest.err >conftest.er1
4874 cat conftest.er1 >&5
4876 rm -f conftest.er1 conftest.err
4877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4878 test $ac_status = 0; }
4879 done
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4885 main ()
4889 return 0;
4891 _ACEOF
4892 ac_clean_files_save=$ac_clean_files
4893 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4894 # Try to create an executable without -o first, disregard a.out.
4895 # It will help us diagnose broken compilers, and finding out an intuition
4896 # of exeext.
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4898 $as_echo_n "checking whether the C compiler works... " >&6; }
4899 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4901 # The possible output files:
4902 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4904 ac_rmfiles=
4905 for ac_file in $ac_files
4907 case $ac_file in
4908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4909 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4910 esac
4911 done
4912 rm -f $ac_rmfiles
4914 if { { ac_try="$ac_link_default"
4915 case "(($ac_try" in
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4918 esac
4919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4920 $as_echo "$ac_try_echo"; } >&5
4921 (eval "$ac_link_default") 2>&5
4922 ac_status=$?
4923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4924 test $ac_status = 0; }; then :
4925 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4926 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4927 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4928 # so that the user can short-circuit this test for compilers unknown to
4929 # Autoconf.
4930 for ac_file in $ac_files ''
4932 test -f "$ac_file" || continue
4933 case $ac_file in
4934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4936 [ab].out )
4937 # We found the default executable, but exeext='' is most
4938 # certainly right.
4939 break;;
4940 *.* )
4941 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4942 then :; else
4943 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4945 # We set ac_cv_exeext here because the later test for it is not
4946 # safe: cross compilers may not add the suffix if given an `-o'
4947 # argument, so we may need to know it at that point already.
4948 # Even if this section looks crufty: it has the advantage of
4949 # actually working.
4950 break;;
4952 break;;
4953 esac
4954 done
4955 test "$ac_cv_exeext" = no && ac_cv_exeext=
4957 else
4958 ac_file=''
4960 if test -z "$ac_file"; then :
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4963 $as_echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4968 { as_fn_set_status 77
4969 as_fn_error "C compiler cannot create executables
4970 See \`config.log' for more details." "$LINENO" 5; }; }
4971 else
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4973 $as_echo "yes" >&6; }
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4976 $as_echo_n "checking for C compiler default output file name... " >&6; }
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4978 $as_echo "$ac_file" >&6; }
4979 ac_exeext=$ac_cv_exeext
4981 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4982 ac_clean_files=$ac_clean_files_save
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4984 $as_echo_n "checking for suffix of executables... " >&6; }
4985 if { { ac_try="$ac_link"
4986 case "(($ac_try" in
4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4989 esac
4990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4991 $as_echo "$ac_try_echo"; } >&5
4992 (eval "$ac_link") 2>&5
4993 ac_status=$?
4994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4995 test $ac_status = 0; }; then :
4996 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4997 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4998 # work properly (i.e., refer to `conftest.exe'), while it won't with
4999 # `rm'.
5000 for ac_file in conftest.exe conftest conftest.*; do
5001 test -f "$ac_file" || continue
5002 case $ac_file in
5003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5004 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5005 break;;
5006 * ) break;;
5007 esac
5008 done
5009 else
5010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5012 as_fn_error "cannot compute suffix of executables: cannot compile and link
5013 See \`config.log' for more details." "$LINENO" 5; }
5015 rm -f conftest conftest$ac_cv_exeext
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5017 $as_echo "$ac_cv_exeext" >&6; }
5019 rm -f conftest.$ac_ext
5020 EXEEXT=$ac_cv_exeext
5021 ac_exeext=$EXEEXT
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5024 #include <stdio.h>
5026 main ()
5028 FILE *f = fopen ("conftest.out", "w");
5029 return ferror (f) || fclose (f) != 0;
5032 return 0;
5034 _ACEOF
5035 ac_clean_files="$ac_clean_files conftest.out"
5036 # Check that the compiler produces executables we can run. If not, either
5037 # the compiler is broken, or we cross compile.
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5039 $as_echo_n "checking whether we are cross compiling... " >&6; }
5040 if test "$cross_compiling" != yes; then
5041 { { ac_try="$ac_link"
5042 case "(($ac_try" in
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5045 esac
5046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5047 $as_echo "$ac_try_echo"; } >&5
5048 (eval "$ac_link") 2>&5
5049 ac_status=$?
5050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5051 test $ac_status = 0; }
5052 if { ac_try='./conftest$ac_cv_exeext'
5053 { { case "(($ac_try" in
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5056 esac
5057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5058 $as_echo "$ac_try_echo"; } >&5
5059 (eval "$ac_try") 2>&5
5060 ac_status=$?
5061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5062 test $ac_status = 0; }; }; then
5063 cross_compiling=no
5064 else
5065 if test "$cross_compiling" = maybe; then
5066 cross_compiling=yes
5067 else
5068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5070 as_fn_error "cannot run C compiled programs.
5071 If you meant to cross compile, use \`--host'.
5072 See \`config.log' for more details." "$LINENO" 5; }
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5077 $as_echo "$cross_compiling" >&6; }
5079 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5080 ac_clean_files=$ac_clean_files_save
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5082 $as_echo_n "checking for suffix of object files... " >&6; }
5083 if test "${ac_cv_objext+set}" = set; then :
5084 $as_echo_n "(cached) " >&6
5085 else
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5090 main ()
5094 return 0;
5096 _ACEOF
5097 rm -f conftest.o conftest.obj
5098 if { { ac_try="$ac_compile"
5099 case "(($ac_try" in
5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5102 esac
5103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5104 $as_echo "$ac_try_echo"; } >&5
5105 (eval "$ac_compile") 2>&5
5106 ac_status=$?
5107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5108 test $ac_status = 0; }; then :
5109 for ac_file in conftest.o conftest.obj conftest.*; do
5110 test -f "$ac_file" || continue;
5111 case $ac_file in
5112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5113 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5114 break;;
5115 esac
5116 done
5117 else
5118 $as_echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5123 as_fn_error "cannot compute suffix of object files: cannot compile
5124 See \`config.log' for more details." "$LINENO" 5; }
5126 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5129 $as_echo "$ac_cv_objext" >&6; }
5130 OBJEXT=$ac_cv_objext
5131 ac_objext=$OBJEXT
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5133 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5134 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5141 main ()
5143 #ifndef __GNUC__
5144 choke me
5145 #endif
5148 return 0;
5150 _ACEOF
5151 if ac_fn_c_try_compile "$LINENO"; then :
5152 ac_compiler_gnu=yes
5153 else
5154 ac_compiler_gnu=no
5156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5157 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5161 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5162 if test $ac_compiler_gnu = yes; then
5163 GCC=yes
5164 else
5165 GCC=
5167 ac_test_CFLAGS=${CFLAGS+set}
5168 ac_save_CFLAGS=$CFLAGS
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5170 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5171 if test "${ac_cv_prog_cc_g+set}" = set; then :
5172 $as_echo_n "(cached) " >&6
5173 else
5174 ac_save_c_werror_flag=$ac_c_werror_flag
5175 ac_c_werror_flag=yes
5176 ac_cv_prog_cc_g=no
5177 CFLAGS="-g"
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5182 main ()
5186 return 0;
5188 _ACEOF
5189 if ac_fn_c_try_compile "$LINENO"; then :
5190 ac_cv_prog_cc_g=yes
5191 else
5192 CFLAGS=""
5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5197 main ()
5201 return 0;
5203 _ACEOF
5204 if ac_fn_c_try_compile "$LINENO"; then :
5206 else
5207 ac_c_werror_flag=$ac_save_c_werror_flag
5208 CFLAGS="-g"
5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210 /* end confdefs.h. */
5213 main ()
5217 return 0;
5219 _ACEOF
5220 if ac_fn_c_try_compile "$LINENO"; then :
5221 ac_cv_prog_cc_g=yes
5223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5228 ac_c_werror_flag=$ac_save_c_werror_flag
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5231 $as_echo "$ac_cv_prog_cc_g" >&6; }
5232 if test "$ac_test_CFLAGS" = set; then
5233 CFLAGS=$ac_save_CFLAGS
5234 elif test $ac_cv_prog_cc_g = yes; then
5235 if test "$GCC" = yes; then
5236 CFLAGS="-g -O2"
5237 else
5238 CFLAGS="-g"
5240 else
5241 if test "$GCC" = yes; then
5242 CFLAGS="-O2"
5243 else
5244 CFLAGS=
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5248 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5249 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 ac_cv_prog_cc_c89=no
5253 ac_save_CC=$CC
5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5256 #include <stdarg.h>
5257 #include <stdio.h>
5258 #include <sys/types.h>
5259 #include <sys/stat.h>
5260 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5261 struct buf { int x; };
5262 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5263 static char *e (p, i)
5264 char **p;
5265 int i;
5267 return p[i];
5269 static char *f (char * (*g) (char **, int), char **p, ...)
5271 char *s;
5272 va_list v;
5273 va_start (v,p);
5274 s = g (p, va_arg (v,int));
5275 va_end (v);
5276 return s;
5279 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5280 function prototypes and stuff, but not '\xHH' hex character constants.
5281 These don't provoke an error unfortunately, instead are silently treated
5282 as 'x'. The following induces an error, until -std is added to get
5283 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5284 array size at least. It's necessary to write '\x00'==0 to get something
5285 that's true only with -std. */
5286 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5288 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5289 inside strings and character constants. */
5290 #define FOO(x) 'x'
5291 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5293 int test (int i, double x);
5294 struct s1 {int (*f) (int a);};
5295 struct s2 {int (*f) (double a);};
5296 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5297 int argc;
5298 char **argv;
5300 main ()
5302 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5304 return 0;
5306 _ACEOF
5307 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5308 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5310 CC="$ac_save_CC $ac_arg"
5311 if ac_fn_c_try_compile "$LINENO"; then :
5312 ac_cv_prog_cc_c89=$ac_arg
5314 rm -f core conftest.err conftest.$ac_objext
5315 test "x$ac_cv_prog_cc_c89" != "xno" && break
5316 done
5317 rm -f conftest.$ac_ext
5318 CC=$ac_save_CC
5321 # AC_CACHE_VAL
5322 case "x$ac_cv_prog_cc_c89" in
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5325 $as_echo "none needed" >&6; } ;;
5326 xno)
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5328 $as_echo "unsupported" >&6; } ;;
5330 CC="$CC $ac_cv_prog_cc_c89"
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5332 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5333 esac
5334 if test "x$ac_cv_prog_cc_c89" != xno; then :
5338 ac_ext=c
5339 ac_cpp='$CPP $CPPFLAGS'
5340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5343 DEPDIR="${am__leading_dot}deps"
5345 ac_config_commands="$ac_config_commands depfiles"
5348 am_make=${MAKE-make}
5349 cat > confinc << 'END'
5350 am__doit:
5351 @echo this is the am__doit target
5352 .PHONY: am__doit
5354 # If we don't find an include directive, just comment out the code.
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5356 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5357 am__include="#"
5358 am__quote=
5359 _am_result=none
5360 # First try GNU make style include.
5361 echo "include confinc" > confmf
5362 # Ignore all kinds of additional output from `make'.
5363 case `$am_make -s -f confmf 2> /dev/null` in #(
5364 *the\ am__doit\ target*)
5365 am__include=include
5366 am__quote=
5367 _am_result=GNU
5369 esac
5370 # Now try BSD make style include.
5371 if test "$am__include" = "#"; then
5372 echo '.include "confinc"' > confmf
5373 case `$am_make -s -f confmf 2> /dev/null` in #(
5374 *the\ am__doit\ target*)
5375 am__include=.include
5376 am__quote="\""
5377 _am_result=BSD
5379 esac
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5384 $as_echo "$_am_result" >&6; }
5385 rm -f confinc confmf
5387 # Check whether --enable-dependency-tracking was given.
5388 if test "${enable_dependency_tracking+set}" = set; then :
5389 enableval=$enable_dependency_tracking;
5392 if test "x$enable_dependency_tracking" != xno; then
5393 am_depcomp="$ac_aux_dir/depcomp"
5394 AMDEPBACKSLASH='\'
5396 if test "x$enable_dependency_tracking" != xno; then
5397 AMDEP_TRUE=
5398 AMDEP_FALSE='#'
5399 else
5400 AMDEP_TRUE='#'
5401 AMDEP_FALSE=
5406 depcc="$CC" am_compiler_list=
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5409 $as_echo_n "checking dependency style of $depcc... " >&6; }
5410 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5414 # We make a subdir and do the tests there. Otherwise we can end up
5415 # making bogus files that we don't know about and never remove. For
5416 # instance it was reported that on HP-UX the gcc test will end up
5417 # making a dummy file named `D' -- because `-MD' means `put the output
5418 # in D'.
5419 mkdir conftest.dir
5420 # Copy depcomp to subdir because otherwise we won't find it if we're
5421 # using a relative directory.
5422 cp "$am_depcomp" conftest.dir
5423 cd conftest.dir
5424 # We will build objects and dependencies in a subdirectory because
5425 # it helps to detect inapplicable dependency modes. For instance
5426 # both Tru64's cc and ICC support -MD to output dependencies as a
5427 # side effect of compilation, but ICC will put the dependencies in
5428 # the current directory while Tru64 will put them in the object
5429 # directory.
5430 mkdir sub
5432 am_cv_CC_dependencies_compiler_type=none
5433 if test "$am_compiler_list" = ""; then
5434 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5436 am__universal=false
5437 case " $depcc " in #(
5438 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5439 esac
5441 for depmode in $am_compiler_list; do
5442 # Setup a source with many dependencies, because some compilers
5443 # like to wrap large dependency lists on column 80 (with \), and
5444 # we should not choose a depcomp mode which is confused by this.
5446 # We need to recreate these files for each test, as the compiler may
5447 # overwrite some of them when testing with obscure command lines.
5448 # This happens at least with the AIX C compiler.
5449 : > sub/conftest.c
5450 for i in 1 2 3 4 5 6; do
5451 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5452 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5453 # Solaris 8's {/usr,}/bin/sh.
5454 touch sub/conftst$i.h
5455 done
5456 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5458 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5459 # mode. It turns out that the SunPro C++ compiler does not properly
5460 # handle `-M -o', and we need to detect this. Also, some Intel
5461 # versions had trouble with output in subdirs
5462 am__obj=sub/conftest.${OBJEXT-o}
5463 am__minus_obj="-o $am__obj"
5464 case $depmode in
5465 gcc)
5466 # This depmode causes a compiler race in universal mode.
5467 test "$am__universal" = false || continue
5469 nosideeffect)
5470 # after this tag, mechanisms are not by side-effect, so they'll
5471 # only be used when explicitly requested
5472 if test "x$enable_dependency_tracking" = xyes; then
5473 continue
5474 else
5475 break
5478 msvisualcpp | msvcmsys)
5479 # This compiler won't grok `-c -o', but also, the minuso test has
5480 # not run yet. These depmodes are late enough in the game, and
5481 # so weak that their functioning should not be impacted.
5482 am__obj=conftest.${OBJEXT-o}
5483 am__minus_obj=
5485 none) break ;;
5486 esac
5487 if depmode=$depmode \
5488 source=sub/conftest.c object=$am__obj \
5489 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5490 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5491 >/dev/null 2>conftest.err &&
5492 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5493 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5494 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5495 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5496 # icc doesn't choke on unknown options, it will just issue warnings
5497 # or remarks (even with -Werror). So we grep stderr for any message
5498 # that says an option was ignored or not supported.
5499 # When given -MP, icc 7.0 and 7.1 complain thusly:
5500 # icc: Command line warning: ignoring option '-M'; no argument required
5501 # The diagnosis changed in icc 8.0:
5502 # icc: Command line remark: option '-MP' not supported
5503 if (grep 'ignoring option' conftest.err ||
5504 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5505 am_cv_CC_dependencies_compiler_type=$depmode
5506 break
5509 done
5511 cd ..
5512 rm -rf conftest.dir
5513 else
5514 am_cv_CC_dependencies_compiler_type=none
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5519 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5520 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5523 test "x$enable_dependency_tracking" != xno \
5524 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5525 am__fastdepCC_TRUE=
5526 am__fastdepCC_FALSE='#'
5527 else
5528 am__fastdepCC_TRUE='#'
5529 am__fastdepCC_FALSE=
5533 if test "x$CC" != xcc; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5535 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5536 else
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5538 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5540 set dummy $CC; ac_cc=`$as_echo "$2" |
5541 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5542 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5543 $as_echo_n "(cached) " >&6
5544 else
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5549 main ()
5553 return 0;
5555 _ACEOF
5556 # Make sure it works both with $CC and with simple cc.
5557 # We do the test twice because some compilers refuse to overwrite an
5558 # existing .o file with -o, though they will create one.
5559 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5560 rm -f conftest2.*
5561 if { { case "(($ac_try" in
5562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563 *) ac_try_echo=$ac_try;;
5564 esac
5565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5566 $as_echo "$ac_try_echo"; } >&5
5567 (eval "$ac_try") 2>&5
5568 ac_status=$?
5569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5570 test $ac_status = 0; } &&
5571 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5574 esac
5575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5576 $as_echo "$ac_try_echo"; } >&5
5577 (eval "$ac_try") 2>&5
5578 ac_status=$?
5579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5580 test $ac_status = 0; };
5581 then
5582 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5583 if test "x$CC" != xcc; then
5584 # Test first that cc exists at all.
5585 if { ac_try='cc -c conftest.$ac_ext >&5'
5586 { { case "(($ac_try" in
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5589 esac
5590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5591 $as_echo "$ac_try_echo"; } >&5
5592 (eval "$ac_try") 2>&5
5593 ac_status=$?
5594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5595 test $ac_status = 0; }; }; then
5596 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5597 rm -f conftest2.*
5598 if { { case "(($ac_try" in
5599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600 *) ac_try_echo=$ac_try;;
5601 esac
5602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5603 $as_echo "$ac_try_echo"; } >&5
5604 (eval "$ac_try") 2>&5
5605 ac_status=$?
5606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5607 test $ac_status = 0; } &&
5608 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610 *) ac_try_echo=$ac_try;;
5611 esac
5612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5613 $as_echo "$ac_try_echo"; } >&5
5614 (eval "$ac_try") 2>&5
5615 ac_status=$?
5616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5617 test $ac_status = 0; };
5618 then
5619 # cc works too.
5621 else
5622 # cc exists but doesn't like -o.
5623 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5627 else
5628 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5630 rm -f core conftest*
5633 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5635 $as_echo "yes" >&6; }
5636 else
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638 $as_echo "no" >&6; }
5640 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5644 # FIXME: we rely on the cache variable name because
5645 # there is no other way.
5646 set dummy $CC
5647 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5648 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5649 if test "$am_t" != yes; then
5650 # Losing compiler, so override with the script.
5651 # FIXME: It is wrong to rewrite CC.
5652 # But if we don't then we get into trouble of one sort or another.
5653 # A longer-term fix would be to have automake use am__CC in this case,
5654 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5655 CC="$am_aux_dir/compile $CC"
5660 # Initialize gnulib right after verifying that the C compiler works.
5661 if test -n "$ac_tool_prefix"; then
5662 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5663 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 if test -n "$RANLIB"; then
5670 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5679 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 break 2
5683 done
5684 done
5685 IFS=$as_save_IFS
5689 RANLIB=$ac_cv_prog_RANLIB
5690 if test -n "$RANLIB"; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5692 $as_echo "$RANLIB" >&6; }
5693 else
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5700 if test -z "$ac_cv_prog_RANLIB"; then
5701 ac_ct_RANLIB=$RANLIB
5702 # Extract the first word of "ranlib", so it can be a program name with args.
5703 set dummy ranlib; ac_word=$2
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705 $as_echo_n "checking for $ac_word... " >&6; }
5706 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5707 $as_echo_n "(cached) " >&6
5708 else
5709 if test -n "$ac_ct_RANLIB"; then
5710 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5711 else
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH
5715 IFS=$as_save_IFS
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5719 ac_cv_prog_ac_ct_RANLIB="ranlib"
5720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 break 2
5723 done
5724 done
5725 IFS=$as_save_IFS
5729 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5730 if test -n "$ac_ct_RANLIB"; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5732 $as_echo "$ac_ct_RANLIB" >&6; }
5733 else
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735 $as_echo "no" >&6; }
5738 if test "x$ac_ct_RANLIB" = x; then
5739 RANLIB=":"
5740 else
5741 case $cross_compiling:$ac_tool_warned in
5742 yes:)
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5745 ac_tool_warned=yes ;;
5746 esac
5747 RANLIB=$ac_ct_RANLIB
5749 else
5750 RANLIB="$ac_cv_prog_RANLIB"
5754 ac_ext=c
5755 ac_cpp='$CPP $CPPFLAGS'
5756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5760 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5761 # On Suns, sometimes $CPP names a directory.
5762 if test -n "$CPP" && test -d "$CPP"; then
5763 CPP=
5765 if test -z "$CPP"; then
5766 if test "${ac_cv_prog_CPP+set}" = set; then :
5767 $as_echo_n "(cached) " >&6
5768 else
5769 # Double quotes because CPP needs to be expanded
5770 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5772 ac_preproc_ok=false
5773 for ac_c_preproc_warn_flag in '' yes
5775 # Use a header file that comes with gcc, so configuring glibc
5776 # with a fresh cross-compiler works.
5777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5778 # <limits.h> exists even on freestanding compilers.
5779 # On the NeXT, cc -E runs the code through the compiler's parser,
5780 # not just through cpp. "Syntax error" is here to catch this case.
5781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5782 /* end confdefs.h. */
5783 #ifdef __STDC__
5784 # include <limits.h>
5785 #else
5786 # include <assert.h>
5787 #endif
5788 Syntax error
5789 _ACEOF
5790 if ac_fn_c_try_cpp "$LINENO"; then :
5792 else
5793 # Broken: fails on valid input.
5794 continue
5796 rm -f conftest.err conftest.$ac_ext
5798 # OK, works on sane cases. Now check whether nonexistent headers
5799 # can be detected and how.
5800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801 /* end confdefs.h. */
5802 #include <ac_nonexistent.h>
5803 _ACEOF
5804 if ac_fn_c_try_cpp "$LINENO"; then :
5805 # Broken: success on invalid input.
5806 continue
5807 else
5808 # Passes both tests.
5809 ac_preproc_ok=:
5810 break
5812 rm -f conftest.err conftest.$ac_ext
5814 done
5815 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5816 rm -f conftest.err conftest.$ac_ext
5817 if $ac_preproc_ok; then :
5818 break
5821 done
5822 ac_cv_prog_CPP=$CPP
5825 CPP=$ac_cv_prog_CPP
5826 else
5827 ac_cv_prog_CPP=$CPP
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5830 $as_echo "$CPP" >&6; }
5831 ac_preproc_ok=false
5832 for ac_c_preproc_warn_flag in '' yes
5834 # Use a header file that comes with gcc, so configuring glibc
5835 # with a fresh cross-compiler works.
5836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5837 # <limits.h> exists even on freestanding compilers.
5838 # On the NeXT, cc -E runs the code through the compiler's parser,
5839 # not just through cpp. "Syntax error" is here to catch this case.
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 #ifdef __STDC__
5843 # include <limits.h>
5844 #else
5845 # include <assert.h>
5846 #endif
5847 Syntax error
5848 _ACEOF
5849 if ac_fn_c_try_cpp "$LINENO"; then :
5851 else
5852 # Broken: fails on valid input.
5853 continue
5855 rm -f conftest.err conftest.$ac_ext
5857 # OK, works on sane cases. Now check whether nonexistent headers
5858 # can be detected and how.
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860 /* end confdefs.h. */
5861 #include <ac_nonexistent.h>
5862 _ACEOF
5863 if ac_fn_c_try_cpp "$LINENO"; then :
5864 # Broken: success on invalid input.
5865 continue
5866 else
5867 # Passes both tests.
5868 ac_preproc_ok=:
5869 break
5871 rm -f conftest.err conftest.$ac_ext
5873 done
5874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5875 rm -f conftest.err conftest.$ac_ext
5876 if $ac_preproc_ok; then :
5878 else
5879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5881 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5882 See \`config.log' for more details." "$LINENO" 5; }
5885 ac_ext=c
5886 ac_cpp='$CPP $CPPFLAGS'
5887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5893 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5894 if test "${ac_cv_path_GREP+set}" = set; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5897 if test -z "$GREP"; then
5898 ac_path_GREP_found=false
5899 # Loop through the user's path and test for each of PROGNAME-LIST
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5903 IFS=$as_save_IFS
5904 test -z "$as_dir" && as_dir=.
5905 for ac_prog in grep ggrep; do
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5908 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5909 # Check for GNU ac_path_GREP and select it if it is found.
5910 # Check for GNU $ac_path_GREP
5911 case `"$ac_path_GREP" --version 2>&1` in
5912 *GNU*)
5913 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5915 ac_count=0
5916 $as_echo_n 0123456789 >"conftest.in"
5917 while :
5919 cat "conftest.in" "conftest.in" >"conftest.tmp"
5920 mv "conftest.tmp" "conftest.in"
5921 cp "conftest.in" "conftest.nl"
5922 $as_echo 'GREP' >> "conftest.nl"
5923 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5925 as_fn_arith $ac_count + 1 && ac_count=$as_val
5926 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5927 # Best one so far, save it but keep looking for a better one
5928 ac_cv_path_GREP="$ac_path_GREP"
5929 ac_path_GREP_max=$ac_count
5931 # 10*(2^10) chars as input seems more than enough
5932 test $ac_count -gt 10 && break
5933 done
5934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5935 esac
5937 $ac_path_GREP_found && break 3
5938 done
5939 done
5940 done
5941 IFS=$as_save_IFS
5942 if test -z "$ac_cv_path_GREP"; then
5943 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5945 else
5946 ac_cv_path_GREP=$GREP
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5951 $as_echo "$ac_cv_path_GREP" >&6; }
5952 GREP="$ac_cv_path_GREP"
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5956 $as_echo_n "checking for egrep... " >&6; }
5957 if test "${ac_cv_path_EGREP+set}" = set; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5961 then ac_cv_path_EGREP="$GREP -E"
5962 else
5963 if test -z "$EGREP"; then
5964 ac_path_EGREP_found=false
5965 # Loop through the user's path and test for each of PROGNAME-LIST
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5969 IFS=$as_save_IFS
5970 test -z "$as_dir" && as_dir=.
5971 for ac_prog in egrep; do
5972 for ac_exec_ext in '' $ac_executable_extensions; do
5973 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5974 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5975 # Check for GNU ac_path_EGREP and select it if it is found.
5976 # Check for GNU $ac_path_EGREP
5977 case `"$ac_path_EGREP" --version 2>&1` in
5978 *GNU*)
5979 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5981 ac_count=0
5982 $as_echo_n 0123456789 >"conftest.in"
5983 while :
5985 cat "conftest.in" "conftest.in" >"conftest.tmp"
5986 mv "conftest.tmp" "conftest.in"
5987 cp "conftest.in" "conftest.nl"
5988 $as_echo 'EGREP' >> "conftest.nl"
5989 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5990 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5991 as_fn_arith $ac_count + 1 && ac_count=$as_val
5992 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5993 # Best one so far, save it but keep looking for a better one
5994 ac_cv_path_EGREP="$ac_path_EGREP"
5995 ac_path_EGREP_max=$ac_count
5997 # 10*(2^10) chars as input seems more than enough
5998 test $ac_count -gt 10 && break
5999 done
6000 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6001 esac
6003 $ac_path_EGREP_found && break 3
6004 done
6005 done
6006 done
6007 IFS=$as_save_IFS
6008 if test -z "$ac_cv_path_EGREP"; then
6009 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6011 else
6012 ac_cv_path_EGREP=$EGREP
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6018 $as_echo "$ac_cv_path_EGREP" >&6; }
6019 EGREP="$ac_cv_path_EGREP"
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6023 $as_echo_n "checking for ANSI C header files... " >&6; }
6024 if test "${ac_cv_header_stdc+set}" = set; then :
6025 $as_echo_n "(cached) " >&6
6026 else
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6029 #include <stdlib.h>
6030 #include <stdarg.h>
6031 #include <string.h>
6032 #include <float.h>
6035 main ()
6039 return 0;
6041 _ACEOF
6042 if ac_fn_c_try_compile "$LINENO"; then :
6043 ac_cv_header_stdc=yes
6044 else
6045 ac_cv_header_stdc=no
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049 if test $ac_cv_header_stdc = yes; then
6050 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6053 #include <string.h>
6055 _ACEOF
6056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6057 $EGREP "memchr" >/dev/null 2>&1; then :
6059 else
6060 ac_cv_header_stdc=no
6062 rm -f conftest*
6066 if test $ac_cv_header_stdc = yes; then
6067 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6070 #include <stdlib.h>
6072 _ACEOF
6073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6074 $EGREP "free" >/dev/null 2>&1; then :
6076 else
6077 ac_cv_header_stdc=no
6079 rm -f conftest*
6083 if test $ac_cv_header_stdc = yes; then
6084 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6085 if test "$cross_compiling" = yes; then :
6087 else
6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089 /* end confdefs.h. */
6090 #include <ctype.h>
6091 #include <stdlib.h>
6092 #if ((' ' & 0x0FF) == 0x020)
6093 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6094 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6095 #else
6096 # define ISLOWER(c) \
6097 (('a' <= (c) && (c) <= 'i') \
6098 || ('j' <= (c) && (c) <= 'r') \
6099 || ('s' <= (c) && (c) <= 'z'))
6100 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6101 #endif
6103 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6105 main ()
6107 int i;
6108 for (i = 0; i < 256; i++)
6109 if (XOR (islower (i), ISLOWER (i))
6110 || toupper (i) != TOUPPER (i))
6111 return 2;
6112 return 0;
6114 _ACEOF
6115 if ac_fn_c_try_run "$LINENO"; then :
6117 else
6118 ac_cv_header_stdc=no
6120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6121 conftest.$ac_objext conftest.beam conftest.$ac_ext
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6127 $as_echo "$ac_cv_header_stdc" >&6; }
6128 if test $ac_cv_header_stdc = yes; then
6130 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6134 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6135 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6136 inttypes.h stdint.h unistd.h
6137 do :
6138 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6139 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6141 eval as_val=\$$as_ac_Header
6142 if test "x$as_val" = x""yes; then :
6143 cat >>confdefs.h <<_ACEOF
6144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6145 _ACEOF
6149 done
6155 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6156 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6157 MINIX=yes
6158 else
6159 MINIX=
6163 if test "$MINIX" = yes; then
6165 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6168 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6171 $as_echo "#define _MINIX 1" >>confdefs.h
6175 case "$host_os" in
6176 hpux*)
6178 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6181 esac
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6185 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6186 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6187 $as_echo_n "(cached) " >&6
6188 else
6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6192 # define __EXTENSIONS__ 1
6193 $ac_includes_default
6195 main ()
6199 return 0;
6201 _ACEOF
6202 if ac_fn_c_try_compile "$LINENO"; then :
6203 ac_cv_safe_to_define___extensions__=yes
6204 else
6205 ac_cv_safe_to_define___extensions__=no
6207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6210 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6211 test $ac_cv_safe_to_define___extensions__ = yes &&
6212 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6214 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6216 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6218 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6220 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6231 # Code from module allocator:
6232 # Code from module arg-nonnull:
6233 # Code from module c++defs:
6234 # Code from module careadlinkat:
6235 # Code from module crypto/md5:
6236 # Code from module dosname:
6237 # Code from module dtoastr:
6238 # Code from module extensions:
6240 # Code from module filemode:
6241 # Code from module getloadavg:
6242 # Code from module getopt-gnu:
6243 # Code from module getopt-posix:
6244 # Code from module gettext-h:
6245 # Code from module ignore-value:
6246 # Code from module include_next:
6247 # Code from module intprops:
6248 # Code from module inttypes-incomplete:
6249 # Code from module lstat:
6250 # Code from module mktime:
6251 # Code from module multiarch:
6252 # Code from module readlink:
6253 # Code from module socklen:
6254 # Code from module ssize_t:
6255 # Code from module stat:
6256 # Code from module stdbool:
6257 # Code from module stddef:
6258 # Code from module stdint:
6259 # Code from module stdio:
6260 # Code from module stdlib:
6261 # Code from module strftime:
6262 # Code from module strtoull:
6263 # Code from module strtoumax:
6264 # Code from module symlink:
6265 # Code from module sys_stat:
6266 # Code from module time:
6267 # Code from module time_r:
6268 # Code from module unistd:
6269 # Code from module verify:
6270 # Code from module warn-on-use:
6273 # On Suns, sometimes $CPP names a directory.
6274 if test -n "$CPP" && test -d "$CPP"; then
6275 CPP=
6278 ## If not using gcc, and on Solaris, and no CPP specified, see if
6279 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6280 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6281 test x"$CPP" = x; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6283 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6284 if test "${emacs_cv_sunpro_c+set}" = set; then :
6285 $as_echo_n "(cached) " >&6
6286 else
6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6291 main ()
6293 #ifndef __SUNPRO_C
6294 fail;
6295 #endif
6298 return 0;
6300 _ACEOF
6301 if ac_fn_c_try_link "$LINENO"; then :
6302 emacs_cv_sunpro_c=yes
6303 else
6304 emacs_cv_sunpro_c=no
6306 rm -f core conftest.err conftest.$ac_objext \
6307 conftest$ac_exeext conftest.$ac_ext
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6311 $as_echo "$emacs_cv_sunpro_c" >&6; }
6313 if test x"$emacs_cv_sunpro_c" = xyes; then
6314 NON_GNU_CPP="$CC -E -Xs"
6318 #### Some systems specify a CPP to use unless we are using GCC.
6319 #### Now that we know whether we are using GCC, we can decide whether
6320 #### to use that one.
6321 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6322 then
6323 CPP="$NON_GNU_CPP"
6326 #### Some systems specify a CC to use unless we are using GCC.
6327 #### Now that we know whether we are using GCC, we can decide whether
6328 #### to use that one.
6329 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6330 test x$cc_specified != xyes
6331 then
6332 CC="$NON_GNU_CC"
6335 if test x$GCC = xyes; then
6336 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6337 else
6338 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6341 ### Use -Wdeclaration-after-statement if the compiler supports it
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6343 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6344 SAVE_CFLAGS="$CFLAGS"
6345 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6350 main ()
6354 return 0;
6356 _ACEOF
6357 if ac_fn_c_try_compile "$LINENO"; then :
6358 has_option=yes
6359 else
6360 has_option=no
6362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363 if test $has_option = yes; then
6364 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6367 $as_echo "$has_option" >&6; }
6368 CFLAGS="$SAVE_CFLAGS"
6369 unset has_option
6370 unset SAVE_CFLAGS
6372 ### Use -Wold-style-definition if the compiler supports it
6373 # This can be removed when conversion to standard C is finished.
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6375 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6376 SAVE_CFLAGS="$CFLAGS"
6377 CFLAGS="$CFLAGS -Wold-style-definition"
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6382 main ()
6386 return 0;
6388 _ACEOF
6389 if ac_fn_c_try_compile "$LINENO"; then :
6390 has_option=yes
6391 else
6392 has_option=no
6394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395 if test $has_option = yes; then
6396 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6399 $as_echo "$has_option" >&6; }
6400 CFLAGS="$SAVE_CFLAGS"
6401 unset has_option
6402 unset SAVE_CFLAGS
6404 ### Use -Wimplicit-function-declaration if the compiler supports it
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6406 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6407 SAVE_CFLAGS="$CFLAGS"
6408 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6413 main ()
6417 return 0;
6419 _ACEOF
6420 if ac_fn_c_try_compile "$LINENO"; then :
6421 has_option=yes
6422 else
6423 has_option=no
6425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6426 if test $has_option = yes; then
6427 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6430 $as_echo "$has_option" >&6; }
6431 CFLAGS="$SAVE_CFLAGS"
6432 unset has_option
6433 unset SAVE_CFLAGS
6438 #### Some other nice autoconf tests.
6440 ac_ext=c
6441 ac_cpp='$CPP $CPPFLAGS'
6442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6446 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6447 # On Suns, sometimes $CPP names a directory.
6448 if test -n "$CPP" && test -d "$CPP"; then
6449 CPP=
6451 if test -z "$CPP"; then
6452 if test "${ac_cv_prog_CPP+set}" = set; then :
6453 $as_echo_n "(cached) " >&6
6454 else
6455 # Double quotes because CPP needs to be expanded
6456 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6458 ac_preproc_ok=false
6459 for ac_c_preproc_warn_flag in '' yes
6461 # Use a header file that comes with gcc, so configuring glibc
6462 # with a fresh cross-compiler works.
6463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6464 # <limits.h> exists even on freestanding compilers.
6465 # On the NeXT, cc -E runs the code through the compiler's parser,
6466 # not just through cpp. "Syntax error" is here to catch this case.
6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6469 #ifdef __STDC__
6470 # include <limits.h>
6471 #else
6472 # include <assert.h>
6473 #endif
6474 Syntax error
6475 _ACEOF
6476 if ac_fn_c_try_cpp "$LINENO"; then :
6478 else
6479 # Broken: fails on valid input.
6480 continue
6482 rm -f conftest.err conftest.$ac_ext
6484 # OK, works on sane cases. Now check whether nonexistent headers
6485 # can be detected and how.
6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h. */
6488 #include <ac_nonexistent.h>
6489 _ACEOF
6490 if ac_fn_c_try_cpp "$LINENO"; then :
6491 # Broken: success on invalid input.
6492 continue
6493 else
6494 # Passes both tests.
6495 ac_preproc_ok=:
6496 break
6498 rm -f conftest.err conftest.$ac_ext
6500 done
6501 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6502 rm -f conftest.err conftest.$ac_ext
6503 if $ac_preproc_ok; then :
6504 break
6507 done
6508 ac_cv_prog_CPP=$CPP
6511 CPP=$ac_cv_prog_CPP
6512 else
6513 ac_cv_prog_CPP=$CPP
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6516 $as_echo "$CPP" >&6; }
6517 ac_preproc_ok=false
6518 for ac_c_preproc_warn_flag in '' yes
6520 # Use a header file that comes with gcc, so configuring glibc
6521 # with a fresh cross-compiler works.
6522 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6523 # <limits.h> exists even on freestanding compilers.
6524 # On the NeXT, cc -E runs the code through the compiler's parser,
6525 # not just through cpp. "Syntax error" is here to catch this case.
6526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527 /* end confdefs.h. */
6528 #ifdef __STDC__
6529 # include <limits.h>
6530 #else
6531 # include <assert.h>
6532 #endif
6533 Syntax error
6534 _ACEOF
6535 if ac_fn_c_try_cpp "$LINENO"; then :
6537 else
6538 # Broken: fails on valid input.
6539 continue
6541 rm -f conftest.err conftest.$ac_ext
6543 # OK, works on sane cases. Now check whether nonexistent headers
6544 # can be detected and how.
6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6547 #include <ac_nonexistent.h>
6548 _ACEOF
6549 if ac_fn_c_try_cpp "$LINENO"; then :
6550 # Broken: success on invalid input.
6551 continue
6552 else
6553 # Passes both tests.
6554 ac_preproc_ok=:
6555 break
6557 rm -f conftest.err conftest.$ac_ext
6559 done
6560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6561 rm -f conftest.err conftest.$ac_ext
6562 if $ac_preproc_ok; then :
6564 else
6565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6567 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6568 See \`config.log' for more details." "$LINENO" 5; }
6571 ac_ext=c
6572 ac_cpp='$CPP $CPPFLAGS'
6573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6578 if test "x$RANLIB" = x; then
6579 if test -n "$ac_tool_prefix"; then
6580 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6581 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583 $as_echo_n "checking for $ac_word... " >&6; }
6584 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6587 if test -n "$RANLIB"; then
6588 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6589 else
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6593 IFS=$as_save_IFS
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 break 2
6601 done
6602 done
6603 IFS=$as_save_IFS
6607 RANLIB=$ac_cv_prog_RANLIB
6608 if test -n "$RANLIB"; then
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6610 $as_echo "$RANLIB" >&6; }
6611 else
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613 $as_echo "no" >&6; }
6618 if test -z "$ac_cv_prog_RANLIB"; then
6619 ac_ct_RANLIB=$RANLIB
6620 # Extract the first word of "ranlib", so it can be a program name with args.
6621 set dummy ranlib; ac_word=$2
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623 $as_echo_n "checking for $ac_word... " >&6; }
6624 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6625 $as_echo_n "(cached) " >&6
6626 else
6627 if test -n "$ac_ct_RANLIB"; then
6628 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6629 else
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6633 IFS=$as_save_IFS
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637 ac_cv_prog_ac_ct_RANLIB="ranlib"
6638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 break 2
6641 done
6642 done
6643 IFS=$as_save_IFS
6647 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6648 if test -n "$ac_ct_RANLIB"; then
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6650 $as_echo "$ac_ct_RANLIB" >&6; }
6651 else
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653 $as_echo "no" >&6; }
6656 if test "x$ac_ct_RANLIB" = x; then
6657 RANLIB=":"
6658 else
6659 case $cross_compiling:$ac_tool_warned in
6660 yes:)
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6663 ac_tool_warned=yes ;;
6664 esac
6665 RANLIB=$ac_ct_RANLIB
6667 else
6668 RANLIB="$ac_cv_prog_RANLIB"
6673 ## Although we're running on an amd64 kernel, we're actually compiling for
6674 ## the x86 architecture. The user should probably have provided an
6675 ## explicit --build to `configure', but if everything else than the kernel
6676 ## is running in i386 mode, we can help them out.
6677 if test "$machine" = "amdx86-64"; then
6678 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6679 if test "x$ac_cv_have_decl_i386" = x""yes; then :
6683 if test "$ac_cv_have_decl_i386" = "yes"; then
6684 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6685 machine=intel386
6686 machfile="m/${machine}.h"
6690 # Extract the first word of "install-info", so it can be a program name with args.
6691 set dummy install-info; ac_word=$2
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693 $as_echo_n "checking for $ac_word... " >&6; }
6694 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6695 $as_echo_n "(cached) " >&6
6696 else
6697 case $INSTALL_INFO in
6698 [\\/]* | ?:[\\/]*)
6699 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6709 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6713 done
6714 done
6715 IFS=$as_save_IFS
6718 esac
6720 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6721 if test -n "$INSTALL_INFO"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6723 $as_echo "$INSTALL_INFO" >&6; }
6724 else
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 $as_echo "no" >&6; }
6730 # Extract the first word of "install-info", so it can be a program name with args.
6731 set dummy install-info; ac_word=$2
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 case $INSTALL_INFO in
6738 [\\/]* | ?:[\\/]*)
6739 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in /usr/sbin
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6753 done
6754 done
6755 IFS=$as_save_IFS
6758 esac
6760 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6761 if test -n "$INSTALL_INFO"; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6763 $as_echo "$INSTALL_INFO" >&6; }
6764 else
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766 $as_echo "no" >&6; }
6770 # Extract the first word of "install-info", so it can be a program name with args.
6771 set dummy install-info; ac_word=$2
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773 $as_echo_n "checking for $ac_word... " >&6; }
6774 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6775 $as_echo_n "(cached) " >&6
6776 else
6777 case $INSTALL_INFO in
6778 [\\/]* | ?:[\\/]*)
6779 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in /sbin
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6793 done
6794 done
6795 IFS=$as_save_IFS
6797 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6799 esac
6801 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6802 if test -n "$INSTALL_INFO"; then
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6804 $as_echo "$INSTALL_INFO" >&6; }
6805 else
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6811 # Extract the first word of "gzip", so it can be a program name with args.
6812 set dummy gzip; ac_word=$2
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
6816 $as_echo_n "(cached) " >&6
6817 else
6818 case $GZIP_PROG in
6819 [\\/]* | ?:[\\/]*)
6820 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6826 IFS=$as_save_IFS
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6830 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 break 2
6834 done
6835 done
6836 IFS=$as_save_IFS
6839 esac
6841 GZIP_PROG=$ac_cv_path_GZIP_PROG
6842 if test -n "$GZIP_PROG"; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6844 $as_echo "$GZIP_PROG" >&6; }
6845 else
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6853 ## Need makeinfo >= 4.6 (?) to build the manuals.
6854 # Extract the first word of "makeinfo", so it can be a program name with args.
6855 set dummy makeinfo; ac_word=$2
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857 $as_echo_n "checking for $ac_word... " >&6; }
6858 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
6859 $as_echo_n "(cached) " >&6
6860 else
6861 case $MAKEINFO in
6862 [\\/]* | ?:[\\/]*)
6863 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6877 done
6878 done
6879 IFS=$as_save_IFS
6881 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6883 esac
6885 MAKEINFO=$ac_cv_path_MAKEINFO
6886 if test -n "$MAKEINFO"; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6888 $as_echo "$MAKEINFO" >&6; }
6889 else
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 $as_echo "no" >&6; }
6895 if test "$MAKEINFO" != "no" && \
6896 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
6897 MAKEINFO=no
6900 ## Makeinfo is unusual. For a released Emacs, the manuals are
6901 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6902 ## therefore in the category of "special tools" not normally required, which
6903 ## configure does not have to check for (eg autoconf itself).
6904 ## In a Bazaar checkout on the other hand, the manuals are not included.
6905 ## So makeinfo is a requirement to build from Bazaar, and configure
6906 ## should test for it as it does for any other build requirement.
6907 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6908 ## with pre-built manuals, from a Bazaar checkout.
6909 HAVE_MAKEINFO=yes
6911 if test "$MAKEINFO" = "no"; then
6912 MAKEINFO=makeinfo
6913 if test "x${with_makeinfo}" = "xno"; then
6914 HAVE_MAKEINFO=no
6915 elif test ! -e $srcdir/info/emacs; then
6916 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
6917 source tree does not seem to have pre-built manuals in the \`info' directory.
6918 Either install a suitable version of makeinfo, or re-run configure
6919 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6925 if test x$GCC = xyes; then
6926 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6927 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6928 else
6929 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6930 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6934 late_LDFLAGS=$LDFLAGS
6935 if test x$GCC = xyes; then
6936 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6937 else
6938 LDFLAGS="$LDFLAGS -znocombreloc"
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6942 $as_echo_n "checking for -znocombreloc... " >&6; }
6943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944 /* end confdefs.h. */
6947 main ()
6951 return 0;
6953 _ACEOF
6954 if ac_fn_c_try_link "$LINENO"; then :
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6956 $as_echo "yes" >&6; }
6957 else
6958 LDFLAGS=$late_LDFLAGS
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960 $as_echo "no" >&6; }
6962 rm -f core conftest.err conftest.$ac_objext \
6963 conftest$ac_exeext conftest.$ac_ext
6966 # The value of CPP is a quoted variable reference, so we need to do this
6967 # to get its actual value...
6968 CPP=`eval "echo $CPP"`
6971 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
6972 case "$opsys" in
6973 your-opsys-here) CANNOT_DUMP=yes ;;
6974 esac
6976 test "$CANNOT_DUMP" = "yes" && \
6978 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6984 UNEXEC_OBJ=unexelf.o
6985 case "$opsys" in
6986 # MSDOS uses unexcoff.o
6987 # MSWindows uses unexw32.o
6988 aix4-2)
6989 UNEXEC_OBJ=unexaix.o
6991 cygwin)
6992 UNEXEC_OBJ=unexcw.o
6994 darwin)
6995 UNEXEC_OBJ=unexmacosx.o
6997 hpux10-20 | hpux11)
6998 UNEXEC_OBJ=unexhp9k800.o
7000 sol2-10)
7001 # Use the Solaris dldump() function, called from unexsol.c, to dump
7002 # emacs, instead of the generic ELF dump code found in unexelf.c.
7003 # The resulting binary has a complete symbol table, and is better
7004 # for debugging and other observability tools (debuggers, pstack, etc).
7006 # If you encounter a problem using dldump(), please consider sending
7007 # a message to the OpenSolaris tools-linking mailing list:
7008 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7010 # It is likely that dldump() works with older Solaris too, but this has
7011 # not been tested, so for now this change is for Solaris 10 or newer.
7012 UNEXEC_OBJ=unexsol.o
7014 esac
7016 LD_SWITCH_SYSTEM=
7017 case "$opsys" in
7018 freebsd)
7019 ## Let `ld' find image libs and similar things in /usr/local/lib.
7020 ## The system compiler, GCC, has apparently been modified to not
7021 ## look there, contrary to what a stock GCC would do.
7022 LD_SWITCH_SYSTEM=-L/usr/local/lib
7025 gnu-linux)
7026 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7027 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7030 netbsd)
7031 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7034 openbsd)
7035 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7036 ## otherwise Emacs dumps core on elf systems.
7037 LD_SWITCH_SYSTEM="-Z"
7039 esac
7042 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7044 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7045 ## which has not been defined yet. When this was handled with cpp,
7046 ## it was expanded to null when configure sourced the s/*.h file.
7047 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7048 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7049 ## (or somesuch), but because it is supposed to go at the _front_
7050 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7051 ## Compare with the gnu-linux case below, which added to the end
7052 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7053 ## LD_SWITCH_SYSTEM_TEMACS.
7054 case "$opsys" in
7055 netbsd|openbsd)
7056 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7057 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7058 esac
7061 C_SWITCH_MACHINE=
7062 if test "$machine" = "alpha"; then
7063 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7064 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7068 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7069 ## With ELF, make sure that all common symbols get allocated to in the
7070 ## data section. Otherwise, the dump of temacs may miss variables in
7071 ## the shared library that have been initialized. For example, with
7072 ## GNU libc, __malloc_initialized would normally be resolved to the
7073 ## shared library's .bss section, which is fatal.
7074 if test "x$GCC" = "xyes"; then
7075 C_SWITCH_MACHINE="-fno-common"
7076 else
7077 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7079 else
7080 UNEXEC_OBJ=unexalpha.o
7087 C_SWITCH_SYSTEM=
7088 ## Some programs in src produce warnings saying certain subprograms
7089 ## are too complex and need a MAXMEM value greater than 2000 for
7090 ## additional optimization. --nils@exp-math.uni-essen.de
7091 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7092 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7093 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7094 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7098 LIBS_SYSTEM=
7099 case "$opsys" in
7100 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7101 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7103 freebsd) LIBS_SYSTEM="-lutil" ;;
7105 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7107 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7109 ## Motif needs -lgen.
7110 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7111 esac
7115 ### Make sure subsequent tests use flags consistent with the build flags.
7117 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7118 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7119 else
7120 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7123 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7126 # Check whether --enable-largefile was given.
7127 if test "${enable_largefile+set}" = set; then :
7128 enableval=$enable_largefile;
7131 if test "$enable_largefile" != no; then
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7134 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7135 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7136 $as_echo_n "(cached) " >&6
7137 else
7138 ac_cv_sys_largefile_CC=no
7139 if test "$GCC" != yes; then
7140 ac_save_CC=$CC
7141 while :; do
7142 # IRIX 6.2 and later do not support large files by default,
7143 # so use the C compiler's -n32 option if that helps.
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7146 #include <sys/types.h>
7147 /* Check that off_t can represent 2**63 - 1 correctly.
7148 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7149 since some C++ compilers masquerading as C compilers
7150 incorrectly reject 9223372036854775807. */
7151 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7152 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7153 && LARGE_OFF_T % 2147483647 == 1)
7154 ? 1 : -1];
7156 main ()
7160 return 0;
7162 _ACEOF
7163 if ac_fn_c_try_compile "$LINENO"; then :
7164 break
7166 rm -f core conftest.err conftest.$ac_objext
7167 CC="$CC -n32"
7168 if ac_fn_c_try_compile "$LINENO"; then :
7169 ac_cv_sys_largefile_CC=' -n32'; break
7171 rm -f core conftest.err conftest.$ac_objext
7172 break
7173 done
7174 CC=$ac_save_CC
7175 rm -f conftest.$ac_ext
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7179 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7180 if test "$ac_cv_sys_largefile_CC" != no; then
7181 CC=$CC$ac_cv_sys_largefile_CC
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7185 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7186 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7187 $as_echo_n "(cached) " >&6
7188 else
7189 while :; do
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 #include <sys/types.h>
7193 /* Check that off_t can represent 2**63 - 1 correctly.
7194 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7195 since some C++ compilers masquerading as C compilers
7196 incorrectly reject 9223372036854775807. */
7197 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7198 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7199 && LARGE_OFF_T % 2147483647 == 1)
7200 ? 1 : -1];
7202 main ()
7206 return 0;
7208 _ACEOF
7209 if ac_fn_c_try_compile "$LINENO"; then :
7210 ac_cv_sys_file_offset_bits=no; break
7212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214 /* end confdefs.h. */
7215 #define _FILE_OFFSET_BITS 64
7216 #include <sys/types.h>
7217 /* Check that off_t can represent 2**63 - 1 correctly.
7218 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7219 since some C++ compilers masquerading as C compilers
7220 incorrectly reject 9223372036854775807. */
7221 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7222 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7223 && LARGE_OFF_T % 2147483647 == 1)
7224 ? 1 : -1];
7226 main ()
7230 return 0;
7232 _ACEOF
7233 if ac_fn_c_try_compile "$LINENO"; then :
7234 ac_cv_sys_file_offset_bits=64; break
7236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7237 ac_cv_sys_file_offset_bits=unknown
7238 break
7239 done
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7242 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7243 case $ac_cv_sys_file_offset_bits in #(
7244 no | unknown) ;;
7246 cat >>confdefs.h <<_ACEOF
7247 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7248 _ACEOF
7250 esac
7251 rm -rf conftest*
7252 if test $ac_cv_sys_file_offset_bits = unknown; then
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7254 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7255 if test "${ac_cv_sys_large_files+set}" = set; then :
7256 $as_echo_n "(cached) " >&6
7257 else
7258 while :; do
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7261 #include <sys/types.h>
7262 /* Check that off_t can represent 2**63 - 1 correctly.
7263 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7264 since some C++ compilers masquerading as C compilers
7265 incorrectly reject 9223372036854775807. */
7266 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7267 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7268 && LARGE_OFF_T % 2147483647 == 1)
7269 ? 1 : -1];
7271 main ()
7275 return 0;
7277 _ACEOF
7278 if ac_fn_c_try_compile "$LINENO"; then :
7279 ac_cv_sys_large_files=no; break
7281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7284 #define _LARGE_FILES 1
7285 #include <sys/types.h>
7286 /* Check that off_t can represent 2**63 - 1 correctly.
7287 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7288 since some C++ compilers masquerading as C compilers
7289 incorrectly reject 9223372036854775807. */
7290 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7292 && LARGE_OFF_T % 2147483647 == 1)
7293 ? 1 : -1];
7295 main ()
7299 return 0;
7301 _ACEOF
7302 if ac_fn_c_try_compile "$LINENO"; then :
7303 ac_cv_sys_large_files=1; break
7305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7306 ac_cv_sys_large_files=unknown
7307 break
7308 done
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7311 $as_echo "$ac_cv_sys_large_files" >&6; }
7312 case $ac_cv_sys_large_files in #(
7313 no | unknown) ;;
7315 cat >>confdefs.h <<_ACEOF
7316 #define _LARGE_FILES $ac_cv_sys_large_files
7317 _ACEOF
7319 esac
7320 rm -rf conftest*
7326 ## If user specified a crt-dir, use that unconditionally.
7327 if test "X$CRT_DIR" = "X"; then
7329 case "$canonical" in
7330 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7331 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7332 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7333 ## For anything else (eg /usr/lib32), it is up the user to specify
7334 ## the location (bug#5655).
7335 ## Test for crtn.o, not just the directory, because sometimes the
7336 ## directory exists but does not have the relevant files (bug#1287).
7337 ## FIXME better to test for binary compatibility somehow.
7338 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7341 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7342 esac
7344 case "$opsys" in
7345 hpux10-20) CRT_DIR=/lib ;;
7346 esac
7348 ## Default is /usr/lib.
7349 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7351 else
7353 ## Some platforms don't use any of these files, so it is not
7354 ## appropriate to put this test outside the if block.
7355 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
7356 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
7362 LIB_MATH=-lm
7363 LIB_STANDARD=
7364 START_FILES=
7366 case $opsys in
7367 cygwin )
7368 LIB_MATH=
7369 START_FILES='pre-crt0.o'
7371 darwin )
7372 ## Adding -lm confuses the dynamic linker, so omit it.
7373 LIB_MATH=
7374 START_FILES='pre-crt0.o'
7376 freebsd )
7377 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7378 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7380 gnu-linux | gnu-kfreebsd )
7381 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7382 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7384 hpux10-20 | hpux11 )
7385 LIB_STANDARD=-lc
7386 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7388 netbsd | openbsd )
7389 if test -f $CRT_DIR/crti.o; then
7390 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7391 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7392 else
7393 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7394 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7397 esac
7405 if test "${with_sound}" != "no"; then
7406 # Sound support for GNU/Linux and the free BSDs.
7407 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7408 do :
7409 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7410 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7411 eval as_val=\$$as_ac_Header
7412 if test "x$as_val" = x""yes; then :
7413 cat >>confdefs.h <<_ACEOF
7414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7415 _ACEOF
7416 have_sound_header=yes
7419 done
7421 # Emulation library used on NetBSD.
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7423 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7424 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7425 $as_echo_n "(cached) " >&6
7426 else
7427 ac_check_lib_save_LIBS=$LIBS
7428 LIBS="-lossaudio $LIBS"
7429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430 /* end confdefs.h. */
7432 /* Override any GCC internal prototype to avoid an error.
7433 Use char because int might match the return type of a GCC
7434 builtin and then its argument prototype would still apply. */
7435 #ifdef __cplusplus
7436 extern "C"
7437 #endif
7438 char _oss_ioctl ();
7440 main ()
7442 return _oss_ioctl ();
7444 return 0;
7446 _ACEOF
7447 if ac_fn_c_try_link "$LINENO"; then :
7448 ac_cv_lib_ossaudio__oss_ioctl=yes
7449 else
7450 ac_cv_lib_ossaudio__oss_ioctl=no
7452 rm -f core conftest.err conftest.$ac_objext \
7453 conftest$ac_exeext conftest.$ac_ext
7454 LIBS=$ac_check_lib_save_LIBS
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7457 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7458 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
7459 LIBSOUND=-lossaudio
7460 else
7461 LIBSOUND=
7466 ALSA_REQUIRED=1.0.0
7467 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7469 succeeded=no
7471 # Extract the first word of "pkg-config", so it can be a program name with args.
7472 set dummy pkg-config; ac_word=$2
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7474 $as_echo_n "checking for $ac_word... " >&6; }
7475 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7476 $as_echo_n "(cached) " >&6
7477 else
7478 case $PKG_CONFIG in
7479 [\\/]* | ?:[\\/]*)
7480 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 for as_dir in $PATH
7486 IFS=$as_save_IFS
7487 test -z "$as_dir" && as_dir=.
7488 for ac_exec_ext in '' $ac_executable_extensions; do
7489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7490 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7492 break 2
7494 done
7495 done
7496 IFS=$as_save_IFS
7498 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7500 esac
7502 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7503 if test -n "$PKG_CONFIG"; then
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7505 $as_echo "$PKG_CONFIG" >&6; }
7506 else
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508 $as_echo "no" >&6; }
7513 if test "$PKG_CONFIG" = "no" ; then
7514 HAVE_ALSA=no
7515 else
7516 PKG_CONFIG_MIN_VERSION=0.9.0
7517 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7519 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7521 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7523 $as_echo "yes" >&6; }
7524 succeeded=yes
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7527 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7528 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7530 $as_echo "$ALSA_CFLAGS" >&6; }
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7533 $as_echo_n "checking ALSA_LIBS... " >&6; }
7534 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7536 $as_echo "$ALSA_LIBS" >&6; }
7537 else
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539 $as_echo "no" >&6; }
7540 ALSA_CFLAGS=""
7541 ALSA_LIBS=""
7542 ## If we have a custom action on failure, don't print errors, but
7543 ## do set a variable so people can do so.
7544 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7550 else
7551 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7552 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7556 if test $succeeded = yes; then
7557 HAVE_ALSA=yes
7558 else
7559 HAVE_ALSA=no
7562 if test $HAVE_ALSA = yes; then
7563 SAVE_CFLAGS="$CFLAGS"
7564 SAVE_LDFLAGS="$LDFLAGS"
7565 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7566 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7569 #include <asoundlib.h>
7571 main ()
7573 snd_lib_error_set_handler (0);
7575 return 0;
7577 _ACEOF
7578 if ac_fn_c_try_compile "$LINENO"; then :
7579 emacs_alsa_normal=yes
7580 else
7581 emacs_alsa_normal=no
7583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7584 if test "$emacs_alsa_normal" != yes; then
7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586 /* end confdefs.h. */
7587 #include <alsa/asoundlib.h>
7589 main ()
7591 snd_lib_error_set_handler (0);
7593 return 0;
7595 _ACEOF
7596 if ac_fn_c_try_compile "$LINENO"; then :
7597 emacs_alsa_subdir=yes
7598 else
7599 emacs_alsa_subdir=no
7601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7602 if test "$emacs_alsa_subdir" != yes; then
7603 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7605 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7608 CFLAGS="$SAVE_CFLAGS"
7609 LDFLAGS="$SAVE_LDFLAGS"
7610 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7611 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7613 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7617 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7618 case "$opsys" in
7619 gnu-linux|freebsd|netbsd)
7621 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7624 esac
7630 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7631 linux/version.h sys/systeminfo.h limits.h \
7632 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7633 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7634 sys/utsname.h pwd.h utmp.h dirent.h util.h
7635 do :
7636 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7637 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7638 eval as_val=\$$as_ac_Header
7639 if test "x$as_val" = x""yes; then :
7640 cat >>confdefs.h <<_ACEOF
7641 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7642 _ACEOF
7646 done
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7650 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h. */
7653 #include <sys/personality.h>
7655 main ()
7657 personality (PER_LINUX32)
7659 return 0;
7661 _ACEOF
7662 if ac_fn_c_try_compile "$LINENO"; then :
7663 emacs_cv_personality_linux32=yes
7664 else
7665 emacs_cv_personality_linux32=no
7667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7669 $as_echo "$emacs_cv_personality_linux32" >&6; }
7671 if test $emacs_cv_personality_linux32 = yes; then
7673 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7677 for ac_header in term.h
7678 do :
7679 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7680 if test "x$ac_cv_header_term_h" = x""yes; then :
7681 cat >>confdefs.h <<_ACEOF
7682 #define HAVE_TERM_H 1
7683 _ACEOF
7687 done
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7690 $as_echo_n "checking for ANSI C header files... " >&6; }
7691 if test "${ac_cv_header_stdc+set}" = set; then :
7692 $as_echo_n "(cached) " >&6
7693 else
7694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7695 /* end confdefs.h. */
7696 #include <stdlib.h>
7697 #include <stdarg.h>
7698 #include <string.h>
7699 #include <float.h>
7702 main ()
7706 return 0;
7708 _ACEOF
7709 if ac_fn_c_try_compile "$LINENO"; then :
7710 ac_cv_header_stdc=yes
7711 else
7712 ac_cv_header_stdc=no
7714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716 if test $ac_cv_header_stdc = yes; then
7717 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7720 #include <string.h>
7722 _ACEOF
7723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7724 $EGREP "memchr" >/dev/null 2>&1; then :
7726 else
7727 ac_cv_header_stdc=no
7729 rm -f conftest*
7733 if test $ac_cv_header_stdc = yes; then
7734 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h. */
7737 #include <stdlib.h>
7739 _ACEOF
7740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7741 $EGREP "free" >/dev/null 2>&1; then :
7743 else
7744 ac_cv_header_stdc=no
7746 rm -f conftest*
7750 if test $ac_cv_header_stdc = yes; then
7751 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7752 if test "$cross_compiling" = yes; then :
7754 else
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7757 #include <ctype.h>
7758 #include <stdlib.h>
7759 #if ((' ' & 0x0FF) == 0x020)
7760 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7761 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7762 #else
7763 # define ISLOWER(c) \
7764 (('a' <= (c) && (c) <= 'i') \
7765 || ('j' <= (c) && (c) <= 'r') \
7766 || ('s' <= (c) && (c) <= 'z'))
7767 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7768 #endif
7770 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7772 main ()
7774 int i;
7775 for (i = 0; i < 256; i++)
7776 if (XOR (islower (i), ISLOWER (i))
7777 || toupper (i) != TOUPPER (i))
7778 return 2;
7779 return 0;
7781 _ACEOF
7782 if ac_fn_c_try_run "$LINENO"; then :
7784 else
7785 ac_cv_header_stdc=no
7787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7788 conftest.$ac_objext conftest.beam conftest.$ac_ext
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7794 $as_echo "$ac_cv_header_stdc" >&6; }
7795 if test $ac_cv_header_stdc = yes; then
7797 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7802 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7803 if test "${ac_cv_header_time+set}" = set; then :
7804 $as_echo_n "(cached) " >&6
7805 else
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7808 #include <sys/types.h>
7809 #include <sys/time.h>
7810 #include <time.h>
7813 main ()
7815 if ((struct tm *) 0)
7816 return 0;
7818 return 0;
7820 _ACEOF
7821 if ac_fn_c_try_compile "$LINENO"; then :
7822 ac_cv_header_time=yes
7823 else
7824 ac_cv_header_time=no
7826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7829 $as_echo "$ac_cv_header_time" >&6; }
7830 if test $ac_cv_header_time = yes; then
7832 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7836 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7837 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
7838 ac_have_decl=1
7839 else
7840 ac_have_decl=0
7843 cat >>confdefs.h <<_ACEOF
7844 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7845 _ACEOF
7847 if test $ac_cv_have_decl_sys_siglist != yes; then
7848 # For Tru64, at least:
7849 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7850 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
7851 ac_have_decl=1
7852 else
7853 ac_have_decl=0
7856 cat >>confdefs.h <<_ACEOF
7857 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7858 _ACEOF
7860 if test $ac_cv_have_decl___sys_siglist = yes; then
7862 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7867 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7868 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7869 $as_echo_n "(cached) " >&6
7870 else
7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7873 #include <sys/types.h>
7874 #include <sys/wait.h>
7875 #ifndef WEXITSTATUS
7876 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7877 #endif
7878 #ifndef WIFEXITED
7879 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7880 #endif
7883 main ()
7885 int s;
7886 wait (&s);
7887 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7889 return 0;
7891 _ACEOF
7892 if ac_fn_c_try_compile "$LINENO"; then :
7893 ac_cv_header_sys_wait_h=yes
7894 else
7895 ac_cv_header_sys_wait_h=no
7897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7900 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7901 if test $ac_cv_header_sys_wait_h = yes; then
7903 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7909 $as_echo_n "checking for struct utimbuf... " >&6; }
7910 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
7911 $as_echo_n "(cached) " >&6
7912 else
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7915 #ifdef TIME_WITH_SYS_TIME
7916 #include <sys/time.h>
7917 #include <time.h>
7918 #else
7919 #ifdef HAVE_SYS_TIME_H
7920 #include <sys/time.h>
7921 #else
7922 #include <time.h>
7923 #endif
7924 #endif
7925 #ifdef HAVE_UTIME_H
7926 #include <utime.h>
7927 #endif
7929 main ()
7931 static struct utimbuf x; x.actime = x.modtime;
7933 return 0;
7935 _ACEOF
7936 if ac_fn_c_try_compile "$LINENO"; then :
7937 emacs_cv_struct_utimbuf=yes
7938 else
7939 emacs_cv_struct_utimbuf=no
7941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7944 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7945 if test $emacs_cv_struct_utimbuf = yes; then
7947 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7952 $as_echo_n "checking for speed_t... " >&6; }
7953 if test "${emacs_cv_speed_t+set}" = set; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7958 #include <termios.h>
7960 main ()
7962 speed_t x = 1;
7964 return 0;
7966 _ACEOF
7967 if ac_fn_c_try_compile "$LINENO"; then :
7968 emacs_cv_speed_t=yes
7969 else
7970 emacs_cv_speed_t=no
7972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7975 $as_echo "$emacs_cv_speed_t" >&6; }
7976 if test $emacs_cv_speed_t = yes; then
7978 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7983 $as_echo_n "checking for struct timeval... " >&6; }
7984 if test "${emacs_cv_struct_timeval+set}" = set; then :
7985 $as_echo_n "(cached) " >&6
7986 else
7987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h. */
7989 #ifdef TIME_WITH_SYS_TIME
7990 #include <sys/time.h>
7991 #include <time.h>
7992 #else
7993 #ifdef HAVE_SYS_TIME_H
7994 #include <sys/time.h>
7995 #else
7996 #include <time.h>
7997 #endif
7998 #endif
8000 main ()
8002 static struct timeval x; x.tv_sec = x.tv_usec;
8004 return 0;
8006 _ACEOF
8007 if ac_fn_c_try_compile "$LINENO"; then :
8008 emacs_cv_struct_timeval=yes
8009 else
8010 emacs_cv_struct_timeval=no
8012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8015 $as_echo "$emacs_cv_struct_timeval" >&6; }
8016 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8017 if test $emacs_cv_struct_timeval = yes; then
8019 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8024 $as_echo_n "checking for struct exception... " >&6; }
8025 if test "${emacs_cv_struct_exception+set}" = set; then :
8026 $as_echo_n "(cached) " >&6
8027 else
8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h. */
8030 #include <math.h>
8032 main ()
8034 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8036 return 0;
8038 _ACEOF
8039 if ac_fn_c_try_compile "$LINENO"; then :
8040 emacs_cv_struct_exception=yes
8041 else
8042 emacs_cv_struct_exception=no
8044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8047 $as_echo "$emacs_cv_struct_exception" >&6; }
8048 HAVE_EXCEPTION=$emacs_cv_struct_exception
8049 if test $emacs_cv_struct_exception != yes; then
8051 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8055 for ac_header in net/if.h
8056 do :
8057 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8058 #if HAVE_SYS_SOCKET_H
8059 #include <sys/socket.h>
8060 #endif
8062 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8063 cat >>confdefs.h <<_ACEOF
8064 #define HAVE_NET_IF_H 1
8065 _ACEOF
8069 done
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8073 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8074 if test "${ac_cv_struct_tm+set}" = set; then :
8075 $as_echo_n "(cached) " >&6
8076 else
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8079 #include <sys/types.h>
8080 #include <time.h>
8083 main ()
8085 struct tm tm;
8086 int *p = &tm.tm_sec;
8087 return !p;
8089 return 0;
8091 _ACEOF
8092 if ac_fn_c_try_compile "$LINENO"; then :
8093 ac_cv_struct_tm=time.h
8094 else
8095 ac_cv_struct_tm=sys/time.h
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8100 $as_echo "$ac_cv_struct_tm" >&6; }
8101 if test $ac_cv_struct_tm = sys/time.h; then
8103 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8107 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8108 #include <$ac_cv_struct_tm>
8111 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
8113 cat >>confdefs.h <<_ACEOF
8114 #define HAVE_STRUCT_TM_TM_ZONE 1
8115 _ACEOF
8120 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8122 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8124 else
8125 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8127 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
8128 ac_have_decl=1
8129 else
8130 ac_have_decl=0
8133 cat >>confdefs.h <<_ACEOF
8134 #define HAVE_DECL_TZNAME $ac_have_decl
8135 _ACEOF
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8138 $as_echo_n "checking for tzname... " >&6; }
8139 if test "${ac_cv_var_tzname+set}" = set; then :
8140 $as_echo_n "(cached) " >&6
8141 else
8142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8143 /* end confdefs.h. */
8144 #include <time.h>
8145 #if !HAVE_DECL_TZNAME
8146 extern char *tzname[];
8147 #endif
8150 main ()
8152 return tzname[0][0];
8154 return 0;
8156 _ACEOF
8157 if ac_fn_c_try_link "$LINENO"; then :
8158 ac_cv_var_tzname=yes
8159 else
8160 ac_cv_var_tzname=no
8162 rm -f core conftest.err conftest.$ac_objext \
8163 conftest$ac_exeext conftest.$ac_ext
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8166 $as_echo "$ac_cv_var_tzname" >&6; }
8167 if test $ac_cv_var_tzname = yes; then
8169 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8174 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8176 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
8178 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8182 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8183 #if HAVE_SYS_SOCKET_H
8184 #include <sys/socket.h>
8185 #endif
8186 #if HAVE_NET_IF_H
8187 #include <net/if.h>
8188 #endif
8190 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8192 cat >>confdefs.h <<_ACEOF
8193 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8194 _ACEOF
8198 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8199 #if HAVE_SYS_SOCKET_H
8200 #include <sys/socket.h>
8201 #endif
8202 #if HAVE_NET_IF_H
8203 #include <net/if.h>
8204 #endif
8206 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8208 cat >>confdefs.h <<_ACEOF
8209 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8210 _ACEOF
8214 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8215 #if HAVE_SYS_SOCKET_H
8216 #include <sys/socket.h>
8217 #endif
8218 #if HAVE_NET_IF_H
8219 #include <net/if.h>
8220 #endif
8222 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8224 cat >>confdefs.h <<_ACEOF
8225 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8226 _ACEOF
8230 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8231 #if HAVE_SYS_SOCKET_H
8232 #include <sys/socket.h>
8233 #endif
8234 #if HAVE_NET_IF_H
8235 #include <net/if.h>
8236 #endif
8238 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8240 cat >>confdefs.h <<_ACEOF
8241 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8242 _ACEOF
8246 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8247 #if HAVE_SYS_SOCKET_H
8248 #include <sys/socket.h>
8249 #endif
8250 #if HAVE_NET_IF_H
8251 #include <net/if.h>
8252 #endif
8254 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8256 cat >>confdefs.h <<_ACEOF
8257 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8258 _ACEOF
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8266 $as_echo_n "checking for function prototypes... " >&6; }
8267 if test "$ac_cv_prog_cc_c89" != no; then
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8269 $as_echo "yes" >&6; }
8271 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8274 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8276 else
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 $as_echo "no" >&6; }
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8282 $as_echo_n "checking for working volatile... " >&6; }
8283 if test "${ac_cv_c_volatile+set}" = set; then :
8284 $as_echo_n "(cached) " >&6
8285 else
8286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287 /* end confdefs.h. */
8290 main ()
8293 volatile int x;
8294 int * volatile y = (int *) 0;
8295 return !x && !y;
8297 return 0;
8299 _ACEOF
8300 if ac_fn_c_try_compile "$LINENO"; then :
8301 ac_cv_c_volatile=yes
8302 else
8303 ac_cv_c_volatile=no
8305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8308 $as_echo "$ac_cv_c_volatile" >&6; }
8309 if test $ac_cv_c_volatile = no; then
8311 $as_echo "#define volatile /**/" >>confdefs.h
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8316 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8317 if test "${ac_cv_c_const+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
8319 else
8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8324 main ()
8326 /* FIXME: Include the comments suggested by Paul. */
8327 #ifndef __cplusplus
8328 /* Ultrix mips cc rejects this. */
8329 typedef int charset[2];
8330 const charset cs;
8331 /* SunOS 4.1.1 cc rejects this. */
8332 char const *const *pcpcc;
8333 char **ppc;
8334 /* NEC SVR4.0.2 mips cc rejects this. */
8335 struct point {int x, y;};
8336 static struct point const zero = {0,0};
8337 /* AIX XL C 1.02.0.0 rejects this.
8338 It does not let you subtract one const X* pointer from another in
8339 an arm of an if-expression whose if-part is not a constant
8340 expression */
8341 const char *g = "string";
8342 pcpcc = &g + (g ? g-g : 0);
8343 /* HPUX 7.0 cc rejects these. */
8344 ++pcpcc;
8345 ppc = (char**) pcpcc;
8346 pcpcc = (char const *const *) ppc;
8347 { /* SCO 3.2v4 cc rejects this. */
8348 char *t;
8349 char const *s = 0 ? (char *) 0 : (char const *) 0;
8351 *t++ = 0;
8352 if (s) return 0;
8354 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8355 int x[] = {25, 17};
8356 const int *foo = &x[0];
8357 ++foo;
8359 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8360 typedef const int *iptr;
8361 iptr p = 0;
8362 ++p;
8364 { /* AIX XL C 1.02.0.0 rejects this saying
8365 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8366 struct s { int j; const int *ap[3]; };
8367 struct s *b; b->j = 5;
8369 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8370 const int foo = 10;
8371 if (!foo) return 0;
8373 return !cs[0] && !zero.x;
8374 #endif
8377 return 0;
8379 _ACEOF
8380 if ac_fn_c_try_compile "$LINENO"; then :
8381 ac_cv_c_const=yes
8382 else
8383 ac_cv_c_const=no
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8388 $as_echo "$ac_cv_c_const" >&6; }
8389 if test $ac_cv_c_const = no; then
8391 $as_echo "#define const /**/" >>confdefs.h
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8396 $as_echo_n "checking for void * support... " >&6; }
8397 if test "${emacs_cv_void_star+set}" = set; then :
8398 $as_echo_n "(cached) " >&6
8399 else
8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h. */
8404 main ()
8406 void * foo;
8408 return 0;
8410 _ACEOF
8411 if ac_fn_c_try_compile "$LINENO"; then :
8412 emacs_cv_void_star=yes
8413 else
8414 emacs_cv_void_star=no
8416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8419 $as_echo "$emacs_cv_void_star" >&6; }
8420 if test $emacs_cv_void_star = yes; then
8421 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8423 else
8424 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8429 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8430 if test "${ac_cv_c_bigendian+set}" = set; then :
8431 $as_echo_n "(cached) " >&6
8432 else
8433 ac_cv_c_bigendian=unknown
8434 # See if we're dealing with a universal compiler.
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437 #ifndef __APPLE_CC__
8438 not a universal capable compiler
8439 #endif
8440 typedef int dummy;
8442 _ACEOF
8443 if ac_fn_c_try_compile "$LINENO"; then :
8445 # Check for potential -arch flags. It is not universal unless
8446 # there are at least two -arch flags with different values.
8447 ac_arch=
8448 ac_prev=
8449 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8450 if test -n "$ac_prev"; then
8451 case $ac_word in
8452 i?86 | x86_64 | ppc | ppc64)
8453 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8454 ac_arch=$ac_word
8455 else
8456 ac_cv_c_bigendian=universal
8457 break
8460 esac
8461 ac_prev=
8462 elif test "x$ac_word" = "x-arch"; then
8463 ac_prev=arch
8465 done
8467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468 if test $ac_cv_c_bigendian = unknown; then
8469 # See if sys/param.h defines the BYTE_ORDER macro.
8470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471 /* end confdefs.h. */
8472 #include <sys/types.h>
8473 #include <sys/param.h>
8476 main ()
8478 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8479 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8480 && LITTLE_ENDIAN)
8481 bogus endian macros
8482 #endif
8485 return 0;
8487 _ACEOF
8488 if ac_fn_c_try_compile "$LINENO"; then :
8489 # It does; now see whether it defined to BIG_ENDIAN or not.
8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491 /* end confdefs.h. */
8492 #include <sys/types.h>
8493 #include <sys/param.h>
8496 main ()
8498 #if BYTE_ORDER != BIG_ENDIAN
8499 not big endian
8500 #endif
8503 return 0;
8505 _ACEOF
8506 if ac_fn_c_try_compile "$LINENO"; then :
8507 ac_cv_c_bigendian=yes
8508 else
8509 ac_cv_c_bigendian=no
8511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8515 if test $ac_cv_c_bigendian = unknown; then
8516 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8519 #include <limits.h>
8522 main ()
8524 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8525 bogus endian macros
8526 #endif
8529 return 0;
8531 _ACEOF
8532 if ac_fn_c_try_compile "$LINENO"; then :
8533 # It does; now see whether it defined to _BIG_ENDIAN or not.
8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h. */
8536 #include <limits.h>
8539 main ()
8541 #ifndef _BIG_ENDIAN
8542 not big endian
8543 #endif
8546 return 0;
8548 _ACEOF
8549 if ac_fn_c_try_compile "$LINENO"; then :
8550 ac_cv_c_bigendian=yes
8551 else
8552 ac_cv_c_bigendian=no
8554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8558 if test $ac_cv_c_bigendian = unknown; then
8559 # Compile a test program.
8560 if test "$cross_compiling" = yes; then :
8561 # Try to guess by grepping values from an object file.
8562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563 /* end confdefs.h. */
8564 short int ascii_mm[] =
8565 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8566 short int ascii_ii[] =
8567 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8568 int use_ascii (int i) {
8569 return ascii_mm[i] + ascii_ii[i];
8571 short int ebcdic_ii[] =
8572 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8573 short int ebcdic_mm[] =
8574 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8575 int use_ebcdic (int i) {
8576 return ebcdic_mm[i] + ebcdic_ii[i];
8578 extern int foo;
8581 main ()
8583 return use_ascii (foo) == use_ebcdic (foo);
8585 return 0;
8587 _ACEOF
8588 if ac_fn_c_try_compile "$LINENO"; then :
8589 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8590 ac_cv_c_bigendian=yes
8592 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8593 if test "$ac_cv_c_bigendian" = unknown; then
8594 ac_cv_c_bigendian=no
8595 else
8596 # finding both strings is unlikely to happen, but who knows?
8597 ac_cv_c_bigendian=unknown
8601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8602 else
8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8605 $ac_includes_default
8607 main ()
8610 /* Are we little or big endian? From Harbison&Steele. */
8611 union
8613 long int l;
8614 char c[sizeof (long int)];
8615 } u;
8616 u.l = 1;
8617 return u.c[sizeof (long int) - 1] == 1;
8620 return 0;
8622 _ACEOF
8623 if ac_fn_c_try_run "$LINENO"; then :
8624 ac_cv_c_bigendian=no
8625 else
8626 ac_cv_c_bigendian=yes
8628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8629 conftest.$ac_objext conftest.beam conftest.$ac_ext
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8635 $as_echo "$ac_cv_c_bigendian" >&6; }
8636 case $ac_cv_c_bigendian in #(
8637 yes)
8638 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8639 ;; #(
8641 ;; #(
8642 universal)
8644 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8646 ;; #(
8648 as_fn_error "unknown endianness
8649 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8650 esac
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8654 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8655 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8656 $as_echo_n "(cached) " >&6
8657 else
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8660 char __attribute__ ((__aligned__ (1 << 3))) c;
8662 main ()
8666 return 0;
8668 _ACEOF
8669 if ac_fn_c_try_compile "$LINENO"; then :
8670 emacs_cv_attribute_aligned=yes
8671 else
8672 emacs_cv_attribute_aligned=no
8674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8677 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8678 if test $emacs_cv_attribute_aligned = yes; then
8680 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8685 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8686 set x ${MAKE-make}
8687 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8688 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
8689 $as_echo_n "(cached) " >&6
8690 else
8691 cat >conftest.make <<\_ACEOF
8692 SHELL = /bin/sh
8693 all:
8694 @echo '@@@%%%=$(MAKE)=@@@%%%'
8695 _ACEOF
8696 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8697 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8698 *@@@%%%=?*=@@@%%%*)
8699 eval ac_cv_prog_make_${ac_make}_set=yes;;
8701 eval ac_cv_prog_make_${ac_make}_set=no;;
8702 esac
8703 rm -f conftest.make
8705 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8707 $as_echo "yes" >&6; }
8708 SET_MAKE=
8709 else
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8711 $as_echo "no" >&6; }
8712 SET_MAKE="MAKE=${MAKE-make}"
8716 DEPFLAGS=
8717 MKDEPDIR=":"
8718 deps_frag=deps.mk
8719 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8721 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8722 HAVE_GNU_MAKE=no
8723 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8724 if test "x$testval" != x; then
8725 HAVE_GNU_MAKE=yes
8726 else
8727 ac_enable_autodepend=no
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8730 $as_echo "$HAVE_GNU_MAKE" >&6; }
8731 if test $HAVE_GNU_MAKE = yes; then
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8733 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8734 SAVE_CFLAGS="$CFLAGS"
8735 CFLAGS="$CFLAGS -MMD -MF deps.d"
8736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8737 /* end confdefs.h. */
8740 main ()
8744 return 0;
8746 _ACEOF
8747 if ac_fn_c_try_compile "$LINENO"; then :
8749 else
8750 ac_enable_autodepend=no
8752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8753 CFLAGS="$SAVE_CFLAGS"
8754 test -f deps.d || ac_enable_autodepend=no
8755 rm -rf deps.d
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8757 $as_echo "$ac_enable_autodepend" >&6; }
8759 if test $ac_enable_autodepend = yes; then
8760 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8761 ## In parallel builds, another make might create depdir between
8762 ## the first test and mkdir, so stick another test on the end.
8763 ## Or use install-sh -d? mkdir -p is not portable.
8764 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8765 deps_frag=autodeps.mk
8768 deps_frag=$srcdir/src/$deps_frag
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8775 $as_echo_n "checking for long file names... " >&6; }
8776 if test "${ac_cv_sys_long_file_names+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
8778 else
8779 ac_cv_sys_long_file_names=yes
8780 # Test for long file names in all the places we know might matter:
8781 # . the current directory, where building will happen
8782 # $prefix/lib where we will be installing things
8783 # $exec_prefix/lib likewise
8784 # $TMPDIR if set, where it might want to write temporary files
8785 # /tmp where it might want to write temporary files
8786 # /var/tmp likewise
8787 # /usr/tmp likewise
8788 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8789 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8790 # in the usual case where exec_prefix is '${prefix}'.
8791 case $ac_dir in #(
8792 . | /* | ?:[\\/]*) ;; #(
8793 *) continue;;
8794 esac
8795 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8796 ac_xdir=$ac_dir/cf$$
8797 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8798 ac_tf1=$ac_xdir/conftest9012345
8799 ac_tf2=$ac_xdir/conftest9012346
8800 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8801 ac_cv_sys_long_file_names=no
8802 rm -f -r "$ac_xdir" 2>/dev/null
8803 test $ac_cv_sys_long_file_names = no && break
8804 done
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8807 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8808 if test $ac_cv_sys_long_file_names = yes; then
8810 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8815 #### Choose a window system.
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8818 $as_echo_n "checking for X... " >&6; }
8821 # Check whether --with-x was given.
8822 if test "${with_x+set}" = set; then :
8823 withval=$with_x;
8826 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8827 if test "x$with_x" = xno; then
8828 # The user explicitly disabled X.
8829 have_x=disabled
8830 else
8831 case $x_includes,$x_libraries in #(
8832 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
8833 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
8834 $as_echo_n "(cached) " >&6
8835 else
8836 # One or both of the vars are not set, and there is no cached value.
8837 ac_x_includes=no ac_x_libraries=no
8838 rm -f -r conftest.dir
8839 if mkdir conftest.dir; then
8840 cd conftest.dir
8841 cat >Imakefile <<'_ACEOF'
8842 incroot:
8843 @echo incroot='${INCROOT}'
8844 usrlibdir:
8845 @echo usrlibdir='${USRLIBDIR}'
8846 libdir:
8847 @echo libdir='${LIBDIR}'
8848 _ACEOF
8849 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8850 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8851 for ac_var in incroot usrlibdir libdir; do
8852 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8853 done
8854 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8855 for ac_extension in a so sl dylib la dll; do
8856 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8857 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8858 ac_im_usrlibdir=$ac_im_libdir; break
8860 done
8861 # Screen out bogus values from the imake configuration. They are
8862 # bogus both because they are the default anyway, and because
8863 # using them would break gcc on systems where it needs fixed includes.
8864 case $ac_im_incroot in
8865 /usr/include) ac_x_includes= ;;
8866 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8867 esac
8868 case $ac_im_usrlibdir in
8869 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8870 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8871 esac
8873 cd ..
8874 rm -f -r conftest.dir
8877 # Standard set of common directories for X headers.
8878 # Check X11 before X11Rn because it is often a symlink to the current release.
8879 ac_x_header_dirs='
8880 /usr/X11/include
8881 /usr/X11R7/include
8882 /usr/X11R6/include
8883 /usr/X11R5/include
8884 /usr/X11R4/include
8886 /usr/include/X11
8887 /usr/include/X11R7
8888 /usr/include/X11R6
8889 /usr/include/X11R5
8890 /usr/include/X11R4
8892 /usr/local/X11/include
8893 /usr/local/X11R7/include
8894 /usr/local/X11R6/include
8895 /usr/local/X11R5/include
8896 /usr/local/X11R4/include
8898 /usr/local/include/X11
8899 /usr/local/include/X11R7
8900 /usr/local/include/X11R6
8901 /usr/local/include/X11R5
8902 /usr/local/include/X11R4
8904 /usr/X386/include
8905 /usr/x386/include
8906 /usr/XFree86/include/X11
8908 /usr/include
8909 /usr/local/include
8910 /usr/unsupported/include
8911 /usr/athena/include
8912 /usr/local/x11r5/include
8913 /usr/lpp/Xamples/include
8915 /usr/openwin/include
8916 /usr/openwin/share/include'
8918 if test "$ac_x_includes" = no; then
8919 # Guess where to find include files, by looking for Xlib.h.
8920 # First, try using that file with no special directory specified.
8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922 /* end confdefs.h. */
8923 #include <X11/Xlib.h>
8924 _ACEOF
8925 if ac_fn_c_try_cpp "$LINENO"; then :
8926 # We can compile using X headers with no special include directory.
8927 ac_x_includes=
8928 else
8929 for ac_dir in $ac_x_header_dirs; do
8930 if test -r "$ac_dir/X11/Xlib.h"; then
8931 ac_x_includes=$ac_dir
8932 break
8934 done
8936 rm -f conftest.err conftest.$ac_ext
8937 fi # $ac_x_includes = no
8939 if test "$ac_x_libraries" = no; then
8940 # Check for the libraries.
8941 # See if we find them without any special options.
8942 # Don't add to $LIBS permanently.
8943 ac_save_LIBS=$LIBS
8944 LIBS="-lX11 $LIBS"
8945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946 /* end confdefs.h. */
8947 #include <X11/Xlib.h>
8949 main ()
8951 XrmInitialize ()
8953 return 0;
8955 _ACEOF
8956 if ac_fn_c_try_link "$LINENO"; then :
8957 LIBS=$ac_save_LIBS
8958 # We can link X programs with no special library path.
8959 ac_x_libraries=
8960 else
8961 LIBS=$ac_save_LIBS
8962 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8964 # Don't even attempt the hair of trying to link an X program!
8965 for ac_extension in a so sl dylib la dll; do
8966 if test -r "$ac_dir/libX11.$ac_extension"; then
8967 ac_x_libraries=$ac_dir
8968 break 2
8970 done
8971 done
8973 rm -f core conftest.err conftest.$ac_objext \
8974 conftest$ac_exeext conftest.$ac_ext
8975 fi # $ac_x_libraries = no
8977 case $ac_x_includes,$ac_x_libraries in #(
8978 no,* | *,no | *\'*)
8979 # Didn't find X, or a directory has "'" in its name.
8980 ac_cv_have_x="have_x=no";; #(
8982 # Record where we found X for the cache.
8983 ac_cv_have_x="have_x=yes\
8984 ac_x_includes='$ac_x_includes'\
8985 ac_x_libraries='$ac_x_libraries'"
8986 esac
8988 ;; #(
8989 *) have_x=yes;;
8990 esac
8991 eval "$ac_cv_have_x"
8992 fi # $with_x != no
8994 if test "$have_x" != yes; then
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8996 $as_echo "$have_x" >&6; }
8997 no_x=yes
8998 else
8999 # If each of the values was on the command line, it overrides each guess.
9000 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9001 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9002 # Update the cache value to reflect the command line values.
9003 ac_cv_have_x="have_x=yes\
9004 ac_x_includes='$x_includes'\
9005 ac_x_libraries='$x_libraries'"
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9007 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9010 if test "$no_x" = yes; then
9011 window_system=none
9012 else
9013 window_system=x11
9016 ## Workaround for bug in autoconf <= 2.62.
9017 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9018 ## No need to do anything special for these standard directories.
9019 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9021 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9025 LD_SWITCH_X_SITE_AUX=
9026 LD_SWITCH_X_SITE_AUX_RPATH=
9027 if test "${x_libraries}" != NONE; then
9028 if test -n "${x_libraries}"; then
9029 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9030 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9031 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9033 x_default_search_path=""
9034 x_search_path=${x_libraries}
9035 if test -z "${x_search_path}"; then
9036 x_search_path=/usr/lib
9038 for x_library in `echo ${x_search_path}: | \
9039 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9040 x_search_path="\
9041 ${x_library}/X11/%L/%T/%N%C%S:\
9042 ${x_library}/X11/%l/%T/%N%C%S:\
9043 ${x_library}/X11/%T/%N%C%S:\
9044 ${x_library}/X11/%L/%T/%N%S:\
9045 ${x_library}/X11/%l/%T/%N%S:\
9046 ${x_library}/X11/%T/%N%S"
9047 if test x"${x_default_search_path}" = x; then
9048 x_default_search_path=${x_search_path}
9049 else
9050 x_default_search_path="${x_search_path}:${x_default_search_path}"
9052 done
9057 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9058 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9061 if test x"${x_includes}" = x; then
9062 bitmapdir=/usr/include/X11/bitmaps
9063 else
9064 # accumulate include directories that have X11 bitmap subdirectories
9065 bmd_acc="dummyval"
9066 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9067 if test -d "${bmd}/X11/bitmaps"; then
9068 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9070 if test -d "${bmd}/bitmaps"; then
9071 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9073 done
9074 if test ${bmd_acc} != "dummyval"; then
9075 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9079 HAVE_NS=no
9080 NS_IMPL_COCOA=no
9081 NS_IMPL_GNUSTEP=no
9082 tmp_CPPFLAGS="$CPPFLAGS"
9083 tmp_CFLAGS="$CFLAGS"
9084 CPPFLAGS="$CPPFLAGS -x objective-c"
9085 CFLAGS="$CFLAGS -x objective-c"
9086 TEMACS_LDFLAGS2="\${LDFLAGS}"
9087 if test "${with_ns}" != no; then
9088 if test "${opsys}" = darwin; then
9089 NS_IMPL_COCOA=yes
9090 ns_appdir=`pwd`/nextstep/Emacs.app
9091 ns_appbindir=${ns_appdir}/Contents/MacOS/
9092 ns_appresdir=${ns_appdir}/Contents/Resources
9093 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9094 elif test -f $GNUSTEP_CONFIG_FILE; then
9095 NS_IMPL_GNUSTEP=yes
9096 ns_appdir=`pwd`/nextstep/Emacs.app
9097 ns_appbindir=${ns_appdir}/
9098 ns_appresdir=${ns_appdir}/Resources
9099 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9100 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9101 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9102 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9103 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9104 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9105 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9106 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9107 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9108 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9109 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9110 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9111 LIB_STANDARD=
9112 START_FILES=
9113 TEMACS_LDFLAGS2=
9115 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9116 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9117 HAVE_NS=yes
9118 else
9119 as_fn_error "\`--with-ns' was specified, but the include
9120 files are missing or cannot be compiled." "$LINENO" 5
9124 NS_HAVE_NSINTEGER=yes
9125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9126 /* end confdefs.h. */
9127 #include <Foundation/NSObjCRuntime.h>
9129 main ()
9131 NSInteger i;
9133 return 0;
9135 _ACEOF
9136 if ac_fn_c_try_compile "$LINENO"; then :
9137 ns_have_nsinteger=yes
9138 else
9139 ns_have_nsinteger=no
9141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9142 if test $ns_have_nsinteger = no; then
9143 NS_HAVE_NSINTEGER=no
9148 ns_frag=/dev/null
9149 NS_OBJ=
9150 NS_OBJC_OBJ=
9151 NS_SUPPORT=
9152 if test "${HAVE_NS}" = yes; then
9153 window_system=nextstep
9154 with_xft=no
9155 # set up packaging dirs
9156 exec_prefix=${ns_appbindir}
9157 libexecdir=${ns_appbindir}/libexec
9158 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9159 prefix=${ns_appresdir}
9161 ns_frag=$srcdir/src/ns.mk
9162 NS_OBJ="fontset.o fringe.o image.o"
9163 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9164 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9166 CFLAGS="$tmp_CFLAGS"
9167 CPPFLAGS="$tmp_CPPFLAGS"
9174 case "${window_system}" in
9175 x11 )
9176 HAVE_X_WINDOWS=yes
9177 HAVE_X11=yes
9178 case "${with_x_toolkit}" in
9179 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9180 motif ) USE_X_TOOLKIT=MOTIF ;;
9181 gtk ) with_gtk=yes
9182 USE_X_TOOLKIT=none ;;
9183 gtk3 ) with_gtk3=yes
9184 USE_X_TOOLKIT=none ;;
9185 no ) USE_X_TOOLKIT=none ;;
9186 * ) USE_X_TOOLKIT=maybe ;;
9187 esac
9189 nextstep | none )
9190 HAVE_X_WINDOWS=no
9191 HAVE_X11=no
9192 USE_X_TOOLKIT=none
9194 esac
9196 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9197 # Extract the first word of "X", so it can be a program name with args.
9198 set dummy X; ac_word=$2
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9200 $as_echo_n "checking for $ac_word... " >&6; }
9201 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9202 $as_echo_n "(cached) " >&6
9203 else
9204 if test -n "$HAVE_XSERVER"; then
9205 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9206 else
9207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9208 for as_dir in $PATH
9210 IFS=$as_save_IFS
9211 test -z "$as_dir" && as_dir=.
9212 for ac_exec_ext in '' $ac_executable_extensions; do
9213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9214 ac_cv_prog_HAVE_XSERVER="true"
9215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9216 break 2
9218 done
9219 done
9220 IFS=$as_save_IFS
9222 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9225 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9226 if test -n "$HAVE_XSERVER"; then
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9228 $as_echo "$HAVE_XSERVER" >&6; }
9229 else
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9235 if test "$HAVE_XSERVER" = true ||
9236 test -n "$DISPLAY" ||
9237 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9238 as_fn_error "You seem to be running X, but no X development libraries
9239 were found. You should install the relevant development files for X
9240 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9241 sure you have development files for image handling, i.e.
9242 tiff, gif, jpeg, png and xpm.
9243 If you are sure you want Emacs compiled without X window support, pass
9244 --without-x
9245 to configure." "$LINENO" 5
9249 ### If we're using X11, we should use the X menu package.
9250 HAVE_MENUS=no
9251 case ${HAVE_X11} in
9252 yes ) HAVE_MENUS=yes ;;
9253 esac
9255 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9256 # Assume not, until told otherwise.
9257 GNU_MALLOC=yes
9258 doug_lea_malloc=yes
9259 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9260 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
9262 else
9263 doug_lea_malloc=no
9266 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9267 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
9269 else
9270 doug_lea_malloc=no
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9274 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9275 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9276 $as_echo_n "(cached) " >&6
9277 else
9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h. */
9280 extern void (* __after_morecore_hook)();
9282 main ()
9284 __after_morecore_hook = 0
9286 return 0;
9288 _ACEOF
9289 if ac_fn_c_try_link "$LINENO"; then :
9290 emacs_cv_var___after_morecore_hook=yes
9291 else
9292 emacs_cv_var___after_morecore_hook=no
9294 rm -f core conftest.err conftest.$ac_objext \
9295 conftest$ac_exeext conftest.$ac_ext
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9298 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9299 if test $emacs_cv_var___after_morecore_hook = no; then
9300 doug_lea_malloc=no
9304 system_malloc=no
9305 case "$opsys" in
9306 ## darwin ld insists on the use of malloc routines in the System framework.
9307 darwin|sol2-10) system_malloc=yes ;;
9308 esac
9310 if test "${system_malloc}" = "yes"; then
9312 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9314 GNU_MALLOC=no
9315 GNU_MALLOC_reason="
9316 (The GNU allocators don't work with this system configuration.)"
9317 GMALLOC_OBJ=
9318 VMLIMIT_OBJ=
9319 else
9320 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9321 VMLIMIT_OBJ=vm-limit.o
9326 if test "$doug_lea_malloc" = "yes" ; then
9327 if test "$GNU_MALLOC" = yes ; then
9328 GNU_MALLOC_reason="
9329 (Using Doug Lea's new malloc from the GNU C Library.)"
9332 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9335 ## Use mmap directly for allocating larger buffers.
9336 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9337 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9338 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9339 case "$opsys" in
9340 gnu*) REL_ALLOC=no ;;
9341 esac
9344 if test x"${REL_ALLOC}" = x; then
9345 REL_ALLOC=${GNU_MALLOC}
9348 use_mmap_for_buffers=no
9349 case "$opsys" in
9350 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9351 esac
9356 for ac_header in $ac_header_list
9357 do :
9358 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9359 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9361 eval as_val=\$$as_ac_Header
9362 if test "x$as_val" = x""yes; then :
9363 cat >>confdefs.h <<_ACEOF
9364 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9365 _ACEOF
9369 done
9378 for ac_func in getpagesize
9379 do :
9380 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9381 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9382 cat >>confdefs.h <<_ACEOF
9383 #define HAVE_GETPAGESIZE 1
9384 _ACEOF
9387 done
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9390 $as_echo_n "checking for working mmap... " >&6; }
9391 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9392 $as_echo_n "(cached) " >&6
9393 else
9394 if test "$cross_compiling" = yes; then :
9395 ac_cv_func_mmap_fixed_mapped=no
9396 else
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9399 $ac_includes_default
9400 /* malloc might have been renamed as rpl_malloc. */
9401 #undef malloc
9403 /* Thanks to Mike Haertel and Jim Avera for this test.
9404 Here is a matrix of mmap possibilities:
9405 mmap private not fixed
9406 mmap private fixed at somewhere currently unmapped
9407 mmap private fixed at somewhere already mapped
9408 mmap shared not fixed
9409 mmap shared fixed at somewhere currently unmapped
9410 mmap shared fixed at somewhere already mapped
9411 For private mappings, we should verify that changes cannot be read()
9412 back from the file, nor mmap's back from the file at a different
9413 address. (There have been systems where private was not correctly
9414 implemented like the infamous i386 svr4.0, and systems where the
9415 VM page cache was not coherent with the file system buffer cache
9416 like early versions of FreeBSD and possibly contemporary NetBSD.)
9417 For shared mappings, we should conversely verify that changes get
9418 propagated back to all the places they're supposed to be.
9420 Grep wants private fixed already mapped.
9421 The main things grep needs to know about mmap are:
9422 * does it exist and is it safe to write into the mmap'd area
9423 * how to use it (BSD variants) */
9425 #include <fcntl.h>
9426 #include <sys/mman.h>
9428 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9429 char *malloc ();
9430 #endif
9432 /* This mess was copied from the GNU getpagesize.h. */
9433 #ifndef HAVE_GETPAGESIZE
9434 # ifdef _SC_PAGESIZE
9435 # define getpagesize() sysconf(_SC_PAGESIZE)
9436 # else /* no _SC_PAGESIZE */
9437 # ifdef HAVE_SYS_PARAM_H
9438 # include <sys/param.h>
9439 # ifdef EXEC_PAGESIZE
9440 # define getpagesize() EXEC_PAGESIZE
9441 # else /* no EXEC_PAGESIZE */
9442 # ifdef NBPG
9443 # define getpagesize() NBPG * CLSIZE
9444 # ifndef CLSIZE
9445 # define CLSIZE 1
9446 # endif /* no CLSIZE */
9447 # else /* no NBPG */
9448 # ifdef NBPC
9449 # define getpagesize() NBPC
9450 # else /* no NBPC */
9451 # ifdef PAGESIZE
9452 # define getpagesize() PAGESIZE
9453 # endif /* PAGESIZE */
9454 # endif /* no NBPC */
9455 # endif /* no NBPG */
9456 # endif /* no EXEC_PAGESIZE */
9457 # else /* no HAVE_SYS_PARAM_H */
9458 # define getpagesize() 8192 /* punt totally */
9459 # endif /* no HAVE_SYS_PARAM_H */
9460 # endif /* no _SC_PAGESIZE */
9462 #endif /* no HAVE_GETPAGESIZE */
9465 main ()
9467 char *data, *data2, *data3;
9468 const char *cdata2;
9469 int i, pagesize;
9470 int fd, fd2;
9472 pagesize = getpagesize ();
9474 /* First, make a file with some known garbage in it. */
9475 data = (char *) malloc (pagesize);
9476 if (!data)
9477 return 1;
9478 for (i = 0; i < pagesize; ++i)
9479 *(data + i) = rand ();
9480 umask (0);
9481 fd = creat ("conftest.mmap", 0600);
9482 if (fd < 0)
9483 return 2;
9484 if (write (fd, data, pagesize) != pagesize)
9485 return 3;
9486 close (fd);
9488 /* Next, check that the tail of a page is zero-filled. File must have
9489 non-zero length, otherwise we risk SIGBUS for entire page. */
9490 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9491 if (fd2 < 0)
9492 return 4;
9493 cdata2 = "";
9494 if (write (fd2, cdata2, 1) != 1)
9495 return 5;
9496 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9497 if (data2 == MAP_FAILED)
9498 return 6;
9499 for (i = 0; i < pagesize; ++i)
9500 if (*(data2 + i))
9501 return 7;
9502 close (fd2);
9503 if (munmap (data2, pagesize))
9504 return 8;
9506 /* Next, try to mmap the file at a fixed address which already has
9507 something else allocated at it. If we can, also make sure that
9508 we see the same garbage. */
9509 fd = open ("conftest.mmap", O_RDWR);
9510 if (fd < 0)
9511 return 9;
9512 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9513 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9514 return 10;
9515 for (i = 0; i < pagesize; ++i)
9516 if (*(data + i) != *(data2 + i))
9517 return 11;
9519 /* Finally, make sure that changes to the mapped area do not
9520 percolate back to the file as seen by read(). (This is a bug on
9521 some variants of i386 svr4.0.) */
9522 for (i = 0; i < pagesize; ++i)
9523 *(data2 + i) = *(data2 + i) + 1;
9524 data3 = (char *) malloc (pagesize);
9525 if (!data3)
9526 return 12;
9527 if (read (fd, data3, pagesize) != pagesize)
9528 return 13;
9529 for (i = 0; i < pagesize; ++i)
9530 if (*(data + i) != *(data3 + i))
9531 return 14;
9532 close (fd);
9533 return 0;
9535 _ACEOF
9536 if ac_fn_c_try_run "$LINENO"; then :
9537 ac_cv_func_mmap_fixed_mapped=yes
9538 else
9539 ac_cv_func_mmap_fixed_mapped=no
9541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9542 conftest.$ac_objext conftest.beam conftest.$ac_ext
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9547 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9548 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9550 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9553 rm -f conftest.mmap conftest.txt
9555 if test $use_mmap_for_buffers = yes; then
9557 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9559 REL_ALLOC=no
9562 LIBS="$LIBS_SYSTEM $LIBS"
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9565 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9566 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9567 $as_echo_n "(cached) " >&6
9568 else
9569 ac_check_lib_save_LIBS=$LIBS
9570 LIBS="-ldnet $LIBS"
9571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9572 /* end confdefs.h. */
9574 /* Override any GCC internal prototype to avoid an error.
9575 Use char because int might match the return type of a GCC
9576 builtin and then its argument prototype would still apply. */
9577 #ifdef __cplusplus
9578 extern "C"
9579 #endif
9580 char dnet_ntoa ();
9582 main ()
9584 return dnet_ntoa ();
9586 return 0;
9588 _ACEOF
9589 if ac_fn_c_try_link "$LINENO"; then :
9590 ac_cv_lib_dnet_dnet_ntoa=yes
9591 else
9592 ac_cv_lib_dnet_dnet_ntoa=no
9594 rm -f core conftest.err conftest.$ac_objext \
9595 conftest$ac_exeext conftest.$ac_ext
9596 LIBS=$ac_check_lib_save_LIBS
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9599 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9600 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9601 cat >>confdefs.h <<_ACEOF
9602 #define HAVE_LIBDNET 1
9603 _ACEOF
9605 LIBS="-ldnet $LIBS"
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9611 $as_echo_n "checking for main in -lXbsd... " >&6; }
9612 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9613 $as_echo_n "(cached) " >&6
9614 else
9615 ac_check_lib_save_LIBS=$LIBS
9616 LIBS="-lXbsd $LIBS"
9617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618 /* end confdefs.h. */
9622 main ()
9624 return main ();
9626 return 0;
9628 _ACEOF
9629 if ac_fn_c_try_link "$LINENO"; then :
9630 ac_cv_lib_Xbsd_main=yes
9631 else
9632 ac_cv_lib_Xbsd_main=no
9634 rm -f core conftest.err conftest.$ac_objext \
9635 conftest$ac_exeext conftest.$ac_ext
9636 LIBS=$ac_check_lib_save_LIBS
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9639 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9640 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9641 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9646 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9647 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9648 $as_echo_n "(cached) " >&6
9649 else
9650 ac_check_lib_save_LIBS=$LIBS
9651 LIBS="-lpthreads $LIBS"
9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9655 /* Override any GCC internal prototype to avoid an error.
9656 Use char because int might match the return type of a GCC
9657 builtin and then its argument prototype would still apply. */
9658 #ifdef __cplusplus
9659 extern "C"
9660 #endif
9661 char cma_open ();
9663 main ()
9665 return cma_open ();
9667 return 0;
9669 _ACEOF
9670 if ac_fn_c_try_link "$LINENO"; then :
9671 ac_cv_lib_pthreads_cma_open=yes
9672 else
9673 ac_cv_lib_pthreads_cma_open=no
9675 rm -f core conftest.err conftest.$ac_objext \
9676 conftest$ac_exeext conftest.$ac_ext
9677 LIBS=$ac_check_lib_save_LIBS
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9680 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9681 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
9682 cat >>confdefs.h <<_ACEOF
9683 #define HAVE_LIBPTHREADS 1
9684 _ACEOF
9686 LIBS="-lpthreads $LIBS"
9691 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9692 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9693 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9694 ## added to LIBS in configure would never contain the pthreads part,
9695 ## but the value used in Makefiles might. FIXME?
9697 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9698 ## be harmless on older versions of X where it happens to exist.
9699 test "$opsys" = "aix4-2" && \
9700 test $ac_cv_lib_pthreads_cma_open = yes && \
9701 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9704 case ${host_os} in
9705 aix*)
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9707 $as_echo_n "checking for -bbigtoc option... " >&6; }
9708 if test "${gdb_cv_bigtoc+set}" = set; then :
9709 $as_echo_n "(cached) " >&6
9710 else
9712 case $GCC in
9713 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9714 *) gdb_cv_bigtoc=-bbigtoc ;;
9715 esac
9717 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9719 /* end confdefs.h. */
9722 main ()
9724 int i;
9726 return 0;
9728 _ACEOF
9729 if ac_fn_c_try_link "$LINENO"; then :
9731 else
9732 gdb_cv_bigtoc=
9734 rm -f core conftest.err conftest.$ac_objext \
9735 conftest$ac_exeext conftest.$ac_ext
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9739 $as_echo "$gdb_cv_bigtoc" >&6; }
9741 esac
9743 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9744 # used for the tests that follow. We set them back to REAL_CFLAGS and
9745 # REAL_CPPFLAGS later on.
9747 REAL_CFLAGS="$CFLAGS"
9748 REAL_CPPFLAGS="$CPPFLAGS"
9750 if test "${HAVE_X11}" = "yes"; then
9751 DEFS="$C_SWITCH_X_SITE $DEFS"
9752 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9753 LIBS="-lX11 $LIBS"
9754 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9755 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9757 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9758 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9759 # but it's more convenient here to set LD_RUN_PATH
9760 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9761 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9762 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9763 export LD_RUN_PATH
9766 if test "${opsys}" = "gnu-linux"; then
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9768 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h. */
9773 main ()
9775 XOpenDisplay ("foo");
9777 return 0;
9779 _ACEOF
9780 if ac_fn_c_try_link "$LINENO"; then :
9781 xlinux_first_failure=no
9782 else
9783 xlinux_first_failure=yes
9785 rm -f core conftest.err conftest.$ac_objext \
9786 conftest$ac_exeext conftest.$ac_ext
9787 if test "${xlinux_first_failure}" = "yes"; then
9788 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9789 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9790 OLD_CPPFLAGS="$CPPFLAGS"
9791 OLD_LIBS="$LIBS"
9792 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9793 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9794 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9795 LIBS="$LIBS -b i486-linuxaout"
9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9800 main ()
9802 XOpenDisplay ("foo");
9804 return 0;
9806 _ACEOF
9807 if ac_fn_c_try_link "$LINENO"; then :
9808 xlinux_second_failure=no
9809 else
9810 xlinux_second_failure=yes
9812 rm -f core conftest.err conftest.$ac_objext \
9813 conftest$ac_exeext conftest.$ac_ext
9814 if test "${xlinux_second_failure}" = "yes"; then
9815 # If we get the same failure with -b, there is no use adding -b.
9816 # So take it out. This plays safe.
9817 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9818 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9819 CPPFLAGS="$OLD_CPPFLAGS"
9820 LIBS="$OLD_LIBS"
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9822 $as_echo "no" >&6; }
9823 else
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9825 $as_echo "yes" >&6; }
9827 else
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9829 $as_echo "no" >&6; }
9833 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9834 # header files included from there.
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9836 $as_echo_n "checking for Xkb... " >&6; }
9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838 /* end confdefs.h. */
9839 #include <X11/Xlib.h>
9840 #include <X11/XKBlib.h>
9842 main ()
9844 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9846 return 0;
9848 _ACEOF
9849 if ac_fn_c_try_link "$LINENO"; then :
9850 emacs_xkb=yes
9851 else
9852 emacs_xkb=no
9854 rm -f core conftest.err conftest.$ac_objext \
9855 conftest$ac_exeext conftest.$ac_ext
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9857 $as_echo "$emacs_xkb" >&6; }
9858 if test $emacs_xkb = yes; then
9860 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9864 for ac_func in XrmSetDatabase XScreenResourceString \
9865 XScreenNumberOfScreen XSetWMProtocols
9866 do :
9867 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9868 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9869 eval as_val=\$$as_ac_var
9870 if test "x$as_val" = x""yes; then :
9871 cat >>confdefs.h <<_ACEOF
9872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9873 _ACEOF
9876 done
9880 if test "${window_system}" = "x11"; then
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9882 $as_echo_n "checking X11 version 6... " >&6; }
9883 if test "${emacs_cv_x11_version_6+set}" = set; then :
9884 $as_echo_n "(cached) " >&6
9885 else
9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887 /* end confdefs.h. */
9888 #include <X11/Xlib.h>
9890 main ()
9892 #if XlibSpecificationRelease < 6
9893 fail;
9894 #endif
9897 return 0;
9899 _ACEOF
9900 if ac_fn_c_try_link "$LINENO"; then :
9901 emacs_cv_x11_version_6=yes
9902 else
9903 emacs_cv_x11_version_6=no
9905 rm -f core conftest.err conftest.$ac_objext \
9906 conftest$ac_exeext conftest.$ac_ext
9909 if test $emacs_cv_x11_version_6 = yes; then
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9911 $as_echo "6 or newer" >&6; }
9913 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9916 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9918 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9919 ## XIM support.
9920 case "$opsys" in
9921 sol2-*) : ;;
9923 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9926 esac
9927 else
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9929 $as_echo "before 6" >&6; }
9934 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9935 HAVE_RSVG=no
9936 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9937 if test "${with_rsvg}" != "no"; then
9938 RSVG_REQUIRED=2.11.0
9939 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9942 succeeded=no
9944 # Extract the first word of "pkg-config", so it can be a program name with args.
9945 set dummy pkg-config; ac_word=$2
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9947 $as_echo_n "checking for $ac_word... " >&6; }
9948 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9949 $as_echo_n "(cached) " >&6
9950 else
9951 case $PKG_CONFIG in
9952 [\\/]* | ?:[\\/]*)
9953 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9957 for as_dir in $PATH
9959 IFS=$as_save_IFS
9960 test -z "$as_dir" && as_dir=.
9961 for ac_exec_ext in '' $ac_executable_extensions; do
9962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9963 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9965 break 2
9967 done
9968 done
9969 IFS=$as_save_IFS
9971 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9973 esac
9975 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9976 if test -n "$PKG_CONFIG"; then
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9978 $as_echo "$PKG_CONFIG" >&6; }
9979 else
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9981 $as_echo "no" >&6; }
9986 if test "$PKG_CONFIG" = "no" ; then
9988 else
9989 PKG_CONFIG_MIN_VERSION=0.9.0
9990 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9992 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9994 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9996 $as_echo "yes" >&6; }
9997 succeeded=yes
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10000 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10001 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10003 $as_echo "$RSVG_CFLAGS" >&6; }
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10006 $as_echo_n "checking RSVG_LIBS... " >&6; }
10007 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10009 $as_echo "$RSVG_LIBS" >&6; }
10010 else
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10012 $as_echo "no" >&6; }
10013 RSVG_CFLAGS=""
10014 RSVG_LIBS=""
10015 ## If we have a custom action on failure, don't print errors, but
10016 ## do set a variable so people can do so.
10017 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10023 else
10024 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10025 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10029 if test $succeeded = yes; then
10030 HAVE_RSVG=yes
10031 else
10038 if test $HAVE_RSVG = yes; then
10040 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10042 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10043 LIBS="$RSVG_LIBS $LIBS"
10048 HAVE_IMAGEMAGICK=no
10049 if test "${HAVE_X11}" = "yes"; then
10050 if test "${with_imagemagick}" != "no"; then
10051 ## 6.2.8 is the earliest version known to work, but earlier versions
10052 ## might work - let us know if you find one.
10053 ## 6.0.7 does not work. See bug#7955.
10054 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10056 succeeded=no
10058 # Extract the first word of "pkg-config", so it can be a program name with args.
10059 set dummy pkg-config; ac_word=$2
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10061 $as_echo_n "checking for $ac_word... " >&6; }
10062 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10063 $as_echo_n "(cached) " >&6
10064 else
10065 case $PKG_CONFIG in
10066 [\\/]* | ?:[\\/]*)
10067 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071 for as_dir in $PATH
10073 IFS=$as_save_IFS
10074 test -z "$as_dir" && as_dir=.
10075 for ac_exec_ext in '' $ac_executable_extensions; do
10076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10077 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10079 break 2
10081 done
10082 done
10083 IFS=$as_save_IFS
10085 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10087 esac
10089 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10090 if test -n "$PKG_CONFIG"; then
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10092 $as_echo "$PKG_CONFIG" >&6; }
10093 else
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10095 $as_echo "no" >&6; }
10100 if test "$PKG_CONFIG" = "no" ; then
10102 else
10103 PKG_CONFIG_MIN_VERSION=0.9.0
10104 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10106 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10108 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10110 $as_echo "yes" >&6; }
10111 succeeded=yes
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10114 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10115 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10117 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10120 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10121 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10123 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10124 else
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10126 $as_echo "no" >&6; }
10127 IMAGEMAGICK_CFLAGS=""
10128 IMAGEMAGICK_LIBS=""
10129 ## If we have a custom action on failure, don't print errors, but
10130 ## do set a variable so people can do so.
10131 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10137 else
10138 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10139 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10143 if test $succeeded = yes; then
10144 HAVE_IMAGEMAGICK=yes
10145 else
10152 if test $HAVE_IMAGEMAGICK = yes; then
10154 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10156 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10157 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10158 for ac_func in MagickExportImagePixels
10159 do :
10160 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10161 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10162 cat >>confdefs.h <<_ACEOF
10163 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10164 _ACEOF
10167 done
10174 HAVE_GTK=no
10175 if test "${with_gtk3}" = "yes"; then
10176 GLIB_REQUIRED=2.28
10177 GTK_REQUIRED=3.0
10178 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10181 succeeded=no
10183 # Extract the first word of "pkg-config", so it can be a program name with args.
10184 set dummy pkg-config; ac_word=$2
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10186 $as_echo_n "checking for $ac_word... " >&6; }
10187 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10188 $as_echo_n "(cached) " >&6
10189 else
10190 case $PKG_CONFIG in
10191 [\\/]* | ?:[\\/]*)
10192 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10196 for as_dir in $PATH
10198 IFS=$as_save_IFS
10199 test -z "$as_dir" && as_dir=.
10200 for ac_exec_ext in '' $ac_executable_extensions; do
10201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10202 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10204 break 2
10206 done
10207 done
10208 IFS=$as_save_IFS
10210 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10212 esac
10214 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10215 if test -n "$PKG_CONFIG"; then
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10217 $as_echo "$PKG_CONFIG" >&6; }
10218 else
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220 $as_echo "no" >&6; }
10225 if test "$PKG_CONFIG" = "no" ; then
10226 pkg_check_gtk=no
10227 else
10228 PKG_CONFIG_MIN_VERSION=0.9.0
10229 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10231 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10233 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10235 $as_echo "yes" >&6; }
10236 succeeded=yes
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10239 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10240 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10242 $as_echo "$GTK_CFLAGS" >&6; }
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10245 $as_echo_n "checking GTK_LIBS... " >&6; }
10246 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10248 $as_echo "$GTK_LIBS" >&6; }
10249 else
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10251 $as_echo "no" >&6; }
10252 GTK_CFLAGS=""
10253 GTK_LIBS=""
10254 ## If we have a custom action on failure, don't print errors, but
10255 ## do set a variable so people can do so.
10256 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10262 else
10263 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10264 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10268 if test $succeeded = yes; then
10269 pkg_check_gtk=yes
10270 else
10271 pkg_check_gtk=no
10274 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10275 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10278 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10282 if test "$pkg_check_gtk" != "yes"; then
10283 HAVE_GTK=no
10284 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10285 GLIB_REQUIRED=2.6
10286 GTK_REQUIRED=2.6
10287 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10290 succeeded=no
10292 # Extract the first word of "pkg-config", so it can be a program name with args.
10293 set dummy pkg-config; ac_word=$2
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10295 $as_echo_n "checking for $ac_word... " >&6; }
10296 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10297 $as_echo_n "(cached) " >&6
10298 else
10299 case $PKG_CONFIG in
10300 [\\/]* | ?:[\\/]*)
10301 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10305 for as_dir in $PATH
10307 IFS=$as_save_IFS
10308 test -z "$as_dir" && as_dir=.
10309 for ac_exec_ext in '' $ac_executable_extensions; do
10310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10311 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10313 break 2
10315 done
10316 done
10317 IFS=$as_save_IFS
10319 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10321 esac
10323 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10324 if test -n "$PKG_CONFIG"; then
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10326 $as_echo "$PKG_CONFIG" >&6; }
10327 else
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10329 $as_echo "no" >&6; }
10334 if test "$PKG_CONFIG" = "no" ; then
10335 pkg_check_gtk=no
10336 else
10337 PKG_CONFIG_MIN_VERSION=0.9.0
10338 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10340 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10342 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10344 $as_echo "yes" >&6; }
10345 succeeded=yes
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10348 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10349 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10351 $as_echo "$GTK_CFLAGS" >&6; }
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10354 $as_echo_n "checking GTK_LIBS... " >&6; }
10355 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10357 $as_echo "$GTK_LIBS" >&6; }
10358 else
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360 $as_echo "no" >&6; }
10361 GTK_CFLAGS=""
10362 GTK_LIBS=""
10363 ## If we have a custom action on failure, don't print errors, but
10364 ## do set a variable so people can do so.
10365 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10371 else
10372 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10373 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10377 if test $succeeded = yes; then
10378 pkg_check_gtk=yes
10379 else
10380 pkg_check_gtk=no
10383 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10384 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10389 GTK_OBJ=
10390 if test x"$pkg_check_gtk" = xyes; then
10394 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10395 CFLAGS="$CFLAGS $GTK_CFLAGS"
10396 LIBS="$GTK_LIBS $LIBS"
10397 GTK_COMPILES=no
10398 for ac_func in gtk_main
10399 do :
10400 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10401 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10402 cat >>confdefs.h <<_ACEOF
10403 #define HAVE_GTK_MAIN 1
10404 _ACEOF
10405 GTK_COMPILES=yes
10407 done
10409 if test "${GTK_COMPILES}" != "yes"; then
10410 if test "$USE_X_TOOLKIT" != "maybe"; then
10411 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10413 else
10414 HAVE_GTK=yes
10416 $as_echo "#define USE_GTK 1" >>confdefs.h
10418 GTK_OBJ=gtkutil.o
10419 USE_X_TOOLKIT=none
10420 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10422 else
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10424 closing open displays. This is no problem if you just use
10425 one display, but if you use more than one and close one of them
10426 Emacs may crash." >&5
10427 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10428 closing open displays. This is no problem if you just use
10429 one display, but if you use more than one and close one of them
10430 Emacs may crash." >&2;}
10431 sleep 3
10439 if test "${HAVE_GTK}" = "yes"; then
10441 if test "$with_toolkit_scroll_bars" != no; then
10442 with_toolkit_scroll_bars=yes
10445 HAVE_GTK_FILE_SELECTION=no
10446 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10447 #include <gtk/gtk.h>
10449 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10450 HAVE_GTK_FILE_SELECTION=yes
10451 else
10452 HAVE_GTK_FILE_SELECTION=no
10455 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10456 for ac_func in gtk_file_selection_new
10457 do :
10458 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10459 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10460 cat >>confdefs.h <<_ACEOF
10461 #define HAVE_GTK_FILE_SELECTION_NEW 1
10462 _ACEOF
10465 done
10469 HAVE_GTK_AND_PTHREAD=no
10470 for ac_header in pthread.h
10471 do :
10472 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10473 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10474 cat >>confdefs.h <<_ACEOF
10475 #define HAVE_PTHREAD_H 1
10476 _ACEOF
10480 done
10482 if test "$ac_cv_header_pthread_h"; then
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10484 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10485 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10486 $as_echo_n "(cached) " >&6
10487 else
10488 ac_check_lib_save_LIBS=$LIBS
10489 LIBS="-lpthread $LIBS"
10490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10491 /* end confdefs.h. */
10493 /* Override any GCC internal prototype to avoid an error.
10494 Use char because int might match the return type of a GCC
10495 builtin and then its argument prototype would still apply. */
10496 #ifdef __cplusplus
10497 extern "C"
10498 #endif
10499 char pthread_self ();
10501 main ()
10503 return pthread_self ();
10505 return 0;
10507 _ACEOF
10508 if ac_fn_c_try_link "$LINENO"; then :
10509 ac_cv_lib_pthread_pthread_self=yes
10510 else
10511 ac_cv_lib_pthread_pthread_self=no
10513 rm -f core conftest.err conftest.$ac_objext \
10514 conftest$ac_exeext conftest.$ac_ext
10515 LIBS=$ac_check_lib_save_LIBS
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10518 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10519 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10520 HAVE_GTK_AND_PTHREAD=yes
10524 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10525 case "${canonical}" in
10526 *-hpux*) ;;
10527 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10528 esac
10530 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10534 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10535 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10536 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10537 gtk_orientable_set_orientation
10538 do :
10539 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10540 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10541 eval as_val=\$$as_ac_var
10542 if test "x$as_val" = x""yes; then :
10543 cat >>confdefs.h <<_ACEOF
10544 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10545 _ACEOF
10548 done
10553 HAVE_DBUS=no
10554 DBUS_OBJ=
10555 if test "${with_dbus}" = "yes"; then
10557 succeeded=no
10559 # Extract the first word of "pkg-config", so it can be a program name with args.
10560 set dummy pkg-config; ac_word=$2
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10562 $as_echo_n "checking for $ac_word... " >&6; }
10563 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10564 $as_echo_n "(cached) " >&6
10565 else
10566 case $PKG_CONFIG in
10567 [\\/]* | ?:[\\/]*)
10568 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572 for as_dir in $PATH
10574 IFS=$as_save_IFS
10575 test -z "$as_dir" && as_dir=.
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10578 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10580 break 2
10582 done
10583 done
10584 IFS=$as_save_IFS
10586 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10588 esac
10590 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10591 if test -n "$PKG_CONFIG"; then
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10593 $as_echo "$PKG_CONFIG" >&6; }
10594 else
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10596 $as_echo "no" >&6; }
10601 if test "$PKG_CONFIG" = "no" ; then
10602 HAVE_DBUS=no
10603 else
10604 PKG_CONFIG_MIN_VERSION=0.9.0
10605 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10607 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10609 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10611 $as_echo "yes" >&6; }
10612 succeeded=yes
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10615 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10616 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10618 $as_echo "$DBUS_CFLAGS" >&6; }
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10621 $as_echo_n "checking DBUS_LIBS... " >&6; }
10622 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10624 $as_echo "$DBUS_LIBS" >&6; }
10625 else
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627 $as_echo "no" >&6; }
10628 DBUS_CFLAGS=""
10629 DBUS_LIBS=""
10630 ## If we have a custom action on failure, don't print errors, but
10631 ## do set a variable so people can do so.
10632 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10638 else
10639 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10640 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10644 if test $succeeded = yes; then
10645 HAVE_DBUS=yes
10646 else
10647 HAVE_DBUS=no
10650 if test "$HAVE_DBUS" = yes; then
10651 LIBS="$LIBS $DBUS_LIBS"
10653 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10655 for ac_func in dbus_watch_get_unix_fd
10656 do :
10657 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10658 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
10659 cat >>confdefs.h <<_ACEOF
10660 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10661 _ACEOF
10664 done
10666 DBUS_OBJ=dbusbind.o
10671 HAVE_GCONF=no
10672 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10674 succeeded=no
10676 # Extract the first word of "pkg-config", so it can be a program name with args.
10677 set dummy pkg-config; ac_word=$2
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10679 $as_echo_n "checking for $ac_word... " >&6; }
10680 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10681 $as_echo_n "(cached) " >&6
10682 else
10683 case $PKG_CONFIG in
10684 [\\/]* | ?:[\\/]*)
10685 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10689 for as_dir in $PATH
10691 IFS=$as_save_IFS
10692 test -z "$as_dir" && as_dir=.
10693 for ac_exec_ext in '' $ac_executable_extensions; do
10694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10695 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10697 break 2
10699 done
10700 done
10701 IFS=$as_save_IFS
10703 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10705 esac
10707 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10708 if test -n "$PKG_CONFIG"; then
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10710 $as_echo "$PKG_CONFIG" >&6; }
10711 else
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10713 $as_echo "no" >&6; }
10718 if test "$PKG_CONFIG" = "no" ; then
10719 HAVE_GCONF=no
10720 else
10721 PKG_CONFIG_MIN_VERSION=0.9.0
10722 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10724 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10726 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10728 $as_echo "yes" >&6; }
10729 succeeded=yes
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10732 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10733 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10735 $as_echo "$GCONF_CFLAGS" >&6; }
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10738 $as_echo_n "checking GCONF_LIBS... " >&6; }
10739 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10741 $as_echo "$GCONF_LIBS" >&6; }
10742 else
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744 $as_echo "no" >&6; }
10745 GCONF_CFLAGS=""
10746 GCONF_LIBS=""
10747 ## If we have a custom action on failure, don't print errors, but
10748 ## do set a variable so people can do so.
10749 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10755 else
10756 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10757 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10761 if test $succeeded = yes; then
10762 HAVE_GCONF=yes
10763 else
10764 HAVE_GCONF=no
10767 if test "$HAVE_GCONF" = yes; then
10769 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10771 for ac_func in g_type_init
10772 do :
10773 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10774 if test "x$ac_cv_func_g_type_init" = x""yes; then :
10775 cat >>confdefs.h <<_ACEOF
10776 #define HAVE_G_TYPE_INIT 1
10777 _ACEOF
10780 done
10785 HAVE_LIBSELINUX=no
10786 LIBSELINUX_LIBS=
10787 if test "${with_selinux}" = "yes"; then
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10789 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10790 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10791 $as_echo_n "(cached) " >&6
10792 else
10793 ac_check_lib_save_LIBS=$LIBS
10794 LIBS="-lselinux $LIBS"
10795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10796 /* end confdefs.h. */
10798 /* Override any GCC internal prototype to avoid an error.
10799 Use char because int might match the return type of a GCC
10800 builtin and then its argument prototype would still apply. */
10801 #ifdef __cplusplus
10802 extern "C"
10803 #endif
10804 char lgetfilecon ();
10806 main ()
10808 return lgetfilecon ();
10810 return 0;
10812 _ACEOF
10813 if ac_fn_c_try_link "$LINENO"; then :
10814 ac_cv_lib_selinux_lgetfilecon=yes
10815 else
10816 ac_cv_lib_selinux_lgetfilecon=no
10818 rm -f core conftest.err conftest.$ac_objext \
10819 conftest$ac_exeext conftest.$ac_ext
10820 LIBS=$ac_check_lib_save_LIBS
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10823 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10824 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
10825 HAVE_LIBSELINUX=yes
10826 else
10827 HAVE_LIBSELINUX=no
10830 if test "$HAVE_LIBSELINUX" = yes; then
10832 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10834 LIBSELINUX_LIBS=-lselinux
10839 HAVE_GNUTLS=no
10840 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
10841 if test "${with_gnutls}" = "yes" ; then
10843 succeeded=no
10845 # Extract the first word of "pkg-config", so it can be a program name with args.
10846 set dummy pkg-config; ac_word=$2
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10848 $as_echo_n "checking for $ac_word... " >&6; }
10849 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10850 $as_echo_n "(cached) " >&6
10851 else
10852 case $PKG_CONFIG in
10853 [\\/]* | ?:[\\/]*)
10854 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10858 for as_dir in $PATH
10860 IFS=$as_save_IFS
10861 test -z "$as_dir" && as_dir=.
10862 for ac_exec_ext in '' $ac_executable_extensions; do
10863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10864 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10866 break 2
10868 done
10869 done
10870 IFS=$as_save_IFS
10872 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10874 esac
10876 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10877 if test -n "$PKG_CONFIG"; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10879 $as_echo "$PKG_CONFIG" >&6; }
10880 else
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882 $as_echo "no" >&6; }
10887 if test "$PKG_CONFIG" = "no" ; then
10888 HAVE_GNUTLS=no
10889 else
10890 PKG_CONFIG_MIN_VERSION=0.9.0
10891 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10893 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10895 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10897 $as_echo "yes" >&6; }
10898 succeeded=yes
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10901 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10902 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10904 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10907 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10908 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10910 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10911 else
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10913 $as_echo "no" >&6; }
10914 LIBGNUTLS_CFLAGS=""
10915 LIBGNUTLS_LIBS=""
10916 ## If we have a custom action on failure, don't print errors, but
10917 ## do set a variable so people can do so.
10918 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10924 else
10925 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10926 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10930 if test $succeeded = yes; then
10931 HAVE_GNUTLS=yes
10932 else
10933 HAVE_GNUTLS=no
10936 if test "${HAVE_GNUTLS}" = "yes"; then
10938 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10942 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
10943 LIBS="$LIBGNUTLS_LIBS $LIBS"
10944 for ac_func in gnutls_certificate_set_verify_function
10945 do :
10946 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
10947 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
10948 cat >>confdefs.h <<_ACEOF
10949 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
10950 _ACEOF
10951 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
10953 done
10956 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
10958 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
10966 HAVE_XAW3D=no
10967 LUCID_LIBW=
10968 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10969 if test "$with_xaw3d" != no; then
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10971 $as_echo_n "checking for xaw3d... " >&6; }
10972 if test "${emacs_cv_xaw3d+set}" = set; then :
10973 $as_echo_n "(cached) " >&6
10974 else
10975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976 /* end confdefs.h. */
10978 #include <X11/Intrinsic.h>
10979 #include <X11/Xaw3d/Simple.h>
10981 main ()
10985 return 0;
10987 _ACEOF
10988 if ac_fn_c_try_link "$LINENO"; then :
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10990 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10991 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
10992 $as_echo_n "(cached) " >&6
10993 else
10994 ac_check_lib_save_LIBS=$LIBS
10995 LIBS="-lXaw3d $LIBS"
10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
10999 /* Override any GCC internal prototype to avoid an error.
11000 Use char because int might match the return type of a GCC
11001 builtin and then its argument prototype would still apply. */
11002 #ifdef __cplusplus
11003 extern "C"
11004 #endif
11005 char XawScrollbarSetThumb ();
11007 main ()
11009 return XawScrollbarSetThumb ();
11011 return 0;
11013 _ACEOF
11014 if ac_fn_c_try_link "$LINENO"; then :
11015 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11016 else
11017 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11019 rm -f core conftest.err conftest.$ac_objext \
11020 conftest$ac_exeext conftest.$ac_ext
11021 LIBS=$ac_check_lib_save_LIBS
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11024 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11025 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11026 emacs_cv_xaw3d=yes
11027 else
11028 emacs_cv_xaw3d=no
11031 else
11032 emacs_cv_xaw3d=no
11034 rm -f core conftest.err conftest.$ac_objext \
11035 conftest$ac_exeext conftest.$ac_ext
11038 else
11039 emacs_cv_xaw3d=no
11041 if test $emacs_cv_xaw3d = yes; then
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11043 $as_echo "yes; using Lucid toolkit" >&6; }
11044 USE_X_TOOLKIT=LUCID
11045 HAVE_XAW3D=yes
11046 LUCID_LIBW=-lXaw3d
11048 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11050 else
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 $as_echo "no" >&6; }
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11054 $as_echo_n "checking for libXaw... " >&6; }
11055 if test "${emacs_cv_xaw+set}" = set; then :
11056 $as_echo_n "(cached) " >&6
11057 else
11058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059 /* end confdefs.h. */
11061 #include <X11/Intrinsic.h>
11062 #include <X11/Xaw/Simple.h>
11064 main ()
11068 return 0;
11070 _ACEOF
11071 if ac_fn_c_try_link "$LINENO"; then :
11072 emacs_cv_xaw=yes
11073 else
11074 emacs_cv_xaw=no
11076 rm -f core conftest.err conftest.$ac_objext \
11077 conftest$ac_exeext conftest.$ac_ext
11080 if test $emacs_cv_xaw = yes; then
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11082 $as_echo "yes; using Lucid toolkit" >&6; }
11083 USE_X_TOOLKIT=LUCID
11084 LUCID_LIBW=-lXaw
11085 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11086 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11087 else
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
11089 $as_echo "no; do not use toolkit by default" >&6; }
11090 USE_X_TOOLKIT=none
11095 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11097 LIBXTR6=
11098 if test "${USE_X_TOOLKIT}" != "none"; then
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11100 $as_echo_n "checking X11 toolkit version... " >&6; }
11101 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11102 $as_echo_n "(cached) " >&6
11103 else
11104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105 /* end confdefs.h. */
11106 #include <X11/Intrinsic.h>
11108 main ()
11110 #if XtSpecificationRelease < 6
11111 fail;
11112 #endif
11115 return 0;
11117 _ACEOF
11118 if ac_fn_c_try_link "$LINENO"; then :
11119 emacs_cv_x11_toolkit_version_6=yes
11120 else
11121 emacs_cv_x11_toolkit_version_6=no
11123 rm -f core conftest.err conftest.$ac_objext \
11124 conftest$ac_exeext conftest.$ac_ext
11127 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11128 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11130 $as_echo "6 or newer" >&6; }
11132 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11134 LIBXTR6="-lSM -lICE"
11135 case "$opsys" in
11136 ## Use libw.a along with X11R6 Xt.
11137 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11138 esac
11139 else
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11141 $as_echo "before 6" >&6; }
11144 OLDLIBS="$LIBS"
11145 if test x$HAVE_X11XTR6 = xyes; then
11146 LIBS="-lXt -lSM -lICE $LIBS"
11147 else
11148 LIBS="-lXt $LIBS"
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11151 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11152 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11153 $as_echo_n "(cached) " >&6
11154 else
11155 ac_check_lib_save_LIBS=$LIBS
11156 LIBS="-lXmu $LIBS"
11157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h. */
11160 /* Override any GCC internal prototype to avoid an error.
11161 Use char because int might match the return type of a GCC
11162 builtin and then its argument prototype would still apply. */
11163 #ifdef __cplusplus
11164 extern "C"
11165 #endif
11166 char XmuConvertStandardSelection ();
11168 main ()
11170 return XmuConvertStandardSelection ();
11172 return 0;
11174 _ACEOF
11175 if ac_fn_c_try_link "$LINENO"; then :
11176 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11177 else
11178 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11180 rm -f core conftest.err conftest.$ac_objext \
11181 conftest$ac_exeext conftest.$ac_ext
11182 LIBS=$ac_check_lib_save_LIBS
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11185 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11186 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11187 cat >>confdefs.h <<_ACEOF
11188 #define HAVE_LIBXMU 1
11189 _ACEOF
11191 LIBS="-lXmu $LIBS"
11195 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11199 LIBXMU=-lXmu
11200 case $opsys in
11201 ## These systems don't supply Xmu.
11202 hpux* | aix4-2 )
11203 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11205 esac
11208 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11209 if test "${HAVE_X11}" = "yes"; then
11210 if test "${USE_X_TOOLKIT}" != "none"; then
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11212 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11213 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11214 $as_echo_n "(cached) " >&6
11215 else
11216 ac_check_lib_save_LIBS=$LIBS
11217 LIBS="-lXext $LIBS"
11218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219 /* end confdefs.h. */
11221 /* Override any GCC internal prototype to avoid an error.
11222 Use char because int might match the return type of a GCC
11223 builtin and then its argument prototype would still apply. */
11224 #ifdef __cplusplus
11225 extern "C"
11226 #endif
11227 char XShapeQueryExtension ();
11229 main ()
11231 return XShapeQueryExtension ();
11233 return 0;
11235 _ACEOF
11236 if ac_fn_c_try_link "$LINENO"; then :
11237 ac_cv_lib_Xext_XShapeQueryExtension=yes
11238 else
11239 ac_cv_lib_Xext_XShapeQueryExtension=no
11241 rm -f core conftest.err conftest.$ac_objext \
11242 conftest$ac_exeext conftest.$ac_ext
11243 LIBS=$ac_check_lib_save_LIBS
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11246 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11247 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11248 cat >>confdefs.h <<_ACEOF
11249 #define HAVE_LIBXEXT 1
11250 _ACEOF
11252 LIBS="-lXext $LIBS"
11259 LIBXP=
11260 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11262 $as_echo_n "checking for Motif version 2.1... " >&6; }
11263 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11264 $as_echo_n "(cached) " >&6
11265 else
11266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11268 #include <Xm/Xm.h>
11270 main ()
11272 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11273 int x = 5;
11274 #else
11275 Motif version prior to 2.1.
11276 #endif
11278 return 0;
11280 _ACEOF
11281 if ac_fn_c_try_compile "$LINENO"; then :
11282 emacs_cv_motif_version_2_1=yes
11283 else
11284 emacs_cv_motif_version_2_1=no
11286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11289 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11290 if test $emacs_cv_motif_version_2_1 = yes; then
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11292 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11293 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11294 $as_echo_n "(cached) " >&6
11295 else
11296 ac_check_lib_save_LIBS=$LIBS
11297 LIBS="-lXp $LIBS"
11298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h. */
11301 /* Override any GCC internal prototype to avoid an error.
11302 Use char because int might match the return type of a GCC
11303 builtin and then its argument prototype would still apply. */
11304 #ifdef __cplusplus
11305 extern "C"
11306 #endif
11307 char XpCreateContext ();
11309 main ()
11311 return XpCreateContext ();
11313 return 0;
11315 _ACEOF
11316 if ac_fn_c_try_link "$LINENO"; then :
11317 ac_cv_lib_Xp_XpCreateContext=yes
11318 else
11319 ac_cv_lib_Xp_XpCreateContext=no
11321 rm -f core conftest.err conftest.$ac_objext \
11322 conftest$ac_exeext conftest.$ac_ext
11323 LIBS=$ac_check_lib_save_LIBS
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11326 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11327 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11328 LIBXP=-lXp
11331 else
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11333 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11334 if test "${emacs_cv_lesstif+set}" = set; then :
11335 $as_echo_n "(cached) " >&6
11336 else
11337 # We put this in CFLAGS temporarily to precede other -I options
11338 # that might be in CFLAGS temporarily.
11339 # We put this in CPPFLAGS where it precedes the other -I options.
11340 OLD_CPPFLAGS=$CPPFLAGS
11341 OLD_CFLAGS=$CFLAGS
11342 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11343 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h. */
11346 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11348 main ()
11350 int x = 5;
11352 return 0;
11354 _ACEOF
11355 if ac_fn_c_try_compile "$LINENO"; then :
11356 emacs_cv_lesstif=yes
11357 else
11358 emacs_cv_lesstif=no
11360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11363 $as_echo "$emacs_cv_lesstif" >&6; }
11364 if test $emacs_cv_lesstif = yes; then
11365 # Make sure this -I option remains in CPPFLAGS after it is set
11366 # back to REAL_CPPFLAGS.
11367 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11368 # have those other -I options anyway. Ultimately, having this
11369 # directory ultimately in CPPFLAGS will be enough.
11370 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11371 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11372 else
11373 CFLAGS=$OLD_CFLAGS
11374 CPPFLAGS=$OLD_CPPFLAGS
11380 USE_TOOLKIT_SCROLL_BARS=no
11381 if test "${with_toolkit_scroll_bars}" != "no"; then
11382 if test "${USE_X_TOOLKIT}" != "none"; then
11383 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11384 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11386 HAVE_XAW3D=no
11387 USE_TOOLKIT_SCROLL_BARS=yes
11388 elif test "${HAVE_XAW3D}" = "yes"; then
11389 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11391 USE_TOOLKIT_SCROLL_BARS=yes
11393 elif test "${HAVE_GTK}" = "yes"; then
11394 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11396 USE_TOOLKIT_SCROLL_BARS=yes
11397 elif test "${HAVE_NS}" = "yes"; then
11398 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11400 USE_TOOLKIT_SCROLL_BARS=yes
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11407 #include <X11/Xlib.h>
11408 #include <X11/Xresource.h>
11410 main ()
11412 XIMProc callback;
11414 return 0;
11416 _ACEOF
11417 if ac_fn_c_try_compile "$LINENO"; then :
11418 HAVE_XIM=yes
11420 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11422 else
11423 HAVE_XIM=no
11425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11428 if test "${with_xim}" != "no"; then
11430 $as_echo "#define USE_XIM 1" >>confdefs.h
11435 if test "${HAVE_XIM}" != "no"; then
11436 late_CFLAGS=$CFLAGS
11437 if test "$GCC" = yes; then
11438 CFLAGS="$CFLAGS --pedantic-errors"
11440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11441 /* end confdefs.h. */
11443 #include <X11/Xlib.h>
11444 #include <X11/Xresource.h>
11446 main ()
11448 Display *display;
11449 XrmDatabase db;
11450 char *res_name;
11451 char *res_class;
11452 XIMProc callback;
11453 XPointer *client_data;
11454 #ifndef __GNUC__
11455 /* If we're not using GCC, it's probably not XFree86, and this is
11456 probably right, but we can't use something like --pedantic-errors. */
11457 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11458 char*, XIMProc, XPointer*);
11459 #endif
11460 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11461 client_data);
11463 return 0;
11465 _ACEOF
11466 if ac_fn_c_try_compile "$LINENO"; then :
11467 emacs_cv_arg6_star=yes
11469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470 if test "$emacs_cv_arg6_star" = yes; then
11471 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11473 else
11474 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11477 CFLAGS=$late_CFLAGS
11480 ### Start of font-backend (under any platform) section.
11481 # (nothing here yet -- this is a placeholder)
11482 ### End of font-backend (under any platform) section.
11484 ### Start of font-backend (under X11) section.
11485 if test "${HAVE_X11}" = "yes"; then
11487 succeeded=no
11489 # Extract the first word of "pkg-config", so it can be a program name with args.
11490 set dummy pkg-config; ac_word=$2
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11492 $as_echo_n "checking for $ac_word... " >&6; }
11493 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11494 $as_echo_n "(cached) " >&6
11495 else
11496 case $PKG_CONFIG in
11497 [\\/]* | ?:[\\/]*)
11498 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11502 for as_dir in $PATH
11504 IFS=$as_save_IFS
11505 test -z "$as_dir" && as_dir=.
11506 for ac_exec_ext in '' $ac_executable_extensions; do
11507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11508 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11510 break 2
11512 done
11513 done
11514 IFS=$as_save_IFS
11516 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11518 esac
11520 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11521 if test -n "$PKG_CONFIG"; then
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11523 $as_echo "$PKG_CONFIG" >&6; }
11524 else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526 $as_echo "no" >&6; }
11531 if test "$PKG_CONFIG" = "no" ; then
11532 HAVE_FC=no
11533 else
11534 PKG_CONFIG_MIN_VERSION=0.9.0
11535 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11537 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11539 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11541 $as_echo "yes" >&6; }
11542 succeeded=yes
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11545 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11546 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11548 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11551 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11552 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11554 $as_echo "$FONTCONFIG_LIBS" >&6; }
11555 else
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11557 $as_echo "no" >&6; }
11558 FONTCONFIG_CFLAGS=""
11559 FONTCONFIG_LIBS=""
11560 ## If we have a custom action on failure, don't print errors, but
11561 ## do set a variable so people can do so.
11562 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11568 else
11569 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11570 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11574 if test $succeeded = yes; then
11575 HAVE_FC=yes
11576 else
11577 HAVE_FC=no
11581 ## Use -lXft if available, unless `--with-xft=no'.
11582 HAVE_XFT=maybe
11583 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11584 with_xft="no";
11586 if test "x${with_xft}" != "xno"; then
11589 succeeded=no
11591 # Extract the first word of "pkg-config", so it can be a program name with args.
11592 set dummy pkg-config; ac_word=$2
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11594 $as_echo_n "checking for $ac_word... " >&6; }
11595 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11596 $as_echo_n "(cached) " >&6
11597 else
11598 case $PKG_CONFIG in
11599 [\\/]* | ?:[\\/]*)
11600 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11604 for as_dir in $PATH
11606 IFS=$as_save_IFS
11607 test -z "$as_dir" && as_dir=.
11608 for ac_exec_ext in '' $ac_executable_extensions; do
11609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11610 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11612 break 2
11614 done
11615 done
11616 IFS=$as_save_IFS
11618 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11620 esac
11622 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11623 if test -n "$PKG_CONFIG"; then
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11625 $as_echo "$PKG_CONFIG" >&6; }
11626 else
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11628 $as_echo "no" >&6; }
11633 if test "$PKG_CONFIG" = "no" ; then
11634 HAVE_XFT=no
11635 else
11636 PKG_CONFIG_MIN_VERSION=0.9.0
11637 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11639 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11641 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11643 $as_echo "yes" >&6; }
11644 succeeded=yes
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11647 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11648 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11650 $as_echo "$XFT_CFLAGS" >&6; }
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11653 $as_echo_n "checking XFT_LIBS... " >&6; }
11654 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11656 $as_echo "$XFT_LIBS" >&6; }
11657 else
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659 $as_echo "no" >&6; }
11660 XFT_CFLAGS=""
11661 XFT_LIBS=""
11662 ## If we have a custom action on failure, don't print errors, but
11663 ## do set a variable so people can do so.
11664 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11670 else
11671 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11672 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11676 if test $succeeded = yes; then
11678 else
11679 HAVE_XFT=no
11682 ## Because xftfont.c uses XRenderQueryExtension, we also
11683 ## need to link to -lXrender.
11684 HAVE_XRENDER=no
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11686 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11687 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11688 $as_echo_n "(cached) " >&6
11689 else
11690 ac_check_lib_save_LIBS=$LIBS
11691 LIBS="-lXrender $LIBS"
11692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11693 /* end confdefs.h. */
11695 /* Override any GCC internal prototype to avoid an error.
11696 Use char because int might match the return type of a GCC
11697 builtin and then its argument prototype would still apply. */
11698 #ifdef __cplusplus
11699 extern "C"
11700 #endif
11701 char XRenderQueryExtension ();
11703 main ()
11705 return XRenderQueryExtension ();
11707 return 0;
11709 _ACEOF
11710 if ac_fn_c_try_link "$LINENO"; then :
11711 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11712 else
11713 ac_cv_lib_Xrender_XRenderQueryExtension=no
11715 rm -f core conftest.err conftest.$ac_objext \
11716 conftest$ac_exeext conftest.$ac_ext
11717 LIBS=$ac_check_lib_save_LIBS
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11720 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11721 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
11722 HAVE_XRENDER=yes
11725 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11726 OLD_CPPFLAGS="$CPPFLAGS"
11727 OLD_CFLAGS="$CFLAGS"
11728 OLD_LIBS="$LIBS"
11729 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11730 CFLAGS="$CFLAGS $XFT_CFLAGS"
11731 XFT_LIBS="-lXrender $XFT_LIBS"
11732 LIBS="$XFT_LIBS $LIBS"
11733 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11734 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11736 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11737 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11738 $as_echo_n "(cached) " >&6
11739 else
11740 ac_check_lib_save_LIBS=$LIBS
11741 LIBS="-lXft $XFT_LIBS $LIBS"
11742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11743 /* end confdefs.h. */
11745 /* Override any GCC internal prototype to avoid an error.
11746 Use char because int might match the return type of a GCC
11747 builtin and then its argument prototype would still apply. */
11748 #ifdef __cplusplus
11749 extern "C"
11750 #endif
11751 char XftFontOpen ();
11753 main ()
11755 return XftFontOpen ();
11757 return 0;
11759 _ACEOF
11760 if ac_fn_c_try_link "$LINENO"; then :
11761 ac_cv_lib_Xft_XftFontOpen=yes
11762 else
11763 ac_cv_lib_Xft_XftFontOpen=no
11765 rm -f core conftest.err conftest.$ac_objext \
11766 conftest$ac_exeext conftest.$ac_ext
11767 LIBS=$ac_check_lib_save_LIBS
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11770 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11771 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
11772 HAVE_XFT=yes
11779 if test "${HAVE_XFT}" = "yes"; then
11781 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11784 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11785 else
11786 CPPFLAGS="$OLD_CPPFLAGS"
11787 CFLAGS="$OLD_CFLAGS"
11788 LIBS="$OLD_LIBS"
11789 fi # "${HAVE_XFT}" = "yes"
11790 fi # "$HAVE_XFT" != no
11791 fi # "x${with_xft}" != "xno"
11793 ## We used to allow building with FreeType and without Xft.
11794 ## However, the ftx font backend driver is not in good shape.
11795 if test "$HAVE_XFT" != "yes"; then
11796 HAVE_XFT=no
11797 HAVE_FREETYPE=no
11798 else
11800 succeeded=no
11802 # Extract the first word of "pkg-config", so it can be a program name with args.
11803 set dummy pkg-config; ac_word=$2
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11805 $as_echo_n "checking for $ac_word... " >&6; }
11806 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11807 $as_echo_n "(cached) " >&6
11808 else
11809 case $PKG_CONFIG in
11810 [\\/]* | ?:[\\/]*)
11811 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815 for as_dir in $PATH
11817 IFS=$as_save_IFS
11818 test -z "$as_dir" && as_dir=.
11819 for ac_exec_ext in '' $ac_executable_extensions; do
11820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11821 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11823 break 2
11825 done
11826 done
11827 IFS=$as_save_IFS
11829 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11831 esac
11833 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11834 if test -n "$PKG_CONFIG"; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11836 $as_echo "$PKG_CONFIG" >&6; }
11837 else
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839 $as_echo "no" >&6; }
11844 if test "$PKG_CONFIG" = "no" ; then
11845 HAVE_FREETYPE=no
11846 else
11847 PKG_CONFIG_MIN_VERSION=0.9.0
11848 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11850 $as_echo_n "checking for freetype2... " >&6; }
11852 if $PKG_CONFIG --exists "freetype2" 2>&5; then
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11854 $as_echo "yes" >&6; }
11855 succeeded=yes
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
11858 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
11859 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
11861 $as_echo "$FREETYPE_CFLAGS" >&6; }
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
11864 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
11865 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
11867 $as_echo "$FREETYPE_LIBS" >&6; }
11868 else
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11870 $as_echo "no" >&6; }
11871 FREETYPE_CFLAGS=""
11872 FREETYPE_LIBS=""
11873 ## If we have a custom action on failure, don't print errors, but
11874 ## do set a variable so people can do so.
11875 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11881 else
11882 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11883 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11887 if test $succeeded = yes; then
11888 HAVE_FREETYPE=yes
11889 else
11890 HAVE_FREETYPE=no
11894 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
11897 HAVE_LIBOTF=no
11898 if test "${HAVE_FREETYPE}" = "yes"; then
11900 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11902 if test "${with_libotf}" != "no"; then
11904 succeeded=no
11906 # Extract the first word of "pkg-config", so it can be a program name with args.
11907 set dummy pkg-config; ac_word=$2
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11909 $as_echo_n "checking for $ac_word... " >&6; }
11910 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11911 $as_echo_n "(cached) " >&6
11912 else
11913 case $PKG_CONFIG in
11914 [\\/]* | ?:[\\/]*)
11915 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11919 for as_dir in $PATH
11921 IFS=$as_save_IFS
11922 test -z "$as_dir" && as_dir=.
11923 for ac_exec_ext in '' $ac_executable_extensions; do
11924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11925 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11927 break 2
11929 done
11930 done
11931 IFS=$as_save_IFS
11933 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11935 esac
11937 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11938 if test -n "$PKG_CONFIG"; then
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11940 $as_echo "$PKG_CONFIG" >&6; }
11941 else
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11943 $as_echo "no" >&6; }
11948 if test "$PKG_CONFIG" = "no" ; then
11949 HAVE_LIBOTF=no
11950 else
11951 PKG_CONFIG_MIN_VERSION=0.9.0
11952 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11954 $as_echo_n "checking for libotf... " >&6; }
11956 if $PKG_CONFIG --exists "libotf" 2>&5; then
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11958 $as_echo "yes" >&6; }
11959 succeeded=yes
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11962 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11963 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11965 $as_echo "$LIBOTF_CFLAGS" >&6; }
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11968 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11969 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11971 $as_echo "$LIBOTF_LIBS" >&6; }
11972 else
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974 $as_echo "no" >&6; }
11975 LIBOTF_CFLAGS=""
11976 LIBOTF_LIBS=""
11977 ## If we have a custom action on failure, don't print errors, but
11978 ## do set a variable so people can do so.
11979 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11985 else
11986 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11987 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11991 if test $succeeded = yes; then
11992 HAVE_LIBOTF=yes
11993 else
11994 HAVE_LIBOTF=no
11997 if test "$HAVE_LIBOTF" = "yes"; then
11999 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12002 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12003 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12004 $as_echo_n "(cached) " >&6
12005 else
12006 ac_check_lib_save_LIBS=$LIBS
12007 LIBS="-lotf $LIBS"
12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12011 /* Override any GCC internal prototype to avoid an error.
12012 Use char because int might match the return type of a GCC
12013 builtin and then its argument prototype would still apply. */
12014 #ifdef __cplusplus
12015 extern "C"
12016 #endif
12017 char OTF_get_variation_glyphs ();
12019 main ()
12021 return OTF_get_variation_glyphs ();
12023 return 0;
12025 _ACEOF
12026 if ac_fn_c_try_link "$LINENO"; then :
12027 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12028 else
12029 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12031 rm -f core conftest.err conftest.$ac_objext \
12032 conftest$ac_exeext conftest.$ac_ext
12033 LIBS=$ac_check_lib_save_LIBS
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12036 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12037 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12038 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12039 else
12040 HAVE_OTF_GET_VARIATION_GLYPHS=no
12043 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12045 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12052 HAVE_M17N_FLT=no
12053 if test "${HAVE_LIBOTF}" = yes; then
12054 if test "${with_m17n_flt}" != "no"; then
12056 succeeded=no
12058 # Extract the first word of "pkg-config", so it can be a program name with args.
12059 set dummy pkg-config; ac_word=$2
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061 $as_echo_n "checking for $ac_word... " >&6; }
12062 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12063 $as_echo_n "(cached) " >&6
12064 else
12065 case $PKG_CONFIG in
12066 [\\/]* | ?:[\\/]*)
12067 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071 for as_dir in $PATH
12073 IFS=$as_save_IFS
12074 test -z "$as_dir" && as_dir=.
12075 for ac_exec_ext in '' $ac_executable_extensions; do
12076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12077 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12079 break 2
12081 done
12082 done
12083 IFS=$as_save_IFS
12085 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12087 esac
12089 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12090 if test -n "$PKG_CONFIG"; then
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12092 $as_echo "$PKG_CONFIG" >&6; }
12093 else
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095 $as_echo "no" >&6; }
12100 if test "$PKG_CONFIG" = "no" ; then
12101 HAVE_M17N_FLT=no
12102 else
12103 PKG_CONFIG_MIN_VERSION=0.9.0
12104 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12106 $as_echo_n "checking for m17n-flt... " >&6; }
12108 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12110 $as_echo "yes" >&6; }
12111 succeeded=yes
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12114 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12115 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12117 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12120 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12121 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12123 $as_echo "$M17N_FLT_LIBS" >&6; }
12124 else
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126 $as_echo "no" >&6; }
12127 M17N_FLT_CFLAGS=""
12128 M17N_FLT_LIBS=""
12129 ## If we have a custom action on failure, don't print errors, but
12130 ## do set a variable so people can do so.
12131 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12137 else
12138 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12139 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12143 if test $succeeded = yes; then
12144 HAVE_M17N_FLT=yes
12145 else
12146 HAVE_M17N_FLT=no
12149 if test "$HAVE_M17N_FLT" = "yes"; then
12151 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12156 else
12157 HAVE_XFT=no
12158 HAVE_FREETYPE=no
12159 HAVE_LIBOTF=no
12160 HAVE_M17N_FLT=no
12163 ### End of font-backend (under X11) section.
12174 ### Use -lXpm if available, unless `--with-xpm=no'.
12175 HAVE_XPM=no
12176 LIBXPM=
12177 if test "${HAVE_X11}" = "yes"; then
12178 if test "${with_xpm}" != "no"; then
12179 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12180 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12182 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12183 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12184 $as_echo_n "(cached) " >&6
12185 else
12186 ac_check_lib_save_LIBS=$LIBS
12187 LIBS="-lXpm -lX11 $LIBS"
12188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12189 /* end confdefs.h. */
12191 /* Override any GCC internal prototype to avoid an error.
12192 Use char because int might match the return type of a GCC
12193 builtin and then its argument prototype would still apply. */
12194 #ifdef __cplusplus
12195 extern "C"
12196 #endif
12197 char XpmReadFileToPixmap ();
12199 main ()
12201 return XpmReadFileToPixmap ();
12203 return 0;
12205 _ACEOF
12206 if ac_fn_c_try_link "$LINENO"; then :
12207 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12208 else
12209 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12211 rm -f core conftest.err conftest.$ac_objext \
12212 conftest$ac_exeext conftest.$ac_ext
12213 LIBS=$ac_check_lib_save_LIBS
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12216 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12217 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12218 HAVE_XPM=yes
12224 if test "${HAVE_XPM}" = "yes"; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12226 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228 /* end confdefs.h. */
12229 #include "X11/xpm.h"
12230 #ifndef XpmReturnAllocPixels
12231 no_return_alloc_pixels
12232 #endif
12234 _ACEOF
12235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12236 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12237 HAVE_XPM=no
12238 else
12239 HAVE_XPM=yes
12241 rm -f conftest*
12244 if test "${HAVE_XPM}" = "yes"; then
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12246 $as_echo "yes" >&6; }
12247 else
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12249 $as_echo "no" >&6; }
12254 if test "${HAVE_XPM}" = "yes"; then
12256 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12258 LIBXPM=-lXpm
12263 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12264 HAVE_JPEG=no
12265 LIBJPEG=
12266 if test "${HAVE_X11}" = "yes"; then
12267 if test "${with_jpeg}" != "no"; then
12268 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12269 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12271 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12272 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12273 $as_echo_n "(cached) " >&6
12274 else
12275 ac_check_lib_save_LIBS=$LIBS
12276 LIBS="-ljpeg $LIBS"
12277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12278 /* end confdefs.h. */
12280 /* Override any GCC internal prototype to avoid an error.
12281 Use char because int might match the return type of a GCC
12282 builtin and then its argument prototype would still apply. */
12283 #ifdef __cplusplus
12284 extern "C"
12285 #endif
12286 char jpeg_destroy_compress ();
12288 main ()
12290 return jpeg_destroy_compress ();
12292 return 0;
12294 _ACEOF
12295 if ac_fn_c_try_link "$LINENO"; then :
12296 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12297 else
12298 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12300 rm -f core conftest.err conftest.$ac_objext \
12301 conftest$ac_exeext conftest.$ac_ext
12302 LIBS=$ac_check_lib_save_LIBS
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12305 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12306 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12307 HAVE_JPEG=yes
12315 if test "${HAVE_JPEG}" = "yes"; then
12316 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12320 #include <jpeglib.h>
12321 version=JPEG_LIB_VERSION
12323 _ACEOF
12324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12325 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12326 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12328 else
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12330 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12331 HAVE_JPEG=no
12333 rm -f conftest*
12336 if test "${HAVE_JPEG}" = "yes"; then
12337 LIBJPEG=-ljpeg
12342 ### Use -lpng if available, unless `--with-png=no'.
12343 HAVE_PNG=no
12344 LIBPNG=
12345 if test "${HAVE_X11}" = "yes"; then
12346 if test "${with_png}" != "no"; then
12347 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12348 # in /usr/include/libpng.
12349 for ac_header in png.h libpng/png.h
12350 do :
12351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12352 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12353 eval as_val=\$$as_ac_Header
12354 if test "x$as_val" = x""yes; then :
12355 cat >>confdefs.h <<_ACEOF
12356 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12357 _ACEOF
12361 done
12363 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12365 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12366 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 ac_check_lib_save_LIBS=$LIBS
12370 LIBS="-lpng -lz -lm $LIBS"
12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12374 /* Override any GCC internal prototype to avoid an error.
12375 Use char because int might match the return type of a GCC
12376 builtin and then its argument prototype would still apply. */
12377 #ifdef __cplusplus
12378 extern "C"
12379 #endif
12380 char png_get_channels ();
12382 main ()
12384 return png_get_channels ();
12386 return 0;
12388 _ACEOF
12389 if ac_fn_c_try_link "$LINENO"; then :
12390 ac_cv_lib_png_png_get_channels=yes
12391 else
12392 ac_cv_lib_png_png_get_channels=no
12394 rm -f core conftest.err conftest.$ac_objext \
12395 conftest$ac_exeext conftest.$ac_ext
12396 LIBS=$ac_check_lib_save_LIBS
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12399 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12400 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12401 HAVE_PNG=yes
12407 if test "${HAVE_PNG}" = "yes"; then
12409 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12411 LIBPNG="-lpng -lz -lm"
12416 ### Use -ltiff if available, unless `--with-tiff=no'.
12417 HAVE_TIFF=no
12418 LIBTIFF=
12419 if test "${HAVE_X11}" = "yes"; then
12420 if test "${with_tiff}" != "no"; then
12421 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12422 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12423 tifflibs="-lz -lm"
12424 # At least one tiff package requires the jpeg library.
12425 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12427 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12428 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
12430 else
12431 ac_check_lib_save_LIBS=$LIBS
12432 LIBS="-ltiff $tifflibs $LIBS"
12433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h. */
12436 /* Override any GCC internal prototype to avoid an error.
12437 Use char because int might match the return type of a GCC
12438 builtin and then its argument prototype would still apply. */
12439 #ifdef __cplusplus
12440 extern "C"
12441 #endif
12442 char TIFFGetVersion ();
12444 main ()
12446 return TIFFGetVersion ();
12448 return 0;
12450 _ACEOF
12451 if ac_fn_c_try_link "$LINENO"; then :
12452 ac_cv_lib_tiff_TIFFGetVersion=yes
12453 else
12454 ac_cv_lib_tiff_TIFFGetVersion=no
12456 rm -f core conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12458 LIBS=$ac_check_lib_save_LIBS
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12461 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12462 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12463 HAVE_TIFF=yes
12471 if test "${HAVE_TIFF}" = "yes"; then
12473 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12475 LIBTIFF=-ltiff
12480 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12481 HAVE_GIF=no
12482 LIBGIF=
12483 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12484 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12485 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12486 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12487 # Earlier versions can crash Emacs.
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12489 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12490 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12491 $as_echo_n "(cached) " >&6
12492 else
12493 ac_check_lib_save_LIBS=$LIBS
12494 LIBS="-lgif $LIBS"
12495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12498 /* Override any GCC internal prototype to avoid an error.
12499 Use char because int might match the return type of a GCC
12500 builtin and then its argument prototype would still apply. */
12501 #ifdef __cplusplus
12502 extern "C"
12503 #endif
12504 char EGifPutExtensionLast ();
12506 main ()
12508 return EGifPutExtensionLast ();
12510 return 0;
12512 _ACEOF
12513 if ac_fn_c_try_link "$LINENO"; then :
12514 ac_cv_lib_gif_EGifPutExtensionLast=yes
12515 else
12516 ac_cv_lib_gif_EGifPutExtensionLast=no
12518 rm -f core conftest.err conftest.$ac_objext \
12519 conftest$ac_exeext conftest.$ac_ext
12520 LIBS=$ac_check_lib_save_LIBS
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12523 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12524 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12525 HAVE_GIF=yes
12526 else
12527 HAVE_GIF=maybe
12534 if test "$HAVE_GIF" = yes; then
12535 LIBGIF=-lgif
12536 elif test "$HAVE_GIF" = maybe; then
12537 # If gif_lib.h but no libgif, try libungif.
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12539 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12540 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12541 $as_echo_n "(cached) " >&6
12542 else
12543 ac_check_lib_save_LIBS=$LIBS
12544 LIBS="-lungif $LIBS"
12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h. */
12548 /* Override any GCC internal prototype to avoid an error.
12549 Use char because int might match the return type of a GCC
12550 builtin and then its argument prototype would still apply. */
12551 #ifdef __cplusplus
12552 extern "C"
12553 #endif
12554 char EGifPutExtensionLast ();
12556 main ()
12558 return EGifPutExtensionLast ();
12560 return 0;
12562 _ACEOF
12563 if ac_fn_c_try_link "$LINENO"; then :
12564 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12565 else
12566 ac_cv_lib_ungif_EGifPutExtensionLast=no
12568 rm -f core conftest.err conftest.$ac_objext \
12569 conftest$ac_exeext conftest.$ac_ext
12570 LIBS=$ac_check_lib_save_LIBS
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12573 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12574 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12575 HAVE_GIF=yes
12576 else
12577 HAVE_GIF=no
12580 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12583 if test "${HAVE_GIF}" = "yes"; then
12585 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12591 if test "${HAVE_X11}" = "yes"; then
12592 MISSING=""
12593 WITH_NO=""
12594 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12595 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12596 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12597 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12598 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12599 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12600 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12601 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12602 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12603 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12605 if test "X${MISSING}" != X; then
12606 as_fn_error "The following required libraries were not found:
12607 $MISSING
12608 Maybe some development libraries/packages are missing?
12609 If you don't want to link with them give
12610 $WITH_NO
12611 as options to configure" "$LINENO" 5
12615 ### Use -lgpm if available, unless `--with-gpm=no'.
12616 HAVE_GPM=no
12617 LIBGPM=
12618 MOUSE_SUPPORT=
12619 if test "${with_gpm}" != "no"; then
12620 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12621 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12623 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12624 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12625 $as_echo_n "(cached) " >&6
12626 else
12627 ac_check_lib_save_LIBS=$LIBS
12628 LIBS="-lgpm $LIBS"
12629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12630 /* end confdefs.h. */
12632 /* Override any GCC internal prototype to avoid an error.
12633 Use char because int might match the return type of a GCC
12634 builtin and then its argument prototype would still apply. */
12635 #ifdef __cplusplus
12636 extern "C"
12637 #endif
12638 char Gpm_Open ();
12640 main ()
12642 return Gpm_Open ();
12644 return 0;
12646 _ACEOF
12647 if ac_fn_c_try_link "$LINENO"; then :
12648 ac_cv_lib_gpm_Gpm_Open=yes
12649 else
12650 ac_cv_lib_gpm_Gpm_Open=no
12652 rm -f core conftest.err conftest.$ac_objext \
12653 conftest$ac_exeext conftest.$ac_ext
12654 LIBS=$ac_check_lib_save_LIBS
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12657 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12658 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12659 HAVE_GPM=yes
12666 if test "${HAVE_GPM}" = "yes"; then
12668 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12670 LIBGPM=-lgpm
12671 ## May be reset below.
12672 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12677 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12678 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
12680 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12686 C_SWITCH_X_SYSTEM=
12687 ### Use NeXTstep API to implement GUI.
12688 if test "${HAVE_NS}" = "yes"; then
12690 $as_echo "#define HAVE_NS 1" >>confdefs.h
12692 if test "${NS_IMPL_COCOA}" = "yes"; then
12694 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12696 GNU_OBJC_CFLAGS=
12698 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12700 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12702 # See also .m.o rule in Makefile.in */
12703 # FIXME: are all these flags really needed? Document here why. */
12704 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12705 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12707 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12709 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12712 # We also have mouse menus.
12713 HAVE_MENUS=yes
12714 OTHER_FILES=ns-app
12718 ### Use session management (-lSM -lICE) if available
12719 HAVE_X_SM=no
12720 LIBXSM=
12721 if test "${HAVE_X11}" = "yes"; then
12722 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12723 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12725 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12726 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12727 $as_echo_n "(cached) " >&6
12728 else
12729 ac_check_lib_save_LIBS=$LIBS
12730 LIBS="-lSM -lICE $LIBS"
12731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h. */
12734 /* Override any GCC internal prototype to avoid an error.
12735 Use char because int might match the return type of a GCC
12736 builtin and then its argument prototype would still apply. */
12737 #ifdef __cplusplus
12738 extern "C"
12739 #endif
12740 char SmcOpenConnection ();
12742 main ()
12744 return SmcOpenConnection ();
12746 return 0;
12748 _ACEOF
12749 if ac_fn_c_try_link "$LINENO"; then :
12750 ac_cv_lib_SM_SmcOpenConnection=yes
12751 else
12752 ac_cv_lib_SM_SmcOpenConnection=no
12754 rm -f core conftest.err conftest.$ac_objext \
12755 conftest$ac_exeext conftest.$ac_ext
12756 LIBS=$ac_check_lib_save_LIBS
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12759 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12760 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
12761 HAVE_X_SM=yes
12768 if test "${HAVE_X_SM}" = "yes"; then
12770 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12772 LIBXSM="-lSM -lICE"
12773 case "$LIBS" in
12774 *-lSM*) ;;
12775 *) LIBS="$LIBXSM $LIBS" ;;
12776 esac
12781 ### Use libxml (-lxml2) if available
12782 if test "${with_xml2}" != "no"; then
12783 ### I'm not sure what the version number should be, so I just guessed.
12785 succeeded=no
12787 # Extract the first word of "pkg-config", so it can be a program name with args.
12788 set dummy pkg-config; ac_word=$2
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12790 $as_echo_n "checking for $ac_word... " >&6; }
12791 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12792 $as_echo_n "(cached) " >&6
12793 else
12794 case $PKG_CONFIG in
12795 [\\/]* | ?:[\\/]*)
12796 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12800 for as_dir in $PATH
12802 IFS=$as_save_IFS
12803 test -z "$as_dir" && as_dir=.
12804 for ac_exec_ext in '' $ac_executable_extensions; do
12805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12806 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12808 break 2
12810 done
12811 done
12812 IFS=$as_save_IFS
12814 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12816 esac
12818 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12819 if test -n "$PKG_CONFIG"; then
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12821 $as_echo "$PKG_CONFIG" >&6; }
12822 else
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12824 $as_echo "no" >&6; }
12829 if test "$PKG_CONFIG" = "no" ; then
12830 HAVE_LIBXML2=no
12831 else
12832 PKG_CONFIG_MIN_VERSION=0.9.0
12833 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12835 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12837 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12839 $as_echo "yes" >&6; }
12840 succeeded=yes
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12843 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12844 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12846 $as_echo "$LIBXML2_CFLAGS" >&6; }
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12849 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12850 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12852 $as_echo "$LIBXML2_LIBS" >&6; }
12853 else
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12855 $as_echo "no" >&6; }
12856 LIBXML2_CFLAGS=""
12857 LIBXML2_LIBS=""
12858 ## If we have a custom action on failure, don't print errors, but
12859 ## do set a variable so people can do so.
12860 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12866 else
12867 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12868 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12872 if test $succeeded = yes; then
12873 HAVE_LIBXML2=yes
12874 else
12875 HAVE_LIBXML2=no
12878 if test "${HAVE_LIBXML2}" = "yes"; then
12879 LIBS="$LIBXML2_LIBS $LIBS"
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12881 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12882 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12883 $as_echo_n "(cached) " >&6
12884 else
12885 ac_check_lib_save_LIBS=$LIBS
12886 LIBS="-lxml2 $LIBS"
12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h. */
12890 /* Override any GCC internal prototype to avoid an error.
12891 Use char because int might match the return type of a GCC
12892 builtin and then its argument prototype would still apply. */
12893 #ifdef __cplusplus
12894 extern "C"
12895 #endif
12896 char htmlReadMemory ();
12898 main ()
12900 return htmlReadMemory ();
12902 return 0;
12904 _ACEOF
12905 if ac_fn_c_try_link "$LINENO"; then :
12906 ac_cv_lib_xml2_htmlReadMemory=yes
12907 else
12908 ac_cv_lib_xml2_htmlReadMemory=no
12910 rm -f core conftest.err conftest.$ac_objext \
12911 conftest$ac_exeext conftest.$ac_ext
12912 LIBS=$ac_check_lib_save_LIBS
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12915 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12916 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
12917 HAVE_LIBXML2=yes
12918 else
12919 HAVE_LIBXML2=no
12922 if test "${HAVE_LIBXML2}" = "yes"; then
12924 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12926 else
12927 LIBXML2_LIBS=""
12928 LIBXML2_CFLAGS=""
12935 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12937 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12938 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12939 $as_echo_n "(cached) " >&6
12940 else
12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12943 #include <netdb.h>
12945 main ()
12947 return h_errno;
12949 return 0;
12951 _ACEOF
12952 if ac_fn_c_try_link "$LINENO"; then :
12953 emacs_cv_netdb_declares_h_errno=yes
12954 else
12955 emacs_cv_netdb_declares_h_errno=no
12957 rm -f core conftest.err conftest.$ac_objext \
12958 conftest$ac_exeext conftest.$ac_ext
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12961 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12962 if test $emacs_cv_netdb_declares_h_errno = yes; then
12964 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12968 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12969 # for constant arguments. Useless!
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12971 $as_echo_n "checking for working alloca.h... " >&6; }
12972 if test "${ac_cv_working_alloca_h+set}" = set; then :
12973 $as_echo_n "(cached) " >&6
12974 else
12975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12976 /* end confdefs.h. */
12977 #include <alloca.h>
12979 main ()
12981 char *p = (char *) alloca (2 * sizeof (int));
12982 if (p) return 0;
12984 return 0;
12986 _ACEOF
12987 if ac_fn_c_try_link "$LINENO"; then :
12988 ac_cv_working_alloca_h=yes
12989 else
12990 ac_cv_working_alloca_h=no
12992 rm -f core conftest.err conftest.$ac_objext \
12993 conftest$ac_exeext conftest.$ac_ext
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12996 $as_echo "$ac_cv_working_alloca_h" >&6; }
12997 if test $ac_cv_working_alloca_h = yes; then
12999 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13004 $as_echo_n "checking for alloca... " >&6; }
13005 if test "${ac_cv_func_alloca_works+set}" = set; then :
13006 $as_echo_n "(cached) " >&6
13007 else
13008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13009 /* end confdefs.h. */
13010 #ifdef __GNUC__
13011 # define alloca __builtin_alloca
13012 #else
13013 # ifdef _MSC_VER
13014 # include <malloc.h>
13015 # define alloca _alloca
13016 # else
13017 # ifdef HAVE_ALLOCA_H
13018 # include <alloca.h>
13019 # else
13020 # ifdef _AIX
13021 #pragma alloca
13022 # else
13023 # ifndef alloca /* predefined by HP cc +Olibcalls */
13024 char *alloca ();
13025 # endif
13026 # endif
13027 # endif
13028 # endif
13029 #endif
13032 main ()
13034 char *p = (char *) alloca (1);
13035 if (p) return 0;
13037 return 0;
13039 _ACEOF
13040 if ac_fn_c_try_link "$LINENO"; then :
13041 ac_cv_func_alloca_works=yes
13042 else
13043 ac_cv_func_alloca_works=no
13045 rm -f core conftest.err conftest.$ac_objext \
13046 conftest$ac_exeext conftest.$ac_ext
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13049 $as_echo "$ac_cv_func_alloca_works" >&6; }
13051 if test $ac_cv_func_alloca_works = yes; then
13053 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13055 else
13056 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13057 # that cause trouble. Some versions do not even contain alloca or
13058 # contain a buggy version. If you still want to use their alloca,
13059 # use ar to extract alloca.o from them instead of compiling alloca.c.
13061 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13063 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13067 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13068 if test "${ac_cv_os_cray+set}" = set; then :
13069 $as_echo_n "(cached) " >&6
13070 else
13071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13072 /* end confdefs.h. */
13073 #if defined CRAY && ! defined CRAY2
13074 webecray
13075 #else
13076 wenotbecray
13077 #endif
13079 _ACEOF
13080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13081 $EGREP "webecray" >/dev/null 2>&1; then :
13082 ac_cv_os_cray=yes
13083 else
13084 ac_cv_os_cray=no
13086 rm -f conftest*
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13090 $as_echo "$ac_cv_os_cray" >&6; }
13091 if test $ac_cv_os_cray = yes; then
13092 for ac_func in _getb67 GETB67 getb67; do
13093 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13094 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13095 eval as_val=\$$as_ac_var
13096 if test "x$as_val" = x""yes; then :
13098 cat >>confdefs.h <<_ACEOF
13099 #define CRAY_STACKSEG_END $ac_func
13100 _ACEOF
13102 break
13105 done
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13109 $as_echo_n "checking stack direction for C alloca... " >&6; }
13110 if test "${ac_cv_c_stack_direction+set}" = set; then :
13111 $as_echo_n "(cached) " >&6
13112 else
13113 if test "$cross_compiling" = yes; then :
13114 ac_cv_c_stack_direction=0
13115 else
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h. */
13118 $ac_includes_default
13120 find_stack_direction ()
13122 static char *addr = 0;
13123 auto char dummy;
13124 if (addr == 0)
13126 addr = &dummy;
13127 return find_stack_direction ();
13129 else
13130 return (&dummy > addr) ? 1 : -1;
13134 main ()
13136 return find_stack_direction () < 0;
13138 _ACEOF
13139 if ac_fn_c_try_run "$LINENO"; then :
13140 ac_cv_c_stack_direction=1
13141 else
13142 ac_cv_c_stack_direction=-1
13144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13145 conftest.$ac_objext conftest.beam conftest.$ac_ext
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13150 $as_echo "$ac_cv_c_stack_direction" >&6; }
13151 cat >>confdefs.h <<_ACEOF
13152 #define STACK_DIRECTION $ac_cv_c_stack_direction
13153 _ACEOF
13159 if test x"$ac_cv_func_alloca_works" != xyes; then
13160 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
13163 # fmod, logb, and frexp are found in -lm on most systems.
13164 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13166 $as_echo_n "checking for sqrt in -lm... " >&6; }
13167 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13168 $as_echo_n "(cached) " >&6
13169 else
13170 ac_check_lib_save_LIBS=$LIBS
13171 LIBS="-lm $LIBS"
13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173 /* end confdefs.h. */
13175 /* Override any GCC internal prototype to avoid an error.
13176 Use char because int might match the return type of a GCC
13177 builtin and then its argument prototype would still apply. */
13178 #ifdef __cplusplus
13179 extern "C"
13180 #endif
13181 char sqrt ();
13183 main ()
13185 return sqrt ();
13187 return 0;
13189 _ACEOF
13190 if ac_fn_c_try_link "$LINENO"; then :
13191 ac_cv_lib_m_sqrt=yes
13192 else
13193 ac_cv_lib_m_sqrt=no
13195 rm -f core conftest.err conftest.$ac_objext \
13196 conftest$ac_exeext conftest.$ac_ext
13197 LIBS=$ac_check_lib_save_LIBS
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13200 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13201 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13202 cat >>confdefs.h <<_ACEOF
13203 #define HAVE_LIBM 1
13204 _ACEOF
13206 LIBS="-lm $LIBS"
13211 # Check for mail-locking functions in a "mail" library. Probably this should
13212 # have the same check as for liblockfile below.
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13214 $as_echo_n "checking for maillock in -lmail... " >&6; }
13215 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13216 $as_echo_n "(cached) " >&6
13217 else
13218 ac_check_lib_save_LIBS=$LIBS
13219 LIBS="-lmail $LIBS"
13220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h. */
13223 /* Override any GCC internal prototype to avoid an error.
13224 Use char because int might match the return type of a GCC
13225 builtin and then its argument prototype would still apply. */
13226 #ifdef __cplusplus
13227 extern "C"
13228 #endif
13229 char maillock ();
13231 main ()
13233 return maillock ();
13235 return 0;
13237 _ACEOF
13238 if ac_fn_c_try_link "$LINENO"; then :
13239 ac_cv_lib_mail_maillock=yes
13240 else
13241 ac_cv_lib_mail_maillock=no
13243 rm -f core conftest.err conftest.$ac_objext \
13244 conftest$ac_exeext conftest.$ac_ext
13245 LIBS=$ac_check_lib_save_LIBS
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13248 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13249 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13250 have_mail=yes
13251 else
13252 have_mail=no
13255 if test $have_mail = yes; then
13256 LIBS_MAIL=-lmail
13257 LIBS="$LIBS_MAIL $LIBS"
13259 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13261 else
13262 LIBS_MAIL=
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13265 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13266 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13267 $as_echo_n "(cached) " >&6
13268 else
13269 ac_check_lib_save_LIBS=$LIBS
13270 LIBS="-llockfile $LIBS"
13271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h. */
13274 /* Override any GCC internal prototype to avoid an error.
13275 Use char because int might match the return type of a GCC
13276 builtin and then its argument prototype would still apply. */
13277 #ifdef __cplusplus
13278 extern "C"
13279 #endif
13280 char maillock ();
13282 main ()
13284 return maillock ();
13286 return 0;
13288 _ACEOF
13289 if ac_fn_c_try_link "$LINENO"; then :
13290 ac_cv_lib_lockfile_maillock=yes
13291 else
13292 ac_cv_lib_lockfile_maillock=no
13294 rm -f core conftest.err conftest.$ac_objext \
13295 conftest$ac_exeext conftest.$ac_ext
13296 LIBS=$ac_check_lib_save_LIBS
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13299 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13300 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13301 have_lockfile=yes
13302 else
13303 have_lockfile=no
13306 if test $have_lockfile = yes; then
13307 LIBS_MAIL=-llockfile
13308 LIBS="$LIBS_MAIL $LIBS"
13310 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13312 else
13313 # If we have the shared liblockfile, assume we must use it for mail
13314 # locking (e.g. Debian). If we couldn't link against liblockfile
13315 # (no liblockfile.a installed), ensure that we don't need to.
13316 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13317 set dummy liblockfile.so; ac_word=$2
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13319 $as_echo_n "checking for $ac_word... " >&6; }
13320 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13321 $as_echo_n "(cached) " >&6
13322 else
13323 if test -n "$liblockfile"; then
13324 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13325 else
13326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13327 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13328 for as_dir in $as_dummy
13330 IFS=$as_save_IFS
13331 test -z "$as_dir" && as_dir=.
13332 for ac_exec_ext in '' $ac_executable_extensions; do
13333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13334 ac_cv_prog_liblockfile="yes"
13335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13336 break 2
13338 done
13339 done
13340 IFS=$as_save_IFS
13342 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13345 liblockfile=$ac_cv_prog_liblockfile
13346 if test -n "$liblockfile"; then
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13348 $as_echo "$liblockfile" >&6; }
13349 else
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13351 $as_echo "no" >&6; }
13355 if test $ac_cv_prog_liblockfile = yes; then
13356 as_fn_error "Shared liblockfile found but can't link against it.
13357 This probably means that movemail could lose mail.
13358 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13361 for ac_func in touchlock
13362 do :
13363 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
13364 if test "x$ac_cv_func_touchlock" = x""yes; then :
13365 cat >>confdefs.h <<_ACEOF
13366 #define HAVE_TOUCHLOCK 1
13367 _ACEOF
13370 done
13372 for ac_header in maillock.h
13373 do :
13374 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13375 if test "x$ac_cv_header_maillock_h" = x""yes; then :
13376 cat >>confdefs.h <<_ACEOF
13377 #define HAVE_MAILLOCK_H 1
13378 _ACEOF
13382 done
13386 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13387 ## interlock access to the mail spool. The alternative is a lock file named
13388 ## /usr/spool/mail/$USER.lock.
13389 mail_lock=no
13390 case "$opsys" in
13391 aix4-2) mail_lock="lockf" ;;
13393 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13395 ## On GNU/Linux systems, both methods are used by various mail programs.
13396 ## I assume most people are using newer mailers that have heard of flock.
13397 ## Change this if you need to.
13398 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13399 ## configure gets the right answers, and that means *NOT* using flock.
13400 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13401 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13402 ## Debian maintainer hasn't provided a clean fix for Emacs.
13403 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13404 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13405 ## correct logic. -- fx
13406 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13407 ## liblockfile is a Free Software replacement for libmail, used on
13408 ## Debian systems and elsewhere. -rfr.
13409 gnu-*)
13410 mail_lock="flock"
13411 if test $have_mail = yes || test $have_lockfile = yes; then
13412 test $ac_cv_header_maillock_h = yes && mail_lock=no
13415 esac
13417 BLESSMAIL_TARGET=
13418 case "$mail_lock" in
13419 flock)
13420 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13423 lockf)
13424 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13427 *) BLESSMAIL_TARGET="need-blessmail" ;;
13428 esac
13432 for ac_func in gethostname getdomainname dup2 \
13433 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13434 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13435 strerror fpathconf select euidaccess getpagesize tzset setlocale \
13436 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13437 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13438 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13439 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13440 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13441 cfmakeraw cfsetspeed isnan copysign __executable_start
13442 do :
13443 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13444 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13445 eval as_val=\$$as_ac_var
13446 if test "x$as_val" = x""yes; then :
13447 cat >>confdefs.h <<_ACEOF
13448 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13449 _ACEOF
13452 done
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13456 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13457 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13458 $as_echo_n "(cached) " >&6
13459 else
13460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h. */
13464 main ()
13466 __builtin_unwind_init ();
13468 return 0;
13470 _ACEOF
13471 if ac_fn_c_try_link "$LINENO"; then :
13472 emacs_cv_func___builtin_unwind_init=yes
13473 else
13474 emacs_cv_func___builtin_unwind_init=no
13476 rm -f core conftest.err conftest.$ac_objext \
13477 conftest$ac_exeext conftest.$ac_ext
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13480 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13481 if test $emacs_cv_func___builtin_unwind_init = yes; then
13483 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13487 for ac_header in sys/un.h
13488 do :
13489 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13490 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
13491 cat >>confdefs.h <<_ACEOF
13492 #define HAVE_SYS_UN_H 1
13493 _ACEOF
13497 done
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13501 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13502 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13503 $as_echo_n "(cached) " >&6
13504 else
13505 while :; do
13506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13507 /* end confdefs.h. */
13508 #include <sys/types.h> /* for off_t */
13509 #include <stdio.h>
13511 main ()
13513 int (*fp) (FILE *, off_t, int) = fseeko;
13514 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13516 return 0;
13518 _ACEOF
13519 if ac_fn_c_try_link "$LINENO"; then :
13520 ac_cv_sys_largefile_source=no; break
13522 rm -f core conftest.err conftest.$ac_objext \
13523 conftest$ac_exeext conftest.$ac_ext
13524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h. */
13526 #define _LARGEFILE_SOURCE 1
13527 #include <sys/types.h> /* for off_t */
13528 #include <stdio.h>
13530 main ()
13532 int (*fp) (FILE *, off_t, int) = fseeko;
13533 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13535 return 0;
13537 _ACEOF
13538 if ac_fn_c_try_link "$LINENO"; then :
13539 ac_cv_sys_largefile_source=1; break
13541 rm -f core conftest.err conftest.$ac_objext \
13542 conftest$ac_exeext conftest.$ac_ext
13543 ac_cv_sys_largefile_source=unknown
13544 break
13545 done
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13548 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13549 case $ac_cv_sys_largefile_source in #(
13550 no | unknown) ;;
13552 cat >>confdefs.h <<_ACEOF
13553 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13554 _ACEOF
13556 esac
13557 rm -rf conftest*
13559 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13560 # in glibc 2.1.3, but that breaks too many other things.
13561 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13562 if test $ac_cv_sys_largefile_source != unknown; then
13564 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13570 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13571 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13572 $as_echo_n "(cached) " >&6
13573 else
13574 # Use it with a single arg.
13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h. */
13577 $ac_includes_default
13579 main ()
13581 getpgrp (0);
13583 return 0;
13585 _ACEOF
13586 if ac_fn_c_try_compile "$LINENO"; then :
13587 ac_cv_func_getpgrp_void=no
13588 else
13589 ac_cv_func_getpgrp_void=yes
13591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13595 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13596 if test $ac_cv_func_getpgrp_void = yes; then
13598 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13603 # Configure gnulib.
13614 LIBC_FATAL_STDERR_=1
13615 export LIBC_FATAL_STDERR_
13620 for ac_func in $ac_func_list
13621 do :
13622 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13623 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13624 eval as_val=\$$as_ac_var
13625 if test "x$as_val" = x""yes; then :
13626 cat >>confdefs.h <<_ACEOF
13627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13628 _ACEOF
13631 done
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13637 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13638 if test "${ac_cv_c_bigendian+set}" = set; then :
13639 $as_echo_n "(cached) " >&6
13640 else
13641 ac_cv_c_bigendian=unknown
13642 # See if we're dealing with a universal compiler.
13643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h. */
13645 #ifndef __APPLE_CC__
13646 not a universal capable compiler
13647 #endif
13648 typedef int dummy;
13650 _ACEOF
13651 if ac_fn_c_try_compile "$LINENO"; then :
13653 # Check for potential -arch flags. It is not universal unless
13654 # there are at least two -arch flags with different values.
13655 ac_arch=
13656 ac_prev=
13657 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13658 if test -n "$ac_prev"; then
13659 case $ac_word in
13660 i?86 | x86_64 | ppc | ppc64)
13661 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13662 ac_arch=$ac_word
13663 else
13664 ac_cv_c_bigendian=universal
13665 break
13668 esac
13669 ac_prev=
13670 elif test "x$ac_word" = "x-arch"; then
13671 ac_prev=arch
13673 done
13675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13676 if test $ac_cv_c_bigendian = unknown; then
13677 # See if sys/param.h defines the BYTE_ORDER macro.
13678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13679 /* end confdefs.h. */
13680 #include <sys/types.h>
13681 #include <sys/param.h>
13684 main ()
13686 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13687 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13688 && LITTLE_ENDIAN)
13689 bogus endian macros
13690 #endif
13693 return 0;
13695 _ACEOF
13696 if ac_fn_c_try_compile "$LINENO"; then :
13697 # It does; now see whether it defined to BIG_ENDIAN or not.
13698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13699 /* end confdefs.h. */
13700 #include <sys/types.h>
13701 #include <sys/param.h>
13704 main ()
13706 #if BYTE_ORDER != BIG_ENDIAN
13707 not big endian
13708 #endif
13711 return 0;
13713 _ACEOF
13714 if ac_fn_c_try_compile "$LINENO"; then :
13715 ac_cv_c_bigendian=yes
13716 else
13717 ac_cv_c_bigendian=no
13719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13723 if test $ac_cv_c_bigendian = unknown; then
13724 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13726 /* end confdefs.h. */
13727 #include <limits.h>
13730 main ()
13732 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13733 bogus endian macros
13734 #endif
13737 return 0;
13739 _ACEOF
13740 if ac_fn_c_try_compile "$LINENO"; then :
13741 # It does; now see whether it defined to _BIG_ENDIAN or not.
13742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h. */
13744 #include <limits.h>
13747 main ()
13749 #ifndef _BIG_ENDIAN
13750 not big endian
13751 #endif
13754 return 0;
13756 _ACEOF
13757 if ac_fn_c_try_compile "$LINENO"; then :
13758 ac_cv_c_bigendian=yes
13759 else
13760 ac_cv_c_bigendian=no
13762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13766 if test $ac_cv_c_bigendian = unknown; then
13767 # Compile a test program.
13768 if test "$cross_compiling" = yes; then :
13769 # Try to guess by grepping values from an object file.
13770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771 /* end confdefs.h. */
13772 short int ascii_mm[] =
13773 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13774 short int ascii_ii[] =
13775 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13776 int use_ascii (int i) {
13777 return ascii_mm[i] + ascii_ii[i];
13779 short int ebcdic_ii[] =
13780 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13781 short int ebcdic_mm[] =
13782 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13783 int use_ebcdic (int i) {
13784 return ebcdic_mm[i] + ebcdic_ii[i];
13786 extern int foo;
13789 main ()
13791 return use_ascii (foo) == use_ebcdic (foo);
13793 return 0;
13795 _ACEOF
13796 if ac_fn_c_try_compile "$LINENO"; then :
13797 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13798 ac_cv_c_bigendian=yes
13800 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13801 if test "$ac_cv_c_bigendian" = unknown; then
13802 ac_cv_c_bigendian=no
13803 else
13804 # finding both strings is unlikely to happen, but who knows?
13805 ac_cv_c_bigendian=unknown
13809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13810 else
13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13813 $ac_includes_default
13815 main ()
13818 /* Are we little or big endian? From Harbison&Steele. */
13819 union
13821 long int l;
13822 char c[sizeof (long int)];
13823 } u;
13824 u.l = 1;
13825 return u.c[sizeof (long int) - 1] == 1;
13828 return 0;
13830 _ACEOF
13831 if ac_fn_c_try_run "$LINENO"; then :
13832 ac_cv_c_bigendian=no
13833 else
13834 ac_cv_c_bigendian=yes
13836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13837 conftest.$ac_objext conftest.beam conftest.$ac_ext
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13843 $as_echo "$ac_cv_c_bigendian" >&6; }
13844 case $ac_cv_c_bigendian in #(
13845 yes)
13846 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13847 ;; #(
13849 ;; #(
13850 universal)
13852 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13854 ;; #(
13856 as_fn_error "unknown endianness
13857 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13858 esac
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13862 $as_echo_n "checking for inline... " >&6; }
13863 if test "${ac_cv_c_inline+set}" = set; then :
13864 $as_echo_n "(cached) " >&6
13865 else
13866 ac_cv_c_inline=no
13867 for ac_kw in inline __inline__ __inline; do
13868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13869 /* end confdefs.h. */
13870 #ifndef __cplusplus
13871 typedef int foo_t;
13872 static $ac_kw foo_t static_foo () {return 0; }
13873 $ac_kw foo_t foo () {return 0; }
13874 #endif
13876 _ACEOF
13877 if ac_fn_c_try_compile "$LINENO"; then :
13878 ac_cv_c_inline=$ac_kw
13880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13881 test "$ac_cv_c_inline" != no && break
13882 done
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13886 $as_echo "$ac_cv_c_inline" >&6; }
13888 case $ac_cv_c_inline in
13889 inline | yes) ;;
13891 case $ac_cv_c_inline in
13892 no) ac_val=;;
13893 *) ac_val=$ac_cv_c_inline;;
13894 esac
13895 cat >>confdefs.h <<_ACEOF
13896 #ifndef __cplusplus
13897 #define inline $ac_val
13898 #endif
13899 _ACEOF
13901 esac
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13905 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13906 if test "${gl_cv_func_c99_strtold+set}" = set; then :
13907 $as_echo_n "(cached) " >&6
13908 else
13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910 /* end confdefs.h. */
13911 /* On HP-UX before 11.23, strtold returns a struct instead of
13912 long double. Reject implementations like that, by requiring
13913 compatibility with the C99 prototype. */
13914 #include <stdlib.h>
13915 static long double (*p) (char const *, char **) = strtold;
13916 static long double
13917 test (char const *nptr, char **endptr)
13919 long double r;
13920 r = strtold (nptr, endptr);
13921 return r;
13924 main ()
13926 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13928 return 0;
13930 _ACEOF
13931 if ac_fn_c_try_link "$LINENO"; then :
13932 gl_cv_func_c99_strtold=yes
13933 else
13934 gl_cv_func_c99_strtold=no
13936 rm -f core conftest.err conftest.$ac_objext \
13937 conftest$ac_exeext conftest.$ac_ext
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13940 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13941 if test $gl_cv_func_c99_strtold = yes; then
13943 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13948 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
13949 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
13950 $as_echo_n "(cached) " >&6
13951 else
13952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13953 /* end confdefs.h. */
13955 #include <sys/types.h>
13956 #include <sys/stat.h>
13958 main ()
13960 struct stat s; s.st_dm_mode;
13962 return 0;
13964 _ACEOF
13965 if ac_fn_c_try_compile "$LINENO"; then :
13966 ac_cv_struct_st_dm_mode=yes
13967 else
13968 ac_cv_struct_st_dm_mode=no
13970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13973 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13975 if test $ac_cv_struct_st_dm_mode = yes; then
13977 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13982 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
13983 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
13984 ac_have_decl=1
13985 else
13986 ac_have_decl=0
13989 cat >>confdefs.h <<_ACEOF
13990 #define HAVE_DECL_STRMODE $ac_have_decl
13991 _ACEOF
13994 GNULIB__EXIT=0;
13995 GNULIB_ATOLL=0;
13996 GNULIB_CALLOC_POSIX=0;
13997 GNULIB_CANONICALIZE_FILE_NAME=0;
13998 GNULIB_GETLOADAVG=0;
13999 GNULIB_GETSUBOPT=0;
14000 GNULIB_GRANTPT=0;
14001 GNULIB_MALLOC_POSIX=0;
14002 GNULIB_MBTOWC=0;
14003 GNULIB_MKDTEMP=0;
14004 GNULIB_MKOSTEMP=0;
14005 GNULIB_MKOSTEMPS=0;
14006 GNULIB_MKSTEMP=0;
14007 GNULIB_MKSTEMPS=0;
14008 GNULIB_PTSNAME=0;
14009 GNULIB_PUTENV=0;
14010 GNULIB_RANDOM_R=0;
14011 GNULIB_REALLOC_POSIX=0;
14012 GNULIB_REALPATH=0;
14013 GNULIB_RPMATCH=0;
14014 GNULIB_SETENV=0;
14015 GNULIB_STRTOD=0;
14016 GNULIB_STRTOLL=0;
14017 GNULIB_STRTOULL=0;
14018 GNULIB_SYSTEM_POSIX=0;
14019 GNULIB_UNLOCKPT=0;
14020 GNULIB_UNSETENV=0;
14021 GNULIB_WCTOMB=0;
14022 HAVE__EXIT=1;
14023 HAVE_ATOLL=1;
14024 HAVE_CANONICALIZE_FILE_NAME=1;
14025 HAVE_DECL_GETLOADAVG=1;
14026 HAVE_GETSUBOPT=1;
14027 HAVE_GRANTPT=1;
14028 HAVE_MKDTEMP=1;
14029 HAVE_MKOSTEMP=1;
14030 HAVE_MKOSTEMPS=1;
14031 HAVE_MKSTEMP=1;
14032 HAVE_MKSTEMPS=1;
14033 HAVE_PTSNAME=1;
14034 HAVE_RANDOM_H=1;
14035 HAVE_RANDOM_R=1;
14036 HAVE_REALPATH=1;
14037 HAVE_RPMATCH=1;
14038 HAVE_SETENV=1;
14039 HAVE_DECL_SETENV=1;
14040 HAVE_STRTOD=1;
14041 HAVE_STRTOLL=1;
14042 HAVE_STRTOULL=1;
14043 HAVE_STRUCT_RANDOM_DATA=1;
14044 HAVE_SYS_LOADAVG_H=0;
14045 HAVE_UNLOCKPT=1;
14046 HAVE_DECL_UNSETENV=1;
14047 REPLACE_CALLOC=0;
14048 REPLACE_CANONICALIZE_FILE_NAME=0;
14049 REPLACE_MALLOC=0;
14050 REPLACE_MBTOWC=0;
14051 REPLACE_MKSTEMP=0;
14052 REPLACE_PUTENV=0;
14053 REPLACE_REALLOC=0;
14054 REPLACE_REALPATH=0;
14055 REPLACE_SETENV=0;
14056 REPLACE_STRTOD=0;
14057 REPLACE_UNSETENV=0;
14058 REPLACE_WCTOMB=0;
14061 GNULIB_CHOWN=0;
14062 GNULIB_CLOSE=0;
14063 GNULIB_DUP2=0;
14064 GNULIB_DUP3=0;
14065 GNULIB_ENVIRON=0;
14066 GNULIB_EUIDACCESS=0;
14067 GNULIB_FACCESSAT=0;
14068 GNULIB_FCHDIR=0;
14069 GNULIB_FCHOWNAT=0;
14070 GNULIB_FSYNC=0;
14071 GNULIB_FTRUNCATE=0;
14072 GNULIB_GETCWD=0;
14073 GNULIB_GETDOMAINNAME=0;
14074 GNULIB_GETDTABLESIZE=0;
14075 GNULIB_GETGROUPS=0;
14076 GNULIB_GETHOSTNAME=0;
14077 GNULIB_GETLOGIN=0;
14078 GNULIB_GETLOGIN_R=0;
14079 GNULIB_GETPAGESIZE=0;
14080 GNULIB_GETUSERSHELL=0;
14081 GNULIB_LCHOWN=0;
14082 GNULIB_LINK=0;
14083 GNULIB_LINKAT=0;
14084 GNULIB_LSEEK=0;
14085 GNULIB_PIPE=0;
14086 GNULIB_PIPE2=0;
14087 GNULIB_PREAD=0;
14088 GNULIB_PWRITE=0;
14089 GNULIB_READ=0;
14090 GNULIB_READLINK=0;
14091 GNULIB_READLINKAT=0;
14092 GNULIB_RMDIR=0;
14093 GNULIB_SLEEP=0;
14094 GNULIB_SYMLINK=0;
14095 GNULIB_SYMLINKAT=0;
14096 GNULIB_TTYNAME_R=0;
14097 GNULIB_UNISTD_H_GETOPT=0;
14098 GNULIB_UNISTD_H_NONBLOCKING=0;
14099 GNULIB_UNISTD_H_SIGPIPE=0;
14100 GNULIB_UNLINK=0;
14101 GNULIB_UNLINKAT=0;
14102 GNULIB_USLEEP=0;
14103 GNULIB_WRITE=0;
14104 HAVE_CHOWN=1;
14105 HAVE_DUP2=1;
14106 HAVE_DUP3=1;
14107 HAVE_EUIDACCESS=1;
14108 HAVE_FACCESSAT=1;
14109 HAVE_FCHDIR=1;
14110 HAVE_FCHOWNAT=1;
14111 HAVE_FSYNC=1;
14112 HAVE_FTRUNCATE=1;
14113 HAVE_GETDTABLESIZE=1;
14114 HAVE_GETGROUPS=1;
14115 HAVE_GETHOSTNAME=1;
14116 HAVE_GETLOGIN=1;
14117 HAVE_GETPAGESIZE=1;
14118 HAVE_LCHOWN=1;
14119 HAVE_LINK=1;
14120 HAVE_LINKAT=1;
14121 HAVE_PIPE=1;
14122 HAVE_PIPE2=1;
14123 HAVE_PREAD=1;
14124 HAVE_PWRITE=1;
14125 HAVE_READLINK=1;
14126 HAVE_READLINKAT=1;
14127 HAVE_SLEEP=1;
14128 HAVE_SYMLINK=1;
14129 HAVE_SYMLINKAT=1;
14130 HAVE_UNLINKAT=1;
14131 HAVE_USLEEP=1;
14132 HAVE_DECL_ENVIRON=1;
14133 HAVE_DECL_FCHDIR=1;
14134 HAVE_DECL_GETDOMAINNAME=1;
14135 HAVE_DECL_GETLOGIN_R=1;
14136 HAVE_DECL_GETPAGESIZE=1;
14137 HAVE_DECL_GETUSERSHELL=1;
14138 HAVE_DECL_TTYNAME_R=1;
14139 HAVE_OS_H=0;
14140 HAVE_SYS_PARAM_H=0;
14141 REPLACE_CHOWN=0;
14142 REPLACE_CLOSE=0;
14143 REPLACE_DUP=0;
14144 REPLACE_DUP2=0;
14145 REPLACE_FCHOWNAT=0;
14146 REPLACE_GETCWD=0;
14147 REPLACE_GETDOMAINNAME=0;
14148 REPLACE_GETLOGIN_R=0;
14149 REPLACE_GETGROUPS=0;
14150 REPLACE_GETPAGESIZE=0;
14151 REPLACE_LCHOWN=0;
14152 REPLACE_LINK=0;
14153 REPLACE_LINKAT=0;
14154 REPLACE_LSEEK=0;
14155 REPLACE_PREAD=0;
14156 REPLACE_PWRITE=0;
14157 REPLACE_READ=0;
14158 REPLACE_READLINK=0;
14159 REPLACE_RMDIR=0;
14160 REPLACE_SLEEP=0;
14161 REPLACE_SYMLINK=0;
14162 REPLACE_TTYNAME_R=0;
14163 REPLACE_UNLINK=0;
14164 REPLACE_UNLINKAT=0;
14165 REPLACE_USLEEP=0;
14166 REPLACE_WRITE=0;
14167 UNISTD_H_HAVE_WINSOCK2_H=0;
14168 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14174 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
14175 if test "${gl_cv_have_include_next+set}" = set; then :
14176 $as_echo_n "(cached) " >&6
14177 else
14178 rm -rf conftestd1a conftestd1b conftestd2
14179 mkdir conftestd1a conftestd1b conftestd2
14180 cat <<EOF > conftestd1a/conftest.h
14181 #define DEFINED_IN_CONFTESTD1
14182 #include_next <conftest.h>
14183 #ifdef DEFINED_IN_CONFTESTD2
14184 int foo;
14185 #else
14186 #error "include_next doesn't work"
14187 #endif
14189 cat <<EOF > conftestd1b/conftest.h
14190 #define DEFINED_IN_CONFTESTD1
14191 #include <stdio.h>
14192 #include_next <conftest.h>
14193 #ifdef DEFINED_IN_CONFTESTD2
14194 int foo;
14195 #else
14196 #error "include_next doesn't work"
14197 #endif
14199 cat <<EOF > conftestd2/conftest.h
14200 #ifndef DEFINED_IN_CONFTESTD1
14201 #error "include_next test doesn't work"
14202 #endif
14203 #define DEFINED_IN_CONFTESTD2
14205 gl_save_CPPFLAGS="$CPPFLAGS"
14206 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
14207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14208 /* end confdefs.h. */
14209 #include <conftest.h>
14210 _ACEOF
14211 if ac_fn_c_try_compile "$LINENO"; then :
14212 gl_cv_have_include_next=yes
14213 else
14214 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216 /* end confdefs.h. */
14217 #include <conftest.h>
14218 _ACEOF
14219 if ac_fn_c_try_compile "$LINENO"; then :
14220 gl_cv_have_include_next=buggy
14221 else
14222 gl_cv_have_include_next=no
14224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14228 CPPFLAGS="$gl_save_CPPFLAGS"
14229 rm -rf conftestd1a conftestd1b conftestd2
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14233 $as_echo "$gl_cv_have_include_next" >&6; }
14234 PRAGMA_SYSTEM_HEADER=
14235 if test $gl_cv_have_include_next = yes; then
14236 INCLUDE_NEXT=include_next
14237 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14238 if test -n "$GCC"; then
14239 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
14241 else
14242 if test $gl_cv_have_include_next = buggy; then
14243 INCLUDE_NEXT=include
14244 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14245 else
14246 INCLUDE_NEXT=include
14247 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14254 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14255 if test "${gl_cv_pragma_columns+set}" = set; then :
14256 $as_echo_n "(cached) " >&6
14257 else
14258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14259 /* end confdefs.h. */
14261 #ifdef __TANDEM
14262 choke me
14263 #endif
14265 _ACEOF
14266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14267 $EGREP "choke me" >/dev/null 2>&1; then :
14268 gl_cv_pragma_columns=yes
14269 else
14270 gl_cv_pragma_columns=no
14272 rm -f conftest*
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14277 $as_echo "$gl_cv_pragma_columns" >&6; }
14278 if test $gl_cv_pragma_columns = yes; then
14279 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
14280 else
14281 PRAGMA_COLUMNS=
14300 if test $gl_cv_have_include_next = yes; then
14301 gl_cv_next_getopt_h='<'getopt.h'>'
14302 else
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14304 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14305 if test "${gl_cv_next_getopt_h+set}" = set; then :
14306 $as_echo_n "(cached) " >&6
14307 else
14309 if test $ac_cv_header_getopt_h = yes; then
14312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14313 /* end confdefs.h. */
14314 #include <getopt.h>
14316 _ACEOF
14317 case "$host_os" in
14318 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14319 *) gl_absname_cpp="$ac_cpp" ;;
14320 esac
14321 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14322 sed -n '\#/getopt.h#{
14323 s#.*"\(.*/getopt.h\)".*#\1#
14324 s#^/[^/]#//&#
14327 }'`'"'
14328 else
14329 gl_cv_next_getopt_h='<'getopt.h'>'
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14335 $as_echo "$gl_cv_next_getopt_h" >&6; }
14337 NEXT_GETOPT_H=$gl_cv_next_getopt_h
14339 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14340 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14341 gl_next_as_first_directive='<'getopt.h'>'
14342 else
14343 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14344 gl_next_as_first_directive=$gl_cv_next_getopt_h
14346 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
14351 if test $ac_cv_header_getopt_h = yes; then
14352 HAVE_GETOPT_H=1
14353 else
14354 HAVE_GETOPT_H=0
14358 gl_replace_getopt=
14360 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14361 for ac_header in getopt.h
14362 do :
14363 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14364 if test "x$ac_cv_header_getopt_h" = x""yes; then :
14365 cat >>confdefs.h <<_ACEOF
14366 #define HAVE_GETOPT_H 1
14367 _ACEOF
14369 else
14370 gl_replace_getopt=yes
14373 done
14377 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14378 for ac_func in getopt_long_only
14379 do :
14380 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14381 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
14382 cat >>confdefs.h <<_ACEOF
14383 #define HAVE_GETOPT_LONG_ONLY 1
14384 _ACEOF
14386 else
14387 gl_replace_getopt=yes
14389 done
14393 if test -z "$gl_replace_getopt"; then
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14395 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14396 if test "${gl_cv_func_getopt_posix+set}" = set; then :
14397 $as_echo_n "(cached) " >&6
14398 else
14400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14401 /* end confdefs.h. */
14402 #include <unistd.h>
14404 main ()
14406 int *p = &optreset; return optreset;
14408 return 0;
14410 _ACEOF
14411 if ac_fn_c_try_compile "$LINENO"; then :
14412 gl_optind_min=1
14413 else
14414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14415 /* end confdefs.h. */
14416 #include <getopt.h>
14418 main ()
14420 return !getopt_clip;
14422 return 0;
14424 _ACEOF
14425 if ac_fn_c_try_compile "$LINENO"; then :
14426 gl_optind_min=1
14427 else
14428 gl_optind_min=0
14430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14434 gl_save_CPPFLAGS=$CPPFLAGS
14435 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14436 if test "$cross_compiling" = yes; then :
14437 case "$host_os" in
14438 mingw*) gl_cv_func_getopt_posix="guessing no";;
14439 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14440 *) gl_cv_func_getopt_posix="guessing yes";;
14441 esac
14443 else
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14447 #include <unistd.h>
14448 #include <stdlib.h>
14449 #include <string.h>
14452 main ()
14455 int argc = 0;
14456 char *argv[10];
14457 int c;
14459 argv[argc++] = "program";
14460 argv[argc++] = "-a";
14461 argv[argc++] = "foo";
14462 argv[argc++] = "bar";
14463 argv[argc] = NULL;
14464 optind = OPTIND_MIN;
14465 opterr = 0;
14467 c = getopt (argc, argv, "ab");
14468 if (!(c == 'a'))
14469 return 1;
14470 c = getopt (argc, argv, "ab");
14471 if (!(c == -1))
14472 return 2;
14473 if (!(optind == 2))
14474 return 3;
14476 /* Some internal state exists at this point. */
14478 int argc = 0;
14479 char *argv[10];
14480 int c;
14482 argv[argc++] = "program";
14483 argv[argc++] = "donald";
14484 argv[argc++] = "-p";
14485 argv[argc++] = "billy";
14486 argv[argc++] = "duck";
14487 argv[argc++] = "-a";
14488 argv[argc++] = "bar";
14489 argv[argc] = NULL;
14490 optind = OPTIND_MIN;
14491 opterr = 0;
14493 c = getopt (argc, argv, "+abp:q:");
14494 if (!(c == -1))
14495 return 4;
14496 if (!(strcmp (argv[0], "program") == 0))
14497 return 5;
14498 if (!(strcmp (argv[1], "donald") == 0))
14499 return 6;
14500 if (!(strcmp (argv[2], "-p") == 0))
14501 return 7;
14502 if (!(strcmp (argv[3], "billy") == 0))
14503 return 8;
14504 if (!(strcmp (argv[4], "duck") == 0))
14505 return 9;
14506 if (!(strcmp (argv[5], "-a") == 0))
14507 return 10;
14508 if (!(strcmp (argv[6], "bar") == 0))
14509 return 11;
14510 if (!(optind == 1))
14511 return 12;
14513 /* Detect MacOS 10.5, AIX 7.1 bug. */
14515 char *argv[3] = { "program", "-ab", NULL };
14516 optind = OPTIND_MIN;
14517 opterr = 0;
14518 if (getopt (2, argv, "ab:") != 'a')
14519 return 13;
14520 if (getopt (2, argv, "ab:") != '?')
14521 return 14;
14522 if (optopt != 'b')
14523 return 15;
14524 if (optind != 2)
14525 return 16;
14528 return 0;
14531 _ACEOF
14532 if ac_fn_c_try_run "$LINENO"; then :
14533 gl_cv_func_getopt_posix=yes
14534 else
14535 gl_cv_func_getopt_posix=no
14537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14538 conftest.$ac_objext conftest.beam conftest.$ac_ext
14541 CPPFLAGS=$gl_save_CPPFLAGS
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14545 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14546 case "$gl_cv_func_getopt_posix" in
14547 *no) gl_replace_getopt=yes ;;
14548 esac
14551 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14553 $as_echo_n "checking for working GNU getopt function... " >&6; }
14554 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
14555 $as_echo_n "(cached) " >&6
14556 else
14557 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14558 # optstring is necessary for programs like m4 that have POSIX-mandated
14559 # semantics for supporting options interspersed with files.
14560 # Also, since getopt_long is a GNU extension, we require optind=0.
14561 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14562 # so take care to revert to the correct (non-)export state.
14563 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14564 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14565 xx) gl_had_POSIXLY_CORRECT=exported ;;
14566 x) gl_had_POSIXLY_CORRECT=yes ;;
14567 *) gl_had_POSIXLY_CORRECT= ;;
14568 esac
14569 POSIXLY_CORRECT=1
14570 export POSIXLY_CORRECT
14571 if test "$cross_compiling" = yes; then :
14572 case $host_os:$ac_cv_have_decl_optreset in
14573 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14574 *:yes) gl_cv_func_getopt_gnu=no;;
14575 *) gl_cv_func_getopt_gnu=yes;;
14576 esac
14578 else
14579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580 /* end confdefs.h. */
14581 #include <getopt.h>
14582 #include <stddef.h>
14583 #include <string.h>
14586 main ()
14589 int result = 0;
14590 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14591 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14592 OSF/1 5.1, Solaris 10. */
14594 char *myargv[3];
14595 myargv[0] = "conftest";
14596 myargv[1] = "-+";
14597 myargv[2] = 0;
14598 opterr = 0;
14599 if (getopt (2, myargv, "+a") != '?')
14600 result |= 1;
14602 /* This code succeeds on glibc 2.8, mingw,
14603 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14604 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14606 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14608 optind = 1;
14609 if (getopt (4, argv, "p::") != 'p')
14610 result |= 2;
14611 else if (optarg != NULL)
14612 result |= 4;
14613 else if (getopt (4, argv, "p::") != -1)
14614 result |= 6;
14615 else if (optind != 2)
14616 result |= 8;
14618 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14620 char *argv[] = { "program", "foo", "-p", NULL };
14621 optind = 0;
14622 if (getopt (3, argv, "-p") != 1)
14623 result |= 16;
14624 else if (getopt (3, argv, "-p") != 'p')
14625 result |= 32;
14627 /* This code fails on glibc 2.11. */
14629 char *argv[] = { "program", "-b", "-a", NULL };
14630 optind = opterr = 0;
14631 if (getopt (3, argv, "+:a:b") != 'b')
14632 result |= 64;
14633 else if (getopt (3, argv, "+:a:b") != ':')
14634 result |= 64;
14636 return result;
14639 return 0;
14641 _ACEOF
14642 if ac_fn_c_try_run "$LINENO"; then :
14643 gl_cv_func_getopt_gnu=yes
14644 else
14645 gl_cv_func_getopt_gnu=no
14647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14648 conftest.$ac_objext conftest.beam conftest.$ac_ext
14651 case $gl_had_POSIXLY_CORRECT in
14652 exported) ;;
14653 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14654 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14655 esac
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14659 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14660 if test "$gl_cv_func_getopt_gnu" = "no"; then
14661 gl_replace_getopt=yes
14665 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14666 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
14667 ac_have_decl=1
14668 else
14669 ac_have_decl=0
14672 cat >>confdefs.h <<_ACEOF
14673 #define HAVE_DECL_GETENV $ac_have_decl
14674 _ACEOF
14681 if test -n "$gl_replace_getopt"; then :
14685 GETOPT_H=getopt.h
14687 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14691 GNULIB_UNISTD_H_GETOPT=1
14700 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14710 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14722 $as_echo_n "checking for unsigned long long int... " >&6; }
14723 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
14724 $as_echo_n "(cached) " >&6
14725 else
14726 ac_cv_type_unsigned_long_long_int=yes
14727 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14729 /* end confdefs.h. */
14731 /* For now, do not test the preprocessor; as of 2007 there are too many
14732 implementations with broken preprocessors. Perhaps this can
14733 be revisited in 2012. In the meantime, code should not expect
14734 #if to work with literals wider than 32 bits. */
14735 /* Test literals. */
14736 long long int ll = 9223372036854775807ll;
14737 long long int nll = -9223372036854775807LL;
14738 unsigned long long int ull = 18446744073709551615ULL;
14739 /* Test constant expressions. */
14740 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14741 ? 1 : -1)];
14742 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14743 ? 1 : -1)];
14744 int i = 63;
14746 main ()
14748 /* Test availability of runtime routines for shift and division. */
14749 long long int llmax = 9223372036854775807ll;
14750 unsigned long long int ullmax = 18446744073709551615ull;
14751 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14752 | (llmax / ll) | (llmax % ll)
14753 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14754 | (ullmax / ull) | (ullmax % ull));
14756 return 0;
14759 _ACEOF
14760 if ac_fn_c_try_link "$LINENO"; then :
14762 else
14763 ac_cv_type_unsigned_long_long_int=no
14765 rm -f core conftest.err conftest.$ac_objext \
14766 conftest$ac_exeext conftest.$ac_ext
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14770 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14771 if test $ac_cv_type_unsigned_long_long_int = yes; then
14773 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14780 $as_echo_n "checking for long long int... " >&6; }
14781 if test "${ac_cv_type_long_long_int+set}" = set; then :
14782 $as_echo_n "(cached) " >&6
14783 else
14784 ac_cv_type_long_long_int=yes
14785 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14786 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
14787 if test $ac_cv_type_long_long_int = yes; then
14788 if test "$cross_compiling" = yes; then :
14790 else
14791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14792 /* end confdefs.h. */
14793 #include <limits.h>
14794 #ifndef LLONG_MAX
14795 # define HALF \
14796 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14797 # define LLONG_MAX (HALF - 1 + HALF)
14798 #endif
14800 main ()
14802 long long int n = 1;
14803 int i;
14804 for (i = 0; ; i++)
14806 long long int m = n << i;
14807 if (m >> i != n)
14808 return 1;
14809 if (LLONG_MAX / 2 < m)
14810 break;
14812 return 0;
14814 return 0;
14816 _ACEOF
14817 if ac_fn_c_try_run "$LINENO"; then :
14819 else
14820 ac_cv_type_long_long_int=no
14822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14823 conftest.$ac_objext conftest.beam conftest.$ac_ext
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14830 $as_echo "$ac_cv_type_long_long_int" >&6; }
14831 if test $ac_cv_type_long_long_int = yes; then
14833 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14842 gl_cv_c_multiarch=no
14843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14844 /* end confdefs.h. */
14845 #ifndef __APPLE_CC__
14846 not a universal capable compiler
14847 #endif
14848 typedef int dummy;
14850 _ACEOF
14851 if ac_fn_c_try_compile "$LINENO"; then :
14853 arch=
14854 prev=
14855 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14856 if test -n "$prev"; then
14857 case $word in
14858 i?86 | x86_64 | ppc | ppc64)
14859 if test -z "$arch" || test "$arch" = "$word"; then
14860 arch="$word"
14861 else
14862 gl_cv_c_multiarch=yes
14865 esac
14866 prev=
14867 else
14868 if test "x$word" = "x-arch"; then
14869 prev=arch
14872 done
14875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14876 if test $gl_cv_c_multiarch = yes; then
14877 APPLE_UNIVERSAL_BUILD=1
14878 else
14879 APPLE_UNIVERSAL_BUILD=0
14886 if test $ac_cv_type_long_long_int = yes; then
14887 HAVE_LONG_LONG_INT=1
14888 else
14889 HAVE_LONG_LONG_INT=0
14893 if test $ac_cv_type_unsigned_long_long_int = yes; then
14894 HAVE_UNSIGNED_LONG_LONG_INT=1
14895 else
14896 HAVE_UNSIGNED_LONG_LONG_INT=0
14901 if test $ac_cv_header_wchar_h = yes; then
14902 HAVE_WCHAR_H=1
14903 else
14904 HAVE_WCHAR_H=0
14908 if test $ac_cv_header_inttypes_h = yes; then
14909 HAVE_INTTYPES_H=1
14910 else
14911 HAVE_INTTYPES_H=0
14915 if test $ac_cv_header_sys_types_h = yes; then
14916 HAVE_SYS_TYPES_H=1
14917 else
14918 HAVE_SYS_TYPES_H=0
14931 if test $gl_cv_have_include_next = yes; then
14932 gl_cv_next_stdint_h='<'stdint.h'>'
14933 else
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
14935 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
14936 if test "${gl_cv_next_stdint_h+set}" = set; then :
14937 $as_echo_n "(cached) " >&6
14938 else
14940 if test $ac_cv_header_stdint_h = yes; then
14943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14944 /* end confdefs.h. */
14945 #include <stdint.h>
14947 _ACEOF
14948 case "$host_os" in
14949 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14950 *) gl_absname_cpp="$ac_cpp" ;;
14951 esac
14952 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14953 sed -n '\#/stdint.h#{
14954 s#.*"\(.*/stdint.h\)".*#\1#
14955 s#^/[^/]#//&#
14958 }'`'"'
14959 else
14960 gl_cv_next_stdint_h='<'stdint.h'>'
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
14966 $as_echo "$gl_cv_next_stdint_h" >&6; }
14968 NEXT_STDINT_H=$gl_cv_next_stdint_h
14970 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14971 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14972 gl_next_as_first_directive='<'stdint.h'>'
14973 else
14974 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14975 gl_next_as_first_directive=$gl_cv_next_stdint_h
14977 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
14982 if test $ac_cv_header_stdint_h = yes; then
14983 HAVE_STDINT_H=1
14984 else
14985 HAVE_STDINT_H=0
14989 if test $ac_cv_header_stdint_h = yes; then
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
14991 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
14992 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
14993 $as_echo_n "(cached) " >&6
14994 else
14995 gl_cv_header_working_stdint_h=no
14996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997 /* end confdefs.h. */
15000 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
15001 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
15002 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15003 #include <stdint.h>
15004 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
15005 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
15006 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
15007 #endif
15010 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15011 included before <wchar.h>. */
15012 #include <stddef.h>
15013 #include <signal.h>
15014 #if HAVE_WCHAR_H
15015 # include <stdio.h>
15016 # include <time.h>
15017 # include <wchar.h>
15018 #endif
15021 #ifdef INT8_MAX
15022 int8_t a1 = INT8_MAX;
15023 int8_t a1min = INT8_MIN;
15024 #endif
15025 #ifdef INT16_MAX
15026 int16_t a2 = INT16_MAX;
15027 int16_t a2min = INT16_MIN;
15028 #endif
15029 #ifdef INT32_MAX
15030 int32_t a3 = INT32_MAX;
15031 int32_t a3min = INT32_MIN;
15032 #endif
15033 #ifdef INT64_MAX
15034 int64_t a4 = INT64_MAX;
15035 int64_t a4min = INT64_MIN;
15036 #endif
15037 #ifdef UINT8_MAX
15038 uint8_t b1 = UINT8_MAX;
15039 #else
15040 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
15041 #endif
15042 #ifdef UINT16_MAX
15043 uint16_t b2 = UINT16_MAX;
15044 #endif
15045 #ifdef UINT32_MAX
15046 uint32_t b3 = UINT32_MAX;
15047 #endif
15048 #ifdef UINT64_MAX
15049 uint64_t b4 = UINT64_MAX;
15050 #endif
15051 int_least8_t c1 = INT8_C (0x7f);
15052 int_least8_t c1max = INT_LEAST8_MAX;
15053 int_least8_t c1min = INT_LEAST8_MIN;
15054 int_least16_t c2 = INT16_C (0x7fff);
15055 int_least16_t c2max = INT_LEAST16_MAX;
15056 int_least16_t c2min = INT_LEAST16_MIN;
15057 int_least32_t c3 = INT32_C (0x7fffffff);
15058 int_least32_t c3max = INT_LEAST32_MAX;
15059 int_least32_t c3min = INT_LEAST32_MIN;
15060 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
15061 int_least64_t c4max = INT_LEAST64_MAX;
15062 int_least64_t c4min = INT_LEAST64_MIN;
15063 uint_least8_t d1 = UINT8_C (0xff);
15064 uint_least8_t d1max = UINT_LEAST8_MAX;
15065 uint_least16_t d2 = UINT16_C (0xffff);
15066 uint_least16_t d2max = UINT_LEAST16_MAX;
15067 uint_least32_t d3 = UINT32_C (0xffffffff);
15068 uint_least32_t d3max = UINT_LEAST32_MAX;
15069 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
15070 uint_least64_t d4max = UINT_LEAST64_MAX;
15071 int_fast8_t e1 = INT_FAST8_MAX;
15072 int_fast8_t e1min = INT_FAST8_MIN;
15073 int_fast16_t e2 = INT_FAST16_MAX;
15074 int_fast16_t e2min = INT_FAST16_MIN;
15075 int_fast32_t e3 = INT_FAST32_MAX;
15076 int_fast32_t e3min = INT_FAST32_MIN;
15077 int_fast64_t e4 = INT_FAST64_MAX;
15078 int_fast64_t e4min = INT_FAST64_MIN;
15079 uint_fast8_t f1 = UINT_FAST8_MAX;
15080 uint_fast16_t f2 = UINT_FAST16_MAX;
15081 uint_fast32_t f3 = UINT_FAST32_MAX;
15082 uint_fast64_t f4 = UINT_FAST64_MAX;
15083 #ifdef INTPTR_MAX
15084 intptr_t g = INTPTR_MAX;
15085 intptr_t gmin = INTPTR_MIN;
15086 #endif
15087 #ifdef UINTPTR_MAX
15088 uintptr_t h = UINTPTR_MAX;
15089 #endif
15090 intmax_t i = INTMAX_MAX;
15091 uintmax_t j = UINTMAX_MAX;
15093 #include <limits.h> /* for CHAR_BIT */
15094 #define TYPE_MINIMUM(t) \
15095 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
15096 #define TYPE_MAXIMUM(t) \
15097 ((t) ((t) 0 < (t) -1 \
15098 ? (t) -1 \
15099 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
15100 struct s {
15101 int check_PTRDIFF:
15102 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
15103 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
15104 ? 1 : -1;
15105 /* Detect bug in FreeBSD 6.0 / ia64. */
15106 int check_SIG_ATOMIC:
15107 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
15108 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
15109 ? 1 : -1;
15110 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
15111 int check_WCHAR:
15112 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
15113 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
15114 ? 1 : -1;
15115 /* Detect bug in mingw. */
15116 int check_WINT:
15117 WINT_MIN == TYPE_MINIMUM (wint_t)
15118 && WINT_MAX == TYPE_MAXIMUM (wint_t)
15119 ? 1 : -1;
15121 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
15122 int check_UINT8_C:
15123 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
15124 int check_UINT16_C:
15125 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
15127 /* Detect bugs in OpenBSD 3.9 stdint.h. */
15128 #ifdef UINT8_MAX
15129 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
15130 #endif
15131 #ifdef UINT16_MAX
15132 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
15133 #endif
15134 #ifdef UINT32_MAX
15135 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
15136 #endif
15137 #ifdef UINT64_MAX
15138 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
15139 #endif
15140 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
15141 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
15142 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
15143 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
15144 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
15145 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
15146 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
15147 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
15148 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
15149 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
15150 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
15154 main ()
15158 return 0;
15160 _ACEOF
15161 if ac_fn_c_try_compile "$LINENO"; then :
15162 if test "$cross_compiling" = yes; then :
15163 gl_cv_header_working_stdint_h=yes
15165 else
15166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15167 /* end confdefs.h. */
15170 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
15171 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
15172 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15173 #include <stdint.h>
15176 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15177 included before <wchar.h>. */
15178 #include <stddef.h>
15179 #include <signal.h>
15180 #if HAVE_WCHAR_H
15181 # include <stdio.h>
15182 # include <time.h>
15183 # include <wchar.h>
15184 #endif
15187 #include <stdio.h>
15188 #include <string.h>
15189 #define MVAL(macro) MVAL1(macro)
15190 #define MVAL1(expression) #expression
15191 static const char *macro_values[] =
15193 #ifdef INT8_MAX
15194 MVAL (INT8_MAX),
15195 #endif
15196 #ifdef INT16_MAX
15197 MVAL (INT16_MAX),
15198 #endif
15199 #ifdef INT32_MAX
15200 MVAL (INT32_MAX),
15201 #endif
15202 #ifdef INT64_MAX
15203 MVAL (INT64_MAX),
15204 #endif
15205 #ifdef UINT8_MAX
15206 MVAL (UINT8_MAX),
15207 #endif
15208 #ifdef UINT16_MAX
15209 MVAL (UINT16_MAX),
15210 #endif
15211 #ifdef UINT32_MAX
15212 MVAL (UINT32_MAX),
15213 #endif
15214 #ifdef UINT64_MAX
15215 MVAL (UINT64_MAX),
15216 #endif
15217 NULL
15221 main ()
15224 const char **mv;
15225 for (mv = macro_values; *mv != NULL; mv++)
15227 const char *value = *mv;
15228 /* Test whether it looks like a cast expression. */
15229 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
15230 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
15231 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
15232 || strncmp (value, "((int)"/*)*/, 6) == 0
15233 || strncmp (value, "((signed short)"/*)*/, 15) == 0
15234 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
15235 return mv - macro_values + 1;
15237 return 0;
15240 return 0;
15242 _ACEOF
15243 if ac_fn_c_try_run "$LINENO"; then :
15244 gl_cv_header_working_stdint_h=yes
15246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15247 conftest.$ac_objext conftest.beam conftest.$ac_ext
15252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
15256 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
15258 if test "$gl_cv_header_working_stdint_h" = yes; then
15259 STDINT_H=
15260 else
15261 for ac_header in sys/inttypes.h sys/bitypes.h
15262 do :
15263 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15264 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15265 eval as_val=\$$as_ac_Header
15266 if test "x$as_val" = x""yes; then :
15267 cat >>confdefs.h <<_ACEOF
15268 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15269 _ACEOF
15273 done
15275 if test $ac_cv_header_sys_inttypes_h = yes; then
15276 HAVE_SYS_INTTYPES_H=1
15277 else
15278 HAVE_SYS_INTTYPES_H=0
15281 if test $ac_cv_header_sys_bitypes_h = yes; then
15282 HAVE_SYS_BITYPES_H=1
15283 else
15284 HAVE_SYS_BITYPES_H=0
15290 if test $APPLE_UNIVERSAL_BUILD = 0; then
15293 for gltype in ptrdiff_t size_t ; do
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
15295 $as_echo_n "checking for bit size of $gltype... " >&6; }
15296 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
15297 $as_echo_n "(cached) " >&6
15298 else
15299 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
15300 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15301 included before <wchar.h>. */
15302 #include <stddef.h>
15303 #include <signal.h>
15304 #if HAVE_WCHAR_H
15305 # include <stdio.h>
15306 # include <time.h>
15307 # include <wchar.h>
15308 #endif
15310 #include <limits.h>"; then :
15312 else
15313 result=unknown
15316 eval gl_cv_bitsizeof_${gltype}=\$result
15319 eval ac_res=\$gl_cv_bitsizeof_${gltype}
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15321 $as_echo "$ac_res" >&6; }
15322 eval result=\$gl_cv_bitsizeof_${gltype}
15323 if test $result = unknown; then
15324 result=0
15326 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15327 cat >>confdefs.h <<_ACEOF
15328 #define BITSIZEOF_${GLTYPE} $result
15329 _ACEOF
15331 eval BITSIZEOF_${GLTYPE}=\$result
15332 done
15338 for gltype in sig_atomic_t wchar_t wint_t ; do
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
15340 $as_echo_n "checking for bit size of $gltype... " >&6; }
15341 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
15342 $as_echo_n "(cached) " >&6
15343 else
15344 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
15345 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15346 included before <wchar.h>. */
15347 #include <stddef.h>
15348 #include <signal.h>
15349 #if HAVE_WCHAR_H
15350 # include <stdio.h>
15351 # include <time.h>
15352 # include <wchar.h>
15353 #endif
15355 #include <limits.h>"; then :
15357 else
15358 result=unknown
15361 eval gl_cv_bitsizeof_${gltype}=\$result
15364 eval ac_res=\$gl_cv_bitsizeof_${gltype}
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15366 $as_echo "$ac_res" >&6; }
15367 eval result=\$gl_cv_bitsizeof_${gltype}
15368 if test $result = unknown; then
15369 result=0
15371 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15372 cat >>confdefs.h <<_ACEOF
15373 #define BITSIZEOF_${GLTYPE} $result
15374 _ACEOF
15376 eval BITSIZEOF_${GLTYPE}=\$result
15377 done
15382 for gltype in sig_atomic_t wchar_t wint_t ; do
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
15384 $as_echo_n "checking whether $gltype is signed... " >&6; }
15385 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
15386 $as_echo_n "(cached) " >&6
15387 else
15388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15389 /* end confdefs.h. */
15391 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15392 included before <wchar.h>. */
15393 #include <stddef.h>
15394 #include <signal.h>
15395 #if HAVE_WCHAR_H
15396 # include <stdio.h>
15397 # include <time.h>
15398 # include <wchar.h>
15399 #endif
15401 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
15403 main ()
15407 return 0;
15409 _ACEOF
15410 if ac_fn_c_try_compile "$LINENO"; then :
15411 result=yes
15412 else
15413 result=no
15415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15416 eval gl_cv_type_${gltype}_signed=\$result
15419 eval ac_res=\$gl_cv_type_${gltype}_signed
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15421 $as_echo "$ac_res" >&6; }
15422 eval result=\$gl_cv_type_${gltype}_signed
15423 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15424 if test "$result" = yes; then
15425 cat >>confdefs.h <<_ACEOF
15426 #define HAVE_SIGNED_${GLTYPE} 1
15427 _ACEOF
15429 eval HAVE_SIGNED_${GLTYPE}=1
15430 else
15431 eval HAVE_SIGNED_${GLTYPE}=0
15433 done
15436 gl_cv_type_ptrdiff_t_signed=yes
15437 gl_cv_type_size_t_signed=no
15438 if test $APPLE_UNIVERSAL_BUILD = 0; then
15441 for gltype in ptrdiff_t size_t ; do
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
15443 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15444 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
15445 $as_echo_n "(cached) " >&6
15446 else
15447 eval gl_cv_type_${gltype}_suffix=no
15448 eval result=\$gl_cv_type_${gltype}_signed
15449 if test "$result" = yes; then
15450 glsufu=
15451 else
15452 glsufu=u
15454 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
15455 case $glsuf in
15456 '') gltype1='int';;
15457 l) gltype1='long int';;
15458 ll) gltype1='long long int';;
15459 i64) gltype1='__int64';;
15460 u) gltype1='unsigned int';;
15461 ul) gltype1='unsigned long int';;
15462 ull) gltype1='unsigned long long int';;
15463 ui64)gltype1='unsigned __int64';;
15464 esac
15465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15466 /* end confdefs.h. */
15468 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15469 included before <wchar.h>. */
15470 #include <stddef.h>
15471 #include <signal.h>
15472 #if HAVE_WCHAR_H
15473 # include <stdio.h>
15474 # include <time.h>
15475 # include <wchar.h>
15476 #endif
15478 extern $gltype foo;
15479 extern $gltype1 foo;
15481 main ()
15485 return 0;
15487 _ACEOF
15488 if ac_fn_c_try_compile "$LINENO"; then :
15489 eval gl_cv_type_${gltype}_suffix=\$glsuf
15491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15492 eval result=\$gl_cv_type_${gltype}_suffix
15493 test "$result" != no && break
15494 done
15496 eval ac_res=\$gl_cv_type_${gltype}_suffix
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15498 $as_echo "$ac_res" >&6; }
15499 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15500 eval result=\$gl_cv_type_${gltype}_suffix
15501 test "$result" = no && result=
15502 eval ${GLTYPE}_SUFFIX=\$result
15503 cat >>confdefs.h <<_ACEOF
15504 #define ${GLTYPE}_SUFFIX $result
15505 _ACEOF
15507 done
15513 for gltype in sig_atomic_t wchar_t wint_t ; do
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
15515 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15516 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
15517 $as_echo_n "(cached) " >&6
15518 else
15519 eval gl_cv_type_${gltype}_suffix=no
15520 eval result=\$gl_cv_type_${gltype}_signed
15521 if test "$result" = yes; then
15522 glsufu=
15523 else
15524 glsufu=u
15526 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
15527 case $glsuf in
15528 '') gltype1='int';;
15529 l) gltype1='long int';;
15530 ll) gltype1='long long int';;
15531 i64) gltype1='__int64';;
15532 u) gltype1='unsigned int';;
15533 ul) gltype1='unsigned long int';;
15534 ull) gltype1='unsigned long long int';;
15535 ui64)gltype1='unsigned __int64';;
15536 esac
15537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15538 /* end confdefs.h. */
15540 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15541 included before <wchar.h>. */
15542 #include <stddef.h>
15543 #include <signal.h>
15544 #if HAVE_WCHAR_H
15545 # include <stdio.h>
15546 # include <time.h>
15547 # include <wchar.h>
15548 #endif
15550 extern $gltype foo;
15551 extern $gltype1 foo;
15553 main ()
15557 return 0;
15559 _ACEOF
15560 if ac_fn_c_try_compile "$LINENO"; then :
15561 eval gl_cv_type_${gltype}_suffix=\$glsuf
15563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15564 eval result=\$gl_cv_type_${gltype}_suffix
15565 test "$result" != no && break
15566 done
15568 eval ac_res=\$gl_cv_type_${gltype}_suffix
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15570 $as_echo "$ac_res" >&6; }
15571 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15572 eval result=\$gl_cv_type_${gltype}_suffix
15573 test "$result" = no && result=
15574 eval ${GLTYPE}_SUFFIX=\$result
15575 cat >>confdefs.h <<_ACEOF
15576 #define ${GLTYPE}_SUFFIX $result
15577 _ACEOF
15579 done
15583 STDINT_H=stdint.h
15586 if test -n "$STDINT_H"; then
15587 GL_GENERATE_STDINT_H_TRUE=
15588 GL_GENERATE_STDINT_H_FALSE='#'
15589 else
15590 GL_GENERATE_STDINT_H_TRUE='#'
15591 GL_GENERATE_STDINT_H_FALSE=
15598 GNULIB_IMAXABS=0;
15599 GNULIB_IMAXDIV=0;
15600 GNULIB_STRTOIMAX=0;
15601 GNULIB_STRTOUMAX=0;
15602 HAVE_DECL_IMAXABS=1;
15603 HAVE_DECL_IMAXDIV=1;
15604 HAVE_DECL_STRTOIMAX=1;
15605 HAVE_DECL_STRTOUMAX=1;
15606 INT32_MAX_LT_INTMAX_MAX=1;
15607 INT64_MAX_EQ_LONG_MAX='defined _LP64';
15608 PRI_MACROS_BROKEN=0;
15609 PRIPTR_PREFIX=__PRIPTR_PREFIX;
15610 UINT32_MAX_LT_UINTMAX_MAX=1;
15611 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
15614 GNULIB_FCHMODAT=0;
15615 GNULIB_FSTATAT=0;
15616 GNULIB_FUTIMENS=0;
15617 GNULIB_LCHMOD=0;
15618 GNULIB_LSTAT=0;
15619 GNULIB_MKDIRAT=0;
15620 GNULIB_MKFIFO=0;
15621 GNULIB_MKFIFOAT=0;
15622 GNULIB_MKNOD=0;
15623 GNULIB_MKNODAT=0;
15624 GNULIB_STAT=0;
15625 GNULIB_UTIMENSAT=0;
15626 HAVE_FCHMODAT=1;
15627 HAVE_FSTATAT=1;
15628 HAVE_FUTIMENS=1;
15629 HAVE_LCHMOD=1;
15630 HAVE_LSTAT=1;
15631 HAVE_MKDIRAT=1;
15632 HAVE_MKFIFO=1;
15633 HAVE_MKFIFOAT=1;
15634 HAVE_MKNOD=1;
15635 HAVE_MKNODAT=1;
15636 HAVE_UTIMENSAT=1;
15637 REPLACE_FSTAT=0;
15638 REPLACE_FSTATAT=0;
15639 REPLACE_FUTIMENS=0;
15640 REPLACE_LSTAT=0;
15641 REPLACE_MKDIR=0;
15642 REPLACE_MKFIFO=0;
15643 REPLACE_MKNOD=0;
15644 REPLACE_STAT=0;
15645 REPLACE_UTIMENSAT=0;
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
15651 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
15652 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
15653 $as_echo_n "(cached) " >&6
15654 else
15655 rm -f conftest.sym conftest.file
15656 echo >conftest.file
15657 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
15658 if test "$cross_compiling" = yes; then :
15659 # When cross-compiling, be pessimistic so we will end up using the
15660 # replacement version of lstat that checks for trailing slashes and
15661 # calls lstat a second time when necessary.
15662 ac_cv_func_lstat_dereferences_slashed_symlink=no
15664 else
15665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15666 /* end confdefs.h. */
15667 $ac_includes_default
15669 main ()
15671 struct stat sbuf;
15672 /* Linux will dereference the symlink and fail, as required by
15673 POSIX. That is better in the sense that it means we will not
15674 have to compile and use the lstat wrapper. */
15675 return lstat ("conftest.sym/", &sbuf) == 0;
15678 return 0;
15680 _ACEOF
15681 if ac_fn_c_try_run "$LINENO"; then :
15682 ac_cv_func_lstat_dereferences_slashed_symlink=yes
15683 else
15684 ac_cv_func_lstat_dereferences_slashed_symlink=no
15686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15687 conftest.$ac_objext conftest.beam conftest.$ac_ext
15690 else
15691 # If the 'ln -s' command failed, then we probably don't even
15692 # have an lstat function.
15693 ac_cv_func_lstat_dereferences_slashed_symlink=no
15695 rm -f conftest.sym conftest.file
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
15699 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
15700 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
15702 cat >>confdefs.h <<_ACEOF
15703 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
15704 _ACEOF
15706 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
15715 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
15720 GNULIB_MKTIME=0;
15721 GNULIB_NANOSLEEP=0;
15722 GNULIB_STRPTIME=0;
15723 GNULIB_TIMEGM=0;
15724 GNULIB_TIME_R=0;
15725 HAVE_DECL_LOCALTIME_R=1;
15726 HAVE_NANOSLEEP=1;
15727 HAVE_STRPTIME=1;
15728 HAVE_TIMEGM=1;
15729 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
15730 REPLACE_MKTIME=GNULIB_PORTCHECK;
15731 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
15732 REPLACE_TIMEGM=GNULIB_PORTCHECK;
15741 if test $ac_cv_header_sys_socket_h = no; then
15742 for ac_header in ws2tcpip.h
15743 do :
15744 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
15745 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
15746 cat >>confdefs.h <<_ACEOF
15747 #define HAVE_WS2TCPIP_H 1
15748 _ACEOF
15752 done
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15757 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15758 if test "${ac_cv_header_stdbool_h+set}" = set; then :
15759 $as_echo_n "(cached) " >&6
15760 else
15761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15762 /* end confdefs.h. */
15764 #include <stdbool.h>
15765 #ifndef bool
15766 "error: bool is not defined"
15767 #endif
15768 #ifndef false
15769 "error: false is not defined"
15770 #endif
15771 #if false
15772 "error: false is not 0"
15773 #endif
15774 #ifndef true
15775 "error: true is not defined"
15776 #endif
15777 #if true != 1
15778 "error: true is not 1"
15779 #endif
15780 #ifndef __bool_true_false_are_defined
15781 "error: __bool_true_false_are_defined is not defined"
15782 #endif
15784 struct s { _Bool s: 1; _Bool t; } s;
15786 char a[true == 1 ? 1 : -1];
15787 char b[false == 0 ? 1 : -1];
15788 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15789 char d[(bool) 0.5 == true ? 1 : -1];
15790 /* See body of main program for 'e'. */
15791 char f[(_Bool) 0.0 == false ? 1 : -1];
15792 char g[true];
15793 char h[sizeof (_Bool)];
15794 char i[sizeof s.t];
15795 enum { j = false, k = true, l = false * true, m = true * 256 };
15796 /* The following fails for
15797 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15798 _Bool n[m];
15799 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15800 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15801 /* Catch a bug in an HP-UX C compiler. See
15802 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15803 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15805 _Bool q = true;
15806 _Bool *pq = &q;
15809 main ()
15812 bool e = &s;
15813 *pq |= q;
15814 *pq |= ! q;
15815 /* Refer to every declared value, to avoid compiler optimizations. */
15816 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15817 + !m + !n + !o + !p + !q + !pq);
15820 return 0;
15822 _ACEOF
15823 if ac_fn_c_try_compile "$LINENO"; then :
15824 ac_cv_header_stdbool_h=yes
15825 else
15826 ac_cv_header_stdbool_h=no
15828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15831 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15832 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15833 if test "x$ac_cv_type__Bool" = x""yes; then :
15835 cat >>confdefs.h <<_ACEOF
15836 #define HAVE__BOOL 1
15837 _ACEOF
15844 REPLACE_NULL=0;
15845 HAVE_WCHAR_T=1;
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
15849 $as_echo_n "checking for wchar_t... " >&6; }
15850 if test "${gt_cv_c_wchar_t+set}" = set; then :
15851 $as_echo_n "(cached) " >&6
15852 else
15853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15854 /* end confdefs.h. */
15855 #include <stddef.h>
15856 wchar_t foo = (wchar_t)'\0';
15858 main ()
15862 return 0;
15864 _ACEOF
15865 if ac_fn_c_try_compile "$LINENO"; then :
15866 gt_cv_c_wchar_t=yes
15867 else
15868 gt_cv_c_wchar_t=no
15870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
15873 $as_echo "$gt_cv_c_wchar_t" >&6; }
15874 if test $gt_cv_c_wchar_t = yes; then
15876 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
15881 GNULIB_DPRINTF=0;
15882 GNULIB_FCLOSE=0;
15883 GNULIB_FFLUSH=0;
15884 GNULIB_FGETC=0;
15885 GNULIB_FGETS=0;
15886 GNULIB_FOPEN=0;
15887 GNULIB_FPRINTF=0;
15888 GNULIB_FPRINTF_POSIX=0;
15889 GNULIB_FPURGE=0;
15890 GNULIB_FPUTC=0;
15891 GNULIB_FPUTS=0;
15892 GNULIB_FREAD=0;
15893 GNULIB_FREOPEN=0;
15894 GNULIB_FSCANF=0;
15895 GNULIB_FSEEK=0;
15896 GNULIB_FSEEKO=0;
15897 GNULIB_FTELL=0;
15898 GNULIB_FTELLO=0;
15899 GNULIB_FWRITE=0;
15900 GNULIB_GETC=0;
15901 GNULIB_GETCHAR=0;
15902 GNULIB_GETDELIM=0;
15903 GNULIB_GETLINE=0;
15904 GNULIB_GETS=0;
15905 GNULIB_OBSTACK_PRINTF=0;
15906 GNULIB_OBSTACK_PRINTF_POSIX=0;
15907 GNULIB_PERROR=0;
15908 GNULIB_POPEN=0;
15909 GNULIB_PRINTF=0;
15910 GNULIB_PRINTF_POSIX=0;
15911 GNULIB_PUTC=0;
15912 GNULIB_PUTCHAR=0;
15913 GNULIB_PUTS=0;
15914 GNULIB_REMOVE=0;
15915 GNULIB_RENAME=0;
15916 GNULIB_RENAMEAT=0;
15917 GNULIB_SCANF=0;
15918 GNULIB_SNPRINTF=0;
15919 GNULIB_SPRINTF_POSIX=0;
15920 GNULIB_STDIO_H_NONBLOCKING=0;
15921 GNULIB_STDIO_H_SIGPIPE=0;
15922 GNULIB_TMPFILE=0;
15923 GNULIB_VASPRINTF=0;
15924 GNULIB_VFSCANF=0;
15925 GNULIB_VSCANF=0;
15926 GNULIB_VDPRINTF=0;
15927 GNULIB_VFPRINTF=0;
15928 GNULIB_VFPRINTF_POSIX=0;
15929 GNULIB_VPRINTF=0;
15930 GNULIB_VPRINTF_POSIX=0;
15931 GNULIB_VSNPRINTF=0;
15932 GNULIB_VSPRINTF_POSIX=0;
15933 HAVE_DECL_FPURGE=1;
15934 HAVE_DECL_FSEEKO=1;
15935 HAVE_DECL_FTELLO=1;
15936 HAVE_DECL_GETDELIM=1;
15937 HAVE_DECL_GETLINE=1;
15938 HAVE_DECL_OBSTACK_PRINTF=1;
15939 HAVE_DECL_SNPRINTF=1;
15940 HAVE_DECL_VSNPRINTF=1;
15941 HAVE_DPRINTF=1;
15942 HAVE_FSEEKO=1;
15943 HAVE_FTELLO=1;
15944 HAVE_RENAMEAT=1;
15945 HAVE_VASPRINTF=1;
15946 HAVE_VDPRINTF=1;
15947 REPLACE_DPRINTF=0;
15948 REPLACE_FCLOSE=0;
15949 REPLACE_FFLUSH=0;
15950 REPLACE_FOPEN=0;
15951 REPLACE_FPRINTF=0;
15952 REPLACE_FPURGE=0;
15953 REPLACE_FREOPEN=0;
15954 REPLACE_FSEEK=0;
15955 REPLACE_FSEEKO=0;
15956 REPLACE_FTELL=0;
15957 REPLACE_FTELLO=0;
15958 REPLACE_GETDELIM=0;
15959 REPLACE_GETLINE=0;
15960 REPLACE_OBSTACK_PRINTF=0;
15961 REPLACE_PERROR=0;
15962 REPLACE_POPEN=0;
15963 REPLACE_PRINTF=0;
15964 REPLACE_REMOVE=0;
15965 REPLACE_RENAME=0;
15966 REPLACE_RENAMEAT=0;
15967 REPLACE_SNPRINTF=0;
15968 REPLACE_SPRINTF=0;
15969 REPLACE_STDIO_READ_FUNCS=0;
15970 REPLACE_STDIO_WRITE_FUNCS=0;
15971 REPLACE_TMPFILE=0;
15972 REPLACE_VASPRINTF=0;
15973 REPLACE_VDPRINTF=0;
15974 REPLACE_VFPRINTF=0;
15975 REPLACE_VPRINTF=0;
15976 REPLACE_VSNPRINTF=0;
15977 REPLACE_VSPRINTF=0;
15980 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
15982 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
15984 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
15991 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
15992 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
15993 ac_have_decl=1
15994 else
15995 ac_have_decl=0
15998 cat >>confdefs.h <<_ACEOF
15999 #define HAVE_DECL_STRTOUMAX $ac_have_decl
16000 _ACEOF
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
16005 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
16006 if test "${ac_cv_header_stat_broken+set}" = set; then :
16007 $as_echo_n "(cached) " >&6
16008 else
16009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16010 /* end confdefs.h. */
16011 #include <sys/types.h>
16012 #include <sys/stat.h>
16014 #if defined S_ISBLK && defined S_IFDIR
16015 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
16016 #endif
16018 #if defined S_ISBLK && defined S_IFCHR
16019 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
16020 #endif
16022 #if defined S_ISLNK && defined S_IFREG
16023 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
16024 #endif
16026 #if defined S_ISSOCK && defined S_IFREG
16027 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
16028 #endif
16030 _ACEOF
16031 if ac_fn_c_try_compile "$LINENO"; then :
16032 ac_cv_header_stat_broken=no
16033 else
16034 ac_cv_header_stat_broken=yes
16036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
16039 $as_echo "$ac_cv_header_stat_broken" >&6; }
16040 if test $ac_cv_header_stat_broken = yes; then
16042 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
16049 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
16050 if test "${ac_cv_c_restrict+set}" = set; then :
16051 $as_echo_n "(cached) " >&6
16052 else
16053 ac_cv_c_restrict=no
16054 # The order here caters to the fact that C++ does not require restrict.
16055 for ac_kw in __restrict __restrict__ _Restrict restrict; do
16056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16057 /* end confdefs.h. */
16058 typedef int * int_ptr;
16059 int foo (int_ptr $ac_kw ip) {
16060 return ip[0];
16063 main ()
16065 int s[1];
16066 int * $ac_kw t = s;
16067 t[0] = 0;
16068 return foo(t)
16070 return 0;
16072 _ACEOF
16073 if ac_fn_c_try_compile "$LINENO"; then :
16074 ac_cv_c_restrict=$ac_kw
16076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16077 test "$ac_cv_c_restrict" != no && break
16078 done
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
16082 $as_echo "$ac_cv_c_restrict" >&6; }
16084 case $ac_cv_c_restrict in
16085 restrict) ;;
16086 no) $as_echo "#define restrict /**/" >>confdefs.h
16088 *) cat >>confdefs.h <<_ACEOF
16089 #define restrict $ac_cv_c_restrict
16090 _ACEOF
16092 esac
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
16099 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
16100 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
16101 $as_echo_n "(cached) " >&6
16102 else
16103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16104 /* end confdefs.h. */
16105 #include <time.h>
16108 main ()
16110 static struct timespec x; x.tv_sec = x.tv_nsec;
16112 return 0;
16114 _ACEOF
16115 if ac_fn_c_try_compile "$LINENO"; then :
16116 gl_cv_sys_struct_timespec_in_time_h=yes
16117 else
16118 gl_cv_sys_struct_timespec_in_time_h=no
16120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
16123 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
16125 TIME_H_DEFINES_STRUCT_TIMESPEC=0
16126 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
16127 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
16128 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
16129 TIME_H_DEFINES_STRUCT_TIMESPEC=1
16130 else
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
16132 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
16133 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
16134 $as_echo_n "(cached) " >&6
16135 else
16136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16137 /* end confdefs.h. */
16138 #include <sys/time.h>
16141 main ()
16143 static struct timespec x; x.tv_sec = x.tv_nsec;
16145 return 0;
16147 _ACEOF
16148 if ac_fn_c_try_compile "$LINENO"; then :
16149 gl_cv_sys_struct_timespec_in_sys_time_h=yes
16150 else
16151 gl_cv_sys_struct_timespec_in_sys_time_h=no
16153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
16156 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
16157 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
16158 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
16159 else
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
16161 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
16162 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
16163 $as_echo_n "(cached) " >&6
16164 else
16165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16166 /* end confdefs.h. */
16167 #include <pthread.h>
16170 main ()
16172 static struct timespec x; x.tv_sec = x.tv_nsec;
16174 return 0;
16176 _ACEOF
16177 if ac_fn_c_try_compile "$LINENO"; then :
16178 gl_cv_sys_struct_timespec_in_pthread_h=yes
16179 else
16180 gl_cv_sys_struct_timespec_in_pthread_h=no
16182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
16185 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
16186 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
16187 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
16206 if test $gl_cv_have_include_next = yes; then
16207 gl_cv_next_time_h='<'time.h'>'
16208 else
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
16210 $as_echo_n "checking absolute name of <time.h>... " >&6; }
16211 if test "${gl_cv_next_time_h+set}" = set; then :
16212 $as_echo_n "(cached) " >&6
16213 else
16215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16216 /* end confdefs.h. */
16217 #include <time.h>
16219 _ACEOF
16220 case "$host_os" in
16221 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16222 *) gl_absname_cpp="$ac_cpp" ;;
16223 esac
16224 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16225 sed -n '\#/time.h#{
16226 s#.*"\(.*/time.h\)".*#\1#
16227 s#^/[^/]#//&#
16230 }'`'"'
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
16235 $as_echo "$gl_cv_next_time_h" >&6; }
16237 NEXT_TIME_H=$gl_cv_next_time_h
16239 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16240 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16241 gl_next_as_first_directive='<'time.h'>'
16242 else
16243 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16244 gl_next_as_first_directive=$gl_cv_next_time_h
16246 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
16253 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
16254 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
16255 ac_have_decl=1
16256 else
16257 ac_have_decl=0
16260 cat >>confdefs.h <<_ACEOF
16261 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
16262 _ACEOF
16267 if false; then
16268 GL_COND_LIBTOOL_TRUE=
16269 GL_COND_LIBTOOL_FALSE='#'
16270 else
16271 GL_COND_LIBTOOL_TRUE='#'
16272 GL_COND_LIBTOOL_FALSE=
16275 gl_cond_libtool=false
16276 gl_libdeps=
16277 gl_ltlibdeps=
16278 gl_m4_base='m4'
16288 gl_source_base='lib'
16289 # Code from module allocator:
16290 # Code from module arg-nonnull:
16291 # Code from module c++defs:
16292 # Code from module careadlinkat:
16294 # Code from module crypto/md5:
16304 gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext"
16311 # Code from module dosname:
16312 # Code from module dtoastr:
16314 # Code from module extensions:
16315 # Code from module filemode:
16326 gl_LIBOBJS="$gl_LIBOBJS filemode.$ac_objext"
16330 # Code from module getloadavg:
16333 # Persuade glibc <stdlib.h> to declare getloadavg().
16336 # Make sure getloadavg.c is where it belongs, at configure-time.
16337 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
16338 as_fn_error "$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
16340 gl_save_LIBS=$LIBS
16342 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
16343 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
16344 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
16345 if test "x$ac_cv_func_getloadavg" = x""yes; then :
16347 else
16348 gl_have_func=no
16350 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16351 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16352 # to get the right answer into the cache.
16353 # For kstat on solaris, we need to test for libelf and libkvm to force the
16354 # definition of SVR4 below.
16355 if test $gl_have_func = no; then
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
16357 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
16358 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
16359 $as_echo_n "(cached) " >&6
16360 else
16361 ac_check_lib_save_LIBS=$LIBS
16362 LIBS="-lelf $LIBS"
16363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16364 /* end confdefs.h. */
16366 /* Override any GCC internal prototype to avoid an error.
16367 Use char because int might match the return type of a GCC
16368 builtin and then its argument prototype would still apply. */
16369 #ifdef __cplusplus
16370 extern "C"
16371 #endif
16372 char elf_begin ();
16374 main ()
16376 return elf_begin ();
16378 return 0;
16380 _ACEOF
16381 if ac_fn_c_try_link "$LINENO"; then :
16382 ac_cv_lib_elf_elf_begin=yes
16383 else
16384 ac_cv_lib_elf_elf_begin=no
16386 rm -f core conftest.err conftest.$ac_objext \
16387 conftest$ac_exeext conftest.$ac_ext
16388 LIBS=$ac_check_lib_save_LIBS
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
16391 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
16392 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
16393 LIBS="-lelf $LIBS"
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
16397 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
16398 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
16399 $as_echo_n "(cached) " >&6
16400 else
16401 ac_check_lib_save_LIBS=$LIBS
16402 LIBS="-lkvm $LIBS"
16403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16404 /* end confdefs.h. */
16406 /* Override any GCC internal prototype to avoid an error.
16407 Use char because int might match the return type of a GCC
16408 builtin and then its argument prototype would still apply. */
16409 #ifdef __cplusplus
16410 extern "C"
16411 #endif
16412 char kvm_open ();
16414 main ()
16416 return kvm_open ();
16418 return 0;
16420 _ACEOF
16421 if ac_fn_c_try_link "$LINENO"; then :
16422 ac_cv_lib_kvm_kvm_open=yes
16423 else
16424 ac_cv_lib_kvm_kvm_open=no
16426 rm -f core conftest.err conftest.$ac_objext \
16427 conftest$ac_exeext conftest.$ac_ext
16428 LIBS=$ac_check_lib_save_LIBS
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
16431 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
16432 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
16433 LIBS="-lkvm $LIBS"
16436 # Check for the 4.4BSD definition of getloadavg.
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
16438 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
16439 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
16440 $as_echo_n "(cached) " >&6
16441 else
16442 ac_check_lib_save_LIBS=$LIBS
16443 LIBS="-lutil $LIBS"
16444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16445 /* end confdefs.h. */
16447 /* Override any GCC internal prototype to avoid an error.
16448 Use char because int might match the return type of a GCC
16449 builtin and then its argument prototype would still apply. */
16450 #ifdef __cplusplus
16451 extern "C"
16452 #endif
16453 char getloadavg ();
16455 main ()
16457 return getloadavg ();
16459 return 0;
16461 _ACEOF
16462 if ac_fn_c_try_link "$LINENO"; then :
16463 ac_cv_lib_util_getloadavg=yes
16464 else
16465 ac_cv_lib_util_getloadavg=no
16467 rm -f core conftest.err conftest.$ac_objext \
16468 conftest$ac_exeext conftest.$ac_ext
16469 LIBS=$ac_check_lib_save_LIBS
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
16472 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
16473 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
16474 LIBS="-lutil $LIBS" gl_have_func=yes
16479 if test $gl_have_func = no; then
16480 # There is a commonly available library for RS/6000 AIX.
16481 # Since it is not a standard part of AIX, it might be installed locally.
16482 gl_getloadavg_LIBS=$LIBS
16483 LIBS="-L/usr/local/lib $LIBS"
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
16485 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
16486 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
16487 $as_echo_n "(cached) " >&6
16488 else
16489 ac_check_lib_save_LIBS=$LIBS
16490 LIBS="-lgetloadavg $LIBS"
16491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16492 /* end confdefs.h. */
16494 /* Override any GCC internal prototype to avoid an error.
16495 Use char because int might match the return type of a GCC
16496 builtin and then its argument prototype would still apply. */
16497 #ifdef __cplusplus
16498 extern "C"
16499 #endif
16500 char getloadavg ();
16502 main ()
16504 return getloadavg ();
16506 return 0;
16508 _ACEOF
16509 if ac_fn_c_try_link "$LINENO"; then :
16510 ac_cv_lib_getloadavg_getloadavg=yes
16511 else
16512 ac_cv_lib_getloadavg_getloadavg=no
16514 rm -f core conftest.err conftest.$ac_objext \
16515 conftest$ac_exeext conftest.$ac_ext
16516 LIBS=$ac_check_lib_save_LIBS
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16519 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
16520 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
16521 LIBS="-lgetloadavg $LIBS" gl_have_func=yes
16522 else
16523 LIBS=$gl_getloadavg_LIBS
16528 # Set up the replacement function if necessary.
16529 if test $gl_have_func = no; then
16538 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
16541 # Figure out what our getloadavg.c needs.
16543 # Solaris has libkstat which does not require root.
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
16545 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
16546 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
16547 $as_echo_n "(cached) " >&6
16548 else
16549 ac_check_lib_save_LIBS=$LIBS
16550 LIBS="-lkstat $LIBS"
16551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16552 /* end confdefs.h. */
16554 /* Override any GCC internal prototype to avoid an error.
16555 Use char because int might match the return type of a GCC
16556 builtin and then its argument prototype would still apply. */
16557 #ifdef __cplusplus
16558 extern "C"
16559 #endif
16560 char kstat_open ();
16562 main ()
16564 return kstat_open ();
16566 return 0;
16568 _ACEOF
16569 if ac_fn_c_try_link "$LINENO"; then :
16570 ac_cv_lib_kstat_kstat_open=yes
16571 else
16572 ac_cv_lib_kstat_kstat_open=no
16574 rm -f core conftest.err conftest.$ac_objext \
16575 conftest$ac_exeext conftest.$ac_ext
16576 LIBS=$ac_check_lib_save_LIBS
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
16579 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
16580 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
16581 cat >>confdefs.h <<_ACEOF
16582 #define HAVE_LIBKSTAT 1
16583 _ACEOF
16585 LIBS="-lkstat $LIBS"
16589 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
16591 # On HPUX9, an unprivileged user can get load averages this way.
16592 if test $gl_have_func = no; then
16593 for ac_func in pstat_getdynamic
16594 do :
16595 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
16596 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
16597 cat >>confdefs.h <<_ACEOF
16598 #define HAVE_PSTAT_GETDYNAMIC 1
16599 _ACEOF
16600 gl_have_func=yes
16602 done
16606 # AIX has libperfstat which does not require root
16607 if test $gl_have_func = no; then
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
16609 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
16610 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
16611 $as_echo_n "(cached) " >&6
16612 else
16613 ac_check_lib_save_LIBS=$LIBS
16614 LIBS="-lperfstat $LIBS"
16615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16616 /* end confdefs.h. */
16618 /* Override any GCC internal prototype to avoid an error.
16619 Use char because int might match the return type of a GCC
16620 builtin and then its argument prototype would still apply. */
16621 #ifdef __cplusplus
16622 extern "C"
16623 #endif
16624 char perfstat_cpu_total ();
16626 main ()
16628 return perfstat_cpu_total ();
16630 return 0;
16632 _ACEOF
16633 if ac_fn_c_try_link "$LINENO"; then :
16634 ac_cv_lib_perfstat_perfstat_cpu_total=yes
16635 else
16636 ac_cv_lib_perfstat_perfstat_cpu_total=no
16638 rm -f core conftest.err conftest.$ac_objext \
16639 conftest$ac_exeext conftest.$ac_ext
16640 LIBS=$ac_check_lib_save_LIBS
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
16643 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
16644 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
16645 cat >>confdefs.h <<_ACEOF
16646 #define HAVE_LIBPERFSTAT 1
16647 _ACEOF
16649 LIBS="-lperfstat $LIBS"
16653 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes
16656 if test $gl_have_func = no; then
16657 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
16658 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
16659 gl_have_func=yes
16661 $as_echo "#define DGUX 1" >>confdefs.h
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
16664 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
16665 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
16666 $as_echo_n "(cached) " >&6
16667 else
16668 ac_check_lib_save_LIBS=$LIBS
16669 LIBS="-ldgc $LIBS"
16670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16671 /* end confdefs.h. */
16673 /* Override any GCC internal prototype to avoid an error.
16674 Use char because int might match the return type of a GCC
16675 builtin and then its argument prototype would still apply. */
16676 #ifdef __cplusplus
16677 extern "C"
16678 #endif
16679 char dg_sys_info ();
16681 main ()
16683 return dg_sys_info ();
16685 return 0;
16687 _ACEOF
16688 if ac_fn_c_try_link "$LINENO"; then :
16689 ac_cv_lib_dgc_dg_sys_info=yes
16690 else
16691 ac_cv_lib_dgc_dg_sys_info=no
16693 rm -f core conftest.err conftest.$ac_objext \
16694 conftest$ac_exeext conftest.$ac_ext
16695 LIBS=$ac_check_lib_save_LIBS
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16698 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
16699 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
16700 cat >>confdefs.h <<_ACEOF
16701 #define HAVE_LIBDGC 1
16702 _ACEOF
16704 LIBS="-ldgc $LIBS"
16713 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16714 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16715 # Irix 4.0.5F has the header but not the library.
16716 if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
16717 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
16718 gl_have_func=yes
16720 $as_echo "#define SVR4 1" >>confdefs.h
16724 if test $gl_have_func = no; then
16725 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
16726 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
16727 gl_have_func=yes
16729 $as_echo "#define UMAX 1" >>confdefs.h
16732 $as_echo "#define UMAX4_3 1" >>confdefs.h
16739 if test $gl_have_func = no; then
16740 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
16741 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
16742 gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
16749 if test $gl_have_func = no; then
16750 for ac_header in mach/mach.h
16751 do :
16752 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
16753 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
16754 cat >>confdefs.h <<_ACEOF
16755 #define HAVE_MACH_MACH_H 1
16756 _ACEOF
16760 done
16764 for ac_header in nlist.h
16765 do :
16766 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
16767 if test "x$ac_cv_header_nlist_h" = x""yes; then :
16768 cat >>confdefs.h <<_ACEOF
16769 #define HAVE_NLIST_H 1
16770 _ACEOF
16771 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
16773 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
16775 cat >>confdefs.h <<_ACEOF
16776 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16777 _ACEOF
16782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16783 /* end confdefs.h. */
16784 #include <nlist.h>
16786 main ()
16788 struct nlist x;
16789 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
16790 x.n_un.n_name = "";
16791 #else
16792 x.n_name = "";
16793 #endif
16795 return 0;
16797 _ACEOF
16798 if ac_fn_c_try_link "$LINENO"; then :
16800 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
16803 rm -f core conftest.err conftest.$ac_objext \
16804 conftest$ac_exeext conftest.$ac_ext
16808 done
16814 if test "x$gl_save_LIBS" = x; then
16815 GETLOADAVG_LIBS=$LIBS
16816 else
16817 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
16819 LIBS=$gl_save_LIBS
16822 # Test whether the system declares getloadavg. Solaris has the function
16823 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
16824 for ac_header in sys/loadavg.h
16825 do :
16826 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
16827 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
16828 cat >>confdefs.h <<_ACEOF
16829 #define HAVE_SYS_LOADAVG_H 1
16830 _ACEOF
16834 done
16836 if test $ac_cv_header_sys_loadavg_h = yes; then
16837 HAVE_SYS_LOADAVG_H=1
16838 else
16839 HAVE_SYS_LOADAVG_H=0
16841 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
16842 # include <sys/loadavg.h>
16843 #endif
16844 #include <stdlib.h>
16846 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
16848 else
16849 HAVE_DECL_GETLOADAVG=0
16856 GNULIB_GETLOADAVG=1
16860 # Code from module getopt-gnu:
16867 # Code from module getopt-posix:
16873 if test -n "$gl_replace_getopt"; then :
16877 GETOPT_H=getopt.h
16879 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16883 GNULIB_UNISTD_H_GETOPT=1
16892 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
16902 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
16912 # Code from module gettext-h:
16915 # Code from module ignore-value:
16917 # Code from module include_next:
16918 # Code from module intprops:
16919 # Code from module inttypes-incomplete:
16934 if test $gl_cv_have_include_next = yes; then
16935 gl_cv_next_inttypes_h='<'inttypes.h'>'
16936 else
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
16938 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
16939 if test "${gl_cv_next_inttypes_h+set}" = set; then :
16940 $as_echo_n "(cached) " >&6
16941 else
16943 if test $ac_cv_header_inttypes_h = yes; then
16946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16947 /* end confdefs.h. */
16948 #include <inttypes.h>
16950 _ACEOF
16951 case "$host_os" in
16952 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16953 *) gl_absname_cpp="$ac_cpp" ;;
16954 esac
16955 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16956 sed -n '\#/inttypes.h#{
16957 s#.*"\(.*/inttypes.h\)".*#\1#
16958 s#^/[^/]#//&#
16961 }'`'"'
16962 else
16963 gl_cv_next_inttypes_h='<'inttypes.h'>'
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
16969 $as_echo "$gl_cv_next_inttypes_h" >&6; }
16971 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
16973 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16974 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16975 gl_next_as_first_directive='<'inttypes.h'>'
16976 else
16977 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16978 gl_next_as_first_directive=$gl_cv_next_inttypes_h
16980 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
16989 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
16995 # Code from module lstat:
16999 if test $ac_cv_func_lstat = yes; then
17001 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
17002 REPLACE_LSTAT=1
17004 # Prerequisites of lib/lstat.c.
17006 else
17007 HAVE_LSTAT=0
17013 GNULIB_LSTAT=1
17017 # Code from module mktime:
17023 if test $APPLE_UNIVERSAL_BUILD = 1; then
17024 # A universal build on Apple MacOS X platforms.
17025 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
17026 # But we need a configuration result that is valid in both modes.
17027 ac_cv_func_working_mktime=no
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
17030 $as_echo_n "checking for working mktime... " >&6; }
17031 if test "${ac_cv_func_working_mktime+set}" = set; then :
17032 $as_echo_n "(cached) " >&6
17033 else
17034 if test "$cross_compiling" = yes; then :
17035 ac_cv_func_working_mktime=no
17036 else
17037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17038 /* end confdefs.h. */
17039 /* Test program from Paul Eggert and Tony Leneis. */
17040 #include <limits.h>
17041 #include <stdlib.h>
17042 #include <time.h>
17044 #ifdef HAVE_UNISTD_H
17045 # include <unistd.h>
17046 #endif
17048 #ifndef HAVE_ALARM
17049 # define alarm(X) /* empty */
17050 #endif
17052 /* Work around redefinition to rpl_putenv by other config tests. */
17053 #undef putenv
17055 static time_t time_t_max;
17056 static time_t time_t_min;
17058 /* Values we'll use to set the TZ environment variable. */
17059 static char *tz_strings[] = {
17060 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17061 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17063 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17065 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17066 Based on a problem report from Andreas Jaeger. */
17067 static int
17068 spring_forward_gap ()
17070 /* glibc (up to about 1998-10-07) failed this test. */
17071 struct tm tm;
17073 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17074 instead of "TZ=America/Vancouver" in order to detect the bug even
17075 on systems that don't support the Olson extension, or don't have the
17076 full zoneinfo tables installed. */
17077 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17079 tm.tm_year = 98;
17080 tm.tm_mon = 3;
17081 tm.tm_mday = 5;
17082 tm.tm_hour = 2;
17083 tm.tm_min = 0;
17084 tm.tm_sec = 0;
17085 tm.tm_isdst = -1;
17086 return mktime (&tm) != (time_t) -1;
17089 static int
17090 mktime_test1 (time_t now)
17092 struct tm *lt;
17093 return ! (lt = localtime (&now)) || mktime (lt) == now;
17096 static int
17097 mktime_test (time_t now)
17099 return (mktime_test1 (now)
17100 && mktime_test1 ((time_t) (time_t_max - now))
17101 && mktime_test1 ((time_t) (time_t_min + now)));
17104 static int
17105 irix_6_4_bug ()
17107 /* Based on code from Ariel Faigon. */
17108 struct tm tm;
17109 tm.tm_year = 96;
17110 tm.tm_mon = 3;
17111 tm.tm_mday = 0;
17112 tm.tm_hour = 0;
17113 tm.tm_min = 0;
17114 tm.tm_sec = 0;
17115 tm.tm_isdst = -1;
17116 mktime (&tm);
17117 return tm.tm_mon == 2 && tm.tm_mday == 31;
17120 static int
17121 bigtime_test (int j)
17123 struct tm tm;
17124 time_t now;
17125 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17126 now = mktime (&tm);
17127 if (now != (time_t) -1)
17129 struct tm *lt = localtime (&now);
17130 if (! (lt
17131 && lt->tm_year == tm.tm_year
17132 && lt->tm_mon == tm.tm_mon
17133 && lt->tm_mday == tm.tm_mday
17134 && lt->tm_hour == tm.tm_hour
17135 && lt->tm_min == tm.tm_min
17136 && lt->tm_sec == tm.tm_sec
17137 && lt->tm_yday == tm.tm_yday
17138 && lt->tm_wday == tm.tm_wday
17139 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17140 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17141 return 0;
17143 return 1;
17146 static int
17147 year_2050_test ()
17149 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17150 ignoring leap seconds. */
17151 unsigned long int answer = 2527315200UL;
17153 struct tm tm;
17154 time_t t;
17155 tm.tm_year = 2050 - 1900;
17156 tm.tm_mon = 2 - 1;
17157 tm.tm_mday = 1;
17158 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17159 tm.tm_isdst = -1;
17161 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17162 instead of "TZ=America/Vancouver" in order to detect the bug even
17163 on systems that don't support the Olson extension, or don't have the
17164 full zoneinfo tables installed. */
17165 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17167 t = mktime (&tm);
17169 /* Check that the result is either a failure, or close enough
17170 to the correct answer that we can assume the discrepancy is
17171 due to leap seconds. */
17172 return (t == (time_t) -1
17173 || (0 < t && answer - 120 <= t && t <= answer + 120));
17177 main ()
17179 int result = 0;
17180 time_t t, delta;
17181 int i, j;
17182 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
17183 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
17185 /* This test makes some buggy mktime implementations loop.
17186 Give up after 60 seconds; a mktime slower than that
17187 isn't worth using anyway. */
17188 alarm (60);
17190 time_t_max = (! time_t_signed
17191 ? (time_t) -1
17192 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
17193 * 2 + 1));
17194 time_t_min = (! time_t_signed
17195 ? (time_t) 0
17196 : time_t_signed_magnitude
17197 ? ~ (time_t) 0
17198 : ~ time_t_max);
17200 delta = time_t_max / 997; /* a suitable prime number */
17201 for (i = 0; i < N_STRINGS; i++)
17203 if (tz_strings[i])
17204 putenv (tz_strings[i]);
17206 for (t = 0; t <= time_t_max - delta; t += delta)
17207 if (! mktime_test (t))
17208 result |= 1;
17209 if (! (mktime_test ((time_t) 1)
17210 && mktime_test ((time_t) (60 * 60))
17211 && mktime_test ((time_t) (60 * 60 * 24))))
17212 result |= 2;
17214 for (j = 1; ; j <<= 1)
17215 if (! bigtime_test (j))
17216 result |= 4;
17217 else if (INT_MAX / 2 < j)
17218 break;
17219 if (! bigtime_test (INT_MAX))
17220 result |= 8;
17222 if (! irix_6_4_bug ())
17223 result |= 16;
17224 if (! spring_forward_gap ())
17225 result |= 32;
17226 if (! year_2050_test ())
17227 result |= 64;
17228 return result;
17230 _ACEOF
17231 if ac_fn_c_try_run "$LINENO"; then :
17232 ac_cv_func_working_mktime=yes
17233 else
17234 ac_cv_func_working_mktime=no
17236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17237 conftest.$ac_objext conftest.beam conftest.$ac_ext
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
17242 $as_echo "$ac_cv_func_working_mktime" >&6; }
17243 if test $ac_cv_func_working_mktime = no; then
17252 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
17256 if test $ac_cv_func_working_mktime = no; then
17257 REPLACE_MKTIME=1
17261 else
17262 REPLACE_MKTIME=0
17268 GNULIB_MKTIME=1
17272 # Code from module multiarch:
17274 # Code from module readlink:
17278 if test $ac_cv_func_readlink = no; then
17279 HAVE_READLINK=0
17288 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
17293 else
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
17295 $as_echo_n "checking whether readlink signature is correct... " >&6; }
17296 if test "${gl_cv_decl_readlink_works+set}" = set; then :
17297 $as_echo_n "(cached) " >&6
17298 else
17299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17300 /* end confdefs.h. */
17301 #include <unistd.h>
17302 /* Cause compilation failure if original declaration has wrong type. */
17303 ssize_t readlink (const char *, char *, size_t);
17305 main ()
17309 return 0;
17311 _ACEOF
17312 if ac_fn_c_try_compile "$LINENO"; then :
17313 gl_cv_decl_readlink_works=yes
17314 else
17315 gl_cv_decl_readlink_works=no
17317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
17320 $as_echo "$gl_cv_decl_readlink_works" >&6; }
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
17322 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
17323 if test "${gl_cv_func_readlink_works+set}" = set; then :
17324 $as_echo_n "(cached) " >&6
17325 else
17326 # We have readlink, so assume ln -s works.
17327 ln -s conftest.no-such conftest.link
17328 ln -s conftest.link conftest.lnk2
17329 if test "$cross_compiling" = yes; then :
17330 gl_cv_func_readlink_works="guessing no"
17331 else
17332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17333 /* end confdefs.h. */
17334 #include <unistd.h>
17337 main ()
17339 char buf[20];
17340 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
17342 return 0;
17344 _ACEOF
17345 if ac_fn_c_try_run "$LINENO"; then :
17346 gl_cv_func_readlink_works=yes
17347 else
17348 gl_cv_func_readlink_works=no
17350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17351 conftest.$ac_objext conftest.beam conftest.$ac_ext
17354 rm -f conftest.link conftest.lnk2
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
17357 $as_echo "$gl_cv_func_readlink_works" >&6; }
17358 if test "$gl_cv_func_readlink_works" != yes; then
17360 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
17362 REPLACE_READLINK=1
17371 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
17373 elif test "$gl_cv_decl_readlink_works" != yes; then
17374 REPLACE_READLINK=1
17383 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
17391 GNULIB_READLINK=1
17395 # Code from module socklen:
17396 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
17397 /* <sys/types.h> is not needed according to POSIX, but the
17398 <sys/socket.h> in i386-unknown-freebsd4.10 and
17399 powerpc-apple-darwin5.5 required it. */
17400 #include <sys/types.h>
17401 #if HAVE_SYS_SOCKET_H
17402 # include <sys/socket.h>
17403 #elif HAVE_WS2TCPIP_H
17404 # include <ws2tcpip.h>
17405 #endif
17408 if test "x$ac_cv_type_socklen_t" = x""yes; then :
17410 else
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
17412 $as_echo_n "checking for socklen_t equivalent... " >&6; }
17413 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
17414 $as_echo_n "(cached) " >&6
17415 else
17416 # Systems have either "struct sockaddr *" or
17417 # "void *" as the second argument to getpeername
17418 gl_cv_socklen_t_equiv=
17419 for arg2 in "struct sockaddr" void; do
17420 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
17421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17422 /* end confdefs.h. */
17423 #include <sys/types.h>
17424 #include <sys/socket.h>
17426 int getpeername (int, $arg2 *, $t *);
17428 main ()
17430 $t len;
17431 getpeername (0, 0, &len);
17433 return 0;
17435 _ACEOF
17436 if ac_fn_c_try_compile "$LINENO"; then :
17437 gl_cv_socklen_t_equiv="$t"
17439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17440 test "$gl_cv_socklen_t_equiv" != "" && break
17441 done
17442 test "$gl_cv_socklen_t_equiv" != "" && break
17443 done
17447 if test "$gl_cv_socklen_t_equiv" = ""; then
17448 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
17451 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
17453 cat >>confdefs.h <<_ACEOF
17454 #define socklen_t $gl_cv_socklen_t_equiv
17455 _ACEOF
17459 # Code from module ssize_t:
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17462 $as_echo_n "checking for ssize_t... " >&6; }
17463 if test "${gt_cv_ssize_t+set}" = set; then :
17464 $as_echo_n "(cached) " >&6
17465 else
17466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17467 /* end confdefs.h. */
17468 #include <sys/types.h>
17470 main ()
17472 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17473 return !x;
17475 return 0;
17477 _ACEOF
17478 if ac_fn_c_try_compile "$LINENO"; then :
17479 gt_cv_ssize_t=yes
17480 else
17481 gt_cv_ssize_t=no
17483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
17486 $as_echo "$gt_cv_ssize_t" >&6; }
17487 if test $gt_cv_ssize_t = no; then
17489 $as_echo "#define ssize_t int" >>confdefs.h
17493 # Code from module stat:
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
17498 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
17499 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
17500 $as_echo_n "(cached) " >&6
17501 else
17502 if test "$cross_compiling" = yes; then :
17503 case $host_os in
17504 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
17505 *) gl_cv_func_stat_dir_slash="guessing yes";;
17506 esac
17507 else
17508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17509 /* end confdefs.h. */
17510 #include <sys/stat.h>
17513 main ()
17515 struct stat st; return stat (".", &st) != stat ("./", &st);
17517 return 0;
17519 _ACEOF
17520 if ac_fn_c_try_run "$LINENO"; then :
17521 gl_cv_func_stat_dir_slash=yes
17522 else
17523 gl_cv_func_stat_dir_slash=no
17525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17526 conftest.$ac_objext conftest.beam conftest.$ac_ext
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
17531 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
17533 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
17534 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
17535 $as_echo_n "(cached) " >&6
17536 else
17537 touch conftest.tmp
17538 # Assume that if we have lstat, we can also check symlinks.
17539 if test $ac_cv_func_lstat = yes; then
17540 ln -s conftest.tmp conftest.lnk
17542 if test "$cross_compiling" = yes; then :
17543 gl_cv_func_stat_file_slash="guessing no"
17544 else
17545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17546 /* end confdefs.h. */
17547 #include <sys/stat.h>
17550 main ()
17552 int result = 0;
17553 struct stat st;
17554 if (!stat ("conftest.tmp/", &st))
17555 result |= 1;
17556 #if HAVE_LSTAT
17557 if (!stat ("conftest.lnk/", &st))
17558 result |= 2;
17559 #endif
17560 return result;
17563 return 0;
17565 _ACEOF
17566 if ac_fn_c_try_run "$LINENO"; then :
17567 gl_cv_func_stat_file_slash=yes
17568 else
17569 gl_cv_func_stat_file_slash=no
17571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17572 conftest.$ac_objext conftest.beam conftest.$ac_ext
17575 rm -f conftest.tmp conftest.lnk
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
17578 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
17579 case $gl_cv_func_stat_dir_slash in
17580 *no) REPLACE_STAT=1
17582 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
17584 esac
17585 case $gl_cv_func_stat_file_slash in
17586 *no) REPLACE_STAT=1
17588 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
17590 esac
17591 if test $REPLACE_STAT = 1; then
17600 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
17608 GNULIB_STAT=1
17612 # Code from module stdbool:
17616 # Define two additional variables used in the Makefile substitution.
17618 if test "$ac_cv_header_stdbool_h" = yes; then
17619 STDBOOL_H=''
17620 else
17621 STDBOOL_H='stdbool.h'
17624 if test -n "$STDBOOL_H"; then
17625 GL_GENERATE_STDBOOL_H_TRUE=
17626 GL_GENERATE_STDBOOL_H_FALSE='#'
17627 else
17628 GL_GENERATE_STDBOOL_H_TRUE='#'
17629 GL_GENERATE_STDBOOL_H_FALSE=
17633 if test "$ac_cv_type__Bool" = yes; then
17634 HAVE__BOOL=1
17635 else
17636 HAVE__BOOL=0
17640 # Code from module stddef:
17644 STDDEF_H=
17645 if test $gt_cv_c_wchar_t = no; then
17646 HAVE_WCHAR_T=0
17647 STDDEF_H=stddef.h
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
17650 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
17651 if test "${gl_cv_decl_null_works+set}" = set; then :
17652 $as_echo_n "(cached) " >&6
17653 else
17654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17655 /* end confdefs.h. */
17656 #include <stddef.h>
17657 int test[2 * (sizeof NULL == sizeof (void *)) -1];
17660 main ()
17664 return 0;
17666 _ACEOF
17667 if ac_fn_c_try_compile "$LINENO"; then :
17668 gl_cv_decl_null_works=yes
17669 else
17670 gl_cv_decl_null_works=no
17672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
17675 $as_echo "$gl_cv_decl_null_works" >&6; }
17676 if test $gl_cv_decl_null_works = no; then
17677 REPLACE_NULL=1
17678 STDDEF_H=stddef.h
17681 if test -n "$STDDEF_H"; then
17682 GL_GENERATE_STDDEF_H_TRUE=
17683 GL_GENERATE_STDDEF_H_FALSE='#'
17684 else
17685 GL_GENERATE_STDDEF_H_TRUE='#'
17686 GL_GENERATE_STDDEF_H_FALSE=
17689 if test -n "$STDDEF_H"; then
17698 if test $gl_cv_have_include_next = yes; then
17699 gl_cv_next_stddef_h='<'stddef.h'>'
17700 else
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
17702 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
17703 if test "${gl_cv_next_stddef_h+set}" = set; then :
17704 $as_echo_n "(cached) " >&6
17705 else
17707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17708 /* end confdefs.h. */
17709 #include <stddef.h>
17711 _ACEOF
17712 case "$host_os" in
17713 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17714 *) gl_absname_cpp="$ac_cpp" ;;
17715 esac
17716 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17717 sed -n '\#/stddef.h#{
17718 s#.*"\(.*/stddef.h\)".*#\1#
17719 s#^/[^/]#//&#
17722 }'`'"'
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
17727 $as_echo "$gl_cv_next_stddef_h" >&6; }
17729 NEXT_STDDEF_H=$gl_cv_next_stddef_h
17731 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17732 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17733 gl_next_as_first_directive='<'stddef.h'>'
17734 else
17735 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17736 gl_next_as_first_directive=$gl_cv_next_stddef_h
17738 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
17745 # Code from module stdint:
17749 if test $ac_cv_type_long_long_int = yes; then
17750 HAVE_LONG_LONG_INT=1
17751 else
17752 HAVE_LONG_LONG_INT=0
17756 if test $ac_cv_type_unsigned_long_long_int = yes; then
17757 HAVE_UNSIGNED_LONG_LONG_INT=1
17758 else
17759 HAVE_UNSIGNED_LONG_LONG_INT=0
17764 if test $ac_cv_header_wchar_h = yes; then
17765 HAVE_WCHAR_H=1
17766 else
17767 HAVE_WCHAR_H=0
17771 if test $ac_cv_header_inttypes_h = yes; then
17772 HAVE_INTTYPES_H=1
17773 else
17774 HAVE_INTTYPES_H=0
17778 if test $ac_cv_header_sys_types_h = yes; then
17779 HAVE_SYS_TYPES_H=1
17780 else
17781 HAVE_SYS_TYPES_H=0
17794 if test $gl_cv_have_include_next = yes; then
17795 gl_cv_next_stdint_h='<'stdint.h'>'
17796 else
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17798 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17799 if test "${gl_cv_next_stdint_h+set}" = set; then :
17800 $as_echo_n "(cached) " >&6
17801 else
17803 if test $ac_cv_header_stdint_h = yes; then
17806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17807 /* end confdefs.h. */
17808 #include <stdint.h>
17810 _ACEOF
17811 case "$host_os" in
17812 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17813 *) gl_absname_cpp="$ac_cpp" ;;
17814 esac
17815 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17816 sed -n '\#/stdint.h#{
17817 s#.*"\(.*/stdint.h\)".*#\1#
17818 s#^/[^/]#//&#
17821 }'`'"'
17822 else
17823 gl_cv_next_stdint_h='<'stdint.h'>'
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17829 $as_echo "$gl_cv_next_stdint_h" >&6; }
17831 NEXT_STDINT_H=$gl_cv_next_stdint_h
17833 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17834 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17835 gl_next_as_first_directive='<'stdint.h'>'
17836 else
17837 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17838 gl_next_as_first_directive=$gl_cv_next_stdint_h
17840 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17845 if test $ac_cv_header_stdint_h = yes; then
17846 HAVE_STDINT_H=1
17847 else
17848 HAVE_STDINT_H=0
17852 if test $ac_cv_header_stdint_h = yes; then
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17854 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17855 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17856 $as_echo_n "(cached) " >&6
17857 else
17858 gl_cv_header_working_stdint_h=no
17859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17860 /* end confdefs.h. */
17863 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17864 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17865 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17866 #include <stdint.h>
17867 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17868 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17869 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17870 #endif
17873 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17874 included before <wchar.h>. */
17875 #include <stddef.h>
17876 #include <signal.h>
17877 #if HAVE_WCHAR_H
17878 # include <stdio.h>
17879 # include <time.h>
17880 # include <wchar.h>
17881 #endif
17884 #ifdef INT8_MAX
17885 int8_t a1 = INT8_MAX;
17886 int8_t a1min = INT8_MIN;
17887 #endif
17888 #ifdef INT16_MAX
17889 int16_t a2 = INT16_MAX;
17890 int16_t a2min = INT16_MIN;
17891 #endif
17892 #ifdef INT32_MAX
17893 int32_t a3 = INT32_MAX;
17894 int32_t a3min = INT32_MIN;
17895 #endif
17896 #ifdef INT64_MAX
17897 int64_t a4 = INT64_MAX;
17898 int64_t a4min = INT64_MIN;
17899 #endif
17900 #ifdef UINT8_MAX
17901 uint8_t b1 = UINT8_MAX;
17902 #else
17903 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17904 #endif
17905 #ifdef UINT16_MAX
17906 uint16_t b2 = UINT16_MAX;
17907 #endif
17908 #ifdef UINT32_MAX
17909 uint32_t b3 = UINT32_MAX;
17910 #endif
17911 #ifdef UINT64_MAX
17912 uint64_t b4 = UINT64_MAX;
17913 #endif
17914 int_least8_t c1 = INT8_C (0x7f);
17915 int_least8_t c1max = INT_LEAST8_MAX;
17916 int_least8_t c1min = INT_LEAST8_MIN;
17917 int_least16_t c2 = INT16_C (0x7fff);
17918 int_least16_t c2max = INT_LEAST16_MAX;
17919 int_least16_t c2min = INT_LEAST16_MIN;
17920 int_least32_t c3 = INT32_C (0x7fffffff);
17921 int_least32_t c3max = INT_LEAST32_MAX;
17922 int_least32_t c3min = INT_LEAST32_MIN;
17923 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17924 int_least64_t c4max = INT_LEAST64_MAX;
17925 int_least64_t c4min = INT_LEAST64_MIN;
17926 uint_least8_t d1 = UINT8_C (0xff);
17927 uint_least8_t d1max = UINT_LEAST8_MAX;
17928 uint_least16_t d2 = UINT16_C (0xffff);
17929 uint_least16_t d2max = UINT_LEAST16_MAX;
17930 uint_least32_t d3 = UINT32_C (0xffffffff);
17931 uint_least32_t d3max = UINT_LEAST32_MAX;
17932 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17933 uint_least64_t d4max = UINT_LEAST64_MAX;
17934 int_fast8_t e1 = INT_FAST8_MAX;
17935 int_fast8_t e1min = INT_FAST8_MIN;
17936 int_fast16_t e2 = INT_FAST16_MAX;
17937 int_fast16_t e2min = INT_FAST16_MIN;
17938 int_fast32_t e3 = INT_FAST32_MAX;
17939 int_fast32_t e3min = INT_FAST32_MIN;
17940 int_fast64_t e4 = INT_FAST64_MAX;
17941 int_fast64_t e4min = INT_FAST64_MIN;
17942 uint_fast8_t f1 = UINT_FAST8_MAX;
17943 uint_fast16_t f2 = UINT_FAST16_MAX;
17944 uint_fast32_t f3 = UINT_FAST32_MAX;
17945 uint_fast64_t f4 = UINT_FAST64_MAX;
17946 #ifdef INTPTR_MAX
17947 intptr_t g = INTPTR_MAX;
17948 intptr_t gmin = INTPTR_MIN;
17949 #endif
17950 #ifdef UINTPTR_MAX
17951 uintptr_t h = UINTPTR_MAX;
17952 #endif
17953 intmax_t i = INTMAX_MAX;
17954 uintmax_t j = UINTMAX_MAX;
17956 #include <limits.h> /* for CHAR_BIT */
17957 #define TYPE_MINIMUM(t) \
17958 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17959 #define TYPE_MAXIMUM(t) \
17960 ((t) ((t) 0 < (t) -1 \
17961 ? (t) -1 \
17962 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17963 struct s {
17964 int check_PTRDIFF:
17965 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17966 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17967 ? 1 : -1;
17968 /* Detect bug in FreeBSD 6.0 / ia64. */
17969 int check_SIG_ATOMIC:
17970 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17971 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17972 ? 1 : -1;
17973 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17974 int check_WCHAR:
17975 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17976 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17977 ? 1 : -1;
17978 /* Detect bug in mingw. */
17979 int check_WINT:
17980 WINT_MIN == TYPE_MINIMUM (wint_t)
17981 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17982 ? 1 : -1;
17984 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17985 int check_UINT8_C:
17986 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17987 int check_UINT16_C:
17988 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17990 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17991 #ifdef UINT8_MAX
17992 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17993 #endif
17994 #ifdef UINT16_MAX
17995 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17996 #endif
17997 #ifdef UINT32_MAX
17998 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17999 #endif
18000 #ifdef UINT64_MAX
18001 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18002 #endif
18003 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18004 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18005 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18006 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18007 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18008 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18009 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18010 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18011 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18012 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18013 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18017 main ()
18021 return 0;
18023 _ACEOF
18024 if ac_fn_c_try_compile "$LINENO"; then :
18025 if test "$cross_compiling" = yes; then :
18026 gl_cv_header_working_stdint_h=yes
18028 else
18029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18030 /* end confdefs.h. */
18033 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
18034 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
18035 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18036 #include <stdint.h>
18039 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18040 included before <wchar.h>. */
18041 #include <stddef.h>
18042 #include <signal.h>
18043 #if HAVE_WCHAR_H
18044 # include <stdio.h>
18045 # include <time.h>
18046 # include <wchar.h>
18047 #endif
18050 #include <stdio.h>
18051 #include <string.h>
18052 #define MVAL(macro) MVAL1(macro)
18053 #define MVAL1(expression) #expression
18054 static const char *macro_values[] =
18056 #ifdef INT8_MAX
18057 MVAL (INT8_MAX),
18058 #endif
18059 #ifdef INT16_MAX
18060 MVAL (INT16_MAX),
18061 #endif
18062 #ifdef INT32_MAX
18063 MVAL (INT32_MAX),
18064 #endif
18065 #ifdef INT64_MAX
18066 MVAL (INT64_MAX),
18067 #endif
18068 #ifdef UINT8_MAX
18069 MVAL (UINT8_MAX),
18070 #endif
18071 #ifdef UINT16_MAX
18072 MVAL (UINT16_MAX),
18073 #endif
18074 #ifdef UINT32_MAX
18075 MVAL (UINT32_MAX),
18076 #endif
18077 #ifdef UINT64_MAX
18078 MVAL (UINT64_MAX),
18079 #endif
18080 NULL
18084 main ()
18087 const char **mv;
18088 for (mv = macro_values; *mv != NULL; mv++)
18090 const char *value = *mv;
18091 /* Test whether it looks like a cast expression. */
18092 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18093 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18094 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18095 || strncmp (value, "((int)"/*)*/, 6) == 0
18096 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18097 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18098 return mv - macro_values + 1;
18100 return 0;
18103 return 0;
18105 _ACEOF
18106 if ac_fn_c_try_run "$LINENO"; then :
18107 gl_cv_header_working_stdint_h=yes
18109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18110 conftest.$ac_objext conftest.beam conftest.$ac_ext
18115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18119 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18121 if test "$gl_cv_header_working_stdint_h" = yes; then
18122 STDINT_H=
18123 else
18124 for ac_header in sys/inttypes.h sys/bitypes.h
18125 do :
18126 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18127 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18128 eval as_val=\$$as_ac_Header
18129 if test "x$as_val" = x""yes; then :
18130 cat >>confdefs.h <<_ACEOF
18131 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18132 _ACEOF
18136 done
18138 if test $ac_cv_header_sys_inttypes_h = yes; then
18139 HAVE_SYS_INTTYPES_H=1
18140 else
18141 HAVE_SYS_INTTYPES_H=0
18144 if test $ac_cv_header_sys_bitypes_h = yes; then
18145 HAVE_SYS_BITYPES_H=1
18146 else
18147 HAVE_SYS_BITYPES_H=0
18153 if test $APPLE_UNIVERSAL_BUILD = 0; then
18156 for gltype in ptrdiff_t size_t ; do
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18158 $as_echo_n "checking for bit size of $gltype... " >&6; }
18159 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18160 $as_echo_n "(cached) " >&6
18161 else
18162 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18163 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18164 included before <wchar.h>. */
18165 #include <stddef.h>
18166 #include <signal.h>
18167 #if HAVE_WCHAR_H
18168 # include <stdio.h>
18169 # include <time.h>
18170 # include <wchar.h>
18171 #endif
18173 #include <limits.h>"; then :
18175 else
18176 result=unknown
18179 eval gl_cv_bitsizeof_${gltype}=\$result
18182 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18184 $as_echo "$ac_res" >&6; }
18185 eval result=\$gl_cv_bitsizeof_${gltype}
18186 if test $result = unknown; then
18187 result=0
18189 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18190 cat >>confdefs.h <<_ACEOF
18191 #define BITSIZEOF_${GLTYPE} $result
18192 _ACEOF
18194 eval BITSIZEOF_${GLTYPE}=\$result
18195 done
18201 for gltype in sig_atomic_t wchar_t wint_t ; do
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18203 $as_echo_n "checking for bit size of $gltype... " >&6; }
18204 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18205 $as_echo_n "(cached) " >&6
18206 else
18207 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18208 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18209 included before <wchar.h>. */
18210 #include <stddef.h>
18211 #include <signal.h>
18212 #if HAVE_WCHAR_H
18213 # include <stdio.h>
18214 # include <time.h>
18215 # include <wchar.h>
18216 #endif
18218 #include <limits.h>"; then :
18220 else
18221 result=unknown
18224 eval gl_cv_bitsizeof_${gltype}=\$result
18227 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18229 $as_echo "$ac_res" >&6; }
18230 eval result=\$gl_cv_bitsizeof_${gltype}
18231 if test $result = unknown; then
18232 result=0
18234 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18235 cat >>confdefs.h <<_ACEOF
18236 #define BITSIZEOF_${GLTYPE} $result
18237 _ACEOF
18239 eval BITSIZEOF_${GLTYPE}=\$result
18240 done
18245 for gltype in sig_atomic_t wchar_t wint_t ; do
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18247 $as_echo_n "checking whether $gltype is signed... " >&6; }
18248 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18249 $as_echo_n "(cached) " >&6
18250 else
18251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18252 /* end confdefs.h. */
18254 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18255 included before <wchar.h>. */
18256 #include <stddef.h>
18257 #include <signal.h>
18258 #if HAVE_WCHAR_H
18259 # include <stdio.h>
18260 # include <time.h>
18261 # include <wchar.h>
18262 #endif
18264 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18266 main ()
18270 return 0;
18272 _ACEOF
18273 if ac_fn_c_try_compile "$LINENO"; then :
18274 result=yes
18275 else
18276 result=no
18278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18279 eval gl_cv_type_${gltype}_signed=\$result
18282 eval ac_res=\$gl_cv_type_${gltype}_signed
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18284 $as_echo "$ac_res" >&6; }
18285 eval result=\$gl_cv_type_${gltype}_signed
18286 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18287 if test "$result" = yes; then
18288 cat >>confdefs.h <<_ACEOF
18289 #define HAVE_SIGNED_${GLTYPE} 1
18290 _ACEOF
18292 eval HAVE_SIGNED_${GLTYPE}=1
18293 else
18294 eval HAVE_SIGNED_${GLTYPE}=0
18296 done
18299 gl_cv_type_ptrdiff_t_signed=yes
18300 gl_cv_type_size_t_signed=no
18301 if test $APPLE_UNIVERSAL_BUILD = 0; then
18304 for gltype in ptrdiff_t size_t ; do
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18306 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18307 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18308 $as_echo_n "(cached) " >&6
18309 else
18310 eval gl_cv_type_${gltype}_suffix=no
18311 eval result=\$gl_cv_type_${gltype}_signed
18312 if test "$result" = yes; then
18313 glsufu=
18314 else
18315 glsufu=u
18317 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18318 case $glsuf in
18319 '') gltype1='int';;
18320 l) gltype1='long int';;
18321 ll) gltype1='long long int';;
18322 i64) gltype1='__int64';;
18323 u) gltype1='unsigned int';;
18324 ul) gltype1='unsigned long int';;
18325 ull) gltype1='unsigned long long int';;
18326 ui64)gltype1='unsigned __int64';;
18327 esac
18328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18329 /* end confdefs.h. */
18331 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18332 included before <wchar.h>. */
18333 #include <stddef.h>
18334 #include <signal.h>
18335 #if HAVE_WCHAR_H
18336 # include <stdio.h>
18337 # include <time.h>
18338 # include <wchar.h>
18339 #endif
18341 extern $gltype foo;
18342 extern $gltype1 foo;
18344 main ()
18348 return 0;
18350 _ACEOF
18351 if ac_fn_c_try_compile "$LINENO"; then :
18352 eval gl_cv_type_${gltype}_suffix=\$glsuf
18354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18355 eval result=\$gl_cv_type_${gltype}_suffix
18356 test "$result" != no && break
18357 done
18359 eval ac_res=\$gl_cv_type_${gltype}_suffix
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18361 $as_echo "$ac_res" >&6; }
18362 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18363 eval result=\$gl_cv_type_${gltype}_suffix
18364 test "$result" = no && result=
18365 eval ${GLTYPE}_SUFFIX=\$result
18366 cat >>confdefs.h <<_ACEOF
18367 #define ${GLTYPE}_SUFFIX $result
18368 _ACEOF
18370 done
18376 for gltype in sig_atomic_t wchar_t wint_t ; do
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18378 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18379 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18380 $as_echo_n "(cached) " >&6
18381 else
18382 eval gl_cv_type_${gltype}_suffix=no
18383 eval result=\$gl_cv_type_${gltype}_signed
18384 if test "$result" = yes; then
18385 glsufu=
18386 else
18387 glsufu=u
18389 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18390 case $glsuf in
18391 '') gltype1='int';;
18392 l) gltype1='long int';;
18393 ll) gltype1='long long int';;
18394 i64) gltype1='__int64';;
18395 u) gltype1='unsigned int';;
18396 ul) gltype1='unsigned long int';;
18397 ull) gltype1='unsigned long long int';;
18398 ui64)gltype1='unsigned __int64';;
18399 esac
18400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18401 /* end confdefs.h. */
18403 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18404 included before <wchar.h>. */
18405 #include <stddef.h>
18406 #include <signal.h>
18407 #if HAVE_WCHAR_H
18408 # include <stdio.h>
18409 # include <time.h>
18410 # include <wchar.h>
18411 #endif
18413 extern $gltype foo;
18414 extern $gltype1 foo;
18416 main ()
18420 return 0;
18422 _ACEOF
18423 if ac_fn_c_try_compile "$LINENO"; then :
18424 eval gl_cv_type_${gltype}_suffix=\$glsuf
18426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18427 eval result=\$gl_cv_type_${gltype}_suffix
18428 test "$result" != no && break
18429 done
18431 eval ac_res=\$gl_cv_type_${gltype}_suffix
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18433 $as_echo "$ac_res" >&6; }
18434 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18435 eval result=\$gl_cv_type_${gltype}_suffix
18436 test "$result" = no && result=
18437 eval ${GLTYPE}_SUFFIX=\$result
18438 cat >>confdefs.h <<_ACEOF
18439 #define ${GLTYPE}_SUFFIX $result
18440 _ACEOF
18442 done
18446 STDINT_H=stdint.h
18449 if test -n "$STDINT_H"; then
18450 GL_GENERATE_STDINT_H_TRUE=
18451 GL_GENERATE_STDINT_H_FALSE='#'
18452 else
18453 GL_GENERATE_STDINT_H_TRUE='#'
18454 GL_GENERATE_STDINT_H_FALSE=
18458 # Code from module stdio:
18470 if test $gl_cv_have_include_next = yes; then
18471 gl_cv_next_stdio_h='<'stdio.h'>'
18472 else
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
18474 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
18475 if test "${gl_cv_next_stdio_h+set}" = set; then :
18476 $as_echo_n "(cached) " >&6
18477 else
18479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18480 /* end confdefs.h. */
18481 #include <stdio.h>
18483 _ACEOF
18484 case "$host_os" in
18485 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18486 *) gl_absname_cpp="$ac_cpp" ;;
18487 esac
18488 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18489 sed -n '\#/stdio.h#{
18490 s#.*"\(.*/stdio.h\)".*#\1#
18491 s#^/[^/]#//&#
18494 }'`'"'
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
18499 $as_echo "$gl_cv_next_stdio_h" >&6; }
18501 NEXT_STDIO_H=$gl_cv_next_stdio_h
18503 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18504 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18505 gl_next_as_first_directive='<'stdio.h'>'
18506 else
18507 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18508 gl_next_as_first_directive=$gl_cv_next_stdio_h
18510 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
18516 GNULIB_FSCANF=1
18517 GNULIB_SCANF=1
18518 GNULIB_VFSCANF=1
18519 GNULIB_VSCANF=1
18520 GNULIB_FGETC=1
18521 GNULIB_GETC=1
18522 GNULIB_GETCHAR=1
18523 GNULIB_FGETS=1
18524 GNULIB_GETS=1
18525 GNULIB_FREAD=1
18528 GNULIB_FPRINTF=1
18529 GNULIB_PRINTF=1
18530 GNULIB_VFPRINTF=1
18531 GNULIB_VPRINTF=1
18532 GNULIB_FPUTC=1
18533 GNULIB_PUTC=1
18534 GNULIB_PUTCHAR=1
18535 GNULIB_FPUTS=1
18536 GNULIB_PUTS=1
18537 GNULIB_FWRITE=1
18543 # Code from module stdlib:
18554 if test $gl_cv_have_include_next = yes; then
18555 gl_cv_next_stdlib_h='<'stdlib.h'>'
18556 else
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
18558 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
18559 if test "${gl_cv_next_stdlib_h+set}" = set; then :
18560 $as_echo_n "(cached) " >&6
18561 else
18563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18564 /* end confdefs.h. */
18565 #include <stdlib.h>
18567 _ACEOF
18568 case "$host_os" in
18569 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18570 *) gl_absname_cpp="$ac_cpp" ;;
18571 esac
18572 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18573 sed -n '\#/stdlib.h#{
18574 s#.*"\(.*/stdlib.h\)".*#\1#
18575 s#^/[^/]#//&#
18578 }'`'"'
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
18583 $as_echo "$gl_cv_next_stdlib_h" >&6; }
18585 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
18587 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18588 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18589 gl_next_as_first_directive='<'stdlib.h'>'
18590 else
18591 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18592 gl_next_as_first_directive=$gl_cv_next_stdlib_h
18594 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
18602 # Code from module strftime:
18613 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
18616 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
18624 $as_echo "#define my_strftime nstrftime" >>confdefs.h
18628 # Code from module strtoull:
18632 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
18641 for ac_func in strtoull
18642 do :
18643 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
18644 if test "x$ac_cv_func_strtoull" = x""yes; then :
18645 cat >>confdefs.h <<_ACEOF
18646 #define HAVE_STRTOULL 1
18647 _ACEOF
18649 else
18651 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
18654 done
18657 if test $ac_cv_func_strtoull = no; then
18658 HAVE_STRTOULL=0
18668 GNULIB_STRTOULL=1
18672 # Code from module strtoumax:
18677 if test "$ac_cv_have_decl_strtoumax" != yes; then
18678 HAVE_DECL_STRTOUMAX=0
18688 for ac_func in strtoumax
18689 do :
18690 ac_fn_c_check_func "$LINENO" "strtoumax" "ac_cv_func_strtoumax"
18691 if test "x$ac_cv_func_strtoumax" = x""yes; then :
18692 cat >>confdefs.h <<_ACEOF
18693 #define HAVE_STRTOUMAX 1
18694 _ACEOF
18696 else
18698 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
18701 done
18704 if test $ac_cv_func_strtoumax = no; then
18706 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
18707 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
18708 ac_have_decl=1
18709 else
18710 ac_have_decl=0
18713 cat >>confdefs.h <<_ACEOF
18714 #define HAVE_DECL_STRTOULL $ac_have_decl
18715 _ACEOF
18725 GNULIB_STRTOUMAX=1
18728 # Code from module symlink:
18732 if test $ac_cv_func_symlink = no; then
18733 HAVE_SYMLINK=0
18742 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
18744 else
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
18746 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
18747 if test "${gl_cv_func_symlink_works+set}" = set; then :
18748 $as_echo_n "(cached) " >&6
18749 else
18750 if test "$cross_compiling" = yes; then :
18751 gl_cv_func_symlink_works="guessing no"
18752 else
18753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18754 /* end confdefs.h. */
18755 #include <unistd.h>
18758 main ()
18760 int result = 0;
18761 if (!symlink ("a", "conftest.link/"))
18762 result |= 1;
18763 if (symlink ("conftest.f", "conftest.lnk2"))
18764 result |= 2;
18765 else if (!symlink ("a", "conftest.lnk2/"))
18766 result |= 4;
18767 return result;
18770 return 0;
18772 _ACEOF
18773 if ac_fn_c_try_run "$LINENO"; then :
18774 gl_cv_func_symlink_works=yes
18775 else
18776 gl_cv_func_symlink_works=no
18778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18779 conftest.$ac_objext conftest.beam conftest.$ac_ext
18782 rm -f conftest.f conftest.link conftest.lnk2
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
18785 $as_echo "$gl_cv_func_symlink_works" >&6; }
18786 if test "$gl_cv_func_symlink_works" != yes; then
18787 REPLACE_SYMLINK=1
18796 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
18804 GNULIB_SYMLINK=1
18808 # Code from module sys_stat:
18825 if test $gl_cv_have_include_next = yes; then
18826 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18827 else
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
18829 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
18830 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
18831 $as_echo_n "(cached) " >&6
18832 else
18834 if test $ac_cv_header_sys_stat_h = yes; then
18837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18838 /* end confdefs.h. */
18839 #include <sys/stat.h>
18841 _ACEOF
18842 case "$host_os" in
18843 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18844 *) gl_absname_cpp="$ac_cpp" ;;
18845 esac
18846 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18847 sed -n '\#/sys/stat.h#{
18848 s#.*"\(.*/sys/stat.h\)".*#\1#
18849 s#^/[^/]#//&#
18852 }'`'"'
18853 else
18854 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
18860 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
18862 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
18864 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18865 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18866 gl_next_as_first_directive='<'sys/stat.h'>'
18867 else
18868 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18869 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
18871 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
18877 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
18878 #include <sys/stat.h>
18880 if test "x$ac_cv_type_nlink_t" = x""yes; then :
18882 else
18884 $as_echo "#define nlink_t int" >>confdefs.h
18892 # Code from module time:
18896 # Code from module time_r:
18904 if test $ac_cv_have_decl_localtime_r = no; then
18905 HAVE_DECL_LOCALTIME_R=0
18909 if test $ac_cv_func_localtime_r = yes; then
18910 HAVE_LOCALTIME_R=1
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
18912 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
18913 if test "${gl_cv_time_r_posix+set}" = set; then :
18914 $as_echo_n "(cached) " >&6
18915 else
18916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18917 /* end confdefs.h. */
18918 #include <time.h>
18920 main ()
18922 /* We don't need to append 'restrict's to the argument types,
18923 even though the POSIX signature has the 'restrict's,
18924 since C99 says they can't affect type compatibility. */
18925 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
18926 if (ptr) return 0;
18927 /* Check the return type is a pointer.
18928 On HP-UX 10 it is 'int'. */
18929 *localtime_r (0, 0);
18931 return 0;
18934 _ACEOF
18935 if ac_fn_c_try_compile "$LINENO"; then :
18936 gl_cv_time_r_posix=yes
18937 else
18938 gl_cv_time_r_posix=no
18940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
18944 $as_echo "$gl_cv_time_r_posix" >&6; }
18945 if test $gl_cv_time_r_posix = yes; then
18946 REPLACE_LOCALTIME_R=0
18947 else
18948 REPLACE_LOCALTIME_R=1
18950 else
18951 HAVE_LOCALTIME_R=0
18953 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
18962 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
18972 GNULIB_TIME_R=1
18976 # Code from module unistd:
18990 if test $gl_cv_have_include_next = yes; then
18991 gl_cv_next_unistd_h='<'unistd.h'>'
18992 else
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18994 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18995 if test "${gl_cv_next_unistd_h+set}" = set; then :
18996 $as_echo_n "(cached) " >&6
18997 else
18999 if test $ac_cv_header_unistd_h = yes; then
19002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19003 /* end confdefs.h. */
19004 #include <unistd.h>
19006 _ACEOF
19007 case "$host_os" in
19008 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19009 *) gl_absname_cpp="$ac_cpp" ;;
19010 esac
19011 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19012 sed -n '\#/unistd.h#{
19013 s#.*"\(.*/unistd.h\)".*#\1#
19014 s#^/[^/]#//&#
19017 }'`'"'
19018 else
19019 gl_cv_next_unistd_h='<'unistd.h'>'
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
19025 $as_echo "$gl_cv_next_unistd_h" >&6; }
19027 NEXT_UNISTD_H=$gl_cv_next_unistd_h
19029 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19030 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19031 gl_next_as_first_directive='<'unistd.h'>'
19032 else
19033 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19034 gl_next_as_first_directive=$gl_cv_next_unistd_h
19036 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
19041 if test $ac_cv_header_unistd_h = yes; then
19042 HAVE_UNISTD_H=1
19043 else
19044 HAVE_UNISTD_H=0
19050 # Code from module verify:
19051 # Code from module warn-on-use:
19052 # End of code from modules
19062 gltests_libdeps=
19063 gltests_ltlibdeps=
19073 gl_source_base='tests'
19074 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
19076 gl_module_indicator_condition=$gltests_WITNESS
19086 LIBGNU_LIBDEPS="$gl_libdeps"
19088 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
19092 # UNIX98 PTYs.
19093 for ac_func in grantpt
19094 do :
19095 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
19096 if test "x$ac_cv_func_grantpt" = x""yes; then :
19097 cat >>confdefs.h <<_ACEOF
19098 #define HAVE_GRANTPT 1
19099 _ACEOF
19102 done
19105 # PTY-related GNU extensions.
19106 for ac_func in getpt
19107 do :
19108 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
19109 if test "x$ac_cv_func_getpt" = x""yes; then :
19110 cat >>confdefs.h <<_ACEOF
19111 #define HAVE_GETPT 1
19112 _ACEOF
19115 done
19118 # Check this now, so that we will NOT find the above functions in ncurses.
19119 # That is because we have not set up to link ncurses in lib-src.
19120 # It's better to believe a function is not available
19121 # than to expect to find it in ncurses.
19122 # Also we need tputs and friends to be able to build at all.
19123 have_tputs_et_al=true
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
19125 $as_echo_n "checking for library containing tputs... " >&6; }
19126 if test "${ac_cv_search_tputs+set}" = set; then :
19127 $as_echo_n "(cached) " >&6
19128 else
19129 ac_func_search_save_LIBS=$LIBS
19130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19131 /* end confdefs.h. */
19133 /* Override any GCC internal prototype to avoid an error.
19134 Use char because int might match the return type of a GCC
19135 builtin and then its argument prototype would still apply. */
19136 #ifdef __cplusplus
19137 extern "C"
19138 #endif
19139 char tputs ();
19141 main ()
19143 return tputs ();
19145 return 0;
19147 _ACEOF
19148 for ac_lib in '' ncurses terminfo termcap; do
19149 if test -z "$ac_lib"; then
19150 ac_res="none required"
19151 else
19152 ac_res=-l$ac_lib
19153 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19155 if ac_fn_c_try_link "$LINENO"; then :
19156 ac_cv_search_tputs=$ac_res
19158 rm -f core conftest.err conftest.$ac_objext \
19159 conftest$ac_exeext
19160 if test "${ac_cv_search_tputs+set}" = set; then :
19161 break
19163 done
19164 if test "${ac_cv_search_tputs+set}" = set; then :
19166 else
19167 ac_cv_search_tputs=no
19169 rm conftest.$ac_ext
19170 LIBS=$ac_func_search_save_LIBS
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
19173 $as_echo "$ac_cv_search_tputs" >&6; }
19174 ac_res=$ac_cv_search_tputs
19175 if test "$ac_res" != no; then :
19176 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19178 else
19179 have_tputs_et_al=false
19182 if test "$have_tputs_et_al" != true; then
19183 as_fn_error "I couldn't find termcap functions (tputs and friends).
19184 Maybe some development libraries/packages are missing? Try installing
19185 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
19187 # Must define this when any termcap library is found.
19189 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
19191 ## FIXME This was the cpp logic, but I am not sure it is right.
19192 ## The above test has not necessarily found libncurses.
19193 HAVE_LIBNCURSES=yes
19195 ## Use terminfo instead of termcap?
19196 ## Note only system files NOT using terminfo are:
19197 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
19198 ## darwin|gnu without ncurses.
19199 TERMINFO=no
19200 LIBS_TERMCAP=
19201 case "$opsys" in
19202 ## cygwin: Fewer environment variables to go wrong, more terminal types.
19203 ## hpux10-20: Use the system provided termcap(3) library.
19204 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
19205 ## is necessary. Otherwise Emacs dumps core when run -nw.
19206 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
19208 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
19209 ## The ncurses library has been moved out of the System framework in
19210 ## Mac OS X 10.2. So if configure detects it, set the command-line
19211 ## option to use it.
19212 darwin|gnu*)
19213 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
19214 if test "x$HAVE_LIBNCURSES" = "xyes"; then
19215 TERMINFO=yes
19216 LIBS_TERMCAP="-lncurses"
19220 freebsd)
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
19222 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
19223 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
19224 $as_echo_n "(cached) " >&6
19225 else
19226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19227 /* end confdefs.h. */
19228 #include <osreldate.h>
19230 main ()
19232 #if __FreeBSD_version < 400000
19233 fail;
19234 #endif
19237 return 0;
19239 _ACEOF
19240 if ac_fn_c_try_link "$LINENO"; then :
19241 emacs_cv_freebsd_terminfo=yes
19242 else
19243 emacs_cv_freebsd_terminfo=no
19245 rm -f core conftest.err conftest.$ac_objext \
19246 conftest$ac_exeext conftest.$ac_ext
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
19251 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
19253 if test $emacs_cv_freebsd_terminfo = yes; then
19254 TERMINFO=yes
19255 LIBS_TERMCAP="-lncurses"
19256 else
19257 LIBS_TERMCAP="-ltermcap"
19261 netbsd)
19262 if test $ac_cv_search_tputs = -lterminfo; then
19263 TERMINFO=yes
19264 LIBS_TERMCAP="-lterminfo"
19265 else
19266 LIBS_TERMCAP="-ltermcap"
19270 esac
19272 case "$opsys" in
19273 ## hpux: Make sure we get select from libc rather than from libcurses
19274 ## because libcurses on HPUX 10.10 has a broken version of select.
19275 ## We used to use -lc -lcurses, but this may be cleaner.
19276 hpux*) LIBS_TERMCAP="-ltermcap" ;;
19278 openbsd) LIBS_TERMCAP="-lncurses" ;;
19280 ## Must use system termcap, if we use any termcap. It does special things.
19281 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
19282 esac
19284 TERMCAP_OBJ=tparam.o
19285 if test $TERMINFO = yes; then
19287 $as_echo "#define TERMINFO 1" >>confdefs.h
19290 ## Default used to be -ltermcap. Add a case above if need something else.
19291 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
19293 TERMCAP_OBJ=terminfo.o
19299 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19300 resolv=no
19301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19302 /* end confdefs.h. */
19303 #include <netinet/in.h>
19304 #include <arpa/nameser.h>
19305 #include <resolv.h>
19307 main ()
19309 return res_init();
19311 return 0;
19313 _ACEOF
19314 if ac_fn_c_try_link "$LINENO"; then :
19315 have_res_init=yes
19316 else
19317 have_res_init=no
19319 rm -f core conftest.err conftest.$ac_objext \
19320 conftest$ac_exeext conftest.$ac_ext
19321 if test "$have_res_init" = no; then
19322 OLIBS="$LIBS"
19323 LIBS="$LIBS -lresolv"
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
19325 $as_echo_n "checking for res_init with -lresolv... " >&6; }
19326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19327 /* end confdefs.h. */
19328 #include <netinet/in.h>
19329 #include <arpa/nameser.h>
19330 #include <resolv.h>
19332 main ()
19334 return res_init();
19336 return 0;
19338 _ACEOF
19339 if ac_fn_c_try_link "$LINENO"; then :
19340 have_res_init=yes
19341 else
19342 have_res_init=no
19344 rm -f core conftest.err conftest.$ac_objext \
19345 conftest$ac_exeext conftest.$ac_ext
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
19347 $as_echo "$have_res_init" >&6; }
19348 if test "$have_res_init" = yes ; then
19349 resolv=yes
19351 LIBS="$OLIBS"
19354 if test "$have_res_init" = yes; then
19356 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
19360 # Do we need the Hesiod library to provide the support routines?
19361 LIBHESIOD=
19362 if test "$with_hesiod" != no ; then
19363 # Don't set $LIBS here -- see comments above. FIXME which comments?
19364 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
19365 if test "x$ac_cv_func_res_send" = x""yes; then :
19367 else
19368 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
19369 if test "x$ac_cv_func___res_send" = x""yes; then :
19371 else
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
19373 $as_echo_n "checking for res_send in -lresolv... " >&6; }
19374 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
19375 $as_echo_n "(cached) " >&6
19376 else
19377 ac_check_lib_save_LIBS=$LIBS
19378 LIBS="-lresolv $LIBS"
19379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19380 /* end confdefs.h. */
19382 /* Override any GCC internal prototype to avoid an error.
19383 Use char because int might match the return type of a GCC
19384 builtin and then its argument prototype would still apply. */
19385 #ifdef __cplusplus
19386 extern "C"
19387 #endif
19388 char res_send ();
19390 main ()
19392 return res_send ();
19394 return 0;
19396 _ACEOF
19397 if ac_fn_c_try_link "$LINENO"; then :
19398 ac_cv_lib_resolv_res_send=yes
19399 else
19400 ac_cv_lib_resolv_res_send=no
19402 rm -f core conftest.err conftest.$ac_objext \
19403 conftest$ac_exeext conftest.$ac_ext
19404 LIBS=$ac_check_lib_save_LIBS
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
19407 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
19408 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
19409 resolv=yes
19410 else
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
19412 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
19413 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
19414 $as_echo_n "(cached) " >&6
19415 else
19416 ac_check_lib_save_LIBS=$LIBS
19417 LIBS="-lresolv $LIBS"
19418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19419 /* end confdefs.h. */
19421 /* Override any GCC internal prototype to avoid an error.
19422 Use char because int might match the return type of a GCC
19423 builtin and then its argument prototype would still apply. */
19424 #ifdef __cplusplus
19425 extern "C"
19426 #endif
19427 char __res_send ();
19429 main ()
19431 return __res_send ();
19433 return 0;
19435 _ACEOF
19436 if ac_fn_c_try_link "$LINENO"; then :
19437 ac_cv_lib_resolv___res_send=yes
19438 else
19439 ac_cv_lib_resolv___res_send=no
19441 rm -f core conftest.err conftest.$ac_objext \
19442 conftest$ac_exeext conftest.$ac_ext
19443 LIBS=$ac_check_lib_save_LIBS
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
19446 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
19447 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
19448 resolv=yes
19457 if test "$resolv" = yes ; then
19458 RESOLVLIB=-lresolv
19459 else
19460 RESOLVLIB=
19462 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
19463 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
19465 else
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
19467 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
19468 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
19469 $as_echo_n "(cached) " >&6
19470 else
19471 ac_check_lib_save_LIBS=$LIBS
19472 LIBS="-lhesiod $RESOLVLIB $LIBS"
19473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19474 /* end confdefs.h. */
19476 /* Override any GCC internal prototype to avoid an error.
19477 Use char because int might match the return type of a GCC
19478 builtin and then its argument prototype would still apply. */
19479 #ifdef __cplusplus
19480 extern "C"
19481 #endif
19482 char hes_getmailhost ();
19484 main ()
19486 return hes_getmailhost ();
19488 return 0;
19490 _ACEOF
19491 if ac_fn_c_try_link "$LINENO"; then :
19492 ac_cv_lib_hesiod_hes_getmailhost=yes
19493 else
19494 ac_cv_lib_hesiod_hes_getmailhost=no
19496 rm -f core conftest.err conftest.$ac_objext \
19497 conftest$ac_exeext conftest.$ac_ext
19498 LIBS=$ac_check_lib_save_LIBS
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19501 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19502 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
19503 hesiod=yes
19504 else
19511 if test x"$hesiod" = xyes; then
19513 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
19515 LIBHESIOD=-lhesiod
19520 # Do we need libresolv (due to res_init or Hesiod)?
19521 if test "$resolv" = yes ; then
19523 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
19525 LIBRESOLV=-lresolv
19526 else
19527 LIBRESOLV=
19531 # These tell us which Kerberos-related libraries to use.
19532 COM_ERRLIB=
19533 CRYPTOLIB=
19534 KRB5LIB=
19535 DESLIB=
19536 KRB4LIB=
19538 if test "${with_kerberos}" != no; then
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
19540 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
19541 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
19542 $as_echo_n "(cached) " >&6
19543 else
19544 ac_check_lib_save_LIBS=$LIBS
19545 LIBS="-lcom_err $LIBS"
19546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19547 /* end confdefs.h. */
19549 /* Override any GCC internal prototype to avoid an error.
19550 Use char because int might match the return type of a GCC
19551 builtin and then its argument prototype would still apply. */
19552 #ifdef __cplusplus
19553 extern "C"
19554 #endif
19555 char com_err ();
19557 main ()
19559 return com_err ();
19561 return 0;
19563 _ACEOF
19564 if ac_fn_c_try_link "$LINENO"; then :
19565 ac_cv_lib_com_err_com_err=yes
19566 else
19567 ac_cv_lib_com_err_com_err=no
19569 rm -f core conftest.err conftest.$ac_objext \
19570 conftest$ac_exeext conftest.$ac_ext
19571 LIBS=$ac_check_lib_save_LIBS
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
19574 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
19575 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
19576 have_com_err=yes
19577 else
19578 have_com_err=no
19581 if test $have_com_err = yes; then
19582 COM_ERRLIB=-lcom_err
19583 LIBS="$COM_ERRLIB $LIBS"
19585 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19589 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
19590 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
19591 $as_echo_n "(cached) " >&6
19592 else
19593 ac_check_lib_save_LIBS=$LIBS
19594 LIBS="-lcrypto $LIBS"
19595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19596 /* end confdefs.h. */
19598 /* Override any GCC internal prototype to avoid an error.
19599 Use char because int might match the return type of a GCC
19600 builtin and then its argument prototype would still apply. */
19601 #ifdef __cplusplus
19602 extern "C"
19603 #endif
19604 char mit_des_cbc_encrypt ();
19606 main ()
19608 return mit_des_cbc_encrypt ();
19610 return 0;
19612 _ACEOF
19613 if ac_fn_c_try_link "$LINENO"; then :
19614 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19615 else
19616 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19618 rm -f core conftest.err conftest.$ac_objext \
19619 conftest$ac_exeext conftest.$ac_ext
19620 LIBS=$ac_check_lib_save_LIBS
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19623 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19624 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
19625 have_crypto=yes
19626 else
19627 have_crypto=no
19630 if test $have_crypto = yes; then
19631 CRYPTOLIB=-lcrypto
19632 LIBS="$CRYPTOLIB $LIBS"
19634 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19638 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
19639 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
19640 $as_echo_n "(cached) " >&6
19641 else
19642 ac_check_lib_save_LIBS=$LIBS
19643 LIBS="-lk5crypto $LIBS"
19644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19645 /* end confdefs.h. */
19647 /* Override any GCC internal prototype to avoid an error.
19648 Use char because int might match the return type of a GCC
19649 builtin and then its argument prototype would still apply. */
19650 #ifdef __cplusplus
19651 extern "C"
19652 #endif
19653 char mit_des_cbc_encrypt ();
19655 main ()
19657 return mit_des_cbc_encrypt ();
19659 return 0;
19661 _ACEOF
19662 if ac_fn_c_try_link "$LINENO"; then :
19663 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19664 else
19665 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19667 rm -f core conftest.err conftest.$ac_objext \
19668 conftest$ac_exeext conftest.$ac_ext
19669 LIBS=$ac_check_lib_save_LIBS
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19672 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19673 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
19674 have_k5crypto=yes
19675 else
19676 have_k5crypto=no
19679 if test $have_k5crypto = yes; then
19680 CRYPTOLIB=-lk5crypto
19681 LIBS="$CRYPTOLIB $LIBS"
19683 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
19687 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
19688 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
19689 $as_echo_n "(cached) " >&6
19690 else
19691 ac_check_lib_save_LIBS=$LIBS
19692 LIBS="-lkrb5 $LIBS"
19693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19694 /* end confdefs.h. */
19696 /* Override any GCC internal prototype to avoid an error.
19697 Use char because int might match the return type of a GCC
19698 builtin and then its argument prototype would still apply. */
19699 #ifdef __cplusplus
19700 extern "C"
19701 #endif
19702 char krb5_init_context ();
19704 main ()
19706 return krb5_init_context ();
19708 return 0;
19710 _ACEOF
19711 if ac_fn_c_try_link "$LINENO"; then :
19712 ac_cv_lib_krb5_krb5_init_context=yes
19713 else
19714 ac_cv_lib_krb5_krb5_init_context=no
19716 rm -f core conftest.err conftest.$ac_objext \
19717 conftest$ac_exeext conftest.$ac_ext
19718 LIBS=$ac_check_lib_save_LIBS
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19721 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
19722 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
19723 have_krb5=yes
19724 else
19725 have_krb5=no
19728 if test $have_krb5=yes; then
19729 KRB5LIB=-lkrb5
19730 LIBS="$KRB5LIB $LIBS"
19732 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
19735 if test "${with_kerberos5}" = no; then
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
19737 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
19738 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
19739 $as_echo_n "(cached) " >&6
19740 else
19741 ac_check_lib_save_LIBS=$LIBS
19742 LIBS="-ldes425 $LIBS"
19743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19744 /* end confdefs.h. */
19746 /* Override any GCC internal prototype to avoid an error.
19747 Use char because int might match the return type of a GCC
19748 builtin and then its argument prototype would still apply. */
19749 #ifdef __cplusplus
19750 extern "C"
19751 #endif
19752 char des_cbc_encrypt ();
19754 main ()
19756 return des_cbc_encrypt ();
19758 return 0;
19760 _ACEOF
19761 if ac_fn_c_try_link "$LINENO"; then :
19762 ac_cv_lib_des425_des_cbc_encrypt=yes
19763 else
19764 ac_cv_lib_des425_des_cbc_encrypt=no
19766 rm -f core conftest.err conftest.$ac_objext \
19767 conftest$ac_exeext conftest.$ac_ext
19768 LIBS=$ac_check_lib_save_LIBS
19770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19771 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19772 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
19773 have_des425=yes
19774 else
19775 have_des425=no
19778 if test $have_des425 = yes; then
19779 DESLIB=-ldes425
19780 LIBS="$DESLIB $LIBS"
19782 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
19784 else
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
19786 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
19787 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
19788 $as_echo_n "(cached) " >&6
19789 else
19790 ac_check_lib_save_LIBS=$LIBS
19791 LIBS="-ldes $LIBS"
19792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19793 /* end confdefs.h. */
19795 /* Override any GCC internal prototype to avoid an error.
19796 Use char because int might match the return type of a GCC
19797 builtin and then its argument prototype would still apply. */
19798 #ifdef __cplusplus
19799 extern "C"
19800 #endif
19801 char des_cbc_encrypt ();
19803 main ()
19805 return des_cbc_encrypt ();
19807 return 0;
19809 _ACEOF
19810 if ac_fn_c_try_link "$LINENO"; then :
19811 ac_cv_lib_des_des_cbc_encrypt=yes
19812 else
19813 ac_cv_lib_des_des_cbc_encrypt=no
19815 rm -f core conftest.err conftest.$ac_objext \
19816 conftest$ac_exeext conftest.$ac_ext
19817 LIBS=$ac_check_lib_save_LIBS
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19820 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19821 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
19822 have_des=yes
19823 else
19824 have_des=no
19827 if test $have_des = yes; then
19828 DESLIB=-ldes
19829 LIBS="$DESLIB $LIBS"
19831 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
19836 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
19837 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
19838 $as_echo_n "(cached) " >&6
19839 else
19840 ac_check_lib_save_LIBS=$LIBS
19841 LIBS="-lkrb4 $LIBS"
19842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19843 /* end confdefs.h. */
19845 /* Override any GCC internal prototype to avoid an error.
19846 Use char because int might match the return type of a GCC
19847 builtin and then its argument prototype would still apply. */
19848 #ifdef __cplusplus
19849 extern "C"
19850 #endif
19851 char krb_get_cred ();
19853 main ()
19855 return krb_get_cred ();
19857 return 0;
19859 _ACEOF
19860 if ac_fn_c_try_link "$LINENO"; then :
19861 ac_cv_lib_krb4_krb_get_cred=yes
19862 else
19863 ac_cv_lib_krb4_krb_get_cred=no
19865 rm -f core conftest.err conftest.$ac_objext \
19866 conftest$ac_exeext conftest.$ac_ext
19867 LIBS=$ac_check_lib_save_LIBS
19869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19870 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
19871 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
19872 have_krb4=yes
19873 else
19874 have_krb4=no
19877 if test $have_krb4 = yes; then
19878 KRB4LIB=-lkrb4
19879 LIBS="$KRB4LIB $LIBS"
19881 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
19883 else
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
19885 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
19886 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
19887 $as_echo_n "(cached) " >&6
19888 else
19889 ac_check_lib_save_LIBS=$LIBS
19890 LIBS="-lkrb $LIBS"
19891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19892 /* end confdefs.h. */
19894 /* Override any GCC internal prototype to avoid an error.
19895 Use char because int might match the return type of a GCC
19896 builtin and then its argument prototype would still apply. */
19897 #ifdef __cplusplus
19898 extern "C"
19899 #endif
19900 char krb_get_cred ();
19902 main ()
19904 return krb_get_cred ();
19906 return 0;
19908 _ACEOF
19909 if ac_fn_c_try_link "$LINENO"; then :
19910 ac_cv_lib_krb_krb_get_cred=yes
19911 else
19912 ac_cv_lib_krb_krb_get_cred=no
19914 rm -f core conftest.err conftest.$ac_objext \
19915 conftest$ac_exeext conftest.$ac_ext
19916 LIBS=$ac_check_lib_save_LIBS
19918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
19919 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
19920 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
19921 have_krb=yes
19922 else
19923 have_krb=no
19926 if test $have_krb = yes; then
19927 KRB4LIB=-lkrb
19928 LIBS="$KRB4LIB $LIBS"
19930 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
19936 if test "${with_kerberos5}" != no; then
19937 for ac_header in krb5.h
19938 do :
19939 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
19940 if test "x$ac_cv_header_krb5_h" = x""yes; then :
19941 cat >>confdefs.h <<_ACEOF
19942 #define HAVE_KRB5_H 1
19943 _ACEOF
19944 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
19946 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
19948 cat >>confdefs.h <<_ACEOF
19949 #define HAVE_KRB5_ERROR_TEXT 1
19950 _ACEOF
19954 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
19956 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
19958 cat >>confdefs.h <<_ACEOF
19959 #define HAVE_KRB5_ERROR_E_TEXT 1
19960 _ACEOF
19967 done
19969 else
19970 for ac_header in des.h
19971 do :
19972 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
19973 if test "x$ac_cv_header_des_h" = x""yes; then :
19974 cat >>confdefs.h <<_ACEOF
19975 #define HAVE_DES_H 1
19976 _ACEOF
19978 else
19979 for ac_header in kerberosIV/des.h
19980 do :
19981 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
19982 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
19983 cat >>confdefs.h <<_ACEOF
19984 #define HAVE_KERBEROSIV_DES_H 1
19985 _ACEOF
19987 else
19988 for ac_header in kerberos/des.h
19989 do :
19990 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
19991 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
19992 cat >>confdefs.h <<_ACEOF
19993 #define HAVE_KERBEROS_DES_H 1
19994 _ACEOF
19998 done
20002 done
20006 done
20008 for ac_header in krb.h
20009 do :
20010 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
20011 if test "x$ac_cv_header_krb_h" = x""yes; then :
20012 cat >>confdefs.h <<_ACEOF
20013 #define HAVE_KRB_H 1
20014 _ACEOF
20016 else
20017 for ac_header in kerberosIV/krb.h
20018 do :
20019 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
20020 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
20021 cat >>confdefs.h <<_ACEOF
20022 #define HAVE_KERBEROSIV_KRB_H 1
20023 _ACEOF
20025 else
20026 for ac_header in kerberos/krb.h
20027 do :
20028 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
20029 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
20030 cat >>confdefs.h <<_ACEOF
20031 #define HAVE_KERBEROS_KRB_H 1
20032 _ACEOF
20036 done
20040 done
20044 done
20047 for ac_header in com_err.h
20048 do :
20049 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
20050 if test "x$ac_cv_header_com_err_h" = x""yes; then :
20051 cat >>confdefs.h <<_ACEOF
20052 #define HAVE_COM_ERR_H 1
20053 _ACEOF
20057 done
20067 # Solaris requires -lintl if you want strerror (which calls dgettext)
20068 # to return localized messages.
20069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
20070 $as_echo_n "checking for dgettext in -lintl... " >&6; }
20071 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
20072 $as_echo_n "(cached) " >&6
20073 else
20074 ac_check_lib_save_LIBS=$LIBS
20075 LIBS="-lintl $LIBS"
20076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20077 /* end confdefs.h. */
20079 /* Override any GCC internal prototype to avoid an error.
20080 Use char because int might match the return type of a GCC
20081 builtin and then its argument prototype would still apply. */
20082 #ifdef __cplusplus
20083 extern "C"
20084 #endif
20085 char dgettext ();
20087 main ()
20089 return dgettext ();
20091 return 0;
20093 _ACEOF
20094 if ac_fn_c_try_link "$LINENO"; then :
20095 ac_cv_lib_intl_dgettext=yes
20096 else
20097 ac_cv_lib_intl_dgettext=no
20099 rm -f core conftest.err conftest.$ac_objext \
20100 conftest$ac_exeext conftest.$ac_ext
20101 LIBS=$ac_check_lib_save_LIBS
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
20104 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
20105 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
20106 cat >>confdefs.h <<_ACEOF
20107 #define HAVE_LIBINTL 1
20108 _ACEOF
20110 LIBS="-lintl $LIBS"
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
20116 $as_echo_n "checking whether localtime caches TZ... " >&6; }
20117 if test "${emacs_cv_localtime_cache+set}" = set; then :
20118 $as_echo_n "(cached) " >&6
20119 else
20120 if test x$ac_cv_func_tzset = xyes; then
20121 if test "$cross_compiling" = yes; then :
20122 # If we have tzset, assume the worst when cross-compiling.
20123 emacs_cv_localtime_cache=yes
20124 else
20125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20126 /* end confdefs.h. */
20127 #include <time.h>
20128 char TZ_GMT0[] = "TZ=GMT0";
20129 char TZ_PST8[] = "TZ=PST8";
20130 main()
20132 time_t now = time ((time_t *) 0);
20133 int hour_GMT0, hour_unset;
20134 if (putenv (TZ_GMT0) != 0)
20135 exit (1);
20136 hour_GMT0 = localtime (&now)->tm_hour;
20137 unsetenv("TZ");
20138 hour_unset = localtime (&now)->tm_hour;
20139 if (putenv (TZ_PST8) != 0)
20140 exit (1);
20141 if (localtime (&now)->tm_hour == hour_GMT0)
20142 exit (1);
20143 unsetenv("TZ");
20144 if (localtime (&now)->tm_hour != hour_unset)
20145 exit (1);
20146 exit (0);
20148 _ACEOF
20149 if ac_fn_c_try_run "$LINENO"; then :
20150 emacs_cv_localtime_cache=no
20151 else
20152 emacs_cv_localtime_cache=yes
20154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20155 conftest.$ac_objext conftest.beam conftest.$ac_ext
20158 else
20159 # If we lack tzset, report that localtime does not cache TZ,
20160 # since we can't invalidate the cache if we don't have tzset.
20161 emacs_cv_localtime_cache=no
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
20165 $as_echo "$emacs_cv_localtime_cache" >&6; }
20166 if test $emacs_cv_localtime_cache = yes; then
20168 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
20172 if test "x$HAVE_TIMEVAL" = xyes; then
20173 for ac_func in gettimeofday
20174 do :
20175 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
20176 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
20177 cat >>confdefs.h <<_ACEOF
20178 #define HAVE_GETTIMEOFDAY 1
20179 _ACEOF
20182 done
20184 if test $ac_cv_func_gettimeofday = yes; then
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
20186 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
20187 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
20188 $as_echo_n "(cached) " >&6
20189 else
20190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20191 /* end confdefs.h. */
20193 #ifdef TIME_WITH_SYS_TIME
20194 #include <sys/time.h>
20195 #include <time.h>
20196 #else
20197 #ifdef HAVE_SYS_TIME_H
20198 #include <sys/time.h>
20199 #else
20200 #include <time.h>
20201 #endif
20202 #endif
20204 main ()
20206 struct timeval time;
20207 gettimeofday (&time, 0);
20209 return 0;
20211 _ACEOF
20212 if ac_fn_c_try_compile "$LINENO"; then :
20213 emacs_cv_gettimeofday_two_arguments=yes
20214 else
20215 emacs_cv_gettimeofday_two_arguments=no
20217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
20220 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
20221 if test $emacs_cv_gettimeofday_two_arguments = no; then
20223 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
20229 ok_so_far=yes
20230 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
20231 if test "x$ac_cv_func_socket" = x""yes; then :
20233 else
20234 ok_so_far=no
20237 if test $ok_so_far = yes; then
20238 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
20239 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
20241 else
20242 ok_so_far=no
20247 if test $ok_so_far = yes; then
20248 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
20249 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
20251 else
20252 ok_so_far=no
20257 if test $ok_so_far = yes; then
20259 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
20263 if test -f /usr/lpp/X11/bin/smt.exp; then
20265 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
20269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
20270 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
20271 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20273 $as_echo "yes" >&6; }
20275 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
20277 else
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20279 $as_echo "no" >&6; }
20282 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20283 if test "x$ac_cv_type_pid_t" = x""yes; then :
20285 else
20287 cat >>confdefs.h <<_ACEOF
20288 #define pid_t int
20289 _ACEOF
20293 for ac_header in vfork.h
20294 do :
20295 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
20296 if test "x$ac_cv_header_vfork_h" = x""yes; then :
20297 cat >>confdefs.h <<_ACEOF
20298 #define HAVE_VFORK_H 1
20299 _ACEOF
20303 done
20305 for ac_func in fork vfork
20306 do :
20307 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20308 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20309 eval as_val=\$$as_ac_var
20310 if test "x$as_val" = x""yes; then :
20311 cat >>confdefs.h <<_ACEOF
20312 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20313 _ACEOF
20316 done
20318 if test "x$ac_cv_func_fork" = xyes; then
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
20320 $as_echo_n "checking for working fork... " >&6; }
20321 if test "${ac_cv_func_fork_works+set}" = set; then :
20322 $as_echo_n "(cached) " >&6
20323 else
20324 if test "$cross_compiling" = yes; then :
20325 ac_cv_func_fork_works=cross
20326 else
20327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20328 /* end confdefs.h. */
20329 $ac_includes_default
20331 main ()
20334 /* By Ruediger Kuhlmann. */
20335 return fork () < 0;
20338 return 0;
20340 _ACEOF
20341 if ac_fn_c_try_run "$LINENO"; then :
20342 ac_cv_func_fork_works=yes
20343 else
20344 ac_cv_func_fork_works=no
20346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20347 conftest.$ac_objext conftest.beam conftest.$ac_ext
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
20352 $as_echo "$ac_cv_func_fork_works" >&6; }
20354 else
20355 ac_cv_func_fork_works=$ac_cv_func_fork
20357 if test "x$ac_cv_func_fork_works" = xcross; then
20358 case $host in
20359 *-*-amigaos* | *-*-msdosdjgpp*)
20360 # Override, as these systems have only a dummy fork() stub
20361 ac_cv_func_fork_works=no
20364 ac_cv_func_fork_works=yes
20366 esac
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20368 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20370 ac_cv_func_vfork_works=$ac_cv_func_vfork
20371 if test "x$ac_cv_func_vfork" = xyes; then
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
20373 $as_echo_n "checking for working vfork... " >&6; }
20374 if test "${ac_cv_func_vfork_works+set}" = set; then :
20375 $as_echo_n "(cached) " >&6
20376 else
20377 if test "$cross_compiling" = yes; then :
20378 ac_cv_func_vfork_works=cross
20379 else
20380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20381 /* end confdefs.h. */
20382 /* Thanks to Paul Eggert for this test. */
20383 $ac_includes_default
20384 #include <sys/wait.h>
20385 #ifdef HAVE_VFORK_H
20386 # include <vfork.h>
20387 #endif
20388 /* On some sparc systems, changes by the child to local and incoming
20389 argument registers are propagated back to the parent. The compiler
20390 is told about this with #include <vfork.h>, but some compilers
20391 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20392 static variable whose address is put into a register that is
20393 clobbered by the vfork. */
20394 static void
20395 #ifdef __cplusplus
20396 sparc_address_test (int arg)
20397 # else
20398 sparc_address_test (arg) int arg;
20399 #endif
20401 static pid_t child;
20402 if (!child) {
20403 child = vfork ();
20404 if (child < 0) {
20405 perror ("vfork");
20406 _exit(2);
20408 if (!child) {
20409 arg = getpid();
20410 write(-1, "", 0);
20411 _exit (arg);
20417 main ()
20419 pid_t parent = getpid ();
20420 pid_t child;
20422 sparc_address_test (0);
20424 child = vfork ();
20426 if (child == 0) {
20427 /* Here is another test for sparc vfork register problems. This
20428 test uses lots of local variables, at least as many local
20429 variables as main has allocated so far including compiler
20430 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20431 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20432 reuse the register of parent for one of the local variables,
20433 since it will think that parent can't possibly be used any more
20434 in this routine. Assigning to the local variable will thus
20435 munge parent in the parent process. */
20436 pid_t
20437 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20438 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20439 /* Convince the compiler that p..p7 are live; otherwise, it might
20440 use the same hardware register for all 8 local variables. */
20441 if (p != p1 || p != p2 || p != p3 || p != p4
20442 || p != p5 || p != p6 || p != p7)
20443 _exit(1);
20445 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20446 from child file descriptors. If the child closes a descriptor
20447 before it execs or exits, this munges the parent's descriptor
20448 as well. Test for this by closing stdout in the child. */
20449 _exit(close(fileno(stdout)) != 0);
20450 } else {
20451 int status;
20452 struct stat st;
20454 while (wait(&status) != child)
20456 return (
20457 /* Was there some problem with vforking? */
20458 child < 0
20460 /* Did the child fail? (This shouldn't happen.) */
20461 || status
20463 /* Did the vfork/compiler bug occur? */
20464 || parent != getpid()
20466 /* Did the file descriptor bug occur? */
20467 || fstat(fileno(stdout), &st) != 0
20471 _ACEOF
20472 if ac_fn_c_try_run "$LINENO"; then :
20473 ac_cv_func_vfork_works=yes
20474 else
20475 ac_cv_func_vfork_works=no
20477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20478 conftest.$ac_objext conftest.beam conftest.$ac_ext
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
20483 $as_echo "$ac_cv_func_vfork_works" >&6; }
20486 if test "x$ac_cv_func_fork_works" = xcross; then
20487 ac_cv_func_vfork_works=$ac_cv_func_vfork
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20489 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20492 if test "x$ac_cv_func_vfork_works" = xyes; then
20494 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
20496 else
20498 $as_echo "#define vfork fork" >>confdefs.h
20501 if test "x$ac_cv_func_fork_works" = xyes; then
20503 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
20508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20509 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20510 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
20511 $as_echo_n "(cached) " >&6
20512 else
20513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20514 /* end confdefs.h. */
20515 #include <langinfo.h>
20517 main ()
20519 char* cs = nl_langinfo(CODESET);
20521 return 0;
20523 _ACEOF
20524 if ac_fn_c_try_link "$LINENO"; then :
20525 emacs_cv_langinfo_codeset=yes
20526 else
20527 emacs_cv_langinfo_codeset=no
20529 rm -f core conftest.err conftest.$ac_objext \
20530 conftest$ac_exeext conftest.$ac_ext
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
20534 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
20535 if test $emacs_cv_langinfo_codeset = yes; then
20537 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
20542 $as_echo_n "checking for mbstate_t... " >&6; }
20543 if test "${ac_cv_type_mbstate_t+set}" = set; then :
20544 $as_echo_n "(cached) " >&6
20545 else
20546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20547 /* end confdefs.h. */
20548 $ac_includes_default
20549 # include <wchar.h>
20551 main ()
20553 mbstate_t x; return sizeof x;
20555 return 0;
20557 _ACEOF
20558 if ac_fn_c_try_compile "$LINENO"; then :
20559 ac_cv_type_mbstate_t=yes
20560 else
20561 ac_cv_type_mbstate_t=no
20563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
20566 $as_echo "$ac_cv_type_mbstate_t" >&6; }
20567 if test $ac_cv_type_mbstate_t = yes; then
20569 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
20571 else
20573 $as_echo "#define mbstate_t int" >>confdefs.h
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
20578 $as_echo_n "checking for C restricted array declarations... " >&6; }
20579 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
20580 $as_echo_n "(cached) " >&6
20581 else
20582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20583 /* end confdefs.h. */
20584 void fred (int x[__restrict]);
20586 main ()
20590 return 0;
20592 _ACEOF
20593 if ac_fn_c_try_compile "$LINENO"; then :
20594 emacs_cv_c_restrict_arr=yes
20595 else
20596 emacs_cv_c_restrict_arr=no
20598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
20601 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
20602 if test "$emacs_cv_c_restrict_arr" = yes; then
20604 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
20610 # Set up the CFLAGS for real compilation, so we can substitute it.
20611 CFLAGS="$REAL_CFLAGS"
20612 CPPFLAGS="$REAL_CPPFLAGS"
20614 ## Hack to detect a buggy GCC version.
20615 if test "x$GCC" = xyes \
20616 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
20617 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
20618 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
20619 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
20622 version=$PACKAGE_VERSION
20624 ### Specify what sort of things we'll be editing into Makefile and config.h.
20625 ### Use configuration here uncanonicalized to avoid exceeding size limits.
20628 ## Unused?
20649 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
20650 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
20651 ## end of LIBX_BASE, but nothing ever set it.
20656 ## Used in lwlib/Makefile.in.
20658 if test -n "${machfile}"; then
20659 M_FILE="\$(srcdir)/${machfile}"
20660 else
20661 M_FILE=
20663 S_FILE="\$(srcdir)/${opsysfile}"
20674 cat >>confdefs.h <<_ACEOF
20675 #define EMACS_CONFIGURATION "${canonical}"
20676 _ACEOF
20679 cat >>confdefs.h <<_ACEOF
20680 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
20681 _ACEOF
20683 if test -n "$machfile"; then
20685 cat >>confdefs.h <<_ACEOF
20686 #define config_machfile "${machfile}"
20687 _ACEOF
20691 cat >>confdefs.h <<_ACEOF
20692 #define config_opsysfile "${opsysfile}"
20693 _ACEOF
20696 XMENU_OBJ=
20697 XOBJ=
20698 FONT_OBJ=
20699 if test "${HAVE_X_WINDOWS}" = "yes" ; then
20701 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
20703 XMENU_OBJ=xmenu.o
20704 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
20705 FONT_OBJ=xfont.o
20706 if test "$HAVE_XFT" = "yes"; then
20707 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
20708 elif test "$HAVE_FREETYPE" = "yes"; then
20709 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
20717 WIDGET_OBJ=
20718 MOTIF_LIBW=
20719 if test "${USE_X_TOOLKIT}" != "none" ; then
20720 WIDGET_OBJ=widget.o
20722 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
20724 if test "${USE_X_TOOLKIT}" = "LUCID"; then
20726 $as_echo "#define USE_LUCID 1" >>confdefs.h
20728 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
20730 $as_echo "#define USE_MOTIF 1" >>confdefs.h
20732 MOTIF_LIBW=-lXm
20733 case "$opsys" in
20734 gnu-linux)
20735 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
20736 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
20739 unixware)
20740 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
20741 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
20742 MOTIF_LIBW="MOTIF_LIBW -lXimp"
20745 aix4-2)
20746 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
20747 MOTIF_LIBW="$MOTIF_LIBW -li18n"
20749 esac
20750 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
20755 TOOLKIT_LIBW=
20756 case "$USE_X_TOOLKIT" in
20757 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
20758 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
20759 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
20760 esac
20763 if test "$USE_X_TOOLKIT" = "none"; then
20764 LIBXT_OTHER="\$(LIBXSM)"
20765 OLDXMENU_TARGET="really-oldXMenu"
20766 else
20767 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
20768 OLDXMENU_TARGET="really-lwlib"
20772 ## The X Menu stuff is present in the X10 distribution, but missing
20773 ## from X11. If we have X10, just use the installed library;
20774 ## otherwise, use our own copy.
20775 if test "${HAVE_X11}" = "yes" ; then
20777 $as_echo "#define HAVE_X11 1" >>confdefs.h
20780 if test "$USE_X_TOOLKIT" = "none"; then
20781 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
20782 else
20783 OLDXMENU="\${lwlibdir}/liblw.a"
20785 LIBXMENU="\$(OLDXMENU)"
20786 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
20787 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
20788 else
20789 ## For a syntactically valid Makefile; not actually used for anything.
20790 ## See comments in src/Makefile.in.
20791 OLDXMENU=nothing
20792 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
20793 if test "${HAVE_X_WINDOWS}" = "yes"; then
20794 LIBXMENU="-lXMenu"
20795 else
20796 LIBXMENU=
20798 LIBX_OTHER=
20799 OLDXMENU_DEPS=
20802 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
20803 OLDXMENU_TARGET=
20804 OLDXMENU=nothing
20805 LIBXMENU=
20806 OLDXMENU_DEPS=
20815 if test "${HAVE_MENUS}" = "yes" ; then
20817 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
20821 if test "${GNU_MALLOC}" = "yes" ; then
20823 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
20827 RALLOC_OBJ=
20828 if test "${REL_ALLOC}" = "yes" ; then
20830 $as_echo "#define REL_ALLOC 1" >>confdefs.h
20833 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
20837 if test "$opsys" = "cygwin"; then
20838 CYGWIN_OBJ="sheap.o"
20839 ## Cygwin differs because of its unexec().
20840 PRE_ALLOC_OBJ=
20841 POST_ALLOC_OBJ=lastfile.o
20842 else
20843 CYGWIN_OBJ=
20844 PRE_ALLOC_OBJ=lastfile.o
20845 POST_ALLOC_OBJ=
20852 case "$opsys" in
20853 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
20855 darwin)
20856 ## The -headerpad option tells ld (see man page) to leave room at the
20857 ## end of the header for adding load commands. Needed for dumping.
20858 ## 0x690 is the total size of 30 segment load commands (at 56
20859 ## each); under Cocoa 31 commands are required.
20860 if test "$HAVE_NS" = "yes"; then
20861 libs_nsgui="-framework AppKit"
20862 headerpad_extra=6C8
20863 else
20864 libs_nsgui=
20865 headerpad_extra=690
20867 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
20869 ## This is here because src/Makefile.in did some extra fiddling around
20870 ## with LD_SWITCH_SYSTEM. The cpp logic was:
20871 ## #ifndef LD_SWITCH_SYSTEM
20872 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
20873 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
20874 ## not using gcc, darwin system not on an alpha (ie darwin, since
20875 ## darwin + alpha does not occur).
20876 ## Because this was done in src/Makefile.in, the resulting part of
20877 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
20878 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
20879 ## rather than LD_SWITCH_SYSTEM.
20880 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
20881 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
20884 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
20885 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
20886 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
20887 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
20888 ## had different values in configure (in ac_link) and src/Makefile.in.
20889 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
20890 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
20892 *) LD_SWITCH_SYSTEM_TEMACS= ;;
20893 esac
20895 if test "$NS_IMPL_GNUSTEP" = "yes"; then
20896 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
20902 LD_FIRSTFLAG=
20903 ORDINARY_LINK=
20904 case "$opsys" in
20905 ## gnu: GNU needs its own crt0.
20906 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
20908 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
20909 ## library search parth, i.e. it won't search /usr/lib for libc and
20910 ## friends. Using -nostartfiles instead avoids this problem, and
20911 ## will also work on earlier NetBSD releases.
20912 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
20914 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
20915 ## MkLinux/LinuxPPC needs this.
20916 ## ibms390x only supports opsys = gnu-linux so it can be added here.
20917 gnu-*)
20918 case "$machine" in
20919 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
20920 esac
20922 esac
20925 if test "x$ORDINARY_LINK" = "xyes"; then
20927 LD_FIRSTFLAG=""
20929 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
20932 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
20933 ## freebsd, gnu-* not on macppc|ibms390x.
20934 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
20936 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
20937 ## places that are difficult to figure out at make time. Fortunately,
20938 ## these same versions allow you to pass arbitrary flags on to the
20939 ## linker, so there is no reason not to use it as a linker.
20941 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
20942 ## searching for libraries in its internal directories, so we have to
20943 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
20944 LD_FIRSTFLAG="-nostdlib"
20947 ## FIXME? What setting of EDIT_LDFLAGS should this have?
20948 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
20953 ## FIXME? The logic here is not precisely the same as that above.
20954 ## There is no check here for a pre-defined LD_FIRSTFLAG.
20955 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
20956 LIB_GCC=
20957 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
20959 case "$opsys" in
20960 freebsd|netbsd|openbsd) LIB_GCC= ;;
20962 gnu-*)
20963 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
20964 ## build on ARM EABI under GNU/Linux. (Bug#5518)
20965 case $host_cpu in
20966 arm*)
20967 LIB_GCC="-lgcc_s"
20970 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
20971 ## immediately undefine it again and redefine it to empty.
20972 ## Was the C_SWITCH_X_SITE part really necessary?
20973 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
20974 LIB_GCC=
20976 esac
20979 ## Ask GCC where to find libgcc.a.
20980 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
20981 esac
20985 TOOLTIP_SUPPORT=
20986 WINDOW_SUPPORT=
20987 ## If we're using X11/GNUstep, define some consequences.
20988 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
20990 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
20993 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
20995 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
20996 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
20998 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
20999 test "$HAVE_X_WINDOWS" = "yes" && \
21000 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
21010 #### Report on what we decided to do.
21011 #### Report GTK as a toolkit, even if it doesn't use Xt.
21012 #### It makes printing result more understandable as using GTK sets
21013 #### toolkit_scroll_bars to yes by default.
21014 if test "${HAVE_GTK}" = "yes"; then
21015 USE_X_TOOLKIT=GTK
21018 and_machfile=
21019 if test -n "$machfile"; then
21020 and_machfile=" and \`${machfile}'"
21023 echo "
21024 Configured for \`${canonical}'.
21026 Where should the build process find the source code? ${srcdir}
21027 What operating system and machine description files should Emacs use?
21028 \`${opsysfile}'${and_machfile}
21029 What compiler should emacs be built with? ${CC} ${CFLAGS}
21030 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21031 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21032 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21033 What window system should Emacs use? ${window_system}
21034 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21036 if test -n "${x_includes}"; then
21037 echo " Where do we find X Windows header files? ${x_includes}"
21038 else
21039 echo " Where do we find X Windows header files? Standard dirs"
21041 if test -n "${x_libraries}"; then
21042 echo " Where do we find X Windows libraries? ${x_libraries}"
21043 else
21044 echo " Where do we find X Windows libraries? Standard dirs"
21047 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21048 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21049 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21050 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21051 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
21052 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21053 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
21054 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
21056 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
21057 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
21058 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
21059 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
21060 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
21061 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
21063 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
21064 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
21065 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
21066 echo " Does Emacs use -lxft? ${HAVE_XFT}"
21068 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21069 echo
21071 if test $USE_XASSERTS = yes; then
21072 echo " Compiling with asserts turned on."
21073 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
21076 echo
21078 if test "$HAVE_NS" = "yes"; then
21079 echo
21080 echo "You must run \"make install\" in order to test the built application.
21081 The installed application will go to nextstep/Emacs.app and can be
21082 run or moved from there."
21083 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
21084 echo "The application will be fully self-contained."
21085 else
21086 echo "The lisp resources for the application will be installed under ${prefix}.
21087 You may need to run \"make install\" with sudo. The application will fail
21088 to run if these resources are not installed."
21090 echo
21094 # Remove any trailing slashes in these variables.
21095 test "${prefix}" != NONE &&
21096 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21097 test "${exec_prefix}" != NONE &&
21098 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21100 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 test/automated/Makefile"
21103 ac_config_commands="$ac_config_commands mkdirs"
21106 ac_config_commands="$ac_config_commands epaths"
21109 ac_config_commands="$ac_config_commands gdbinit"
21112 cat >confcache <<\_ACEOF
21113 # This file is a shell script that caches the results of configure
21114 # tests run on this system so they can be shared between configure
21115 # scripts and configure runs, see configure's option --config-cache.
21116 # It is not useful on other systems. If it contains results you don't
21117 # want to keep, you may remove or edit it.
21119 # config.status only pays attention to the cache file if you give it
21120 # the --recheck option to rerun configure.
21122 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21123 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21124 # following values.
21126 _ACEOF
21128 # The following way of writing the cache mishandles newlines in values,
21129 # but we know of no workaround that is simple, portable, and efficient.
21130 # So, we kill variables containing newlines.
21131 # Ultrix sh set writes to stderr and can't be redirected directly,
21132 # and sets the high bit in the cache file unless we assign to the vars.
21134 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21135 eval ac_val=\$$ac_var
21136 case $ac_val in #(
21137 *${as_nl}*)
21138 case $ac_var in #(
21139 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21140 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21141 esac
21142 case $ac_var in #(
21143 _ | IFS | as_nl) ;; #(
21144 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21145 *) { eval $ac_var=; unset $ac_var;} ;;
21146 esac ;;
21147 esac
21148 done
21150 (set) 2>&1 |
21151 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21152 *${as_nl}ac_space=\ *)
21153 # `set' does not quote correctly, so add quotes: double-quote
21154 # substitution turns \\\\ into \\, and sed turns \\ into \.
21155 sed -n \
21156 "s/'/'\\\\''/g;
21157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21158 ;; #(
21160 # `set' quotes correctly as required by POSIX, so do not add quotes.
21161 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21163 esac |
21164 sort
21166 sed '
21167 /^ac_cv_env_/b end
21168 t clear
21169 :clear
21170 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21171 t end
21172 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21173 :end' >>confcache
21174 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21175 if test -w "$cache_file"; then
21176 test "x$cache_file" != "x/dev/null" &&
21177 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21178 $as_echo "$as_me: updating cache $cache_file" >&6;}
21179 cat confcache >$cache_file
21180 else
21181 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21182 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21185 rm -f confcache
21187 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21188 # Let make expand exec_prefix.
21189 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21191 DEFS=-DHAVE_CONFIG_H
21193 ac_libobjs=
21194 ac_ltlibobjs=
21195 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21196 # 1. Remove the extension, and $U if already installed.
21197 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21198 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21199 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21200 # will be set to the directory where LIBOBJS objects are built.
21201 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21202 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21203 done
21204 LIBOBJS=$ac_libobjs
21206 LTLIBOBJS=$ac_ltlibobjs
21209 if test -n "$EXEEXT"; then
21210 am__EXEEXT_TRUE=
21211 am__EXEEXT_FALSE='#'
21212 else
21213 am__EXEEXT_TRUE='#'
21214 am__EXEEXT_FALSE=
21217 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21218 as_fn_error "conditional \"AMDEP\" was never defined.
21219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21221 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21222 as_fn_error "conditional \"am__fastdepCC\" was never defined.
21223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21226 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21227 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
21228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21231 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
21232 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
21233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21235 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
21236 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
21237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21239 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
21240 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
21241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21243 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
21244 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
21245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21248 gl_libobjs=
21249 gl_ltlibobjs=
21250 if test -n "$gl_LIBOBJS"; then
21251 # Remove the extension.
21252 sed_drop_objext='s/\.o$//;s/\.obj$//'
21253 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21254 gl_libobjs="$gl_libobjs $i.$ac_objext"
21255 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
21256 done
21258 gl_LIBOBJS=$gl_libobjs
21260 gl_LTLIBOBJS=$gl_ltlibobjs
21264 gltests_libobjs=
21265 gltests_ltlibobjs=
21266 if test -n "$gltests_LIBOBJS"; then
21267 # Remove the extension.
21268 sed_drop_objext='s/\.o$//;s/\.obj$//'
21269 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21270 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
21271 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
21272 done
21274 gltests_LIBOBJS=$gltests_libobjs
21276 gltests_LTLIBOBJS=$gltests_ltlibobjs
21280 : ${CONFIG_STATUS=./config.status}
21281 ac_write_fail=0
21282 ac_clean_files_save=$ac_clean_files
21283 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21284 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21285 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21286 as_write_fail=0
21287 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21288 #! $SHELL
21289 # Generated by $as_me.
21290 # Run this file to recreate the current configuration.
21291 # Compiler output produced by configure, useful for debugging
21292 # configure, is in config.log if it exists.
21294 debug=false
21295 ac_cs_recheck=false
21296 ac_cs_silent=false
21298 SHELL=\${CONFIG_SHELL-$SHELL}
21299 export SHELL
21300 _ASEOF
21301 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21302 ## -------------------- ##
21303 ## M4sh Initialization. ##
21304 ## -------------------- ##
21306 # Be more Bourne compatible
21307 DUALCASE=1; export DUALCASE # for MKS sh
21308 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21309 emulate sh
21310 NULLCMD=:
21311 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21312 # is contrary to our usage. Disable this feature.
21313 alias -g '${1+"$@"}'='"$@"'
21314 setopt NO_GLOB_SUBST
21315 else
21316 case `(set -o) 2>/dev/null` in #(
21317 *posix*) :
21318 set -o posix ;; #(
21319 *) :
21321 esac
21325 as_nl='
21327 export as_nl
21328 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21329 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21330 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21331 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21332 # Prefer a ksh shell builtin over an external printf program on Solaris,
21333 # but without wasting forks for bash or zsh.
21334 if test -z "$BASH_VERSION$ZSH_VERSION" \
21335 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21336 as_echo='print -r --'
21337 as_echo_n='print -rn --'
21338 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21339 as_echo='printf %s\n'
21340 as_echo_n='printf %s'
21341 else
21342 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21343 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21344 as_echo_n='/usr/ucb/echo -n'
21345 else
21346 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21347 as_echo_n_body='eval
21348 arg=$1;
21349 case $arg in #(
21350 *"$as_nl"*)
21351 expr "X$arg" : "X\\(.*\\)$as_nl";
21352 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21353 esac;
21354 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21356 export as_echo_n_body
21357 as_echo_n='sh -c $as_echo_n_body as_echo'
21359 export as_echo_body
21360 as_echo='sh -c $as_echo_body as_echo'
21363 # The user is always right.
21364 if test "${PATH_SEPARATOR+set}" != set; then
21365 PATH_SEPARATOR=:
21366 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21367 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21368 PATH_SEPARATOR=';'
21373 # IFS
21374 # We need space, tab and new line, in precisely that order. Quoting is
21375 # there to prevent editors from complaining about space-tab.
21376 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21377 # splitting by setting IFS to empty value.)
21378 IFS=" "" $as_nl"
21380 # Find who we are. Look in the path if we contain no directory separator.
21381 case $0 in #((
21382 *[\\/]* ) as_myself=$0 ;;
21383 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21384 for as_dir in $PATH
21386 IFS=$as_save_IFS
21387 test -z "$as_dir" && as_dir=.
21388 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21389 done
21390 IFS=$as_save_IFS
21393 esac
21394 # We did not find ourselves, most probably we were run as `sh COMMAND'
21395 # in which case we are not to be found in the path.
21396 if test "x$as_myself" = x; then
21397 as_myself=$0
21399 if test ! -f "$as_myself"; then
21400 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21401 exit 1
21404 # Unset variables that we do not need and which cause bugs (e.g. in
21405 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21406 # suppresses any "Segmentation fault" message there. '((' could
21407 # trigger a bug in pdksh 5.2.14.
21408 for as_var in BASH_ENV ENV MAIL MAILPATH
21409 do eval test x\${$as_var+set} = xset \
21410 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21411 done
21412 PS1='$ '
21413 PS2='> '
21414 PS4='+ '
21416 # NLS nuisances.
21417 LC_ALL=C
21418 export LC_ALL
21419 LANGUAGE=C
21420 export LANGUAGE
21422 # CDPATH.
21423 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21426 # as_fn_error ERROR [LINENO LOG_FD]
21427 # ---------------------------------
21428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21430 # script with status $?, using 1 if that was 0.
21431 as_fn_error ()
21433 as_status=$?; test $as_status -eq 0 && as_status=1
21434 if test "$3"; then
21435 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21436 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
21438 $as_echo "$as_me: error: $1" >&2
21439 as_fn_exit $as_status
21440 } # as_fn_error
21443 # as_fn_set_status STATUS
21444 # -----------------------
21445 # Set $? to STATUS, without forking.
21446 as_fn_set_status ()
21448 return $1
21449 } # as_fn_set_status
21451 # as_fn_exit STATUS
21452 # -----------------
21453 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21454 as_fn_exit ()
21456 set +e
21457 as_fn_set_status $1
21458 exit $1
21459 } # as_fn_exit
21461 # as_fn_unset VAR
21462 # ---------------
21463 # Portably unset VAR.
21464 as_fn_unset ()
21466 { eval $1=; unset $1;}
21468 as_unset=as_fn_unset
21469 # as_fn_append VAR VALUE
21470 # ----------------------
21471 # Append the text in VALUE to the end of the definition contained in VAR. Take
21472 # advantage of any shell optimizations that allow amortized linear growth over
21473 # repeated appends, instead of the typical quadratic growth present in naive
21474 # implementations.
21475 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21476 eval 'as_fn_append ()
21478 eval $1+=\$2
21480 else
21481 as_fn_append ()
21483 eval $1=\$$1\$2
21485 fi # as_fn_append
21487 # as_fn_arith ARG...
21488 # ------------------
21489 # Perform arithmetic evaluation on the ARGs, and store the result in the
21490 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21491 # must be portable across $(()) and expr.
21492 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21493 eval 'as_fn_arith ()
21495 as_val=$(( $* ))
21497 else
21498 as_fn_arith ()
21500 as_val=`expr "$@" || test $? -eq 1`
21502 fi # as_fn_arith
21505 if expr a : '\(a\)' >/dev/null 2>&1 &&
21506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21507 as_expr=expr
21508 else
21509 as_expr=false
21512 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21513 as_basename=basename
21514 else
21515 as_basename=false
21518 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21519 as_dirname=dirname
21520 else
21521 as_dirname=false
21524 as_me=`$as_basename -- "$0" ||
21525 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21526 X"$0" : 'X\(//\)$' \| \
21527 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21528 $as_echo X/"$0" |
21529 sed '/^.*\/\([^/][^/]*\)\/*$/{
21530 s//\1/
21533 /^X\/\(\/\/\)$/{
21534 s//\1/
21537 /^X\/\(\/\).*/{
21538 s//\1/
21541 s/.*/./; q'`
21543 # Avoid depending upon Character Ranges.
21544 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21545 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21546 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21547 as_cr_digits='0123456789'
21548 as_cr_alnum=$as_cr_Letters$as_cr_digits
21550 ECHO_C= ECHO_N= ECHO_T=
21551 case `echo -n x` in #(((((
21552 -n*)
21553 case `echo 'xy\c'` in
21554 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21555 xy) ECHO_C='\c';;
21556 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21557 ECHO_T=' ';;
21558 esac;;
21560 ECHO_N='-n';;
21561 esac
21563 rm -f conf$$ conf$$.exe conf$$.file
21564 if test -d conf$$.dir; then
21565 rm -f conf$$.dir/conf$$.file
21566 else
21567 rm -f conf$$.dir
21568 mkdir conf$$.dir 2>/dev/null
21570 if (echo >conf$$.file) 2>/dev/null; then
21571 if ln -s conf$$.file conf$$ 2>/dev/null; then
21572 as_ln_s='ln -s'
21573 # ... but there are two gotchas:
21574 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21575 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21576 # In both cases, we have to default to `cp -p'.
21577 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21578 as_ln_s='cp -p'
21579 elif ln conf$$.file conf$$ 2>/dev/null; then
21580 as_ln_s=ln
21581 else
21582 as_ln_s='cp -p'
21584 else
21585 as_ln_s='cp -p'
21587 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21588 rmdir conf$$.dir 2>/dev/null
21591 # as_fn_mkdir_p
21592 # -------------
21593 # Create "$as_dir" as a directory, including parents if necessary.
21594 as_fn_mkdir_p ()
21597 case $as_dir in #(
21598 -*) as_dir=./$as_dir;;
21599 esac
21600 test -d "$as_dir" || eval $as_mkdir_p || {
21601 as_dirs=
21602 while :; do
21603 case $as_dir in #(
21604 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21605 *) as_qdir=$as_dir;;
21606 esac
21607 as_dirs="'$as_qdir' $as_dirs"
21608 as_dir=`$as_dirname -- "$as_dir" ||
21609 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21610 X"$as_dir" : 'X\(//\)[^/]' \| \
21611 X"$as_dir" : 'X\(//\)$' \| \
21612 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21613 $as_echo X"$as_dir" |
21614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21615 s//\1/
21618 /^X\(\/\/\)[^/].*/{
21619 s//\1/
21622 /^X\(\/\/\)$/{
21623 s//\1/
21626 /^X\(\/\).*/{
21627 s//\1/
21630 s/.*/./; q'`
21631 test -d "$as_dir" && break
21632 done
21633 test -z "$as_dirs" || eval "mkdir $as_dirs"
21634 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
21637 } # as_fn_mkdir_p
21638 if mkdir -p . 2>/dev/null; then
21639 as_mkdir_p='mkdir -p "$as_dir"'
21640 else
21641 test -d ./-p && rmdir ./-p
21642 as_mkdir_p=false
21645 if test -x / >/dev/null 2>&1; then
21646 as_test_x='test -x'
21647 else
21648 if ls -dL / >/dev/null 2>&1; then
21649 as_ls_L_option=L
21650 else
21651 as_ls_L_option=
21653 as_test_x='
21654 eval sh -c '\''
21655 if test -d "$1"; then
21656 test -d "$1/.";
21657 else
21658 case $1 in #(
21659 -*)set "./$1";;
21660 esac;
21661 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21662 ???[sx]*):;;*)false;;esac;fi
21663 '\'' sh
21666 as_executable_p=$as_test_x
21668 # Sed expression to map a string onto a valid CPP name.
21669 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21671 # Sed expression to map a string onto a valid variable name.
21672 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21675 exec 6>&1
21676 ## ----------------------------------- ##
21677 ## Main body of $CONFIG_STATUS script. ##
21678 ## ----------------------------------- ##
21679 _ASEOF
21680 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21683 # Save the log message, to keep $0 and so on meaningful, and to
21684 # report actual input values of CONFIG_FILES etc. instead of their
21685 # values after options handling.
21686 ac_log="
21687 This file was extended by emacs $as_me 24.0.50, which was
21688 generated by GNU Autoconf 2.65. Invocation command line was
21690 CONFIG_FILES = $CONFIG_FILES
21691 CONFIG_HEADERS = $CONFIG_HEADERS
21692 CONFIG_LINKS = $CONFIG_LINKS
21693 CONFIG_COMMANDS = $CONFIG_COMMANDS
21694 $ $0 $@
21696 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21699 _ACEOF
21701 case $ac_config_files in *"
21702 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21703 esac
21705 case $ac_config_headers in *"
21706 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21707 esac
21710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21711 # Files that config.status was made for.
21712 config_files="$ac_config_files"
21713 config_headers="$ac_config_headers"
21714 config_commands="$ac_config_commands"
21716 _ACEOF
21718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21719 ac_cs_usage="\
21720 \`$as_me' instantiates files and other configuration actions
21721 from templates according to the current configuration. Unless the files
21722 and actions are specified as TAGs, all are instantiated by default.
21724 Usage: $0 [OPTION]... [TAG]...
21726 -h, --help print this help, then exit
21727 -V, --version print version number and configuration settings, then exit
21728 --config print configuration, then exit
21729 -q, --quiet, --silent
21730 do not print progress messages
21731 -d, --debug don't remove temporary files
21732 --recheck update $as_me by reconfiguring in the same conditions
21733 --file=FILE[:TEMPLATE]
21734 instantiate the configuration file FILE
21735 --header=FILE[:TEMPLATE]
21736 instantiate the configuration header FILE
21738 Configuration files:
21739 $config_files
21741 Configuration headers:
21742 $config_headers
21744 Configuration commands:
21745 $config_commands
21747 Report bugs to the package provider."
21749 _ACEOF
21750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21751 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21752 ac_cs_version="\\
21753 emacs config.status 24.0.50
21754 configured by $0, generated by GNU Autoconf 2.65,
21755 with options \\"\$ac_cs_config\\"
21757 Copyright (C) 2009 Free Software Foundation, Inc.
21758 This config.status script is free software; the Free Software Foundation
21759 gives unlimited permission to copy, distribute and modify it."
21761 ac_pwd='$ac_pwd'
21762 srcdir='$srcdir'
21763 INSTALL='$INSTALL'
21764 MKDIR_P='$MKDIR_P'
21765 AWK='$AWK'
21766 test -n "\$AWK" || AWK=awk
21767 _ACEOF
21769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21770 # The default lists apply if the user does not specify any file.
21771 ac_need_defaults=:
21772 while test $# != 0
21774 case $1 in
21775 --*=*)
21776 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21777 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21778 ac_shift=:
21781 ac_option=$1
21782 ac_optarg=$2
21783 ac_shift=shift
21785 esac
21787 case $ac_option in
21788 # Handling of the options.
21789 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21790 ac_cs_recheck=: ;;
21791 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21792 $as_echo "$ac_cs_version"; exit ;;
21793 --config | --confi | --conf | --con | --co | --c )
21794 $as_echo "$ac_cs_config"; exit ;;
21795 --debug | --debu | --deb | --de | --d | -d )
21796 debug=: ;;
21797 --file | --fil | --fi | --f )
21798 $ac_shift
21799 case $ac_optarg in
21800 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21801 esac
21802 as_fn_append CONFIG_FILES " '$ac_optarg'"
21803 ac_need_defaults=false;;
21804 --header | --heade | --head | --hea )
21805 $ac_shift
21806 case $ac_optarg in
21807 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21808 esac
21809 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21810 ac_need_defaults=false;;
21811 --he | --h)
21812 # Conflict between --help and --header
21813 as_fn_error "ambiguous option: \`$1'
21814 Try \`$0 --help' for more information.";;
21815 --help | --hel | -h )
21816 $as_echo "$ac_cs_usage"; exit ;;
21817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21818 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21819 ac_cs_silent=: ;;
21821 # This is an error.
21822 -*) as_fn_error "unrecognized option: \`$1'
21823 Try \`$0 --help' for more information." ;;
21825 *) as_fn_append ac_config_targets " $1"
21826 ac_need_defaults=false ;;
21828 esac
21829 shift
21830 done
21832 ac_configure_extra_args=
21834 if $ac_cs_silent; then
21835 exec 6>/dev/null
21836 ac_configure_extra_args="$ac_configure_extra_args --silent"
21839 _ACEOF
21840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21841 if \$ac_cs_recheck; then
21842 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21843 shift
21844 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21845 CONFIG_SHELL='$SHELL'
21846 export CONFIG_SHELL
21847 exec "\$@"
21850 _ACEOF
21851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21852 exec 5>>config.log
21854 echo
21855 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21856 ## Running $as_me. ##
21857 _ASBOX
21858 $as_echo "$ac_log"
21859 } >&5
21861 _ACEOF
21862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21864 # INIT-COMMANDS
21866 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21867 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
21869 _ACEOF
21871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21873 # Handling of arguments.
21874 for ac_config_target in $ac_config_targets
21876 case $ac_config_target in
21877 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
21878 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21879 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21880 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21881 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
21882 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
21883 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
21884 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
21885 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
21886 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
21887 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21888 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
21889 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
21890 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
21891 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
21892 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
21893 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
21894 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
21896 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21897 esac
21898 done
21901 # If the user did not use the arguments to specify the items to instantiate,
21902 # then the envvar interface is used. Set only those that are not.
21903 # We use the long form for the default assignment because of an extremely
21904 # bizarre bug on SunOS 4.1.3.
21905 if $ac_need_defaults; then
21906 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21907 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21908 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21911 # Have a temporary directory for convenience. Make it in the build tree
21912 # simply because there is no reason against having it here, and in addition,
21913 # creating and moving files from /tmp can sometimes cause problems.
21914 # Hook for its removal unless debugging.
21915 # Note that there is a small window in which the directory will not be cleaned:
21916 # after its creation but before its name has been assigned to `$tmp'.
21917 $debug ||
21919 tmp=
21920 trap 'exit_status=$?
21921 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21923 trap 'as_fn_exit 1' 1 2 13 15
21925 # Create a (secure) tmp directory for tmp files.
21928 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21929 test -n "$tmp" && test -d "$tmp"
21930 } ||
21932 tmp=./conf$$-$RANDOM
21933 (umask 077 && mkdir "$tmp")
21934 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
21936 # Set up the scripts for CONFIG_FILES section.
21937 # No need to generate them if there are no CONFIG_FILES.
21938 # This happens for instance with `./config.status config.h'.
21939 if test -n "$CONFIG_FILES"; then
21941 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
21942 ac_cs_awk_getline=:
21943 ac_cs_awk_pipe_init=
21944 ac_cs_awk_read_file='
21945 while ((getline aline < (F[key])) > 0)
21946 print(aline)
21947 close(F[key])'
21948 ac_cs_awk_pipe_fini=
21949 else
21950 ac_cs_awk_getline=false
21951 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
21952 ac_cs_awk_read_file='
21953 print "|#_!!_#|"
21954 print "cat " F[key] " &&"
21955 '$ac_cs_awk_pipe_init
21956 # The final `:' finishes the AND list.
21957 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
21959 ac_cr=`echo X | tr X '\015'`
21960 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21961 # But we know of no other shell where ac_cr would be empty at this
21962 # point, so we can use a bashism as a fallback.
21963 if test "x$ac_cr" = x; then
21964 eval ac_cr=\$\'\\r\'
21966 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21967 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21968 ac_cs_awk_cr='\r'
21969 else
21970 ac_cs_awk_cr=$ac_cr
21973 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21974 _ACEOF
21976 # Create commands to substitute file output variables.
21978 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
21979 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
21980 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
21981 echo "_ACAWK" &&
21982 echo "_ACEOF"
21983 } >conf$$files.sh &&
21984 . ./conf$$files.sh ||
21985 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21986 rm -f conf$$files.sh
21989 echo "cat >conf$$subs.awk <<_ACEOF" &&
21990 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21991 echo "_ACEOF"
21992 } >conf$$subs.sh ||
21993 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21994 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21995 ac_delim='%!_!# '
21996 for ac_last_try in false false false false false :; do
21997 . ./conf$$subs.sh ||
21998 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22000 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22001 if test $ac_delim_n = $ac_delim_num; then
22002 break
22003 elif $ac_last_try; then
22004 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22005 else
22006 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22008 done
22009 rm -f conf$$subs.sh
22011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22012 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22013 _ACEOF
22014 sed -n '
22016 s/^/S["/; s/!.*/"]=/
22019 s/^[^!]*!//
22020 :repl
22021 t repl
22022 s/'"$ac_delim"'$//
22023 t delim
22026 s/\(.\{148\}\)..*/\1/
22027 t more1
22028 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22031 b repl
22032 :more1
22033 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22036 s/.\{148\}//
22037 t nl
22038 :delim
22040 s/\(.\{148\}\)..*/\1/
22041 t more2
22042 s/["\\]/\\&/g; s/^/"/; s/$/"/
22045 :more2
22046 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22049 s/.\{148\}//
22050 t delim
22051 ' <conf$$subs.awk | sed '
22052 /^[^""]/{
22054 s/\n//
22056 ' >>$CONFIG_STATUS || ac_write_fail=1
22057 rm -f conf$$subs.awk
22058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22059 _ACAWK
22060 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22061 for (key in S) S_is_set[key] = 1
22062 FS = "\a"
22063 \$ac_cs_awk_pipe_init
22066 line = $ 0
22067 nfields = split(line, field, "@")
22068 substed = 0
22069 len = length(field[1])
22070 for (i = 2; i < nfields; i++) {
22071 key = field[i]
22072 keylen = length(key)
22073 if (S_is_set[key]) {
22074 value = S[key]
22075 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22076 len += length(value) + length(field[++i])
22077 substed = 1
22078 } else
22079 len += 1 + keylen
22081 if (nfields == 3 && !substed) {
22082 key = field[2]
22083 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
22084 \$ac_cs_awk_read_file
22085 next
22088 print line
22090 \$ac_cs_awk_pipe_fini
22091 _ACAWK
22092 _ACEOF
22093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22094 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22095 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22096 else
22098 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22099 || as_fn_error "could not setup config files machinery" "$LINENO" 5
22100 _ACEOF
22102 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22103 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22104 # trailing colons and then remove the whole line if VPATH becomes empty
22105 # (actually we leave an empty line to preserve line numbers).
22106 if test "x$srcdir" = x.; then
22107 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22108 s/:*\$(srcdir):*/:/
22109 s/:*\${srcdir}:*/:/
22110 s/:*@srcdir@:*/:/
22111 s/^\([^=]*=[ ]*\):*/\1/
22112 s/:*$//
22113 s/^[^=]*=[ ]*$//
22117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22118 fi # test -n "$CONFIG_FILES"
22120 # Set up the scripts for CONFIG_HEADERS section.
22121 # No need to generate them if there are no CONFIG_HEADERS.
22122 # This happens for instance with `./config.status Makefile'.
22123 if test -n "$CONFIG_HEADERS"; then
22124 cat >"$tmp/defines.awk" <<\_ACAWK ||
22125 BEGIN {
22126 _ACEOF
22128 # Transform confdefs.h into an awk script `defines.awk', embedded as
22129 # here-document in config.status, that substitutes the proper values into
22130 # config.h.in to produce config.h.
22132 # Create a delimiter string that does not exist in confdefs.h, to ease
22133 # handling of long lines.
22134 ac_delim='%!_!# '
22135 for ac_last_try in false false :; do
22136 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22137 if test -z "$ac_t"; then
22138 break
22139 elif $ac_last_try; then
22140 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
22141 else
22142 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22144 done
22146 # For the awk script, D is an array of macro values keyed by name,
22147 # likewise P contains macro parameters if any. Preserve backslash
22148 # newline sequences.
22150 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22151 sed -n '
22152 s/.\{148\}/&'"$ac_delim"'/g
22153 t rset
22154 :rset
22155 s/^[ ]*#[ ]*define[ ][ ]*/ /
22156 t def
22158 :def
22159 s/\\$//
22160 t bsnl
22161 s/["\\]/\\&/g
22162 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22163 D["\1"]=" \3"/p
22164 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22166 :bsnl
22167 s/["\\]/\\&/g
22168 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22169 D["\1"]=" \3\\\\\\n"\\/p
22170 t cont
22171 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22172 t cont
22174 :cont
22176 s/.\{148\}/&'"$ac_delim"'/g
22177 t clear
22178 :clear
22179 s/\\$//
22180 t bsnlc
22181 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22183 :bsnlc
22184 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22185 b cont
22186 ' <confdefs.h | sed '
22187 s/'"$ac_delim"'/"\\\
22188 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22191 for (key in D) D_is_set[key] = 1
22192 FS = "\a"
22194 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22195 line = \$ 0
22196 split(line, arg, " ")
22197 if (arg[1] == "#") {
22198 defundef = arg[2]
22199 mac1 = arg[3]
22200 } else {
22201 defundef = substr(arg[1], 2)
22202 mac1 = arg[2]
22204 split(mac1, mac2, "(") #)
22205 macro = mac2[1]
22206 prefix = substr(line, 1, index(line, defundef) - 1)
22207 if (D_is_set[macro]) {
22208 # Preserve the white space surrounding the "#".
22209 print prefix "define", macro P[macro] D[macro]
22210 next
22211 } else {
22212 # Replace #undef with comments. This is necessary, for example,
22213 # in the case of _POSIX_SOURCE, which is predefined and required
22214 # on some systems where configure will not decide to define it.
22215 if (defundef == "undef") {
22216 print "/*", prefix defundef, macro, "*/"
22217 next
22221 { print }
22222 _ACAWK
22223 _ACEOF
22224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22225 as_fn_error "could not setup config headers machinery" "$LINENO" 5
22226 fi # test -n "$CONFIG_HEADERS"
22229 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22230 shift
22231 for ac_tag
22233 case $ac_tag in
22234 :[FHLC]) ac_mode=$ac_tag; continue;;
22235 esac
22236 case $ac_mode$ac_tag in
22237 :[FHL]*:*);;
22238 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
22239 :[FH]-) ac_tag=-:-;;
22240 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22241 esac
22242 ac_save_IFS=$IFS
22243 IFS=:
22244 set x $ac_tag
22245 IFS=$ac_save_IFS
22246 shift
22247 ac_file=$1
22248 shift
22250 case $ac_mode in
22251 :L) ac_source=$1;;
22252 :[FH])
22253 ac_file_inputs=
22254 for ac_f
22256 case $ac_f in
22257 -) ac_f="$tmp/stdin";;
22258 *) # Look for the file first in the build tree, then in the source tree
22259 # (if the path is not absolute). The absolute path cannot be DOS-style,
22260 # because $ac_f cannot contain `:'.
22261 test -f "$ac_f" ||
22262 case $ac_f in
22263 [\\/$]*) false;;
22264 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22265 esac ||
22266 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22267 esac
22268 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22269 as_fn_append ac_file_inputs " '$ac_f'"
22270 done
22272 # Let's still pretend it is `configure' which instantiates (i.e., don't
22273 # use $as_me), people would be surprised to read:
22274 # /* config.h. Generated by config.status. */
22275 configure_input='Generated from '`
22276 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22277 `' by configure.'
22278 if test x"$ac_file" != x-; then
22279 configure_input="$ac_file. $configure_input"
22280 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22281 $as_echo "$as_me: creating $ac_file" >&6;}
22283 # Neutralize special characters interpreted by sed in replacement strings.
22284 case $configure_input in #(
22285 *\&* | *\|* | *\\* )
22286 ac_sed_conf_input=`$as_echo "$configure_input" |
22287 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22288 *) ac_sed_conf_input=$configure_input;;
22289 esac
22291 case $ac_tag in
22292 *:-:* | *:-) cat >"$tmp/stdin" \
22293 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
22294 esac
22296 esac
22298 ac_dir=`$as_dirname -- "$ac_file" ||
22299 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22300 X"$ac_file" : 'X\(//\)[^/]' \| \
22301 X"$ac_file" : 'X\(//\)$' \| \
22302 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22303 $as_echo X"$ac_file" |
22304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22305 s//\1/
22308 /^X\(\/\/\)[^/].*/{
22309 s//\1/
22312 /^X\(\/\/\)$/{
22313 s//\1/
22316 /^X\(\/\).*/{
22317 s//\1/
22320 s/.*/./; q'`
22321 as_dir="$ac_dir"; as_fn_mkdir_p
22322 ac_builddir=.
22324 case "$ac_dir" in
22325 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22327 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22328 # A ".." for each directory in $ac_dir_suffix.
22329 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22330 case $ac_top_builddir_sub in
22331 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22332 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22333 esac ;;
22334 esac
22335 ac_abs_top_builddir=$ac_pwd
22336 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22337 # for backward compatibility:
22338 ac_top_builddir=$ac_top_build_prefix
22340 case $srcdir in
22341 .) # We are building in place.
22342 ac_srcdir=.
22343 ac_top_srcdir=$ac_top_builddir_sub
22344 ac_abs_top_srcdir=$ac_pwd ;;
22345 [\\/]* | ?:[\\/]* ) # Absolute name.
22346 ac_srcdir=$srcdir$ac_dir_suffix;
22347 ac_top_srcdir=$srcdir
22348 ac_abs_top_srcdir=$srcdir ;;
22349 *) # Relative name.
22350 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22351 ac_top_srcdir=$ac_top_build_prefix$srcdir
22352 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22353 esac
22354 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22357 case $ac_mode in
22360 # CONFIG_FILE
22363 case $INSTALL in
22364 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22365 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22366 esac
22367 ac_MKDIR_P=$MKDIR_P
22368 case $MKDIR_P in
22369 [\\/$]* | ?:[\\/]* ) ;;
22370 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22371 esac
22372 _ACEOF
22374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22375 # If the template does not know about datarootdir, expand it.
22376 # FIXME: This hack should be removed a few years after 2.60.
22377 ac_datarootdir_hack=; ac_datarootdir_seen=
22378 ac_sed_dataroot='
22379 /datarootdir/ {
22383 /@datadir@/p
22384 /@docdir@/p
22385 /@infodir@/p
22386 /@localedir@/p
22387 /@mandir@/p'
22388 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22389 *datarootdir*) ac_datarootdir_seen=yes;;
22390 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22392 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22393 _ACEOF
22394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22395 ac_datarootdir_hack='
22396 s&@datadir@&$datadir&g
22397 s&@docdir@&$docdir&g
22398 s&@infodir@&$infodir&g
22399 s&@localedir@&$localedir&g
22400 s&@mandir@&$mandir&g
22401 s&\\\${datarootdir}&$datarootdir&g' ;;
22402 esac
22403 _ACEOF
22405 # Neutralize VPATH when `$srcdir' = `.'.
22406 # Shell code in configure.ac might set extrasub.
22407 # FIXME: do we really want to maintain this feature?
22408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22409 ac_sed_extra="$ac_vpsub
22410 $extrasub
22411 _ACEOF
22412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22414 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22415 s|@configure_input@|$ac_sed_conf_input|;t t
22416 s&@top_builddir@&$ac_top_builddir_sub&;t t
22417 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22418 s&@srcdir@&$ac_srcdir&;t t
22419 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22420 s&@top_srcdir@&$ac_top_srcdir&;t t
22421 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22422 s&@builddir@&$ac_builddir&;t t
22423 s&@abs_builddir@&$ac_abs_builddir&;t t
22424 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22425 s&@INSTALL@&$ac_INSTALL&;t t
22426 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22427 $ac_datarootdir_hack
22429 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
22430 if $ac_cs_awk_getline; then
22431 $AWK -f "$tmp/subs.awk"
22432 else
22433 $AWK -f "$tmp/subs.awk" | $SHELL
22434 fi >$tmp/out \
22435 || as_fn_error "could not create $ac_file" "$LINENO" 5
22437 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22438 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22439 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22441 which seems to be undefined. Please make sure it is defined." >&5
22442 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22443 which seems to be undefined. Please make sure it is defined." >&2;}
22445 rm -f "$tmp/stdin"
22446 case $ac_file in
22447 -) cat "$tmp/out" && rm -f "$tmp/out";;
22448 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22449 esac \
22450 || as_fn_error "could not create $ac_file" "$LINENO" 5
22454 # CONFIG_HEADER
22456 if test x"$ac_file" != x-; then
22458 $as_echo "/* $configure_input */" \
22459 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22460 } >"$tmp/config.h" \
22461 || as_fn_error "could not create $ac_file" "$LINENO" 5
22462 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22463 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22464 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22465 else
22466 rm -f "$ac_file"
22467 mv "$tmp/config.h" "$ac_file" \
22468 || as_fn_error "could not create $ac_file" "$LINENO" 5
22470 else
22471 $as_echo "/* $configure_input */" \
22472 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22473 || as_fn_error "could not create -" "$LINENO" 5
22475 # Compute "$ac_file"'s index in $config_headers.
22476 _am_arg="$ac_file"
22477 _am_stamp_count=1
22478 for _am_header in $config_headers :; do
22479 case $_am_header in
22480 $_am_arg | $_am_arg:* )
22481 break ;;
22483 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22484 esac
22485 done
22486 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22487 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22488 X"$_am_arg" : 'X\(//\)[^/]' \| \
22489 X"$_am_arg" : 'X\(//\)$' \| \
22490 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22491 $as_echo X"$_am_arg" |
22492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22493 s//\1/
22496 /^X\(\/\/\)[^/].*/{
22497 s//\1/
22500 /^X\(\/\/\)$/{
22501 s//\1/
22504 /^X\(\/\).*/{
22505 s//\1/
22508 s/.*/./; q'`/stamp-h$_am_stamp_count
22511 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22512 $as_echo "$as_me: executing $ac_file commands" >&6;}
22514 esac
22517 case $ac_file$ac_mode in
22518 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22519 # Autoconf 2.62 quotes --file arguments for eval, but not when files
22520 # are listed without --file. Let's play safe and only enable the eval
22521 # if we detect the quoting.
22522 case $CONFIG_FILES in
22523 *\'*) eval set x "$CONFIG_FILES" ;;
22524 *) set x $CONFIG_FILES ;;
22525 esac
22526 shift
22527 for mf
22529 # Strip MF so we end up with the name of the file.
22530 mf=`echo "$mf" | sed -e 's/:.*$//'`
22531 # Check whether this is an Automake generated Makefile or not.
22532 # We used to match only the files named `Makefile.in', but
22533 # some people rename them; so instead we look at the file content.
22534 # Grep'ing the first line is not enough: some people post-process
22535 # each Makefile.in and add a new line on top of each file to say so.
22536 # Grep'ing the whole file is not good either: AIX grep has a line
22537 # limit of 2048, but all sed's we know have understand at least 4000.
22538 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22539 dirpart=`$as_dirname -- "$mf" ||
22540 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22541 X"$mf" : 'X\(//\)[^/]' \| \
22542 X"$mf" : 'X\(//\)$' \| \
22543 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22544 $as_echo X"$mf" |
22545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22546 s//\1/
22549 /^X\(\/\/\)[^/].*/{
22550 s//\1/
22553 /^X\(\/\/\)$/{
22554 s//\1/
22557 /^X\(\/\).*/{
22558 s//\1/
22561 s/.*/./; q'`
22562 else
22563 continue
22565 # Extract the definition of DEPDIR, am__include, and am__quote
22566 # from the Makefile without running `make'.
22567 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22568 test -z "$DEPDIR" && continue
22569 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22570 test -z "am__include" && continue
22571 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22572 # When using ansi2knr, U may be empty or an underscore; expand it
22573 U=`sed -n 's/^U = //p' < "$mf"`
22574 # Find all dependency output files, they are included files with
22575 # $(DEPDIR) in their names. We invoke sed twice because it is the
22576 # simplest approach to changing $(DEPDIR) to its actual value in the
22577 # expansion.
22578 for file in `sed -n "
22579 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22580 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22581 # Make sure the directory exists.
22582 test -f "$dirpart/$file" && continue
22583 fdir=`$as_dirname -- "$file" ||
22584 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22585 X"$file" : 'X\(//\)[^/]' \| \
22586 X"$file" : 'X\(//\)$' \| \
22587 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22588 $as_echo X"$file" |
22589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22590 s//\1/
22593 /^X\(\/\/\)[^/].*/{
22594 s//\1/
22597 /^X\(\/\/\)$/{
22598 s//\1/
22601 /^X\(\/\).*/{
22602 s//\1/
22605 s/.*/./; q'`
22606 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22607 # echo "creating $dirpart/$file"
22608 echo '# dummy' > "$dirpart/$file"
22609 done
22610 done
22613 "mkdirs":C)
22614 for dir in etc lisp ; do
22615 test -d ${dir} || mkdir ${dir}
22616 done
22618 "epaths":C)
22619 echo creating src/epaths.h
22620 ${MAKE-make} epaths-force
22622 "gdbinit":C)
22623 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
22624 echo creating src/.gdbinit
22625 echo source $srcdir/src/.gdbinit > src/.gdbinit
22629 esac
22630 done # for ac_tag
22633 as_fn_exit 0
22634 _ACEOF
22635 ac_clean_files=$ac_clean_files_save
22637 test $ac_write_fail = 0 ||
22638 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
22641 # configure is writing to config.log, and then calls config.status.
22642 # config.status does its own redirection, appending to config.log.
22643 # Unfortunately, on DOS this fails, as config.log is still kept open
22644 # by configure, so config.status won't be able to write to it; its
22645 # output is simply discarded. So we exec the FD to /dev/null,
22646 # effectively closing config.log, so it can be properly (re)opened and
22647 # appended to by config.status. When coming back to configure, we
22648 # need to make the FD available again.
22649 if test "$no_create" != yes; then
22650 ac_cs_success=:
22651 ac_config_status_args=
22652 test "$silent" = yes &&
22653 ac_config_status_args="$ac_config_status_args --quiet"
22654 exec 5>/dev/null
22655 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22656 exec 5>>config.log
22657 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22658 # would make configure fail if this is the last instruction.
22659 $ac_cs_success || as_fn_exit $?
22661 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22663 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}