Restore files that I seem to have mistakenly deleted.
[bpt/emacs.git] / configure
CommitLineData
067d23c9
KY
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for emacs 24.0.50.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8# Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101IFS=$as_save_IFS
102
103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235 fi
236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
359# as_fn_error ERROR [LINENO LOG_FD]
360# ---------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with status $?, using 1 if that was 0.
364as_fn_error ()
365{
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378else
379 as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384else
385 as_basename=false
386fi
387
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
393
394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398$as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450}
451
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461*)
462 ECHO_N='-n';;
463esac
464
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471fi
472if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486else
487 as_ln_s='cp -p'
488fi
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
491
492if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497fi
498
499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519fi
520as_executable_p=$as_test_x
521
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
531
532# Name of the host.
533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537#
538# Initializations.
539#
540ac_default_prefix=/usr/local
541ac_clean_files=
542ac_config_libobj_dir=.
543LIBOBJS=
544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
548
549# Identity of this package.
550PACKAGE_NAME='emacs'
551PACKAGE_TARNAME='emacs'
552PACKAGE_VERSION='24.0.50'
553PACKAGE_STRING='emacs 24.0.50'
554PACKAGE_BUGREPORT=''
555PACKAGE_URL=''
556
557ac_unique_file="src/lisp.h"
558# Factoring default headers for most tests.
559ac_includes_default="\
560#include <stdio.h>
561#ifdef HAVE_SYS_TYPES_H
562# include <sys/types.h>
563#endif
564#ifdef HAVE_SYS_STAT_H
565# include <sys/stat.h>
566#endif
567#ifdef STDC_HEADERS
568# include <stdlib.h>
569# include <stddef.h>
570#else
571# ifdef HAVE_STDLIB_H
572# include <stdlib.h>
573# endif
574#endif
575#ifdef HAVE_STRING_H
576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577# include <memory.h>
578# endif
579# include <string.h>
580#endif
581#ifdef HAVE_STRINGS_H
582# include <strings.h>
583#endif
584#ifdef HAVE_INTTYPES_H
585# include <inttypes.h>
586#endif
587#ifdef HAVE_STDINT_H
588# include <stdint.h>
589#endif
590#ifdef HAVE_UNISTD_H
591# include <unistd.h>
592#endif"
593
594ac_config_libobj_dir=src
595ac_header_list=
596ac_func_list=
597ac_subst_vars='LTLIBOBJS
598WINDOW_SUPPORT
599TOOLTIP_SUPPORT
600MOUSE_SUPPORT
601LIB_GCC
602LD_FIRSTFLAG
603LD_SWITCH_SYSTEM_TEMACS
604POST_ALLOC_OBJ
605PRE_ALLOC_OBJ
606CYGWIN_OBJ
607RALLOC_OBJ
608OLDXMENU_DEPS
609LIBX_OTHER
610LIBXMENU
611OLDXMENU
612OLDXMENU_TARGET
613LIBXT_OTHER
614TOOLKIT_LIBW
615WIDGET_OBJ
616XOBJ
617XMENU_OBJ
618FONT_OBJ
619OTHER_FILES
620GNU_OBJC_CFLAGS
621ns_appsrc
622ns_appresdir
623ns_appbindir
624ns_appdir
625opsysfile
626machfile
627X_TOOLKIT_TYPE
628C_SWITCH_X_SYSTEM
629C_SWITCH_X_SITE
630LD_SWITCH_X_SITE
631gameuser
632gamedir
633bitmapdir
634archlibdir
635etcdir
636x_default_search_path
637lisppath
638locallisppath
639lispdir
640srcdir
641canonical
642configuration
643version
644KRB4LIB
645DESLIB
646KRB5LIB
647CRYPTOLIB
648COM_ERRLIB
649LIBRESOLV
650LIBHESIOD
651TERMCAP_OBJ
652LIBS_TERMCAP
653GETOPTOBJS
654GETOPT_H
655GETLOADAVG_LIBS
656KMEM_GROUP
657NEED_SETGID
658LIBOBJS
659BLESSMAIL_TARGET
660LIBS_MAIL
661liblockfile
662ALLOCA
663LIBXML2_LIBS
664LIBXML2_CFLAGS
665LIBXSM
666LIBGPM
667LIBGIF
668LIBTIFF
669LIBPNG
670LIBJPEG
671LIBXPM
672FREETYPE_LIBS
673FREETYPE_CFLAGS
674M17N_FLT_LIBS
675M17N_FLT_CFLAGS
676LIBOTF_LIBS
677LIBOTF_CFLAGS
678XFT_LIBS
679XFT_CFLAGS
680FONTCONFIG_LIBS
681FONTCONFIG_CFLAGS
682LIBXMU
683LIBXTR6
684LIBGNUTLS_LIBS
685LIBGNUTLS_CFLAGS
686LIBSELINUX_LIBS
687GCONF_LIBS
688GCONF_CFLAGS
689DBUS_OBJ
690DBUS_LIBS
691DBUS_CFLAGS
692GTK_OBJ
693GTK_LIBS
694GTK_CFLAGS
695IMAGEMAGICK_LIBS
696IMAGEMAGICK_CFLAGS
697RSVG_LIBS
698RSVG_CFLAGS
699VMLIMIT_OBJ
700GMALLOC_OBJ
701HAVE_XSERVER
702LIB_STANDARD
703NS_SUPPORT
704NS_OBJ
705TEMACS_LDFLAGS2
706LD_SWITCH_X_SITE_AUX_RPATH
707LD_SWITCH_X_SITE_AUX
708XMKMF
709DEPFLAGS
710MKDEPDIR
711SET_MAKE
712CFLAGS_SOUND
713ALSA_LIBS
714ALSA_CFLAGS
715PKG_CONFIG
716LIBSOUND
717START_FILES
718LIB_MATH
719CRT_DIR
720LIBS_SYSTEM
721C_SWITCH_SYSTEM
722UNEXEC_OBJ
723C_SWITCH_MACHINE
724LD_SWITCH_SYSTEM
725CANNOT_DUMP
726MAKEINFO
727GZIP_PROG
728INSTALL_INFO
729RANLIB
730INSTALL_DATA
731INSTALL_SCRIPT
732INSTALL_PROGRAM
733C_WARNINGS_SWITCH
734EGREP
735GREP
736CPP
737OBJEXT
738EXEEXT
739ac_ct_CC
740CPPFLAGS
741LDFLAGS
742CFLAGS
743CC
744host_os
745host_vendor
746host_cpu
747host
748build_os
749build_vendor
750build_cpu
751build
752PROFILING_CFLAGS
753MAINT
754GZIP_INFO
755target_alias
756host_alias
757build_alias
758LIBS
759ECHO_T
760ECHO_N
761ECHO_C
762DEFS
763mandir
764localedir
765libdir
766psdir
767pdfdir
768dvidir
769htmldir
770infodir
771docdir
772oldincludedir
773includedir
774localstatedir
775sharedstatedir
776sysconfdir
777datadir
778datarootdir
779libexecdir
780sbindir
781bindir
782program_transform_name
783prefix
784exec_prefix
785PACKAGE_URL
786PACKAGE_BUGREPORT
787PACKAGE_STRING
788PACKAGE_VERSION
789PACKAGE_TARNAME
790PACKAGE_NAME
791PATH_SEPARATOR
792SHELL'
793ac_subst_files='deps_frag
794ns_frag'
795ac_user_opts='
796enable_option_checking
797with_pop
798with_kerberos
799with_kerberos5
800with_hesiod
801with_mmdf
802with_mail_unlink
803with_mailhost
804with_sound
805with_sync_input
806with_x_toolkit
807with_xpm
808with_jpeg
809with_tiff
810with_gif
811with_png
812with_rsvg
813with_xml2
814with_imagemagick
815with_xft
816with_libotf
817with_m17n_flt
818with_toolkit_scroll_bars
819with_xaw3d
820with_xim
821with_ns
822with_gpm
823with_dbus
824with_gconf
825with_selinux
826with_gnutls
827with_makeinfo
828with_compress_info
829with_pkg_config_prog
830with_crt_dir
831with_gnustep_conf
832enable_ns_self_contained
833enable_asserts
834enable_maintainer_mode
835enable_locallisppath
836enable_checking
837enable_use_lisp_union_type
838enable_profiling
839enable_autodepend
840enable_largefile
841with_x
842'
843 ac_precious_vars='build_alias
844host_alias
845target_alias
846CC
847CFLAGS
848LDFLAGS
849LIBS
850CPPFLAGS
851CPP
852XMKMF'
853
854
855# Initialize some variables set by options.
856ac_init_help=
857ac_init_version=false
858ac_unrecognized_opts=
859ac_unrecognized_sep=
860# The variables have the same names as the options, with
861# dashes changed to underlines.
862cache_file=/dev/null
863exec_prefix=NONE
864no_create=
865no_recursion=
866prefix=NONE
867program_prefix=NONE
868program_suffix=NONE
869program_transform_name=s,x,x,
870silent=
871site=
872srcdir=
873verbose=
874x_includes=NONE
875x_libraries=NONE
876
877# Installation directory options.
878# These are left unexpanded so users can "make install exec_prefix=/foo"
879# and all the variables that are supposed to be based on exec_prefix
880# by default will actually change.
881# Use braces instead of parens because sh, perl, etc. also accept them.
882# (The list follows the same order as the GNU Coding Standards.)
883bindir='${exec_prefix}/bin'
884sbindir='${exec_prefix}/sbin'
885libexecdir='${exec_prefix}/libexec'
886datarootdir='${prefix}/share'
887datadir='${datarootdir}'
888sysconfdir='${prefix}/etc'
889sharedstatedir='${prefix}/com'
890localstatedir='${prefix}/var'
891includedir='${prefix}/include'
892oldincludedir='/usr/include'
893docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
894infodir='${datarootdir}/info'
895htmldir='${docdir}'
896dvidir='${docdir}'
897pdfdir='${docdir}'
898psdir='${docdir}'
899libdir='${exec_prefix}/lib'
900localedir='${datarootdir}/locale'
901mandir='${datarootdir}/man'
902
903ac_prev=
904ac_dashdash=
905for ac_option
906do
907 # If the previous option needs an argument, assign it.
908 if test -n "$ac_prev"; then
909 eval $ac_prev=\$ac_option
910 ac_prev=
911 continue
912 fi
913
914 case $ac_option in
915 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
916 *) ac_optarg=yes ;;
917 esac
918
919 # Accept the important Cygnus configure options, so we can diagnose typos.
920
921 case $ac_dashdash$ac_option in
922 --)
923 ac_dashdash=yes ;;
924
925 -bindir | --bindir | --bindi | --bind | --bin | --bi)
926 ac_prev=bindir ;;
927 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
928 bindir=$ac_optarg ;;
929
930 -build | --build | --buil | --bui | --bu)
931 ac_prev=build_alias ;;
932 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933 build_alias=$ac_optarg ;;
934
935 -cache-file | --cache-file | --cache-fil | --cache-fi \
936 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937 ac_prev=cache_file ;;
938 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940 cache_file=$ac_optarg ;;
941
942 --config-cache | -C)
943 cache_file=config.cache ;;
944
945 -datadir | --datadir | --datadi | --datad)
946 ac_prev=datadir ;;
947 -datadir=* | --datadir=* | --datadi=* | --datad=*)
948 datadir=$ac_optarg ;;
949
950 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951 | --dataroo | --dataro | --datar)
952 ac_prev=datarootdir ;;
953 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955 datarootdir=$ac_optarg ;;
956
957 -disable-* | --disable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 as_fn_error "invalid feature name: $ac_useropt"
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
965 *"
966"enable_$ac_useropt"
967"*) ;;
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
970 esac
971 eval enable_$ac_useropt=no ;;
972
973 -docdir | --docdir | --docdi | --doc | --do)
974 ac_prev=docdir ;;
975 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
976 docdir=$ac_optarg ;;
977
978 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
979 ac_prev=dvidir ;;
980 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
981 dvidir=$ac_optarg ;;
982
983 -enable-* | --enable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 as_fn_error "invalid feature name: $ac_useropt"
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
991 *"
992"enable_$ac_useropt"
993"*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=\$ac_optarg ;;
998
999 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001 | --exec | --exe | --ex)
1002 ac_prev=exec_prefix ;;
1003 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005 | --exec=* | --exe=* | --ex=*)
1006 exec_prefix=$ac_optarg ;;
1007
1008 -gas | --gas | --ga | --g)
1009 # Obsolete; use --with-gas.
1010 with_gas=yes ;;
1011
1012 -help | --help | --hel | --he | -h)
1013 ac_init_help=long ;;
1014 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015 ac_init_help=recursive ;;
1016 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017 ac_init_help=short ;;
1018
1019 -host | --host | --hos | --ho)
1020 ac_prev=host_alias ;;
1021 -host=* | --host=* | --hos=* | --ho=*)
1022 host_alias=$ac_optarg ;;
1023
1024 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1025 ac_prev=htmldir ;;
1026 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1027 | --ht=*)
1028 htmldir=$ac_optarg ;;
1029
1030 -includedir | --includedir | --includedi | --included | --include \
1031 | --includ | --inclu | --incl | --inc)
1032 ac_prev=includedir ;;
1033 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034 | --includ=* | --inclu=* | --incl=* | --inc=*)
1035 includedir=$ac_optarg ;;
1036
1037 -infodir | --infodir | --infodi | --infod | --info | --inf)
1038 ac_prev=infodir ;;
1039 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1040 infodir=$ac_optarg ;;
1041
1042 -libdir | --libdir | --libdi | --libd)
1043 ac_prev=libdir ;;
1044 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1045 libdir=$ac_optarg ;;
1046
1047 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048 | --libexe | --libex | --libe)
1049 ac_prev=libexecdir ;;
1050 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051 | --libexe=* | --libex=* | --libe=*)
1052 libexecdir=$ac_optarg ;;
1053
1054 -localedir | --localedir | --localedi | --localed | --locale)
1055 ac_prev=localedir ;;
1056 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057 localedir=$ac_optarg ;;
1058
1059 -localstatedir | --localstatedir | --localstatedi | --localstated \
1060 | --localstate | --localstat | --localsta | --localst | --locals)
1061 ac_prev=localstatedir ;;
1062 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1063 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1064 localstatedir=$ac_optarg ;;
1065
1066 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1067 ac_prev=mandir ;;
1068 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1069 mandir=$ac_optarg ;;
1070
1071 -nfp | --nfp | --nf)
1072 # Obsolete; use --without-fp.
1073 with_fp=no ;;
1074
1075 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1076 | --no-cr | --no-c | -n)
1077 no_create=yes ;;
1078
1079 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1081 no_recursion=yes ;;
1082
1083 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085 | --oldin | --oldi | --old | --ol | --o)
1086 ac_prev=oldincludedir ;;
1087 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1090 oldincludedir=$ac_optarg ;;
1091
1092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1093 ac_prev=prefix ;;
1094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1095 prefix=$ac_optarg ;;
1096
1097 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098 | --program-pre | --program-pr | --program-p)
1099 ac_prev=program_prefix ;;
1100 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1102 program_prefix=$ac_optarg ;;
1103
1104 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105 | --program-suf | --program-su | --program-s)
1106 ac_prev=program_suffix ;;
1107 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1109 program_suffix=$ac_optarg ;;
1110
1111 -program-transform-name | --program-transform-name \
1112 | --program-transform-nam | --program-transform-na \
1113 | --program-transform-n | --program-transform- \
1114 | --program-transform | --program-transfor \
1115 | --program-transfo | --program-transf \
1116 | --program-trans | --program-tran \
1117 | --progr-tra | --program-tr | --program-t)
1118 ac_prev=program_transform_name ;;
1119 -program-transform-name=* | --program-transform-name=* \
1120 | --program-transform-nam=* | --program-transform-na=* \
1121 | --program-transform-n=* | --program-transform-=* \
1122 | --program-transform=* | --program-transfor=* \
1123 | --program-transfo=* | --program-transf=* \
1124 | --program-trans=* | --program-tran=* \
1125 | --progr-tra=* | --program-tr=* | --program-t=*)
1126 program_transform_name=$ac_optarg ;;
1127
1128 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1129 ac_prev=pdfdir ;;
1130 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131 pdfdir=$ac_optarg ;;
1132
1133 -psdir | --psdir | --psdi | --psd | --ps)
1134 ac_prev=psdir ;;
1135 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1136 psdir=$ac_optarg ;;
1137
1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139 | -silent | --silent | --silen | --sile | --sil)
1140 silent=yes ;;
1141
1142 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1143 ac_prev=sbindir ;;
1144 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1145 | --sbi=* | --sb=*)
1146 sbindir=$ac_optarg ;;
1147
1148 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150 | --sharedst | --shareds | --shared | --share | --shar \
1151 | --sha | --sh)
1152 ac_prev=sharedstatedir ;;
1153 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1156 | --sha=* | --sh=*)
1157 sharedstatedir=$ac_optarg ;;
1158
1159 -site | --site | --sit)
1160 ac_prev=site ;;
1161 -site=* | --site=* | --sit=*)
1162 site=$ac_optarg ;;
1163
1164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1165 ac_prev=srcdir ;;
1166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167 srcdir=$ac_optarg ;;
1168
1169 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170 | --syscon | --sysco | --sysc | --sys | --sy)
1171 ac_prev=sysconfdir ;;
1172 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174 sysconfdir=$ac_optarg ;;
1175
1176 -target | --target | --targe | --targ | --tar | --ta | --t)
1177 ac_prev=target_alias ;;
1178 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179 target_alias=$ac_optarg ;;
1180
1181 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1182 verbose=yes ;;
1183
1184 -version | --version | --versio | --versi | --vers | -V)
1185 ac_init_version=: ;;
1186
1187 -with-* | --with-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1195 *"
1196"with_$ac_useropt"
1197"*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=\$ac_optarg ;;
1202
1203 -without-* | --without-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error "invalid package name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1211 *"
1212"with_$ac_useropt"
1213"*) ;;
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1216 esac
1217 eval with_$ac_useropt=no ;;
1218
1219 --x)
1220 # Obsolete; use --with-x.
1221 with_x=yes ;;
1222
1223 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1224 | --x-incl | --x-inc | --x-in | --x-i)
1225 ac_prev=x_includes ;;
1226 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1227 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1228 x_includes=$ac_optarg ;;
1229
1230 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1231 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1232 ac_prev=x_libraries ;;
1233 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1234 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1235 x_libraries=$ac_optarg ;;
1236
1237 -*) as_fn_error "unrecognized option: \`$ac_option'
1238Try \`$0 --help' for more information."
1239 ;;
1240
1241 *=*)
1242 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243 # Reject names that are not valid shell variable names.
1244 case $ac_envvar in #(
1245 '' | [0-9]* | *[!_$as_cr_alnum]* )
1246 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1247 esac
1248 eval $ac_envvar=\$ac_optarg
1249 export $ac_envvar ;;
1250
1251 *)
1252 # FIXME: should be removed in autoconf 3.0.
1253 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1254 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1256 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1257 ;;
1258
1259 esac
1260done
1261
1262if test -n "$ac_prev"; then
1263 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1264 as_fn_error "missing argument to $ac_option"
1265fi
1266
1267if test -n "$ac_unrecognized_opts"; then
1268 case $enable_option_checking in
1269 no) ;;
1270 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1271 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1272 esac
1273fi
1274
1275# Check all directory arguments for consistency.
1276for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277 datadir sysconfdir sharedstatedir localstatedir includedir \
1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279 libdir localedir mandir
1280do
1281 eval ac_val=\$$ac_var
1282 # Remove trailing slashes.
1283 case $ac_val in
1284 */ )
1285 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286 eval $ac_var=\$ac_val;;
1287 esac
1288 # Be sure to have absolute directory names.
1289 case $ac_val in
1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292 esac
1293 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1294done
1295
1296# There might be people who depend on the old broken behavior: `$host'
1297# used to hold the argument of --host etc.
1298# FIXME: To remove some day.
1299build=$build_alias
1300host=$host_alias
1301target=$target_alias
1302
1303# FIXME: To remove some day.
1304if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
1307 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1308 If a cross compiler is detected then cross compile mode will be used." >&2
1309 elif test "x$build_alias" != "x$host_alias"; then
1310 cross_compiling=yes
1311 fi
1312fi
1313
1314ac_tool_prefix=
1315test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316
1317test "$silent" = yes && exec 6>/dev/null
1318
1319
1320ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321ac_ls_di=`ls -di .` &&
1322ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323 as_fn_error "working directory cannot be determined"
1324test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325 as_fn_error "pwd does not report name of working directory"
1326
1327
1328# Find the source files, if location was not specified.
1329if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$as_myself" ||
1333$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$as_myself" : 'X\(//\)[^/]' \| \
1335 X"$as_myself" : 'X\(//\)$' \| \
1336 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337$as_echo X"$as_myself" |
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)[^/].*/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\).*/{
1351 s//\1/
1352 q
1353 }
1354 s/.*/./; q'`
1355 srcdir=$ac_confdir
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 srcdir=..
1358 fi
1359else
1360 ac_srcdir_defaulted=no
1361fi
1362if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1365fi
1366ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367ac_abs_confdir=`(
1368 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1369 pwd)`
1370# When building in place, set srcdir=.
1371if test "$ac_abs_confdir" = "$ac_pwd"; then
1372 srcdir=.
1373fi
1374# Remove unnecessary trailing slashes from srcdir.
1375# Double slashes in file names in object file debugging info
1376# mess up M-x gdb in Emacs.
1377case $srcdir in
1378*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379esac
1380for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385done
1386
1387#
1388# Report the --help message.
1389#
1390if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1393 cat <<_ACEOF
1394\`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1395
1396Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399VAR=VALUE. See below for descriptions of some of the useful variables.
1400
1401Defaults for the options are specified in brackets.
1402
1403Configuration:
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413
1414Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 [PREFIX]
1419
1420By default, \`make install' will install all the files in
1421\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423for instance \`--prefix=\$HOME'.
1424
1425For better control, use the options below.
1426
1427Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1447_ACEOF
1448
1449 cat <<\_ACEOF
1450
1451Program names:
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455
1456X features:
1457 --x-includes=DIR X include files are in DIR
1458 --x-libraries=DIR X library files are in DIR
1459
1460System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463_ACEOF
1464fi
1465
1466if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1469 esac
1470 cat <<\_ACEOF
1471
1472Optional Features:
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --disable-ns-self-contained
1477 disable self contained build under NeXTstep
1478 --enable-asserts compile code with asserts enabled
1479 --enable-maintainer-mode
1480 enable make rules and dependencies not useful (and
1481 sometimes confusing) to the casual installer
1482 --enable-locallisppath=PATH
1483 directories Emacs should search for lisp files
1484 specific to this site
1485 --enable-checking[=LIST]
1486 enable expensive run-time checks. With LIST, enable
1487 only specific categories of checks. Categories are:
1488 all,yes,no. Flags are: stringbytes, stringoverrun,
1489 stringfreelist, xmallocoverrun, conslist
1490 --enable-use-lisp-union-type
1491 use a union for the Lisp_Object data type. This is
1492 only useful for development for catching certain
1493 types of bugs.
1494 --enable-profiling build emacs with profiling support. This might not
1495 work on all platforms
1496 --enable-autodepend automatically generate dependencies to .h-files.
1497 Requires GNU Make and Gcc. Enabled if GNU Make and
1498 Gcc is found
1499 --disable-largefile omit support for large files
1500
1501Optional Packages:
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 --without-pop don't support POP mail retrieval with movemail
1505 --with-kerberos support Kerberos-authenticated POP
1506 --with-kerberos5 support Kerberos version 5 authenticated POP
1507 --with-hesiod support Hesiod to get the POP server host
1508 --with-mmdf support MMDF mailboxes
1509 --with-mail-unlink unlink, rather than empty, mail spool after reading
1510 --with-mailhost=HOSTNAME
1511 string giving default POP mail host
1512 --without-sound don't compile with sound support
1513 --without-sync-input process async input synchronously
1514 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1515 lucid or athena, motif, no)
1516 --without-xpm don't compile with XPM image support
1517 --without-jpeg don't compile with JPEG image support
1518 --without-tiff don't compile with TIFF image support
1519 --without-gif don't compile with GIF image support
1520 --without-png don't compile with PNG image support
1521 --without-rsvg don't compile with SVG image support
1522 --without-xml2 don't compile with XML parsing support
1523 --without-imagemagick don't compile with ImageMagick image support
1524 --without-xft don't use XFT for anti aliased fonts
1525 --without-libotf don't use libotf for OpenType font support
1526 --without-m17n-flt don't use m17n-flt for text shaping
1527 --without-toolkit-scroll-bars
1528 don't use Motif or Xaw3d scroll bars
1529 --without-xaw3d don't use Xaw3d
1530 --without-xim don't use X11 XIM
1531 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1532 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1533 console
1534 --without-dbus don't compile with D-Bus support
1535 --without-gconf don't compile with GConf support
1536 --without-selinux don't compile with SELinux support
1537 --without-gnutls don't use -lgnutls for SSL/TLS support
1538 --without-makeinfo don't require makeinfo for building manuals
1539 --without-compress-info don't compress the installed Info pages
1540 --with-pkg-config-prog=PATH
1541 path to pkg-config for finding GTK and librsvg
1542 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1543 /usr/lib, or /usr/lib64 on some platforms.
1544 --with-gnustep-conf=PATH
1545 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1546 or /etc/GNUstep/GNUstep.conf
1547 --with-x use the X Window System
1548
1549Some influential environment variables:
1550 CC C compiler command
1551 CFLAGS C compiler flags
1552 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1553 nonstandard directory <lib dir>
1554 LIBS libraries to pass to the linker, e.g. -l<library>
1555 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1556 you have headers in a nonstandard directory <include dir>
1557 CPP C preprocessor
1558 XMKMF Path to xmkmf, Makefile generator for X Window System
1559
1560Use these variables to override the choices made by `configure' or to help
1561it to find libraries and programs with nonstandard names/locations.
1562
1563Report bugs to the package provider.
1564_ACEOF
1565ac_status=$?
1566fi
1567
1568if test "$ac_init_help" = "recursive"; then
1569 # If there are subdirs, report their specific --help.
1570 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1571 test -d "$ac_dir" ||
1572 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1573 continue
1574 ac_builddir=.
1575
1576case "$ac_dir" in
1577.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578*)
1579 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1580 # A ".." for each directory in $ac_dir_suffix.
1581 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1582 case $ac_top_builddir_sub in
1583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1585 esac ;;
1586esac
1587ac_abs_top_builddir=$ac_pwd
1588ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589# for backward compatibility:
1590ac_top_builddir=$ac_top_build_prefix
1591
1592case $srcdir in
1593 .) # We are building in place.
1594 ac_srcdir=.
1595 ac_top_srcdir=$ac_top_builddir_sub
1596 ac_abs_top_srcdir=$ac_pwd ;;
1597 [\\/]* | ?:[\\/]* ) # Absolute name.
1598 ac_srcdir=$srcdir$ac_dir_suffix;
1599 ac_top_srcdir=$srcdir
1600 ac_abs_top_srcdir=$srcdir ;;
1601 *) # Relative name.
1602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603 ac_top_srcdir=$ac_top_build_prefix$srcdir
1604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1605esac
1606ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1607
1608 cd "$ac_dir" || { ac_status=$?; continue; }
1609 # Check for guested configure.
1610 if test -f "$ac_srcdir/configure.gnu"; then
1611 echo &&
1612 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613 elif test -f "$ac_srcdir/configure"; then
1614 echo &&
1615 $SHELL "$ac_srcdir/configure" --help=recursive
1616 else
1617 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618 fi || ac_status=$?
1619 cd "$ac_pwd" || { ac_status=$?; break; }
1620 done
1621fi
1622
1623test -n "$ac_init_help" && exit $ac_status
1624if $ac_init_version; then
1625 cat <<\_ACEOF
1626emacs configure 24.0.50
1627generated by GNU Autoconf 2.65
1628
1629Copyright (C) 2009 Free Software Foundation, Inc.
1630This configure script is free software; the Free Software Foundation
1631gives unlimited permission to copy, distribute and modify it.
1632_ACEOF
1633 exit
1634fi
1635
1636## ------------------------ ##
1637## Autoconf initialization. ##
1638## ------------------------ ##
1639
1640# ac_fn_c_try_compile LINENO
1641# --------------------------
1642# Try to compile conftest.$ac_ext, and return whether this succeeded.
1643ac_fn_c_try_compile ()
1644{
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 rm -f conftest.$ac_objext
1647 if { { ac_try="$ac_compile"
1648case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651esac
1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653$as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_compile") 2>conftest.err
1655 ac_status=$?
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1660 fi
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } && {
1663 test -z "$ac_c_werror_flag" ||
1664 test ! -s conftest.err
1665 } && test -s conftest.$ac_objext; then :
1666 ac_retval=0
1667else
1668 $as_echo "$as_me: failed program was:" >&5
1669sed 's/^/| /' conftest.$ac_ext >&5
1670
1671 ac_retval=1
1672fi
1673 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1674 as_fn_set_status $ac_retval
1675
1676} # ac_fn_c_try_compile
1677
1678# ac_fn_c_try_link LINENO
1679# -----------------------
1680# Try to link conftest.$ac_ext, and return whether this succeeded.
1681ac_fn_c_try_link ()
1682{
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext conftest$ac_exeext
1685 if { { ac_try="$ac_link"
1686case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691$as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_link") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1698 fi
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest$ac_exeext && {
1704 test "$cross_compiling" = yes ||
1705 $as_test_x conftest$ac_exeext
1706 }; then :
1707 ac_retval=0
1708else
1709 $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=1
1713fi
1714 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1715 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1716 # interfere with the next link command; also delete a directory that is
1717 # left behind by Apple's compiler. We do this before executing the actions.
1718 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720 as_fn_set_status $ac_retval
1721
1722} # ac_fn_c_try_link
1723
1724# ac_fn_c_try_cpp LINENO
1725# ----------------------
1726# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1727ac_fn_c_try_cpp ()
1728{
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if { { ac_try="$ac_cpp conftest.$ac_ext"
1731case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734esac
1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736$as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1738 ac_status=$?
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1743 fi
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } >/dev/null && {
1746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1747 test ! -s conftest.err
1748 }; then :
1749 ac_retval=0
1750else
1751 $as_echo "$as_me: failed program was:" >&5
1752sed 's/^/| /' conftest.$ac_ext >&5
1753
1754 ac_retval=1
1755fi
1756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757 as_fn_set_status $ac_retval
1758
1759} # ac_fn_c_try_cpp
1760
1761# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1762# -------------------------------------------------------
1763# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1764# the include files in INCLUDES and setting the cache variable VAR
1765# accordingly.
1766ac_fn_c_check_header_mongrel ()
1767{
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771$as_echo_n "checking for $2... " >&6; }
1772if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1773 $as_echo_n "(cached) " >&6
1774fi
1775eval ac_res=\$$3
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777$as_echo "$ac_res" >&6; }
1778else
1779 # Is the header compilable?
1780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1781$as_echo_n "checking $2 usability... " >&6; }
1782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783/* end confdefs.h. */
1784$4
1785#include <$2>
1786_ACEOF
1787if ac_fn_c_try_compile "$LINENO"; then :
1788 ac_header_compiler=yes
1789else
1790 ac_header_compiler=no
1791fi
1792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1794$as_echo "$ac_header_compiler" >&6; }
1795
1796# Is the header present?
1797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1798$as_echo_n "checking $2 presence... " >&6; }
1799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800/* end confdefs.h. */
1801#include <$2>
1802_ACEOF
1803if ac_fn_c_try_cpp "$LINENO"; then :
1804 ac_header_preproc=yes
1805else
1806 ac_header_preproc=no
1807fi
1808rm -f conftest.err conftest.$ac_ext
1809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1810$as_echo "$ac_header_preproc" >&6; }
1811
1812# So? What about this header?
1813case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1814 yes:no: )
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1816$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1818$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1819 ;;
1820 no:yes:* )
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1822$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1824$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1826$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1828$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1831 ;;
1832esac
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834$as_echo_n "checking for $2... " >&6; }
1835if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1836 $as_echo_n "(cached) " >&6
1837else
1838 eval "$3=\$ac_header_compiler"
1839fi
1840eval ac_res=\$$3
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842$as_echo "$ac_res" >&6; }
1843fi
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845
1846} # ac_fn_c_check_header_mongrel
1847
1848# ac_fn_c_try_run LINENO
1849# ----------------------
1850# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1851# that executables *can* be run.
1852ac_fn_c_try_run ()
1853{
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if { { ac_try="$ac_link"
1856case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859esac
1860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861$as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_link") 2>&5
1863 ac_status=$?
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1866 { { case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869esac
1870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871$as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_try") 2>&5
1873 ac_status=$?
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; }; }; then :
1876 ac_retval=0
1877else
1878 $as_echo "$as_me: program exited with status $ac_status" >&5
1879 $as_echo "$as_me: failed program was:" >&5
1880sed 's/^/| /' conftest.$ac_ext >&5
1881
1882 ac_retval=$ac_status
1883fi
1884 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1885 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1886 as_fn_set_status $ac_retval
1887
1888} # ac_fn_c_try_run
1889
1890# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1891# -------------------------------------------------------
1892# Tests whether HEADER exists and can be compiled using the include files in
1893# INCLUDES, setting the cache variable VAR accordingly.
1894ac_fn_c_check_header_compile ()
1895{
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898$as_echo_n "checking for $2... " >&6; }
1899if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1900 $as_echo_n "(cached) " >&6
1901else
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903/* end confdefs.h. */
1904$4
1905#include <$2>
1906_ACEOF
1907if ac_fn_c_try_compile "$LINENO"; then :
1908 eval "$3=yes"
1909else
1910 eval "$3=no"
1911fi
1912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1913fi
1914eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916$as_echo "$ac_res" >&6; }
1917 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1918
1919} # ac_fn_c_check_header_compile
1920
1921# ac_fn_c_check_decl LINENO SYMBOL VAR
1922# ------------------------------------
1923# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1924ac_fn_c_check_decl ()
1925{
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1928$as_echo_n "checking whether $2 is declared... " >&6; }
1929if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930 $as_echo_n "(cached) " >&6
1931else
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933/* end confdefs.h. */
1934$4
1935int
1936main ()
1937{
1938#ifndef $2
1939 (void) $2;
1940#endif
1941
1942 ;
1943 return 0;
1944}
1945_ACEOF
1946if ac_fn_c_try_compile "$LINENO"; then :
1947 eval "$3=yes"
1948else
1949 eval "$3=no"
1950fi
1951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952fi
1953eval ac_res=\$$3
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955$as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957
1958} # ac_fn_c_check_decl
1959
1960# ac_fn_c_check_header_preproc LINENO HEADER VAR
1961# ----------------------------------------------
1962# Tests whether HEADER is present, setting the cache variable VAR accordingly.
1963ac_fn_c_check_header_preproc ()
1964{
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967$as_echo_n "checking for $2... " >&6; }
1968if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1969 $as_echo_n "(cached) " >&6
1970else
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972/* end confdefs.h. */
1973#include <$2>
1974_ACEOF
1975if ac_fn_c_try_cpp "$LINENO"; then :
1976 eval "$3=yes"
1977else
1978 eval "$3=no"
1979fi
1980rm -f conftest.err conftest.$ac_ext
1981fi
1982eval ac_res=\$$3
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984$as_echo "$ac_res" >&6; }
1985 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1986
1987} # ac_fn_c_check_header_preproc
1988
1989# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1990# ----------------------------------------------------
1991# Tries to find if the field MEMBER exists in type AGGR, after including
1992# INCLUDES, setting cache variable VAR accordingly.
1993ac_fn_c_check_member ()
1994{
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1997$as_echo_n "checking for $2.$3... " >&6; }
1998if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1999 $as_echo_n "(cached) " >&6
2000else
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002/* end confdefs.h. */
2003$5
2004int
2005main ()
2006{
2007static $2 ac_aggr;
2008if (ac_aggr.$3)
2009return 0;
2010 ;
2011 return 0;
2012}
2013_ACEOF
2014if ac_fn_c_try_compile "$LINENO"; then :
2015 eval "$4=yes"
2016else
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018/* end confdefs.h. */
2019$5
2020int
2021main ()
2022{
2023static $2 ac_aggr;
2024if (sizeof ac_aggr.$3)
2025return 0;
2026 ;
2027 return 0;
2028}
2029_ACEOF
2030if ac_fn_c_try_compile "$LINENO"; then :
2031 eval "$4=yes"
2032else
2033 eval "$4=no"
2034fi
2035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036fi
2037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038fi
2039eval ac_res=\$$4
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041$as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043
2044} # ac_fn_c_check_member
2045
2046# ac_fn_c_check_func LINENO FUNC VAR
2047# ----------------------------------
2048# Tests whether FUNC exists, setting the cache variable VAR accordingly
2049ac_fn_c_check_func ()
2050{
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053$as_echo_n "checking for $2... " >&6; }
2054if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2055 $as_echo_n "(cached) " >&6
2056else
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058/* end confdefs.h. */
2059/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2061#define $2 innocuous_$2
2062
2063/* System header to define __stub macros and hopefully few prototypes,
2064 which can conflict with char $2 (); below.
2065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2066 <limits.h> exists even on freestanding compilers. */
2067
2068#ifdef __STDC__
2069# include <limits.h>
2070#else
2071# include <assert.h>
2072#endif
2073
2074#undef $2
2075
2076/* Override any GCC internal prototype to avoid an error.
2077 Use char because int might match the return type of a GCC
2078 builtin and then its argument prototype would still apply. */
2079#ifdef __cplusplus
2080extern "C"
2081#endif
2082char $2 ();
2083/* The GNU C library defines this for functions which it implements
2084 to always fail with ENOSYS. Some functions are actually named
2085 something starting with __ and the normal name is an alias. */
2086#if defined __stub_$2 || defined __stub___$2
2087choke me
2088#endif
2089
2090int
2091main ()
2092{
2093return $2 ();
2094 ;
2095 return 0;
2096}
2097_ACEOF
2098if ac_fn_c_try_link "$LINENO"; then :
2099 eval "$3=yes"
2100else
2101 eval "$3=no"
2102fi
2103rm -f core conftest.err conftest.$ac_objext \
2104 conftest$ac_exeext conftest.$ac_ext
2105fi
2106eval ac_res=\$$3
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108$as_echo "$ac_res" >&6; }
2109 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2110
2111} # ac_fn_c_check_func
2112
2113# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2114# -------------------------------------------
2115# Tests whether TYPE exists after having included INCLUDES, setting cache
2116# variable VAR accordingly.
2117ac_fn_c_check_type ()
2118{
2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2121$as_echo_n "checking for $2... " >&6; }
2122if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2123 $as_echo_n "(cached) " >&6
2124else
2125 eval "$3=no"
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127/* end confdefs.h. */
2128$4
2129int
2130main ()
2131{
2132if (sizeof ($2))
2133 return 0;
2134 ;
2135 return 0;
2136}
2137_ACEOF
2138if ac_fn_c_try_compile "$LINENO"; then :
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140/* end confdefs.h. */
2141$4
2142int
2143main ()
2144{
2145if (sizeof (($2)))
2146 return 0;
2147 ;
2148 return 0;
2149}
2150_ACEOF
2151if ac_fn_c_try_compile "$LINENO"; then :
2152
2153else
2154 eval "$3=yes"
2155fi
2156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157fi
2158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159fi
2160eval ac_res=\$$3
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162$as_echo "$ac_res" >&6; }
2163 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2164
2165} # ac_fn_c_check_type
2166cat >config.log <<_ACEOF
2167This file contains any messages produced by compilers while
2168running configure, to aid debugging if configure makes a mistake.
2169
2170It was created by emacs $as_me 24.0.50, which was
2171generated by GNU Autoconf 2.65. Invocation command line was
2172
2173 $ $0 $@
2174
2175_ACEOF
2176exec 5>>config.log
2177{
2178cat <<_ASUNAME
2179## --------- ##
2180## Platform. ##
2181## --------- ##
2182
2183hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2184uname -m = `(uname -m) 2>/dev/null || echo unknown`
2185uname -r = `(uname -r) 2>/dev/null || echo unknown`
2186uname -s = `(uname -s) 2>/dev/null || echo unknown`
2187uname -v = `(uname -v) 2>/dev/null || echo unknown`
2188
2189/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2190/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2191
2192/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2193/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2194/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2195/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2196/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2197/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2198/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2199
2200_ASUNAME
2201
2202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203for as_dir in $PATH
2204do
2205 IFS=$as_save_IFS
2206 test -z "$as_dir" && as_dir=.
2207 $as_echo "PATH: $as_dir"
2208 done
2209IFS=$as_save_IFS
2210
2211} >&5
2212
2213cat >&5 <<_ACEOF
2214
2215
2216## ----------- ##
2217## Core tests. ##
2218## ----------- ##
2219
2220_ACEOF
2221
2222
2223# Keep a trace of the command line.
2224# Strip out --no-create and --no-recursion so they do not pile up.
2225# Strip out --silent because we don't want to record it for future runs.
2226# Also quote any args containing shell meta-characters.
2227# Make two passes to allow for proper duplicate-argument suppression.
2228ac_configure_args=
2229ac_configure_args0=
2230ac_configure_args1=
2231ac_must_keep_next=false
2232for ac_pass in 1 2
2233do
2234 for ac_arg
2235 do
2236 case $ac_arg in
2237 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2239 | -silent | --silent | --silen | --sile | --sil)
2240 continue ;;
2241 *\'*)
2242 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2243 esac
2244 case $ac_pass in
2245 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2246 2)
2247 as_fn_append ac_configure_args1 " '$ac_arg'"
2248 if test $ac_must_keep_next = true; then
2249 ac_must_keep_next=false # Got value, back to normal.
2250 else
2251 case $ac_arg in
2252 *=* | --config-cache | -C | -disable-* | --disable-* \
2253 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2254 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2255 | -with-* | --with-* | -without-* | --without-* | --x)
2256 case "$ac_configure_args0 " in
2257 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2258 esac
2259 ;;
2260 -* ) ac_must_keep_next=true ;;
2261 esac
2262 fi
2263 as_fn_append ac_configure_args " '$ac_arg'"
2264 ;;
2265 esac
2266 done
2267done
2268{ ac_configure_args0=; unset ac_configure_args0;}
2269{ ac_configure_args1=; unset ac_configure_args1;}
2270
2271# When interrupted or exit'd, cleanup temporary files, and complete
2272# config.log. We remove comments because anyway the quotes in there
2273# would cause problems or look ugly.
2274# WARNING: Use '\'' to represent an apostrophe within the trap.
2275# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2276trap 'exit_status=$?
2277 # Save into config.log some information that might help in debugging.
2278 {
2279 echo
2280
2281 cat <<\_ASBOX
2282## ---------------- ##
2283## Cache variables. ##
2284## ---------------- ##
2285_ASBOX
2286 echo
2287 # The following way of writing the cache mishandles newlines in values,
2288(
2289 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2290 eval ac_val=\$$ac_var
2291 case $ac_val in #(
2292 *${as_nl}*)
2293 case $ac_var in #(
2294 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2295$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2296 esac
2297 case $ac_var in #(
2298 _ | IFS | as_nl) ;; #(
2299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2300 *) { eval $ac_var=; unset $ac_var;} ;;
2301 esac ;;
2302 esac
2303 done
2304 (set) 2>&1 |
2305 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2306 *${as_nl}ac_space=\ *)
2307 sed -n \
2308 "s/'\''/'\''\\\\'\'''\''/g;
2309 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2310 ;; #(
2311 *)
2312 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2313 ;;
2314 esac |
2315 sort
2316)
2317 echo
2318
2319 cat <<\_ASBOX
2320## ----------------- ##
2321## Output variables. ##
2322## ----------------- ##
2323_ASBOX
2324 echo
2325 for ac_var in $ac_subst_vars
2326 do
2327 eval ac_val=\$$ac_var
2328 case $ac_val in
2329 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2330 esac
2331 $as_echo "$ac_var='\''$ac_val'\''"
2332 done | sort
2333 echo
2334
2335 if test -n "$ac_subst_files"; then
2336 cat <<\_ASBOX
2337## ------------------- ##
2338## File substitutions. ##
2339## ------------------- ##
2340_ASBOX
2341 echo
2342 for ac_var in $ac_subst_files
2343 do
2344 eval ac_val=\$$ac_var
2345 case $ac_val in
2346 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2347 esac
2348 $as_echo "$ac_var='\''$ac_val'\''"
2349 done | sort
2350 echo
2351 fi
2352
2353 if test -s confdefs.h; then
2354 cat <<\_ASBOX
2355## ----------- ##
2356## confdefs.h. ##
2357## ----------- ##
2358_ASBOX
2359 echo
2360 cat confdefs.h
2361 echo
2362 fi
2363 test "$ac_signal" != 0 &&
2364 $as_echo "$as_me: caught signal $ac_signal"
2365 $as_echo "$as_me: exit $exit_status"
2366 } >&5
2367 rm -f core *.core core.conftest.* &&
2368 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2369 exit $exit_status
2370' 0
2371for ac_signal in 1 2 13 15; do
2372 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2373done
2374ac_signal=0
2375
2376# confdefs.h avoids OS command line length limits that DEFS can exceed.
2377rm -f -r conftest* confdefs.h
2378
2379$as_echo "/* confdefs.h */" > confdefs.h
2380
2381# Predefined preprocessor variables.
2382
2383cat >>confdefs.h <<_ACEOF
2384#define PACKAGE_NAME "$PACKAGE_NAME"
2385_ACEOF
2386
2387cat >>confdefs.h <<_ACEOF
2388#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2389_ACEOF
2390
2391cat >>confdefs.h <<_ACEOF
2392#define PACKAGE_VERSION "$PACKAGE_VERSION"
2393_ACEOF
2394
2395cat >>confdefs.h <<_ACEOF
2396#define PACKAGE_STRING "$PACKAGE_STRING"
2397_ACEOF
2398
2399cat >>confdefs.h <<_ACEOF
2400#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2401_ACEOF
2402
2403cat >>confdefs.h <<_ACEOF
2404#define PACKAGE_URL "$PACKAGE_URL"
2405_ACEOF
2406
2407
2408# Let the site file select an alternate cache file if it wants to.
2409# Prefer an explicitly selected file to automatically selected ones.
2410ac_site_file1=NONE
2411ac_site_file2=NONE
2412if test -n "$CONFIG_SITE"; then
2413 ac_site_file1=$CONFIG_SITE
2414elif test "x$prefix" != xNONE; then
2415 ac_site_file1=$prefix/share/config.site
2416 ac_site_file2=$prefix/etc/config.site
2417else
2418 ac_site_file1=$ac_default_prefix/share/config.site
2419 ac_site_file2=$ac_default_prefix/etc/config.site
2420fi
2421for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2422do
2423 test "x$ac_site_file" = xNONE && continue
2424 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2426$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2427 sed 's/^/| /' "$ac_site_file" >&5
2428 . "$ac_site_file"
2429 fi
2430done
2431
2432if test -r "$cache_file"; then
2433 # Some versions of bash will fail to source /dev/null (special files
2434 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2435 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2437$as_echo "$as_me: loading cache $cache_file" >&6;}
2438 case $cache_file in
2439 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2440 *) . "./$cache_file";;
2441 esac
2442 fi
2443else
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2445$as_echo "$as_me: creating cache $cache_file" >&6;}
2446 >$cache_file
2447fi
2448
2449as_fn_append ac_header_list " stdlib.h"
2450as_fn_append ac_header_list " unistd.h"
2451as_fn_append ac_header_list " sys/param.h"
2452as_fn_append ac_header_list " sys/time.h"
2453as_fn_append ac_func_list " alarm"
2454# Check that the precious variables saved in the cache have kept the same
2455# value.
2456ac_cache_corrupted=false
2457for ac_var in $ac_precious_vars; do
2458 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2459 eval ac_new_set=\$ac_env_${ac_var}_set
2460 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2461 eval ac_new_val=\$ac_env_${ac_var}_value
2462 case $ac_old_set,$ac_new_set in
2463 set,)
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2465$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2466 ac_cache_corrupted=: ;;
2467 ,set)
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2469$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2470 ac_cache_corrupted=: ;;
2471 ,);;
2472 *)
2473 if test "x$ac_old_val" != "x$ac_new_val"; then
2474 # differences in whitespace do not lead to failure.
2475 ac_old_val_w=`echo x $ac_old_val`
2476 ac_new_val_w=`echo x $ac_new_val`
2477 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2479$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2480 ac_cache_corrupted=:
2481 else
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2483$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2484 eval $ac_var=\$ac_old_val
2485 fi
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2487$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2489$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2490 fi;;
2491 esac
2492 # Pass precious variables to config.status.
2493 if test "$ac_new_set" = set; then
2494 case $ac_new_val in
2495 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2496 *) ac_arg=$ac_var=$ac_new_val ;;
2497 esac
2498 case " $ac_configure_args " in
2499 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2500 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2501 esac
2502 fi
2503done
2504if $ac_cache_corrupted; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2508$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2509 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2510fi
2511## -------------------- ##
2512## Main body of script. ##
2513## -------------------- ##
2514
2515ac_ext=c
2516ac_cpp='$CPP $CPPFLAGS'
2517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2519ac_compiler_gnu=$ac_cv_c_compiler_gnu
2520
2521
2522ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2523
2524
2525
2526test "$program_prefix" != NONE &&
2527 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2528# Use a double $ so make ignores it.
2529test "$program_suffix" != NONE &&
2530 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2531# Double any \ or $.
2532# By default was `s,x,x', remove it if useless.
2533ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2534program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2535
2536
2537lispdir='${datadir}/emacs/${version}/lisp'
2538locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2539'${datadir}/emacs/site-lisp'
2540lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2541etcdir='${datadir}/emacs/${version}/etc'
2542archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2543docdir='${datadir}/emacs/${version}/etc'
2544gamedir='${localstatedir}/games/emacs'
2545
2546gameuser=games
2547
2548
2549
2550
2551# Check whether --with-pop was given.
2552if test "${with_pop+set}" = set; then :
2553 withval=$with_pop;
2554else
2555 with_pop=yes
2556fi
2557
2558if test "$with_pop" = yes; then
2559 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2560
2561fi
2562
2563
2564# Check whether --with-kerberos was given.
2565if test "${with_kerberos+set}" = set; then :
2566 withval=$with_kerberos;
2567else
2568 with_kerberos=no
2569fi
2570
2571if test "$with_kerberos" != no; then
2572 $as_echo "#define KERBEROS 1" >>confdefs.h
2573
2574fi
2575
2576
2577# Check whether --with-kerberos5 was given.
2578if test "${with_kerberos5+set}" = set; then :
2579 withval=$with_kerberos5;
2580else
2581 with_kerberos5=no
2582fi
2583
2584if test "${with_kerberos5}" != no; then
2585 if test "${with_kerberos}" = no; then
2586 with_kerberos=yes
2587 $as_echo "#define KERBEROS 1" >>confdefs.h
2588
2589 fi
2590
2591$as_echo "#define KERBEROS5 1" >>confdefs.h
2592
2593fi
2594
2595
2596# Check whether --with-hesiod was given.
2597if test "${with_hesiod+set}" = set; then :
2598 withval=$with_hesiod;
2599else
2600 with_hesiod=no
2601fi
2602
2603if test "$with_hesiod" != no; then
2604
2605$as_echo "#define HESIOD 1" >>confdefs.h
2606
2607fi
2608
2609
2610# Check whether --with-mmdf was given.
2611if test "${with_mmdf+set}" = set; then :
2612 withval=$with_mmdf;
2613else
2614 with_mmdf=no
2615fi
2616
2617if test "$with_mmdf" != no; then
2618
2619$as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2620
2621fi
2622
2623
2624# Check whether --with-mail-unlink was given.
2625if test "${with_mail_unlink+set}" = set; then :
2626 withval=$with_mail_unlink;
2627else
2628 with_mail_unlink=no
2629fi
2630
2631if test "$with_mail_unlink" != no; then
2632
2633$as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2634
2635fi
2636
2637
2638# Check whether --with-mailhost was given.
2639if test "${with_mailhost+set}" = set; then :
2640 withval=$with_mailhost;
2641cat >>confdefs.h <<_ACEOF
2642#define MAILHOST "$withval"
2643_ACEOF
2644
2645fi
2646
2647
2648
2649# Check whether --with-sound was given.
2650if test "${with_sound+set}" = set; then :
2651 withval=$with_sound;
2652else
2653 with_sound=yes
2654fi
2655
2656
2657
2658# Check whether --with-sync-input was given.
2659if test "${with_sync_input+set}" = set; then :
2660 withval=$with_sync_input;
2661else
2662 with_sync_input=yes
2663fi
2664
2665if test "$with_sync_input" = yes; then
2666
2667$as_echo "#define SYNC_INPUT 1" >>confdefs.h
2668
2669fi
2670
2671
2672# Check whether --with-x-toolkit was given.
2673if test "${with_x_toolkit+set}" = set; then :
2674 withval=$with_x_toolkit; case "${withval}" in
2675 y | ye | yes ) val=gtk ;;
2676 n | no ) val=no ;;
2677 l | lu | luc | luci | lucid ) val=lucid ;;
2678 a | at | ath | athe | athen | athena ) val=athena ;;
2679 m | mo | mot | moti | motif ) val=motif ;;
2680 g | gt | gtk ) val=gtk ;;
2681 gtk3 ) val=gtk3 ;;
2682 * )
2683as_fn_error "\`--with-x-toolkit=$withval' is invalid;
2684this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
2685\`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2686 ;;
2687 esac
2688 with_x_toolkit=$val
2689
2690fi
2691
2692
2693
2694# Check whether --with-xpm was given.
2695if test "${with_xpm+set}" = set; then :
2696 withval=$with_xpm;
2697else
2698 with_xpm=yes
2699fi
2700
2701
2702# Check whether --with-jpeg was given.
2703if test "${with_jpeg+set}" = set; then :
2704 withval=$with_jpeg;
2705else
2706 with_jpeg=yes
2707fi
2708
2709
2710# Check whether --with-tiff was given.
2711if test "${with_tiff+set}" = set; then :
2712 withval=$with_tiff;
2713else
2714 with_tiff=yes
2715fi
2716
2717
2718# Check whether --with-gif was given.
2719if test "${with_gif+set}" = set; then :
2720 withval=$with_gif;
2721else
2722 with_gif=yes
2723fi
2724
2725
2726# Check whether --with-png was given.
2727if test "${with_png+set}" = set; then :
2728 withval=$with_png;
2729else
2730 with_png=yes
2731fi
2732
2733
2734# Check whether --with-rsvg was given.
2735if test "${with_rsvg+set}" = set; then :
2736 withval=$with_rsvg;
2737else
2738 with_rsvg=yes
2739fi
2740
2741
2742# Check whether --with-xml2 was given.
2743if test "${with_xml2+set}" = set; then :
2744 withval=$with_xml2;
2745else
2746 with_xml2=yes
2747fi
2748
2749
2750# Check whether --with-imagemagick was given.
2751if test "${with_imagemagick+set}" = set; then :
2752 withval=$with_imagemagick;
2753else
2754 with_imagemagick=yes
2755fi
2756
2757
2758
2759# Check whether --with-xft was given.
2760if test "${with_xft+set}" = set; then :
2761 withval=$with_xft;
2762else
2763 with_xft=yes
2764fi
2765
2766
2767# Check whether --with-libotf was given.
2768if test "${with_libotf+set}" = set; then :
2769 withval=$with_libotf;
2770else
2771 with_libotf=yes
2772fi
2773
2774
2775# Check whether --with-m17n-flt was given.
2776if test "${with_m17n_flt+set}" = set; then :
2777 withval=$with_m17n_flt;
2778else
2779 with_m17n_flt=yes
2780fi
2781
2782
2783
2784# Check whether --with-toolkit-scroll-bars was given.
2785if test "${with_toolkit_scroll_bars+set}" = set; then :
2786 withval=$with_toolkit_scroll_bars;
2787else
2788 with_toolkit_scroll_bars=yes
2789fi
2790
2791
2792# Check whether --with-xaw3d was given.
2793if test "${with_xaw3d+set}" = set; then :
2794 withval=$with_xaw3d;
2795else
2796 with_xaw3d=yes
2797fi
2798
2799
2800# Check whether --with-xim was given.
2801if test "${with_xim+set}" = set; then :
2802 withval=$with_xim;
2803else
2804 with_xim=yes
2805fi
2806
2807
2808# Check whether --with-ns was given.
2809if test "${with_ns+set}" = set; then :
2810 withval=$with_ns;
2811else
2812 with_ns=no
2813fi
2814
2815
2816
2817# Check whether --with-gpm was given.
2818if test "${with_gpm+set}" = set; then :
2819 withval=$with_gpm;
2820else
2821 with_gpm=yes
2822fi
2823
2824
2825# Check whether --with-dbus was given.
2826if test "${with_dbus+set}" = set; then :
2827 withval=$with_dbus;
2828else
2829 with_dbus=yes
2830fi
2831
2832
2833# Check whether --with-gconf was given.
2834if test "${with_gconf+set}" = set; then :
2835 withval=$with_gconf;
2836else
2837 with_gconf=yes
2838fi
2839
2840
2841# Check whether --with-selinux was given.
2842if test "${with_selinux+set}" = set; then :
2843 withval=$with_selinux;
2844else
2845 with_selinux=yes
2846fi
2847
2848
2849# Check whether --with-gnutls was given.
2850if test "${with_gnutls+set}" = set; then :
2851 withval=$with_gnutls;
2852else
2853 with_gnutls=yes
2854fi
2855
2856
2857## For the times when you want to build Emacs but don't have
2858## a suitable makeinfo, and can live without the manuals.
2859
2860# Check whether --with-makeinfo was given.
2861if test "${with_makeinfo+set}" = set; then :
2862 withval=$with_makeinfo;
2863else
2864 with_makeinfo=yes
2865fi
2866
2867
2868## This is an option because I do not know if all info/man support
2869## compressed files, nor how to test if they do so.
2870
2871# Check whether --with-compress-info was given.
2872if test "${with_compress_info+set}" = set; then :
2873 withval=$with_compress_info;
2874else
2875 with_compress_info=yes
2876fi
2877
2878if test $with_compress_info = yes; then
2879 GZIP_INFO=yes
2880else
2881 GZIP_INFO=
2882fi
2883
2884
2885
2886# Check whether --with-pkg-config-prog was given.
2887if test "${with_pkg_config_prog+set}" = set; then :
2888 withval=$with_pkg_config_prog;
2889fi
2890
2891if test "X${with_pkg_config_prog}" != X; then
2892 if test "${with_pkg_config_prog}" != yes; then
2893 PKG_CONFIG="${with_pkg_config_prog}"
2894 fi
2895fi
2896
2897CRT_DIR=
2898
2899# Check whether --with-crt-dir was given.
2900if test "${with_crt_dir+set}" = set; then :
2901 withval=$with_crt_dir;
2902fi
2903
2904CRT_DIR="${with_crt_dir}"
2905
2906
2907# Check whether --with-gnustep-conf was given.
2908if test "${with_gnustep_conf+set}" = set; then :
2909 withval=$with_gnustep_conf;
2910fi
2911
2912test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2913 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2914test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2915 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2916
2917# Check whether --enable-ns-self-contained was given.
2918if test "${enable_ns_self_contained+set}" = set; then :
2919 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2920else
2921 EN_NS_SELF_CONTAINED=yes
2922fi
2923
2924
2925# Check whether --enable-asserts was given.
2926if test "${enable_asserts+set}" = set; then :
2927 enableval=$enable_asserts; USE_XASSERTS=$enableval
2928else
2929 USE_XASSERTS=no
2930fi
2931
2932
2933# Check whether --enable-maintainer-mode was given.
2934if test "${enable_maintainer_mode+set}" = set; then :
2935 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2936else
2937 USE_MAINTAINER_MODE=no
2938fi
2939
2940if test $USE_MAINTAINER_MODE = yes; then
2941 MAINT=
2942else
2943 MAINT=#
2944fi
2945
2946
2947# Check whether --enable-locallisppath was given.
2948if test "${enable_locallisppath+set}" = set; then :
2949 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2950 locallisppath=
2951elif test "${enableval}" != "yes"; then
2952 locallisppath=${enableval}
2953fi
2954fi
2955
2956
2957# Check whether --enable-checking was given.
2958if test "${enable_checking+set}" = set; then :
2959 enableval=$enable_checking; ac_checking_flags="${enableval}"
2960fi
2961
2962IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2963for check in $ac_checking_flags
2964do
2965 case $check in
2966 # these set all the flags to specific states
2967 yes) ac_enable_checking=1 ;;
2968 no) ac_enable_checking= ;
2969 ac_gc_check_stringbytes= ;
2970 ac_gc_check_string_overrun= ;
2971 ac_gc_check_string_free_list= ;
2972 ac_xmalloc_overrun= ;
2973 ac_gc_check_cons_list= ;;
2974 all) ac_enable_checking=1 ;
2975 ac_gc_check_stringbytes=1 ;
2976 ac_gc_check_string_overrun=1 ;
2977 ac_gc_check_string_free_list=1 ;
2978 ac_xmalloc_overrun=1 ;
2979 ac_gc_check_cons_list=1 ;;
2980 # these enable particular checks
2981 stringbytes) ac_gc_check_stringbytes=1 ;;
2982 stringoverrun) ac_gc_check_string_overrun=1 ;;
2983 stringfreelist) ac_gc_check_string_free_list=1 ;;
2984 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2985 conslist) ac_gc_check_cons_list=1 ;;
2986 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
2987 esac
2988done
2989IFS="$ac_save_IFS"
2990
2991if test x$ac_enable_checking != x ; then
2992
2993$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2994
2995fi
2996if test x$ac_gc_check_stringbytes != x ; then
2997
2998$as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2999
3000fi
3001if test x$ac_gc_check_stringoverrun != x ; then
3002
3003$as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3004
3005fi
3006if test x$ac_gc_check_string_free_list != x ; then
3007
3008$as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3009
3010fi
3011if test x$ac_xmalloc_overrun != x ; then
3012
3013$as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3014
3015fi
3016if test x$ac_gc_check_cons_list != x ; then
3017
3018$as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3019
3020fi
3021
3022# Check whether --enable-use-lisp-union-type was given.
3023if test "${enable_use_lisp_union_type+set}" = set; then :
3024 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3025
3026$as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3027
3028fi
3029fi
3030
3031
3032
3033# Check whether --enable-profiling was given.
3034if test "${enable_profiling+set}" = set; then :
3035 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3036fi
3037
3038if test x$ac_enable_profiling != x ; then
3039 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3040else
3041 PROFILING_CFLAGS=
3042fi
3043
3044
3045# Check whether --enable-autodepend was given.
3046if test "${enable_autodepend+set}" = set; then :
3047 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3048else
3049 ac_enable_autodepend=yes
3050fi
3051
3052
3053#### Make srcdir absolute, if it isn't already. It's important to
3054#### avoid running the path through pwd unnecessarily, since pwd can
3055#### give you automounter prefixes, which can go away. We do all this
3056#### so Emacs can find its files when run uninstalled.
3057## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3058unset CDPATH
3059case "${srcdir}" in
3060 /* ) ;;
3061 . )
3062 ## We may be able to use the $PWD environment variable to make this
3063 ## absolute. But sometimes PWD is inaccurate.
3064 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3065 ## but that tested only for a well-formed and valid PWD,
3066 ## it did not object when PWD was well-formed and valid but just wrong.
3067 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3068 then
3069 srcdir="$PWD"
3070 else
3071 srcdir="`(cd ${srcdir}; pwd)`"
3072 fi
3073 ;;
3074 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3075esac
3076
3077#### Check if the source directory already has a configured system in it.
3078if test `pwd` != `(cd ${srcdir} && pwd)` \
3079 && test -f "${srcdir}/src/config.h" ; then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3081 as a build directory right now; it has been configured in its own
3082 right. To configure in another directory as well, you MUST
3083 use GNU make. If you do not have GNU make, then you must
3084 now do \`make distclean' in ${srcdir},
3085 and then run $0 again." >&5
3086$as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3087 as a build directory right now; it has been configured in its own
3088 right. To configure in another directory as well, you MUST
3089 use GNU make. If you do not have GNU make, then you must
3090 now do \`make distclean' in ${srcdir},
3091 and then run $0 again." >&2;}
3092fi
3093
3094#### Given the configuration name, set machfile and opsysfile to the
3095#### names of the m/*.h and s/*.h files we should use.
3096
3097### Canonicalize the configuration name.
3098
3099ac_aux_dir=
3100for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3101 for ac_t in install-sh install.sh shtool; do
3102 if test -f "$ac_dir/$ac_t"; then
3103 ac_aux_dir=$ac_dir
3104 ac_install_sh="$ac_aux_dir/$ac_t -c"
3105 break 2
3106 fi
3107 done
3108done
3109if test -z "$ac_aux_dir"; then
3110 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3111fi
3112
3113# These three variables are undocumented and unsupported,
3114# and are intended to be withdrawn in a future Autoconf release.
3115# They can cause serious problems if a builder's source tree is in a directory
3116# whose full name contains unusual characters.
3117ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3118ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3119ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3120
3121
3122# Make sure we can run config.sub.
3123$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3124 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3125
3126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3127$as_echo_n "checking build system type... " >&6; }
3128if test "${ac_cv_build+set}" = set; then :
3129 $as_echo_n "(cached) " >&6
3130else
3131 ac_build_alias=$build_alias
3132test "x$ac_build_alias" = x &&
3133 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3134test "x$ac_build_alias" = x &&
3135 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3136ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3137 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3138
3139fi
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3141$as_echo "$ac_cv_build" >&6; }
3142case $ac_cv_build in
3143*-*-*) ;;
3144*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3145esac
3146build=$ac_cv_build
3147ac_save_IFS=$IFS; IFS='-'
3148set x $ac_cv_build
3149shift
3150build_cpu=$1
3151build_vendor=$2
3152shift; shift
3153# Remember, the first character of IFS is used to create $*,
3154# except with old shells:
3155build_os=$*
3156IFS=$ac_save_IFS
3157case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3158
3159
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3161$as_echo_n "checking host system type... " >&6; }
3162if test "${ac_cv_host+set}" = set; then :
3163 $as_echo_n "(cached) " >&6
3164else
3165 if test "x$host_alias" = x; then
3166 ac_cv_host=$ac_cv_build
3167else
3168 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3169 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3170fi
3171
3172fi
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3174$as_echo "$ac_cv_host" >&6; }
3175case $ac_cv_host in
3176*-*-*) ;;
3177*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3178esac
3179host=$ac_cv_host
3180ac_save_IFS=$IFS; IFS='-'
3181set x $ac_cv_host
3182shift
3183host_cpu=$1
3184host_vendor=$2
3185shift; shift
3186# Remember, the first character of IFS is used to create $*,
3187# except with old shells:
3188host_os=$*
3189IFS=$ac_save_IFS
3190case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3191
3192
3193canonical=$host
3194configuration=${host_alias-${build_alias-$host}}
3195
3196
3197
3198### If you add support for a new configuration, add code to this
3199### switch statement to recognize your configuration name and select
3200### the appropriate operating system and machine description files.
3201
3202### You would hope that you could choose an m/*.h file pretty much
3203### based on the machine portion of the configuration name, and an s/*.h
3204### file based on the operating system portion. However, it turns out
3205### that each m/*.h file is pretty manufacturer-specific - for
3206### example mips.h is MIPS
3207### So we basically have to have a special case for each
3208### configuration name.
3209###
3210### As far as handling version numbers on operating systems is
3211### concerned, make sure things will fail in a fixable way. If
3212### /etc/MACHINES doesn't say anything about version numbers, be
3213### prepared to handle anything reasonably. If version numbers
3214### matter, be sure /etc/MACHINES says something about it.
3215
3216machine='' opsys='' unported=no
3217case "${canonical}" in
3218
3219 ## FreeBSD ports
3220 *-*-freebsd* )
3221 opsys=freebsd
3222 case "${canonical}" in
3223 alpha*) machine=alpha ;;
3224 amd64-*|x86_64-*) machine=amdx86-64 ;;
3225 arm*) machine=arm ;;
3226 ia64-*) machine=ia64 ;;
3227 i[3456]86-*) machine=intel386 ;;
3228 powerpc-*) machine=macppc ;;
3229 sparc-*) machine=sparc ;;
3230 sparc64-*) machine=sparc ;;
3231 esac
3232 ;;
3233
3234 ## FreeBSD kernel + glibc based userland
3235 *-*-kfreebsd*gnu* )
3236 opsys=gnu-kfreebsd
3237 case "${canonical}" in
3238 alpha*) machine=alpha ;;
3239 amd64-*|x86_64-*) machine=amdx86-64 ;;
3240 ia64-*) machine=ia64 ;;
3241 i[3456]86-*) machine=intel386 ;;
3242 powerpc-*) machine=macppc ;;
3243 sparc-*) machine=sparc ;;
3244 sparc64-*) machine=sparc ;;
3245 esac
3246 ;;
3247
3248 ## NetBSD ports
3249 *-*-netbsd* )
3250 opsys=netbsd
3251 case "${canonical}" in
3252 alpha*) machine=alpha ;;
3253 x86_64-*) machine=amdx86-64 ;;
3254 arm-*) machine=arm ;;
3255 hppa-*) machine=hp800 ;;
3256 i[3456]86-*) machine=intel386 ;;
3257 m68k-*) machine=m68k ;;
3258 powerpc-*) machine=macppc ;;
3259 mips-*) machine=mips ;;
3260 mipse[bl]-*) machine=mips ;;
3261 sparc*-) machine=sparc ;;
3262 vax-*) machine=vax ;;
3263 esac
3264 ;;
3265
3266 ## OpenBSD ports
3267 *-*-openbsd* )
3268 opsys=openbsd
3269 case "${canonical}" in
3270 alpha*) machine=alpha ;;
3271 x86_64-*) machine=amdx86-64 ;;
3272 arm-*) machine=arm ;;
3273 hppa-*) machine=hp800 ;;
3274 i386-*) machine=intel386 ;;
3275 powerpc-*) machine=macppc ;;
3276 sparc*) machine=sparc ;;
3277 vax-*) machine=vax ;;
3278 esac
3279 ;;
3280
3281 alpha*-*-linux-gnu* )
3282 machine=alpha opsys=gnu-linux
3283 ;;
3284
3285 arm*-*-linux-gnu* )
3286 machine=arm opsys=gnu-linux
3287 ;;
3288
3289 ## Apple Darwin / Mac OS X
3290 *-apple-darwin* )
3291 case "${canonical}" in
3292 i[3456]86-* ) machine=intel386 ;;
3293 powerpc-* ) machine=macppc ;;
3294 x86_64-* ) machine=amdx86-64 ;;
3295 * ) unported=yes ;;
3296 esac
3297 opsys=darwin
3298 # Define CPP as follows to make autoconf work correctly.
3299 CPP="${CC-cc} -E -no-cpp-precomp"
3300 # Use fink packages if available.
3301 if test -d /sw/include && test -d /sw/lib; then
3302 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3303 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3304 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3305 fi
3306 ;;
3307
3308 ## HP 9000 series 700 and 800, running HP/UX
3309 hppa*-hp-hpux10.2* )
3310 machine=hp800 opsys=hpux10-20
3311 ;;
3312 hppa*-hp-hpux1[1-9]* )
3313 machine=hp800 opsys=hpux11
3314 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3315 ;;
3316
3317 hppa*-*-linux-gnu* )
3318 machine=hp800 opsys=gnu-linux
3319 ;;
3320
3321 ## IBM machines
3322 s390-*-linux-gnu* )
3323 machine=ibms390 opsys=gnu-linux
3324 ;;
3325 s390x-*-linux-gnu* )
3326 machine=ibms390x opsys=gnu-linux
3327 ;;
3328 rs6000-ibm-aix4.[23]* )
3329 machine=ibmrs6000 opsys=aix4-2
3330 ;;
3331 powerpc-ibm-aix4.[23]* )
3332 machine=ibmrs6000 opsys=aix4-2
3333 ;;
3334 rs6000-ibm-aix[56]* )
3335 machine=ibmrs6000 opsys=aix4-2
3336 ;;
3337 powerpc-ibm-aix[56]* )
3338 machine=ibmrs6000 opsys=aix4-2
3339 ;;
3340
3341 ## Macintosh PowerPC
3342 powerpc*-*-linux-gnu* )
3343 machine=macppc opsys=gnu-linux
3344 ;;
3345
3346 ## Silicon Graphics machines
3347 ## Iris 4D
3348 mips-sgi-irix6.5 )
3349 machine=iris4d opsys=irix6-5
3350 # Without defining _LANGUAGE_C, things get masked out in the headers
3351 # so that, for instance, grepping for `free' in stdlib.h fails and
3352 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3353 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3354 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3355 ;;
3356
3357 ## Suns
3358 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3359 machine=sparc opsys=gnu-linux
3360 ;;
3361
3362 *-sun-solaris* \
3363 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3364 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3365 case "${canonical}" in
3366 i[3456]86-*-* ) machine=intel386 ;;
3367 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3368 sparc* ) machine=sparc ;;
3369 * ) unported=yes ;;
3370 esac
3371 case "${canonical}" in
3372 *-sunos5.6* | *-solaris2.6* )
3373 opsys=sol2-6
3374 NON_GNU_CPP=/usr/ccs/lib/cpp
3375 RANLIB="ar -ts"
3376 ;;
3377 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3378 opsys=sol2-6
3379 emacs_check_sunpro_c=yes
3380 NON_GNU_CPP=/usr/ccs/lib/cpp
3381 ;;
3382 *-sunos5* | *-solaris* )
3383 opsys=sol2-10
3384 emacs_check_sunpro_c=yes
3385 NON_GNU_CPP=/usr/ccs/lib/cpp
3386 ;;
3387 esac
3388 ## Watch out for a compiler that we know will not work.
3389 case "${canonical}" in
3390 *-solaris* | *-sunos5* )
3391 if [ "x$CC" = x/usr/ucb/cc ]; then
3392 ## /usr/ucb/cc doesn't work;
3393 ## we should find some other compiler that does work.
3394 unset CC
3395 fi
3396 ;;
3397 *) ;;
3398 esac
3399 ;;
3400
3401 ## IA-64
3402 ia64*-*-linux* )
3403 machine=ia64 opsys=gnu-linux
3404 ;;
3405
3406 ## Intel 386 machines where we don't care about the manufacturer.
3407 i[3456]86-*-* )
3408 machine=intel386
3409 case "${canonical}" in
3410 *-cygwin ) opsys=cygwin ;;
3411 *-darwin* ) opsys=darwin
3412 CPP="${CC-cc} -E -no-cpp-precomp"
3413 ;;
3414 *-linux-gnu* ) opsys=gnu-linux ;;
3415 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3416 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3417 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3418 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3419 esac
3420 ;;
3421
3422 ## m68k Linux-based GNU system
3423 m68k-*-linux-gnu* )
3424 machine=m68k opsys=gnu-linux
3425 ;;
3426
3427 ## Mips Linux-based GNU system
3428 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
3429 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
3430 machine=mips opsys=gnu-linux
3431 ;;
3432
3433 ## AMD x86-64 Linux-based GNU system
3434 x86_64-*-linux-gnu* )
3435 machine=amdx86-64 opsys=gnu-linux
3436 ;;
3437
3438 ## Tensilica Xtensa Linux-based GNU system
3439 xtensa*-*-linux-gnu* )
3440 machine=xtensa opsys=gnu-linux
3441 ;;
3442
3443 ## SuperH Linux-based GNU system
3444 sh[34]*-*-linux-gnu* )
3445 machine=sh3 opsys=gnu-linux
3446 ;;
3447
3448 * )
3449 unported=yes
3450 ;;
3451esac
3452
3453### If the code above didn't choose an operating system, just choose
3454### an operating system based on the configuration name. You really
3455### only want to use this when you have no idea what the right
3456### operating system is; if you know what operating systems a machine
3457### runs, it's cleaner to make it explicit in the case statement
3458### above.
3459if test x"${opsys}" = x; then
3460 case "${canonical}" in
3461 *-gnu* ) opsys=gnu ;;
3462 * )
3463 unported=yes
3464 ;;
3465 esac
3466fi
3467
3468
3469
3470if test $unported = yes; then
3471 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
3472Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3473fi
3474
3475machfile="m/${machine}.h"
3476opsysfile="s/${opsys}.h"
3477
3478
3479#### Choose a compiler.
3480test -n "$CC" && cc_specified=yes
3481
3482# Save the value of CFLAGS that the user specified.
3483SPECIFIED_CFLAGS="$CFLAGS"
3484
3485ac_ext=c
3486ac_cpp='$CPP $CPPFLAGS'
3487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490if test -n "$ac_tool_prefix"; then
3491 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3492set dummy ${ac_tool_prefix}gcc; 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; }
3495if test "${ac_cv_prog_CC+set}" = set; then :
3496 $as_echo_n "(cached) " >&6
3497else
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500else
3501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502for as_dir in $PATH
3503do
3504 IFS=$as_save_IFS
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3508 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 break 2
3511 fi
3512done
3513 done
3514IFS=$as_save_IFS
3515
3516fi
3517fi
3518CC=$ac_cv_prog_CC
3519if test -n "$CC"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3521$as_echo "$CC" >&6; }
3522else
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524$as_echo "no" >&6; }
3525fi
3526
3527
3528fi
3529if test -z "$ac_cv_prog_CC"; then
3530 ac_ct_CC=$CC
3531 # Extract the first word of "gcc", so it can be a program name with args.
3532set dummy gcc; ac_word=$2
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534$as_echo_n "checking for $ac_word... " >&6; }
3535if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3536 $as_echo_n "(cached) " >&6
3537else
3538 if test -n "$ac_ct_CC"; then
3539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3540else
3541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542for as_dir in $PATH
3543do
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3548 ac_cv_prog_ac_ct_CC="gcc"
3549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3551 fi
3552done
3553 done
3554IFS=$as_save_IFS
3555
3556fi
3557fi
3558ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559if test -n "$ac_ct_CC"; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3561$as_echo "$ac_ct_CC" >&6; }
3562else
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564$as_echo "no" >&6; }
3565fi
3566
3567 if test "x$ac_ct_CC" = x; then
3568 CC=""
3569 else
3570 case $cross_compiling:$ac_tool_warned in
3571yes:)
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3573$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3574ac_tool_warned=yes ;;
3575esac
3576 CC=$ac_ct_CC
3577 fi
3578else
3579 CC="$ac_cv_prog_CC"
3580fi
3581
3582if test -z "$CC"; then
3583 if test -n "$ac_tool_prefix"; then
3584 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3585set dummy ${ac_tool_prefix}cc; ac_word=$2
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587$as_echo_n "checking for $ac_word... " >&6; }
3588if test "${ac_cv_prog_CC+set}" = set; then :
3589 $as_echo_n "(cached) " >&6
3590else
3591 if test -n "$CC"; then
3592 ac_cv_prog_CC="$CC" # Let the user override the test.
3593else
3594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595for as_dir in $PATH
3596do
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 ac_cv_prog_CC="${ac_tool_prefix}cc"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 break 2
3604 fi
3605done
3606 done
3607IFS=$as_save_IFS
3608
3609fi
3610fi
3611CC=$ac_cv_prog_CC
3612if test -n "$CC"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3614$as_echo "$CC" >&6; }
3615else
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617$as_echo "no" >&6; }
3618fi
3619
3620
3621 fi
3622fi
3623if test -z "$CC"; then
3624 # Extract the first word of "cc", so it can be a program name with args.
3625set dummy cc; ac_word=$2
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627$as_echo_n "checking for $ac_word... " >&6; }
3628if test "${ac_cv_prog_CC+set}" = set; then :
3629 $as_echo_n "(cached) " >&6
3630else
3631 if test -n "$CC"; then
3632 ac_cv_prog_CC="$CC" # Let the user override the test.
3633else
3634 ac_prog_rejected=no
3635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636for as_dir in $PATH
3637do
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3642 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3643 ac_prog_rejected=yes
3644 continue
3645 fi
3646 ac_cv_prog_CC="cc"
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648 break 2
3649 fi
3650done
3651 done
3652IFS=$as_save_IFS
3653
3654if test $ac_prog_rejected = yes; then
3655 # We found a bogon in the path, so make sure we never use it.
3656 set dummy $ac_cv_prog_CC
3657 shift
3658 if test $# != 0; then
3659 # We chose a different compiler from the bogus one.
3660 # However, it has the same basename, so the bogon will be chosen
3661 # first if we set CC to just the basename; use the full file name.
3662 shift
3663 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3664 fi
3665fi
3666fi
3667fi
3668CC=$ac_cv_prog_CC
3669if test -n "$CC"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3671$as_echo "$CC" >&6; }
3672else
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674$as_echo "no" >&6; }
3675fi
3676
3677
3678fi
3679if test -z "$CC"; then
3680 if test -n "$ac_tool_prefix"; then
3681 for ac_prog in cl.exe
3682 do
3683 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3684set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686$as_echo_n "checking for $ac_word... " >&6; }
3687if test "${ac_cv_prog_CC+set}" = set; then :
3688 $as_echo_n "(cached) " >&6
3689else
3690 if test -n "$CC"; then
3691 ac_cv_prog_CC="$CC" # Let the user override the test.
3692else
3693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694for as_dir in $PATH
3695do
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3700 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 break 2
3703 fi
3704done
3705 done
3706IFS=$as_save_IFS
3707
3708fi
3709fi
3710CC=$ac_cv_prog_CC
3711if test -n "$CC"; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3713$as_echo "$CC" >&6; }
3714else
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716$as_echo "no" >&6; }
3717fi
3718
3719
3720 test -n "$CC" && break
3721 done
3722fi
3723if test -z "$CC"; then
3724 ac_ct_CC=$CC
3725 for ac_prog in cl.exe
3726do
3727 # Extract the first word of "$ac_prog", so it can be a program name with args.
3728set dummy $ac_prog; ac_word=$2
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730$as_echo_n "checking for $ac_word... " >&6; }
3731if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3732 $as_echo_n "(cached) " >&6
3733else
3734 if test -n "$ac_ct_CC"; then
3735 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3736else
3737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738for as_dir in $PATH
3739do
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3744 ac_cv_prog_ac_ct_CC="$ac_prog"
3745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 break 2
3747 fi
3748done
3749 done
3750IFS=$as_save_IFS
3751
3752fi
3753fi
3754ac_ct_CC=$ac_cv_prog_ac_ct_CC
3755if test -n "$ac_ct_CC"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3757$as_echo "$ac_ct_CC" >&6; }
3758else
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760$as_echo "no" >&6; }
3761fi
3762
3763
3764 test -n "$ac_ct_CC" && break
3765done
3766
3767 if test "x$ac_ct_CC" = x; then
3768 CC=""
3769 else
3770 case $cross_compiling:$ac_tool_warned in
3771yes:)
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3774ac_tool_warned=yes ;;
3775esac
3776 CC=$ac_ct_CC
3777 fi
3778fi
3779
3780fi
3781
3782
3783test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785as_fn_error "no acceptable C compiler found in \$PATH
3786See \`config.log' for more details." "$LINENO" 5; }
3787
3788# Provide some information about the compiler.
3789$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3790set X $ac_compile
3791ac_compiler=$2
3792for ac_option in --version -v -V -qversion; do
3793 { { ac_try="$ac_compiler $ac_option >&5"
3794case "(($ac_try" in
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3797esac
3798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3799$as_echo "$ac_try_echo"; } >&5
3800 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3801 ac_status=$?
3802 if test -s conftest.err; then
3803 sed '10a\
3804... rest of stderr output deleted ...
3805 10q' conftest.err >conftest.er1
3806 cat conftest.er1 >&5
3807 fi
3808 rm -f conftest.er1 conftest.err
3809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810 test $ac_status = 0; }
3811done
3812
3813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814/* end confdefs.h. */
3815
3816int
3817main ()
3818{
3819
3820 ;
3821 return 0;
3822}
3823_ACEOF
3824ac_clean_files_save=$ac_clean_files
3825ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3826# Try to create an executable without -o first, disregard a.out.
3827# It will help us diagnose broken compilers, and finding out an intuition
3828# of exeext.
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3830$as_echo_n "checking whether the C compiler works... " >&6; }
3831ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3832
3833# The possible output files:
3834ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3835
3836ac_rmfiles=
3837for ac_file in $ac_files
3838do
3839 case $ac_file in
3840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3841 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3842 esac
3843done
3844rm -f $ac_rmfiles
3845
3846if { { ac_try="$ac_link_default"
3847case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850esac
3851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852$as_echo "$ac_try_echo"; } >&5
3853 (eval "$ac_link_default") 2>&5
3854 ac_status=$?
3855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }; then :
3857 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3858# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3859# in a Makefile. We should not override ac_cv_exeext if it was cached,
3860# so that the user can short-circuit this test for compilers unknown to
3861# Autoconf.
3862for ac_file in $ac_files ''
3863do
3864 test -f "$ac_file" || continue
3865 case $ac_file in
3866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3867 ;;
3868 [ab].out )
3869 # We found the default executable, but exeext='' is most
3870 # certainly right.
3871 break;;
3872 *.* )
3873 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3874 then :; else
3875 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3876 fi
3877 # We set ac_cv_exeext here because the later test for it is not
3878 # safe: cross compilers may not add the suffix if given an `-o'
3879 # argument, so we may need to know it at that point already.
3880 # Even if this section looks crufty: it has the advantage of
3881 # actually working.
3882 break;;
3883 * )
3884 break;;
3885 esac
3886done
3887test "$ac_cv_exeext" = no && ac_cv_exeext=
3888
3889else
3890 ac_file=''
3891fi
3892if test -z "$ac_file"; then :
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3894$as_echo "no" >&6; }
3895$as_echo "$as_me: failed program was:" >&5
3896sed 's/^/| /' conftest.$ac_ext >&5
3897
3898{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3900{ as_fn_set_status 77
3901as_fn_error "C compiler cannot create executables
3902See \`config.log' for more details." "$LINENO" 5; }; }
3903else
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3905$as_echo "yes" >&6; }
3906fi
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3908$as_echo_n "checking for C compiler default output file name... " >&6; }
3909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3910$as_echo "$ac_file" >&6; }
3911ac_exeext=$ac_cv_exeext
3912
3913rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3914ac_clean_files=$ac_clean_files_save
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3916$as_echo_n "checking for suffix of executables... " >&6; }
3917if { { ac_try="$ac_link"
3918case "(($ac_try" in
3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920 *) ac_try_echo=$ac_try;;
3921esac
3922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923$as_echo "$ac_try_echo"; } >&5
3924 (eval "$ac_link") 2>&5
3925 ac_status=$?
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }; then :
3928 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3929# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3930# work properly (i.e., refer to `conftest.exe'), while it won't with
3931# `rm'.
3932for ac_file in conftest.exe conftest conftest.*; do
3933 test -f "$ac_file" || continue
3934 case $ac_file in
3935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3936 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3937 break;;
3938 * ) break;;
3939 esac
3940done
3941else
3942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944as_fn_error "cannot compute suffix of executables: cannot compile and link
3945See \`config.log' for more details." "$LINENO" 5; }
3946fi
3947rm -f conftest conftest$ac_cv_exeext
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3949$as_echo "$ac_cv_exeext" >&6; }
3950
3951rm -f conftest.$ac_ext
3952EXEEXT=$ac_cv_exeext
3953ac_exeext=$EXEEXT
3954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955/* end confdefs.h. */
3956#include <stdio.h>
3957int
3958main ()
3959{
3960FILE *f = fopen ("conftest.out", "w");
3961 return ferror (f) || fclose (f) != 0;
3962
3963 ;
3964 return 0;
3965}
3966_ACEOF
3967ac_clean_files="$ac_clean_files conftest.out"
3968# Check that the compiler produces executables we can run. If not, either
3969# the compiler is broken, or we cross compile.
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3971$as_echo_n "checking whether we are cross compiling... " >&6; }
3972if test "$cross_compiling" != yes; then
3973 { { ac_try="$ac_link"
3974case "(($ac_try" in
3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3977esac
3978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3979$as_echo "$ac_try_echo"; } >&5
3980 (eval "$ac_link") 2>&5
3981 ac_status=$?
3982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3983 test $ac_status = 0; }
3984 if { ac_try='./conftest$ac_cv_exeext'
3985 { { case "(($ac_try" in
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3988esac
3989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3990$as_echo "$ac_try_echo"; } >&5
3991 (eval "$ac_try") 2>&5
3992 ac_status=$?
3993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3994 test $ac_status = 0; }; }; then
3995 cross_compiling=no
3996 else
3997 if test "$cross_compiling" = maybe; then
3998 cross_compiling=yes
3999 else
4000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4001$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4002as_fn_error "cannot run C compiled programs.
4003If you meant to cross compile, use \`--host'.
4004See \`config.log' for more details." "$LINENO" 5; }
4005 fi
4006 fi
4007fi
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4009$as_echo "$cross_compiling" >&6; }
4010
4011rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4012ac_clean_files=$ac_clean_files_save
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4014$as_echo_n "checking for suffix of object files... " >&6; }
4015if test "${ac_cv_objext+set}" = set; then :
4016 $as_echo_n "(cached) " >&6
4017else
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019/* end confdefs.h. */
4020
4021int
4022main ()
4023{
4024
4025 ;
4026 return 0;
4027}
4028_ACEOF
4029rm -f conftest.o conftest.obj
4030if { { ac_try="$ac_compile"
4031case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034esac
4035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036$as_echo "$ac_try_echo"; } >&5
4037 (eval "$ac_compile") 2>&5
4038 ac_status=$?
4039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040 test $ac_status = 0; }; then :
4041 for ac_file in conftest.o conftest.obj conftest.*; do
4042 test -f "$ac_file" || continue;
4043 case $ac_file in
4044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4045 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4046 break;;
4047 esac
4048done
4049else
4050 $as_echo "$as_me: failed program was:" >&5
4051sed 's/^/| /' conftest.$ac_ext >&5
4052
4053{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4055as_fn_error "cannot compute suffix of object files: cannot compile
4056See \`config.log' for more details." "$LINENO" 5; }
4057fi
4058rm -f conftest.$ac_cv_objext conftest.$ac_ext
4059fi
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4061$as_echo "$ac_cv_objext" >&6; }
4062OBJEXT=$ac_cv_objext
4063ac_objext=$OBJEXT
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4065$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4066if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4067 $as_echo_n "(cached) " >&6
4068else
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070/* end confdefs.h. */
4071
4072int
4073main ()
4074{
4075#ifndef __GNUC__
4076 choke me
4077#endif
4078
4079 ;
4080 return 0;
4081}
4082_ACEOF
4083if ac_fn_c_try_compile "$LINENO"; then :
4084 ac_compiler_gnu=yes
4085else
4086 ac_compiler_gnu=no
4087fi
4088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089ac_cv_c_compiler_gnu=$ac_compiler_gnu
4090
4091fi
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4093$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4094if test $ac_compiler_gnu = yes; then
4095 GCC=yes
4096else
4097 GCC=
4098fi
4099ac_test_CFLAGS=${CFLAGS+set}
4100ac_save_CFLAGS=$CFLAGS
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4102$as_echo_n "checking whether $CC accepts -g... " >&6; }
4103if test "${ac_cv_prog_cc_g+set}" = set; then :
4104 $as_echo_n "(cached) " >&6
4105else
4106 ac_save_c_werror_flag=$ac_c_werror_flag
4107 ac_c_werror_flag=yes
4108 ac_cv_prog_cc_g=no
4109 CFLAGS="-g"
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111/* end confdefs.h. */
4112
4113int
4114main ()
4115{
4116
4117 ;
4118 return 0;
4119}
4120_ACEOF
4121if ac_fn_c_try_compile "$LINENO"; then :
4122 ac_cv_prog_cc_g=yes
4123else
4124 CFLAGS=""
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126/* end confdefs.h. */
4127
4128int
4129main ()
4130{
4131
4132 ;
4133 return 0;
4134}
4135_ACEOF
4136if ac_fn_c_try_compile "$LINENO"; then :
4137
4138else
4139 ac_c_werror_flag=$ac_save_c_werror_flag
4140 CFLAGS="-g"
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142/* end confdefs.h. */
4143
4144int
4145main ()
4146{
4147
4148 ;
4149 return 0;
4150}
4151_ACEOF
4152if ac_fn_c_try_compile "$LINENO"; then :
4153 ac_cv_prog_cc_g=yes
4154fi
4155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156fi
4157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158fi
4159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 ac_c_werror_flag=$ac_save_c_werror_flag
4161fi
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4163$as_echo "$ac_cv_prog_cc_g" >&6; }
4164if test "$ac_test_CFLAGS" = set; then
4165 CFLAGS=$ac_save_CFLAGS
4166elif test $ac_cv_prog_cc_g = yes; then
4167 if test "$GCC" = yes; then
4168 CFLAGS="-g -O2"
4169 else
4170 CFLAGS="-g"
4171 fi
4172else
4173 if test "$GCC" = yes; then
4174 CFLAGS="-O2"
4175 else
4176 CFLAGS=
4177 fi
4178fi
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4180$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4181if test "${ac_cv_prog_cc_c89+set}" = set; then :
4182 $as_echo_n "(cached) " >&6
4183else
4184 ac_cv_prog_cc_c89=no
4185ac_save_CC=$CC
4186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187/* end confdefs.h. */
4188#include <stdarg.h>
4189#include <stdio.h>
4190#include <sys/types.h>
4191#include <sys/stat.h>
4192/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4193struct buf { int x; };
4194FILE * (*rcsopen) (struct buf *, struct stat *, int);
4195static char *e (p, i)
4196 char **p;
4197 int i;
4198{
4199 return p[i];
4200}
4201static char *f (char * (*g) (char **, int), char **p, ...)
4202{
4203 char *s;
4204 va_list v;
4205 va_start (v,p);
4206 s = g (p, va_arg (v,int));
4207 va_end (v);
4208 return s;
4209}
4210
4211/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4212 function prototypes and stuff, but not '\xHH' hex character constants.
4213 These don't provoke an error unfortunately, instead are silently treated
4214 as 'x'. The following induces an error, until -std is added to get
4215 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4216 array size at least. It's necessary to write '\x00'==0 to get something
4217 that's true only with -std. */
4218int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4219
4220/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4221 inside strings and character constants. */
4222#define FOO(x) 'x'
4223int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4224
4225int test (int i, double x);
4226struct s1 {int (*f) (int a);};
4227struct s2 {int (*f) (double a);};
4228int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4229int argc;
4230char **argv;
4231int
4232main ()
4233{
4234return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4235 ;
4236 return 0;
4237}
4238_ACEOF
4239for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4240 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4241do
4242 CC="$ac_save_CC $ac_arg"
4243 if ac_fn_c_try_compile "$LINENO"; then :
4244 ac_cv_prog_cc_c89=$ac_arg
4245fi
4246rm -f core conftest.err conftest.$ac_objext
4247 test "x$ac_cv_prog_cc_c89" != "xno" && break
4248done
4249rm -f conftest.$ac_ext
4250CC=$ac_save_CC
4251
4252fi
4253# AC_CACHE_VAL
4254case "x$ac_cv_prog_cc_c89" in
4255 x)
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4257$as_echo "none needed" >&6; } ;;
4258 xno)
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4260$as_echo "unsupported" >&6; } ;;
4261 *)
4262 CC="$CC $ac_cv_prog_cc_c89"
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4264$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4265esac
4266if test "x$ac_cv_prog_cc_c89" != xno; then :
4267
4268fi
4269
4270ac_ext=c
4271ac_cpp='$CPP $CPPFLAGS'
4272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4274ac_compiler_gnu=$ac_cv_c_compiler_gnu
4275
4276
4277# On Suns, sometimes $CPP names a directory.
4278if test -n "$CPP" && test -d "$CPP"; then
4279 CPP=
4280fi
4281
4282## If not using gcc, and on Solaris, and no CPP specified, see if
4283## using a Sun compiler, which needs -Xs to prevent whitespace.
4284if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4285 test x"$CPP" = x; then
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4287$as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4288
4289if test "${emacs_cv_sunpro_c+set}" = set; then :
4290 $as_echo_n "(cached) " >&6
4291else
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293/* end confdefs.h. */
4294
4295int
4296main ()
4297{
4298#ifndef __SUNPRO_C
4299fail;
4300#endif
4301
4302 ;
4303 return 0;
4304}
4305_ACEOF
4306if ac_fn_c_try_link "$LINENO"; then :
4307 emacs_cv_sunpro_c=yes
4308else
4309 emacs_cv_sunpro_c=no
4310fi
4311rm -f core conftest.err conftest.$ac_objext \
4312 conftest$ac_exeext conftest.$ac_ext
4313fi
4314
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4316$as_echo "$emacs_cv_sunpro_c" >&6; }
4317
4318 if test x"$emacs_cv_sunpro_c" = xyes; then
4319 NON_GNU_CPP="$CC -E -Xs"
4320 fi
4321fi
4322
4323#### Some systems specify a CPP to use unless we are using GCC.
4324#### Now that we know whether we are using GCC, we can decide whether
4325#### to use that one.
4326if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4327then
4328 CPP="$NON_GNU_CPP"
4329fi
4330
4331#### Some systems specify a CC to use unless we are using GCC.
4332#### Now that we know whether we are using GCC, we can decide whether
4333#### to use that one.
4334if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4335 test x$cc_specified != xyes
4336then
4337 CC="$NON_GNU_CC"
4338fi
4339
4340if test x$GCC = xyes; then
4341 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4342else
4343 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4344fi
4345
4346ac_ext=c
4347ac_cpp='$CPP $CPPFLAGS'
4348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350ac_compiler_gnu=$ac_cv_c_compiler_gnu
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4352$as_echo_n "checking how to run the C preprocessor... " >&6; }
4353# On Suns, sometimes $CPP names a directory.
4354if test -n "$CPP" && test -d "$CPP"; then
4355 CPP=
4356fi
4357if test -z "$CPP"; then
4358 if test "${ac_cv_prog_CPP+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4360else
4361 # Double quotes because CPP needs to be expanded
4362 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4363 do
4364 ac_preproc_ok=false
4365for ac_c_preproc_warn_flag in '' yes
4366do
4367 # Use a header file that comes with gcc, so configuring glibc
4368 # with a fresh cross-compiler works.
4369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4370 # <limits.h> exists even on freestanding compilers.
4371 # On the NeXT, cc -E runs the code through the compiler's parser,
4372 # not just through cpp. "Syntax error" is here to catch this case.
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374/* end confdefs.h. */
4375#ifdef __STDC__
4376# include <limits.h>
4377#else
4378# include <assert.h>
4379#endif
4380 Syntax error
4381_ACEOF
4382if ac_fn_c_try_cpp "$LINENO"; then :
4383
4384else
4385 # Broken: fails on valid input.
4386continue
4387fi
4388rm -f conftest.err conftest.$ac_ext
4389
4390 # OK, works on sane cases. Now check whether nonexistent headers
4391 # can be detected and how.
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393/* end confdefs.h. */
4394#include <ac_nonexistent.h>
4395_ACEOF
4396if ac_fn_c_try_cpp "$LINENO"; then :
4397 # Broken: success on invalid input.
4398continue
4399else
4400 # Passes both tests.
4401ac_preproc_ok=:
4402break
4403fi
4404rm -f conftest.err conftest.$ac_ext
4405
4406done
4407# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4408rm -f conftest.err conftest.$ac_ext
4409if $ac_preproc_ok; then :
4410 break
4411fi
4412
4413 done
4414 ac_cv_prog_CPP=$CPP
4415
4416fi
4417 CPP=$ac_cv_prog_CPP
4418else
4419 ac_cv_prog_CPP=$CPP
4420fi
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4422$as_echo "$CPP" >&6; }
4423ac_preproc_ok=false
4424for ac_c_preproc_warn_flag in '' yes
4425do
4426 # Use a header file that comes with gcc, so configuring glibc
4427 # with a fresh cross-compiler works.
4428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4429 # <limits.h> exists even on freestanding compilers.
4430 # On the NeXT, cc -E runs the code through the compiler's parser,
4431 # not just through cpp. "Syntax error" is here to catch this case.
4432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433/* end confdefs.h. */
4434#ifdef __STDC__
4435# include <limits.h>
4436#else
4437# include <assert.h>
4438#endif
4439 Syntax error
4440_ACEOF
4441if ac_fn_c_try_cpp "$LINENO"; then :
4442
4443else
4444 # Broken: fails on valid input.
4445continue
4446fi
4447rm -f conftest.err conftest.$ac_ext
4448
4449 # OK, works on sane cases. Now check whether nonexistent headers
4450 # can be detected and how.
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452/* end confdefs.h. */
4453#include <ac_nonexistent.h>
4454_ACEOF
4455if ac_fn_c_try_cpp "$LINENO"; then :
4456 # Broken: success on invalid input.
4457continue
4458else
4459 # Passes both tests.
4460ac_preproc_ok=:
4461break
4462fi
4463rm -f conftest.err conftest.$ac_ext
4464
4465done
4466# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4467rm -f conftest.err conftest.$ac_ext
4468if $ac_preproc_ok; then :
4469
4470else
4471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4473as_fn_error "C preprocessor \"$CPP\" fails sanity check
4474See \`config.log' for more details." "$LINENO" 5; }
4475fi
4476
4477ac_ext=c
4478ac_cpp='$CPP $CPPFLAGS'
4479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4481ac_compiler_gnu=$ac_cv_c_compiler_gnu
4482
4483
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4485$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4486if test "${ac_cv_path_GREP+set}" = set; then :
4487 $as_echo_n "(cached) " >&6
4488else
4489 if test -z "$GREP"; then
4490 ac_path_GREP_found=false
4491 # Loop through the user's path and test for each of PROGNAME-LIST
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4494do
4495 IFS=$as_save_IFS
4496 test -z "$as_dir" && as_dir=.
4497 for ac_prog in grep ggrep; do
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4500 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4501# Check for GNU ac_path_GREP and select it if it is found.
4502 # Check for GNU $ac_path_GREP
4503case `"$ac_path_GREP" --version 2>&1` in
4504*GNU*)
4505 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4506*)
4507 ac_count=0
4508 $as_echo_n 0123456789 >"conftest.in"
4509 while :
4510 do
4511 cat "conftest.in" "conftest.in" >"conftest.tmp"
4512 mv "conftest.tmp" "conftest.in"
4513 cp "conftest.in" "conftest.nl"
4514 $as_echo 'GREP' >> "conftest.nl"
4515 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4516 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4517 as_fn_arith $ac_count + 1 && ac_count=$as_val
4518 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4519 # Best one so far, save it but keep looking for a better one
4520 ac_cv_path_GREP="$ac_path_GREP"
4521 ac_path_GREP_max=$ac_count
4522 fi
4523 # 10*(2^10) chars as input seems more than enough
4524 test $ac_count -gt 10 && break
4525 done
4526 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4527esac
4528
4529 $ac_path_GREP_found && break 3
4530 done
4531 done
4532 done
4533IFS=$as_save_IFS
4534 if test -z "$ac_cv_path_GREP"; then
4535 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4536 fi
4537else
4538 ac_cv_path_GREP=$GREP
4539fi
4540
4541fi
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4543$as_echo "$ac_cv_path_GREP" >&6; }
4544 GREP="$ac_cv_path_GREP"
4545
4546
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4548$as_echo_n "checking for egrep... " >&6; }
4549if test "${ac_cv_path_EGREP+set}" = set; then :
4550 $as_echo_n "(cached) " >&6
4551else
4552 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4553 then ac_cv_path_EGREP="$GREP -E"
4554 else
4555 if test -z "$EGREP"; then
4556 ac_path_EGREP_found=false
4557 # Loop through the user's path and test for each of PROGNAME-LIST
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4560do
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_prog in egrep; do
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4566 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4567# Check for GNU ac_path_EGREP and select it if it is found.
4568 # Check for GNU $ac_path_EGREP
4569case `"$ac_path_EGREP" --version 2>&1` in
4570*GNU*)
4571 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4572*)
4573 ac_count=0
4574 $as_echo_n 0123456789 >"conftest.in"
4575 while :
4576 do
4577 cat "conftest.in" "conftest.in" >"conftest.tmp"
4578 mv "conftest.tmp" "conftest.in"
4579 cp "conftest.in" "conftest.nl"
4580 $as_echo 'EGREP' >> "conftest.nl"
4581 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4583 as_fn_arith $ac_count + 1 && ac_count=$as_val
4584 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4585 # Best one so far, save it but keep looking for a better one
4586 ac_cv_path_EGREP="$ac_path_EGREP"
4587 ac_path_EGREP_max=$ac_count
4588 fi
4589 # 10*(2^10) chars as input seems more than enough
4590 test $ac_count -gt 10 && break
4591 done
4592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4593esac
4594
4595 $ac_path_EGREP_found && break 3
4596 done
4597 done
4598 done
4599IFS=$as_save_IFS
4600 if test -z "$ac_cv_path_EGREP"; then
4601 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4602 fi
4603else
4604 ac_cv_path_EGREP=$EGREP
4605fi
4606
4607 fi
4608fi
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4610$as_echo "$ac_cv_path_EGREP" >&6; }
4611 EGREP="$ac_cv_path_EGREP"
4612
4613
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4615$as_echo_n "checking for ANSI C header files... " >&6; }
4616if test "${ac_cv_header_stdc+set}" = set; then :
4617 $as_echo_n "(cached) " >&6
4618else
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620/* end confdefs.h. */
4621#include <stdlib.h>
4622#include <stdarg.h>
4623#include <string.h>
4624#include <float.h>
4625
4626int
4627main ()
4628{
4629
4630 ;
4631 return 0;
4632}
4633_ACEOF
4634if ac_fn_c_try_compile "$LINENO"; then :
4635 ac_cv_header_stdc=yes
4636else
4637 ac_cv_header_stdc=no
4638fi
4639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640
4641if test $ac_cv_header_stdc = yes; then
4642 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644/* end confdefs.h. */
4645#include <string.h>
4646
4647_ACEOF
4648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4649 $EGREP "memchr" >/dev/null 2>&1; then :
4650
4651else
4652 ac_cv_header_stdc=no
4653fi
4654rm -f conftest*
4655
4656fi
4657
4658if test $ac_cv_header_stdc = yes; then
4659 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661/* end confdefs.h. */
4662#include <stdlib.h>
4663
4664_ACEOF
4665if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4666 $EGREP "free" >/dev/null 2>&1; then :
4667
4668else
4669 ac_cv_header_stdc=no
4670fi
4671rm -f conftest*
4672
4673fi
4674
4675if test $ac_cv_header_stdc = yes; then
4676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4677 if test "$cross_compiling" = yes; then :
4678 :
4679else
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681/* end confdefs.h. */
4682#include <ctype.h>
4683#include <stdlib.h>
4684#if ((' ' & 0x0FF) == 0x020)
4685# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4686# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4687#else
4688# define ISLOWER(c) \
4689 (('a' <= (c) && (c) <= 'i') \
4690 || ('j' <= (c) && (c) <= 'r') \
4691 || ('s' <= (c) && (c) <= 'z'))
4692# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4693#endif
4694
4695#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4696int
4697main ()
4698{
4699 int i;
4700 for (i = 0; i < 256; i++)
4701 if (XOR (islower (i), ISLOWER (i))
4702 || toupper (i) != TOUPPER (i))
4703 return 2;
4704 return 0;
4705}
4706_ACEOF
4707if ac_fn_c_try_run "$LINENO"; then :
4708
4709else
4710 ac_cv_header_stdc=no
4711fi
4712rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4713 conftest.$ac_objext conftest.beam conftest.$ac_ext
4714fi
4715
4716fi
4717fi
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4719$as_echo "$ac_cv_header_stdc" >&6; }
4720if test $ac_cv_header_stdc = yes; then
4721
4722$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4723
4724fi
4725
4726# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4727for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4728 inttypes.h stdint.h unistd.h
4729do :
4730 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4731ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4732"
4733eval as_val=\$$as_ac_Header
4734 if test "x$as_val" = x""yes; then :
4735 cat >>confdefs.h <<_ACEOF
4736#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4737_ACEOF
4738
4739fi
4740
4741done
4742
4743
4744
4745 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4746if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4747 MINIX=yes
4748else
4749 MINIX=
4750fi
4751
4752
4753 if test "$MINIX" = yes; then
4754
4755$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4756
4757
4758$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4759
4760
4761$as_echo "#define _MINIX 1" >>confdefs.h
4762
4763 fi
4764
4765
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4767$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4768if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4769 $as_echo_n "(cached) " >&6
4770else
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772/* end confdefs.h. */
4773
4774# define __EXTENSIONS__ 1
4775 $ac_includes_default
4776int
4777main ()
4778{
4779
4780 ;
4781 return 0;
4782}
4783_ACEOF
4784if ac_fn_c_try_compile "$LINENO"; then :
4785 ac_cv_safe_to_define___extensions__=yes
4786else
4787 ac_cv_safe_to_define___extensions__=no
4788fi
4789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790fi
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4792$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4793 test $ac_cv_safe_to_define___extensions__ = yes &&
4794 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4795
4796 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4797
4798 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4799
4800 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4801
4802 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4803
4804
4805
4806### Use -Wno-pointer-sign if the compiler supports it
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4808$as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4809SAVE_CFLAGS="$CFLAGS"
4810CFLAGS="$CFLAGS -Wno-pointer-sign"
4811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812/* end confdefs.h. */
4813
4814int
4815main ()
4816{
4817
4818 ;
4819 return 0;
4820}
4821_ACEOF
4822if ac_fn_c_try_compile "$LINENO"; then :
4823 has_option=yes
4824else
4825 has_option=no
4826fi
4827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4828if test $has_option = yes; then
4829 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4830fi
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4832$as_echo "$has_option" >&6; }
4833CFLAGS="$SAVE_CFLAGS"
4834unset has_option
4835unset SAVE_CFLAGS
4836
4837### Use -Wdeclaration-after-statement if the compiler supports it
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4839$as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4840SAVE_CFLAGS="$CFLAGS"
4841CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843/* end confdefs.h. */
4844
4845int
4846main ()
4847{
4848
4849 ;
4850 return 0;
4851}
4852_ACEOF
4853if ac_fn_c_try_compile "$LINENO"; then :
4854 has_option=yes
4855else
4856 has_option=no
4857fi
4858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859if test $has_option = yes; then
4860 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4861fi
4862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4863$as_echo "$has_option" >&6; }
4864CFLAGS="$SAVE_CFLAGS"
4865unset has_option
4866unset SAVE_CFLAGS
4867
4868### Use -Wold-style-definition if the compiler supports it
4869# This can be removed when conversion to standard C is finished.
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4871$as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4872SAVE_CFLAGS="$CFLAGS"
4873CFLAGS="$CFLAGS -Wold-style-definition"
4874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875/* end confdefs.h. */
4876
4877int
4878main ()
4879{
4880
4881 ;
4882 return 0;
4883}
4884_ACEOF
4885if ac_fn_c_try_compile "$LINENO"; then :
4886 has_option=yes
4887else
4888 has_option=no
4889fi
4890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891if test $has_option = yes; then
4892 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
4893fi
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4895$as_echo "$has_option" >&6; }
4896CFLAGS="$SAVE_CFLAGS"
4897unset has_option
4898unset SAVE_CFLAGS
4899
4900### Use -Wimplicit-function-declaration if the compiler supports it
4901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
4902$as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
4903SAVE_CFLAGS="$CFLAGS"
4904CFLAGS="$CFLAGS -Wimplicit-function-declaration"
4905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906/* end confdefs.h. */
4907
4908int
4909main ()
4910{
4911
4912 ;
4913 return 0;
4914}
4915_ACEOF
4916if ac_fn_c_try_compile "$LINENO"; then :
4917 has_option=yes
4918else
4919 has_option=no
4920fi
4921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922if test $has_option = yes; then
4923 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4924fi
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4926$as_echo "$has_option" >&6; }
4927CFLAGS="$SAVE_CFLAGS"
4928unset has_option
4929unset SAVE_CFLAGS
4930
4931
4932
4933
4934#### Some other nice autoconf tests.
4935
4936ac_ext=c
4937ac_cpp='$CPP $CPPFLAGS'
4938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4940ac_compiler_gnu=$ac_cv_c_compiler_gnu
4941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4942$as_echo_n "checking how to run the C preprocessor... " >&6; }
4943# On Suns, sometimes $CPP names a directory.
4944if test -n "$CPP" && test -d "$CPP"; then
4945 CPP=
4946fi
4947if test -z "$CPP"; then
4948 if test "${ac_cv_prog_CPP+set}" = set; then :
4949 $as_echo_n "(cached) " >&6
4950else
4951 # Double quotes because CPP needs to be expanded
4952 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4953 do
4954 ac_preproc_ok=false
4955for ac_c_preproc_warn_flag in '' yes
4956do
4957 # Use a header file that comes with gcc, so configuring glibc
4958 # with a fresh cross-compiler works.
4959 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4960 # <limits.h> exists even on freestanding compilers.
4961 # On the NeXT, cc -E runs the code through the compiler's parser,
4962 # not just through cpp. "Syntax error" is here to catch this case.
4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964/* end confdefs.h. */
4965#ifdef __STDC__
4966# include <limits.h>
4967#else
4968# include <assert.h>
4969#endif
4970 Syntax error
4971_ACEOF
4972if ac_fn_c_try_cpp "$LINENO"; then :
4973
4974else
4975 # Broken: fails on valid input.
4976continue
4977fi
4978rm -f conftest.err conftest.$ac_ext
4979
4980 # OK, works on sane cases. Now check whether nonexistent headers
4981 # can be detected and how.
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983/* end confdefs.h. */
4984#include <ac_nonexistent.h>
4985_ACEOF
4986if ac_fn_c_try_cpp "$LINENO"; then :
4987 # Broken: success on invalid input.
4988continue
4989else
4990 # Passes both tests.
4991ac_preproc_ok=:
4992break
4993fi
4994rm -f conftest.err conftest.$ac_ext
4995
4996done
4997# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4998rm -f conftest.err conftest.$ac_ext
4999if $ac_preproc_ok; then :
5000 break
5001fi
5002
5003 done
5004 ac_cv_prog_CPP=$CPP
5005
5006fi
5007 CPP=$ac_cv_prog_CPP
5008else
5009 ac_cv_prog_CPP=$CPP
5010fi
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5012$as_echo "$CPP" >&6; }
5013ac_preproc_ok=false
5014for ac_c_preproc_warn_flag in '' yes
5015do
5016 # Use a header file that comes with gcc, so configuring glibc
5017 # with a fresh cross-compiler works.
5018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5019 # <limits.h> exists even on freestanding compilers.
5020 # On the NeXT, cc -E runs the code through the compiler's parser,
5021 # not just through cpp. "Syntax error" is here to catch this case.
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023/* end confdefs.h. */
5024#ifdef __STDC__
5025# include <limits.h>
5026#else
5027# include <assert.h>
5028#endif
5029 Syntax error
5030_ACEOF
5031if ac_fn_c_try_cpp "$LINENO"; then :
5032
5033else
5034 # Broken: fails on valid input.
5035continue
5036fi
5037rm -f conftest.err conftest.$ac_ext
5038
5039 # OK, works on sane cases. Now check whether nonexistent headers
5040 # can be detected and how.
5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042/* end confdefs.h. */
5043#include <ac_nonexistent.h>
5044_ACEOF
5045if ac_fn_c_try_cpp "$LINENO"; then :
5046 # Broken: success on invalid input.
5047continue
5048else
5049 # Passes both tests.
5050ac_preproc_ok=:
5051break
5052fi
5053rm -f conftest.err conftest.$ac_ext
5054
5055done
5056# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5057rm -f conftest.err conftest.$ac_ext
5058if $ac_preproc_ok; then :
5059
5060else
5061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5062$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5063as_fn_error "C preprocessor \"$CPP\" fails sanity check
5064See \`config.log' for more details." "$LINENO" 5; }
5065fi
5066
5067ac_ext=c
5068ac_cpp='$CPP $CPPFLAGS'
5069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071ac_compiler_gnu=$ac_cv_c_compiler_gnu
5072
5073# Find a good install program. We prefer a C program (faster),
5074# so one script is as good as another. But avoid the broken or
5075# incompatible versions:
5076# SysV /etc/install, /usr/sbin/install
5077# SunOS /usr/etc/install
5078# IRIX /sbin/install
5079# AIX /bin/install
5080# AmigaOS /C/install, which installs bootblocks on floppy discs
5081# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5082# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5083# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5084# OS/2's system install, which has a completely different semantic
5085# ./install, which can be erroneously created by make from ./install.sh.
5086# Reject install programs that cannot install multiple files.
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5088$as_echo_n "checking for a BSD-compatible install... " >&6; }
5089if test -z "$INSTALL"; then
5090if test "${ac_cv_path_install+set}" = set; then :
5091 $as_echo_n "(cached) " >&6
5092else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094for as_dir in $PATH
5095do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 # Account for people who put trailing slashes in PATH elements.
5099case $as_dir/ in #((
5100 ./ | .// | /[cC]/* | \
5101 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5102 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5103 /usr/ucb/* ) ;;
5104 *)
5105 # OSF1 and SCO ODT 3.0 have their own names for install.
5106 # Don't use installbsd from OSF since it installs stuff as root
5107 # by default.
5108 for ac_prog in ginstall scoinst install; do
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5111 if test $ac_prog = install &&
5112 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5113 # AIX install. It has an incompatible calling convention.
5114 :
5115 elif test $ac_prog = install &&
5116 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5117 # program-specific install script used by HP pwplus--don't use.
5118 :
5119 else
5120 rm -rf conftest.one conftest.two conftest.dir
5121 echo one > conftest.one
5122 echo two > conftest.two
5123 mkdir conftest.dir
5124 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5125 test -s conftest.one && test -s conftest.two &&
5126 test -s conftest.dir/conftest.one &&
5127 test -s conftest.dir/conftest.two
5128 then
5129 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5130 break 3
5131 fi
5132 fi
5133 fi
5134 done
5135 done
5136 ;;
5137esac
5138
5139 done
5140IFS=$as_save_IFS
5141
5142rm -rf conftest.one conftest.two conftest.dir
5143
5144fi
5145 if test "${ac_cv_path_install+set}" = set; then
5146 INSTALL=$ac_cv_path_install
5147 else
5148 # As a last resort, use the slow shell script. Don't cache a
5149 # value for INSTALL within a source directory, because that will
5150 # break other packages using the cache if that directory is
5151 # removed, or if the value is a relative name.
5152 INSTALL=$ac_install_sh
5153 fi
5154fi
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5156$as_echo "$INSTALL" >&6; }
5157
5158# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5159# It thinks the first close brace ends the variable substitution.
5160test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5161
5162test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5163
5164test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5165
5166if test "x$RANLIB" = x; then
5167 if test -n "$ac_tool_prefix"; then
5168 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5169set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5171$as_echo_n "checking for $ac_word... " >&6; }
5172if test "${ac_cv_prog_RANLIB+set}" = set; then :
5173 $as_echo_n "(cached) " >&6
5174else
5175 if test -n "$RANLIB"; then
5176 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5177else
5178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179for as_dir in $PATH
5180do
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 break 2
5188 fi
5189done
5190 done
5191IFS=$as_save_IFS
5192
5193fi
5194fi
5195RANLIB=$ac_cv_prog_RANLIB
5196if test -n "$RANLIB"; then
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5198$as_echo "$RANLIB" >&6; }
5199else
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201$as_echo "no" >&6; }
5202fi
5203
5204
5205fi
5206if test -z "$ac_cv_prog_RANLIB"; then
5207 ac_ct_RANLIB=$RANLIB
5208 # Extract the first word of "ranlib", so it can be a program name with args.
5209set dummy ranlib; ac_word=$2
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211$as_echo_n "checking for $ac_word... " >&6; }
5212if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5213 $as_echo_n "(cached) " >&6
5214else
5215 if test -n "$ac_ct_RANLIB"; then
5216 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5217else
5218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH
5220do
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225 ac_cv_prog_ac_ct_RANLIB="ranlib"
5226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 break 2
5228 fi
5229done
5230 done
5231IFS=$as_save_IFS
5232
5233fi
5234fi
5235ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5236if test -n "$ac_ct_RANLIB"; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5238$as_echo "$ac_ct_RANLIB" >&6; }
5239else
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241$as_echo "no" >&6; }
5242fi
5243
5244 if test "x$ac_ct_RANLIB" = x; then
5245 RANLIB=":"
5246 else
5247 case $cross_compiling:$ac_tool_warned in
5248yes:)
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5251ac_tool_warned=yes ;;
5252esac
5253 RANLIB=$ac_ct_RANLIB
5254 fi
5255else
5256 RANLIB="$ac_cv_prog_RANLIB"
5257fi
5258
5259fi
5260
5261## Although we're running on an amd64 kernel, we're actually compiling for
5262## the x86 architecture. The user should probably have provided an
5263## explicit --build to `configure', but if everything else than the kernel
5264## is running in i386 mode, we can help them out.
5265if test "$machine" = "amdx86-64"; then
5266 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5267if test "x$ac_cv_have_decl_i386" = x""yes; then :
5268
5269fi
5270
5271 if test "$ac_cv_have_decl_i386" = "yes"; then
5272 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5273 machine=intel386
5274 machfile="m/${machine}.h"
5275 fi
5276fi
5277
5278# Extract the first word of "install-info", so it can be a program name with args.
5279set dummy install-info; ac_word=$2
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281$as_echo_n "checking for $ac_word... " >&6; }
5282if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5283 $as_echo_n "(cached) " >&6
5284else
5285 case $INSTALL_INFO in
5286 [\\/]* | ?:[\\/]*)
5287 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5288 ;;
5289 *)
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291for as_dir in $PATH
5292do
5293 IFS=$as_save_IFS
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5297 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 break 2
5300 fi
5301done
5302 done
5303IFS=$as_save_IFS
5304
5305 ;;
5306esac
5307fi
5308INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5309if test -n "$INSTALL_INFO"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5311$as_echo "$INSTALL_INFO" >&6; }
5312else
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314$as_echo "no" >&6; }
5315fi
5316
5317
5318# Extract the first word of "install-info", so it can be a program name with args.
5319set dummy install-info; ac_word=$2
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321$as_echo_n "checking for $ac_word... " >&6; }
5322if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5323 $as_echo_n "(cached) " >&6
5324else
5325 case $INSTALL_INFO in
5326 [\\/]* | ?:[\\/]*)
5327 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5328 ;;
5329 *)
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331for as_dir in /usr/sbin
5332do
5333 IFS=$as_save_IFS
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5337 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 break 2
5340 fi
5341done
5342 done
5343IFS=$as_save_IFS
5344
5345 ;;
5346esac
5347fi
5348INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5349if test -n "$INSTALL_INFO"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5351$as_echo "$INSTALL_INFO" >&6; }
5352else
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354$as_echo "no" >&6; }
5355fi
5356
5357
5358# Extract the first word of "install-info", so it can be a program name with args.
5359set dummy install-info; ac_word=$2
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5361$as_echo_n "checking for $ac_word... " >&6; }
5362if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5363 $as_echo_n "(cached) " >&6
5364else
5365 case $INSTALL_INFO in
5366 [\\/]* | ?:[\\/]*)
5367 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5368 ;;
5369 *)
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371for as_dir in /sbin
5372do
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5377 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 break 2
5380 fi
5381done
5382 done
5383IFS=$as_save_IFS
5384
5385 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5386 ;;
5387esac
5388fi
5389INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5390if test -n "$INSTALL_INFO"; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5392$as_echo "$INSTALL_INFO" >&6; }
5393else
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395$as_echo "no" >&6; }
5396fi
5397
5398
5399# Extract the first word of "gzip", so it can be a program name with args.
5400set dummy gzip; ac_word=$2
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5402$as_echo_n "checking for $ac_word... " >&6; }
5403if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5404 $as_echo_n "(cached) " >&6
5405else
5406 case $GZIP_PROG in
5407 [\\/]* | ?:[\\/]*)
5408 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5409 ;;
5410 *)
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412for as_dir in $PATH
5413do
5414 IFS=$as_save_IFS
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 break 2
5421 fi
5422done
5423 done
5424IFS=$as_save_IFS
5425
5426 ;;
5427esac
5428fi
5429GZIP_PROG=$ac_cv_path_GZIP_PROG
5430if test -n "$GZIP_PROG"; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5432$as_echo "$GZIP_PROG" >&6; }
5433else
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435$as_echo "no" >&6; }
5436fi
5437
5438
5439
5440
5441## Need makeinfo >= 4.6 (?) to build the manuals.
5442# Extract the first word of "makeinfo", so it can be a program name with args.
5443set dummy makeinfo; ac_word=$2
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5445$as_echo_n "checking for $ac_word... " >&6; }
5446if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5447 $as_echo_n "(cached) " >&6
5448else
5449 case $MAKEINFO in
5450 [\\/]* | ?:[\\/]*)
5451 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5452 ;;
5453 *)
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455for as_dir in $PATH
5456do
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5461 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 break 2
5464 fi
5465done
5466 done
5467IFS=$as_save_IFS
5468
5469 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5470 ;;
5471esac
5472fi
5473MAKEINFO=$ac_cv_path_MAKEINFO
5474if test -n "$MAKEINFO"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5476$as_echo "$MAKEINFO" >&6; }
5477else
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479$as_echo "no" >&6; }
5480fi
5481
5482
5483if test "$MAKEINFO" != "no" && \
5484 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
5485 MAKEINFO=no
5486fi
5487
5488## Makeinfo is unusual. For a released Emacs, the manuals are
5489## pre-built, and not deleted by the normal clean rules. makeinfo is
5490## therefore in the category of "special tools" not normally required, which
5491## configure does not have to check for (eg autoconf itself).
5492## In a Bazaar checkout on the other hand, the manuals are not included.
5493## So makeinfo is a requirement to build from Bazaar, and configure
5494## should test for it as it does for any other build requirement.
5495## We use the presence of $srcdir/info/emacs to distinguish a release,
5496## with pre-built manuals, from a Bazaar checkout.
5497if test "$MAKEINFO" = "no"; then
5498 if test "x${with_makeinfo}" = "xno"; then
5499 MAKEINFO=off
5500 elif test ! -e $srcdir/info/emacs; then
5501 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
5502source tree does not seem to have pre-built manuals in the \`info' directory.
5503Either install a suitable version of makeinfo, or re-run configure
5504with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5505 fi
5506fi
5507
5508
5509if test x$GCC = xyes; then
5510 test "x$GCC_LINK_TEST_OPTIONS" != x && \
5511 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5512else
5513 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
5514 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5515fi
5516
5517
5518late_LDFLAGS=$LDFLAGS
5519if test x$GCC = xyes; then
5520 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5521else
5522 LDFLAGS="$LDFLAGS -znocombreloc"
5523fi
5524
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5526$as_echo_n "checking for -znocombreloc... " >&6; }
5527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528/* end confdefs.h. */
5529
5530int
5531main ()
5532{
5533
5534 ;
5535 return 0;
5536}
5537_ACEOF
5538if ac_fn_c_try_link "$LINENO"; then :
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5540$as_echo "yes" >&6; }
5541else
5542 LDFLAGS=$late_LDFLAGS
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544$as_echo "no" >&6; }
5545fi
5546rm -f core conftest.err conftest.$ac_objext \
5547 conftest$ac_exeext conftest.$ac_ext
5548
5549
5550# The value of CPP is a quoted variable reference, so we need to do this
5551# to get its actual value...
5552CPP=`eval "echo $CPP"`
5553
5554
5555CANNOT_DUMP=no
5556case "$opsys" in
5557 your-opsys-here)
5558 CANNOT_DUMP=yes
5559
5560$as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5561
5562 ;;
5563esac
5564
5565
5566
5567UNEXEC_OBJ=unexelf.o
5568case "$opsys" in
5569 # MSDOS uses unexcoff.o
5570 # MSWindows uses unexw32.o
5571 aix4-2)
5572 UNEXEC_OBJ=unexaix.o
5573 ;;
5574 cygwin)
5575 UNEXEC_OBJ=unexcw.o
5576 ;;
5577 darwin)
5578 UNEXEC_OBJ=unexmacosx.o
5579 ;;
5580 hpux10-20 | hpux11)
5581 UNEXEC_OBJ=unexhp9k800.o
5582 ;;
5583 sol2-10)
5584 # Use the Solaris dldump() function, called from unexsol.c, to dump
5585 # emacs, instead of the generic ELF dump code found in unexelf.c.
5586 # The resulting binary has a complete symbol table, and is better
5587 # for debugging and other observability tools (debuggers, pstack, etc).
5588 #
5589 # If you encounter a problem using dldump(), please consider sending
5590 # a message to the OpenSolaris tools-linking mailing list:
5591 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5592 #
5593 # It is likely that dldump() works with older Solaris too, but this has
5594 # not been tested, so for now this change is for Solaris 10 or newer.
5595 UNEXEC_OBJ=unexsol.o
5596 ;;
5597esac
5598
5599LD_SWITCH_SYSTEM=
5600case "$opsys" in
5601 freebsd)
5602 ## Let `ld' find image libs and similar things in /usr/local/lib.
5603 ## The system compiler, GCC, has apparently been modified to not
5604 ## look there, contrary to what a stock GCC would do.
5605 LD_SWITCH_SYSTEM=-L/usr/local/lib
5606 ;;
5607
5608 gnu-linux)
5609 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5610 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5611 ;;
5612
5613 netbsd)
5614 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5615 ;;
5616
5617 openbsd)
5618 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5619 ## otherwise Emacs dumps core on elf systems.
5620 LD_SWITCH_SYSTEM="-Z"
5621 ;;
5622esac
5623
5624
5625ac_link="$ac_link $LD_SWITCH_SYSTEM"
5626
5627## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5628## which has not been defined yet. When this was handled with cpp,
5629## it was expanded to null when configure sourced the s/*.h file.
5630## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5631## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5632## (or somesuch), but because it is supposed to go at the _front_
5633## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5634## Compare with the gnu-linux case below, which added to the end
5635## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5636## LD_SWITCH_SYSTEM_TEMACS.
5637case "$opsys" in
5638 netbsd|openbsd)
5639 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5640 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5641esac
5642
5643
5644C_SWITCH_MACHINE=
5645if test "$machine" = "alpha"; then
5646 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5647if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
5648
5649fi
5650
5651 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5652 ## With ELF, make sure that all common symbols get allocated to in the
5653 ## data section. Otherwise, the dump of temacs may miss variables in
5654 ## the shared library that have been initialized. For example, with
5655 ## GNU libc, __malloc_initialized would normally be resolved to the
5656 ## shared library's .bss section, which is fatal.
5657 if test "x$GCC" = "xyes"; then
5658 C_SWITCH_MACHINE="-fno-common"
5659 else
5660 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5661 fi
5662 else
5663 UNEXEC_OBJ=unexalpha.o
5664 fi
5665fi
5666
5667
5668
5669
5670C_SWITCH_SYSTEM=
5671## Some programs in src produce warnings saying certain subprograms
5672## are too complex and need a MAXMEM value greater than 2000 for
5673## additional optimization. --nils@exp-math.uni-essen.de
5674test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5675 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
5676## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5677## It is redundant in glibc2, since we define _GNU_SOURCE.
5678
5679
5680
5681LIBS_SYSTEM=
5682case "$opsys" in
5683 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5684 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
5685
5686 freebsd) LIBS_SYSTEM="-lutil" ;;
5687
5688 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
5689
5690 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
5691
5692 ## Motif needs -lgen.
5693 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
5694esac
5695
5696
5697
5698### Make sure subsequent tests use flags consistent with the build flags.
5699
5700if test x"${OVERRIDE_CPPFLAGS}" != x; then
5701 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5702else
5703 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5704fi
5705
5706
5707
5708# Check whether --enable-largefile was given.
5709if test "${enable_largefile+set}" = set; then :
5710 enableval=$enable_largefile;
5711fi
5712
5713if test "$enable_largefile" != no; then
5714
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5716$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5717if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5718 $as_echo_n "(cached) " >&6
5719else
5720 ac_cv_sys_largefile_CC=no
5721 if test "$GCC" != yes; then
5722 ac_save_CC=$CC
5723 while :; do
5724 # IRIX 6.2 and later do not support large files by default,
5725 # so use the C compiler's -n32 option if that helps.
5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727/* end confdefs.h. */
5728#include <sys/types.h>
5729 /* Check that off_t can represent 2**63 - 1 correctly.
5730 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5731 since some C++ compilers masquerading as C compilers
5732 incorrectly reject 9223372036854775807. */
5733#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5734 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5735 && LARGE_OFF_T % 2147483647 == 1)
5736 ? 1 : -1];
5737int
5738main ()
5739{
5740
5741 ;
5742 return 0;
5743}
5744_ACEOF
5745 if ac_fn_c_try_compile "$LINENO"; then :
5746 break
5747fi
5748rm -f core conftest.err conftest.$ac_objext
5749 CC="$CC -n32"
5750 if ac_fn_c_try_compile "$LINENO"; then :
5751 ac_cv_sys_largefile_CC=' -n32'; break
5752fi
5753rm -f core conftest.err conftest.$ac_objext
5754 break
5755 done
5756 CC=$ac_save_CC
5757 rm -f conftest.$ac_ext
5758 fi
5759fi
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5761$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5762 if test "$ac_cv_sys_largefile_CC" != no; then
5763 CC=$CC$ac_cv_sys_largefile_CC
5764 fi
5765
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5767$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5768if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5769 $as_echo_n "(cached) " >&6
5770else
5771 while :; do
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773/* end confdefs.h. */
5774#include <sys/types.h>
5775 /* Check that off_t can represent 2**63 - 1 correctly.
5776 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5777 since some C++ compilers masquerading as C compilers
5778 incorrectly reject 9223372036854775807. */
5779#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5780 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5781 && LARGE_OFF_T % 2147483647 == 1)
5782 ? 1 : -1];
5783int
5784main ()
5785{
5786
5787 ;
5788 return 0;
5789}
5790_ACEOF
5791if ac_fn_c_try_compile "$LINENO"; then :
5792 ac_cv_sys_file_offset_bits=no; break
5793fi
5794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796/* end confdefs.h. */
5797#define _FILE_OFFSET_BITS 64
5798#include <sys/types.h>
5799 /* Check that off_t can represent 2**63 - 1 correctly.
5800 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5801 since some C++ compilers masquerading as C compilers
5802 incorrectly reject 9223372036854775807. */
5803#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5804 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5805 && LARGE_OFF_T % 2147483647 == 1)
5806 ? 1 : -1];
5807int
5808main ()
5809{
5810
5811 ;
5812 return 0;
5813}
5814_ACEOF
5815if ac_fn_c_try_compile "$LINENO"; then :
5816 ac_cv_sys_file_offset_bits=64; break
5817fi
5818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 ac_cv_sys_file_offset_bits=unknown
5820 break
5821done
5822fi
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5824$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5825case $ac_cv_sys_file_offset_bits in #(
5826 no | unknown) ;;
5827 *)
5828cat >>confdefs.h <<_ACEOF
5829#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5830_ACEOF
5831;;
5832esac
5833rm -rf conftest*
5834 if test $ac_cv_sys_file_offset_bits = unknown; then
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5836$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5837if test "${ac_cv_sys_large_files+set}" = set; then :
5838 $as_echo_n "(cached) " >&6
5839else
5840 while :; do
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842/* end confdefs.h. */
5843#include <sys/types.h>
5844 /* Check that off_t can represent 2**63 - 1 correctly.
5845 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5846 since some C++ compilers masquerading as C compilers
5847 incorrectly reject 9223372036854775807. */
5848#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5849 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5850 && LARGE_OFF_T % 2147483647 == 1)
5851 ? 1 : -1];
5852int
5853main ()
5854{
5855
5856 ;
5857 return 0;
5858}
5859_ACEOF
5860if ac_fn_c_try_compile "$LINENO"; then :
5861 ac_cv_sys_large_files=no; break
5862fi
5863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865/* end confdefs.h. */
5866#define _LARGE_FILES 1
5867#include <sys/types.h>
5868 /* Check that off_t can represent 2**63 - 1 correctly.
5869 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5870 since some C++ compilers masquerading as C compilers
5871 incorrectly reject 9223372036854775807. */
5872#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5873 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5874 && LARGE_OFF_T % 2147483647 == 1)
5875 ? 1 : -1];
5876int
5877main ()
5878{
5879
5880 ;
5881 return 0;
5882}
5883_ACEOF
5884if ac_fn_c_try_compile "$LINENO"; then :
5885 ac_cv_sys_large_files=1; break
5886fi
5887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888 ac_cv_sys_large_files=unknown
5889 break
5890done
5891fi
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5893$as_echo "$ac_cv_sys_large_files" >&6; }
5894case $ac_cv_sys_large_files in #(
5895 no | unknown) ;;
5896 *)
5897cat >>confdefs.h <<_ACEOF
5898#define _LARGE_FILES $ac_cv_sys_large_files
5899_ACEOF
5900;;
5901esac
5902rm -rf conftest*
5903 fi
5904fi
5905
5906
5907
5908## If user specified a crt-dir, use that unconditionally.
5909if test "X$CRT_DIR" = "X"; then
5910
5911 case "$canonical" in
5912 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
5913 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5914 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5915 ## For anything else (eg /usr/lib32), it is up the user to specify
5916 ## the location (bug#5655).
5917 ## Test for crtn.o, not just the directory, because sometimes the
5918 ## directory exists but does not have the relevant files (bug#1287).
5919 ## FIXME better to test for binary compatibility somehow.
5920 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5921 ;;
5922
5923 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
5924 esac
5925
5926 case "$opsys" in
5927 hpux10-20) CRT_DIR=/lib ;;
5928 esac
5929
5930 ## Default is /usr/lib.
5931 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5932
5933else
5934
5935 ## Some platforms don't use any of these files, so it is not
5936 ## appropriate to put this test outside the if block.
5937 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5938 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
5939
5940fi
5941
5942
5943
5944LIB_MATH=-lm
5945LIB_STANDARD=
5946START_FILES=
5947
5948case $opsys in
5949 cygwin )
5950 LIB_MATH=
5951 START_FILES='pre-crt0.o'
5952 ;;
5953 darwin )
5954 ## Adding -lm confuses the dynamic linker, so omit it.
5955 LIB_MATH=
5956 START_FILES='pre-crt0.o'
5957 ;;
5958 freebsd )
5959 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5960 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5961 ;;
5962 gnu-linux | gnu-kfreebsd )
5963 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5964 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5965 ;;
5966 hpux10-20 | hpux11 )
5967 LIB_STANDARD=-lc
5968 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
5969 ;;
5970 netbsd | openbsd )
5971 if test -f $CRT_DIR/crti.o; then
5972 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5973 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5974 else
5975 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5976 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5977 fi
5978 ;;
5979esac
5980
5981
5982
5983
5984
5985
5986
5987if test "${with_sound}" != "no"; then
5988 # Sound support for GNU/Linux and the free BSDs.
5989 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5990do :
5991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5992ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5993eval as_val=\$$as_ac_Header
5994 if test "x$as_val" = x""yes; then :
5995 cat >>confdefs.h <<_ACEOF
5996#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5997_ACEOF
5998 have_sound_header=yes
5999fi
6000
6001done
6002
6003 # Emulation library used on NetBSD.
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
6005$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6006if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
6007 $as_echo_n "(cached) " >&6
6008else
6009 ac_check_lib_save_LIBS=$LIBS
6010LIBS="-lossaudio $LIBS"
6011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012/* end confdefs.h. */
6013
6014/* Override any GCC internal prototype to avoid an error.
6015 Use char because int might match the return type of a GCC
6016 builtin and then its argument prototype would still apply. */
6017#ifdef __cplusplus
6018extern "C"
6019#endif
6020char _oss_ioctl ();
6021int
6022main ()
6023{
6024return _oss_ioctl ();
6025 ;
6026 return 0;
6027}
6028_ACEOF
6029if ac_fn_c_try_link "$LINENO"; then :
6030 ac_cv_lib_ossaudio__oss_ioctl=yes
6031else
6032 ac_cv_lib_ossaudio__oss_ioctl=no
6033fi
6034rm -f core conftest.err conftest.$ac_objext \
6035 conftest$ac_exeext conftest.$ac_ext
6036LIBS=$ac_check_lib_save_LIBS
6037fi
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6039$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6040if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
6041 LIBSOUND=-lossaudio
6042else
6043 LIBSOUND=
6044fi
6045
6046
6047
6048 ALSA_REQUIRED=1.0.0
6049 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6050
6051 succeeded=no
6052
6053 # Extract the first word of "pkg-config", so it can be a program name with args.
6054set dummy pkg-config; ac_word=$2
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056$as_echo_n "checking for $ac_word... " >&6; }
6057if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6058 $as_echo_n "(cached) " >&6
6059else
6060 case $PKG_CONFIG in
6061 [\\/]* | ?:[\\/]*)
6062 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6063 ;;
6064 *)
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066for as_dir in $PATH
6067do
6068 IFS=$as_save_IFS
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 break 2
6075 fi
6076done
6077 done
6078IFS=$as_save_IFS
6079
6080 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6081 ;;
6082esac
6083fi
6084PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6085if test -n "$PKG_CONFIG"; then
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6087$as_echo "$PKG_CONFIG" >&6; }
6088else
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6090$as_echo "no" >&6; }
6091fi
6092
6093
6094
6095 if test "$PKG_CONFIG" = "no" ; then
6096 HAVE_ALSA=no
6097 else
6098 PKG_CONFIG_MIN_VERSION=0.9.0
6099 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6101$as_echo_n "checking for $ALSA_MODULES... " >&6; }
6102
6103 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6105$as_echo "yes" >&6; }
6106 succeeded=yes
6107
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6109$as_echo_n "checking ALSA_CFLAGS... " >&6; }
6110 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6112$as_echo "$ALSA_CFLAGS" >&6; }
6113
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6115$as_echo_n "checking ALSA_LIBS... " >&6; }
6116 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6118$as_echo "$ALSA_LIBS" >&6; }
6119 else
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121$as_echo "no" >&6; }
6122 ALSA_CFLAGS=""
6123 ALSA_LIBS=""
6124 ## If we have a custom action on failure, don't print errors, but
6125 ## do set a variable so people can do so.
6126 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6127
6128 fi
6129
6130
6131
6132 else
6133 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6134 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6135 fi
6136 fi
6137
6138 if test $succeeded = yes; then
6139 HAVE_ALSA=yes
6140 else
6141 HAVE_ALSA=no
6142 fi
6143
6144 if test $HAVE_ALSA = yes; then
6145 SAVE_CFLAGS="$CFLAGS"
6146 SAVE_LDFLAGS="$LDFLAGS"
6147 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6148 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150/* end confdefs.h. */
6151#include <asoundlib.h>
6152int
6153main ()
6154{
6155snd_lib_error_set_handler (0);
6156 ;
6157 return 0;
6158}
6159_ACEOF
6160if ac_fn_c_try_compile "$LINENO"; then :
6161 emacs_alsa_normal=yes
6162else
6163 emacs_alsa_normal=no
6164fi
6165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6166 if test "$emacs_alsa_normal" != yes; then
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168/* end confdefs.h. */
6169#include <alsa/asoundlib.h>
6170int
6171main ()
6172{
6173snd_lib_error_set_handler (0);
6174 ;
6175 return 0;
6176}
6177_ACEOF
6178if ac_fn_c_try_compile "$LINENO"; then :
6179 emacs_alsa_subdir=yes
6180else
6181 emacs_alsa_subdir=no
6182fi
6183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6184 if test "$emacs_alsa_subdir" != yes; then
6185 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6186 fi
6187 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6188 fi
6189
6190 CFLAGS="$SAVE_CFLAGS"
6191 LDFLAGS="$SAVE_LDFLAGS"
6192 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6193 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6194
6195$as_echo "#define HAVE_ALSA 1" >>confdefs.h
6196
6197 fi
6198
6199 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
6200 case "$opsys" in
6201 gnu-linux|freebsd|netbsd)
6202
6203$as_echo "#define HAVE_SOUND 1" >>confdefs.h
6204
6205 ;;
6206 esac
6207 fi
6208
6209
6210fi
6211
6212for ac_header in sys/select.h sys/time.h unistd.h utime.h \
6213 linux/version.h sys/systeminfo.h limits.h \
6214 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
6215 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6216 sys/utsname.h pwd.h utmp.h dirent.h util.h
6217do :
6218 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6219ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6220eval as_val=\$$as_ac_Header
6221 if test "x$as_val" = x""yes; then :
6222 cat >>confdefs.h <<_ACEOF
6223#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6224_ACEOF
6225
6226fi
6227
6228done
6229
6230
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6232$as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234/* end confdefs.h. */
6235#include <sys/personality.h>
6236int
6237main ()
6238{
6239personality (PER_LINUX32)
6240 ;
6241 return 0;
6242}
6243_ACEOF
6244if ac_fn_c_try_compile "$LINENO"; then :
6245 emacs_cv_personality_linux32=yes
6246else
6247 emacs_cv_personality_linux32=no
6248fi
6249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6251$as_echo "$emacs_cv_personality_linux32" >&6; }
6252
6253if test $emacs_cv_personality_linux32 = yes; then
6254
6255$as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6256
6257fi
6258
6259for ac_header in term.h
6260do :
6261 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6262if test "x$ac_cv_header_term_h" = x""yes; then :
6263 cat >>confdefs.h <<_ACEOF
6264#define HAVE_TERM_H 1
6265_ACEOF
6266
6267fi
6268
6269done
6270
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6272$as_echo_n "checking for ANSI C header files... " >&6; }
6273if test "${ac_cv_header_stdc+set}" = set; then :
6274 $as_echo_n "(cached) " >&6
6275else
6276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6277/* end confdefs.h. */
6278#include <stdlib.h>
6279#include <stdarg.h>
6280#include <string.h>
6281#include <float.h>
6282
6283int
6284main ()
6285{
6286
6287 ;
6288 return 0;
6289}
6290_ACEOF
6291if ac_fn_c_try_compile "$LINENO"; then :
6292 ac_cv_header_stdc=yes
6293else
6294 ac_cv_header_stdc=no
6295fi
6296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6297
6298if test $ac_cv_header_stdc = yes; then
6299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301/* end confdefs.h. */
6302#include <string.h>
6303
6304_ACEOF
6305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6306 $EGREP "memchr" >/dev/null 2>&1; then :
6307
6308else
6309 ac_cv_header_stdc=no
6310fi
6311rm -f conftest*
6312
6313fi
6314
6315if test $ac_cv_header_stdc = yes; then
6316 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318/* end confdefs.h. */
6319#include <stdlib.h>
6320
6321_ACEOF
6322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6323 $EGREP "free" >/dev/null 2>&1; then :
6324
6325else
6326 ac_cv_header_stdc=no
6327fi
6328rm -f conftest*
6329
6330fi
6331
6332if test $ac_cv_header_stdc = yes; then
6333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6334 if test "$cross_compiling" = yes; then :
6335 :
6336else
6337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6338/* end confdefs.h. */
6339#include <ctype.h>
6340#include <stdlib.h>
6341#if ((' ' & 0x0FF) == 0x020)
6342# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6343# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6344#else
6345# define ISLOWER(c) \
6346 (('a' <= (c) && (c) <= 'i') \
6347 || ('j' <= (c) && (c) <= 'r') \
6348 || ('s' <= (c) && (c) <= 'z'))
6349# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6350#endif
6351
6352#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6353int
6354main ()
6355{
6356 int i;
6357 for (i = 0; i < 256; i++)
6358 if (XOR (islower (i), ISLOWER (i))
6359 || toupper (i) != TOUPPER (i))
6360 return 2;
6361 return 0;
6362}
6363_ACEOF
6364if ac_fn_c_try_run "$LINENO"; then :
6365
6366else
6367 ac_cv_header_stdc=no
6368fi
6369rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6370 conftest.$ac_objext conftest.beam conftest.$ac_ext
6371fi
6372
6373fi
6374fi
6375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6376$as_echo "$ac_cv_header_stdc" >&6; }
6377if test $ac_cv_header_stdc = yes; then
6378
6379$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6380
6381fi
6382
6383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6384$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6385if test "${ac_cv_header_time+set}" = set; then :
6386 $as_echo_n "(cached) " >&6
6387else
6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389/* end confdefs.h. */
6390#include <sys/types.h>
6391#include <sys/time.h>
6392#include <time.h>
6393
6394int
6395main ()
6396{
6397if ((struct tm *) 0)
6398return 0;
6399 ;
6400 return 0;
6401}
6402_ACEOF
6403if ac_fn_c_try_compile "$LINENO"; then :
6404 ac_cv_header_time=yes
6405else
6406 ac_cv_header_time=no
6407fi
6408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6409fi
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6411$as_echo "$ac_cv_header_time" >&6; }
6412if test $ac_cv_header_time = yes; then
6413
6414$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6415
6416fi
6417
6418ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6419if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6420 ac_have_decl=1
6421else
6422 ac_have_decl=0
6423fi
6424
6425cat >>confdefs.h <<_ACEOF
6426#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6427_ACEOF
6428
6429if test $ac_cv_have_decl_sys_siglist != yes; then
6430 # For Tru64, at least:
6431 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6432if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6433 ac_have_decl=1
6434else
6435 ac_have_decl=0
6436fi
6437
6438cat >>confdefs.h <<_ACEOF
6439#define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6440_ACEOF
6441
6442 if test $ac_cv_have_decl___sys_siglist = yes; then
6443
6444$as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6445
6446 fi
6447fi
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6449$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6450if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6451 $as_echo_n "(cached) " >&6
6452else
6453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454/* end confdefs.h. */
6455#include <sys/types.h>
6456#include <sys/wait.h>
6457#ifndef WEXITSTATUS
6458# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6459#endif
6460#ifndef WIFEXITED
6461# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6462#endif
6463
6464int
6465main ()
6466{
6467 int s;
6468 wait (&s);
6469 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6470 ;
6471 return 0;
6472}
6473_ACEOF
6474if ac_fn_c_try_compile "$LINENO"; then :
6475 ac_cv_header_sys_wait_h=yes
6476else
6477 ac_cv_header_sys_wait_h=no
6478fi
6479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480fi
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6482$as_echo "$ac_cv_header_sys_wait_h" >&6; }
6483if test $ac_cv_header_sys_wait_h = yes; then
6484
6485$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6486
6487fi
6488
6489
6490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6491$as_echo_n "checking for struct utimbuf... " >&6; }
6492if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6493 $as_echo_n "(cached) " >&6
6494else
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496/* end confdefs.h. */
6497#ifdef TIME_WITH_SYS_TIME
6498#include <sys/time.h>
6499#include <time.h>
6500#else
6501#ifdef HAVE_SYS_TIME_H
6502#include <sys/time.h>
6503#else
6504#include <time.h>
6505#endif
6506#endif
6507#ifdef HAVE_UTIME_H
6508#include <utime.h>
6509#endif
6510int
6511main ()
6512{
6513static struct utimbuf x; x.actime = x.modtime;
6514 ;
6515 return 0;
6516}
6517_ACEOF
6518if ac_fn_c_try_compile "$LINENO"; then :
6519 emacs_cv_struct_utimbuf=yes
6520else
6521 emacs_cv_struct_utimbuf=no
6522fi
6523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524fi
6525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6526$as_echo "$emacs_cv_struct_utimbuf" >&6; }
6527if test $emacs_cv_struct_utimbuf = yes; then
6528
6529$as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6530
6531fi
6532
6533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6534$as_echo_n "checking return type of signal handlers... " >&6; }
6535if test "${ac_cv_type_signal+set}" = set; then :
6536 $as_echo_n "(cached) " >&6
6537else
6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539/* end confdefs.h. */
6540#include <sys/types.h>
6541#include <signal.h>
6542
6543int
6544main ()
6545{
6546return *(signal (0, 0)) (0) == 1;
6547 ;
6548 return 0;
6549}
6550_ACEOF
6551if ac_fn_c_try_compile "$LINENO"; then :
6552 ac_cv_type_signal=int
6553else
6554 ac_cv_type_signal=void
6555fi
6556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557fi
6558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6559$as_echo "$ac_cv_type_signal" >&6; }
6560
6561cat >>confdefs.h <<_ACEOF
6562#define RETSIGTYPE $ac_cv_type_signal
6563_ACEOF
6564
6565
6566
6567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6568$as_echo_n "checking for speed_t... " >&6; }
6569if test "${emacs_cv_speed_t+set}" = set; then :
6570 $as_echo_n "(cached) " >&6
6571else
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h. */
6574#include <termios.h>
6575int
6576main ()
6577{
6578speed_t x = 1;
6579 ;
6580 return 0;
6581}
6582_ACEOF
6583if ac_fn_c_try_compile "$LINENO"; then :
6584 emacs_cv_speed_t=yes
6585else
6586 emacs_cv_speed_t=no
6587fi
6588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6589fi
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6591$as_echo "$emacs_cv_speed_t" >&6; }
6592if test $emacs_cv_speed_t = yes; then
6593
6594$as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6595
6596fi
6597
6598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6599$as_echo_n "checking for struct timeval... " >&6; }
6600if test "${emacs_cv_struct_timeval+set}" = set; then :
6601 $as_echo_n "(cached) " >&6
6602else
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604/* end confdefs.h. */
6605#ifdef TIME_WITH_SYS_TIME
6606#include <sys/time.h>
6607#include <time.h>
6608#else
6609#ifdef HAVE_SYS_TIME_H
6610#include <sys/time.h>
6611#else
6612#include <time.h>
6613#endif
6614#endif
6615int
6616main ()
6617{
6618static struct timeval x; x.tv_sec = x.tv_usec;
6619 ;
6620 return 0;
6621}
6622_ACEOF
6623if ac_fn_c_try_compile "$LINENO"; then :
6624 emacs_cv_struct_timeval=yes
6625else
6626 emacs_cv_struct_timeval=no
6627fi
6628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629fi
6630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6631$as_echo "$emacs_cv_struct_timeval" >&6; }
6632HAVE_TIMEVAL=$emacs_cv_struct_timeval
6633if test $emacs_cv_struct_timeval = yes; then
6634
6635$as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6636
6637fi
6638
6639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6640$as_echo_n "checking for struct exception... " >&6; }
6641if test "${emacs_cv_struct_exception+set}" = set; then :
6642 $as_echo_n "(cached) " >&6
6643else
6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645/* end confdefs.h. */
6646#include <math.h>
6647int
6648main ()
6649{
6650static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6651 ;
6652 return 0;
6653}
6654_ACEOF
6655if ac_fn_c_try_compile "$LINENO"; then :
6656 emacs_cv_struct_exception=yes
6657else
6658 emacs_cv_struct_exception=no
6659fi
6660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661fi
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6663$as_echo "$emacs_cv_struct_exception" >&6; }
6664HAVE_EXCEPTION=$emacs_cv_struct_exception
6665if test $emacs_cv_struct_exception != yes; then
6666
6667$as_echo "#define NO_MATHERR 1" >>confdefs.h
6668
6669fi
6670
6671for ac_header in sys/socket.h
6672do :
6673 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6674if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6675 cat >>confdefs.h <<_ACEOF
6676#define HAVE_SYS_SOCKET_H 1
6677_ACEOF
6678
6679fi
6680
6681done
6682
6683for ac_header in net/if.h
6684do :
6685 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6686#if HAVE_SYS_SOCKET_H
6687#include <sys/socket.h>
6688#endif
6689"
6690if test "x$ac_cv_header_net_if_h" = x""yes; then :
6691 cat >>confdefs.h <<_ACEOF
6692#define HAVE_NET_IF_H 1
6693_ACEOF
6694
6695fi
6696
6697done
6698
6699
6700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6701$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6702if test "${ac_cv_struct_tm+set}" = set; then :
6703 $as_echo_n "(cached) " >&6
6704else
6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706/* end confdefs.h. */
6707#include <sys/types.h>
6708#include <time.h>
6709
6710int
6711main ()
6712{
6713struct tm tm;
6714 int *p = &tm.tm_sec;
6715 return !p;
6716 ;
6717 return 0;
6718}
6719_ACEOF
6720if ac_fn_c_try_compile "$LINENO"; then :
6721 ac_cv_struct_tm=time.h
6722else
6723 ac_cv_struct_tm=sys/time.h
6724fi
6725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6726fi
6727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6728$as_echo "$ac_cv_struct_tm" >&6; }
6729if test $ac_cv_struct_tm = sys/time.h; then
6730
6731$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6732
6733fi
6734
6735ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6736#include <$ac_cv_struct_tm>
6737
6738"
6739if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6740
6741cat >>confdefs.h <<_ACEOF
6742#define HAVE_STRUCT_TM_TM_ZONE 1
6743_ACEOF
6744
6745
6746fi
6747
6748if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6749
6750$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6751
6752else
6753 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6754"
6755if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6756 ac_have_decl=1
6757else
6758 ac_have_decl=0
6759fi
6760
6761cat >>confdefs.h <<_ACEOF
6762#define HAVE_DECL_TZNAME $ac_have_decl
6763_ACEOF
6764
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6766$as_echo_n "checking for tzname... " >&6; }
6767if test "${ac_cv_var_tzname+set}" = set; then :
6768 $as_echo_n "(cached) " >&6
6769else
6770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6771/* end confdefs.h. */
6772#include <time.h>
6773#if !HAVE_DECL_TZNAME
6774extern char *tzname[];
6775#endif
6776
6777int
6778main ()
6779{
6780return tzname[0][0];
6781 ;
6782 return 0;
6783}
6784_ACEOF
6785if ac_fn_c_try_link "$LINENO"; then :
6786 ac_cv_var_tzname=yes
6787else
6788 ac_cv_var_tzname=no
6789fi
6790rm -f core conftest.err conftest.$ac_objext \
6791 conftest$ac_exeext conftest.$ac_ext
6792fi
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6794$as_echo "$ac_cv_var_tzname" >&6; }
6795 if test $ac_cv_var_tzname = yes; then
6796
6797$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6798
6799 fi
6800fi
6801
6802ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6803"
6804if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6805
6806$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6807
6808fi
6809
6810ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6811#if HAVE_SYS_SOCKET_H
6812#include <sys/socket.h>
6813#endif
6814#if HAVE_NET_IF_H
6815#include <net/if.h>
6816#endif
6817"
6818if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6819
6820cat >>confdefs.h <<_ACEOF
6821#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6822_ACEOF
6823
6824
6825fi
6826ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6827#if HAVE_SYS_SOCKET_H
6828#include <sys/socket.h>
6829#endif
6830#if HAVE_NET_IF_H
6831#include <net/if.h>
6832#endif
6833"
6834if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6835
6836cat >>confdefs.h <<_ACEOF
6837#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6838_ACEOF
6839
6840
6841fi
6842ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6843#if HAVE_SYS_SOCKET_H
6844#include <sys/socket.h>
6845#endif
6846#if HAVE_NET_IF_H
6847#include <net/if.h>
6848#endif
6849"
6850if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6851
6852cat >>confdefs.h <<_ACEOF
6853#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6854_ACEOF
6855
6856
6857fi
6858ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6859#if HAVE_SYS_SOCKET_H
6860#include <sys/socket.h>
6861#endif
6862#if HAVE_NET_IF_H
6863#include <net/if.h>
6864#endif
6865"
6866if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6867
6868cat >>confdefs.h <<_ACEOF
6869#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6870_ACEOF
6871
6872
6873fi
6874ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6875#if HAVE_SYS_SOCKET_H
6876#include <sys/socket.h>
6877#endif
6878#if HAVE_NET_IF_H
6879#include <net/if.h>
6880#endif
6881"
6882if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6883
6884cat >>confdefs.h <<_ACEOF
6885#define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6886_ACEOF
6887
6888
6889fi
6890
6891
6892
6893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6894$as_echo_n "checking for function prototypes... " >&6; }
6895if test "$ac_cv_prog_cc_c89" != no; then
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6897$as_echo "yes" >&6; }
6898
6899$as_echo "#define PROTOTYPES 1" >>confdefs.h
6900
6901
6902$as_echo "#define __PROTOTYPES 1" >>confdefs.h
6903
6904else
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906$as_echo "no" >&6; }
6907fi
6908
6909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6910$as_echo_n "checking for working volatile... " >&6; }
6911if test "${ac_cv_c_volatile+set}" = set; then :
6912 $as_echo_n "(cached) " >&6
6913else
6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915/* end confdefs.h. */
6916
6917int
6918main ()
6919{
6920
6921volatile int x;
6922int * volatile y = (int *) 0;
6923return !x && !y;
6924 ;
6925 return 0;
6926}
6927_ACEOF
6928if ac_fn_c_try_compile "$LINENO"; then :
6929 ac_cv_c_volatile=yes
6930else
6931 ac_cv_c_volatile=no
6932fi
6933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934fi
6935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6936$as_echo "$ac_cv_c_volatile" >&6; }
6937if test $ac_cv_c_volatile = no; then
6938
6939$as_echo "#define volatile /**/" >>confdefs.h
6940
6941fi
6942
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6944$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6945if test "${ac_cv_c_const+set}" = set; then :
6946 $as_echo_n "(cached) " >&6
6947else
6948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949/* end confdefs.h. */
6950
6951int
6952main ()
6953{
6954/* FIXME: Include the comments suggested by Paul. */
6955#ifndef __cplusplus
6956 /* Ultrix mips cc rejects this. */
6957 typedef int charset[2];
6958 const charset cs;
6959 /* SunOS 4.1.1 cc rejects this. */
6960 char const *const *pcpcc;
6961 char **ppc;
6962 /* NEC SVR4.0.2 mips cc rejects this. */
6963 struct point {int x, y;};
6964 static struct point const zero = {0,0};
6965 /* AIX XL C 1.02.0.0 rejects this.
6966 It does not let you subtract one const X* pointer from another in
6967 an arm of an if-expression whose if-part is not a constant
6968 expression */
6969 const char *g = "string";
6970 pcpcc = &g + (g ? g-g : 0);
6971 /* HPUX 7.0 cc rejects these. */
6972 ++pcpcc;
6973 ppc = (char**) pcpcc;
6974 pcpcc = (char const *const *) ppc;
6975 { /* SCO 3.2v4 cc rejects this. */
6976 char *t;
6977 char const *s = 0 ? (char *) 0 : (char const *) 0;
6978
6979 *t++ = 0;
6980 if (s) return 0;
6981 }
6982 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6983 int x[] = {25, 17};
6984 const int *foo = &x[0];
6985 ++foo;
6986 }
6987 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6988 typedef const int *iptr;
6989 iptr p = 0;
6990 ++p;
6991 }
6992 { /* AIX XL C 1.02.0.0 rejects this saying
6993 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6994 struct s { int j; const int *ap[3]; };
6995 struct s *b; b->j = 5;
6996 }
6997 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6998 const int foo = 10;
6999 if (!foo) return 0;
7000 }
7001 return !cs[0] && !zero.x;
7002#endif
7003
7004 ;
7005 return 0;
7006}
7007_ACEOF
7008if ac_fn_c_try_compile "$LINENO"; then :
7009 ac_cv_c_const=yes
7010else
7011 ac_cv_c_const=no
7012fi
7013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014fi
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7016$as_echo "$ac_cv_c_const" >&6; }
7017if test $ac_cv_c_const = no; then
7018
7019$as_echo "#define const /**/" >>confdefs.h
7020
7021fi
7022
7023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
7024$as_echo_n "checking for void * support... " >&6; }
7025if test "${emacs_cv_void_star+set}" = set; then :
7026 $as_echo_n "(cached) " >&6
7027else
7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029/* end confdefs.h. */
7030
7031int
7032main ()
7033{
7034void * foo;
7035 ;
7036 return 0;
7037}
7038_ACEOF
7039if ac_fn_c_try_compile "$LINENO"; then :
7040 emacs_cv_void_star=yes
7041else
7042 emacs_cv_void_star=no
7043fi
7044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7045fi
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7047$as_echo "$emacs_cv_void_star" >&6; }
7048if test $emacs_cv_void_star = yes; then
7049 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7050
7051else
7052 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7053
7054fi
7055
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7057$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7058if test "${ac_cv_c_bigendian+set}" = set; then :
7059 $as_echo_n "(cached) " >&6
7060else
7061 ac_cv_c_bigendian=unknown
7062 # See if we're dealing with a universal compiler.
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064/* end confdefs.h. */
7065#ifndef __APPLE_CC__
7066 not a universal capable compiler
7067 #endif
7068 typedef int dummy;
7069
7070_ACEOF
7071if ac_fn_c_try_compile "$LINENO"; then :
7072
7073 # Check for potential -arch flags. It is not universal unless
7074 # there are at least two -arch flags with different values.
7075 ac_arch=
7076 ac_prev=
7077 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7078 if test -n "$ac_prev"; then
7079 case $ac_word in
7080 i?86 | x86_64 | ppc | ppc64)
7081 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7082 ac_arch=$ac_word
7083 else
7084 ac_cv_c_bigendian=universal
7085 break
7086 fi
7087 ;;
7088 esac
7089 ac_prev=
7090 elif test "x$ac_word" = "x-arch"; then
7091 ac_prev=arch
7092 fi
7093 done
7094fi
7095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7096 if test $ac_cv_c_bigendian = unknown; then
7097 # See if sys/param.h defines the BYTE_ORDER macro.
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099/* end confdefs.h. */
7100#include <sys/types.h>
7101 #include <sys/param.h>
7102
7103int
7104main ()
7105{
7106#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7107 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7108 && LITTLE_ENDIAN)
7109 bogus endian macros
7110 #endif
7111
7112 ;
7113 return 0;
7114}
7115_ACEOF
7116if ac_fn_c_try_compile "$LINENO"; then :
7117 # It does; now see whether it defined to BIG_ENDIAN or not.
7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119/* end confdefs.h. */
7120#include <sys/types.h>
7121 #include <sys/param.h>
7122
7123int
7124main ()
7125{
7126#if BYTE_ORDER != BIG_ENDIAN
7127 not big endian
7128 #endif
7129
7130 ;
7131 return 0;
7132}
7133_ACEOF
7134if ac_fn_c_try_compile "$LINENO"; then :
7135 ac_cv_c_bigendian=yes
7136else
7137 ac_cv_c_bigendian=no
7138fi
7139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140fi
7141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142 fi
7143 if test $ac_cv_c_bigendian = unknown; then
7144 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146/* end confdefs.h. */
7147#include <limits.h>
7148
7149int
7150main ()
7151{
7152#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7153 bogus endian macros
7154 #endif
7155
7156 ;
7157 return 0;
7158}
7159_ACEOF
7160if ac_fn_c_try_compile "$LINENO"; then :
7161 # It does; now see whether it defined to _BIG_ENDIAN or not.
7162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163/* end confdefs.h. */
7164#include <limits.h>
7165
7166int
7167main ()
7168{
7169#ifndef _BIG_ENDIAN
7170 not big endian
7171 #endif
7172
7173 ;
7174 return 0;
7175}
7176_ACEOF
7177if ac_fn_c_try_compile "$LINENO"; then :
7178 ac_cv_c_bigendian=yes
7179else
7180 ac_cv_c_bigendian=no
7181fi
7182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183fi
7184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185 fi
7186 if test $ac_cv_c_bigendian = unknown; then
7187 # Compile a test program.
7188 if test "$cross_compiling" = yes; then :
7189 # Try to guess by grepping values from an object file.
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191/* end confdefs.h. */
7192short int ascii_mm[] =
7193 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7194 short int ascii_ii[] =
7195 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7196 int use_ascii (int i) {
7197 return ascii_mm[i] + ascii_ii[i];
7198 }
7199 short int ebcdic_ii[] =
7200 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7201 short int ebcdic_mm[] =
7202 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7203 int use_ebcdic (int i) {
7204 return ebcdic_mm[i] + ebcdic_ii[i];
7205 }
7206 extern int foo;
7207
7208int
7209main ()
7210{
7211return use_ascii (foo) == use_ebcdic (foo);
7212 ;
7213 return 0;
7214}
7215_ACEOF
7216if ac_fn_c_try_compile "$LINENO"; then :
7217 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7218 ac_cv_c_bigendian=yes
7219 fi
7220 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7221 if test "$ac_cv_c_bigendian" = unknown; then
7222 ac_cv_c_bigendian=no
7223 else
7224 # finding both strings is unlikely to happen, but who knows?
7225 ac_cv_c_bigendian=unknown
7226 fi
7227 fi
7228fi
7229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230else
7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232/* end confdefs.h. */
7233$ac_includes_default
7234int
7235main ()
7236{
7237
7238 /* Are we little or big endian? From Harbison&Steele. */
7239 union
7240 {
7241 long int l;
7242 char c[sizeof (long int)];
7243 } u;
7244 u.l = 1;
7245 return u.c[sizeof (long int) - 1] == 1;
7246
7247 ;
7248 return 0;
7249}
7250_ACEOF
7251if ac_fn_c_try_run "$LINENO"; then :
7252 ac_cv_c_bigendian=no
7253else
7254 ac_cv_c_bigendian=yes
7255fi
7256rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7257 conftest.$ac_objext conftest.beam conftest.$ac_ext
7258fi
7259
7260 fi
7261fi
7262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7263$as_echo "$ac_cv_c_bigendian" >&6; }
7264 case $ac_cv_c_bigendian in #(
7265 yes)
7266 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7267;; #(
7268 no)
7269 ;; #(
7270 universal)
7271
7272$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7273
7274 ;; #(
7275 *)
7276 as_fn_error "unknown endianness
7277 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7278 esac
7279
7280
7281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7282$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7283set x ${MAKE-make}
7284ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7285if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7286 $as_echo_n "(cached) " >&6
7287else
7288 cat >conftest.make <<\_ACEOF
7289SHELL = /bin/sh
7290all:
7291 @echo '@@@%%%=$(MAKE)=@@@%%%'
7292_ACEOF
7293# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7294case `${MAKE-make} -f conftest.make 2>/dev/null` in
7295 *@@@%%%=?*=@@@%%%*)
7296 eval ac_cv_prog_make_${ac_make}_set=yes;;
7297 *)
7298 eval ac_cv_prog_make_${ac_make}_set=no;;
7299esac
7300rm -f conftest.make
7301fi
7302if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7304$as_echo "yes" >&6; }
7305 SET_MAKE=
7306else
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308$as_echo "no" >&6; }
7309 SET_MAKE="MAKE=${MAKE-make}"
7310fi
7311
7312
7313DEPFLAGS=
7314MKDEPDIR=":"
7315deps_frag=deps.mk
7316if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7318$as_echo_n "checking whether we are using GNU Make... " >&6; }
7319 HAVE_GNU_MAKE=no
7320 testval=`make --version 2>/dev/null | grep 'GNU Make'`
7321 if test "x$testval" != x; then
7322 HAVE_GNU_MAKE=yes
7323 else
7324 ac_enable_autodepend=no
7325 fi
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7327$as_echo "$HAVE_GNU_MAKE" >&6; }
7328 if test $HAVE_GNU_MAKE = yes; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7330$as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7331 SAVE_CFLAGS="$CFLAGS"
7332 CFLAGS="$CFLAGS -MMD -MF deps.d"
7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334/* end confdefs.h. */
7335
7336int
7337main ()
7338{
7339
7340 ;
7341 return 0;
7342}
7343_ACEOF
7344if ac_fn_c_try_compile "$LINENO"; then :
7345
7346else
7347 ac_enable_autodepend=no
7348fi
7349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7350 CFLAGS="$SAVE_CFLAGS"
7351 test -f deps.d || ac_enable_autodepend=no
7352 rm -rf deps.d
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7354$as_echo "$ac_enable_autodepend" >&6; }
7355 fi
7356 if test $ac_enable_autodepend = yes; then
7357 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
7358 ## In parallel builds, another make might create depdir between
7359 ## the first test and mkdir, so stick another test on the end.
7360 ## Or use mkinstalldirs? mkdir -p is not portable.
7361 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7362 deps_frag=autodeps.mk
7363 fi
7364fi
7365deps_frag=$srcdir/src/$deps_frag
7366
7367
7368
7369
7370
7371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7372$as_echo_n "checking for long file names... " >&6; }
7373if test "${ac_cv_sys_long_file_names+set}" = set; then :
7374 $as_echo_n "(cached) " >&6
7375else
7376 ac_cv_sys_long_file_names=yes
7377# Test for long file names in all the places we know might matter:
7378# . the current directory, where building will happen
7379# $prefix/lib where we will be installing things
7380# $exec_prefix/lib likewise
7381# $TMPDIR if set, where it might want to write temporary files
7382# /tmp where it might want to write temporary files
7383# /var/tmp likewise
7384# /usr/tmp likewise
7385for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
7386 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7387 # in the usual case where exec_prefix is '${prefix}'.
7388 case $ac_dir in #(
7389 . | /* | ?:[\\/]*) ;; #(
7390 *) continue;;
7391 esac
7392 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
7393 ac_xdir=$ac_dir/cf$$
7394 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
7395 ac_tf1=$ac_xdir/conftest9012345
7396 ac_tf2=$ac_xdir/conftest9012346
7397 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7398 ac_cv_sys_long_file_names=no
7399 rm -f -r "$ac_xdir" 2>/dev/null
7400 test $ac_cv_sys_long_file_names = no && break
7401done
7402fi
7403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7404$as_echo "$ac_cv_sys_long_file_names" >&6; }
7405if test $ac_cv_sys_long_file_names = yes; then
7406
7407$as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7408
7409fi
7410
7411
7412#### Choose a window system.
7413
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7415$as_echo_n "checking for X... " >&6; }
7416
7417
7418# Check whether --with-x was given.
7419if test "${with_x+set}" = set; then :
7420 withval=$with_x;
7421fi
7422
7423# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7424if test "x$with_x" = xno; then
7425 # The user explicitly disabled X.
7426 have_x=disabled
7427else
7428 case $x_includes,$x_libraries in #(
7429 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7430 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7431 $as_echo_n "(cached) " >&6
7432else
7433 # One or both of the vars are not set, and there is no cached value.
7434ac_x_includes=no ac_x_libraries=no
7435rm -f -r conftest.dir
7436if mkdir conftest.dir; then
7437 cd conftest.dir
7438 cat >Imakefile <<'_ACEOF'
7439incroot:
7440 @echo incroot='${INCROOT}'
7441usrlibdir:
7442 @echo usrlibdir='${USRLIBDIR}'
7443libdir:
7444 @echo libdir='${LIBDIR}'
7445_ACEOF
7446 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7447 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7448 for ac_var in incroot usrlibdir libdir; do
7449 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7450 done
7451 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7452 for ac_extension in a so sl dylib la dll; do
7453 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7454 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7455 ac_im_usrlibdir=$ac_im_libdir; break
7456 fi
7457 done
7458 # Screen out bogus values from the imake configuration. They are
7459 # bogus both because they are the default anyway, and because
7460 # using them would break gcc on systems where it needs fixed includes.
7461 case $ac_im_incroot in
7462 /usr/include) ac_x_includes= ;;
7463 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7464 esac
7465 case $ac_im_usrlibdir in
7466 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7467 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7468 esac
7469 fi
7470 cd ..
7471 rm -f -r conftest.dir
7472fi
7473
7474# Standard set of common directories for X headers.
7475# Check X11 before X11Rn because it is often a symlink to the current release.
7476ac_x_header_dirs='
7477/usr/X11/include
7478/usr/X11R7/include
7479/usr/X11R6/include
7480/usr/X11R5/include
7481/usr/X11R4/include
7482
7483/usr/include/X11
7484/usr/include/X11R7
7485/usr/include/X11R6
7486/usr/include/X11R5
7487/usr/include/X11R4
7488
7489/usr/local/X11/include
7490/usr/local/X11R7/include
7491/usr/local/X11R6/include
7492/usr/local/X11R5/include
7493/usr/local/X11R4/include
7494
7495/usr/local/include/X11
7496/usr/local/include/X11R7
7497/usr/local/include/X11R6
7498/usr/local/include/X11R5
7499/usr/local/include/X11R4
7500
7501/usr/X386/include
7502/usr/x386/include
7503/usr/XFree86/include/X11
7504
7505/usr/include
7506/usr/local/include
7507/usr/unsupported/include
7508/usr/athena/include
7509/usr/local/x11r5/include
7510/usr/lpp/Xamples/include
7511
7512/usr/openwin/include
7513/usr/openwin/share/include'
7514
7515if test "$ac_x_includes" = no; then
7516 # Guess where to find include files, by looking for Xlib.h.
7517 # First, try using that file with no special directory specified.
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519/* end confdefs.h. */
7520#include <X11/Xlib.h>
7521_ACEOF
7522if ac_fn_c_try_cpp "$LINENO"; then :
7523 # We can compile using X headers with no special include directory.
7524ac_x_includes=
7525else
7526 for ac_dir in $ac_x_header_dirs; do
7527 if test -r "$ac_dir/X11/Xlib.h"; then
7528 ac_x_includes=$ac_dir
7529 break
7530 fi
7531done
7532fi
7533rm -f conftest.err conftest.$ac_ext
7534fi # $ac_x_includes = no
7535
7536if test "$ac_x_libraries" = no; then
7537 # Check for the libraries.
7538 # See if we find them without any special options.
7539 # Don't add to $LIBS permanently.
7540 ac_save_LIBS=$LIBS
7541 LIBS="-lX11 $LIBS"
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543/* end confdefs.h. */
7544#include <X11/Xlib.h>
7545int
7546main ()
7547{
7548XrmInitialize ()
7549 ;
7550 return 0;
7551}
7552_ACEOF
7553if ac_fn_c_try_link "$LINENO"; then :
7554 LIBS=$ac_save_LIBS
7555# We can link X programs with no special library path.
7556ac_x_libraries=
7557else
7558 LIBS=$ac_save_LIBS
7559for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7560do
7561 # Don't even attempt the hair of trying to link an X program!
7562 for ac_extension in a so sl dylib la dll; do
7563 if test -r "$ac_dir/libX11.$ac_extension"; then
7564 ac_x_libraries=$ac_dir
7565 break 2
7566 fi
7567 done
7568done
7569fi
7570rm -f core conftest.err conftest.$ac_objext \
7571 conftest$ac_exeext conftest.$ac_ext
7572fi # $ac_x_libraries = no
7573
7574case $ac_x_includes,$ac_x_libraries in #(
7575 no,* | *,no | *\'*)
7576 # Didn't find X, or a directory has "'" in its name.
7577 ac_cv_have_x="have_x=no";; #(
7578 *)
7579 # Record where we found X for the cache.
7580 ac_cv_have_x="have_x=yes\
7581 ac_x_includes='$ac_x_includes'\
7582 ac_x_libraries='$ac_x_libraries'"
7583esac
7584fi
7585;; #(
7586 *) have_x=yes;;
7587 esac
7588 eval "$ac_cv_have_x"
7589fi # $with_x != no
7590
7591if test "$have_x" != yes; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7593$as_echo "$have_x" >&6; }
7594 no_x=yes
7595else
7596 # If each of the values was on the command line, it overrides each guess.
7597 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7598 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7599 # Update the cache value to reflect the command line values.
7600 ac_cv_have_x="have_x=yes\
7601 ac_x_includes='$x_includes'\
7602 ac_x_libraries='$x_libraries'"
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7604$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7605fi
7606
7607if test "$no_x" = yes; then
7608 window_system=none
7609else
7610 window_system=x11
7611fi
7612
7613## Workaround for bug in autoconf <= 2.62.
7614## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7615## No need to do anything special for these standard directories.
7616if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7617
7618 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7619
7620fi
7621
7622LD_SWITCH_X_SITE_AUX=
7623LD_SWITCH_X_SITE_AUX_RPATH=
7624if test "${x_libraries}" != NONE; then
7625 if test -n "${x_libraries}"; then
7626 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7627 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7628 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7629 fi
7630 x_default_search_path=""
7631 x_search_path=${x_libraries}
7632 if test -z "${x_search_path}"; then
7633 x_search_path=/usr/lib
7634 fi
7635 for x_library in `echo ${x_search_path}: | \
7636 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7637 x_search_path="\
7638${x_library}/X11/%L/%T/%N%C%S:\
7639${x_library}/X11/%l/%T/%N%C%S:\
7640${x_library}/X11/%T/%N%C%S:\
7641${x_library}/X11/%L/%T/%N%S:\
7642${x_library}/X11/%l/%T/%N%S:\
7643${x_library}/X11/%T/%N%S"
7644 if test x"${x_default_search_path}" = x; then
7645 x_default_search_path=${x_search_path}
7646 else
7647 x_default_search_path="${x_search_path}:${x_default_search_path}"
7648 fi
7649 done
7650fi
7651
7652
7653
7654if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7655 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7656fi
7657
7658if test x"${x_includes}" = x; then
7659 bitmapdir=/usr/include/X11/bitmaps
7660else
7661 # accumulate include directories that have X11 bitmap subdirectories
7662 bmd_acc="dummyval"
7663 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7664 if test -d "${bmd}/X11/bitmaps"; then
7665 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7666 fi
7667 if test -d "${bmd}/bitmaps"; then
7668 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7669 fi
7670 done
7671 if test ${bmd_acc} != "dummyval"; then
7672 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7673 fi
7674fi
7675
7676HAVE_NS=no
7677NS_IMPL_COCOA=no
7678NS_IMPL_GNUSTEP=no
7679tmp_CPPFLAGS="$CPPFLAGS"
7680tmp_CFLAGS="$CFLAGS"
7681CPPFLAGS="$CPPFLAGS -x objective-c"
7682CFLAGS="$CFLAGS -x objective-c"
7683TEMACS_LDFLAGS2="\${LDFLAGS}"
7684if test "${with_ns}" != no; then
7685 if test "${opsys}" = darwin; then
7686 NS_IMPL_COCOA=yes
7687 ns_appdir=`pwd`/nextstep/Emacs.app
7688 ns_appbindir=${ns_appdir}/Contents/MacOS/
7689 ns_appresdir=${ns_appdir}/Contents/Resources
7690 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7691 elif test -f $GNUSTEP_CONFIG_FILE; then
7692 NS_IMPL_GNUSTEP=yes
7693 ns_appdir=`pwd`/nextstep/Emacs.app
7694 ns_appbindir=${ns_appdir}/
7695 ns_appresdir=${ns_appdir}/Resources
7696 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7697 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7698 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7699 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7700 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7701 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7702 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
7703 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7704 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
7705 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7706 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7707 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7708 LIB_STANDARD=
7709 START_FILES=
7710 TEMACS_LDFLAGS2=
7711 fi
7712 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7713if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7714 HAVE_NS=yes
7715else
7716 as_fn_error "\`--with-ns' was specified, but the include
7717 files are missing or cannot be compiled." "$LINENO" 5
7718fi
7719
7720
7721 NS_HAVE_NSINTEGER=yes
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723/* end confdefs.h. */
7724#include <Foundation/NSObjCRuntime.h>
7725int
7726main ()
7727{
7728NSInteger i;
7729 ;
7730 return 0;
7731}
7732_ACEOF
7733if ac_fn_c_try_compile "$LINENO"; then :
7734 ns_have_nsinteger=yes
7735else
7736 ns_have_nsinteger=no
7737fi
7738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7739 if test $ns_have_nsinteger = no; then
7740 NS_HAVE_NSINTEGER=no
7741 fi
7742fi
7743
7744
7745ns_frag=/dev/null
7746NS_OBJ=
7747NS_SUPPORT=
7748if test "${HAVE_NS}" = yes; then
7749 window_system=nextstep
7750 with_xft=no
7751 # set up packaging dirs
7752 exec_prefix=${ns_appbindir}
7753 libexecdir=${ns_appbindir}/libexec
7754 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7755 prefix=${ns_appresdir}
7756 fi
7757 ns_frag=$srcdir/src/ns.mk
7758 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7759 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
7760fi
7761CFLAGS="$tmp_CFLAGS"
7762CPPFLAGS="$tmp_CPPFLAGS"
7763
7764
7765
7766
7767
7768case "${window_system}" in
7769 x11 )
7770 HAVE_X_WINDOWS=yes
7771 HAVE_X11=yes
7772 case "${with_x_toolkit}" in
7773 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7774 motif ) USE_X_TOOLKIT=MOTIF ;;
7775 gtk ) with_gtk=yes
7776 USE_X_TOOLKIT=none ;;
7777 gtk3 ) with_gtk3=yes
7778 USE_X_TOOLKIT=none ;;
7779 no ) USE_X_TOOLKIT=none ;;
7780 * ) USE_X_TOOLKIT=maybe ;;
7781 esac
7782 ;;
7783 nextstep | none )
7784 HAVE_X_WINDOWS=no
7785 HAVE_X11=no
7786 USE_X_TOOLKIT=none
7787 ;;
7788esac
7789
7790if test "$window_system" = none && test "X$with_x" != "Xno"; then
7791 # Extract the first word of "X", so it can be a program name with args.
7792set dummy X; ac_word=$2
7793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794$as_echo_n "checking for $ac_word... " >&6; }
7795if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7796 $as_echo_n "(cached) " >&6
7797else
7798 if test -n "$HAVE_XSERVER"; then
7799 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7800else
7801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802for as_dir in $PATH
7803do
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808 ac_cv_prog_HAVE_XSERVER="true"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 break 2
7811 fi
7812done
7813 done
7814IFS=$as_save_IFS
7815
7816 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7817fi
7818fi
7819HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7820if test -n "$HAVE_XSERVER"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7822$as_echo "$HAVE_XSERVER" >&6; }
7823else
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825$as_echo "no" >&6; }
7826fi
7827
7828
7829 if test "$HAVE_XSERVER" = true ||
7830 test -n "$DISPLAY" ||
7831 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7832 as_fn_error "You seem to be running X, but no X development libraries
7833were found. You should install the relevant development files for X
7834and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7835sure you have development files for image handling, i.e.
7836tiff, gif, jpeg, png and xpm.
7837If you are sure you want Emacs compiled without X window support, pass
7838 --without-x
7839to configure." "$LINENO" 5
7840 fi
7841fi
7842
7843### If we're using X11, we should use the X menu package.
7844HAVE_MENUS=no
7845case ${HAVE_X11} in
7846 yes ) HAVE_MENUS=yes ;;
7847esac
7848
7849# Do the opsystem or machine files prohibit the use of the GNU malloc?
7850# Assume not, until told otherwise.
7851GNU_MALLOC=yes
7852doug_lea_malloc=yes
7853ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7854if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7855
7856else
7857 doug_lea_malloc=no
7858fi
7859
7860ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7861if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7862
7863else
7864 doug_lea_malloc=no
7865fi
7866
7867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7868$as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7869if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7870 $as_echo_n "(cached) " >&6
7871else
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873/* end confdefs.h. */
7874extern void (* __after_morecore_hook)();
7875int
7876main ()
7877{
7878__after_morecore_hook = 0
7879 ;
7880 return 0;
7881}
7882_ACEOF
7883if ac_fn_c_try_link "$LINENO"; then :
7884 emacs_cv_var___after_morecore_hook=yes
7885else
7886 emacs_cv_var___after_morecore_hook=no
7887fi
7888rm -f core conftest.err conftest.$ac_objext \
7889 conftest$ac_exeext conftest.$ac_ext
7890fi
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7892$as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7893if test $emacs_cv_var___after_morecore_hook = no; then
7894 doug_lea_malloc=no
7895fi
7896
7897
7898system_malloc=no
7899case "$opsys" in
7900 ## darwin ld insists on the use of malloc routines in the System framework.
7901 darwin|sol2-10) system_malloc=yes ;;
7902esac
7903
7904if test "${system_malloc}" = "yes"; then
7905
7906$as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7907
7908 GNU_MALLOC=no
7909 GNU_MALLOC_reason="
7910 (The GNU allocators don't work with this system configuration.)"
7911 GMALLOC_OBJ=
7912 VMLIMIT_OBJ=
7913else
7914 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
7915 VMLIMIT_OBJ=vm-limit.o
7916fi
7917
7918
7919
7920if test "$doug_lea_malloc" = "yes" ; then
7921 if test "$GNU_MALLOC" = yes ; then
7922 GNU_MALLOC_reason="
7923 (Using Doug Lea's new malloc from the GNU C Library.)"
7924 fi
7925
7926$as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7927
7928
7929 ## Use mmap directly for allocating larger buffers.
7930 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7931 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7932 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7933 case "$opsys" in
7934 gnu*) REL_ALLOC=no ;;
7935 esac
7936fi
7937
7938if test x"${REL_ALLOC}" = x; then
7939 REL_ALLOC=${GNU_MALLOC}
7940fi
7941
7942use_mmap_for_buffers=no
7943case "$opsys" in
7944 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
7945esac
7946
7947
7948
7949
7950 for ac_header in $ac_header_list
7951do :
7952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7953ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7954"
7955eval as_val=\$$as_ac_Header
7956 if test "x$as_val" = x""yes; then :
7957 cat >>confdefs.h <<_ACEOF
7958#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7959_ACEOF
7960
7961fi
7962
7963done
7964
7965
7966
7967
7968
7969
7970
7971
7972for ac_func in getpagesize
7973do :
7974 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7975if test "x$ac_cv_func_getpagesize" = x""yes; then :
7976 cat >>confdefs.h <<_ACEOF
7977#define HAVE_GETPAGESIZE 1
7978_ACEOF
7979
7980fi
7981done
7982
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7984$as_echo_n "checking for working mmap... " >&6; }
7985if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7986 $as_echo_n "(cached) " >&6
7987else
7988 if test "$cross_compiling" = yes; then :
7989 ac_cv_func_mmap_fixed_mapped=no
7990else
7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992/* end confdefs.h. */
7993$ac_includes_default
7994/* malloc might have been renamed as rpl_malloc. */
7995#undef malloc
7996
7997/* Thanks to Mike Haertel and Jim Avera for this test.
7998 Here is a matrix of mmap possibilities:
7999 mmap private not fixed
8000 mmap private fixed at somewhere currently unmapped
8001 mmap private fixed at somewhere already mapped
8002 mmap shared not fixed
8003 mmap shared fixed at somewhere currently unmapped
8004 mmap shared fixed at somewhere already mapped
8005 For private mappings, we should verify that changes cannot be read()
8006 back from the file, nor mmap's back from the file at a different
8007 address. (There have been systems where private was not correctly
8008 implemented like the infamous i386 svr4.0, and systems where the
8009 VM page cache was not coherent with the file system buffer cache
8010 like early versions of FreeBSD and possibly contemporary NetBSD.)
8011 For shared mappings, we should conversely verify that changes get
8012 propagated back to all the places they're supposed to be.
8013
8014 Grep wants private fixed already mapped.
8015 The main things grep needs to know about mmap are:
8016 * does it exist and is it safe to write into the mmap'd area
8017 * how to use it (BSD variants) */
8018
8019#include <fcntl.h>
8020#include <sys/mman.h>
8021
8022#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8023char *malloc ();
8024#endif
8025
8026/* This mess was copied from the GNU getpagesize.h. */
8027#ifndef HAVE_GETPAGESIZE
8028# ifdef _SC_PAGESIZE
8029# define getpagesize() sysconf(_SC_PAGESIZE)
8030# else /* no _SC_PAGESIZE */
8031# ifdef HAVE_SYS_PARAM_H
8032# include <sys/param.h>
8033# ifdef EXEC_PAGESIZE
8034# define getpagesize() EXEC_PAGESIZE
8035# else /* no EXEC_PAGESIZE */
8036# ifdef NBPG
8037# define getpagesize() NBPG * CLSIZE
8038# ifndef CLSIZE
8039# define CLSIZE 1
8040# endif /* no CLSIZE */
8041# else /* no NBPG */
8042# ifdef NBPC
8043# define getpagesize() NBPC
8044# else /* no NBPC */
8045# ifdef PAGESIZE
8046# define getpagesize() PAGESIZE
8047# endif /* PAGESIZE */
8048# endif /* no NBPC */
8049# endif /* no NBPG */
8050# endif /* no EXEC_PAGESIZE */
8051# else /* no HAVE_SYS_PARAM_H */
8052# define getpagesize() 8192 /* punt totally */
8053# endif /* no HAVE_SYS_PARAM_H */
8054# endif /* no _SC_PAGESIZE */
8055
8056#endif /* no HAVE_GETPAGESIZE */
8057
8058int
8059main ()
8060{
8061 char *data, *data2, *data3;
8062 int i, pagesize;
8063 int fd, fd2;
8064
8065 pagesize = getpagesize ();
8066
8067 /* First, make a file with some known garbage in it. */
8068 data = (char *) malloc (pagesize);
8069 if (!data)
8070 return 1;
8071 for (i = 0; i < pagesize; ++i)
8072 *(data + i) = rand ();
8073 umask (0);
8074 fd = creat ("conftest.mmap", 0600);
8075 if (fd < 0)
8076 return 2;
8077 if (write (fd, data, pagesize) != pagesize)
8078 return 3;
8079 close (fd);
8080
8081 /* Next, check that the tail of a page is zero-filled. File must have
8082 non-zero length, otherwise we risk SIGBUS for entire page. */
8083 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8084 if (fd2 < 0)
8085 return 4;
8086 data2 = "";
8087 if (write (fd2, data2, 1) != 1)
8088 return 5;
8089 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8090 if (data2 == MAP_FAILED)
8091 return 6;
8092 for (i = 0; i < pagesize; ++i)
8093 if (*(data2 + i))
8094 return 7;
8095 close (fd2);
8096 if (munmap (data2, pagesize))
8097 return 8;
8098
8099 /* Next, try to mmap the file at a fixed address which already has
8100 something else allocated at it. If we can, also make sure that
8101 we see the same garbage. */
8102 fd = open ("conftest.mmap", O_RDWR);
8103 if (fd < 0)
8104 return 9;
8105 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8106 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8107 return 10;
8108 for (i = 0; i < pagesize; ++i)
8109 if (*(data + i) != *(data2 + i))
8110 return 11;
8111
8112 /* Finally, make sure that changes to the mapped area do not
8113 percolate back to the file as seen by read(). (This is a bug on
8114 some variants of i386 svr4.0.) */
8115 for (i = 0; i < pagesize; ++i)
8116 *(data2 + i) = *(data2 + i) + 1;
8117 data3 = (char *) malloc (pagesize);
8118 if (!data3)
8119 return 12;
8120 if (read (fd, data3, pagesize) != pagesize)
8121 return 13;
8122 for (i = 0; i < pagesize; ++i)
8123 if (*(data + i) != *(data3 + i))
8124 return 14;
8125 close (fd);
8126 return 0;
8127}
8128_ACEOF
8129if ac_fn_c_try_run "$LINENO"; then :
8130 ac_cv_func_mmap_fixed_mapped=yes
8131else
8132 ac_cv_func_mmap_fixed_mapped=no
8133fi
8134rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8135 conftest.$ac_objext conftest.beam conftest.$ac_ext
8136fi
8137
8138fi
8139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8140$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8141if test $ac_cv_func_mmap_fixed_mapped = yes; then
8142
8143$as_echo "#define HAVE_MMAP 1" >>confdefs.h
8144
8145fi
8146rm -f conftest.mmap conftest.txt
8147
8148if test $use_mmap_for_buffers = yes; then
8149
8150$as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8151
8152 REL_ALLOC=no
8153fi
8154
8155LIBS="$LIBS_SYSTEM $LIBS"
8156
8157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8158$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8159if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
8160 $as_echo_n "(cached) " >&6
8161else
8162 ac_check_lib_save_LIBS=$LIBS
8163LIBS="-ldnet $LIBS"
8164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165/* end confdefs.h. */
8166
8167/* Override any GCC internal prototype to avoid an error.
8168 Use char because int might match the return type of a GCC
8169 builtin and then its argument prototype would still apply. */
8170#ifdef __cplusplus
8171extern "C"
8172#endif
8173char dnet_ntoa ();
8174int
8175main ()
8176{
8177return dnet_ntoa ();
8178 ;
8179 return 0;
8180}
8181_ACEOF
8182if ac_fn_c_try_link "$LINENO"; then :
8183 ac_cv_lib_dnet_dnet_ntoa=yes
8184else
8185 ac_cv_lib_dnet_dnet_ntoa=no
8186fi
8187rm -f core conftest.err conftest.$ac_objext \
8188 conftest$ac_exeext conftest.$ac_ext
8189LIBS=$ac_check_lib_save_LIBS
8190fi
8191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8192$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8193if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
8194 cat >>confdefs.h <<_ACEOF
8195#define HAVE_LIBDNET 1
8196_ACEOF
8197
8198 LIBS="-ldnet $LIBS"
8199
8200fi
8201
8202
8203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
8204$as_echo_n "checking for main in -lXbsd... " >&6; }
8205if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
8206 $as_echo_n "(cached) " >&6
8207else
8208 ac_check_lib_save_LIBS=$LIBS
8209LIBS="-lXbsd $LIBS"
8210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211/* end confdefs.h. */
8212
8213
8214int
8215main ()
8216{
8217return main ();
8218 ;
8219 return 0;
8220}
8221_ACEOF
8222if ac_fn_c_try_link "$LINENO"; then :
8223 ac_cv_lib_Xbsd_main=yes
8224else
8225 ac_cv_lib_Xbsd_main=no
8226fi
8227rm -f core conftest.err conftest.$ac_objext \
8228 conftest$ac_exeext conftest.$ac_ext
8229LIBS=$ac_check_lib_save_LIBS
8230fi
8231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
8232$as_echo "$ac_cv_lib_Xbsd_main" >&6; }
8233if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
8234 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8235fi
8236
8237
8238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
8239$as_echo_n "checking for cma_open in -lpthreads... " >&6; }
8240if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
8241 $as_echo_n "(cached) " >&6
8242else
8243 ac_check_lib_save_LIBS=$LIBS
8244LIBS="-lpthreads $LIBS"
8245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246/* end confdefs.h. */
8247
8248/* Override any GCC internal prototype to avoid an error.
8249 Use char because int might match the return type of a GCC
8250 builtin and then its argument prototype would still apply. */
8251#ifdef __cplusplus
8252extern "C"
8253#endif
8254char cma_open ();
8255int
8256main ()
8257{
8258return cma_open ();
8259 ;
8260 return 0;
8261}
8262_ACEOF
8263if ac_fn_c_try_link "$LINENO"; then :
8264 ac_cv_lib_pthreads_cma_open=yes
8265else
8266 ac_cv_lib_pthreads_cma_open=no
8267fi
8268rm -f core conftest.err conftest.$ac_objext \
8269 conftest$ac_exeext conftest.$ac_ext
8270LIBS=$ac_check_lib_save_LIBS
8271fi
8272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8273$as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8274if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
8275 cat >>confdefs.h <<_ACEOF
8276#define HAVE_LIBPTHREADS 1
8277_ACEOF
8278
8279 LIBS="-lpthreads $LIBS"
8280
8281fi
8282
8283
8284## Note: when using cpp in s/aix4.2.h, this definition depended on
8285## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8286## the system file was sourced. Hence the value of LIBS_SYSTEM
8287## added to LIBS in configure would never contain the pthreads part,
8288## but the value used in Makefiles might. FIXME?
8289##
8290## -lpthreads seems to be necessary for Xlib in X11R6, and should
8291## be harmless on older versions of X where it happens to exist.
8292test "$opsys" = "aix4-2" && \
8293 test $ac_cv_lib_pthreads_cma_open = yes && \
8294 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
8295
8296
8297case ${host_os} in
8298aix*)
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8300$as_echo_n "checking for -bbigtoc option... " >&6; }
8301if test "${gdb_cv_bigtoc+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
8303else
8304
8305 case $GCC in
8306 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8307 *) gdb_cv_bigtoc=-bbigtoc ;;
8308 esac
8309
8310 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312/* end confdefs.h. */
8313
8314int
8315main ()
8316{
8317int i;
8318 ;
8319 return 0;
8320}
8321_ACEOF
8322if ac_fn_c_try_link "$LINENO"; then :
8323
8324else
8325 gdb_cv_bigtoc=
8326fi
8327rm -f core conftest.err conftest.$ac_objext \
8328 conftest$ac_exeext conftest.$ac_ext
8329
8330fi
8331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8332$as_echo "$gdb_cv_bigtoc" >&6; }
8333 ;;
8334esac
8335
8336# Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8337# used for the tests that follow. We set them back to REAL_CFLAGS and
8338# REAL_CPPFLAGS later on.
8339
8340REAL_CFLAGS="$CFLAGS"
8341REAL_CPPFLAGS="$CPPFLAGS"
8342
8343if test "${HAVE_X11}" = "yes"; then
8344 DEFS="$C_SWITCH_X_SITE $DEFS"
8345 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8346 LIBS="-lX11 $LIBS"
8347 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8348 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8349
8350 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8351 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8352 # but it's more convenient here to set LD_RUN_PATH
8353 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8354 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8355 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8356 export LD_RUN_PATH
8357 fi
8358
8359 if test "${opsys}" = "gnu-linux"; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8361$as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363/* end confdefs.h. */
8364
8365int
8366main ()
8367{
8368XOpenDisplay ("foo");
8369 ;
8370 return 0;
8371}
8372_ACEOF
8373if ac_fn_c_try_link "$LINENO"; then :
8374 xlinux_first_failure=no
8375else
8376 xlinux_first_failure=yes
8377fi
8378rm -f core conftest.err conftest.$ac_objext \
8379 conftest$ac_exeext conftest.$ac_ext
8380 if test "${xlinux_first_failure}" = "yes"; then
8381 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8382 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8383 OLD_CPPFLAGS="$CPPFLAGS"
8384 OLD_LIBS="$LIBS"
8385 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8386 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8387 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8388 LIBS="$LIBS -b i486-linuxaout"
8389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390/* end confdefs.h. */
8391
8392int
8393main ()
8394{
8395XOpenDisplay ("foo");
8396 ;
8397 return 0;
8398}
8399_ACEOF
8400if ac_fn_c_try_link "$LINENO"; then :
8401 xlinux_second_failure=no
8402else
8403 xlinux_second_failure=yes
8404fi
8405rm -f core conftest.err conftest.$ac_objext \
8406 conftest$ac_exeext conftest.$ac_ext
8407 if test "${xlinux_second_failure}" = "yes"; then
8408 # If we get the same failure with -b, there is no use adding -b.
8409 # So take it out. This plays safe.
8410 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8411 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8412 CPPFLAGS="$OLD_CPPFLAGS"
8413 LIBS="$OLD_LIBS"
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415$as_echo "no" >&6; }
8416 else
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8418$as_echo "yes" >&6; }
8419 fi
8420 else
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422$as_echo "no" >&6; }
8423 fi
8424 fi
8425
8426 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8427 # header files included from there.
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8429$as_echo_n "checking for Xkb... " >&6; }
8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431/* end confdefs.h. */
8432#include <X11/Xlib.h>
8433#include <X11/XKBlib.h>
8434int
8435main ()
8436{
8437XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8438 ;
8439 return 0;
8440}
8441_ACEOF
8442if ac_fn_c_try_link "$LINENO"; then :
8443 emacs_xkb=yes
8444else
8445 emacs_xkb=no
8446fi
8447rm -f core conftest.err conftest.$ac_objext \
8448 conftest$ac_exeext conftest.$ac_ext
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8450$as_echo "$emacs_xkb" >&6; }
8451 if test $emacs_xkb = yes; then
8452
8453$as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8454
8455 fi
8456
8457 for ac_func in XrmSetDatabase XScreenResourceString \
8458XScreenNumberOfScreen XSetWMProtocols
8459do :
8460 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8461ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8462eval as_val=\$$as_ac_var
8463 if test "x$as_val" = x""yes; then :
8464 cat >>confdefs.h <<_ACEOF
8465#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8466_ACEOF
8467
8468fi
8469done
8470
8471fi
8472
8473if test "${window_system}" = "x11"; then
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8475$as_echo_n "checking X11 version 6... " >&6; }
8476 if test "${emacs_cv_x11_version_6+set}" = set; then :
8477 $as_echo_n "(cached) " >&6
8478else
8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480/* end confdefs.h. */
8481#include <X11/Xlib.h>
8482int
8483main ()
8484{
8485#if XlibSpecificationRelease < 6
8486fail;
8487#endif
8488
8489 ;
8490 return 0;
8491}
8492_ACEOF
8493if ac_fn_c_try_link "$LINENO"; then :
8494 emacs_cv_x11_version_6=yes
8495else
8496 emacs_cv_x11_version_6=no
8497fi
8498rm -f core conftest.err conftest.$ac_objext \
8499 conftest$ac_exeext conftest.$ac_ext
8500fi
8501
8502 if test $emacs_cv_x11_version_6 = yes; then
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8504$as_echo "6 or newer" >&6; }
8505
8506$as_echo "#define HAVE_X11R6 1" >>confdefs.h
8507
8508
8509$as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8510
8511 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8512 ## XIM support.
8513 case "$opsys" in
8514 sol2-*) : ;;
8515 *)
8516$as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8517
8518 ;;
8519 esac
8520 else
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8522$as_echo "before 6" >&6; }
8523 fi
8524fi
8525
8526
8527### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8528HAVE_RSVG=no
8529if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8530 if test "${with_rsvg}" != "no"; then
8531 RSVG_REQUIRED=2.11.0
8532 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
8533
8534
8535 succeeded=no
8536
8537 # Extract the first word of "pkg-config", so it can be a program name with args.
8538set dummy pkg-config; ac_word=$2
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540$as_echo_n "checking for $ac_word... " >&6; }
8541if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8542 $as_echo_n "(cached) " >&6
8543else
8544 case $PKG_CONFIG in
8545 [\\/]* | ?:[\\/]*)
8546 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8547 ;;
8548 *)
8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550for as_dir in $PATH
8551do
8552 IFS=$as_save_IFS
8553 test -z "$as_dir" && as_dir=.
8554 for ac_exec_ext in '' $ac_executable_extensions; do
8555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8556 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8558 break 2
8559 fi
8560done
8561 done
8562IFS=$as_save_IFS
8563
8564 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8565 ;;
8566esac
8567fi
8568PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8569if test -n "$PKG_CONFIG"; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8571$as_echo "$PKG_CONFIG" >&6; }
8572else
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574$as_echo "no" >&6; }
8575fi
8576
8577
8578
8579 if test "$PKG_CONFIG" = "no" ; then
8580 :
8581 else
8582 PKG_CONFIG_MIN_VERSION=0.9.0
8583 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8585$as_echo_n "checking for $RSVG_MODULE... " >&6; }
8586
8587 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8589$as_echo "yes" >&6; }
8590 succeeded=yes
8591
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8593$as_echo_n "checking RSVG_CFLAGS... " >&6; }
8594 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8596$as_echo "$RSVG_CFLAGS" >&6; }
8597
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8599$as_echo_n "checking RSVG_LIBS... " >&6; }
8600 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8602$as_echo "$RSVG_LIBS" >&6; }
8603 else
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605$as_echo "no" >&6; }
8606 RSVG_CFLAGS=""
8607 RSVG_LIBS=""
8608 ## If we have a custom action on failure, don't print errors, but
8609 ## do set a variable so people can do so.
8610 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8611
8612 fi
8613
8614
8615
8616 else
8617 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8618 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8619 fi
8620 fi
8621
8622 if test $succeeded = yes; then
8623 HAVE_RSVG=yes
8624 else
8625 :
8626 fi
8627
8628
8629
8630
8631 if test $HAVE_RSVG = yes; then
8632
8633$as_echo "#define HAVE_RSVG 1" >>confdefs.h
8634
8635 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8636 LIBS="$RSVG_LIBS $LIBS"
8637 fi
8638 fi
8639fi
8640
8641HAVE_IMAGEMAGICK=no
8642if test "${HAVE_X11}" = "yes"; then
8643 if test "${with_imagemagick}" != "no"; then
8644 IMAGEMAGICK_MODULE="Wand"
8645
8646 succeeded=no
8647
8648 # Extract the first word of "pkg-config", so it can be a program name with args.
8649set dummy pkg-config; ac_word=$2
8650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651$as_echo_n "checking for $ac_word... " >&6; }
8652if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
8654else
8655 case $PKG_CONFIG in
8656 [\\/]* | ?:[\\/]*)
8657 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8658 ;;
8659 *)
8660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661for as_dir in $PATH
8662do
8663 IFS=$as_save_IFS
8664 test -z "$as_dir" && as_dir=.
8665 for ac_exec_ext in '' $ac_executable_extensions; do
8666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8667 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8669 break 2
8670 fi
8671done
8672 done
8673IFS=$as_save_IFS
8674
8675 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8676 ;;
8677esac
8678fi
8679PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8680if test -n "$PKG_CONFIG"; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8682$as_echo "$PKG_CONFIG" >&6; }
8683else
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685$as_echo "no" >&6; }
8686fi
8687
8688
8689
8690 if test "$PKG_CONFIG" = "no" ; then
8691 :
8692 else
8693 PKG_CONFIG_MIN_VERSION=0.9.0
8694 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
8696$as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
8697
8698 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8700$as_echo "yes" >&6; }
8701 succeeded=yes
8702
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
8704$as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
8705 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
8707$as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
8708
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
8710$as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
8711 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
8713$as_echo "$IMAGEMAGICK_LIBS" >&6; }
8714 else
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8716$as_echo "no" >&6; }
8717 IMAGEMAGICK_CFLAGS=""
8718 IMAGEMAGICK_LIBS=""
8719 ## If we have a custom action on failure, don't print errors, but
8720 ## do set a variable so people can do so.
8721 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
8722
8723 fi
8724
8725
8726
8727 else
8728 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8729 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8730 fi
8731 fi
8732
8733 if test $succeeded = yes; then
8734 HAVE_IMAGEMAGICK=yes
8735 else
8736 :
8737 fi
8738
8739
8740
8741
8742 if test $HAVE_IMAGEMAGICK = yes; then
8743
8744$as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
8745
8746 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
8747 LIBS="$IMAGEMAGICK_LIBS $LIBS"
8748 for ac_func in MagickExportImagePixels
8749do :
8750 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
8751if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
8752 cat >>confdefs.h <<_ACEOF
8753#define HAVE_MAGICKEXPORTIMAGEPIXELS 1
8754_ACEOF
8755
8756fi
8757done
8758
8759 fi
8760 fi
8761fi
8762
8763
8764HAVE_GTK=no
8765if test "${with_gtk3}" = "yes"; then
8766 GLIB_REQUIRED=2.6
8767 GTK_REQUIRED=2.90
8768 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8769
8770
8771 succeeded=no
8772
8773 # Extract the first word of "pkg-config", so it can be a program name with args.
8774set dummy pkg-config; ac_word=$2
8775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8776$as_echo_n "checking for $ac_word... " >&6; }
8777if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8778 $as_echo_n "(cached) " >&6
8779else
8780 case $PKG_CONFIG in
8781 [\\/]* | ?:[\\/]*)
8782 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8783 ;;
8784 *)
8785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786for as_dir in $PATH
8787do
8788 IFS=$as_save_IFS
8789 test -z "$as_dir" && as_dir=.
8790 for ac_exec_ext in '' $ac_executable_extensions; do
8791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8792 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8794 break 2
8795 fi
8796done
8797 done
8798IFS=$as_save_IFS
8799
8800 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8801 ;;
8802esac
8803fi
8804PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8805if test -n "$PKG_CONFIG"; then
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8807$as_echo "$PKG_CONFIG" >&6; }
8808else
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810$as_echo "no" >&6; }
8811fi
8812
8813
8814
8815 if test "$PKG_CONFIG" = "no" ; then
8816 pkg_check_gtk=no
8817 else
8818 PKG_CONFIG_MIN_VERSION=0.9.0
8819 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8821$as_echo_n "checking for $GTK_MODULES... " >&6; }
8822
8823 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8825$as_echo "yes" >&6; }
8826 succeeded=yes
8827
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8829$as_echo_n "checking GTK_CFLAGS... " >&6; }
8830 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8832$as_echo "$GTK_CFLAGS" >&6; }
8833
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8835$as_echo_n "checking GTK_LIBS... " >&6; }
8836 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8838$as_echo "$GTK_LIBS" >&6; }
8839 else
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8841$as_echo "no" >&6; }
8842 GTK_CFLAGS=""
8843 GTK_LIBS=""
8844 ## If we have a custom action on failure, don't print errors, but
8845 ## do set a variable so people can do so.
8846 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8847
8848 fi
8849
8850
8851
8852 else
8853 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8854 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8855 fi
8856 fi
8857
8858 if test $succeeded = yes; then
8859 pkg_check_gtk=yes
8860 else
8861 pkg_check_gtk=no
8862 fi
8863
8864 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8865 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8866 fi
8867fi
8868
8869if test "$pkg_check_gtk" != "yes"; then
8870 HAVE_GTK=no
8871if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8872 GLIB_REQUIRED=2.6
8873 GTK_REQUIRED=2.6
8874 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8875
8876
8877 succeeded=no
8878
8879 # Extract the first word of "pkg-config", so it can be a program name with args.
8880set dummy pkg-config; ac_word=$2
8881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8882$as_echo_n "checking for $ac_word... " >&6; }
8883if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8884 $as_echo_n "(cached) " >&6
8885else
8886 case $PKG_CONFIG in
8887 [\\/]* | ?:[\\/]*)
8888 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8889 ;;
8890 *)
8891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8892for as_dir in $PATH
8893do
8894 IFS=$as_save_IFS
8895 test -z "$as_dir" && as_dir=.
8896 for ac_exec_ext in '' $ac_executable_extensions; do
8897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8898 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8900 break 2
8901 fi
8902done
8903 done
8904IFS=$as_save_IFS
8905
8906 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8907 ;;
8908esac
8909fi
8910PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8911if test -n "$PKG_CONFIG"; then
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8913$as_echo "$PKG_CONFIG" >&6; }
8914else
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8916$as_echo "no" >&6; }
8917fi
8918
8919
8920
8921 if test "$PKG_CONFIG" = "no" ; then
8922 pkg_check_gtk=no
8923 else
8924 PKG_CONFIG_MIN_VERSION=0.9.0
8925 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8927$as_echo_n "checking for $GTK_MODULES... " >&6; }
8928
8929 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8931$as_echo "yes" >&6; }
8932 succeeded=yes
8933
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8935$as_echo_n "checking GTK_CFLAGS... " >&6; }
8936 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8938$as_echo "$GTK_CFLAGS" >&6; }
8939
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8941$as_echo_n "checking GTK_LIBS... " >&6; }
8942 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8944$as_echo "$GTK_LIBS" >&6; }
8945 else
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8947$as_echo "no" >&6; }
8948 GTK_CFLAGS=""
8949 GTK_LIBS=""
8950 ## If we have a custom action on failure, don't print errors, but
8951 ## do set a variable so people can do so.
8952 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8953
8954 fi
8955
8956
8957
8958 else
8959 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8960 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8961 fi
8962 fi
8963
8964 if test $succeeded = yes; then
8965 pkg_check_gtk=yes
8966 else
8967 pkg_check_gtk=no
8968 fi
8969
8970 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8971 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8972 fi
8973fi
8974fi
8975
8976GTK_OBJ=
8977if test x"$pkg_check_gtk" = xyes; then
8978
8979
8980
8981 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8982 CFLAGS="$CFLAGS $GTK_CFLAGS"
8983 LIBS="$GTK_LIBS $LIBS"
8984 GTK_COMPILES=no
8985 for ac_func in gtk_main
8986do :
8987 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8988if test "x$ac_cv_func_gtk_main" = x""yes; then :
8989 cat >>confdefs.h <<_ACEOF
8990#define HAVE_GTK_MAIN 1
8991_ACEOF
8992 GTK_COMPILES=yes
8993fi
8994done
8995
8996 if test "${GTK_COMPILES}" != "yes"; then
8997 if test "$USE_X_TOOLKIT" != "maybe"; then
8998 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8999 fi
9000 else
9001 HAVE_GTK=yes
9002
9003$as_echo "#define USE_GTK 1" >>confdefs.h
9004
9005 GTK_OBJ=gtkutil.o
9006 USE_X_TOOLKIT=none
9007 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
9008 :
9009 else
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
9011 closing open displays. This is no problem if you just use
9012 one display, but if you use more than one and close one of them
9013 Emacs may crash." >&5
9014$as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
9015 closing open displays. This is no problem if you just use
9016 one display, but if you use more than one and close one of them
9017 Emacs may crash." >&2;}
9018 sleep 3
9019 fi
9020 fi
9021
9022fi
9023
9024
9025
9026if test "${HAVE_GTK}" = "yes"; then
9027
9028 if test "$with_toolkit_scroll_bars" != no; then
9029 with_toolkit_scroll_bars=yes
9030 fi
9031
9032 HAVE_GTK_FILE_SELECTION=no
9033 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9034#include <gtk/gtk.h>
9035"
9036if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
9037 HAVE_GTK_FILE_SELECTION=yes
9038else
9039 HAVE_GTK_FILE_SELECTION=no
9040fi
9041
9042 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9043 for ac_func in gtk_file_selection_new
9044do :
9045 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9046if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
9047 cat >>confdefs.h <<_ACEOF
9048#define HAVE_GTK_FILE_SELECTION_NEW 1
9049_ACEOF
9050
9051fi
9052done
9053
9054 fi
9055
9056 HAVE_GTK_AND_PTHREAD=no
9057 for ac_header in pthread.h
9058do :
9059 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9060if test "x$ac_cv_header_pthread_h" = x""yes; then :
9061 cat >>confdefs.h <<_ACEOF
9062#define HAVE_PTHREAD_H 1
9063_ACEOF
9064
9065fi
9066
9067done
9068
9069 if test "$ac_cv_header_pthread_h"; then
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9071$as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9072if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
9073 $as_echo_n "(cached) " >&6
9074else
9075 ac_check_lib_save_LIBS=$LIBS
9076LIBS="-lpthread $LIBS"
9077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078/* end confdefs.h. */
9079
9080/* Override any GCC internal prototype to avoid an error.
9081 Use char because int might match the return type of a GCC
9082 builtin and then its argument prototype would still apply. */
9083#ifdef __cplusplus
9084extern "C"
9085#endif
9086char pthread_self ();
9087int
9088main ()
9089{
9090return pthread_self ();
9091 ;
9092 return 0;
9093}
9094_ACEOF
9095if ac_fn_c_try_link "$LINENO"; then :
9096 ac_cv_lib_pthread_pthread_self=yes
9097else
9098 ac_cv_lib_pthread_pthread_self=no
9099fi
9100rm -f core conftest.err conftest.$ac_objext \
9101 conftest$ac_exeext conftest.$ac_ext
9102LIBS=$ac_check_lib_save_LIBS
9103fi
9104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9105$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9106if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
9107 HAVE_GTK_AND_PTHREAD=yes
9108fi
9109
9110 fi
9111 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9112 case "${canonical}" in
9113 *-hpux*) ;;
9114 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
9115 esac
9116
9117$as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9118
9119 fi
9120
9121 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
9122 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9123 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9124 gtk_orientable_set_orientation
9125do :
9126 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9127ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9128eval as_val=\$$as_ac_var
9129 if test "x$as_val" = x""yes; then :
9130 cat >>confdefs.h <<_ACEOF
9131#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9132_ACEOF
9133
9134fi
9135done
9136
9137
9138fi
9139
9140HAVE_DBUS=no
9141DBUS_OBJ=
9142if test "${with_dbus}" = "yes"; then
9143
9144 succeeded=no
9145
9146 # Extract the first word of "pkg-config", so it can be a program name with args.
9147set dummy pkg-config; ac_word=$2
9148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149$as_echo_n "checking for $ac_word... " >&6; }
9150if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9151 $as_echo_n "(cached) " >&6
9152else
9153 case $PKG_CONFIG in
9154 [\\/]* | ?:[\\/]*)
9155 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9156 ;;
9157 *)
9158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9159for as_dir in $PATH
9160do
9161 IFS=$as_save_IFS
9162 test -z "$as_dir" && as_dir=.
9163 for ac_exec_ext in '' $ac_executable_extensions; do
9164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9165 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9167 break 2
9168 fi
9169done
9170 done
9171IFS=$as_save_IFS
9172
9173 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9174 ;;
9175esac
9176fi
9177PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9178if test -n "$PKG_CONFIG"; then
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9180$as_echo "$PKG_CONFIG" >&6; }
9181else
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9183$as_echo "no" >&6; }
9184fi
9185
9186
9187
9188 if test "$PKG_CONFIG" = "no" ; then
9189 HAVE_DBUS=no
9190 else
9191 PKG_CONFIG_MIN_VERSION=0.9.0
9192 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
9194$as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
9195
9196 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9198$as_echo "yes" >&6; }
9199 succeeded=yes
9200
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
9202$as_echo_n "checking DBUS_CFLAGS... " >&6; }
9203 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
9205$as_echo "$DBUS_CFLAGS" >&6; }
9206
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
9208$as_echo_n "checking DBUS_LIBS... " >&6; }
9209 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
9211$as_echo "$DBUS_LIBS" >&6; }
9212 else
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9214$as_echo "no" >&6; }
9215 DBUS_CFLAGS=""
9216 DBUS_LIBS=""
9217 ## If we have a custom action on failure, don't print errors, but
9218 ## do set a variable so people can do so.
9219 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
9220
9221 fi
9222
9223
9224
9225 else
9226 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9227 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9228 fi
9229 fi
9230
9231 if test $succeeded = yes; then
9232 HAVE_DBUS=yes
9233 else
9234 HAVE_DBUS=no
9235 fi
9236
9237 if test "$HAVE_DBUS" = yes; then
9238 LIBS="$LIBS $DBUS_LIBS"
9239
9240$as_echo "#define HAVE_DBUS 1" >>confdefs.h
9241
9242 for ac_func in dbus_watch_get_unix_fd
9243do :
9244 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
9245if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
9246 cat >>confdefs.h <<_ACEOF
9247#define HAVE_DBUS_WATCH_GET_UNIX_FD 1
9248_ACEOF
9249
9250fi
9251done
9252
9253 DBUS_OBJ=dbusbind.o
9254 fi
9255fi
9256
9257
9258HAVE_GCONF=no
9259if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
9260
9261 succeeded=no
9262
9263 # Extract the first word of "pkg-config", so it can be a program name with args.
9264set dummy pkg-config; ac_word=$2
9265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9266$as_echo_n "checking for $ac_word... " >&6; }
9267if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9268 $as_echo_n "(cached) " >&6
9269else
9270 case $PKG_CONFIG in
9271 [\\/]* | ?:[\\/]*)
9272 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9273 ;;
9274 *)
9275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9276for as_dir in $PATH
9277do
9278 IFS=$as_save_IFS
9279 test -z "$as_dir" && as_dir=.
9280 for ac_exec_ext in '' $ac_executable_extensions; do
9281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9282 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9284 break 2
9285 fi
9286done
9287 done
9288IFS=$as_save_IFS
9289
9290 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9291 ;;
9292esac
9293fi
9294PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9295if test -n "$PKG_CONFIG"; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9297$as_echo "$PKG_CONFIG" >&6; }
9298else
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9300$as_echo "no" >&6; }
9301fi
9302
9303
9304
9305 if test "$PKG_CONFIG" = "no" ; then
9306 HAVE_GCONF=no
9307 else
9308 PKG_CONFIG_MIN_VERSION=0.9.0
9309 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
9311$as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
9312
9313 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9315$as_echo "yes" >&6; }
9316 succeeded=yes
9317
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
9319$as_echo_n "checking GCONF_CFLAGS... " >&6; }
9320 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
9322$as_echo "$GCONF_CFLAGS" >&6; }
9323
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
9325$as_echo_n "checking GCONF_LIBS... " >&6; }
9326 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
9328$as_echo "$GCONF_LIBS" >&6; }
9329 else
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9331$as_echo "no" >&6; }
9332 GCONF_CFLAGS=""
9333 GCONF_LIBS=""
9334 ## If we have a custom action on failure, don't print errors, but
9335 ## do set a variable so people can do so.
9336 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
9337
9338 fi
9339
9340
9341
9342 else
9343 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9344 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9345 fi
9346 fi
9347
9348 if test $succeeded = yes; then
9349 HAVE_GCONF=yes
9350 else
9351 HAVE_GCONF=no
9352 fi
9353
9354 if test "$HAVE_GCONF" = yes; then
9355
9356$as_echo "#define HAVE_GCONF 1" >>confdefs.h
9357
9358 for ac_func in g_type_init
9359do :
9360 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
9361if test "x$ac_cv_func_g_type_init" = x""yes; then :
9362 cat >>confdefs.h <<_ACEOF
9363#define HAVE_G_TYPE_INIT 1
9364_ACEOF
9365
9366fi
9367done
9368
9369 fi
9370fi
9371
9372HAVE_LIBSELINUX=no
9373LIBSELINUX_LIBS=
9374if test "${with_selinux}" = "yes"; then
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9376$as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9377if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
9378 $as_echo_n "(cached) " >&6
9379else
9380 ac_check_lib_save_LIBS=$LIBS
9381LIBS="-lselinux $LIBS"
9382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383/* end confdefs.h. */
9384
9385/* Override any GCC internal prototype to avoid an error.
9386 Use char because int might match the return type of a GCC
9387 builtin and then its argument prototype would still apply. */
9388#ifdef __cplusplus
9389extern "C"
9390#endif
9391char lgetfilecon ();
9392int
9393main ()
9394{
9395return lgetfilecon ();
9396 ;
9397 return 0;
9398}
9399_ACEOF
9400if ac_fn_c_try_link "$LINENO"; then :
9401 ac_cv_lib_selinux_lgetfilecon=yes
9402else
9403 ac_cv_lib_selinux_lgetfilecon=no
9404fi
9405rm -f core conftest.err conftest.$ac_objext \
9406 conftest$ac_exeext conftest.$ac_ext
9407LIBS=$ac_check_lib_save_LIBS
9408fi
9409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9410$as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9411if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
9412 HAVE_LIBSELINUX=yes
9413else
9414 HAVE_LIBSELINUX=no
9415fi
9416
9417 if test "$HAVE_LIBSELINUX" = yes; then
9418
9419$as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9420
9421 LIBSELINUX_LIBS=-lselinux
9422 fi
9423fi
9424
9425
9426HAVE_GNUTLS=no
9427if test "${with_gnutls}" = "yes" ; then
9428
9429 succeeded=no
9430
9431 # Extract the first word of "pkg-config", so it can be a program name with args.
9432set dummy pkg-config; ac_word=$2
9433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9434$as_echo_n "checking for $ac_word... " >&6; }
9435if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9436 $as_echo_n "(cached) " >&6
9437else
9438 case $PKG_CONFIG in
9439 [\\/]* | ?:[\\/]*)
9440 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9441 ;;
9442 *)
9443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9444for as_dir in $PATH
9445do
9446 IFS=$as_save_IFS
9447 test -z "$as_dir" && as_dir=.
9448 for ac_exec_ext in '' $ac_executable_extensions; do
9449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9450 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9452 break 2
9453 fi
9454done
9455 done
9456IFS=$as_save_IFS
9457
9458 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9459 ;;
9460esac
9461fi
9462PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9463if test -n "$PKG_CONFIG"; then
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9465$as_echo "$PKG_CONFIG" >&6; }
9466else
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9468$as_echo "no" >&6; }
9469fi
9470
9471
9472
9473 if test "$PKG_CONFIG" = "no" ; then
9474 HAVE_GNUTLS=no
9475 else
9476 PKG_CONFIG_MIN_VERSION=0.9.0
9477 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
9479$as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
9480
9481 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9483$as_echo "yes" >&6; }
9484 succeeded=yes
9485
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
9487$as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
9488 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
9490$as_echo "$LIBGNUTLS_CFLAGS" >&6; }
9491
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
9493$as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
9494 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
9496$as_echo "$LIBGNUTLS_LIBS" >&6; }
9497 else
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499$as_echo "no" >&6; }
9500 LIBGNUTLS_CFLAGS=""
9501 LIBGNUTLS_LIBS=""
9502 ## If we have a custom action on failure, don't print errors, but
9503 ## do set a variable so people can do so.
9504 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
9505
9506 fi
9507
9508
9509
9510 else
9511 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9512 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9513 fi
9514 fi
9515
9516 if test $succeeded = yes; then
9517 HAVE_GNUTLS=yes
9518 else
9519 HAVE_GNUTLS=no
9520 fi
9521
9522 if test "${HAVE_GNUTLS}" = "yes"; then
9523
9524$as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9525
9526 fi
9527fi
9528
9529
9530
9531HAVE_XAW3D=no
9532LUCID_LIBW=
9533if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
9534 if test "$with_xaw3d" != no; then
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9536$as_echo_n "checking for xaw3d... " >&6; }
9537 if test "${emacs_cv_xaw3d+set}" = set; then :
9538 $as_echo_n "(cached) " >&6
9539else
9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541/* end confdefs.h. */
9542
9543#include <X11/Intrinsic.h>
9544#include <X11/Xaw3d/Simple.h>
9545int
9546main ()
9547{
9548
9549 ;
9550 return 0;
9551}
9552_ACEOF
9553if ac_fn_c_try_link "$LINENO"; then :
9554 emacs_cv_xaw3d=yes
9555else
9556 emacs_cv_xaw3d=no
9557fi
9558rm -f core conftest.err conftest.$ac_objext \
9559 conftest$ac_exeext conftest.$ac_ext
9560fi
9561
9562 else
9563 emacs_cv_xaw3d=no
9564 fi
9565 if test $emacs_cv_xaw3d = yes; then
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9567$as_echo "yes; using Lucid toolkit" >&6; }
9568 USE_X_TOOLKIT=LUCID
9569 HAVE_XAW3D=yes
9570 LUCID_LIBW=-lXaw3d
9571
9572$as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9573
9574 else
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9576$as_echo "no" >&6; }
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9578$as_echo_n "checking for libXaw... " >&6; }
9579 if test "${emacs_cv_xaw+set}" = set; then :
9580 $as_echo_n "(cached) " >&6
9581else
9582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583/* end confdefs.h. */
9584
9585#include <X11/Intrinsic.h>
9586#include <X11/Xaw/Simple.h>
9587int
9588main ()
9589{
9590
9591 ;
9592 return 0;
9593}
9594_ACEOF
9595if ac_fn_c_try_link "$LINENO"; then :
9596 emacs_cv_xaw=yes
9597else
9598 emacs_cv_xaw=no
9599fi
9600rm -f core conftest.err conftest.$ac_objext \
9601 conftest$ac_exeext conftest.$ac_ext
9602fi
9603
9604 if test $emacs_cv_xaw = yes; then
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9606$as_echo "yes; using Lucid toolkit" >&6; }
9607 USE_X_TOOLKIT=LUCID
9608 LUCID_LIBW=-lXaw
9609 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
9610 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9611 else
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9613$as_echo "no; do not use toolkit by default" >&6; }
9614 USE_X_TOOLKIT=none
9615 fi
9616 fi
9617fi
9618
9619X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9620
9621LIBXTR6=
9622if test "${USE_X_TOOLKIT}" != "none"; then
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9624$as_echo_n "checking X11 toolkit version... " >&6; }
9625 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9626 $as_echo_n "(cached) " >&6
9627else
9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629/* end confdefs.h. */
9630#include <X11/Intrinsic.h>
9631int
9632main ()
9633{
9634#if XtSpecificationRelease < 6
9635fail;
9636#endif
9637
9638 ;
9639 return 0;
9640}
9641_ACEOF
9642if ac_fn_c_try_link "$LINENO"; then :
9643 emacs_cv_x11_toolkit_version_6=yes
9644else
9645 emacs_cv_x11_toolkit_version_6=no
9646fi
9647rm -f core conftest.err conftest.$ac_objext \
9648 conftest$ac_exeext conftest.$ac_ext
9649fi
9650
9651 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9652 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9654$as_echo "6 or newer" >&6; }
9655
9656$as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9657
9658 LIBXTR6="-lSM -lICE"
9659 case "$opsys" in
9660 ## Use libw.a along with X11R6 Xt.
9661 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
9662 esac
9663 else
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9665$as_echo "before 6" >&6; }
9666 fi
9667
9668 OLDLIBS="$LIBS"
9669 if test x$HAVE_X11XTR6 = xyes; then
9670 LIBS="-lXt -lSM -lICE $LIBS"
9671 else
9672 LIBS="-lXt $LIBS"
9673 fi
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9675$as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9676if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9677 $as_echo_n "(cached) " >&6
9678else
9679 ac_check_lib_save_LIBS=$LIBS
9680LIBS="-lXmu $LIBS"
9681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682/* end confdefs.h. */
9683
9684/* Override any GCC internal prototype to avoid an error.
9685 Use char because int might match the return type of a GCC
9686 builtin and then its argument prototype would still apply. */
9687#ifdef __cplusplus
9688extern "C"
9689#endif
9690char XmuConvertStandardSelection ();
9691int
9692main ()
9693{
9694return XmuConvertStandardSelection ();
9695 ;
9696 return 0;
9697}
9698_ACEOF
9699if ac_fn_c_try_link "$LINENO"; then :
9700 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9701else
9702 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9703fi
9704rm -f core conftest.err conftest.$ac_objext \
9705 conftest$ac_exeext conftest.$ac_ext
9706LIBS=$ac_check_lib_save_LIBS
9707fi
9708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9709$as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9710if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
9711 cat >>confdefs.h <<_ACEOF
9712#define HAVE_LIBXMU 1
9713_ACEOF
9714
9715 LIBS="-lXmu $LIBS"
9716
9717fi
9718
9719 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9720fi
9721
9722
9723LIBXMU=-lXmu
9724case "$machine" in
9725 ## These machines don't supply Xmu.
9726 hpux* | aix4-2 )
9727 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
9728 ;;
9729esac
9730
9731
9732# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9733if test "${HAVE_X11}" = "yes"; then
9734 if test "${USE_X_TOOLKIT}" != "none"; then
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9736$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9737if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9738 $as_echo_n "(cached) " >&6
9739else
9740 ac_check_lib_save_LIBS=$LIBS
9741LIBS="-lXext $LIBS"
9742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743/* end confdefs.h. */
9744
9745/* Override any GCC internal prototype to avoid an error.
9746 Use char because int might match the return type of a GCC
9747 builtin and then its argument prototype would still apply. */
9748#ifdef __cplusplus
9749extern "C"
9750#endif
9751char XShapeQueryExtension ();
9752int
9753main ()
9754{
9755return XShapeQueryExtension ();
9756 ;
9757 return 0;
9758}
9759_ACEOF
9760if ac_fn_c_try_link "$LINENO"; then :
9761 ac_cv_lib_Xext_XShapeQueryExtension=yes
9762else
9763 ac_cv_lib_Xext_XShapeQueryExtension=no
9764fi
9765rm -f core conftest.err conftest.$ac_objext \
9766 conftest$ac_exeext conftest.$ac_ext
9767LIBS=$ac_check_lib_save_LIBS
9768fi
9769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9770$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9771if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
9772 cat >>confdefs.h <<_ACEOF
9773#define HAVE_LIBXEXT 1
9774_ACEOF
9775
9776 LIBS="-lXext $LIBS"
9777
9778fi
9779
9780 fi
9781fi
9782
9783LIBXP=
9784if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9786$as_echo_n "checking for Motif version 2.1... " >&6; }
9787if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9788 $as_echo_n "(cached) " >&6
9789else
9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791/* end confdefs.h. */
9792#include <Xm/Xm.h>
9793int
9794main ()
9795{
9796#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9797int x = 5;
9798#else
9799Motif version prior to 2.1.
9800#endif
9801 ;
9802 return 0;
9803}
9804_ACEOF
9805if ac_fn_c_try_compile "$LINENO"; then :
9806 emacs_cv_motif_version_2_1=yes
9807else
9808 emacs_cv_motif_version_2_1=no
9809fi
9810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9811fi
9812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9813$as_echo "$emacs_cv_motif_version_2_1" >&6; }
9814 if test $emacs_cv_motif_version_2_1 = yes; then
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9816$as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9817if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9818 $as_echo_n "(cached) " >&6
9819else
9820 ac_check_lib_save_LIBS=$LIBS
9821LIBS="-lXp $LIBS"
9822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823/* end confdefs.h. */
9824
9825/* Override any GCC internal prototype to avoid an error.
9826 Use char because int might match the return type of a GCC
9827 builtin and then its argument prototype would still apply. */
9828#ifdef __cplusplus
9829extern "C"
9830#endif
9831char XpCreateContext ();
9832int
9833main ()
9834{
9835return XpCreateContext ();
9836 ;
9837 return 0;
9838}
9839_ACEOF
9840if ac_fn_c_try_link "$LINENO"; then :
9841 ac_cv_lib_Xp_XpCreateContext=yes
9842else
9843 ac_cv_lib_Xp_XpCreateContext=no
9844fi
9845rm -f core conftest.err conftest.$ac_objext \
9846 conftest$ac_exeext conftest.$ac_ext
9847LIBS=$ac_check_lib_save_LIBS
9848fi
9849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9850$as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9851if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
9852 LIBXP=-lXp
9853fi
9854
9855 else
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9857$as_echo_n "checking for LessTif where some systems put it... " >&6; }
9858if test "${emacs_cv_lesstif+set}" = set; then :
9859 $as_echo_n "(cached) " >&6
9860else
9861 # We put this in CFLAGS temporarily to precede other -I options
9862 # that might be in CFLAGS temporarily.
9863 # We put this in CPPFLAGS where it precedes the other -I options.
9864 OLD_CPPFLAGS=$CPPFLAGS
9865 OLD_CFLAGS=$CFLAGS
9866 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9867 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869/* end confdefs.h. */
9870#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9871int
9872main ()
9873{
9874int x = 5;
9875 ;
9876 return 0;
9877}
9878_ACEOF
9879if ac_fn_c_try_compile "$LINENO"; then :
9880 emacs_cv_lesstif=yes
9881else
9882 emacs_cv_lesstif=no
9883fi
9884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9885fi
9886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9887$as_echo "$emacs_cv_lesstif" >&6; }
9888 if test $emacs_cv_lesstif = yes; then
9889 # Make sure this -I option remains in CPPFLAGS after it is set
9890 # back to REAL_CPPFLAGS.
9891 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9892 # have those other -I options anyway. Ultimately, having this
9893 # directory ultimately in CPPFLAGS will be enough.
9894 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9895 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9896 else
9897 CFLAGS=$OLD_CFLAGS
9898 CPPFLAGS=$OLD_CPPFLAGS
9899 fi
9900 fi
9901fi
9902
9903
9904USE_TOOLKIT_SCROLL_BARS=no
9905if test "${with_toolkit_scroll_bars}" != "no"; then
9906 if test "${USE_X_TOOLKIT}" != "none"; then
9907 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9908 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9909
9910 HAVE_XAW3D=no
9911 USE_TOOLKIT_SCROLL_BARS=yes
9912 elif test "${HAVE_XAW3D}" = "yes"; then
9913 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9914
9915 USE_TOOLKIT_SCROLL_BARS=yes
9916 fi
9917 elif test "${HAVE_GTK}" = "yes"; then
9918 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9919
9920 USE_TOOLKIT_SCROLL_BARS=yes
9921 elif test "${HAVE_NS}" = "yes"; then
9922 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9923
9924 USE_TOOLKIT_SCROLL_BARS=yes
9925 fi
9926fi
9927
9928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9929/* end confdefs.h. */
9930
9931 #include <X11/Xlib.h>
9932 #include <X11/Xresource.h>
9933int
9934main ()
9935{
9936XIMProc callback;
9937 ;
9938 return 0;
9939}
9940_ACEOF
9941if ac_fn_c_try_compile "$LINENO"; then :
9942 HAVE_XIM=yes
9943
9944$as_echo "#define HAVE_XIM 1" >>confdefs.h
9945
9946else
9947 HAVE_XIM=no
9948fi
9949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9950
9951
9952if test "${with_xim}" != "no"; then
9953
9954$as_echo "#define USE_XIM 1" >>confdefs.h
9955
9956fi
9957
9958
9959if test "${HAVE_XIM}" != "no"; then
9960 late_CFLAGS=$CFLAGS
9961 if test "$GCC" = yes; then
9962 CFLAGS="$CFLAGS --pedantic-errors"
9963 fi
9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9965/* end confdefs.h. */
9966
9967#include <X11/Xlib.h>
9968#include <X11/Xresource.h>
9969int
9970main ()
9971{
9972Display *display;
9973XrmDatabase db;
9974char *res_name;
9975char *res_class;
9976XIMProc callback;
9977XPointer *client_data;
9978#ifndef __GNUC__
9979/* If we're not using GCC, it's probably not XFree86, and this is
9980 probably right, but we can't use something like --pedantic-errors. */
9981extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9982 char*, XIMProc, XPointer*);
9983#endif
9984(void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9985 client_data);
9986 ;
9987 return 0;
9988}
9989_ACEOF
9990if ac_fn_c_try_compile "$LINENO"; then :
9991 emacs_cv_arg6_star=yes
9992fi
9993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9994 if test "$emacs_cv_arg6_star" = yes; then
9995 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9996
9997 else
9998 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9999
10000 fi
10001 CFLAGS=$late_CFLAGS
10002fi
10003
10004### Start of font-backend (under any platform) section.
10005# (nothing here yet -- this is a placeholder)
10006### End of font-backend (under any platform) section.
10007
10008### Start of font-backend (under X11) section.
10009if test "${HAVE_X11}" = "yes"; then
10010
10011 succeeded=no
10012
10013 # Extract the first word of "pkg-config", so it can be a program name with args.
10014set dummy pkg-config; ac_word=$2
10015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10016$as_echo_n "checking for $ac_word... " >&6; }
10017if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10018 $as_echo_n "(cached) " >&6
10019else
10020 case $PKG_CONFIG in
10021 [\\/]* | ?:[\\/]*)
10022 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10023 ;;
10024 *)
10025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10026for as_dir in $PATH
10027do
10028 IFS=$as_save_IFS
10029 test -z "$as_dir" && as_dir=.
10030 for ac_exec_ext in '' $ac_executable_extensions; do
10031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10032 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10034 break 2
10035 fi
10036done
10037 done
10038IFS=$as_save_IFS
10039
10040 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10041 ;;
10042esac
10043fi
10044PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10045if test -n "$PKG_CONFIG"; then
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10047$as_echo "$PKG_CONFIG" >&6; }
10048else
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10050$as_echo "no" >&6; }
10051fi
10052
10053
10054
10055 if test "$PKG_CONFIG" = "no" ; then
10056 HAVE_FC=no
10057 else
10058 PKG_CONFIG_MIN_VERSION=0.9.0
10059 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
10061$as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
10062
10063 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10065$as_echo "yes" >&6; }
10066 succeeded=yes
10067
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
10069$as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
10070 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
10072$as_echo "$FONTCONFIG_CFLAGS" >&6; }
10073
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
10075$as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
10076 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
10078$as_echo "$FONTCONFIG_LIBS" >&6; }
10079 else
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10081$as_echo "no" >&6; }
10082 FONTCONFIG_CFLAGS=""
10083 FONTCONFIG_LIBS=""
10084 ## If we have a custom action on failure, don't print errors, but
10085 ## do set a variable so people can do so.
10086 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
10087
10088 fi
10089
10090
10091
10092 else
10093 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10094 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10095 fi
10096 fi
10097
10098 if test $succeeded = yes; then
10099 HAVE_FC=yes
10100 else
10101 HAVE_FC=no
10102 fi
10103
10104
10105 ## Use -lXft if available, unless `--with-xft=no'.
10106 HAVE_XFT=maybe
10107 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
10108 with_xft="no";
10109 fi
10110 if test "x${with_xft}" != "xno"; then
10111
10112
10113 succeeded=no
10114
10115 # Extract the first word of "pkg-config", so it can be a program name with args.
10116set dummy pkg-config; ac_word=$2
10117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10118$as_echo_n "checking for $ac_word... " >&6; }
10119if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10120 $as_echo_n "(cached) " >&6
10121else
10122 case $PKG_CONFIG in
10123 [\\/]* | ?:[\\/]*)
10124 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10125 ;;
10126 *)
10127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10128for as_dir in $PATH
10129do
10130 IFS=$as_save_IFS
10131 test -z "$as_dir" && as_dir=.
10132 for ac_exec_ext in '' $ac_executable_extensions; do
10133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10134 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10136 break 2
10137 fi
10138done
10139 done
10140IFS=$as_save_IFS
10141
10142 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10143 ;;
10144esac
10145fi
10146PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10147if test -n "$PKG_CONFIG"; then
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10149$as_echo "$PKG_CONFIG" >&6; }
10150else
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152$as_echo "no" >&6; }
10153fi
10154
10155
10156
10157 if test "$PKG_CONFIG" = "no" ; then
10158 HAVE_XFT=no
10159 else
10160 PKG_CONFIG_MIN_VERSION=0.9.0
10161 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10163$as_echo_n "checking for xft >= 0.13.0... " >&6; }
10164
10165 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10167$as_echo "yes" >&6; }
10168 succeeded=yes
10169
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10171$as_echo_n "checking XFT_CFLAGS... " >&6; }
10172 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10174$as_echo "$XFT_CFLAGS" >&6; }
10175
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10177$as_echo_n "checking XFT_LIBS... " >&6; }
10178 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
10180$as_echo "$XFT_LIBS" >&6; }
10181 else
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10183$as_echo "no" >&6; }
10184 XFT_CFLAGS=""
10185 XFT_LIBS=""
10186 ## If we have a custom action on failure, don't print errors, but
10187 ## do set a variable so people can do so.
10188 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
10189
10190 fi
10191
10192
10193
10194 else
10195 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10196 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10197 fi
10198 fi
10199
10200 if test $succeeded = yes; then
10201 :
10202 else
10203 HAVE_XFT=no
10204 fi
10205
10206 ## Because xftfont.c uses XRenderQueryExtension, we also
10207 ## need to link to -lXrender.
10208 HAVE_XRENDER=no
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
10210$as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
10211if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
10212 $as_echo_n "(cached) " >&6
10213else
10214 ac_check_lib_save_LIBS=$LIBS
10215LIBS="-lXrender $LIBS"
10216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217/* end confdefs.h. */
10218
10219/* Override any GCC internal prototype to avoid an error.
10220 Use char because int might match the return type of a GCC
10221 builtin and then its argument prototype would still apply. */
10222#ifdef __cplusplus
10223extern "C"
10224#endif
10225char XRenderQueryExtension ();
10226int
10227main ()
10228{
10229return XRenderQueryExtension ();
10230 ;
10231 return 0;
10232}
10233_ACEOF
10234if ac_fn_c_try_link "$LINENO"; then :
10235 ac_cv_lib_Xrender_XRenderQueryExtension=yes
10236else
10237 ac_cv_lib_Xrender_XRenderQueryExtension=no
10238fi
10239rm -f core conftest.err conftest.$ac_objext \
10240 conftest$ac_exeext conftest.$ac_ext
10241LIBS=$ac_check_lib_save_LIBS
10242fi
10243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
10244$as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
10245if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
10246 HAVE_XRENDER=yes
10247fi
10248
10249 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
10250 OLD_CPPFLAGS="$CPPFLAGS"
10251 OLD_CFLAGS="$CFLAGS"
10252 OLD_LIBS="$LIBS"
10253 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
10254 CFLAGS="$CFLAGS $XFT_CFLAGS"
10255 XFT_LIBS="-lXrender $XFT_LIBS"
10256 LIBS="$XFT_LIBS $LIBS"
10257 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
10258if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
10260$as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
10261if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
10262 $as_echo_n "(cached) " >&6
10263else
10264 ac_check_lib_save_LIBS=$LIBS
10265LIBS="-lXft $XFT_LIBS $LIBS"
10266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10267/* end confdefs.h. */
10268
10269/* Override any GCC internal prototype to avoid an error.
10270 Use char because int might match the return type of a GCC
10271 builtin and then its argument prototype would still apply. */
10272#ifdef __cplusplus
10273extern "C"
10274#endif
10275char XftFontOpen ();
10276int
10277main ()
10278{
10279return XftFontOpen ();
10280 ;
10281 return 0;
10282}
10283_ACEOF
10284if ac_fn_c_try_link "$LINENO"; then :
10285 ac_cv_lib_Xft_XftFontOpen=yes
10286else
10287 ac_cv_lib_Xft_XftFontOpen=no
10288fi
10289rm -f core conftest.err conftest.$ac_objext \
10290 conftest$ac_exeext conftest.$ac_ext
10291LIBS=$ac_check_lib_save_LIBS
10292fi
10293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
10294$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
10295if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
10296 HAVE_XFT=yes
10297fi
10298
10299fi
10300
10301
10302
10303 if test "${HAVE_XFT}" = "yes"; then
10304
10305$as_echo "#define HAVE_XFT 1" >>confdefs.h
10306
10307
10308 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
10309 else
10310 CPPFLAGS="$OLD_CPPFLAGS"
10311 CFLAGS="$OLD_CFLAGS"
10312 LIBS="$OLD_LIBS"
10313 fi # "${HAVE_XFT}" = "yes"
10314 fi # "$HAVE_XFT" != no
10315 fi # "x${with_xft}" != "xno"
10316
10317 if test "$HAVE_XFT" != "yes"; then
10318 HAVE_XFT=no
10319 fi
10320
10321
10322 HAVE_FREETYPE=no
10323 ## We used to allow building with FreeType and without Xft.
10324 ## However, the ftx font backend driver is not in good shape.
10325 if test "${HAVE_XFT}" = "yes"; then
10326 HAVE_FREETYPE=yes
10327 FONTCONFIG_CFLAGS=
10328 FONTCONFIG_LIBS=
10329 fi
10330
10331 HAVE_LIBOTF=no
10332 if test "${HAVE_FREETYPE}" = "yes"; then
10333
10334$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10335
10336 if test "${with_libotf}" != "no"; then
10337
10338 succeeded=no
10339
10340 # Extract the first word of "pkg-config", so it can be a program name with args.
10341set dummy pkg-config; ac_word=$2
10342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343$as_echo_n "checking for $ac_word... " >&6; }
10344if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10345 $as_echo_n "(cached) " >&6
10346else
10347 case $PKG_CONFIG in
10348 [\\/]* | ?:[\\/]*)
10349 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10350 ;;
10351 *)
10352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353for as_dir in $PATH
10354do
10355 IFS=$as_save_IFS
10356 test -z "$as_dir" && as_dir=.
10357 for ac_exec_ext in '' $ac_executable_extensions; do
10358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10359 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10361 break 2
10362 fi
10363done
10364 done
10365IFS=$as_save_IFS
10366
10367 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10368 ;;
10369esac
10370fi
10371PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10372if test -n "$PKG_CONFIG"; then
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10374$as_echo "$PKG_CONFIG" >&6; }
10375else
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10377$as_echo "no" >&6; }
10378fi
10379
10380
10381
10382 if test "$PKG_CONFIG" = "no" ; then
10383 HAVE_LIBOTF=no
10384 else
10385 PKG_CONFIG_MIN_VERSION=0.9.0
10386 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
10388$as_echo_n "checking for libotf... " >&6; }
10389
10390 if $PKG_CONFIG --exists "libotf" 2>&5; then
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10392$as_echo "yes" >&6; }
10393 succeeded=yes
10394
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
10396$as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
10397 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
10399$as_echo "$LIBOTF_CFLAGS" >&6; }
10400
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
10402$as_echo_n "checking LIBOTF_LIBS... " >&6; }
10403 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
10405$as_echo "$LIBOTF_LIBS" >&6; }
10406 else
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408$as_echo "no" >&6; }
10409 LIBOTF_CFLAGS=""
10410 LIBOTF_LIBS=""
10411 ## If we have a custom action on failure, don't print errors, but
10412 ## do set a variable so people can do so.
10413 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
10414
10415 fi
10416
10417
10418
10419 else
10420 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10421 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10422 fi
10423 fi
10424
10425 if test $succeeded = yes; then
10426 HAVE_LIBOTF=yes
10427 else
10428 HAVE_LIBOTF=no
10429 fi
10430
10431 if test "$HAVE_LIBOTF" = "yes"; then
10432
10433$as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
10434
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
10436$as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
10437if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
10438 $as_echo_n "(cached) " >&6
10439else
10440 ac_check_lib_save_LIBS=$LIBS
10441LIBS="-lotf $LIBS"
10442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443/* end confdefs.h. */
10444
10445/* Override any GCC internal prototype to avoid an error.
10446 Use char because int might match the return type of a GCC
10447 builtin and then its argument prototype would still apply. */
10448#ifdef __cplusplus
10449extern "C"
10450#endif
10451char OTF_get_variation_glyphs ();
10452int
10453main ()
10454{
10455return OTF_get_variation_glyphs ();
10456 ;
10457 return 0;
10458}
10459_ACEOF
10460if ac_fn_c_try_link "$LINENO"; then :
10461 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
10462else
10463 ac_cv_lib_otf_OTF_get_variation_glyphs=no
10464fi
10465rm -f core conftest.err conftest.$ac_objext \
10466 conftest$ac_exeext conftest.$ac_ext
10467LIBS=$ac_check_lib_save_LIBS
10468fi
10469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10470$as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10471if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
10472 HAVE_OTF_GET_VARIATION_GLYPHS=yes
10473else
10474 HAVE_OTF_GET_VARIATION_GLYPHS=no
10475fi
10476
10477 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10478
10479$as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10480
10481 fi
10482 fi
10483 fi
10484 fi
10485
10486 HAVE_M17N_FLT=no
10487 if test "${HAVE_LIBOTF}" = yes; then
10488 if test "${with_m17n_flt}" != "no"; then
10489
10490 succeeded=no
10491
10492 # Extract the first word of "pkg-config", so it can be a program name with args.
10493set dummy pkg-config; ac_word=$2
10494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10495$as_echo_n "checking for $ac_word... " >&6; }
10496if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10497 $as_echo_n "(cached) " >&6
10498else
10499 case $PKG_CONFIG in
10500 [\\/]* | ?:[\\/]*)
10501 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10502 ;;
10503 *)
10504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505for as_dir in $PATH
10506do
10507 IFS=$as_save_IFS
10508 test -z "$as_dir" && as_dir=.
10509 for ac_exec_ext in '' $ac_executable_extensions; do
10510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10511 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10513 break 2
10514 fi
10515done
10516 done
10517IFS=$as_save_IFS
10518
10519 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10520 ;;
10521esac
10522fi
10523PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10524if test -n "$PKG_CONFIG"; then
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10526$as_echo "$PKG_CONFIG" >&6; }
10527else
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10529$as_echo "no" >&6; }
10530fi
10531
10532
10533
10534 if test "$PKG_CONFIG" = "no" ; then
10535 HAVE_M17N_FLT=no
10536 else
10537 PKG_CONFIG_MIN_VERSION=0.9.0
10538 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10540$as_echo_n "checking for m17n-flt... " >&6; }
10541
10542 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10544$as_echo "yes" >&6; }
10545 succeeded=yes
10546
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10548$as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10549 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10551$as_echo "$M17N_FLT_CFLAGS" >&6; }
10552
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10554$as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10555 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10557$as_echo "$M17N_FLT_LIBS" >&6; }
10558 else
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10560$as_echo "no" >&6; }
10561 M17N_FLT_CFLAGS=""
10562 M17N_FLT_LIBS=""
10563 ## If we have a custom action on failure, don't print errors, but
10564 ## do set a variable so people can do so.
10565 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10566
10567 fi
10568
10569
10570
10571 else
10572 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10573 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10574 fi
10575 fi
10576
10577 if test $succeeded = yes; then
10578 HAVE_M17N_FLT=yes
10579 else
10580 HAVE_M17N_FLT=no
10581 fi
10582
10583 if test "$HAVE_M17N_FLT" = "yes"; then
10584
10585$as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10586
10587 fi
10588 fi
10589 fi
10590else
10591 HAVE_XFT=no
10592 HAVE_FREETYPE=no
10593 HAVE_LIBOTF=no
10594 HAVE_M17N_FLT=no
10595fi
10596
10597### End of font-backend (under X11) section.
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608### Use -lXpm if available, unless `--with-xpm=no'.
10609HAVE_XPM=no
10610LIBXPM=
10611if test "${HAVE_X11}" = "yes"; then
10612 if test "${with_xpm}" != "no"; then
10613 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10614if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10616$as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10617if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10618 $as_echo_n "(cached) " >&6
10619else
10620 ac_check_lib_save_LIBS=$LIBS
10621LIBS="-lXpm -lX11 $LIBS"
10622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623/* end confdefs.h. */
10624
10625/* Override any GCC internal prototype to avoid an error.
10626 Use char because int might match the return type of a GCC
10627 builtin and then its argument prototype would still apply. */
10628#ifdef __cplusplus
10629extern "C"
10630#endif
10631char XpmReadFileToPixmap ();
10632int
10633main ()
10634{
10635return XpmReadFileToPixmap ();
10636 ;
10637 return 0;
10638}
10639_ACEOF
10640if ac_fn_c_try_link "$LINENO"; then :
10641 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10642else
10643 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10644fi
10645rm -f core conftest.err conftest.$ac_objext \
10646 conftest$ac_exeext conftest.$ac_ext
10647LIBS=$ac_check_lib_save_LIBS
10648fi
10649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10650$as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10651if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
10652 HAVE_XPM=yes
10653fi
10654
10655fi
10656
10657
10658 if test "${HAVE_XPM}" = "yes"; then
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10660$as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662/* end confdefs.h. */
10663#include "X11/xpm.h"
10664#ifndef XpmReturnAllocPixels
10665no_return_alloc_pixels
10666#endif
10667
10668_ACEOF
10669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10670 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
10671 HAVE_XPM=no
10672else
10673 HAVE_XPM=yes
10674fi
10675rm -f conftest*
10676
10677
10678 if test "${HAVE_XPM}" = "yes"; then
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10680$as_echo "yes" >&6; }
10681 else
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10683$as_echo "no" >&6; }
10684 fi
10685 fi
10686 fi
10687
10688 if test "${HAVE_XPM}" = "yes"; then
10689
10690$as_echo "#define HAVE_XPM 1" >>confdefs.h
10691
10692 LIBXPM=-lXpm
10693 fi
10694fi
10695
10696
10697### Use -ljpeg if available, unless `--with-jpeg=no'.
10698HAVE_JPEG=no
10699LIBJPEG=
10700if test "${HAVE_X11}" = "yes"; then
10701 if test "${with_jpeg}" != "no"; then
10702 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10703if test "x$ac_cv_header_jerror_h" = x""yes; then :
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10705$as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10706if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10707 $as_echo_n "(cached) " >&6
10708else
10709 ac_check_lib_save_LIBS=$LIBS
10710LIBS="-ljpeg $LIBS"
10711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712/* end confdefs.h. */
10713
10714/* Override any GCC internal prototype to avoid an error.
10715 Use char because int might match the return type of a GCC
10716 builtin and then its argument prototype would still apply. */
10717#ifdef __cplusplus
10718extern "C"
10719#endif
10720char jpeg_destroy_compress ();
10721int
10722main ()
10723{
10724return jpeg_destroy_compress ();
10725 ;
10726 return 0;
10727}
10728_ACEOF
10729if ac_fn_c_try_link "$LINENO"; then :
10730 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10731else
10732 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10733fi
10734rm -f core conftest.err conftest.$ac_objext \
10735 conftest$ac_exeext conftest.$ac_ext
10736LIBS=$ac_check_lib_save_LIBS
10737fi
10738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10739$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10740if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
10741 HAVE_JPEG=yes
10742fi
10743
10744fi
10745
10746
10747 fi
10748
10749 if test "${HAVE_JPEG}" = "yes"; then
10750 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10751
10752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753/* end confdefs.h. */
10754#include <jpeglib.h>
10755 version=JPEG_LIB_VERSION
10756
10757_ACEOF
10758if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10759 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
10760 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10761
10762else
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10764$as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10765 HAVE_JPEG=no
10766fi
10767rm -f conftest*
10768
10769 fi
10770 if test "${HAVE_JPEG}" = "yes"; then
10771 LIBJPEG=-ljpeg
10772 fi
10773fi
10774
10775
10776### Use -lpng if available, unless `--with-png=no'.
10777HAVE_PNG=no
10778LIBPNG=
10779if test "${HAVE_X11}" = "yes"; then
10780 if test "${with_png}" != "no"; then
10781 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10782 # in /usr/include/libpng.
10783 for ac_header in png.h libpng/png.h
10784do :
10785 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10786ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10787eval as_val=\$$as_ac_Header
10788 if test "x$as_val" = x""yes; then :
10789 cat >>confdefs.h <<_ACEOF
10790#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10791_ACEOF
10792
10793fi
10794
10795done
10796
10797 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10799$as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10800if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10801 $as_echo_n "(cached) " >&6
10802else
10803 ac_check_lib_save_LIBS=$LIBS
10804LIBS="-lpng -lz -lm $LIBS"
10805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806/* end confdefs.h. */
10807
10808/* Override any GCC internal prototype to avoid an error.
10809 Use char because int might match the return type of a GCC
10810 builtin and then its argument prototype would still apply. */
10811#ifdef __cplusplus
10812extern "C"
10813#endif
10814char png_get_channels ();
10815int
10816main ()
10817{
10818return png_get_channels ();
10819 ;
10820 return 0;
10821}
10822_ACEOF
10823if ac_fn_c_try_link "$LINENO"; then :
10824 ac_cv_lib_png_png_get_channels=yes
10825else
10826 ac_cv_lib_png_png_get_channels=no
10827fi
10828rm -f core conftest.err conftest.$ac_objext \
10829 conftest$ac_exeext conftest.$ac_ext
10830LIBS=$ac_check_lib_save_LIBS
10831fi
10832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10833$as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10834if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
10835 HAVE_PNG=yes
10836fi
10837
10838 fi
10839 fi
10840
10841 if test "${HAVE_PNG}" = "yes"; then
10842
10843$as_echo "#define HAVE_PNG 1" >>confdefs.h
10844
10845 LIBPNG="-lpng -lz -lm"
10846 fi
10847fi
10848
10849
10850### Use -ltiff if available, unless `--with-tiff=no'.
10851HAVE_TIFF=no
10852LIBTIFF=
10853if test "${HAVE_X11}" = "yes"; then
10854 if test "${with_tiff}" != "no"; then
10855 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10856if test "x$ac_cv_header_tiffio_h" = x""yes; then :
10857 tifflibs="-lz -lm"
10858 # At least one tiff package requires the jpeg library.
10859 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10861$as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10862if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10863 $as_echo_n "(cached) " >&6
10864else
10865 ac_check_lib_save_LIBS=$LIBS
10866LIBS="-ltiff $tifflibs $LIBS"
10867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10868/* end confdefs.h. */
10869
10870/* Override any GCC internal prototype to avoid an error.
10871 Use char because int might match the return type of a GCC
10872 builtin and then its argument prototype would still apply. */
10873#ifdef __cplusplus
10874extern "C"
10875#endif
10876char TIFFGetVersion ();
10877int
10878main ()
10879{
10880return TIFFGetVersion ();
10881 ;
10882 return 0;
10883}
10884_ACEOF
10885if ac_fn_c_try_link "$LINENO"; then :
10886 ac_cv_lib_tiff_TIFFGetVersion=yes
10887else
10888 ac_cv_lib_tiff_TIFFGetVersion=no
10889fi
10890rm -f core conftest.err conftest.$ac_objext \
10891 conftest$ac_exeext conftest.$ac_ext
10892LIBS=$ac_check_lib_save_LIBS
10893fi
10894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10895$as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10896if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
10897 HAVE_TIFF=yes
10898fi
10899
10900fi
10901
10902
10903 fi
10904
10905 if test "${HAVE_TIFF}" = "yes"; then
10906
10907$as_echo "#define HAVE_TIFF 1" >>confdefs.h
10908
10909 LIBTIFF=-ltiff
10910 fi
10911fi
10912
10913
10914### Use -lgif or -lungif if available, unless `--with-gif=no'.
10915HAVE_GIF=no
10916LIBGIF=
10917if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10918 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10919if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
10920 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10921# Earlier versions can crash Emacs.
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10923$as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10924if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10925 $as_echo_n "(cached) " >&6
10926else
10927 ac_check_lib_save_LIBS=$LIBS
10928LIBS="-lgif $LIBS"
10929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10930/* end confdefs.h. */
10931
10932/* Override any GCC internal prototype to avoid an error.
10933 Use char because int might match the return type of a GCC
10934 builtin and then its argument prototype would still apply. */
10935#ifdef __cplusplus
10936extern "C"
10937#endif
10938char EGifPutExtensionLast ();
10939int
10940main ()
10941{
10942return EGifPutExtensionLast ();
10943 ;
10944 return 0;
10945}
10946_ACEOF
10947if ac_fn_c_try_link "$LINENO"; then :
10948 ac_cv_lib_gif_EGifPutExtensionLast=yes
10949else
10950 ac_cv_lib_gif_EGifPutExtensionLast=no
10951fi
10952rm -f core conftest.err conftest.$ac_objext \
10953 conftest$ac_exeext conftest.$ac_ext
10954LIBS=$ac_check_lib_save_LIBS
10955fi
10956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10957$as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10958if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
10959 HAVE_GIF=yes
10960else
10961 HAVE_GIF=maybe
10962fi
10963
10964fi
10965
10966
10967
10968 if test "$HAVE_GIF" = yes; then
10969 LIBGIF=-lgif
10970 elif test "$HAVE_GIF" = maybe; then
10971# If gif_lib.h but no libgif, try libungif.
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10973$as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10974if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10975 $as_echo_n "(cached) " >&6
10976else
10977 ac_check_lib_save_LIBS=$LIBS
10978LIBS="-lungif $LIBS"
10979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10980/* end confdefs.h. */
10981
10982/* Override any GCC internal prototype to avoid an error.
10983 Use char because int might match the return type of a GCC
10984 builtin and then its argument prototype would still apply. */
10985#ifdef __cplusplus
10986extern "C"
10987#endif
10988char EGifPutExtensionLast ();
10989int
10990main ()
10991{
10992return EGifPutExtensionLast ();
10993 ;
10994 return 0;
10995}
10996_ACEOF
10997if ac_fn_c_try_link "$LINENO"; then :
10998 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10999else
11000 ac_cv_lib_ungif_EGifPutExtensionLast=no
11001fi
11002rm -f core conftest.err conftest.$ac_objext \
11003 conftest$ac_exeext conftest.$ac_ext
11004LIBS=$ac_check_lib_save_LIBS
11005fi
11006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11007$as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
11008if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
11009 HAVE_GIF=yes
11010else
11011 HAVE_GIF=no
11012fi
11013
11014 test "$HAVE_GIF" = yes && LIBGIF=-lungif
11015 fi
11016
11017 if test "${HAVE_GIF}" = "yes"; then
11018
11019$as_echo "#define HAVE_GIF 1" >>confdefs.h
11020
11021 fi
11022fi
11023
11024
11025if test "${HAVE_X11}" = "yes"; then
11026 MISSING=""
11027 WITH_NO=""
11028 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
11029 MISSING="libXpm" && WITH_NO="--with-xpm=no"
11030 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
11031 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
11032 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
11033 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
11034 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
11035 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
11036 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
11037 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
11038
11039 if test "X${MISSING}" != X; then
11040 as_fn_error "The following required libraries were not found:
11041 $MISSING
11042Maybe some development libraries/packages are missing?
11043If you don't want to link with them give
11044 $WITH_NO
11045as options to configure" "$LINENO" 5
11046 fi
11047fi
11048
11049### Use -lgpm if available, unless `--with-gpm=no'.
11050HAVE_GPM=no
11051LIBGPM=
11052MOUSE_SUPPORT=
11053if test "${with_gpm}" != "no"; then
11054 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
11055if test "x$ac_cv_header_gpm_h" = x""yes; then :
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
11057$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
11058if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
11059 $as_echo_n "(cached) " >&6
11060else
11061 ac_check_lib_save_LIBS=$LIBS
11062LIBS="-lgpm $LIBS"
11063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11064/* end confdefs.h. */
11065
11066/* Override any GCC internal prototype to avoid an error.
11067 Use char because int might match the return type of a GCC
11068 builtin and then its argument prototype would still apply. */
11069#ifdef __cplusplus
11070extern "C"
11071#endif
11072char Gpm_Open ();
11073int
11074main ()
11075{
11076return Gpm_Open ();
11077 ;
11078 return 0;
11079}
11080_ACEOF
11081if ac_fn_c_try_link "$LINENO"; then :
11082 ac_cv_lib_gpm_Gpm_Open=yes
11083else
11084 ac_cv_lib_gpm_Gpm_Open=no
11085fi
11086rm -f core conftest.err conftest.$ac_objext \
11087 conftest$ac_exeext conftest.$ac_ext
11088LIBS=$ac_check_lib_save_LIBS
11089fi
11090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11091$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
11092if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
11093 HAVE_GPM=yes
11094fi
11095
11096fi
11097
11098
11099
11100 if test "${HAVE_GPM}" = "yes"; then
11101
11102$as_echo "#define HAVE_GPM 1" >>confdefs.h
11103
11104 LIBGPM=-lgpm
11105 ## May be reset below.
11106 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
11107 fi
11108fi
11109
11110
11111ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
11112if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
11113
11114$as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
11115
11116fi
11117
11118
11119
11120C_SWITCH_X_SYSTEM=
11121### Use NeXTstep API to implement GUI.
11122if test "${HAVE_NS}" = "yes"; then
11123
11124$as_echo "#define HAVE_NS 1" >>confdefs.h
11125
11126 if test "${NS_IMPL_COCOA}" = "yes"; then
11127
11128$as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
11129
11130 GNU_OBJC_CFLAGS=
11131 fi
11132 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11133
11134$as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11135
11136 # See also .m.o rule in Makefile.in */
11137 # FIXME: are all these flags really needed? Document here why. */
11138 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
11139 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11140 fi
11141 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11142
11143$as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11144
11145 fi
11146 # We also have mouse menus.
11147 HAVE_MENUS=yes
11148 OTHER_FILES=ns-app
11149fi
11150
11151
11152### Use session management (-lSM -lICE) if available
11153HAVE_X_SM=no
11154LIBXSM=
11155if test "${HAVE_X11}" = "yes"; then
11156 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11157if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11159$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11160if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
11161 $as_echo_n "(cached) " >&6
11162else
11163 ac_check_lib_save_LIBS=$LIBS
11164LIBS="-lSM -lICE $LIBS"
11165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11166/* end confdefs.h. */
11167
11168/* Override any GCC internal prototype to avoid an error.
11169 Use char because int might match the return type of a GCC
11170 builtin and then its argument prototype would still apply. */
11171#ifdef __cplusplus
11172extern "C"
11173#endif
11174char SmcOpenConnection ();
11175int
11176main ()
11177{
11178return SmcOpenConnection ();
11179 ;
11180 return 0;
11181}
11182_ACEOF
11183if ac_fn_c_try_link "$LINENO"; then :
11184 ac_cv_lib_SM_SmcOpenConnection=yes
11185else
11186 ac_cv_lib_SM_SmcOpenConnection=no
11187fi
11188rm -f core conftest.err conftest.$ac_objext \
11189 conftest$ac_exeext conftest.$ac_ext
11190LIBS=$ac_check_lib_save_LIBS
11191fi
11192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11193$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
11194if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
11195 HAVE_X_SM=yes
11196fi
11197
11198fi
11199
11200
11201
11202 if test "${HAVE_X_SM}" = "yes"; then
11203
11204$as_echo "#define HAVE_X_SM 1" >>confdefs.h
11205
11206 LIBXSM="-lSM -lICE"
11207 case "$LIBS" in
11208 *-lSM*) ;;
11209 *) LIBS="$LIBXSM $LIBS" ;;
11210 esac
11211 fi
11212fi
11213
11214
11215### Use libxml (-lxml2) if available
11216if test "${with_xml2}" != "no"; then
11217 ### I'm not sure what the version number should be, so I just guessed.
11218
11219 succeeded=no
11220
11221 # Extract the first word of "pkg-config", so it can be a program name with args.
11222set dummy pkg-config; ac_word=$2
11223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224$as_echo_n "checking for $ac_word... " >&6; }
11225if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
11227else
11228 case $PKG_CONFIG in
11229 [\\/]* | ?:[\\/]*)
11230 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11231 ;;
11232 *)
11233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234for as_dir in $PATH
11235do
11236 IFS=$as_save_IFS
11237 test -z "$as_dir" && as_dir=.
11238 for ac_exec_ext in '' $ac_executable_extensions; do
11239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11240 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11242 break 2
11243 fi
11244done
11245 done
11246IFS=$as_save_IFS
11247
11248 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11249 ;;
11250esac
11251fi
11252PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11253if test -n "$PKG_CONFIG"; then
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11255$as_echo "$PKG_CONFIG" >&6; }
11256else
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11258$as_echo "no" >&6; }
11259fi
11260
11261
11262
11263 if test "$PKG_CONFIG" = "no" ; then
11264 HAVE_LIBXML2=no
11265 else
11266 PKG_CONFIG_MIN_VERSION=0.9.0
11267 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
11269$as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
11270
11271 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11273$as_echo "yes" >&6; }
11274 succeeded=yes
11275
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
11277$as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
11278 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
11280$as_echo "$LIBXML2_CFLAGS" >&6; }
11281
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
11283$as_echo_n "checking LIBXML2_LIBS... " >&6; }
11284 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
11286$as_echo "$LIBXML2_LIBS" >&6; }
11287 else
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11289$as_echo "no" >&6; }
11290 LIBXML2_CFLAGS=""
11291 LIBXML2_LIBS=""
11292 ## If we have a custom action on failure, don't print errors, but
11293 ## do set a variable so people can do so.
11294 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
11295
11296 fi
11297
11298
11299
11300 else
11301 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11302 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11303 fi
11304 fi
11305
11306 if test $succeeded = yes; then
11307 HAVE_LIBXML2=yes
11308 else
11309 HAVE_LIBXML2=no
11310 fi
11311
11312 if test "${HAVE_LIBXML2}" = "yes"; then
11313 LIBS="$LIBXML2_LIBS $LIBS"
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
11315$as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
11316if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
11317 $as_echo_n "(cached) " >&6
11318else
11319 ac_check_lib_save_LIBS=$LIBS
11320LIBS="-lxml2 $LIBS"
11321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322/* end confdefs.h. */
11323
11324/* Override any GCC internal prototype to avoid an error.
11325 Use char because int might match the return type of a GCC
11326 builtin and then its argument prototype would still apply. */
11327#ifdef __cplusplus
11328extern "C"
11329#endif
11330char htmlReadMemory ();
11331int
11332main ()
11333{
11334return htmlReadMemory ();
11335 ;
11336 return 0;
11337}
11338_ACEOF
11339if ac_fn_c_try_link "$LINENO"; then :
11340 ac_cv_lib_xml2_htmlReadMemory=yes
11341else
11342 ac_cv_lib_xml2_htmlReadMemory=no
11343fi
11344rm -f core conftest.err conftest.$ac_objext \
11345 conftest$ac_exeext conftest.$ac_ext
11346LIBS=$ac_check_lib_save_LIBS
11347fi
11348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
11349$as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
11350if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
11351 HAVE_LIBXML2=yes
11352else
11353 HAVE_LIBXML2=no
11354fi
11355
11356 if test "${HAVE_LIBXML2}" = "yes"; then
11357
11358$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11359
11360 else
11361 LIBXML2_LIBS=""
11362 LIBXML2_CFLAGS=""
11363 fi
11364 fi
11365fi
11366
11367
11368
11369# If netdb.h doesn't declare h_errno, we must declare it by hand.
11370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
11371$as_echo_n "checking whether netdb declares h_errno... " >&6; }
11372if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
11373 $as_echo_n "(cached) " >&6
11374else
11375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376/* end confdefs.h. */
11377#include <netdb.h>
11378int
11379main ()
11380{
11381return h_errno;
11382 ;
11383 return 0;
11384}
11385_ACEOF
11386if ac_fn_c_try_link "$LINENO"; then :
11387 emacs_cv_netdb_declares_h_errno=yes
11388else
11389 emacs_cv_netdb_declares_h_errno=no
11390fi
11391rm -f core conftest.err conftest.$ac_objext \
11392 conftest$ac_exeext conftest.$ac_ext
11393fi
11394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
11395$as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
11396if test $emacs_cv_netdb_declares_h_errno = yes; then
11397
11398$as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
11399
11400fi
11401
11402# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11403# for constant arguments. Useless!
11404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11405$as_echo_n "checking for working alloca.h... " >&6; }
11406if test "${ac_cv_working_alloca_h+set}" = set; then :
11407 $as_echo_n "(cached) " >&6
11408else
11409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410/* end confdefs.h. */
11411#include <alloca.h>
11412int
11413main ()
11414{
11415char *p = (char *) alloca (2 * sizeof (int));
11416 if (p) return 0;
11417 ;
11418 return 0;
11419}
11420_ACEOF
11421if ac_fn_c_try_link "$LINENO"; then :
11422 ac_cv_working_alloca_h=yes
11423else
11424 ac_cv_working_alloca_h=no
11425fi
11426rm -f core conftest.err conftest.$ac_objext \
11427 conftest$ac_exeext conftest.$ac_ext
11428fi
11429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11430$as_echo "$ac_cv_working_alloca_h" >&6; }
11431if test $ac_cv_working_alloca_h = yes; then
11432
11433$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11434
11435fi
11436
11437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11438$as_echo_n "checking for alloca... " >&6; }
11439if test "${ac_cv_func_alloca_works+set}" = set; then :
11440 $as_echo_n "(cached) " >&6
11441else
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443/* end confdefs.h. */
11444#ifdef __GNUC__
11445# define alloca __builtin_alloca
11446#else
11447# ifdef _MSC_VER
11448# include <malloc.h>
11449# define alloca _alloca
11450# else
11451# ifdef HAVE_ALLOCA_H
11452# include <alloca.h>
11453# else
11454# ifdef _AIX
11455 #pragma alloca
11456# else
11457# ifndef alloca /* predefined by HP cc +Olibcalls */
11458char *alloca ();
11459# endif
11460# endif
11461# endif
11462# endif
11463#endif
11464
11465int
11466main ()
11467{
11468char *p = (char *) alloca (1);
11469 if (p) return 0;
11470 ;
11471 return 0;
11472}
11473_ACEOF
11474if ac_fn_c_try_link "$LINENO"; then :
11475 ac_cv_func_alloca_works=yes
11476else
11477 ac_cv_func_alloca_works=no
11478fi
11479rm -f core conftest.err conftest.$ac_objext \
11480 conftest$ac_exeext conftest.$ac_ext
11481fi
11482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11483$as_echo "$ac_cv_func_alloca_works" >&6; }
11484
11485if test $ac_cv_func_alloca_works = yes; then
11486
11487$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11488
11489else
11490 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11491# that cause trouble. Some versions do not even contain alloca or
11492# contain a buggy version. If you still want to use their alloca,
11493# use ar to extract alloca.o from them instead of compiling alloca.c.
11494
11495ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11496
11497$as_echo "#define C_ALLOCA 1" >>confdefs.h
11498
11499
11500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11501$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11502if test "${ac_cv_os_cray+set}" = set; then :
11503 $as_echo_n "(cached) " >&6
11504else
11505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11506/* end confdefs.h. */
11507#if defined CRAY && ! defined CRAY2
11508webecray
11509#else
11510wenotbecray
11511#endif
11512
11513_ACEOF
11514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11515 $EGREP "webecray" >/dev/null 2>&1; then :
11516 ac_cv_os_cray=yes
11517else
11518 ac_cv_os_cray=no
11519fi
11520rm -f conftest*
11521
11522fi
11523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11524$as_echo "$ac_cv_os_cray" >&6; }
11525if test $ac_cv_os_cray = yes; then
11526 for ac_func in _getb67 GETB67 getb67; do
11527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11528ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11529eval as_val=\$$as_ac_var
11530 if test "x$as_val" = x""yes; then :
11531
11532cat >>confdefs.h <<_ACEOF
11533#define CRAY_STACKSEG_END $ac_func
11534_ACEOF
11535
11536 break
11537fi
11538
11539 done
11540fi
11541
11542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11543$as_echo_n "checking stack direction for C alloca... " >&6; }
11544if test "${ac_cv_c_stack_direction+set}" = set; then :
11545 $as_echo_n "(cached) " >&6
11546else
11547 if test "$cross_compiling" = yes; then :
11548 ac_cv_c_stack_direction=0
11549else
11550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11551/* end confdefs.h. */
11552$ac_includes_default
11553int
11554find_stack_direction ()
11555{
11556 static char *addr = 0;
11557 auto char dummy;
11558 if (addr == 0)
11559 {
11560 addr = &dummy;
11561 return find_stack_direction ();
11562 }
11563 else
11564 return (&dummy > addr) ? 1 : -1;
11565}
11566
11567int
11568main ()
11569{
11570 return find_stack_direction () < 0;
11571}
11572_ACEOF
11573if ac_fn_c_try_run "$LINENO"; then :
11574 ac_cv_c_stack_direction=1
11575else
11576 ac_cv_c_stack_direction=-1
11577fi
11578rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11579 conftest.$ac_objext conftest.beam conftest.$ac_ext
11580fi
11581
11582fi
11583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11584$as_echo "$ac_cv_c_stack_direction" >&6; }
11585cat >>confdefs.h <<_ACEOF
11586#define STACK_DIRECTION $ac_cv_c_stack_direction
11587_ACEOF
11588
11589
11590fi
11591
11592
11593if test x"$ac_cv_func_alloca_works" != xyes; then
11594 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
11595fi
11596
11597# fmod, logb, and frexp are found in -lm on most systems.
11598# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
11600$as_echo_n "checking for sqrt in -lm... " >&6; }
11601if test "${ac_cv_lib_m_sqrt+set}" = set; then :
11602 $as_echo_n "(cached) " >&6
11603else
11604 ac_check_lib_save_LIBS=$LIBS
11605LIBS="-lm $LIBS"
11606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607/* end confdefs.h. */
11608
11609/* Override any GCC internal prototype to avoid an error.
11610 Use char because int might match the return type of a GCC
11611 builtin and then its argument prototype would still apply. */
11612#ifdef __cplusplus
11613extern "C"
11614#endif
11615char sqrt ();
11616int
11617main ()
11618{
11619return sqrt ();
11620 ;
11621 return 0;
11622}
11623_ACEOF
11624if ac_fn_c_try_link "$LINENO"; then :
11625 ac_cv_lib_m_sqrt=yes
11626else
11627 ac_cv_lib_m_sqrt=no
11628fi
11629rm -f core conftest.err conftest.$ac_objext \
11630 conftest$ac_exeext conftest.$ac_ext
11631LIBS=$ac_check_lib_save_LIBS
11632fi
11633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
11634$as_echo "$ac_cv_lib_m_sqrt" >&6; }
11635if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
11636 cat >>confdefs.h <<_ACEOF
11637#define HAVE_LIBM 1
11638_ACEOF
11639
11640 LIBS="-lm $LIBS"
11641
11642fi
11643
11644
11645# Check for mail-locking functions in a "mail" library. Probably this should
11646# have the same check as for liblockfile below.
11647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11648$as_echo_n "checking for maillock in -lmail... " >&6; }
11649if test "${ac_cv_lib_mail_maillock+set}" = set; then :
11650 $as_echo_n "(cached) " >&6
11651else
11652 ac_check_lib_save_LIBS=$LIBS
11653LIBS="-lmail $LIBS"
11654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655/* end confdefs.h. */
11656
11657/* Override any GCC internal prototype to avoid an error.
11658 Use char because int might match the return type of a GCC
11659 builtin and then its argument prototype would still apply. */
11660#ifdef __cplusplus
11661extern "C"
11662#endif
11663char maillock ();
11664int
11665main ()
11666{
11667return maillock ();
11668 ;
11669 return 0;
11670}
11671_ACEOF
11672if ac_fn_c_try_link "$LINENO"; then :
11673 ac_cv_lib_mail_maillock=yes
11674else
11675 ac_cv_lib_mail_maillock=no
11676fi
11677rm -f core conftest.err conftest.$ac_objext \
11678 conftest$ac_exeext conftest.$ac_ext
11679LIBS=$ac_check_lib_save_LIBS
11680fi
11681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11682$as_echo "$ac_cv_lib_mail_maillock" >&6; }
11683if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
11684 have_mail=yes
11685else
11686 have_mail=no
11687fi
11688
11689if test $have_mail = yes; then
11690 LIBS_MAIL=-lmail
11691 LIBS="$LIBS_MAIL $LIBS"
11692
11693$as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11694
11695else
11696 LIBS_MAIL=
11697fi
11698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11699$as_echo_n "checking for maillock in -llockfile... " >&6; }
11700if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
11701 $as_echo_n "(cached) " >&6
11702else
11703 ac_check_lib_save_LIBS=$LIBS
11704LIBS="-llockfile $LIBS"
11705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11706/* end confdefs.h. */
11707
11708/* Override any GCC internal prototype to avoid an error.
11709 Use char because int might match the return type of a GCC
11710 builtin and then its argument prototype would still apply. */
11711#ifdef __cplusplus
11712extern "C"
11713#endif
11714char maillock ();
11715int
11716main ()
11717{
11718return maillock ();
11719 ;
11720 return 0;
11721}
11722_ACEOF
11723if ac_fn_c_try_link "$LINENO"; then :
11724 ac_cv_lib_lockfile_maillock=yes
11725else
11726 ac_cv_lib_lockfile_maillock=no
11727fi
11728rm -f core conftest.err conftest.$ac_objext \
11729 conftest$ac_exeext conftest.$ac_ext
11730LIBS=$ac_check_lib_save_LIBS
11731fi
11732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11733$as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11734if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
11735 have_lockfile=yes
11736else
11737 have_lockfile=no
11738fi
11739
11740if test $have_lockfile = yes; then
11741 LIBS_MAIL=-llockfile
11742 LIBS="$LIBS_MAIL $LIBS"
11743
11744$as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11745
11746else
11747# If we have the shared liblockfile, assume we must use it for mail
11748# locking (e.g. Debian). If we couldn't link against liblockfile
11749# (no liblockfile.a installed), ensure that we don't need to.
11750 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11751set dummy liblockfile.so; ac_word=$2
11752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11753$as_echo_n "checking for $ac_word... " >&6; }
11754if test "${ac_cv_prog_liblockfile+set}" = set; then :
11755 $as_echo_n "(cached) " >&6
11756else
11757 if test -n "$liblockfile"; then
11758 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11759else
11760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11761as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11762for as_dir in $as_dummy
11763do
11764 IFS=$as_save_IFS
11765 test -z "$as_dir" && as_dir=.
11766 for ac_exec_ext in '' $ac_executable_extensions; do
11767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11768 ac_cv_prog_liblockfile="yes"
11769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11770 break 2
11771 fi
11772done
11773 done
11774IFS=$as_save_IFS
11775
11776 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11777fi
11778fi
11779liblockfile=$ac_cv_prog_liblockfile
11780if test -n "$liblockfile"; then
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11782$as_echo "$liblockfile" >&6; }
11783else
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11785$as_echo "no" >&6; }
11786fi
11787
11788
11789 if test $ac_cv_prog_liblockfile = yes; then
11790 as_fn_error "Shared liblockfile found but can't link against it.
11791This probably means that movemail could lose mail.
11792There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11793 fi
11794fi
11795for ac_func in touchlock
11796do :
11797 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
11798if test "x$ac_cv_func_touchlock" = x""yes; then :
11799 cat >>confdefs.h <<_ACEOF
11800#define HAVE_TOUCHLOCK 1
11801_ACEOF
11802
11803fi
11804done
11805
11806for ac_header in maillock.h
11807do :
11808 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11809if test "x$ac_cv_header_maillock_h" = x""yes; then :
11810 cat >>confdefs.h <<_ACEOF
11811#define HAVE_MAILLOCK_H 1
11812_ACEOF
11813
11814fi
11815
11816done
11817
11818
11819
11820## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11821## interlock access to the mail spool. The alternative is a lock file named
11822## /usr/spool/mail/$USER.lock.
11823mail_lock=no
11824case "$opsys" in
11825 aix4-2) mail_lock="lockf" ;;
11826
11827 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
11828
11829 ## On GNU/Linux systems, both methods are used by various mail programs.
11830 ## I assume most people are using newer mailers that have heard of flock.
11831 ## Change this if you need to.
11832 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11833 ## configure gets the right answers, and that means *NOT* using flock.
11834 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11835 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11836 ## Debian maintainer hasn't provided a clean fix for Emacs.
11837 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11838 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11839 ## correct logic. -- fx
11840 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11841 ## liblockfile is a Free Software replacement for libmail, used on
11842 ## Debian systems and elsewhere. -rfr.
11843 gnu-*)
11844 mail_lock="flock"
11845 if test $have_mail = yes || test $have_lockfile = yes; then
11846 test $ac_cv_header_maillock_h = yes && mail_lock=no
11847 fi
11848 ;;
11849esac
11850
11851BLESSMAIL_TARGET=
11852case "$mail_lock" in
11853 flock)
11854$as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11855 ;;
11856
11857 lockf)
11858$as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11859 ;;
11860
11861 *) BLESSMAIL_TARGET="need-blessmail" ;;
11862esac
11863
11864
11865
11866for ac_func in gethostname getdomainname dup2 \
11867rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11868random lrand48 logb frexp fmod rint cbrt ftime setsid \
11869strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11870utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11871__fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11872sendto recvfrom getsockopt setsockopt getsockname getpeername \
11873gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11874memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11875cfmakeraw cfsetspeed isnan copysign __executable_start
11876do :
11877 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11878ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11879eval as_val=\$$as_ac_var
11880 if test "x$as_val" = x""yes; then :
11881 cat >>confdefs.h <<_ACEOF
11882#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11883_ACEOF
11884
11885fi
11886done
11887
11888
11889for ac_header in sys/un.h
11890do :
11891 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11892if test "x$ac_cv_header_sys_un_h" = x""yes; then :
11893 cat >>confdefs.h <<_ACEOF
11894#define HAVE_SYS_UN_H 1
11895_ACEOF
11896
11897fi
11898
11899done
11900
11901
11902
11903
11904
11905
11906
11907 for ac_func in $ac_func_list
11908do :
11909 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11910ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11911eval as_val=\$$as_ac_var
11912 if test "x$as_val" = x""yes; then :
11913 cat >>confdefs.h <<_ACEOF
11914#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11915_ACEOF
11916
11917fi
11918done
11919
11920
11921
11922
11923
11924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11925$as_echo_n "checking for working mktime... " >&6; }
11926if test "${ac_cv_func_working_mktime+set}" = set; then :
11927 $as_echo_n "(cached) " >&6
11928else
11929 if test "$cross_compiling" = yes; then :
11930 ac_cv_func_working_mktime=no
11931else
11932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933/* end confdefs.h. */
11934/* Test program from Paul Eggert and Tony Leneis. */
11935#ifdef TIME_WITH_SYS_TIME
11936# include <sys/time.h>
11937# include <time.h>
11938#else
11939# ifdef HAVE_SYS_TIME_H
11940# include <sys/time.h>
11941# else
11942# include <time.h>
11943# endif
11944#endif
11945
11946#include <limits.h>
11947#include <stdlib.h>
11948
11949#ifdef HAVE_UNISTD_H
11950# include <unistd.h>
11951#endif
11952
11953#ifndef HAVE_ALARM
11954# define alarm(X) /* empty */
11955#endif
11956
11957/* Work around redefinition to rpl_putenv by other config tests. */
11958#undef putenv
11959
11960static time_t time_t_max;
11961static time_t time_t_min;
11962
11963/* Values we'll use to set the TZ environment variable. */
11964static char *tz_strings[] = {
11965 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11966 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11967};
11968#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11969
11970/* Return 0 if mktime fails to convert a date in the spring-forward gap.
11971 Based on a problem report from Andreas Jaeger. */
11972static int
11973spring_forward_gap ()
11974{
11975 /* glibc (up to about 1998-10-07) failed this test. */
11976 struct tm tm;
11977
11978 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11979 instead of "TZ=America/Vancouver" in order to detect the bug even
11980 on systems that don't support the Olson extension, or don't have the
11981 full zoneinfo tables installed. */
11982 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11983
11984 tm.tm_year = 98;
11985 tm.tm_mon = 3;
11986 tm.tm_mday = 5;
11987 tm.tm_hour = 2;
11988 tm.tm_min = 0;
11989 tm.tm_sec = 0;
11990 tm.tm_isdst = -1;
11991 return mktime (&tm) != (time_t) -1;
11992}
11993
11994static int
11995mktime_test1 (now)
11996 time_t now;
11997{
11998 struct tm *lt;
11999 return ! (lt = localtime (&now)) || mktime (lt) == now;
12000}
12001
12002static int
12003mktime_test (now)
12004 time_t now;
12005{
12006 return (mktime_test1 (now)
12007 && mktime_test1 ((time_t) (time_t_max - now))
12008 && mktime_test1 ((time_t) (time_t_min + now)));
12009}
12010
12011static int
12012irix_6_4_bug ()
12013{
12014 /* Based on code from Ariel Faigon. */
12015 struct tm tm;
12016 tm.tm_year = 96;
12017 tm.tm_mon = 3;
12018 tm.tm_mday = 0;
12019 tm.tm_hour = 0;
12020 tm.tm_min = 0;
12021 tm.tm_sec = 0;
12022 tm.tm_isdst = -1;
12023 mktime (&tm);
12024 return tm.tm_mon == 2 && tm.tm_mday == 31;
12025}
12026
12027static int
12028bigtime_test (j)
12029 int j;
12030{
12031 struct tm tm;
12032 time_t now;
12033 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12034 now = mktime (&tm);
12035 if (now != (time_t) -1)
12036 {
12037 struct tm *lt = localtime (&now);
12038 if (! (lt
12039 && lt->tm_year == tm.tm_year
12040 && lt->tm_mon == tm.tm_mon
12041 && lt->tm_mday == tm.tm_mday
12042 && lt->tm_hour == tm.tm_hour
12043 && lt->tm_min == tm.tm_min
12044 && lt->tm_sec == tm.tm_sec
12045 && lt->tm_yday == tm.tm_yday
12046 && lt->tm_wday == tm.tm_wday
12047 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12048 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12049 return 0;
12050 }
12051 return 1;
12052}
12053
12054static int
12055year_2050_test ()
12056{
12057 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12058 ignoring leap seconds. */
12059 unsigned long int answer = 2527315200UL;
12060
12061 struct tm tm;
12062 time_t t;
12063 tm.tm_year = 2050 - 1900;
12064 tm.tm_mon = 2 - 1;
12065 tm.tm_mday = 1;
12066 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12067 tm.tm_isdst = -1;
12068
12069 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12070 instead of "TZ=America/Vancouver" in order to detect the bug even
12071 on systems that don't support the Olson extension, or don't have the
12072 full zoneinfo tables installed. */
12073 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12074
12075 t = mktime (&tm);
12076
12077 /* Check that the result is either a failure, or close enough
12078 to the correct answer that we can assume the discrepancy is
12079 due to leap seconds. */
12080 return (t == (time_t) -1
12081 || (0 < t && answer - 120 <= t && t <= answer + 120));
12082}
12083
12084int
12085main ()
12086{
12087 time_t t, delta;
12088 int i, j;
12089
12090 /* This test makes some buggy mktime implementations loop.
12091 Give up after 60 seconds; a mktime slower than that
12092 isn't worth using anyway. */
12093 alarm (60);
12094
12095 for (;;)
12096 {
12097 t = (time_t_max << 1) + 1;
12098 if (t <= time_t_max)
12099 break;
12100 time_t_max = t;
12101 }
12102 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
12103
12104 delta = time_t_max / 997; /* a suitable prime number */
12105 for (i = 0; i < N_STRINGS; i++)
12106 {
12107 if (tz_strings[i])
12108 putenv (tz_strings[i]);
12109
12110 for (t = 0; t <= time_t_max - delta; t += delta)
12111 if (! mktime_test (t))
12112 return 1;
12113 if (! (mktime_test ((time_t) 1)
12114 && mktime_test ((time_t) (60 * 60))
12115 && mktime_test ((time_t) (60 * 60 * 24))))
12116 return 1;
12117
12118 for (j = 1; ; j <<= 1)
12119 if (! bigtime_test (j))
12120 return 1;
12121 else if (INT_MAX / 2 < j)
12122 break;
12123 if (! bigtime_test (INT_MAX))
12124 return 1;
12125 }
12126 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12127}
12128_ACEOF
12129if ac_fn_c_try_run "$LINENO"; then :
12130 ac_cv_func_working_mktime=yes
12131else
12132 ac_cv_func_working_mktime=no
12133fi
12134rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12135 conftest.$ac_objext conftest.beam conftest.$ac_ext
12136fi
12137
12138fi
12139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
12140$as_echo "$ac_cv_func_working_mktime" >&6; }
12141if test $ac_cv_func_working_mktime = no; then
12142 case " $LIBOBJS " in
12143 *" mktime.$ac_objext "* ) ;;
12144 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12145 ;;
12146esac
12147
12148fi
12149
12150if test "$ac_cv_func_working_mktime" = no; then
12151
12152$as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
12153
12154fi
12155
12156ac_have_func=no # yes means we've found a way to get the load average.
12157
12158# Make sure getloadavg.c is where it belongs, at configure-time.
12159test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12160 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12161
12162ac_save_LIBS=$LIBS
12163
12164# Check for getloadavg, but be sure not to touch the cache variable.
12165(ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12166if test "x$ac_cv_func_getloadavg" = x""yes; then :
12167 exit 0
12168else
12169 exit 1
12170fi
12171) && ac_have_func=yes
12172
12173# On HPUX9, an unprivileged user can get load averages through this function.
12174for ac_func in pstat_getdynamic
12175do :
12176 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12177if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
12178 cat >>confdefs.h <<_ACEOF
12179#define HAVE_PSTAT_GETDYNAMIC 1
12180_ACEOF
12181
12182fi
12183done
12184
12185
12186# Solaris has libkstat which does not require root.
12187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12188$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12189if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12190 $as_echo_n "(cached) " >&6
12191else
12192 ac_check_lib_save_LIBS=$LIBS
12193LIBS="-lkstat $LIBS"
12194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12195/* end confdefs.h. */
12196
12197/* Override any GCC internal prototype to avoid an error.
12198 Use char because int might match the return type of a GCC
12199 builtin and then its argument prototype would still apply. */
12200#ifdef __cplusplus
12201extern "C"
12202#endif
12203char kstat_open ();
12204int
12205main ()
12206{
12207return kstat_open ();
12208 ;
12209 return 0;
12210}
12211_ACEOF
12212if ac_fn_c_try_link "$LINENO"; then :
12213 ac_cv_lib_kstat_kstat_open=yes
12214else
12215 ac_cv_lib_kstat_kstat_open=no
12216fi
12217rm -f core conftest.err conftest.$ac_objext \
12218 conftest$ac_exeext conftest.$ac_ext
12219LIBS=$ac_check_lib_save_LIBS
12220fi
12221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12222$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12223if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
12224 cat >>confdefs.h <<_ACEOF
12225#define HAVE_LIBKSTAT 1
12226_ACEOF
12227
12228 LIBS="-lkstat $LIBS"
12229
12230fi
12231
12232test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12233
12234# Some systems with -lutil have (and need) -lkvm as well, some do not.
12235# On Solaris, -lkvm requires nlist from -lelf, so check that first
12236# to get the right answer into the cache.
12237# For kstat on solaris, we need libelf to force the definition of SVR4 below.
12238if test $ac_have_func = no; then
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12240$as_echo_n "checking for elf_begin in -lelf... " >&6; }
12241if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12242 $as_echo_n "(cached) " >&6
12243else
12244 ac_check_lib_save_LIBS=$LIBS
12245LIBS="-lelf $LIBS"
12246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247/* end confdefs.h. */
12248
12249/* Override any GCC internal prototype to avoid an error.
12250 Use char because int might match the return type of a GCC
12251 builtin and then its argument prototype would still apply. */
12252#ifdef __cplusplus
12253extern "C"
12254#endif
12255char elf_begin ();
12256int
12257main ()
12258{
12259return elf_begin ();
12260 ;
12261 return 0;
12262}
12263_ACEOF
12264if ac_fn_c_try_link "$LINENO"; then :
12265 ac_cv_lib_elf_elf_begin=yes
12266else
12267 ac_cv_lib_elf_elf_begin=no
12268fi
12269rm -f core conftest.err conftest.$ac_objext \
12270 conftest$ac_exeext conftest.$ac_ext
12271LIBS=$ac_check_lib_save_LIBS
12272fi
12273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12274$as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12275if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
12276 LIBS="-lelf $LIBS"
12277fi
12278
12279fi
12280if test $ac_have_func = no; then
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12282$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12283if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12284 $as_echo_n "(cached) " >&6
12285else
12286 ac_check_lib_save_LIBS=$LIBS
12287LIBS="-lkvm $LIBS"
12288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12289/* end confdefs.h. */
12290
12291/* Override any GCC internal prototype to avoid an error.
12292 Use char because int might match the return type of a GCC
12293 builtin and then its argument prototype would still apply. */
12294#ifdef __cplusplus
12295extern "C"
12296#endif
12297char kvm_open ();
12298int
12299main ()
12300{
12301return kvm_open ();
12302 ;
12303 return 0;
12304}
12305_ACEOF
12306if ac_fn_c_try_link "$LINENO"; then :
12307 ac_cv_lib_kvm_kvm_open=yes
12308else
12309 ac_cv_lib_kvm_kvm_open=no
12310fi
12311rm -f core conftest.err conftest.$ac_objext \
12312 conftest$ac_exeext conftest.$ac_ext
12313LIBS=$ac_check_lib_save_LIBS
12314fi
12315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12316$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12317if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
12318 LIBS="-lkvm $LIBS"
12319fi
12320
12321 # Check for the 4.4BSD definition of getloadavg.
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12323$as_echo_n "checking for getloadavg in -lutil... " >&6; }
12324if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12325 $as_echo_n "(cached) " >&6
12326else
12327 ac_check_lib_save_LIBS=$LIBS
12328LIBS="-lutil $LIBS"
12329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12330/* end confdefs.h. */
12331
12332/* Override any GCC internal prototype to avoid an error.
12333 Use char because int might match the return type of a GCC
12334 builtin and then its argument prototype would still apply. */
12335#ifdef __cplusplus
12336extern "C"
12337#endif
12338char getloadavg ();
12339int
12340main ()
12341{
12342return getloadavg ();
12343 ;
12344 return 0;
12345}
12346_ACEOF
12347if ac_fn_c_try_link "$LINENO"; then :
12348 ac_cv_lib_util_getloadavg=yes
12349else
12350 ac_cv_lib_util_getloadavg=no
12351fi
12352rm -f core conftest.err conftest.$ac_objext \
12353 conftest$ac_exeext conftest.$ac_ext
12354LIBS=$ac_check_lib_save_LIBS
12355fi
12356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12357$as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12358if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
12359 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12360fi
12361
12362fi
12363
12364if test $ac_have_func = no; then
12365 # There is a commonly available library for RS/6000 AIX.
12366 # Since it is not a standard part of AIX, it might be installed locally.
12367 ac_getloadavg_LIBS=$LIBS
12368 LIBS="-L/usr/local/lib $LIBS"
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12370$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12371if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12372 $as_echo_n "(cached) " >&6
12373else
12374 ac_check_lib_save_LIBS=$LIBS
12375LIBS="-lgetloadavg $LIBS"
12376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377/* end confdefs.h. */
12378
12379/* Override any GCC internal prototype to avoid an error.
12380 Use char because int might match the return type of a GCC
12381 builtin and then its argument prototype would still apply. */
12382#ifdef __cplusplus
12383extern "C"
12384#endif
12385char getloadavg ();
12386int
12387main ()
12388{
12389return getloadavg ();
12390 ;
12391 return 0;
12392}
12393_ACEOF
12394if ac_fn_c_try_link "$LINENO"; then :
12395 ac_cv_lib_getloadavg_getloadavg=yes
12396else
12397 ac_cv_lib_getloadavg_getloadavg=no
12398fi
12399rm -f core conftest.err conftest.$ac_objext \
12400 conftest$ac_exeext conftest.$ac_ext
12401LIBS=$ac_check_lib_save_LIBS
12402fi
12403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12404$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12405if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
12406 LIBS="-lgetloadavg $LIBS"
12407else
12408 LIBS=$ac_getloadavg_LIBS
12409fi
12410
12411fi
12412
12413# Make sure it is really in the library, if we think we found it,
12414# otherwise set up the replacement function.
12415for ac_func in getloadavg
12416do :
12417 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12418if test "x$ac_cv_func_getloadavg" = x""yes; then :
12419 cat >>confdefs.h <<_ACEOF
12420#define HAVE_GETLOADAVG 1
12421_ACEOF
12422
12423else
12424 case " $LIBOBJS " in
12425 *" getloadavg.$ac_objext "* ) ;;
12426 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12427 ;;
12428esac
12429
12430
12431$as_echo "#define C_GETLOADAVG 1" >>confdefs.h
12432
12433# Figure out what our getloadavg.c needs.
12434ac_have_func=no
12435ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12436if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
12437 ac_have_func=yes
12438
12439$as_echo "#define DGUX 1" >>confdefs.h
12440
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12442$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12443if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12444 $as_echo_n "(cached) " >&6
12445else
12446 ac_check_lib_save_LIBS=$LIBS
12447LIBS="-ldgc $LIBS"
12448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449/* end confdefs.h. */
12450
12451/* Override any GCC internal prototype to avoid an error.
12452 Use char because int might match the return type of a GCC
12453 builtin and then its argument prototype would still apply. */
12454#ifdef __cplusplus
12455extern "C"
12456#endif
12457char dg_sys_info ();
12458int
12459main ()
12460{
12461return dg_sys_info ();
12462 ;
12463 return 0;
12464}
12465_ACEOF
12466if ac_fn_c_try_link "$LINENO"; then :
12467 ac_cv_lib_dgc_dg_sys_info=yes
12468else
12469 ac_cv_lib_dgc_dg_sys_info=no
12470fi
12471rm -f core conftest.err conftest.$ac_objext \
12472 conftest$ac_exeext conftest.$ac_ext
12473LIBS=$ac_check_lib_save_LIBS
12474fi
12475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12476$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12477if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
12478 cat >>confdefs.h <<_ACEOF
12479#define HAVE_LIBDGC 1
12480_ACEOF
12481
12482 LIBS="-ldgc $LIBS"
12483
12484fi
12485
12486fi
12487
12488
12489
12490ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12491if test "x$ac_cv_header_locale_h" = x""yes; then :
12492
12493fi
12494
12495
12496for ac_func in setlocale
12497do :
12498 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
12499if test "x$ac_cv_func_setlocale" = x""yes; then :
12500 cat >>confdefs.h <<_ACEOF
12501#define HAVE_SETLOCALE 1
12502_ACEOF
12503
12504fi
12505done
12506
12507
12508# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12509# uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12510# Irix 4.0.5F has the header but not the library.
12511if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
12512 ac_have_func=yes
12513
12514$as_echo "#define SVR4 1" >>confdefs.h
12515
12516fi
12517
12518if test $ac_have_func = no; then
12519 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
12520if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
12521 ac_have_func=yes
12522
12523$as_echo "#define UMAX 1" >>confdefs.h
12524
12525
12526$as_echo "#define UMAX4_3 1" >>confdefs.h
12527
12528fi
12529
12530
12531fi
12532
12533if test $ac_have_func = no; then
12534 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
12535if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
12536 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
12537
12538fi
12539
12540
12541fi
12542
12543if test $ac_have_func = no; then
12544 for ac_header in mach/mach.h
12545do :
12546 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
12547if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
12548 cat >>confdefs.h <<_ACEOF
12549#define HAVE_MACH_MACH_H 1
12550_ACEOF
12551
12552fi
12553
12554done
12555
12556fi
12557
12558for ac_header in nlist.h
12559do :
12560 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
12561if test "x$ac_cv_header_nlist_h" = x""yes; then :
12562 cat >>confdefs.h <<_ACEOF
12563#define HAVE_NLIST_H 1
12564_ACEOF
12565 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
12566"
12567if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
12568
12569cat >>confdefs.h <<_ACEOF
12570#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12571_ACEOF
12572
12573
12574$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
12575
12576fi
12577
12578
12579fi
12580
12581done
12582
12583fi
12584done
12585
12586
12587# Some definitions of getloadavg require that the program be installed setgid.
12588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
12589$as_echo_n "checking whether getloadavg requires setgid... " >&6; }
12590if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
12591 $as_echo_n "(cached) " >&6
12592else
12593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594/* end confdefs.h. */
12595#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12596#ifdef LDAV_PRIVILEGED
12597Yowza Am I SETGID yet
12598#endif
12599_ACEOF
12600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12601 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
12602 ac_cv_func_getloadavg_setgid=yes
12603else
12604 ac_cv_func_getloadavg_setgid=no
12605fi
12606rm -f conftest*
12607
12608fi
12609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
12610$as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
12611if test $ac_cv_func_getloadavg_setgid = yes; then
12612 NEED_SETGID=true
12613
12614$as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
12615
12616else
12617 NEED_SETGID=false
12618fi
12619
12620if test $ac_cv_func_getloadavg_setgid = yes; then
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
12622$as_echo_n "checking group of /dev/kmem... " >&6; }
12623if test "${ac_cv_group_kmem+set}" = set; then :
12624 $as_echo_n "(cached) " >&6
12625else
12626 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12627 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
12628 # If we got an error (system does not support symlinks), try without -L.
12629 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
12630 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
12631 | sed -ne 's/[ ][ ]*/ /g;
12632 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12633 / /s/.* //;p;'`
12634
12635fi
12636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12637$as_echo "$ac_cv_group_kmem" >&6; }
12638 KMEM_GROUP=$ac_cv_group_kmem
12639fi
12640if test "x$ac_save_LIBS" = x; then
12641 GETLOADAVG_LIBS=$LIBS
12642else
12643 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12644fi
12645LIBS=$ac_save_LIBS
12646
12647
12648
12649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12650$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12651if test "${ac_cv_sys_largefile_source+set}" = set; then :
12652 $as_echo_n "(cached) " >&6
12653else
12654 while :; do
12655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656/* end confdefs.h. */
12657#include <sys/types.h> /* for off_t */
12658 #include <stdio.h>
12659int
12660main ()
12661{
12662int (*fp) (FILE *, off_t, int) = fseeko;
12663 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12664 ;
12665 return 0;
12666}
12667_ACEOF
12668if ac_fn_c_try_link "$LINENO"; then :
12669 ac_cv_sys_largefile_source=no; break
12670fi
12671rm -f core conftest.err conftest.$ac_objext \
12672 conftest$ac_exeext conftest.$ac_ext
12673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674/* end confdefs.h. */
12675#define _LARGEFILE_SOURCE 1
12676#include <sys/types.h> /* for off_t */
12677 #include <stdio.h>
12678int
12679main ()
12680{
12681int (*fp) (FILE *, off_t, int) = fseeko;
12682 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12683 ;
12684 return 0;
12685}
12686_ACEOF
12687if ac_fn_c_try_link "$LINENO"; then :
12688 ac_cv_sys_largefile_source=1; break
12689fi
12690rm -f core conftest.err conftest.$ac_objext \
12691 conftest$ac_exeext conftest.$ac_ext
12692 ac_cv_sys_largefile_source=unknown
12693 break
12694done
12695fi
12696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12697$as_echo "$ac_cv_sys_largefile_source" >&6; }
12698case $ac_cv_sys_largefile_source in #(
12699 no | unknown) ;;
12700 *)
12701cat >>confdefs.h <<_ACEOF
12702#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12703_ACEOF
12704;;
12705esac
12706rm -rf conftest*
12707
12708# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12709# in glibc 2.1.3, but that breaks too many other things.
12710# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12711if test $ac_cv_sys_largefile_source != unknown; then
12712
12713$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12714
12715fi
12716
12717
12718# Configure getopt.
12719# getopt.m4 serial 10
12720
12721# The getopt module assume you want GNU getopt, with getopt_long etc,
12722# rather than vanilla POSIX getopt. This means your your code should
12723# always include <getopt.h> for the getopt prototypes.
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735# Prerequisites of lib/getopt*.
12736
12737
12738
12739
12740 GETOPT_H=
12741 for ac_header in getopt.h
12742do :
12743 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12744if test "x$ac_cv_header_getopt_h" = x""yes; then :
12745 cat >>confdefs.h <<_ACEOF
12746#define HAVE_GETOPT_H 1
12747_ACEOF
12748
12749else
12750 GETOPT_H=getopt.h
12751fi
12752
12753done
12754
12755 if test -z "$GETOPT_H"; then
12756 for ac_func in getopt_long_only
12757do :
12758 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12759if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
12760 cat >>confdefs.h <<_ACEOF
12761#define HAVE_GETOPT_LONG_ONLY 1
12762_ACEOF
12763
12764else
12765 GETOPT_H=getopt.h
12766fi
12767done
12768
12769 fi
12770
12771 if test -z "$GETOPT_H"; then
12772 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12773"
12774if test "x$ac_cv_have_decl_optreset" = x""yes; then :
12775 GETOPT_H=getopt.h
12776fi
12777
12778 fi
12779
12780 if test -z "$GETOPT_H"; then
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12782$as_echo_n "checking for working GNU getopt function... " >&6; }
12783if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12784 $as_echo_n "(cached) " >&6
12785else
12786 if test "$cross_compiling" = yes; then :
12787 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12788"
12789if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
12790 gl_cv_func_gnu_getopt=no
12791else
12792 gl_cv_func_gnu_getopt=yes
12793fi
12794
12795else
12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797/* end confdefs.h. */
12798#include <getopt.h>
12799int
12800main ()
12801{
12802
12803 char *myargv[3];
12804 myargv[0] = "conftest";
12805 myargv[1] = "-+";
12806 myargv[2] = 0;
12807 return getopt (2, myargv, "+a") != '?';
12808
12809 ;
12810 return 0;
12811}
12812_ACEOF
12813if ac_fn_c_try_run "$LINENO"; then :
12814 gl_cv_func_gnu_getopt=yes
12815else
12816 gl_cv_func_gnu_getopt=no
12817fi
12818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12819 conftest.$ac_objext conftest.beam conftest.$ac_ext
12820fi
12821
12822fi
12823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12824$as_echo "$gl_cv_func_gnu_getopt" >&6; }
12825 if test "$gl_cv_func_gnu_getopt" = "no"; then
12826 GETOPT_H=getopt.h
12827 fi
12828 fi
12829
12830
12831
12832 if test -n "$GETOPT_H"; then :
12833
12834
12835 GETOPT_H=getopt.h
12836
12837$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12838
12839
12840
12841 :
12842 GETOPTOBJS='getopt.o getopt1.o'
12843
12844fi
12845
12846
12847
12848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12849$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12850if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12851 $as_echo_n "(cached) " >&6
12852else
12853 # Use it with a single arg.
12854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855/* end confdefs.h. */
12856$ac_includes_default
12857int
12858main ()
12859{
12860getpgrp (0);
12861 ;
12862 return 0;
12863}
12864_ACEOF
12865if ac_fn_c_try_compile "$LINENO"; then :
12866 ac_cv_func_getpgrp_void=no
12867else
12868 ac_cv_func_getpgrp_void=yes
12869fi
12870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871
12872fi
12873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12874$as_echo "$ac_cv_func_getpgrp_void" >&6; }
12875if test $ac_cv_func_getpgrp_void = yes; then
12876
12877$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12878
12879fi
12880
12881
12882for ac_func in strftime
12883do :
12884 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12885if test "x$ac_cv_func_strftime" = x""yes; then :
12886 cat >>confdefs.h <<_ACEOF
12887#define HAVE_STRFTIME 1
12888_ACEOF
12889
12890else
12891 # strftime is in -lintl on SCO UNIX.
12892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12893$as_echo_n "checking for strftime in -lintl... " >&6; }
12894if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12895 $as_echo_n "(cached) " >&6
12896else
12897 ac_check_lib_save_LIBS=$LIBS
12898LIBS="-lintl $LIBS"
12899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900/* end confdefs.h. */
12901
12902/* Override any GCC internal prototype to avoid an error.
12903 Use char because int might match the return type of a GCC
12904 builtin and then its argument prototype would still apply. */
12905#ifdef __cplusplus
12906extern "C"
12907#endif
12908char strftime ();
12909int
12910main ()
12911{
12912return strftime ();
12913 ;
12914 return 0;
12915}
12916_ACEOF
12917if ac_fn_c_try_link "$LINENO"; then :
12918 ac_cv_lib_intl_strftime=yes
12919else
12920 ac_cv_lib_intl_strftime=no
12921fi
12922rm -f core conftest.err conftest.$ac_objext \
12923 conftest$ac_exeext conftest.$ac_ext
12924LIBS=$ac_check_lib_save_LIBS
12925fi
12926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12927$as_echo "$ac_cv_lib_intl_strftime" >&6; }
12928if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12929 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12930
12931LIBS="-lintl $LIBS"
12932fi
12933
12934fi
12935done
12936
12937
12938# UNIX98 PTYs.
12939for ac_func in grantpt
12940do :
12941 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
12942if test "x$ac_cv_func_grantpt" = x""yes; then :
12943 cat >>confdefs.h <<_ACEOF
12944#define HAVE_GRANTPT 1
12945_ACEOF
12946
12947fi
12948done
12949
12950
12951# PTY-related GNU extensions.
12952for ac_func in getpt
12953do :
12954 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
12955if test "x$ac_cv_func_getpt" = x""yes; then :
12956 cat >>confdefs.h <<_ACEOF
12957#define HAVE_GETPT 1
12958_ACEOF
12959
12960fi
12961done
12962
12963
12964# Check this now, so that we will NOT find the above functions in ncurses.
12965# That is because we have not set up to link ncurses in lib-src.
12966# It's better to believe a function is not available
12967# than to expect to find it in ncurses.
12968# Also we need tputs and friends to be able to build at all.
12969have_tputs_et_al=true
12970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12971$as_echo_n "checking for library containing tputs... " >&6; }
12972if test "${ac_cv_search_tputs+set}" = set; then :
12973 $as_echo_n "(cached) " >&6
12974else
12975 ac_func_search_save_LIBS=$LIBS
12976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977/* end confdefs.h. */
12978
12979/* Override any GCC internal prototype to avoid an error.
12980 Use char because int might match the return type of a GCC
12981 builtin and then its argument prototype would still apply. */
12982#ifdef __cplusplus
12983extern "C"
12984#endif
12985char tputs ();
12986int
12987main ()
12988{
12989return tputs ();
12990 ;
12991 return 0;
12992}
12993_ACEOF
12994for ac_lib in '' ncurses terminfo termcap; do
12995 if test -z "$ac_lib"; then
12996 ac_res="none required"
12997 else
12998 ac_res=-l$ac_lib
12999 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13000 fi
13001 if ac_fn_c_try_link "$LINENO"; then :
13002 ac_cv_search_tputs=$ac_res
13003fi
13004rm -f core conftest.err conftest.$ac_objext \
13005 conftest$ac_exeext
13006 if test "${ac_cv_search_tputs+set}" = set; then :
13007 break
13008fi
13009done
13010if test "${ac_cv_search_tputs+set}" = set; then :
13011
13012else
13013 ac_cv_search_tputs=no
13014fi
13015rm conftest.$ac_ext
13016LIBS=$ac_func_search_save_LIBS
13017fi
13018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
13019$as_echo "$ac_cv_search_tputs" >&6; }
13020ac_res=$ac_cv_search_tputs
13021if test "$ac_res" != no; then :
13022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13023
13024else
13025 have_tputs_et_al=false
13026fi
13027
13028if test "$have_tputs_et_al" != true; then
13029 as_fn_error "I couldn't find termcap functions (tputs and friends).
13030Maybe some development libraries/packages are missing? Try installing
13031libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
13032fi
13033# Must define this when any termcap library is found.
13034
13035$as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
13036
13037## FIXME This was the cpp logic, but I am not sure it is right.
13038## The above test has not necessarily found libncurses.
13039HAVE_LIBNCURSES=yes
13040
13041## Use terminfo instead of termcap?
13042## Note only system files NOT using terminfo are:
13043## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
13044## darwin|gnu without ncurses.
13045TERMINFO=no
13046LIBS_TERMCAP=
13047case "$opsys" in
13048 ## cygwin: Fewer environment variables to go wrong, more terminal types.
13049 ## hpux10-20: Use the system provided termcap(3) library.
13050 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
13051 ## is necessary. Otherwise Emacs dumps core when run -nw.
13052 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
13053
13054 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13055 ## The ncurses library has been moved out of the System framework in
13056 ## Mac OS X 10.2. So if configure detects it, set the command-line
13057 ## option to use it.
13058 darwin|gnu*)
13059 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
13060 if test "x$HAVE_LIBNCURSES" = "xyes"; then
13061 TERMINFO=yes
13062 LIBS_TERMCAP="-lncurses"
13063 fi
13064 ;;
13065
13066 freebsd)
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13068$as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13069 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13070 $as_echo_n "(cached) " >&6
13071else
13072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13073/* end confdefs.h. */
13074#include <osreldate.h>
13075int
13076main ()
13077{
13078#if __FreeBSD_version < 400000
13079fail;
13080#endif
13081
13082 ;
13083 return 0;
13084}
13085_ACEOF
13086if ac_fn_c_try_link "$LINENO"; then :
13087 emacs_cv_freebsd_terminfo=yes
13088else
13089 emacs_cv_freebsd_terminfo=no
13090fi
13091rm -f core conftest.err conftest.$ac_objext \
13092 conftest$ac_exeext conftest.$ac_ext
13093fi
13094
13095
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13097$as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13098
13099 if test $emacs_cv_freebsd_terminfo = yes; then
13100 TERMINFO=yes
13101 LIBS_TERMCAP="-lncurses"
13102 else
13103 LIBS_TERMCAP="-ltermcap"
13104 fi
13105 ;;
13106
13107 netbsd)
13108 if test $ac_cv_search_tputs = -lterminfo; then
13109 TERMINFO=yes
13110 LIBS_TERMCAP="-lterminfo"
13111 else
13112 LIBS_TERMCAP="-ltermcap"
13113 fi
13114 ;;
13115
13116esac
13117
13118case "$opsys" in
13119 ## hpux: Make sure we get select from libc rather than from libcurses
13120 ## because libcurses on HPUX 10.10 has a broken version of select.
13121 ## We used to use -lc -lcurses, but this may be cleaner.
13122 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13123
13124 openbsd) LIBS_TERMCAP="-lncurses" ;;
13125
13126 ## Must use system termcap, if we use any termcap. It does special things.
13127 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
13128esac
13129
13130TERMCAP_OBJ=tparam.o
13131if test $TERMINFO = yes; then
13132
13133$as_echo "#define TERMINFO 1" >>confdefs.h
13134
13135
13136 ## Default used to be -ltermcap. Add a case above if need something else.
13137 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
13138
13139 TERMCAP_OBJ=terminfo.o
13140fi
13141
13142
13143
13144
13145# Do we have res_init, for detecting changes in /etc/resolv.conf?
13146resolv=no
13147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148/* end confdefs.h. */
13149#include <netinet/in.h>
13150#include <arpa/nameser.h>
13151#include <resolv.h>
13152int
13153main ()
13154{
13155return res_init();
13156 ;
13157 return 0;
13158}
13159_ACEOF
13160if ac_fn_c_try_link "$LINENO"; then :
13161 have_res_init=yes
13162else
13163 have_res_init=no
13164fi
13165rm -f core conftest.err conftest.$ac_objext \
13166 conftest$ac_exeext conftest.$ac_ext
13167if test "$have_res_init" = no; then
13168 OLIBS="$LIBS"
13169 LIBS="$LIBS -lresolv"
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13171$as_echo_n "checking for res_init with -lresolv... " >&6; }
13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173/* end confdefs.h. */
13174#include <netinet/in.h>
13175#include <arpa/nameser.h>
13176#include <resolv.h>
13177int
13178main ()
13179{
13180return res_init();
13181 ;
13182 return 0;
13183}
13184_ACEOF
13185if ac_fn_c_try_link "$LINENO"; then :
13186 have_res_init=yes
13187else
13188 have_res_init=no
13189fi
13190rm -f core conftest.err conftest.$ac_objext \
13191 conftest$ac_exeext conftest.$ac_ext
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13193$as_echo "$have_res_init" >&6; }
13194 if test "$have_res_init" = yes ; then
13195 resolv=yes
13196 fi
13197 LIBS="$OLIBS"
13198fi
13199
13200if test "$have_res_init" = yes; then
13201
13202$as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13203
13204fi
13205
13206# Do we need the Hesiod library to provide the support routines?
13207LIBHESIOD=
13208if test "$with_hesiod" != no ; then
13209 # Don't set $LIBS here -- see comments above. FIXME which comments?
13210 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13211if test "x$ac_cv_func_res_send" = x""yes; then :
13212
13213else
13214 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13215if test "x$ac_cv_func___res_send" = x""yes; then :
13216
13217else
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13219$as_echo_n "checking for res_send in -lresolv... " >&6; }
13220if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13221 $as_echo_n "(cached) " >&6
13222else
13223 ac_check_lib_save_LIBS=$LIBS
13224LIBS="-lresolv $LIBS"
13225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13226/* end confdefs.h. */
13227
13228/* Override any GCC internal prototype to avoid an error.
13229 Use char because int might match the return type of a GCC
13230 builtin and then its argument prototype would still apply. */
13231#ifdef __cplusplus
13232extern "C"
13233#endif
13234char res_send ();
13235int
13236main ()
13237{
13238return res_send ();
13239 ;
13240 return 0;
13241}
13242_ACEOF
13243if ac_fn_c_try_link "$LINENO"; then :
13244 ac_cv_lib_resolv_res_send=yes
13245else
13246 ac_cv_lib_resolv_res_send=no
13247fi
13248rm -f core conftest.err conftest.$ac_objext \
13249 conftest$ac_exeext conftest.$ac_ext
13250LIBS=$ac_check_lib_save_LIBS
13251fi
13252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13253$as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13254if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13255 resolv=yes
13256else
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13258$as_echo_n "checking for __res_send in -lresolv... " >&6; }
13259if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13260 $as_echo_n "(cached) " >&6
13261else
13262 ac_check_lib_save_LIBS=$LIBS
13263LIBS="-lresolv $LIBS"
13264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13265/* end confdefs.h. */
13266
13267/* Override any GCC internal prototype to avoid an error.
13268 Use char because int might match the return type of a GCC
13269 builtin and then its argument prototype would still apply. */
13270#ifdef __cplusplus
13271extern "C"
13272#endif
13273char __res_send ();
13274int
13275main ()
13276{
13277return __res_send ();
13278 ;
13279 return 0;
13280}
13281_ACEOF
13282if ac_fn_c_try_link "$LINENO"; then :
13283 ac_cv_lib_resolv___res_send=yes
13284else
13285 ac_cv_lib_resolv___res_send=no
13286fi
13287rm -f core conftest.err conftest.$ac_objext \
13288 conftest$ac_exeext conftest.$ac_ext
13289LIBS=$ac_check_lib_save_LIBS
13290fi
13291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13292$as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13293if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13294 resolv=yes
13295fi
13296
13297fi
13298
13299fi
13300
13301fi
13302
13303 if test "$resolv" = yes ; then
13304 RESOLVLIB=-lresolv
13305 else
13306 RESOLVLIB=
13307 fi
13308 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13309if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13310
13311else
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13313$as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13314if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13315 $as_echo_n "(cached) " >&6
13316else
13317 ac_check_lib_save_LIBS=$LIBS
13318LIBS="-lhesiod $RESOLVLIB $LIBS"
13319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320/* end confdefs.h. */
13321
13322/* Override any GCC internal prototype to avoid an error.
13323 Use char because int might match the return type of a GCC
13324 builtin and then its argument prototype would still apply. */
13325#ifdef __cplusplus
13326extern "C"
13327#endif
13328char hes_getmailhost ();
13329int
13330main ()
13331{
13332return hes_getmailhost ();
13333 ;
13334 return 0;
13335}
13336_ACEOF
13337if ac_fn_c_try_link "$LINENO"; then :
13338 ac_cv_lib_hesiod_hes_getmailhost=yes
13339else
13340 ac_cv_lib_hesiod_hes_getmailhost=no
13341fi
13342rm -f core conftest.err conftest.$ac_objext \
13343 conftest$ac_exeext conftest.$ac_ext
13344LIBS=$ac_check_lib_save_LIBS
13345fi
13346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13347$as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13348if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
13349 hesiod=yes
13350else
13351 :
13352fi
13353
13354fi
13355
13356
13357 if test x"$hesiod" = xyes; then
13358
13359$as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13360
13361 LIBHESIOD=-lhesiod
13362 fi
13363fi
13364
13365
13366# Do we need libresolv (due to res_init or Hesiod)?
13367if test "$resolv" = yes ; then
13368
13369$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13370
13371 LIBRESOLV=-lresolv
13372else
13373 LIBRESOLV=
13374fi
13375
13376
13377# These tell us which Kerberos-related libraries to use.
13378COM_ERRLIB=
13379CRYPTOLIB=
13380KRB5LIB=
13381DESLIB=
13382KRB4LIB=
13383
13384if test "${with_kerberos}" != no; then
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13386$as_echo_n "checking for com_err in -lcom_err... " >&6; }
13387if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13388 $as_echo_n "(cached) " >&6
13389else
13390 ac_check_lib_save_LIBS=$LIBS
13391LIBS="-lcom_err $LIBS"
13392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393/* end confdefs.h. */
13394
13395/* Override any GCC internal prototype to avoid an error.
13396 Use char because int might match the return type of a GCC
13397 builtin and then its argument prototype would still apply. */
13398#ifdef __cplusplus
13399extern "C"
13400#endif
13401char com_err ();
13402int
13403main ()
13404{
13405return com_err ();
13406 ;
13407 return 0;
13408}
13409_ACEOF
13410if ac_fn_c_try_link "$LINENO"; then :
13411 ac_cv_lib_com_err_com_err=yes
13412else
13413 ac_cv_lib_com_err_com_err=no
13414fi
13415rm -f core conftest.err conftest.$ac_objext \
13416 conftest$ac_exeext conftest.$ac_ext
13417LIBS=$ac_check_lib_save_LIBS
13418fi
13419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13420$as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13421if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
13422 have_com_err=yes
13423else
13424 have_com_err=no
13425fi
13426
13427 if test $have_com_err = yes; then
13428 COM_ERRLIB=-lcom_err
13429 LIBS="$COM_ERRLIB $LIBS"
13430
13431$as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13432
13433 fi
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13435$as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13436if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13437 $as_echo_n "(cached) " >&6
13438else
13439 ac_check_lib_save_LIBS=$LIBS
13440LIBS="-lcrypto $LIBS"
13441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13442/* end confdefs.h. */
13443
13444/* Override any GCC internal prototype to avoid an error.
13445 Use char because int might match the return type of a GCC
13446 builtin and then its argument prototype would still apply. */
13447#ifdef __cplusplus
13448extern "C"
13449#endif
13450char mit_des_cbc_encrypt ();
13451int
13452main ()
13453{
13454return mit_des_cbc_encrypt ();
13455 ;
13456 return 0;
13457}
13458_ACEOF
13459if ac_fn_c_try_link "$LINENO"; then :
13460 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13461else
13462 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13463fi
13464rm -f core conftest.err conftest.$ac_objext \
13465 conftest$ac_exeext conftest.$ac_ext
13466LIBS=$ac_check_lib_save_LIBS
13467fi
13468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13469$as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13470if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13471 have_crypto=yes
13472else
13473 have_crypto=no
13474fi
13475
13476 if test $have_crypto = yes; then
13477 CRYPTOLIB=-lcrypto
13478 LIBS="$CRYPTOLIB $LIBS"
13479
13480$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13481
13482 fi
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13484$as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13485if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13486 $as_echo_n "(cached) " >&6
13487else
13488 ac_check_lib_save_LIBS=$LIBS
13489LIBS="-lk5crypto $LIBS"
13490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13491/* end confdefs.h. */
13492
13493/* Override any GCC internal prototype to avoid an error.
13494 Use char because int might match the return type of a GCC
13495 builtin and then its argument prototype would still apply. */
13496#ifdef __cplusplus
13497extern "C"
13498#endif
13499char mit_des_cbc_encrypt ();
13500int
13501main ()
13502{
13503return mit_des_cbc_encrypt ();
13504 ;
13505 return 0;
13506}
13507_ACEOF
13508if ac_fn_c_try_link "$LINENO"; then :
13509 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13510else
13511 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13512fi
13513rm -f core conftest.err conftest.$ac_objext \
13514 conftest$ac_exeext conftest.$ac_ext
13515LIBS=$ac_check_lib_save_LIBS
13516fi
13517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13518$as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13519if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
13520 have_k5crypto=yes
13521else
13522 have_k5crypto=no
13523fi
13524
13525 if test $have_k5crypto = yes; then
13526 CRYPTOLIB=-lk5crypto
13527 LIBS="$CRYPTOLIB $LIBS"
13528
13529$as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13530
13531 fi
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13533$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13534if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13535 $as_echo_n "(cached) " >&6
13536else
13537 ac_check_lib_save_LIBS=$LIBS
13538LIBS="-lkrb5 $LIBS"
13539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540/* end confdefs.h. */
13541
13542/* Override any GCC internal prototype to avoid an error.
13543 Use char because int might match the return type of a GCC
13544 builtin and then its argument prototype would still apply. */
13545#ifdef __cplusplus
13546extern "C"
13547#endif
13548char krb5_init_context ();
13549int
13550main ()
13551{
13552return krb5_init_context ();
13553 ;
13554 return 0;
13555}
13556_ACEOF
13557if ac_fn_c_try_link "$LINENO"; then :
13558 ac_cv_lib_krb5_krb5_init_context=yes
13559else
13560 ac_cv_lib_krb5_krb5_init_context=no
13561fi
13562rm -f core conftest.err conftest.$ac_objext \
13563 conftest$ac_exeext conftest.$ac_ext
13564LIBS=$ac_check_lib_save_LIBS
13565fi
13566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13567$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13568if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
13569 have_krb5=yes
13570else
13571 have_krb5=no
13572fi
13573
13574 if test $have_krb5=yes; then
13575 KRB5LIB=-lkrb5
13576 LIBS="$KRB5LIB $LIBS"
13577
13578$as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13579
13580 fi
13581 if test "${with_kerberos5}" = no; then
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13583$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13584if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13585 $as_echo_n "(cached) " >&6
13586else
13587 ac_check_lib_save_LIBS=$LIBS
13588LIBS="-ldes425 $LIBS"
13589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590/* end confdefs.h. */
13591
13592/* Override any GCC internal prototype to avoid an error.
13593 Use char because int might match the return type of a GCC
13594 builtin and then its argument prototype would still apply. */
13595#ifdef __cplusplus
13596extern "C"
13597#endif
13598char des_cbc_encrypt ();
13599int
13600main ()
13601{
13602return des_cbc_encrypt ();
13603 ;
13604 return 0;
13605}
13606_ACEOF
13607if ac_fn_c_try_link "$LINENO"; then :
13608 ac_cv_lib_des425_des_cbc_encrypt=yes
13609else
13610 ac_cv_lib_des425_des_cbc_encrypt=no
13611fi
13612rm -f core conftest.err conftest.$ac_objext \
13613 conftest$ac_exeext conftest.$ac_ext
13614LIBS=$ac_check_lib_save_LIBS
13615fi
13616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13617$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13618if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
13619 have_des425=yes
13620else
13621 have_des425=no
13622fi
13623
13624 if test $have_des425 = yes; then
13625 DESLIB=-ldes425
13626 LIBS="$DESLIB $LIBS"
13627
13628$as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13629
13630 else
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13632$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13633if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13634 $as_echo_n "(cached) " >&6
13635else
13636 ac_check_lib_save_LIBS=$LIBS
13637LIBS="-ldes $LIBS"
13638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13639/* end confdefs.h. */
13640
13641/* Override any GCC internal prototype to avoid an error.
13642 Use char because int might match the return type of a GCC
13643 builtin and then its argument prototype would still apply. */
13644#ifdef __cplusplus
13645extern "C"
13646#endif
13647char des_cbc_encrypt ();
13648int
13649main ()
13650{
13651return des_cbc_encrypt ();
13652 ;
13653 return 0;
13654}
13655_ACEOF
13656if ac_fn_c_try_link "$LINENO"; then :
13657 ac_cv_lib_des_des_cbc_encrypt=yes
13658else
13659 ac_cv_lib_des_des_cbc_encrypt=no
13660fi
13661rm -f core conftest.err conftest.$ac_objext \
13662 conftest$ac_exeext conftest.$ac_ext
13663LIBS=$ac_check_lib_save_LIBS
13664fi
13665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13666$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13667if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
13668 have_des=yes
13669else
13670 have_des=no
13671fi
13672
13673 if test $have_des = yes; then
13674 DESLIB=-ldes
13675 LIBS="$DESLIB $LIBS"
13676
13677$as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13678
13679 fi
13680 fi
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13682$as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13683if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13684 $as_echo_n "(cached) " >&6
13685else
13686 ac_check_lib_save_LIBS=$LIBS
13687LIBS="-lkrb4 $LIBS"
13688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689/* end confdefs.h. */
13690
13691/* Override any GCC internal prototype to avoid an error.
13692 Use char because int might match the return type of a GCC
13693 builtin and then its argument prototype would still apply. */
13694#ifdef __cplusplus
13695extern "C"
13696#endif
13697char krb_get_cred ();
13698int
13699main ()
13700{
13701return krb_get_cred ();
13702 ;
13703 return 0;
13704}
13705_ACEOF
13706if ac_fn_c_try_link "$LINENO"; then :
13707 ac_cv_lib_krb4_krb_get_cred=yes
13708else
13709 ac_cv_lib_krb4_krb_get_cred=no
13710fi
13711rm -f core conftest.err conftest.$ac_objext \
13712 conftest$ac_exeext conftest.$ac_ext
13713LIBS=$ac_check_lib_save_LIBS
13714fi
13715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13716$as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13717if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
13718 have_krb4=yes
13719else
13720 have_krb4=no
13721fi
13722
13723 if test $have_krb4 = yes; then
13724 KRB4LIB=-lkrb4
13725 LIBS="$KRB4LIB $LIBS"
13726
13727$as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13728
13729 else
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13731$as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13732if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13733 $as_echo_n "(cached) " >&6
13734else
13735 ac_check_lib_save_LIBS=$LIBS
13736LIBS="-lkrb $LIBS"
13737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738/* end confdefs.h. */
13739
13740/* Override any GCC internal prototype to avoid an error.
13741 Use char because int might match the return type of a GCC
13742 builtin and then its argument prototype would still apply. */
13743#ifdef __cplusplus
13744extern "C"
13745#endif
13746char krb_get_cred ();
13747int
13748main ()
13749{
13750return krb_get_cred ();
13751 ;
13752 return 0;
13753}
13754_ACEOF
13755if ac_fn_c_try_link "$LINENO"; then :
13756 ac_cv_lib_krb_krb_get_cred=yes
13757else
13758 ac_cv_lib_krb_krb_get_cred=no
13759fi
13760rm -f core conftest.err conftest.$ac_objext \
13761 conftest$ac_exeext conftest.$ac_ext
13762LIBS=$ac_check_lib_save_LIBS
13763fi
13764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13765$as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13766if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
13767 have_krb=yes
13768else
13769 have_krb=no
13770fi
13771
13772 if test $have_krb = yes; then
13773 KRB4LIB=-lkrb
13774 LIBS="$KRB4LIB $LIBS"
13775
13776$as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13777
13778 fi
13779 fi
13780 fi
13781
13782 if test "${with_kerberos5}" != no; then
13783 for ac_header in krb5.h
13784do :
13785 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13786if test "x$ac_cv_header_krb5_h" = x""yes; then :
13787 cat >>confdefs.h <<_ACEOF
13788#define HAVE_KRB5_H 1
13789_ACEOF
13790 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13791"
13792if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
13793
13794cat >>confdefs.h <<_ACEOF
13795#define HAVE_KRB5_ERROR_TEXT 1
13796_ACEOF
13797
13798
13799fi
13800ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13801"
13802if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
13803
13804cat >>confdefs.h <<_ACEOF
13805#define HAVE_KRB5_ERROR_E_TEXT 1
13806_ACEOF
13807
13808
13809fi
13810
13811fi
13812
13813done
13814
13815 else
13816 for ac_header in des.h
13817do :
13818 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13819if test "x$ac_cv_header_des_h" = x""yes; then :
13820 cat >>confdefs.h <<_ACEOF
13821#define HAVE_DES_H 1
13822_ACEOF
13823
13824else
13825 for ac_header in kerberosIV/des.h
13826do :
13827 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13828if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
13829 cat >>confdefs.h <<_ACEOF
13830#define HAVE_KERBEROSIV_DES_H 1
13831_ACEOF
13832
13833else
13834 for ac_header in kerberos/des.h
13835do :
13836 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13837if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
13838 cat >>confdefs.h <<_ACEOF
13839#define HAVE_KERBEROS_DES_H 1
13840_ACEOF
13841
13842fi
13843
13844done
13845
13846fi
13847
13848done
13849
13850fi
13851
13852done
13853
13854 for ac_header in krb.h
13855do :
13856 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13857if test "x$ac_cv_header_krb_h" = x""yes; then :
13858 cat >>confdefs.h <<_ACEOF
13859#define HAVE_KRB_H 1
13860_ACEOF
13861
13862else
13863 for ac_header in kerberosIV/krb.h
13864do :
13865 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13866if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
13867 cat >>confdefs.h <<_ACEOF
13868#define HAVE_KERBEROSIV_KRB_H 1
13869_ACEOF
13870
13871else
13872 for ac_header in kerberos/krb.h
13873do :
13874 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13875if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
13876 cat >>confdefs.h <<_ACEOF
13877#define HAVE_KERBEROS_KRB_H 1
13878_ACEOF
13879
13880fi
13881
13882done
13883
13884fi
13885
13886done
13887
13888fi
13889
13890done
13891
13892 fi
13893 for ac_header in com_err.h
13894do :
13895 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13896if test "x$ac_cv_header_com_err_h" = x""yes; then :
13897 cat >>confdefs.h <<_ACEOF
13898#define HAVE_COM_ERR_H 1
13899_ACEOF
13900
13901fi
13902
13903done
13904
13905fi
13906
13907
13908
13909
13910
13911
13912
13913# Solaris requires -lintl if you want strerror (which calls dgettext)
13914# to return localized messages.
13915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13916$as_echo_n "checking for dgettext in -lintl... " >&6; }
13917if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13918 $as_echo_n "(cached) " >&6
13919else
13920 ac_check_lib_save_LIBS=$LIBS
13921LIBS="-lintl $LIBS"
13922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13923/* end confdefs.h. */
13924
13925/* Override any GCC internal prototype to avoid an error.
13926 Use char because int might match the return type of a GCC
13927 builtin and then its argument prototype would still apply. */
13928#ifdef __cplusplus
13929extern "C"
13930#endif
13931char dgettext ();
13932int
13933main ()
13934{
13935return dgettext ();
13936 ;
13937 return 0;
13938}
13939_ACEOF
13940if ac_fn_c_try_link "$LINENO"; then :
13941 ac_cv_lib_intl_dgettext=yes
13942else
13943 ac_cv_lib_intl_dgettext=no
13944fi
13945rm -f core conftest.err conftest.$ac_objext \
13946 conftest$ac_exeext conftest.$ac_ext
13947LIBS=$ac_check_lib_save_LIBS
13948fi
13949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13950$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13951if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
13952 cat >>confdefs.h <<_ACEOF
13953#define HAVE_LIBINTL 1
13954_ACEOF
13955
13956 LIBS="-lintl $LIBS"
13957
13958fi
13959
13960
13961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13962$as_echo_n "checking whether localtime caches TZ... " >&6; }
13963if test "${emacs_cv_localtime_cache+set}" = set; then :
13964 $as_echo_n "(cached) " >&6
13965else
13966 if test x$ac_cv_func_tzset = xyes; then
13967if test "$cross_compiling" = yes; then :
13968 # If we have tzset, assume the worst when cross-compiling.
13969emacs_cv_localtime_cache=yes
13970else
13971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13972/* end confdefs.h. */
13973#include <time.h>
13974char TZ_GMT0[] = "TZ=GMT0";
13975char TZ_PST8[] = "TZ=PST8";
13976main()
13977{
13978 time_t now = time ((time_t *) 0);
13979 int hour_GMT0, hour_unset;
13980 if (putenv (TZ_GMT0) != 0)
13981 exit (1);
13982 hour_GMT0 = localtime (&now)->tm_hour;
13983 unsetenv("TZ");
13984 hour_unset = localtime (&now)->tm_hour;
13985 if (putenv (TZ_PST8) != 0)
13986 exit (1);
13987 if (localtime (&now)->tm_hour == hour_GMT0)
13988 exit (1);
13989 unsetenv("TZ");
13990 if (localtime (&now)->tm_hour != hour_unset)
13991 exit (1);
13992 exit (0);
13993}
13994_ACEOF
13995if ac_fn_c_try_run "$LINENO"; then :
13996 emacs_cv_localtime_cache=no
13997else
13998 emacs_cv_localtime_cache=yes
13999fi
14000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14001 conftest.$ac_objext conftest.beam conftest.$ac_ext
14002fi
14003
14004else
14005 # If we lack tzset, report that localtime does not cache TZ,
14006 # since we can't invalidate the cache if we don't have tzset.
14007 emacs_cv_localtime_cache=no
14008fi
14009fi
14010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14011$as_echo "$emacs_cv_localtime_cache" >&6; }
14012if test $emacs_cv_localtime_cache = yes; then
14013
14014$as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14015
14016fi
14017
14018if test "x$HAVE_TIMEVAL" = xyes; then
14019 for ac_func in gettimeofday
14020do :
14021 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14022if test "x$ac_cv_func_gettimeofday" = x""yes; then :
14023 cat >>confdefs.h <<_ACEOF
14024#define HAVE_GETTIMEOFDAY 1
14025_ACEOF
14026
14027fi
14028done
14029
14030 if test $ac_cv_func_gettimeofday = yes; then
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14032$as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14033if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14034 $as_echo_n "(cached) " >&6
14035else
14036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14037/* end confdefs.h. */
14038
14039#ifdef TIME_WITH_SYS_TIME
14040#include <sys/time.h>
14041#include <time.h>
14042#else
14043#ifdef HAVE_SYS_TIME_H
14044#include <sys/time.h>
14045#else
14046#include <time.h>
14047#endif
14048#endif
14049int
14050main ()
14051{
14052struct timeval time;
14053 gettimeofday (&time, 0);
14054 ;
14055 return 0;
14056}
14057_ACEOF
14058if ac_fn_c_try_compile "$LINENO"; then :
14059 emacs_cv_gettimeofday_two_arguments=yes
14060else
14061 emacs_cv_gettimeofday_two_arguments=no
14062fi
14063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14064fi
14065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14066$as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14067 if test $emacs_cv_gettimeofday_two_arguments = no; then
14068
14069$as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14070
14071 fi
14072 fi
14073fi
14074
14075ok_so_far=yes
14076ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14077if test "x$ac_cv_func_socket" = x""yes; then :
14078
14079else
14080 ok_so_far=no
14081fi
14082
14083if test $ok_so_far = yes; then
14084 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14085if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14086
14087else
14088 ok_so_far=no
14089fi
14090
14091
14092fi
14093if test $ok_so_far = yes; then
14094 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14095if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14096
14097else
14098 ok_so_far=no
14099fi
14100
14101
14102fi
14103if test $ok_so_far = yes; then
14104
14105$as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14106
14107fi
14108
14109if test -f /usr/lpp/X11/bin/smt.exp; then
14110
14111$as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14112
14113fi
14114
14115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14116$as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14117if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14119$as_echo "yes" >&6; }
14120
14121$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14122
14123else
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14125$as_echo "no" >&6; }
14126fi
14127
14128ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14129if test "x$ac_cv_type_pid_t" = x""yes; then :
14130
14131else
14132
14133cat >>confdefs.h <<_ACEOF
14134#define pid_t int
14135_ACEOF
14136
14137fi
14138
14139for ac_header in vfork.h
14140do :
14141 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14142if test "x$ac_cv_header_vfork_h" = x""yes; then :
14143 cat >>confdefs.h <<_ACEOF
14144#define HAVE_VFORK_H 1
14145_ACEOF
14146
14147fi
14148
14149done
14150
14151for ac_func in fork vfork
14152do :
14153 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14154ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14155eval as_val=\$$as_ac_var
14156 if test "x$as_val" = x""yes; then :
14157 cat >>confdefs.h <<_ACEOF
14158#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14159_ACEOF
14160
14161fi
14162done
14163
14164if test "x$ac_cv_func_fork" = xyes; then
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14166$as_echo_n "checking for working fork... " >&6; }
14167if test "${ac_cv_func_fork_works+set}" = set; then :
14168 $as_echo_n "(cached) " >&6
14169else
14170 if test "$cross_compiling" = yes; then :
14171 ac_cv_func_fork_works=cross
14172else
14173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14174/* end confdefs.h. */
14175$ac_includes_default
14176int
14177main ()
14178{
14179
14180 /* By Ruediger Kuhlmann. */
14181 return fork () < 0;
14182
14183 ;
14184 return 0;
14185}
14186_ACEOF
14187if ac_fn_c_try_run "$LINENO"; then :
14188 ac_cv_func_fork_works=yes
14189else
14190 ac_cv_func_fork_works=no
14191fi
14192rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14193 conftest.$ac_objext conftest.beam conftest.$ac_ext
14194fi
14195
14196fi
14197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14198$as_echo "$ac_cv_func_fork_works" >&6; }
14199
14200else
14201 ac_cv_func_fork_works=$ac_cv_func_fork
14202fi
14203if test "x$ac_cv_func_fork_works" = xcross; then
14204 case $host in
14205 *-*-amigaos* | *-*-msdosdjgpp*)
14206 # Override, as these systems have only a dummy fork() stub
14207 ac_cv_func_fork_works=no
14208 ;;
14209 *)
14210 ac_cv_func_fork_works=yes
14211 ;;
14212 esac
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14214$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14215fi
14216ac_cv_func_vfork_works=$ac_cv_func_vfork
14217if test "x$ac_cv_func_vfork" = xyes; then
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14219$as_echo_n "checking for working vfork... " >&6; }
14220if test "${ac_cv_func_vfork_works+set}" = set; then :
14221 $as_echo_n "(cached) " >&6
14222else
14223 if test "$cross_compiling" = yes; then :
14224 ac_cv_func_vfork_works=cross
14225else
14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227/* end confdefs.h. */
14228/* Thanks to Paul Eggert for this test. */
14229$ac_includes_default
14230#include <sys/wait.h>
14231#ifdef HAVE_VFORK_H
14232# include <vfork.h>
14233#endif
14234/* On some sparc systems, changes by the child to local and incoming
14235 argument registers are propagated back to the parent. The compiler
14236 is told about this with #include <vfork.h>, but some compilers
14237 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14238 static variable whose address is put into a register that is
14239 clobbered by the vfork. */
14240static void
14241#ifdef __cplusplus
14242sparc_address_test (int arg)
14243# else
14244sparc_address_test (arg) int arg;
14245#endif
14246{
14247 static pid_t child;
14248 if (!child) {
14249 child = vfork ();
14250 if (child < 0) {
14251 perror ("vfork");
14252 _exit(2);
14253 }
14254 if (!child) {
14255 arg = getpid();
14256 write(-1, "", 0);
14257 _exit (arg);
14258 }
14259 }
14260}
14261
14262int
14263main ()
14264{
14265 pid_t parent = getpid ();
14266 pid_t child;
14267
14268 sparc_address_test (0);
14269
14270 child = vfork ();
14271
14272 if (child == 0) {
14273 /* Here is another test for sparc vfork register problems. This
14274 test uses lots of local variables, at least as many local
14275 variables as main has allocated so far including compiler
14276 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14277 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14278 reuse the register of parent for one of the local variables,
14279 since it will think that parent can't possibly be used any more
14280 in this routine. Assigning to the local variable will thus
14281 munge parent in the parent process. */
14282 pid_t
14283 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14284 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14285 /* Convince the compiler that p..p7 are live; otherwise, it might
14286 use the same hardware register for all 8 local variables. */
14287 if (p != p1 || p != p2 || p != p3 || p != p4
14288 || p != p5 || p != p6 || p != p7)
14289 _exit(1);
14290
14291 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14292 from child file descriptors. If the child closes a descriptor
14293 before it execs or exits, this munges the parent's descriptor
14294 as well. Test for this by closing stdout in the child. */
14295 _exit(close(fileno(stdout)) != 0);
14296 } else {
14297 int status;
14298 struct stat st;
14299
14300 while (wait(&status) != child)
14301 ;
14302 return (
14303 /* Was there some problem with vforking? */
14304 child < 0
14305
14306 /* Did the child fail? (This shouldn't happen.) */
14307 || status
14308
14309 /* Did the vfork/compiler bug occur? */
14310 || parent != getpid()
14311
14312 /* Did the file descriptor bug occur? */
14313 || fstat(fileno(stdout), &st) != 0
14314 );
14315 }
14316}
14317_ACEOF
14318if ac_fn_c_try_run "$LINENO"; then :
14319 ac_cv_func_vfork_works=yes
14320else
14321 ac_cv_func_vfork_works=no
14322fi
14323rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14324 conftest.$ac_objext conftest.beam conftest.$ac_ext
14325fi
14326
14327fi
14328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14329$as_echo "$ac_cv_func_vfork_works" >&6; }
14330
14331fi;
14332if test "x$ac_cv_func_fork_works" = xcross; then
14333 ac_cv_func_vfork_works=$ac_cv_func_vfork
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14335$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14336fi
14337
14338if test "x$ac_cv_func_vfork_works" = xyes; then
14339
14340$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14341
14342else
14343
14344$as_echo "#define vfork fork" >>confdefs.h
14345
14346fi
14347if test "x$ac_cv_func_fork_works" = xyes; then
14348
14349$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14350
14351fi
14352
14353
14354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14355$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14356if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14357 $as_echo_n "(cached) " >&6
14358else
14359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14360/* end confdefs.h. */
14361#include <langinfo.h>
14362int
14363main ()
14364{
14365char* cs = nl_langinfo(CODESET);
14366 ;
14367 return 0;
14368}
14369_ACEOF
14370if ac_fn_c_try_link "$LINENO"; then :
14371 emacs_cv_langinfo_codeset=yes
14372else
14373 emacs_cv_langinfo_codeset=no
14374fi
14375rm -f core conftest.err conftest.$ac_objext \
14376 conftest$ac_exeext conftest.$ac_ext
14377
14378fi
14379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14380$as_echo "$emacs_cv_langinfo_codeset" >&6; }
14381if test $emacs_cv_langinfo_codeset = yes; then
14382
14383$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14384
14385fi
14386
14387ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14388if test "x$ac_cv_type_size_t" = x""yes; then :
14389
14390cat >>confdefs.h <<_ACEOF
14391#define HAVE_SIZE_T 1
14392_ACEOF
14393
14394
14395fi
14396
14397
14398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14399$as_echo_n "checking for mbstate_t... " >&6; }
14400if test "${ac_cv_type_mbstate_t+set}" = set; then :
14401 $as_echo_n "(cached) " >&6
14402else
14403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14404/* end confdefs.h. */
14405$ac_includes_default
14406# include <wchar.h>
14407int
14408main ()
14409{
14410mbstate_t x; return sizeof x;
14411 ;
14412 return 0;
14413}
14414_ACEOF
14415if ac_fn_c_try_compile "$LINENO"; then :
14416 ac_cv_type_mbstate_t=yes
14417else
14418 ac_cv_type_mbstate_t=no
14419fi
14420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14421fi
14422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14423$as_echo "$ac_cv_type_mbstate_t" >&6; }
14424 if test $ac_cv_type_mbstate_t = yes; then
14425
14426$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14427
14428 else
14429
14430$as_echo "#define mbstate_t int" >>confdefs.h
14431
14432 fi
14433
14434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
14435$as_echo_n "checking for C restrict keyword... " >&6; }
14436if test "${emacs_cv_c_restrict+set}" = set; then :
14437 $as_echo_n "(cached) " >&6
14438else
14439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14440/* end confdefs.h. */
14441void fred (int *restrict x);
14442int
14443main ()
14444{
14445
14446 ;
14447 return 0;
14448}
14449_ACEOF
14450if ac_fn_c_try_compile "$LINENO"; then :
14451 emacs_cv_c_restrict=yes
14452else
14453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454/* end confdefs.h. */
14455void fred (int *__restrict x);
14456int
14457main ()
14458{
14459
14460 ;
14461 return 0;
14462}
14463_ACEOF
14464if ac_fn_c_try_compile "$LINENO"; then :
14465 emacs_cv_c_restrict=__restrict
14466else
14467 emacs_cv_c_restrict=no
14468fi
14469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14470fi
14471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14472fi
14473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
14474$as_echo "$emacs_cv_c_restrict" >&6; }
14475case "$emacs_cv_c_restrict" in
14476 yes) emacs_restrict=restrict;;
14477 no) emacs_restrict="";;
14478 *) emacs_restrict="$emacs_cv_c_restrict";;
14479esac
14480if test "$emacs_restrict" != __restrict; then
14481
14482cat >>confdefs.h <<_ACEOF
14483#define __restrict $emacs_restrict
14484_ACEOF
14485
14486fi
14487
14488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14489$as_echo_n "checking for C restricted array declarations... " >&6; }
14490if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14491 $as_echo_n "(cached) " >&6
14492else
14493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14494/* end confdefs.h. */
14495void fred (int x[__restrict]);
14496int
14497main ()
14498{
14499
14500 ;
14501 return 0;
14502}
14503_ACEOF
14504if ac_fn_c_try_compile "$LINENO"; then :
14505 emacs_cv_c_restrict_arr=yes
14506else
14507 emacs_cv_c_restrict_arr=no
14508fi
14509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14510fi
14511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14512$as_echo "$emacs_cv_c_restrict_arr" >&6; }
14513if test "$emacs_cv_c_restrict_arr" = yes; then
14514
14515$as_echo "#define __restrict_arr __restrict" >>confdefs.h
14516
14517fi
14518
14519
14520
14521# Set up the CFLAGS for real compilation, so we can substitute it.
14522CFLAGS="$REAL_CFLAGS"
14523CPPFLAGS="$REAL_CPPFLAGS"
14524
14525## Hack to detect a buggy GCC version.
14526if test "x$GCC" = xyes \
14527 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14528 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
14529 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
14530 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14531fi
14532
14533#### Find out which version of Emacs this is.
14534version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
14535 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
14536if test x"${version}" = x; then
14537 as_fn_error "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
14538fi
14539if test x"${version}" != x"$PACKAGE_VERSION"; then
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
14541$as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
14542fi
14543
14544### Specify what sort of things we'll be editing into Makefile and config.h.
14545### Use configuration here uncanonicalized to avoid exceeding size limits.
14546
14547
14548## Unused?
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14570## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14571## end of LIBX_BASE, but nothing ever set it.
14572
14573
14574
14575
14576## Used in lwlib/Makefile.in.
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589cat >>confdefs.h <<_ACEOF
14590#define EMACS_CONFIGURATION "${canonical}"
14591_ACEOF
14592
14593
14594cat >>confdefs.h <<_ACEOF
14595#define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14596_ACEOF
14597
14598
14599cat >>confdefs.h <<_ACEOF
14600#define config_machfile "${machfile}"
14601_ACEOF
14602
14603
14604cat >>confdefs.h <<_ACEOF
14605#define config_opsysfile "${opsysfile}"
14606_ACEOF
14607
14608
14609XMENU_OBJ=
14610XOBJ=
14611FONT_OBJ=
14612if test "${HAVE_X_WINDOWS}" = "yes" ; then
14613
14614$as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14615
14616 XMENU_OBJ=xmenu.o
14617 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14618 FONT_OBJ=xfont.o
14619 if test "$HAVE_XFT" = "yes"; then
14620 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14621 elif test "$HAVE_FREETYPE" = "yes"; then
14622 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14623 fi
14624
14625fi
14626
14627
14628
14629
14630WIDGET_OBJ=
14631MOTIF_LIBW=
14632if test "${USE_X_TOOLKIT}" != "none" ; then
14633 WIDGET_OBJ=widget.o
14634
14635$as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14636
14637 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14638
14639$as_echo "#define USE_LUCID 1" >>confdefs.h
14640
14641 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14642
14643$as_echo "#define USE_MOTIF 1" >>confdefs.h
14644
14645 MOTIF_LIBW=-lXm
14646 case "$opsys" in
14647 gnu-linux)
14648 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14649 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14650 ;;
14651
14652 unixware)
14653 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14654 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14655 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14656 ;;
14657
14658 aix4-2)
14659 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14660 MOTIF_LIBW="$MOTIF_LIBW -li18n"
14661 ;;
14662 esac
14663 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
14664 fi
14665fi
14666
14667
14668TOOLKIT_LIBW=
14669case "$USE_X_TOOLKIT" in
14670 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14671 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14672 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14673esac
14674
14675
14676if test "$USE_X_TOOLKIT" = "none"; then
14677 LIBXT_OTHER="\$(LIBXSM)"
14678 OLDXMENU_TARGET="really-oldXMenu"
14679else
14680 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14681 OLDXMENU_TARGET="really-lwlib"
14682fi
14683
14684
14685## The X Menu stuff is present in the X10 distribution, but missing
14686## from X11. If we have X10, just use the installed library;
14687## otherwise, use our own copy.
14688if test "${HAVE_X11}" = "yes" ; then
14689
14690$as_echo "#define HAVE_X11 1" >>confdefs.h
14691
14692
14693 if test "$USE_X_TOOLKIT" = "none"; then
14694 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
14695 else
14696 OLDXMENU="\${lwlibdir}/liblw.a"
14697 fi
14698 LIBXMENU="\$(OLDXMENU)"
14699 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14700 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14701else
14702 ## For a syntactically valid Makefile; not actually used for anything.
14703 ## See comments in src/Makefile.in.
14704 OLDXMENU=nothing
14705 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14706 if test "${HAVE_X_WINDOWS}" = "yes"; then
14707 LIBXMENU="-lXMenu"
14708 else
14709 LIBXMENU=
14710 fi
14711 LIBX_OTHER=
14712 OLDXMENU_DEPS=
14713fi
14714
14715if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14716 OLDXMENU_TARGET=
14717 OLDXMENU=nothing
14718 LIBXMENU=
14719 OLDXMENU_DEPS=
14720fi
14721
14722
14723
14724
14725
14726
14727
14728if test "${HAVE_MENUS}" = "yes" ; then
14729
14730$as_echo "#define HAVE_MENUS 1" >>confdefs.h
14731
14732fi
14733
14734if test "${GNU_MALLOC}" = "yes" ; then
14735
14736$as_echo "#define GNU_MALLOC 1" >>confdefs.h
14737
14738fi
14739
14740RALLOC_OBJ=
14741if test "${REL_ALLOC}" = "yes" ; then
14742
14743$as_echo "#define REL_ALLOC 1" >>confdefs.h
14744
14745
14746 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14747fi
14748
14749
14750if test "$opsys" = "cygwin"; then
14751 CYGWIN_OBJ="sheap.o"
14752 ## Cygwin differs because of its unexec().
14753 PRE_ALLOC_OBJ=
14754 POST_ALLOC_OBJ=lastfile.o
14755else
14756 CYGWIN_OBJ=
14757 PRE_ALLOC_OBJ=lastfile.o
14758 POST_ALLOC_OBJ=
14759fi
14760
14761
14762
14763
14764
14765case "$opsys" in
14766 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
14767
14768 darwin)
14769 ## The -headerpad option tells ld (see man page) to leave room at the
14770 ## end of the header for adding load commands. Needed for dumping.
14771 ## 0x690 is the total size of 30 segment load commands (at 56
14772 ## each); under Cocoa 31 commands are required.
14773 if test "$HAVE_NS" = "yes"; then
14774 libs_nsgui="-framework AppKit"
14775 headerpad_extra=6C8
14776 else
14777 libs_nsgui=
14778 headerpad_extra=690
14779 fi
14780 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14781
14782 ## This is here because src/Makefile.in did some extra fiddling around
14783 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14784 ## #ifndef LD_SWITCH_SYSTEM
14785 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14786 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14787 ## not using gcc, darwin system not on an alpha (ie darwin, since
14788 ## darwin + alpha does not occur).
14789 ## Because this was done in src/Makefile.in, the resulting part of
14790 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14791 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14792 ## rather than LD_SWITCH_SYSTEM.
14793 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14794 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
14795 ;;
14796
14797 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14798 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14799 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14800 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14801 ## had different values in configure (in ac_link) and src/Makefile.in.
14802 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14803 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
14804
14805 *) LD_SWITCH_SYSTEM_TEMACS= ;;
14806esac
14807
14808if test "$NS_IMPL_GNUSTEP" = "yes"; then
14809 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14810fi
14811
14812
14813
14814
14815LD_FIRSTFLAG=
14816ORDINARY_LINK=
14817case "$opsys" in
14818 ## gnu: GNU needs its own crt0.
14819 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
14820
14821 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14822 ## library search parth, i.e. it won't search /usr/lib for libc and
14823 ## friends. Using -nostartfiles instead avoids this problem, and
14824 ## will also work on earlier NetBSD releases.
14825 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
14826
14827 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14828 ## MkLinux/LinuxPPC needs this.
14829 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14830 gnu-*)
14831 case "$machine" in
14832 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
14833 esac
14834 ;;
14835esac
14836
14837
14838if test "x$ORDINARY_LINK" = "xyes"; then
14839
14840 LD_FIRSTFLAG=""
14841
14842$as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14843
14844
14845## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
14846## freebsd, gnu-* not on macppc|ibms390x.
14847elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
14848
14849 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14850 ## places that are difficult to figure out at make time. Fortunately,
14851 ## these same versions allow you to pass arbitrary flags on to the
14852 ## linker, so there is no reason not to use it as a linker.
14853 ##
14854 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14855 ## searching for libraries in its internal directories, so we have to
14856 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14857 LD_FIRSTFLAG="-nostdlib"
14858fi
14859
14860## FIXME? What setting of EDIT_LDFLAGS should this have?
14861test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
14862
14863
14864
14865
14866## FIXME? The logic here is not precisely the same as that above.
14867## There is no check here for a pre-defined LD_FIRSTFLAG.
14868## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14869LIB_GCC=
14870if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14871
14872 case "$opsys" in
14873 freebsd|netbsd|openbsd) LIB_GCC= ;;
14874
14875 gnu-*)
14876 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14877 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14878 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
14879 if test "$machine" = "arm"; then
14880 LIB_GCC="-lgcc_s"
14881 else
14882 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14883 ## immediately undefine it again and redefine it to empty.
14884 ## Was the C_SWITCH_X_SITE part really necessary?
14885## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14886 LIB_GCC=
14887 fi
14888 ;;
14889
14890 ## Ask GCC where to find libgcc.a.
14891 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14892 esac
14893fi
14894
14895
14896TOOLTIP_SUPPORT=
14897WINDOW_SUPPORT=
14898## If we're using X11/GNUstep, define some consequences.
14899if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
14900
14901$as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14902
14903
14904$as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14905
14906 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
14907 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
14908
14909 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
14910 test "$HAVE_X_WINDOWS" = "yes" && \
14911 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14912
14913fi
14914
14915
14916
14917
14918
14919
14920
14921#### Report on what we decided to do.
14922#### Report GTK as a toolkit, even if it doesn't use Xt.
14923#### It makes printing result more understandable as using GTK sets
14924#### toolkit_scroll_bars to yes by default.
14925if test "${HAVE_GTK}" = "yes"; then
14926 USE_X_TOOLKIT=GTK
14927fi
14928
14929echo "
14930Configured for \`${canonical}'.
14931
14932 Where should the build process find the source code? ${srcdir}
14933 What operating system and machine description files should Emacs use?
14934 \`${opsysfile}' and \`${machfile}'
14935 What compiler should emacs be built with? ${CC} ${CFLAGS}
14936 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14937 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14938 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14939 What window system should Emacs use? ${window_system}
14940 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14941
14942if test -n "${x_includes}"; then
14943echo " Where do we find X Windows header files? ${x_includes}"
14944else
14945echo " Where do we find X Windows header files? Standard dirs"
14946fi
14947if test -n "${x_libraries}"; then
14948echo " Where do we find X Windows libraries? ${x_libraries}"
14949else
14950echo " Where do we find X Windows libraries? Standard dirs"
14951fi
14952
14953echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14954echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14955echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14956echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14957echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14958echo " Does Emacs use -lpng? ${HAVE_PNG}"
14959echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14960echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
14961
14962echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14963echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14964echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14965echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14966echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
14967echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
14968
14969echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14970echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14971echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14972echo " Does Emacs use -lxft? ${HAVE_XFT}"
14973
14974echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14975echo
14976
14977if test $USE_XASSERTS = yes; then
14978 echo " Compiling with asserts turned on."
14979 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
14980fi
14981
14982echo
14983
14984if test "$HAVE_NS" = "yes"; then
14985 echo
14986 echo "You must run \"make install\" in order to test the built application.
14987The installed application will go to nextstep/Emacs.app and can be
14988run or moved from there."
14989 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14990 echo "The application will be fully self-contained."
14991 else
14992 echo "The lisp resources for the application will be installed under ${prefix}.
14993You may need to run \"make install\" with sudo. The application will fail
14994to run if these resources are not installed."
14995 fi
14996 echo
14997fi
14998
14999
15000# Remove any trailing slashes in these variables.
15001test "${prefix}" != NONE &&
15002 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
15003test "${exec_prefix}" != NONE &&
15004 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
15005
15006ac_config_files="$ac_config_files Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile"
15007
15008ac_config_commands="$ac_config_commands default"
15009
15010cat >confcache <<\_ACEOF
15011# This file is a shell script that caches the results of configure
15012# tests run on this system so they can be shared between configure
15013# scripts and configure runs, see configure's option --config-cache.
15014# It is not useful on other systems. If it contains results you don't
15015# want to keep, you may remove or edit it.
15016#
15017# config.status only pays attention to the cache file if you give it
15018# the --recheck option to rerun configure.
15019#
15020# `ac_cv_env_foo' variables (set or unset) will be overridden when
15021# loading this file, other *unset* `ac_cv_foo' will be assigned the
15022# following values.
15023
15024_ACEOF
15025
15026# The following way of writing the cache mishandles newlines in values,
15027# but we know of no workaround that is simple, portable, and efficient.
15028# So, we kill variables containing newlines.
15029# Ultrix sh set writes to stderr and can't be redirected directly,
15030# and sets the high bit in the cache file unless we assign to the vars.
15031(
15032 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15033 eval ac_val=\$$ac_var
15034 case $ac_val in #(
15035 *${as_nl}*)
15036 case $ac_var in #(
15037 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15038$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15039 esac
15040 case $ac_var in #(
15041 _ | IFS | as_nl) ;; #(
15042 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15043 *) { eval $ac_var=; unset $ac_var;} ;;
15044 esac ;;
15045 esac
15046 done
15047
15048 (set) 2>&1 |
15049 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15050 *${as_nl}ac_space=\ *)
15051 # `set' does not quote correctly, so add quotes: double-quote
15052 # substitution turns \\\\ into \\, and sed turns \\ into \.
15053 sed -n \
15054 "s/'/'\\\\''/g;
15055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15056 ;; #(
15057 *)
15058 # `set' quotes correctly as required by POSIX, so do not add quotes.
15059 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15060 ;;
15061 esac |
15062 sort
15063) |
15064 sed '
15065 /^ac_cv_env_/b end
15066 t clear
15067 :clear
15068 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15069 t end
15070 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15071 :end' >>confcache
15072if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15073 if test -w "$cache_file"; then
15074 test "x$cache_file" != "x/dev/null" &&
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15076$as_echo "$as_me: updating cache $cache_file" >&6;}
15077 cat confcache >$cache_file
15078 else
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15080$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15081 fi
15082fi
15083rm -f confcache
15084
15085test "x$prefix" = xNONE && prefix=$ac_default_prefix
15086# Let make expand exec_prefix.
15087test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15088
15089DEFS=-DHAVE_CONFIG_H
15090
15091ac_libobjs=
15092ac_ltlibobjs=
15093for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15094 # 1. Remove the extension, and $U if already installed.
15095 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15096 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15097 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15098 # will be set to the directory where LIBOBJS objects are built.
15099 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15100 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15101done
15102LIBOBJS=$ac_libobjs
15103
15104LTLIBOBJS=$ac_ltlibobjs
15105
15106
15107
15108
15109: ${CONFIG_STATUS=./config.status}
15110ac_write_fail=0
15111ac_clean_files_save=$ac_clean_files
15112ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15113{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15114$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15115as_write_fail=0
15116cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15117#! $SHELL
15118# Generated by $as_me.
15119# Run this file to recreate the current configuration.
15120# Compiler output produced by configure, useful for debugging
15121# configure, is in config.log if it exists.
15122
15123debug=false
15124ac_cs_recheck=false
15125ac_cs_silent=false
15126
15127SHELL=\${CONFIG_SHELL-$SHELL}
15128export SHELL
15129_ASEOF
15130cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15131## -------------------- ##
15132## M4sh Initialization. ##
15133## -------------------- ##
15134
15135# Be more Bourne compatible
15136DUALCASE=1; export DUALCASE # for MKS sh
15137if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15138 emulate sh
15139 NULLCMD=:
15140 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15141 # is contrary to our usage. Disable this feature.
15142 alias -g '${1+"$@"}'='"$@"'
15143 setopt NO_GLOB_SUBST
15144else
15145 case `(set -o) 2>/dev/null` in #(
15146 *posix*) :
15147 set -o posix ;; #(
15148 *) :
15149 ;;
15150esac
15151fi
15152
15153
15154as_nl='
15155'
15156export as_nl
15157# Printing a long string crashes Solaris 7 /usr/bin/printf.
15158as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15159as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15160as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15161# Prefer a ksh shell builtin over an external printf program on Solaris,
15162# but without wasting forks for bash or zsh.
15163if test -z "$BASH_VERSION$ZSH_VERSION" \
15164 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15165 as_echo='print -r --'
15166 as_echo_n='print -rn --'
15167elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15168 as_echo='printf %s\n'
15169 as_echo_n='printf %s'
15170else
15171 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15172 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15173 as_echo_n='/usr/ucb/echo -n'
15174 else
15175 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15176 as_echo_n_body='eval
15177 arg=$1;
15178 case $arg in #(
15179 *"$as_nl"*)
15180 expr "X$arg" : "X\\(.*\\)$as_nl";
15181 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15182 esac;
15183 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15184 '
15185 export as_echo_n_body
15186 as_echo_n='sh -c $as_echo_n_body as_echo'
15187 fi
15188 export as_echo_body
15189 as_echo='sh -c $as_echo_body as_echo'
15190fi
15191
15192# The user is always right.
15193if test "${PATH_SEPARATOR+set}" != set; then
15194 PATH_SEPARATOR=:
15195 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15196 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15197 PATH_SEPARATOR=';'
15198 }
15199fi
15200
15201
15202# IFS
15203# We need space, tab and new line, in precisely that order. Quoting is
15204# there to prevent editors from complaining about space-tab.
15205# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15206# splitting by setting IFS to empty value.)
15207IFS=" "" $as_nl"
15208
15209# Find who we are. Look in the path if we contain no directory separator.
15210case $0 in #((
15211 *[\\/]* ) as_myself=$0 ;;
15212 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15213for as_dir in $PATH
15214do
15215 IFS=$as_save_IFS
15216 test -z "$as_dir" && as_dir=.
15217 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15218 done
15219IFS=$as_save_IFS
15220
15221 ;;
15222esac
15223# We did not find ourselves, most probably we were run as `sh COMMAND'
15224# in which case we are not to be found in the path.
15225if test "x$as_myself" = x; then
15226 as_myself=$0
15227fi
15228if test ! -f "$as_myself"; then
15229 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15230 exit 1
15231fi
15232
15233# Unset variables that we do not need and which cause bugs (e.g. in
15234# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15235# suppresses any "Segmentation fault" message there. '((' could
15236# trigger a bug in pdksh 5.2.14.
15237for as_var in BASH_ENV ENV MAIL MAILPATH
15238do eval test x\${$as_var+set} = xset \
15239 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15240done
15241PS1='$ '
15242PS2='> '
15243PS4='+ '
15244
15245# NLS nuisances.
15246LC_ALL=C
15247export LC_ALL
15248LANGUAGE=C
15249export LANGUAGE
15250
15251# CDPATH.
15252(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15253
15254
15255# as_fn_error ERROR [LINENO LOG_FD]
15256# ---------------------------------
15257# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15258# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15259# script with status $?, using 1 if that was 0.
15260as_fn_error ()
15261{
15262 as_status=$?; test $as_status -eq 0 && as_status=1
15263 if test "$3"; then
15264 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15265 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15266 fi
15267 $as_echo "$as_me: error: $1" >&2
15268 as_fn_exit $as_status
15269} # as_fn_error
15270
15271
15272# as_fn_set_status STATUS
15273# -----------------------
15274# Set $? to STATUS, without forking.
15275as_fn_set_status ()
15276{
15277 return $1
15278} # as_fn_set_status
15279
15280# as_fn_exit STATUS
15281# -----------------
15282# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15283as_fn_exit ()
15284{
15285 set +e
15286 as_fn_set_status $1
15287 exit $1
15288} # as_fn_exit
15289
15290# as_fn_unset VAR
15291# ---------------
15292# Portably unset VAR.
15293as_fn_unset ()
15294{
15295 { eval $1=; unset $1;}
15296}
15297as_unset=as_fn_unset
15298# as_fn_append VAR VALUE
15299# ----------------------
15300# Append the text in VALUE to the end of the definition contained in VAR. Take
15301# advantage of any shell optimizations that allow amortized linear growth over
15302# repeated appends, instead of the typical quadratic growth present in naive
15303# implementations.
15304if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15305 eval 'as_fn_append ()
15306 {
15307 eval $1+=\$2
15308 }'
15309else
15310 as_fn_append ()
15311 {
15312 eval $1=\$$1\$2
15313 }
15314fi # as_fn_append
15315
15316# as_fn_arith ARG...
15317# ------------------
15318# Perform arithmetic evaluation on the ARGs, and store the result in the
15319# global $as_val. Take advantage of shells that can avoid forks. The arguments
15320# must be portable across $(()) and expr.
15321if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15322 eval 'as_fn_arith ()
15323 {
15324 as_val=$(( $* ))
15325 }'
15326else
15327 as_fn_arith ()
15328 {
15329 as_val=`expr "$@" || test $? -eq 1`
15330 }
15331fi # as_fn_arith
15332
15333
15334if expr a : '\(a\)' >/dev/null 2>&1 &&
15335 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15336 as_expr=expr
15337else
15338 as_expr=false
15339fi
15340
15341if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15342 as_basename=basename
15343else
15344 as_basename=false
15345fi
15346
15347if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15348 as_dirname=dirname
15349else
15350 as_dirname=false
15351fi
15352
15353as_me=`$as_basename -- "$0" ||
15354$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15355 X"$0" : 'X\(//\)$' \| \
15356 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15357$as_echo X/"$0" |
15358 sed '/^.*\/\([^/][^/]*\)\/*$/{
15359 s//\1/
15360 q
15361 }
15362 /^X\/\(\/\/\)$/{
15363 s//\1/
15364 q
15365 }
15366 /^X\/\(\/\).*/{
15367 s//\1/
15368 q
15369 }
15370 s/.*/./; q'`
15371
15372# Avoid depending upon Character Ranges.
15373as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15374as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15375as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15376as_cr_digits='0123456789'
15377as_cr_alnum=$as_cr_Letters$as_cr_digits
15378
15379ECHO_C= ECHO_N= ECHO_T=
15380case `echo -n x` in #(((((
15381-n*)
15382 case `echo 'xy\c'` in
15383 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15384 xy) ECHO_C='\c';;
15385 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15386 ECHO_T=' ';;
15387 esac;;
15388*)
15389 ECHO_N='-n';;
15390esac
15391
15392rm -f conf$$ conf$$.exe conf$$.file
15393if test -d conf$$.dir; then
15394 rm -f conf$$.dir/conf$$.file
15395else
15396 rm -f conf$$.dir
15397 mkdir conf$$.dir 2>/dev/null
15398fi
15399if (echo >conf$$.file) 2>/dev/null; then
15400 if ln -s conf$$.file conf$$ 2>/dev/null; then
15401 as_ln_s='ln -s'
15402 # ... but there are two gotchas:
15403 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15404 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15405 # In both cases, we have to default to `cp -p'.
15406 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15407 as_ln_s='cp -p'
15408 elif ln conf$$.file conf$$ 2>/dev/null; then
15409 as_ln_s=ln
15410 else
15411 as_ln_s='cp -p'
15412 fi
15413else
15414 as_ln_s='cp -p'
15415fi
15416rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15417rmdir conf$$.dir 2>/dev/null
15418
15419
15420# as_fn_mkdir_p
15421# -------------
15422# Create "$as_dir" as a directory, including parents if necessary.
15423as_fn_mkdir_p ()
15424{
15425
15426 case $as_dir in #(
15427 -*) as_dir=./$as_dir;;
15428 esac
15429 test -d "$as_dir" || eval $as_mkdir_p || {
15430 as_dirs=
15431 while :; do
15432 case $as_dir in #(
15433 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15434 *) as_qdir=$as_dir;;
15435 esac
15436 as_dirs="'$as_qdir' $as_dirs"
15437 as_dir=`$as_dirname -- "$as_dir" ||
15438$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15439 X"$as_dir" : 'X\(//\)[^/]' \| \
15440 X"$as_dir" : 'X\(//\)$' \| \
15441 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15442$as_echo X"$as_dir" |
15443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15444 s//\1/
15445 q
15446 }
15447 /^X\(\/\/\)[^/].*/{
15448 s//\1/
15449 q
15450 }
15451 /^X\(\/\/\)$/{
15452 s//\1/
15453 q
15454 }
15455 /^X\(\/\).*/{
15456 s//\1/
15457 q
15458 }
15459 s/.*/./; q'`
15460 test -d "$as_dir" && break
15461 done
15462 test -z "$as_dirs" || eval "mkdir $as_dirs"
15463 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15464
15465
15466} # as_fn_mkdir_p
15467if mkdir -p . 2>/dev/null; then
15468 as_mkdir_p='mkdir -p "$as_dir"'
15469else
15470 test -d ./-p && rmdir ./-p
15471 as_mkdir_p=false
15472fi
15473
15474if test -x / >/dev/null 2>&1; then
15475 as_test_x='test -x'
15476else
15477 if ls -dL / >/dev/null 2>&1; then
15478 as_ls_L_option=L
15479 else
15480 as_ls_L_option=
15481 fi
15482 as_test_x='
15483 eval sh -c '\''
15484 if test -d "$1"; then
15485 test -d "$1/.";
15486 else
15487 case $1 in #(
15488 -*)set "./$1";;
15489 esac;
15490 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15491 ???[sx]*):;;*)false;;esac;fi
15492 '\'' sh
15493 '
15494fi
15495as_executable_p=$as_test_x
15496
15497# Sed expression to map a string onto a valid CPP name.
15498as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15499
15500# Sed expression to map a string onto a valid variable name.
15501as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15502
15503
15504exec 6>&1
15505## ----------------------------------- ##
15506## Main body of $CONFIG_STATUS script. ##
15507## ----------------------------------- ##
15508_ASEOF
15509test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15510
15511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15512# Save the log message, to keep $0 and so on meaningful, and to
15513# report actual input values of CONFIG_FILES etc. instead of their
15514# values after options handling.
15515ac_log="
15516This file was extended by emacs $as_me 24.0.50, which was
15517generated by GNU Autoconf 2.65. Invocation command line was
15518
15519 CONFIG_FILES = $CONFIG_FILES
15520 CONFIG_HEADERS = $CONFIG_HEADERS
15521 CONFIG_LINKS = $CONFIG_LINKS
15522 CONFIG_COMMANDS = $CONFIG_COMMANDS
15523 $ $0 $@
15524
15525on `(hostname || uname -n) 2>/dev/null | sed 1q`
15526"
15527
15528_ACEOF
15529
15530case $ac_config_files in *"
15531"*) set x $ac_config_files; shift; ac_config_files=$*;;
15532esac
15533
15534case $ac_config_headers in *"
15535"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15536esac
15537
15538
15539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15540# Files that config.status was made for.
15541config_files="$ac_config_files"
15542config_headers="$ac_config_headers"
15543config_commands="$ac_config_commands"
15544
15545_ACEOF
15546
15547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15548ac_cs_usage="\
15549\`$as_me' instantiates files and other configuration actions
15550from templates according to the current configuration. Unless the files
15551and actions are specified as TAGs, all are instantiated by default.
15552
15553Usage: $0 [OPTION]... [TAG]...
15554
15555 -h, --help print this help, then exit
15556 -V, --version print version number and configuration settings, then exit
15557 --config print configuration, then exit
15558 -q, --quiet, --silent
15559 do not print progress messages
15560 -d, --debug don't remove temporary files
15561 --recheck update $as_me by reconfiguring in the same conditions
15562 --file=FILE[:TEMPLATE]
15563 instantiate the configuration file FILE
15564 --header=FILE[:TEMPLATE]
15565 instantiate the configuration header FILE
15566
15567Configuration files:
15568$config_files
15569
15570Configuration headers:
15571$config_headers
15572
15573Configuration commands:
15574$config_commands
15575
15576Report bugs to the package provider."
15577
15578_ACEOF
15579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15580ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15581ac_cs_version="\\
15582emacs config.status 24.0.50
15583configured by $0, generated by GNU Autoconf 2.65,
15584 with options \\"\$ac_cs_config\\"
15585
15586Copyright (C) 2009 Free Software Foundation, Inc.
15587This config.status script is free software; the Free Software Foundation
15588gives unlimited permission to copy, distribute and modify it."
15589
15590ac_pwd='$ac_pwd'
15591srcdir='$srcdir'
15592INSTALL='$INSTALL'
15593test -n "\$AWK" || AWK=awk
15594_ACEOF
15595
15596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15597# The default lists apply if the user does not specify any file.
15598ac_need_defaults=:
15599while test $# != 0
15600do
15601 case $1 in
15602 --*=*)
15603 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15604 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15605 ac_shift=:
15606 ;;
15607 *)
15608 ac_option=$1
15609 ac_optarg=$2
15610 ac_shift=shift
15611 ;;
15612 esac
15613
15614 case $ac_option in
15615 # Handling of the options.
15616 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15617 ac_cs_recheck=: ;;
15618 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15619 $as_echo "$ac_cs_version"; exit ;;
15620 --config | --confi | --conf | --con | --co | --c )
15621 $as_echo "$ac_cs_config"; exit ;;
15622 --debug | --debu | --deb | --de | --d | -d )
15623 debug=: ;;
15624 --file | --fil | --fi | --f )
15625 $ac_shift
15626 case $ac_optarg in
15627 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15628 esac
15629 as_fn_append CONFIG_FILES " '$ac_optarg'"
15630 ac_need_defaults=false;;
15631 --header | --heade | --head | --hea )
15632 $ac_shift
15633 case $ac_optarg in
15634 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15635 esac
15636 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15637 ac_need_defaults=false;;
15638 --he | --h)
15639 # Conflict between --help and --header
15640 as_fn_error "ambiguous option: \`$1'
15641Try \`$0 --help' for more information.";;
15642 --help | --hel | -h )
15643 $as_echo "$ac_cs_usage"; exit ;;
15644 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15645 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15646 ac_cs_silent=: ;;
15647
15648 # This is an error.
15649 -*) as_fn_error "unrecognized option: \`$1'
15650Try \`$0 --help' for more information." ;;
15651
15652 *) as_fn_append ac_config_targets " $1"
15653 ac_need_defaults=false ;;
15654
15655 esac
15656 shift
15657done
15658
15659ac_configure_extra_args=
15660
15661if $ac_cs_silent; then
15662 exec 6>/dev/null
15663 ac_configure_extra_args="$ac_configure_extra_args --silent"
15664fi
15665
15666_ACEOF
15667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15668if \$ac_cs_recheck; then
15669 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15670 shift
15671 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15672 CONFIG_SHELL='$SHELL'
15673 export CONFIG_SHELL
15674 exec "\$@"
15675fi
15676
15677_ACEOF
15678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15679exec 5>>config.log
15680{
15681 echo
15682 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15683## Running $as_me. ##
15684_ASBOX
15685 $as_echo "$ac_log"
15686} >&5
15687
15688_ACEOF
15689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15690#
15691# INIT-COMMANDS
15692#
15693GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15694
15695_ACEOF
15696
15697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15698
15699# Handling of arguments.
15700for ac_config_target in $ac_config_targets
15701do
15702 case $ac_config_target in
15703 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15704 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15705 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
15706 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
15707 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
15708 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
15709 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
15710 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
15711 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15712 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
15713 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
15714 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
15715 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15716
15717 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15718 esac
15719done
15720
15721
15722# If the user did not use the arguments to specify the items to instantiate,
15723# then the envvar interface is used. Set only those that are not.
15724# We use the long form for the default assignment because of an extremely
15725# bizarre bug on SunOS 4.1.3.
15726if $ac_need_defaults; then
15727 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15728 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15729 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15730fi
15731
15732# Have a temporary directory for convenience. Make it in the build tree
15733# simply because there is no reason against having it here, and in addition,
15734# creating and moving files from /tmp can sometimes cause problems.
15735# Hook for its removal unless debugging.
15736# Note that there is a small window in which the directory will not be cleaned:
15737# after its creation but before its name has been assigned to `$tmp'.
15738$debug ||
15739{
15740 tmp=
15741 trap 'exit_status=$?
15742 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15743' 0
15744 trap 'as_fn_exit 1' 1 2 13 15
15745}
15746# Create a (secure) tmp directory for tmp files.
15747
15748{
15749 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15750 test -n "$tmp" && test -d "$tmp"
15751} ||
15752{
15753 tmp=./conf$$-$RANDOM
15754 (umask 077 && mkdir "$tmp")
15755} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15756
15757# Set up the scripts for CONFIG_FILES section.
15758# No need to generate them if there are no CONFIG_FILES.
15759# This happens for instance with `./config.status config.h'.
15760if test -n "$CONFIG_FILES"; then
15761
15762if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15763 ac_cs_awk_getline=:
15764 ac_cs_awk_pipe_init=
15765 ac_cs_awk_read_file='
15766 while ((getline aline < (F[key])) > 0)
15767 print(aline)
15768 close(F[key])'
15769 ac_cs_awk_pipe_fini=
15770else
15771 ac_cs_awk_getline=false
15772 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15773 ac_cs_awk_read_file='
15774 print "|#_!!_#|"
15775 print "cat " F[key] " &&"
15776 '$ac_cs_awk_pipe_init
15777 # The final `:' finishes the AND list.
15778 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15779fi
15780ac_cr=`echo X | tr X '\015'`
15781# On cygwin, bash can eat \r inside `` if the user requested igncr.
15782# But we know of no other shell where ac_cr would be empty at this
15783# point, so we can use a bashism as a fallback.
15784if test "x$ac_cr" = x; then
15785 eval ac_cr=\$\'\\r\'
15786fi
15787ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15788if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15789 ac_cs_awk_cr='\r'
15790else
15791 ac_cs_awk_cr=$ac_cr
15792fi
15793
15794echo 'BEGIN {' >"$tmp/subs1.awk" &&
15795_ACEOF
15796
15797# Create commands to substitute file output variables.
15798{
15799 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15800 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15801 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15802 echo "_ACAWK" &&
15803 echo "_ACEOF"
15804} >conf$$files.sh &&
15805. ./conf$$files.sh ||
15806 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15807rm -f conf$$files.sh
15808
15809{
15810 echo "cat >conf$$subs.awk <<_ACEOF" &&
15811 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15812 echo "_ACEOF"
15813} >conf$$subs.sh ||
15814 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15815ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15816ac_delim='%!_!# '
15817for ac_last_try in false false false false false :; do
15818 . ./conf$$subs.sh ||
15819 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15820
15821 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15822 if test $ac_delim_n = $ac_delim_num; then
15823 break
15824 elif $ac_last_try; then
15825 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15826 else
15827 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15828 fi
15829done
15830rm -f conf$$subs.sh
15831
15832cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15833cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15834_ACEOF
15835sed -n '
15836h
15837s/^/S["/; s/!.*/"]=/
15838p
15839g
15840s/^[^!]*!//
15841:repl
15842t repl
15843s/'"$ac_delim"'$//
15844t delim
15845:nl
15846h
15847s/\(.\{148\}\)..*/\1/
15848t more1
15849s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15850p
15851n
15852b repl
15853:more1
15854s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15855p
15856g
15857s/.\{148\}//
15858t nl
15859:delim
15860h
15861s/\(.\{148\}\)..*/\1/
15862t more2
15863s/["\\]/\\&/g; s/^/"/; s/$/"/
15864p
15865b
15866:more2
15867s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15868p
15869g
15870s/.\{148\}//
15871t delim
15872' <conf$$subs.awk | sed '
15873/^[^""]/{
15874 N
15875 s/\n//
15876}
15877' >>$CONFIG_STATUS || ac_write_fail=1
15878rm -f conf$$subs.awk
15879cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15880_ACAWK
15881cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15882 for (key in S) S_is_set[key] = 1
15883 FS = "\a"
15884 \$ac_cs_awk_pipe_init
15885}
15886{
15887 line = $ 0
15888 nfields = split(line, field, "@")
15889 substed = 0
15890 len = length(field[1])
15891 for (i = 2; i < nfields; i++) {
15892 key = field[i]
15893 keylen = length(key)
15894 if (S_is_set[key]) {
15895 value = S[key]
15896 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15897 len += length(value) + length(field[++i])
15898 substed = 1
15899 } else
15900 len += 1 + keylen
15901 }
15902 if (nfields == 3 && !substed) {
15903 key = field[2]
15904 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15905 \$ac_cs_awk_read_file
15906 next
15907 }
15908 }
15909 print line
15910}
15911\$ac_cs_awk_pipe_fini
15912_ACAWK
15913_ACEOF
15914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15915if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15916 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15917else
15918 cat
15919fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15920 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15921_ACEOF
15922
15923# VPATH may cause trouble with some makes, so we remove $(srcdir),
15924# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15925# trailing colons and then remove the whole line if VPATH becomes empty
15926# (actually we leave an empty line to preserve line numbers).
15927if test "x$srcdir" = x.; then
15928 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15929s/:*\$(srcdir):*/:/
15930s/:*\${srcdir}:*/:/
15931s/:*@srcdir@:*/:/
15932s/^\([^=]*=[ ]*\):*/\1/
15933s/:*$//
15934s/^[^=]*=[ ]*$//
15935}'
15936fi
15937
15938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15939fi # test -n "$CONFIG_FILES"
15940
15941# Set up the scripts for CONFIG_HEADERS section.
15942# No need to generate them if there are no CONFIG_HEADERS.
15943# This happens for instance with `./config.status Makefile'.
15944if test -n "$CONFIG_HEADERS"; then
15945cat >"$tmp/defines.awk" <<\_ACAWK ||
15946BEGIN {
15947_ACEOF
15948
15949# Transform confdefs.h into an awk script `defines.awk', embedded as
15950# here-document in config.status, that substitutes the proper values into
15951# config.h.in to produce config.h.
15952
15953# Create a delimiter string that does not exist in confdefs.h, to ease
15954# handling of long lines.
15955ac_delim='%!_!# '
15956for ac_last_try in false false :; do
15957 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15958 if test -z "$ac_t"; then
15959 break
15960 elif $ac_last_try; then
15961 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15962 else
15963 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15964 fi
15965done
15966
15967# For the awk script, D is an array of macro values keyed by name,
15968# likewise P contains macro parameters if any. Preserve backslash
15969# newline sequences.
15970
15971ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15972sed -n '
15973s/.\{148\}/&'"$ac_delim"'/g
15974t rset
15975:rset
15976s/^[ ]*#[ ]*define[ ][ ]*/ /
15977t def
15978d
15979:def
15980s/\\$//
15981t bsnl
15982s/["\\]/\\&/g
15983s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15984D["\1"]=" \3"/p
15985s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15986d
15987:bsnl
15988s/["\\]/\\&/g
15989s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15990D["\1"]=" \3\\\\\\n"\\/p
15991t cont
15992s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15993t cont
15994d
15995:cont
15996n
15997s/.\{148\}/&'"$ac_delim"'/g
15998t clear
15999:clear
16000s/\\$//
16001t bsnlc
16002s/["\\]/\\&/g; s/^/"/; s/$/"/p
16003d
16004:bsnlc
16005s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16006b cont
16007' <confdefs.h | sed '
16008s/'"$ac_delim"'/"\\\
16009"/g' >>$CONFIG_STATUS || ac_write_fail=1
16010
16011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16012 for (key in D) D_is_set[key] = 1
16013 FS = "\a"
16014}
16015/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16016 line = \$ 0
16017 split(line, arg, " ")
16018 if (arg[1] == "#") {
16019 defundef = arg[2]
16020 mac1 = arg[3]
16021 } else {
16022 defundef = substr(arg[1], 2)
16023 mac1 = arg[2]
16024 }
16025 split(mac1, mac2, "(") #)
16026 macro = mac2[1]
16027 prefix = substr(line, 1, index(line, defundef) - 1)
16028 if (D_is_set[macro]) {
16029 # Preserve the white space surrounding the "#".
16030 print prefix "define", macro P[macro] D[macro]
16031 next
16032 } else {
16033 # Replace #undef with comments. This is necessary, for example,
16034 # in the case of _POSIX_SOURCE, which is predefined and required
16035 # on some systems where configure will not decide to define it.
16036 if (defundef == "undef") {
16037 print "/*", prefix defundef, macro, "*/"
16038 next
16039 }
16040 }
16041}
16042{ print }
16043_ACAWK
16044_ACEOF
16045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16046 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16047fi # test -n "$CONFIG_HEADERS"
16048
16049
16050eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16051shift
16052for ac_tag
16053do
16054 case $ac_tag in
16055 :[FHLC]) ac_mode=$ac_tag; continue;;
16056 esac
16057 case $ac_mode$ac_tag in
16058 :[FHL]*:*);;
16059 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16060 :[FH]-) ac_tag=-:-;;
16061 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16062 esac
16063 ac_save_IFS=$IFS
16064 IFS=:
16065 set x $ac_tag
16066 IFS=$ac_save_IFS
16067 shift
16068 ac_file=$1
16069 shift
16070
16071 case $ac_mode in
16072 :L) ac_source=$1;;
16073 :[FH])
16074 ac_file_inputs=
16075 for ac_f
16076 do
16077 case $ac_f in
16078 -) ac_f="$tmp/stdin";;
16079 *) # Look for the file first in the build tree, then in the source tree
16080 # (if the path is not absolute). The absolute path cannot be DOS-style,
16081 # because $ac_f cannot contain `:'.
16082 test -f "$ac_f" ||
16083 case $ac_f in
16084 [\\/$]*) false;;
16085 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16086 esac ||
16087 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16088 esac
16089 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16090 as_fn_append ac_file_inputs " '$ac_f'"
16091 done
16092
16093 # Let's still pretend it is `configure' which instantiates (i.e., don't
16094 # use $as_me), people would be surprised to read:
16095 # /* config.h. Generated by config.status. */
16096 configure_input='Generated from '`
16097 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16098 `' by configure.'
16099 if test x"$ac_file" != x-; then
16100 configure_input="$ac_file. $configure_input"
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16102$as_echo "$as_me: creating $ac_file" >&6;}
16103 fi
16104 # Neutralize special characters interpreted by sed in replacement strings.
16105 case $configure_input in #(
16106 *\&* | *\|* | *\\* )
16107 ac_sed_conf_input=`$as_echo "$configure_input" |
16108 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16109 *) ac_sed_conf_input=$configure_input;;
16110 esac
16111
16112 case $ac_tag in
16113 *:-:* | *:-) cat >"$tmp/stdin" \
16114 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16115 esac
16116 ;;
16117 esac
16118
16119 ac_dir=`$as_dirname -- "$ac_file" ||
16120$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16121 X"$ac_file" : 'X\(//\)[^/]' \| \
16122 X"$ac_file" : 'X\(//\)$' \| \
16123 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16124$as_echo X"$ac_file" |
16125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16126 s//\1/
16127 q
16128 }
16129 /^X\(\/\/\)[^/].*/{
16130 s//\1/
16131 q
16132 }
16133 /^X\(\/\/\)$/{
16134 s//\1/
16135 q
16136 }
16137 /^X\(\/\).*/{
16138 s//\1/
16139 q
16140 }
16141 s/.*/./; q'`
16142 as_dir="$ac_dir"; as_fn_mkdir_p
16143 ac_builddir=.
16144
16145case "$ac_dir" in
16146.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16147*)
16148 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16149 # A ".." for each directory in $ac_dir_suffix.
16150 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16151 case $ac_top_builddir_sub in
16152 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16153 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16154 esac ;;
16155esac
16156ac_abs_top_builddir=$ac_pwd
16157ac_abs_builddir=$ac_pwd$ac_dir_suffix
16158# for backward compatibility:
16159ac_top_builddir=$ac_top_build_prefix
16160
16161case $srcdir in
16162 .) # We are building in place.
16163 ac_srcdir=.
16164 ac_top_srcdir=$ac_top_builddir_sub
16165 ac_abs_top_srcdir=$ac_pwd ;;
16166 [\\/]* | ?:[\\/]* ) # Absolute name.
16167 ac_srcdir=$srcdir$ac_dir_suffix;
16168 ac_top_srcdir=$srcdir
16169 ac_abs_top_srcdir=$srcdir ;;
16170 *) # Relative name.
16171 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16172 ac_top_srcdir=$ac_top_build_prefix$srcdir
16173 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16174esac
16175ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16176
16177
16178 case $ac_mode in
16179 :F)
16180 #
16181 # CONFIG_FILE
16182 #
16183
16184 case $INSTALL in
16185 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16186 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16187 esac
16188_ACEOF
16189
16190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16191# If the template does not know about datarootdir, expand it.
16192# FIXME: This hack should be removed a few years after 2.60.
16193ac_datarootdir_hack=; ac_datarootdir_seen=
16194ac_sed_dataroot='
16195/datarootdir/ {
16196 p
16197 q
16198}
16199/@datadir@/p
16200/@docdir@/p
16201/@infodir@/p
16202/@localedir@/p
16203/@mandir@/p'
16204case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16205*datarootdir*) ac_datarootdir_seen=yes;;
16206*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16208$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16209_ACEOF
16210cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16211 ac_datarootdir_hack='
16212 s&@datadir@&$datadir&g
16213 s&@docdir@&$docdir&g
16214 s&@infodir@&$infodir&g
16215 s&@localedir@&$localedir&g
16216 s&@mandir@&$mandir&g
16217 s&\\\${datarootdir}&$datarootdir&g' ;;
16218esac
16219_ACEOF
16220
16221# Neutralize VPATH when `$srcdir' = `.'.
16222# Shell code in configure.ac might set extrasub.
16223# FIXME: do we really want to maintain this feature?
16224cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16225ac_sed_extra="$ac_vpsub
16226$extrasub
16227_ACEOF
16228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16229:t
16230/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16231s|@configure_input@|$ac_sed_conf_input|;t t
16232s&@top_builddir@&$ac_top_builddir_sub&;t t
16233s&@top_build_prefix@&$ac_top_build_prefix&;t t
16234s&@srcdir@&$ac_srcdir&;t t
16235s&@abs_srcdir@&$ac_abs_srcdir&;t t
16236s&@top_srcdir@&$ac_top_srcdir&;t t
16237s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16238s&@builddir@&$ac_builddir&;t t
16239s&@abs_builddir@&$ac_abs_builddir&;t t
16240s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16241s&@INSTALL@&$ac_INSTALL&;t t
16242$ac_datarootdir_hack
16243"
16244eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16245if $ac_cs_awk_getline; then
16246 $AWK -f "$tmp/subs.awk"
16247else
16248 $AWK -f "$tmp/subs.awk" | $SHELL
16249fi >$tmp/out \
16250 || as_fn_error "could not create $ac_file" "$LINENO" 5
16251
16252test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16253 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16254 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16256which seems to be undefined. Please make sure it is defined." >&5
16257$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16258which seems to be undefined. Please make sure it is defined." >&2;}
16259
16260 rm -f "$tmp/stdin"
16261 case $ac_file in
16262 -) cat "$tmp/out" && rm -f "$tmp/out";;
16263 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16264 esac \
16265 || as_fn_error "could not create $ac_file" "$LINENO" 5
16266 ;;
16267 :H)
16268 #
16269 # CONFIG_HEADER
16270 #
16271 if test x"$ac_file" != x-; then
16272 {
16273 $as_echo "/* $configure_input */" \
16274 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16275 } >"$tmp/config.h" \
16276 || as_fn_error "could not create $ac_file" "$LINENO" 5
16277 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16279$as_echo "$as_me: $ac_file is unchanged" >&6;}
16280 else
16281 rm -f "$ac_file"
16282 mv "$tmp/config.h" "$ac_file" \
16283 || as_fn_error "could not create $ac_file" "$LINENO" 5
16284 fi
16285 else
16286 $as_echo "/* $configure_input */" \
16287 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16288 || as_fn_error "could not create -" "$LINENO" 5
16289 fi
16290 ;;
16291
16292 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16293$as_echo "$as_me: executing $ac_file commands" >&6;}
16294 ;;
16295 esac
16296
16297
16298 case $ac_file$ac_mode in
16299 "default":C)
16300
16301### Make the necessary directories, if they don't exist.
16302for dir in etc lisp ; do
16303 test -d ${dir} || mkdir ${dir}
16304done
16305
16306echo creating src/epaths.h
16307${MAKE-make} epaths-force
16308
16309if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
16310 echo creating src/.gdbinit
16311 echo source $srcdir/src/.gdbinit > src/.gdbinit
16312fi
16313
16314 ;;
16315
16316 esac
16317done # for ac_tag
16318
16319
16320as_fn_exit 0
16321_ACEOF
16322ac_clean_files=$ac_clean_files_save
16323
16324test $ac_write_fail = 0 ||
16325 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16326
16327
16328# configure is writing to config.log, and then calls config.status.
16329# config.status does its own redirection, appending to config.log.
16330# Unfortunately, on DOS this fails, as config.log is still kept open
16331# by configure, so config.status won't be able to write to it; its
16332# output is simply discarded. So we exec the FD to /dev/null,
16333# effectively closing config.log, so it can be properly (re)opened and
16334# appended to by config.status. When coming back to configure, we
16335# need to make the FD available again.
16336if test "$no_create" != yes; then
16337 ac_cs_success=:
16338 ac_config_status_args=
16339 test "$silent" = yes &&
16340 ac_config_status_args="$ac_config_status_args --quiet"
16341 exec 5>/dev/null
16342 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16343 exec 5>>config.log
16344 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16345 # would make configure fail if this is the last instruction.
16346 $ac_cs_success || as_fn_exit $?
16347fi
16348if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16350$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16351fi
16352
16353