Commit the change in src/Makefile.in announced in 2010-03-12T16:34:27Z!eliz@gnu.org.
[emacs.git] / configure
blobf6c1d2f60abf7a6b0535c7a6974389745b33bc8c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for emacs 24.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME='emacs'
548 PACKAGE_TARNAME='emacs'
549 PACKAGE_VERSION='24.0.50'
550 PACKAGE_STRING='emacs 24.0.50'
551 PACKAGE_BUGREPORT=''
552 PACKAGE_URL=''
554 ac_unique_file="src/lisp.h"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 # include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 # include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
591 ac_config_libobj_dir=src
592 ac_header_list=
593 ac_func_list=
594 ac_subst_vars='LTLIBOBJS
595 OTHER_FILES
596 LIB_SRC_EXTRA_INSTALLABLES
597 GNU_OBJC_CFLAGS
598 GNUSTEP_SYSTEM_LIBRARIES
599 GNUSTEP_SYSTEM_HEADERS
600 GNUSTEP_MAKEFILES
601 ns_appsrc
602 ns_appresdir
603 ns_appbindir
604 ns_appdir
605 opsysfile
606 machfile
607 X_TOOLKIT_TYPE
608 C_SWITCH_X_SITE
609 LD_SWITCH_X_SITE_AUX
610 LD_SWITCH_X_SITE
611 c_switch_machine
612 c_switch_system
613 gameuser
614 gamedir
615 bitmapdir
616 archlibdir
617 etcdir
618 x_default_search_path
619 lisppath
620 locallisppath
621 lispdir
622 srcdir
623 canonical
624 configuration
625 version
626 GETOPTOBJS
627 GETOPT_H
628 GETLOADAVG_LIBS
629 KMEM_GROUP
630 NEED_SETGID
631 LIBOBJS
632 liblockfile
633 ALLOCA
634 FREETYPE_LIBS
635 FREETYPE_CFLAGS
636 M17N_FLT_LIBS
637 M17N_FLT_CFLAGS
638 LIBOTF_LIBS
639 LIBOTF_CFLAGS
640 XFT_LIBS
641 XFT_CFLAGS
642 FONTCONFIG_LIBS
643 FONTCONFIG_CFLAGS
644 GCONF_LIBS
645 GCONF_CFLAGS
646 DBUS_LIBS
647 DBUS_CFLAGS
648 GTK_LIBS
649 GTK_CFLAGS
650 RSVG_LIBS
651 RSVG_CFLAGS
652 HAVE_XSERVER
653 XMKMF
654 SET_MAKE
655 CFLAGS_SOUND
656 ALSA_LIBS
657 ALSA_CFLAGS
658 PKG_CONFIG
659 LIBSOUND
660 MAKEINFO
661 GZIP_PROG
662 INSTALL_INFO
663 RANLIB
664 INSTALL_DATA
665 INSTALL_SCRIPT
666 INSTALL_PROGRAM
667 LN_S
668 EGREP
669 GREP
671 OBJEXT
672 EXEEXT
673 ac_ct_CC
674 CPPFLAGS
675 LDFLAGS
676 CFLAGS
678 host_os
679 host_vendor
680 host_cpu
681 host
682 build_os
683 build_vendor
684 build_cpu
685 build
686 MAINT
687 target_alias
688 host_alias
689 build_alias
690 LIBS
691 ECHO_T
692 ECHO_N
693 ECHO_C
694 DEFS
695 mandir
696 localedir
697 libdir
698 psdir
699 pdfdir
700 dvidir
701 htmldir
702 infodir
703 docdir
704 oldincludedir
705 includedir
706 localstatedir
707 sharedstatedir
708 sysconfdir
709 datadir
710 datarootdir
711 libexecdir
712 sbindir
713 bindir
714 program_transform_name
715 prefix
716 exec_prefix
717 PACKAGE_URL
718 PACKAGE_BUGREPORT
719 PACKAGE_STRING
720 PACKAGE_VERSION
721 PACKAGE_TARNAME
722 PACKAGE_NAME
723 PATH_SEPARATOR
724 SHELL'
725 ac_subst_files=''
726 ac_user_opts='
727 enable_option_checking
728 with_pop
729 with_kerberos
730 with_kerberos5
731 with_hesiod
732 with_sound
733 with_sync_input
734 with_x_toolkit
735 with_xpm
736 with_jpeg
737 with_tiff
738 with_gif
739 with_png
740 with_rsvg
741 with_xft
742 with_libotf
743 with_m17n_flt
744 with_toolkit_scroll_bars
745 with_xaw3d
746 with_xim
747 with_ns
748 with_gpm
749 with_dbus
750 with_gconf
751 with_makeinfo
752 with_gtk
753 with_gcc
754 with_pkg_config_prog
755 with_gnustep_conf
756 enable_ns_self_contained
757 enable_asserts
758 enable_maintainer_mode
759 enable_locallisppath
760 enable_checking
761 enable_profiling
762 enable_autodepend
763 enable_largefile
764 with_x
766 ac_precious_vars='build_alias
767 host_alias
768 target_alias
770 CFLAGS
771 LDFLAGS
772 LIBS
773 CPPFLAGS
775 XMKMF'
778 # Initialize some variables set by options.
779 ac_init_help=
780 ac_init_version=false
781 ac_unrecognized_opts=
782 ac_unrecognized_sep=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
785 cache_file=/dev/null
786 exec_prefix=NONE
787 no_create=
788 no_recursion=
789 prefix=NONE
790 program_prefix=NONE
791 program_suffix=NONE
792 program_transform_name=s,x,x,
793 silent=
794 site=
795 srcdir=
796 verbose=
797 x_includes=NONE
798 x_libraries=NONE
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir='${datarootdir}/info'
818 htmldir='${docdir}'
819 dvidir='${docdir}'
820 pdfdir='${docdir}'
821 psdir='${docdir}'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
826 ac_prev=
827 ac_dashdash=
828 for ac_option
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
833 ac_prev=
834 continue
837 case $ac_option in
838 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839 *) ac_optarg=yes ;;
840 esac
842 # Accept the important Cygnus configure options, so we can diagnose typos.
844 case $ac_dashdash$ac_option in
846 ac_dashdash=yes ;;
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 ac_prev=bindir ;;
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 bindir=$ac_optarg ;;
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
865 --config-cache | -C)
866 cache_file=config.cache ;;
868 -datadir | --datadir | --datadi | --datad)
869 ac_prev=datadir ;;
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
880 -disable-* | --disable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error "invalid feature name: $ac_useropt"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
889 "enable_$ac_useropt"
890 "*) ;;
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
893 esac
894 eval enable_$ac_useropt=no ;;
896 -docdir | --docdir | --docdi | --doc | --do)
897 ac_prev=docdir ;;
898 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899 docdir=$ac_optarg ;;
901 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902 ac_prev=dvidir ;;
903 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904 dvidir=$ac_optarg ;;
906 -enable-* | --enable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
915 "enable_$ac_useropt"
916 "*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=\$ac_optarg ;;
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
929 exec_prefix=$ac_optarg ;;
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
933 with_gas=yes ;;
935 -help | --help | --hel | --he | -h)
936 ac_init_help=long ;;
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
942 -host | --host | --hos | --ho)
943 ac_prev=host_alias ;;
944 -host=* | --host=* | --hos=* | --ho=*)
945 host_alias=$ac_optarg ;;
947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948 ac_prev=htmldir ;;
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950 | --ht=*)
951 htmldir=$ac_optarg ;;
953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
958 includedir=$ac_optarg ;;
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
961 ac_prev=infodir ;;
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963 infodir=$ac_optarg ;;
965 -libdir | --libdir | --libdi | --libd)
966 ac_prev=libdir ;;
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
968 libdir=$ac_optarg ;;
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
975 libexecdir=$ac_optarg ;;
977 -localedir | --localedir | --localedi | --localed | --locale)
978 ac_prev=localedir ;;
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
982 -localstatedir | --localstatedir | --localstatedi | --localstated \
983 | --localstate | --localstat | --localsta | --localst | --locals)
984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987 localstatedir=$ac_optarg ;;
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990 ac_prev=mandir ;;
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992 mandir=$ac_optarg ;;
994 -nfp | --nfp | --nf)
995 # Obsolete; use --without-fp.
996 with_fp=no ;;
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c | -n)
1000 no_create=yes ;;
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 no_recursion=yes ;;
1006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013 oldincludedir=$ac_optarg ;;
1015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016 ac_prev=prefix ;;
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018 prefix=$ac_optarg ;;
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025 program_prefix=$ac_optarg ;;
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032 program_suffix=$ac_optarg ;;
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
1049 program_transform_name=$ac_optarg ;;
1051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052 ac_prev=pdfdir ;;
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1056 -psdir | --psdir | --psdi | --psd | --ps)
1057 ac_prev=psdir ;;
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059 psdir=$ac_optarg ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 silent=yes ;;
1065 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066 ac_prev=sbindir ;;
1067 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068 | --sbi=* | --sb=*)
1069 sbindir=$ac_optarg ;;
1071 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073 | --sharedst | --shareds | --shared | --share | --shar \
1074 | --sha | --sh)
1075 ac_prev=sharedstatedir ;;
1076 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079 | --sha=* | --sh=*)
1080 sharedstatedir=$ac_optarg ;;
1082 -site | --site | --sit)
1083 ac_prev=site ;;
1084 -site=* | --site=* | --sit=*)
1085 site=$ac_optarg ;;
1087 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088 ac_prev=srcdir ;;
1089 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090 srcdir=$ac_optarg ;;
1092 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093 | --syscon | --sysco | --sysc | --sys | --sy)
1094 ac_prev=sysconfdir ;;
1095 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097 sysconfdir=$ac_optarg ;;
1099 -target | --target | --targe | --targ | --tar | --ta | --t)
1100 ac_prev=target_alias ;;
1101 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102 target_alias=$ac_optarg ;;
1104 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105 verbose=yes ;;
1107 -version | --version | --versio | --versi | --vers | -V)
1108 ac_init_version=: ;;
1110 -with-* | --with-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error "invalid package name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1119 "with_$ac_useropt"
1120 "*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1123 esac
1124 eval with_$ac_useropt=\$ac_optarg ;;
1126 -without-* | --without-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1135 "with_$ac_useropt"
1136 "*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=no ;;
1142 --x)
1143 # Obsolete; use --with-x.
1144 with_x=yes ;;
1146 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147 | --x-incl | --x-inc | --x-in | --x-i)
1148 ac_prev=x_includes ;;
1149 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151 x_includes=$ac_optarg ;;
1153 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155 ac_prev=x_libraries ;;
1156 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158 x_libraries=$ac_optarg ;;
1160 -*) as_fn_error "unrecognized option: \`$ac_option'
1161 Try \`$0 --help' for more information."
1164 *=*)
1165 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166 # Reject names that are not valid shell variable names.
1167 case $ac_envvar in #(
1168 '' | [0-9]* | *[!_$as_cr_alnum]* )
1169 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1170 esac
1171 eval $ac_envvar=\$ac_optarg
1172 export $ac_envvar ;;
1175 # FIXME: should be removed in autoconf 3.0.
1176 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1177 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1179 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1182 esac
1183 done
1185 if test -n "$ac_prev"; then
1186 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187 as_fn_error "missing argument to $ac_option"
1190 if test -n "$ac_unrecognized_opts"; then
1191 case $enable_option_checking in
1192 no) ;;
1193 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1194 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195 esac
1198 # Check all directory arguments for consistency.
1199 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200 datadir sysconfdir sharedstatedir localstatedir includedir \
1201 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202 libdir localedir mandir
1204 eval ac_val=\$$ac_var
1205 # Remove trailing slashes.
1206 case $ac_val in
1207 */ )
1208 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209 eval $ac_var=\$ac_val;;
1210 esac
1211 # Be sure to have absolute directory names.
1212 case $ac_val in
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 esac
1216 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1217 done
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1222 build=$build_alias
1223 host=$host_alias
1224 target=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1237 ac_tool_prefix=
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240 test "$silent" = yes && exec 6>/dev/null
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 as_fn_error "working directory cannot be determined"
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 as_fn_error "pwd does not report name of working directory"
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$as_myself" ||
1256 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$as_myself" : 'X\(//\)[^/]' \| \
1258 X"$as_myself" : 'X\(//\)$' \| \
1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260 $as_echo X"$as_myself" |
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/
1265 /^X\(\/\/\)[^/].*/{
1266 s//\1/
1269 /^X\(\/\/\)$/{
1270 s//\1/
1273 /^X\(\/\).*/{
1274 s//\1/
1277 s/.*/./; q'`
1278 srcdir=$ac_confdir
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 srcdir=..
1282 else
1283 ac_srcdir_defaulted=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1292 pwd)`
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 srcdir=.
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1300 case $srcdir in
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 esac
1303 for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308 done
1311 # Report the --help message.
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1316 cat <<_ACEOF
1317 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1324 Defaults for the options are specified in brackets.
1326 Configuration:
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1341 [PREFIX]
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1348 For better control, use the options below.
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1370 _ACEOF
1372 cat <<\_ACEOF
1374 Program names:
1375 --program-prefix=PREFIX prepend PREFIX to installed program names
1376 --program-suffix=SUFFIX append SUFFIX to installed program names
1377 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1379 X features:
1380 --x-includes=DIR X include files are in DIR
1381 --x-libraries=DIR X library files are in DIR
1383 System types:
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1386 _ACEOF
1389 if test -n "$ac_init_help"; then
1390 case $ac_init_help in
1391 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1392 esac
1393 cat <<\_ACEOF
1395 Optional Features:
1396 --disable-option-checking ignore unrecognized --enable/--with options
1397 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1398 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1399 --disable-ns-self-contained
1400 disable self contained build under NeXTstep
1401 --enable-asserts compile code with asserts enabled
1402 --enable-maintainer-mode
1403 enable make rules and dependencies not useful (and
1404 sometimes confusing) to the casual installer
1405 --enable-locallisppath=PATH
1406 directories Emacs should search for lisp files
1407 specific to this site
1408 --enable-checking[=LIST]
1409 enable expensive run-time checks. With LIST, enable
1410 only specific categories of checks. Categories are:
1411 all,yes,no. Flags are: stringbytes, stringoverrun,
1412 stringfreelist, xmallocoverrun, conslist
1413 --enable-profiling build emacs with profiling support. This might not
1414 work on all platforms
1415 --enable-autodepend automatically generate dependencies to .h-files.
1416 Requires GNU Make and Gcc. Enabled if GNU Make and
1417 Gcc is found
1418 --disable-largefile omit support for large files
1420 Optional Packages:
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --without-pop don't support POP mail retrieval with movemail
1424 --with-kerberos support Kerberos-authenticated POP
1425 --with-kerberos5 support Kerberos version 5 authenticated POP
1426 --with-hesiod support Hesiod to get the POP server host
1427 --without-sound don't compile with sound support
1428 --without-sync-input process async input synchronously
1429 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1430 motif, gtk, no)
1431 --without-xpm don't compile with XPM image support
1432 --without-jpeg don't compile with JPEG image support
1433 --without-tiff don't compile with TIFF image support
1434 --without-gif don't compile with GIF image support
1435 --without-png don't compile with PNG image support
1436 --without-rsvg don't compile with SVG image support
1437 --without-xft don't use XFT for anti aliased fonts
1438 --without-libotf don't use libotf for OpenType font support
1439 --without-m17n-flt don't use m17n-flt for text shaping
1440 --without-toolkit-scroll-bars
1441 don't use Motif or Xaw3d scroll bars
1442 --without-xaw3d don't use Xaw3d
1443 --without-xim don't use X11 XIM
1444 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1445 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1446 console
1447 --without-dbus don't compile with D-Bus support
1448 --without-gconf don't compile with GConf support
1449 --without-makeinfo don't require makeinfo for building manuals
1451 --with-pkg-config-prog=PATH
1452 path to pkg-config for finding GTK and librsvg
1453 --with-gnustep-conf=PATH
1454 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1455 or /etc/GNUstep/GNUstep.conf
1456 --with-x use the X Window System
1458 Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 LIBS libraries to pass to the linker, e.g. -l<library>
1464 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1465 you have headers in a nonstandard directory <include dir>
1466 CPP C preprocessor
1467 XMKMF Path to xmkmf, Makefile generator for X Window System
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1472 Report bugs to the package provider.
1473 _ACEOF
1474 ac_status=$?
1477 if test "$ac_init_help" = "recursive"; then
1478 # If there are subdirs, report their specific --help.
1479 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480 test -d "$ac_dir" ||
1481 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1482 continue
1483 ac_builddir=.
1485 case "$ac_dir" in
1486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1489 # A ".." for each directory in $ac_dir_suffix.
1490 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1491 case $ac_top_builddir_sub in
1492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494 esac ;;
1495 esac
1496 ac_abs_top_builddir=$ac_pwd
1497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498 # for backward compatibility:
1499 ac_top_builddir=$ac_top_build_prefix
1501 case $srcdir in
1502 .) # We are building in place.
1503 ac_srcdir=.
1504 ac_top_srcdir=$ac_top_builddir_sub
1505 ac_abs_top_srcdir=$ac_pwd ;;
1506 [\\/]* | ?:[\\/]* ) # Absolute name.
1507 ac_srcdir=$srcdir$ac_dir_suffix;
1508 ac_top_srcdir=$srcdir
1509 ac_abs_top_srcdir=$srcdir ;;
1510 *) # Relative name.
1511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512 ac_top_srcdir=$ac_top_build_prefix$srcdir
1513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1514 esac
1515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517 cd "$ac_dir" || { ac_status=$?; continue; }
1518 # Check for guested configure.
1519 if test -f "$ac_srcdir/configure.gnu"; then
1520 echo &&
1521 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522 elif test -f "$ac_srcdir/configure"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure" --help=recursive
1525 else
1526 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527 fi || ac_status=$?
1528 cd "$ac_pwd" || { ac_status=$?; break; }
1529 done
1532 test -n "$ac_init_help" && exit $ac_status
1533 if $ac_init_version; then
1534 cat <<\_ACEOF
1535 emacs configure 24.0.50
1536 generated by GNU Autoconf 2.64
1538 Copyright (C) 2009 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1541 _ACEOF
1542 exit
1545 ## ------------------------ ##
1546 ## Autoconf initialization. ##
1547 ## ------------------------ ##
1549 # ac_fn_c_try_compile LINENO
1550 # --------------------------
1551 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1552 ac_fn_c_try_compile ()
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 rm -f conftest.$ac_objext
1556 if { { ac_try="$ac_compile"
1557 case "(($ac_try" in
1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559 *) ac_try_echo=$ac_try;;
1560 esac
1561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562 $as_echo "$ac_try_echo"; } >&5
1563 (eval "$ac_compile") 2>conftest.err
1564 ac_status=$?
1565 if test -s conftest.err; then
1566 grep -v '^ *+' conftest.err >conftest.er1
1567 cat conftest.er1 >&5
1568 mv -f conftest.er1 conftest.err
1570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; } && {
1572 test -z "$ac_c_werror_flag" ||
1573 test ! -s conftest.err
1574 } && test -s conftest.$ac_objext; then :
1575 ac_retval=0
1576 else
1577 $as_echo "$as_me: failed program was:" >&5
1578 sed 's/^/| /' conftest.$ac_ext >&5
1580 ac_retval=1
1582 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1583 return $ac_retval
1585 } # ac_fn_c_try_compile
1587 # ac_fn_c_try_link LINENO
1588 # -----------------------
1589 # Try to link conftest.$ac_ext, and return whether this succeeded.
1590 ac_fn_c_try_link ()
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 rm -f conftest.$ac_objext conftest$ac_exeext
1594 if { { ac_try="$ac_link"
1595 case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1598 esac
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_link") 2>conftest.err
1602 ac_status=$?
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } && {
1610 test -z "$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 } && test -s conftest$ac_exeext && {
1613 test "$cross_compiling" = yes ||
1614 $as_test_x conftest$ac_exeext
1615 }; then :
1616 ac_retval=0
1617 else
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1621 ac_retval=1
1623 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1624 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1625 # interfere with the next link command; also delete a directory that is
1626 # left behind by Apple's compiler. We do this before executing the actions.
1627 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1628 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1629 return $ac_retval
1631 } # ac_fn_c_try_link
1633 # ac_fn_c_try_cpp LINENO
1634 # ----------------------
1635 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_c_try_cpp ()
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 if { { ac_try="$ac_cpp conftest.$ac_ext"
1640 case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } >/dev/null && {
1655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 }; then :
1658 ac_retval=0
1659 else
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1663 ac_retval=1
1665 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1666 return $ac_retval
1668 } # ac_fn_c_try_cpp
1670 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1671 # -------------------------------------------------------
1672 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1673 # the include files in INCLUDES and setting the cache variable VAR
1674 # accordingly.
1675 ac_fn_c_check_header_mongrel ()
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1682 $as_echo_n "(cached) " >&6
1684 eval ac_res=\$$3
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686 $as_echo "$ac_res" >&6; }
1687 else
1688 # Is the header compilable?
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1690 $as_echo_n "checking $2 usability... " >&6; }
1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692 /* end confdefs.h. */
1694 #include <$2>
1695 _ACEOF
1696 if ac_fn_c_try_compile "$LINENO"; then :
1697 ac_header_compiler=yes
1698 else
1699 ac_header_compiler=no
1701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1703 $as_echo "$ac_header_compiler" >&6; }
1705 # Is the header present?
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1707 $as_echo_n "checking $2 presence... " >&6; }
1708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709 /* end confdefs.h. */
1710 #include <$2>
1711 _ACEOF
1712 if ac_fn_c_try_cpp "$LINENO"; then :
1713 ac_header_preproc=yes
1714 else
1715 ac_header_preproc=no
1717 rm -f conftest.err conftest.$ac_ext
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1719 $as_echo "$ac_header_preproc" >&6; }
1721 # So? What about this header?
1722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1723 yes:no: )
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1725 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1727 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1729 no:yes:* )
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1731 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1733 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1735 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1737 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1739 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1741 esac
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1745 $as_echo_n "(cached) " >&6
1746 else
1747 eval "$3=\$ac_header_compiler"
1749 eval ac_res=\$$3
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1755 } # ac_fn_c_check_header_mongrel
1757 # ac_fn_c_try_run LINENO
1758 # ----------------------
1759 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1760 # that executables *can* be run.
1761 ac_fn_c_try_run ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if { { ac_try="$ac_link"
1765 case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_link") 2>&5
1772 ac_status=$?
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1775 { { case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_try") 2>&5
1782 ac_status=$?
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; }; }; then :
1785 ac_retval=0
1786 else
1787 $as_echo "$as_me: program exited with status $ac_status" >&5
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1791 ac_retval=$ac_status
1793 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795 return $ac_retval
1797 } # ac_fn_c_try_run
1799 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1800 # -------------------------------------------------------
1801 # Tests whether HEADER exists and can be compiled using the include files in
1802 # INCLUDES, setting the cache variable VAR accordingly.
1803 ac_fn_c_check_header_compile ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809 $as_echo_n "(cached) " >&6
1810 else
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1814 #include <$2>
1815 _ACEOF
1816 if ac_fn_c_try_compile "$LINENO"; then :
1817 eval "$3=yes"
1818 else
1819 eval "$3=no"
1821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823 eval ac_res=\$$3
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828 } # ac_fn_c_check_header_compile
1830 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1831 # ----------------------------------------------
1832 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1833 ac_fn_c_check_header_preproc ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839 $as_echo_n "(cached) " >&6
1840 else
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1843 #include <$2>
1844 _ACEOF
1845 if ac_fn_c_try_cpp "$LINENO"; then :
1846 eval "$3=yes"
1847 else
1848 eval "$3=no"
1850 rm -f conftest.err conftest.$ac_ext
1852 eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1857 } # ac_fn_c_check_header_preproc
1859 # ac_fn_c_check_decl LINENO SYMBOL VAR
1860 # ------------------------------------
1861 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1862 ac_fn_c_check_decl ()
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1866 $as_echo_n "checking whether $2 is declared... " >&6; }
1867 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1868 $as_echo_n "(cached) " >&6
1869 else
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1874 main ()
1876 #ifndef $2
1877 (void) $2;
1878 #endif
1881 return 0;
1883 _ACEOF
1884 if ac_fn_c_try_compile "$LINENO"; then :
1885 eval "$3=yes"
1886 else
1887 eval "$3=no"
1889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891 eval ac_res=\$$3
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1896 } # ac_fn_c_check_decl
1898 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1899 # ----------------------------------------------------
1900 # Tries to find if the field MEMBER exists in type AGGR, after including
1901 # INCLUDES, setting cache variable VAR accordingly.
1902 ac_fn_c_check_member ()
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1906 $as_echo_n "checking for $2.$3... " >&6; }
1907 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1908 $as_echo_n "(cached) " >&6
1909 else
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1914 main ()
1916 static $2 ac_aggr;
1917 if (ac_aggr.$3)
1918 return 0;
1920 return 0;
1922 _ACEOF
1923 if ac_fn_c_try_compile "$LINENO"; then :
1924 eval "$4=yes"
1925 else
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1930 main ()
1932 static $2 ac_aggr;
1933 if (sizeof ac_aggr.$3)
1934 return 0;
1936 return 0;
1938 _ACEOF
1939 if ac_fn_c_try_compile "$LINENO"; then :
1940 eval "$4=yes"
1941 else
1942 eval "$4=no"
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 eval ac_res=\$$4
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953 } # ac_fn_c_check_member
1955 # ac_fn_c_check_func LINENO FUNC VAR
1956 # ----------------------------------
1957 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1958 ac_fn_c_check_func ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 $as_echo_n "(cached) " >&6
1965 else
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1968 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1970 #define $2 innocuous_$2
1972 /* System header to define __stub macros and hopefully few prototypes,
1973 which can conflict with char $2 (); below.
1974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1975 <limits.h> exists even on freestanding compilers. */
1977 #ifdef __STDC__
1978 # include <limits.h>
1979 #else
1980 # include <assert.h>
1981 #endif
1983 #undef $2
1985 /* Override any GCC internal prototype to avoid an error.
1986 Use char because int might match the return type of a GCC
1987 builtin and then its argument prototype would still apply. */
1988 #ifdef __cplusplus
1989 extern "C"
1990 #endif
1991 char $2 ();
1992 /* The GNU C library defines this for functions which it implements
1993 to always fail with ENOSYS. Some functions are actually named
1994 something starting with __ and the normal name is an alias. */
1995 #if defined __stub_$2 || defined __stub___$2
1996 choke me
1997 #endif
2000 main ()
2002 return $2 ();
2004 return 0;
2006 _ACEOF
2007 if ac_fn_c_try_link "$LINENO"; then :
2008 eval "$3=yes"
2009 else
2010 eval "$3=no"
2012 rm -f core conftest.err conftest.$ac_objext \
2013 conftest$ac_exeext conftest.$ac_ext
2015 eval ac_res=\$$3
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 $as_echo "$ac_res" >&6; }
2018 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2020 } # ac_fn_c_check_func
2022 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2023 # -------------------------------------------
2024 # Tests whether TYPE exists after having included INCLUDES, setting cache
2025 # variable VAR accordingly.
2026 ac_fn_c_check_type ()
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030 $as_echo_n "checking for $2... " >&6; }
2031 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2032 $as_echo_n "(cached) " >&6
2033 else
2034 eval "$3=no"
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2039 main ()
2041 if (sizeof ($2))
2042 return 0;
2044 return 0;
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2052 main ()
2054 if (sizeof (($2)))
2055 return 0;
2057 return 0;
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2062 else
2063 eval "$3=yes"
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 eval ac_res=\$$3
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2074 } # ac_fn_c_check_type
2075 cat >config.log <<_ACEOF
2076 This file contains any messages produced by compilers while
2077 running configure, to aid debugging if configure makes a mistake.
2079 It was created by emacs $as_me 24.0.50, which was
2080 generated by GNU Autoconf 2.64. Invocation command line was
2082 $ $0 $@
2084 _ACEOF
2085 exec 5>>config.log
2087 cat <<_ASUNAME
2088 ## --------- ##
2089 ## Platform. ##
2090 ## --------- ##
2092 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2093 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2094 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2095 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2096 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2098 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2099 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2101 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2102 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2103 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2104 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2105 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2106 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2107 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2109 _ASUNAME
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 for as_dir in $PATH
2114 IFS=$as_save_IFS
2115 test -z "$as_dir" && as_dir=.
2116 $as_echo "PATH: $as_dir"
2117 done
2118 IFS=$as_save_IFS
2120 } >&5
2122 cat >&5 <<_ACEOF
2125 ## ----------- ##
2126 ## Core tests. ##
2127 ## ----------- ##
2129 _ACEOF
2132 # Keep a trace of the command line.
2133 # Strip out --no-create and --no-recursion so they do not pile up.
2134 # Strip out --silent because we don't want to record it for future runs.
2135 # Also quote any args containing shell meta-characters.
2136 # Make two passes to allow for proper duplicate-argument suppression.
2137 ac_configure_args=
2138 ac_configure_args0=
2139 ac_configure_args1=
2140 ac_must_keep_next=false
2141 for ac_pass in 1 2
2143 for ac_arg
2145 case $ac_arg in
2146 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2148 | -silent | --silent | --silen | --sile | --sil)
2149 continue ;;
2150 *\'*)
2151 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2152 esac
2153 case $ac_pass in
2154 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2156 as_fn_append ac_configure_args1 " '$ac_arg'"
2157 if test $ac_must_keep_next = true; then
2158 ac_must_keep_next=false # Got value, back to normal.
2159 else
2160 case $ac_arg in
2161 *=* | --config-cache | -C | -disable-* | --disable-* \
2162 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2163 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2164 | -with-* | --with-* | -without-* | --without-* | --x)
2165 case "$ac_configure_args0 " in
2166 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2167 esac
2169 -* ) ac_must_keep_next=true ;;
2170 esac
2172 as_fn_append ac_configure_args " '$ac_arg'"
2174 esac
2175 done
2176 done
2177 { ac_configure_args0=; unset ac_configure_args0;}
2178 { ac_configure_args1=; unset ac_configure_args1;}
2180 # When interrupted or exit'd, cleanup temporary files, and complete
2181 # config.log. We remove comments because anyway the quotes in there
2182 # would cause problems or look ugly.
2183 # WARNING: Use '\'' to represent an apostrophe within the trap.
2184 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2185 trap 'exit_status=$?
2186 # Save into config.log some information that might help in debugging.
2188 echo
2190 cat <<\_ASBOX
2191 ## ---------------- ##
2192 ## Cache variables. ##
2193 ## ---------------- ##
2194 _ASBOX
2195 echo
2196 # The following way of writing the cache mishandles newlines in values,
2198 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2199 eval ac_val=\$$ac_var
2200 case $ac_val in #(
2201 *${as_nl}*)
2202 case $ac_var in #(
2203 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2204 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2205 esac
2206 case $ac_var in #(
2207 _ | IFS | as_nl) ;; #(
2208 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2209 *) { eval $ac_var=; unset $ac_var;} ;;
2210 esac ;;
2211 esac
2212 done
2213 (set) 2>&1 |
2214 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2215 *${as_nl}ac_space=\ *)
2216 sed -n \
2217 "s/'\''/'\''\\\\'\'''\''/g;
2218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2219 ;; #(
2221 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2223 esac |
2224 sort
2226 echo
2228 cat <<\_ASBOX
2229 ## ----------------- ##
2230 ## Output variables. ##
2231 ## ----------------- ##
2232 _ASBOX
2233 echo
2234 for ac_var in $ac_subst_vars
2236 eval ac_val=\$$ac_var
2237 case $ac_val in
2238 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2239 esac
2240 $as_echo "$ac_var='\''$ac_val'\''"
2241 done | sort
2242 echo
2244 if test -n "$ac_subst_files"; then
2245 cat <<\_ASBOX
2246 ## ------------------- ##
2247 ## File substitutions. ##
2248 ## ------------------- ##
2249 _ASBOX
2250 echo
2251 for ac_var in $ac_subst_files
2253 eval ac_val=\$$ac_var
2254 case $ac_val in
2255 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2256 esac
2257 $as_echo "$ac_var='\''$ac_val'\''"
2258 done | sort
2259 echo
2262 if test -s confdefs.h; then
2263 cat <<\_ASBOX
2264 ## ----------- ##
2265 ## confdefs.h. ##
2266 ## ----------- ##
2267 _ASBOX
2268 echo
2269 cat confdefs.h
2270 echo
2272 test "$ac_signal" != 0 &&
2273 $as_echo "$as_me: caught signal $ac_signal"
2274 $as_echo "$as_me: exit $exit_status"
2275 } >&5
2276 rm -f core *.core core.conftest.* &&
2277 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2278 exit $exit_status
2280 for ac_signal in 1 2 13 15; do
2281 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2282 done
2283 ac_signal=0
2285 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2286 rm -f -r conftest* confdefs.h
2288 $as_echo "/* confdefs.h */" > confdefs.h
2290 # Predefined preprocessor variables.
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_NAME "$PACKAGE_NAME"
2294 _ACEOF
2296 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2298 _ACEOF
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2302 _ACEOF
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_STRING "$PACKAGE_STRING"
2306 _ACEOF
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2310 _ACEOF
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE_URL "$PACKAGE_URL"
2314 _ACEOF
2317 # Let the site file select an alternate cache file if it wants to.
2318 # Prefer an explicitly selected file to automatically selected ones.
2319 ac_site_file1=NONE
2320 ac_site_file2=NONE
2321 if test -n "$CONFIG_SITE"; then
2322 ac_site_file1=$CONFIG_SITE
2323 elif test "x$prefix" != xNONE; then
2324 ac_site_file1=$prefix/share/config.site
2325 ac_site_file2=$prefix/etc/config.site
2326 else
2327 ac_site_file1=$ac_default_prefix/share/config.site
2328 ac_site_file2=$ac_default_prefix/etc/config.site
2330 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2332 test "x$ac_site_file" = xNONE && continue
2333 if test -r "$ac_site_file"; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2335 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2336 sed 's/^/| /' "$ac_site_file" >&5
2337 . "$ac_site_file"
2339 done
2341 if test -r "$cache_file"; then
2342 # Some versions of bash will fail to source /dev/null (special
2343 # files actually), so we avoid doing that.
2344 if test -f "$cache_file"; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2346 $as_echo "$as_me: loading cache $cache_file" >&6;}
2347 case $cache_file in
2348 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2349 *) . "./$cache_file";;
2350 esac
2352 else
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2354 $as_echo "$as_me: creating cache $cache_file" >&6;}
2355 >$cache_file
2358 as_fn_append ac_header_list " sys/time.h"
2359 as_fn_append ac_header_list " unistd.h"
2360 as_fn_append ac_func_list " alarm"
2361 # Check that the precious variables saved in the cache have kept the same
2362 # value.
2363 ac_cache_corrupted=false
2364 for ac_var in $ac_precious_vars; do
2365 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2366 eval ac_new_set=\$ac_env_${ac_var}_set
2367 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2368 eval ac_new_val=\$ac_env_${ac_var}_value
2369 case $ac_old_set,$ac_new_set in
2370 set,)
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2372 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2373 ac_cache_corrupted=: ;;
2374 ,set)
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2376 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2377 ac_cache_corrupted=: ;;
2378 ,);;
2380 if test "x$ac_old_val" != "x$ac_new_val"; then
2381 # differences in whitespace do not lead to failure.
2382 ac_old_val_w=`echo x $ac_old_val`
2383 ac_new_val_w=`echo x $ac_new_val`
2384 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2386 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2387 ac_cache_corrupted=:
2388 else
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2390 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2391 eval $ac_var=\$ac_old_val
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2394 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2396 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2397 fi;;
2398 esac
2399 # Pass precious variables to config.status.
2400 if test "$ac_new_set" = set; then
2401 case $ac_new_val in
2402 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2403 *) ac_arg=$ac_var=$ac_new_val ;;
2404 esac
2405 case " $ac_configure_args " in
2406 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2407 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2408 esac
2410 done
2411 if $ac_cache_corrupted; then
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2415 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2416 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2418 ## -------------------- ##
2419 ## Main body of script. ##
2420 ## -------------------- ##
2422 ac_ext=c
2423 ac_cpp='$CPP $CPPFLAGS'
2424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2429 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2433 test "$program_prefix" != NONE &&
2434 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2435 # Use a double $ so make ignores it.
2436 test "$program_suffix" != NONE &&
2437 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2438 # Double any \ or $.
2439 # By default was `s,x,x', remove it if useless.
2440 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2441 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2444 lispdir='${datadir}/emacs/${version}/lisp'
2445 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2446 '${datadir}/emacs/site-lisp'
2447 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2448 etcdir='${datadir}/emacs/${version}/etc'
2449 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2450 docdir='${datadir}/emacs/${version}/etc'
2451 gamedir='${localstatedir}/games/emacs'
2453 gameuser=games
2458 # Check whether --with-pop was given.
2459 if test "${with_pop+set}" = set; then :
2460 withval=$with_pop;
2461 else
2462 with_pop=yes
2465 if test "$with_pop" = yes; then
2466 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2471 # Check whether --with-kerberos was given.
2472 if test "${with_kerberos+set}" = set; then :
2473 withval=$with_kerberos;
2474 else
2475 with_kerberos=no
2478 if test "$with_kerberos" != no; then
2479 $as_echo "#define KERBEROS 1" >>confdefs.h
2484 # Check whether --with-kerberos5 was given.
2485 if test "${with_kerberos5+set}" = set; then :
2486 withval=$with_kerberos5;
2487 else
2488 with_kerberos5=no
2491 if test "${with_kerberos5}" != no; then
2492 if test "${with_kerberos}" = no; then
2493 with_kerberos=yes
2494 $as_echo "#define KERBEROS 1" >>confdefs.h
2498 $as_echo "#define KERBEROS5 1" >>confdefs.h
2503 # Check whether --with-hesiod was given.
2504 if test "${with_hesiod+set}" = set; then :
2505 withval=$with_hesiod;
2506 else
2507 with_hesiod=no
2510 if test "$with_hesiod" != no; then
2512 $as_echo "#define HESIOD 1" >>confdefs.h
2517 # Check whether --with-sound was given.
2518 if test "${with_sound+set}" = set; then :
2519 withval=$with_sound;
2520 else
2521 with_sound=yes
2526 # Check whether --with-sync-input was given.
2527 if test "${with_sync_input+set}" = set; then :
2528 withval=$with_sync_input;
2529 else
2530 with_sync_input=yes
2533 if test "$with_sync_input" = yes; then
2535 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2540 # Check whether --with-x-toolkit was given.
2541 if test "${with_x_toolkit+set}" = set; then :
2542 withval=$with_x_toolkit; case "${withval}" in
2543 y | ye | yes ) val=gtk ;;
2544 n | no ) val=no ;;
2545 l | lu | luc | luci | lucid ) val=lucid ;;
2546 a | at | ath | athe | athen | athena ) val=athena ;;
2547 m | mo | mot | moti | motif ) val=motif ;;
2548 g | gt | gtk ) val=gtk ;;
2550 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
2551 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2552 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2554 esac
2555 with_x_toolkit=$val
2561 # Check whether --with-xpm was given.
2562 if test "${with_xpm+set}" = set; then :
2563 withval=$with_xpm;
2564 else
2565 with_xpm=yes
2569 # Check whether --with-jpeg was given.
2570 if test "${with_jpeg+set}" = set; then :
2571 withval=$with_jpeg;
2572 else
2573 with_jpeg=yes
2577 # Check whether --with-tiff was given.
2578 if test "${with_tiff+set}" = set; then :
2579 withval=$with_tiff;
2580 else
2581 with_tiff=yes
2585 # Check whether --with-gif was given.
2586 if test "${with_gif+set}" = set; then :
2587 withval=$with_gif;
2588 else
2589 with_gif=yes
2593 # Check whether --with-png was given.
2594 if test "${with_png+set}" = set; then :
2595 withval=$with_png;
2596 else
2597 with_png=yes
2601 # Check whether --with-rsvg was given.
2602 if test "${with_rsvg+set}" = set; then :
2603 withval=$with_rsvg;
2604 else
2605 with_rsvg=yes
2610 # Check whether --with-xft was given.
2611 if test "${with_xft+set}" = set; then :
2612 withval=$with_xft;
2613 else
2614 with_xft=yes
2618 # Check whether --with-libotf was given.
2619 if test "${with_libotf+set}" = set; then :
2620 withval=$with_libotf;
2621 else
2622 with_libotf=yes
2626 # Check whether --with-m17n-flt was given.
2627 if test "${with_m17n_flt+set}" = set; then :
2628 withval=$with_m17n_flt;
2629 else
2630 with_m17n_flt=yes
2635 # Check whether --with-toolkit-scroll-bars was given.
2636 if test "${with_toolkit_scroll_bars+set}" = set; then :
2637 withval=$with_toolkit_scroll_bars;
2638 else
2639 with_toolkit_scroll_bars=yes
2643 # Check whether --with-xaw3d was given.
2644 if test "${with_xaw3d+set}" = set; then :
2645 withval=$with_xaw3d;
2646 else
2647 with_xaw3d=yes
2651 # Check whether --with-xim was given.
2652 if test "${with_xim+set}" = set; then :
2653 withval=$with_xim;
2654 else
2655 with_xim=yes
2659 # Check whether --with-ns was given.
2660 if test "${with_ns+set}" = set; then :
2661 withval=$with_ns;
2662 else
2663 with_ns=no
2668 # Check whether --with-gpm was given.
2669 if test "${with_gpm+set}" = set; then :
2670 withval=$with_gpm;
2671 else
2672 with_gpm=yes
2676 # Check whether --with-dbus was given.
2677 if test "${with_dbus+set}" = set; then :
2678 withval=$with_dbus;
2679 else
2680 with_dbus=yes
2684 # Check whether --with-gconf was given.
2685 if test "${with_gconf+set}" = set; then :
2686 withval=$with_gconf;
2687 else
2688 with_gconf=yes
2692 ## For the times when you want to build Emacs but don't have
2693 ## a suitable makeinfo, and can live without the manuals.
2695 # Check whether --with-makeinfo was given.
2696 if test "${with_makeinfo+set}" = set; then :
2697 withval=$with_makeinfo;
2698 else
2699 with_makeinfo=yes
2704 # Check whether --with-gtk was given.
2705 if test "${with_gtk+set}" = set; then :
2706 withval=$with_gtk; as_fn_error "--with-gtk has been removed. Use --with-x-toolkit to
2707 specify a toolkit." "$LINENO" 5
2712 # Check whether --with-gcc was given.
2713 if test "${with_gcc+set}" = set; then :
2714 withval=$with_gcc; as_fn_error "--with-gcc has been removed. Set the \`CC' environment
2715 variable to specify a compiler." "$LINENO" 5
2720 # Check whether --with-pkg-config-prog was given.
2721 if test "${with_pkg_config_prog+set}" = set; then :
2722 withval=$with_pkg_config_prog;
2725 if test "X${with_pkg_config_prog}" != X; then
2726 if test "${with_pkg_config_prog}" != yes; then
2727 PKG_CONFIG="${with_pkg_config_prog}"
2732 # Check whether --with-gnustep-conf was given.
2733 if test "${with_gnustep_conf+set}" = set; then :
2734 withval=$with_gnustep_conf;
2737 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2738 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2739 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2740 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2742 # Check whether --enable-ns-self-contained was given.
2743 if test "${enable_ns_self_contained+set}" = set; then :
2744 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2745 else
2746 EN_NS_SELF_CONTAINED=yes
2750 # Check whether --enable-asserts was given.
2751 if test "${enable_asserts+set}" = set; then :
2752 enableval=$enable_asserts; USE_XASSERTS=$enableval
2753 else
2754 USE_XASSERTS=no
2758 # Check whether --enable-maintainer-mode was given.
2759 if test "${enable_maintainer_mode+set}" = set; then :
2760 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2761 else
2762 USE_MAINTAINER_MODE=no
2765 if test $USE_MAINTAINER_MODE = yes; then
2766 MAINT=
2767 else
2768 MAINT=#
2772 # Check whether --enable-locallisppath was given.
2773 if test "${enable_locallisppath+set}" = set; then :
2774 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2775 locallisppath=
2776 elif test "${enableval}" != "yes"; then
2777 locallisppath=${enableval}
2782 # Check whether --enable-checking was given.
2783 if test "${enable_checking+set}" = set; then :
2784 enableval=$enable_checking; ac_checking_flags="${enableval}"
2787 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2788 for check in $ac_checking_flags
2790 case $check in
2791 # these set all the flags to specific states
2792 yes) ac_enable_checking=1 ;;
2793 no) ac_enable_checking= ;
2794 ac_gc_check_stringbytes= ;
2795 ac_gc_check_string_overrun= ;
2796 ac_gc_check_string_free_list= ;
2797 ac_xmalloc_overrun= ;
2798 ac_gc_check_cons_list= ;;
2799 all) ac_enable_checking=1 ;
2800 ac_gc_check_stringbytes=1 ;
2801 ac_gc_check_string_overrun=1 ;
2802 ac_gc_check_string_free_list=1 ;
2803 ac_xmalloc_overrun=1 ;
2804 ac_gc_check_cons_list=1 ;;
2805 # these enable particular checks
2806 stringbytes) ac_gc_check_stringbytes=1 ;;
2807 stringoverrun) ac_gc_check_string_overrun=1 ;;
2808 stringfreelist) ac_gc_check_string_free_list=1 ;;
2809 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2810 conslist) ac_gc_check_cons_list=1 ;;
2811 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
2812 esac
2813 done
2814 IFS="$ac_save_IFS"
2816 if test x$ac_enable_checking != x ; then
2818 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2821 if test x$ac_gc_check_stringbytes != x ; then
2823 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2826 if test x$ac_gc_check_stringoverrun != x ; then
2828 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2831 if test x$ac_gc_check_string_free_list != x ; then
2833 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2836 if test x$ac_xmalloc_overrun != x ; then
2838 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2841 if test x$ac_gc_check_cons_list != x ; then
2843 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2847 # Check whether --enable-profiling was given.
2848 if test "${enable_profiling+set}" = set; then :
2849 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2852 if test x$ac_enable_profiling != x ; then
2853 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2854 PROFILING_LDFLAGS="-pg"
2855 else
2856 PROFILING_CFLAGS=
2857 PROFILING_LDFLAGS=
2860 # Check whether --enable-autodepend was given.
2861 if test "${enable_autodepend+set}" = set; then :
2862 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2863 else
2864 ac_enable_autodepend=yes
2868 #### Make srcdir absolute, if it isn't already. It's important to
2869 #### avoid running the path through pwd unnecessarily, since pwd can
2870 #### give you automounter prefixes, which can go away. We do all this
2871 #### so Emacs can find its files when run uninstalled.
2872 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2873 unset CDPATH
2874 case "${srcdir}" in
2875 /* ) ;;
2877 ## We may be able to use the $PWD environment variable to make this
2878 ## absolute. But sometimes PWD is inaccurate.
2879 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2880 ## but that tested only for a well-formed and valid PWD,
2881 ## it did not object when PWD was well-formed and valid but just wrong.
2882 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2883 then
2884 srcdir="$PWD"
2885 else
2886 srcdir="`(cd ${srcdir}; pwd)`"
2889 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2890 esac
2892 #### Check if the source directory already has a configured system in it.
2893 if test `pwd` != `(cd ${srcdir} && pwd)` \
2894 && test -f "${srcdir}/src/config.h" ; then
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
2896 as a build directory right now; it has been configured in its own
2897 right. To configure in another directory as well, you MUST
2898 use GNU make. If you do not have GNU make, then you must
2899 now do \`make distclean' in ${srcdir},
2900 and then run $0 again." >&5
2901 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2902 as a build directory right now; it has been configured in its own
2903 right. To configure in another directory as well, you MUST
2904 use GNU make. If you do not have GNU make, then you must
2905 now do \`make distclean' in ${srcdir},
2906 and then run $0 again." >&2;}
2909 #### Given the configuration name, set machfile and opsysfile to the
2910 #### names of the m/*.h and s/*.h files we should use.
2912 ### Canonicalize the configuration name.
2914 ac_aux_dir=
2915 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2916 for ac_t in install-sh install.sh shtool; do
2917 if test -f "$ac_dir/$ac_t"; then
2918 ac_aux_dir=$ac_dir
2919 ac_install_sh="$ac_aux_dir/$ac_t -c"
2920 break 2
2922 done
2923 done
2924 if test -z "$ac_aux_dir"; then
2925 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2928 # These three variables are undocumented and unsupported,
2929 # and are intended to be withdrawn in a future Autoconf release.
2930 # They can cause serious problems if a builder's source tree is in a directory
2931 # whose full name contains unusual characters.
2932 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2933 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2934 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2937 # Make sure we can run config.sub.
2938 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2939 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2942 $as_echo_n "checking build system type... " >&6; }
2943 if test "${ac_cv_build+set}" = set; then :
2944 $as_echo_n "(cached) " >&6
2945 else
2946 ac_build_alias=$build_alias
2947 test "x$ac_build_alias" = x &&
2948 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2949 test "x$ac_build_alias" = x &&
2950 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2951 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2952 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2956 $as_echo "$ac_cv_build" >&6; }
2957 case $ac_cv_build in
2958 *-*-*) ;;
2959 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2960 esac
2961 build=$ac_cv_build
2962 ac_save_IFS=$IFS; IFS='-'
2963 set x $ac_cv_build
2964 shift
2965 build_cpu=$1
2966 build_vendor=$2
2967 shift; shift
2968 # Remember, the first character of IFS is used to create $*,
2969 # except with old shells:
2970 build_os=$*
2971 IFS=$ac_save_IFS
2972 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2976 $as_echo_n "checking host system type... " >&6; }
2977 if test "${ac_cv_host+set}" = set; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 if test "x$host_alias" = x; then
2981 ac_cv_host=$ac_cv_build
2982 else
2983 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2984 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2989 $as_echo "$ac_cv_host" >&6; }
2990 case $ac_cv_host in
2991 *-*-*) ;;
2992 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2993 esac
2994 host=$ac_cv_host
2995 ac_save_IFS=$IFS; IFS='-'
2996 set x $ac_cv_host
2997 shift
2998 host_cpu=$1
2999 host_vendor=$2
3000 shift; shift
3001 # Remember, the first character of IFS is used to create $*,
3002 # except with old shells:
3003 host_os=$*
3004 IFS=$ac_save_IFS
3005 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3008 canonical=$host
3009 configuration=${host_alias-${build_alias-$host}}
3013 ### If you add support for a new configuration, add code to this
3014 ### switch statement to recognize your configuration name and select
3015 ### the appropriate operating system and machine description files.
3017 ### You would hope that you could choose an m/*.h file pretty much
3018 ### based on the machine portion of the configuration name, and an s-
3019 ### file based on the operating system portion. However, it turns out
3020 ### that each m/*.h file is pretty manufacturer-specific - for
3021 ### example mips.h is MIPS
3022 ### So we basically have to have a special case for each
3023 ### configuration name.
3025 ### As far as handling version numbers on operating systems is
3026 ### concerned, make sure things will fail in a fixable way. If
3027 ### /etc/MACHINES doesn't say anything about version numbers, be
3028 ### prepared to handle anything reasonably. If version numbers
3029 ### matter, be sure /etc/MACHINES says something about it.
3031 ### Eric Raymond says we should accept strings like "sysvr4" to mean
3032 ### "System V Release 4"; he writes, "The old convention encouraged
3033 ### confusion between `system' and `release' levels'."
3035 machine='' opsys='' unported=no
3036 case "${canonical}" in
3038 ## FreeBSD ports
3039 *-*-freebsd* )
3040 opsys=freebsd
3041 case "${canonical}" in
3042 alpha*-*-freebsd*) machine=alpha ;;
3043 arm*-*-freebsd*) machine=arm ;;
3044 ia64-*-freebsd*) machine=ia64 ;;
3045 sparc-*-freebsd*) machine=sparc ;;
3046 sparc64-*-freebsd*) machine=sparc ;;
3047 powerpc-*-freebsd*) machine=macppc ;;
3048 i[3456]86-*-freebsd*) machine=intel386 ;;
3049 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
3050 esac
3053 ## FreeBSD kernel + glibc based userland
3054 *-*-kfreebsd*gnu* )
3055 opsys=gnu-kfreebsd
3056 case "${canonical}" in
3057 alpha*-*-kfreebsd*) machine=alpha ;;
3058 ia64-*-kfreebsd*) machine=ia64 ;;
3059 sparc-*-kfreebsd*) machine=sparc ;;
3060 sparc64-*-kfreebsd*) machine=sparc ;;
3061 powerpc-*-kfreebsd*) machine=macppc ;;
3062 i[3456]86-*-kfreebsd*) machine=intel386 ;;
3063 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
3064 esac
3067 ## NetBSD ports
3068 *-*-netbsd* )
3069 opsys=netbsd
3070 if test -f /usr/lib/crti.o; then
3072 $as_echo "#define HAVE_CRTIN /**/" >>confdefs.h
3076 case "${canonical}" in
3077 alpha*-*-netbsd*) machine=alpha ;;
3078 i[3456]86-*-netbsd*) machine=intel386 ;;
3079 mips-*-netbsd*) machine=mips ;;
3080 mipsel-*-netbsd*) machine=mips ;;
3081 mipseb-*-netbsd*) machine=mips ;;
3082 powerpc-*-netbsd*) machine=macppc ;;
3083 sparc*-*-netbsd*) machine=sparc ;;
3084 vax-*-netbsd*) machine=vax ;;
3085 arm-*-netbsd*) machine=arm ;;
3086 x86_64-*-netbsd*) machine=amdx86-64 ;;
3087 hppa-*-netbsd*) machine=hp800 ;;
3088 m68k-*-netbsd*) machine=m68k ;;
3089 esac
3092 ## OpenBSD ports
3093 *-*-openbsd* )
3094 opsys=openbsd
3095 case "${canonical}" in
3096 alpha*-*-openbsd*) machine=alpha ;;
3097 arm-*-openbsd*) machine=arm ;;
3098 i386-*-openbsd*) machine=intel386 ;;
3099 powerpc-*-openbsd*) machine=macppc ;;
3100 sparc*-*-openbsd*) machine=sparc ;;
3101 vax-*-openbsd*) machine=vax ;;
3102 x86_64-*-openbsd*) machine=amdx86-64 ;;
3103 hppa-*-openbsd*) machine=hp800 ;;
3104 esac
3107 ## LynxOS ports
3108 *-*-lynxos* )
3109 opsys=lynxos
3110 case "${canonical}" in
3111 i[3456]86-*-lynxos*) machine=intel386 ;;
3112 powerpc-*-lynxos*) machine=powerpc ;;
3113 esac
3116 alpha*-*-linux-gnu* )
3117 machine=alpha opsys=gnu-linux
3120 arm*-*-linux-gnu* )
3121 machine=arm opsys=gnu-linux
3124 ## Apple Darwin / Mac OS X
3125 *-apple-darwin* )
3126 case "${canonical}" in
3127 i[3456]86-* ) machine=intel386 ;;
3128 powerpc-* ) machine=macppc ;;
3129 x86_64-* ) machine=amdx86-64 ;;
3130 * ) unported=yes ;;
3131 esac
3132 opsys=darwin
3133 # Define CPP as follows to make autoconf work correctly.
3134 CPP="${CC-cc} -E -no-cpp-precomp"
3135 # Use fink packages if available.
3136 if test -d /sw/include && test -d /sw/lib; then
3137 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3138 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3139 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3143 ## HP 9000 series 700 and 800, running HP/UX
3144 hppa*-hp-hpux10.2* )
3145 machine=hp800 opsys=hpux10-20
3147 hppa*-hp-hpux1[1-9]* )
3148 machine=hp800 opsys=hpux11
3149 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3152 hppa*-*-linux-gnu* )
3153 machine=hp800 opsys=gnu-linux
3156 ## IBM machines
3157 s390-*-linux-gnu* )
3158 machine=ibms390 opsys=gnu-linux
3160 s390x-*-linux-gnu* )
3161 machine=ibms390x opsys=gnu-linux
3163 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
3164 machine=ibmrs6000 opsys=aix4-2
3166 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
3167 machine=ibmrs6000 opsys=aix4-2
3169 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
3170 machine=ibmrs6000 opsys=aix4-2
3172 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
3173 machine=ibmrs6000 opsys=aix4-2
3176 ## Macintosh PowerPC
3177 powerpc*-*-linux-gnu* )
3178 machine=macppc opsys=gnu-linux
3181 ## Silicon Graphics machines
3182 ## Iris 4D
3183 mips-sgi-irix6.5 )
3184 machine=iris4d opsys=irix6-5
3185 # Without defining _LANGUAGE_C, things get masked out in the headers
3186 # so that, for instance, grepping for `free' in stdlib.h fails and
3187 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3188 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3189 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3192 ## Suns
3193 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3194 machine=sparc opsys=gnu-linux
3197 *-sun-solaris* \
3198 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3199 | x86_64-*-solaris2* | x86_64-*-sunos5* \
3200 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
3201 case "${canonical}" in
3202 i[3456]86-*-* ) machine=intel386 ;;
3203 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3204 powerpc* | rs6000* ) machine=ibmrs6000 ;;
3205 sparc* ) machine=sparc ;;
3206 * ) unported=yes ;;
3207 esac
3208 case "${canonical}" in
3209 *-sunos5.3* | *-solaris2.3* )
3210 opsys=sol2-3
3211 NON_GNU_CPP=/usr/ccs/lib/cpp
3213 *-sunos5.4* | *-solaris2.4* )
3214 opsys=sol2-4
3215 NON_GNU_CPP=/usr/ccs/lib/cpp
3216 RANLIB="ar -ts"
3218 *-sunos5.5* | *-solaris2.5* )
3219 opsys=sol2-5
3220 NON_GNU_CPP=/usr/ccs/lib/cpp
3221 RANLIB="ar -ts"
3223 *-sunos5.6* | *-solaris2.6* )
3224 opsys=sol2-6
3225 NON_GNU_CPP=/usr/ccs/lib/cpp
3226 RANLIB="ar -ts"
3228 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3229 opsys=sol2-6
3230 emacs_check_sunpro_c=yes
3231 NON_GNU_CPP=/usr/ccs/lib/cpp
3233 *-sunos5* | *-solaris* )
3234 opsys=sol2-10
3235 emacs_check_sunpro_c=yes
3236 NON_GNU_CPP=/usr/ccs/lib/cpp
3238 esac
3239 ## Watch out for a compiler that we know will not work.
3240 case "${canonical}" in
3241 *-solaris* | *-sunos5* )
3242 if [ "x$CC" = x/usr/ucb/cc ]; then
3243 ## /usr/ucb/cc doesn't work;
3244 ## we should find some other compiler that does work.
3245 unset CC
3248 *) ;;
3249 esac
3252 ## IA-64
3253 ia64*-*-linux* )
3254 machine=ia64 opsys=gnu-linux
3257 ## Intel 386 machines where we don't care about the manufacturer
3258 i[3456]86-*-* )
3259 machine=intel386
3260 case "${canonical}" in
3261 *-cygwin ) opsys=cygwin ;;
3262 *-darwin* ) opsys=darwin
3263 CPP="${CC-cc} -E -no-cpp-precomp"
3265 *-linux-gnu* ) opsys=gnu-linux ;;
3266 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3267 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3268 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3269 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3270 esac
3273 ## m68k Linux-based GNU system
3274 m68k-*-linux-gnu* )
3275 machine=m68k opsys=gnu-linux
3278 ## Mips Linux-based GNU system
3279 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
3280 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
3281 machine=mips opsys=gnu-linux
3284 ## AMD x86-64 Linux-based GNU system
3285 x86_64-*-linux-gnu* )
3286 machine=amdx86-64 opsys=gnu-linux
3289 ## Tensilica Xtensa Linux-based GNU system
3290 xtensa*-*-linux-gnu* )
3291 machine=xtensa opsys=gnu-linux
3294 ## SuperH Linux-based GNU system
3295 sh[34]*-*-linux-gnu* )
3296 machine=sh3 opsys=gnu-linux
3300 unported=yes
3302 esac
3304 ### If the code above didn't choose an operating system, just choose
3305 ### an operating system based on the configuration name. You really
3306 ### only want to use this when you have no idea what the right
3307 ### operating system is; if you know what operating systems a machine
3308 ### runs, it's cleaner to make it explicit in the case statement
3309 ### above.
3310 if test x"${opsys}" = x; then
3311 case "${canonical}" in
3312 *-gnu* ) opsys=gnu ;;
3313 *-sysv4.2uw* ) opsys=unixware ;;
3314 *-sysv5uw* ) opsys=unixware ;;
3315 *-sysv5OpenUNIX* ) opsys=unixware ;;
3316 *-sysv4.1* | *-sysvr4.1* )
3317 NON_GNU_CPP=/usr/lib/cpp
3318 opsys=usg5-4 ;;
3319 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3320 if [ x$NON_GNU_CPP = x ]; then
3321 if [ -f /usr/ccs/lib/cpp ]; then
3322 NON_GNU_CPP=/usr/ccs/lib/cpp
3323 else
3324 NON_GNU_CPP=/lib/cpp
3327 opsys=usg5-4-2 ;;
3328 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3330 unported=yes
3332 esac
3337 if test $unported = yes; then
3338 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
3339 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3342 machfile="m/${machine}.h"
3343 opsysfile="s/${opsys}.h"
3346 #### Choose a compiler.
3347 test -n "$CC" && cc_specified=yes
3349 # Save the value of CFLAGS that the user specified.
3350 SPECIFIED_CFLAGS="$CFLAGS"
3352 ac_ext=c
3353 ac_cpp='$CPP $CPPFLAGS'
3354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3357 if test -n "$ac_tool_prefix"; then
3358 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3359 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361 $as_echo_n "checking for $ac_word... " >&6; }
3362 if test "${ac_cv_prog_CC+set}" = set; then :
3363 $as_echo_n "(cached) " >&6
3364 else
3365 if test -n "$CC"; then
3366 ac_cv_prog_CC="$CC" # Let the user override the test.
3367 else
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH
3371 IFS=$as_save_IFS
3372 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3375 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 break 2
3379 done
3380 done
3381 IFS=$as_save_IFS
3385 CC=$ac_cv_prog_CC
3386 if test -n "$CC"; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3388 $as_echo "$CC" >&6; }
3389 else
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 $as_echo "no" >&6; }
3396 if test -z "$ac_cv_prog_CC"; then
3397 ac_ct_CC=$CC
3398 # Extract the first word of "gcc", so it can be a program name with args.
3399 set dummy gcc; ac_word=$2
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401 $as_echo_n "checking for $ac_word... " >&6; }
3402 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3403 $as_echo_n "(cached) " >&6
3404 else
3405 if test -n "$ac_ct_CC"; then
3406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3407 else
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3411 IFS=$as_save_IFS
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415 ac_cv_prog_ac_ct_CC="gcc"
3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 break 2
3419 done
3420 done
3421 IFS=$as_save_IFS
3425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3426 if test -n "$ac_ct_CC"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3428 $as_echo "$ac_ct_CC" >&6; }
3429 else
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3434 if test "x$ac_ct_CC" = x; then
3435 CC=""
3436 else
3437 case $cross_compiling:$ac_tool_warned in
3438 yes:)
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3441 ac_tool_warned=yes ;;
3442 esac
3443 CC=$ac_ct_CC
3445 else
3446 CC="$ac_cv_prog_CC"
3449 if test -z "$CC"; then
3450 if test -n "$ac_tool_prefix"; then
3451 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3452 set dummy ${ac_tool_prefix}cc; ac_word=$2
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454 $as_echo_n "checking for $ac_word... " >&6; }
3455 if test "${ac_cv_prog_CC+set}" = set; then :
3456 $as_echo_n "(cached) " >&6
3457 else
3458 if test -n "$CC"; then
3459 ac_cv_prog_CC="$CC" # Let the user override the test.
3460 else
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH
3464 IFS=$as_save_IFS
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3468 ac_cv_prog_CC="${ac_tool_prefix}cc"
3469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3470 break 2
3472 done
3473 done
3474 IFS=$as_save_IFS
3478 CC=$ac_cv_prog_CC
3479 if test -n "$CC"; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3481 $as_echo "$CC" >&6; }
3482 else
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 $as_echo "no" >&6; }
3490 if test -z "$CC"; then
3491 # Extract the first word of "cc", so it can be a program name with args.
3492 set dummy cc; ac_word=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if test "${ac_cv_prog_CC+set}" = set; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 else
3501 ac_prog_rejected=no
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3505 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3510 ac_prog_rejected=yes
3511 continue
3513 ac_cv_prog_CC="cc"
3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3517 done
3518 done
3519 IFS=$as_save_IFS
3521 if test $ac_prog_rejected = yes; then
3522 # We found a bogon in the path, so make sure we never use it.
3523 set dummy $ac_cv_prog_CC
3524 shift
3525 if test $# != 0; then
3526 # We chose a different compiler from the bogus one.
3527 # However, it has the same basename, so the bogon will be chosen
3528 # first if we set CC to just the basename; use the full file name.
3529 shift
3530 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3535 CC=$ac_cv_prog_CC
3536 if test -n "$CC"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3538 $as_echo "$CC" >&6; }
3539 else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3546 if test -z "$CC"; then
3547 if test -n "$ac_tool_prefix"; then
3548 for ac_prog in cl.exe
3550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553 $as_echo_n "checking for $ac_word... " >&6; }
3554 if test "${ac_cv_prog_CC+set}" = set; then :
3555 $as_echo_n "(cached) " >&6
3556 else
3557 if test -n "$CC"; then
3558 ac_cv_prog_CC="$CC" # Let the user override the test.
3559 else
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH
3563 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3567 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 break 2
3571 done
3572 done
3573 IFS=$as_save_IFS
3577 CC=$ac_cv_prog_CC
3578 if test -n "$CC"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3580 $as_echo "$CC" >&6; }
3581 else
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3587 test -n "$CC" && break
3588 done
3590 if test -z "$CC"; then
3591 ac_ct_CC=$CC
3592 for ac_prog in cl.exe
3594 # Extract the first word of "$ac_prog", so it can be a program name with args.
3595 set dummy $ac_prog; ac_word=$2
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597 $as_echo_n "checking for $ac_word... " >&6; }
3598 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3599 $as_echo_n "(cached) " >&6
3600 else
3601 if test -n "$ac_ct_CC"; then
3602 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3603 else
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 for as_dir in $PATH
3607 IFS=$as_save_IFS
3608 test -z "$as_dir" && as_dir=.
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3611 ac_cv_prog_ac_ct_CC="$ac_prog"
3612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 break 2
3615 done
3616 done
3617 IFS=$as_save_IFS
3621 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3622 if test -n "$ac_ct_CC"; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3624 $as_echo "$ac_ct_CC" >&6; }
3625 else
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3631 test -n "$ac_ct_CC" && break
3632 done
3634 if test "x$ac_ct_CC" = x; then
3635 CC=""
3636 else
3637 case $cross_compiling:$ac_tool_warned in
3638 yes:)
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3641 ac_tool_warned=yes ;;
3642 esac
3643 CC=$ac_ct_CC
3650 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3652 as_fn_error "no acceptable C compiler found in \$PATH
3653 See \`config.log' for more details." "$LINENO" 5; }
3655 # Provide some information about the compiler.
3656 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3657 set X $ac_compile
3658 ac_compiler=$2
3659 for ac_option in --version -v -V -qversion; do
3660 { { ac_try="$ac_compiler $ac_option >&5"
3661 case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664 esac
3665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666 $as_echo "$ac_try_echo"; } >&5
3667 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3668 ac_status=$?
3669 if test -s conftest.err; then
3670 sed '10a\
3671 ... rest of stderr output deleted ...
3672 10q' conftest.err >conftest.er1
3673 cat conftest.er1 >&5
3674 rm -f conftest.er1 conftest.err
3676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3677 test $ac_status = 0; }
3678 done
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3682 #include <stdio.h>
3684 main ()
3686 FILE *f = fopen ("conftest.out", "w");
3687 return ferror (f) || fclose (f) != 0;
3690 return 0;
3692 _ACEOF
3693 ac_clean_files_save=$ac_clean_files
3694 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3695 # Try to create an executable without -o first, disregard a.out.
3696 # It will help us diagnose broken compilers, and finding out an intuition
3697 # of exeext.
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3699 $as_echo_n "checking for C compiler default output file name... " >&6; }
3700 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3702 # The possible output files:
3703 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3705 ac_rmfiles=
3706 for ac_file in $ac_files
3708 case $ac_file in
3709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3710 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3711 esac
3712 done
3713 rm -f $ac_rmfiles
3715 if { { ac_try="$ac_link_default"
3716 case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3719 esac
3720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721 $as_echo "$ac_try_echo"; } >&5
3722 (eval "$ac_link_default") 2>&5
3723 ac_status=$?
3724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725 test $ac_status = 0; }; then :
3726 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3727 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3728 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3729 # so that the user can short-circuit this test for compilers unknown to
3730 # Autoconf.
3731 for ac_file in $ac_files ''
3733 test -f "$ac_file" || continue
3734 case $ac_file in
3735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3737 [ab].out )
3738 # We found the default executable, but exeext='' is most
3739 # certainly right.
3740 break;;
3741 *.* )
3742 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3743 then :; else
3744 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3746 # We set ac_cv_exeext here because the later test for it is not
3747 # safe: cross compilers may not add the suffix if given an `-o'
3748 # argument, so we may need to know it at that point already.
3749 # Even if this section looks crufty: it has the advantage of
3750 # actually working.
3751 break;;
3753 break;;
3754 esac
3755 done
3756 test "$ac_cv_exeext" = no && ac_cv_exeext=
3758 else
3759 ac_file=''
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3762 $as_echo "$ac_file" >&6; }
3763 if test -z "$ac_file"; then :
3764 $as_echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3769 { as_fn_set_status 77
3770 as_fn_error "C compiler cannot create executables
3771 See \`config.log' for more details." "$LINENO" 5; }; }
3773 ac_exeext=$ac_cv_exeext
3775 # Check that the compiler produces executables we can run. If not, either
3776 # the compiler is broken, or we cross compile.
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3778 $as_echo_n "checking whether the C compiler works... " >&6; }
3779 # If not cross compiling, check that we can run a simple program.
3780 if test "$cross_compiling" != yes; then
3781 if { ac_try='./$ac_file'
3782 { { case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3785 esac
3786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3787 $as_echo "$ac_try_echo"; } >&5
3788 (eval "$ac_try") 2>&5
3789 ac_status=$?
3790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3791 test $ac_status = 0; }; }; then
3792 cross_compiling=no
3793 else
3794 if test "$cross_compiling" = maybe; then
3795 cross_compiling=yes
3796 else
3797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3799 as_fn_error "cannot run C compiled programs.
3800 If you meant to cross compile, use \`--host'.
3801 See \`config.log' for more details." "$LINENO" 5; }
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3806 $as_echo "yes" >&6; }
3808 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3809 ac_clean_files=$ac_clean_files_save
3810 # Check that the compiler produces executables we can run. If not, either
3811 # the compiler is broken, or we cross compile.
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3813 $as_echo_n "checking whether we are cross compiling... " >&6; }
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3815 $as_echo "$cross_compiling" >&6; }
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3818 $as_echo_n "checking for suffix of executables... " >&6; }
3819 if { { ac_try="$ac_link"
3820 case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3823 esac
3824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3825 $as_echo "$ac_try_echo"; } >&5
3826 (eval "$ac_link") 2>&5
3827 ac_status=$?
3828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829 test $ac_status = 0; }; then :
3830 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3831 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3832 # work properly (i.e., refer to `conftest.exe'), while it won't with
3833 # `rm'.
3834 for ac_file in conftest.exe conftest conftest.*; do
3835 test -f "$ac_file" || continue
3836 case $ac_file in
3837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3838 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3839 break;;
3840 * ) break;;
3841 esac
3842 done
3843 else
3844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3846 as_fn_error "cannot compute suffix of executables: cannot compile and link
3847 See \`config.log' for more details." "$LINENO" 5; }
3849 rm -f conftest$ac_cv_exeext
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3851 $as_echo "$ac_cv_exeext" >&6; }
3853 rm -f conftest.$ac_ext
3854 EXEEXT=$ac_cv_exeext
3855 ac_exeext=$EXEEXT
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3857 $as_echo_n "checking for suffix of object files... " >&6; }
3858 if test "${ac_cv_objext+set}" = set; then :
3859 $as_echo_n "(cached) " >&6
3860 else
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3865 main ()
3869 return 0;
3871 _ACEOF
3872 rm -f conftest.o conftest.obj
3873 if { { ac_try="$ac_compile"
3874 case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877 esac
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5
3880 (eval "$ac_compile") 2>&5
3881 ac_status=$?
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }; then :
3884 for ac_file in conftest.o conftest.obj conftest.*; do
3885 test -f "$ac_file" || continue;
3886 case $ac_file in
3887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3888 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3889 break;;
3890 esac
3891 done
3892 else
3893 $as_echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3898 as_fn_error "cannot compute suffix of object files: cannot compile
3899 See \`config.log' for more details." "$LINENO" 5; }
3901 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3904 $as_echo "$ac_cv_objext" >&6; }
3905 OBJEXT=$ac_cv_objext
3906 ac_objext=$OBJEXT
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3908 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3909 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3910 $as_echo_n "(cached) " >&6
3911 else
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h. */
3916 main ()
3918 #ifndef __GNUC__
3919 choke me
3920 #endif
3923 return 0;
3925 _ACEOF
3926 if ac_fn_c_try_compile "$LINENO"; then :
3927 ac_compiler_gnu=yes
3928 else
3929 ac_compiler_gnu=no
3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3936 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3937 if test $ac_compiler_gnu = yes; then
3938 GCC=yes
3939 else
3940 GCC=
3942 ac_test_CFLAGS=${CFLAGS+set}
3943 ac_save_CFLAGS=$CFLAGS
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3945 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3946 if test "${ac_cv_prog_cc_g+set}" = set; then :
3947 $as_echo_n "(cached) " >&6
3948 else
3949 ac_save_c_werror_flag=$ac_c_werror_flag
3950 ac_c_werror_flag=yes
3951 ac_cv_prog_cc_g=no
3952 CFLAGS="-g"
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3957 main ()
3961 return 0;
3963 _ACEOF
3964 if ac_fn_c_try_compile "$LINENO"; then :
3965 ac_cv_prog_cc_g=yes
3966 else
3967 CFLAGS=""
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3972 main ()
3976 return 0;
3978 _ACEOF
3979 if ac_fn_c_try_compile "$LINENO"; then :
3981 else
3982 ac_c_werror_flag=$ac_save_c_werror_flag
3983 CFLAGS="-g"
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3988 main ()
3992 return 0;
3994 _ACEOF
3995 if ac_fn_c_try_compile "$LINENO"; then :
3996 ac_cv_prog_cc_g=yes
3998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 ac_c_werror_flag=$ac_save_c_werror_flag
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4006 $as_echo "$ac_cv_prog_cc_g" >&6; }
4007 if test "$ac_test_CFLAGS" = set; then
4008 CFLAGS=$ac_save_CFLAGS
4009 elif test $ac_cv_prog_cc_g = yes; then
4010 if test "$GCC" = yes; then
4011 CFLAGS="-g -O2"
4012 else
4013 CFLAGS="-g"
4015 else
4016 if test "$GCC" = yes; then
4017 CFLAGS="-O2"
4018 else
4019 CFLAGS=
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4023 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4024 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4025 $as_echo_n "(cached) " >&6
4026 else
4027 ac_cv_prog_cc_c89=no
4028 ac_save_CC=$CC
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4031 #include <stdarg.h>
4032 #include <stdio.h>
4033 #include <sys/types.h>
4034 #include <sys/stat.h>
4035 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4036 struct buf { int x; };
4037 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4038 static char *e (p, i)
4039 char **p;
4040 int i;
4042 return p[i];
4044 static char *f (char * (*g) (char **, int), char **p, ...)
4046 char *s;
4047 va_list v;
4048 va_start (v,p);
4049 s = g (p, va_arg (v,int));
4050 va_end (v);
4051 return s;
4054 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4055 function prototypes and stuff, but not '\xHH' hex character constants.
4056 These don't provoke an error unfortunately, instead are silently treated
4057 as 'x'. The following induces an error, until -std is added to get
4058 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4059 array size at least. It's necessary to write '\x00'==0 to get something
4060 that's true only with -std. */
4061 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4063 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4064 inside strings and character constants. */
4065 #define FOO(x) 'x'
4066 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4068 int test (int i, double x);
4069 struct s1 {int (*f) (int a);};
4070 struct s2 {int (*f) (double a);};
4071 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4072 int argc;
4073 char **argv;
4075 main ()
4077 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4079 return 0;
4081 _ACEOF
4082 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4083 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4085 CC="$ac_save_CC $ac_arg"
4086 if ac_fn_c_try_compile "$LINENO"; then :
4087 ac_cv_prog_cc_c89=$ac_arg
4089 rm -f core conftest.err conftest.$ac_objext
4090 test "x$ac_cv_prog_cc_c89" != "xno" && break
4091 done
4092 rm -f conftest.$ac_ext
4093 CC=$ac_save_CC
4096 # AC_CACHE_VAL
4097 case "x$ac_cv_prog_cc_c89" in
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4100 $as_echo "none needed" >&6; } ;;
4101 xno)
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4103 $as_echo "unsupported" >&6; } ;;
4105 CC="$CC $ac_cv_prog_cc_c89"
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4107 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4108 esac
4109 if test "x$ac_cv_prog_cc_c89" != xno; then :
4113 ac_ext=c
4114 ac_cpp='$CPP $CPPFLAGS'
4115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120 # On Suns, sometimes $CPP names a directory.
4121 if test -n "$CPP" && test -d "$CPP"; then
4122 CPP=
4125 ## If not using gcc, and on Solaris, and no CPP specified, see if
4126 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4127 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4128 test x"$CPP" = x; then
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4130 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4132 if test "${emacs_cv_sunpro_c+set}" = set; then :
4133 $as_echo_n "(cached) " >&6
4134 else
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4139 main ()
4141 #ifndef __SUNPRO_C
4142 fail;
4143 #endif
4146 return 0;
4148 _ACEOF
4149 if ac_fn_c_try_link "$LINENO"; then :
4150 emacs_cv_sunpro_c=yes
4151 else
4152 emacs_cv_sunpro_c=no
4154 rm -f core conftest.err conftest.$ac_objext \
4155 conftest$ac_exeext conftest.$ac_ext
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4159 $as_echo "$emacs_cv_sunpro_c" >&6; }
4161 if test x"$emacs_cv_sunpro_c" = xyes; then
4162 NON_GNU_CPP="$CC -E -Xs"
4166 #### Some systems specify a CPP to use unless we are using GCC.
4167 #### Now that we know whether we are using GCC, we can decide whether
4168 #### to use that one.
4169 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4170 then
4171 CPP="$NON_GNU_CPP"
4174 #### Some systems specify a CC to use unless we are using GCC.
4175 #### Now that we know whether we are using GCC, we can decide whether
4176 #### to use that one.
4177 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4178 test x$cc_specified != xyes
4179 then
4180 CC="$NON_GNU_CC"
4183 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4184 then
4185 CC="$CC $GCC_TEST_OPTIONS"
4188 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4189 then
4190 CC="$CC $NON_GCC_TEST_OPTIONS"
4193 ac_ext=c
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4199 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4200 # On Suns, sometimes $CPP names a directory.
4201 if test -n "$CPP" && test -d "$CPP"; then
4202 CPP=
4204 if test -z "$CPP"; then
4205 if test "${ac_cv_prog_CPP+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
4207 else
4208 # Double quotes because CPP needs to be expanded
4209 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4211 ac_preproc_ok=false
4212 for ac_c_preproc_warn_flag in '' yes
4214 # Use a header file that comes with gcc, so configuring glibc
4215 # with a fresh cross-compiler works.
4216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4217 # <limits.h> exists even on freestanding compilers.
4218 # On the NeXT, cc -E runs the code through the compiler's parser,
4219 # not just through cpp. "Syntax error" is here to catch this case.
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4222 #ifdef __STDC__
4223 # include <limits.h>
4224 #else
4225 # include <assert.h>
4226 #endif
4227 Syntax error
4228 _ACEOF
4229 if ac_fn_c_try_cpp "$LINENO"; then :
4231 else
4232 # Broken: fails on valid input.
4233 continue
4235 rm -f conftest.err conftest.$ac_ext
4237 # OK, works on sane cases. Now check whether nonexistent headers
4238 # can be detected and how.
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241 #include <ac_nonexistent.h>
4242 _ACEOF
4243 if ac_fn_c_try_cpp "$LINENO"; then :
4244 # Broken: success on invalid input.
4245 continue
4246 else
4247 # Passes both tests.
4248 ac_preproc_ok=:
4249 break
4251 rm -f conftest.err conftest.$ac_ext
4253 done
4254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4255 rm -f conftest.err conftest.$ac_ext
4256 if $ac_preproc_ok; then :
4257 break
4260 done
4261 ac_cv_prog_CPP=$CPP
4264 CPP=$ac_cv_prog_CPP
4265 else
4266 ac_cv_prog_CPP=$CPP
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4269 $as_echo "$CPP" >&6; }
4270 ac_preproc_ok=false
4271 for ac_c_preproc_warn_flag in '' yes
4273 # Use a header file that comes with gcc, so configuring glibc
4274 # with a fresh cross-compiler works.
4275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4276 # <limits.h> exists even on freestanding compilers.
4277 # On the NeXT, cc -E runs the code through the compiler's parser,
4278 # not just through cpp. "Syntax error" is here to catch this case.
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281 #ifdef __STDC__
4282 # include <limits.h>
4283 #else
4284 # include <assert.h>
4285 #endif
4286 Syntax error
4287 _ACEOF
4288 if ac_fn_c_try_cpp "$LINENO"; then :
4290 else
4291 # Broken: fails on valid input.
4292 continue
4294 rm -f conftest.err conftest.$ac_ext
4296 # OK, works on sane cases. Now check whether nonexistent headers
4297 # can be detected and how.
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4300 #include <ac_nonexistent.h>
4301 _ACEOF
4302 if ac_fn_c_try_cpp "$LINENO"; then :
4303 # Broken: success on invalid input.
4304 continue
4305 else
4306 # Passes both tests.
4307 ac_preproc_ok=:
4308 break
4310 rm -f conftest.err conftest.$ac_ext
4312 done
4313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4314 rm -f conftest.err conftest.$ac_ext
4315 if $ac_preproc_ok; then :
4317 else
4318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4321 See \`config.log' for more details." "$LINENO" 5; }
4324 ac_ext=c
4325 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4332 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4333 if test "${ac_cv_path_GREP+set}" = set; then :
4334 $as_echo_n "(cached) " >&6
4335 else
4336 if test -z "$GREP"; then
4337 ac_path_GREP_found=false
4338 # Loop through the user's path and test for each of PROGNAME-LIST
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_prog in grep ggrep; do
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4347 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4348 # Check for GNU ac_path_GREP and select it if it is found.
4349 # Check for GNU $ac_path_GREP
4350 case `"$ac_path_GREP" --version 2>&1` in
4351 *GNU*)
4352 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4354 ac_count=0
4355 $as_echo_n 0123456789 >"conftest.in"
4356 while :
4358 cat "conftest.in" "conftest.in" >"conftest.tmp"
4359 mv "conftest.tmp" "conftest.in"
4360 cp "conftest.in" "conftest.nl"
4361 $as_echo 'GREP' >> "conftest.nl"
4362 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4364 as_fn_arith $ac_count + 1 && ac_count=$as_val
4365 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4366 # Best one so far, save it but keep looking for a better one
4367 ac_cv_path_GREP="$ac_path_GREP"
4368 ac_path_GREP_max=$ac_count
4370 # 10*(2^10) chars as input seems more than enough
4371 test $ac_count -gt 10 && break
4372 done
4373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4374 esac
4376 $ac_path_GREP_found && break 3
4377 done
4378 done
4379 done
4380 IFS=$as_save_IFS
4381 if test -z "$ac_cv_path_GREP"; then
4382 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4384 else
4385 ac_cv_path_GREP=$GREP
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4390 $as_echo "$ac_cv_path_GREP" >&6; }
4391 GREP="$ac_cv_path_GREP"
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4395 $as_echo_n "checking for egrep... " >&6; }
4396 if test "${ac_cv_path_EGREP+set}" = set; then :
4397 $as_echo_n "(cached) " >&6
4398 else
4399 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4400 then ac_cv_path_EGREP="$GREP -E"
4401 else
4402 if test -z "$EGREP"; then
4403 ac_path_EGREP_found=false
4404 # Loop through the user's path and test for each of PROGNAME-LIST
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_prog in egrep; do
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4413 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4414 # Check for GNU ac_path_EGREP and select it if it is found.
4415 # Check for GNU $ac_path_EGREP
4416 case `"$ac_path_EGREP" --version 2>&1` in
4417 *GNU*)
4418 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4420 ac_count=0
4421 $as_echo_n 0123456789 >"conftest.in"
4422 while :
4424 cat "conftest.in" "conftest.in" >"conftest.tmp"
4425 mv "conftest.tmp" "conftest.in"
4426 cp "conftest.in" "conftest.nl"
4427 $as_echo 'EGREP' >> "conftest.nl"
4428 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4430 as_fn_arith $ac_count + 1 && ac_count=$as_val
4431 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4432 # Best one so far, save it but keep looking for a better one
4433 ac_cv_path_EGREP="$ac_path_EGREP"
4434 ac_path_EGREP_max=$ac_count
4436 # 10*(2^10) chars as input seems more than enough
4437 test $ac_count -gt 10 && break
4438 done
4439 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4440 esac
4442 $ac_path_EGREP_found && break 3
4443 done
4444 done
4445 done
4446 IFS=$as_save_IFS
4447 if test -z "$ac_cv_path_EGREP"; then
4448 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4450 else
4451 ac_cv_path_EGREP=$EGREP
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4457 $as_echo "$ac_cv_path_EGREP" >&6; }
4458 EGREP="$ac_cv_path_EGREP"
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4462 $as_echo_n "checking for ANSI C header files... " >&6; }
4463 if test "${ac_cv_header_stdc+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4465 else
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4468 #include <stdlib.h>
4469 #include <stdarg.h>
4470 #include <string.h>
4471 #include <float.h>
4474 main ()
4478 return 0;
4480 _ACEOF
4481 if ac_fn_c_try_compile "$LINENO"; then :
4482 ac_cv_header_stdc=yes
4483 else
4484 ac_cv_header_stdc=no
4486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488 if test $ac_cv_header_stdc = yes; then
4489 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4492 #include <string.h>
4494 _ACEOF
4495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4496 $EGREP "memchr" >/dev/null 2>&1; then :
4498 else
4499 ac_cv_header_stdc=no
4501 rm -f conftest*
4505 if test $ac_cv_header_stdc = yes; then
4506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4509 #include <stdlib.h>
4511 _ACEOF
4512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4513 $EGREP "free" >/dev/null 2>&1; then :
4515 else
4516 ac_cv_header_stdc=no
4518 rm -f conftest*
4522 if test $ac_cv_header_stdc = yes; then
4523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4524 if test "$cross_compiling" = yes; then :
4526 else
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4529 #include <ctype.h>
4530 #include <stdlib.h>
4531 #if ((' ' & 0x0FF) == 0x020)
4532 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4533 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4534 #else
4535 # define ISLOWER(c) \
4536 (('a' <= (c) && (c) <= 'i') \
4537 || ('j' <= (c) && (c) <= 'r') \
4538 || ('s' <= (c) && (c) <= 'z'))
4539 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4540 #endif
4542 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4544 main ()
4546 int i;
4547 for (i = 0; i < 256; i++)
4548 if (XOR (islower (i), ISLOWER (i))
4549 || toupper (i) != TOUPPER (i))
4550 return 2;
4551 return 0;
4553 _ACEOF
4554 if ac_fn_c_try_run "$LINENO"; then :
4556 else
4557 ac_cv_header_stdc=no
4559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4560 conftest.$ac_objext conftest.beam conftest.$ac_ext
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4566 $as_echo "$ac_cv_header_stdc" >&6; }
4567 if test $ac_cv_header_stdc = yes; then
4569 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4573 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4574 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4575 inttypes.h stdint.h unistd.h
4576 do :
4577 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4578 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4580 eval as_val=\$$as_ac_Header
4581 if test "x$as_val" = x""yes; then :
4582 cat >>confdefs.h <<_ACEOF
4583 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4584 _ACEOF
4588 done
4592 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4593 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4594 MINIX=yes
4595 else
4596 MINIX=
4600 if test "$MINIX" = yes; then
4602 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4605 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4608 $as_echo "#define _MINIX 1" >>confdefs.h
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4614 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4615 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4621 # define __EXTENSIONS__ 1
4622 $ac_includes_default
4624 main ()
4628 return 0;
4630 _ACEOF
4631 if ac_fn_c_try_compile "$LINENO"; then :
4632 ac_cv_safe_to_define___extensions__=yes
4633 else
4634 ac_cv_safe_to_define___extensions__=no
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4639 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4640 test $ac_cv_safe_to_define___extensions__ = yes &&
4641 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4643 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4645 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4647 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4649 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4653 ### Use -Wno-pointer-sign if the compiler supports it
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4655 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4656 SAVE_CFLAGS="$CFLAGS"
4657 CFLAGS="$CFLAGS -Wno-pointer-sign"
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4662 main ()
4666 return 0;
4668 _ACEOF
4669 if ac_fn_c_try_compile "$LINENO"; then :
4670 has_option=yes
4671 else
4672 has_option=no
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 if test $has_option = yes; then
4676 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4679 $as_echo "$has_option" >&6; }
4680 CFLAGS="$SAVE_CFLAGS"
4681 unset has_option
4682 unset SAVE_CFLAGS
4684 ### Use -Wdeclaration-after-statement if the compiler supports it
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4686 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4687 SAVE_CFLAGS="$CFLAGS"
4688 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4693 main ()
4697 return 0;
4699 _ACEOF
4700 if ac_fn_c_try_compile "$LINENO"; then :
4701 has_option=yes
4702 else
4703 has_option=no
4705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706 if test $has_option = yes; then
4707 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4710 $as_echo "$has_option" >&6; }
4711 CFLAGS="$SAVE_CFLAGS"
4712 unset has_option
4713 unset SAVE_CFLAGS
4715 #### Some other nice autoconf tests.
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4718 $as_echo_n "checking whether ln -s works... " >&6; }
4719 LN_S=$as_ln_s
4720 if test "$LN_S" = "ln -s"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4722 $as_echo "yes" >&6; }
4723 else
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4725 $as_echo "no, using $LN_S" >&6; }
4728 ac_ext=c
4729 ac_cpp='$CPP $CPPFLAGS'
4730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4734 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4735 # On Suns, sometimes $CPP names a directory.
4736 if test -n "$CPP" && test -d "$CPP"; then
4737 CPP=
4739 if test -z "$CPP"; then
4740 if test "${ac_cv_prog_CPP+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 # Double quotes because CPP needs to be expanded
4744 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4746 ac_preproc_ok=false
4747 for ac_c_preproc_warn_flag in '' yes
4749 # Use a header file that comes with gcc, so configuring glibc
4750 # with a fresh cross-compiler works.
4751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4752 # <limits.h> exists even on freestanding compilers.
4753 # On the NeXT, cc -E runs the code through the compiler's parser,
4754 # not just through cpp. "Syntax error" is here to catch this case.
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4757 #ifdef __STDC__
4758 # include <limits.h>
4759 #else
4760 # include <assert.h>
4761 #endif
4762 Syntax error
4763 _ACEOF
4764 if ac_fn_c_try_cpp "$LINENO"; then :
4766 else
4767 # Broken: fails on valid input.
4768 continue
4770 rm -f conftest.err conftest.$ac_ext
4772 # OK, works on sane cases. Now check whether nonexistent headers
4773 # can be detected and how.
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4776 #include <ac_nonexistent.h>
4777 _ACEOF
4778 if ac_fn_c_try_cpp "$LINENO"; then :
4779 # Broken: success on invalid input.
4780 continue
4781 else
4782 # Passes both tests.
4783 ac_preproc_ok=:
4784 break
4786 rm -f conftest.err conftest.$ac_ext
4788 done
4789 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4790 rm -f conftest.err conftest.$ac_ext
4791 if $ac_preproc_ok; then :
4792 break
4795 done
4796 ac_cv_prog_CPP=$CPP
4799 CPP=$ac_cv_prog_CPP
4800 else
4801 ac_cv_prog_CPP=$CPP
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4804 $as_echo "$CPP" >&6; }
4805 ac_preproc_ok=false
4806 for ac_c_preproc_warn_flag in '' yes
4808 # Use a header file that comes with gcc, so configuring glibc
4809 # with a fresh cross-compiler works.
4810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4811 # <limits.h> exists even on freestanding compilers.
4812 # On the NeXT, cc -E runs the code through the compiler's parser,
4813 # not just through cpp. "Syntax error" is here to catch this case.
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4816 #ifdef __STDC__
4817 # include <limits.h>
4818 #else
4819 # include <assert.h>
4820 #endif
4821 Syntax error
4822 _ACEOF
4823 if ac_fn_c_try_cpp "$LINENO"; then :
4825 else
4826 # Broken: fails on valid input.
4827 continue
4829 rm -f conftest.err conftest.$ac_ext
4831 # OK, works on sane cases. Now check whether nonexistent headers
4832 # can be detected and how.
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4835 #include <ac_nonexistent.h>
4836 _ACEOF
4837 if ac_fn_c_try_cpp "$LINENO"; then :
4838 # Broken: success on invalid input.
4839 continue
4840 else
4841 # Passes both tests.
4842 ac_preproc_ok=:
4843 break
4845 rm -f conftest.err conftest.$ac_ext
4847 done
4848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4849 rm -f conftest.err conftest.$ac_ext
4850 if $ac_preproc_ok; then :
4852 else
4853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4855 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4856 See \`config.log' for more details." "$LINENO" 5; }
4859 ac_ext=c
4860 ac_cpp='$CPP $CPPFLAGS'
4861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4865 # Find a good install program. We prefer a C program (faster),
4866 # so one script is as good as another. But avoid the broken or
4867 # incompatible versions:
4868 # SysV /etc/install, /usr/sbin/install
4869 # SunOS /usr/etc/install
4870 # IRIX /sbin/install
4871 # AIX /bin/install
4872 # AmigaOS /C/install, which installs bootblocks on floppy discs
4873 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4876 # OS/2's system install, which has a completely different semantic
4877 # ./install, which can be erroneously created by make from ./install.sh.
4878 # Reject install programs that cannot install multiple files.
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4880 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4881 if test -z "$INSTALL"; then
4882 if test "${ac_cv_path_install+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4888 IFS=$as_save_IFS
4889 test -z "$as_dir" && as_dir=.
4890 # Account for people who put trailing slashes in PATH elements.
4891 case $as_dir/ in #((
4892 ./ | .// | /[cC]/* | \
4893 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4894 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4895 /usr/ucb/* ) ;;
4897 # OSF1 and SCO ODT 3.0 have their own names for install.
4898 # Don't use installbsd from OSF since it installs stuff as root
4899 # by default.
4900 for ac_prog in ginstall scoinst install; do
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4903 if test $ac_prog = install &&
4904 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4905 # AIX install. It has an incompatible calling convention.
4907 elif test $ac_prog = install &&
4908 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4909 # program-specific install script used by HP pwplus--don't use.
4911 else
4912 rm -rf conftest.one conftest.two conftest.dir
4913 echo one > conftest.one
4914 echo two > conftest.two
4915 mkdir conftest.dir
4916 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4917 test -s conftest.one && test -s conftest.two &&
4918 test -s conftest.dir/conftest.one &&
4919 test -s conftest.dir/conftest.two
4920 then
4921 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4922 break 3
4926 done
4927 done
4929 esac
4931 done
4932 IFS=$as_save_IFS
4934 rm -rf conftest.one conftest.two conftest.dir
4937 if test "${ac_cv_path_install+set}" = set; then
4938 INSTALL=$ac_cv_path_install
4939 else
4940 # As a last resort, use the slow shell script. Don't cache a
4941 # value for INSTALL within a source directory, because that will
4942 # break other packages using the cache if that directory is
4943 # removed, or if the value is a relative name.
4944 INSTALL=$ac_install_sh
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4948 $as_echo "$INSTALL" >&6; }
4950 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4951 # It thinks the first close brace ends the variable substitution.
4952 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4954 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4956 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4958 if test "x$RANLIB" = x; then
4959 if test -n "$ac_tool_prefix"; then
4960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4961 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4963 $as_echo_n "checking for $ac_word... " >&6; }
4964 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4965 $as_echo_n "(cached) " >&6
4966 else
4967 if test -n "$RANLIB"; then
4968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4969 else
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 for as_dir in $PATH
4973 IFS=$as_save_IFS
4974 test -z "$as_dir" && as_dir=.
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4979 break 2
4981 done
4982 done
4983 IFS=$as_save_IFS
4987 RANLIB=$ac_cv_prog_RANLIB
4988 if test -n "$RANLIB"; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4990 $as_echo "$RANLIB" >&6; }
4991 else
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4998 if test -z "$ac_cv_prog_RANLIB"; then
4999 ac_ct_RANLIB=$RANLIB
5000 # Extract the first word of "ranlib", so it can be a program name with args.
5001 set dummy ranlib; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 if test -n "$ac_ct_RANLIB"; then
5008 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 ac_cv_prog_ac_ct_RANLIB="ranlib"
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2
5021 done
5022 done
5023 IFS=$as_save_IFS
5027 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5028 if test -n "$ac_ct_RANLIB"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5030 $as_echo "$ac_ct_RANLIB" >&6; }
5031 else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5036 if test "x$ac_ct_RANLIB" = x; then
5037 RANLIB=":"
5038 else
5039 case $cross_compiling:$ac_tool_warned in
5040 yes:)
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5043 ac_tool_warned=yes ;;
5044 esac
5045 RANLIB=$ac_ct_RANLIB
5047 else
5048 RANLIB="$ac_cv_prog_RANLIB"
5052 # Extract the first word of "install-info", so it can be a program name with args.
5053 set dummy install-info; ac_word=$2
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055 $as_echo_n "checking for $ac_word... " >&6; }
5056 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 case $INSTALL_INFO in
5060 [\\/]* | ?:[\\/]*)
5061 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2
5075 done
5076 done
5077 IFS=$as_save_IFS
5080 esac
5082 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5083 if test -n "$INSTALL_INFO"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5085 $as_echo "$INSTALL_INFO" >&6; }
5086 else
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 $as_echo "no" >&6; }
5092 # Extract the first word of "install-info", so it can be a program name with args.
5093 set dummy install-info; ac_word=$2
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5095 $as_echo_n "checking for $ac_word... " >&6; }
5096 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5097 $as_echo_n "(cached) " >&6
5098 else
5099 case $INSTALL_INFO in
5100 [\\/]* | ?:[\\/]*)
5101 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in /usr/sbin
5107 IFS=$as_save_IFS
5108 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 break 2
5115 done
5116 done
5117 IFS=$as_save_IFS
5120 esac
5122 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5123 if test -n "$INSTALL_INFO"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5125 $as_echo "$INSTALL_INFO" >&6; }
5126 else
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5132 # Extract the first word of "install-info", so it can be a program name with args.
5133 set dummy install-info; ac_word=$2
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5137 $as_echo_n "(cached) " >&6
5138 else
5139 case $INSTALL_INFO in
5140 [\\/]* | ?:[\\/]*)
5141 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in /sbin
5147 IFS=$as_save_IFS
5148 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 break 2
5155 done
5156 done
5157 IFS=$as_save_IFS
5159 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5161 esac
5163 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5164 if test -n "$INSTALL_INFO"; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5166 $as_echo "$INSTALL_INFO" >&6; }
5167 else
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5173 # Extract the first word of "gzip", so it can be a program name with args.
5174 set dummy gzip; ac_word=$2
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176 $as_echo_n "checking for $ac_word... " >&6; }
5177 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5178 $as_echo_n "(cached) " >&6
5179 else
5180 case $GZIP_PROG in
5181 [\\/]* | ?:[\\/]*)
5182 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5196 done
5197 done
5198 IFS=$as_save_IFS
5201 esac
5203 GZIP_PROG=$ac_cv_path_GZIP_PROG
5204 if test -n "$GZIP_PROG"; then
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5206 $as_echo "$GZIP_PROG" >&6; }
5207 else
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 $as_echo "no" >&6; }
5215 ## Need makeinfo >= 4.6 (?) to build the manuals.
5216 # Extract the first word of "makeinfo", so it can be a program name with args.
5217 set dummy makeinfo; ac_word=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 case $MAKEINFO in
5224 [\\/]* | ?:[\\/]*)
5225 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 break 2
5239 done
5240 done
5241 IFS=$as_save_IFS
5243 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5245 esac
5247 MAKEINFO=$ac_cv_path_MAKEINFO
5248 if test -n "$MAKEINFO"; then
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5250 $as_echo "$MAKEINFO" >&6; }
5251 else
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253 $as_echo "no" >&6; }
5257 if test "$MAKEINFO" != "no" && \
5258 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
5259 MAKEINFO=no
5262 ## Makeinfo is unusual. For a released Emacs, the manuals are
5263 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5264 ## therefore in the category of "special tools" not normally required, which
5265 ## configure does not have to check for (eg autoconf itself).
5266 ## In a Bazaar checkout on the other hand, the manuals are not included.
5267 ## So makeinfo is a requirement to build from Bazaar, and configure
5268 ## should test for it as it does for any other build requirement.
5269 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5270 ## with pre-built manuals, from a Bazaar checkout.
5271 if test "$MAKEINFO" = "no"; then
5272 if test "x${with_makeinfo}" = "xno"; then
5273 MAKEINFO=off
5274 elif ! test -e $srcdir/info/emacs; then
5275 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
5276 source tree does not seem to have pre-built manuals in the \`info' directory.
5277 Either install a suitable version of makeinfo, or re-run configure
5278 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5283 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5284 then
5285 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5288 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5289 then
5290 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5294 late_LDFLAGS=$LDFLAGS
5295 if test "$GCC" = yes; then
5296 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5297 else
5298 LDFLAGS="$LDFLAGS -znocombreloc"
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5302 $as_echo_n "checking for -znocombreloc... " >&6; }
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5305 main(){return 0;}
5306 _ACEOF
5307 if ac_fn_c_try_link "$LINENO"; then :
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5309 $as_echo "yes" >&6; }
5310 else
5311 LDFLAGS=$late_LDFLAGS
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5315 rm -f core conftest.err conftest.$ac_objext \
5316 conftest$ac_exeext conftest.$ac_ext
5318 #### Extract some information from the operating system and machine files.
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out
5321 - which libraries the lib-src programs will want, and
5322 - whether the GNU malloc routines are usable..." >&5
5323 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5324 - which libraries the lib-src programs will want, and
5325 - whether the GNU malloc routines are usable..." >&6;}
5327 ### First figure out CFLAGS (which we use for running the compiler here)
5328 ### and REAL_CFLAGS (which we use for real compilation).
5329 ### The two are the same except on a few systems, where they are made
5330 ### different to work around various lossages. For example,
5331 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5332 ### as implying static linking.
5334 ### If the CFLAGS env var is specified, we use that value
5335 ### instead of the default.
5337 ### It's not important that this name contain the PID; you can't run
5338 ### two configures in the same directory and have anything work
5339 ### anyway.
5340 tempcname="conftest.c"
5342 echo '
5343 #include "'${srcdir}'/src/'${opsysfile}'"
5344 #include "'${srcdir}'/src/'${machfile}'"
5345 #ifndef LIBS_MACHINE
5346 #define LIBS_MACHINE
5347 #endif
5348 #ifndef LIBS_SYSTEM
5349 #define LIBS_SYSTEM
5350 #endif
5351 #ifndef C_SWITCH_SYSTEM
5352 #define C_SWITCH_SYSTEM
5353 #endif
5354 #ifndef C_SWITCH_MACHINE
5355 #define C_SWITCH_MACHINE
5356 #endif
5357 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5358 configure___ c_switch_system=C_SWITCH_SYSTEM
5359 configure___ c_switch_machine=C_SWITCH_MACHINE
5361 #ifndef LIB_X11_LIB
5362 #define LIB_X11_LIB -lX11
5363 #endif
5365 #ifndef LIBX11_SYSTEM
5366 #define LIBX11_SYSTEM
5367 #endif
5368 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5370 #ifdef UNEXEC
5371 configure___ unexec=UNEXEC
5372 #else
5373 configure___ unexec=unexec.o
5374 #endif
5376 #ifdef SYSTEM_MALLOC
5377 configure___ system_malloc=yes
5378 #else
5379 configure___ system_malloc=no
5380 #endif
5382 #ifdef USE_MMAP_FOR_BUFFERS
5383 configure___ use_mmap_for_buffers=yes
5384 #else
5385 configure___ use_mmap_for_buffers=no
5386 #endif
5388 #ifndef C_DEBUG_SWITCH
5389 #define C_DEBUG_SWITCH -g
5390 #endif
5392 #ifndef C_OPTIMIZE_SWITCH
5393 #ifdef __GNUC__
5394 #define C_OPTIMIZE_SWITCH -O2
5395 #else
5396 #define C_OPTIMIZE_SWITCH -O
5397 #endif
5398 #endif
5400 #ifndef C_WARNINGS_SWITCH
5401 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5402 #endif
5404 #ifndef LD_SWITCH_MACHINE
5405 #define LD_SWITCH_MACHINE
5406 #endif
5408 #ifndef LD_SWITCH_SYSTEM
5409 #define LD_SWITCH_SYSTEM
5410 #endif
5412 #ifndef LD_SWITCH_X_SITE_AUX
5413 #define LD_SWITCH_X_SITE_AUX
5414 #endif
5416 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5417 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5419 #ifdef THIS_IS_CONFIGURE
5421 /* Get the CFLAGS for tests in configure. */
5422 #ifdef __GNUC__
5423 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5424 #else
5425 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5426 #endif
5428 #else /* not THIS_IS_CONFIGURE */
5430 /* Get the CFLAGS for real compilation. */
5431 #ifdef __GNUC__
5432 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5433 #else
5434 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5435 #endif
5437 #endif /* not THIS_IS_CONFIGURE */
5438 ' > ${tempcname}
5440 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5442 # The value of CPP is a quoted variable reference, so we need to do this
5443 # to get its actual value...
5444 CPP=`eval "echo $CPP"`
5445 eval `${CPP} -Isrc ${tempcname} \
5446 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5447 if test "x$SPECIFIED_CFLAGS" = x; then
5448 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5449 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5450 else
5451 REAL_CFLAGS="$CFLAGS"
5453 rm ${tempcname}
5455 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5457 ### Make sure subsequent tests use flags consistent with the build flags.
5459 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5460 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5461 else
5462 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5467 # Check whether --enable-largefile was given.
5468 if test "${enable_largefile+set}" = set; then :
5469 enableval=$enable_largefile;
5472 if test "$enable_largefile" != no; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5475 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5476 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5477 $as_echo_n "(cached) " >&6
5478 else
5479 ac_cv_sys_largefile_CC=no
5480 if test "$GCC" != yes; then
5481 ac_save_CC=$CC
5482 while :; do
5483 # IRIX 6.2 and later do not support large files by default,
5484 # so use the C compiler's -n32 option if that helps.
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5487 #include <sys/types.h>
5488 /* Check that off_t can represent 2**63 - 1 correctly.
5489 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5490 since some C++ compilers masquerading as C compilers
5491 incorrectly reject 9223372036854775807. */
5492 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5493 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5494 && LARGE_OFF_T % 2147483647 == 1)
5495 ? 1 : -1];
5497 main ()
5501 return 0;
5503 _ACEOF
5504 if ac_fn_c_try_compile "$LINENO"; then :
5505 break
5507 rm -f core conftest.err conftest.$ac_objext
5508 CC="$CC -n32"
5509 if ac_fn_c_try_compile "$LINENO"; then :
5510 ac_cv_sys_largefile_CC=' -n32'; break
5512 rm -f core conftest.err conftest.$ac_objext
5513 break
5514 done
5515 CC=$ac_save_CC
5516 rm -f conftest.$ac_ext
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5520 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5521 if test "$ac_cv_sys_largefile_CC" != no; then
5522 CC=$CC$ac_cv_sys_largefile_CC
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5526 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5527 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 while :; do
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5533 #include <sys/types.h>
5534 /* Check that off_t can represent 2**63 - 1 correctly.
5535 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5536 since some C++ compilers masquerading as C compilers
5537 incorrectly reject 9223372036854775807. */
5538 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5539 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5540 && LARGE_OFF_T % 2147483647 == 1)
5541 ? 1 : -1];
5543 main ()
5547 return 0;
5549 _ACEOF
5550 if ac_fn_c_try_compile "$LINENO"; then :
5551 ac_cv_sys_file_offset_bits=no; break
5553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5556 #define _FILE_OFFSET_BITS 64
5557 #include <sys/types.h>
5558 /* Check that off_t can represent 2**63 - 1 correctly.
5559 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5560 since some C++ compilers masquerading as C compilers
5561 incorrectly reject 9223372036854775807. */
5562 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5563 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5564 && LARGE_OFF_T % 2147483647 == 1)
5565 ? 1 : -1];
5567 main ()
5571 return 0;
5573 _ACEOF
5574 if ac_fn_c_try_compile "$LINENO"; then :
5575 ac_cv_sys_file_offset_bits=64; break
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 ac_cv_sys_file_offset_bits=unknown
5579 break
5580 done
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5583 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5584 case $ac_cv_sys_file_offset_bits in #(
5585 no | unknown) ;;
5587 cat >>confdefs.h <<_ACEOF
5588 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5589 _ACEOF
5591 esac
5592 rm -rf conftest*
5593 if test $ac_cv_sys_file_offset_bits = unknown; then
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5595 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5596 if test "${ac_cv_sys_large_files+set}" = set; then :
5597 $as_echo_n "(cached) " >&6
5598 else
5599 while :; do
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5602 #include <sys/types.h>
5603 /* Check that off_t can represent 2**63 - 1 correctly.
5604 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5605 since some C++ compilers masquerading as C compilers
5606 incorrectly reject 9223372036854775807. */
5607 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5608 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5609 && LARGE_OFF_T % 2147483647 == 1)
5610 ? 1 : -1];
5612 main ()
5616 return 0;
5618 _ACEOF
5619 if ac_fn_c_try_compile "$LINENO"; then :
5620 ac_cv_sys_large_files=no; break
5622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5625 #define _LARGE_FILES 1
5626 #include <sys/types.h>
5627 /* Check that off_t can represent 2**63 - 1 correctly.
5628 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5629 since some C++ compilers masquerading as C compilers
5630 incorrectly reject 9223372036854775807. */
5631 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5632 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5633 && LARGE_OFF_T % 2147483647 == 1)
5634 ? 1 : -1];
5636 main ()
5640 return 0;
5642 _ACEOF
5643 if ac_fn_c_try_compile "$LINENO"; then :
5644 ac_cv_sys_large_files=1; break
5646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647 ac_cv_sys_large_files=unknown
5648 break
5649 done
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5652 $as_echo "$ac_cv_sys_large_files" >&6; }
5653 case $ac_cv_sys_large_files in #(
5654 no | unknown) ;;
5656 cat >>confdefs.h <<_ACEOF
5657 #define _LARGE_FILES $ac_cv_sys_large_files
5658 _ACEOF
5660 esac
5661 rm -rf conftest*
5667 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5668 ### be located in either /usr/lib64 or /usr/lib.
5669 ### In some rare cases, /usr/lib64 exists but does not contain the
5670 ### relevant files (bug#1287). Hence test for crtn.o.
5671 case "${canonical}" in
5672 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5673 if test -e /usr/lib64/crtn.o; then
5675 $as_echo "#define HAVE_LIB64_DIR 1" >>confdefs.h
5678 esac
5683 if test "${with_sound}" != "no"; then
5684 # Sound support for GNU/Linux and the free BSDs.
5685 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5686 do :
5687 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5688 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5689 eval as_val=\$$as_ac_Header
5690 if test "x$as_val" = x""yes; then :
5691 cat >>confdefs.h <<_ACEOF
5692 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5693 _ACEOF
5697 done
5699 # Emulation library used on NetBSD.
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5701 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5702 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5703 $as_echo_n "(cached) " >&6
5704 else
5705 ac_check_lib_save_LIBS=$LIBS
5706 LIBS="-lossaudio $LIBS"
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5710 /* Override any GCC internal prototype to avoid an error.
5711 Use char because int might match the return type of a GCC
5712 builtin and then its argument prototype would still apply. */
5713 #ifdef __cplusplus
5714 extern "C"
5715 #endif
5716 char _oss_ioctl ();
5718 main ()
5720 return _oss_ioctl ();
5722 return 0;
5724 _ACEOF
5725 if ac_fn_c_try_link "$LINENO"; then :
5726 ac_cv_lib_ossaudio__oss_ioctl=yes
5727 else
5728 ac_cv_lib_ossaudio__oss_ioctl=no
5730 rm -f core conftest.err conftest.$ac_objext \
5731 conftest$ac_exeext conftest.$ac_ext
5732 LIBS=$ac_check_lib_save_LIBS
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5735 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5736 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5737 LIBSOUND=-lossaudio
5738 else
5739 LIBSOUND=
5744 ALSA_REQUIRED=1.0.0
5745 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5747 succeeded=no
5749 # Extract the first word of "pkg-config", so it can be a program name with args.
5750 set dummy pkg-config; ac_word=$2
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5752 $as_echo_n "checking for $ac_word... " >&6; }
5753 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 case $PKG_CONFIG in
5757 [\\/]* | ?:[\\/]*)
5758 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH
5764 IFS=$as_save_IFS
5765 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5768 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 break 2
5772 done
5773 done
5774 IFS=$as_save_IFS
5776 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5778 esac
5780 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5781 if test -n "$PKG_CONFIG"; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5783 $as_echo "$PKG_CONFIG" >&6; }
5784 else
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5791 if test "$PKG_CONFIG" = "no" ; then
5792 HAVE_ALSA=no
5793 else
5794 PKG_CONFIG_MIN_VERSION=0.9.0
5795 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
5797 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
5799 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5801 $as_echo "yes" >&6; }
5802 succeeded=yes
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
5805 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
5806 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
5808 $as_echo "$ALSA_CFLAGS" >&6; }
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
5811 $as_echo_n "checking ALSA_LIBS... " >&6; }
5812 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
5814 $as_echo "$ALSA_LIBS" >&6; }
5815 else
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817 $as_echo "no" >&6; }
5818 ALSA_CFLAGS=""
5819 ALSA_LIBS=""
5820 ## If we have a custom action on failure, don't print errors, but
5821 ## do set a variable so people can do so.
5822 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5828 else
5829 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5830 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5834 if test $succeeded = yes; then
5835 HAVE_ALSA=yes
5836 else
5837 HAVE_ALSA=no
5840 if test $HAVE_ALSA = yes; then
5841 SAVE_CFLAGS="$CFLAGS"
5842 SAVE_LDFLAGS="$LDFLAGS"
5843 CFLAGS="$ALSA_CFLAGS $CFLAGS"
5844 LDFLAGS="$ALSA_LIBS $LDFLAGS"
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5847 #include <asoundlib.h>
5849 main ()
5851 snd_lib_error_set_handler (0);
5853 return 0;
5855 _ACEOF
5856 if ac_fn_c_try_compile "$LINENO"; then :
5857 emacs_alsa_normal=yes
5858 else
5859 emacs_alsa_normal=no
5861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862 if test "$emacs_alsa_normal" != yes; then
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5865 #include <alsa/asoundlib.h>
5867 main ()
5869 snd_lib_error_set_handler (0);
5871 return 0;
5873 _ACEOF
5874 if ac_fn_c_try_compile "$LINENO"; then :
5875 emacs_alsa_subdir=yes
5876 else
5877 emacs_alsa_subdir=no
5879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880 if test "$emacs_alsa_subdir" != yes; then
5881 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
5883 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
5886 CFLAGS="$SAVE_CFLAGS"
5887 LDFLAGS="$SAVE_LDFLAGS"
5888 LIBSOUND="$LIBSOUND $ALSA_LIBS"
5889 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
5891 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
5897 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5898 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5899 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5900 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5901 sys/utsname.h pwd.h utmp.h
5902 do :
5903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5904 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5905 eval as_val=\$$as_ac_Header
5906 if test "x$as_val" = x""yes; then :
5907 cat >>confdefs.h <<_ACEOF
5908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5909 _ACEOF
5913 done
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
5917 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h. */
5920 #include <sys/personality.h>
5922 main ()
5924 personality (PER_LINUX32)
5926 return 0;
5928 _ACEOF
5929 if ac_fn_c_try_compile "$LINENO"; then :
5930 emacs_cv_personality_linux32=yes
5931 else
5932 emacs_cv_personality_linux32=no
5934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
5936 $as_echo "$emacs_cv_personality_linux32" >&6; }
5938 if test $emacs_cv_personality_linux32 = yes; then
5940 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
5944 for ac_header in term.h
5945 do :
5946 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
5947 if test "x$ac_cv_header_term_h" = x""yes; then :
5948 cat >>confdefs.h <<_ACEOF
5949 #define HAVE_TERM_H 1
5950 _ACEOF
5954 done
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5957 $as_echo_n "checking for ANSI C header files... " >&6; }
5958 if test "${ac_cv_header_stdc+set}" = set; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5963 #include <stdlib.h>
5964 #include <stdarg.h>
5965 #include <string.h>
5966 #include <float.h>
5969 main ()
5973 return 0;
5975 _ACEOF
5976 if ac_fn_c_try_compile "$LINENO"; then :
5977 ac_cv_header_stdc=yes
5978 else
5979 ac_cv_header_stdc=no
5981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983 if test $ac_cv_header_stdc = yes; then
5984 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5987 #include <string.h>
5989 _ACEOF
5990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5991 $EGREP "memchr" >/dev/null 2>&1; then :
5993 else
5994 ac_cv_header_stdc=no
5996 rm -f conftest*
6000 if test $ac_cv_header_stdc = yes; then
6001 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6004 #include <stdlib.h>
6006 _ACEOF
6007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6008 $EGREP "free" >/dev/null 2>&1; then :
6010 else
6011 ac_cv_header_stdc=no
6013 rm -f conftest*
6017 if test $ac_cv_header_stdc = yes; then
6018 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6019 if test "$cross_compiling" = yes; then :
6021 else
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6024 #include <ctype.h>
6025 #include <stdlib.h>
6026 #if ((' ' & 0x0FF) == 0x020)
6027 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6028 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6029 #else
6030 # define ISLOWER(c) \
6031 (('a' <= (c) && (c) <= 'i') \
6032 || ('j' <= (c) && (c) <= 'r') \
6033 || ('s' <= (c) && (c) <= 'z'))
6034 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6035 #endif
6037 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6039 main ()
6041 int i;
6042 for (i = 0; i < 256; i++)
6043 if (XOR (islower (i), ISLOWER (i))
6044 || toupper (i) != TOUPPER (i))
6045 return 2;
6046 return 0;
6048 _ACEOF
6049 if ac_fn_c_try_run "$LINENO"; then :
6051 else
6052 ac_cv_header_stdc=no
6054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6055 conftest.$ac_objext conftest.beam conftest.$ac_ext
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6061 $as_echo "$ac_cv_header_stdc" >&6; }
6062 if test $ac_cv_header_stdc = yes; then
6064 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6069 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6070 if test "${ac_cv_header_time+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6075 #include <sys/types.h>
6076 #include <sys/time.h>
6077 #include <time.h>
6080 main ()
6082 if ((struct tm *) 0)
6083 return 0;
6085 return 0;
6087 _ACEOF
6088 if ac_fn_c_try_compile "$LINENO"; then :
6089 ac_cv_header_time=yes
6090 else
6091 ac_cv_header_time=no
6093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6096 $as_echo "$ac_cv_header_time" >&6; }
6097 if test $ac_cv_header_time = yes; then
6099 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6103 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6104 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6105 ac_have_decl=1
6106 else
6107 ac_have_decl=0
6110 cat >>confdefs.h <<_ACEOF
6111 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6112 _ACEOF
6114 if test $ac_cv_have_decl_sys_siglist != yes; then
6115 # For Tru64, at least:
6116 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6117 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6118 ac_have_decl=1
6119 else
6120 ac_have_decl=0
6123 cat >>confdefs.h <<_ACEOF
6124 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6125 _ACEOF
6127 if test $ac_cv_have_decl___sys_siglist = yes; then
6129 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6134 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6135 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6136 $as_echo_n "(cached) " >&6
6137 else
6138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139 /* end confdefs.h. */
6140 #include <sys/types.h>
6141 #include <sys/wait.h>
6142 #ifndef WEXITSTATUS
6143 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6144 #endif
6145 #ifndef WIFEXITED
6146 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6147 #endif
6150 main ()
6152 int s;
6153 wait (&s);
6154 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6156 return 0;
6158 _ACEOF
6159 if ac_fn_c_try_compile "$LINENO"; then :
6160 ac_cv_header_sys_wait_h=yes
6161 else
6162 ac_cv_header_sys_wait_h=no
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6167 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6168 if test $ac_cv_header_sys_wait_h = yes; then
6170 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6176 $as_echo_n "checking for struct utimbuf... " >&6; }
6177 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
6179 else
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6182 #ifdef TIME_WITH_SYS_TIME
6183 #include <sys/time.h>
6184 #include <time.h>
6185 #else
6186 #ifdef HAVE_SYS_TIME_H
6187 #include <sys/time.h>
6188 #else
6189 #include <time.h>
6190 #endif
6191 #endif
6192 #ifdef HAVE_UTIME_H
6193 #include <utime.h>
6194 #endif
6196 main ()
6198 static struct utimbuf x; x.actime = x.modtime;
6200 return 0;
6202 _ACEOF
6203 if ac_fn_c_try_compile "$LINENO"; then :
6204 emacs_cv_struct_utimbuf=yes
6205 else
6206 emacs_cv_struct_utimbuf=no
6208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6211 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6212 if test $emacs_cv_struct_utimbuf = yes; then
6214 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6219 $as_echo_n "checking return type of signal handlers... " >&6; }
6220 if test "${ac_cv_type_signal+set}" = set; then :
6221 $as_echo_n "(cached) " >&6
6222 else
6223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224 /* end confdefs.h. */
6225 #include <sys/types.h>
6226 #include <signal.h>
6229 main ()
6231 return *(signal (0, 0)) (0) == 1;
6233 return 0;
6235 _ACEOF
6236 if ac_fn_c_try_compile "$LINENO"; then :
6237 ac_cv_type_signal=int
6238 else
6239 ac_cv_type_signal=void
6241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6244 $as_echo "$ac_cv_type_signal" >&6; }
6246 cat >>confdefs.h <<_ACEOF
6247 #define RETSIGTYPE $ac_cv_type_signal
6248 _ACEOF
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6253 $as_echo_n "checking for speed_t... " >&6; }
6254 if test "${emacs_cv_speed_t+set}" = set; then :
6255 $as_echo_n "(cached) " >&6
6256 else
6257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6258 /* end confdefs.h. */
6259 #include <termios.h>
6261 main ()
6263 speed_t x = 1;
6265 return 0;
6267 _ACEOF
6268 if ac_fn_c_try_compile "$LINENO"; then :
6269 emacs_cv_speed_t=yes
6270 else
6271 emacs_cv_speed_t=no
6273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6276 $as_echo "$emacs_cv_speed_t" >&6; }
6277 if test $emacs_cv_speed_t = yes; then
6279 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6284 $as_echo_n "checking for struct timeval... " >&6; }
6285 if test "${emacs_cv_struct_timeval+set}" = set; then :
6286 $as_echo_n "(cached) " >&6
6287 else
6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6290 #ifdef TIME_WITH_SYS_TIME
6291 #include <sys/time.h>
6292 #include <time.h>
6293 #else
6294 #ifdef HAVE_SYS_TIME_H
6295 #include <sys/time.h>
6296 #else
6297 #include <time.h>
6298 #endif
6299 #endif
6301 main ()
6303 static struct timeval x; x.tv_sec = x.tv_usec;
6305 return 0;
6307 _ACEOF
6308 if ac_fn_c_try_compile "$LINENO"; then :
6309 emacs_cv_struct_timeval=yes
6310 else
6311 emacs_cv_struct_timeval=no
6313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6316 $as_echo "$emacs_cv_struct_timeval" >&6; }
6317 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6318 if test $emacs_cv_struct_timeval = yes; then
6320 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6325 $as_echo_n "checking for struct exception... " >&6; }
6326 if test "${emacs_cv_struct_exception+set}" = set; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h. */
6331 #include <math.h>
6333 main ()
6335 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6337 return 0;
6339 _ACEOF
6340 if ac_fn_c_try_compile "$LINENO"; then :
6341 emacs_cv_struct_exception=yes
6342 else
6343 emacs_cv_struct_exception=no
6345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6348 $as_echo "$emacs_cv_struct_exception" >&6; }
6349 HAVE_EXCEPTION=$emacs_cv_struct_exception
6350 if test $emacs_cv_struct_exception != yes; then
6352 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6356 for ac_header in sys/socket.h
6357 do :
6358 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6359 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6360 cat >>confdefs.h <<_ACEOF
6361 #define HAVE_SYS_SOCKET_H 1
6362 _ACEOF
6366 done
6368 for ac_header in net/if.h
6369 do :
6370 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6371 #if HAVE_SYS_SOCKET_H
6372 #include <sys/socket.h>
6373 #endif
6375 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6376 cat >>confdefs.h <<_ACEOF
6377 #define HAVE_NET_IF_H 1
6378 _ACEOF
6382 done
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6386 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6387 if test "${ac_cv_struct_tm+set}" = set; then :
6388 $as_echo_n "(cached) " >&6
6389 else
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6392 #include <sys/types.h>
6393 #include <time.h>
6396 main ()
6398 struct tm tm;
6399 int *p = &tm.tm_sec;
6400 return !p;
6402 return 0;
6404 _ACEOF
6405 if ac_fn_c_try_compile "$LINENO"; then :
6406 ac_cv_struct_tm=time.h
6407 else
6408 ac_cv_struct_tm=sys/time.h
6410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6413 $as_echo "$ac_cv_struct_tm" >&6; }
6414 if test $ac_cv_struct_tm = sys/time.h; then
6416 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6420 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6421 #include <$ac_cv_struct_tm>
6424 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6426 cat >>confdefs.h <<_ACEOF
6427 #define HAVE_STRUCT_TM_TM_ZONE 1
6428 _ACEOF
6433 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6435 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6437 else
6438 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6440 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6441 ac_have_decl=1
6442 else
6443 ac_have_decl=0
6446 cat >>confdefs.h <<_ACEOF
6447 #define HAVE_DECL_TZNAME $ac_have_decl
6448 _ACEOF
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6451 $as_echo_n "checking for tzname... " >&6; }
6452 if test "${ac_cv_var_tzname+set}" = set; then :
6453 $as_echo_n "(cached) " >&6
6454 else
6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456 /* end confdefs.h. */
6457 #include <time.h>
6458 #if !HAVE_DECL_TZNAME
6459 extern char *tzname[];
6460 #endif
6463 main ()
6465 return tzname[0][0];
6467 return 0;
6469 _ACEOF
6470 if ac_fn_c_try_link "$LINENO"; then :
6471 ac_cv_var_tzname=yes
6472 else
6473 ac_cv_var_tzname=no
6475 rm -f core conftest.err conftest.$ac_objext \
6476 conftest$ac_exeext conftest.$ac_ext
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6479 $as_echo "$ac_cv_var_tzname" >&6; }
6480 if test $ac_cv_var_tzname = yes; then
6482 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6487 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6489 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6491 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6495 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6496 #if HAVE_SYS_SOCKET_H
6497 #include <sys/socket.h>
6498 #endif
6499 #if HAVE_NET_IF_H
6500 #include <net/if.h>
6501 #endif
6503 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6505 cat >>confdefs.h <<_ACEOF
6506 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6507 _ACEOF
6511 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6512 #if HAVE_SYS_SOCKET_H
6513 #include <sys/socket.h>
6514 #endif
6515 #if HAVE_NET_IF_H
6516 #include <net/if.h>
6517 #endif
6519 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6521 cat >>confdefs.h <<_ACEOF
6522 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6523 _ACEOF
6527 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6528 #if HAVE_SYS_SOCKET_H
6529 #include <sys/socket.h>
6530 #endif
6531 #if HAVE_NET_IF_H
6532 #include <net/if.h>
6533 #endif
6535 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6537 cat >>confdefs.h <<_ACEOF
6538 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6539 _ACEOF
6543 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6544 #if HAVE_SYS_SOCKET_H
6545 #include <sys/socket.h>
6546 #endif
6547 #if HAVE_NET_IF_H
6548 #include <net/if.h>
6549 #endif
6551 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6553 cat >>confdefs.h <<_ACEOF
6554 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6555 _ACEOF
6559 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6560 #if HAVE_SYS_SOCKET_H
6561 #include <sys/socket.h>
6562 #endif
6563 #if HAVE_NET_IF_H
6564 #include <net/if.h>
6565 #endif
6567 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6569 cat >>confdefs.h <<_ACEOF
6570 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6571 _ACEOF
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6579 $as_echo_n "checking for function prototypes... " >&6; }
6580 if test "$ac_cv_prog_cc_c89" != no; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6582 $as_echo "yes" >&6; }
6584 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6587 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6589 else
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6595 $as_echo_n "checking for working volatile... " >&6; }
6596 if test "${ac_cv_c_volatile+set}" = set; then :
6597 $as_echo_n "(cached) " >&6
6598 else
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6603 main ()
6606 volatile int x;
6607 int * volatile y = (int *) 0;
6608 return !x && !y;
6610 return 0;
6612 _ACEOF
6613 if ac_fn_c_try_compile "$LINENO"; then :
6614 ac_cv_c_volatile=yes
6615 else
6616 ac_cv_c_volatile=no
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6621 $as_echo "$ac_cv_c_volatile" >&6; }
6622 if test $ac_cv_c_volatile = no; then
6624 $as_echo "#define volatile /**/" >>confdefs.h
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6629 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6630 if test "${ac_cv_c_const+set}" = set; then :
6631 $as_echo_n "(cached) " >&6
6632 else
6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634 /* end confdefs.h. */
6637 main ()
6639 /* FIXME: Include the comments suggested by Paul. */
6640 #ifndef __cplusplus
6641 /* Ultrix mips cc rejects this. */
6642 typedef int charset[2];
6643 const charset cs;
6644 /* SunOS 4.1.1 cc rejects this. */
6645 char const *const *pcpcc;
6646 char **ppc;
6647 /* NEC SVR4.0.2 mips cc rejects this. */
6648 struct point {int x, y;};
6649 static struct point const zero = {0,0};
6650 /* AIX XL C 1.02.0.0 rejects this.
6651 It does not let you subtract one const X* pointer from another in
6652 an arm of an if-expression whose if-part is not a constant
6653 expression */
6654 const char *g = "string";
6655 pcpcc = &g + (g ? g-g : 0);
6656 /* HPUX 7.0 cc rejects these. */
6657 ++pcpcc;
6658 ppc = (char**) pcpcc;
6659 pcpcc = (char const *const *) ppc;
6660 { /* SCO 3.2v4 cc rejects this. */
6661 char *t;
6662 char const *s = 0 ? (char *) 0 : (char const *) 0;
6664 *t++ = 0;
6665 if (s) return 0;
6667 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6668 int x[] = {25, 17};
6669 const int *foo = &x[0];
6670 ++foo;
6672 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6673 typedef const int *iptr;
6674 iptr p = 0;
6675 ++p;
6677 { /* AIX XL C 1.02.0.0 rejects this saying
6678 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6679 struct s { int j; const int *ap[3]; };
6680 struct s *b; b->j = 5;
6682 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6683 const int foo = 10;
6684 if (!foo) return 0;
6686 return !cs[0] && !zero.x;
6687 #endif
6690 return 0;
6692 _ACEOF
6693 if ac_fn_c_try_compile "$LINENO"; then :
6694 ac_cv_c_const=yes
6695 else
6696 ac_cv_c_const=no
6698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6701 $as_echo "$ac_cv_c_const" >&6; }
6702 if test $ac_cv_c_const = no; then
6704 $as_echo "#define const /**/" >>confdefs.h
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6709 $as_echo_n "checking for void * support... " >&6; }
6710 if test "${emacs_cv_void_star+set}" = set; then :
6711 $as_echo_n "(cached) " >&6
6712 else
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6717 main ()
6719 void * foo;
6721 return 0;
6723 _ACEOF
6724 if ac_fn_c_try_compile "$LINENO"; then :
6725 emacs_cv_void_star=yes
6726 else
6727 emacs_cv_void_star=no
6729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
6732 $as_echo "$emacs_cv_void_star" >&6; }
6733 if test $emacs_cv_void_star = yes; then
6734 $as_echo "#define POINTER_TYPE void" >>confdefs.h
6736 else
6737 $as_echo "#define POINTER_TYPE char" >>confdefs.h
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6745 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6746 set x ${MAKE-make}
6747 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6748 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6749 $as_echo_n "(cached) " >&6
6750 else
6751 cat >conftest.make <<\_ACEOF
6752 SHELL = /bin/sh
6753 all:
6754 @echo '@@@%%%=$(MAKE)=@@@%%%'
6755 _ACEOF
6756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6757 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6758 *@@@%%%=?*=@@@%%%*)
6759 eval ac_cv_prog_make_${ac_make}_set=yes;;
6761 eval ac_cv_prog_make_${ac_make}_set=no;;
6762 esac
6763 rm -f conftest.make
6765 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6767 $as_echo "yes" >&6; }
6768 SET_MAKE=
6769 else
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6771 $as_echo "no" >&6; }
6772 SET_MAKE="MAKE=${MAKE-make}"
6776 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
6778 $as_echo_n "checking whether we are using GNU Make... " >&6; }
6779 HAVE_GNU_MAKE=no
6780 testval=`make --version 2>/dev/null | grep 'GNU Make'`
6781 if test "x$testval" != x; then
6782 HAVE_GNU_MAKE=yes
6783 else
6784 ac_enable_autodepend=no
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
6787 $as_echo "$HAVE_GNU_MAKE" >&6; }
6788 if test $HAVE_GNU_MAKE = yes; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
6790 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
6791 SAVE_CFLAGS="$CFLAGS"
6792 CFLAGS="$CFLAGS -MMD -MF deps.d"
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6797 main ()
6801 return 0;
6803 _ACEOF
6804 if ac_fn_c_try_compile "$LINENO"; then :
6806 else
6807 ac_enable_autodepend=no
6809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6810 CFLAGS="$SAVE_CFLAGS"
6811 test -f deps.d || ac_enable_autodepend=no
6812 rm -rf deps.d
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
6814 $as_echo "$ac_enable_autodepend" >&6; }
6816 if test $ac_enable_autodepend = yes; then
6818 $as_echo "#define AUTO_DEPEND 1" >>confdefs.h
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
6824 $as_echo_n "checking for long file names... " >&6; }
6825 if test "${ac_cv_sys_long_file_names+set}" = set; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 ac_cv_sys_long_file_names=yes
6829 # Test for long file names in all the places we know might matter:
6830 # . the current directory, where building will happen
6831 # $prefix/lib where we will be installing things
6832 # $exec_prefix/lib likewise
6833 # $TMPDIR if set, where it might want to write temporary files
6834 # /tmp where it might want to write temporary files
6835 # /var/tmp likewise
6836 # /usr/tmp likewise
6837 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
6838 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
6839 # in the usual case where exec_prefix is '${prefix}'.
6840 case $ac_dir in #(
6841 . | /* | ?:[\\/]*) ;; #(
6842 *) continue;;
6843 esac
6844 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
6845 ac_xdir=$ac_dir/cf$$
6846 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
6847 ac_tf1=$ac_xdir/conftest9012345
6848 ac_tf2=$ac_xdir/conftest9012346
6849 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
6850 ac_cv_sys_long_file_names=no
6851 rm -f -r "$ac_xdir" 2>/dev/null
6852 test $ac_cv_sys_long_file_names = no && break
6853 done
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
6856 $as_echo "$ac_cv_sys_long_file_names" >&6; }
6857 if test $ac_cv_sys_long_file_names = yes; then
6859 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
6864 #### Choose a window system.
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6867 $as_echo_n "checking for X... " >&6; }
6870 # Check whether --with-x was given.
6871 if test "${with_x+set}" = set; then :
6872 withval=$with_x;
6875 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6876 if test "x$with_x" = xno; then
6877 # The user explicitly disabled X.
6878 have_x=disabled
6879 else
6880 case $x_includes,$x_libraries in #(
6881 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
6882 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
6883 $as_echo_n "(cached) " >&6
6884 else
6885 # One or both of the vars are not set, and there is no cached value.
6886 ac_x_includes=no ac_x_libraries=no
6887 rm -f -r conftest.dir
6888 if mkdir conftest.dir; then
6889 cd conftest.dir
6890 cat >Imakefile <<'_ACEOF'
6891 incroot:
6892 @echo incroot='${INCROOT}'
6893 usrlibdir:
6894 @echo usrlibdir='${USRLIBDIR}'
6895 libdir:
6896 @echo libdir='${LIBDIR}'
6897 _ACEOF
6898 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6899 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6900 for ac_var in incroot usrlibdir libdir; do
6901 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6902 done
6903 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6904 for ac_extension in a so sl dylib la dll; do
6905 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6906 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6907 ac_im_usrlibdir=$ac_im_libdir; break
6909 done
6910 # Screen out bogus values from the imake configuration. They are
6911 # bogus both because they are the default anyway, and because
6912 # using them would break gcc on systems where it needs fixed includes.
6913 case $ac_im_incroot in
6914 /usr/include) ac_x_includes= ;;
6915 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6916 esac
6917 case $ac_im_usrlibdir in
6918 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6919 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6920 esac
6922 cd ..
6923 rm -f -r conftest.dir
6926 # Standard set of common directories for X headers.
6927 # Check X11 before X11Rn because it is often a symlink to the current release.
6928 ac_x_header_dirs='
6929 /usr/X11/include
6930 /usr/X11R7/include
6931 /usr/X11R6/include
6932 /usr/X11R5/include
6933 /usr/X11R4/include
6935 /usr/include/X11
6936 /usr/include/X11R7
6937 /usr/include/X11R6
6938 /usr/include/X11R5
6939 /usr/include/X11R4
6941 /usr/local/X11/include
6942 /usr/local/X11R7/include
6943 /usr/local/X11R6/include
6944 /usr/local/X11R5/include
6945 /usr/local/X11R4/include
6947 /usr/local/include/X11
6948 /usr/local/include/X11R7
6949 /usr/local/include/X11R6
6950 /usr/local/include/X11R5
6951 /usr/local/include/X11R4
6953 /usr/X386/include
6954 /usr/x386/include
6955 /usr/XFree86/include/X11
6957 /usr/include
6958 /usr/local/include
6959 /usr/unsupported/include
6960 /usr/athena/include
6961 /usr/local/x11r5/include
6962 /usr/lpp/Xamples/include
6964 /usr/openwin/include
6965 /usr/openwin/share/include'
6967 if test "$ac_x_includes" = no; then
6968 # Guess where to find include files, by looking for Xlib.h.
6969 # First, try using that file with no special directory specified.
6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h. */
6972 #include <X11/Xlib.h>
6973 _ACEOF
6974 if ac_fn_c_try_cpp "$LINENO"; then :
6975 # We can compile using X headers with no special include directory.
6976 ac_x_includes=
6977 else
6978 for ac_dir in $ac_x_header_dirs; do
6979 if test -r "$ac_dir/X11/Xlib.h"; then
6980 ac_x_includes=$ac_dir
6981 break
6983 done
6985 rm -f conftest.err conftest.$ac_ext
6986 fi # $ac_x_includes = no
6988 if test "$ac_x_libraries" = no; then
6989 # Check for the libraries.
6990 # See if we find them without any special options.
6991 # Don't add to $LIBS permanently.
6992 ac_save_LIBS=$LIBS
6993 LIBS="-lX11 $LIBS"
6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
6996 #include <X11/Xlib.h>
6998 main ()
7000 XrmInitialize ()
7002 return 0;
7004 _ACEOF
7005 if ac_fn_c_try_link "$LINENO"; then :
7006 LIBS=$ac_save_LIBS
7007 # We can link X programs with no special library path.
7008 ac_x_libraries=
7009 else
7010 LIBS=$ac_save_LIBS
7011 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7013 # Don't even attempt the hair of trying to link an X program!
7014 for ac_extension in a so sl dylib la dll; do
7015 if test -r "$ac_dir/libX11.$ac_extension"; then
7016 ac_x_libraries=$ac_dir
7017 break 2
7019 done
7020 done
7022 rm -f core conftest.err conftest.$ac_objext \
7023 conftest$ac_exeext conftest.$ac_ext
7024 fi # $ac_x_libraries = no
7026 case $ac_x_includes,$ac_x_libraries in #(
7027 no,* | *,no | *\'*)
7028 # Didn't find X, or a directory has "'" in its name.
7029 ac_cv_have_x="have_x=no";; #(
7031 # Record where we found X for the cache.
7032 ac_cv_have_x="have_x=yes\
7033 ac_x_includes='$ac_x_includes'\
7034 ac_x_libraries='$ac_x_libraries'"
7035 esac
7037 ;; #(
7038 *) have_x=yes;;
7039 esac
7040 eval "$ac_cv_have_x"
7041 fi # $with_x != no
7043 if test "$have_x" != yes; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7045 $as_echo "$have_x" >&6; }
7046 no_x=yes
7047 else
7048 # If each of the values was on the command line, it overrides each guess.
7049 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7050 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7051 # Update the cache value to reflect the command line values.
7052 ac_cv_have_x="have_x=yes\
7053 ac_x_includes='$x_includes'\
7054 ac_x_libraries='$x_libraries'"
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7056 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7059 if test "$no_x" = yes; then
7060 window_system=none
7061 else
7062 window_system=x11
7065 ## Workaround for bug in autoconf <= 2.62.
7066 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7067 ## No need to do anything special for these standard directories.
7068 ## This is an experiment, take it out if it causes problems.
7069 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7071 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7075 if test "${x_libraries}" != NONE; then
7076 if test -n "${x_libraries}"; then
7077 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7078 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7080 x_default_search_path=""
7081 x_search_path=${x_libraries}
7082 if test -z "${x_search_path}"; then
7083 x_search_path=/usr/lib
7085 for x_library in `echo ${x_search_path}: | \
7086 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7087 x_search_path="\
7088 ${x_library}/X11/%L/%T/%N%C%S:\
7089 ${x_library}/X11/%l/%T/%N%C%S:\
7090 ${x_library}/X11/%T/%N%C%S:\
7091 ${x_library}/X11/%L/%T/%N%S:\
7092 ${x_library}/X11/%l/%T/%N%S:\
7093 ${x_library}/X11/%T/%N%S"
7094 if test x"${x_default_search_path}" = x; then
7095 x_default_search_path=${x_search_path}
7096 else
7097 x_default_search_path="${x_search_path}:${x_default_search_path}"
7099 done
7101 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7102 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7105 if test x"${x_includes}" = x; then
7106 bitmapdir=/usr/include/X11/bitmaps
7107 else
7108 # accumulate include directories that have X11 bitmap subdirectories
7109 bmd_acc="dummyval"
7110 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7111 if test -d "${bmd}/X11/bitmaps"; then
7112 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7114 if test -d "${bmd}/bitmaps"; then
7115 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7117 done
7118 if test ${bmd_acc} != "dummyval"; then
7119 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7123 HAVE_NS=no
7124 NS_IMPL_COCOA=no
7125 NS_IMPL_GNUSTEP=no
7126 tmp_CPPFLAGS="$CPPFLAGS"
7127 tmp_CFLAGS="$CFLAGS"
7128 CPPFLAGS="$CPPFLAGS -x objective-c"
7129 CFLAGS="$CFLAGS -x objective-c"
7130 if test "${with_ns}" != no; then
7131 if test "${opsys}" = darwin; then
7132 NS_IMPL_COCOA=yes
7133 ns_appdir=`pwd`/nextstep/Emacs.app
7134 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
7135 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
7136 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7137 elif test -f $GNUSTEP_CONFIG_FILE; then
7138 NS_IMPL_GNUSTEP=yes
7139 ns_appdir=`pwd`/nextstep/Emacs.app
7140 ns_appbindir=`pwd`/nextstep/Emacs.app
7141 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
7142 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7143 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
7144 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7145 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7146 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7147 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7148 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7149 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
7151 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7152 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7153 HAVE_NS=yes
7154 else
7155 as_fn_error "\`--with-ns' was specified, but the include
7156 files are missing or cannot be compiled." "$LINENO" 5
7160 NS_HAVE_NSINTEGER=yes
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7163 #include <Foundation/NSObjCRuntime.h>
7165 main ()
7167 NSInteger i;
7169 return 0;
7171 _ACEOF
7172 if ac_fn_c_try_compile "$LINENO"; then :
7173 ns_have_nsinteger=yes
7174 else
7175 ns_have_nsinteger=no
7177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178 if test $ns_have_nsinteger = no; then
7179 NS_HAVE_NSINTEGER=no
7182 if test "${HAVE_NS}" = yes; then
7183 window_system=nextstep
7184 with_xft=no
7185 # set up packaging dirs
7186 exec_prefix=${ns_appbindir}
7187 libexecdir=${ns_appbindir}/libexec
7188 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7189 prefix=${ns_appresdir}
7192 CFLAGS="$tmp_CFLAGS"
7193 CPPFLAGS="$tmp_CPPFLAGS"
7195 case "${window_system}" in
7196 x11 )
7197 HAVE_X_WINDOWS=yes
7198 HAVE_X11=yes
7199 case "${with_x_toolkit}" in
7200 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7201 motif ) USE_X_TOOLKIT=MOTIF ;;
7202 gtk ) with_gtk=yes
7203 USE_X_TOOLKIT=none ;;
7204 no ) USE_X_TOOLKIT=none ;;
7205 * ) USE_X_TOOLKIT=maybe ;;
7206 esac
7208 nextstep | none )
7209 HAVE_X_WINDOWS=no
7210 HAVE_X11=no
7211 USE_X_TOOLKIT=none
7213 esac
7215 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7216 # Extract the first word of "X", so it can be a program name with args.
7217 set dummy X; ac_word=$2
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7219 $as_echo_n "checking for $ac_word... " >&6; }
7220 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7221 $as_echo_n "(cached) " >&6
7222 else
7223 if test -n "$HAVE_XSERVER"; then
7224 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7225 else
7226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 for as_dir in $PATH
7229 IFS=$as_save_IFS
7230 test -z "$as_dir" && as_dir=.
7231 for ac_exec_ext in '' $ac_executable_extensions; do
7232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7233 ac_cv_prog_HAVE_XSERVER="true"
7234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7235 break 2
7237 done
7238 done
7239 IFS=$as_save_IFS
7241 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7244 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7245 if test -n "$HAVE_XSERVER"; then
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7247 $as_echo "$HAVE_XSERVER" >&6; }
7248 else
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250 $as_echo "no" >&6; }
7254 if test "$HAVE_XSERVER" = true ||
7255 test -n "$DISPLAY" ||
7256 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7257 as_fn_error "You seem to be running X, but no X development libraries
7258 were found. You should install the relevant development files for X
7259 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7260 sure you have development files for image handling, i.e.
7261 tiff, gif, jpeg, png and xpm.
7262 If you are sure you want Emacs compiled without X window support, pass
7263 --without-x
7264 to configure." "$LINENO" 5
7268 ### If we're using X11, we should use the X menu package.
7269 HAVE_MENUS=no
7270 case ${HAVE_X11} in
7271 yes ) HAVE_MENUS=yes ;;
7272 esac
7274 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7275 # Assume not, until told otherwise.
7276 GNU_MALLOC=yes
7277 doug_lea_malloc=yes
7278 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7279 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7281 else
7282 doug_lea_malloc=no
7285 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7286 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7288 else
7289 doug_lea_malloc=no
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7293 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7294 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7295 $as_echo_n "(cached) " >&6
7296 else
7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h. */
7299 extern void (* __after_morecore_hook)();
7301 main ()
7303 __after_morecore_hook = 0
7305 return 0;
7307 _ACEOF
7308 if ac_fn_c_try_link "$LINENO"; then :
7309 emacs_cv_var___after_morecore_hook=yes
7310 else
7311 emacs_cv_var___after_morecore_hook=no
7313 rm -f core conftest.err conftest.$ac_objext \
7314 conftest$ac_exeext conftest.$ac_ext
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7317 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7318 if test $emacs_cv_var___after_morecore_hook = no; then
7319 doug_lea_malloc=no
7321 if test "${system_malloc}" = "yes"; then
7322 GNU_MALLOC=no
7323 GNU_MALLOC_reason="
7324 (The GNU allocators don't work with this system configuration.)"
7326 if test "$doug_lea_malloc" = "yes" ; then
7327 if test "$GNU_MALLOC" = yes ; then
7328 GNU_MALLOC_reason="
7329 (Using Doug Lea's new malloc from the GNU C Library.)"
7332 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7336 if test x"${REL_ALLOC}" = x; then
7337 REL_ALLOC=${GNU_MALLOC}
7341 for ac_header in stdlib.h unistd.h
7342 do :
7343 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7344 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7345 eval as_val=\$$as_ac_Header
7346 if test "x$as_val" = x""yes; then :
7347 cat >>confdefs.h <<_ACEOF
7348 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7349 _ACEOF
7353 done
7355 for ac_func in getpagesize
7356 do :
7357 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7358 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7359 cat >>confdefs.h <<_ACEOF
7360 #define HAVE_GETPAGESIZE 1
7361 _ACEOF
7364 done
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7367 $as_echo_n "checking for working mmap... " >&6; }
7368 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 if test "$cross_compiling" = yes; then :
7372 ac_cv_func_mmap_fixed_mapped=no
7373 else
7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375 /* end confdefs.h. */
7376 $ac_includes_default
7377 /* malloc might have been renamed as rpl_malloc. */
7378 #undef malloc
7380 /* Thanks to Mike Haertel and Jim Avera for this test.
7381 Here is a matrix of mmap possibilities:
7382 mmap private not fixed
7383 mmap private fixed at somewhere currently unmapped
7384 mmap private fixed at somewhere already mapped
7385 mmap shared not fixed
7386 mmap shared fixed at somewhere currently unmapped
7387 mmap shared fixed at somewhere already mapped
7388 For private mappings, we should verify that changes cannot be read()
7389 back from the file, nor mmap's back from the file at a different
7390 address. (There have been systems where private was not correctly
7391 implemented like the infamous i386 svr4.0, and systems where the
7392 VM page cache was not coherent with the file system buffer cache
7393 like early versions of FreeBSD and possibly contemporary NetBSD.)
7394 For shared mappings, we should conversely verify that changes get
7395 propagated back to all the places they're supposed to be.
7397 Grep wants private fixed already mapped.
7398 The main things grep needs to know about mmap are:
7399 * does it exist and is it safe to write into the mmap'd area
7400 * how to use it (BSD variants) */
7402 #include <fcntl.h>
7403 #include <sys/mman.h>
7405 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7406 char *malloc ();
7407 #endif
7409 /* This mess was copied from the GNU getpagesize.h. */
7410 #ifndef HAVE_GETPAGESIZE
7411 /* Assume that all systems that can run configure have sys/param.h. */
7412 # ifndef HAVE_SYS_PARAM_H
7413 # define HAVE_SYS_PARAM_H 1
7414 # endif
7416 # ifdef _SC_PAGESIZE
7417 # define getpagesize() sysconf(_SC_PAGESIZE)
7418 # else /* no _SC_PAGESIZE */
7419 # ifdef HAVE_SYS_PARAM_H
7420 # include <sys/param.h>
7421 # ifdef EXEC_PAGESIZE
7422 # define getpagesize() EXEC_PAGESIZE
7423 # else /* no EXEC_PAGESIZE */
7424 # ifdef NBPG
7425 # define getpagesize() NBPG * CLSIZE
7426 # ifndef CLSIZE
7427 # define CLSIZE 1
7428 # endif /* no CLSIZE */
7429 # else /* no NBPG */
7430 # ifdef NBPC
7431 # define getpagesize() NBPC
7432 # else /* no NBPC */
7433 # ifdef PAGESIZE
7434 # define getpagesize() PAGESIZE
7435 # endif /* PAGESIZE */
7436 # endif /* no NBPC */
7437 # endif /* no NBPG */
7438 # endif /* no EXEC_PAGESIZE */
7439 # else /* no HAVE_SYS_PARAM_H */
7440 # define getpagesize() 8192 /* punt totally */
7441 # endif /* no HAVE_SYS_PARAM_H */
7442 # endif /* no _SC_PAGESIZE */
7444 #endif /* no HAVE_GETPAGESIZE */
7447 main ()
7449 char *data, *data2, *data3;
7450 int i, pagesize;
7451 int fd;
7453 pagesize = getpagesize ();
7455 /* First, make a file with some known garbage in it. */
7456 data = (char *) malloc (pagesize);
7457 if (!data)
7458 return 1;
7459 for (i = 0; i < pagesize; ++i)
7460 *(data + i) = rand ();
7461 umask (0);
7462 fd = creat ("conftest.mmap", 0600);
7463 if (fd < 0)
7464 return 1;
7465 if (write (fd, data, pagesize) != pagesize)
7466 return 1;
7467 close (fd);
7469 /* Next, try to mmap the file at a fixed address which already has
7470 something else allocated at it. If we can, also make sure that
7471 we see the same garbage. */
7472 fd = open ("conftest.mmap", O_RDWR);
7473 if (fd < 0)
7474 return 1;
7475 data2 = (char *) malloc (2 * pagesize);
7476 if (!data2)
7477 return 1;
7478 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7479 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7480 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7481 return 1;
7482 for (i = 0; i < pagesize; ++i)
7483 if (*(data + i) != *(data2 + i))
7484 return 1;
7486 /* Finally, make sure that changes to the mapped area do not
7487 percolate back to the file as seen by read(). (This is a bug on
7488 some variants of i386 svr4.0.) */
7489 for (i = 0; i < pagesize; ++i)
7490 *(data2 + i) = *(data2 + i) + 1;
7491 data3 = (char *) malloc (pagesize);
7492 if (!data3)
7493 return 1;
7494 if (read (fd, data3, pagesize) != pagesize)
7495 return 1;
7496 for (i = 0; i < pagesize; ++i)
7497 if (*(data + i) != *(data3 + i))
7498 return 1;
7499 close (fd);
7500 return 0;
7502 _ACEOF
7503 if ac_fn_c_try_run "$LINENO"; then :
7504 ac_cv_func_mmap_fixed_mapped=yes
7505 else
7506 ac_cv_func_mmap_fixed_mapped=no
7508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7509 conftest.$ac_objext conftest.beam conftest.$ac_ext
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7514 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7515 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7517 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7520 rm -f conftest.mmap
7522 if test $use_mmap_for_buffers = yes; then
7523 REL_ALLOC=no
7526 LIBS="$libsrc_libs $LIBS"
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7529 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7530 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7531 $as_echo_n "(cached) " >&6
7532 else
7533 ac_check_lib_save_LIBS=$LIBS
7534 LIBS="-ldnet $LIBS"
7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h. */
7538 /* Override any GCC internal prototype to avoid an error.
7539 Use char because int might match the return type of a GCC
7540 builtin and then its argument prototype would still apply. */
7541 #ifdef __cplusplus
7542 extern "C"
7543 #endif
7544 char dnet_ntoa ();
7546 main ()
7548 return dnet_ntoa ();
7550 return 0;
7552 _ACEOF
7553 if ac_fn_c_try_link "$LINENO"; then :
7554 ac_cv_lib_dnet_dnet_ntoa=yes
7555 else
7556 ac_cv_lib_dnet_dnet_ntoa=no
7558 rm -f core conftest.err conftest.$ac_objext \
7559 conftest$ac_exeext conftest.$ac_ext
7560 LIBS=$ac_check_lib_save_LIBS
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7563 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7564 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7565 cat >>confdefs.h <<_ACEOF
7566 #define HAVE_LIBDNET 1
7567 _ACEOF
7569 LIBS="-ldnet $LIBS"
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7575 $as_echo_n "checking for main in -lXbsd... " >&6; }
7576 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
7577 $as_echo_n "(cached) " >&6
7578 else
7579 ac_check_lib_save_LIBS=$LIBS
7580 LIBS="-lXbsd $LIBS"
7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582 /* end confdefs.h. */
7586 main ()
7588 return main ();
7590 return 0;
7592 _ACEOF
7593 if ac_fn_c_try_link "$LINENO"; then :
7594 ac_cv_lib_Xbsd_main=yes
7595 else
7596 ac_cv_lib_Xbsd_main=no
7598 rm -f core conftest.err conftest.$ac_objext \
7599 conftest$ac_exeext conftest.$ac_ext
7600 LIBS=$ac_check_lib_save_LIBS
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7603 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7604 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
7605 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
7610 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7611 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
7612 $as_echo_n "(cached) " >&6
7613 else
7614 ac_check_lib_save_LIBS=$LIBS
7615 LIBS="-lpthreads $LIBS"
7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617 /* end confdefs.h. */
7619 /* Override any GCC internal prototype to avoid an error.
7620 Use char because int might match the return type of a GCC
7621 builtin and then its argument prototype would still apply. */
7622 #ifdef __cplusplus
7623 extern "C"
7624 #endif
7625 char cma_open ();
7627 main ()
7629 return cma_open ();
7631 return 0;
7633 _ACEOF
7634 if ac_fn_c_try_link "$LINENO"; then :
7635 ac_cv_lib_pthreads_cma_open=yes
7636 else
7637 ac_cv_lib_pthreads_cma_open=no
7639 rm -f core conftest.err conftest.$ac_objext \
7640 conftest$ac_exeext conftest.$ac_ext
7641 LIBS=$ac_check_lib_save_LIBS
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
7644 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7645 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
7646 cat >>confdefs.h <<_ACEOF
7647 #define HAVE_LIBPTHREADS 1
7648 _ACEOF
7650 LIBS="-lpthreads $LIBS"
7656 case ${host_os} in
7657 aix*)
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
7659 $as_echo_n "checking for -bbigtoc option... " >&6; }
7660 if test "${gdb_cv_bigtoc+set}" = set; then :
7661 $as_echo_n "(cached) " >&6
7662 else
7664 case $GCC in
7665 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
7666 *) gdb_cv_bigtoc=-bbigtoc ;;
7667 esac
7669 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h. */
7674 main ()
7676 int i;
7678 return 0;
7680 _ACEOF
7681 if ac_fn_c_try_link "$LINENO"; then :
7683 else
7684 gdb_cv_bigtoc=
7686 rm -f core conftest.err conftest.$ac_objext \
7687 conftest$ac_exeext conftest.$ac_ext
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
7691 $as_echo "$gdb_cv_bigtoc" >&6; }
7693 esac
7695 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7696 # used for the tests that follow. We set them back to REAL_CFLAGS and
7697 # REAL_CPPFLAGS later on.
7699 REAL_CPPFLAGS="$CPPFLAGS"
7701 if test "${HAVE_X11}" = "yes"; then
7702 DEFS="$C_SWITCH_X_SITE $DEFS"
7703 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7704 LIBS="$LIBX $LIBS"
7705 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7706 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7708 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7709 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7710 # but it's more convenient here to set LD_RUN_PATH
7711 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7712 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7713 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7714 export LD_RUN_PATH
7717 if test "${opsys}" = "gnu-linux"; then
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
7719 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h. */
7724 main ()
7726 XOpenDisplay ("foo");
7728 return 0;
7730 _ACEOF
7731 if ac_fn_c_try_link "$LINENO"; then :
7732 xlinux_first_failure=no
7733 else
7734 xlinux_first_failure=yes
7736 rm -f core conftest.err conftest.$ac_objext \
7737 conftest$ac_exeext conftest.$ac_ext
7738 if test "${xlinux_first_failure}" = "yes"; then
7739 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7740 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7741 OLD_CPPFLAGS="$CPPFLAGS"
7742 OLD_LIBS="$LIBS"
7743 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7744 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7745 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7746 LIBS="$LIBS -b i486-linuxaout"
7747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748 /* end confdefs.h. */
7751 main ()
7753 XOpenDisplay ("foo");
7755 return 0;
7757 _ACEOF
7758 if ac_fn_c_try_link "$LINENO"; then :
7759 xlinux_second_failure=no
7760 else
7761 xlinux_second_failure=yes
7763 rm -f core conftest.err conftest.$ac_objext \
7764 conftest$ac_exeext conftest.$ac_ext
7765 if test "${xlinux_second_failure}" = "yes"; then
7766 # If we get the same failure with -b, there is no use adding -b.
7767 # So take it out. This plays safe.
7768 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7769 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7770 CPPFLAGS="$OLD_CPPFLAGS"
7771 LIBS="$OLD_LIBS"
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 $as_echo "no" >&6; }
7774 else
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7776 $as_echo "yes" >&6; }
7778 else
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780 $as_echo "no" >&6; }
7784 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7785 # header files included from there.
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
7787 $as_echo_n "checking for Xkb... " >&6; }
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7790 #include <X11/Xlib.h>
7791 #include <X11/XKBlib.h>
7793 main ()
7795 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7797 return 0;
7799 _ACEOF
7800 if ac_fn_c_try_link "$LINENO"; then :
7801 emacs_xkb=yes
7802 else
7803 emacs_xkb=no
7805 rm -f core conftest.err conftest.$ac_objext \
7806 conftest$ac_exeext conftest.$ac_ext
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
7808 $as_echo "$emacs_xkb" >&6; }
7809 if test $emacs_xkb = yes; then
7811 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
7815 for ac_func in XrmSetDatabase XScreenResourceString \
7816 XScreenNumberOfScreen XSetWMProtocols
7817 do :
7818 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7819 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7820 eval as_val=\$$as_ac_var
7821 if test "x$as_val" = x""yes; then :
7822 cat >>confdefs.h <<_ACEOF
7823 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7824 _ACEOF
7827 done
7831 if test "${window_system}" = "x11"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
7833 $as_echo_n "checking X11 version 6... " >&6; }
7834 if test "${emacs_cv_x11_version_6+set}" = set; then :
7835 $as_echo_n "(cached) " >&6
7836 else
7837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h. */
7839 #include <X11/Xlib.h>
7841 main ()
7843 #if XlibSpecificationRelease < 6
7844 fail;
7845 #endif
7848 return 0;
7850 _ACEOF
7851 if ac_fn_c_try_link "$LINENO"; then :
7852 emacs_cv_x11_version_6=yes
7853 else
7854 emacs_cv_x11_version_6=no
7856 rm -f core conftest.err conftest.$ac_objext \
7857 conftest$ac_exeext conftest.$ac_ext
7860 if test $emacs_cv_x11_version_6 = yes; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
7862 $as_echo "6 or newer" >&6; }
7864 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
7866 else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
7868 $as_echo "before 6" >&6; }
7873 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
7874 HAVE_RSVG=no
7875 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
7876 if test "${with_rsvg}" != "no"; then
7877 RSVG_REQUIRED=2.11.0
7878 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
7881 succeeded=no
7883 # Extract the first word of "pkg-config", so it can be a program name with args.
7884 set dummy pkg-config; ac_word=$2
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886 $as_echo_n "checking for $ac_word... " >&6; }
7887 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890 case $PKG_CONFIG in
7891 [\\/]* | ?:[\\/]*)
7892 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896 for as_dir in $PATH
7898 IFS=$as_save_IFS
7899 test -z "$as_dir" && as_dir=.
7900 for ac_exec_ext in '' $ac_executable_extensions; do
7901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7902 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7904 break 2
7906 done
7907 done
7908 IFS=$as_save_IFS
7910 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7912 esac
7914 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7915 if test -n "$PKG_CONFIG"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7917 $as_echo "$PKG_CONFIG" >&6; }
7918 else
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7925 if test "$PKG_CONFIG" = "no" ; then
7927 else
7928 PKG_CONFIG_MIN_VERSION=0.9.0
7929 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
7931 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
7933 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7935 $as_echo "yes" >&6; }
7936 succeeded=yes
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
7939 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
7940 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
7942 $as_echo "$RSVG_CFLAGS" >&6; }
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
7945 $as_echo_n "checking RSVG_LIBS... " >&6; }
7946 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
7948 $as_echo "$RSVG_LIBS" >&6; }
7949 else
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951 $as_echo "no" >&6; }
7952 RSVG_CFLAGS=""
7953 RSVG_LIBS=""
7954 ## If we have a custom action on failure, don't print errors, but
7955 ## do set a variable so people can do so.
7956 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
7962 else
7963 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7964 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7968 if test $succeeded = yes; then
7970 else
7977 if test ".${RSVG_CFLAGS}" != "."; then
7978 HAVE_RSVG=yes
7980 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
7982 CFLAGS="$CFLAGS $RSVG_CFLAGS"
7983 LIBS="$RSVG_LIBS $LIBS"
7989 HAVE_GTK=no
7990 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
7991 GLIB_REQUIRED=2.6
7992 GTK_REQUIRED=2.6
7993 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
7996 succeeded=no
7998 # Extract the first word of "pkg-config", so it can be a program name with args.
7999 set dummy pkg-config; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8003 $as_echo_n "(cached) " >&6
8004 else
8005 case $PKG_CONFIG in
8006 [\\/]* | ?:[\\/]*)
8007 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011 for as_dir in $PATH
8013 IFS=$as_save_IFS
8014 test -z "$as_dir" && as_dir=.
8015 for ac_exec_ext in '' $ac_executable_extensions; do
8016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8017 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8019 break 2
8021 done
8022 done
8023 IFS=$as_save_IFS
8025 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8027 esac
8029 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8030 if test -n "$PKG_CONFIG"; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8032 $as_echo "$PKG_CONFIG" >&6; }
8033 else
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035 $as_echo "no" >&6; }
8040 if test "$PKG_CONFIG" = "no" ; then
8041 pkg_check_gtk=no
8042 else
8043 PKG_CONFIG_MIN_VERSION=0.9.0
8044 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8046 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8048 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8050 $as_echo "yes" >&6; }
8051 succeeded=yes
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8054 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8055 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8057 $as_echo "$GTK_CFLAGS" >&6; }
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8060 $as_echo_n "checking GTK_LIBS... " >&6; }
8061 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8063 $as_echo "$GTK_LIBS" >&6; }
8064 else
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066 $as_echo "no" >&6; }
8067 GTK_CFLAGS=""
8068 GTK_LIBS=""
8069 ## If we have a custom action on failure, don't print errors, but
8070 ## do set a variable so people can do so.
8071 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8077 else
8078 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8079 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8083 if test $succeeded = yes; then
8084 pkg_check_gtk=yes
8085 else
8086 pkg_check_gtk=no
8089 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8090 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8095 if test x"$pkg_check_gtk" = xyes; then
8099 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8100 CFLAGS="$CFLAGS $GTK_CFLAGS"
8101 LIBS="$GTK_LIBS $LIBS"
8102 GTK_COMPILES=no
8103 for ac_func in gtk_main
8104 do :
8105 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8106 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8107 cat >>confdefs.h <<_ACEOF
8108 #define HAVE_GTK_MAIN 1
8109 _ACEOF
8110 GTK_COMPILES=yes
8112 done
8114 if test "${GTK_COMPILES}" != "yes"; then
8115 if test "$USE_X_TOOLKIT" != "maybe"; then
8116 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8118 else
8119 HAVE_GTK=yes
8121 $as_echo "#define USE_GTK 1" >>confdefs.h
8123 USE_X_TOOLKIT=none
8124 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8126 else
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8128 closing open displays. This is no problem if you just use
8129 one display, but if you use more than one and close one of them
8130 Emacs may crash." >&5
8131 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8132 closing open displays. This is no problem if you just use
8133 one display, but if you use more than one and close one of them
8134 Emacs may crash." >&2;}
8135 sleep 3
8142 if test "${HAVE_GTK}" = "yes"; then
8144 if test "$with_toolkit_scroll_bars" != no; then
8145 with_toolkit_scroll_bars=yes
8148 HAVE_GTK_MULTIDISPLAY=no
8149 for ac_func in gdk_display_open
8150 do :
8151 ac_fn_c_check_func "$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open"
8152 if test "x$ac_cv_func_gdk_display_open" = x""yes; then :
8153 cat >>confdefs.h <<_ACEOF
8154 #define HAVE_GDK_DISPLAY_OPEN 1
8155 _ACEOF
8156 HAVE_GTK_MULTIDISPLAY=yes
8158 done
8160 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8162 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h
8166 HAVE_GTK_FILE_SELECTION=no
8167 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8168 #include <gtk/gtk.h>
8170 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
8171 HAVE_GTK_FILE_SELECTION=yes
8172 else
8173 HAVE_GTK_FILE_SELECTION=no
8176 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8177 for ac_func in gtk_file_selection_new
8178 do :
8179 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8180 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
8181 cat >>confdefs.h <<_ACEOF
8182 #define HAVE_GTK_FILE_SELECTION_NEW 1
8183 _ACEOF
8184 HAVE_GTK_FILE_SELECTION=yes
8185 else
8186 HAVE_GTK_FILE_SELECTION=no
8188 done
8192 HAVE_GTK_FILE_CHOOSER=no
8193 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default
8194 #include <gtk/gtk.h>
8196 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then :
8197 HAVE_GTK_FILE_CHOOSER=yes
8198 else
8199 HAVE_GTK_FILE_CHOOSER=no
8202 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8203 for ac_func in gtk_file_chooser_dialog_new
8204 do :
8205 ac_fn_c_check_func "$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new"
8206 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x""yes; then :
8207 cat >>confdefs.h <<_ACEOF
8208 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1
8209 _ACEOF
8210 HAVE_GTK_FILE_CHOOSER=yes
8211 else
8212 HAVE_GTK_FILE_CHOOSER=no
8214 done
8218 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8219 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8221 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h
8225 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8226 HAVE_GTK_AND_PTHREAD=no
8227 for ac_header in pthread.h
8228 do :
8229 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8230 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8231 cat >>confdefs.h <<_ACEOF
8232 #define HAVE_PTHREAD_H 1
8233 _ACEOF
8237 done
8239 if test "$ac_cv_header_pthread_h"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8241 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8242 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8243 $as_echo_n "(cached) " >&6
8244 else
8245 ac_check_lib_save_LIBS=$LIBS
8246 LIBS="-lpthread $LIBS"
8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h. */
8250 /* Override any GCC internal prototype to avoid an error.
8251 Use char because int might match the return type of a GCC
8252 builtin and then its argument prototype would still apply. */
8253 #ifdef __cplusplus
8254 extern "C"
8255 #endif
8256 char pthread_self ();
8258 main ()
8260 return pthread_self ();
8262 return 0;
8264 _ACEOF
8265 if ac_fn_c_try_link "$LINENO"; then :
8266 ac_cv_lib_pthread_pthread_self=yes
8267 else
8268 ac_cv_lib_pthread_pthread_self=no
8270 rm -f core conftest.err conftest.$ac_objext \
8271 conftest$ac_exeext conftest.$ac_ext
8272 LIBS=$ac_check_lib_save_LIBS
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8275 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8276 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
8277 HAVE_GTK_AND_PTHREAD=yes
8281 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8282 case "${canonical}" in
8283 *-hpux*) ;;
8284 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
8285 esac
8287 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8293 HAVE_DBUS=no
8294 if test "${with_dbus}" = "yes"; then
8296 succeeded=no
8298 # Extract the first word of "pkg-config", so it can be a program name with args.
8299 set dummy pkg-config; ac_word=$2
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301 $as_echo_n "checking for $ac_word... " >&6; }
8302 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8303 $as_echo_n "(cached) " >&6
8304 else
8305 case $PKG_CONFIG in
8306 [\\/]* | ?:[\\/]*)
8307 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311 for as_dir in $PATH
8313 IFS=$as_save_IFS
8314 test -z "$as_dir" && as_dir=.
8315 for ac_exec_ext in '' $ac_executable_extensions; do
8316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8317 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8319 break 2
8321 done
8322 done
8323 IFS=$as_save_IFS
8325 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8327 esac
8329 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8330 if test -n "$PKG_CONFIG"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8332 $as_echo "$PKG_CONFIG" >&6; }
8333 else
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8340 if test "$PKG_CONFIG" = "no" ; then
8341 HAVE_DBUS=no
8342 else
8343 PKG_CONFIG_MIN_VERSION=0.9.0
8344 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
8346 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8348 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8350 $as_echo "yes" >&6; }
8351 succeeded=yes
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
8354 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8355 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
8357 $as_echo "$DBUS_CFLAGS" >&6; }
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
8360 $as_echo_n "checking DBUS_LIBS... " >&6; }
8361 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
8363 $as_echo "$DBUS_LIBS" >&6; }
8364 else
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8367 DBUS_CFLAGS=""
8368 DBUS_LIBS=""
8369 ## If we have a custom action on failure, don't print errors, but
8370 ## do set a variable so people can do so.
8371 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
8377 else
8378 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8379 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8383 if test $succeeded = yes; then
8384 HAVE_DBUS=yes
8385 else
8386 HAVE_DBUS=no
8389 if test "$HAVE_DBUS" = yes; then
8390 LIBS="$LIBS $DBUS_LIBS"
8392 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
8394 for ac_func in dbus_watch_get_unix_fd
8395 do :
8396 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
8397 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
8398 cat >>confdefs.h <<_ACEOF
8399 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
8400 _ACEOF
8403 done
8408 HAVE_GCONF=no
8409 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8411 succeeded=no
8413 # Extract the first word of "pkg-config", so it can be a program name with args.
8414 set dummy pkg-config; ac_word=$2
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8416 $as_echo_n "checking for $ac_word... " >&6; }
8417 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8418 $as_echo_n "(cached) " >&6
8419 else
8420 case $PKG_CONFIG in
8421 [\\/]* | ?:[\\/]*)
8422 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426 for as_dir in $PATH
8428 IFS=$as_save_IFS
8429 test -z "$as_dir" && as_dir=.
8430 for ac_exec_ext in '' $ac_executable_extensions; do
8431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8432 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8434 break 2
8436 done
8437 done
8438 IFS=$as_save_IFS
8440 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8442 esac
8444 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8445 if test -n "$PKG_CONFIG"; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8447 $as_echo "$PKG_CONFIG" >&6; }
8448 else
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450 $as_echo "no" >&6; }
8455 if test "$PKG_CONFIG" = "no" ; then
8456 HAVE_GCONF=no
8457 else
8458 PKG_CONFIG_MIN_VERSION=0.9.0
8459 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
8461 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8463 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8465 $as_echo "yes" >&6; }
8466 succeeded=yes
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
8469 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8470 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
8472 $as_echo "$GCONF_CFLAGS" >&6; }
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
8475 $as_echo_n "checking GCONF_LIBS... " >&6; }
8476 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
8478 $as_echo "$GCONF_LIBS" >&6; }
8479 else
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 $as_echo "no" >&6; }
8482 GCONF_CFLAGS=""
8483 GCONF_LIBS=""
8484 ## If we have a custom action on failure, don't print errors, but
8485 ## do set a variable so people can do so.
8486 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
8492 else
8493 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8494 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8498 if test $succeeded = yes; then
8499 HAVE_GCONF=yes
8500 else
8501 HAVE_GCONF=no
8504 if test "$HAVE_GCONF" = yes; then
8506 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
8511 HAVE_XAW3D=no
8512 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
8513 if test "$with_xaw3d" != no; then
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
8515 $as_echo_n "checking for xaw3d... " >&6; }
8516 if test "${emacs_cv_xaw3d+set}" = set; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8522 #include <X11/Intrinsic.h>
8523 #include <X11/Xaw3d/Simple.h>
8525 main ()
8529 return 0;
8531 _ACEOF
8532 if ac_fn_c_try_link "$LINENO"; then :
8533 emacs_cv_xaw3d=yes
8534 else
8535 emacs_cv_xaw3d=no
8537 rm -f core conftest.err conftest.$ac_objext \
8538 conftest$ac_exeext conftest.$ac_ext
8541 else
8542 emacs_cv_xaw3d=no
8544 if test $emacs_cv_xaw3d = yes; then
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8546 $as_echo "yes; using Lucid toolkit" >&6; }
8547 USE_X_TOOLKIT=LUCID
8548 HAVE_XAW3D=yes
8550 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
8552 else
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554 $as_echo "no" >&6; }
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
8556 $as_echo_n "checking for libXaw... " >&6; }
8557 if test "${emacs_cv_xaw+set}" = set; then :
8558 $as_echo_n "(cached) " >&6
8559 else
8560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8561 /* end confdefs.h. */
8563 #include <X11/Intrinsic.h>
8564 #include <X11/Xaw/Simple.h>
8566 main ()
8570 return 0;
8572 _ACEOF
8573 if ac_fn_c_try_link "$LINENO"; then :
8574 emacs_cv_xaw=yes
8575 else
8576 emacs_cv_xaw=no
8578 rm -f core conftest.err conftest.$ac_objext \
8579 conftest$ac_exeext conftest.$ac_ext
8582 if test $emacs_cv_xaw = yes; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8584 $as_echo "yes; using Lucid toolkit" >&6; }
8585 USE_X_TOOLKIT=LUCID
8586 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
8587 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
8588 else
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
8590 $as_echo "no; do not use toolkit by default" >&6; }
8591 USE_X_TOOLKIT=none
8596 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8598 if test "${USE_X_TOOLKIT}" != "none"; then
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
8600 $as_echo_n "checking X11 toolkit version... " >&6; }
8601 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
8602 $as_echo_n "(cached) " >&6
8603 else
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8606 #include <X11/Intrinsic.h>
8608 main ()
8610 #if XtSpecificationRelease < 6
8611 fail;
8612 #endif
8615 return 0;
8617 _ACEOF
8618 if ac_fn_c_try_link "$LINENO"; then :
8619 emacs_cv_x11_toolkit_version_6=yes
8620 else
8621 emacs_cv_x11_toolkit_version_6=no
8623 rm -f core conftest.err conftest.$ac_objext \
8624 conftest$ac_exeext conftest.$ac_ext
8627 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8628 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8630 $as_echo "6 or newer" >&6; }
8632 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
8634 else
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8636 $as_echo "before 6" >&6; }
8639 OLDLIBS="$LIBS"
8640 if test x$HAVE_X11XTR6 = xyes; then
8641 LIBS="-lXt -lSM -lICE $LIBS"
8642 else
8643 LIBS="-lXt $LIBS"
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
8646 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
8647 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
8648 $as_echo_n "(cached) " >&6
8649 else
8650 ac_check_lib_save_LIBS=$LIBS
8651 LIBS="-lXmu $LIBS"
8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h. */
8655 /* Override any GCC internal prototype to avoid an error.
8656 Use char because int might match the return type of a GCC
8657 builtin and then its argument prototype would still apply. */
8658 #ifdef __cplusplus
8659 extern "C"
8660 #endif
8661 char XmuConvertStandardSelection ();
8663 main ()
8665 return XmuConvertStandardSelection ();
8667 return 0;
8669 _ACEOF
8670 if ac_fn_c_try_link "$LINENO"; then :
8671 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8672 else
8673 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8675 rm -f core conftest.err conftest.$ac_objext \
8676 conftest$ac_exeext conftest.$ac_ext
8677 LIBS=$ac_check_lib_save_LIBS
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8680 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
8681 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
8682 cat >>confdefs.h <<_ACEOF
8683 #define HAVE_LIBXMU 1
8684 _ACEOF
8686 LIBS="-lXmu $LIBS"
8690 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
8693 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8694 if test "${HAVE_X11}" = "yes"; then
8695 if test "${USE_X_TOOLKIT}" != "none"; then
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8697 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8698 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8699 $as_echo_n "(cached) " >&6
8700 else
8701 ac_check_lib_save_LIBS=$LIBS
8702 LIBS="-lXext $LIBS"
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8706 /* Override any GCC internal prototype to avoid an error.
8707 Use char because int might match the return type of a GCC
8708 builtin and then its argument prototype would still apply. */
8709 #ifdef __cplusplus
8710 extern "C"
8711 #endif
8712 char XShapeQueryExtension ();
8714 main ()
8716 return XShapeQueryExtension ();
8718 return 0;
8720 _ACEOF
8721 if ac_fn_c_try_link "$LINENO"; then :
8722 ac_cv_lib_Xext_XShapeQueryExtension=yes
8723 else
8724 ac_cv_lib_Xext_XShapeQueryExtension=no
8726 rm -f core conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
8728 LIBS=$ac_check_lib_save_LIBS
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8731 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8732 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8733 cat >>confdefs.h <<_ACEOF
8734 #define HAVE_LIBXEXT 1
8735 _ACEOF
8737 LIBS="-lXext $LIBS"
8744 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
8746 $as_echo_n "checking for Motif version 2.1... " >&6; }
8747 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
8748 $as_echo_n "(cached) " >&6
8749 else
8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h. */
8752 #include <Xm/Xm.h>
8754 main ()
8756 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8757 int x = 5;
8758 #else
8759 Motif version prior to 2.1.
8760 #endif
8762 return 0;
8764 _ACEOF
8765 if ac_fn_c_try_compile "$LINENO"; then :
8766 emacs_cv_motif_version_2_1=yes
8767 else
8768 emacs_cv_motif_version_2_1=no
8770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
8773 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
8774 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8775 if test $emacs_cv_motif_version_2_1 = yes; then
8776 HAVE_LIBXP=no
8778 $as_echo "#define HAVE_MOTIF_2_1 1" >>confdefs.h
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
8781 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
8782 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
8783 $as_echo_n "(cached) " >&6
8784 else
8785 ac_check_lib_save_LIBS=$LIBS
8786 LIBS="-lXp $LIBS"
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8790 /* Override any GCC internal prototype to avoid an error.
8791 Use char because int might match the return type of a GCC
8792 builtin and then its argument prototype would still apply. */
8793 #ifdef __cplusplus
8794 extern "C"
8795 #endif
8796 char XpCreateContext ();
8798 main ()
8800 return XpCreateContext ();
8802 return 0;
8804 _ACEOF
8805 if ac_fn_c_try_link "$LINENO"; then :
8806 ac_cv_lib_Xp_XpCreateContext=yes
8807 else
8808 ac_cv_lib_Xp_XpCreateContext=no
8810 rm -f core conftest.err conftest.$ac_objext \
8811 conftest$ac_exeext conftest.$ac_ext
8812 LIBS=$ac_check_lib_save_LIBS
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8815 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
8816 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
8817 HAVE_LIBXP=yes
8820 if test ${HAVE_LIBXP} = yes; then
8822 $as_echo "#define HAVE_LIBXP 1" >>confdefs.h
8825 else
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
8827 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
8828 if test "${emacs_cv_lesstif+set}" = set; then :
8829 $as_echo_n "(cached) " >&6
8830 else
8831 # We put this in CFLAGS temporarily to precede other -I options
8832 # that might be in CFLAGS temporarily.
8833 # We put this in CPPFLAGS where it precedes the other -I options.
8834 OLD_CPPFLAGS=$CPPFLAGS
8835 OLD_CFLAGS=$CFLAGS
8836 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8837 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839 /* end confdefs.h. */
8840 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8842 main ()
8844 int x = 5;
8846 return 0;
8848 _ACEOF
8849 if ac_fn_c_try_compile "$LINENO"; then :
8850 emacs_cv_lesstif=yes
8851 else
8852 emacs_cv_lesstif=no
8854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
8857 $as_echo "$emacs_cv_lesstif" >&6; }
8858 if test $emacs_cv_lesstif = yes; then
8859 # Make sure this -I option remains in CPPFLAGS after it is set
8860 # back to REAL_CPPFLAGS.
8861 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8862 # have those other -I options anyway. Ultimately, having this
8863 # directory ultimately in CPPFLAGS will be enough.
8864 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8865 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8866 else
8867 CFLAGS=$OLD_CFLAGS
8868 CPPFLAGS=$OLD_CPPFLAGS
8874 USE_TOOLKIT_SCROLL_BARS=no
8875 if test "${with_toolkit_scroll_bars}" != "no"; then
8876 if test "${USE_X_TOOLKIT}" != "none"; then
8877 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8878 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8880 HAVE_XAW3D=no
8881 USE_TOOLKIT_SCROLL_BARS=yes
8882 elif test "${HAVE_XAW3D}" = "yes"; then
8883 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8885 USE_TOOLKIT_SCROLL_BARS=yes
8887 elif test "${HAVE_GTK}" = "yes"; then
8888 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8890 USE_TOOLKIT_SCROLL_BARS=yes
8891 elif test "${HAVE_NS}" = "yes"; then
8892 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8894 USE_TOOLKIT_SCROLL_BARS=yes
8898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8899 /* end confdefs.h. */
8901 #include <X11/Xlib.h>
8902 #include <X11/Xresource.h>
8904 main ()
8906 XIMProc callback;
8908 return 0;
8910 _ACEOF
8911 if ac_fn_c_try_compile "$LINENO"; then :
8912 HAVE_XIM=yes
8914 $as_echo "#define HAVE_XIM 1" >>confdefs.h
8916 else
8917 HAVE_XIM=no
8919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8922 if test "${with_xim}" != "no"; then
8924 $as_echo "#define USE_XIM 1" >>confdefs.h
8929 if test "${HAVE_XIM}" != "no"; then
8930 late_CFLAGS=$CFLAGS
8931 if test "$GCC" = yes; then
8932 CFLAGS="$CFLAGS --pedantic-errors"
8934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h. */
8937 #include <X11/Xlib.h>
8938 #include <X11/Xresource.h>
8940 main ()
8942 Display *display;
8943 XrmDatabase db;
8944 char *res_name;
8945 char *res_class;
8946 XIMProc callback;
8947 XPointer *client_data;
8948 #ifndef __GNUC__
8949 /* If we're not using GCC, it's probably not XFree86, and this is
8950 probably right, but we can't use something like --pedantic-errors. */
8951 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
8952 char*, XIMProc, XPointer*);
8953 #endif
8954 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
8955 client_data);
8957 return 0;
8959 _ACEOF
8960 if ac_fn_c_try_compile "$LINENO"; then :
8961 emacs_cv_arg6_star=yes
8963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8964 if test "$emacs_cv_arg6_star" = yes; then
8965 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
8967 else
8968 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
8971 CFLAGS=$late_CFLAGS
8974 ### Start of font-backend (under any platform) section.
8975 # (nothing here yet -- this is a placeholder)
8976 ### End of font-backend (under any platform) section.
8978 ### Start of font-backend (under X11) section.
8979 if test "${HAVE_X11}" = "yes"; then
8981 succeeded=no
8983 # Extract the first word of "pkg-config", so it can be a program name with args.
8984 set dummy pkg-config; ac_word=$2
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8986 $as_echo_n "checking for $ac_word... " >&6; }
8987 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8988 $as_echo_n "(cached) " >&6
8989 else
8990 case $PKG_CONFIG in
8991 [\\/]* | ?:[\\/]*)
8992 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8996 for as_dir in $PATH
8998 IFS=$as_save_IFS
8999 test -z "$as_dir" && as_dir=.
9000 for ac_exec_ext in '' $ac_executable_extensions; do
9001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9002 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9004 break 2
9006 done
9007 done
9008 IFS=$as_save_IFS
9010 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9012 esac
9014 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9015 if test -n "$PKG_CONFIG"; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9017 $as_echo "$PKG_CONFIG" >&6; }
9018 else
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020 $as_echo "no" >&6; }
9025 if test "$PKG_CONFIG" = "no" ; then
9026 HAVE_FC=no
9027 else
9028 PKG_CONFIG_MIN_VERSION=0.9.0
9029 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9031 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9033 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9035 $as_echo "yes" >&6; }
9036 succeeded=yes
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9039 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9040 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9042 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9045 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9046 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9048 $as_echo "$FONTCONFIG_LIBS" >&6; }
9049 else
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9051 $as_echo "no" >&6; }
9052 FONTCONFIG_CFLAGS=""
9053 FONTCONFIG_LIBS=""
9054 ## If we have a custom action on failure, don't print errors, but
9055 ## do set a variable so people can do so.
9056 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9062 else
9063 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9064 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9068 if test $succeeded = yes; then
9069 HAVE_FC=yes
9070 else
9071 HAVE_FC=no
9075 ## Use -lXft if available, unless `--with-xft=no'.
9076 HAVE_XFT=maybe
9077 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
9078 with_xft="no";
9080 if test "x${with_xft}" != "xno"; then
9083 succeeded=no
9085 # Extract the first word of "pkg-config", so it can be a program name with args.
9086 set dummy pkg-config; ac_word=$2
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9088 $as_echo_n "checking for $ac_word... " >&6; }
9089 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9090 $as_echo_n "(cached) " >&6
9091 else
9092 case $PKG_CONFIG in
9093 [\\/]* | ?:[\\/]*)
9094 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9098 for as_dir in $PATH
9100 IFS=$as_save_IFS
9101 test -z "$as_dir" && as_dir=.
9102 for ac_exec_ext in '' $ac_executable_extensions; do
9103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9104 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9106 break 2
9108 done
9109 done
9110 IFS=$as_save_IFS
9112 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9114 esac
9116 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9117 if test -n "$PKG_CONFIG"; then
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9119 $as_echo "$PKG_CONFIG" >&6; }
9120 else
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9122 $as_echo "no" >&6; }
9127 if test "$PKG_CONFIG" = "no" ; then
9128 HAVE_XFT=no
9129 else
9130 PKG_CONFIG_MIN_VERSION=0.9.0
9131 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9133 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9135 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9137 $as_echo "yes" >&6; }
9138 succeeded=yes
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9141 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9142 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9144 $as_echo "$XFT_CFLAGS" >&6; }
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9147 $as_echo_n "checking XFT_LIBS... " >&6; }
9148 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9150 $as_echo "$XFT_LIBS" >&6; }
9151 else
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9153 $as_echo "no" >&6; }
9154 XFT_CFLAGS=""
9155 XFT_LIBS=""
9156 ## If we have a custom action on failure, don't print errors, but
9157 ## do set a variable so people can do so.
9158 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9164 else
9165 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9166 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9170 if test $succeeded = yes; then
9172 else
9173 HAVE_XFT=no
9176 ## Because xftfont.c uses XRenderQueryExtension, we also
9177 ## need to link to -lXrender.
9178 HAVE_XRENDER=no
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9180 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9181 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9182 $as_echo_n "(cached) " >&6
9183 else
9184 ac_check_lib_save_LIBS=$LIBS
9185 LIBS="-lXrender $LIBS"
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9189 /* Override any GCC internal prototype to avoid an error.
9190 Use char because int might match the return type of a GCC
9191 builtin and then its argument prototype would still apply. */
9192 #ifdef __cplusplus
9193 extern "C"
9194 #endif
9195 char XRenderQueryExtension ();
9197 main ()
9199 return XRenderQueryExtension ();
9201 return 0;
9203 _ACEOF
9204 if ac_fn_c_try_link "$LINENO"; then :
9205 ac_cv_lib_Xrender_XRenderQueryExtension=yes
9206 else
9207 ac_cv_lib_Xrender_XRenderQueryExtension=no
9209 rm -f core conftest.err conftest.$ac_objext \
9210 conftest$ac_exeext conftest.$ac_ext
9211 LIBS=$ac_check_lib_save_LIBS
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9214 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9215 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
9216 HAVE_XRENDER=yes
9219 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
9220 OLD_CPPFLAGS="$CPPFLAGS"
9221 OLD_CFLAGS="$CFLAGS"
9222 OLD_LIBS="$LIBS"
9223 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
9224 CFLAGS="$CFLAGS $XFT_CFLAGS"
9225 XFT_LIBS="-lXrender $XFT_LIBS"
9226 LIBS="$XFT_LIBS $LIBS"
9227 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9228 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9230 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9231 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9232 $as_echo_n "(cached) " >&6
9233 else
9234 ac_check_lib_save_LIBS=$LIBS
9235 LIBS="-lXft $XFT_LIBS $LIBS"
9236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9239 /* Override any GCC internal prototype to avoid an error.
9240 Use char because int might match the return type of a GCC
9241 builtin and then its argument prototype would still apply. */
9242 #ifdef __cplusplus
9243 extern "C"
9244 #endif
9245 char XftFontOpen ();
9247 main ()
9249 return XftFontOpen ();
9251 return 0;
9253 _ACEOF
9254 if ac_fn_c_try_link "$LINENO"; then :
9255 ac_cv_lib_Xft_XftFontOpen=yes
9256 else
9257 ac_cv_lib_Xft_XftFontOpen=no
9259 rm -f core conftest.err conftest.$ac_objext \
9260 conftest$ac_exeext conftest.$ac_ext
9261 LIBS=$ac_check_lib_save_LIBS
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9264 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9265 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
9266 HAVE_XFT=yes
9273 if test "${HAVE_XFT}" = "yes"; then
9275 $as_echo "#define HAVE_XFT 1" >>confdefs.h
9278 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
9279 else
9280 CPPFLAGS="$OLD_CPPFLAGS"
9281 CFLAGS="$OLD_CFLAGS"
9282 LIBS="$OLD_LIBS"
9283 fi # "${HAVE_XFT}" = "yes"
9284 fi # "$HAVE_XFT" != no
9285 fi # "x${with_xft}" != "xno"
9287 if test "$HAVE_XFT" != "yes"; then
9288 HAVE_XFT=no
9292 HAVE_FREETYPE=no
9293 ## We used to allow building with FreeType and without Xft.
9294 ## However, the ftx font backend driver is not in good shape.
9295 if test "${HAVE_XFT}" = "yes"; then
9296 HAVE_FREETYPE=yes
9297 FONTCONFIG_CFLAGS=
9298 FONTCONFIG_LIBS=
9301 HAVE_LIBOTF=no
9302 if test "${HAVE_FREETYPE}" = "yes"; then
9304 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9306 if test "${with_libotf}" != "no"; then
9308 succeeded=no
9310 # Extract the first word of "pkg-config", so it can be a program name with args.
9311 set dummy pkg-config; ac_word=$2
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9313 $as_echo_n "checking for $ac_word... " >&6; }
9314 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9315 $as_echo_n "(cached) " >&6
9316 else
9317 case $PKG_CONFIG in
9318 [\\/]* | ?:[\\/]*)
9319 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9323 for as_dir in $PATH
9325 IFS=$as_save_IFS
9326 test -z "$as_dir" && as_dir=.
9327 for ac_exec_ext in '' $ac_executable_extensions; do
9328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9329 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9331 break 2
9333 done
9334 done
9335 IFS=$as_save_IFS
9337 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9339 esac
9341 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9342 if test -n "$PKG_CONFIG"; then
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9344 $as_echo "$PKG_CONFIG" >&6; }
9345 else
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9347 $as_echo "no" >&6; }
9352 if test "$PKG_CONFIG" = "no" ; then
9353 HAVE_LIBOTF=no
9354 else
9355 PKG_CONFIG_MIN_VERSION=0.9.0
9356 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
9358 $as_echo_n "checking for libotf... " >&6; }
9360 if $PKG_CONFIG --exists "libotf" 2>&5; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9362 $as_echo "yes" >&6; }
9363 succeeded=yes
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
9366 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9367 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
9369 $as_echo "$LIBOTF_CFLAGS" >&6; }
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
9372 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9373 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
9375 $as_echo "$LIBOTF_LIBS" >&6; }
9376 else
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9378 $as_echo "no" >&6; }
9379 LIBOTF_CFLAGS=""
9380 LIBOTF_LIBS=""
9381 ## If we have a custom action on failure, don't print errors, but
9382 ## do set a variable so people can do so.
9383 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
9389 else
9390 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9391 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9395 if test $succeeded = yes; then
9396 HAVE_LIBOTF=yes
9397 else
9398 HAVE_LIBOTF=no
9401 if test "$HAVE_LIBOTF" = "yes"; then
9403 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
9406 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9407 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
9408 $as_echo_n "(cached) " >&6
9409 else
9410 ac_check_lib_save_LIBS=$LIBS
9411 LIBS="-lotf $LIBS"
9412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413 /* end confdefs.h. */
9415 /* Override any GCC internal prototype to avoid an error.
9416 Use char because int might match the return type of a GCC
9417 builtin and then its argument prototype would still apply. */
9418 #ifdef __cplusplus
9419 extern "C"
9420 #endif
9421 char OTF_get_variation_glyphs ();
9423 main ()
9425 return OTF_get_variation_glyphs ();
9427 return 0;
9429 _ACEOF
9430 if ac_fn_c_try_link "$LINENO"; then :
9431 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
9432 else
9433 ac_cv_lib_otf_OTF_get_variation_glyphs=no
9435 rm -f core conftest.err conftest.$ac_objext \
9436 conftest$ac_exeext conftest.$ac_ext
9437 LIBS=$ac_check_lib_save_LIBS
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9440 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9441 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
9442 HAVE_OTF_GET_VARIATION_GLYPHS=yes
9443 else
9444 HAVE_OTF_GET_VARIATION_GLYPHS=no
9447 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9449 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9456 HAVE_M17N_FLT=no
9457 if test "${HAVE_LIBOTF}" = yes; then
9458 if test "${with_m17n_flt}" != "no"; then
9460 succeeded=no
9462 # Extract the first word of "pkg-config", so it can be a program name with args.
9463 set dummy pkg-config; ac_word=$2
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9465 $as_echo_n "checking for $ac_word... " >&6; }
9466 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9467 $as_echo_n "(cached) " >&6
9468 else
9469 case $PKG_CONFIG in
9470 [\\/]* | ?:[\\/]*)
9471 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9475 for as_dir in $PATH
9477 IFS=$as_save_IFS
9478 test -z "$as_dir" && as_dir=.
9479 for ac_exec_ext in '' $ac_executable_extensions; do
9480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9481 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9483 break 2
9485 done
9486 done
9487 IFS=$as_save_IFS
9489 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9491 esac
9493 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9494 if test -n "$PKG_CONFIG"; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9496 $as_echo "$PKG_CONFIG" >&6; }
9497 else
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499 $as_echo "no" >&6; }
9504 if test "$PKG_CONFIG" = "no" ; then
9505 HAVE_M17N_FLT=no
9506 else
9507 PKG_CONFIG_MIN_VERSION=0.9.0
9508 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
9510 $as_echo_n "checking for m17n-flt... " >&6; }
9512 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9514 $as_echo "yes" >&6; }
9515 succeeded=yes
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
9518 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9519 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
9521 $as_echo "$M17N_FLT_CFLAGS" >&6; }
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
9524 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9525 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
9527 $as_echo "$M17N_FLT_LIBS" >&6; }
9528 else
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9530 $as_echo "no" >&6; }
9531 M17N_FLT_CFLAGS=""
9532 M17N_FLT_LIBS=""
9533 ## If we have a custom action on failure, don't print errors, but
9534 ## do set a variable so people can do so.
9535 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
9541 else
9542 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9543 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9547 if test $succeeded = yes; then
9548 HAVE_M17N_FLT=yes
9549 else
9550 HAVE_M17N_FLT=no
9553 if test "$HAVE_M17N_FLT" = "yes"; then
9555 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
9560 else
9561 HAVE_XFT=no
9562 HAVE_FREETYPE=no
9563 HAVE_LIBOTF=no
9564 HAVE_M17N_FLT=no
9566 ### End of font-backend (under X11) section.
9577 ### Use -lXpm if available, unless `--with-xpm=no'.
9578 HAVE_XPM=no
9579 if test "${HAVE_X11}" = "yes"; then
9580 if test "${with_xpm}" != "no"; then
9581 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
9582 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
9584 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9585 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
9586 $as_echo_n "(cached) " >&6
9587 else
9588 ac_check_lib_save_LIBS=$LIBS
9589 LIBS="-lXpm -lX11 $LIBS"
9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591 /* end confdefs.h. */
9593 /* Override any GCC internal prototype to avoid an error.
9594 Use char because int might match the return type of a GCC
9595 builtin and then its argument prototype would still apply. */
9596 #ifdef __cplusplus
9597 extern "C"
9598 #endif
9599 char XpmReadFileToPixmap ();
9601 main ()
9603 return XpmReadFileToPixmap ();
9605 return 0;
9607 _ACEOF
9608 if ac_fn_c_try_link "$LINENO"; then :
9609 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9610 else
9611 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9613 rm -f core conftest.err conftest.$ac_objext \
9614 conftest$ac_exeext conftest.$ac_ext
9615 LIBS=$ac_check_lib_save_LIBS
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9618 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
9619 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
9620 HAVE_XPM=yes
9626 if test "${HAVE_XPM}" = "yes"; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
9628 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9631 #include "X11/xpm.h"
9632 #ifndef XpmReturnAllocPixels
9633 no_return_alloc_pixels
9634 #endif
9636 _ACEOF
9637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9638 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
9639 HAVE_XPM=no
9640 else
9641 HAVE_XPM=yes
9643 rm -f conftest*
9646 if test "${HAVE_XPM}" = "yes"; then
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9648 $as_echo "yes" >&6; }
9649 else
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9651 $as_echo "no" >&6; }
9656 if test "${HAVE_XPM}" = "yes"; then
9658 $as_echo "#define HAVE_XPM 1" >>confdefs.h
9663 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9664 HAVE_JPEG=no
9665 if test "${HAVE_X11}" = "yes"; then
9666 if test "${with_jpeg}" != "no"; then
9667 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
9668 if test "x$ac_cv_header_jerror_h" = x""yes; then :
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
9670 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
9671 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
9672 $as_echo_n "(cached) " >&6
9673 else
9674 ac_check_lib_save_LIBS=$LIBS
9675 LIBS="-ljpeg $LIBS"
9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9679 /* Override any GCC internal prototype to avoid an error.
9680 Use char because int might match the return type of a GCC
9681 builtin and then its argument prototype would still apply. */
9682 #ifdef __cplusplus
9683 extern "C"
9684 #endif
9685 char jpeg_destroy_compress ();
9687 main ()
9689 return jpeg_destroy_compress ();
9691 return 0;
9693 _ACEOF
9694 if ac_fn_c_try_link "$LINENO"; then :
9695 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9696 else
9697 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9699 rm -f core conftest.err conftest.$ac_objext \
9700 conftest$ac_exeext conftest.$ac_ext
9701 LIBS=$ac_check_lib_save_LIBS
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9704 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
9705 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
9706 HAVE_JPEG=yes
9714 if test "${HAVE_JPEG}" = "yes"; then
9715 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718 /* end confdefs.h. */
9719 #include <jpeglib.h>
9720 version=JPEG_LIB_VERSION
9722 _ACEOF
9723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9724 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
9725 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9727 else
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
9729 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9730 HAVE_JPEG=no
9732 rm -f conftest*
9737 ### Use -lpng if available, unless `--with-png=no'.
9738 HAVE_PNG=no
9739 if test "${HAVE_X11}" = "yes"; then
9740 if test "${with_png}" != "no"; then
9741 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
9742 # in /usr/include/libpng.
9743 for ac_header in png.h libpng/png.h
9744 do :
9745 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9746 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9747 eval as_val=\$$as_ac_Header
9748 if test "x$as_val" = x""yes; then :
9749 cat >>confdefs.h <<_ACEOF
9750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9751 _ACEOF
9755 done
9757 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
9759 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
9760 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
9761 $as_echo_n "(cached) " >&6
9762 else
9763 ac_check_lib_save_LIBS=$LIBS
9764 LIBS="-lpng -lz -lm $LIBS"
9765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766 /* end confdefs.h. */
9768 /* Override any GCC internal prototype to avoid an error.
9769 Use char because int might match the return type of a GCC
9770 builtin and then its argument prototype would still apply. */
9771 #ifdef __cplusplus
9772 extern "C"
9773 #endif
9774 char png_get_channels ();
9776 main ()
9778 return png_get_channels ();
9780 return 0;
9782 _ACEOF
9783 if ac_fn_c_try_link "$LINENO"; then :
9784 ac_cv_lib_png_png_get_channels=yes
9785 else
9786 ac_cv_lib_png_png_get_channels=no
9788 rm -f core conftest.err conftest.$ac_objext \
9789 conftest$ac_exeext conftest.$ac_ext
9790 LIBS=$ac_check_lib_save_LIBS
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
9793 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
9794 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
9795 HAVE_PNG=yes
9801 if test "${HAVE_PNG}" = "yes"; then
9803 $as_echo "#define HAVE_PNG 1" >>confdefs.h
9808 ### Use -ltiff if available, unless `--with-tiff=no'.
9809 HAVE_TIFF=no
9810 if test "${HAVE_X11}" = "yes"; then
9811 if test "${with_tiff}" != "no"; then
9812 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
9813 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
9814 tifflibs="-lz -lm"
9815 # At least one tiff package requires the jpeg library.
9816 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
9818 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
9819 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
9820 $as_echo_n "(cached) " >&6
9821 else
9822 ac_check_lib_save_LIBS=$LIBS
9823 LIBS="-ltiff $tifflibs $LIBS"
9824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9825 /* end confdefs.h. */
9827 /* Override any GCC internal prototype to avoid an error.
9828 Use char because int might match the return type of a GCC
9829 builtin and then its argument prototype would still apply. */
9830 #ifdef __cplusplus
9831 extern "C"
9832 #endif
9833 char TIFFGetVersion ();
9835 main ()
9837 return TIFFGetVersion ();
9839 return 0;
9841 _ACEOF
9842 if ac_fn_c_try_link "$LINENO"; then :
9843 ac_cv_lib_tiff_TIFFGetVersion=yes
9844 else
9845 ac_cv_lib_tiff_TIFFGetVersion=no
9847 rm -f core conftest.err conftest.$ac_objext \
9848 conftest$ac_exeext conftest.$ac_ext
9849 LIBS=$ac_check_lib_save_LIBS
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9852 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
9853 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
9854 HAVE_TIFF=yes
9862 if test "${HAVE_TIFF}" = "yes"; then
9864 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
9869 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
9870 HAVE_GIF=no
9871 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
9872 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
9873 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
9874 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9875 # Earlier versions can crash Emacs.
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
9877 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
9878 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
9879 $as_echo_n "(cached) " >&6
9880 else
9881 ac_check_lib_save_LIBS=$LIBS
9882 LIBS="-lgif $LIBS"
9883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884 /* end confdefs.h. */
9886 /* Override any GCC internal prototype to avoid an error.
9887 Use char because int might match the return type of a GCC
9888 builtin and then its argument prototype would still apply. */
9889 #ifdef __cplusplus
9890 extern "C"
9891 #endif
9892 char EGifPutExtensionLast ();
9894 main ()
9896 return EGifPutExtensionLast ();
9898 return 0;
9900 _ACEOF
9901 if ac_fn_c_try_link "$LINENO"; then :
9902 ac_cv_lib_gif_EGifPutExtensionLast=yes
9903 else
9904 ac_cv_lib_gif_EGifPutExtensionLast=no
9906 rm -f core conftest.err conftest.$ac_objext \
9907 conftest$ac_exeext conftest.$ac_ext
9908 LIBS=$ac_check_lib_save_LIBS
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
9911 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
9912 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
9913 HAVE_GIF=yes
9914 else
9915 try_libungif=yes
9922 if test "$HAVE_GIF" = yes; then
9923 ac_gif_lib_name="-lgif"
9926 # If gif_lib.h but no libgif, try libungif.
9927 if test x"$try_libungif" = xyes; then
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
9929 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
9930 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
9931 $as_echo_n "(cached) " >&6
9932 else
9933 ac_check_lib_save_LIBS=$LIBS
9934 LIBS="-lungif $LIBS"
9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h. */
9938 /* Override any GCC internal prototype to avoid an error.
9939 Use char because int might match the return type of a GCC
9940 builtin and then its argument prototype would still apply. */
9941 #ifdef __cplusplus
9942 extern "C"
9943 #endif
9944 char EGifPutExtensionLast ();
9946 main ()
9948 return EGifPutExtensionLast ();
9950 return 0;
9952 _ACEOF
9953 if ac_fn_c_try_link "$LINENO"; then :
9954 ac_cv_lib_ungif_EGifPutExtensionLast=yes
9955 else
9956 ac_cv_lib_ungif_EGifPutExtensionLast=no
9958 rm -f core conftest.err conftest.$ac_objext \
9959 conftest$ac_exeext conftest.$ac_ext
9960 LIBS=$ac_check_lib_save_LIBS
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9963 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
9964 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
9965 HAVE_GIF=yes
9969 if test "$HAVE_GIF" = yes; then
9971 $as_echo "#define LIBGIF -lungif" >>confdefs.h
9973 ac_gif_lib_name="-lungif"
9977 if test "${HAVE_GIF}" = "yes"; then
9979 $as_echo "#define HAVE_GIF 1" >>confdefs.h
9984 if test "${HAVE_X11}" = "yes"; then
9985 MISSING=""
9986 WITH_NO=""
9987 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
9988 MISSING="libXpm" && WITH_NO="--with-xpm=no"
9989 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
9990 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
9991 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
9992 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
9993 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
9994 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
9995 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
9996 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
9998 if test "X${MISSING}" != X; then
9999 as_fn_error "The following required libraries were not found:
10000 $MISSING
10001 Maybe some development libraries/packages are missing?
10002 If you don't want to link with them give
10003 $WITH_NO
10004 as options to configure" "$LINENO" 5
10008 ### Use -lgpm if available, unless `--with-gpm=no'.
10009 HAVE_GPM=no
10010 if test "${with_gpm}" != "no"; then
10011 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10012 if test "x$ac_cv_header_gpm_h" = x""yes; then :
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10014 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10015 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10016 $as_echo_n "(cached) " >&6
10017 else
10018 ac_check_lib_save_LIBS=$LIBS
10019 LIBS="-lgpm $LIBS"
10020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021 /* end confdefs.h. */
10023 /* Override any GCC internal prototype to avoid an error.
10024 Use char because int might match the return type of a GCC
10025 builtin and then its argument prototype would still apply. */
10026 #ifdef __cplusplus
10027 extern "C"
10028 #endif
10029 char Gpm_Open ();
10031 main ()
10033 return Gpm_Open ();
10035 return 0;
10037 _ACEOF
10038 if ac_fn_c_try_link "$LINENO"; then :
10039 ac_cv_lib_gpm_Gpm_Open=yes
10040 else
10041 ac_cv_lib_gpm_Gpm_Open=no
10043 rm -f core conftest.err conftest.$ac_objext \
10044 conftest$ac_exeext conftest.$ac_ext
10045 LIBS=$ac_check_lib_save_LIBS
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10048 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10049 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
10050 HAVE_GPM=yes
10058 if test "${HAVE_GPM}" = "yes"; then
10060 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10064 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10065 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
10067 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10073 ### Use NeXTstep API to implement GUI.
10074 if test "${HAVE_NS}" = "yes"; then
10076 $as_echo "#define HAVE_NS 1" >>confdefs.h
10078 if test "${NS_IMPL_COCOA}" = "yes"; then
10080 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10082 GNU_OBJC_CFLAGS=
10084 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10086 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10088 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10090 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10092 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10095 # We also have mouse menus.
10096 HAVE_MENUS=yes
10097 OTHER_FILES=ns-app
10101 ### Use session management (-lSM -lICE) if available
10102 HAVE_X_SM=no
10103 if test "${HAVE_X11}" = "yes"; then
10104 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10105 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10107 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10108 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10109 $as_echo_n "(cached) " >&6
10110 else
10111 ac_check_lib_save_LIBS=$LIBS
10112 LIBS="-lSM -lICE $LIBS"
10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114 /* end confdefs.h. */
10116 /* Override any GCC internal prototype to avoid an error.
10117 Use char because int might match the return type of a GCC
10118 builtin and then its argument prototype would still apply. */
10119 #ifdef __cplusplus
10120 extern "C"
10121 #endif
10122 char SmcOpenConnection ();
10124 main ()
10126 return SmcOpenConnection ();
10128 return 0;
10130 _ACEOF
10131 if ac_fn_c_try_link "$LINENO"; then :
10132 ac_cv_lib_SM_SmcOpenConnection=yes
10133 else
10134 ac_cv_lib_SM_SmcOpenConnection=no
10136 rm -f core conftest.err conftest.$ac_objext \
10137 conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10141 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10142 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
10143 HAVE_X_SM=yes
10150 if test "${HAVE_X_SM}" = "yes"; then
10152 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10154 case "$LIBS" in
10155 *-lSM*) ;;
10156 *) LIBS="-lSM -lICE $LIBS" ;;
10157 esac
10161 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10163 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10164 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10165 $as_echo_n "(cached) " >&6
10166 else
10167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168 /* end confdefs.h. */
10169 #include <netdb.h>
10171 main ()
10173 return h_errno;
10175 return 0;
10177 _ACEOF
10178 if ac_fn_c_try_link "$LINENO"; then :
10179 emacs_cv_netdb_declares_h_errno=yes
10180 else
10181 emacs_cv_netdb_declares_h_errno=no
10183 rm -f core conftest.err conftest.$ac_objext \
10184 conftest$ac_exeext conftest.$ac_ext
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10187 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10188 if test $emacs_cv_netdb_declares_h_errno = yes; then
10190 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10194 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10195 # for constant arguments. Useless!
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10197 $as_echo_n "checking for working alloca.h... " >&6; }
10198 if test "${ac_cv_working_alloca_h+set}" = set; then :
10199 $as_echo_n "(cached) " >&6
10200 else
10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10203 #include <alloca.h>
10205 main ()
10207 char *p = (char *) alloca (2 * sizeof (int));
10208 if (p) return 0;
10210 return 0;
10212 _ACEOF
10213 if ac_fn_c_try_link "$LINENO"; then :
10214 ac_cv_working_alloca_h=yes
10215 else
10216 ac_cv_working_alloca_h=no
10218 rm -f core conftest.err conftest.$ac_objext \
10219 conftest$ac_exeext conftest.$ac_ext
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10222 $as_echo "$ac_cv_working_alloca_h" >&6; }
10223 if test $ac_cv_working_alloca_h = yes; then
10225 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10230 $as_echo_n "checking for alloca... " >&6; }
10231 if test "${ac_cv_func_alloca_works+set}" = set; then :
10232 $as_echo_n "(cached) " >&6
10233 else
10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h. */
10236 #ifdef __GNUC__
10237 # define alloca __builtin_alloca
10238 #else
10239 # ifdef _MSC_VER
10240 # include <malloc.h>
10241 # define alloca _alloca
10242 # else
10243 # ifdef HAVE_ALLOCA_H
10244 # include <alloca.h>
10245 # else
10246 # ifdef _AIX
10247 #pragma alloca
10248 # else
10249 # ifndef alloca /* predefined by HP cc +Olibcalls */
10250 char *alloca ();
10251 # endif
10252 # endif
10253 # endif
10254 # endif
10255 #endif
10258 main ()
10260 char *p = (char *) alloca (1);
10261 if (p) return 0;
10263 return 0;
10265 _ACEOF
10266 if ac_fn_c_try_link "$LINENO"; then :
10267 ac_cv_func_alloca_works=yes
10268 else
10269 ac_cv_func_alloca_works=no
10271 rm -f core conftest.err conftest.$ac_objext \
10272 conftest$ac_exeext conftest.$ac_ext
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10275 $as_echo "$ac_cv_func_alloca_works" >&6; }
10277 if test $ac_cv_func_alloca_works = yes; then
10279 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10281 else
10282 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10283 # that cause trouble. Some versions do not even contain alloca or
10284 # contain a buggy version. If you still want to use their alloca,
10285 # use ar to extract alloca.o from them instead of compiling alloca.c.
10287 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10289 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10293 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10294 if test "${ac_cv_os_cray+set}" = set; then :
10295 $as_echo_n "(cached) " >&6
10296 else
10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10299 #if defined CRAY && ! defined CRAY2
10300 webecray
10301 #else
10302 wenotbecray
10303 #endif
10305 _ACEOF
10306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10307 $EGREP "webecray" >/dev/null 2>&1; then :
10308 ac_cv_os_cray=yes
10309 else
10310 ac_cv_os_cray=no
10312 rm -f conftest*
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10316 $as_echo "$ac_cv_os_cray" >&6; }
10317 if test $ac_cv_os_cray = yes; then
10318 for ac_func in _getb67 GETB67 getb67; do
10319 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10320 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10321 eval as_val=\$$as_ac_var
10322 if test "x$as_val" = x""yes; then :
10324 cat >>confdefs.h <<_ACEOF
10325 #define CRAY_STACKSEG_END $ac_func
10326 _ACEOF
10328 break
10331 done
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10335 $as_echo_n "checking stack direction for C alloca... " >&6; }
10336 if test "${ac_cv_c_stack_direction+set}" = set; then :
10337 $as_echo_n "(cached) " >&6
10338 else
10339 if test "$cross_compiling" = yes; then :
10340 ac_cv_c_stack_direction=0
10341 else
10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h. */
10344 $ac_includes_default
10346 find_stack_direction ()
10348 static char *addr = 0;
10349 auto char dummy;
10350 if (addr == 0)
10352 addr = &dummy;
10353 return find_stack_direction ();
10355 else
10356 return (&dummy > addr) ? 1 : -1;
10360 main ()
10362 return find_stack_direction () < 0;
10364 _ACEOF
10365 if ac_fn_c_try_run "$LINENO"; then :
10366 ac_cv_c_stack_direction=1
10367 else
10368 ac_cv_c_stack_direction=-1
10370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10371 conftest.$ac_objext conftest.beam conftest.$ac_ext
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10376 $as_echo "$ac_cv_c_stack_direction" >&6; }
10377 cat >>confdefs.h <<_ACEOF
10378 #define STACK_DIRECTION $ac_cv_c_stack_direction
10379 _ACEOF
10385 if test x"$ac_cv_func_alloca_works" != xyes; then
10386 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
10389 # fmod, logb, and frexp are found in -lm on most systems.
10390 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
10392 $as_echo_n "checking for sqrt in -lm... " >&6; }
10393 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
10394 $as_echo_n "(cached) " >&6
10395 else
10396 ac_check_lib_save_LIBS=$LIBS
10397 LIBS="-lm $LIBS"
10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h. */
10401 /* Override any GCC internal prototype to avoid an error.
10402 Use char because int might match the return type of a GCC
10403 builtin and then its argument prototype would still apply. */
10404 #ifdef __cplusplus
10405 extern "C"
10406 #endif
10407 char sqrt ();
10409 main ()
10411 return sqrt ();
10413 return 0;
10415 _ACEOF
10416 if ac_fn_c_try_link "$LINENO"; then :
10417 ac_cv_lib_m_sqrt=yes
10418 else
10419 ac_cv_lib_m_sqrt=no
10421 rm -f core conftest.err conftest.$ac_objext \
10422 conftest$ac_exeext conftest.$ac_ext
10423 LIBS=$ac_check_lib_save_LIBS
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
10426 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
10427 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
10428 cat >>confdefs.h <<_ACEOF
10429 #define HAVE_LIBM 1
10430 _ACEOF
10432 LIBS="-lm $LIBS"
10437 # Check for mail-locking functions in a "mail" library. Probably this should
10438 # have the same check as for liblockfile below.
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
10440 $as_echo_n "checking for maillock in -lmail... " >&6; }
10441 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
10442 $as_echo_n "(cached) " >&6
10443 else
10444 ac_check_lib_save_LIBS=$LIBS
10445 LIBS="-lmail $LIBS"
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10449 /* Override any GCC internal prototype to avoid an error.
10450 Use char because int might match the return type of a GCC
10451 builtin and then its argument prototype would still apply. */
10452 #ifdef __cplusplus
10453 extern "C"
10454 #endif
10455 char maillock ();
10457 main ()
10459 return maillock ();
10461 return 0;
10463 _ACEOF
10464 if ac_fn_c_try_link "$LINENO"; then :
10465 ac_cv_lib_mail_maillock=yes
10466 else
10467 ac_cv_lib_mail_maillock=no
10469 rm -f core conftest.err conftest.$ac_objext \
10470 conftest$ac_exeext conftest.$ac_ext
10471 LIBS=$ac_check_lib_save_LIBS
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
10474 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
10475 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
10476 cat >>confdefs.h <<_ACEOF
10477 #define HAVE_LIBMAIL 1
10478 _ACEOF
10480 LIBS="-lmail $LIBS"
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
10485 $as_echo_n "checking for maillock in -llockfile... " >&6; }
10486 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
10487 $as_echo_n "(cached) " >&6
10488 else
10489 ac_check_lib_save_LIBS=$LIBS
10490 LIBS="-llockfile $LIBS"
10491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10492 /* end confdefs.h. */
10494 /* Override any GCC internal prototype to avoid an error.
10495 Use char because int might match the return type of a GCC
10496 builtin and then its argument prototype would still apply. */
10497 #ifdef __cplusplus
10498 extern "C"
10499 #endif
10500 char maillock ();
10502 main ()
10504 return maillock ();
10506 return 0;
10508 _ACEOF
10509 if ac_fn_c_try_link "$LINENO"; then :
10510 ac_cv_lib_lockfile_maillock=yes
10511 else
10512 ac_cv_lib_lockfile_maillock=no
10514 rm -f core conftest.err conftest.$ac_objext \
10515 conftest$ac_exeext conftest.$ac_ext
10516 LIBS=$ac_check_lib_save_LIBS
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
10519 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
10520 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
10521 cat >>confdefs.h <<_ACEOF
10522 #define HAVE_LIBLOCKFILE 1
10523 _ACEOF
10525 LIBS="-llockfile $LIBS"
10529 # If we have the shared liblockfile, assume we must use it for mail
10530 # locking (e.g. Debian). If we couldn't link against liblockfile
10531 # (no liblockfile.a installed), ensure that we don't need to.
10532 if test "$ac_cv_lib_lockfile_maillock" = no; then
10533 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10534 set dummy liblockfile.so; ac_word=$2
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10536 $as_echo_n "checking for $ac_word... " >&6; }
10537 if test "${ac_cv_prog_liblockfile+set}" = set; then :
10538 $as_echo_n "(cached) " >&6
10539 else
10540 if test -n "$liblockfile"; then
10541 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10542 else
10543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10545 for as_dir in $as_dummy
10547 IFS=$as_save_IFS
10548 test -z "$as_dir" && as_dir=.
10549 for ac_exec_ext in '' $ac_executable_extensions; do
10550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10551 ac_cv_prog_liblockfile="yes"
10552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10553 break 2
10555 done
10556 done
10557 IFS=$as_save_IFS
10559 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10562 liblockfile=$ac_cv_prog_liblockfile
10563 if test -n "$liblockfile"; then
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
10565 $as_echo "$liblockfile" >&6; }
10566 else
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10568 $as_echo "no" >&6; }
10572 if test $ac_cv_prog_liblockfile = yes; then
10573 as_fn_error "Shared liblockfile found but can't link against it.
10574 This probably means that movemail could lose mail.
10575 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
10576 else :
10579 for ac_func in touchlock
10580 do :
10581 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
10582 if test "x$ac_cv_func_touchlock" = x""yes; then :
10583 cat >>confdefs.h <<_ACEOF
10584 #define HAVE_TOUCHLOCK 1
10585 _ACEOF
10588 done
10590 for ac_header in maillock.h
10591 do :
10592 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
10593 if test "x$ac_cv_header_maillock_h" = x""yes; then :
10594 cat >>confdefs.h <<_ACEOF
10595 #define HAVE_MAILLOCK_H 1
10596 _ACEOF
10600 done
10603 for ac_func in gethostname getdomainname dup2 \
10604 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
10605 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
10606 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
10607 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
10608 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10609 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10610 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
10611 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
10612 cfmakeraw cfsetspeed
10613 do :
10614 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10615 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10616 eval as_val=\$$as_ac_var
10617 if test "x$as_val" = x""yes; then :
10618 cat >>confdefs.h <<_ACEOF
10619 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10620 _ACEOF
10623 done
10626 for ac_header in sys/un.h
10627 do :
10628 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
10629 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
10630 cat >>confdefs.h <<_ACEOF
10631 #define HAVE_SYS_UN_H 1
10632 _ACEOF
10636 done
10642 for ac_header in $ac_header_list
10643 do :
10644 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10645 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10647 eval as_val=\$$as_ac_Header
10648 if test "x$as_val" = x""yes; then :
10649 cat >>confdefs.h <<_ACEOF
10650 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10651 _ACEOF
10655 done
10664 for ac_func in $ac_func_list
10665 do :
10666 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10667 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10668 eval as_val=\$$as_ac_var
10669 if test "x$as_val" = x""yes; then :
10670 cat >>confdefs.h <<_ACEOF
10671 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10672 _ACEOF
10675 done
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
10682 $as_echo_n "checking for working mktime... " >&6; }
10683 if test "${ac_cv_func_working_mktime+set}" = set; then :
10684 $as_echo_n "(cached) " >&6
10685 else
10686 if test "$cross_compiling" = yes; then :
10687 ac_cv_func_working_mktime=no
10688 else
10689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690 /* end confdefs.h. */
10691 /* Test program from Paul Eggert and Tony Leneis. */
10692 #ifdef TIME_WITH_SYS_TIME
10693 # include <sys/time.h>
10694 # include <time.h>
10695 #else
10696 # ifdef HAVE_SYS_TIME_H
10697 # include <sys/time.h>
10698 # else
10699 # include <time.h>
10700 # endif
10701 #endif
10703 #include <limits.h>
10704 #include <stdlib.h>
10706 #ifdef HAVE_UNISTD_H
10707 # include <unistd.h>
10708 #endif
10710 #ifndef HAVE_ALARM
10711 # define alarm(X) /* empty */
10712 #endif
10714 /* Work around redefinition to rpl_putenv by other config tests. */
10715 #undef putenv
10717 static time_t time_t_max;
10718 static time_t time_t_min;
10720 /* Values we'll use to set the TZ environment variable. */
10721 static char *tz_strings[] = {
10722 (char *) 0, "TZ=GMT0", "TZ=JST-9",
10723 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10725 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10727 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
10728 Based on a problem report from Andreas Jaeger. */
10729 static int
10730 spring_forward_gap ()
10732 /* glibc (up to about 1998-10-07) failed this test. */
10733 struct tm tm;
10735 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10736 instead of "TZ=America/Vancouver" in order to detect the bug even
10737 on systems that don't support the Olson extension, or don't have the
10738 full zoneinfo tables installed. */
10739 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10741 tm.tm_year = 98;
10742 tm.tm_mon = 3;
10743 tm.tm_mday = 5;
10744 tm.tm_hour = 2;
10745 tm.tm_min = 0;
10746 tm.tm_sec = 0;
10747 tm.tm_isdst = -1;
10748 return mktime (&tm) != (time_t) -1;
10751 static int
10752 mktime_test1 (now)
10753 time_t now;
10755 struct tm *lt;
10756 return ! (lt = localtime (&now)) || mktime (lt) == now;
10759 static int
10760 mktime_test (now)
10761 time_t now;
10763 return (mktime_test1 (now)
10764 && mktime_test1 ((time_t) (time_t_max - now))
10765 && mktime_test1 ((time_t) (time_t_min + now)));
10768 static int
10769 irix_6_4_bug ()
10771 /* Based on code from Ariel Faigon. */
10772 struct tm tm;
10773 tm.tm_year = 96;
10774 tm.tm_mon = 3;
10775 tm.tm_mday = 0;
10776 tm.tm_hour = 0;
10777 tm.tm_min = 0;
10778 tm.tm_sec = 0;
10779 tm.tm_isdst = -1;
10780 mktime (&tm);
10781 return tm.tm_mon == 2 && tm.tm_mday == 31;
10784 static int
10785 bigtime_test (j)
10786 int j;
10788 struct tm tm;
10789 time_t now;
10790 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10791 now = mktime (&tm);
10792 if (now != (time_t) -1)
10794 struct tm *lt = localtime (&now);
10795 if (! (lt
10796 && lt->tm_year == tm.tm_year
10797 && lt->tm_mon == tm.tm_mon
10798 && lt->tm_mday == tm.tm_mday
10799 && lt->tm_hour == tm.tm_hour
10800 && lt->tm_min == tm.tm_min
10801 && lt->tm_sec == tm.tm_sec
10802 && lt->tm_yday == tm.tm_yday
10803 && lt->tm_wday == tm.tm_wday
10804 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10805 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10806 return 0;
10808 return 1;
10811 static int
10812 year_2050_test ()
10814 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
10815 ignoring leap seconds. */
10816 unsigned long int answer = 2527315200UL;
10818 struct tm tm;
10819 time_t t;
10820 tm.tm_year = 2050 - 1900;
10821 tm.tm_mon = 2 - 1;
10822 tm.tm_mday = 1;
10823 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
10824 tm.tm_isdst = -1;
10826 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10827 instead of "TZ=America/Vancouver" in order to detect the bug even
10828 on systems that don't support the Olson extension, or don't have the
10829 full zoneinfo tables installed. */
10830 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10832 t = mktime (&tm);
10834 /* Check that the result is either a failure, or close enough
10835 to the correct answer that we can assume the discrepancy is
10836 due to leap seconds. */
10837 return (t == (time_t) -1
10838 || (0 < t && answer - 120 <= t && t <= answer + 120));
10842 main ()
10844 time_t t, delta;
10845 int i, j;
10847 /* This test makes some buggy mktime implementations loop.
10848 Give up after 60 seconds; a mktime slower than that
10849 isn't worth using anyway. */
10850 alarm (60);
10852 for (;;)
10854 t = (time_t_max << 1) + 1;
10855 if (t <= time_t_max)
10856 break;
10857 time_t_max = t;
10859 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
10861 delta = time_t_max / 997; /* a suitable prime number */
10862 for (i = 0; i < N_STRINGS; i++)
10864 if (tz_strings[i])
10865 putenv (tz_strings[i]);
10867 for (t = 0; t <= time_t_max - delta; t += delta)
10868 if (! mktime_test (t))
10869 return 1;
10870 if (! (mktime_test ((time_t) 1)
10871 && mktime_test ((time_t) (60 * 60))
10872 && mktime_test ((time_t) (60 * 60 * 24))))
10873 return 1;
10875 for (j = 1; ; j <<= 1)
10876 if (! bigtime_test (j))
10877 return 1;
10878 else if (INT_MAX / 2 < j)
10879 break;
10880 if (! bigtime_test (INT_MAX))
10881 return 1;
10883 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
10885 _ACEOF
10886 if ac_fn_c_try_run "$LINENO"; then :
10887 ac_cv_func_working_mktime=yes
10888 else
10889 ac_cv_func_working_mktime=no
10891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10892 conftest.$ac_objext conftest.beam conftest.$ac_ext
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
10897 $as_echo "$ac_cv_func_working_mktime" >&6; }
10898 if test $ac_cv_func_working_mktime = no; then
10899 case " $LIBOBJS " in
10900 *" mktime.$ac_objext "* ) ;;
10901 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
10903 esac
10907 if test "$ac_cv_func_working_mktime" = no; then
10909 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
10913 ac_have_func=no # yes means we've found a way to get the load average.
10915 # Make sure getloadavg.c is where it belongs, at configure-time.
10916 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
10917 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
10919 ac_save_LIBS=$LIBS
10921 # Check for getloadavg, but be sure not to touch the cache variable.
10922 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
10923 if test "x$ac_cv_func_getloadavg" = x""yes; then :
10924 exit 0
10925 else
10926 exit 1
10928 ) && ac_have_func=yes
10930 # On HPUX9, an unprivileged user can get load averages through this function.
10931 for ac_func in pstat_getdynamic
10932 do :
10933 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
10934 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
10935 cat >>confdefs.h <<_ACEOF
10936 #define HAVE_PSTAT_GETDYNAMIC 1
10937 _ACEOF
10940 done
10943 # Solaris has libkstat which does not require root.
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
10945 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
10946 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
10947 $as_echo_n "(cached) " >&6
10948 else
10949 ac_check_lib_save_LIBS=$LIBS
10950 LIBS="-lkstat $LIBS"
10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10954 /* Override any GCC internal prototype to avoid an error.
10955 Use char because int might match the return type of a GCC
10956 builtin and then its argument prototype would still apply. */
10957 #ifdef __cplusplus
10958 extern "C"
10959 #endif
10960 char kstat_open ();
10962 main ()
10964 return kstat_open ();
10966 return 0;
10968 _ACEOF
10969 if ac_fn_c_try_link "$LINENO"; then :
10970 ac_cv_lib_kstat_kstat_open=yes
10971 else
10972 ac_cv_lib_kstat_kstat_open=no
10974 rm -f core conftest.err conftest.$ac_objext \
10975 conftest$ac_exeext conftest.$ac_ext
10976 LIBS=$ac_check_lib_save_LIBS
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
10979 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
10980 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
10981 cat >>confdefs.h <<_ACEOF
10982 #define HAVE_LIBKSTAT 1
10983 _ACEOF
10985 LIBS="-lkstat $LIBS"
10989 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
10991 # Some systems with -lutil have (and need) -lkvm as well, some do not.
10992 # On Solaris, -lkvm requires nlist from -lelf, so check that first
10993 # to get the right answer into the cache.
10994 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
10995 if test $ac_have_func = no; then
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
10997 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
10998 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
10999 $as_echo_n "(cached) " >&6
11000 else
11001 ac_check_lib_save_LIBS=$LIBS
11002 LIBS="-lelf $LIBS"
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11006 /* Override any GCC internal prototype to avoid an error.
11007 Use char because int might match the return type of a GCC
11008 builtin and then its argument prototype would still apply. */
11009 #ifdef __cplusplus
11010 extern "C"
11011 #endif
11012 char elf_begin ();
11014 main ()
11016 return elf_begin ();
11018 return 0;
11020 _ACEOF
11021 if ac_fn_c_try_link "$LINENO"; then :
11022 ac_cv_lib_elf_elf_begin=yes
11023 else
11024 ac_cv_lib_elf_elf_begin=no
11026 rm -f core conftest.err conftest.$ac_objext \
11027 conftest$ac_exeext conftest.$ac_ext
11028 LIBS=$ac_check_lib_save_LIBS
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11031 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11032 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
11033 LIBS="-lelf $LIBS"
11037 if test $ac_have_func = no; then
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11039 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11040 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11041 $as_echo_n "(cached) " >&6
11042 else
11043 ac_check_lib_save_LIBS=$LIBS
11044 LIBS="-lkvm $LIBS"
11045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11046 /* end confdefs.h. */
11048 /* Override any GCC internal prototype to avoid an error.
11049 Use char because int might match the return type of a GCC
11050 builtin and then its argument prototype would still apply. */
11051 #ifdef __cplusplus
11052 extern "C"
11053 #endif
11054 char kvm_open ();
11056 main ()
11058 return kvm_open ();
11060 return 0;
11062 _ACEOF
11063 if ac_fn_c_try_link "$LINENO"; then :
11064 ac_cv_lib_kvm_kvm_open=yes
11065 else
11066 ac_cv_lib_kvm_kvm_open=no
11068 rm -f core conftest.err conftest.$ac_objext \
11069 conftest$ac_exeext conftest.$ac_ext
11070 LIBS=$ac_check_lib_save_LIBS
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11073 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11074 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
11075 LIBS="-lkvm $LIBS"
11078 # Check for the 4.4BSD definition of getloadavg.
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11080 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11081 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11082 $as_echo_n "(cached) " >&6
11083 else
11084 ac_check_lib_save_LIBS=$LIBS
11085 LIBS="-lutil $LIBS"
11086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11087 /* end confdefs.h. */
11089 /* Override any GCC internal prototype to avoid an error.
11090 Use char because int might match the return type of a GCC
11091 builtin and then its argument prototype would still apply. */
11092 #ifdef __cplusplus
11093 extern "C"
11094 #endif
11095 char getloadavg ();
11097 main ()
11099 return getloadavg ();
11101 return 0;
11103 _ACEOF
11104 if ac_fn_c_try_link "$LINENO"; then :
11105 ac_cv_lib_util_getloadavg=yes
11106 else
11107 ac_cv_lib_util_getloadavg=no
11109 rm -f core conftest.err conftest.$ac_objext \
11110 conftest$ac_exeext conftest.$ac_ext
11111 LIBS=$ac_check_lib_save_LIBS
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11114 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11115 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
11116 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11121 if test $ac_have_func = no; then
11122 # There is a commonly available library for RS/6000 AIX.
11123 # Since it is not a standard part of AIX, it might be installed locally.
11124 ac_getloadavg_LIBS=$LIBS
11125 LIBS="-L/usr/local/lib $LIBS"
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11127 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11128 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11129 $as_echo_n "(cached) " >&6
11130 else
11131 ac_check_lib_save_LIBS=$LIBS
11132 LIBS="-lgetloadavg $LIBS"
11133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11134 /* end confdefs.h. */
11136 /* Override any GCC internal prototype to avoid an error.
11137 Use char because int might match the return type of a GCC
11138 builtin and then its argument prototype would still apply. */
11139 #ifdef __cplusplus
11140 extern "C"
11141 #endif
11142 char getloadavg ();
11144 main ()
11146 return getloadavg ();
11148 return 0;
11150 _ACEOF
11151 if ac_fn_c_try_link "$LINENO"; then :
11152 ac_cv_lib_getloadavg_getloadavg=yes
11153 else
11154 ac_cv_lib_getloadavg_getloadavg=no
11156 rm -f core conftest.err conftest.$ac_objext \
11157 conftest$ac_exeext conftest.$ac_ext
11158 LIBS=$ac_check_lib_save_LIBS
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11161 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11162 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
11163 LIBS="-lgetloadavg $LIBS"
11164 else
11165 LIBS=$ac_getloadavg_LIBS
11170 # Make sure it is really in the library, if we think we found it,
11171 # otherwise set up the replacement function.
11172 for ac_func in getloadavg
11173 do :
11174 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11175 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11176 cat >>confdefs.h <<_ACEOF
11177 #define HAVE_GETLOADAVG 1
11178 _ACEOF
11180 else
11181 case " $LIBOBJS " in
11182 *" getloadavg.$ac_objext "* ) ;;
11183 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11185 esac
11188 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
11190 # Figure out what our getloadavg.c needs.
11191 ac_have_func=no
11192 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11193 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
11194 ac_have_func=yes
11196 $as_echo "#define DGUX 1" >>confdefs.h
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11199 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11200 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
11201 $as_echo_n "(cached) " >&6
11202 else
11203 ac_check_lib_save_LIBS=$LIBS
11204 LIBS="-ldgc $LIBS"
11205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11206 /* end confdefs.h. */
11208 /* Override any GCC internal prototype to avoid an error.
11209 Use char because int might match the return type of a GCC
11210 builtin and then its argument prototype would still apply. */
11211 #ifdef __cplusplus
11212 extern "C"
11213 #endif
11214 char dg_sys_info ();
11216 main ()
11218 return dg_sys_info ();
11220 return 0;
11222 _ACEOF
11223 if ac_fn_c_try_link "$LINENO"; then :
11224 ac_cv_lib_dgc_dg_sys_info=yes
11225 else
11226 ac_cv_lib_dgc_dg_sys_info=no
11228 rm -f core conftest.err conftest.$ac_objext \
11229 conftest$ac_exeext conftest.$ac_ext
11230 LIBS=$ac_check_lib_save_LIBS
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11233 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11234 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
11235 cat >>confdefs.h <<_ACEOF
11236 #define HAVE_LIBDGC 1
11237 _ACEOF
11239 LIBS="-ldgc $LIBS"
11247 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11248 if test "x$ac_cv_header_locale_h" = x""yes; then :
11253 for ac_func in setlocale
11254 do :
11255 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
11256 if test "x$ac_cv_func_setlocale" = x""yes; then :
11257 cat >>confdefs.h <<_ACEOF
11258 #define HAVE_SETLOCALE 1
11259 _ACEOF
11262 done
11265 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11266 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11267 # Irix 4.0.5F has the header but not the library.
11268 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11269 ac_have_func=yes
11271 $as_echo "#define SVR4 1" >>confdefs.h
11275 if test $ac_have_func = no; then
11276 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11277 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
11278 ac_have_func=yes
11280 $as_echo "#define UMAX 1" >>confdefs.h
11283 $as_echo "#define UMAX4_3 1" >>confdefs.h
11290 if test $ac_have_func = no; then
11291 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11292 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
11293 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
11300 if test $ac_have_func = no; then
11301 for ac_header in mach/mach.h
11302 do :
11303 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11304 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
11305 cat >>confdefs.h <<_ACEOF
11306 #define HAVE_MACH_MACH_H 1
11307 _ACEOF
11311 done
11315 for ac_header in nlist.h
11316 do :
11317 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11318 if test "x$ac_cv_header_nlist_h" = x""yes; then :
11319 cat >>confdefs.h <<_ACEOF
11320 #define HAVE_NLIST_H 1
11321 _ACEOF
11322 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11324 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
11326 cat >>confdefs.h <<_ACEOF
11327 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11328 _ACEOF
11331 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11338 done
11341 done
11344 # Some definitions of getloadavg require that the program be installed setgid.
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
11346 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11347 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
11348 $as_echo_n "(cached) " >&6
11349 else
11350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11351 /* end confdefs.h. */
11352 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11353 #ifdef LDAV_PRIVILEGED
11354 Yowza Am I SETGID yet
11355 #endif
11356 _ACEOF
11357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11358 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
11359 ac_cv_func_getloadavg_setgid=yes
11360 else
11361 ac_cv_func_getloadavg_setgid=no
11363 rm -f conftest*
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
11367 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11368 if test $ac_cv_func_getloadavg_setgid = yes; then
11369 NEED_SETGID=true
11371 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11373 else
11374 NEED_SETGID=false
11377 if test $ac_cv_func_getloadavg_setgid = yes; then
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
11379 $as_echo_n "checking group of /dev/kmem... " >&6; }
11380 if test "${ac_cv_group_kmem+set}" = set; then :
11381 $as_echo_n "(cached) " >&6
11382 else
11383 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11384 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
11385 # If we got an error (system does not support symlinks), try without -L.
11386 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
11387 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
11388 | sed -ne 's/[ ][ ]*/ /g;
11389 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11390 / /s/.* //;p;'`
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
11394 $as_echo "$ac_cv_group_kmem" >&6; }
11395 KMEM_GROUP=$ac_cv_group_kmem
11397 if test "x$ac_save_LIBS" = x; then
11398 GETLOADAVG_LIBS=$LIBS
11399 else
11400 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
11402 LIBS=$ac_save_LIBS
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11407 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11408 if test "${ac_cv_sys_largefile_source+set}" = set; then :
11409 $as_echo_n "(cached) " >&6
11410 else
11411 while :; do
11412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11413 /* end confdefs.h. */
11414 #include <sys/types.h> /* for off_t */
11415 #include <stdio.h>
11417 main ()
11419 int (*fp) (FILE *, off_t, int) = fseeko;
11420 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11422 return 0;
11424 _ACEOF
11425 if ac_fn_c_try_link "$LINENO"; then :
11426 ac_cv_sys_largefile_source=no; break
11428 rm -f core conftest.err conftest.$ac_objext \
11429 conftest$ac_exeext conftest.$ac_ext
11430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11431 /* end confdefs.h. */
11432 #define _LARGEFILE_SOURCE 1
11433 #include <sys/types.h> /* for off_t */
11434 #include <stdio.h>
11436 main ()
11438 int (*fp) (FILE *, off_t, int) = fseeko;
11439 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11441 return 0;
11443 _ACEOF
11444 if ac_fn_c_try_link "$LINENO"; then :
11445 ac_cv_sys_largefile_source=1; break
11447 rm -f core conftest.err conftest.$ac_objext \
11448 conftest$ac_exeext conftest.$ac_ext
11449 ac_cv_sys_largefile_source=unknown
11450 break
11451 done
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11454 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11455 case $ac_cv_sys_largefile_source in #(
11456 no | unknown) ;;
11458 cat >>confdefs.h <<_ACEOF
11459 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11460 _ACEOF
11462 esac
11463 rm -rf conftest*
11465 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11466 # in glibc 2.1.3, but that breaks too many other things.
11467 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11468 if test $ac_cv_sys_largefile_source != unknown; then
11470 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11475 # Configure getopt.
11476 # getopt.m4 serial 10
11478 # The getopt module assume you want GNU getopt, with getopt_long etc,
11479 # rather than vanilla POSIX getopt. This means your your code should
11480 # always include <getopt.h> for the getopt prototypes.
11492 # Prerequisites of lib/getopt*.
11497 GETOPT_H=
11498 for ac_header in getopt.h
11499 do :
11500 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11501 if test "x$ac_cv_header_getopt_h" = x""yes; then :
11502 cat >>confdefs.h <<_ACEOF
11503 #define HAVE_GETOPT_H 1
11504 _ACEOF
11506 else
11507 GETOPT_H=getopt.h
11510 done
11512 if test -z "$GETOPT_H"; then
11513 for ac_func in getopt_long_only
11514 do :
11515 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11516 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
11517 cat >>confdefs.h <<_ACEOF
11518 #define HAVE_GETOPT_LONG_ONLY 1
11519 _ACEOF
11521 else
11522 GETOPT_H=getopt.h
11524 done
11528 if test -z "$GETOPT_H"; then
11529 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
11531 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
11532 GETOPT_H=getopt.h
11537 if test -z "$GETOPT_H"; then
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11539 $as_echo_n "checking for working GNU getopt function... " >&6; }
11540 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
11541 $as_echo_n "(cached) " >&6
11542 else
11543 if test "$cross_compiling" = yes; then :
11544 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
11546 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
11547 gl_cv_func_gnu_getopt=no
11548 else
11549 gl_cv_func_gnu_getopt=yes
11552 else
11553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11554 /* end confdefs.h. */
11555 #include <getopt.h>
11557 main ()
11560 char *myargv[3];
11561 myargv[0] = "conftest";
11562 myargv[1] = "-+";
11563 myargv[2] = 0;
11564 return getopt (2, myargv, "+a") != '?';
11567 return 0;
11569 _ACEOF
11570 if ac_fn_c_try_run "$LINENO"; then :
11571 gl_cv_func_gnu_getopt=yes
11572 else
11573 gl_cv_func_gnu_getopt=no
11575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11576 conftest.$ac_objext conftest.beam conftest.$ac_ext
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
11581 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
11582 if test "$gl_cv_func_gnu_getopt" = "no"; then
11583 GETOPT_H=getopt.h
11589 if test -n "$GETOPT_H"; then :
11592 GETOPT_H=getopt.h
11594 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
11599 GETOPTOBJS='getopt.o getopt1.o'
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
11606 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
11607 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
11608 $as_echo_n "(cached) " >&6
11609 else
11610 # Use it with a single arg.
11611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11612 /* end confdefs.h. */
11613 $ac_includes_default
11615 main ()
11617 getpgrp (0);
11619 return 0;
11621 _ACEOF
11622 if ac_fn_c_try_compile "$LINENO"; then :
11623 ac_cv_func_getpgrp_void=no
11624 else
11625 ac_cv_func_getpgrp_void=yes
11627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
11631 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
11632 if test $ac_cv_func_getpgrp_void = yes; then
11634 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
11639 for ac_func in strftime
11640 do :
11641 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
11642 if test "x$ac_cv_func_strftime" = x""yes; then :
11643 cat >>confdefs.h <<_ACEOF
11644 #define HAVE_STRFTIME 1
11645 _ACEOF
11647 else
11648 # strftime is in -lintl on SCO UNIX.
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
11650 $as_echo_n "checking for strftime in -lintl... " >&6; }
11651 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
11652 $as_echo_n "(cached) " >&6
11653 else
11654 ac_check_lib_save_LIBS=$LIBS
11655 LIBS="-lintl $LIBS"
11656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11657 /* end confdefs.h. */
11659 /* Override any GCC internal prototype to avoid an error.
11660 Use char because int might match the return type of a GCC
11661 builtin and then its argument prototype would still apply. */
11662 #ifdef __cplusplus
11663 extern "C"
11664 #endif
11665 char strftime ();
11667 main ()
11669 return strftime ();
11671 return 0;
11673 _ACEOF
11674 if ac_fn_c_try_link "$LINENO"; then :
11675 ac_cv_lib_intl_strftime=yes
11676 else
11677 ac_cv_lib_intl_strftime=no
11679 rm -f core conftest.err conftest.$ac_objext \
11680 conftest$ac_exeext conftest.$ac_ext
11681 LIBS=$ac_check_lib_save_LIBS
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
11684 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
11685 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
11686 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
11688 LIBS="-lintl $LIBS"
11692 done
11695 # UNIX98 PTYs.
11696 for ac_func in grantpt
11697 do :
11698 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
11699 if test "x$ac_cv_func_grantpt" = x""yes; then :
11700 cat >>confdefs.h <<_ACEOF
11701 #define HAVE_GRANTPT 1
11702 _ACEOF
11705 done
11708 # PTY-related GNU extensions.
11709 for ac_func in getpt
11710 do :
11711 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
11712 if test "x$ac_cv_func_getpt" = x""yes; then :
11713 cat >>confdefs.h <<_ACEOF
11714 #define HAVE_GETPT 1
11715 _ACEOF
11718 done
11721 # Check this now, so that we will NOT find the above functions in ncurses.
11722 # That is because we have not set up to link ncurses in lib-src.
11723 # It's better to believe a function is not available
11724 # than to expect to find it in ncurses.
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparm in -lncurses" >&5
11726 $as_echo_n "checking for tparm in -lncurses... " >&6; }
11727 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then :
11728 $as_echo_n "(cached) " >&6
11729 else
11730 ac_check_lib_save_LIBS=$LIBS
11731 LIBS="-lncurses $LIBS"
11732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11733 /* end confdefs.h. */
11735 /* Override any GCC internal prototype to avoid an error.
11736 Use char because int might match the return type of a GCC
11737 builtin and then its argument prototype would still apply. */
11738 #ifdef __cplusplus
11739 extern "C"
11740 #endif
11741 char tparm ();
11743 main ()
11745 return tparm ();
11747 return 0;
11749 _ACEOF
11750 if ac_fn_c_try_link "$LINENO"; then :
11751 ac_cv_lib_ncurses_tparm=yes
11752 else
11753 ac_cv_lib_ncurses_tparm=no
11755 rm -f core conftest.err conftest.$ac_objext \
11756 conftest$ac_exeext conftest.$ac_ext
11757 LIBS=$ac_check_lib_save_LIBS
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tparm" >&5
11760 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
11761 if test "x$ac_cv_lib_ncurses_tparm" = x""yes; then :
11762 cat >>confdefs.h <<_ACEOF
11763 #define HAVE_LIBNCURSES 1
11764 _ACEOF
11766 LIBS="-lncurses $LIBS"
11771 # Do we have res_init, for detecting changes in /etc/resolv.conf?
11773 resolv=no
11774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11775 /* end confdefs.h. */
11776 #include <netinet/in.h>
11777 #include <arpa/nameser.h>
11778 #include <resolv.h>
11780 main ()
11782 return res_init();
11784 return 0;
11786 _ACEOF
11787 if ac_fn_c_try_link "$LINENO"; then :
11788 have_res_init=yes
11789 else
11790 have_res_init=no
11792 rm -f core conftest.err conftest.$ac_objext \
11793 conftest$ac_exeext conftest.$ac_ext
11794 if test "$have_res_init" = no; then
11795 OLIBS="$LIBS"
11796 LIBS="$LIBS -lresolv"
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
11798 $as_echo_n "checking for res_init with -lresolv... " >&6; }
11799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800 /* end confdefs.h. */
11801 #include <netinet/in.h>
11802 #include <arpa/nameser.h>
11803 #include <resolv.h>
11805 main ()
11807 return res_init();
11809 return 0;
11811 _ACEOF
11812 if ac_fn_c_try_link "$LINENO"; then :
11813 have_res_init=yes
11814 else
11815 have_res_init=no
11817 rm -f core conftest.err conftest.$ac_objext \
11818 conftest$ac_exeext conftest.$ac_ext
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
11820 $as_echo "$have_res_init" >&6; }
11821 if test "$have_res_init" = yes ; then
11822 resolv=yes
11824 LIBS="$OLIBS"
11827 if test "$have_res_init" = yes; then
11829 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
11833 # Do we need the Hesiod library to provide the support routines?
11834 if test "$with_hesiod" != no ; then
11835 # Don't set $LIBS here -- see comments above.
11836 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
11837 if test "x$ac_cv_func_res_send" = x""yes; then :
11839 else
11840 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
11841 if test "x$ac_cv_func___res_send" = x""yes; then :
11843 else
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
11845 $as_echo_n "checking for res_send in -lresolv... " >&6; }
11846 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
11847 $as_echo_n "(cached) " >&6
11848 else
11849 ac_check_lib_save_LIBS=$LIBS
11850 LIBS="-lresolv $LIBS"
11851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852 /* end confdefs.h. */
11854 /* Override any GCC internal prototype to avoid an error.
11855 Use char because int might match the return type of a GCC
11856 builtin and then its argument prototype would still apply. */
11857 #ifdef __cplusplus
11858 extern "C"
11859 #endif
11860 char res_send ();
11862 main ()
11864 return res_send ();
11866 return 0;
11868 _ACEOF
11869 if ac_fn_c_try_link "$LINENO"; then :
11870 ac_cv_lib_resolv_res_send=yes
11871 else
11872 ac_cv_lib_resolv_res_send=no
11874 rm -f core conftest.err conftest.$ac_objext \
11875 conftest$ac_exeext conftest.$ac_ext
11876 LIBS=$ac_check_lib_save_LIBS
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
11879 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
11880 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
11881 resolv=yes
11882 else
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
11884 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
11885 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
11886 $as_echo_n "(cached) " >&6
11887 else
11888 ac_check_lib_save_LIBS=$LIBS
11889 LIBS="-lresolv $LIBS"
11890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11891 /* end confdefs.h. */
11893 /* Override any GCC internal prototype to avoid an error.
11894 Use char because int might match the return type of a GCC
11895 builtin and then its argument prototype would still apply. */
11896 #ifdef __cplusplus
11897 extern "C"
11898 #endif
11899 char __res_send ();
11901 main ()
11903 return __res_send ();
11905 return 0;
11907 _ACEOF
11908 if ac_fn_c_try_link "$LINENO"; then :
11909 ac_cv_lib_resolv___res_send=yes
11910 else
11911 ac_cv_lib_resolv___res_send=no
11913 rm -f core conftest.err conftest.$ac_objext \
11914 conftest$ac_exeext conftest.$ac_ext
11915 LIBS=$ac_check_lib_save_LIBS
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
11918 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
11919 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
11920 resolv=yes
11929 if test "$resolv" = yes ; then
11930 RESOLVLIB=-lresolv
11931 else
11932 RESOLVLIB=
11934 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
11935 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
11937 else
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
11939 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
11940 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
11941 $as_echo_n "(cached) " >&6
11942 else
11943 ac_check_lib_save_LIBS=$LIBS
11944 LIBS="-lhesiod $RESOLVLIB $LIBS"
11945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11948 /* Override any GCC internal prototype to avoid an error.
11949 Use char because int might match the return type of a GCC
11950 builtin and then its argument prototype would still apply. */
11951 #ifdef __cplusplus
11952 extern "C"
11953 #endif
11954 char hes_getmailhost ();
11956 main ()
11958 return hes_getmailhost ();
11960 return 0;
11962 _ACEOF
11963 if ac_fn_c_try_link "$LINENO"; then :
11964 ac_cv_lib_hesiod_hes_getmailhost=yes
11965 else
11966 ac_cv_lib_hesiod_hes_getmailhost=no
11968 rm -f core conftest.err conftest.$ac_objext \
11969 conftest$ac_exeext conftest.$ac_ext
11970 LIBS=$ac_check_lib_save_LIBS
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
11973 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
11974 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
11976 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
11978 else
11986 # Do we need libresolv (due to res_init or Hesiod)?
11987 if test "$resolv" = yes ; then
11989 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
11993 # These tell us which Kerberos-related libraries to use.
11994 if test "${with_kerberos}" != no; then
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
11996 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
11997 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
11998 $as_echo_n "(cached) " >&6
11999 else
12000 ac_check_lib_save_LIBS=$LIBS
12001 LIBS="-lcom_err $LIBS"
12002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h. */
12005 /* Override any GCC internal prototype to avoid an error.
12006 Use char because int might match the return type of a GCC
12007 builtin and then its argument prototype would still apply. */
12008 #ifdef __cplusplus
12009 extern "C"
12010 #endif
12011 char com_err ();
12013 main ()
12015 return com_err ();
12017 return 0;
12019 _ACEOF
12020 if ac_fn_c_try_link "$LINENO"; then :
12021 ac_cv_lib_com_err_com_err=yes
12022 else
12023 ac_cv_lib_com_err_com_err=no
12025 rm -f core conftest.err conftest.$ac_objext \
12026 conftest$ac_exeext conftest.$ac_ext
12027 LIBS=$ac_check_lib_save_LIBS
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12030 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12031 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
12032 cat >>confdefs.h <<_ACEOF
12033 #define HAVE_LIBCOM_ERR 1
12034 _ACEOF
12036 LIBS="-lcom_err $LIBS"
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12041 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12042 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12043 $as_echo_n "(cached) " >&6
12044 else
12045 ac_check_lib_save_LIBS=$LIBS
12046 LIBS="-lk5crypto $LIBS"
12047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12048 /* end confdefs.h. */
12050 /* Override any GCC internal prototype to avoid an error.
12051 Use char because int might match the return type of a GCC
12052 builtin and then its argument prototype would still apply. */
12053 #ifdef __cplusplus
12054 extern "C"
12055 #endif
12056 char mit_des_cbc_encrypt ();
12058 main ()
12060 return mit_des_cbc_encrypt ();
12062 return 0;
12064 _ACEOF
12065 if ac_fn_c_try_link "$LINENO"; then :
12066 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
12067 else
12068 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
12070 rm -f core conftest.err conftest.$ac_objext \
12071 conftest$ac_exeext conftest.$ac_ext
12072 LIBS=$ac_check_lib_save_LIBS
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12075 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12076 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
12077 cat >>confdefs.h <<_ACEOF
12078 #define HAVE_LIBK5CRYPTO 1
12079 _ACEOF
12081 LIBS="-lk5crypto $LIBS"
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12086 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12087 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
12088 $as_echo_n "(cached) " >&6
12089 else
12090 ac_check_lib_save_LIBS=$LIBS
12091 LIBS="-lcrypto $LIBS"
12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h. */
12095 /* Override any GCC internal prototype to avoid an error.
12096 Use char because int might match the return type of a GCC
12097 builtin and then its argument prototype would still apply. */
12098 #ifdef __cplusplus
12099 extern "C"
12100 #endif
12101 char mit_des_cbc_encrypt ();
12103 main ()
12105 return mit_des_cbc_encrypt ();
12107 return 0;
12109 _ACEOF
12110 if ac_fn_c_try_link "$LINENO"; then :
12111 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
12112 else
12113 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
12115 rm -f core conftest.err conftest.$ac_objext \
12116 conftest$ac_exeext conftest.$ac_ext
12117 LIBS=$ac_check_lib_save_LIBS
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12120 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12121 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
12122 cat >>confdefs.h <<_ACEOF
12123 #define HAVE_LIBCRYPTO 1
12124 _ACEOF
12126 LIBS="-lcrypto $LIBS"
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12131 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12132 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
12133 $as_echo_n "(cached) " >&6
12134 else
12135 ac_check_lib_save_LIBS=$LIBS
12136 LIBS="-lkrb5 $LIBS"
12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h. */
12140 /* Override any GCC internal prototype to avoid an error.
12141 Use char because int might match the return type of a GCC
12142 builtin and then its argument prototype would still apply. */
12143 #ifdef __cplusplus
12144 extern "C"
12145 #endif
12146 char krb5_init_context ();
12148 main ()
12150 return krb5_init_context ();
12152 return 0;
12154 _ACEOF
12155 if ac_fn_c_try_link "$LINENO"; then :
12156 ac_cv_lib_krb5_krb5_init_context=yes
12157 else
12158 ac_cv_lib_krb5_krb5_init_context=no
12160 rm -f core conftest.err conftest.$ac_objext \
12161 conftest$ac_exeext conftest.$ac_ext
12162 LIBS=$ac_check_lib_save_LIBS
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12165 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12166 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
12167 cat >>confdefs.h <<_ACEOF
12168 #define HAVE_LIBKRB5 1
12169 _ACEOF
12171 LIBS="-lkrb5 $LIBS"
12175 if test "${with_kerberos5}" = no; then
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12177 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12178 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
12179 $as_echo_n "(cached) " >&6
12180 else
12181 ac_check_lib_save_LIBS=$LIBS
12182 LIBS="-ldes425 $LIBS"
12183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12184 /* end confdefs.h. */
12186 /* Override any GCC internal prototype to avoid an error.
12187 Use char because int might match the return type of a GCC
12188 builtin and then its argument prototype would still apply. */
12189 #ifdef __cplusplus
12190 extern "C"
12191 #endif
12192 char des_cbc_encrypt ();
12194 main ()
12196 return des_cbc_encrypt ();
12198 return 0;
12200 _ACEOF
12201 if ac_fn_c_try_link "$LINENO"; then :
12202 ac_cv_lib_des425_des_cbc_encrypt=yes
12203 else
12204 ac_cv_lib_des425_des_cbc_encrypt=no
12206 rm -f core conftest.err conftest.$ac_objext \
12207 conftest$ac_exeext conftest.$ac_ext
12208 LIBS=$ac_check_lib_save_LIBS
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12211 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12212 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
12213 cat >>confdefs.h <<_ACEOF
12214 #define HAVE_LIBDES425 1
12215 _ACEOF
12217 LIBS="-ldes425 $LIBS"
12219 else
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
12221 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12222 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
12223 $as_echo_n "(cached) " >&6
12224 else
12225 ac_check_lib_save_LIBS=$LIBS
12226 LIBS="-ldes $LIBS"
12227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228 /* end confdefs.h. */
12230 /* Override any GCC internal prototype to avoid an error.
12231 Use char because int might match the return type of a GCC
12232 builtin and then its argument prototype would still apply. */
12233 #ifdef __cplusplus
12234 extern "C"
12235 #endif
12236 char des_cbc_encrypt ();
12238 main ()
12240 return des_cbc_encrypt ();
12242 return 0;
12244 _ACEOF
12245 if ac_fn_c_try_link "$LINENO"; then :
12246 ac_cv_lib_des_des_cbc_encrypt=yes
12247 else
12248 ac_cv_lib_des_des_cbc_encrypt=no
12250 rm -f core conftest.err conftest.$ac_objext \
12251 conftest$ac_exeext conftest.$ac_ext
12252 LIBS=$ac_check_lib_save_LIBS
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12255 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12256 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
12257 cat >>confdefs.h <<_ACEOF
12258 #define HAVE_LIBDES 1
12259 _ACEOF
12261 LIBS="-ldes $LIBS"
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
12268 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12269 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
12270 $as_echo_n "(cached) " >&6
12271 else
12272 ac_check_lib_save_LIBS=$LIBS
12273 LIBS="-lkrb4 $LIBS"
12274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12275 /* end confdefs.h. */
12277 /* Override any GCC internal prototype to avoid an error.
12278 Use char because int might match the return type of a GCC
12279 builtin and then its argument prototype would still apply. */
12280 #ifdef __cplusplus
12281 extern "C"
12282 #endif
12283 char krb_get_cred ();
12285 main ()
12287 return krb_get_cred ();
12289 return 0;
12291 _ACEOF
12292 if ac_fn_c_try_link "$LINENO"; then :
12293 ac_cv_lib_krb4_krb_get_cred=yes
12294 else
12295 ac_cv_lib_krb4_krb_get_cred=no
12297 rm -f core conftest.err conftest.$ac_objext \
12298 conftest$ac_exeext conftest.$ac_ext
12299 LIBS=$ac_check_lib_save_LIBS
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
12302 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
12303 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
12304 cat >>confdefs.h <<_ACEOF
12305 #define HAVE_LIBKRB4 1
12306 _ACEOF
12308 LIBS="-lkrb4 $LIBS"
12310 else
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
12312 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
12313 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
12314 $as_echo_n "(cached) " >&6
12315 else
12316 ac_check_lib_save_LIBS=$LIBS
12317 LIBS="-lkrb $LIBS"
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12321 /* Override any GCC internal prototype to avoid an error.
12322 Use char because int might match the return type of a GCC
12323 builtin and then its argument prototype would still apply. */
12324 #ifdef __cplusplus
12325 extern "C"
12326 #endif
12327 char krb_get_cred ();
12329 main ()
12331 return krb_get_cred ();
12333 return 0;
12335 _ACEOF
12336 if ac_fn_c_try_link "$LINENO"; then :
12337 ac_cv_lib_krb_krb_get_cred=yes
12338 else
12339 ac_cv_lib_krb_krb_get_cred=no
12341 rm -f core conftest.err conftest.$ac_objext \
12342 conftest$ac_exeext conftest.$ac_ext
12343 LIBS=$ac_check_lib_save_LIBS
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
12346 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
12347 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
12348 cat >>confdefs.h <<_ACEOF
12349 #define HAVE_LIBKRB 1
12350 _ACEOF
12352 LIBS="-lkrb $LIBS"
12360 if test "${with_kerberos5}" != no; then
12361 for ac_header in krb5.h
12362 do :
12363 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
12364 if test "x$ac_cv_header_krb5_h" = x""yes; then :
12365 cat >>confdefs.h <<_ACEOF
12366 #define HAVE_KRB5_H 1
12367 _ACEOF
12368 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
12370 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
12372 cat >>confdefs.h <<_ACEOF
12373 #define HAVE_KRB5_ERROR_TEXT 1
12374 _ACEOF
12378 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
12380 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
12382 cat >>confdefs.h <<_ACEOF
12383 #define HAVE_KRB5_ERROR_E_TEXT 1
12384 _ACEOF
12391 done
12393 else
12394 for ac_header in des.h
12395 do :
12396 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
12397 if test "x$ac_cv_header_des_h" = x""yes; then :
12398 cat >>confdefs.h <<_ACEOF
12399 #define HAVE_DES_H 1
12400 _ACEOF
12402 else
12403 for ac_header in kerberosIV/des.h
12404 do :
12405 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
12406 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
12407 cat >>confdefs.h <<_ACEOF
12408 #define HAVE_KERBEROSIV_DES_H 1
12409 _ACEOF
12411 else
12412 for ac_header in kerberos/des.h
12413 do :
12414 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
12415 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
12416 cat >>confdefs.h <<_ACEOF
12417 #define HAVE_KERBEROS_DES_H 1
12418 _ACEOF
12422 done
12426 done
12430 done
12432 for ac_header in krb.h
12433 do :
12434 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
12435 if test "x$ac_cv_header_krb_h" = x""yes; then :
12436 cat >>confdefs.h <<_ACEOF
12437 #define HAVE_KRB_H 1
12438 _ACEOF
12440 else
12441 for ac_header in kerberosIV/krb.h
12442 do :
12443 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
12444 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
12445 cat >>confdefs.h <<_ACEOF
12446 #define HAVE_KERBEROSIV_KRB_H 1
12447 _ACEOF
12449 else
12450 for ac_header in kerberos/krb.h
12451 do :
12452 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
12453 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
12454 cat >>confdefs.h <<_ACEOF
12455 #define HAVE_KERBEROS_KRB_H 1
12456 _ACEOF
12460 done
12464 done
12468 done
12471 for ac_header in com_err.h
12472 do :
12473 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
12474 if test "x$ac_cv_header_com_err_h" = x""yes; then :
12475 cat >>confdefs.h <<_ACEOF
12476 #define HAVE_COM_ERR_H 1
12477 _ACEOF
12481 done
12485 # Solaris requires -lintl if you want strerror (which calls dgettext)
12486 # to return localized messages.
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
12488 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12489 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
12490 $as_echo_n "(cached) " >&6
12491 else
12492 ac_check_lib_save_LIBS=$LIBS
12493 LIBS="-lintl $LIBS"
12494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495 /* end confdefs.h. */
12497 /* Override any GCC internal prototype to avoid an error.
12498 Use char because int might match the return type of a GCC
12499 builtin and then its argument prototype would still apply. */
12500 #ifdef __cplusplus
12501 extern "C"
12502 #endif
12503 char dgettext ();
12505 main ()
12507 return dgettext ();
12509 return 0;
12511 _ACEOF
12512 if ac_fn_c_try_link "$LINENO"; then :
12513 ac_cv_lib_intl_dgettext=yes
12514 else
12515 ac_cv_lib_intl_dgettext=no
12517 rm -f core conftest.err conftest.$ac_objext \
12518 conftest$ac_exeext conftest.$ac_ext
12519 LIBS=$ac_check_lib_save_LIBS
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
12522 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12523 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
12524 cat >>confdefs.h <<_ACEOF
12525 #define HAVE_LIBINTL 1
12526 _ACEOF
12528 LIBS="-lintl $LIBS"
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
12534 $as_echo_n "checking whether localtime caches TZ... " >&6; }
12535 if test "${emacs_cv_localtime_cache+set}" = set; then :
12536 $as_echo_n "(cached) " >&6
12537 else
12538 if test x$ac_cv_func_tzset = xyes; then
12539 if test "$cross_compiling" = yes; then :
12540 # If we have tzset, assume the worst when cross-compiling.
12541 emacs_cv_localtime_cache=yes
12542 else
12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h. */
12545 #include <time.h>
12546 extern char **environ;
12547 unset_TZ ()
12549 char **from, **to;
12550 for (to = from = environ; (*to = *from); from++)
12551 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
12552 to++;
12554 char TZ_GMT0[] = "TZ=GMT0";
12555 char TZ_PST8[] = "TZ=PST8";
12556 main()
12558 time_t now = time ((time_t *) 0);
12559 int hour_GMT0, hour_unset;
12560 if (putenv (TZ_GMT0) != 0)
12561 exit (1);
12562 hour_GMT0 = localtime (&now)->tm_hour;
12563 unset_TZ ();
12564 hour_unset = localtime (&now)->tm_hour;
12565 if (putenv (TZ_PST8) != 0)
12566 exit (1);
12567 if (localtime (&now)->tm_hour == hour_GMT0)
12568 exit (1);
12569 unset_TZ ();
12570 if (localtime (&now)->tm_hour != hour_unset)
12571 exit (1);
12572 exit (0);
12574 _ACEOF
12575 if ac_fn_c_try_run "$LINENO"; then :
12576 emacs_cv_localtime_cache=no
12577 else
12578 emacs_cv_localtime_cache=yes
12580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12581 conftest.$ac_objext conftest.beam conftest.$ac_ext
12584 else
12585 # If we lack tzset, report that localtime does not cache TZ,
12586 # since we can't invalidate the cache if we don't have tzset.
12587 emacs_cv_localtime_cache=no
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
12591 $as_echo "$emacs_cv_localtime_cache" >&6; }
12592 if test $emacs_cv_localtime_cache = yes; then
12594 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
12598 if test "x$HAVE_TIMEVAL" = xyes; then
12599 for ac_func in gettimeofday
12600 do :
12601 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
12602 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
12603 cat >>confdefs.h <<_ACEOF
12604 #define HAVE_GETTIMEOFDAY 1
12605 _ACEOF
12608 done
12610 if test $ac_cv_func_gettimeofday = yes; then
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
12612 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
12613 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
12614 $as_echo_n "(cached) " >&6
12615 else
12616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h. */
12619 #ifdef TIME_WITH_SYS_TIME
12620 #include <sys/time.h>
12621 #include <time.h>
12622 #else
12623 #ifdef HAVE_SYS_TIME_H
12624 #include <sys/time.h>
12625 #else
12626 #include <time.h>
12627 #endif
12628 #endif
12630 main ()
12632 struct timeval time;
12633 gettimeofday (&time, 0);
12635 return 0;
12637 _ACEOF
12638 if ac_fn_c_try_compile "$LINENO"; then :
12639 emacs_cv_gettimeofday_two_arguments=yes
12640 else
12641 emacs_cv_gettimeofday_two_arguments=no
12643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
12646 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
12647 if test $emacs_cv_gettimeofday_two_arguments = no; then
12649 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
12655 ok_so_far=yes
12656 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
12657 if test "x$ac_cv_func_socket" = x""yes; then :
12659 else
12660 ok_so_far=no
12663 if test $ok_so_far = yes; then
12664 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
12665 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
12667 else
12668 ok_so_far=no
12673 if test $ok_so_far = yes; then
12674 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
12675 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
12677 else
12678 ok_so_far=no
12683 if test $ok_so_far = yes; then
12685 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
12689 for ac_header in sys/ioctl.h
12690 do :
12691 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12692 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
12693 cat >>confdefs.h <<_ACEOF
12694 #define HAVE_SYS_IOCTL_H 1
12695 _ACEOF
12699 done
12702 if test -f /usr/lpp/X11/bin/smt.exp; then
12704 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
12709 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
12710 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12712 $as_echo "yes" >&6; }
12714 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
12716 else
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 $as_echo "no" >&6; }
12721 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12722 if test "x$ac_cv_type_pid_t" = x""yes; then :
12724 else
12726 cat >>confdefs.h <<_ACEOF
12727 #define pid_t int
12728 _ACEOF
12732 for ac_header in vfork.h
12733 do :
12734 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12735 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12736 cat >>confdefs.h <<_ACEOF
12737 #define HAVE_VFORK_H 1
12738 _ACEOF
12742 done
12744 for ac_func in fork vfork
12745 do :
12746 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12747 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12748 eval as_val=\$$as_ac_var
12749 if test "x$as_val" = x""yes; then :
12750 cat >>confdefs.h <<_ACEOF
12751 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12752 _ACEOF
12755 done
12757 if test "x$ac_cv_func_fork" = xyes; then
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12759 $as_echo_n "checking for working fork... " >&6; }
12760 if test "${ac_cv_func_fork_works+set}" = set; then :
12761 $as_echo_n "(cached) " >&6
12762 else
12763 if test "$cross_compiling" = yes; then :
12764 ac_cv_func_fork_works=cross
12765 else
12766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12767 /* end confdefs.h. */
12768 $ac_includes_default
12770 main ()
12773 /* By Ruediger Kuhlmann. */
12774 return fork () < 0;
12777 return 0;
12779 _ACEOF
12780 if ac_fn_c_try_run "$LINENO"; then :
12781 ac_cv_func_fork_works=yes
12782 else
12783 ac_cv_func_fork_works=no
12785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12786 conftest.$ac_objext conftest.beam conftest.$ac_ext
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12791 $as_echo "$ac_cv_func_fork_works" >&6; }
12793 else
12794 ac_cv_func_fork_works=$ac_cv_func_fork
12796 if test "x$ac_cv_func_fork_works" = xcross; then
12797 case $host in
12798 *-*-amigaos* | *-*-msdosdjgpp*)
12799 # Override, as these systems have only a dummy fork() stub
12800 ac_cv_func_fork_works=no
12803 ac_cv_func_fork_works=yes
12805 esac
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12807 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12809 ac_cv_func_vfork_works=$ac_cv_func_vfork
12810 if test "x$ac_cv_func_vfork" = xyes; then
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12812 $as_echo_n "checking for working vfork... " >&6; }
12813 if test "${ac_cv_func_vfork_works+set}" = set; then :
12814 $as_echo_n "(cached) " >&6
12815 else
12816 if test "$cross_compiling" = yes; then :
12817 ac_cv_func_vfork_works=cross
12818 else
12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12821 /* Thanks to Paul Eggert for this test. */
12822 $ac_includes_default
12823 #include <sys/wait.h>
12824 #ifdef HAVE_VFORK_H
12825 # include <vfork.h>
12826 #endif
12827 /* On some sparc systems, changes by the child to local and incoming
12828 argument registers are propagated back to the parent. The compiler
12829 is told about this with #include <vfork.h>, but some compilers
12830 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12831 static variable whose address is put into a register that is
12832 clobbered by the vfork. */
12833 static void
12834 #ifdef __cplusplus
12835 sparc_address_test (int arg)
12836 # else
12837 sparc_address_test (arg) int arg;
12838 #endif
12840 static pid_t child;
12841 if (!child) {
12842 child = vfork ();
12843 if (child < 0) {
12844 perror ("vfork");
12845 _exit(2);
12847 if (!child) {
12848 arg = getpid();
12849 write(-1, "", 0);
12850 _exit (arg);
12856 main ()
12858 pid_t parent = getpid ();
12859 pid_t child;
12861 sparc_address_test (0);
12863 child = vfork ();
12865 if (child == 0) {
12866 /* Here is another test for sparc vfork register problems. This
12867 test uses lots of local variables, at least as many local
12868 variables as main has allocated so far including compiler
12869 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12870 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12871 reuse the register of parent for one of the local variables,
12872 since it will think that parent can't possibly be used any more
12873 in this routine. Assigning to the local variable will thus
12874 munge parent in the parent process. */
12875 pid_t
12876 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12877 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12878 /* Convince the compiler that p..p7 are live; otherwise, it might
12879 use the same hardware register for all 8 local variables. */
12880 if (p != p1 || p != p2 || p != p3 || p != p4
12881 || p != p5 || p != p6 || p != p7)
12882 _exit(1);
12884 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12885 from child file descriptors. If the child closes a descriptor
12886 before it execs or exits, this munges the parent's descriptor
12887 as well. Test for this by closing stdout in the child. */
12888 _exit(close(fileno(stdout)) != 0);
12889 } else {
12890 int status;
12891 struct stat st;
12893 while (wait(&status) != child)
12895 return (
12896 /* Was there some problem with vforking? */
12897 child < 0
12899 /* Did the child fail? (This shouldn't happen.) */
12900 || status
12902 /* Did the vfork/compiler bug occur? */
12903 || parent != getpid()
12905 /* Did the file descriptor bug occur? */
12906 || fstat(fileno(stdout), &st) != 0
12910 _ACEOF
12911 if ac_fn_c_try_run "$LINENO"; then :
12912 ac_cv_func_vfork_works=yes
12913 else
12914 ac_cv_func_vfork_works=no
12916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12917 conftest.$ac_objext conftest.beam conftest.$ac_ext
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12922 $as_echo "$ac_cv_func_vfork_works" >&6; }
12925 if test "x$ac_cv_func_fork_works" = xcross; then
12926 ac_cv_func_vfork_works=$ac_cv_func_vfork
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12928 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12931 if test "x$ac_cv_func_vfork_works" = xyes; then
12933 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12935 else
12937 $as_echo "#define vfork fork" >>confdefs.h
12940 if test "x$ac_cv_func_fork_works" = xyes; then
12942 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12948 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12949 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
12950 $as_echo_n "(cached) " >&6
12951 else
12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953 /* end confdefs.h. */
12954 #include <langinfo.h>
12956 main ()
12958 char* cs = nl_langinfo(CODESET);
12960 return 0;
12962 _ACEOF
12963 if ac_fn_c_try_link "$LINENO"; then :
12964 emacs_cv_langinfo_codeset=yes
12965 else
12966 emacs_cv_langinfo_codeset=no
12968 rm -f core conftest.err conftest.$ac_objext \
12969 conftest$ac_exeext conftest.$ac_ext
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
12973 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
12974 if test $emacs_cv_langinfo_codeset = yes; then
12976 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12980 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12981 if test "x$ac_cv_type_size_t" = x""yes; then :
12983 cat >>confdefs.h <<_ACEOF
12984 #define HAVE_SIZE_T 1
12985 _ACEOF
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
12992 $as_echo_n "checking for mbstate_t... " >&6; }
12993 if test "${ac_cv_type_mbstate_t+set}" = set; then :
12994 $as_echo_n "(cached) " >&6
12995 else
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
12998 $ac_includes_default
12999 # include <wchar.h>
13001 main ()
13003 mbstate_t x; return sizeof x;
13005 return 0;
13007 _ACEOF
13008 if ac_fn_c_try_compile "$LINENO"; then :
13009 ac_cv_type_mbstate_t=yes
13010 else
13011 ac_cv_type_mbstate_t=no
13013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13016 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13017 if test $ac_cv_type_mbstate_t = yes; then
13019 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13021 else
13023 $as_echo "#define mbstate_t int" >>confdefs.h
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13028 $as_echo_n "checking for C restrict keyword... " >&6; }
13029 if test "${emacs_cv_c_restrict+set}" = set; then :
13030 $as_echo_n "(cached) " >&6
13031 else
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13034 void fred (int *restrict x);
13036 main ()
13040 return 0;
13042 _ACEOF
13043 if ac_fn_c_try_compile "$LINENO"; then :
13044 emacs_cv_c_restrict=yes
13045 else
13046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13047 /* end confdefs.h. */
13048 void fred (int *__restrict x);
13050 main ()
13054 return 0;
13056 _ACEOF
13057 if ac_fn_c_try_compile "$LINENO"; then :
13058 emacs_cv_c_restrict=__restrict
13059 else
13060 emacs_cv_c_restrict=no
13062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
13067 $as_echo "$emacs_cv_c_restrict" >&6; }
13068 case "$emacs_cv_c_restrict" in
13069 yes) emacs_restrict=restrict;;
13070 no) emacs_restrict="";;
13071 *) emacs_restrict="$emacs_cv_c_restrict";;
13072 esac
13073 if test "$emacs_restrict" != __restrict; then
13075 cat >>confdefs.h <<_ACEOF
13076 #define __restrict $emacs_restrict
13077 _ACEOF
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
13082 $as_echo_n "checking for C restricted array declarations... " >&6; }
13083 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
13084 $as_echo_n "(cached) " >&6
13085 else
13086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087 /* end confdefs.h. */
13088 void fred (int x[__restrict]);
13090 main ()
13094 return 0;
13096 _ACEOF
13097 if ac_fn_c_try_compile "$LINENO"; then :
13098 emacs_cv_c_restrict_arr=yes
13099 else
13100 emacs_cv_c_restrict_arr=no
13102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
13105 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13106 if test "$emacs_cv_c_restrict_arr" = yes; then
13108 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
13114 # Set up the CFLAGS for real compilation, so we can substitute it.
13115 CFLAGS="$REAL_CFLAGS"
13116 CPPFLAGS="$REAL_CPPFLAGS"
13118 #### Find out which version of Emacs this is.
13119 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
13120 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13121 if test x"${version}" = x; then
13122 as_fn_error "can't find current emacs version in \`${srcdir}/lisp/version.el'." "$LINENO" 5
13124 if test x"${version}" != x"$PACKAGE_VERSION"; then
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
13126 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
13129 ### Specify what sort of things we'll be editing into Makefile and config.h.
13130 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13175 cat >>confdefs.h <<_ACEOF
13176 #define EMACS_CONFIGURATION "${canonical}"
13177 _ACEOF
13180 cat >>confdefs.h <<_ACEOF
13181 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
13182 _ACEOF
13185 cat >>confdefs.h <<_ACEOF
13186 #define config_machfile "${machfile}"
13187 _ACEOF
13190 cat >>confdefs.h <<_ACEOF
13191 #define config_opsysfile "${opsysfile}"
13192 _ACEOF
13195 cat >>confdefs.h <<_ACEOF
13196 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
13197 _ACEOF
13200 cat >>confdefs.h <<_ACEOF
13201 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
13202 _ACEOF
13205 cat >>confdefs.h <<_ACEOF
13206 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
13207 _ACEOF
13210 cat >>confdefs.h <<_ACEOF
13211 #define UNEXEC_SRC ${UNEXEC_SRC}
13212 _ACEOF
13215 if test "${HAVE_X_WINDOWS}" = "yes" ; then
13217 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
13220 if test "${USE_X_TOOLKIT}" != "none" ; then
13222 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
13224 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13226 $as_echo "#define USE_LUCID 1" >>confdefs.h
13228 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13230 $as_echo "#define USE_MOTIF 1" >>confdefs.h
13234 if test "${HAVE_X11}" = "yes" ; then
13236 $as_echo "#define HAVE_X11 1" >>confdefs.h
13239 if test "${HAVE_MENUS}" = "yes" ; then
13241 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
13244 if test "${GNU_MALLOC}" = "yes" ; then
13246 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
13249 if test "${REL_ALLOC}" = "yes" ; then
13251 $as_echo "#define REL_ALLOC 1" >>confdefs.h
13258 #### Report on what we decided to do.
13259 #### Report GTK as a toolkit, even if it doesn't use Xt.
13260 #### It makes printing result more understandable as using GTK sets
13261 #### toolkit_scroll_bars to yes by default.
13262 if test "${HAVE_GTK}" = "yes"; then
13263 USE_X_TOOLKIT=GTK
13266 echo "
13267 Configured for \`${canonical}'.
13269 Where should the build process find the source code? ${srcdir}
13270 What operating system and machine description files should Emacs use?
13271 \`${opsysfile}' and \`${machfile}'
13272 What compiler should emacs be built with? ${CC} ${CFLAGS}
13273 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13274 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
13275 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
13276 What window system should Emacs use? ${window_system}
13277 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
13279 if test -n "${x_includes}"; then
13280 echo " Where do we find X Windows header files? ${x_includes}"
13281 else
13282 echo " Where do we find X Windows header files? Standard dirs"
13284 if test -n "${x_libraries}"; then
13285 echo " Where do we find X Windows libraries? ${x_libraries}"
13286 else
13287 echo " Where do we find X Windows libraries? Standard dirs"
13290 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
13291 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
13292 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
13293 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
13294 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
13295 echo " Does Emacs use -lpng? ${HAVE_PNG}"
13296 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
13297 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
13298 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
13299 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
13301 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
13302 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
13303 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
13304 echo " Does Emacs use -lxft? ${HAVE_XFT}"
13306 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
13307 echo
13309 if test $USE_XASSERTS = yes; then
13310 echo " Compiling with asserts turned on."
13311 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
13314 echo
13316 if test "$HAVE_NS" = "yes"; then
13317 echo
13318 echo "You must run \"make install\" in order to test the built application.
13319 The installed application will go to nextstep/Emacs.app and can be
13320 run or moved from there."
13321 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
13322 echo "The application will be fully self-contained."
13323 else
13324 echo "The lisp resources for the application will be installed under ${prefix}.
13325 You may need to run \"make install\" with sudo. The application will fail
13326 to run if these resources are not installed."
13328 echo
13331 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
13332 echo "D-Bus integration has been tested for GNU/Linux only."
13333 echo
13337 # Remove any trailing slashes in these variables.
13338 test "${prefix}" != NONE &&
13339 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
13340 test "${exec_prefix}" != NONE &&
13341 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
13343 # Now get this: Some word that is part of the ${srcdir} directory name
13344 # or the ${configuration} value might, just might, happen to be an
13345 # identifier like `sun4' or `i386' or something, and be predefined by
13346 # the C preprocessor to some helpful value like 1, or maybe the empty
13347 # string. Needless to say consequent macro substitutions are less
13348 # than conducive to the makefile finding the correct directory.
13349 cpp_undefs="`echo $srcdir $configuration $canonical |
13350 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13351 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
13353 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
13354 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
13355 ## from Makefile.c can correctly provide the arg `-traditional' to the
13356 ## C preprocessor.
13358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359 /* end confdefs.h. */
13360 yes..yes
13361 _ACEOF
13362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13363 $EGREP "yes..yes" >/dev/null 2>&1; then :
13364 CPP_NEED_TRADITIONAL=no
13365 else
13366 CPP_NEED_TRADITIONAL=yes
13368 rm -f conftest*
13371 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
13373 ac_config_commands="$ac_config_commands default"
13375 cat >confcache <<\_ACEOF
13376 # This file is a shell script that caches the results of configure
13377 # tests run on this system so they can be shared between configure
13378 # scripts and configure runs, see configure's option --config-cache.
13379 # It is not useful on other systems. If it contains results you don't
13380 # want to keep, you may remove or edit it.
13382 # config.status only pays attention to the cache file if you give it
13383 # the --recheck option to rerun configure.
13385 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13386 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13387 # following values.
13389 _ACEOF
13391 # The following way of writing the cache mishandles newlines in values,
13392 # but we know of no workaround that is simple, portable, and efficient.
13393 # So, we kill variables containing newlines.
13394 # Ultrix sh set writes to stderr and can't be redirected directly,
13395 # and sets the high bit in the cache file unless we assign to the vars.
13397 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13398 eval ac_val=\$$ac_var
13399 case $ac_val in #(
13400 *${as_nl}*)
13401 case $ac_var in #(
13402 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13403 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13404 esac
13405 case $ac_var in #(
13406 _ | IFS | as_nl) ;; #(
13407 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13408 *) { eval $ac_var=; unset $ac_var;} ;;
13409 esac ;;
13410 esac
13411 done
13413 (set) 2>&1 |
13414 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13415 *${as_nl}ac_space=\ *)
13416 # `set' does not quote correctly, so add quotes: double-quote
13417 # substitution turns \\\\ into \\, and sed turns \\ into \.
13418 sed -n \
13419 "s/'/'\\\\''/g;
13420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13421 ;; #(
13423 # `set' quotes correctly as required by POSIX, so do not add quotes.
13424 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13426 esac |
13427 sort
13429 sed '
13430 /^ac_cv_env_/b end
13431 t clear
13432 :clear
13433 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13434 t end
13435 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13436 :end' >>confcache
13437 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13438 if test -w "$cache_file"; then
13439 test "x$cache_file" != "x/dev/null" &&
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13441 $as_echo "$as_me: updating cache $cache_file" >&6;}
13442 cat confcache >$cache_file
13443 else
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13445 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13448 rm -f confcache
13450 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13451 # Let make expand exec_prefix.
13452 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13454 DEFS=-DHAVE_CONFIG_H
13456 ac_libobjs=
13457 ac_ltlibobjs=
13458 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13459 # 1. Remove the extension, and $U if already installed.
13460 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13461 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13462 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13463 # will be set to the directory where LIBOBJS objects are built.
13464 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13465 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13466 done
13467 LIBOBJS=$ac_libobjs
13469 LTLIBOBJS=$ac_ltlibobjs
13473 : ${CONFIG_STATUS=./config.status}
13474 ac_write_fail=0
13475 ac_clean_files_save=$ac_clean_files
13476 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13478 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13479 as_write_fail=0
13480 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13481 #! $SHELL
13482 # Generated by $as_me.
13483 # Run this file to recreate the current configuration.
13484 # Compiler output produced by configure, useful for debugging
13485 # configure, is in config.log if it exists.
13487 debug=false
13488 ac_cs_recheck=false
13489 ac_cs_silent=false
13491 SHELL=\${CONFIG_SHELL-$SHELL}
13492 export SHELL
13493 _ASEOF
13494 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13495 ## -------------------- ##
13496 ## M4sh Initialization. ##
13497 ## -------------------- ##
13499 # Be more Bourne compatible
13500 DUALCASE=1; export DUALCASE # for MKS sh
13501 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13502 emulate sh
13503 NULLCMD=:
13504 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13505 # is contrary to our usage. Disable this feature.
13506 alias -g '${1+"$@"}'='"$@"'
13507 setopt NO_GLOB_SUBST
13508 else
13509 case `(set -o) 2>/dev/null` in #(
13510 *posix*) :
13511 set -o posix ;; #(
13512 *) :
13514 esac
13518 as_nl='
13520 export as_nl
13521 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13522 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13523 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13524 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13525 # Prefer a ksh shell builtin over an external printf program on Solaris,
13526 # but without wasting forks for bash or zsh.
13527 if test -z "$BASH_VERSION$ZSH_VERSION" \
13528 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13529 as_echo='print -r --'
13530 as_echo_n='print -rn --'
13531 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13532 as_echo='printf %s\n'
13533 as_echo_n='printf %s'
13534 else
13535 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13536 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13537 as_echo_n='/usr/ucb/echo -n'
13538 else
13539 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13540 as_echo_n_body='eval
13541 arg=$1;
13542 case $arg in #(
13543 *"$as_nl"*)
13544 expr "X$arg" : "X\\(.*\\)$as_nl";
13545 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13546 esac;
13547 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13549 export as_echo_n_body
13550 as_echo_n='sh -c $as_echo_n_body as_echo'
13552 export as_echo_body
13553 as_echo='sh -c $as_echo_body as_echo'
13556 # The user is always right.
13557 if test "${PATH_SEPARATOR+set}" != set; then
13558 PATH_SEPARATOR=:
13559 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13560 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13561 PATH_SEPARATOR=';'
13566 # IFS
13567 # We need space, tab and new line, in precisely that order. Quoting is
13568 # there to prevent editors from complaining about space-tab.
13569 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13570 # splitting by setting IFS to empty value.)
13571 IFS=" "" $as_nl"
13573 # Find who we are. Look in the path if we contain no directory separator.
13574 case $0 in #((
13575 *[\\/]* ) as_myself=$0 ;;
13576 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13577 for as_dir in $PATH
13579 IFS=$as_save_IFS
13580 test -z "$as_dir" && as_dir=.
13581 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13582 done
13583 IFS=$as_save_IFS
13586 esac
13587 # We did not find ourselves, most probably we were run as `sh COMMAND'
13588 # in which case we are not to be found in the path.
13589 if test "x$as_myself" = x; then
13590 as_myself=$0
13592 if test ! -f "$as_myself"; then
13593 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13594 exit 1
13597 # Unset variables that we do not need and which cause bugs (e.g. in
13598 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13599 # suppresses any "Segmentation fault" message there. '((' could
13600 # trigger a bug in pdksh 5.2.14.
13601 for as_var in BASH_ENV ENV MAIL MAILPATH
13602 do eval test x\${$as_var+set} = xset \
13603 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13604 done
13605 PS1='$ '
13606 PS2='> '
13607 PS4='+ '
13609 # NLS nuisances.
13610 LC_ALL=C
13611 export LC_ALL
13612 LANGUAGE=C
13613 export LANGUAGE
13615 # CDPATH.
13616 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13619 # as_fn_error ERROR [LINENO LOG_FD]
13620 # ---------------------------------
13621 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13622 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13623 # script with status $?, using 1 if that was 0.
13624 as_fn_error ()
13626 as_status=$?; test $as_status -eq 0 && as_status=1
13627 if test "$3"; then
13628 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13629 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13631 $as_echo "$as_me: error: $1" >&2
13632 as_fn_exit $as_status
13633 } # as_fn_error
13636 # as_fn_set_status STATUS
13637 # -----------------------
13638 # Set $? to STATUS, without forking.
13639 as_fn_set_status ()
13641 return $1
13642 } # as_fn_set_status
13644 # as_fn_exit STATUS
13645 # -----------------
13646 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13647 as_fn_exit ()
13649 set +e
13650 as_fn_set_status $1
13651 exit $1
13652 } # as_fn_exit
13654 # as_fn_unset VAR
13655 # ---------------
13656 # Portably unset VAR.
13657 as_fn_unset ()
13659 { eval $1=; unset $1;}
13661 as_unset=as_fn_unset
13662 # as_fn_append VAR VALUE
13663 # ----------------------
13664 # Append the text in VALUE to the end of the definition contained in VAR. Take
13665 # advantage of any shell optimizations that allow amortized linear growth over
13666 # repeated appends, instead of the typical quadratic growth present in naive
13667 # implementations.
13668 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13669 eval 'as_fn_append ()
13671 eval $1+=\$2
13673 else
13674 as_fn_append ()
13676 eval $1=\$$1\$2
13678 fi # as_fn_append
13680 # as_fn_arith ARG...
13681 # ------------------
13682 # Perform arithmetic evaluation on the ARGs, and store the result in the
13683 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13684 # must be portable across $(()) and expr.
13685 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13686 eval 'as_fn_arith ()
13688 as_val=$(( $* ))
13690 else
13691 as_fn_arith ()
13693 as_val=`expr "$@" || test $? -eq 1`
13695 fi # as_fn_arith
13698 if expr a : '\(a\)' >/dev/null 2>&1 &&
13699 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13700 as_expr=expr
13701 else
13702 as_expr=false
13705 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13706 as_basename=basename
13707 else
13708 as_basename=false
13711 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13712 as_dirname=dirname
13713 else
13714 as_dirname=false
13717 as_me=`$as_basename -- "$0" ||
13718 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13719 X"$0" : 'X\(//\)$' \| \
13720 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13721 $as_echo X/"$0" |
13722 sed '/^.*\/\([^/][^/]*\)\/*$/{
13723 s//\1/
13726 /^X\/\(\/\/\)$/{
13727 s//\1/
13730 /^X\/\(\/\).*/{
13731 s//\1/
13734 s/.*/./; q'`
13736 # Avoid depending upon Character Ranges.
13737 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13738 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13739 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13740 as_cr_digits='0123456789'
13741 as_cr_alnum=$as_cr_Letters$as_cr_digits
13743 ECHO_C= ECHO_N= ECHO_T=
13744 case `echo -n x` in #(((((
13745 -n*)
13746 case `echo 'xy\c'` in
13747 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13748 xy) ECHO_C='\c';;
13749 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13750 ECHO_T=' ';;
13751 esac;;
13753 ECHO_N='-n';;
13754 esac
13756 rm -f conf$$ conf$$.exe conf$$.file
13757 if test -d conf$$.dir; then
13758 rm -f conf$$.dir/conf$$.file
13759 else
13760 rm -f conf$$.dir
13761 mkdir conf$$.dir 2>/dev/null
13763 if (echo >conf$$.file) 2>/dev/null; then
13764 if ln -s conf$$.file conf$$ 2>/dev/null; then
13765 as_ln_s='ln -s'
13766 # ... but there are two gotchas:
13767 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13768 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13769 # In both cases, we have to default to `cp -p'.
13770 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13771 as_ln_s='cp -p'
13772 elif ln conf$$.file conf$$ 2>/dev/null; then
13773 as_ln_s=ln
13774 else
13775 as_ln_s='cp -p'
13777 else
13778 as_ln_s='cp -p'
13780 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13781 rmdir conf$$.dir 2>/dev/null
13784 # as_fn_mkdir_p
13785 # -------------
13786 # Create "$as_dir" as a directory, including parents if necessary.
13787 as_fn_mkdir_p ()
13790 case $as_dir in #(
13791 -*) as_dir=./$as_dir;;
13792 esac
13793 test -d "$as_dir" || eval $as_mkdir_p || {
13794 as_dirs=
13795 while :; do
13796 case $as_dir in #(
13797 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13798 *) as_qdir=$as_dir;;
13799 esac
13800 as_dirs="'$as_qdir' $as_dirs"
13801 as_dir=`$as_dirname -- "$as_dir" ||
13802 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13803 X"$as_dir" : 'X\(//\)[^/]' \| \
13804 X"$as_dir" : 'X\(//\)$' \| \
13805 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13806 $as_echo X"$as_dir" |
13807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13808 s//\1/
13811 /^X\(\/\/\)[^/].*/{
13812 s//\1/
13815 /^X\(\/\/\)$/{
13816 s//\1/
13819 /^X\(\/\).*/{
13820 s//\1/
13823 s/.*/./; q'`
13824 test -d "$as_dir" && break
13825 done
13826 test -z "$as_dirs" || eval "mkdir $as_dirs"
13827 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13830 } # as_fn_mkdir_p
13831 if mkdir -p . 2>/dev/null; then
13832 as_mkdir_p='mkdir -p "$as_dir"'
13833 else
13834 test -d ./-p && rmdir ./-p
13835 as_mkdir_p=false
13838 if test -x / >/dev/null 2>&1; then
13839 as_test_x='test -x'
13840 else
13841 if ls -dL / >/dev/null 2>&1; then
13842 as_ls_L_option=L
13843 else
13844 as_ls_L_option=
13846 as_test_x='
13847 eval sh -c '\''
13848 if test -d "$1"; then
13849 test -d "$1/.";
13850 else
13851 case $1 in #(
13852 -*)set "./$1";;
13853 esac;
13854 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13855 ???[sx]*):;;*)false;;esac;fi
13856 '\'' sh
13859 as_executable_p=$as_test_x
13861 # Sed expression to map a string onto a valid CPP name.
13862 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13864 # Sed expression to map a string onto a valid variable name.
13865 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13868 exec 6>&1
13869 ## ----------------------------------- ##
13870 ## Main body of $CONFIG_STATUS script. ##
13871 ## ----------------------------------- ##
13872 _ASEOF
13873 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13876 # Save the log message, to keep $0 and so on meaningful, and to
13877 # report actual input values of CONFIG_FILES etc. instead of their
13878 # values after options handling.
13879 ac_log="
13880 This file was extended by emacs $as_me 24.0.50, which was
13881 generated by GNU Autoconf 2.64. Invocation command line was
13883 CONFIG_FILES = $CONFIG_FILES
13884 CONFIG_HEADERS = $CONFIG_HEADERS
13885 CONFIG_LINKS = $CONFIG_LINKS
13886 CONFIG_COMMANDS = $CONFIG_COMMANDS
13887 $ $0 $@
13889 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13892 _ACEOF
13894 case $ac_config_files in *"
13895 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13896 esac
13898 case $ac_config_headers in *"
13899 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13900 esac
13903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13904 # Files that config.status was made for.
13905 config_files="$ac_config_files"
13906 config_headers="$ac_config_headers"
13907 config_commands="$ac_config_commands"
13909 _ACEOF
13911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13912 ac_cs_usage="\
13913 \`$as_me' instantiates files and other configuration actions
13914 from templates according to the current configuration. Unless the files
13915 and actions are specified as TAGs, all are instantiated by default.
13917 Usage: $0 [OPTION]... [TAG]...
13919 -h, --help print this help, then exit
13920 -V, --version print version number and configuration settings, then exit
13921 -q, --quiet, --silent
13922 do not print progress messages
13923 -d, --debug don't remove temporary files
13924 --recheck update $as_me by reconfiguring in the same conditions
13925 --file=FILE[:TEMPLATE]
13926 instantiate the configuration file FILE
13927 --header=FILE[:TEMPLATE]
13928 instantiate the configuration header FILE
13930 Configuration files:
13931 $config_files
13933 Configuration headers:
13934 $config_headers
13936 Configuration commands:
13937 $config_commands
13939 Report bugs to the package provider."
13941 _ACEOF
13942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13943 ac_cs_version="\\
13944 emacs config.status 24.0.50
13945 configured by $0, generated by GNU Autoconf 2.64,
13946 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13948 Copyright (C) 2009 Free Software Foundation, Inc.
13949 This config.status script is free software; the Free Software Foundation
13950 gives unlimited permission to copy, distribute and modify it."
13952 ac_pwd='$ac_pwd'
13953 srcdir='$srcdir'
13954 INSTALL='$INSTALL'
13955 test -n "\$AWK" || AWK=awk
13956 _ACEOF
13958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13959 # The default lists apply if the user does not specify any file.
13960 ac_need_defaults=:
13961 while test $# != 0
13963 case $1 in
13964 --*=*)
13965 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13966 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13967 ac_shift=:
13970 ac_option=$1
13971 ac_optarg=$2
13972 ac_shift=shift
13974 esac
13976 case $ac_option in
13977 # Handling of the options.
13978 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13979 ac_cs_recheck=: ;;
13980 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13981 $as_echo "$ac_cs_version"; exit ;;
13982 --debug | --debu | --deb | --de | --d | -d )
13983 debug=: ;;
13984 --file | --fil | --fi | --f )
13985 $ac_shift
13986 case $ac_optarg in
13987 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13988 esac
13989 as_fn_append CONFIG_FILES " '$ac_optarg'"
13990 ac_need_defaults=false;;
13991 --header | --heade | --head | --hea )
13992 $ac_shift
13993 case $ac_optarg in
13994 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13995 esac
13996 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13997 ac_need_defaults=false;;
13998 --he | --h)
13999 # Conflict between --help and --header
14000 as_fn_error "ambiguous option: \`$1'
14001 Try \`$0 --help' for more information.";;
14002 --help | --hel | -h )
14003 $as_echo "$ac_cs_usage"; exit ;;
14004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14005 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14006 ac_cs_silent=: ;;
14008 # This is an error.
14009 -*) as_fn_error "unrecognized option: \`$1'
14010 Try \`$0 --help' for more information." ;;
14012 *) as_fn_append ac_config_targets " $1"
14013 ac_need_defaults=false ;;
14015 esac
14016 shift
14017 done
14019 ac_configure_extra_args=
14021 if $ac_cs_silent; then
14022 exec 6>/dev/null
14023 ac_configure_extra_args="$ac_configure_extra_args --silent"
14026 _ACEOF
14027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14028 if \$ac_cs_recheck; then
14029 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14030 shift
14031 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14032 CONFIG_SHELL='$SHELL'
14033 export CONFIG_SHELL
14034 exec "\$@"
14037 _ACEOF
14038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14039 exec 5>>config.log
14041 echo
14042 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14043 ## Running $as_me. ##
14044 _ASBOX
14045 $as_echo "$ac_log"
14046 } >&5
14048 _ACEOF
14049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14051 # INIT-COMMANDS
14053 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
14055 _ACEOF
14057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14059 # Handling of arguments.
14060 for ac_config_target in $ac_config_targets
14062 case $ac_config_target in
14063 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
14064 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14065 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
14066 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
14067 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
14068 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
14069 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
14070 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
14071 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
14072 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
14073 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
14074 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
14075 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14077 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14078 esac
14079 done
14082 # If the user did not use the arguments to specify the items to instantiate,
14083 # then the envvar interface is used. Set only those that are not.
14084 # We use the long form for the default assignment because of an extremely
14085 # bizarre bug on SunOS 4.1.3.
14086 if $ac_need_defaults; then
14087 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14088 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14089 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14092 # Have a temporary directory for convenience. Make it in the build tree
14093 # simply because there is no reason against having it here, and in addition,
14094 # creating and moving files from /tmp can sometimes cause problems.
14095 # Hook for its removal unless debugging.
14096 # Note that there is a small window in which the directory will not be cleaned:
14097 # after its creation but before its name has been assigned to `$tmp'.
14098 $debug ||
14100 tmp=
14101 trap 'exit_status=$?
14102 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14104 trap 'as_fn_exit 1' 1 2 13 15
14106 # Create a (secure) tmp directory for tmp files.
14109 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14110 test -n "$tmp" && test -d "$tmp"
14111 } ||
14113 tmp=./conf$$-$RANDOM
14114 (umask 077 && mkdir "$tmp")
14115 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14117 # Set up the scripts for CONFIG_FILES section.
14118 # No need to generate them if there are no CONFIG_FILES.
14119 # This happens for instance with `./config.status config.h'.
14120 if test -n "$CONFIG_FILES"; then
14123 ac_cr=`echo X | tr X '\015'`
14124 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14125 # But we know of no other shell where ac_cr would be empty at this
14126 # point, so we can use a bashism as a fallback.
14127 if test "x$ac_cr" = x; then
14128 eval ac_cr=\$\'\\r\'
14130 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14131 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14132 ac_cs_awk_cr='\r'
14133 else
14134 ac_cs_awk_cr=$ac_cr
14137 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14138 _ACEOF
14142 echo "cat >conf$$subs.awk <<_ACEOF" &&
14143 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14144 echo "_ACEOF"
14145 } >conf$$subs.sh ||
14146 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14147 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14148 ac_delim='%!_!# '
14149 for ac_last_try in false false false false false :; do
14150 . ./conf$$subs.sh ||
14151 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14153 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14154 if test $ac_delim_n = $ac_delim_num; then
14155 break
14156 elif $ac_last_try; then
14157 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14158 else
14159 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14161 done
14162 rm -f conf$$subs.sh
14164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14165 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14166 _ACEOF
14167 sed -n '
14169 s/^/S["/; s/!.*/"]=/
14172 s/^[^!]*!//
14173 :repl
14174 t repl
14175 s/'"$ac_delim"'$//
14176 t delim
14179 s/\(.\{148\}\).*/\1/
14180 t more1
14181 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14184 b repl
14185 :more1
14186 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14189 s/.\{148\}//
14190 t nl
14191 :delim
14193 s/\(.\{148\}\).*/\1/
14194 t more2
14195 s/["\\]/\\&/g; s/^/"/; s/$/"/
14198 :more2
14199 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14202 s/.\{148\}//
14203 t delim
14204 ' <conf$$subs.awk | sed '
14205 /^[^""]/{
14207 s/\n//
14209 ' >>$CONFIG_STATUS || ac_write_fail=1
14210 rm -f conf$$subs.awk
14211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14212 _ACAWK
14213 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14214 for (key in S) S_is_set[key] = 1
14215 FS = "\a"
14219 line = $ 0
14220 nfields = split(line, field, "@")
14221 substed = 0
14222 len = length(field[1])
14223 for (i = 2; i < nfields; i++) {
14224 key = field[i]
14225 keylen = length(key)
14226 if (S_is_set[key]) {
14227 value = S[key]
14228 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14229 len += length(value) + length(field[++i])
14230 substed = 1
14231 } else
14232 len += 1 + keylen
14235 print line
14238 _ACAWK
14239 _ACEOF
14240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14241 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14242 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14243 else
14245 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14246 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14247 _ACEOF
14249 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14250 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14251 # trailing colons and then remove the whole line if VPATH becomes empty
14252 # (actually we leave an empty line to preserve line numbers).
14253 if test "x$srcdir" = x.; then
14254 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14255 s/:*\$(srcdir):*/:/
14256 s/:*\${srcdir}:*/:/
14257 s/:*@srcdir@:*/:/
14258 s/^\([^=]*=[ ]*\):*/\1/
14259 s/:*$//
14260 s/^[^=]*=[ ]*$//
14264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14265 fi # test -n "$CONFIG_FILES"
14267 # Set up the scripts for CONFIG_HEADERS section.
14268 # No need to generate them if there are no CONFIG_HEADERS.
14269 # This happens for instance with `./config.status Makefile'.
14270 if test -n "$CONFIG_HEADERS"; then
14271 cat >"$tmp/defines.awk" <<\_ACAWK ||
14272 BEGIN {
14273 _ACEOF
14275 # Transform confdefs.h into an awk script `defines.awk', embedded as
14276 # here-document in config.status, that substitutes the proper values into
14277 # config.h.in to produce config.h.
14279 # Create a delimiter string that does not exist in confdefs.h, to ease
14280 # handling of long lines.
14281 ac_delim='%!_!# '
14282 for ac_last_try in false false :; do
14283 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14284 if test -z "$ac_t"; then
14285 break
14286 elif $ac_last_try; then
14287 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14288 else
14289 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14291 done
14293 # For the awk script, D is an array of macro values keyed by name,
14294 # likewise P contains macro parameters if any. Preserve backslash
14295 # newline sequences.
14297 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14298 sed -n '
14299 s/.\{148\}/&'"$ac_delim"'/g
14300 t rset
14301 :rset
14302 s/^[ ]*#[ ]*define[ ][ ]*/ /
14303 t def
14305 :def
14306 s/\\$//
14307 t bsnl
14308 s/["\\]/\\&/g
14309 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14310 D["\1"]=" \3"/p
14311 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14313 :bsnl
14314 s/["\\]/\\&/g
14315 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14316 D["\1"]=" \3\\\\\\n"\\/p
14317 t cont
14318 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14319 t cont
14321 :cont
14323 s/.\{148\}/&'"$ac_delim"'/g
14324 t clear
14325 :clear
14326 s/\\$//
14327 t bsnlc
14328 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14330 :bsnlc
14331 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14332 b cont
14333 ' <confdefs.h | sed '
14334 s/'"$ac_delim"'/"\\\
14335 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14338 for (key in D) D_is_set[key] = 1
14339 FS = "\a"
14341 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14342 line = \$ 0
14343 split(line, arg, " ")
14344 if (arg[1] == "#") {
14345 defundef = arg[2]
14346 mac1 = arg[3]
14347 } else {
14348 defundef = substr(arg[1], 2)
14349 mac1 = arg[2]
14351 split(mac1, mac2, "(") #)
14352 macro = mac2[1]
14353 prefix = substr(line, 1, index(line, defundef) - 1)
14354 if (D_is_set[macro]) {
14355 # Preserve the white space surrounding the "#".
14356 print prefix "define", macro P[macro] D[macro]
14357 next
14358 } else {
14359 # Replace #undef with comments. This is necessary, for example,
14360 # in the case of _POSIX_SOURCE, which is predefined and required
14361 # on some systems where configure will not decide to define it.
14362 if (defundef == "undef") {
14363 print "/*", prefix defundef, macro, "*/"
14364 next
14368 { print }
14369 _ACAWK
14370 _ACEOF
14371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14372 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14373 fi # test -n "$CONFIG_HEADERS"
14376 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14377 shift
14378 for ac_tag
14380 case $ac_tag in
14381 :[FHLC]) ac_mode=$ac_tag; continue;;
14382 esac
14383 case $ac_mode$ac_tag in
14384 :[FHL]*:*);;
14385 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14386 :[FH]-) ac_tag=-:-;;
14387 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14388 esac
14389 ac_save_IFS=$IFS
14390 IFS=:
14391 set x $ac_tag
14392 IFS=$ac_save_IFS
14393 shift
14394 ac_file=$1
14395 shift
14397 case $ac_mode in
14398 :L) ac_source=$1;;
14399 :[FH])
14400 ac_file_inputs=
14401 for ac_f
14403 case $ac_f in
14404 -) ac_f="$tmp/stdin";;
14405 *) # Look for the file first in the build tree, then in the source tree
14406 # (if the path is not absolute). The absolute path cannot be DOS-style,
14407 # because $ac_f cannot contain `:'.
14408 test -f "$ac_f" ||
14409 case $ac_f in
14410 [\\/$]*) false;;
14411 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14412 esac ||
14413 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14414 esac
14415 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14416 as_fn_append ac_file_inputs " '$ac_f'"
14417 done
14419 # Let's still pretend it is `configure' which instantiates (i.e., don't
14420 # use $as_me), people would be surprised to read:
14421 # /* config.h. Generated by config.status. */
14422 configure_input='Generated from '`
14423 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14424 `' by configure.'
14425 if test x"$ac_file" != x-; then
14426 configure_input="$ac_file. $configure_input"
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14428 $as_echo "$as_me: creating $ac_file" >&6;}
14430 # Neutralize special characters interpreted by sed in replacement strings.
14431 case $configure_input in #(
14432 *\&* | *\|* | *\\* )
14433 ac_sed_conf_input=`$as_echo "$configure_input" |
14434 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14435 *) ac_sed_conf_input=$configure_input;;
14436 esac
14438 case $ac_tag in
14439 *:-:* | *:-) cat >"$tmp/stdin" \
14440 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14441 esac
14443 esac
14445 ac_dir=`$as_dirname -- "$ac_file" ||
14446 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14447 X"$ac_file" : 'X\(//\)[^/]' \| \
14448 X"$ac_file" : 'X\(//\)$' \| \
14449 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14450 $as_echo X"$ac_file" |
14451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14452 s//\1/
14455 /^X\(\/\/\)[^/].*/{
14456 s//\1/
14459 /^X\(\/\/\)$/{
14460 s//\1/
14463 /^X\(\/\).*/{
14464 s//\1/
14467 s/.*/./; q'`
14468 as_dir="$ac_dir"; as_fn_mkdir_p
14469 ac_builddir=.
14471 case "$ac_dir" in
14472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14474 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14475 # A ".." for each directory in $ac_dir_suffix.
14476 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14477 case $ac_top_builddir_sub in
14478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14480 esac ;;
14481 esac
14482 ac_abs_top_builddir=$ac_pwd
14483 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14484 # for backward compatibility:
14485 ac_top_builddir=$ac_top_build_prefix
14487 case $srcdir in
14488 .) # We are building in place.
14489 ac_srcdir=.
14490 ac_top_srcdir=$ac_top_builddir_sub
14491 ac_abs_top_srcdir=$ac_pwd ;;
14492 [\\/]* | ?:[\\/]* ) # Absolute name.
14493 ac_srcdir=$srcdir$ac_dir_suffix;
14494 ac_top_srcdir=$srcdir
14495 ac_abs_top_srcdir=$srcdir ;;
14496 *) # Relative name.
14497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14498 ac_top_srcdir=$ac_top_build_prefix$srcdir
14499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14500 esac
14501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14504 case $ac_mode in
14507 # CONFIG_FILE
14510 case $INSTALL in
14511 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14512 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14513 esac
14514 _ACEOF
14516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14517 # If the template does not know about datarootdir, expand it.
14518 # FIXME: This hack should be removed a few years after 2.60.
14519 ac_datarootdir_hack=; ac_datarootdir_seen=
14520 ac_sed_dataroot='
14521 /datarootdir/ {
14525 /@datadir@/p
14526 /@docdir@/p
14527 /@infodir@/p
14528 /@localedir@/p
14529 /@mandir@/p'
14530 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14531 *datarootdir*) ac_datarootdir_seen=yes;;
14532 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14534 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14535 _ACEOF
14536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14537 ac_datarootdir_hack='
14538 s&@datadir@&$datadir&g
14539 s&@docdir@&$docdir&g
14540 s&@infodir@&$infodir&g
14541 s&@localedir@&$localedir&g
14542 s&@mandir@&$mandir&g
14543 s&\\\${datarootdir}&$datarootdir&g' ;;
14544 esac
14545 _ACEOF
14547 # Neutralize VPATH when `$srcdir' = `.'.
14548 # Shell code in configure.ac might set extrasub.
14549 # FIXME: do we really want to maintain this feature?
14550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14551 ac_sed_extra="$ac_vpsub
14552 $extrasub
14553 _ACEOF
14554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14556 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14557 s|@configure_input@|$ac_sed_conf_input|;t t
14558 s&@top_builddir@&$ac_top_builddir_sub&;t t
14559 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14560 s&@srcdir@&$ac_srcdir&;t t
14561 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14562 s&@top_srcdir@&$ac_top_srcdir&;t t
14563 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14564 s&@builddir@&$ac_builddir&;t t
14565 s&@abs_builddir@&$ac_abs_builddir&;t t
14566 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14567 s&@INSTALL@&$ac_INSTALL&;t t
14568 $ac_datarootdir_hack
14570 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14571 || as_fn_error "could not create $ac_file" "$LINENO" 5
14573 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14574 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14575 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14577 which seems to be undefined. Please make sure it is defined." >&5
14578 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14579 which seems to be undefined. Please make sure it is defined." >&2;}
14581 rm -f "$tmp/stdin"
14582 case $ac_file in
14583 -) cat "$tmp/out" && rm -f "$tmp/out";;
14584 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14585 esac \
14586 || as_fn_error "could not create $ac_file" "$LINENO" 5
14590 # CONFIG_HEADER
14592 if test x"$ac_file" != x-; then
14594 $as_echo "/* $configure_input */" \
14595 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14596 } >"$tmp/config.h" \
14597 || as_fn_error "could not create $ac_file" "$LINENO" 5
14598 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14600 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14601 else
14602 rm -f "$ac_file"
14603 mv "$tmp/config.h" "$ac_file" \
14604 || as_fn_error "could not create $ac_file" "$LINENO" 5
14606 else
14607 $as_echo "/* $configure_input */" \
14608 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14609 || as_fn_error "could not create -" "$LINENO" 5
14613 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14614 $as_echo "$as_me: executing $ac_file commands" >&6;}
14616 esac
14619 case $ac_file$ac_mode in
14620 "default":C)
14622 ### Make the necessary directories, if they don't exist.
14623 for dir in etc lisp ; do
14624 test -d ${dir} || mkdir ${dir}
14625 done
14627 # Build src/Makefile from ${srcdir}/src/Makefile.c
14628 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
14629 # This must be done after src/config.h is built, since we rely on that file.
14631 echo creating src/epaths.h
14632 ${MAKE-make} epaths-force
14634 # As of 2000-11-19, newest development versions of GNU cpp preprocess
14635 # `..' to `. .' unless invoked with -traditional
14637 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
14638 CPPFLAGS="$CPPFLAGS -traditional"
14641 echo creating lib-src/Makefile
14642 ( cd lib-src
14643 rm -f junk.c junk1.c junk2.c
14644 sed -e '/start of cpp stuff/q' \
14645 < Makefile.c > junk1.c
14646 sed -e '1,/start of cpp stuff/d'\
14647 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
14648 < Makefile.c > junk.c
14649 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
14650 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
14651 cat junk1.c junk2.c > Makefile.new
14652 rm -f junk.c junk1.c junk2.c
14653 chmod 444 Makefile.new
14654 mv -f Makefile.new Makefile
14657 echo creating src/Makefile
14658 ( cd src
14659 rm -f junk.c junk1.c junk2.c
14660 sed -e '/start of cpp stuff/q' \
14661 < Makefile.c > junk1.c
14662 sed -e '1,/start of cpp stuff/d'\
14663 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
14664 < Makefile.c > junk.c
14665 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
14666 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
14667 cat junk1.c junk2.c > Makefile.new
14668 rm -f junk.c junk1.c junk2.c
14669 chmod 444 Makefile.new
14670 mv -f Makefile.new Makefile
14673 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
14674 echo creating src/.gdbinit
14675 echo source $srcdir/src/.gdbinit > src/.gdbinit
14680 esac
14681 done # for ac_tag
14684 as_fn_exit 0
14685 _ACEOF
14686 ac_clean_files=$ac_clean_files_save
14688 test $ac_write_fail = 0 ||
14689 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14692 # configure is writing to config.log, and then calls config.status.
14693 # config.status does its own redirection, appending to config.log.
14694 # Unfortunately, on DOS this fails, as config.log is still kept open
14695 # by configure, so config.status won't be able to write to it; its
14696 # output is simply discarded. So we exec the FD to /dev/null,
14697 # effectively closing config.log, so it can be properly (re)opened and
14698 # appended to by config.status. When coming back to configure, we
14699 # need to make the FD available again.
14700 if test "$no_create" != yes; then
14701 ac_cs_success=:
14702 ac_config_status_args=
14703 test "$silent" = yes &&
14704 ac_config_status_args="$ac_config_status_args --quiet"
14705 exec 5>/dev/null
14706 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14707 exec 5>>config.log
14708 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14709 # would make configure fail if this is the last instruction.
14710 $ac_cs_success || as_fn_exit $?
14712 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14714 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}