Pass CFLAGS to the linker.
[bpt/emacs.git] / configure
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
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
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'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
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.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
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.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
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
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
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+"$@"}
222 fi
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
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_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.
269 as_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.
279 as_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.
329 if (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 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # 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.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # 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.
364 as_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
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
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.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
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
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
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 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 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.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.0.50'
553 PACKAGE_STRING='emacs 24.0.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
556
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_config_libobj_dir=src
595 ac_header_list=
596 ac_func_list=
597 ac_subst_vars='LTLIBOBJS
598 WINDOW_SUPPORT
599 TOOLTIP_SUPPORT
600 MOUSE_SUPPORT
601 LIB_GCC
602 LD_FIRSTFLAG
603 LD_SWITCH_SYSTEM_TEMACS
604 POST_ALLOC_OBJ
605 PRE_ALLOC_OBJ
606 CYGWIN_OBJ
607 RALLOC_OBJ
608 OLDXMENU_DEPS
609 LIBX_OTHER
610 LIBXMENU
611 OLDXMENU
612 OLDXMENU_TARGET
613 LIBXT_OTHER
614 TOOLKIT_LIBW
615 WIDGET_OBJ
616 XOBJ
617 XMENU_OBJ
618 FONT_OBJ
619 OTHER_FILES
620 GNU_OBJC_CFLAGS
621 ns_appsrc
622 ns_appresdir
623 ns_appbindir
624 ns_appdir
625 opsysfile
626 machfile
627 X_TOOLKIT_TYPE
628 C_SWITCH_X_SYSTEM
629 C_SWITCH_X_SITE
630 LD_SWITCH_X_SITE
631 gameuser
632 gamedir
633 bitmapdir
634 archlibdir
635 etcdir
636 x_default_search_path
637 lisppath
638 locallisppath
639 lispdir
640 srcdir
641 canonical
642 configuration
643 version
644 KRB4LIB
645 DESLIB
646 KRB5LIB
647 CRYPTOLIB
648 COM_ERRLIB
649 LIBRESOLV
650 LIBHESIOD
651 TERMCAP_OBJ
652 LIBS_TERMCAP
653 GETOPTOBJS
654 GETOPT_H
655 GETLOADAVG_LIBS
656 KMEM_GROUP
657 NEED_SETGID
658 LIBOBJS
659 BLESSMAIL_TARGET
660 LIBS_MAIL
661 liblockfile
662 ALLOCA
663 LIBXML2_LIBS
664 LIBXML2_CFLAGS
665 LIBXSM
666 LIBGPM
667 LIBGIF
668 LIBTIFF
669 LIBPNG
670 LIBJPEG
671 LIBXPM
672 FREETYPE_LIBS
673 FREETYPE_CFLAGS
674 M17N_FLT_LIBS
675 M17N_FLT_CFLAGS
676 LIBOTF_LIBS
677 LIBOTF_CFLAGS
678 XFT_LIBS
679 XFT_CFLAGS
680 FONTCONFIG_LIBS
681 FONTCONFIG_CFLAGS
682 LIBXMU
683 LIBXTR6
684 LIBGNUTLS_LIBS
685 LIBGNUTLS_CFLAGS
686 LIBSELINUX_LIBS
687 GCONF_LIBS
688 GCONF_CFLAGS
689 DBUS_OBJ
690 DBUS_LIBS
691 DBUS_CFLAGS
692 GTK_OBJ
693 GTK_LIBS
694 GTK_CFLAGS
695 IMAGEMAGICK_LIBS
696 IMAGEMAGICK_CFLAGS
697 RSVG_LIBS
698 RSVG_CFLAGS
699 VMLIMIT_OBJ
700 GMALLOC_OBJ
701 HAVE_XSERVER
702 LIB_STANDARD
703 NS_SUPPORT
704 NS_OBJ
705 TEMACS_LDFLAGS2
706 LD_SWITCH_X_SITE_AUX_RPATH
707 LD_SWITCH_X_SITE_AUX
708 XMKMF
709 DEPFLAGS
710 MKDEPDIR
711 SET_MAKE
712 CFLAGS_SOUND
713 ALSA_LIBS
714 ALSA_CFLAGS
715 PKG_CONFIG
716 LIBSOUND
717 START_FILES
718 LIB_MATH
719 CRT_DIR
720 LIBS_SYSTEM
721 C_SWITCH_SYSTEM
722 UNEXEC_OBJ
723 C_SWITCH_MACHINE
724 LD_SWITCH_SYSTEM
725 CANNOT_DUMP
726 MAKEINFO
727 GZIP_PROG
728 INSTALL_INFO
729 RANLIB
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 C_WARNINGS_SWITCH
734 EGREP
735 GREP
736 CPP
737 OBJEXT
738 EXEEXT
739 ac_ct_CC
740 CPPFLAGS
741 LDFLAGS
742 CFLAGS
743 CC
744 host_os
745 host_vendor
746 host_cpu
747 host
748 build_os
749 build_vendor
750 build_cpu
751 build
752 PROFILING_CFLAGS
753 MAINT
754 GZIP_INFO
755 target_alias
756 host_alias
757 build_alias
758 LIBS
759 ECHO_T
760 ECHO_N
761 ECHO_C
762 DEFS
763 mandir
764 localedir
765 libdir
766 psdir
767 pdfdir
768 dvidir
769 htmldir
770 infodir
771 docdir
772 oldincludedir
773 includedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL'
793 ac_subst_files='deps_frag
794 ns_frag'
795 ac_user_opts='
796 enable_option_checking
797 with_pop
798 with_kerberos
799 with_kerberos5
800 with_hesiod
801 with_mmdf
802 with_mail_unlink
803 with_mailhost
804 with_sound
805 with_sync_input
806 with_x_toolkit
807 with_xpm
808 with_jpeg
809 with_tiff
810 with_gif
811 with_png
812 with_rsvg
813 with_xml2
814 with_imagemagick
815 with_xft
816 with_libotf
817 with_m17n_flt
818 with_toolkit_scroll_bars
819 with_xaw3d
820 with_xim
821 with_ns
822 with_gpm
823 with_dbus
824 with_gconf
825 with_selinux
826 with_gnutls
827 with_makeinfo
828 with_compress_info
829 with_pkg_config_prog
830 with_crt_dir
831 with_gnustep_conf
832 enable_ns_self_contained
833 enable_asserts
834 enable_maintainer_mode
835 enable_locallisppath
836 enable_checking
837 enable_use_lisp_union_type
838 enable_profiling
839 enable_autodepend
840 enable_largefile
841 with_x
842 '
843 ac_precious_vars='build_alias
844 host_alias
845 target_alias
846 CC
847 CFLAGS
848 LDFLAGS
849 LIBS
850 CPPFLAGS
851 CPP
852 XMKMF'
853
854
855 # Initialize some variables set by options.
856 ac_init_help=
857 ac_init_version=false
858 ac_unrecognized_opts=
859 ac_unrecognized_sep=
860 # The variables have the same names as the options, with
861 # dashes changed to underlines.
862 cache_file=/dev/null
863 exec_prefix=NONE
864 no_create=
865 no_recursion=
866 prefix=NONE
867 program_prefix=NONE
868 program_suffix=NONE
869 program_transform_name=s,x,x,
870 silent=
871 site=
872 srcdir=
873 verbose=
874 x_includes=NONE
875 x_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.)
883 bindir='${exec_prefix}/bin'
884 sbindir='${exec_prefix}/sbin'
885 libexecdir='${exec_prefix}/libexec'
886 datarootdir='${prefix}/share'
887 datadir='${datarootdir}'
888 sysconfdir='${prefix}/etc'
889 sharedstatedir='${prefix}/com'
890 localstatedir='${prefix}/var'
891 includedir='${prefix}/include'
892 oldincludedir='/usr/include'
893 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
894 infodir='${datarootdir}/info'
895 htmldir='${docdir}'
896 dvidir='${docdir}'
897 pdfdir='${docdir}'
898 psdir='${docdir}'
899 libdir='${exec_prefix}/lib'
900 localedir='${datarootdir}/locale'
901 mandir='${datarootdir}/man'
902
903 ac_prev=
904 ac_dashdash=
905 for ac_option
906 do
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'
1238 Try \`$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
1260 done
1261
1262 if test -n "$ac_prev"; then
1263 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1264 as_fn_error "missing argument to $ac_option"
1265 fi
1266
1267 if 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
1273 fi
1274
1275 # Check all directory arguments for consistency.
1276 for 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
1280 do
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"
1294 done
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.
1299 build=$build_alias
1300 host=$host_alias
1301 target=$target_alias
1302
1303 # FIXME: To remove some day.
1304 if 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
1312 fi
1313
1314 ac_tool_prefix=
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316
1317 test "$silent" = yes && exec 6>/dev/null
1318
1319
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323 as_fn_error "working directory cannot be determined"
1324 test "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.
1329 if 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
1359 else
1360 ac_srcdir_defaulted=no
1361 fi
1362 if 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"
1365 fi
1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367 ac_abs_confdir=`(
1368 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1369 pwd)`
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372 srcdir=.
1373 fi
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.
1377 case $srcdir in
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 esac
1380 for 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}
1385 done
1386
1387 #
1388 # Report the --help message.
1389 #
1390 if 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
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1400
1401 Defaults for the options are specified in brackets.
1402
1403 Configuration:
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
1414 Installation 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
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1424
1425 For better control, use the options below.
1426
1427 Fine 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
1451 Program 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
1456 X features:
1457 --x-includes=DIR X include files are in DIR
1458 --x-libraries=DIR X library files are in DIR
1459
1460 System 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
1464 fi
1465
1466 if 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
1472 Optional 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
1501 Optional 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
1549 Some 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
1560 Use these variables to override the choices made by `configure' or to help
1561 it to find libraries and programs with nonstandard names/locations.
1562
1563 Report bugs to the package provider.
1564 _ACEOF
1565 ac_status=$?
1566 fi
1567
1568 if 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
1576 case "$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 ;;
1586 esac
1587 ac_abs_top_builddir=$ac_pwd
1588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589 # for backward compatibility:
1590 ac_top_builddir=$ac_top_build_prefix
1591
1592 case $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 ;;
1605 esac
1606 ac_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
1621 fi
1622
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1625 cat <<\_ACEOF
1626 emacs configure 24.0.50
1627 generated by GNU Autoconf 2.65
1628
1629 Copyright (C) 2009 Free Software Foundation, Inc.
1630 This configure script is free software; the Free Software Foundation
1631 gives unlimited permission to copy, distribute and modify it.
1632 _ACEOF
1633 exit
1634 fi
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.
1643 ac_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"
1648 case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651 esac
1652 eval 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
1667 else
1668 $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671 ac_retval=1
1672 fi
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.
1681 ac_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"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval 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
1708 else
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=1
1713 fi
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.
1727 ac_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"
1731 case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval 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
1750 else
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754 ac_retval=1
1755 fi
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.
1766 ac_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; }
1772 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1773 $as_echo_n "(cached) " >&6
1774 fi
1775 eval ac_res=\$$3
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1778 else
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; }
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1784 $4
1785 #include <$2>
1786 _ACEOF
1787 if ac_fn_c_try_compile "$LINENO"; then :
1788 ac_header_compiler=yes
1789 else
1790 ac_header_compiler=no
1791 fi
1792 rm -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; }
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 #include <$2>
1802 _ACEOF
1803 if ac_fn_c_try_cpp "$LINENO"; then :
1804 ac_header_preproc=yes
1805 else
1806 ac_header_preproc=no
1807 fi
1808 rm -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?
1813 case $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 ;;
1832 esac
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1836 $as_echo_n "(cached) " >&6
1837 else
1838 eval "$3=\$ac_header_compiler"
1839 fi
1840 eval ac_res=\$$3
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1843 fi
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.
1852 ac_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"
1856 case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859 esac
1860 eval 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;;
1869 esac
1870 eval 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
1877 else
1878 $as_echo "$as_me: program exited with status $ac_status" >&5
1879 $as_echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1881
1882 ac_retval=$ac_status
1883 fi
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.
1894 ac_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; }
1899 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1900 $as_echo_n "(cached) " >&6
1901 else
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1904 $4
1905 #include <$2>
1906 _ACEOF
1907 if ac_fn_c_try_compile "$LINENO"; then :
1908 eval "$3=yes"
1909 else
1910 eval "$3=no"
1911 fi
1912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1913 fi
1914 eval 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.
1924 ac_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; }
1929 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930 $as_echo_n "(cached) " >&6
1931 else
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1934 $4
1935 int
1936 main ()
1937 {
1938 #ifndef $2
1939 (void) $2;
1940 #endif
1941
1942 ;
1943 return 0;
1944 }
1945 _ACEOF
1946 if ac_fn_c_try_compile "$LINENO"; then :
1947 eval "$3=yes"
1948 else
1949 eval "$3=no"
1950 fi
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 fi
1953 eval 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.
1963 ac_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; }
1968 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1969 $as_echo_n "(cached) " >&6
1970 else
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1973 #include <$2>
1974 _ACEOF
1975 if ac_fn_c_try_cpp "$LINENO"; then :
1976 eval "$3=yes"
1977 else
1978 eval "$3=no"
1979 fi
1980 rm -f conftest.err conftest.$ac_ext
1981 fi
1982 eval 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.
1993 ac_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; }
1998 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1999 $as_echo_n "(cached) " >&6
2000 else
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 $5
2004 int
2005 main ()
2006 {
2007 static $2 ac_aggr;
2008 if (ac_aggr.$3)
2009 return 0;
2010 ;
2011 return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 eval "$4=yes"
2016 else
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 $5
2020 int
2021 main ()
2022 {
2023 static $2 ac_aggr;
2024 if (sizeof ac_aggr.$3)
2025 return 0;
2026 ;
2027 return 0;
2028 }
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 eval "$4=yes"
2032 else
2033 eval "$4=no"
2034 fi
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 fi
2039 eval 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
2049 ac_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; }
2054 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2055 $as_echo_n "(cached) " >&6
2056 else
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
2080 extern "C"
2081 #endif
2082 char $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
2087 choke me
2088 #endif
2089
2090 int
2091 main ()
2092 {
2093 return $2 ();
2094 ;
2095 return 0;
2096 }
2097 _ACEOF
2098 if ac_fn_c_try_link "$LINENO"; then :
2099 eval "$3=yes"
2100 else
2101 eval "$3=no"
2102 fi
2103 rm -f core conftest.err conftest.$ac_objext \
2104 conftest$ac_exeext conftest.$ac_ext
2105 fi
2106 eval 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.
2117 ac_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; }
2122 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2123 $as_echo_n "(cached) " >&6
2124 else
2125 eval "$3=no"
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2128 $4
2129 int
2130 main ()
2131 {
2132 if (sizeof ($2))
2133 return 0;
2134 ;
2135 return 0;
2136 }
2137 _ACEOF
2138 if ac_fn_c_try_compile "$LINENO"; then :
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2141 $4
2142 int
2143 main ()
2144 {
2145 if (sizeof (($2)))
2146 return 0;
2147 ;
2148 return 0;
2149 }
2150 _ACEOF
2151 if ac_fn_c_try_compile "$LINENO"; then :
2152
2153 else
2154 eval "$3=yes"
2155 fi
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157 fi
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 fi
2160 eval 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
2166 cat >config.log <<_ACEOF
2167 This file contains any messages produced by compilers while
2168 running configure, to aid debugging if configure makes a mistake.
2169
2170 It was created by emacs $as_me 24.0.50, which was
2171 generated by GNU Autoconf 2.65. Invocation command line was
2172
2173 $ $0 $@
2174
2175 _ACEOF
2176 exec 5>>config.log
2177 {
2178 cat <<_ASUNAME
2179 ## --------- ##
2180 ## Platform. ##
2181 ## --------- ##
2182
2183 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2184 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2185 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2186 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2187 uname -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
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2204 do
2205 IFS=$as_save_IFS
2206 test -z "$as_dir" && as_dir=.
2207 $as_echo "PATH: $as_dir"
2208 done
2209 IFS=$as_save_IFS
2210
2211 } >&5
2212
2213 cat >&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.
2228 ac_configure_args=
2229 ac_configure_args0=
2230 ac_configure_args1=
2231 ac_must_keep_next=false
2232 for ac_pass in 1 2
2233 do
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
2267 done
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.
2276 trap '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
2371 for ac_signal in 1 2 13 15; do
2372 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2373 done
2374 ac_signal=0
2375
2376 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2377 rm -f -r conftest* confdefs.h
2378
2379 $as_echo "/* confdefs.h */" > confdefs.h
2380
2381 # Predefined preprocessor variables.
2382
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_NAME "$PACKAGE_NAME"
2385 _ACEOF
2386
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2389 _ACEOF
2390
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2393 _ACEOF
2394
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_STRING "$PACKAGE_STRING"
2397 _ACEOF
2398
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2401 _ACEOF
2402
2403 cat >>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.
2410 ac_site_file1=NONE
2411 ac_site_file2=NONE
2412 if test -n "$CONFIG_SITE"; then
2413 ac_site_file1=$CONFIG_SITE
2414 elif test "x$prefix" != xNONE; then
2415 ac_site_file1=$prefix/share/config.site
2416 ac_site_file2=$prefix/etc/config.site
2417 else
2418 ac_site_file1=$ac_default_prefix/share/config.site
2419 ac_site_file2=$ac_default_prefix/etc/config.site
2420 fi
2421 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2422 do
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
2430 done
2431
2432 if 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
2443 else
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
2447 fi
2448
2449 as_fn_append ac_header_list " stdlib.h"
2450 as_fn_append ac_header_list " unistd.h"
2451 as_fn_append ac_header_list " sys/param.h"
2452 as_fn_append ac_header_list " sys/time.h"
2453 as_fn_append ac_func_list " alarm"
2454 # Check that the precious variables saved in the cache have kept the same
2455 # value.
2456 ac_cache_corrupted=false
2457 for 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
2503 done
2504 if $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
2510 fi
2511 ## -------------------- ##
2512 ## Main body of script. ##
2513 ## -------------------- ##
2514
2515 ac_ext=c
2516 ac_cpp='$CPP $CPPFLAGS'
2517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2520
2521
2522 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2523
2524
2525
2526 test "$program_prefix" != NONE &&
2527 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2528 # Use a double $ so make ignores it.
2529 test "$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.
2533 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2534 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2535
2536
2537 lispdir='${datadir}/emacs/${version}/lisp'
2538 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2539 '${datadir}/emacs/site-lisp'
2540 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2541 etcdir='${datadir}/emacs/${version}/etc'
2542 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2543 docdir='${datadir}/emacs/${version}/etc'
2544 gamedir='${localstatedir}/games/emacs'
2545
2546 gameuser=games
2547
2548
2549
2550
2551 # Check whether --with-pop was given.
2552 if test "${with_pop+set}" = set; then :
2553 withval=$with_pop;
2554 else
2555 with_pop=yes
2556 fi
2557
2558 if test "$with_pop" = yes; then
2559 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2560
2561 fi
2562
2563
2564 # Check whether --with-kerberos was given.
2565 if test "${with_kerberos+set}" = set; then :
2566 withval=$with_kerberos;
2567 else
2568 with_kerberos=no
2569 fi
2570
2571 if test "$with_kerberos" != no; then
2572 $as_echo "#define KERBEROS 1" >>confdefs.h
2573
2574 fi
2575
2576
2577 # Check whether --with-kerberos5 was given.
2578 if test "${with_kerberos5+set}" = set; then :
2579 withval=$with_kerberos5;
2580 else
2581 with_kerberos5=no
2582 fi
2583
2584 if 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
2593 fi
2594
2595
2596 # Check whether --with-hesiod was given.
2597 if test "${with_hesiod+set}" = set; then :
2598 withval=$with_hesiod;
2599 else
2600 with_hesiod=no
2601 fi
2602
2603 if test "$with_hesiod" != no; then
2604
2605 $as_echo "#define HESIOD 1" >>confdefs.h
2606
2607 fi
2608
2609
2610 # Check whether --with-mmdf was given.
2611 if test "${with_mmdf+set}" = set; then :
2612 withval=$with_mmdf;
2613 else
2614 with_mmdf=no
2615 fi
2616
2617 if test "$with_mmdf" != no; then
2618
2619 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2620
2621 fi
2622
2623
2624 # Check whether --with-mail-unlink was given.
2625 if test "${with_mail_unlink+set}" = set; then :
2626 withval=$with_mail_unlink;
2627 else
2628 with_mail_unlink=no
2629 fi
2630
2631 if test "$with_mail_unlink" != no; then
2632
2633 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2634
2635 fi
2636
2637
2638 # Check whether --with-mailhost was given.
2639 if test "${with_mailhost+set}" = set; then :
2640 withval=$with_mailhost;
2641 cat >>confdefs.h <<_ACEOF
2642 #define MAILHOST "$withval"
2643 _ACEOF
2644
2645 fi
2646
2647
2648
2649 # Check whether --with-sound was given.
2650 if test "${with_sound+set}" = set; then :
2651 withval=$with_sound;
2652 else
2653 with_sound=yes
2654 fi
2655
2656
2657
2658 # Check whether --with-sync-input was given.
2659 if test "${with_sync_input+set}" = set; then :
2660 withval=$with_sync_input;
2661 else
2662 with_sync_input=yes
2663 fi
2664
2665 if test "$with_sync_input" = yes; then
2666
2667 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2668
2669 fi
2670
2671
2672 # Check whether --with-x-toolkit was given.
2673 if 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 * )
2683 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
2684 this 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
2690 fi
2691
2692
2693
2694 # Check whether --with-xpm was given.
2695 if test "${with_xpm+set}" = set; then :
2696 withval=$with_xpm;
2697 else
2698 with_xpm=yes
2699 fi
2700
2701
2702 # Check whether --with-jpeg was given.
2703 if test "${with_jpeg+set}" = set; then :
2704 withval=$with_jpeg;
2705 else
2706 with_jpeg=yes
2707 fi
2708
2709
2710 # Check whether --with-tiff was given.
2711 if test "${with_tiff+set}" = set; then :
2712 withval=$with_tiff;
2713 else
2714 with_tiff=yes
2715 fi
2716
2717
2718 # Check whether --with-gif was given.
2719 if test "${with_gif+set}" = set; then :
2720 withval=$with_gif;
2721 else
2722 with_gif=yes
2723 fi
2724
2725
2726 # Check whether --with-png was given.
2727 if test "${with_png+set}" = set; then :
2728 withval=$with_png;
2729 else
2730 with_png=yes
2731 fi
2732
2733
2734 # Check whether --with-rsvg was given.
2735 if test "${with_rsvg+set}" = set; then :
2736 withval=$with_rsvg;
2737 else
2738 with_rsvg=yes
2739 fi
2740
2741
2742 # Check whether --with-xml2 was given.
2743 if test "${with_xml2+set}" = set; then :
2744 withval=$with_xml2;
2745 else
2746 with_xml2=yes
2747 fi
2748
2749
2750 # Check whether --with-imagemagick was given.
2751 if test "${with_imagemagick+set}" = set; then :
2752 withval=$with_imagemagick;
2753 else
2754 with_imagemagick=yes
2755 fi
2756
2757
2758
2759 # Check whether --with-xft was given.
2760 if test "${with_xft+set}" = set; then :
2761 withval=$with_xft;
2762 else
2763 with_xft=yes
2764 fi
2765
2766
2767 # Check whether --with-libotf was given.
2768 if test "${with_libotf+set}" = set; then :
2769 withval=$with_libotf;
2770 else
2771 with_libotf=yes
2772 fi
2773
2774
2775 # Check whether --with-m17n-flt was given.
2776 if test "${with_m17n_flt+set}" = set; then :
2777 withval=$with_m17n_flt;
2778 else
2779 with_m17n_flt=yes
2780 fi
2781
2782
2783
2784 # Check whether --with-toolkit-scroll-bars was given.
2785 if test "${with_toolkit_scroll_bars+set}" = set; then :
2786 withval=$with_toolkit_scroll_bars;
2787 else
2788 with_toolkit_scroll_bars=yes
2789 fi
2790
2791
2792 # Check whether --with-xaw3d was given.
2793 if test "${with_xaw3d+set}" = set; then :
2794 withval=$with_xaw3d;
2795 else
2796 with_xaw3d=yes
2797 fi
2798
2799
2800 # Check whether --with-xim was given.
2801 if test "${with_xim+set}" = set; then :
2802 withval=$with_xim;
2803 else
2804 with_xim=yes
2805 fi
2806
2807
2808 # Check whether --with-ns was given.
2809 if test "${with_ns+set}" = set; then :
2810 withval=$with_ns;
2811 else
2812 with_ns=no
2813 fi
2814
2815
2816
2817 # Check whether --with-gpm was given.
2818 if test "${with_gpm+set}" = set; then :
2819 withval=$with_gpm;
2820 else
2821 with_gpm=yes
2822 fi
2823
2824
2825 # Check whether --with-dbus was given.
2826 if test "${with_dbus+set}" = set; then :
2827 withval=$with_dbus;
2828 else
2829 with_dbus=yes
2830 fi
2831
2832
2833 # Check whether --with-gconf was given.
2834 if test "${with_gconf+set}" = set; then :
2835 withval=$with_gconf;
2836 else
2837 with_gconf=yes
2838 fi
2839
2840
2841 # Check whether --with-selinux was given.
2842 if test "${with_selinux+set}" = set; then :
2843 withval=$with_selinux;
2844 else
2845 with_selinux=yes
2846 fi
2847
2848
2849 # Check whether --with-gnutls was given.
2850 if test "${with_gnutls+set}" = set; then :
2851 withval=$with_gnutls;
2852 else
2853 with_gnutls=yes
2854 fi
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.
2861 if test "${with_makeinfo+set}" = set; then :
2862 withval=$with_makeinfo;
2863 else
2864 with_makeinfo=yes
2865 fi
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.
2872 if test "${with_compress_info+set}" = set; then :
2873 withval=$with_compress_info;
2874 else
2875 with_compress_info=yes
2876 fi
2877
2878 if test $with_compress_info = yes; then
2879 GZIP_INFO=yes
2880 else
2881 GZIP_INFO=
2882 fi
2883
2884
2885
2886 # Check whether --with-pkg-config-prog was given.
2887 if test "${with_pkg_config_prog+set}" = set; then :
2888 withval=$with_pkg_config_prog;
2889 fi
2890
2891 if 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
2895 fi
2896
2897 CRT_DIR=
2898
2899 # Check whether --with-crt-dir was given.
2900 if test "${with_crt_dir+set}" = set; then :
2901 withval=$with_crt_dir;
2902 fi
2903
2904 CRT_DIR="${with_crt_dir}"
2905
2906
2907 # Check whether --with-gnustep-conf was given.
2908 if test "${with_gnustep_conf+set}" = set; then :
2909 withval=$with_gnustep_conf;
2910 fi
2911
2912 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2913 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2914 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2915 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2916
2917 # Check whether --enable-ns-self-contained was given.
2918 if test "${enable_ns_self_contained+set}" = set; then :
2919 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2920 else
2921 EN_NS_SELF_CONTAINED=yes
2922 fi
2923
2924
2925 # Check whether --enable-asserts was given.
2926 if test "${enable_asserts+set}" = set; then :
2927 enableval=$enable_asserts; USE_XASSERTS=$enableval
2928 else
2929 USE_XASSERTS=no
2930 fi
2931
2932
2933 # Check whether --enable-maintainer-mode was given.
2934 if test "${enable_maintainer_mode+set}" = set; then :
2935 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2936 else
2937 USE_MAINTAINER_MODE=no
2938 fi
2939
2940 if test $USE_MAINTAINER_MODE = yes; then
2941 MAINT=
2942 else
2943 MAINT=#
2944 fi
2945
2946
2947 # Check whether --enable-locallisppath was given.
2948 if test "${enable_locallisppath+set}" = set; then :
2949 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2950 locallisppath=
2951 elif test "${enableval}" != "yes"; then
2952 locallisppath=${enableval}
2953 fi
2954 fi
2955
2956
2957 # Check whether --enable-checking was given.
2958 if test "${enable_checking+set}" = set; then :
2959 enableval=$enable_checking; ac_checking_flags="${enableval}"
2960 fi
2961
2962 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2963 for check in $ac_checking_flags
2964 do
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
2988 done
2989 IFS="$ac_save_IFS"
2990
2991 if test x$ac_enable_checking != x ; then
2992
2993 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2994
2995 fi
2996 if test x$ac_gc_check_stringbytes != x ; then
2997
2998 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2999
3000 fi
3001 if test x$ac_gc_check_stringoverrun != x ; then
3002
3003 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3004
3005 fi
3006 if test x$ac_gc_check_string_free_list != x ; then
3007
3008 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3009
3010 fi
3011 if test x$ac_xmalloc_overrun != x ; then
3012
3013 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3014
3015 fi
3016 if test x$ac_gc_check_cons_list != x ; then
3017
3018 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3019
3020 fi
3021
3022 # Check whether --enable-use-lisp-union-type was given.
3023 if 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
3028 fi
3029 fi
3030
3031
3032
3033 # Check whether --enable-profiling was given.
3034 if test "${enable_profiling+set}" = set; then :
3035 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3036 fi
3037
3038 if test x$ac_enable_profiling != x ; then
3039 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3040 else
3041 PROFILING_CFLAGS=
3042 fi
3043
3044
3045 # Check whether --enable-autodepend was given.
3046 if test "${enable_autodepend+set}" = set; then :
3047 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3048 else
3049 ac_enable_autodepend=yes
3050 fi
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).
3058 unset CDPATH
3059 case "${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)`" ;;
3075 esac
3076
3077 #### Check if the source directory already has a configured system in it.
3078 if 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;}
3092 fi
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
3099 ac_aux_dir=
3100 for 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
3108 done
3109 if test -z "$ac_aux_dir"; then
3110 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3111 fi
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.
3117 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3118 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3119 ac_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; }
3128 if test "${ac_cv_build+set}" = set; then :
3129 $as_echo_n "(cached) " >&6
3130 else
3131 ac_build_alias=$build_alias
3132 test "x$ac_build_alias" = x &&
3133 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3134 test "x$ac_build_alias" = x &&
3135 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3136 ac_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
3139 fi
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3141 $as_echo "$ac_cv_build" >&6; }
3142 case $ac_cv_build in
3143 *-*-*) ;;
3144 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3145 esac
3146 build=$ac_cv_build
3147 ac_save_IFS=$IFS; IFS='-'
3148 set x $ac_cv_build
3149 shift
3150 build_cpu=$1
3151 build_vendor=$2
3152 shift; shift
3153 # Remember, the first character of IFS is used to create $*,
3154 # except with old shells:
3155 build_os=$*
3156 IFS=$ac_save_IFS
3157 case $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; }
3162 if test "${ac_cv_host+set}" = set; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 if test "x$host_alias" = x; then
3166 ac_cv_host=$ac_cv_build
3167 else
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
3170 fi
3171
3172 fi
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3174 $as_echo "$ac_cv_host" >&6; }
3175 case $ac_cv_host in
3176 *-*-*) ;;
3177 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3178 esac
3179 host=$ac_cv_host
3180 ac_save_IFS=$IFS; IFS='-'
3181 set x $ac_cv_host
3182 shift
3183 host_cpu=$1
3184 host_vendor=$2
3185 shift; shift
3186 # Remember, the first character of IFS is used to create $*,
3187 # except with old shells:
3188 host_os=$*
3189 IFS=$ac_save_IFS
3190 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3191
3192
3193 canonical=$host
3194 configuration=${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
3216 machine='' opsys='' unported=no
3217 case "${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 ;;
3451 esac
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.
3459 if test x"${opsys}" = x; then
3460 case "${canonical}" in
3461 *-gnu* ) opsys=gnu ;;
3462 * )
3463 unported=yes
3464 ;;
3465 esac
3466 fi
3467
3468
3469
3470 if test $unported = yes; then
3471 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
3472 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3473 fi
3474
3475 machfile="m/${machine}.h"
3476 opsysfile="s/${opsys}.h"
3477
3478
3479 #### Choose a compiler.
3480 test -n "$CC" && cc_specified=yes
3481
3482 # Save the value of CFLAGS that the user specified.
3483 SPECIFIED_CFLAGS="$CFLAGS"
3484
3485 ac_ext=c
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 if 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.
3492 set 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; }
3495 if test "${ac_cv_prog_CC+set}" = set; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 else
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3503 do
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
3512 done
3513 done
3514 IFS=$as_save_IFS
3515
3516 fi
3517 fi
3518 CC=$ac_cv_prog_CC
3519 if test -n "$CC"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3521 $as_echo "$CC" >&6; }
3522 else
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3525 fi
3526
3527
3528 fi
3529 if 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.
3532 set 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; }
3535 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3536 $as_echo_n "(cached) " >&6
3537 else
3538 if test -n "$ac_ct_CC"; then
3539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3543 do
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
3552 done
3553 done
3554 IFS=$as_save_IFS
3555
3556 fi
3557 fi
3558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559 if 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; }
3562 else
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3565 fi
3566
3567 if test "x$ac_ct_CC" = x; then
3568 CC=""
3569 else
3570 case $cross_compiling:$ac_tool_warned in
3571 yes:)
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;}
3574 ac_tool_warned=yes ;;
3575 esac
3576 CC=$ac_ct_CC
3577 fi
3578 else
3579 CC="$ac_cv_prog_CC"
3580 fi
3581
3582 if 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.
3585 set 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; }
3588 if test "${ac_cv_prog_CC+set}" = set; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 if test -n "$CC"; then
3592 ac_cv_prog_CC="$CC" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3596 do
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
3605 done
3606 done
3607 IFS=$as_save_IFS
3608
3609 fi
3610 fi
3611 CC=$ac_cv_prog_CC
3612 if test -n "$CC"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3614 $as_echo "$CC" >&6; }
3615 else
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3618 fi
3619
3620
3621 fi
3622 fi
3623 if test -z "$CC"; then
3624 # Extract the first word of "cc", so it can be a program name with args.
3625 set 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; }
3628 if test "${ac_cv_prog_CC+set}" = set; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 if test -n "$CC"; then
3632 ac_cv_prog_CC="$CC" # Let the user override the test.
3633 else
3634 ac_prog_rejected=no
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3637 do
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
3650 done
3651 done
3652 IFS=$as_save_IFS
3653
3654 if 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
3665 fi
3666 fi
3667 fi
3668 CC=$ac_cv_prog_CC
3669 if test -n "$CC"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3671 $as_echo "$CC" >&6; }
3672 else
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3675 fi
3676
3677
3678 fi
3679 if 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.
3684 set 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; }
3687 if test "${ac_cv_prog_CC+set}" = set; then :
3688 $as_echo_n "(cached) " >&6
3689 else
3690 if test -n "$CC"; then
3691 ac_cv_prog_CC="$CC" # Let the user override the test.
3692 else
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH
3695 do
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
3704 done
3705 done
3706 IFS=$as_save_IFS
3707
3708 fi
3709 fi
3710 CC=$ac_cv_prog_CC
3711 if test -n "$CC"; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3713 $as_echo "$CC" >&6; }
3714 else
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716 $as_echo "no" >&6; }
3717 fi
3718
3719
3720 test -n "$CC" && break
3721 done
3722 fi
3723 if test -z "$CC"; then
3724 ac_ct_CC=$CC
3725 for ac_prog in cl.exe
3726 do
3727 # Extract the first word of "$ac_prog", so it can be a program name with args.
3728 set 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; }
3731 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 if test -n "$ac_ct_CC"; then
3735 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3739 do
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
3748 done
3749 done
3750 IFS=$as_save_IFS
3751
3752 fi
3753 fi
3754 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3755 if 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; }
3758 else
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3761 fi
3762
3763
3764 test -n "$ac_ct_CC" && break
3765 done
3766
3767 if test "x$ac_ct_CC" = x; then
3768 CC=""
3769 else
3770 case $cross_compiling:$ac_tool_warned in
3771 yes:)
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;}
3774 ac_tool_warned=yes ;;
3775 esac
3776 CC=$ac_ct_CC
3777 fi
3778 fi
3779
3780 fi
3781
3782
3783 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785 as_fn_error "no acceptable C compiler found in \$PATH
3786 See \`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
3790 set X $ac_compile
3791 ac_compiler=$2
3792 for ac_option in --version -v -V -qversion; do
3793 { { ac_try="$ac_compiler $ac_option >&5"
3794 case "(($ac_try" in
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3797 esac
3798 eval 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; }
3811 done
3812
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3815
3816 int
3817 main ()
3818 {
3819
3820 ;
3821 return 0;
3822 }
3823 _ACEOF
3824 ac_clean_files_save=$ac_clean_files
3825 ac_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; }
3831 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3832
3833 # The possible output files:
3834 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3835
3836 ac_rmfiles=
3837 for ac_file in $ac_files
3838 do
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
3843 done
3844 rm -f $ac_rmfiles
3845
3846 if { { ac_try="$ac_link_default"
3847 case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval 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.
3862 for ac_file in $ac_files ''
3863 do
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
3886 done
3887 test "$ac_cv_exeext" = no && ac_cv_exeext=
3888
3889 else
3890 ac_file=''
3891 fi
3892 if 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
3896 sed '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
3901 as_fn_error "C compiler cannot create executables
3902 See \`config.log' for more details." "$LINENO" 5; }; }
3903 else
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3905 $as_echo "yes" >&6; }
3906 fi
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; }
3911 ac_exeext=$ac_cv_exeext
3912
3913 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3914 ac_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; }
3917 if { { ac_try="$ac_link"
3918 case "(($ac_try" in
3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920 *) ac_try_echo=$ac_try;;
3921 esac
3922 eval 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'.
3932 for 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
3940 done
3941 else
3942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944 as_fn_error "cannot compute suffix of executables: cannot compile and link
3945 See \`config.log' for more details." "$LINENO" 5; }
3946 fi
3947 rm -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
3951 rm -f conftest.$ac_ext
3952 EXEEXT=$ac_cv_exeext
3953 ac_exeext=$EXEEXT
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3956 #include <stdio.h>
3957 int
3958 main ()
3959 {
3960 FILE *f = fopen ("conftest.out", "w");
3961 return ferror (f) || fclose (f) != 0;
3962
3963 ;
3964 return 0;
3965 }
3966 _ACEOF
3967 ac_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; }
3972 if test "$cross_compiling" != yes; then
3973 { { ac_try="$ac_link"
3974 case "(($ac_try" in
3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3977 esac
3978 eval 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;;
3988 esac
3989 eval 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;}
4002 as_fn_error "cannot run C compiled programs.
4003 If you meant to cross compile, use \`--host'.
4004 See \`config.log' for more details." "$LINENO" 5; }
4005 fi
4006 fi
4007 fi
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4009 $as_echo "$cross_compiling" >&6; }
4010
4011 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4012 ac_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; }
4015 if test "${ac_cv_objext+set}" = set; then :
4016 $as_echo_n "(cached) " >&6
4017 else
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4020
4021 int
4022 main ()
4023 {
4024
4025 ;
4026 return 0;
4027 }
4028 _ACEOF
4029 rm -f conftest.o conftest.obj
4030 if { { ac_try="$ac_compile"
4031 case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034 esac
4035 eval 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
4048 done
4049 else
4050 $as_echo "$as_me: failed program was:" >&5
4051 sed '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;}
4055 as_fn_error "cannot compute suffix of object files: cannot compile
4056 See \`config.log' for more details." "$LINENO" 5; }
4057 fi
4058 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4059 fi
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4061 $as_echo "$ac_cv_objext" >&6; }
4062 OBJEXT=$ac_cv_objext
4063 ac_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; }
4066 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4067 $as_echo_n "(cached) " >&6
4068 else
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4071
4072 int
4073 main ()
4074 {
4075 #ifndef __GNUC__
4076 choke me
4077 #endif
4078
4079 ;
4080 return 0;
4081 }
4082 _ACEOF
4083 if ac_fn_c_try_compile "$LINENO"; then :
4084 ac_compiler_gnu=yes
4085 else
4086 ac_compiler_gnu=no
4087 fi
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4090
4091 fi
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4093 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4094 if test $ac_compiler_gnu = yes; then
4095 GCC=yes
4096 else
4097 GCC=
4098 fi
4099 ac_test_CFLAGS=${CFLAGS+set}
4100 ac_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; }
4103 if test "${ac_cv_prog_cc_g+set}" = set; then :
4104 $as_echo_n "(cached) " >&6
4105 else
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
4113 int
4114 main ()
4115 {
4116
4117 ;
4118 return 0;
4119 }
4120 _ACEOF
4121 if ac_fn_c_try_compile "$LINENO"; then :
4122 ac_cv_prog_cc_g=yes
4123 else
4124 CFLAGS=""
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4127
4128 int
4129 main ()
4130 {
4131
4132 ;
4133 return 0;
4134 }
4135 _ACEOF
4136 if ac_fn_c_try_compile "$LINENO"; then :
4137
4138 else
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
4144 int
4145 main ()
4146 {
4147
4148 ;
4149 return 0;
4150 }
4151 _ACEOF
4152 if ac_fn_c_try_compile "$LINENO"; then :
4153 ac_cv_prog_cc_g=yes
4154 fi
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 fi
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 fi
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 ac_c_werror_flag=$ac_save_c_werror_flag
4161 fi
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4163 $as_echo "$ac_cv_prog_cc_g" >&6; }
4164 if test "$ac_test_CFLAGS" = set; then
4165 CFLAGS=$ac_save_CFLAGS
4166 elif 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
4172 else
4173 if test "$GCC" = yes; then
4174 CFLAGS="-O2"
4175 else
4176 CFLAGS=
4177 fi
4178 fi
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; }
4181 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4182 $as_echo_n "(cached) " >&6
4183 else
4184 ac_cv_prog_cc_c89=no
4185 ac_save_CC=$CC
4186 cat 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. */
4193 struct buf { int x; };
4194 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4195 static char *e (p, i)
4196 char **p;
4197 int i;
4198 {
4199 return p[i];
4200 }
4201 static 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. */
4218 int 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'
4223 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4224
4225 int test (int i, double x);
4226 struct s1 {int (*f) (int a);};
4227 struct s2 {int (*f) (double a);};
4228 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4229 int argc;
4230 char **argv;
4231 int
4232 main ()
4233 {
4234 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4235 ;
4236 return 0;
4237 }
4238 _ACEOF
4239 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4240 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4241 do
4242 CC="$ac_save_CC $ac_arg"
4243 if ac_fn_c_try_compile "$LINENO"; then :
4244 ac_cv_prog_cc_c89=$ac_arg
4245 fi
4246 rm -f core conftest.err conftest.$ac_objext
4247 test "x$ac_cv_prog_cc_c89" != "xno" && break
4248 done
4249 rm -f conftest.$ac_ext
4250 CC=$ac_save_CC
4251
4252 fi
4253 # AC_CACHE_VAL
4254 case "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; } ;;
4265 esac
4266 if test "x$ac_cv_prog_cc_c89" != xno; then :
4267
4268 fi
4269
4270 ac_ext=c
4271 ac_cpp='$CPP $CPPFLAGS'
4272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4275
4276
4277 # On Suns, sometimes $CPP names a directory.
4278 if test -n "$CPP" && test -d "$CPP"; then
4279 CPP=
4280 fi
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.
4284 if 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
4289 if test "${emacs_cv_sunpro_c+set}" = set; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4294
4295 int
4296 main ()
4297 {
4298 #ifndef __SUNPRO_C
4299 fail;
4300 #endif
4301
4302 ;
4303 return 0;
4304 }
4305 _ACEOF
4306 if ac_fn_c_try_link "$LINENO"; then :
4307 emacs_cv_sunpro_c=yes
4308 else
4309 emacs_cv_sunpro_c=no
4310 fi
4311 rm -f core conftest.err conftest.$ac_objext \
4312 conftest$ac_exeext conftest.$ac_ext
4313 fi
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
4321 fi
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.
4326 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4327 then
4328 CPP="$NON_GNU_CPP"
4329 fi
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.
4334 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4335 test x$cc_specified != xyes
4336 then
4337 CC="$NON_GNU_CC"
4338 fi
4339
4340 if test x$GCC = xyes; then
4341 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4342 else
4343 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4344 fi
4345
4346 ac_ext=c
4347 ac_cpp='$CPP $CPPFLAGS'
4348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350 ac_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.
4354 if test -n "$CPP" && test -d "$CPP"; then
4355 CPP=
4356 fi
4357 if test -z "$CPP"; then
4358 if test "${ac_cv_prog_CPP+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4360 else
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
4365 for ac_c_preproc_warn_flag in '' yes
4366 do
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
4382 if ac_fn_c_try_cpp "$LINENO"; then :
4383
4384 else
4385 # Broken: fails on valid input.
4386 continue
4387 fi
4388 rm -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
4396 if ac_fn_c_try_cpp "$LINENO"; then :
4397 # Broken: success on invalid input.
4398 continue
4399 else
4400 # Passes both tests.
4401 ac_preproc_ok=:
4402 break
4403 fi
4404 rm -f conftest.err conftest.$ac_ext
4405
4406 done
4407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4408 rm -f conftest.err conftest.$ac_ext
4409 if $ac_preproc_ok; then :
4410 break
4411 fi
4412
4413 done
4414 ac_cv_prog_CPP=$CPP
4415
4416 fi
4417 CPP=$ac_cv_prog_CPP
4418 else
4419 ac_cv_prog_CPP=$CPP
4420 fi
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4422 $as_echo "$CPP" >&6; }
4423 ac_preproc_ok=false
4424 for ac_c_preproc_warn_flag in '' yes
4425 do
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
4441 if ac_fn_c_try_cpp "$LINENO"; then :
4442
4443 else
4444 # Broken: fails on valid input.
4445 continue
4446 fi
4447 rm -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
4455 if ac_fn_c_try_cpp "$LINENO"; then :
4456 # Broken: success on invalid input.
4457 continue
4458 else
4459 # Passes both tests.
4460 ac_preproc_ok=:
4461 break
4462 fi
4463 rm -f conftest.err conftest.$ac_ext
4464
4465 done
4466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4467 rm -f conftest.err conftest.$ac_ext
4468 if $ac_preproc_ok; then :
4469
4470 else
4471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4473 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4474 See \`config.log' for more details." "$LINENO" 5; }
4475 fi
4476
4477 ac_ext=c
4478 ac_cpp='$CPP $CPPFLAGS'
4479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4481 ac_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; }
4486 if test "${ac_cv_path_GREP+set}" = set; then :
4487 $as_echo_n "(cached) " >&6
4488 else
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
4493 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4494 do
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
4503 case `"$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;;
4527 esac
4528
4529 $ac_path_GREP_found && break 3
4530 done
4531 done
4532 done
4533 IFS=$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
4537 else
4538 ac_cv_path_GREP=$GREP
4539 fi
4540
4541 fi
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; }
4549 if test "${ac_cv_path_EGREP+set}" = set; then :
4550 $as_echo_n "(cached) " >&6
4551 else
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
4559 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4560 do
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
4569 case `"$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;;
4593 esac
4594
4595 $ac_path_EGREP_found && break 3
4596 done
4597 done
4598 done
4599 IFS=$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
4603 else
4604 ac_cv_path_EGREP=$EGREP
4605 fi
4606
4607 fi
4608 fi
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; }
4616 if test "${ac_cv_header_stdc+set}" = set; then :
4617 $as_echo_n "(cached) " >&6
4618 else
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
4626 int
4627 main ()
4628 {
4629
4630 ;
4631 return 0;
4632 }
4633 _ACEOF
4634 if ac_fn_c_try_compile "$LINENO"; then :
4635 ac_cv_header_stdc=yes
4636 else
4637 ac_cv_header_stdc=no
4638 fi
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640
4641 if 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
4648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4649 $EGREP "memchr" >/dev/null 2>&1; then :
4650
4651 else
4652 ac_cv_header_stdc=no
4653 fi
4654 rm -f conftest*
4655
4656 fi
4657
4658 if 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
4665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4666 $EGREP "free" >/dev/null 2>&1; then :
4667
4668 else
4669 ac_cv_header_stdc=no
4670 fi
4671 rm -f conftest*
4672
4673 fi
4674
4675 if 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 :
4679 else
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)))
4696 int
4697 main ()
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
4707 if ac_fn_c_try_run "$LINENO"; then :
4708
4709 else
4710 ac_cv_header_stdc=no
4711 fi
4712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4713 conftest.$ac_objext conftest.beam conftest.$ac_ext
4714 fi
4715
4716 fi
4717 fi
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4719 $as_echo "$ac_cv_header_stdc" >&6; }
4720 if test $ac_cv_header_stdc = yes; then
4721
4722 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4723
4724 fi
4725
4726 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4727 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4728 inttypes.h stdint.h unistd.h
4729 do :
4730 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4731 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4732 "
4733 eval 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
4739 fi
4740
4741 done
4742
4743
4744
4745 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4746 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4747 MINIX=yes
4748 else
4749 MINIX=
4750 fi
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; }
4768 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4773
4774 # define __EXTENSIONS__ 1
4775 $ac_includes_default
4776 int
4777 main ()
4778 {
4779
4780 ;
4781 return 0;
4782 }
4783 _ACEOF
4784 if ac_fn_c_try_compile "$LINENO"; then :
4785 ac_cv_safe_to_define___extensions__=yes
4786 else
4787 ac_cv_safe_to_define___extensions__=no
4788 fi
4789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790 fi
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; }
4809 SAVE_CFLAGS="$CFLAGS"
4810 CFLAGS="$CFLAGS -Wno-pointer-sign"
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4813
4814 int
4815 main ()
4816 {
4817
4818 ;
4819 return 0;
4820 }
4821 _ACEOF
4822 if ac_fn_c_try_compile "$LINENO"; then :
4823 has_option=yes
4824 else
4825 has_option=no
4826 fi
4827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4828 if test $has_option = yes; then
4829 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4830 fi
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4832 $as_echo "$has_option" >&6; }
4833 CFLAGS="$SAVE_CFLAGS"
4834 unset has_option
4835 unset 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; }
4840 SAVE_CFLAGS="$CFLAGS"
4841 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4844
4845 int
4846 main ()
4847 {
4848
4849 ;
4850 return 0;
4851 }
4852 _ACEOF
4853 if ac_fn_c_try_compile "$LINENO"; then :
4854 has_option=yes
4855 else
4856 has_option=no
4857 fi
4858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859 if test $has_option = yes; then
4860 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4861 fi
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4863 $as_echo "$has_option" >&6; }
4864 CFLAGS="$SAVE_CFLAGS"
4865 unset has_option
4866 unset 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; }
4872 SAVE_CFLAGS="$CFLAGS"
4873 CFLAGS="$CFLAGS -Wold-style-definition"
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4876
4877 int
4878 main ()
4879 {
4880
4881 ;
4882 return 0;
4883 }
4884 _ACEOF
4885 if ac_fn_c_try_compile "$LINENO"; then :
4886 has_option=yes
4887 else
4888 has_option=no
4889 fi
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891 if test $has_option = yes; then
4892 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
4893 fi
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4895 $as_echo "$has_option" >&6; }
4896 CFLAGS="$SAVE_CFLAGS"
4897 unset has_option
4898 unset 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; }
4903 SAVE_CFLAGS="$CFLAGS"
4904 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4907
4908 int
4909 main ()
4910 {
4911
4912 ;
4913 return 0;
4914 }
4915 _ACEOF
4916 if ac_fn_c_try_compile "$LINENO"; then :
4917 has_option=yes
4918 else
4919 has_option=no
4920 fi
4921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922 if test $has_option = yes; then
4923 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4924 fi
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4926 $as_echo "$has_option" >&6; }
4927 CFLAGS="$SAVE_CFLAGS"
4928 unset has_option
4929 unset SAVE_CFLAGS
4930
4931
4932
4933
4934 #### Some other nice autoconf tests.
4935
4936 ac_ext=c
4937 ac_cpp='$CPP $CPPFLAGS'
4938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4940 ac_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.
4944 if test -n "$CPP" && test -d "$CPP"; then
4945 CPP=
4946 fi
4947 if test -z "$CPP"; then
4948 if test "${ac_cv_prog_CPP+set}" = set; then :
4949 $as_echo_n "(cached) " >&6
4950 else
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
4955 for ac_c_preproc_warn_flag in '' yes
4956 do
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
4972 if ac_fn_c_try_cpp "$LINENO"; then :
4973
4974 else
4975 # Broken: fails on valid input.
4976 continue
4977 fi
4978 rm -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
4986 if ac_fn_c_try_cpp "$LINENO"; then :
4987 # Broken: success on invalid input.
4988 continue
4989 else
4990 # Passes both tests.
4991 ac_preproc_ok=:
4992 break
4993 fi
4994 rm -f conftest.err conftest.$ac_ext
4995
4996 done
4997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4998 rm -f conftest.err conftest.$ac_ext
4999 if $ac_preproc_ok; then :
5000 break
5001 fi
5002
5003 done
5004 ac_cv_prog_CPP=$CPP
5005
5006 fi
5007 CPP=$ac_cv_prog_CPP
5008 else
5009 ac_cv_prog_CPP=$CPP
5010 fi
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5012 $as_echo "$CPP" >&6; }
5013 ac_preproc_ok=false
5014 for ac_c_preproc_warn_flag in '' yes
5015 do
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
5031 if ac_fn_c_try_cpp "$LINENO"; then :
5032
5033 else
5034 # Broken: fails on valid input.
5035 continue
5036 fi
5037 rm -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
5045 if ac_fn_c_try_cpp "$LINENO"; then :
5046 # Broken: success on invalid input.
5047 continue
5048 else
5049 # Passes both tests.
5050 ac_preproc_ok=:
5051 break
5052 fi
5053 rm -f conftest.err conftest.$ac_ext
5054
5055 done
5056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5057 rm -f conftest.err conftest.$ac_ext
5058 if $ac_preproc_ok; then :
5059
5060 else
5061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5063 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5064 See \`config.log' for more details." "$LINENO" 5; }
5065 fi
5066
5067 ac_ext=c
5068 ac_cpp='$CPP $CPPFLAGS'
5069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071 ac_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; }
5089 if test -z "$INSTALL"; then
5090 if test "${ac_cv_path_install+set}" = set; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 # Account for people who put trailing slashes in PATH elements.
5099 case $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 ;;
5137 esac
5138
5139 done
5140 IFS=$as_save_IFS
5141
5142 rm -rf conftest.one conftest.two conftest.dir
5143
5144 fi
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
5154 fi
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.
5160 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5161
5162 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5163
5164 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5165
5166 if 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.
5169 set 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; }
5172 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5173 $as_echo_n "(cached) " >&6
5174 else
5175 if test -n "$RANLIB"; then
5176 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5177 else
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5180 do
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
5189 done
5190 done
5191 IFS=$as_save_IFS
5192
5193 fi
5194 fi
5195 RANLIB=$ac_cv_prog_RANLIB
5196 if test -n "$RANLIB"; then
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5198 $as_echo "$RANLIB" >&6; }
5199 else
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201 $as_echo "no" >&6; }
5202 fi
5203
5204
5205 fi
5206 if 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.
5209 set 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; }
5212 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5213 $as_echo_n "(cached) " >&6
5214 else
5215 if test -n "$ac_ct_RANLIB"; then
5216 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5217 else
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
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
5229 done
5230 done
5231 IFS=$as_save_IFS
5232
5233 fi
5234 fi
5235 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5236 if 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; }
5239 else
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5242 fi
5243
5244 if test "x$ac_ct_RANLIB" = x; then
5245 RANLIB=":"
5246 else
5247 case $cross_compiling:$ac_tool_warned in
5248 yes:)
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;}
5251 ac_tool_warned=yes ;;
5252 esac
5253 RANLIB=$ac_ct_RANLIB
5254 fi
5255 else
5256 RANLIB="$ac_cv_prog_RANLIB"
5257 fi
5258
5259 fi
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.
5265 if test "$machine" = "amdx86-64"; then
5266 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5267 if test "x$ac_cv_have_decl_i386" = x""yes; then :
5268
5269 fi
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
5276 fi
5277
5278 # Extract the first word of "install-info", so it can be a program name with args.
5279 set 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; }
5282 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5283 $as_echo_n "(cached) " >&6
5284 else
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
5291 for as_dir in $PATH
5292 do
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
5301 done
5302 done
5303 IFS=$as_save_IFS
5304
5305 ;;
5306 esac
5307 fi
5308 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5309 if test -n "$INSTALL_INFO"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5311 $as_echo "$INSTALL_INFO" >&6; }
5312 else
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5315 fi
5316
5317
5318 # Extract the first word of "install-info", so it can be a program name with args.
5319 set 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; }
5322 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5323 $as_echo_n "(cached) " >&6
5324 else
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
5331 for as_dir in /usr/sbin
5332 do
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
5341 done
5342 done
5343 IFS=$as_save_IFS
5344
5345 ;;
5346 esac
5347 fi
5348 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5349 if test -n "$INSTALL_INFO"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5351 $as_echo "$INSTALL_INFO" >&6; }
5352 else
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }
5355 fi
5356
5357
5358 # Extract the first word of "install-info", so it can be a program name with args.
5359 set 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; }
5362 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5363 $as_echo_n "(cached) " >&6
5364 else
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
5371 for as_dir in /sbin
5372 do
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
5381 done
5382 done
5383 IFS=$as_save_IFS
5384
5385 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5386 ;;
5387 esac
5388 fi
5389 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5390 if test -n "$INSTALL_INFO"; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5392 $as_echo "$INSTALL_INFO" >&6; }
5393 else
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 $as_echo "no" >&6; }
5396 fi
5397
5398
5399 # Extract the first word of "gzip", so it can be a program name with args.
5400 set 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; }
5403 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5404 $as_echo_n "(cached) " >&6
5405 else
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
5412 for as_dir in $PATH
5413 do
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
5422 done
5423 done
5424 IFS=$as_save_IFS
5425
5426 ;;
5427 esac
5428 fi
5429 GZIP_PROG=$ac_cv_path_GZIP_PROG
5430 if test -n "$GZIP_PROG"; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5432 $as_echo "$GZIP_PROG" >&6; }
5433 else
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5436 fi
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.
5443 set 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; }
5446 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5447 $as_echo_n "(cached) " >&6
5448 else
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
5455 for as_dir in $PATH
5456 do
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
5465 done
5466 done
5467 IFS=$as_save_IFS
5468
5469 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5470 ;;
5471 esac
5472 fi
5473 MAKEINFO=$ac_cv_path_MAKEINFO
5474 if test -n "$MAKEINFO"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5476 $as_echo "$MAKEINFO" >&6; }
5477 else
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5480 fi
5481
5482
5483 if 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
5486 fi
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.
5497 if 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
5502 source tree does not seem to have pre-built manuals in the \`info' directory.
5503 Either install a suitable version of makeinfo, or re-run configure
5504 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5505 fi
5506 fi
5507
5508
5509 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5510 then
5511 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5512 fi
5513
5514 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5515 then
5516 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5517 fi
5518
5519
5520 late_LDFLAGS=$LDFLAGS
5521 if test "$GCC" = yes; then
5522 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5523 else
5524 LDFLAGS="$LDFLAGS -znocombreloc"
5525 fi
5526
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5528 $as_echo_n "checking for -znocombreloc... " >&6; }
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5531 main(){return 0;}
5532 _ACEOF
5533 if ac_fn_c_try_link "$LINENO"; then :
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5535 $as_echo "yes" >&6; }
5536 else
5537 LDFLAGS=$late_LDFLAGS
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5540 fi
5541 rm -f core conftest.err conftest.$ac_objext \
5542 conftest$ac_exeext conftest.$ac_ext
5543
5544
5545 # The value of CPP is a quoted variable reference, so we need to do this
5546 # to get its actual value...
5547 CPP=`eval "echo $CPP"`
5548
5549
5550 CANNOT_DUMP=no
5551 case "$opsys" in
5552 your-opsys-here)
5553 CANNOT_DUMP=yes
5554
5555 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5556
5557 ;;
5558 esac
5559
5560
5561
5562 UNEXEC_OBJ=unexelf.o
5563 case "$opsys" in
5564 # MSDOS uses unexcoff.o
5565 # MSWindows uses unexw32.o
5566 aix4-2)
5567 UNEXEC_OBJ=unexaix.o
5568 ;;
5569 cygwin)
5570 UNEXEC_OBJ=unexcw.o
5571 ;;
5572 darwin)
5573 UNEXEC_OBJ=unexmacosx.o
5574 ;;
5575 hpux10-20 | hpux11)
5576 UNEXEC_OBJ=unexhp9k800.o
5577 ;;
5578 sol2-10)
5579 # Use the Solaris dldump() function, called from unexsol.c, to dump
5580 # emacs, instead of the generic ELF dump code found in unexelf.c.
5581 # The resulting binary has a complete symbol table, and is better
5582 # for debugging and other observability tools (debuggers, pstack, etc).
5583 #
5584 # If you encounter a problem using dldump(), please consider sending
5585 # a message to the OpenSolaris tools-linking mailing list:
5586 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5587 #
5588 # It is likely that dldump() works with older Solaris too, but this has
5589 # not been tested, so for now this change is for Solaris 10 or newer.
5590 UNEXEC_OBJ=unexsol.o
5591 ;;
5592 esac
5593
5594 LD_SWITCH_SYSTEM=
5595 case "$opsys" in
5596 freebsd)
5597 ## Let `ld' find image libs and similar things in /usr/local/lib.
5598 ## The system compiler, GCC, has apparently been modified to not
5599 ## look there, contrary to what a stock GCC would do.
5600 LD_SWITCH_SYSTEM=-L/usr/local/lib
5601 ;;
5602
5603 gnu-linux)
5604 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5605 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5606 ;;
5607
5608 netbsd)
5609 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5610 ;;
5611
5612 openbsd)
5613 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5614 ## otherwise Emacs dumps core on elf systems.
5615 LD_SWITCH_SYSTEM="-Z"
5616 ;;
5617 esac
5618
5619
5620 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5621
5622 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5623 ## which has not been defined yet. When this was handled with cpp,
5624 ## it was expanded to null when configure sourced the s/*.h file.
5625 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5626 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5627 ## (or somesuch), but because it is supposed to go at the _front_
5628 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5629 ## Compare with the gnu-linux case below, which added to the end
5630 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5631 ## LD_SWITCH_SYSTEM_TEMACS.
5632 case "$opsys" in
5633 netbsd|openbsd)
5634 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5635 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5636 esac
5637
5638
5639 C_SWITCH_MACHINE=
5640 if test "$machine" = "alpha"; then
5641 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5642 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
5643
5644 fi
5645
5646 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5647 ## With ELF, make sure that all common symbols get allocated to in the
5648 ## data section. Otherwise, the dump of temacs may miss variables in
5649 ## the shared library that have been initialized. For example, with
5650 ## GNU libc, __malloc_initialized would normally be resolved to the
5651 ## shared library's .bss section, which is fatal.
5652 if test "x$GCC" = "xyes"; then
5653 C_SWITCH_MACHINE="-fno-common"
5654 else
5655 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5656 fi
5657 else
5658 UNEXEC_OBJ=unexalpha.o
5659 fi
5660 fi
5661
5662
5663
5664
5665 C_SWITCH_SYSTEM=
5666 ## Some programs in src produce warnings saying certain subprograms
5667 ## are too complex and need a MAXMEM value greater than 2000 for
5668 ## additional optimization. --nils@exp-math.uni-essen.de
5669 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5670 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
5671 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5672 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5673
5674
5675
5676 LIBS_SYSTEM=
5677 case "$opsys" in
5678 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5679 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
5680
5681 freebsd) LIBS_SYSTEM="-lutil" ;;
5682
5683 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
5684
5685 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
5686
5687 ## Motif needs -lgen.
5688 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
5689 esac
5690
5691
5692
5693 ### Make sure subsequent tests use flags consistent with the build flags.
5694
5695 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5696 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5697 else
5698 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5699 fi
5700
5701
5702
5703 # Check whether --enable-largefile was given.
5704 if test "${enable_largefile+set}" = set; then :
5705 enableval=$enable_largefile;
5706 fi
5707
5708 if test "$enable_largefile" != no; then
5709
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5711 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5712 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5715 ac_cv_sys_largefile_CC=no
5716 if test "$GCC" != yes; then
5717 ac_save_CC=$CC
5718 while :; do
5719 # IRIX 6.2 and later do not support large files by default,
5720 # so use the C compiler's -n32 option if that helps.
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5723 #include <sys/types.h>
5724 /* Check that off_t can represent 2**63 - 1 correctly.
5725 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5726 since some C++ compilers masquerading as C compilers
5727 incorrectly reject 9223372036854775807. */
5728 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5729 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5730 && LARGE_OFF_T % 2147483647 == 1)
5731 ? 1 : -1];
5732 int
5733 main ()
5734 {
5735
5736 ;
5737 return 0;
5738 }
5739 _ACEOF
5740 if ac_fn_c_try_compile "$LINENO"; then :
5741 break
5742 fi
5743 rm -f core conftest.err conftest.$ac_objext
5744 CC="$CC -n32"
5745 if ac_fn_c_try_compile "$LINENO"; then :
5746 ac_cv_sys_largefile_CC=' -n32'; break
5747 fi
5748 rm -f core conftest.err conftest.$ac_objext
5749 break
5750 done
5751 CC=$ac_save_CC
5752 rm -f conftest.$ac_ext
5753 fi
5754 fi
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5756 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5757 if test "$ac_cv_sys_largefile_CC" != no; then
5758 CC=$CC$ac_cv_sys_largefile_CC
5759 fi
5760
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5762 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5763 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5764 $as_echo_n "(cached) " >&6
5765 else
5766 while :; do
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5769 #include <sys/types.h>
5770 /* Check that off_t can represent 2**63 - 1 correctly.
5771 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5772 since some C++ compilers masquerading as C compilers
5773 incorrectly reject 9223372036854775807. */
5774 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5775 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5776 && LARGE_OFF_T % 2147483647 == 1)
5777 ? 1 : -1];
5778 int
5779 main ()
5780 {
5781
5782 ;
5783 return 0;
5784 }
5785 _ACEOF
5786 if ac_fn_c_try_compile "$LINENO"; then :
5787 ac_cv_sys_file_offset_bits=no; break
5788 fi
5789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792 #define _FILE_OFFSET_BITS 64
5793 #include <sys/types.h>
5794 /* Check that off_t can represent 2**63 - 1 correctly.
5795 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5796 since some C++ compilers masquerading as C compilers
5797 incorrectly reject 9223372036854775807. */
5798 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5799 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5800 && LARGE_OFF_T % 2147483647 == 1)
5801 ? 1 : -1];
5802 int
5803 main ()
5804 {
5805
5806 ;
5807 return 0;
5808 }
5809 _ACEOF
5810 if ac_fn_c_try_compile "$LINENO"; then :
5811 ac_cv_sys_file_offset_bits=64; break
5812 fi
5813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5814 ac_cv_sys_file_offset_bits=unknown
5815 break
5816 done
5817 fi
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5819 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5820 case $ac_cv_sys_file_offset_bits in #(
5821 no | unknown) ;;
5822 *)
5823 cat >>confdefs.h <<_ACEOF
5824 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5825 _ACEOF
5826 ;;
5827 esac
5828 rm -rf conftest*
5829 if test $ac_cv_sys_file_offset_bits = unknown; then
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5831 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5832 if test "${ac_cv_sys_large_files+set}" = set; then :
5833 $as_echo_n "(cached) " >&6
5834 else
5835 while :; do
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5838 #include <sys/types.h>
5839 /* Check that off_t can represent 2**63 - 1 correctly.
5840 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5841 since some C++ compilers masquerading as C compilers
5842 incorrectly reject 9223372036854775807. */
5843 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5844 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5845 && LARGE_OFF_T % 2147483647 == 1)
5846 ? 1 : -1];
5847 int
5848 main ()
5849 {
5850
5851 ;
5852 return 0;
5853 }
5854 _ACEOF
5855 if ac_fn_c_try_compile "$LINENO"; then :
5856 ac_cv_sys_large_files=no; break
5857 fi
5858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860 /* end confdefs.h. */
5861 #define _LARGE_FILES 1
5862 #include <sys/types.h>
5863 /* Check that off_t can represent 2**63 - 1 correctly.
5864 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5865 since some C++ compilers masquerading as C compilers
5866 incorrectly reject 9223372036854775807. */
5867 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5868 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5869 && LARGE_OFF_T % 2147483647 == 1)
5870 ? 1 : -1];
5871 int
5872 main ()
5873 {
5874
5875 ;
5876 return 0;
5877 }
5878 _ACEOF
5879 if ac_fn_c_try_compile "$LINENO"; then :
5880 ac_cv_sys_large_files=1; break
5881 fi
5882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 ac_cv_sys_large_files=unknown
5884 break
5885 done
5886 fi
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5888 $as_echo "$ac_cv_sys_large_files" >&6; }
5889 case $ac_cv_sys_large_files in #(
5890 no | unknown) ;;
5891 *)
5892 cat >>confdefs.h <<_ACEOF
5893 #define _LARGE_FILES $ac_cv_sys_large_files
5894 _ACEOF
5895 ;;
5896 esac
5897 rm -rf conftest*
5898 fi
5899 fi
5900
5901
5902
5903 ## If user specified a crt-dir, use that unconditionally.
5904 if test "X$CRT_DIR" = "X"; then
5905
5906 case "$canonical" in
5907 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
5908 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5909 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5910 ## For anything else (eg /usr/lib32), it is up the user to specify
5911 ## the location (bug#5655).
5912 ## Test for crtn.o, not just the directory, because sometimes the
5913 ## directory exists but does not have the relevant files (bug#1287).
5914 ## FIXME better to test for binary compatibility somehow.
5915 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5916 ;;
5917
5918 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
5919 esac
5920
5921 case "$opsys" in
5922 hpux10-20) CRT_DIR=/lib ;;
5923 esac
5924
5925 ## Default is /usr/lib.
5926 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5927
5928 else
5929
5930 ## Some platforms don't use any of these files, so it is not
5931 ## appropriate to put this test outside the if block.
5932 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5933 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
5934
5935 fi
5936
5937
5938
5939 LIB_MATH=-lm
5940 LIB_STANDARD=
5941 START_FILES=
5942
5943 case $opsys in
5944 cygwin )
5945 LIB_MATH=
5946 START_FILES='pre-crt0.o'
5947 ;;
5948 darwin )
5949 ## Adding -lm confuses the dynamic linker, so omit it.
5950 LIB_MATH=
5951 START_FILES='pre-crt0.o'
5952 ;;
5953 freebsd )
5954 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5955 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5956 ;;
5957 gnu-linux | gnu-kfreebsd )
5958 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5959 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5960 ;;
5961 hpux10-20 | hpux11 )
5962 LIB_STANDARD=-lc
5963 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
5964 ;;
5965 netbsd | openbsd )
5966 if test -f $CRT_DIR/crti.o; then
5967 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5968 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5969 else
5970 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5971 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5972 fi
5973 ;;
5974 esac
5975
5976
5977
5978
5979
5980
5981
5982 if test "${with_sound}" != "no"; then
5983 # Sound support for GNU/Linux and the free BSDs.
5984 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5985 do :
5986 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5987 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5988 eval as_val=\$$as_ac_Header
5989 if test "x$as_val" = x""yes; then :
5990 cat >>confdefs.h <<_ACEOF
5991 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5992 _ACEOF
5993 have_sound_header=yes
5994 fi
5995
5996 done
5997
5998 # Emulation library used on NetBSD.
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
6000 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6001 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
6002 $as_echo_n "(cached) " >&6
6003 else
6004 ac_check_lib_save_LIBS=$LIBS
6005 LIBS="-lossaudio $LIBS"
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6008
6009 /* Override any GCC internal prototype to avoid an error.
6010 Use char because int might match the return type of a GCC
6011 builtin and then its argument prototype would still apply. */
6012 #ifdef __cplusplus
6013 extern "C"
6014 #endif
6015 char _oss_ioctl ();
6016 int
6017 main ()
6018 {
6019 return _oss_ioctl ();
6020 ;
6021 return 0;
6022 }
6023 _ACEOF
6024 if ac_fn_c_try_link "$LINENO"; then :
6025 ac_cv_lib_ossaudio__oss_ioctl=yes
6026 else
6027 ac_cv_lib_ossaudio__oss_ioctl=no
6028 fi
6029 rm -f core conftest.err conftest.$ac_objext \
6030 conftest$ac_exeext conftest.$ac_ext
6031 LIBS=$ac_check_lib_save_LIBS
6032 fi
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6034 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6035 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
6036 LIBSOUND=-lossaudio
6037 else
6038 LIBSOUND=
6039 fi
6040
6041
6042
6043 ALSA_REQUIRED=1.0.0
6044 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6045
6046 succeeded=no
6047
6048 # Extract the first word of "pkg-config", so it can be a program name with args.
6049 set dummy pkg-config; ac_word=$2
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 case $PKG_CONFIG in
6056 [\\/]* | ?:[\\/]*)
6057 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6058 ;;
6059 *)
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH
6062 do
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6067 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6070 fi
6071 done
6072 done
6073 IFS=$as_save_IFS
6074
6075 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6076 ;;
6077 esac
6078 fi
6079 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6080 if test -n "$PKG_CONFIG"; then
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6082 $as_echo "$PKG_CONFIG" >&6; }
6083 else
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085 $as_echo "no" >&6; }
6086 fi
6087
6088
6089
6090 if test "$PKG_CONFIG" = "no" ; then
6091 HAVE_ALSA=no
6092 else
6093 PKG_CONFIG_MIN_VERSION=0.9.0
6094 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6096 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6097
6098 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6100 $as_echo "yes" >&6; }
6101 succeeded=yes
6102
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6104 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6105 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6107 $as_echo "$ALSA_CFLAGS" >&6; }
6108
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6110 $as_echo_n "checking ALSA_LIBS... " >&6; }
6111 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6113 $as_echo "$ALSA_LIBS" >&6; }
6114 else
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116 $as_echo "no" >&6; }
6117 ALSA_CFLAGS=""
6118 ALSA_LIBS=""
6119 ## If we have a custom action on failure, don't print errors, but
6120 ## do set a variable so people can do so.
6121 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6122
6123 fi
6124
6125
6126
6127 else
6128 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6129 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6130 fi
6131 fi
6132
6133 if test $succeeded = yes; then
6134 HAVE_ALSA=yes
6135 else
6136 HAVE_ALSA=no
6137 fi
6138
6139 if test $HAVE_ALSA = yes; then
6140 SAVE_CFLAGS="$CFLAGS"
6141 SAVE_LDFLAGS="$LDFLAGS"
6142 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6143 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6146 #include <asoundlib.h>
6147 int
6148 main ()
6149 {
6150 snd_lib_error_set_handler (0);
6151 ;
6152 return 0;
6153 }
6154 _ACEOF
6155 if ac_fn_c_try_compile "$LINENO"; then :
6156 emacs_alsa_normal=yes
6157 else
6158 emacs_alsa_normal=no
6159 fi
6160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6161 if test "$emacs_alsa_normal" != yes; then
6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h. */
6164 #include <alsa/asoundlib.h>
6165 int
6166 main ()
6167 {
6168 snd_lib_error_set_handler (0);
6169 ;
6170 return 0;
6171 }
6172 _ACEOF
6173 if ac_fn_c_try_compile "$LINENO"; then :
6174 emacs_alsa_subdir=yes
6175 else
6176 emacs_alsa_subdir=no
6177 fi
6178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6179 if test "$emacs_alsa_subdir" != yes; then
6180 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6181 fi
6182 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6183 fi
6184
6185 CFLAGS="$SAVE_CFLAGS"
6186 LDFLAGS="$SAVE_LDFLAGS"
6187 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6188 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6189
6190 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6191
6192 fi
6193
6194 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
6195 case "$opsys" in
6196 gnu-linux|freebsd|netbsd)
6197
6198 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6199
6200 ;;
6201 esac
6202 fi
6203
6204
6205 fi
6206
6207 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6208 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6209 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6210 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6211 sys/utsname.h pwd.h utmp.h dirent.h util.h
6212 do :
6213 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6214 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6215 eval as_val=\$$as_ac_Header
6216 if test "x$as_val" = x""yes; then :
6217 cat >>confdefs.h <<_ACEOF
6218 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6219 _ACEOF
6220
6221 fi
6222
6223 done
6224
6225
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6227 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6230 #include <sys/personality.h>
6231 int
6232 main ()
6233 {
6234 personality (PER_LINUX32)
6235 ;
6236 return 0;
6237 }
6238 _ACEOF
6239 if ac_fn_c_try_compile "$LINENO"; then :
6240 emacs_cv_personality_linux32=yes
6241 else
6242 emacs_cv_personality_linux32=no
6243 fi
6244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6246 $as_echo "$emacs_cv_personality_linux32" >&6; }
6247
6248 if test $emacs_cv_personality_linux32 = yes; then
6249
6250 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6251
6252 fi
6253
6254 for ac_header in term.h
6255 do :
6256 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6257 if test "x$ac_cv_header_term_h" = x""yes; then :
6258 cat >>confdefs.h <<_ACEOF
6259 #define HAVE_TERM_H 1
6260 _ACEOF
6261
6262 fi
6263
6264 done
6265
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6267 $as_echo_n "checking for ANSI C header files... " >&6; }
6268 if test "${ac_cv_header_stdc+set}" = set; then :
6269 $as_echo_n "(cached) " >&6
6270 else
6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6273 #include <stdlib.h>
6274 #include <stdarg.h>
6275 #include <string.h>
6276 #include <float.h>
6277
6278 int
6279 main ()
6280 {
6281
6282 ;
6283 return 0;
6284 }
6285 _ACEOF
6286 if ac_fn_c_try_compile "$LINENO"; then :
6287 ac_cv_header_stdc=yes
6288 else
6289 ac_cv_header_stdc=no
6290 fi
6291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6292
6293 if test $ac_cv_header_stdc = yes; then
6294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h. */
6297 #include <string.h>
6298
6299 _ACEOF
6300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6301 $EGREP "memchr" >/dev/null 2>&1; then :
6302
6303 else
6304 ac_cv_header_stdc=no
6305 fi
6306 rm -f conftest*
6307
6308 fi
6309
6310 if test $ac_cv_header_stdc = yes; then
6311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6314 #include <stdlib.h>
6315
6316 _ACEOF
6317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6318 $EGREP "free" >/dev/null 2>&1; then :
6319
6320 else
6321 ac_cv_header_stdc=no
6322 fi
6323 rm -f conftest*
6324
6325 fi
6326
6327 if test $ac_cv_header_stdc = yes; then
6328 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6329 if test "$cross_compiling" = yes; then :
6330 :
6331 else
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6334 #include <ctype.h>
6335 #include <stdlib.h>
6336 #if ((' ' & 0x0FF) == 0x020)
6337 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6338 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6339 #else
6340 # define ISLOWER(c) \
6341 (('a' <= (c) && (c) <= 'i') \
6342 || ('j' <= (c) && (c) <= 'r') \
6343 || ('s' <= (c) && (c) <= 'z'))
6344 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6345 #endif
6346
6347 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6348 int
6349 main ()
6350 {
6351 int i;
6352 for (i = 0; i < 256; i++)
6353 if (XOR (islower (i), ISLOWER (i))
6354 || toupper (i) != TOUPPER (i))
6355 return 2;
6356 return 0;
6357 }
6358 _ACEOF
6359 if ac_fn_c_try_run "$LINENO"; then :
6360
6361 else
6362 ac_cv_header_stdc=no
6363 fi
6364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6365 conftest.$ac_objext conftest.beam conftest.$ac_ext
6366 fi
6367
6368 fi
6369 fi
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6371 $as_echo "$ac_cv_header_stdc" >&6; }
6372 if test $ac_cv_header_stdc = yes; then
6373
6374 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6375
6376 fi
6377
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6379 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6380 if test "${ac_cv_header_time+set}" = set; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6385 #include <sys/types.h>
6386 #include <sys/time.h>
6387 #include <time.h>
6388
6389 int
6390 main ()
6391 {
6392 if ((struct tm *) 0)
6393 return 0;
6394 ;
6395 return 0;
6396 }
6397 _ACEOF
6398 if ac_fn_c_try_compile "$LINENO"; then :
6399 ac_cv_header_time=yes
6400 else
6401 ac_cv_header_time=no
6402 fi
6403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6404 fi
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6406 $as_echo "$ac_cv_header_time" >&6; }
6407 if test $ac_cv_header_time = yes; then
6408
6409 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6410
6411 fi
6412
6413 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6414 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6415 ac_have_decl=1
6416 else
6417 ac_have_decl=0
6418 fi
6419
6420 cat >>confdefs.h <<_ACEOF
6421 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6422 _ACEOF
6423
6424 if test $ac_cv_have_decl_sys_siglist != yes; then
6425 # For Tru64, at least:
6426 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6427 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6428 ac_have_decl=1
6429 else
6430 ac_have_decl=0
6431 fi
6432
6433 cat >>confdefs.h <<_ACEOF
6434 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6435 _ACEOF
6436
6437 if test $ac_cv_have_decl___sys_siglist = yes; then
6438
6439 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6440
6441 fi
6442 fi
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6444 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6445 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449 /* end confdefs.h. */
6450 #include <sys/types.h>
6451 #include <sys/wait.h>
6452 #ifndef WEXITSTATUS
6453 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6454 #endif
6455 #ifndef WIFEXITED
6456 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6457 #endif
6458
6459 int
6460 main ()
6461 {
6462 int s;
6463 wait (&s);
6464 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6465 ;
6466 return 0;
6467 }
6468 _ACEOF
6469 if ac_fn_c_try_compile "$LINENO"; then :
6470 ac_cv_header_sys_wait_h=yes
6471 else
6472 ac_cv_header_sys_wait_h=no
6473 fi
6474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475 fi
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6477 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6478 if test $ac_cv_header_sys_wait_h = yes; then
6479
6480 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6481
6482 fi
6483
6484
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6486 $as_echo_n "checking for struct utimbuf... " >&6; }
6487 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6492 #ifdef TIME_WITH_SYS_TIME
6493 #include <sys/time.h>
6494 #include <time.h>
6495 #else
6496 #ifdef HAVE_SYS_TIME_H
6497 #include <sys/time.h>
6498 #else
6499 #include <time.h>
6500 #endif
6501 #endif
6502 #ifdef HAVE_UTIME_H
6503 #include <utime.h>
6504 #endif
6505 int
6506 main ()
6507 {
6508 static struct utimbuf x; x.actime = x.modtime;
6509 ;
6510 return 0;
6511 }
6512 _ACEOF
6513 if ac_fn_c_try_compile "$LINENO"; then :
6514 emacs_cv_struct_utimbuf=yes
6515 else
6516 emacs_cv_struct_utimbuf=no
6517 fi
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 fi
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6521 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6522 if test $emacs_cv_struct_utimbuf = yes; then
6523
6524 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6525
6526 fi
6527
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6529 $as_echo_n "checking return type of signal handlers... " >&6; }
6530 if test "${ac_cv_type_signal+set}" = set; then :
6531 $as_echo_n "(cached) " >&6
6532 else
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6535 #include <sys/types.h>
6536 #include <signal.h>
6537
6538 int
6539 main ()
6540 {
6541 return *(signal (0, 0)) (0) == 1;
6542 ;
6543 return 0;
6544 }
6545 _ACEOF
6546 if ac_fn_c_try_compile "$LINENO"; then :
6547 ac_cv_type_signal=int
6548 else
6549 ac_cv_type_signal=void
6550 fi
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552 fi
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6554 $as_echo "$ac_cv_type_signal" >&6; }
6555
6556 cat >>confdefs.h <<_ACEOF
6557 #define RETSIGTYPE $ac_cv_type_signal
6558 _ACEOF
6559
6560
6561
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6563 $as_echo_n "checking for speed_t... " >&6; }
6564 if test "${emacs_cv_speed_t+set}" = set; then :
6565 $as_echo_n "(cached) " >&6
6566 else
6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h. */
6569 #include <termios.h>
6570 int
6571 main ()
6572 {
6573 speed_t x = 1;
6574 ;
6575 return 0;
6576 }
6577 _ACEOF
6578 if ac_fn_c_try_compile "$LINENO"; then :
6579 emacs_cv_speed_t=yes
6580 else
6581 emacs_cv_speed_t=no
6582 fi
6583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6584 fi
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6586 $as_echo "$emacs_cv_speed_t" >&6; }
6587 if test $emacs_cv_speed_t = yes; then
6588
6589 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6590
6591 fi
6592
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6594 $as_echo_n "checking for struct timeval... " >&6; }
6595 if test "${emacs_cv_struct_timeval+set}" = set; then :
6596 $as_echo_n "(cached) " >&6
6597 else
6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6600 #ifdef TIME_WITH_SYS_TIME
6601 #include <sys/time.h>
6602 #include <time.h>
6603 #else
6604 #ifdef HAVE_SYS_TIME_H
6605 #include <sys/time.h>
6606 #else
6607 #include <time.h>
6608 #endif
6609 #endif
6610 int
6611 main ()
6612 {
6613 static struct timeval x; x.tv_sec = x.tv_usec;
6614 ;
6615 return 0;
6616 }
6617 _ACEOF
6618 if ac_fn_c_try_compile "$LINENO"; then :
6619 emacs_cv_struct_timeval=yes
6620 else
6621 emacs_cv_struct_timeval=no
6622 fi
6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6624 fi
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6626 $as_echo "$emacs_cv_struct_timeval" >&6; }
6627 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6628 if test $emacs_cv_struct_timeval = yes; then
6629
6630 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6631
6632 fi
6633
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6635 $as_echo_n "checking for struct exception... " >&6; }
6636 if test "${emacs_cv_struct_exception+set}" = set; then :
6637 $as_echo_n "(cached) " >&6
6638 else
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6641 #include <math.h>
6642 int
6643 main ()
6644 {
6645 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6646 ;
6647 return 0;
6648 }
6649 _ACEOF
6650 if ac_fn_c_try_compile "$LINENO"; then :
6651 emacs_cv_struct_exception=yes
6652 else
6653 emacs_cv_struct_exception=no
6654 fi
6655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656 fi
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6658 $as_echo "$emacs_cv_struct_exception" >&6; }
6659 HAVE_EXCEPTION=$emacs_cv_struct_exception
6660 if test $emacs_cv_struct_exception != yes; then
6661
6662 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6663
6664 fi
6665
6666 for ac_header in sys/socket.h
6667 do :
6668 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6669 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6670 cat >>confdefs.h <<_ACEOF
6671 #define HAVE_SYS_SOCKET_H 1
6672 _ACEOF
6673
6674 fi
6675
6676 done
6677
6678 for ac_header in net/if.h
6679 do :
6680 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6681 #if HAVE_SYS_SOCKET_H
6682 #include <sys/socket.h>
6683 #endif
6684 "
6685 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6686 cat >>confdefs.h <<_ACEOF
6687 #define HAVE_NET_IF_H 1
6688 _ACEOF
6689
6690 fi
6691
6692 done
6693
6694
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6696 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6697 if test "${ac_cv_struct_tm+set}" = set; then :
6698 $as_echo_n "(cached) " >&6
6699 else
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h. */
6702 #include <sys/types.h>
6703 #include <time.h>
6704
6705 int
6706 main ()
6707 {
6708 struct tm tm;
6709 int *p = &tm.tm_sec;
6710 return !p;
6711 ;
6712 return 0;
6713 }
6714 _ACEOF
6715 if ac_fn_c_try_compile "$LINENO"; then :
6716 ac_cv_struct_tm=time.h
6717 else
6718 ac_cv_struct_tm=sys/time.h
6719 fi
6720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721 fi
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6723 $as_echo "$ac_cv_struct_tm" >&6; }
6724 if test $ac_cv_struct_tm = sys/time.h; then
6725
6726 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6727
6728 fi
6729
6730 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6731 #include <$ac_cv_struct_tm>
6732
6733 "
6734 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6735
6736 cat >>confdefs.h <<_ACEOF
6737 #define HAVE_STRUCT_TM_TM_ZONE 1
6738 _ACEOF
6739
6740
6741 fi
6742
6743 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6744
6745 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6746
6747 else
6748 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6749 "
6750 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6751 ac_have_decl=1
6752 else
6753 ac_have_decl=0
6754 fi
6755
6756 cat >>confdefs.h <<_ACEOF
6757 #define HAVE_DECL_TZNAME $ac_have_decl
6758 _ACEOF
6759
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6761 $as_echo_n "checking for tzname... " >&6; }
6762 if test "${ac_cv_var_tzname+set}" = set; then :
6763 $as_echo_n "(cached) " >&6
6764 else
6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6767 #include <time.h>
6768 #if !HAVE_DECL_TZNAME
6769 extern char *tzname[];
6770 #endif
6771
6772 int
6773 main ()
6774 {
6775 return tzname[0][0];
6776 ;
6777 return 0;
6778 }
6779 _ACEOF
6780 if ac_fn_c_try_link "$LINENO"; then :
6781 ac_cv_var_tzname=yes
6782 else
6783 ac_cv_var_tzname=no
6784 fi
6785 rm -f core conftest.err conftest.$ac_objext \
6786 conftest$ac_exeext conftest.$ac_ext
6787 fi
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6789 $as_echo "$ac_cv_var_tzname" >&6; }
6790 if test $ac_cv_var_tzname = yes; then
6791
6792 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6793
6794 fi
6795 fi
6796
6797 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6798 "
6799 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6800
6801 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6802
6803 fi
6804
6805 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6806 #if HAVE_SYS_SOCKET_H
6807 #include <sys/socket.h>
6808 #endif
6809 #if HAVE_NET_IF_H
6810 #include <net/if.h>
6811 #endif
6812 "
6813 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6814
6815 cat >>confdefs.h <<_ACEOF
6816 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6817 _ACEOF
6818
6819
6820 fi
6821 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6822 #if HAVE_SYS_SOCKET_H
6823 #include <sys/socket.h>
6824 #endif
6825 #if HAVE_NET_IF_H
6826 #include <net/if.h>
6827 #endif
6828 "
6829 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6830
6831 cat >>confdefs.h <<_ACEOF
6832 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6833 _ACEOF
6834
6835
6836 fi
6837 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6838 #if HAVE_SYS_SOCKET_H
6839 #include <sys/socket.h>
6840 #endif
6841 #if HAVE_NET_IF_H
6842 #include <net/if.h>
6843 #endif
6844 "
6845 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6846
6847 cat >>confdefs.h <<_ACEOF
6848 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6849 _ACEOF
6850
6851
6852 fi
6853 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6854 #if HAVE_SYS_SOCKET_H
6855 #include <sys/socket.h>
6856 #endif
6857 #if HAVE_NET_IF_H
6858 #include <net/if.h>
6859 #endif
6860 "
6861 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6862
6863 cat >>confdefs.h <<_ACEOF
6864 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6865 _ACEOF
6866
6867
6868 fi
6869 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6870 #if HAVE_SYS_SOCKET_H
6871 #include <sys/socket.h>
6872 #endif
6873 #if HAVE_NET_IF_H
6874 #include <net/if.h>
6875 #endif
6876 "
6877 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6878
6879 cat >>confdefs.h <<_ACEOF
6880 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6881 _ACEOF
6882
6883
6884 fi
6885
6886
6887
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6889 $as_echo_n "checking for function prototypes... " >&6; }
6890 if test "$ac_cv_prog_cc_c89" != no; then
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6892 $as_echo "yes" >&6; }
6893
6894 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6895
6896
6897 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6898
6899 else
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6901 $as_echo "no" >&6; }
6902 fi
6903
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6905 $as_echo_n "checking for working volatile... " >&6; }
6906 if test "${ac_cv_c_volatile+set}" = set; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6911
6912 int
6913 main ()
6914 {
6915
6916 volatile int x;
6917 int * volatile y = (int *) 0;
6918 return !x && !y;
6919 ;
6920 return 0;
6921 }
6922 _ACEOF
6923 if ac_fn_c_try_compile "$LINENO"; then :
6924 ac_cv_c_volatile=yes
6925 else
6926 ac_cv_c_volatile=no
6927 fi
6928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6929 fi
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6931 $as_echo "$ac_cv_c_volatile" >&6; }
6932 if test $ac_cv_c_volatile = no; then
6933
6934 $as_echo "#define volatile /**/" >>confdefs.h
6935
6936 fi
6937
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6939 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6940 if test "${ac_cv_c_const+set}" = set; then :
6941 $as_echo_n "(cached) " >&6
6942 else
6943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944 /* end confdefs.h. */
6945
6946 int
6947 main ()
6948 {
6949 /* FIXME: Include the comments suggested by Paul. */
6950 #ifndef __cplusplus
6951 /* Ultrix mips cc rejects this. */
6952 typedef int charset[2];
6953 const charset cs;
6954 /* SunOS 4.1.1 cc rejects this. */
6955 char const *const *pcpcc;
6956 char **ppc;
6957 /* NEC SVR4.0.2 mips cc rejects this. */
6958 struct point {int x, y;};
6959 static struct point const zero = {0,0};
6960 /* AIX XL C 1.02.0.0 rejects this.
6961 It does not let you subtract one const X* pointer from another in
6962 an arm of an if-expression whose if-part is not a constant
6963 expression */
6964 const char *g = "string";
6965 pcpcc = &g + (g ? g-g : 0);
6966 /* HPUX 7.0 cc rejects these. */
6967 ++pcpcc;
6968 ppc = (char**) pcpcc;
6969 pcpcc = (char const *const *) ppc;
6970 { /* SCO 3.2v4 cc rejects this. */
6971 char *t;
6972 char const *s = 0 ? (char *) 0 : (char const *) 0;
6973
6974 *t++ = 0;
6975 if (s) return 0;
6976 }
6977 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6978 int x[] = {25, 17};
6979 const int *foo = &x[0];
6980 ++foo;
6981 }
6982 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6983 typedef const int *iptr;
6984 iptr p = 0;
6985 ++p;
6986 }
6987 { /* AIX XL C 1.02.0.0 rejects this saying
6988 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6989 struct s { int j; const int *ap[3]; };
6990 struct s *b; b->j = 5;
6991 }
6992 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6993 const int foo = 10;
6994 if (!foo) return 0;
6995 }
6996 return !cs[0] && !zero.x;
6997 #endif
6998
6999 ;
7000 return 0;
7001 }
7002 _ACEOF
7003 if ac_fn_c_try_compile "$LINENO"; then :
7004 ac_cv_c_const=yes
7005 else
7006 ac_cv_c_const=no
7007 fi
7008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7009 fi
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7011 $as_echo "$ac_cv_c_const" >&6; }
7012 if test $ac_cv_c_const = no; then
7013
7014 $as_echo "#define const /**/" >>confdefs.h
7015
7016 fi
7017
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
7019 $as_echo_n "checking for void * support... " >&6; }
7020 if test "${emacs_cv_void_star+set}" = set; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7025
7026 int
7027 main ()
7028 {
7029 void * foo;
7030 ;
7031 return 0;
7032 }
7033 _ACEOF
7034 if ac_fn_c_try_compile "$LINENO"; then :
7035 emacs_cv_void_star=yes
7036 else
7037 emacs_cv_void_star=no
7038 fi
7039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7040 fi
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7042 $as_echo "$emacs_cv_void_star" >&6; }
7043 if test $emacs_cv_void_star = yes; then
7044 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7045
7046 else
7047 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7048
7049 fi
7050
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7052 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7053 if test "${ac_cv_c_bigendian+set}" = set; then :
7054 $as_echo_n "(cached) " >&6
7055 else
7056 ac_cv_c_bigendian=unknown
7057 # See if we're dealing with a universal compiler.
7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059 /* end confdefs.h. */
7060 #ifndef __APPLE_CC__
7061 not a universal capable compiler
7062 #endif
7063 typedef int dummy;
7064
7065 _ACEOF
7066 if ac_fn_c_try_compile "$LINENO"; then :
7067
7068 # Check for potential -arch flags. It is not universal unless
7069 # there are at least two -arch flags with different values.
7070 ac_arch=
7071 ac_prev=
7072 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7073 if test -n "$ac_prev"; then
7074 case $ac_word in
7075 i?86 | x86_64 | ppc | ppc64)
7076 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7077 ac_arch=$ac_word
7078 else
7079 ac_cv_c_bigendian=universal
7080 break
7081 fi
7082 ;;
7083 esac
7084 ac_prev=
7085 elif test "x$ac_word" = "x-arch"; then
7086 ac_prev=arch
7087 fi
7088 done
7089 fi
7090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7091 if test $ac_cv_c_bigendian = unknown; then
7092 # See if sys/param.h defines the BYTE_ORDER macro.
7093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094 /* end confdefs.h. */
7095 #include <sys/types.h>
7096 #include <sys/param.h>
7097
7098 int
7099 main ()
7100 {
7101 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7102 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7103 && LITTLE_ENDIAN)
7104 bogus endian macros
7105 #endif
7106
7107 ;
7108 return 0;
7109 }
7110 _ACEOF
7111 if ac_fn_c_try_compile "$LINENO"; then :
7112 # It does; now see whether it defined to BIG_ENDIAN or not.
7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h. */
7115 #include <sys/types.h>
7116 #include <sys/param.h>
7117
7118 int
7119 main ()
7120 {
7121 #if BYTE_ORDER != BIG_ENDIAN
7122 not big endian
7123 #endif
7124
7125 ;
7126 return 0;
7127 }
7128 _ACEOF
7129 if ac_fn_c_try_compile "$LINENO"; then :
7130 ac_cv_c_bigendian=yes
7131 else
7132 ac_cv_c_bigendian=no
7133 fi
7134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135 fi
7136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7137 fi
7138 if test $ac_cv_c_bigendian = unknown; then
7139 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141 /* end confdefs.h. */
7142 #include <limits.h>
7143
7144 int
7145 main ()
7146 {
7147 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7148 bogus endian macros
7149 #endif
7150
7151 ;
7152 return 0;
7153 }
7154 _ACEOF
7155 if ac_fn_c_try_compile "$LINENO"; then :
7156 # It does; now see whether it defined to _BIG_ENDIAN or not.
7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h. */
7159 #include <limits.h>
7160
7161 int
7162 main ()
7163 {
7164 #ifndef _BIG_ENDIAN
7165 not big endian
7166 #endif
7167
7168 ;
7169 return 0;
7170 }
7171 _ACEOF
7172 if ac_fn_c_try_compile "$LINENO"; then :
7173 ac_cv_c_bigendian=yes
7174 else
7175 ac_cv_c_bigendian=no
7176 fi
7177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178 fi
7179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7180 fi
7181 if test $ac_cv_c_bigendian = unknown; then
7182 # Compile a test program.
7183 if test "$cross_compiling" = yes; then :
7184 # Try to guess by grepping values from an object file.
7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7187 short int ascii_mm[] =
7188 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7189 short int ascii_ii[] =
7190 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7191 int use_ascii (int i) {
7192 return ascii_mm[i] + ascii_ii[i];
7193 }
7194 short int ebcdic_ii[] =
7195 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7196 short int ebcdic_mm[] =
7197 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7198 int use_ebcdic (int i) {
7199 return ebcdic_mm[i] + ebcdic_ii[i];
7200 }
7201 extern int foo;
7202
7203 int
7204 main ()
7205 {
7206 return use_ascii (foo) == use_ebcdic (foo);
7207 ;
7208 return 0;
7209 }
7210 _ACEOF
7211 if ac_fn_c_try_compile "$LINENO"; then :
7212 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7213 ac_cv_c_bigendian=yes
7214 fi
7215 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7216 if test "$ac_cv_c_bigendian" = unknown; then
7217 ac_cv_c_bigendian=no
7218 else
7219 # finding both strings is unlikely to happen, but who knows?
7220 ac_cv_c_bigendian=unknown
7221 fi
7222 fi
7223 fi
7224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7225 else
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7228 $ac_includes_default
7229 int
7230 main ()
7231 {
7232
7233 /* Are we little or big endian? From Harbison&Steele. */
7234 union
7235 {
7236 long int l;
7237 char c[sizeof (long int)];
7238 } u;
7239 u.l = 1;
7240 return u.c[sizeof (long int) - 1] == 1;
7241
7242 ;
7243 return 0;
7244 }
7245 _ACEOF
7246 if ac_fn_c_try_run "$LINENO"; then :
7247 ac_cv_c_bigendian=no
7248 else
7249 ac_cv_c_bigendian=yes
7250 fi
7251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7252 conftest.$ac_objext conftest.beam conftest.$ac_ext
7253 fi
7254
7255 fi
7256 fi
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7258 $as_echo "$ac_cv_c_bigendian" >&6; }
7259 case $ac_cv_c_bigendian in #(
7260 yes)
7261 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7262 ;; #(
7263 no)
7264 ;; #(
7265 universal)
7266
7267 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7268
7269 ;; #(
7270 *)
7271 as_fn_error "unknown endianness
7272 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7273 esac
7274
7275
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7277 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7278 set x ${MAKE-make}
7279 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7280 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7281 $as_echo_n "(cached) " >&6
7282 else
7283 cat >conftest.make <<\_ACEOF
7284 SHELL = /bin/sh
7285 all:
7286 @echo '@@@%%%=$(MAKE)=@@@%%%'
7287 _ACEOF
7288 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7289 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7290 *@@@%%%=?*=@@@%%%*)
7291 eval ac_cv_prog_make_${ac_make}_set=yes;;
7292 *)
7293 eval ac_cv_prog_make_${ac_make}_set=no;;
7294 esac
7295 rm -f conftest.make
7296 fi
7297 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7299 $as_echo "yes" >&6; }
7300 SET_MAKE=
7301 else
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303 $as_echo "no" >&6; }
7304 SET_MAKE="MAKE=${MAKE-make}"
7305 fi
7306
7307
7308 DEPFLAGS=
7309 MKDEPDIR=":"
7310 deps_frag=deps.mk
7311 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7313 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7314 HAVE_GNU_MAKE=no
7315 testval=`make --version 2>/dev/null | grep 'GNU Make'`
7316 if test "x$testval" != x; then
7317 HAVE_GNU_MAKE=yes
7318 else
7319 ac_enable_autodepend=no
7320 fi
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7322 $as_echo "$HAVE_GNU_MAKE" >&6; }
7323 if test $HAVE_GNU_MAKE = yes; then
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7325 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7326 SAVE_CFLAGS="$CFLAGS"
7327 CFLAGS="$CFLAGS -MMD -MF deps.d"
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7330
7331 int
7332 main ()
7333 {
7334
7335 ;
7336 return 0;
7337 }
7338 _ACEOF
7339 if ac_fn_c_try_compile "$LINENO"; then :
7340
7341 else
7342 ac_enable_autodepend=no
7343 fi
7344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345 CFLAGS="$SAVE_CFLAGS"
7346 test -f deps.d || ac_enable_autodepend=no
7347 rm -rf deps.d
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7349 $as_echo "$ac_enable_autodepend" >&6; }
7350 fi
7351 if test $ac_enable_autodepend = yes; then
7352 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
7353 ## In parallel builds, another make might create depdir between
7354 ## the first test and mkdir, so stick another test on the end.
7355 ## Or use mkinstalldirs? mkdir -p is not portable.
7356 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7357 deps_frag=autodeps.mk
7358 fi
7359 fi
7360 deps_frag=$srcdir/src/$deps_frag
7361
7362
7363
7364
7365
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7367 $as_echo_n "checking for long file names... " >&6; }
7368 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 ac_cv_sys_long_file_names=yes
7372 # Test for long file names in all the places we know might matter:
7373 # . the current directory, where building will happen
7374 # $prefix/lib where we will be installing things
7375 # $exec_prefix/lib likewise
7376 # $TMPDIR if set, where it might want to write temporary files
7377 # /tmp where it might want to write temporary files
7378 # /var/tmp likewise
7379 # /usr/tmp likewise
7380 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
7381 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7382 # in the usual case where exec_prefix is '${prefix}'.
7383 case $ac_dir in #(
7384 . | /* | ?:[\\/]*) ;; #(
7385 *) continue;;
7386 esac
7387 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
7388 ac_xdir=$ac_dir/cf$$
7389 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
7390 ac_tf1=$ac_xdir/conftest9012345
7391 ac_tf2=$ac_xdir/conftest9012346
7392 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7393 ac_cv_sys_long_file_names=no
7394 rm -f -r "$ac_xdir" 2>/dev/null
7395 test $ac_cv_sys_long_file_names = no && break
7396 done
7397 fi
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7399 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7400 if test $ac_cv_sys_long_file_names = yes; then
7401
7402 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7403
7404 fi
7405
7406
7407 #### Choose a window system.
7408
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7410 $as_echo_n "checking for X... " >&6; }
7411
7412
7413 # Check whether --with-x was given.
7414 if test "${with_x+set}" = set; then :
7415 withval=$with_x;
7416 fi
7417
7418 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7419 if test "x$with_x" = xno; then
7420 # The user explicitly disabled X.
7421 have_x=disabled
7422 else
7423 case $x_includes,$x_libraries in #(
7424 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7425 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7426 $as_echo_n "(cached) " >&6
7427 else
7428 # One or both of the vars are not set, and there is no cached value.
7429 ac_x_includes=no ac_x_libraries=no
7430 rm -f -r conftest.dir
7431 if mkdir conftest.dir; then
7432 cd conftest.dir
7433 cat >Imakefile <<'_ACEOF'
7434 incroot:
7435 @echo incroot='${INCROOT}'
7436 usrlibdir:
7437 @echo usrlibdir='${USRLIBDIR}'
7438 libdir:
7439 @echo libdir='${LIBDIR}'
7440 _ACEOF
7441 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7442 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7443 for ac_var in incroot usrlibdir libdir; do
7444 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7445 done
7446 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7447 for ac_extension in a so sl dylib la dll; do
7448 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7449 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7450 ac_im_usrlibdir=$ac_im_libdir; break
7451 fi
7452 done
7453 # Screen out bogus values from the imake configuration. They are
7454 # bogus both because they are the default anyway, and because
7455 # using them would break gcc on systems where it needs fixed includes.
7456 case $ac_im_incroot in
7457 /usr/include) ac_x_includes= ;;
7458 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7459 esac
7460 case $ac_im_usrlibdir in
7461 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7462 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7463 esac
7464 fi
7465 cd ..
7466 rm -f -r conftest.dir
7467 fi
7468
7469 # Standard set of common directories for X headers.
7470 # Check X11 before X11Rn because it is often a symlink to the current release.
7471 ac_x_header_dirs='
7472 /usr/X11/include
7473 /usr/X11R7/include
7474 /usr/X11R6/include
7475 /usr/X11R5/include
7476 /usr/X11R4/include
7477
7478 /usr/include/X11
7479 /usr/include/X11R7
7480 /usr/include/X11R6
7481 /usr/include/X11R5
7482 /usr/include/X11R4
7483
7484 /usr/local/X11/include
7485 /usr/local/X11R7/include
7486 /usr/local/X11R6/include
7487 /usr/local/X11R5/include
7488 /usr/local/X11R4/include
7489
7490 /usr/local/include/X11
7491 /usr/local/include/X11R7
7492 /usr/local/include/X11R6
7493 /usr/local/include/X11R5
7494 /usr/local/include/X11R4
7495
7496 /usr/X386/include
7497 /usr/x386/include
7498 /usr/XFree86/include/X11
7499
7500 /usr/include
7501 /usr/local/include
7502 /usr/unsupported/include
7503 /usr/athena/include
7504 /usr/local/x11r5/include
7505 /usr/lpp/Xamples/include
7506
7507 /usr/openwin/include
7508 /usr/openwin/share/include'
7509
7510 if test "$ac_x_includes" = no; then
7511 # Guess where to find include files, by looking for Xlib.h.
7512 # First, try using that file with no special directory specified.
7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514 /* end confdefs.h. */
7515 #include <X11/Xlib.h>
7516 _ACEOF
7517 if ac_fn_c_try_cpp "$LINENO"; then :
7518 # We can compile using X headers with no special include directory.
7519 ac_x_includes=
7520 else
7521 for ac_dir in $ac_x_header_dirs; do
7522 if test -r "$ac_dir/X11/Xlib.h"; then
7523 ac_x_includes=$ac_dir
7524 break
7525 fi
7526 done
7527 fi
7528 rm -f conftest.err conftest.$ac_ext
7529 fi # $ac_x_includes = no
7530
7531 if test "$ac_x_libraries" = no; then
7532 # Check for the libraries.
7533 # See if we find them without any special options.
7534 # Don't add to $LIBS permanently.
7535 ac_save_LIBS=$LIBS
7536 LIBS="-lX11 $LIBS"
7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h. */
7539 #include <X11/Xlib.h>
7540 int
7541 main ()
7542 {
7543 XrmInitialize ()
7544 ;
7545 return 0;
7546 }
7547 _ACEOF
7548 if ac_fn_c_try_link "$LINENO"; then :
7549 LIBS=$ac_save_LIBS
7550 # We can link X programs with no special library path.
7551 ac_x_libraries=
7552 else
7553 LIBS=$ac_save_LIBS
7554 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7555 do
7556 # Don't even attempt the hair of trying to link an X program!
7557 for ac_extension in a so sl dylib la dll; do
7558 if test -r "$ac_dir/libX11.$ac_extension"; then
7559 ac_x_libraries=$ac_dir
7560 break 2
7561 fi
7562 done
7563 done
7564 fi
7565 rm -f core conftest.err conftest.$ac_objext \
7566 conftest$ac_exeext conftest.$ac_ext
7567 fi # $ac_x_libraries = no
7568
7569 case $ac_x_includes,$ac_x_libraries in #(
7570 no,* | *,no | *\'*)
7571 # Didn't find X, or a directory has "'" in its name.
7572 ac_cv_have_x="have_x=no";; #(
7573 *)
7574 # Record where we found X for the cache.
7575 ac_cv_have_x="have_x=yes\
7576 ac_x_includes='$ac_x_includes'\
7577 ac_x_libraries='$ac_x_libraries'"
7578 esac
7579 fi
7580 ;; #(
7581 *) have_x=yes;;
7582 esac
7583 eval "$ac_cv_have_x"
7584 fi # $with_x != no
7585
7586 if test "$have_x" != yes; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7588 $as_echo "$have_x" >&6; }
7589 no_x=yes
7590 else
7591 # If each of the values was on the command line, it overrides each guess.
7592 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7593 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7594 # Update the cache value to reflect the command line values.
7595 ac_cv_have_x="have_x=yes\
7596 ac_x_includes='$x_includes'\
7597 ac_x_libraries='$x_libraries'"
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7599 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7600 fi
7601
7602 if test "$no_x" = yes; then
7603 window_system=none
7604 else
7605 window_system=x11
7606 fi
7607
7608 ## Workaround for bug in autoconf <= 2.62.
7609 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7610 ## No need to do anything special for these standard directories.
7611 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7612
7613 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7614
7615 fi
7616
7617 LD_SWITCH_X_SITE_AUX=
7618 LD_SWITCH_X_SITE_AUX_RPATH=
7619 if test "${x_libraries}" != NONE; then
7620 if test -n "${x_libraries}"; then
7621 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7622 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7623 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7624 fi
7625 x_default_search_path=""
7626 x_search_path=${x_libraries}
7627 if test -z "${x_search_path}"; then
7628 x_search_path=/usr/lib
7629 fi
7630 for x_library in `echo ${x_search_path}: | \
7631 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7632 x_search_path="\
7633 ${x_library}/X11/%L/%T/%N%C%S:\
7634 ${x_library}/X11/%l/%T/%N%C%S:\
7635 ${x_library}/X11/%T/%N%C%S:\
7636 ${x_library}/X11/%L/%T/%N%S:\
7637 ${x_library}/X11/%l/%T/%N%S:\
7638 ${x_library}/X11/%T/%N%S"
7639 if test x"${x_default_search_path}" = x; then
7640 x_default_search_path=${x_search_path}
7641 else
7642 x_default_search_path="${x_search_path}:${x_default_search_path}"
7643 fi
7644 done
7645 fi
7646
7647
7648
7649 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7650 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7651 fi
7652
7653 if test x"${x_includes}" = x; then
7654 bitmapdir=/usr/include/X11/bitmaps
7655 else
7656 # accumulate include directories that have X11 bitmap subdirectories
7657 bmd_acc="dummyval"
7658 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7659 if test -d "${bmd}/X11/bitmaps"; then
7660 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7661 fi
7662 if test -d "${bmd}/bitmaps"; then
7663 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7664 fi
7665 done
7666 if test ${bmd_acc} != "dummyval"; then
7667 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7668 fi
7669 fi
7670
7671 HAVE_NS=no
7672 NS_IMPL_COCOA=no
7673 NS_IMPL_GNUSTEP=no
7674 tmp_CPPFLAGS="$CPPFLAGS"
7675 tmp_CFLAGS="$CFLAGS"
7676 CPPFLAGS="$CPPFLAGS -x objective-c"
7677 CFLAGS="$CFLAGS -x objective-c"
7678 TEMACS_LDFLAGS2="\${LDFLAGS}"
7679 if test "${with_ns}" != no; then
7680 if test "${opsys}" = darwin; then
7681 NS_IMPL_COCOA=yes
7682 ns_appdir=`pwd`/nextstep/Emacs.app/
7683 ns_appbindir=${ns_appdir}Contents/MacOS/
7684 ns_appresdir=${ns_appdir}Contents/Resources
7685 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7686 elif test -f $GNUSTEP_CONFIG_FILE; then
7687 NS_IMPL_GNUSTEP=yes
7688 ns_appdir=`pwd`/nextstep/Emacs.app/
7689 ns_appbindir=${ns_appdir}
7690 ns_appresdir=${ns_appdir}Resources
7691 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7692 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7693 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7694 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7695 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7696 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7697 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
7698 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7699 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
7700 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7701 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7702 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7703 LIB_STANDARD=
7704 START_FILES=
7705 TEMACS_LDFLAGS2=
7706 fi
7707 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7708 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7709 HAVE_NS=yes
7710 else
7711 as_fn_error "\`--with-ns' was specified, but the include
7712 files are missing or cannot be compiled." "$LINENO" 5
7713 fi
7714
7715
7716 NS_HAVE_NSINTEGER=yes
7717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h. */
7719 #include <Foundation/NSObjCRuntime.h>
7720 int
7721 main ()
7722 {
7723 NSInteger i;
7724 ;
7725 return 0;
7726 }
7727 _ACEOF
7728 if ac_fn_c_try_compile "$LINENO"; then :
7729 ns_have_nsinteger=yes
7730 else
7731 ns_have_nsinteger=no
7732 fi
7733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734 if test $ns_have_nsinteger = no; then
7735 NS_HAVE_NSINTEGER=no
7736 fi
7737 fi
7738
7739
7740 ns_frag=/dev/null
7741 NS_OBJ=
7742 NS_SUPPORT=
7743 if test "${HAVE_NS}" = yes; then
7744 window_system=nextstep
7745 with_xft=no
7746 # set up packaging dirs
7747 exec_prefix=${ns_appbindir}
7748 libexecdir=${ns_appbindir}/libexec
7749 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7750 prefix=${ns_appresdir}
7751 fi
7752 ns_frag=$srcdir/src/ns.mk
7753 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7754 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
7755 fi
7756 CFLAGS="$tmp_CFLAGS"
7757 CPPFLAGS="$tmp_CPPFLAGS"
7758
7759
7760
7761
7762
7763 case "${window_system}" in
7764 x11 )
7765 HAVE_X_WINDOWS=yes
7766 HAVE_X11=yes
7767 case "${with_x_toolkit}" in
7768 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7769 motif ) USE_X_TOOLKIT=MOTIF ;;
7770 gtk ) with_gtk=yes
7771 USE_X_TOOLKIT=none ;;
7772 gtk3 ) with_gtk3=yes
7773 USE_X_TOOLKIT=none ;;
7774 no ) USE_X_TOOLKIT=none ;;
7775 * ) USE_X_TOOLKIT=maybe ;;
7776 esac
7777 ;;
7778 nextstep | none )
7779 HAVE_X_WINDOWS=no
7780 HAVE_X11=no
7781 USE_X_TOOLKIT=none
7782 ;;
7783 esac
7784
7785 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7786 # Extract the first word of "X", so it can be a program name with args.
7787 set dummy X; ac_word=$2
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7789 $as_echo_n "checking for $ac_word... " >&6; }
7790 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7791 $as_echo_n "(cached) " >&6
7792 else
7793 if test -n "$HAVE_XSERVER"; then
7794 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7795 else
7796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797 for as_dir in $PATH
7798 do
7799 IFS=$as_save_IFS
7800 test -z "$as_dir" && as_dir=.
7801 for ac_exec_ext in '' $ac_executable_extensions; do
7802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7803 ac_cv_prog_HAVE_XSERVER="true"
7804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7805 break 2
7806 fi
7807 done
7808 done
7809 IFS=$as_save_IFS
7810
7811 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7812 fi
7813 fi
7814 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7815 if test -n "$HAVE_XSERVER"; then
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7817 $as_echo "$HAVE_XSERVER" >&6; }
7818 else
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820 $as_echo "no" >&6; }
7821 fi
7822
7823
7824 if test "$HAVE_XSERVER" = true ||
7825 test -n "$DISPLAY" ||
7826 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7827 as_fn_error "You seem to be running X, but no X development libraries
7828 were found. You should install the relevant development files for X
7829 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7830 sure you have development files for image handling, i.e.
7831 tiff, gif, jpeg, png and xpm.
7832 If you are sure you want Emacs compiled without X window support, pass
7833 --without-x
7834 to configure." "$LINENO" 5
7835 fi
7836 fi
7837
7838 ### If we're using X11, we should use the X menu package.
7839 HAVE_MENUS=no
7840 case ${HAVE_X11} in
7841 yes ) HAVE_MENUS=yes ;;
7842 esac
7843
7844 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7845 # Assume not, until told otherwise.
7846 GNU_MALLOC=yes
7847 doug_lea_malloc=yes
7848 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7849 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7850
7851 else
7852 doug_lea_malloc=no
7853 fi
7854
7855 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7856 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7857
7858 else
7859 doug_lea_malloc=no
7860 fi
7861
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7863 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7864 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7865 $as_echo_n "(cached) " >&6
7866 else
7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 /* end confdefs.h. */
7869 extern void (* __after_morecore_hook)();
7870 int
7871 main ()
7872 {
7873 __after_morecore_hook = 0
7874 ;
7875 return 0;
7876 }
7877 _ACEOF
7878 if ac_fn_c_try_link "$LINENO"; then :
7879 emacs_cv_var___after_morecore_hook=yes
7880 else
7881 emacs_cv_var___after_morecore_hook=no
7882 fi
7883 rm -f core conftest.err conftest.$ac_objext \
7884 conftest$ac_exeext conftest.$ac_ext
7885 fi
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7887 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7888 if test $emacs_cv_var___after_morecore_hook = no; then
7889 doug_lea_malloc=no
7890 fi
7891
7892
7893 system_malloc=no
7894 case "$opsys" in
7895 ## darwin ld insists on the use of malloc routines in the System framework.
7896 darwin|sol2-10) system_malloc=yes ;;
7897 esac
7898
7899 if test "${system_malloc}" = "yes"; then
7900
7901 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7902
7903 GNU_MALLOC=no
7904 GNU_MALLOC_reason="
7905 (The GNU allocators don't work with this system configuration.)"
7906 GMALLOC_OBJ=
7907 VMLIMIT_OBJ=
7908 else
7909 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
7910 VMLIMIT_OBJ=vm-limit.o
7911 fi
7912
7913
7914
7915 if test "$doug_lea_malloc" = "yes" ; then
7916 if test "$GNU_MALLOC" = yes ; then
7917 GNU_MALLOC_reason="
7918 (Using Doug Lea's new malloc from the GNU C Library.)"
7919 fi
7920
7921 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7922
7923
7924 ## Use mmap directly for allocating larger buffers.
7925 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7926 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7927 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7928 case "$opsys" in
7929 gnu*) REL_ALLOC=no ;;
7930 esac
7931 fi
7932
7933 if test x"${REL_ALLOC}" = x; then
7934 REL_ALLOC=${GNU_MALLOC}
7935 fi
7936
7937 use_mmap_for_buffers=no
7938 case "$opsys" in
7939 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
7940 esac
7941
7942
7943
7944
7945 for ac_header in $ac_header_list
7946 do :
7947 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7948 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7949 "
7950 eval as_val=\$$as_ac_Header
7951 if test "x$as_val" = x""yes; then :
7952 cat >>confdefs.h <<_ACEOF
7953 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7954 _ACEOF
7955
7956 fi
7957
7958 done
7959
7960
7961
7962
7963
7964
7965
7966
7967 for ac_func in getpagesize
7968 do :
7969 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7970 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7971 cat >>confdefs.h <<_ACEOF
7972 #define HAVE_GETPAGESIZE 1
7973 _ACEOF
7974
7975 fi
7976 done
7977
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7979 $as_echo_n "checking for working mmap... " >&6; }
7980 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7981 $as_echo_n "(cached) " >&6
7982 else
7983 if test "$cross_compiling" = yes; then :
7984 ac_cv_func_mmap_fixed_mapped=no
7985 else
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7988 $ac_includes_default
7989 /* malloc might have been renamed as rpl_malloc. */
7990 #undef malloc
7991
7992 /* Thanks to Mike Haertel and Jim Avera for this test.
7993 Here is a matrix of mmap possibilities:
7994 mmap private not fixed
7995 mmap private fixed at somewhere currently unmapped
7996 mmap private fixed at somewhere already mapped
7997 mmap shared not fixed
7998 mmap shared fixed at somewhere currently unmapped
7999 mmap shared fixed at somewhere already mapped
8000 For private mappings, we should verify that changes cannot be read()
8001 back from the file, nor mmap's back from the file at a different
8002 address. (There have been systems where private was not correctly
8003 implemented like the infamous i386 svr4.0, and systems where the
8004 VM page cache was not coherent with the file system buffer cache
8005 like early versions of FreeBSD and possibly contemporary NetBSD.)
8006 For shared mappings, we should conversely verify that changes get
8007 propagated back to all the places they're supposed to be.
8008
8009 Grep wants private fixed already mapped.
8010 The main things grep needs to know about mmap are:
8011 * does it exist and is it safe to write into the mmap'd area
8012 * how to use it (BSD variants) */
8013
8014 #include <fcntl.h>
8015 #include <sys/mman.h>
8016
8017 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8018 char *malloc ();
8019 #endif
8020
8021 /* This mess was copied from the GNU getpagesize.h. */
8022 #ifndef HAVE_GETPAGESIZE
8023 # ifdef _SC_PAGESIZE
8024 # define getpagesize() sysconf(_SC_PAGESIZE)
8025 # else /* no _SC_PAGESIZE */
8026 # ifdef HAVE_SYS_PARAM_H
8027 # include <sys/param.h>
8028 # ifdef EXEC_PAGESIZE
8029 # define getpagesize() EXEC_PAGESIZE
8030 # else /* no EXEC_PAGESIZE */
8031 # ifdef NBPG
8032 # define getpagesize() NBPG * CLSIZE
8033 # ifndef CLSIZE
8034 # define CLSIZE 1
8035 # endif /* no CLSIZE */
8036 # else /* no NBPG */
8037 # ifdef NBPC
8038 # define getpagesize() NBPC
8039 # else /* no NBPC */
8040 # ifdef PAGESIZE
8041 # define getpagesize() PAGESIZE
8042 # endif /* PAGESIZE */
8043 # endif /* no NBPC */
8044 # endif /* no NBPG */
8045 # endif /* no EXEC_PAGESIZE */
8046 # else /* no HAVE_SYS_PARAM_H */
8047 # define getpagesize() 8192 /* punt totally */
8048 # endif /* no HAVE_SYS_PARAM_H */
8049 # endif /* no _SC_PAGESIZE */
8050
8051 #endif /* no HAVE_GETPAGESIZE */
8052
8053 int
8054 main ()
8055 {
8056 char *data, *data2, *data3;
8057 int i, pagesize;
8058 int fd, fd2;
8059
8060 pagesize = getpagesize ();
8061
8062 /* First, make a file with some known garbage in it. */
8063 data = (char *) malloc (pagesize);
8064 if (!data)
8065 return 1;
8066 for (i = 0; i < pagesize; ++i)
8067 *(data + i) = rand ();
8068 umask (0);
8069 fd = creat ("conftest.mmap", 0600);
8070 if (fd < 0)
8071 return 2;
8072 if (write (fd, data, pagesize) != pagesize)
8073 return 3;
8074 close (fd);
8075
8076 /* Next, check that the tail of a page is zero-filled. File must have
8077 non-zero length, otherwise we risk SIGBUS for entire page. */
8078 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8079 if (fd2 < 0)
8080 return 4;
8081 data2 = "";
8082 if (write (fd2, data2, 1) != 1)
8083 return 5;
8084 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8085 if (data2 == MAP_FAILED)
8086 return 6;
8087 for (i = 0; i < pagesize; ++i)
8088 if (*(data2 + i))
8089 return 7;
8090 close (fd2);
8091 if (munmap (data2, pagesize))
8092 return 8;
8093
8094 /* Next, try to mmap the file at a fixed address which already has
8095 something else allocated at it. If we can, also make sure that
8096 we see the same garbage. */
8097 fd = open ("conftest.mmap", O_RDWR);
8098 if (fd < 0)
8099 return 9;
8100 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8101 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8102 return 10;
8103 for (i = 0; i < pagesize; ++i)
8104 if (*(data + i) != *(data2 + i))
8105 return 11;
8106
8107 /* Finally, make sure that changes to the mapped area do not
8108 percolate back to the file as seen by read(). (This is a bug on
8109 some variants of i386 svr4.0.) */
8110 for (i = 0; i < pagesize; ++i)
8111 *(data2 + i) = *(data2 + i) + 1;
8112 data3 = (char *) malloc (pagesize);
8113 if (!data3)
8114 return 12;
8115 if (read (fd, data3, pagesize) != pagesize)
8116 return 13;
8117 for (i = 0; i < pagesize; ++i)
8118 if (*(data + i) != *(data3 + i))
8119 return 14;
8120 close (fd);
8121 return 0;
8122 }
8123 _ACEOF
8124 if ac_fn_c_try_run "$LINENO"; then :
8125 ac_cv_func_mmap_fixed_mapped=yes
8126 else
8127 ac_cv_func_mmap_fixed_mapped=no
8128 fi
8129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8130 conftest.$ac_objext conftest.beam conftest.$ac_ext
8131 fi
8132
8133 fi
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8135 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8136 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8137
8138 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8139
8140 fi
8141 rm -f conftest.mmap conftest.txt
8142
8143 if test $use_mmap_for_buffers = yes; then
8144
8145 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8146
8147 REL_ALLOC=no
8148 fi
8149
8150 LIBS="$LIBS_SYSTEM $LIBS"
8151
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8153 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8154 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 ac_check_lib_save_LIBS=$LIBS
8158 LIBS="-ldnet $LIBS"
8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8161
8162 /* Override any GCC internal prototype to avoid an error.
8163 Use char because int might match the return type of a GCC
8164 builtin and then its argument prototype would still apply. */
8165 #ifdef __cplusplus
8166 extern "C"
8167 #endif
8168 char dnet_ntoa ();
8169 int
8170 main ()
8171 {
8172 return dnet_ntoa ();
8173 ;
8174 return 0;
8175 }
8176 _ACEOF
8177 if ac_fn_c_try_link "$LINENO"; then :
8178 ac_cv_lib_dnet_dnet_ntoa=yes
8179 else
8180 ac_cv_lib_dnet_dnet_ntoa=no
8181 fi
8182 rm -f core conftest.err conftest.$ac_objext \
8183 conftest$ac_exeext conftest.$ac_ext
8184 LIBS=$ac_check_lib_save_LIBS
8185 fi
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8187 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8188 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
8189 cat >>confdefs.h <<_ACEOF
8190 #define HAVE_LIBDNET 1
8191 _ACEOF
8192
8193 LIBS="-ldnet $LIBS"
8194
8195 fi
8196
8197
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
8199 $as_echo_n "checking for main in -lXbsd... " >&6; }
8200 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
8201 $as_echo_n "(cached) " >&6
8202 else
8203 ac_check_lib_save_LIBS=$LIBS
8204 LIBS="-lXbsd $LIBS"
8205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206 /* end confdefs.h. */
8207
8208
8209 int
8210 main ()
8211 {
8212 return main ();
8213 ;
8214 return 0;
8215 }
8216 _ACEOF
8217 if ac_fn_c_try_link "$LINENO"; then :
8218 ac_cv_lib_Xbsd_main=yes
8219 else
8220 ac_cv_lib_Xbsd_main=no
8221 fi
8222 rm -f core conftest.err conftest.$ac_objext \
8223 conftest$ac_exeext conftest.$ac_ext
8224 LIBS=$ac_check_lib_save_LIBS
8225 fi
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
8227 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
8228 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
8229 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8230 fi
8231
8232
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
8234 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
8235 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
8236 $as_echo_n "(cached) " >&6
8237 else
8238 ac_check_lib_save_LIBS=$LIBS
8239 LIBS="-lpthreads $LIBS"
8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8242
8243 /* Override any GCC internal prototype to avoid an error.
8244 Use char because int might match the return type of a GCC
8245 builtin and then its argument prototype would still apply. */
8246 #ifdef __cplusplus
8247 extern "C"
8248 #endif
8249 char cma_open ();
8250 int
8251 main ()
8252 {
8253 return cma_open ();
8254 ;
8255 return 0;
8256 }
8257 _ACEOF
8258 if ac_fn_c_try_link "$LINENO"; then :
8259 ac_cv_lib_pthreads_cma_open=yes
8260 else
8261 ac_cv_lib_pthreads_cma_open=no
8262 fi
8263 rm -f core conftest.err conftest.$ac_objext \
8264 conftest$ac_exeext conftest.$ac_ext
8265 LIBS=$ac_check_lib_save_LIBS
8266 fi
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8268 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8269 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
8270 cat >>confdefs.h <<_ACEOF
8271 #define HAVE_LIBPTHREADS 1
8272 _ACEOF
8273
8274 LIBS="-lpthreads $LIBS"
8275
8276 fi
8277
8278
8279 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8280 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8281 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8282 ## added to LIBS in configure would never contain the pthreads part,
8283 ## but the value used in Makefiles might. FIXME?
8284 ##
8285 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8286 ## be harmless on older versions of X where it happens to exist.
8287 test "$opsys" = "aix4-2" && \
8288 test $ac_cv_lib_pthreads_cma_open = yes && \
8289 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
8290
8291
8292 case ${host_os} in
8293 aix*)
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8295 $as_echo_n "checking for -bbigtoc option... " >&6; }
8296 if test "${gdb_cv_bigtoc+set}" = set; then :
8297 $as_echo_n "(cached) " >&6
8298 else
8299
8300 case $GCC in
8301 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8302 *) gdb_cv_bigtoc=-bbigtoc ;;
8303 esac
8304
8305 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8308
8309 int
8310 main ()
8311 {
8312 int i;
8313 ;
8314 return 0;
8315 }
8316 _ACEOF
8317 if ac_fn_c_try_link "$LINENO"; then :
8318
8319 else
8320 gdb_cv_bigtoc=
8321 fi
8322 rm -f core conftest.err conftest.$ac_objext \
8323 conftest$ac_exeext conftest.$ac_ext
8324
8325 fi
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8327 $as_echo "$gdb_cv_bigtoc" >&6; }
8328 ;;
8329 esac
8330
8331 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8332 # used for the tests that follow. We set them back to REAL_CFLAGS and
8333 # REAL_CPPFLAGS later on.
8334
8335 REAL_CFLAGS="$CFLAGS"
8336 REAL_CPPFLAGS="$CPPFLAGS"
8337
8338 if test "${HAVE_X11}" = "yes"; then
8339 DEFS="$C_SWITCH_X_SITE $DEFS"
8340 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8341 LIBS="-lX11 $LIBS"
8342 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8343 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8344
8345 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8346 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8347 # but it's more convenient here to set LD_RUN_PATH
8348 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8349 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8350 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8351 export LD_RUN_PATH
8352 fi
8353
8354 if test "${opsys}" = "gnu-linux"; then
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8356 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358 /* end confdefs.h. */
8359
8360 int
8361 main ()
8362 {
8363 XOpenDisplay ("foo");
8364 ;
8365 return 0;
8366 }
8367 _ACEOF
8368 if ac_fn_c_try_link "$LINENO"; then :
8369 xlinux_first_failure=no
8370 else
8371 xlinux_first_failure=yes
8372 fi
8373 rm -f core conftest.err conftest.$ac_objext \
8374 conftest$ac_exeext conftest.$ac_ext
8375 if test "${xlinux_first_failure}" = "yes"; then
8376 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8377 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8378 OLD_CPPFLAGS="$CPPFLAGS"
8379 OLD_LIBS="$LIBS"
8380 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8381 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8382 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8383 LIBS="$LIBS -b i486-linuxaout"
8384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8385 /* end confdefs.h. */
8386
8387 int
8388 main ()
8389 {
8390 XOpenDisplay ("foo");
8391 ;
8392 return 0;
8393 }
8394 _ACEOF
8395 if ac_fn_c_try_link "$LINENO"; then :
8396 xlinux_second_failure=no
8397 else
8398 xlinux_second_failure=yes
8399 fi
8400 rm -f core conftest.err conftest.$ac_objext \
8401 conftest$ac_exeext conftest.$ac_ext
8402 if test "${xlinux_second_failure}" = "yes"; then
8403 # If we get the same failure with -b, there is no use adding -b.
8404 # So take it out. This plays safe.
8405 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8406 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8407 CPPFLAGS="$OLD_CPPFLAGS"
8408 LIBS="$OLD_LIBS"
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8411 else
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8413 $as_echo "yes" >&6; }
8414 fi
8415 else
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8418 fi
8419 fi
8420
8421 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8422 # header files included from there.
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8424 $as_echo_n "checking for Xkb... " >&6; }
8425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426 /* end confdefs.h. */
8427 #include <X11/Xlib.h>
8428 #include <X11/XKBlib.h>
8429 int
8430 main ()
8431 {
8432 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8433 ;
8434 return 0;
8435 }
8436 _ACEOF
8437 if ac_fn_c_try_link "$LINENO"; then :
8438 emacs_xkb=yes
8439 else
8440 emacs_xkb=no
8441 fi
8442 rm -f core conftest.err conftest.$ac_objext \
8443 conftest$ac_exeext conftest.$ac_ext
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8445 $as_echo "$emacs_xkb" >&6; }
8446 if test $emacs_xkb = yes; then
8447
8448 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8449
8450 fi
8451
8452 for ac_func in XrmSetDatabase XScreenResourceString \
8453 XScreenNumberOfScreen XSetWMProtocols
8454 do :
8455 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8456 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8457 eval as_val=\$$as_ac_var
8458 if test "x$as_val" = x""yes; then :
8459 cat >>confdefs.h <<_ACEOF
8460 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8461 _ACEOF
8462
8463 fi
8464 done
8465
8466 fi
8467
8468 if test "${window_system}" = "x11"; then
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8470 $as_echo_n "checking X11 version 6... " >&6; }
8471 if test "${emacs_cv_x11_version_6+set}" = set; then :
8472 $as_echo_n "(cached) " >&6
8473 else
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8476 #include <X11/Xlib.h>
8477 int
8478 main ()
8479 {
8480 #if XlibSpecificationRelease < 6
8481 fail;
8482 #endif
8483
8484 ;
8485 return 0;
8486 }
8487 _ACEOF
8488 if ac_fn_c_try_link "$LINENO"; then :
8489 emacs_cv_x11_version_6=yes
8490 else
8491 emacs_cv_x11_version_6=no
8492 fi
8493 rm -f core conftest.err conftest.$ac_objext \
8494 conftest$ac_exeext conftest.$ac_ext
8495 fi
8496
8497 if test $emacs_cv_x11_version_6 = yes; then
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8499 $as_echo "6 or newer" >&6; }
8500
8501 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8502
8503
8504 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8505
8506 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8507 ## XIM support.
8508 case "$opsys" in
8509 sol2-*) : ;;
8510 *)
8511 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8512
8513 ;;
8514 esac
8515 else
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8517 $as_echo "before 6" >&6; }
8518 fi
8519 fi
8520
8521
8522 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8523 HAVE_RSVG=no
8524 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8525 if test "${with_rsvg}" != "no"; then
8526 RSVG_REQUIRED=2.11.0
8527 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
8528
8529
8530 succeeded=no
8531
8532 # Extract the first word of "pkg-config", so it can be a program name with args.
8533 set dummy pkg-config; ac_word=$2
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8535 $as_echo_n "checking for $ac_word... " >&6; }
8536 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8537 $as_echo_n "(cached) " >&6
8538 else
8539 case $PKG_CONFIG in
8540 [\\/]* | ?:[\\/]*)
8541 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8542 ;;
8543 *)
8544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545 for as_dir in $PATH
8546 do
8547 IFS=$as_save_IFS
8548 test -z "$as_dir" && as_dir=.
8549 for ac_exec_ext in '' $ac_executable_extensions; do
8550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8551 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8553 break 2
8554 fi
8555 done
8556 done
8557 IFS=$as_save_IFS
8558
8559 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8560 ;;
8561 esac
8562 fi
8563 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8564 if test -n "$PKG_CONFIG"; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8566 $as_echo "$PKG_CONFIG" >&6; }
8567 else
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569 $as_echo "no" >&6; }
8570 fi
8571
8572
8573
8574 if test "$PKG_CONFIG" = "no" ; then
8575 :
8576 else
8577 PKG_CONFIG_MIN_VERSION=0.9.0
8578 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8580 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8581
8582 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8584 $as_echo "yes" >&6; }
8585 succeeded=yes
8586
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8588 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8589 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8591 $as_echo "$RSVG_CFLAGS" >&6; }
8592
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8594 $as_echo_n "checking RSVG_LIBS... " >&6; }
8595 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8597 $as_echo "$RSVG_LIBS" >&6; }
8598 else
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8600 $as_echo "no" >&6; }
8601 RSVG_CFLAGS=""
8602 RSVG_LIBS=""
8603 ## If we have a custom action on failure, don't print errors, but
8604 ## do set a variable so people can do so.
8605 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8606
8607 fi
8608
8609
8610
8611 else
8612 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8613 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8614 fi
8615 fi
8616
8617 if test $succeeded = yes; then
8618 HAVE_RSVG=yes
8619 else
8620 :
8621 fi
8622
8623
8624
8625
8626 if test $HAVE_RSVG = yes; then
8627
8628 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8629
8630 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8631 LIBS="$RSVG_LIBS $LIBS"
8632 fi
8633 fi
8634 fi
8635
8636 HAVE_IMAGEMAGICK=no
8637 if test "${HAVE_X11}" = "yes"; then
8638 if test "${with_imagemagick}" != "no"; then
8639 IMAGEMAGICK_MODULE="Wand"
8640
8641 succeeded=no
8642
8643 # Extract the first word of "pkg-config", so it can be a program name with args.
8644 set dummy pkg-config; ac_word=$2
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8646 $as_echo_n "checking for $ac_word... " >&6; }
8647 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8648 $as_echo_n "(cached) " >&6
8649 else
8650 case $PKG_CONFIG in
8651 [\\/]* | ?:[\\/]*)
8652 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8653 ;;
8654 *)
8655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656 for as_dir in $PATH
8657 do
8658 IFS=$as_save_IFS
8659 test -z "$as_dir" && as_dir=.
8660 for ac_exec_ext in '' $ac_executable_extensions; do
8661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8662 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8664 break 2
8665 fi
8666 done
8667 done
8668 IFS=$as_save_IFS
8669
8670 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8671 ;;
8672 esac
8673 fi
8674 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8675 if test -n "$PKG_CONFIG"; then
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8677 $as_echo "$PKG_CONFIG" >&6; }
8678 else
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680 $as_echo "no" >&6; }
8681 fi
8682
8683
8684
8685 if test "$PKG_CONFIG" = "no" ; then
8686 :
8687 else
8688 PKG_CONFIG_MIN_VERSION=0.9.0
8689 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
8691 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
8692
8693 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8695 $as_echo "yes" >&6; }
8696 succeeded=yes
8697
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
8699 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
8700 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
8702 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
8703
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
8705 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
8706 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
8708 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
8709 else
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8711 $as_echo "no" >&6; }
8712 IMAGEMAGICK_CFLAGS=""
8713 IMAGEMAGICK_LIBS=""
8714 ## If we have a custom action on failure, don't print errors, but
8715 ## do set a variable so people can do so.
8716 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
8717
8718 fi
8719
8720
8721
8722 else
8723 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8724 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8725 fi
8726 fi
8727
8728 if test $succeeded = yes; then
8729 HAVE_IMAGEMAGICK=yes
8730 else
8731 :
8732 fi
8733
8734
8735
8736
8737 if test $HAVE_IMAGEMAGICK = yes; then
8738
8739 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
8740
8741 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
8742 LIBS="$IMAGEMAGICK_LIBS $LIBS"
8743 for ac_func in MagickExportImagePixels
8744 do :
8745 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
8746 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
8747 cat >>confdefs.h <<_ACEOF
8748 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
8749 _ACEOF
8750
8751 fi
8752 done
8753
8754 fi
8755 fi
8756 fi
8757
8758
8759 HAVE_GTK=no
8760 if test "${with_gtk3}" = "yes"; then
8761 GLIB_REQUIRED=2.6
8762 GTK_REQUIRED=2.90
8763 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8764
8765
8766 succeeded=no
8767
8768 # Extract the first word of "pkg-config", so it can be a program name with args.
8769 set dummy pkg-config; ac_word=$2
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8771 $as_echo_n "checking for $ac_word... " >&6; }
8772 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8773 $as_echo_n "(cached) " >&6
8774 else
8775 case $PKG_CONFIG in
8776 [\\/]* | ?:[\\/]*)
8777 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8778 ;;
8779 *)
8780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781 for as_dir in $PATH
8782 do
8783 IFS=$as_save_IFS
8784 test -z "$as_dir" && as_dir=.
8785 for ac_exec_ext in '' $ac_executable_extensions; do
8786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8787 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8789 break 2
8790 fi
8791 done
8792 done
8793 IFS=$as_save_IFS
8794
8795 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8796 ;;
8797 esac
8798 fi
8799 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8800 if test -n "$PKG_CONFIG"; then
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8802 $as_echo "$PKG_CONFIG" >&6; }
8803 else
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805 $as_echo "no" >&6; }
8806 fi
8807
8808
8809
8810 if test "$PKG_CONFIG" = "no" ; then
8811 pkg_check_gtk=no
8812 else
8813 PKG_CONFIG_MIN_VERSION=0.9.0
8814 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8816 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8817
8818 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8820 $as_echo "yes" >&6; }
8821 succeeded=yes
8822
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8824 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8825 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8827 $as_echo "$GTK_CFLAGS" >&6; }
8828
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8830 $as_echo_n "checking GTK_LIBS... " >&6; }
8831 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8833 $as_echo "$GTK_LIBS" >&6; }
8834 else
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8836 $as_echo "no" >&6; }
8837 GTK_CFLAGS=""
8838 GTK_LIBS=""
8839 ## If we have a custom action on failure, don't print errors, but
8840 ## do set a variable so people can do so.
8841 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8842
8843 fi
8844
8845
8846
8847 else
8848 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8849 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8850 fi
8851 fi
8852
8853 if test $succeeded = yes; then
8854 pkg_check_gtk=yes
8855 else
8856 pkg_check_gtk=no
8857 fi
8858
8859 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8860 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8861 fi
8862 fi
8863
8864 if test "$pkg_check_gtk" != "yes"; then
8865 HAVE_GTK=no
8866 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8867 GLIB_REQUIRED=2.6
8868 GTK_REQUIRED=2.6
8869 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8870
8871
8872 succeeded=no
8873
8874 # Extract the first word of "pkg-config", so it can be a program name with args.
8875 set dummy pkg-config; ac_word=$2
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877 $as_echo_n "checking for $ac_word... " >&6; }
8878 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8879 $as_echo_n "(cached) " >&6
8880 else
8881 case $PKG_CONFIG in
8882 [\\/]* | ?:[\\/]*)
8883 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8884 ;;
8885 *)
8886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8887 for as_dir in $PATH
8888 do
8889 IFS=$as_save_IFS
8890 test -z "$as_dir" && as_dir=.
8891 for ac_exec_ext in '' $ac_executable_extensions; do
8892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8893 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8895 break 2
8896 fi
8897 done
8898 done
8899 IFS=$as_save_IFS
8900
8901 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8902 ;;
8903 esac
8904 fi
8905 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8906 if test -n "$PKG_CONFIG"; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8908 $as_echo "$PKG_CONFIG" >&6; }
8909 else
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911 $as_echo "no" >&6; }
8912 fi
8913
8914
8915
8916 if test "$PKG_CONFIG" = "no" ; then
8917 pkg_check_gtk=no
8918 else
8919 PKG_CONFIG_MIN_VERSION=0.9.0
8920 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8922 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8923
8924 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8926 $as_echo "yes" >&6; }
8927 succeeded=yes
8928
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8930 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8931 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8933 $as_echo "$GTK_CFLAGS" >&6; }
8934
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8936 $as_echo_n "checking GTK_LIBS... " >&6; }
8937 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8939 $as_echo "$GTK_LIBS" >&6; }
8940 else
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8942 $as_echo "no" >&6; }
8943 GTK_CFLAGS=""
8944 GTK_LIBS=""
8945 ## If we have a custom action on failure, don't print errors, but
8946 ## do set a variable so people can do so.
8947 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8948
8949 fi
8950
8951
8952
8953 else
8954 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8955 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8956 fi
8957 fi
8958
8959 if test $succeeded = yes; then
8960 pkg_check_gtk=yes
8961 else
8962 pkg_check_gtk=no
8963 fi
8964
8965 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8966 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8967 fi
8968 fi
8969 fi
8970
8971 GTK_OBJ=
8972 if test x"$pkg_check_gtk" = xyes; then
8973
8974
8975
8976 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8977 CFLAGS="$CFLAGS $GTK_CFLAGS"
8978 LIBS="$GTK_LIBS $LIBS"
8979 GTK_COMPILES=no
8980 for ac_func in gtk_main
8981 do :
8982 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8983 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8984 cat >>confdefs.h <<_ACEOF
8985 #define HAVE_GTK_MAIN 1
8986 _ACEOF
8987 GTK_COMPILES=yes
8988 fi
8989 done
8990
8991 if test "${GTK_COMPILES}" != "yes"; then
8992 if test "$USE_X_TOOLKIT" != "maybe"; then
8993 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8994 fi
8995 else
8996 HAVE_GTK=yes
8997
8998 $as_echo "#define USE_GTK 1" >>confdefs.h
8999
9000 GTK_OBJ=gtkutil.o
9001 USE_X_TOOLKIT=none
9002 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
9003 :
9004 else
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
9006 closing open displays. This is no problem if you just use
9007 one display, but if you use more than one and close one of them
9008 Emacs may crash." >&5
9009 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
9010 closing open displays. This is no problem if you just use
9011 one display, but if you use more than one and close one of them
9012 Emacs may crash." >&2;}
9013 sleep 3
9014 fi
9015 fi
9016
9017 fi
9018
9019
9020
9021 if test "${HAVE_GTK}" = "yes"; then
9022
9023 if test "$with_toolkit_scroll_bars" != no; then
9024 with_toolkit_scroll_bars=yes
9025 fi
9026
9027 HAVE_GTK_FILE_SELECTION=no
9028 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9029 #include <gtk/gtk.h>
9030 "
9031 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
9032 HAVE_GTK_FILE_SELECTION=yes
9033 else
9034 HAVE_GTK_FILE_SELECTION=no
9035 fi
9036
9037 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9038 for ac_func in gtk_file_selection_new
9039 do :
9040 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9041 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
9042 cat >>confdefs.h <<_ACEOF
9043 #define HAVE_GTK_FILE_SELECTION_NEW 1
9044 _ACEOF
9045
9046 fi
9047 done
9048
9049 fi
9050
9051 HAVE_GTK_AND_PTHREAD=no
9052 for ac_header in pthread.h
9053 do :
9054 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9055 if test "x$ac_cv_header_pthread_h" = x""yes; then :
9056 cat >>confdefs.h <<_ACEOF
9057 #define HAVE_PTHREAD_H 1
9058 _ACEOF
9059
9060 fi
9061
9062 done
9063
9064 if test "$ac_cv_header_pthread_h"; then
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9066 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9067 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
9068 $as_echo_n "(cached) " >&6
9069 else
9070 ac_check_lib_save_LIBS=$LIBS
9071 LIBS="-lpthread $LIBS"
9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073 /* end confdefs.h. */
9074
9075 /* Override any GCC internal prototype to avoid an error.
9076 Use char because int might match the return type of a GCC
9077 builtin and then its argument prototype would still apply. */
9078 #ifdef __cplusplus
9079 extern "C"
9080 #endif
9081 char pthread_self ();
9082 int
9083 main ()
9084 {
9085 return pthread_self ();
9086 ;
9087 return 0;
9088 }
9089 _ACEOF
9090 if ac_fn_c_try_link "$LINENO"; then :
9091 ac_cv_lib_pthread_pthread_self=yes
9092 else
9093 ac_cv_lib_pthread_pthread_self=no
9094 fi
9095 rm -f core conftest.err conftest.$ac_objext \
9096 conftest$ac_exeext conftest.$ac_ext
9097 LIBS=$ac_check_lib_save_LIBS
9098 fi
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9100 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9101 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
9102 HAVE_GTK_AND_PTHREAD=yes
9103 fi
9104
9105 fi
9106 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9107 case "${canonical}" in
9108 *-hpux*) ;;
9109 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
9110 esac
9111
9112 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9113
9114 fi
9115
9116 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
9117 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9118 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9119 gtk_orientable_set_orientation
9120 do :
9121 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9122 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9123 eval as_val=\$$as_ac_var
9124 if test "x$as_val" = x""yes; then :
9125 cat >>confdefs.h <<_ACEOF
9126 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9127 _ACEOF
9128
9129 fi
9130 done
9131
9132
9133 fi
9134
9135 HAVE_DBUS=no
9136 DBUS_OBJ=
9137 if test "${with_dbus}" = "yes"; then
9138
9139 succeeded=no
9140
9141 # Extract the first word of "pkg-config", so it can be a program name with args.
9142 set dummy pkg-config; ac_word=$2
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9144 $as_echo_n "checking for $ac_word... " >&6; }
9145 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9146 $as_echo_n "(cached) " >&6
9147 else
9148 case $PKG_CONFIG in
9149 [\\/]* | ?:[\\/]*)
9150 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9151 ;;
9152 *)
9153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9154 for as_dir in $PATH
9155 do
9156 IFS=$as_save_IFS
9157 test -z "$as_dir" && as_dir=.
9158 for ac_exec_ext in '' $ac_executable_extensions; do
9159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9160 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9162 break 2
9163 fi
9164 done
9165 done
9166 IFS=$as_save_IFS
9167
9168 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9169 ;;
9170 esac
9171 fi
9172 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9173 if test -n "$PKG_CONFIG"; then
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9175 $as_echo "$PKG_CONFIG" >&6; }
9176 else
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9178 $as_echo "no" >&6; }
9179 fi
9180
9181
9182
9183 if test "$PKG_CONFIG" = "no" ; then
9184 HAVE_DBUS=no
9185 else
9186 PKG_CONFIG_MIN_VERSION=0.9.0
9187 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
9189 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
9190
9191 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9193 $as_echo "yes" >&6; }
9194 succeeded=yes
9195
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
9197 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
9198 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
9200 $as_echo "$DBUS_CFLAGS" >&6; }
9201
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
9203 $as_echo_n "checking DBUS_LIBS... " >&6; }
9204 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
9206 $as_echo "$DBUS_LIBS" >&6; }
9207 else
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209 $as_echo "no" >&6; }
9210 DBUS_CFLAGS=""
9211 DBUS_LIBS=""
9212 ## If we have a custom action on failure, don't print errors, but
9213 ## do set a variable so people can do so.
9214 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
9215
9216 fi
9217
9218
9219
9220 else
9221 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9222 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9223 fi
9224 fi
9225
9226 if test $succeeded = yes; then
9227 HAVE_DBUS=yes
9228 else
9229 HAVE_DBUS=no
9230 fi
9231
9232 if test "$HAVE_DBUS" = yes; then
9233 LIBS="$LIBS $DBUS_LIBS"
9234
9235 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
9236
9237 for ac_func in dbus_watch_get_unix_fd
9238 do :
9239 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
9240 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
9241 cat >>confdefs.h <<_ACEOF
9242 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
9243 _ACEOF
9244
9245 fi
9246 done
9247
9248 DBUS_OBJ=dbusbind.o
9249 fi
9250 fi
9251
9252
9253 HAVE_GCONF=no
9254 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
9255
9256 succeeded=no
9257
9258 # Extract the first word of "pkg-config", so it can be a program name with args.
9259 set dummy pkg-config; ac_word=$2
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9261 $as_echo_n "checking for $ac_word... " >&6; }
9262 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9263 $as_echo_n "(cached) " >&6
9264 else
9265 case $PKG_CONFIG in
9266 [\\/]* | ?:[\\/]*)
9267 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9268 ;;
9269 *)
9270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9271 for as_dir in $PATH
9272 do
9273 IFS=$as_save_IFS
9274 test -z "$as_dir" && as_dir=.
9275 for ac_exec_ext in '' $ac_executable_extensions; do
9276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9277 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9279 break 2
9280 fi
9281 done
9282 done
9283 IFS=$as_save_IFS
9284
9285 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9286 ;;
9287 esac
9288 fi
9289 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9290 if test -n "$PKG_CONFIG"; then
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9292 $as_echo "$PKG_CONFIG" >&6; }
9293 else
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9295 $as_echo "no" >&6; }
9296 fi
9297
9298
9299
9300 if test "$PKG_CONFIG" = "no" ; then
9301 HAVE_GCONF=no
9302 else
9303 PKG_CONFIG_MIN_VERSION=0.9.0
9304 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
9306 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
9307
9308 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9310 $as_echo "yes" >&6; }
9311 succeeded=yes
9312
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
9314 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
9315 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
9317 $as_echo "$GCONF_CFLAGS" >&6; }
9318
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
9320 $as_echo_n "checking GCONF_LIBS... " >&6; }
9321 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
9323 $as_echo "$GCONF_LIBS" >&6; }
9324 else
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9326 $as_echo "no" >&6; }
9327 GCONF_CFLAGS=""
9328 GCONF_LIBS=""
9329 ## If we have a custom action on failure, don't print errors, but
9330 ## do set a variable so people can do so.
9331 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
9332
9333 fi
9334
9335
9336
9337 else
9338 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9339 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9340 fi
9341 fi
9342
9343 if test $succeeded = yes; then
9344 HAVE_GCONF=yes
9345 else
9346 HAVE_GCONF=no
9347 fi
9348
9349 if test "$HAVE_GCONF" = yes; then
9350
9351 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9352
9353 fi
9354 fi
9355
9356 HAVE_LIBSELINUX=no
9357 LIBSELINUX_LIBS=
9358 if test "${with_selinux}" = "yes"; then
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9360 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9361 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
9362 $as_echo_n "(cached) " >&6
9363 else
9364 ac_check_lib_save_LIBS=$LIBS
9365 LIBS="-lselinux $LIBS"
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368
9369 /* Override any GCC internal prototype to avoid an error.
9370 Use char because int might match the return type of a GCC
9371 builtin and then its argument prototype would still apply. */
9372 #ifdef __cplusplus
9373 extern "C"
9374 #endif
9375 char lgetfilecon ();
9376 int
9377 main ()
9378 {
9379 return lgetfilecon ();
9380 ;
9381 return 0;
9382 }
9383 _ACEOF
9384 if ac_fn_c_try_link "$LINENO"; then :
9385 ac_cv_lib_selinux_lgetfilecon=yes
9386 else
9387 ac_cv_lib_selinux_lgetfilecon=no
9388 fi
9389 rm -f core conftest.err conftest.$ac_objext \
9390 conftest$ac_exeext conftest.$ac_ext
9391 LIBS=$ac_check_lib_save_LIBS
9392 fi
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9394 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9395 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
9396 HAVE_LIBSELINUX=yes
9397 else
9398 HAVE_LIBSELINUX=no
9399 fi
9400
9401 if test "$HAVE_LIBSELINUX" = yes; then
9402
9403 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9404
9405 LIBSELINUX_LIBS=-lselinux
9406 fi
9407 fi
9408
9409
9410 HAVE_GNUTLS=no
9411 if test "${with_gnutls}" = "yes" ; then
9412
9413 succeeded=no
9414
9415 # Extract the first word of "pkg-config", so it can be a program name with args.
9416 set dummy pkg-config; ac_word=$2
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9418 $as_echo_n "checking for $ac_word... " >&6; }
9419 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9420 $as_echo_n "(cached) " >&6
9421 else
9422 case $PKG_CONFIG in
9423 [\\/]* | ?:[\\/]*)
9424 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9425 ;;
9426 *)
9427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9428 for as_dir in $PATH
9429 do
9430 IFS=$as_save_IFS
9431 test -z "$as_dir" && as_dir=.
9432 for ac_exec_ext in '' $ac_executable_extensions; do
9433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9434 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9436 break 2
9437 fi
9438 done
9439 done
9440 IFS=$as_save_IFS
9441
9442 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9443 ;;
9444 esac
9445 fi
9446 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9447 if test -n "$PKG_CONFIG"; then
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9449 $as_echo "$PKG_CONFIG" >&6; }
9450 else
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452 $as_echo "no" >&6; }
9453 fi
9454
9455
9456
9457 if test "$PKG_CONFIG" = "no" ; then
9458 HAVE_GNUTLS=no
9459 else
9460 PKG_CONFIG_MIN_VERSION=0.9.0
9461 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
9463 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
9464
9465 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9467 $as_echo "yes" >&6; }
9468 succeeded=yes
9469
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
9471 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
9472 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
9474 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
9475
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
9477 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
9478 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
9480 $as_echo "$LIBGNUTLS_LIBS" >&6; }
9481 else
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9483 $as_echo "no" >&6; }
9484 LIBGNUTLS_CFLAGS=""
9485 LIBGNUTLS_LIBS=""
9486 ## If we have a custom action on failure, don't print errors, but
9487 ## do set a variable so people can do so.
9488 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
9489
9490 fi
9491
9492
9493
9494 else
9495 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9496 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9497 fi
9498 fi
9499
9500 if test $succeeded = yes; then
9501 HAVE_GNUTLS=yes
9502 else
9503 HAVE_GNUTLS=no
9504 fi
9505
9506 if test "${HAVE_GNUTLS}" = "yes"; then
9507
9508 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9509
9510 fi
9511 fi
9512
9513
9514
9515 HAVE_XAW3D=no
9516 LUCID_LIBW=
9517 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
9518 if test "$with_xaw3d" != no; then
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9520 $as_echo_n "checking for xaw3d... " >&6; }
9521 if test "${emacs_cv_xaw3d+set}" = set; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h. */
9526
9527 #include <X11/Intrinsic.h>
9528 #include <X11/Xaw3d/Simple.h>
9529 int
9530 main ()
9531 {
9532
9533 ;
9534 return 0;
9535 }
9536 _ACEOF
9537 if ac_fn_c_try_link "$LINENO"; then :
9538 emacs_cv_xaw3d=yes
9539 else
9540 emacs_cv_xaw3d=no
9541 fi
9542 rm -f core conftest.err conftest.$ac_objext \
9543 conftest$ac_exeext conftest.$ac_ext
9544 fi
9545
9546 else
9547 emacs_cv_xaw3d=no
9548 fi
9549 if test $emacs_cv_xaw3d = yes; then
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9551 $as_echo "yes; using Lucid toolkit" >&6; }
9552 USE_X_TOOLKIT=LUCID
9553 HAVE_XAW3D=yes
9554 LUCID_LIBW=-lXaw3d
9555
9556 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9557
9558 else
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560 $as_echo "no" >&6; }
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9562 $as_echo_n "checking for libXaw... " >&6; }
9563 if test "${emacs_cv_xaw+set}" = set; then :
9564 $as_echo_n "(cached) " >&6
9565 else
9566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567 /* end confdefs.h. */
9568
9569 #include <X11/Intrinsic.h>
9570 #include <X11/Xaw/Simple.h>
9571 int
9572 main ()
9573 {
9574
9575 ;
9576 return 0;
9577 }
9578 _ACEOF
9579 if ac_fn_c_try_link "$LINENO"; then :
9580 emacs_cv_xaw=yes
9581 else
9582 emacs_cv_xaw=no
9583 fi
9584 rm -f core conftest.err conftest.$ac_objext \
9585 conftest$ac_exeext conftest.$ac_ext
9586 fi
9587
9588 if test $emacs_cv_xaw = yes; then
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9590 $as_echo "yes; using Lucid toolkit" >&6; }
9591 USE_X_TOOLKIT=LUCID
9592 LUCID_LIBW=-lXaw
9593 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
9594 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9595 else
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9597 $as_echo "no; do not use toolkit by default" >&6; }
9598 USE_X_TOOLKIT=none
9599 fi
9600 fi
9601 fi
9602
9603 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9604
9605 LIBXTR6=
9606 if test "${USE_X_TOOLKIT}" != "none"; then
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9608 $as_echo_n "checking X11 toolkit version... " >&6; }
9609 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9610 $as_echo_n "(cached) " >&6
9611 else
9612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h. */
9614 #include <X11/Intrinsic.h>
9615 int
9616 main ()
9617 {
9618 #if XtSpecificationRelease < 6
9619 fail;
9620 #endif
9621
9622 ;
9623 return 0;
9624 }
9625 _ACEOF
9626 if ac_fn_c_try_link "$LINENO"; then :
9627 emacs_cv_x11_toolkit_version_6=yes
9628 else
9629 emacs_cv_x11_toolkit_version_6=no
9630 fi
9631 rm -f core conftest.err conftest.$ac_objext \
9632 conftest$ac_exeext conftest.$ac_ext
9633 fi
9634
9635 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9636 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9638 $as_echo "6 or newer" >&6; }
9639
9640 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9641
9642 LIBXTR6="-lSM -lICE"
9643 case "$opsys" in
9644 ## Use libw.a along with X11R6 Xt.
9645 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
9646 esac
9647 else
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9649 $as_echo "before 6" >&6; }
9650 fi
9651
9652 OLDLIBS="$LIBS"
9653 if test x$HAVE_X11XTR6 = xyes; then
9654 LIBS="-lXt -lSM -lICE $LIBS"
9655 else
9656 LIBS="-lXt $LIBS"
9657 fi
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9659 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9660 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9661 $as_echo_n "(cached) " >&6
9662 else
9663 ac_check_lib_save_LIBS=$LIBS
9664 LIBS="-lXmu $LIBS"
9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9666 /* end confdefs.h. */
9667
9668 /* Override any GCC internal prototype to avoid an error.
9669 Use char because int might match the return type of a GCC
9670 builtin and then its argument prototype would still apply. */
9671 #ifdef __cplusplus
9672 extern "C"
9673 #endif
9674 char XmuConvertStandardSelection ();
9675 int
9676 main ()
9677 {
9678 return XmuConvertStandardSelection ();
9679 ;
9680 return 0;
9681 }
9682 _ACEOF
9683 if ac_fn_c_try_link "$LINENO"; then :
9684 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9685 else
9686 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9687 fi
9688 rm -f core conftest.err conftest.$ac_objext \
9689 conftest$ac_exeext conftest.$ac_ext
9690 LIBS=$ac_check_lib_save_LIBS
9691 fi
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9693 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9694 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
9695 cat >>confdefs.h <<_ACEOF
9696 #define HAVE_LIBXMU 1
9697 _ACEOF
9698
9699 LIBS="-lXmu $LIBS"
9700
9701 fi
9702
9703 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9704 fi
9705
9706
9707 LIBXMU=-lXmu
9708 case "$machine" in
9709 ## These machines don't supply Xmu.
9710 hpux* | aix4-2 )
9711 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
9712 ;;
9713 esac
9714
9715
9716 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9717 if test "${HAVE_X11}" = "yes"; then
9718 if test "${USE_X_TOOLKIT}" != "none"; then
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9720 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9721 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9722 $as_echo_n "(cached) " >&6
9723 else
9724 ac_check_lib_save_LIBS=$LIBS
9725 LIBS="-lXext $LIBS"
9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727 /* end confdefs.h. */
9728
9729 /* Override any GCC internal prototype to avoid an error.
9730 Use char because int might match the return type of a GCC
9731 builtin and then its argument prototype would still apply. */
9732 #ifdef __cplusplus
9733 extern "C"
9734 #endif
9735 char XShapeQueryExtension ();
9736 int
9737 main ()
9738 {
9739 return XShapeQueryExtension ();
9740 ;
9741 return 0;
9742 }
9743 _ACEOF
9744 if ac_fn_c_try_link "$LINENO"; then :
9745 ac_cv_lib_Xext_XShapeQueryExtension=yes
9746 else
9747 ac_cv_lib_Xext_XShapeQueryExtension=no
9748 fi
9749 rm -f core conftest.err conftest.$ac_objext \
9750 conftest$ac_exeext conftest.$ac_ext
9751 LIBS=$ac_check_lib_save_LIBS
9752 fi
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9754 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9755 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
9756 cat >>confdefs.h <<_ACEOF
9757 #define HAVE_LIBXEXT 1
9758 _ACEOF
9759
9760 LIBS="-lXext $LIBS"
9761
9762 fi
9763
9764 fi
9765 fi
9766
9767 LIBXP=
9768 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9770 $as_echo_n "checking for Motif version 2.1... " >&6; }
9771 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9772 $as_echo_n "(cached) " >&6
9773 else
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9776 #include <Xm/Xm.h>
9777 int
9778 main ()
9779 {
9780 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9781 int x = 5;
9782 #else
9783 Motif version prior to 2.1.
9784 #endif
9785 ;
9786 return 0;
9787 }
9788 _ACEOF
9789 if ac_fn_c_try_compile "$LINENO"; then :
9790 emacs_cv_motif_version_2_1=yes
9791 else
9792 emacs_cv_motif_version_2_1=no
9793 fi
9794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9795 fi
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9797 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9798 if test $emacs_cv_motif_version_2_1 = yes; then
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9800 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9801 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9802 $as_echo_n "(cached) " >&6
9803 else
9804 ac_check_lib_save_LIBS=$LIBS
9805 LIBS="-lXp $LIBS"
9806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9807 /* end confdefs.h. */
9808
9809 /* Override any GCC internal prototype to avoid an error.
9810 Use char because int might match the return type of a GCC
9811 builtin and then its argument prototype would still apply. */
9812 #ifdef __cplusplus
9813 extern "C"
9814 #endif
9815 char XpCreateContext ();
9816 int
9817 main ()
9818 {
9819 return XpCreateContext ();
9820 ;
9821 return 0;
9822 }
9823 _ACEOF
9824 if ac_fn_c_try_link "$LINENO"; then :
9825 ac_cv_lib_Xp_XpCreateContext=yes
9826 else
9827 ac_cv_lib_Xp_XpCreateContext=no
9828 fi
9829 rm -f core conftest.err conftest.$ac_objext \
9830 conftest$ac_exeext conftest.$ac_ext
9831 LIBS=$ac_check_lib_save_LIBS
9832 fi
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9834 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9835 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
9836 LIBXP=-lXp
9837 fi
9838
9839 else
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9841 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9842 if test "${emacs_cv_lesstif+set}" = set; then :
9843 $as_echo_n "(cached) " >&6
9844 else
9845 # We put this in CFLAGS temporarily to precede other -I options
9846 # that might be in CFLAGS temporarily.
9847 # We put this in CPPFLAGS where it precedes the other -I options.
9848 OLD_CPPFLAGS=$CPPFLAGS
9849 OLD_CFLAGS=$CFLAGS
9850 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9851 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h. */
9854 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9855 int
9856 main ()
9857 {
9858 int x = 5;
9859 ;
9860 return 0;
9861 }
9862 _ACEOF
9863 if ac_fn_c_try_compile "$LINENO"; then :
9864 emacs_cv_lesstif=yes
9865 else
9866 emacs_cv_lesstif=no
9867 fi
9868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9869 fi
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9871 $as_echo "$emacs_cv_lesstif" >&6; }
9872 if test $emacs_cv_lesstif = yes; then
9873 # Make sure this -I option remains in CPPFLAGS after it is set
9874 # back to REAL_CPPFLAGS.
9875 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9876 # have those other -I options anyway. Ultimately, having this
9877 # directory ultimately in CPPFLAGS will be enough.
9878 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9879 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9880 else
9881 CFLAGS=$OLD_CFLAGS
9882 CPPFLAGS=$OLD_CPPFLAGS
9883 fi
9884 fi
9885 fi
9886
9887
9888 USE_TOOLKIT_SCROLL_BARS=no
9889 if test "${with_toolkit_scroll_bars}" != "no"; then
9890 if test "${USE_X_TOOLKIT}" != "none"; then
9891 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9892 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9893
9894 HAVE_XAW3D=no
9895 USE_TOOLKIT_SCROLL_BARS=yes
9896 elif test "${HAVE_XAW3D}" = "yes"; then
9897 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9898
9899 USE_TOOLKIT_SCROLL_BARS=yes
9900 fi
9901 elif test "${HAVE_GTK}" = "yes"; then
9902 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9903
9904 USE_TOOLKIT_SCROLL_BARS=yes
9905 elif test "${HAVE_NS}" = "yes"; then
9906 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9907
9908 USE_TOOLKIT_SCROLL_BARS=yes
9909 fi
9910 fi
9911
9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9914
9915 #include <X11/Xlib.h>
9916 #include <X11/Xresource.h>
9917 int
9918 main ()
9919 {
9920 XIMProc callback;
9921 ;
9922 return 0;
9923 }
9924 _ACEOF
9925 if ac_fn_c_try_compile "$LINENO"; then :
9926 HAVE_XIM=yes
9927
9928 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9929
9930 else
9931 HAVE_XIM=no
9932 fi
9933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9934
9935
9936 if test "${with_xim}" != "no"; then
9937
9938 $as_echo "#define USE_XIM 1" >>confdefs.h
9939
9940 fi
9941
9942
9943 if test "${HAVE_XIM}" != "no"; then
9944 late_CFLAGS=$CFLAGS
9945 if test "$GCC" = yes; then
9946 CFLAGS="$CFLAGS --pedantic-errors"
9947 fi
9948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9949 /* end confdefs.h. */
9950
9951 #include <X11/Xlib.h>
9952 #include <X11/Xresource.h>
9953 int
9954 main ()
9955 {
9956 Display *display;
9957 XrmDatabase db;
9958 char *res_name;
9959 char *res_class;
9960 XIMProc callback;
9961 XPointer *client_data;
9962 #ifndef __GNUC__
9963 /* If we're not using GCC, it's probably not XFree86, and this is
9964 probably right, but we can't use something like --pedantic-errors. */
9965 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9966 char*, XIMProc, XPointer*);
9967 #endif
9968 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9969 client_data);
9970 ;
9971 return 0;
9972 }
9973 _ACEOF
9974 if ac_fn_c_try_compile "$LINENO"; then :
9975 emacs_cv_arg6_star=yes
9976 fi
9977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9978 if test "$emacs_cv_arg6_star" = yes; then
9979 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9980
9981 else
9982 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9983
9984 fi
9985 CFLAGS=$late_CFLAGS
9986 fi
9987
9988 ### Start of font-backend (under any platform) section.
9989 # (nothing here yet -- this is a placeholder)
9990 ### End of font-backend (under any platform) section.
9991
9992 ### Start of font-backend (under X11) section.
9993 if test "${HAVE_X11}" = "yes"; then
9994
9995 succeeded=no
9996
9997 # Extract the first word of "pkg-config", so it can be a program name with args.
9998 set dummy pkg-config; ac_word=$2
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10000 $as_echo_n "checking for $ac_word... " >&6; }
10001 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10002 $as_echo_n "(cached) " >&6
10003 else
10004 case $PKG_CONFIG in
10005 [\\/]* | ?:[\\/]*)
10006 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10007 ;;
10008 *)
10009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10010 for as_dir in $PATH
10011 do
10012 IFS=$as_save_IFS
10013 test -z "$as_dir" && as_dir=.
10014 for ac_exec_ext in '' $ac_executable_extensions; do
10015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10016 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10018 break 2
10019 fi
10020 done
10021 done
10022 IFS=$as_save_IFS
10023
10024 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10025 ;;
10026 esac
10027 fi
10028 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10029 if test -n "$PKG_CONFIG"; then
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10031 $as_echo "$PKG_CONFIG" >&6; }
10032 else
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10034 $as_echo "no" >&6; }
10035 fi
10036
10037
10038
10039 if test "$PKG_CONFIG" = "no" ; then
10040 HAVE_FC=no
10041 else
10042 PKG_CONFIG_MIN_VERSION=0.9.0
10043 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
10045 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
10046
10047 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10049 $as_echo "yes" >&6; }
10050 succeeded=yes
10051
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
10053 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
10054 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
10056 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
10057
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
10059 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
10060 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
10062 $as_echo "$FONTCONFIG_LIBS" >&6; }
10063 else
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10065 $as_echo "no" >&6; }
10066 FONTCONFIG_CFLAGS=""
10067 FONTCONFIG_LIBS=""
10068 ## If we have a custom action on failure, don't print errors, but
10069 ## do set a variable so people can do so.
10070 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
10071
10072 fi
10073
10074
10075
10076 else
10077 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10078 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10079 fi
10080 fi
10081
10082 if test $succeeded = yes; then
10083 HAVE_FC=yes
10084 else
10085 HAVE_FC=no
10086 fi
10087
10088
10089 ## Use -lXft if available, unless `--with-xft=no'.
10090 HAVE_XFT=maybe
10091 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
10092 with_xft="no";
10093 fi
10094 if test "x${with_xft}" != "xno"; then
10095
10096
10097 succeeded=no
10098
10099 # Extract the first word of "pkg-config", so it can be a program name with args.
10100 set dummy pkg-config; ac_word=$2
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10102 $as_echo_n "checking for $ac_word... " >&6; }
10103 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10104 $as_echo_n "(cached) " >&6
10105 else
10106 case $PKG_CONFIG in
10107 [\\/]* | ?:[\\/]*)
10108 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10109 ;;
10110 *)
10111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10112 for as_dir in $PATH
10113 do
10114 IFS=$as_save_IFS
10115 test -z "$as_dir" && as_dir=.
10116 for ac_exec_ext in '' $ac_executable_extensions; do
10117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10118 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10120 break 2
10121 fi
10122 done
10123 done
10124 IFS=$as_save_IFS
10125
10126 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10127 ;;
10128 esac
10129 fi
10130 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10131 if test -n "$PKG_CONFIG"; then
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10133 $as_echo "$PKG_CONFIG" >&6; }
10134 else
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10136 $as_echo "no" >&6; }
10137 fi
10138
10139
10140
10141 if test "$PKG_CONFIG" = "no" ; then
10142 HAVE_XFT=no
10143 else
10144 PKG_CONFIG_MIN_VERSION=0.9.0
10145 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10147 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
10148
10149 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10151 $as_echo "yes" >&6; }
10152 succeeded=yes
10153
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10155 $as_echo_n "checking XFT_CFLAGS... " >&6; }
10156 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10158 $as_echo "$XFT_CFLAGS" >&6; }
10159
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10161 $as_echo_n "checking XFT_LIBS... " >&6; }
10162 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
10164 $as_echo "$XFT_LIBS" >&6; }
10165 else
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10167 $as_echo "no" >&6; }
10168 XFT_CFLAGS=""
10169 XFT_LIBS=""
10170 ## If we have a custom action on failure, don't print errors, but
10171 ## do set a variable so people can do so.
10172 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
10173
10174 fi
10175
10176
10177
10178 else
10179 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10180 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10181 fi
10182 fi
10183
10184 if test $succeeded = yes; then
10185 :
10186 else
10187 HAVE_XFT=no
10188 fi
10189
10190 ## Because xftfont.c uses XRenderQueryExtension, we also
10191 ## need to link to -lXrender.
10192 HAVE_XRENDER=no
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
10194 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
10195 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
10196 $as_echo_n "(cached) " >&6
10197 else
10198 ac_check_lib_save_LIBS=$LIBS
10199 LIBS="-lXrender $LIBS"
10200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10201 /* end confdefs.h. */
10202
10203 /* Override any GCC internal prototype to avoid an error.
10204 Use char because int might match the return type of a GCC
10205 builtin and then its argument prototype would still apply. */
10206 #ifdef __cplusplus
10207 extern "C"
10208 #endif
10209 char XRenderQueryExtension ();
10210 int
10211 main ()
10212 {
10213 return XRenderQueryExtension ();
10214 ;
10215 return 0;
10216 }
10217 _ACEOF
10218 if ac_fn_c_try_link "$LINENO"; then :
10219 ac_cv_lib_Xrender_XRenderQueryExtension=yes
10220 else
10221 ac_cv_lib_Xrender_XRenderQueryExtension=no
10222 fi
10223 rm -f core conftest.err conftest.$ac_objext \
10224 conftest$ac_exeext conftest.$ac_ext
10225 LIBS=$ac_check_lib_save_LIBS
10226 fi
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
10228 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
10229 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
10230 HAVE_XRENDER=yes
10231 fi
10232
10233 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
10234 OLD_CPPFLAGS="$CPPFLAGS"
10235 OLD_CFLAGS="$CFLAGS"
10236 OLD_LIBS="$LIBS"
10237 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
10238 CFLAGS="$CFLAGS $XFT_CFLAGS"
10239 XFT_LIBS="-lXrender $XFT_LIBS"
10240 LIBS="$XFT_LIBS $LIBS"
10241 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
10242 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
10244 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
10245 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
10246 $as_echo_n "(cached) " >&6
10247 else
10248 ac_check_lib_save_LIBS=$LIBS
10249 LIBS="-lXft $XFT_LIBS $LIBS"
10250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10251 /* end confdefs.h. */
10252
10253 /* Override any GCC internal prototype to avoid an error.
10254 Use char because int might match the return type of a GCC
10255 builtin and then its argument prototype would still apply. */
10256 #ifdef __cplusplus
10257 extern "C"
10258 #endif
10259 char XftFontOpen ();
10260 int
10261 main ()
10262 {
10263 return XftFontOpen ();
10264 ;
10265 return 0;
10266 }
10267 _ACEOF
10268 if ac_fn_c_try_link "$LINENO"; then :
10269 ac_cv_lib_Xft_XftFontOpen=yes
10270 else
10271 ac_cv_lib_Xft_XftFontOpen=no
10272 fi
10273 rm -f core conftest.err conftest.$ac_objext \
10274 conftest$ac_exeext conftest.$ac_ext
10275 LIBS=$ac_check_lib_save_LIBS
10276 fi
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
10278 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
10279 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
10280 HAVE_XFT=yes
10281 fi
10282
10283 fi
10284
10285
10286
10287 if test "${HAVE_XFT}" = "yes"; then
10288
10289 $as_echo "#define HAVE_XFT 1" >>confdefs.h
10290
10291
10292 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
10293 else
10294 CPPFLAGS="$OLD_CPPFLAGS"
10295 CFLAGS="$OLD_CFLAGS"
10296 LIBS="$OLD_LIBS"
10297 fi # "${HAVE_XFT}" = "yes"
10298 fi # "$HAVE_XFT" != no
10299 fi # "x${with_xft}" != "xno"
10300
10301 if test "$HAVE_XFT" != "yes"; then
10302 HAVE_XFT=no
10303 fi
10304
10305
10306 HAVE_FREETYPE=no
10307 ## We used to allow building with FreeType and without Xft.
10308 ## However, the ftx font backend driver is not in good shape.
10309 if test "${HAVE_XFT}" = "yes"; then
10310 HAVE_FREETYPE=yes
10311 FONTCONFIG_CFLAGS=
10312 FONTCONFIG_LIBS=
10313 fi
10314
10315 HAVE_LIBOTF=no
10316 if test "${HAVE_FREETYPE}" = "yes"; then
10317
10318 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10319
10320 if test "${with_libotf}" != "no"; then
10321
10322 succeeded=no
10323
10324 # Extract the first word of "pkg-config", so it can be a program name with args.
10325 set dummy pkg-config; ac_word=$2
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10327 $as_echo_n "checking for $ac_word... " >&6; }
10328 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10329 $as_echo_n "(cached) " >&6
10330 else
10331 case $PKG_CONFIG in
10332 [\\/]* | ?:[\\/]*)
10333 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10334 ;;
10335 *)
10336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10337 for as_dir in $PATH
10338 do
10339 IFS=$as_save_IFS
10340 test -z "$as_dir" && as_dir=.
10341 for ac_exec_ext in '' $ac_executable_extensions; do
10342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10343 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10345 break 2
10346 fi
10347 done
10348 done
10349 IFS=$as_save_IFS
10350
10351 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10352 ;;
10353 esac
10354 fi
10355 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10356 if test -n "$PKG_CONFIG"; then
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10358 $as_echo "$PKG_CONFIG" >&6; }
10359 else
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10361 $as_echo "no" >&6; }
10362 fi
10363
10364
10365
10366 if test "$PKG_CONFIG" = "no" ; then
10367 HAVE_LIBOTF=no
10368 else
10369 PKG_CONFIG_MIN_VERSION=0.9.0
10370 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
10372 $as_echo_n "checking for libotf... " >&6; }
10373
10374 if $PKG_CONFIG --exists "libotf" 2>&5; then
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10376 $as_echo "yes" >&6; }
10377 succeeded=yes
10378
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
10380 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
10381 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
10383 $as_echo "$LIBOTF_CFLAGS" >&6; }
10384
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
10386 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
10387 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
10389 $as_echo "$LIBOTF_LIBS" >&6; }
10390 else
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392 $as_echo "no" >&6; }
10393 LIBOTF_CFLAGS=""
10394 LIBOTF_LIBS=""
10395 ## If we have a custom action on failure, don't print errors, but
10396 ## do set a variable so people can do so.
10397 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
10398
10399 fi
10400
10401
10402
10403 else
10404 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10405 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10406 fi
10407 fi
10408
10409 if test $succeeded = yes; then
10410 HAVE_LIBOTF=yes
10411 else
10412 HAVE_LIBOTF=no
10413 fi
10414
10415 if test "$HAVE_LIBOTF" = "yes"; then
10416
10417 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
10418
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
10420 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
10421 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
10422 $as_echo_n "(cached) " >&6
10423 else
10424 ac_check_lib_save_LIBS=$LIBS
10425 LIBS="-lotf $LIBS"
10426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h. */
10428
10429 /* Override any GCC internal prototype to avoid an error.
10430 Use char because int might match the return type of a GCC
10431 builtin and then its argument prototype would still apply. */
10432 #ifdef __cplusplus
10433 extern "C"
10434 #endif
10435 char OTF_get_variation_glyphs ();
10436 int
10437 main ()
10438 {
10439 return OTF_get_variation_glyphs ();
10440 ;
10441 return 0;
10442 }
10443 _ACEOF
10444 if ac_fn_c_try_link "$LINENO"; then :
10445 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
10446 else
10447 ac_cv_lib_otf_OTF_get_variation_glyphs=no
10448 fi
10449 rm -f core conftest.err conftest.$ac_objext \
10450 conftest$ac_exeext conftest.$ac_ext
10451 LIBS=$ac_check_lib_save_LIBS
10452 fi
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10454 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10455 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
10456 HAVE_OTF_GET_VARIATION_GLYPHS=yes
10457 else
10458 HAVE_OTF_GET_VARIATION_GLYPHS=no
10459 fi
10460
10461 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10462
10463 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10464
10465 fi
10466 fi
10467 fi
10468 fi
10469
10470 HAVE_M17N_FLT=no
10471 if test "${HAVE_LIBOTF}" = yes; then
10472 if test "${with_m17n_flt}" != "no"; then
10473
10474 succeeded=no
10475
10476 # Extract the first word of "pkg-config", so it can be a program name with args.
10477 set dummy pkg-config; ac_word=$2
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10479 $as_echo_n "checking for $ac_word... " >&6; }
10480 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10481 $as_echo_n "(cached) " >&6
10482 else
10483 case $PKG_CONFIG in
10484 [\\/]* | ?:[\\/]*)
10485 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10486 ;;
10487 *)
10488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10489 for as_dir in $PATH
10490 do
10491 IFS=$as_save_IFS
10492 test -z "$as_dir" && as_dir=.
10493 for ac_exec_ext in '' $ac_executable_extensions; do
10494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10495 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10497 break 2
10498 fi
10499 done
10500 done
10501 IFS=$as_save_IFS
10502
10503 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10504 ;;
10505 esac
10506 fi
10507 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10508 if test -n "$PKG_CONFIG"; then
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10510 $as_echo "$PKG_CONFIG" >&6; }
10511 else
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10513 $as_echo "no" >&6; }
10514 fi
10515
10516
10517
10518 if test "$PKG_CONFIG" = "no" ; then
10519 HAVE_M17N_FLT=no
10520 else
10521 PKG_CONFIG_MIN_VERSION=0.9.0
10522 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10524 $as_echo_n "checking for m17n-flt... " >&6; }
10525
10526 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10528 $as_echo "yes" >&6; }
10529 succeeded=yes
10530
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10532 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10533 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10535 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10536
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10538 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10539 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10541 $as_echo "$M17N_FLT_LIBS" >&6; }
10542 else
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10544 $as_echo "no" >&6; }
10545 M17N_FLT_CFLAGS=""
10546 M17N_FLT_LIBS=""
10547 ## If we have a custom action on failure, don't print errors, but
10548 ## do set a variable so people can do so.
10549 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10550
10551 fi
10552
10553
10554
10555 else
10556 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10557 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10558 fi
10559 fi
10560
10561 if test $succeeded = yes; then
10562 HAVE_M17N_FLT=yes
10563 else
10564 HAVE_M17N_FLT=no
10565 fi
10566
10567 if test "$HAVE_M17N_FLT" = "yes"; then
10568
10569 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10570
10571 fi
10572 fi
10573 fi
10574 else
10575 HAVE_XFT=no
10576 HAVE_FREETYPE=no
10577 HAVE_LIBOTF=no
10578 HAVE_M17N_FLT=no
10579 fi
10580
10581 ### End of font-backend (under X11) section.
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592 ### Use -lXpm if available, unless `--with-xpm=no'.
10593 HAVE_XPM=no
10594 LIBXPM=
10595 if test "${HAVE_X11}" = "yes"; then
10596 if test "${with_xpm}" != "no"; then
10597 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10598 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10600 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10601 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10602 $as_echo_n "(cached) " >&6
10603 else
10604 ac_check_lib_save_LIBS=$LIBS
10605 LIBS="-lXpm -lX11 $LIBS"
10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10608
10609 /* Override any GCC internal prototype to avoid an error.
10610 Use char because int might match the return type of a GCC
10611 builtin and then its argument prototype would still apply. */
10612 #ifdef __cplusplus
10613 extern "C"
10614 #endif
10615 char XpmReadFileToPixmap ();
10616 int
10617 main ()
10618 {
10619 return XpmReadFileToPixmap ();
10620 ;
10621 return 0;
10622 }
10623 _ACEOF
10624 if ac_fn_c_try_link "$LINENO"; then :
10625 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10626 else
10627 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10628 fi
10629 rm -f core conftest.err conftest.$ac_objext \
10630 conftest$ac_exeext conftest.$ac_ext
10631 LIBS=$ac_check_lib_save_LIBS
10632 fi
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10634 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10635 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
10636 HAVE_XPM=yes
10637 fi
10638
10639 fi
10640
10641
10642 if test "${HAVE_XPM}" = "yes"; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10644 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h. */
10647 #include "X11/xpm.h"
10648 #ifndef XpmReturnAllocPixels
10649 no_return_alloc_pixels
10650 #endif
10651
10652 _ACEOF
10653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10654 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
10655 HAVE_XPM=no
10656 else
10657 HAVE_XPM=yes
10658 fi
10659 rm -f conftest*
10660
10661
10662 if test "${HAVE_XPM}" = "yes"; then
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10664 $as_echo "yes" >&6; }
10665 else
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667 $as_echo "no" >&6; }
10668 fi
10669 fi
10670 fi
10671
10672 if test "${HAVE_XPM}" = "yes"; then
10673
10674 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10675
10676 LIBXPM=-lXpm
10677 fi
10678 fi
10679
10680
10681 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10682 HAVE_JPEG=no
10683 LIBJPEG=
10684 if test "${HAVE_X11}" = "yes"; then
10685 if test "${with_jpeg}" != "no"; then
10686 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10687 if test "x$ac_cv_header_jerror_h" = x""yes; then :
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10689 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10690 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10691 $as_echo_n "(cached) " >&6
10692 else
10693 ac_check_lib_save_LIBS=$LIBS
10694 LIBS="-ljpeg $LIBS"
10695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10696 /* end confdefs.h. */
10697
10698 /* Override any GCC internal prototype to avoid an error.
10699 Use char because int might match the return type of a GCC
10700 builtin and then its argument prototype would still apply. */
10701 #ifdef __cplusplus
10702 extern "C"
10703 #endif
10704 char jpeg_destroy_compress ();
10705 int
10706 main ()
10707 {
10708 return jpeg_destroy_compress ();
10709 ;
10710 return 0;
10711 }
10712 _ACEOF
10713 if ac_fn_c_try_link "$LINENO"; then :
10714 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10715 else
10716 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10717 fi
10718 rm -f core conftest.err conftest.$ac_objext \
10719 conftest$ac_exeext conftest.$ac_ext
10720 LIBS=$ac_check_lib_save_LIBS
10721 fi
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10723 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10724 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
10725 HAVE_JPEG=yes
10726 fi
10727
10728 fi
10729
10730
10731 fi
10732
10733 if test "${HAVE_JPEG}" = "yes"; then
10734 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10735
10736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737 /* end confdefs.h. */
10738 #include <jpeglib.h>
10739 version=JPEG_LIB_VERSION
10740
10741 _ACEOF
10742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10743 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
10744 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10745
10746 else
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10748 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10749 HAVE_JPEG=no
10750 fi
10751 rm -f conftest*
10752
10753 fi
10754 if test "${HAVE_JPEG}" = "yes"; then
10755 LIBJPEG=-ljpeg
10756 fi
10757 fi
10758
10759
10760 ### Use -lpng if available, unless `--with-png=no'.
10761 HAVE_PNG=no
10762 LIBPNG=
10763 if test "${HAVE_X11}" = "yes"; then
10764 if test "${with_png}" != "no"; then
10765 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10766 # in /usr/include/libpng.
10767 for ac_header in png.h libpng/png.h
10768 do :
10769 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10770 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10771 eval as_val=\$$as_ac_Header
10772 if test "x$as_val" = x""yes; then :
10773 cat >>confdefs.h <<_ACEOF
10774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10775 _ACEOF
10776
10777 fi
10778
10779 done
10780
10781 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10783 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10784 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10785 $as_echo_n "(cached) " >&6
10786 else
10787 ac_check_lib_save_LIBS=$LIBS
10788 LIBS="-lpng -lz -lm $LIBS"
10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10791
10792 /* Override any GCC internal prototype to avoid an error.
10793 Use char because int might match the return type of a GCC
10794 builtin and then its argument prototype would still apply. */
10795 #ifdef __cplusplus
10796 extern "C"
10797 #endif
10798 char png_get_channels ();
10799 int
10800 main ()
10801 {
10802 return png_get_channels ();
10803 ;
10804 return 0;
10805 }
10806 _ACEOF
10807 if ac_fn_c_try_link "$LINENO"; then :
10808 ac_cv_lib_png_png_get_channels=yes
10809 else
10810 ac_cv_lib_png_png_get_channels=no
10811 fi
10812 rm -f core conftest.err conftest.$ac_objext \
10813 conftest$ac_exeext conftest.$ac_ext
10814 LIBS=$ac_check_lib_save_LIBS
10815 fi
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10817 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10818 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
10819 HAVE_PNG=yes
10820 fi
10821
10822 fi
10823 fi
10824
10825 if test "${HAVE_PNG}" = "yes"; then
10826
10827 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10828
10829 LIBPNG="-lpng -lz -lm"
10830 fi
10831 fi
10832
10833
10834 ### Use -ltiff if available, unless `--with-tiff=no'.
10835 HAVE_TIFF=no
10836 LIBTIFF=
10837 if test "${HAVE_X11}" = "yes"; then
10838 if test "${with_tiff}" != "no"; then
10839 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10840 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
10841 tifflibs="-lz -lm"
10842 # At least one tiff package requires the jpeg library.
10843 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10845 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10846 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10847 $as_echo_n "(cached) " >&6
10848 else
10849 ac_check_lib_save_LIBS=$LIBS
10850 LIBS="-ltiff $tifflibs $LIBS"
10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852 /* end confdefs.h. */
10853
10854 /* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
10857 #ifdef __cplusplus
10858 extern "C"
10859 #endif
10860 char TIFFGetVersion ();
10861 int
10862 main ()
10863 {
10864 return TIFFGetVersion ();
10865 ;
10866 return 0;
10867 }
10868 _ACEOF
10869 if ac_fn_c_try_link "$LINENO"; then :
10870 ac_cv_lib_tiff_TIFFGetVersion=yes
10871 else
10872 ac_cv_lib_tiff_TIFFGetVersion=no
10873 fi
10874 rm -f core conftest.err conftest.$ac_objext \
10875 conftest$ac_exeext conftest.$ac_ext
10876 LIBS=$ac_check_lib_save_LIBS
10877 fi
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10879 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10880 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
10881 HAVE_TIFF=yes
10882 fi
10883
10884 fi
10885
10886
10887 fi
10888
10889 if test "${HAVE_TIFF}" = "yes"; then
10890
10891 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10892
10893 LIBTIFF=-ltiff
10894 fi
10895 fi
10896
10897
10898 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10899 HAVE_GIF=no
10900 LIBGIF=
10901 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10902 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10903 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
10904 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10905 # Earlier versions can crash Emacs.
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10907 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10908 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10909 $as_echo_n "(cached) " >&6
10910 else
10911 ac_check_lib_save_LIBS=$LIBS
10912 LIBS="-lgif $LIBS"
10913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10914 /* end confdefs.h. */
10915
10916 /* Override any GCC internal prototype to avoid an error.
10917 Use char because int might match the return type of a GCC
10918 builtin and then its argument prototype would still apply. */
10919 #ifdef __cplusplus
10920 extern "C"
10921 #endif
10922 char EGifPutExtensionLast ();
10923 int
10924 main ()
10925 {
10926 return EGifPutExtensionLast ();
10927 ;
10928 return 0;
10929 }
10930 _ACEOF
10931 if ac_fn_c_try_link "$LINENO"; then :
10932 ac_cv_lib_gif_EGifPutExtensionLast=yes
10933 else
10934 ac_cv_lib_gif_EGifPutExtensionLast=no
10935 fi
10936 rm -f core conftest.err conftest.$ac_objext \
10937 conftest$ac_exeext conftest.$ac_ext
10938 LIBS=$ac_check_lib_save_LIBS
10939 fi
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10941 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10942 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
10943 HAVE_GIF=yes
10944 else
10945 HAVE_GIF=maybe
10946 fi
10947
10948 fi
10949
10950
10951
10952 if test "$HAVE_GIF" = yes; then
10953 LIBGIF=-lgif
10954 elif test "$HAVE_GIF" = maybe; then
10955 # If gif_lib.h but no libgif, try libungif.
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10957 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10958 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10959 $as_echo_n "(cached) " >&6
10960 else
10961 ac_check_lib_save_LIBS=$LIBS
10962 LIBS="-lungif $LIBS"
10963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10964 /* end confdefs.h. */
10965
10966 /* Override any GCC internal prototype to avoid an error.
10967 Use char because int might match the return type of a GCC
10968 builtin and then its argument prototype would still apply. */
10969 #ifdef __cplusplus
10970 extern "C"
10971 #endif
10972 char EGifPutExtensionLast ();
10973 int
10974 main ()
10975 {
10976 return EGifPutExtensionLast ();
10977 ;
10978 return 0;
10979 }
10980 _ACEOF
10981 if ac_fn_c_try_link "$LINENO"; then :
10982 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10983 else
10984 ac_cv_lib_ungif_EGifPutExtensionLast=no
10985 fi
10986 rm -f core conftest.err conftest.$ac_objext \
10987 conftest$ac_exeext conftest.$ac_ext
10988 LIBS=$ac_check_lib_save_LIBS
10989 fi
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10991 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10992 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10993 HAVE_GIF=yes
10994 else
10995 HAVE_GIF=no
10996 fi
10997
10998 test "$HAVE_GIF" = yes && LIBGIF=-lungif
10999 fi
11000
11001 if test "${HAVE_GIF}" = "yes"; then
11002
11003 $as_echo "#define HAVE_GIF 1" >>confdefs.h
11004
11005 fi
11006 fi
11007
11008
11009 if test "${HAVE_X11}" = "yes"; then
11010 MISSING=""
11011 WITH_NO=""
11012 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
11013 MISSING="libXpm" && WITH_NO="--with-xpm=no"
11014 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
11015 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
11016 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
11017 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
11018 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
11019 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
11020 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
11021 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
11022
11023 if test "X${MISSING}" != X; then
11024 as_fn_error "The following required libraries were not found:
11025 $MISSING
11026 Maybe some development libraries/packages are missing?
11027 If you don't want to link with them give
11028 $WITH_NO
11029 as options to configure" "$LINENO" 5
11030 fi
11031 fi
11032
11033 ### Use -lgpm if available, unless `--with-gpm=no'.
11034 HAVE_GPM=no
11035 LIBGPM=
11036 MOUSE_SUPPORT=
11037 if test "${with_gpm}" != "no"; then
11038 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
11039 if test "x$ac_cv_header_gpm_h" = x""yes; then :
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
11041 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
11042 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
11043 $as_echo_n "(cached) " >&6
11044 else
11045 ac_check_lib_save_LIBS=$LIBS
11046 LIBS="-lgpm $LIBS"
11047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048 /* end confdefs.h. */
11049
11050 /* Override any GCC internal prototype to avoid an error.
11051 Use char because int might match the return type of a GCC
11052 builtin and then its argument prototype would still apply. */
11053 #ifdef __cplusplus
11054 extern "C"
11055 #endif
11056 char Gpm_Open ();
11057 int
11058 main ()
11059 {
11060 return Gpm_Open ();
11061 ;
11062 return 0;
11063 }
11064 _ACEOF
11065 if ac_fn_c_try_link "$LINENO"; then :
11066 ac_cv_lib_gpm_Gpm_Open=yes
11067 else
11068 ac_cv_lib_gpm_Gpm_Open=no
11069 fi
11070 rm -f core conftest.err conftest.$ac_objext \
11071 conftest$ac_exeext conftest.$ac_ext
11072 LIBS=$ac_check_lib_save_LIBS
11073 fi
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11075 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
11076 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
11077 HAVE_GPM=yes
11078 fi
11079
11080 fi
11081
11082
11083
11084 if test "${HAVE_GPM}" = "yes"; then
11085
11086 $as_echo "#define HAVE_GPM 1" >>confdefs.h
11087
11088 LIBGPM=-lgpm
11089 ## May be reset below.
11090 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
11091 fi
11092 fi
11093
11094
11095 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
11096 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
11097
11098 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
11099
11100 fi
11101
11102
11103
11104 C_SWITCH_X_SYSTEM=
11105 ### Use NeXTstep API to implement GUI.
11106 if test "${HAVE_NS}" = "yes"; then
11107
11108 $as_echo "#define HAVE_NS 1" >>confdefs.h
11109
11110 if test "${NS_IMPL_COCOA}" = "yes"; then
11111
11112 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
11113
11114 GNU_OBJC_CFLAGS=
11115 fi
11116 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11117
11118 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11119
11120 # See also .m.o rule in Makefile.in */
11121 # FIXME: are all these flags really needed? Document here why. */
11122 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
11123 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11124 fi
11125 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11126
11127 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11128
11129 fi
11130 # We also have mouse menus.
11131 HAVE_MENUS=yes
11132 OTHER_FILES=ns-app
11133 fi
11134
11135
11136 ### Use session management (-lSM -lICE) if available
11137 HAVE_X_SM=no
11138 LIBXSM=
11139 if test "${HAVE_X11}" = "yes"; then
11140 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11141 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11143 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11144 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
11145 $as_echo_n "(cached) " >&6
11146 else
11147 ac_check_lib_save_LIBS=$LIBS
11148 LIBS="-lSM -lICE $LIBS"
11149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11150 /* end confdefs.h. */
11151
11152 /* Override any GCC internal prototype to avoid an error.
11153 Use char because int might match the return type of a GCC
11154 builtin and then its argument prototype would still apply. */
11155 #ifdef __cplusplus
11156 extern "C"
11157 #endif
11158 char SmcOpenConnection ();
11159 int
11160 main ()
11161 {
11162 return SmcOpenConnection ();
11163 ;
11164 return 0;
11165 }
11166 _ACEOF
11167 if ac_fn_c_try_link "$LINENO"; then :
11168 ac_cv_lib_SM_SmcOpenConnection=yes
11169 else
11170 ac_cv_lib_SM_SmcOpenConnection=no
11171 fi
11172 rm -f core conftest.err conftest.$ac_objext \
11173 conftest$ac_exeext conftest.$ac_ext
11174 LIBS=$ac_check_lib_save_LIBS
11175 fi
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11177 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
11178 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
11179 HAVE_X_SM=yes
11180 fi
11181
11182 fi
11183
11184
11185
11186 if test "${HAVE_X_SM}" = "yes"; then
11187
11188 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
11189
11190 LIBXSM="-lSM -lICE"
11191 case "$LIBS" in
11192 *-lSM*) ;;
11193 *) LIBS="$LIBXSM $LIBS" ;;
11194 esac
11195 fi
11196 fi
11197
11198
11199 ### Use libxml (-lxml2) if available
11200 if test "${with_xml2}" != "no"; then
11201 ### I'm not sure what the version number should be, so I just guessed.
11202
11203 succeeded=no
11204
11205 # Extract the first word of "pkg-config", so it can be a program name with args.
11206 set dummy pkg-config; ac_word=$2
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11208 $as_echo_n "checking for $ac_word... " >&6; }
11209 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11210 $as_echo_n "(cached) " >&6
11211 else
11212 case $PKG_CONFIG in
11213 [\\/]* | ?:[\\/]*)
11214 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11215 ;;
11216 *)
11217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218 for as_dir in $PATH
11219 do
11220 IFS=$as_save_IFS
11221 test -z "$as_dir" && as_dir=.
11222 for ac_exec_ext in '' $ac_executable_extensions; do
11223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11224 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11226 break 2
11227 fi
11228 done
11229 done
11230 IFS=$as_save_IFS
11231
11232 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11233 ;;
11234 esac
11235 fi
11236 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11237 if test -n "$PKG_CONFIG"; then
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11239 $as_echo "$PKG_CONFIG" >&6; }
11240 else
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11242 $as_echo "no" >&6; }
11243 fi
11244
11245
11246
11247 if test "$PKG_CONFIG" = "no" ; then
11248 HAVE_LIBXML2=no
11249 else
11250 PKG_CONFIG_MIN_VERSION=0.9.0
11251 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
11253 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
11254
11255 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11257 $as_echo "yes" >&6; }
11258 succeeded=yes
11259
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
11261 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
11262 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
11264 $as_echo "$LIBXML2_CFLAGS" >&6; }
11265
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
11267 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
11268 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
11270 $as_echo "$LIBXML2_LIBS" >&6; }
11271 else
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273 $as_echo "no" >&6; }
11274 LIBXML2_CFLAGS=""
11275 LIBXML2_LIBS=""
11276 ## If we have a custom action on failure, don't print errors, but
11277 ## do set a variable so people can do so.
11278 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
11279
11280 fi
11281
11282
11283
11284 else
11285 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11286 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11287 fi
11288 fi
11289
11290 if test $succeeded = yes; then
11291 HAVE_LIBXML2=yes
11292 else
11293 HAVE_LIBXML2=no
11294 fi
11295
11296 if test "${HAVE_LIBXML2}" = "yes"; then
11297 LIBS="$LIBXML2_LIBS $LIBS"
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
11299 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
11300 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
11301 $as_echo_n "(cached) " >&6
11302 else
11303 ac_check_lib_save_LIBS=$LIBS
11304 LIBS="-lxml2 $LIBS"
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h. */
11307
11308 /* Override any GCC internal prototype to avoid an error.
11309 Use char because int might match the return type of a GCC
11310 builtin and then its argument prototype would still apply. */
11311 #ifdef __cplusplus
11312 extern "C"
11313 #endif
11314 char htmlReadMemory ();
11315 int
11316 main ()
11317 {
11318 return htmlReadMemory ();
11319 ;
11320 return 0;
11321 }
11322 _ACEOF
11323 if ac_fn_c_try_link "$LINENO"; then :
11324 ac_cv_lib_xml2_htmlReadMemory=yes
11325 else
11326 ac_cv_lib_xml2_htmlReadMemory=no
11327 fi
11328 rm -f core conftest.err conftest.$ac_objext \
11329 conftest$ac_exeext conftest.$ac_ext
11330 LIBS=$ac_check_lib_save_LIBS
11331 fi
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
11333 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
11334 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
11335 HAVE_LIBXML2=yes
11336 else
11337 HAVE_LIBXML2=no
11338 fi
11339
11340 if test "${HAVE_LIBXML2}" = "yes"; then
11341
11342 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11343
11344 else
11345 LIBXML2_LIBS=""
11346 LIBXML2_CFLAGS=""
11347 fi
11348 fi
11349 fi
11350
11351
11352
11353 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
11355 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
11356 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
11357 $as_echo_n "(cached) " >&6
11358 else
11359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11361 #include <netdb.h>
11362 int
11363 main ()
11364 {
11365 return h_errno;
11366 ;
11367 return 0;
11368 }
11369 _ACEOF
11370 if ac_fn_c_try_link "$LINENO"; then :
11371 emacs_cv_netdb_declares_h_errno=yes
11372 else
11373 emacs_cv_netdb_declares_h_errno=no
11374 fi
11375 rm -f core conftest.err conftest.$ac_objext \
11376 conftest$ac_exeext conftest.$ac_ext
11377 fi
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
11379 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
11380 if test $emacs_cv_netdb_declares_h_errno = yes; then
11381
11382 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
11383
11384 fi
11385
11386 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11387 # for constant arguments. Useless!
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11389 $as_echo_n "checking for working alloca.h... " >&6; }
11390 if test "${ac_cv_working_alloca_h+set}" = set; then :
11391 $as_echo_n "(cached) " >&6
11392 else
11393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394 /* end confdefs.h. */
11395 #include <alloca.h>
11396 int
11397 main ()
11398 {
11399 char *p = (char *) alloca (2 * sizeof (int));
11400 if (p) return 0;
11401 ;
11402 return 0;
11403 }
11404 _ACEOF
11405 if ac_fn_c_try_link "$LINENO"; then :
11406 ac_cv_working_alloca_h=yes
11407 else
11408 ac_cv_working_alloca_h=no
11409 fi
11410 rm -f core conftest.err conftest.$ac_objext \
11411 conftest$ac_exeext conftest.$ac_ext
11412 fi
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11414 $as_echo "$ac_cv_working_alloca_h" >&6; }
11415 if test $ac_cv_working_alloca_h = yes; then
11416
11417 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11418
11419 fi
11420
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11422 $as_echo_n "checking for alloca... " >&6; }
11423 if test "${ac_cv_func_alloca_works+set}" = set; then :
11424 $as_echo_n "(cached) " >&6
11425 else
11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427 /* end confdefs.h. */
11428 #ifdef __GNUC__
11429 # define alloca __builtin_alloca
11430 #else
11431 # ifdef _MSC_VER
11432 # include <malloc.h>
11433 # define alloca _alloca
11434 # else
11435 # ifdef HAVE_ALLOCA_H
11436 # include <alloca.h>
11437 # else
11438 # ifdef _AIX
11439 #pragma alloca
11440 # else
11441 # ifndef alloca /* predefined by HP cc +Olibcalls */
11442 char *alloca ();
11443 # endif
11444 # endif
11445 # endif
11446 # endif
11447 #endif
11448
11449 int
11450 main ()
11451 {
11452 char *p = (char *) alloca (1);
11453 if (p) return 0;
11454 ;
11455 return 0;
11456 }
11457 _ACEOF
11458 if ac_fn_c_try_link "$LINENO"; then :
11459 ac_cv_func_alloca_works=yes
11460 else
11461 ac_cv_func_alloca_works=no
11462 fi
11463 rm -f core conftest.err conftest.$ac_objext \
11464 conftest$ac_exeext conftest.$ac_ext
11465 fi
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11467 $as_echo "$ac_cv_func_alloca_works" >&6; }
11468
11469 if test $ac_cv_func_alloca_works = yes; then
11470
11471 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11472
11473 else
11474 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11475 # that cause trouble. Some versions do not even contain alloca or
11476 # contain a buggy version. If you still want to use their alloca,
11477 # use ar to extract alloca.o from them instead of compiling alloca.c.
11478
11479 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11480
11481 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11482
11483
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11485 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11486 if test "${ac_cv_os_cray+set}" = set; then :
11487 $as_echo_n "(cached) " >&6
11488 else
11489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11490 /* end confdefs.h. */
11491 #if defined CRAY && ! defined CRAY2
11492 webecray
11493 #else
11494 wenotbecray
11495 #endif
11496
11497 _ACEOF
11498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11499 $EGREP "webecray" >/dev/null 2>&1; then :
11500 ac_cv_os_cray=yes
11501 else
11502 ac_cv_os_cray=no
11503 fi
11504 rm -f conftest*
11505
11506 fi
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11508 $as_echo "$ac_cv_os_cray" >&6; }
11509 if test $ac_cv_os_cray = yes; then
11510 for ac_func in _getb67 GETB67 getb67; do
11511 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11512 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11513 eval as_val=\$$as_ac_var
11514 if test "x$as_val" = x""yes; then :
11515
11516 cat >>confdefs.h <<_ACEOF
11517 #define CRAY_STACKSEG_END $ac_func
11518 _ACEOF
11519
11520 break
11521 fi
11522
11523 done
11524 fi
11525
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11527 $as_echo_n "checking stack direction for C alloca... " >&6; }
11528 if test "${ac_cv_c_stack_direction+set}" = set; then :
11529 $as_echo_n "(cached) " >&6
11530 else
11531 if test "$cross_compiling" = yes; then :
11532 ac_cv_c_stack_direction=0
11533 else
11534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535 /* end confdefs.h. */
11536 $ac_includes_default
11537 int
11538 find_stack_direction ()
11539 {
11540 static char *addr = 0;
11541 auto char dummy;
11542 if (addr == 0)
11543 {
11544 addr = &dummy;
11545 return find_stack_direction ();
11546 }
11547 else
11548 return (&dummy > addr) ? 1 : -1;
11549 }
11550
11551 int
11552 main ()
11553 {
11554 return find_stack_direction () < 0;
11555 }
11556 _ACEOF
11557 if ac_fn_c_try_run "$LINENO"; then :
11558 ac_cv_c_stack_direction=1
11559 else
11560 ac_cv_c_stack_direction=-1
11561 fi
11562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11563 conftest.$ac_objext conftest.beam conftest.$ac_ext
11564 fi
11565
11566 fi
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11568 $as_echo "$ac_cv_c_stack_direction" >&6; }
11569 cat >>confdefs.h <<_ACEOF
11570 #define STACK_DIRECTION $ac_cv_c_stack_direction
11571 _ACEOF
11572
11573
11574 fi
11575
11576
11577 if test x"$ac_cv_func_alloca_works" != xyes; then
11578 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
11579 fi
11580
11581 # fmod, logb, and frexp are found in -lm on most systems.
11582 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
11584 $as_echo_n "checking for sqrt in -lm... " >&6; }
11585 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
11586 $as_echo_n "(cached) " >&6
11587 else
11588 ac_check_lib_save_LIBS=$LIBS
11589 LIBS="-lm $LIBS"
11590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11591 /* end confdefs.h. */
11592
11593 /* Override any GCC internal prototype to avoid an error.
11594 Use char because int might match the return type of a GCC
11595 builtin and then its argument prototype would still apply. */
11596 #ifdef __cplusplus
11597 extern "C"
11598 #endif
11599 char sqrt ();
11600 int
11601 main ()
11602 {
11603 return sqrt ();
11604 ;
11605 return 0;
11606 }
11607 _ACEOF
11608 if ac_fn_c_try_link "$LINENO"; then :
11609 ac_cv_lib_m_sqrt=yes
11610 else
11611 ac_cv_lib_m_sqrt=no
11612 fi
11613 rm -f core conftest.err conftest.$ac_objext \
11614 conftest$ac_exeext conftest.$ac_ext
11615 LIBS=$ac_check_lib_save_LIBS
11616 fi
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
11618 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
11619 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
11620 cat >>confdefs.h <<_ACEOF
11621 #define HAVE_LIBM 1
11622 _ACEOF
11623
11624 LIBS="-lm $LIBS"
11625
11626 fi
11627
11628
11629 # Check for mail-locking functions in a "mail" library. Probably this should
11630 # have the same check as for liblockfile below.
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11632 $as_echo_n "checking for maillock in -lmail... " >&6; }
11633 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
11634 $as_echo_n "(cached) " >&6
11635 else
11636 ac_check_lib_save_LIBS=$LIBS
11637 LIBS="-lmail $LIBS"
11638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639 /* end confdefs.h. */
11640
11641 /* Override any GCC internal prototype to avoid an error.
11642 Use char because int might match the return type of a GCC
11643 builtin and then its argument prototype would still apply. */
11644 #ifdef __cplusplus
11645 extern "C"
11646 #endif
11647 char maillock ();
11648 int
11649 main ()
11650 {
11651 return maillock ();
11652 ;
11653 return 0;
11654 }
11655 _ACEOF
11656 if ac_fn_c_try_link "$LINENO"; then :
11657 ac_cv_lib_mail_maillock=yes
11658 else
11659 ac_cv_lib_mail_maillock=no
11660 fi
11661 rm -f core conftest.err conftest.$ac_objext \
11662 conftest$ac_exeext conftest.$ac_ext
11663 LIBS=$ac_check_lib_save_LIBS
11664 fi
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11666 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11667 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
11668 have_mail=yes
11669 else
11670 have_mail=no
11671 fi
11672
11673 if test $have_mail = yes; then
11674 LIBS_MAIL=-lmail
11675 LIBS="$LIBS_MAIL $LIBS"
11676
11677 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11678
11679 else
11680 LIBS_MAIL=
11681 fi
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11683 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11684 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
11685 $as_echo_n "(cached) " >&6
11686 else
11687 ac_check_lib_save_LIBS=$LIBS
11688 LIBS="-llockfile $LIBS"
11689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h. */
11691
11692 /* Override any GCC internal prototype to avoid an error.
11693 Use char because int might match the return type of a GCC
11694 builtin and then its argument prototype would still apply. */
11695 #ifdef __cplusplus
11696 extern "C"
11697 #endif
11698 char maillock ();
11699 int
11700 main ()
11701 {
11702 return maillock ();
11703 ;
11704 return 0;
11705 }
11706 _ACEOF
11707 if ac_fn_c_try_link "$LINENO"; then :
11708 ac_cv_lib_lockfile_maillock=yes
11709 else
11710 ac_cv_lib_lockfile_maillock=no
11711 fi
11712 rm -f core conftest.err conftest.$ac_objext \
11713 conftest$ac_exeext conftest.$ac_ext
11714 LIBS=$ac_check_lib_save_LIBS
11715 fi
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11717 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11718 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
11719 have_lockfile=yes
11720 else
11721 have_lockfile=no
11722 fi
11723
11724 if test $have_lockfile = yes; then
11725 LIBS_MAIL=-llockfile
11726 LIBS="$LIBS_MAIL $LIBS"
11727
11728 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11729
11730 else
11731 # If we have the shared liblockfile, assume we must use it for mail
11732 # locking (e.g. Debian). If we couldn't link against liblockfile
11733 # (no liblockfile.a installed), ensure that we don't need to.
11734 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11735 set dummy liblockfile.so; ac_word=$2
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11737 $as_echo_n "checking for $ac_word... " >&6; }
11738 if test "${ac_cv_prog_liblockfile+set}" = set; then :
11739 $as_echo_n "(cached) " >&6
11740 else
11741 if test -n "$liblockfile"; then
11742 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11743 else
11744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11746 for as_dir in $as_dummy
11747 do
11748 IFS=$as_save_IFS
11749 test -z "$as_dir" && as_dir=.
11750 for ac_exec_ext in '' $ac_executable_extensions; do
11751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11752 ac_cv_prog_liblockfile="yes"
11753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11754 break 2
11755 fi
11756 done
11757 done
11758 IFS=$as_save_IFS
11759
11760 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11761 fi
11762 fi
11763 liblockfile=$ac_cv_prog_liblockfile
11764 if test -n "$liblockfile"; then
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11766 $as_echo "$liblockfile" >&6; }
11767 else
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 $as_echo "no" >&6; }
11770 fi
11771
11772
11773 if test $ac_cv_prog_liblockfile = yes; then
11774 as_fn_error "Shared liblockfile found but can't link against it.
11775 This probably means that movemail could lose mail.
11776 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11777 fi
11778 fi
11779 for ac_func in touchlock
11780 do :
11781 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
11782 if test "x$ac_cv_func_touchlock" = x""yes; then :
11783 cat >>confdefs.h <<_ACEOF
11784 #define HAVE_TOUCHLOCK 1
11785 _ACEOF
11786
11787 fi
11788 done
11789
11790 for ac_header in maillock.h
11791 do :
11792 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11793 if test "x$ac_cv_header_maillock_h" = x""yes; then :
11794 cat >>confdefs.h <<_ACEOF
11795 #define HAVE_MAILLOCK_H 1
11796 _ACEOF
11797
11798 fi
11799
11800 done
11801
11802
11803
11804 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11805 ## interlock access to the mail spool. The alternative is a lock file named
11806 ## /usr/spool/mail/$USER.lock.
11807 mail_lock=no
11808 case "$opsys" in
11809 aix4-2) mail_lock="lockf" ;;
11810
11811 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
11812
11813 ## On GNU/Linux systems, both methods are used by various mail programs.
11814 ## I assume most people are using newer mailers that have heard of flock.
11815 ## Change this if you need to.
11816 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11817 ## configure gets the right answers, and that means *NOT* using flock.
11818 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11819 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11820 ## Debian maintainer hasn't provided a clean fix for Emacs.
11821 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11822 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11823 ## correct logic. -- fx
11824 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11825 ## liblockfile is a Free Software replacement for libmail, used on
11826 ## Debian systems and elsewhere. -rfr.
11827 gnu-*)
11828 mail_lock="flock"
11829 if test $have_mail = yes || test $have_lockfile = yes; then
11830 test $ac_cv_header_maillock_h = yes && mail_lock=no
11831 fi
11832 ;;
11833 esac
11834
11835 BLESSMAIL_TARGET=
11836 case "$mail_lock" in
11837 flock)
11838 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11839 ;;
11840
11841 lockf)
11842 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11843 ;;
11844
11845 *) BLESSMAIL_TARGET="need-blessmail" ;;
11846 esac
11847
11848
11849
11850 for ac_func in gethostname getdomainname dup2 \
11851 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11852 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11853 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11854 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11855 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11856 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11857 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11858 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11859 cfmakeraw cfsetspeed isnan copysign __executable_start
11860 do :
11861 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11862 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11863 eval as_val=\$$as_ac_var
11864 if test "x$as_val" = x""yes; then :
11865 cat >>confdefs.h <<_ACEOF
11866 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11867 _ACEOF
11868
11869 fi
11870 done
11871
11872
11873 for ac_header in sys/un.h
11874 do :
11875 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11876 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
11877 cat >>confdefs.h <<_ACEOF
11878 #define HAVE_SYS_UN_H 1
11879 _ACEOF
11880
11881 fi
11882
11883 done
11884
11885
11886
11887
11888
11889
11890
11891 for ac_func in $ac_func_list
11892 do :
11893 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11894 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11895 eval as_val=\$$as_ac_var
11896 if test "x$as_val" = x""yes; then :
11897 cat >>confdefs.h <<_ACEOF
11898 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11899 _ACEOF
11900
11901 fi
11902 done
11903
11904
11905
11906
11907
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11909 $as_echo_n "checking for working mktime... " >&6; }
11910 if test "${ac_cv_func_working_mktime+set}" = set; then :
11911 $as_echo_n "(cached) " >&6
11912 else
11913 if test "$cross_compiling" = yes; then :
11914 ac_cv_func_working_mktime=no
11915 else
11916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11917 /* end confdefs.h. */
11918 /* Test program from Paul Eggert and Tony Leneis. */
11919 #ifdef TIME_WITH_SYS_TIME
11920 # include <sys/time.h>
11921 # include <time.h>
11922 #else
11923 # ifdef HAVE_SYS_TIME_H
11924 # include <sys/time.h>
11925 # else
11926 # include <time.h>
11927 # endif
11928 #endif
11929
11930 #include <limits.h>
11931 #include <stdlib.h>
11932
11933 #ifdef HAVE_UNISTD_H
11934 # include <unistd.h>
11935 #endif
11936
11937 #ifndef HAVE_ALARM
11938 # define alarm(X) /* empty */
11939 #endif
11940
11941 /* Work around redefinition to rpl_putenv by other config tests. */
11942 #undef putenv
11943
11944 static time_t time_t_max;
11945 static time_t time_t_min;
11946
11947 /* Values we'll use to set the TZ environment variable. */
11948 static char *tz_strings[] = {
11949 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11950 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11951 };
11952 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11953
11954 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11955 Based on a problem report from Andreas Jaeger. */
11956 static int
11957 spring_forward_gap ()
11958 {
11959 /* glibc (up to about 1998-10-07) failed this test. */
11960 struct tm tm;
11961
11962 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11963 instead of "TZ=America/Vancouver" in order to detect the bug even
11964 on systems that don't support the Olson extension, or don't have the
11965 full zoneinfo tables installed. */
11966 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11967
11968 tm.tm_year = 98;
11969 tm.tm_mon = 3;
11970 tm.tm_mday = 5;
11971 tm.tm_hour = 2;
11972 tm.tm_min = 0;
11973 tm.tm_sec = 0;
11974 tm.tm_isdst = -1;
11975 return mktime (&tm) != (time_t) -1;
11976 }
11977
11978 static int
11979 mktime_test1 (now)
11980 time_t now;
11981 {
11982 struct tm *lt;
11983 return ! (lt = localtime (&now)) || mktime (lt) == now;
11984 }
11985
11986 static int
11987 mktime_test (now)
11988 time_t now;
11989 {
11990 return (mktime_test1 (now)
11991 && mktime_test1 ((time_t) (time_t_max - now))
11992 && mktime_test1 ((time_t) (time_t_min + now)));
11993 }
11994
11995 static int
11996 irix_6_4_bug ()
11997 {
11998 /* Based on code from Ariel Faigon. */
11999 struct tm tm;
12000 tm.tm_year = 96;
12001 tm.tm_mon = 3;
12002 tm.tm_mday = 0;
12003 tm.tm_hour = 0;
12004 tm.tm_min = 0;
12005 tm.tm_sec = 0;
12006 tm.tm_isdst = -1;
12007 mktime (&tm);
12008 return tm.tm_mon == 2 && tm.tm_mday == 31;
12009 }
12010
12011 static int
12012 bigtime_test (j)
12013 int j;
12014 {
12015 struct tm tm;
12016 time_t now;
12017 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12018 now = mktime (&tm);
12019 if (now != (time_t) -1)
12020 {
12021 struct tm *lt = localtime (&now);
12022 if (! (lt
12023 && lt->tm_year == tm.tm_year
12024 && lt->tm_mon == tm.tm_mon
12025 && lt->tm_mday == tm.tm_mday
12026 && lt->tm_hour == tm.tm_hour
12027 && lt->tm_min == tm.tm_min
12028 && lt->tm_sec == tm.tm_sec
12029 && lt->tm_yday == tm.tm_yday
12030 && lt->tm_wday == tm.tm_wday
12031 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12032 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12033 return 0;
12034 }
12035 return 1;
12036 }
12037
12038 static int
12039 year_2050_test ()
12040 {
12041 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12042 ignoring leap seconds. */
12043 unsigned long int answer = 2527315200UL;
12044
12045 struct tm tm;
12046 time_t t;
12047 tm.tm_year = 2050 - 1900;
12048 tm.tm_mon = 2 - 1;
12049 tm.tm_mday = 1;
12050 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12051 tm.tm_isdst = -1;
12052
12053 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12054 instead of "TZ=America/Vancouver" in order to detect the bug even
12055 on systems that don't support the Olson extension, or don't have the
12056 full zoneinfo tables installed. */
12057 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12058
12059 t = mktime (&tm);
12060
12061 /* Check that the result is either a failure, or close enough
12062 to the correct answer that we can assume the discrepancy is
12063 due to leap seconds. */
12064 return (t == (time_t) -1
12065 || (0 < t && answer - 120 <= t && t <= answer + 120));
12066 }
12067
12068 int
12069 main ()
12070 {
12071 time_t t, delta;
12072 int i, j;
12073
12074 /* This test makes some buggy mktime implementations loop.
12075 Give up after 60 seconds; a mktime slower than that
12076 isn't worth using anyway. */
12077 alarm (60);
12078
12079 for (;;)
12080 {
12081 t = (time_t_max << 1) + 1;
12082 if (t <= time_t_max)
12083 break;
12084 time_t_max = t;
12085 }
12086 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
12087
12088 delta = time_t_max / 997; /* a suitable prime number */
12089 for (i = 0; i < N_STRINGS; i++)
12090 {
12091 if (tz_strings[i])
12092 putenv (tz_strings[i]);
12093
12094 for (t = 0; t <= time_t_max - delta; t += delta)
12095 if (! mktime_test (t))
12096 return 1;
12097 if (! (mktime_test ((time_t) 1)
12098 && mktime_test ((time_t) (60 * 60))
12099 && mktime_test ((time_t) (60 * 60 * 24))))
12100 return 1;
12101
12102 for (j = 1; ; j <<= 1)
12103 if (! bigtime_test (j))
12104 return 1;
12105 else if (INT_MAX / 2 < j)
12106 break;
12107 if (! bigtime_test (INT_MAX))
12108 return 1;
12109 }
12110 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12111 }
12112 _ACEOF
12113 if ac_fn_c_try_run "$LINENO"; then :
12114 ac_cv_func_working_mktime=yes
12115 else
12116 ac_cv_func_working_mktime=no
12117 fi
12118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12119 conftest.$ac_objext conftest.beam conftest.$ac_ext
12120 fi
12121
12122 fi
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
12124 $as_echo "$ac_cv_func_working_mktime" >&6; }
12125 if test $ac_cv_func_working_mktime = no; then
12126 case " $LIBOBJS " in
12127 *" mktime.$ac_objext "* ) ;;
12128 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12129 ;;
12130 esac
12131
12132 fi
12133
12134 if test "$ac_cv_func_working_mktime" = no; then
12135
12136 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
12137
12138 fi
12139
12140 ac_have_func=no # yes means we've found a way to get the load average.
12141
12142 # Make sure getloadavg.c is where it belongs, at configure-time.
12143 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12144 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12145
12146 ac_save_LIBS=$LIBS
12147
12148 # Check for getloadavg, but be sure not to touch the cache variable.
12149 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12150 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12151 exit 0
12152 else
12153 exit 1
12154 fi
12155 ) && ac_have_func=yes
12156
12157 # On HPUX9, an unprivileged user can get load averages through this function.
12158 for ac_func in pstat_getdynamic
12159 do :
12160 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12161 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
12162 cat >>confdefs.h <<_ACEOF
12163 #define HAVE_PSTAT_GETDYNAMIC 1
12164 _ACEOF
12165
12166 fi
12167 done
12168
12169
12170 # Solaris has libkstat which does not require root.
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12172 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12173 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12174 $as_echo_n "(cached) " >&6
12175 else
12176 ac_check_lib_save_LIBS=$LIBS
12177 LIBS="-lkstat $LIBS"
12178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12179 /* end confdefs.h. */
12180
12181 /* Override any GCC internal prototype to avoid an error.
12182 Use char because int might match the return type of a GCC
12183 builtin and then its argument prototype would still apply. */
12184 #ifdef __cplusplus
12185 extern "C"
12186 #endif
12187 char kstat_open ();
12188 int
12189 main ()
12190 {
12191 return kstat_open ();
12192 ;
12193 return 0;
12194 }
12195 _ACEOF
12196 if ac_fn_c_try_link "$LINENO"; then :
12197 ac_cv_lib_kstat_kstat_open=yes
12198 else
12199 ac_cv_lib_kstat_kstat_open=no
12200 fi
12201 rm -f core conftest.err conftest.$ac_objext \
12202 conftest$ac_exeext conftest.$ac_ext
12203 LIBS=$ac_check_lib_save_LIBS
12204 fi
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12206 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12207 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
12208 cat >>confdefs.h <<_ACEOF
12209 #define HAVE_LIBKSTAT 1
12210 _ACEOF
12211
12212 LIBS="-lkstat $LIBS"
12213
12214 fi
12215
12216 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12217
12218 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12219 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12220 # to get the right answer into the cache.
12221 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12222 if test $ac_have_func = no; then
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12224 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12225 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12226 $as_echo_n "(cached) " >&6
12227 else
12228 ac_check_lib_save_LIBS=$LIBS
12229 LIBS="-lelf $LIBS"
12230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h. */
12232
12233 /* Override any GCC internal prototype to avoid an error.
12234 Use char because int might match the return type of a GCC
12235 builtin and then its argument prototype would still apply. */
12236 #ifdef __cplusplus
12237 extern "C"
12238 #endif
12239 char elf_begin ();
12240 int
12241 main ()
12242 {
12243 return elf_begin ();
12244 ;
12245 return 0;
12246 }
12247 _ACEOF
12248 if ac_fn_c_try_link "$LINENO"; then :
12249 ac_cv_lib_elf_elf_begin=yes
12250 else
12251 ac_cv_lib_elf_elf_begin=no
12252 fi
12253 rm -f core conftest.err conftest.$ac_objext \
12254 conftest$ac_exeext conftest.$ac_ext
12255 LIBS=$ac_check_lib_save_LIBS
12256 fi
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12258 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12259 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
12260 LIBS="-lelf $LIBS"
12261 fi
12262
12263 fi
12264 if test $ac_have_func = no; then
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12266 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12267 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12268 $as_echo_n "(cached) " >&6
12269 else
12270 ac_check_lib_save_LIBS=$LIBS
12271 LIBS="-lkvm $LIBS"
12272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273 /* end confdefs.h. */
12274
12275 /* Override any GCC internal prototype to avoid an error.
12276 Use char because int might match the return type of a GCC
12277 builtin and then its argument prototype would still apply. */
12278 #ifdef __cplusplus
12279 extern "C"
12280 #endif
12281 char kvm_open ();
12282 int
12283 main ()
12284 {
12285 return kvm_open ();
12286 ;
12287 return 0;
12288 }
12289 _ACEOF
12290 if ac_fn_c_try_link "$LINENO"; then :
12291 ac_cv_lib_kvm_kvm_open=yes
12292 else
12293 ac_cv_lib_kvm_kvm_open=no
12294 fi
12295 rm -f core conftest.err conftest.$ac_objext \
12296 conftest$ac_exeext conftest.$ac_ext
12297 LIBS=$ac_check_lib_save_LIBS
12298 fi
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12300 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12301 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
12302 LIBS="-lkvm $LIBS"
12303 fi
12304
12305 # Check for the 4.4BSD definition of getloadavg.
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12307 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12308 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12309 $as_echo_n "(cached) " >&6
12310 else
12311 ac_check_lib_save_LIBS=$LIBS
12312 LIBS="-lutil $LIBS"
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h. */
12315
12316 /* Override any GCC internal prototype to avoid an error.
12317 Use char because int might match the return type of a GCC
12318 builtin and then its argument prototype would still apply. */
12319 #ifdef __cplusplus
12320 extern "C"
12321 #endif
12322 char getloadavg ();
12323 int
12324 main ()
12325 {
12326 return getloadavg ();
12327 ;
12328 return 0;
12329 }
12330 _ACEOF
12331 if ac_fn_c_try_link "$LINENO"; then :
12332 ac_cv_lib_util_getloadavg=yes
12333 else
12334 ac_cv_lib_util_getloadavg=no
12335 fi
12336 rm -f core conftest.err conftest.$ac_objext \
12337 conftest$ac_exeext conftest.$ac_ext
12338 LIBS=$ac_check_lib_save_LIBS
12339 fi
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12341 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12342 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
12343 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12344 fi
12345
12346 fi
12347
12348 if test $ac_have_func = no; then
12349 # There is a commonly available library for RS/6000 AIX.
12350 # Since it is not a standard part of AIX, it might be installed locally.
12351 ac_getloadavg_LIBS=$LIBS
12352 LIBS="-L/usr/local/lib $LIBS"
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12354 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12355 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12356 $as_echo_n "(cached) " >&6
12357 else
12358 ac_check_lib_save_LIBS=$LIBS
12359 LIBS="-lgetloadavg $LIBS"
12360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12361 /* end confdefs.h. */
12362
12363 /* Override any GCC internal prototype to avoid an error.
12364 Use char because int might match the return type of a GCC
12365 builtin and then its argument prototype would still apply. */
12366 #ifdef __cplusplus
12367 extern "C"
12368 #endif
12369 char getloadavg ();
12370 int
12371 main ()
12372 {
12373 return getloadavg ();
12374 ;
12375 return 0;
12376 }
12377 _ACEOF
12378 if ac_fn_c_try_link "$LINENO"; then :
12379 ac_cv_lib_getloadavg_getloadavg=yes
12380 else
12381 ac_cv_lib_getloadavg_getloadavg=no
12382 fi
12383 rm -f core conftest.err conftest.$ac_objext \
12384 conftest$ac_exeext conftest.$ac_ext
12385 LIBS=$ac_check_lib_save_LIBS
12386 fi
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12388 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12389 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
12390 LIBS="-lgetloadavg $LIBS"
12391 else
12392 LIBS=$ac_getloadavg_LIBS
12393 fi
12394
12395 fi
12396
12397 # Make sure it is really in the library, if we think we found it,
12398 # otherwise set up the replacement function.
12399 for ac_func in getloadavg
12400 do :
12401 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12402 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12403 cat >>confdefs.h <<_ACEOF
12404 #define HAVE_GETLOADAVG 1
12405 _ACEOF
12406
12407 else
12408 case " $LIBOBJS " in
12409 *" getloadavg.$ac_objext "* ) ;;
12410 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12411 ;;
12412 esac
12413
12414
12415 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
12416
12417 # Figure out what our getloadavg.c needs.
12418 ac_have_func=no
12419 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12420 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
12421 ac_have_func=yes
12422
12423 $as_echo "#define DGUX 1" >>confdefs.h
12424
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12426 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12427 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12428 $as_echo_n "(cached) " >&6
12429 else
12430 ac_check_lib_save_LIBS=$LIBS
12431 LIBS="-ldgc $LIBS"
12432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h. */
12434
12435 /* Override any GCC internal prototype to avoid an error.
12436 Use char because int might match the return type of a GCC
12437 builtin and then its argument prototype would still apply. */
12438 #ifdef __cplusplus
12439 extern "C"
12440 #endif
12441 char dg_sys_info ();
12442 int
12443 main ()
12444 {
12445 return dg_sys_info ();
12446 ;
12447 return 0;
12448 }
12449 _ACEOF
12450 if ac_fn_c_try_link "$LINENO"; then :
12451 ac_cv_lib_dgc_dg_sys_info=yes
12452 else
12453 ac_cv_lib_dgc_dg_sys_info=no
12454 fi
12455 rm -f core conftest.err conftest.$ac_objext \
12456 conftest$ac_exeext conftest.$ac_ext
12457 LIBS=$ac_check_lib_save_LIBS
12458 fi
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12460 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12461 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
12462 cat >>confdefs.h <<_ACEOF
12463 #define HAVE_LIBDGC 1
12464 _ACEOF
12465
12466 LIBS="-ldgc $LIBS"
12467
12468 fi
12469
12470 fi
12471
12472
12473
12474 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12475 if test "x$ac_cv_header_locale_h" = x""yes; then :
12476
12477 fi
12478
12479
12480 for ac_func in setlocale
12481 do :
12482 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
12483 if test "x$ac_cv_func_setlocale" = x""yes; then :
12484 cat >>confdefs.h <<_ACEOF
12485 #define HAVE_SETLOCALE 1
12486 _ACEOF
12487
12488 fi
12489 done
12490
12491
12492 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12493 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12494 # Irix 4.0.5F has the header but not the library.
12495 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
12496 ac_have_func=yes
12497
12498 $as_echo "#define SVR4 1" >>confdefs.h
12499
12500 fi
12501
12502 if test $ac_have_func = no; then
12503 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
12504 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
12505 ac_have_func=yes
12506
12507 $as_echo "#define UMAX 1" >>confdefs.h
12508
12509
12510 $as_echo "#define UMAX4_3 1" >>confdefs.h
12511
12512 fi
12513
12514
12515 fi
12516
12517 if test $ac_have_func = no; then
12518 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
12519 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
12520 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
12521
12522 fi
12523
12524
12525 fi
12526
12527 if test $ac_have_func = no; then
12528 for ac_header in mach/mach.h
12529 do :
12530 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
12531 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
12532 cat >>confdefs.h <<_ACEOF
12533 #define HAVE_MACH_MACH_H 1
12534 _ACEOF
12535
12536 fi
12537
12538 done
12539
12540 fi
12541
12542 for ac_header in nlist.h
12543 do :
12544 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
12545 if test "x$ac_cv_header_nlist_h" = x""yes; then :
12546 cat >>confdefs.h <<_ACEOF
12547 #define HAVE_NLIST_H 1
12548 _ACEOF
12549 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
12550 "
12551 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
12552
12553 cat >>confdefs.h <<_ACEOF
12554 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12555 _ACEOF
12556
12557
12558 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
12559
12560 fi
12561
12562
12563 fi
12564
12565 done
12566
12567 fi
12568 done
12569
12570
12571 # Some definitions of getloadavg require that the program be installed setgid.
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
12573 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
12574 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
12575 $as_echo_n "(cached) " >&6
12576 else
12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h. */
12579 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12580 #ifdef LDAV_PRIVILEGED
12581 Yowza Am I SETGID yet
12582 #endif
12583 _ACEOF
12584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12585 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
12586 ac_cv_func_getloadavg_setgid=yes
12587 else
12588 ac_cv_func_getloadavg_setgid=no
12589 fi
12590 rm -f conftest*
12591
12592 fi
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
12594 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
12595 if test $ac_cv_func_getloadavg_setgid = yes; then
12596 NEED_SETGID=true
12597
12598 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
12599
12600 else
12601 NEED_SETGID=false
12602 fi
12603
12604 if test $ac_cv_func_getloadavg_setgid = yes; then
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
12606 $as_echo_n "checking group of /dev/kmem... " >&6; }
12607 if test "${ac_cv_group_kmem+set}" = set; then :
12608 $as_echo_n "(cached) " >&6
12609 else
12610 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12611 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
12612 # If we got an error (system does not support symlinks), try without -L.
12613 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
12614 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
12615 | sed -ne 's/[ ][ ]*/ /g;
12616 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12617 / /s/.* //;p;'`
12618
12619 fi
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12621 $as_echo "$ac_cv_group_kmem" >&6; }
12622 KMEM_GROUP=$ac_cv_group_kmem
12623 fi
12624 if test "x$ac_save_LIBS" = x; then
12625 GETLOADAVG_LIBS=$LIBS
12626 else
12627 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12628 fi
12629 LIBS=$ac_save_LIBS
12630
12631
12632
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12634 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12635 if test "${ac_cv_sys_largefile_source+set}" = set; then :
12636 $as_echo_n "(cached) " >&6
12637 else
12638 while :; do
12639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640 /* end confdefs.h. */
12641 #include <sys/types.h> /* for off_t */
12642 #include <stdio.h>
12643 int
12644 main ()
12645 {
12646 int (*fp) (FILE *, off_t, int) = fseeko;
12647 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12648 ;
12649 return 0;
12650 }
12651 _ACEOF
12652 if ac_fn_c_try_link "$LINENO"; then :
12653 ac_cv_sys_largefile_source=no; break
12654 fi
12655 rm -f core conftest.err conftest.$ac_objext \
12656 conftest$ac_exeext conftest.$ac_ext
12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
12659 #define _LARGEFILE_SOURCE 1
12660 #include <sys/types.h> /* for off_t */
12661 #include <stdio.h>
12662 int
12663 main ()
12664 {
12665 int (*fp) (FILE *, off_t, int) = fseeko;
12666 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12667 ;
12668 return 0;
12669 }
12670 _ACEOF
12671 if ac_fn_c_try_link "$LINENO"; then :
12672 ac_cv_sys_largefile_source=1; break
12673 fi
12674 rm -f core conftest.err conftest.$ac_objext \
12675 conftest$ac_exeext conftest.$ac_ext
12676 ac_cv_sys_largefile_source=unknown
12677 break
12678 done
12679 fi
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12681 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12682 case $ac_cv_sys_largefile_source in #(
12683 no | unknown) ;;
12684 *)
12685 cat >>confdefs.h <<_ACEOF
12686 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12687 _ACEOF
12688 ;;
12689 esac
12690 rm -rf conftest*
12691
12692 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12693 # in glibc 2.1.3, but that breaks too many other things.
12694 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12695 if test $ac_cv_sys_largefile_source != unknown; then
12696
12697 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12698
12699 fi
12700
12701
12702 # Configure getopt.
12703 # getopt.m4 serial 10
12704
12705 # The getopt module assume you want GNU getopt, with getopt_long etc,
12706 # rather than vanilla POSIX getopt. This means your your code should
12707 # always include <getopt.h> for the getopt prototypes.
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719 # Prerequisites of lib/getopt*.
12720
12721
12722
12723
12724 GETOPT_H=
12725 for ac_header in getopt.h
12726 do :
12727 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12728 if test "x$ac_cv_header_getopt_h" = x""yes; then :
12729 cat >>confdefs.h <<_ACEOF
12730 #define HAVE_GETOPT_H 1
12731 _ACEOF
12732
12733 else
12734 GETOPT_H=getopt.h
12735 fi
12736
12737 done
12738
12739 if test -z "$GETOPT_H"; then
12740 for ac_func in getopt_long_only
12741 do :
12742 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12743 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
12744 cat >>confdefs.h <<_ACEOF
12745 #define HAVE_GETOPT_LONG_ONLY 1
12746 _ACEOF
12747
12748 else
12749 GETOPT_H=getopt.h
12750 fi
12751 done
12752
12753 fi
12754
12755 if test -z "$GETOPT_H"; then
12756 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12757 "
12758 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
12759 GETOPT_H=getopt.h
12760 fi
12761
12762 fi
12763
12764 if test -z "$GETOPT_H"; then
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12766 $as_echo_n "checking for working GNU getopt function... " >&6; }
12767 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12768 $as_echo_n "(cached) " >&6
12769 else
12770 if test "$cross_compiling" = yes; then :
12771 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12772 "
12773 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
12774 gl_cv_func_gnu_getopt=no
12775 else
12776 gl_cv_func_gnu_getopt=yes
12777 fi
12778
12779 else
12780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12781 /* end confdefs.h. */
12782 #include <getopt.h>
12783 int
12784 main ()
12785 {
12786
12787 char *myargv[3];
12788 myargv[0] = "conftest";
12789 myargv[1] = "-+";
12790 myargv[2] = 0;
12791 return getopt (2, myargv, "+a") != '?';
12792
12793 ;
12794 return 0;
12795 }
12796 _ACEOF
12797 if ac_fn_c_try_run "$LINENO"; then :
12798 gl_cv_func_gnu_getopt=yes
12799 else
12800 gl_cv_func_gnu_getopt=no
12801 fi
12802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12803 conftest.$ac_objext conftest.beam conftest.$ac_ext
12804 fi
12805
12806 fi
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12808 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12809 if test "$gl_cv_func_gnu_getopt" = "no"; then
12810 GETOPT_H=getopt.h
12811 fi
12812 fi
12813
12814
12815
12816 if test -n "$GETOPT_H"; then :
12817
12818
12819 GETOPT_H=getopt.h
12820
12821 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12822
12823
12824
12825 :
12826 GETOPTOBJS='getopt.o getopt1.o'
12827
12828 fi
12829
12830
12831
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12833 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12834 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12835 $as_echo_n "(cached) " >&6
12836 else
12837 # Use it with a single arg.
12838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12839 /* end confdefs.h. */
12840 $ac_includes_default
12841 int
12842 main ()
12843 {
12844 getpgrp (0);
12845 ;
12846 return 0;
12847 }
12848 _ACEOF
12849 if ac_fn_c_try_compile "$LINENO"; then :
12850 ac_cv_func_getpgrp_void=no
12851 else
12852 ac_cv_func_getpgrp_void=yes
12853 fi
12854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12855
12856 fi
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12858 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12859 if test $ac_cv_func_getpgrp_void = yes; then
12860
12861 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12862
12863 fi
12864
12865
12866 for ac_func in strftime
12867 do :
12868 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12869 if test "x$ac_cv_func_strftime" = x""yes; then :
12870 cat >>confdefs.h <<_ACEOF
12871 #define HAVE_STRFTIME 1
12872 _ACEOF
12873
12874 else
12875 # strftime is in -lintl on SCO UNIX.
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12877 $as_echo_n "checking for strftime in -lintl... " >&6; }
12878 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12879 $as_echo_n "(cached) " >&6
12880 else
12881 ac_check_lib_save_LIBS=$LIBS
12882 LIBS="-lintl $LIBS"
12883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12884 /* end confdefs.h. */
12885
12886 /* Override any GCC internal prototype to avoid an error.
12887 Use char because int might match the return type of a GCC
12888 builtin and then its argument prototype would still apply. */
12889 #ifdef __cplusplus
12890 extern "C"
12891 #endif
12892 char strftime ();
12893 int
12894 main ()
12895 {
12896 return strftime ();
12897 ;
12898 return 0;
12899 }
12900 _ACEOF
12901 if ac_fn_c_try_link "$LINENO"; then :
12902 ac_cv_lib_intl_strftime=yes
12903 else
12904 ac_cv_lib_intl_strftime=no
12905 fi
12906 rm -f core conftest.err conftest.$ac_objext \
12907 conftest$ac_exeext conftest.$ac_ext
12908 LIBS=$ac_check_lib_save_LIBS
12909 fi
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12911 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12912 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12913 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12914
12915 LIBS="-lintl $LIBS"
12916 fi
12917
12918 fi
12919 done
12920
12921
12922 # UNIX98 PTYs.
12923 for ac_func in grantpt
12924 do :
12925 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
12926 if test "x$ac_cv_func_grantpt" = x""yes; then :
12927 cat >>confdefs.h <<_ACEOF
12928 #define HAVE_GRANTPT 1
12929 _ACEOF
12930
12931 fi
12932 done
12933
12934
12935 # PTY-related GNU extensions.
12936 for ac_func in getpt
12937 do :
12938 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
12939 if test "x$ac_cv_func_getpt" = x""yes; then :
12940 cat >>confdefs.h <<_ACEOF
12941 #define HAVE_GETPT 1
12942 _ACEOF
12943
12944 fi
12945 done
12946
12947
12948 # Check this now, so that we will NOT find the above functions in ncurses.
12949 # That is because we have not set up to link ncurses in lib-src.
12950 # It's better to believe a function is not available
12951 # than to expect to find it in ncurses.
12952 # Also we need tputs and friends to be able to build at all.
12953 have_tputs_et_al=true
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12955 $as_echo_n "checking for library containing tputs... " >&6; }
12956 if test "${ac_cv_search_tputs+set}" = set; then :
12957 $as_echo_n "(cached) " >&6
12958 else
12959 ac_func_search_save_LIBS=$LIBS
12960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961 /* end confdefs.h. */
12962
12963 /* Override any GCC internal prototype to avoid an error.
12964 Use char because int might match the return type of a GCC
12965 builtin and then its argument prototype would still apply. */
12966 #ifdef __cplusplus
12967 extern "C"
12968 #endif
12969 char tputs ();
12970 int
12971 main ()
12972 {
12973 return tputs ();
12974 ;
12975 return 0;
12976 }
12977 _ACEOF
12978 for ac_lib in '' ncurses terminfo termcap; do
12979 if test -z "$ac_lib"; then
12980 ac_res="none required"
12981 else
12982 ac_res=-l$ac_lib
12983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12984 fi
12985 if ac_fn_c_try_link "$LINENO"; then :
12986 ac_cv_search_tputs=$ac_res
12987 fi
12988 rm -f core conftest.err conftest.$ac_objext \
12989 conftest$ac_exeext
12990 if test "${ac_cv_search_tputs+set}" = set; then :
12991 break
12992 fi
12993 done
12994 if test "${ac_cv_search_tputs+set}" = set; then :
12995
12996 else
12997 ac_cv_search_tputs=no
12998 fi
12999 rm conftest.$ac_ext
13000 LIBS=$ac_func_search_save_LIBS
13001 fi
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
13003 $as_echo "$ac_cv_search_tputs" >&6; }
13004 ac_res=$ac_cv_search_tputs
13005 if test "$ac_res" != no; then :
13006 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13007
13008 else
13009 have_tputs_et_al=false
13010 fi
13011
13012 if test "$have_tputs_et_al" != true; then
13013 as_fn_error "I couldn't find termcap functions (tputs and friends).
13014 Maybe some development libraries/packages are missing? Try installing
13015 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
13016 fi
13017 # Must define this when any termcap library is found.
13018
13019 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
13020
13021 ## FIXME This was the cpp logic, but I am not sure it is right.
13022 ## The above test has not necessarily found libncurses.
13023 HAVE_LIBNCURSES=yes
13024
13025 ## Use terminfo instead of termcap?
13026 ## Note only system files NOT using terminfo are:
13027 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
13028 ## darwin|gnu without ncurses.
13029 TERMINFO=no
13030 LIBS_TERMCAP=
13031 case "$opsys" in
13032 ## cygwin: Fewer environment variables to go wrong, more terminal types.
13033 ## hpux10-20: Use the system provided termcap(3) library.
13034 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
13035 ## is necessary. Otherwise Emacs dumps core when run -nw.
13036 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
13037
13038 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13039 ## The ncurses library has been moved out of the System framework in
13040 ## Mac OS X 10.2. So if configure detects it, set the command-line
13041 ## option to use it.
13042 darwin|gnu*)
13043 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
13044 if test "x$HAVE_LIBNCURSES" = "xyes"; then
13045 TERMINFO=yes
13046 LIBS_TERMCAP="-lncurses"
13047 fi
13048 ;;
13049
13050 freebsd)
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13052 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13053 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13054 $as_echo_n "(cached) " >&6
13055 else
13056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13057 /* end confdefs.h. */
13058 #include <osreldate.h>
13059 int
13060 main ()
13061 {
13062 #if __FreeBSD_version < 400000
13063 fail;
13064 #endif
13065
13066 ;
13067 return 0;
13068 }
13069 _ACEOF
13070 if ac_fn_c_try_link "$LINENO"; then :
13071 emacs_cv_freebsd_terminfo=yes
13072 else
13073 emacs_cv_freebsd_terminfo=no
13074 fi
13075 rm -f core conftest.err conftest.$ac_objext \
13076 conftest$ac_exeext conftest.$ac_ext
13077 fi
13078
13079
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13081 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13082
13083 if test $emacs_cv_freebsd_terminfo = yes; then
13084 TERMINFO=yes
13085 LIBS_TERMCAP="-lncurses"
13086 else
13087 LIBS_TERMCAP="-ltermcap"
13088 fi
13089 ;;
13090
13091 netbsd)
13092 if test $ac_cv_search_tputs = -lterminfo; then
13093 TERMINFO=yes
13094 LIBS_TERMCAP="-lterminfo"
13095 else
13096 LIBS_TERMCAP="-ltermcap"
13097 fi
13098 ;;
13099
13100 esac
13101
13102 case "$opsys" in
13103 ## hpux: Make sure we get select from libc rather than from libcurses
13104 ## because libcurses on HPUX 10.10 has a broken version of select.
13105 ## We used to use -lc -lcurses, but this may be cleaner.
13106 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13107
13108 openbsd) LIBS_TERMCAP="-lncurses" ;;
13109
13110 ## Must use system termcap, if we use any termcap. It does special things.
13111 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
13112 esac
13113
13114 TERMCAP_OBJ=tparam.o
13115 if test $TERMINFO = yes; then
13116
13117 $as_echo "#define TERMINFO 1" >>confdefs.h
13118
13119
13120 ## Default used to be -ltermcap. Add a case above if need something else.
13121 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
13122
13123 TERMCAP_OBJ=terminfo.o
13124 fi
13125
13126
13127
13128
13129 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13130 resolv=no
13131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13132 /* end confdefs.h. */
13133 #include <netinet/in.h>
13134 #include <arpa/nameser.h>
13135 #include <resolv.h>
13136 int
13137 main ()
13138 {
13139 return res_init();
13140 ;
13141 return 0;
13142 }
13143 _ACEOF
13144 if ac_fn_c_try_link "$LINENO"; then :
13145 have_res_init=yes
13146 else
13147 have_res_init=no
13148 fi
13149 rm -f core conftest.err conftest.$ac_objext \
13150 conftest$ac_exeext conftest.$ac_ext
13151 if test "$have_res_init" = no; then
13152 OLIBS="$LIBS"
13153 LIBS="$LIBS -lresolv"
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13155 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13157 /* end confdefs.h. */
13158 #include <netinet/in.h>
13159 #include <arpa/nameser.h>
13160 #include <resolv.h>
13161 int
13162 main ()
13163 {
13164 return res_init();
13165 ;
13166 return 0;
13167 }
13168 _ACEOF
13169 if ac_fn_c_try_link "$LINENO"; then :
13170 have_res_init=yes
13171 else
13172 have_res_init=no
13173 fi
13174 rm -f core conftest.err conftest.$ac_objext \
13175 conftest$ac_exeext conftest.$ac_ext
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13177 $as_echo "$have_res_init" >&6; }
13178 if test "$have_res_init" = yes ; then
13179 resolv=yes
13180 fi
13181 LIBS="$OLIBS"
13182 fi
13183
13184 if test "$have_res_init" = yes; then
13185
13186 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13187
13188 fi
13189
13190 # Do we need the Hesiod library to provide the support routines?
13191 LIBHESIOD=
13192 if test "$with_hesiod" != no ; then
13193 # Don't set $LIBS here -- see comments above. FIXME which comments?
13194 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13195 if test "x$ac_cv_func_res_send" = x""yes; then :
13196
13197 else
13198 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13199 if test "x$ac_cv_func___res_send" = x""yes; then :
13200
13201 else
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13203 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13204 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13205 $as_echo_n "(cached) " >&6
13206 else
13207 ac_check_lib_save_LIBS=$LIBS
13208 LIBS="-lresolv $LIBS"
13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210 /* end confdefs.h. */
13211
13212 /* Override any GCC internal prototype to avoid an error.
13213 Use char because int might match the return type of a GCC
13214 builtin and then its argument prototype would still apply. */
13215 #ifdef __cplusplus
13216 extern "C"
13217 #endif
13218 char res_send ();
13219 int
13220 main ()
13221 {
13222 return res_send ();
13223 ;
13224 return 0;
13225 }
13226 _ACEOF
13227 if ac_fn_c_try_link "$LINENO"; then :
13228 ac_cv_lib_resolv_res_send=yes
13229 else
13230 ac_cv_lib_resolv_res_send=no
13231 fi
13232 rm -f core conftest.err conftest.$ac_objext \
13233 conftest$ac_exeext conftest.$ac_ext
13234 LIBS=$ac_check_lib_save_LIBS
13235 fi
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13237 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13238 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13239 resolv=yes
13240 else
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13242 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13243 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13244 $as_echo_n "(cached) " >&6
13245 else
13246 ac_check_lib_save_LIBS=$LIBS
13247 LIBS="-lresolv $LIBS"
13248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249 /* end confdefs.h. */
13250
13251 /* Override any GCC internal prototype to avoid an error.
13252 Use char because int might match the return type of a GCC
13253 builtin and then its argument prototype would still apply. */
13254 #ifdef __cplusplus
13255 extern "C"
13256 #endif
13257 char __res_send ();
13258 int
13259 main ()
13260 {
13261 return __res_send ();
13262 ;
13263 return 0;
13264 }
13265 _ACEOF
13266 if ac_fn_c_try_link "$LINENO"; then :
13267 ac_cv_lib_resolv___res_send=yes
13268 else
13269 ac_cv_lib_resolv___res_send=no
13270 fi
13271 rm -f core conftest.err conftest.$ac_objext \
13272 conftest$ac_exeext conftest.$ac_ext
13273 LIBS=$ac_check_lib_save_LIBS
13274 fi
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13276 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13277 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13278 resolv=yes
13279 fi
13280
13281 fi
13282
13283 fi
13284
13285 fi
13286
13287 if test "$resolv" = yes ; then
13288 RESOLVLIB=-lresolv
13289 else
13290 RESOLVLIB=
13291 fi
13292 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13293 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13294
13295 else
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13297 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13298 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13299 $as_echo_n "(cached) " >&6
13300 else
13301 ac_check_lib_save_LIBS=$LIBS
13302 LIBS="-lhesiod $RESOLVLIB $LIBS"
13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h. */
13305
13306 /* Override any GCC internal prototype to avoid an error.
13307 Use char because int might match the return type of a GCC
13308 builtin and then its argument prototype would still apply. */
13309 #ifdef __cplusplus
13310 extern "C"
13311 #endif
13312 char hes_getmailhost ();
13313 int
13314 main ()
13315 {
13316 return hes_getmailhost ();
13317 ;
13318 return 0;
13319 }
13320 _ACEOF
13321 if ac_fn_c_try_link "$LINENO"; then :
13322 ac_cv_lib_hesiod_hes_getmailhost=yes
13323 else
13324 ac_cv_lib_hesiod_hes_getmailhost=no
13325 fi
13326 rm -f core conftest.err conftest.$ac_objext \
13327 conftest$ac_exeext conftest.$ac_ext
13328 LIBS=$ac_check_lib_save_LIBS
13329 fi
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13331 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13332 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
13333 hesiod=yes
13334 else
13335 :
13336 fi
13337
13338 fi
13339
13340
13341 if test x"$hesiod" = xyes; then
13342
13343 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13344
13345 LIBHESIOD=-lhesiod
13346 fi
13347 fi
13348
13349
13350 # Do we need libresolv (due to res_init or Hesiod)?
13351 if test "$resolv" = yes ; then
13352
13353 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13354
13355 LIBRESOLV=-lresolv
13356 else
13357 LIBRESOLV=
13358 fi
13359
13360
13361 # These tell us which Kerberos-related libraries to use.
13362 COM_ERRLIB=
13363 CRYPTOLIB=
13364 KRB5LIB=
13365 DESLIB=
13366 KRB4LIB=
13367
13368 if test "${with_kerberos}" != no; then
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13370 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13371 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13372 $as_echo_n "(cached) " >&6
13373 else
13374 ac_check_lib_save_LIBS=$LIBS
13375 LIBS="-lcom_err $LIBS"
13376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377 /* end confdefs.h. */
13378
13379 /* Override any GCC internal prototype to avoid an error.
13380 Use char because int might match the return type of a GCC
13381 builtin and then its argument prototype would still apply. */
13382 #ifdef __cplusplus
13383 extern "C"
13384 #endif
13385 char com_err ();
13386 int
13387 main ()
13388 {
13389 return com_err ();
13390 ;
13391 return 0;
13392 }
13393 _ACEOF
13394 if ac_fn_c_try_link "$LINENO"; then :
13395 ac_cv_lib_com_err_com_err=yes
13396 else
13397 ac_cv_lib_com_err_com_err=no
13398 fi
13399 rm -f core conftest.err conftest.$ac_objext \
13400 conftest$ac_exeext conftest.$ac_ext
13401 LIBS=$ac_check_lib_save_LIBS
13402 fi
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13404 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13405 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
13406 have_com_err=yes
13407 else
13408 have_com_err=no
13409 fi
13410
13411 if test $have_com_err = yes; then
13412 COM_ERRLIB=-lcom_err
13413 LIBS="$COM_ERRLIB $LIBS"
13414
13415 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13416
13417 fi
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13419 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13420 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13421 $as_echo_n "(cached) " >&6
13422 else
13423 ac_check_lib_save_LIBS=$LIBS
13424 LIBS="-lcrypto $LIBS"
13425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426 /* end confdefs.h. */
13427
13428 /* Override any GCC internal prototype to avoid an error.
13429 Use char because int might match the return type of a GCC
13430 builtin and then its argument prototype would still apply. */
13431 #ifdef __cplusplus
13432 extern "C"
13433 #endif
13434 char mit_des_cbc_encrypt ();
13435 int
13436 main ()
13437 {
13438 return mit_des_cbc_encrypt ();
13439 ;
13440 return 0;
13441 }
13442 _ACEOF
13443 if ac_fn_c_try_link "$LINENO"; then :
13444 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13445 else
13446 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13447 fi
13448 rm -f core conftest.err conftest.$ac_objext \
13449 conftest$ac_exeext conftest.$ac_ext
13450 LIBS=$ac_check_lib_save_LIBS
13451 fi
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13453 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13454 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13455 have_crypto=yes
13456 else
13457 have_crypto=no
13458 fi
13459
13460 if test $have_crypto = yes; then
13461 CRYPTOLIB=-lcrypto
13462 LIBS="$CRYPTOLIB $LIBS"
13463
13464 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13465
13466 fi
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13468 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13469 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13470 $as_echo_n "(cached) " >&6
13471 else
13472 ac_check_lib_save_LIBS=$LIBS
13473 LIBS="-lk5crypto $LIBS"
13474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13475 /* end confdefs.h. */
13476
13477 /* Override any GCC internal prototype to avoid an error.
13478 Use char because int might match the return type of a GCC
13479 builtin and then its argument prototype would still apply. */
13480 #ifdef __cplusplus
13481 extern "C"
13482 #endif
13483 char mit_des_cbc_encrypt ();
13484 int
13485 main ()
13486 {
13487 return mit_des_cbc_encrypt ();
13488 ;
13489 return 0;
13490 }
13491 _ACEOF
13492 if ac_fn_c_try_link "$LINENO"; then :
13493 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13494 else
13495 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13496 fi
13497 rm -f core conftest.err conftest.$ac_objext \
13498 conftest$ac_exeext conftest.$ac_ext
13499 LIBS=$ac_check_lib_save_LIBS
13500 fi
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13502 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13503 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
13504 have_k5crypto=yes
13505 else
13506 have_k5crypto=no
13507 fi
13508
13509 if test $have_k5crypto = yes; then
13510 CRYPTOLIB=-lk5crypto
13511 LIBS="$CRYPTOLIB $LIBS"
13512
13513 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13514
13515 fi
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13517 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13518 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13519 $as_echo_n "(cached) " >&6
13520 else
13521 ac_check_lib_save_LIBS=$LIBS
13522 LIBS="-lkrb5 $LIBS"
13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h. */
13525
13526 /* Override any GCC internal prototype to avoid an error.
13527 Use char because int might match the return type of a GCC
13528 builtin and then its argument prototype would still apply. */
13529 #ifdef __cplusplus
13530 extern "C"
13531 #endif
13532 char krb5_init_context ();
13533 int
13534 main ()
13535 {
13536 return krb5_init_context ();
13537 ;
13538 return 0;
13539 }
13540 _ACEOF
13541 if ac_fn_c_try_link "$LINENO"; then :
13542 ac_cv_lib_krb5_krb5_init_context=yes
13543 else
13544 ac_cv_lib_krb5_krb5_init_context=no
13545 fi
13546 rm -f core conftest.err conftest.$ac_objext \
13547 conftest$ac_exeext conftest.$ac_ext
13548 LIBS=$ac_check_lib_save_LIBS
13549 fi
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13551 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13552 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
13553 have_krb5=yes
13554 else
13555 have_krb5=no
13556 fi
13557
13558 if test $have_krb5=yes; then
13559 KRB5LIB=-lkrb5
13560 LIBS="$KRB5LIB $LIBS"
13561
13562 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13563
13564 fi
13565 if test "${with_kerberos5}" = no; then
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13567 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13568 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13569 $as_echo_n "(cached) " >&6
13570 else
13571 ac_check_lib_save_LIBS=$LIBS
13572 LIBS="-ldes425 $LIBS"
13573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13574 /* end confdefs.h. */
13575
13576 /* Override any GCC internal prototype to avoid an error.
13577 Use char because int might match the return type of a GCC
13578 builtin and then its argument prototype would still apply. */
13579 #ifdef __cplusplus
13580 extern "C"
13581 #endif
13582 char des_cbc_encrypt ();
13583 int
13584 main ()
13585 {
13586 return des_cbc_encrypt ();
13587 ;
13588 return 0;
13589 }
13590 _ACEOF
13591 if ac_fn_c_try_link "$LINENO"; then :
13592 ac_cv_lib_des425_des_cbc_encrypt=yes
13593 else
13594 ac_cv_lib_des425_des_cbc_encrypt=no
13595 fi
13596 rm -f core conftest.err conftest.$ac_objext \
13597 conftest$ac_exeext conftest.$ac_ext
13598 LIBS=$ac_check_lib_save_LIBS
13599 fi
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13601 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13602 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
13603 have_des425=yes
13604 else
13605 have_des425=no
13606 fi
13607
13608 if test $have_des425 = yes; then
13609 DESLIB=-ldes425
13610 LIBS="$DESLIB $LIBS"
13611
13612 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13613
13614 else
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13616 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13617 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13618 $as_echo_n "(cached) " >&6
13619 else
13620 ac_check_lib_save_LIBS=$LIBS
13621 LIBS="-ldes $LIBS"
13622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623 /* end confdefs.h. */
13624
13625 /* Override any GCC internal prototype to avoid an error.
13626 Use char because int might match the return type of a GCC
13627 builtin and then its argument prototype would still apply. */
13628 #ifdef __cplusplus
13629 extern "C"
13630 #endif
13631 char des_cbc_encrypt ();
13632 int
13633 main ()
13634 {
13635 return des_cbc_encrypt ();
13636 ;
13637 return 0;
13638 }
13639 _ACEOF
13640 if ac_fn_c_try_link "$LINENO"; then :
13641 ac_cv_lib_des_des_cbc_encrypt=yes
13642 else
13643 ac_cv_lib_des_des_cbc_encrypt=no
13644 fi
13645 rm -f core conftest.err conftest.$ac_objext \
13646 conftest$ac_exeext conftest.$ac_ext
13647 LIBS=$ac_check_lib_save_LIBS
13648 fi
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13650 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13651 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
13652 have_des=yes
13653 else
13654 have_des=no
13655 fi
13656
13657 if test $have_des = yes; then
13658 DESLIB=-ldes
13659 LIBS="$DESLIB $LIBS"
13660
13661 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13662
13663 fi
13664 fi
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13666 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13667 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13668 $as_echo_n "(cached) " >&6
13669 else
13670 ac_check_lib_save_LIBS=$LIBS
13671 LIBS="-lkrb4 $LIBS"
13672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673 /* end confdefs.h. */
13674
13675 /* Override any GCC internal prototype to avoid an error.
13676 Use char because int might match the return type of a GCC
13677 builtin and then its argument prototype would still apply. */
13678 #ifdef __cplusplus
13679 extern "C"
13680 #endif
13681 char krb_get_cred ();
13682 int
13683 main ()
13684 {
13685 return krb_get_cred ();
13686 ;
13687 return 0;
13688 }
13689 _ACEOF
13690 if ac_fn_c_try_link "$LINENO"; then :
13691 ac_cv_lib_krb4_krb_get_cred=yes
13692 else
13693 ac_cv_lib_krb4_krb_get_cred=no
13694 fi
13695 rm -f core conftest.err conftest.$ac_objext \
13696 conftest$ac_exeext conftest.$ac_ext
13697 LIBS=$ac_check_lib_save_LIBS
13698 fi
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13700 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13701 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
13702 have_krb4=yes
13703 else
13704 have_krb4=no
13705 fi
13706
13707 if test $have_krb4 = yes; then
13708 KRB4LIB=-lkrb4
13709 LIBS="$KRB4LIB $LIBS"
13710
13711 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13712
13713 else
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13715 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13716 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13717 $as_echo_n "(cached) " >&6
13718 else
13719 ac_check_lib_save_LIBS=$LIBS
13720 LIBS="-lkrb $LIBS"
13721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722 /* end confdefs.h. */
13723
13724 /* Override any GCC internal prototype to avoid an error.
13725 Use char because int might match the return type of a GCC
13726 builtin and then its argument prototype would still apply. */
13727 #ifdef __cplusplus
13728 extern "C"
13729 #endif
13730 char krb_get_cred ();
13731 int
13732 main ()
13733 {
13734 return krb_get_cred ();
13735 ;
13736 return 0;
13737 }
13738 _ACEOF
13739 if ac_fn_c_try_link "$LINENO"; then :
13740 ac_cv_lib_krb_krb_get_cred=yes
13741 else
13742 ac_cv_lib_krb_krb_get_cred=no
13743 fi
13744 rm -f core conftest.err conftest.$ac_objext \
13745 conftest$ac_exeext conftest.$ac_ext
13746 LIBS=$ac_check_lib_save_LIBS
13747 fi
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13749 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13750 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
13751 have_krb=yes
13752 else
13753 have_krb=no
13754 fi
13755
13756 if test $have_krb = yes; then
13757 KRB4LIB=-lkrb
13758 LIBS="$KRB4LIB $LIBS"
13759
13760 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13761
13762 fi
13763 fi
13764 fi
13765
13766 if test "${with_kerberos5}" != no; then
13767 for ac_header in krb5.h
13768 do :
13769 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13770 if test "x$ac_cv_header_krb5_h" = x""yes; then :
13771 cat >>confdefs.h <<_ACEOF
13772 #define HAVE_KRB5_H 1
13773 _ACEOF
13774 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13775 "
13776 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
13777
13778 cat >>confdefs.h <<_ACEOF
13779 #define HAVE_KRB5_ERROR_TEXT 1
13780 _ACEOF
13781
13782
13783 fi
13784 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13785 "
13786 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
13787
13788 cat >>confdefs.h <<_ACEOF
13789 #define HAVE_KRB5_ERROR_E_TEXT 1
13790 _ACEOF
13791
13792
13793 fi
13794
13795 fi
13796
13797 done
13798
13799 else
13800 for ac_header in des.h
13801 do :
13802 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13803 if test "x$ac_cv_header_des_h" = x""yes; then :
13804 cat >>confdefs.h <<_ACEOF
13805 #define HAVE_DES_H 1
13806 _ACEOF
13807
13808 else
13809 for ac_header in kerberosIV/des.h
13810 do :
13811 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13812 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
13813 cat >>confdefs.h <<_ACEOF
13814 #define HAVE_KERBEROSIV_DES_H 1
13815 _ACEOF
13816
13817 else
13818 for ac_header in kerberos/des.h
13819 do :
13820 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13821 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
13822 cat >>confdefs.h <<_ACEOF
13823 #define HAVE_KERBEROS_DES_H 1
13824 _ACEOF
13825
13826 fi
13827
13828 done
13829
13830 fi
13831
13832 done
13833
13834 fi
13835
13836 done
13837
13838 for ac_header in krb.h
13839 do :
13840 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13841 if test "x$ac_cv_header_krb_h" = x""yes; then :
13842 cat >>confdefs.h <<_ACEOF
13843 #define HAVE_KRB_H 1
13844 _ACEOF
13845
13846 else
13847 for ac_header in kerberosIV/krb.h
13848 do :
13849 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13850 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
13851 cat >>confdefs.h <<_ACEOF
13852 #define HAVE_KERBEROSIV_KRB_H 1
13853 _ACEOF
13854
13855 else
13856 for ac_header in kerberos/krb.h
13857 do :
13858 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13859 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
13860 cat >>confdefs.h <<_ACEOF
13861 #define HAVE_KERBEROS_KRB_H 1
13862 _ACEOF
13863
13864 fi
13865
13866 done
13867
13868 fi
13869
13870 done
13871
13872 fi
13873
13874 done
13875
13876 fi
13877 for ac_header in com_err.h
13878 do :
13879 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13880 if test "x$ac_cv_header_com_err_h" = x""yes; then :
13881 cat >>confdefs.h <<_ACEOF
13882 #define HAVE_COM_ERR_H 1
13883 _ACEOF
13884
13885 fi
13886
13887 done
13888
13889 fi
13890
13891
13892
13893
13894
13895
13896
13897 # Solaris requires -lintl if you want strerror (which calls dgettext)
13898 # to return localized messages.
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13900 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13901 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13902 $as_echo_n "(cached) " >&6
13903 else
13904 ac_check_lib_save_LIBS=$LIBS
13905 LIBS="-lintl $LIBS"
13906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13907 /* end confdefs.h. */
13908
13909 /* Override any GCC internal prototype to avoid an error.
13910 Use char because int might match the return type of a GCC
13911 builtin and then its argument prototype would still apply. */
13912 #ifdef __cplusplus
13913 extern "C"
13914 #endif
13915 char dgettext ();
13916 int
13917 main ()
13918 {
13919 return dgettext ();
13920 ;
13921 return 0;
13922 }
13923 _ACEOF
13924 if ac_fn_c_try_link "$LINENO"; then :
13925 ac_cv_lib_intl_dgettext=yes
13926 else
13927 ac_cv_lib_intl_dgettext=no
13928 fi
13929 rm -f core conftest.err conftest.$ac_objext \
13930 conftest$ac_exeext conftest.$ac_ext
13931 LIBS=$ac_check_lib_save_LIBS
13932 fi
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13934 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13935 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
13936 cat >>confdefs.h <<_ACEOF
13937 #define HAVE_LIBINTL 1
13938 _ACEOF
13939
13940 LIBS="-lintl $LIBS"
13941
13942 fi
13943
13944
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13946 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13947 if test "${emacs_cv_localtime_cache+set}" = set; then :
13948 $as_echo_n "(cached) " >&6
13949 else
13950 if test x$ac_cv_func_tzset = xyes; then
13951 if test "$cross_compiling" = yes; then :
13952 # If we have tzset, assume the worst when cross-compiling.
13953 emacs_cv_localtime_cache=yes
13954 else
13955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13956 /* end confdefs.h. */
13957 #include <time.h>
13958 extern char **environ;
13959 unset_TZ ()
13960 {
13961 char **from, **to;
13962 for (to = from = environ; (*to = *from); from++)
13963 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
13964 to++;
13965 }
13966 char TZ_GMT0[] = "TZ=GMT0";
13967 char TZ_PST8[] = "TZ=PST8";
13968 main()
13969 {
13970 time_t now = time ((time_t *) 0);
13971 int hour_GMT0, hour_unset;
13972 if (putenv (TZ_GMT0) != 0)
13973 exit (1);
13974 hour_GMT0 = localtime (&now)->tm_hour;
13975 unset_TZ ();
13976 hour_unset = localtime (&now)->tm_hour;
13977 if (putenv (TZ_PST8) != 0)
13978 exit (1);
13979 if (localtime (&now)->tm_hour == hour_GMT0)
13980 exit (1);
13981 unset_TZ ();
13982 if (localtime (&now)->tm_hour != hour_unset)
13983 exit (1);
13984 exit (0);
13985 }
13986 _ACEOF
13987 if ac_fn_c_try_run "$LINENO"; then :
13988 emacs_cv_localtime_cache=no
13989 else
13990 emacs_cv_localtime_cache=yes
13991 fi
13992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13993 conftest.$ac_objext conftest.beam conftest.$ac_ext
13994 fi
13995
13996 else
13997 # If we lack tzset, report that localtime does not cache TZ,
13998 # since we can't invalidate the cache if we don't have tzset.
13999 emacs_cv_localtime_cache=no
14000 fi
14001 fi
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14003 $as_echo "$emacs_cv_localtime_cache" >&6; }
14004 if test $emacs_cv_localtime_cache = yes; then
14005
14006 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14007
14008 fi
14009
14010 if test "x$HAVE_TIMEVAL" = xyes; then
14011 for ac_func in gettimeofday
14012 do :
14013 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14014 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
14015 cat >>confdefs.h <<_ACEOF
14016 #define HAVE_GETTIMEOFDAY 1
14017 _ACEOF
14018
14019 fi
14020 done
14021
14022 if test $ac_cv_func_gettimeofday = yes; then
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14024 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14025 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14026 $as_echo_n "(cached) " >&6
14027 else
14028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14029 /* end confdefs.h. */
14030
14031 #ifdef TIME_WITH_SYS_TIME
14032 #include <sys/time.h>
14033 #include <time.h>
14034 #else
14035 #ifdef HAVE_SYS_TIME_H
14036 #include <sys/time.h>
14037 #else
14038 #include <time.h>
14039 #endif
14040 #endif
14041 int
14042 main ()
14043 {
14044 struct timeval time;
14045 gettimeofday (&time, 0);
14046 ;
14047 return 0;
14048 }
14049 _ACEOF
14050 if ac_fn_c_try_compile "$LINENO"; then :
14051 emacs_cv_gettimeofday_two_arguments=yes
14052 else
14053 emacs_cv_gettimeofday_two_arguments=no
14054 fi
14055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14056 fi
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14058 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14059 if test $emacs_cv_gettimeofday_two_arguments = no; then
14060
14061 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14062
14063 fi
14064 fi
14065 fi
14066
14067 ok_so_far=yes
14068 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14069 if test "x$ac_cv_func_socket" = x""yes; then :
14070
14071 else
14072 ok_so_far=no
14073 fi
14074
14075 if test $ok_so_far = yes; then
14076 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14077 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14078
14079 else
14080 ok_so_far=no
14081 fi
14082
14083
14084 fi
14085 if test $ok_so_far = yes; then
14086 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14087 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14088
14089 else
14090 ok_so_far=no
14091 fi
14092
14093
14094 fi
14095 if test $ok_so_far = yes; then
14096
14097 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14098
14099 fi
14100
14101 for ac_header in sys/ioctl.h
14102 do :
14103 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
14104 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
14105 cat >>confdefs.h <<_ACEOF
14106 #define HAVE_SYS_IOCTL_H 1
14107 _ACEOF
14108
14109 fi
14110
14111 done
14112
14113
14114 if test -f /usr/lpp/X11/bin/smt.exp; then
14115
14116 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14117
14118 fi
14119
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14121 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14122 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14124 $as_echo "yes" >&6; }
14125
14126 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14127
14128 else
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14130 $as_echo "no" >&6; }
14131 fi
14132
14133 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14134 if test "x$ac_cv_type_pid_t" = x""yes; then :
14135
14136 else
14137
14138 cat >>confdefs.h <<_ACEOF
14139 #define pid_t int
14140 _ACEOF
14141
14142 fi
14143
14144 for ac_header in vfork.h
14145 do :
14146 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14147 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14148 cat >>confdefs.h <<_ACEOF
14149 #define HAVE_VFORK_H 1
14150 _ACEOF
14151
14152 fi
14153
14154 done
14155
14156 for ac_func in fork vfork
14157 do :
14158 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14159 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14160 eval as_val=\$$as_ac_var
14161 if test "x$as_val" = x""yes; then :
14162 cat >>confdefs.h <<_ACEOF
14163 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14164 _ACEOF
14165
14166 fi
14167 done
14168
14169 if test "x$ac_cv_func_fork" = xyes; then
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14171 $as_echo_n "checking for working fork... " >&6; }
14172 if test "${ac_cv_func_fork_works+set}" = set; then :
14173 $as_echo_n "(cached) " >&6
14174 else
14175 if test "$cross_compiling" = yes; then :
14176 ac_cv_func_fork_works=cross
14177 else
14178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14179 /* end confdefs.h. */
14180 $ac_includes_default
14181 int
14182 main ()
14183 {
14184
14185 /* By Ruediger Kuhlmann. */
14186 return fork () < 0;
14187
14188 ;
14189 return 0;
14190 }
14191 _ACEOF
14192 if ac_fn_c_try_run "$LINENO"; then :
14193 ac_cv_func_fork_works=yes
14194 else
14195 ac_cv_func_fork_works=no
14196 fi
14197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14198 conftest.$ac_objext conftest.beam conftest.$ac_ext
14199 fi
14200
14201 fi
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14203 $as_echo "$ac_cv_func_fork_works" >&6; }
14204
14205 else
14206 ac_cv_func_fork_works=$ac_cv_func_fork
14207 fi
14208 if test "x$ac_cv_func_fork_works" = xcross; then
14209 case $host in
14210 *-*-amigaos* | *-*-msdosdjgpp*)
14211 # Override, as these systems have only a dummy fork() stub
14212 ac_cv_func_fork_works=no
14213 ;;
14214 *)
14215 ac_cv_func_fork_works=yes
14216 ;;
14217 esac
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14219 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14220 fi
14221 ac_cv_func_vfork_works=$ac_cv_func_vfork
14222 if test "x$ac_cv_func_vfork" = xyes; then
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14224 $as_echo_n "checking for working vfork... " >&6; }
14225 if test "${ac_cv_func_vfork_works+set}" = set; then :
14226 $as_echo_n "(cached) " >&6
14227 else
14228 if test "$cross_compiling" = yes; then :
14229 ac_cv_func_vfork_works=cross
14230 else
14231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14232 /* end confdefs.h. */
14233 /* Thanks to Paul Eggert for this test. */
14234 $ac_includes_default
14235 #include <sys/wait.h>
14236 #ifdef HAVE_VFORK_H
14237 # include <vfork.h>
14238 #endif
14239 /* On some sparc systems, changes by the child to local and incoming
14240 argument registers are propagated back to the parent. The compiler
14241 is told about this with #include <vfork.h>, but some compilers
14242 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14243 static variable whose address is put into a register that is
14244 clobbered by the vfork. */
14245 static void
14246 #ifdef __cplusplus
14247 sparc_address_test (int arg)
14248 # else
14249 sparc_address_test (arg) int arg;
14250 #endif
14251 {
14252 static pid_t child;
14253 if (!child) {
14254 child = vfork ();
14255 if (child < 0) {
14256 perror ("vfork");
14257 _exit(2);
14258 }
14259 if (!child) {
14260 arg = getpid();
14261 write(-1, "", 0);
14262 _exit (arg);
14263 }
14264 }
14265 }
14266
14267 int
14268 main ()
14269 {
14270 pid_t parent = getpid ();
14271 pid_t child;
14272
14273 sparc_address_test (0);
14274
14275 child = vfork ();
14276
14277 if (child == 0) {
14278 /* Here is another test for sparc vfork register problems. This
14279 test uses lots of local variables, at least as many local
14280 variables as main has allocated so far including compiler
14281 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14282 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14283 reuse the register of parent for one of the local variables,
14284 since it will think that parent can't possibly be used any more
14285 in this routine. Assigning to the local variable will thus
14286 munge parent in the parent process. */
14287 pid_t
14288 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14289 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14290 /* Convince the compiler that p..p7 are live; otherwise, it might
14291 use the same hardware register for all 8 local variables. */
14292 if (p != p1 || p != p2 || p != p3 || p != p4
14293 || p != p5 || p != p6 || p != p7)
14294 _exit(1);
14295
14296 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14297 from child file descriptors. If the child closes a descriptor
14298 before it execs or exits, this munges the parent's descriptor
14299 as well. Test for this by closing stdout in the child. */
14300 _exit(close(fileno(stdout)) != 0);
14301 } else {
14302 int status;
14303 struct stat st;
14304
14305 while (wait(&status) != child)
14306 ;
14307 return (
14308 /* Was there some problem with vforking? */
14309 child < 0
14310
14311 /* Did the child fail? (This shouldn't happen.) */
14312 || status
14313
14314 /* Did the vfork/compiler bug occur? */
14315 || parent != getpid()
14316
14317 /* Did the file descriptor bug occur? */
14318 || fstat(fileno(stdout), &st) != 0
14319 );
14320 }
14321 }
14322 _ACEOF
14323 if ac_fn_c_try_run "$LINENO"; then :
14324 ac_cv_func_vfork_works=yes
14325 else
14326 ac_cv_func_vfork_works=no
14327 fi
14328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14329 conftest.$ac_objext conftest.beam conftest.$ac_ext
14330 fi
14331
14332 fi
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14334 $as_echo "$ac_cv_func_vfork_works" >&6; }
14335
14336 fi;
14337 if test "x$ac_cv_func_fork_works" = xcross; then
14338 ac_cv_func_vfork_works=$ac_cv_func_vfork
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14340 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14341 fi
14342
14343 if test "x$ac_cv_func_vfork_works" = xyes; then
14344
14345 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14346
14347 else
14348
14349 $as_echo "#define vfork fork" >>confdefs.h
14350
14351 fi
14352 if test "x$ac_cv_func_fork_works" = xyes; then
14353
14354 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14355
14356 fi
14357
14358
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14360 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14361 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14362 $as_echo_n "(cached) " >&6
14363 else
14364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14365 /* end confdefs.h. */
14366 #include <langinfo.h>
14367 int
14368 main ()
14369 {
14370 char* cs = nl_langinfo(CODESET);
14371 ;
14372 return 0;
14373 }
14374 _ACEOF
14375 if ac_fn_c_try_link "$LINENO"; then :
14376 emacs_cv_langinfo_codeset=yes
14377 else
14378 emacs_cv_langinfo_codeset=no
14379 fi
14380 rm -f core conftest.err conftest.$ac_objext \
14381 conftest$ac_exeext conftest.$ac_ext
14382
14383 fi
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14385 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14386 if test $emacs_cv_langinfo_codeset = yes; then
14387
14388 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14389
14390 fi
14391
14392 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14393 if test "x$ac_cv_type_size_t" = x""yes; then :
14394
14395 cat >>confdefs.h <<_ACEOF
14396 #define HAVE_SIZE_T 1
14397 _ACEOF
14398
14399
14400 fi
14401
14402
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14404 $as_echo_n "checking for mbstate_t... " >&6; }
14405 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14406 $as_echo_n "(cached) " >&6
14407 else
14408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14409 /* end confdefs.h. */
14410 $ac_includes_default
14411 # include <wchar.h>
14412 int
14413 main ()
14414 {
14415 mbstate_t x; return sizeof x;
14416 ;
14417 return 0;
14418 }
14419 _ACEOF
14420 if ac_fn_c_try_compile "$LINENO"; then :
14421 ac_cv_type_mbstate_t=yes
14422 else
14423 ac_cv_type_mbstate_t=no
14424 fi
14425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14426 fi
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14428 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14429 if test $ac_cv_type_mbstate_t = yes; then
14430
14431 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14432
14433 else
14434
14435 $as_echo "#define mbstate_t int" >>confdefs.h
14436
14437 fi
14438
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
14440 $as_echo_n "checking for C restrict keyword... " >&6; }
14441 if test "${emacs_cv_c_restrict+set}" = set; then :
14442 $as_echo_n "(cached) " >&6
14443 else
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14446 void fred (int *restrict x);
14447 int
14448 main ()
14449 {
14450
14451 ;
14452 return 0;
14453 }
14454 _ACEOF
14455 if ac_fn_c_try_compile "$LINENO"; then :
14456 emacs_cv_c_restrict=yes
14457 else
14458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459 /* end confdefs.h. */
14460 void fred (int *__restrict x);
14461 int
14462 main ()
14463 {
14464
14465 ;
14466 return 0;
14467 }
14468 _ACEOF
14469 if ac_fn_c_try_compile "$LINENO"; then :
14470 emacs_cv_c_restrict=__restrict
14471 else
14472 emacs_cv_c_restrict=no
14473 fi
14474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14475 fi
14476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14477 fi
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
14479 $as_echo "$emacs_cv_c_restrict" >&6; }
14480 case "$emacs_cv_c_restrict" in
14481 yes) emacs_restrict=restrict;;
14482 no) emacs_restrict="";;
14483 *) emacs_restrict="$emacs_cv_c_restrict";;
14484 esac
14485 if test "$emacs_restrict" != __restrict; then
14486
14487 cat >>confdefs.h <<_ACEOF
14488 #define __restrict $emacs_restrict
14489 _ACEOF
14490
14491 fi
14492
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14494 $as_echo_n "checking for C restricted array declarations... " >&6; }
14495 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14496 $as_echo_n "(cached) " >&6
14497 else
14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499 /* end confdefs.h. */
14500 void fred (int x[__restrict]);
14501 int
14502 main ()
14503 {
14504
14505 ;
14506 return 0;
14507 }
14508 _ACEOF
14509 if ac_fn_c_try_compile "$LINENO"; then :
14510 emacs_cv_c_restrict_arr=yes
14511 else
14512 emacs_cv_c_restrict_arr=no
14513 fi
14514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14515 fi
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14517 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14518 if test "$emacs_cv_c_restrict_arr" = yes; then
14519
14520 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14521
14522 fi
14523
14524
14525
14526 # Set up the CFLAGS for real compilation, so we can substitute it.
14527 CFLAGS="$REAL_CFLAGS"
14528 CPPFLAGS="$REAL_CPPFLAGS"
14529
14530 ## Hack to detect a buggy GCC version.
14531 if test "x$GCC" = xyes \
14532 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14533 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
14534 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
14535 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14536 fi
14537
14538 #### Find out which version of Emacs this is.
14539 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
14540 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
14541 if test x"${version}" = x; then
14542 as_fn_error "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
14543 fi
14544 if test x"${version}" != x"$PACKAGE_VERSION"; then
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
14546 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
14547 fi
14548
14549 ### Specify what sort of things we'll be editing into Makefile and config.h.
14550 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14551
14552
14553 ## Unused?
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14575 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14576 ## end of LIBX_BASE, but nothing ever set it.
14577
14578
14579
14580
14581 ## Used in lwlib/Makefile.in.
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594 cat >>confdefs.h <<_ACEOF
14595 #define EMACS_CONFIGURATION "${canonical}"
14596 _ACEOF
14597
14598
14599 cat >>confdefs.h <<_ACEOF
14600 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14601 _ACEOF
14602
14603
14604 cat >>confdefs.h <<_ACEOF
14605 #define config_machfile "${machfile}"
14606 _ACEOF
14607
14608
14609 cat >>confdefs.h <<_ACEOF
14610 #define config_opsysfile "${opsysfile}"
14611 _ACEOF
14612
14613
14614 XMENU_OBJ=
14615 XOBJ=
14616 FONT_OBJ=
14617 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14618
14619 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14620
14621 XMENU_OBJ=xmenu.o
14622 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14623 FONT_OBJ=xfont.o
14624 if test "$HAVE_XFT" = "yes"; then
14625 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14626 elif test "$HAVE_FREETYPE" = "yes"; then
14627 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14628 fi
14629
14630 fi
14631
14632
14633
14634
14635 WIDGET_OBJ=
14636 MOTIF_LIBW=
14637 if test "${USE_X_TOOLKIT}" != "none" ; then
14638 WIDGET_OBJ=widget.o
14639
14640 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14641
14642 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14643
14644 $as_echo "#define USE_LUCID 1" >>confdefs.h
14645
14646 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14647
14648 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14649
14650 MOTIF_LIBW=-lXm
14651 case "$opsys" in
14652 gnu-linux)
14653 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14654 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14655 ;;
14656
14657 unixware)
14658 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14659 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14660 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14661 ;;
14662
14663 aix4-2)
14664 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14665 MOTIF_LIBW="$MOTIF_LIBW -li18n"
14666 ;;
14667 esac
14668 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
14669 fi
14670 fi
14671
14672
14673 TOOLKIT_LIBW=
14674 case "$USE_X_TOOLKIT" in
14675 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14676 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14677 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14678 esac
14679
14680
14681 if test "$USE_X_TOOLKIT" = "none"; then
14682 LIBXT_OTHER="\$(LIBXSM)"
14683 OLDXMENU_TARGET="really-oldXMenu"
14684 else
14685 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14686 OLDXMENU_TARGET="really-lwlib"
14687 fi
14688
14689
14690 ## The X Menu stuff is present in the X10 distribution, but missing
14691 ## from X11. If we have X10, just use the installed library;
14692 ## otherwise, use our own copy.
14693 if test "${HAVE_X11}" = "yes" ; then
14694
14695 $as_echo "#define HAVE_X11 1" >>confdefs.h
14696
14697
14698 if test "$USE_X_TOOLKIT" = "none"; then
14699 OLDXMENU="\${oldXMenudir}libXMenu11.a"
14700 else
14701 OLDXMENU="\${lwlibdir}liblw.a"
14702 fi
14703 LIBXMENU="\$(OLDXMENU)"
14704 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14705 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14706 else
14707 ## For a syntactically valid Makefile; not actually used for anything.
14708 ## See comments in src/Makefile.in.
14709 OLDXMENU=nothing
14710 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14711 if test "${HAVE_X_WINDOWS}" = "yes"; then
14712 LIBXMENU="-lXMenu"
14713 else
14714 LIBXMENU=
14715 fi
14716 LIBX_OTHER=
14717 OLDXMENU_DEPS=
14718 fi
14719
14720 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14721 OLDXMENU_TARGET=
14722 OLDXMENU=nothing
14723 LIBXMENU=
14724 OLDXMENU_DEPS=
14725 fi
14726
14727
14728
14729
14730
14731
14732
14733 if test "${HAVE_MENUS}" = "yes" ; then
14734
14735 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14736
14737 fi
14738
14739 if test "${GNU_MALLOC}" = "yes" ; then
14740
14741 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14742
14743 fi
14744
14745 RALLOC_OBJ=
14746 if test "${REL_ALLOC}" = "yes" ; then
14747
14748 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14749
14750
14751 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14752 fi
14753
14754
14755 if test "$opsys" = "cygwin"; then
14756 CYGWIN_OBJ="sheap.o"
14757 ## Cygwin differs because of its unexec().
14758 PRE_ALLOC_OBJ=
14759 POST_ALLOC_OBJ=lastfile.o
14760 else
14761 CYGWIN_OBJ=
14762 PRE_ALLOC_OBJ=lastfile.o
14763 POST_ALLOC_OBJ=
14764 fi
14765
14766
14767
14768
14769
14770 case "$opsys" in
14771 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
14772
14773 darwin)
14774 ## The -headerpad option tells ld (see man page) to leave room at the
14775 ## end of the header for adding load commands. Needed for dumping.
14776 ## 0x690 is the total size of 30 segment load commands (at 56
14777 ## each); under Cocoa 31 commands are required.
14778 if test "$HAVE_NS" = "yes"; then
14779 libs_nsgui="-framework AppKit"
14780 headerpad_extra=6C8
14781 else
14782 libs_nsgui=
14783 headerpad_extra=690
14784 fi
14785 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14786
14787 ## This is here because src/Makefile.in did some extra fiddling around
14788 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14789 ## #ifndef LD_SWITCH_SYSTEM
14790 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14791 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14792 ## not using gcc, darwin system not on an alpha (ie darwin, since
14793 ## darwin + alpha does not occur).
14794 ## Because this was done in src/Makefile.in, the resulting part of
14795 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14796 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14797 ## rather than LD_SWITCH_SYSTEM.
14798 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14799 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
14800 ;;
14801
14802 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14803 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14804 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14805 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14806 ## had different values in configure (in ac_link) and src/Makefile.in.
14807 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14808 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
14809
14810 *) LD_SWITCH_SYSTEM_TEMACS= ;;
14811 esac
14812
14813 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14814 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14815 fi
14816
14817
14818
14819
14820 LD_FIRSTFLAG=
14821 ORDINARY_LINK=
14822 case "$opsys" in
14823 ## gnu: GNU needs its own crt0.
14824 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
14825
14826 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14827 ## library search parth, i.e. it won't search /usr/lib for libc and
14828 ## friends. Using -nostartfiles instead avoids this problem, and
14829 ## will also work on earlier NetBSD releases.
14830 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
14831
14832 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14833 ## MkLinux/LinuxPPC needs this.
14834 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14835 gnu-*)
14836 case "$machine" in
14837 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
14838 esac
14839 ;;
14840 esac
14841
14842
14843 if test "x$ORDINARY_LINK" = "xyes"; then
14844
14845 LD_FIRSTFLAG=""
14846
14847 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14848
14849
14850 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
14851 ## freebsd, gnu-* not on macppc|ibms390x.
14852 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
14853
14854 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14855 ## places that are difficult to figure out at make time. Fortunately,
14856 ## these same versions allow you to pass arbitrary flags on to the
14857 ## linker, so there is no reason not to use it as a linker.
14858 ##
14859 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14860 ## searching for libraries in its internal directories, so we have to
14861 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14862 LD_FIRSTFLAG="-nostdlib"
14863 fi
14864
14865 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14866 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
14867
14868
14869
14870
14871 ## FIXME? The logic here is not precisely the same as that above.
14872 ## There is no check here for a pre-defined LD_FIRSTFLAG.
14873 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14874 LIB_GCC=
14875 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14876
14877 case "$opsys" in
14878 freebsd|netbsd|openbsd) LIB_GCC= ;;
14879
14880 gnu-*)
14881 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14882 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14883 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
14884 if test "$machine" = "arm"; then
14885 LIB_GCC="-lgcc_s"
14886 else
14887 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14888 ## immediately undefine it again and redefine it to empty.
14889 ## Was the C_SWITCH_X_SITE part really necessary?
14890 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14891 LIB_GCC=
14892 fi
14893 ;;
14894
14895 ## Ask GCC where to find libgcc.a.
14896 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14897 esac
14898 fi
14899
14900
14901 TOOLTIP_SUPPORT=
14902 WINDOW_SUPPORT=
14903 ## If we're using X11/GNUstep, define some consequences.
14904 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
14905
14906 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14907
14908
14909 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14910
14911 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
14912 TOOLTIP_SUPPORT="\${lispsource}mouse.elc"
14913
14914 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
14915 test "$HAVE_X_WINDOWS" = "yes" && \
14916 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14917
14918 fi
14919
14920
14921
14922
14923
14924
14925
14926 #### Report on what we decided to do.
14927 #### Report GTK as a toolkit, even if it doesn't use Xt.
14928 #### It makes printing result more understandable as using GTK sets
14929 #### toolkit_scroll_bars to yes by default.
14930 if test "${HAVE_GTK}" = "yes"; then
14931 USE_X_TOOLKIT=GTK
14932 fi
14933
14934 echo "
14935 Configured for \`${canonical}'.
14936
14937 Where should the build process find the source code? ${srcdir}
14938 What operating system and machine description files should Emacs use?
14939 \`${opsysfile}' and \`${machfile}'
14940 What compiler should emacs be built with? ${CC} ${CFLAGS}
14941 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14942 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14943 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14944 What window system should Emacs use? ${window_system}
14945 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14946
14947 if test -n "${x_includes}"; then
14948 echo " Where do we find X Windows header files? ${x_includes}"
14949 else
14950 echo " Where do we find X Windows header files? Standard dirs"
14951 fi
14952 if test -n "${x_libraries}"; then
14953 echo " Where do we find X Windows libraries? ${x_libraries}"
14954 else
14955 echo " Where do we find X Windows libraries? Standard dirs"
14956 fi
14957
14958 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14959 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14960 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14961 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14962 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14963 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14964 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14965 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
14966
14967 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14968 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14969 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14970 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14971 echo " Does Emacs use -lgnutls (BROKEN)? ${HAVE_GNUTLS}"
14972 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
14973
14974 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14975 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14976 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14977 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14978
14979 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14980 echo
14981
14982 if test $USE_XASSERTS = yes; then
14983 echo " Compiling with asserts turned on."
14984 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
14985 fi
14986
14987 echo
14988
14989 if test "$HAVE_NS" = "yes"; then
14990 echo
14991 echo "You must run \"make install\" in order to test the built application.
14992 The installed application will go to nextstep/Emacs.app and can be
14993 run or moved from there."
14994 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14995 echo "The application will be fully self-contained."
14996 else
14997 echo "The lisp resources for the application will be installed under ${prefix}.
14998 You may need to run \"make install\" with sudo. The application will fail
14999 to run if these resources are not installed."
15000 fi
15001 echo
15002 fi
15003
15004 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
15005 echo "D-Bus integration has been tested for GNU/Linux only."
15006 echo
15007 fi
15008
15009
15010 # Remove any trailing slashes in these variables.
15011 test "${prefix}" != NONE &&
15012 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
15013 test "${exec_prefix}" != NONE &&
15014 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
15015
15016 ac_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"
15017
15018 ac_config_commands="$ac_config_commands default"
15019
15020 cat >confcache <<\_ACEOF
15021 # This file is a shell script that caches the results of configure
15022 # tests run on this system so they can be shared between configure
15023 # scripts and configure runs, see configure's option --config-cache.
15024 # It is not useful on other systems. If it contains results you don't
15025 # want to keep, you may remove or edit it.
15026 #
15027 # config.status only pays attention to the cache file if you give it
15028 # the --recheck option to rerun configure.
15029 #
15030 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15031 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15032 # following values.
15033
15034 _ACEOF
15035
15036 # The following way of writing the cache mishandles newlines in values,
15037 # but we know of no workaround that is simple, portable, and efficient.
15038 # So, we kill variables containing newlines.
15039 # Ultrix sh set writes to stderr and can't be redirected directly,
15040 # and sets the high bit in the cache file unless we assign to the vars.
15041 (
15042 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15043 eval ac_val=\$$ac_var
15044 case $ac_val in #(
15045 *${as_nl}*)
15046 case $ac_var in #(
15047 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15048 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15049 esac
15050 case $ac_var in #(
15051 _ | IFS | as_nl) ;; #(
15052 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15053 *) { eval $ac_var=; unset $ac_var;} ;;
15054 esac ;;
15055 esac
15056 done
15057
15058 (set) 2>&1 |
15059 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15060 *${as_nl}ac_space=\ *)
15061 # `set' does not quote correctly, so add quotes: double-quote
15062 # substitution turns \\\\ into \\, and sed turns \\ into \.
15063 sed -n \
15064 "s/'/'\\\\''/g;
15065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15066 ;; #(
15067 *)
15068 # `set' quotes correctly as required by POSIX, so do not add quotes.
15069 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15070 ;;
15071 esac |
15072 sort
15073 ) |
15074 sed '
15075 /^ac_cv_env_/b end
15076 t clear
15077 :clear
15078 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15079 t end
15080 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15081 :end' >>confcache
15082 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15083 if test -w "$cache_file"; then
15084 test "x$cache_file" != "x/dev/null" &&
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15086 $as_echo "$as_me: updating cache $cache_file" >&6;}
15087 cat confcache >$cache_file
15088 else
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15090 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15091 fi
15092 fi
15093 rm -f confcache
15094
15095 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15096 # Let make expand exec_prefix.
15097 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15098
15099 DEFS=-DHAVE_CONFIG_H
15100
15101 ac_libobjs=
15102 ac_ltlibobjs=
15103 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15104 # 1. Remove the extension, and $U if already installed.
15105 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15106 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15107 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15108 # will be set to the directory where LIBOBJS objects are built.
15109 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15110 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15111 done
15112 LIBOBJS=$ac_libobjs
15113
15114 LTLIBOBJS=$ac_ltlibobjs
15115
15116
15117
15118
15119 : ${CONFIG_STATUS=./config.status}
15120 ac_write_fail=0
15121 ac_clean_files_save=$ac_clean_files
15122 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15124 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15125 as_write_fail=0
15126 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15127 #! $SHELL
15128 # Generated by $as_me.
15129 # Run this file to recreate the current configuration.
15130 # Compiler output produced by configure, useful for debugging
15131 # configure, is in config.log if it exists.
15132
15133 debug=false
15134 ac_cs_recheck=false
15135 ac_cs_silent=false
15136
15137 SHELL=\${CONFIG_SHELL-$SHELL}
15138 export SHELL
15139 _ASEOF
15140 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15141 ## -------------------- ##
15142 ## M4sh Initialization. ##
15143 ## -------------------- ##
15144
15145 # Be more Bourne compatible
15146 DUALCASE=1; export DUALCASE # for MKS sh
15147 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15148 emulate sh
15149 NULLCMD=:
15150 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15151 # is contrary to our usage. Disable this feature.
15152 alias -g '${1+"$@"}'='"$@"'
15153 setopt NO_GLOB_SUBST
15154 else
15155 case `(set -o) 2>/dev/null` in #(
15156 *posix*) :
15157 set -o posix ;; #(
15158 *) :
15159 ;;
15160 esac
15161 fi
15162
15163
15164 as_nl='
15165 '
15166 export as_nl
15167 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15168 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15169 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15170 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15171 # Prefer a ksh shell builtin over an external printf program on Solaris,
15172 # but without wasting forks for bash or zsh.
15173 if test -z "$BASH_VERSION$ZSH_VERSION" \
15174 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15175 as_echo='print -r --'
15176 as_echo_n='print -rn --'
15177 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15178 as_echo='printf %s\n'
15179 as_echo_n='printf %s'
15180 else
15181 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15182 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15183 as_echo_n='/usr/ucb/echo -n'
15184 else
15185 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15186 as_echo_n_body='eval
15187 arg=$1;
15188 case $arg in #(
15189 *"$as_nl"*)
15190 expr "X$arg" : "X\\(.*\\)$as_nl";
15191 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15192 esac;
15193 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15194 '
15195 export as_echo_n_body
15196 as_echo_n='sh -c $as_echo_n_body as_echo'
15197 fi
15198 export as_echo_body
15199 as_echo='sh -c $as_echo_body as_echo'
15200 fi
15201
15202 # The user is always right.
15203 if test "${PATH_SEPARATOR+set}" != set; then
15204 PATH_SEPARATOR=:
15205 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15206 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15207 PATH_SEPARATOR=';'
15208 }
15209 fi
15210
15211
15212 # IFS
15213 # We need space, tab and new line, in precisely that order. Quoting is
15214 # there to prevent editors from complaining about space-tab.
15215 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15216 # splitting by setting IFS to empty value.)
15217 IFS=" "" $as_nl"
15218
15219 # Find who we are. Look in the path if we contain no directory separator.
15220 case $0 in #((
15221 *[\\/]* ) as_myself=$0 ;;
15222 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15223 for as_dir in $PATH
15224 do
15225 IFS=$as_save_IFS
15226 test -z "$as_dir" && as_dir=.
15227 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15228 done
15229 IFS=$as_save_IFS
15230
15231 ;;
15232 esac
15233 # We did not find ourselves, most probably we were run as `sh COMMAND'
15234 # in which case we are not to be found in the path.
15235 if test "x$as_myself" = x; then
15236 as_myself=$0
15237 fi
15238 if test ! -f "$as_myself"; then
15239 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15240 exit 1
15241 fi
15242
15243 # Unset variables that we do not need and which cause bugs (e.g. in
15244 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15245 # suppresses any "Segmentation fault" message there. '((' could
15246 # trigger a bug in pdksh 5.2.14.
15247 for as_var in BASH_ENV ENV MAIL MAILPATH
15248 do eval test x\${$as_var+set} = xset \
15249 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15250 done
15251 PS1='$ '
15252 PS2='> '
15253 PS4='+ '
15254
15255 # NLS nuisances.
15256 LC_ALL=C
15257 export LC_ALL
15258 LANGUAGE=C
15259 export LANGUAGE
15260
15261 # CDPATH.
15262 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15263
15264
15265 # as_fn_error ERROR [LINENO LOG_FD]
15266 # ---------------------------------
15267 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15268 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15269 # script with status $?, using 1 if that was 0.
15270 as_fn_error ()
15271 {
15272 as_status=$?; test $as_status -eq 0 && as_status=1
15273 if test "$3"; then
15274 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15275 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15276 fi
15277 $as_echo "$as_me: error: $1" >&2
15278 as_fn_exit $as_status
15279 } # as_fn_error
15280
15281
15282 # as_fn_set_status STATUS
15283 # -----------------------
15284 # Set $? to STATUS, without forking.
15285 as_fn_set_status ()
15286 {
15287 return $1
15288 } # as_fn_set_status
15289
15290 # as_fn_exit STATUS
15291 # -----------------
15292 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15293 as_fn_exit ()
15294 {
15295 set +e
15296 as_fn_set_status $1
15297 exit $1
15298 } # as_fn_exit
15299
15300 # as_fn_unset VAR
15301 # ---------------
15302 # Portably unset VAR.
15303 as_fn_unset ()
15304 {
15305 { eval $1=; unset $1;}
15306 }
15307 as_unset=as_fn_unset
15308 # as_fn_append VAR VALUE
15309 # ----------------------
15310 # Append the text in VALUE to the end of the definition contained in VAR. Take
15311 # advantage of any shell optimizations that allow amortized linear growth over
15312 # repeated appends, instead of the typical quadratic growth present in naive
15313 # implementations.
15314 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15315 eval 'as_fn_append ()
15316 {
15317 eval $1+=\$2
15318 }'
15319 else
15320 as_fn_append ()
15321 {
15322 eval $1=\$$1\$2
15323 }
15324 fi # as_fn_append
15325
15326 # as_fn_arith ARG...
15327 # ------------------
15328 # Perform arithmetic evaluation on the ARGs, and store the result in the
15329 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15330 # must be portable across $(()) and expr.
15331 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15332 eval 'as_fn_arith ()
15333 {
15334 as_val=$(( $* ))
15335 }'
15336 else
15337 as_fn_arith ()
15338 {
15339 as_val=`expr "$@" || test $? -eq 1`
15340 }
15341 fi # as_fn_arith
15342
15343
15344 if expr a : '\(a\)' >/dev/null 2>&1 &&
15345 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15346 as_expr=expr
15347 else
15348 as_expr=false
15349 fi
15350
15351 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15352 as_basename=basename
15353 else
15354 as_basename=false
15355 fi
15356
15357 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15358 as_dirname=dirname
15359 else
15360 as_dirname=false
15361 fi
15362
15363 as_me=`$as_basename -- "$0" ||
15364 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15365 X"$0" : 'X\(//\)$' \| \
15366 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15367 $as_echo X/"$0" |
15368 sed '/^.*\/\([^/][^/]*\)\/*$/{
15369 s//\1/
15370 q
15371 }
15372 /^X\/\(\/\/\)$/{
15373 s//\1/
15374 q
15375 }
15376 /^X\/\(\/\).*/{
15377 s//\1/
15378 q
15379 }
15380 s/.*/./; q'`
15381
15382 # Avoid depending upon Character Ranges.
15383 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15384 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15385 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15386 as_cr_digits='0123456789'
15387 as_cr_alnum=$as_cr_Letters$as_cr_digits
15388
15389 ECHO_C= ECHO_N= ECHO_T=
15390 case `echo -n x` in #(((((
15391 -n*)
15392 case `echo 'xy\c'` in
15393 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15394 xy) ECHO_C='\c';;
15395 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15396 ECHO_T=' ';;
15397 esac;;
15398 *)
15399 ECHO_N='-n';;
15400 esac
15401
15402 rm -f conf$$ conf$$.exe conf$$.file
15403 if test -d conf$$.dir; then
15404 rm -f conf$$.dir/conf$$.file
15405 else
15406 rm -f conf$$.dir
15407 mkdir conf$$.dir 2>/dev/null
15408 fi
15409 if (echo >conf$$.file) 2>/dev/null; then
15410 if ln -s conf$$.file conf$$ 2>/dev/null; then
15411 as_ln_s='ln -s'
15412 # ... but there are two gotchas:
15413 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15414 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15415 # In both cases, we have to default to `cp -p'.
15416 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15417 as_ln_s='cp -p'
15418 elif ln conf$$.file conf$$ 2>/dev/null; then
15419 as_ln_s=ln
15420 else
15421 as_ln_s='cp -p'
15422 fi
15423 else
15424 as_ln_s='cp -p'
15425 fi
15426 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15427 rmdir conf$$.dir 2>/dev/null
15428
15429
15430 # as_fn_mkdir_p
15431 # -------------
15432 # Create "$as_dir" as a directory, including parents if necessary.
15433 as_fn_mkdir_p ()
15434 {
15435
15436 case $as_dir in #(
15437 -*) as_dir=./$as_dir;;
15438 esac
15439 test -d "$as_dir" || eval $as_mkdir_p || {
15440 as_dirs=
15441 while :; do
15442 case $as_dir in #(
15443 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15444 *) as_qdir=$as_dir;;
15445 esac
15446 as_dirs="'$as_qdir' $as_dirs"
15447 as_dir=`$as_dirname -- "$as_dir" ||
15448 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15449 X"$as_dir" : 'X\(//\)[^/]' \| \
15450 X"$as_dir" : 'X\(//\)$' \| \
15451 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15452 $as_echo X"$as_dir" |
15453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15454 s//\1/
15455 q
15456 }
15457 /^X\(\/\/\)[^/].*/{
15458 s//\1/
15459 q
15460 }
15461 /^X\(\/\/\)$/{
15462 s//\1/
15463 q
15464 }
15465 /^X\(\/\).*/{
15466 s//\1/
15467 q
15468 }
15469 s/.*/./; q'`
15470 test -d "$as_dir" && break
15471 done
15472 test -z "$as_dirs" || eval "mkdir $as_dirs"
15473 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15474
15475
15476 } # as_fn_mkdir_p
15477 if mkdir -p . 2>/dev/null; then
15478 as_mkdir_p='mkdir -p "$as_dir"'
15479 else
15480 test -d ./-p && rmdir ./-p
15481 as_mkdir_p=false
15482 fi
15483
15484 if test -x / >/dev/null 2>&1; then
15485 as_test_x='test -x'
15486 else
15487 if ls -dL / >/dev/null 2>&1; then
15488 as_ls_L_option=L
15489 else
15490 as_ls_L_option=
15491 fi
15492 as_test_x='
15493 eval sh -c '\''
15494 if test -d "$1"; then
15495 test -d "$1/.";
15496 else
15497 case $1 in #(
15498 -*)set "./$1";;
15499 esac;
15500 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15501 ???[sx]*):;;*)false;;esac;fi
15502 '\'' sh
15503 '
15504 fi
15505 as_executable_p=$as_test_x
15506
15507 # Sed expression to map a string onto a valid CPP name.
15508 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15509
15510 # Sed expression to map a string onto a valid variable name.
15511 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15512
15513
15514 exec 6>&1
15515 ## ----------------------------------- ##
15516 ## Main body of $CONFIG_STATUS script. ##
15517 ## ----------------------------------- ##
15518 _ASEOF
15519 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15520
15521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15522 # Save the log message, to keep $0 and so on meaningful, and to
15523 # report actual input values of CONFIG_FILES etc. instead of their
15524 # values after options handling.
15525 ac_log="
15526 This file was extended by emacs $as_me 24.0.50, which was
15527 generated by GNU Autoconf 2.65. Invocation command line was
15528
15529 CONFIG_FILES = $CONFIG_FILES
15530 CONFIG_HEADERS = $CONFIG_HEADERS
15531 CONFIG_LINKS = $CONFIG_LINKS
15532 CONFIG_COMMANDS = $CONFIG_COMMANDS
15533 $ $0 $@
15534
15535 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15536 "
15537
15538 _ACEOF
15539
15540 case $ac_config_files in *"
15541 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15542 esac
15543
15544 case $ac_config_headers in *"
15545 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15546 esac
15547
15548
15549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15550 # Files that config.status was made for.
15551 config_files="$ac_config_files"
15552 config_headers="$ac_config_headers"
15553 config_commands="$ac_config_commands"
15554
15555 _ACEOF
15556
15557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15558 ac_cs_usage="\
15559 \`$as_me' instantiates files and other configuration actions
15560 from templates according to the current configuration. Unless the files
15561 and actions are specified as TAGs, all are instantiated by default.
15562
15563 Usage: $0 [OPTION]... [TAG]...
15564
15565 -h, --help print this help, then exit
15566 -V, --version print version number and configuration settings, then exit
15567 --config print configuration, then exit
15568 -q, --quiet, --silent
15569 do not print progress messages
15570 -d, --debug don't remove temporary files
15571 --recheck update $as_me by reconfiguring in the same conditions
15572 --file=FILE[:TEMPLATE]
15573 instantiate the configuration file FILE
15574 --header=FILE[:TEMPLATE]
15575 instantiate the configuration header FILE
15576
15577 Configuration files:
15578 $config_files
15579
15580 Configuration headers:
15581 $config_headers
15582
15583 Configuration commands:
15584 $config_commands
15585
15586 Report bugs to the package provider."
15587
15588 _ACEOF
15589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15590 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15591 ac_cs_version="\\
15592 emacs config.status 24.0.50
15593 configured by $0, generated by GNU Autoconf 2.65,
15594 with options \\"\$ac_cs_config\\"
15595
15596 Copyright (C) 2009 Free Software Foundation, Inc.
15597 This config.status script is free software; the Free Software Foundation
15598 gives unlimited permission to copy, distribute and modify it."
15599
15600 ac_pwd='$ac_pwd'
15601 srcdir='$srcdir'
15602 INSTALL='$INSTALL'
15603 test -n "\$AWK" || AWK=awk
15604 _ACEOF
15605
15606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15607 # The default lists apply if the user does not specify any file.
15608 ac_need_defaults=:
15609 while test $# != 0
15610 do
15611 case $1 in
15612 --*=*)
15613 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15614 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15615 ac_shift=:
15616 ;;
15617 *)
15618 ac_option=$1
15619 ac_optarg=$2
15620 ac_shift=shift
15621 ;;
15622 esac
15623
15624 case $ac_option in
15625 # Handling of the options.
15626 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15627 ac_cs_recheck=: ;;
15628 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15629 $as_echo "$ac_cs_version"; exit ;;
15630 --config | --confi | --conf | --con | --co | --c )
15631 $as_echo "$ac_cs_config"; exit ;;
15632 --debug | --debu | --deb | --de | --d | -d )
15633 debug=: ;;
15634 --file | --fil | --fi | --f )
15635 $ac_shift
15636 case $ac_optarg in
15637 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15638 esac
15639 as_fn_append CONFIG_FILES " '$ac_optarg'"
15640 ac_need_defaults=false;;
15641 --header | --heade | --head | --hea )
15642 $ac_shift
15643 case $ac_optarg in
15644 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15645 esac
15646 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15647 ac_need_defaults=false;;
15648 --he | --h)
15649 # Conflict between --help and --header
15650 as_fn_error "ambiguous option: \`$1'
15651 Try \`$0 --help' for more information.";;
15652 --help | --hel | -h )
15653 $as_echo "$ac_cs_usage"; exit ;;
15654 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15655 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15656 ac_cs_silent=: ;;
15657
15658 # This is an error.
15659 -*) as_fn_error "unrecognized option: \`$1'
15660 Try \`$0 --help' for more information." ;;
15661
15662 *) as_fn_append ac_config_targets " $1"
15663 ac_need_defaults=false ;;
15664
15665 esac
15666 shift
15667 done
15668
15669 ac_configure_extra_args=
15670
15671 if $ac_cs_silent; then
15672 exec 6>/dev/null
15673 ac_configure_extra_args="$ac_configure_extra_args --silent"
15674 fi
15675
15676 _ACEOF
15677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15678 if \$ac_cs_recheck; then
15679 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15680 shift
15681 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15682 CONFIG_SHELL='$SHELL'
15683 export CONFIG_SHELL
15684 exec "\$@"
15685 fi
15686
15687 _ACEOF
15688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15689 exec 5>>config.log
15690 {
15691 echo
15692 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15693 ## Running $as_me. ##
15694 _ASBOX
15695 $as_echo "$ac_log"
15696 } >&5
15697
15698 _ACEOF
15699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15700 #
15701 # INIT-COMMANDS
15702 #
15703 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15704
15705 _ACEOF
15706
15707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15708
15709 # Handling of arguments.
15710 for ac_config_target in $ac_config_targets
15711 do
15712 case $ac_config_target in
15713 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15714 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15715 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
15716 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
15717 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
15718 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
15719 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
15720 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
15721 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15722 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
15723 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
15724 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
15725 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15726
15727 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15728 esac
15729 done
15730
15731
15732 # If the user did not use the arguments to specify the items to instantiate,
15733 # then the envvar interface is used. Set only those that are not.
15734 # We use the long form for the default assignment because of an extremely
15735 # bizarre bug on SunOS 4.1.3.
15736 if $ac_need_defaults; then
15737 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15738 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15739 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15740 fi
15741
15742 # Have a temporary directory for convenience. Make it in the build tree
15743 # simply because there is no reason against having it here, and in addition,
15744 # creating and moving files from /tmp can sometimes cause problems.
15745 # Hook for its removal unless debugging.
15746 # Note that there is a small window in which the directory will not be cleaned:
15747 # after its creation but before its name has been assigned to `$tmp'.
15748 $debug ||
15749 {
15750 tmp=
15751 trap 'exit_status=$?
15752 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15753 ' 0
15754 trap 'as_fn_exit 1' 1 2 13 15
15755 }
15756 # Create a (secure) tmp directory for tmp files.
15757
15758 {
15759 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15760 test -n "$tmp" && test -d "$tmp"
15761 } ||
15762 {
15763 tmp=./conf$$-$RANDOM
15764 (umask 077 && mkdir "$tmp")
15765 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15766
15767 # Set up the scripts for CONFIG_FILES section.
15768 # No need to generate them if there are no CONFIG_FILES.
15769 # This happens for instance with `./config.status config.h'.
15770 if test -n "$CONFIG_FILES"; then
15771
15772 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15773 ac_cs_awk_getline=:
15774 ac_cs_awk_pipe_init=
15775 ac_cs_awk_read_file='
15776 while ((getline aline < (F[key])) > 0)
15777 print(aline)
15778 close(F[key])'
15779 ac_cs_awk_pipe_fini=
15780 else
15781 ac_cs_awk_getline=false
15782 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15783 ac_cs_awk_read_file='
15784 print "|#_!!_#|"
15785 print "cat " F[key] " &&"
15786 '$ac_cs_awk_pipe_init
15787 # The final `:' finishes the AND list.
15788 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15789 fi
15790 ac_cr=`echo X | tr X '\015'`
15791 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15792 # But we know of no other shell where ac_cr would be empty at this
15793 # point, so we can use a bashism as a fallback.
15794 if test "x$ac_cr" = x; then
15795 eval ac_cr=\$\'\\r\'
15796 fi
15797 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15798 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15799 ac_cs_awk_cr='\r'
15800 else
15801 ac_cs_awk_cr=$ac_cr
15802 fi
15803
15804 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15805 _ACEOF
15806
15807 # Create commands to substitute file output variables.
15808 {
15809 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15810 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15811 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15812 echo "_ACAWK" &&
15813 echo "_ACEOF"
15814 } >conf$$files.sh &&
15815 . ./conf$$files.sh ||
15816 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15817 rm -f conf$$files.sh
15818
15819 {
15820 echo "cat >conf$$subs.awk <<_ACEOF" &&
15821 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15822 echo "_ACEOF"
15823 } >conf$$subs.sh ||
15824 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15825 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15826 ac_delim='%!_!# '
15827 for ac_last_try in false false false false false :; do
15828 . ./conf$$subs.sh ||
15829 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15830
15831 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15832 if test $ac_delim_n = $ac_delim_num; then
15833 break
15834 elif $ac_last_try; then
15835 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15836 else
15837 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15838 fi
15839 done
15840 rm -f conf$$subs.sh
15841
15842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15843 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15844 _ACEOF
15845 sed -n '
15846 h
15847 s/^/S["/; s/!.*/"]=/
15848 p
15849 g
15850 s/^[^!]*!//
15851 :repl
15852 t repl
15853 s/'"$ac_delim"'$//
15854 t delim
15855 :nl
15856 h
15857 s/\(.\{148\}\)..*/\1/
15858 t more1
15859 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15860 p
15861 n
15862 b repl
15863 :more1
15864 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15865 p
15866 g
15867 s/.\{148\}//
15868 t nl
15869 :delim
15870 h
15871 s/\(.\{148\}\)..*/\1/
15872 t more2
15873 s/["\\]/\\&/g; s/^/"/; s/$/"/
15874 p
15875 b
15876 :more2
15877 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15878 p
15879 g
15880 s/.\{148\}//
15881 t delim
15882 ' <conf$$subs.awk | sed '
15883 /^[^""]/{
15884 N
15885 s/\n//
15886 }
15887 ' >>$CONFIG_STATUS || ac_write_fail=1
15888 rm -f conf$$subs.awk
15889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15890 _ACAWK
15891 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15892 for (key in S) S_is_set[key] = 1
15893 FS = "\a"
15894 \$ac_cs_awk_pipe_init
15895 }
15896 {
15897 line = $ 0
15898 nfields = split(line, field, "@")
15899 substed = 0
15900 len = length(field[1])
15901 for (i = 2; i < nfields; i++) {
15902 key = field[i]
15903 keylen = length(key)
15904 if (S_is_set[key]) {
15905 value = S[key]
15906 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15907 len += length(value) + length(field[++i])
15908 substed = 1
15909 } else
15910 len += 1 + keylen
15911 }
15912 if (nfields == 3 && !substed) {
15913 key = field[2]
15914 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15915 \$ac_cs_awk_read_file
15916 next
15917 }
15918 }
15919 print line
15920 }
15921 \$ac_cs_awk_pipe_fini
15922 _ACAWK
15923 _ACEOF
15924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15925 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15926 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15927 else
15928 cat
15929 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15930 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15931 _ACEOF
15932
15933 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15934 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15935 # trailing colons and then remove the whole line if VPATH becomes empty
15936 # (actually we leave an empty line to preserve line numbers).
15937 if test "x$srcdir" = x.; then
15938 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15939 s/:*\$(srcdir):*/:/
15940 s/:*\${srcdir}:*/:/
15941 s/:*@srcdir@:*/:/
15942 s/^\([^=]*=[ ]*\):*/\1/
15943 s/:*$//
15944 s/^[^=]*=[ ]*$//
15945 }'
15946 fi
15947
15948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15949 fi # test -n "$CONFIG_FILES"
15950
15951 # Set up the scripts for CONFIG_HEADERS section.
15952 # No need to generate them if there are no CONFIG_HEADERS.
15953 # This happens for instance with `./config.status Makefile'.
15954 if test -n "$CONFIG_HEADERS"; then
15955 cat >"$tmp/defines.awk" <<\_ACAWK ||
15956 BEGIN {
15957 _ACEOF
15958
15959 # Transform confdefs.h into an awk script `defines.awk', embedded as
15960 # here-document in config.status, that substitutes the proper values into
15961 # config.h.in to produce config.h.
15962
15963 # Create a delimiter string that does not exist in confdefs.h, to ease
15964 # handling of long lines.
15965 ac_delim='%!_!# '
15966 for ac_last_try in false false :; do
15967 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15968 if test -z "$ac_t"; then
15969 break
15970 elif $ac_last_try; then
15971 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15972 else
15973 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15974 fi
15975 done
15976
15977 # For the awk script, D is an array of macro values keyed by name,
15978 # likewise P contains macro parameters if any. Preserve backslash
15979 # newline sequences.
15980
15981 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15982 sed -n '
15983 s/.\{148\}/&'"$ac_delim"'/g
15984 t rset
15985 :rset
15986 s/^[ ]*#[ ]*define[ ][ ]*/ /
15987 t def
15988 d
15989 :def
15990 s/\\$//
15991 t bsnl
15992 s/["\\]/\\&/g
15993 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15994 D["\1"]=" \3"/p
15995 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15996 d
15997 :bsnl
15998 s/["\\]/\\&/g
15999 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16000 D["\1"]=" \3\\\\\\n"\\/p
16001 t cont
16002 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16003 t cont
16004 d
16005 :cont
16006 n
16007 s/.\{148\}/&'"$ac_delim"'/g
16008 t clear
16009 :clear
16010 s/\\$//
16011 t bsnlc
16012 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16013 d
16014 :bsnlc
16015 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16016 b cont
16017 ' <confdefs.h | sed '
16018 s/'"$ac_delim"'/"\\\
16019 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16020
16021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16022 for (key in D) D_is_set[key] = 1
16023 FS = "\a"
16024 }
16025 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16026 line = \$ 0
16027 split(line, arg, " ")
16028 if (arg[1] == "#") {
16029 defundef = arg[2]
16030 mac1 = arg[3]
16031 } else {
16032 defundef = substr(arg[1], 2)
16033 mac1 = arg[2]
16034 }
16035 split(mac1, mac2, "(") #)
16036 macro = mac2[1]
16037 prefix = substr(line, 1, index(line, defundef) - 1)
16038 if (D_is_set[macro]) {
16039 # Preserve the white space surrounding the "#".
16040 print prefix "define", macro P[macro] D[macro]
16041 next
16042 } else {
16043 # Replace #undef with comments. This is necessary, for example,
16044 # in the case of _POSIX_SOURCE, which is predefined and required
16045 # on some systems where configure will not decide to define it.
16046 if (defundef == "undef") {
16047 print "/*", prefix defundef, macro, "*/"
16048 next
16049 }
16050 }
16051 }
16052 { print }
16053 _ACAWK
16054 _ACEOF
16055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16056 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16057 fi # test -n "$CONFIG_HEADERS"
16058
16059
16060 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16061 shift
16062 for ac_tag
16063 do
16064 case $ac_tag in
16065 :[FHLC]) ac_mode=$ac_tag; continue;;
16066 esac
16067 case $ac_mode$ac_tag in
16068 :[FHL]*:*);;
16069 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16070 :[FH]-) ac_tag=-:-;;
16071 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16072 esac
16073 ac_save_IFS=$IFS
16074 IFS=:
16075 set x $ac_tag
16076 IFS=$ac_save_IFS
16077 shift
16078 ac_file=$1
16079 shift
16080
16081 case $ac_mode in
16082 :L) ac_source=$1;;
16083 :[FH])
16084 ac_file_inputs=
16085 for ac_f
16086 do
16087 case $ac_f in
16088 -) ac_f="$tmp/stdin";;
16089 *) # Look for the file first in the build tree, then in the source tree
16090 # (if the path is not absolute). The absolute path cannot be DOS-style,
16091 # because $ac_f cannot contain `:'.
16092 test -f "$ac_f" ||
16093 case $ac_f in
16094 [\\/$]*) false;;
16095 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16096 esac ||
16097 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16098 esac
16099 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16100 as_fn_append ac_file_inputs " '$ac_f'"
16101 done
16102
16103 # Let's still pretend it is `configure' which instantiates (i.e., don't
16104 # use $as_me), people would be surprised to read:
16105 # /* config.h. Generated by config.status. */
16106 configure_input='Generated from '`
16107 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16108 `' by configure.'
16109 if test x"$ac_file" != x-; then
16110 configure_input="$ac_file. $configure_input"
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16112 $as_echo "$as_me: creating $ac_file" >&6;}
16113 fi
16114 # Neutralize special characters interpreted by sed in replacement strings.
16115 case $configure_input in #(
16116 *\&* | *\|* | *\\* )
16117 ac_sed_conf_input=`$as_echo "$configure_input" |
16118 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16119 *) ac_sed_conf_input=$configure_input;;
16120 esac
16121
16122 case $ac_tag in
16123 *:-:* | *:-) cat >"$tmp/stdin" \
16124 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16125 esac
16126 ;;
16127 esac
16128
16129 ac_dir=`$as_dirname -- "$ac_file" ||
16130 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16131 X"$ac_file" : 'X\(//\)[^/]' \| \
16132 X"$ac_file" : 'X\(//\)$' \| \
16133 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16134 $as_echo X"$ac_file" |
16135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16136 s//\1/
16137 q
16138 }
16139 /^X\(\/\/\)[^/].*/{
16140 s//\1/
16141 q
16142 }
16143 /^X\(\/\/\)$/{
16144 s//\1/
16145 q
16146 }
16147 /^X\(\/\).*/{
16148 s//\1/
16149 q
16150 }
16151 s/.*/./; q'`
16152 as_dir="$ac_dir"; as_fn_mkdir_p
16153 ac_builddir=.
16154
16155 case "$ac_dir" in
16156 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16157 *)
16158 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16159 # A ".." for each directory in $ac_dir_suffix.
16160 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16161 case $ac_top_builddir_sub in
16162 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16163 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16164 esac ;;
16165 esac
16166 ac_abs_top_builddir=$ac_pwd
16167 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16168 # for backward compatibility:
16169 ac_top_builddir=$ac_top_build_prefix
16170
16171 case $srcdir in
16172 .) # We are building in place.
16173 ac_srcdir=.
16174 ac_top_srcdir=$ac_top_builddir_sub
16175 ac_abs_top_srcdir=$ac_pwd ;;
16176 [\\/]* | ?:[\\/]* ) # Absolute name.
16177 ac_srcdir=$srcdir$ac_dir_suffix;
16178 ac_top_srcdir=$srcdir
16179 ac_abs_top_srcdir=$srcdir ;;
16180 *) # Relative name.
16181 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16182 ac_top_srcdir=$ac_top_build_prefix$srcdir
16183 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16184 esac
16185 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16186
16187
16188 case $ac_mode in
16189 :F)
16190 #
16191 # CONFIG_FILE
16192 #
16193
16194 case $INSTALL in
16195 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16196 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16197 esac
16198 _ACEOF
16199
16200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16201 # If the template does not know about datarootdir, expand it.
16202 # FIXME: This hack should be removed a few years after 2.60.
16203 ac_datarootdir_hack=; ac_datarootdir_seen=
16204 ac_sed_dataroot='
16205 /datarootdir/ {
16206 p
16207 q
16208 }
16209 /@datadir@/p
16210 /@docdir@/p
16211 /@infodir@/p
16212 /@localedir@/p
16213 /@mandir@/p'
16214 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16215 *datarootdir*) ac_datarootdir_seen=yes;;
16216 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16218 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16219 _ACEOF
16220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16221 ac_datarootdir_hack='
16222 s&@datadir@&$datadir&g
16223 s&@docdir@&$docdir&g
16224 s&@infodir@&$infodir&g
16225 s&@localedir@&$localedir&g
16226 s&@mandir@&$mandir&g
16227 s&\\\${datarootdir}&$datarootdir&g' ;;
16228 esac
16229 _ACEOF
16230
16231 # Neutralize VPATH when `$srcdir' = `.'.
16232 # Shell code in configure.ac might set extrasub.
16233 # FIXME: do we really want to maintain this feature?
16234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16235 ac_sed_extra="$ac_vpsub
16236 $extrasub
16237 _ACEOF
16238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16239 :t
16240 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16241 s|@configure_input@|$ac_sed_conf_input|;t t
16242 s&@top_builddir@&$ac_top_builddir_sub&;t t
16243 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16244 s&@srcdir@&$ac_srcdir&;t t
16245 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16246 s&@top_srcdir@&$ac_top_srcdir&;t t
16247 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16248 s&@builddir@&$ac_builddir&;t t
16249 s&@abs_builddir@&$ac_abs_builddir&;t t
16250 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16251 s&@INSTALL@&$ac_INSTALL&;t t
16252 $ac_datarootdir_hack
16253 "
16254 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16255 if $ac_cs_awk_getline; then
16256 $AWK -f "$tmp/subs.awk"
16257 else
16258 $AWK -f "$tmp/subs.awk" | $SHELL
16259 fi >$tmp/out \
16260 || as_fn_error "could not create $ac_file" "$LINENO" 5
16261
16262 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16263 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16264 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16266 which seems to be undefined. Please make sure it is defined." >&5
16267 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16268 which seems to be undefined. Please make sure it is defined." >&2;}
16269
16270 rm -f "$tmp/stdin"
16271 case $ac_file in
16272 -) cat "$tmp/out" && rm -f "$tmp/out";;
16273 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16274 esac \
16275 || as_fn_error "could not create $ac_file" "$LINENO" 5
16276 ;;
16277 :H)
16278 #
16279 # CONFIG_HEADER
16280 #
16281 if test x"$ac_file" != x-; then
16282 {
16283 $as_echo "/* $configure_input */" \
16284 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16285 } >"$tmp/config.h" \
16286 || as_fn_error "could not create $ac_file" "$LINENO" 5
16287 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16289 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16290 else
16291 rm -f "$ac_file"
16292 mv "$tmp/config.h" "$ac_file" \
16293 || as_fn_error "could not create $ac_file" "$LINENO" 5
16294 fi
16295 else
16296 $as_echo "/* $configure_input */" \
16297 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16298 || as_fn_error "could not create -" "$LINENO" 5
16299 fi
16300 ;;
16301
16302 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16303 $as_echo "$as_me: executing $ac_file commands" >&6;}
16304 ;;
16305 esac
16306
16307
16308 case $ac_file$ac_mode in
16309 "default":C)
16310
16311 ### Make the necessary directories, if they don't exist.
16312 for dir in etc lisp ; do
16313 test -d ${dir} || mkdir ${dir}
16314 done
16315
16316 echo creating src/epaths.h
16317 ${MAKE-make} epaths-force
16318
16319 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
16320 echo creating src/.gdbinit
16321 echo source $srcdir/src/.gdbinit > src/.gdbinit
16322 fi
16323
16324 ;;
16325
16326 esac
16327 done # for ac_tag
16328
16329
16330 as_fn_exit 0
16331 _ACEOF
16332 ac_clean_files=$ac_clean_files_save
16333
16334 test $ac_write_fail = 0 ||
16335 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16336
16337
16338 # configure is writing to config.log, and then calls config.status.
16339 # config.status does its own redirection, appending to config.log.
16340 # Unfortunately, on DOS this fails, as config.log is still kept open
16341 # by configure, so config.status won't be able to write to it; its
16342 # output is simply discarded. So we exec the FD to /dev/null,
16343 # effectively closing config.log, so it can be properly (re)opened and
16344 # appended to by config.status. When coming back to configure, we
16345 # need to make the FD available again.
16346 if test "$no_create" != yes; then
16347 ac_cs_success=:
16348 ac_config_status_args=
16349 test "$silent" = yes &&
16350 ac_config_status_args="$ac_config_status_args --quiet"
16351 exec 5>/dev/null
16352 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16353 exec 5>>config.log
16354 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16355 # would make configure fail if this is the last instruction.
16356 $ac_cs_success || as_fn_exit $?
16357 fi
16358 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16360 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16361 fi
16362
16363